|
|
(function(ru){var Ui={};function co(li){if(Ui[li])return Ui[li].exports;var qi=Ui[li]={i:li,l:!1,exports:{}};return ru[li].call(qi.exports,qi,qi.exports,co),qi.l=!0,qi.exports}return co.m=ru,co.c=Ui,co.d=function(li,qi,Bo){co.o(li,qi)||Object.defineProperty(li,qi,{enumerable:!0,get:Bo})},co.r=function(li){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(li,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(li,"__esModule",{value:!0})},co.t=function(li,qi){if(qi&1&&(li=co(li)),qi&8)return li;if(qi&4&&typeof li=="object"&&li&&li.__esModule)return li;var Bo=Object.create(null);if(co.r(Bo),Object.defineProperty(Bo,"default",{enumerable:!0,value:li}),qi&2&&typeof li!="string")for(var Tr in li)co.d(Bo,Tr,function(Rr){return li[Rr]}.bind(null,Tr));return Bo},co.n=function(li){var qi=li&&li.__esModule?function(){return li.default}:function(){return li};return co.d(qi,"a",qi),qi},co.o=function(li,qi){return Object.prototype.hasOwnProperty.call(li,qi)},co.p="/react/build/",co(co.s="0MeG")})({"0MeG":function(ru,Ui,co){"use strict";co.r(Ui);var li=function(){function s(){this.listeners=[],this.unexpectedErrorHandler=function(b){setTimeout(function(){throw b.stack?new Error(b.message+`
|
|
|
|
|
|
`+b.stack):b},0)}}return s.prototype.emit=function(b){this.listeners.forEach(function(V){V(b)})},s.prototype.onUnexpectedError=function(b){this.unexpectedErrorHandler(b),this.emit(b)},s.prototype.onUnexpectedExternalError=function(b){this.unexpectedErrorHandler(b)},s}(),qi=new li;function Bo(s){_i(s)||qi.onUnexpectedError(s);return}function Tr(s){_i(s)||qi.onUnexpectedExternalError(s);return}function Rr(s){if(s instanceof Error){var b=s.name,V=s.message,Me=s.stacktrace||s.stack;return{$isError:!0,name:b,message:V,stack:Me}}return s}var xr="Canceled";function _i(s){return s instanceof Error&&s.name===xr&&s.message===xr}function Mi(){var s=new Error(xr);return s.name=s.message,s}function sn(s){return s?new Error("Illegal argument: "+s):new Error("Illegal argument")}function Wo(s){return s?new Error("Illegal state: "+s):new Error("Illegal state")}var As=!1,pl="__is_disposable_tracked__";function zo(s){if(!As)return;if(s&&s!==Du.None)try{s[pl]=!0}catch(b){}}function Aa(s){if(!As)return s;var b=new Error("Potentially leaked disposable").stack;return setTimeout(function(){s[pl]||console.log(b)},3e3),s}function Ti(s){return typeof s.dispose=="function"&&s.dispose.length===0}function so(s){return Array.isArray(s)?(s.forEach(function(b){b&&(zo(b),b.dispose())}),[]):s?(zo(s),s.dispose(),s):void 0}function Xo(){for(var s=[],b=0;b<arguments.length;b++)s[b]=arguments[b];return s.forEach(zo),Aa({dispose:function(){return so(s)}})}function Cu(s){var b=Aa({dispose:function(){zo(b),s()}});return b}var Od=function(){function s(){this._toDispose=new Set,this._isDisposed=!1}return s.prototype.dispose=function(){if(this._isDisposed)return;zo(this),this._isDisposed=!0,this.clear()},s.prototype.clear=function(){this._toDispose.forEach(function(b){return b.dispose()}),this._toDispose.clear()},s.prototype.add=function(b){if(!b)return b;if(b===this)throw new Error("Cannot register a disposable on itself!");return zo(b),this._isDisposed?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(b),b},s}(),Du=function(){function s(){this._store=new Od,Aa(this)}return s.prototype.dispose=function(){zo(this),this._store.dispose()},s.prototype._register=function(b){if(b===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(b)},s.None=Object.freeze({dispose:function(){}}),s}(),Pp=function(){function s(){this._isDisposed=!1,Aa(this)}return Object.defineProperty(s.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(b){if(this._isDisposed||b===this._value)return;this._value&&this._value.dispose(),b&&zo(b),this._value=b},enumerable:!0,configurable:!0}),s.prototype.clear=function(){this.value=void 0},s.prototype.dispose=function(){this._isDisposed=!0,zo(this),this._value&&this._value.dispose(),this._value=void 0},s}(),e=function(){function s(b){this.object=b}return s.prototype.dispose=function(){},s}(),o=co("MNsG"),M={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function qe(s){return Array.isArray?Array.isArray(s):!!(s&&typeof s.length===M.number&&s.constructor===Array)}function Ee(s){return typeof s===M.string||s instanceof String}function Ge(s){return typeof s===M.object&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function Be(s){return(typeof s===M.number||s instanceof Number)&&!isNaN(s)}function he(s){return s===!0||s===!1}function ee(s){return typeof s===M.undefined}function f(s){return ee(s)||s===null}function J(s,b){if(!s)throw new Error(b?"Unexpected type, expected '"+b+"'":"Unexpected type")}var Oe=Object.prototype.hasOwnProperty;function N(s){if(!Ge(s))return!1;for(var b in s)if(Oe.call(s,b))return!1;return!0}function Te(s){return typeof s===M.function}function ie(s,b){for(var V=Math.min(s.length,b.length),Me=0;Me<V;Me++)ce(s[Me],b[Me])}function ce(s,b){if(Ee(b)){if(typeof s!==b)throw new Error("argument does not match constraint: typeof "+b)}else if(Te(b)){try{if(s instanceof b)return}catch(V){}if(!f(s)&&s.constructor===b)return;if(b.length===1&&b.call(void 0,s)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function x(s){for(var b=[],V=Object.getPrototypeOf(s);Object.prototype!==V;)b=b.concat(Object.getOwnPropertyNames(V)),V=Object.getPrototypeOf(V);return b}function C(s){for(var b=[],V=0,Me=x(s);V<Me.length;V++){var an=Me[V];typeof s[an]=="function"&&b.push(an)}return b}function P(s,b){for(var V=function(kt){return function(){var Pt=Array.prototype.slice.call(arguments,0);return b(kt,Pt)}},Me={},an=0,mn=s;an<mn.length;an++){var zn=mn[an];Me[zn]=V(zn)}return Me}function h(s){return s===null?void 0:s}function X(s){return typeof s=="undefined"?null:s}var $=function(){var s=function(b,V){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,an){Me.__proto__=an}||function(Me,an){for(var mn in an)an.hasOwnProperty(mn)&&(Me[mn]=an[mn])},s(b,V)};return function(b,V){s(b,V);function Me(){this.constructor=b}b.prototype=V===null?Object.create(V):(Me.prototype=V.prototype,new Me)}}(),Q="$initialize",z=!1;function se(s){if(!o.b)return;z||(z=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(s.message)}var G=function(){function s(b){this._workerId=-1,this._handler=b,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return s.prototype.setWorkerId=function(b){this._workerId=b},s.prototype.sendMessage=function(b,V){var Me=this,an=String(++this._lastSentReq);return new Promise(function(mn,zn){Me._pendingReplies[an]={resolve:mn,reject:zn},Me._send({vsWorker:Me._workerId,req:an,method:b,args:V})})},s.prototype.handleMessage=function(b){if(!b||!b.vsWorker)return;if(this._workerId!==-1&&b.vsWorker!==this._workerId)return;this._handleMessage(b)},s.prototype._handleMessage=function(b){var V=this;if(b.seq){var Me=b;if(!this._pendingReplies[Me.seq]){console.warn("Got reply to unknown seq");return}var an=this._pendingReplies[Me.seq];if(delete this._pendingReplies[Me.seq],Me.err){var mn=Me.err;Me.err.$isError&&(mn=new Error,mn.name=Me.err.name,mn.message=Me.err.message,mn.stack=Me.err.stack),an.reject(mn);return}an.resolve(Me.res);return}var zn=b,kt=zn.req,Pt=this._handler.handleMessage(zn.method,zn.args);Pt.then(function(It){V._send({vsWorker:V._workerId,seq:kt,res:It,err:void 0})},function(It){It.detail instanceof Error&&(It.detail=Rr(It.detail)),V._send({vsWorker:V._workerId,seq:kt,res:void 0,err:Rr(It)})})},s.prototype._send=function(b){var V=[];if(b.req)for(var Me=b,an=0;an<Me.args.length;an++)Me.args[an]instanceof ArrayBuffer&&V.push(Me.args[an]);else{var Me=b;Me.res instanceof ArrayBuffer&&V.push(Me.res)}this._handler.sendMessage(b,V)},s}(),H=function(s){$(b,s);function b(V,Me,an){var mn=s.call(this)||this,zn=null;mn._worker=mn._register(V.create("vs/base/common/worker/simpleWorker",function(fr){mn._protocol.handleMessage(fr)},function(fr){zn&&zn(fr)})),mn._protocol=new G({sendMessage:function(fr,hr){mn._worker.postMessage(fr,hr)},handleMessage:function(fr,hr){if(typeof an[fr]!="function")return Promise.reject(new Error("Missing method "+fr+" on main thread host."));try{return Promise.resolve(an[fr].apply(an,hr))}catch($r){return Promise.reject($r)}}}),mn._protocol.setWorkerId(mn._worker.getId());var kt=null;typeof self.require!="undefined"&&typeof self.require.getConfig=="function"?kt=self.require.getConfig():typeof self.requirejs!="undefined"&&(kt=self.requirejs.s.contexts._.config);var Pt=C(an);mn._onModuleLoaded=mn._protocol.sendMessage(Q,[mn._worker.getId(),JSON.parse(JSON.stringify(kt)),Me,Pt]);var It=function(fr,hr){return mn._request(fr,hr)};return mn._lazyProxy=new Promise(function(fr,hr){zn=hr,mn._onModuleLoaded.then(function($r){fr(P($r,It))},function($r){hr($r),mn._onError("Worker failed to load "+Me,$r)})}),mn}return b.prototype.getProxyObject=function(){return this._lazyProxy},b.prototype._request=function(V,Me){var an=this;return new Promise(function(mn,zn){an._onModuleLoaded.then(function(){an._protocol.sendMessage(V,Me).then(mn,zn)},zn)})},b.prototype._onError=function(V,Me){console.error(V),console.info(Me)},b}(Du),q=function(){function s(b,V){var Me=this;this._requestHandlerFactory=V,this._requestHandler=null,this._protocol=new G({sendMessage:function(an,mn){b(an,mn)},handleMessage:function(an,mn){return Me._handleMessage(an,mn)}})}return s.prototype.onmessage=function(b){this._protocol.handleMessage(b)},s.prototype._handleMessage=function(b,V){if(b===Q)return this.initialize(V[0],V[1],V[2],V[3]);if(!this._requestHandler||typeof this._requestHandler[b]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+b));try{return Promise.resolve(this._requestHandler[b].apply(this._requestHandler,V))}catch(Me){return Promise.reject(Me)}},s.prototype.initialize=function(b,V,Me,an){var mn=this;this._protocol.setWorkerId(b);var zn=function(Pt,It){return mn._protocol.sendMessage(Pt,It)},kt=P(an,zn);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(kt),Promise.resolve(C(this._requestHandler))):(V&&(typeof V.baseUrl!="undefined"&&delete V.baseUrl,typeof V.paths!="undefined"&&(typeof V.paths.vs!="undefined"&&delete V.paths.vs),V.catchError=!0,self.require.config(V)),new Promise(function(Pt,It){self.require([Me],function(fr){if(mn._requestHandler=fr.create(kt),!mn._requestHandler){It(new Error("No RequestHandler!"));return}Pt(C(mn._requestHandler))},It)}))},s}();function be(s){return new q(s,null)}function R(s,b){return b===void 0&&(b=0),s[s.length-(1+b)]}function K(s){if(s.length===0)throw new Error("Invalid tail call");return[s.slice(0,s.length-1),s[s.length-1]]}function m(s,b,V){if(V===void 0&&(V=function(mn,zn){return mn===zn}),s===b)return!0;if(!s||!b)return!1;if(s.length!==b.length)return!1;for(var Me=0,an=s.length;Me<an;Me++)if(!V(s[Me],b[Me]))return!1;return!0}function _(s,b,V){for(var Me=0,an=s.length-1;Me<=an;){var mn=(Me+an)/2|0,zn=V(s[mn],b);if(zn<0)Me=mn+1;else if(zn>0)an=mn-1;else return mn}return-(Me+1)}function I(s,b){var V=0,Me=s.length;if(Me===0)return 0;for(;V<Me;){var an=Math.floor((V+Me)/2);b(s[an])?Me=an:V=an+1}return V}function D(s,b){return E(s,b,0,s.length-1,[]),s}function y(s,b,V,Me,an,mn){for(var zn=V,kt=Me+1,Pt=V;Pt<=an;Pt++)mn[Pt]=s[Pt];for(var Pt=V;Pt<=an;Pt++)zn>Me?s[Pt]=mn[kt++]:kt>an?s[Pt]=mn[zn++]:b(mn[kt],mn[zn])<0?s[Pt]=mn[kt++]:s[Pt]=mn[zn++]}function E(s,b,V,Me,an){if(Me<=V)return;var mn=V+(Me-V)/2|0;if(E(s,b,V,mn,an),E(s,b,mn+1,Me,an),b(s[mn],s[mn+1])<=0)return;y(s,b,V,mn,Me,an)}function k(s,b){for(var V=[],Me=void 0,an=0,mn=D(s.slice(0),b);an<mn.length;an++){var zn=mn[an];!Me||b(Me[0],zn)!==0?(Me=[zn],V.push(Me)):Me.push(zn)}return V}function T(s){return s.filter(function(b){return!!b})}function ne(s){return!Array.isArray(s)||s.length===0}function O(s){return Array.isArray(s)&&s.length>0}function Y(s,b){if(!b)return s.filter(function(Me,an){return s.indexOf(Me)===an});var V=Object.create(null);return s.filter(function(Me){var an=b(Me);return V[an]?!1:(V[an]=!0,!0)})}function pe(s){var b=new Set;return s.filter(function(V){return b.has(V)?!1:(b.add(V),!0)})}function S(s){var b=[];return s.forEach(function(V){return b.push(V)}),b}function v(s,b){for(var V=0;V<s.length;V++){var Me=s[V];if(b(Me))return V}return-1}function U(s,b,V){V===void 0&&(V=void 0);var Me=v(s,b);return Me<0?V:s[Me]}function ue(s,b){return s.length>0?s[0]:b}function De(s){var b;return(b=[]).concat.apply(b,s)}function Z(s,b){var V=typeof b=="number"?s:0;typeof b=="number"?V=s:(V=0,b=s);var Me=[];if(V<=b)for(var an=V;an<b;an++)Me.push(an);else for(var an=V;an>b;an--)Me.push(an);return Me}function Re(s,b,V){var Me=s.slice(0,b),an=s.slice(b);return Me.concat(V,an)}function we(s,b){var V=s.indexOf(b);V>-1&&(s.splice(V,1),s.unshift(b))}function He(s,b){var V=s.indexOf(b);V>-1&&(s.splice(V,1),s.push(b))}function ve(s,b){for(var V=0;V<s.length;V++){var Me=s[V];if(b(Me,V,s))return Me}return}function je(s){return Array.isArray(s)?s:[s]}var w=function(){function s(b,V,Me,an){this.originalStart=b,this.originalLength=V,this.modifiedStart=Me,this.modifiedLength=an}return s.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},s.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},s}();function j(s,b){b===void 0&&(b=0);switch(typeof s){case"object":return s===null?Pe(349,b):Array.isArray(s)?In(s,b):et(s,b);case"string":return Ze(s,b);case"boolean":return a(s,b);case"number":return Pe(s,b);case"undefined":return Pe(0,937);default:return Pe(0,617)}}function Pe(s,b){return(b<<5)-b+s|0}function a(s,b){return Pe(s?433:863,b)}function Ze(s,b){b=Pe(149417,b);for(var V=0,Me=s.length;V<Me;V++)b=Pe(s.charCodeAt(V),b);return b}function In(s,b){return b=Pe(104579,b),s.reduce(function(V,Me){return j(Me,V)},b)}function et(s,b){return b=Pe(181387,b),Object.keys(s).sort().reduce(function(V,Me){return V=Ze(Me,V),j(s[Me],V)},b)}var ae=function(){function s(b){this.source=b}return s.prototype.getElements=function(){for(var b=this.source,V=new Int32Array(b.length),Me=0,an=b.length;Me<an;Me++)V[Me]=b.charCodeAt(Me);return V},s}();function fe(s,b,V){return new Fe(new ae(s),new ae(b)).ComputeDiff(V).changes}var Le=function(){function s(){}return s.Assert=function(b,V){if(!b)throw new Error(V)},s}(),Je=function(){function s(){}return s.Copy=function(b,V,Me,an,mn){for(var zn=0;zn<mn;zn++)Me[an+zn]=b[V+zn]},s.Copy2=function(b,V,Me,an,mn){for(var zn=0;zn<mn;zn++)Me[an+zn]=b[V+zn]},s}(),$e=function(){function s(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}return s.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new w(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},s.prototype.AddOriginalElement=function(b,V){this.m_originalStart=Math.min(this.m_originalStart,b),this.m_modifiedStart=Math.min(this.m_modifiedStart,V),this.m_originalCount++},s.prototype.AddModifiedElement=function(b,V){this.m_originalStart=Math.min(this.m_originalStart,b),this.m_modifiedStart=Math.min(this.m_modifiedStart,V),this.m_modifiedCount++},s.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},s.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},s}(),Fe=function(){function s(b,V,Me){Me===void 0&&(Me=null),this.ContinueProcessingPredicate=Me;var an=s._getElements(b),mn=an[0],zn=an[1],kt=an[2],Pt=s._getElements(V),It=Pt[0],fr=Pt[1],hr=Pt[2];this._hasStrings=kt&&hr,this._originalStringElements=mn,this._originalElementsOrHash=zn,this._modifiedStringElements=It,this._modifiedElementsOrHash=fr,this.m_forwardHistory=[],this.m_reverseHistory=[]}return s._isStringArray=function(b){return b.length>0&&typeof b[0]=="string"},s._getElements=function(b){var V=b.getElements();if(s._isStringArray(V)){for(var Me=new Int32Array(V.length),an=0,mn=V.length;an<mn;an++)Me[an]=Ze(V[an],0);return[V,Me,!0]}return V instanceof Int32Array?[[],V,!1]:[[],new Int32Array(V),!1]},s.prototype.ElementsAreEqual=function(b,V){return this._originalElementsOrHash[b]!==this._modifiedElementsOrHash[V]?!1:this._hasStrings?this._originalStringElements[b]===this._modifiedStringElements[V]:!0},s.prototype.OriginalElementsAreEqual=function(b,V){return this._originalElementsOrHash[b]!==this._originalElementsOrHash[V]?!1:this._hasStrings?this._originalStringElements[b]===this._originalStringElements[V]:!0},s.prototype.ModifiedElementsAreEqual=function(b,V){return this._modifiedElementsOrHash[b]!==this._modifiedElementsOrHash[V]?!1:this._hasStrings?this._modifiedStringElements[b]===this._modifiedStringElements[V]:!0},s.prototype.ComputeDiff=function(b){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,b)},s.prototype._ComputeDiff=function(b,V,Me,an,mn){var zn=[!1],kt=this.ComputeDiffRecursive(b,V,Me,an,zn);return mn&&(kt=this.PrettifyChanges(kt)),{quitEarly:zn[0],changes:kt}},s.prototype.ComputeDiffRecursive=function(b,V,Me,an,mn){for(mn[0]=!1;b<=V&&Me<=an&&this.ElementsAreEqual(b,Me);)b++,Me++;for(;V>=b&&an>=Me&&this.ElementsAreEqual(V,an);)V--,an--;if(b>V||Me>an){var zn=void 0;return Me<=an?(Le.Assert(b===V+1,"originalStart should only be one more than originalEnd"),zn=[new w(b,0,Me,an-Me+1)]):b<=V?(Le.Assert(Me===an+1,"modifiedStart should only be one more than modifiedEnd"),zn=[new w(b,V-b+1,Me,0)]):(Le.Assert(b===V+1,"originalStart should only be one more than originalEnd"),Le.Assert(Me===an+1,"modifiedStart should only be one more than modifiedEnd"),zn=[]),zn}var kt=[0],Pt=[0],It=this.ComputeRecursionPoint(b,V,Me,an,kt,Pt,mn),fr=kt[0],hr=Pt[0];if(It!==null)return It;if(!mn[0]){var $r=this.ComputeDiffRecursive(b,fr,Me,hr,mn),ba=[];return mn[0]?ba=[new w(fr+1,V-(fr+1)+1,hr+1,an-(hr+1)+1)]:ba=this.ComputeDiffRecursive(fr+1,V,hr+1,an,mn),this.ConcatenateChanges($r,ba)}return[new w(b,V-b+1,Me,an-Me+1)]},s.prototype.WALKTRACE=function(b,V,Me,an,mn,zn,kt,Pt,It,fr,hr,$r,ba,ra,Ba,Ai,$a,ki){var Qr=null,ia=null,oa=new $e,sa=V,Da=Me,Ha=ba[0]-Ai[0]-an,ti=-1073741824,Qi=this.m_forwardHistory.length-1;do{var Za=Ha+b;Za===sa||Za<Da&&It[Za-1]<It[Za+1]?(hr=It[Za+1],ra=hr-Ha-an,hr<ti&&oa.MarkNextChange(),ti=hr,oa.AddModifiedElement(hr+1,ra),Ha=Za+1-b):(hr=It[Za-1]+1,ra=hr-Ha-an,hr<ti&&oa.MarkNextChange(),ti=hr-1,oa.AddOriginalElement(hr,ra+1),Ha=Za-1-b),Qi>=0&&(It=this.m_forwardHistory[Qi],b=It[0],sa=1,Da=It.length-1)}while(--Qi>=-1);if(Qr=oa.getReverseChanges(),ki[0]){var Ls=ba[0]+1,zr=Ai[0]+1;if(Qr!==null&&Qr.length>0){var Zt=Qr[Qr.length-1];Ls=Math.max(Ls,Zt.getOriginalEnd()),zr=Math.max(zr,Zt.getModifiedEnd())}ia=[new w(Ls,$r-Ls+1,zr,Ba-zr+1)]}else{oa=new $e,sa=zn,Da=kt,Ha=ba[0]-Ai[0]-Pt,ti=1073741824,Qi=$a?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var Za=Ha+mn;Za===sa||Za<Da&&fr[Za-1]>=fr[Za+1]?(hr=fr[Za+1]-1,ra=hr-Ha-Pt,hr>ti&&oa.MarkNextChange(),ti=hr+1,oa.AddOriginalElement(hr+1,ra+1),Ha=Za+1-mn):(hr=fr[Za-1],ra=hr-Ha-Pt,hr>ti&&oa.MarkNextChange(),ti=hr,oa.AddModifiedElement(hr+1,ra+1),Ha=Za-1-mn),Qi>=0&&(fr=this.m_reverseHistory[Qi],mn=fr[0],sa=1,Da=fr.length-1)}while(--Qi>=-1);ia=oa.getChanges()}return this.ConcatenateChanges(Qr,ia)},s.prototype.ComputeRecursionPoint=function(b,V,Me,an,mn,zn,kt){var Pt=0,It=0,fr=0,hr=0,$r=0,ba=0;b--,Me--,mn[0]=0,zn[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var ra=V-b+(an-Me),Ba=ra+1,Ai=new Int32Array(Ba),$a=new Int32Array(Ba),ki=an-Me,Qr=V-b,ia=b-Me,oa=V-an,sa=Qr-ki,Da=sa%2===0;Ai[ki]=b,$a[Qr]=V,kt[0]=!1;for(var Ha=1;Ha<=ra/2+1;Ha++){var ti=0,Qi=0;fr=this.ClipDiagonalBound(ki-Ha,Ha,ki,Ba),hr=this.ClipDiagonalBound(ki+Ha,Ha,ki,Ba);for(var Za=fr;Za<=hr;Za+=2){Za===fr||Za<hr&&Ai[Za-1]<Ai[Za+1]?Pt=Ai[Za+1]:Pt=Ai[Za-1]+1,It=Pt-(Za-ki)-ia;for(var Ls=Pt;Pt<V&&It<an&&this.ElementsAreEqual(Pt+1,It+1);)Pt++,It++;if(Ai[Za]=Pt,Pt+It>ti+Qi&&(ti=Pt,Qi=It),!Da&&Math.abs(Za-Qr)<=Ha-1&&Pt>=$a[Za])return mn[0]=Pt,zn[0]=It,Ls<=$a[Za]&&1447>0&&Ha<=1447+1?this.WALKTRACE(ki,fr,hr,ia,Qr,$r,ba,oa,Ai,$a,Pt,V,mn,It,an,zn,Da,kt):null}var zr=(ti-b+(Qi-Me)-Ha)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(ti,zr))return kt[0]=!0,mn[0]=ti,zn[0]=Qi,zr>0&&1447>0&&Ha<=1447+1?this.WALKTRACE(ki,fr,hr,ia,Qr,$r,ba,oa,Ai,$a,Pt,V,mn,It,an,zn,Da,kt):(b++,Me++,[new w(b,V-b+1,Me,an-Me+1)]);$r=this.ClipDiagonalBound(Qr-Ha,Ha,Qr,Ba),ba=this.ClipDiagonalBound(Qr+Ha,Ha,Qr,Ba);for(var Za=$r;Za<=ba;Za+=2){Za===$r||Za<ba&&$a[Za-1]>=$a[Za+1]?Pt=$a[Za+1]-1:Pt=$a[Za-1],It=Pt-(Za-Qr)-oa;for(var Ls=Pt;Pt>b&&It>Me&&this.ElementsAreEqual(Pt,It);)Pt--,It--;if($a[Za]=Pt,Da&&Math.abs(Za-ki)<=Ha&&Pt<=Ai[Za])return mn[0]=Pt,zn[0]=It,Ls>=Ai[Za]&&1447>0&&Ha<=1447+1?this.WALKTRACE(ki,fr,hr,ia,Qr,$r,ba,oa,Ai,$a,Pt,V,mn,It,an,zn,Da,kt):null}if(Ha<=1447){var Zt=new Int32Array(hr-fr+2);Zt[0]=ki-fr+1,Je.Copy2(Ai,fr,Zt,1,hr-fr+1),this.m_forwardHistory.push(Zt),Zt=new Int32Array(ba-$r+2),Zt[0]=Qr-$r+1,Je.Copy2($a,$r,Zt,1,ba-$r+1),this.m_reverseHistory.push(Zt)}}return this.WALKTRACE(ki,fr,hr,ia,Qr,$r,ba,oa,Ai,$a,Pt,V,mn,It,an,zn,Da,kt)},s.prototype.PrettifyChanges=function(b){for(var V=0;V<b.length;V++){for(var Me=b[V],an=V<b.length-1?b[V+1].originalStart:this._originalElementsOrHash.length,mn=V<b.length-1?b[V+1].modifiedStart:this._modifiedElementsOrHash.length,zn=Me.originalLength>0,kt=Me.modifiedLength>0;Me.originalStart+Me.originalLength<an&&Me.modifiedStart+Me.modifiedLength<mn&&(!zn||this.OriginalElementsAreEqual(Me.originalStart,Me.originalStart+Me.originalLength))&&(!kt||this.ModifiedElementsAreEqual(Me.modifiedStart,Me.modifiedStart+Me.modifiedLength));)Me.originalStart++,Me.modifiedStart++;var Pt=[null];if(V<b.length-1&&this.ChangesOverlap(b[V],b[V+1],Pt)){b[V]=Pt[0],b.splice(V+1,1),V--;continue}}for(var V=b.length-1;V>=0;V--){var Me=b[V],an=0,mn=0;if(V>0){var It=b[V-1];It.originalLength>0&&(an=It.originalStart+It.originalLength),It.modifiedLength>0&&(mn=It.modifiedStart+It.modifiedLength)}for(var zn=Me.originalLength>0,kt=Me.modifiedLength>0,fr=0,hr=this._boundaryScore(Me.originalStart,Me.originalLength,Me.modifiedStart,Me.modifiedLength),$r=1;;$r++){var ba=Me.originalStart-$r,ra=Me.modifiedStart-$r;if(ba<an||ra<mn)break;if(zn&&!this.OriginalElementsAreEqual(ba,ba+Me.originalLength))break;if(kt&&!this.ModifiedElementsAreEqual(ra,ra+Me.modifiedLength))break;var Ba=this._boundaryScore(ba,Me.originalLength,ra,Me.modifiedLength);Ba>hr&&(hr=Ba,fr=$r)}Me.originalStart-=fr,Me.modifiedStart-=fr}return b},s.prototype._OriginalIsBoundary=function(b){return b<=0||b>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[b])},s.prototype._OriginalRegionIsBoundary=function(b,V){if(this._OriginalIsBoundary(b)||this._OriginalIsBoundary(b-1))return!0;if(V>0){var Me=b+V;if(this._OriginalIsBoundary(Me-1)||this._OriginalIsBoundary(Me))return!0}return!1},s.prototype._ModifiedIsBoundary=function(b){return b<=0||b>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[b])},s.prototype._ModifiedRegionIsBoundary=function(b,V){if(this._ModifiedIsBoundary(b)||this._ModifiedIsBoundary(b-1))return!0;if(V>0){var Me=b+V;if(this._ModifiedIsBoundary(Me-1)||this._ModifiedIsBoundary(Me))return!0}return!1},s.prototype._boundaryScore=function(b,V,Me,an){var mn=this._OriginalRegionIsBoundary(b,V)?1:0,zn=this._ModifiedRegionIsBoundary(Me,an)?1:0;return mn+zn},s.prototype.ConcatenateChanges=function(b,V){var Me=[];if(b.length===0||V.length===0)return V.length>0?V:b;if(this.ChangesOverlap(b[b.length-1],V[0],Me)){var an=new Array(b.length+V.length-1);return Je.Copy(b,0,an,0,b.length-1),an[b.length-1]=Me[0],Je.Copy(V,1,an,b.length,V.length-1),an}else{var an=new Array(b.length+V.length);return Je.Copy(b,0,an,0,b.length),Je.Copy(V,0,an,b.length,V.length),an}},s.prototype.ChangesOverlap=function(b,V,Me){if(Le.Assert(b.originalStart<=V.originalStart,"Left change is not less than or equal to right change"),Le.Assert(b.modifiedStart<=V.modifiedStart,"Left change is not less than or equal to right change"),b.originalStart+b.originalLength>=V.originalStart||b.modifiedStart+b.modifiedLength>=V.modifiedStart){var an=b.originalStart,mn=b.originalLength,zn=b.modifiedStart,kt=b.modifiedLength;return b.originalStart+b.originalLength>=V.originalStart&&(mn=V.originalStart+V.originalLength-b.originalStart),b.modifiedStart+b.modifiedLength>=V.modifiedStart&&(kt=V.modifiedStart+V.modifiedLength-b.modifiedStart),Me[0]=new w(an,mn,zn,kt),!0}else return Me[0]=null,!1},s.prototype.ClipDiagonalBound=function(b,V,Me,an){if(b>=0&&b<an)return b;var mn=Me,zn=an-Me-1,kt=V%2===0;if(b<0){var Pt=mn%2===0;return kt===Pt?0:1}else{var It=zn%2===0;return kt===It?an-1:an-2}},s}(),cn=function(){var s=function(b,V){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,an){Me.__proto__=an}||function(Me,an){for(var mn in an)an.hasOwnProperty(mn)&&(Me[mn]=an[mn])},s(b,V)};return function(b,V){s(b,V);function Me(){this.constructor=b}b.prototype=V===null?Object.create(V):(Me.prototype=V.prototype,new Me)}}(),Qe={done:!0,value:void 0},ln;(function(s){var b={next:function(){return Qe}};function V(){return b}s.empty=V;function Me(ba){var ra=!1;return{next:function(){return ra?Qe:(ra=!0,{done:!1,value:ba})}}}s.single=Me;function an(ba,ra,Ba){return ra===void 0&&(ra=0),Ba===void 0&&(Ba=ba.length),{next:function(){return ra>=Ba?Qe:{done:!1,value:ba[ra++]}}}}s.fromArray=an;function mn(ba){return{next:function(){var ra=ba.next();return ra.done?Qe:{done:!1,value:ra.value}}}}s.fromNativeIterator=mn;function zn(ba){return ba?Array.isArray(ba)?s.fromArray(ba):ba:s.empty()}s.from=zn;function kt(ba,ra){return{next:function(){var Ba=ba.next();return Ba.done?Qe:{done:!1,value:ra(Ba.value)}}}}s.map=kt;function Pt(ba,ra){return{next:function(){for(;;){var Ba=ba.next();if(Ba.done)return Qe;if(ra(Ba.value))return{done:!1,value:Ba.value}}}}}s.filter=Pt;function It(ba,ra){for(var Ba=ba.next();!Ba.done;Ba=ba.next())ra(Ba.value)}s.forEach=It;function fr(ba,ra){ra===void 0&&(ra=Number.POSITIVE_INFINITY);var Ba=[];if(ra===0)return Ba;for(var Ai=0,$a=ba.next();!$a.done&&!(Ba.push($a.value),++Ai>=ra);$a=ba.next());return Ba}s.collect=fr;function hr(){for(var ba=[],ra=0;ra<arguments.length;ra++)ba[ra]=arguments[ra];var Ba=0;return{next:function(){if(Ba>=ba.length)return Qe;var Ai=ba[Ba],$a=Ai.next();return $a.done?(Ba++,this.next()):$a}}}s.concat=hr;function $r(ba){return new ye(ba)}s.chain=$r})(ln||(ln={}));var ye=function(){function s(b){this.it=b}return s.prototype.next=function(){return this.it.next()},s}();function ke(s){return Array.isArray(s)?ln.fromArray(s):s||ln.empty()}var F=function(){function s(b,V,Me,an){V===void 0&&(V=0),Me===void 0&&(Me=b.length),an===void 0&&(an=V-1),this.items=b,this.start=V,this.end=Me,this.index=an}return s.prototype.first=function(){return this.index=this.start,this.current()},s.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},s.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},s}(),c=function(s){cn(b,s);function b(V,Me,an,mn){return Me===void 0&&(Me=0),an===void 0&&(an=V.length),mn===void 0&&(mn=Me-1),s.call(this,V,Me,an,mn)||this}return b.prototype.current=function(){return s.prototype.current.call(this)},b.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},b.prototype.first=function(){return this.index=this.start,this.current()},b.prototype.last=function(){return this.index=this.end-1,this.current()},b.prototype.parent=function(){return null},b}(F),L=function(){function s(b,V){this.iterator=b,this.fn=V}return s.prototype.next=function(){return this.fn(this.iterator.next())},s}(),te=function(){var s=function(b,V){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,an){Me.__proto__=an}||function(Me,an){for(var mn in an)an.hasOwnProperty(mn)&&(Me[mn]=an[mn])},s(b,V)};return function(b,V){s(b,V);function Me(){this.constructor=b}b.prototype=V===null?Object.create(V):(Me.prototype=V.prototype,new Me)}}(),Se,Ne=/^\w[\w\d+.-]*$/,ze=/^\//,Tn=/^\/\//;function wn(s,b){if(!s.scheme&&b)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+s.authority+'", path: "'+s.path+'", query: "'+s.query+'", fragment: "'+s.fragment+'"}');if(s.scheme&&!Ne.test(s.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(s.path){if(s.authority){if(!ze.test(s.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(Tn.test(s.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function jn(s,b){return!s&&!b?"file":s}function nn(s,b){switch(s){case"https":case"http":case"file":b?b[0]!==le&&(b=le+b):b=le;break}return b}var pn="",le="/",oe=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Cn=function(){function s(b,V,Me,an,mn,zn){zn===void 0&&(zn=!1),typeof b=="object"?(this.scheme=b.scheme||pn,this.authority=b.authority||pn,this.path=b.path||pn,this.query=b.query||pn,this.fragment=b.fragment||pn):(this.scheme=jn(b,zn),this.authority=V||pn,this.path=nn(this.scheme,Me||pn),this.query=an||pn,this.fragment=mn||pn,wn(this,zn))}return s.isUri=function(b){return b instanceof s?!0:b?typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="function"&&typeof b.with=="function"&&typeof b.toString=="function":!1},Object.defineProperty(s.prototype,"fsPath",{get:function(){return at(this)},enumerable:!0,configurable:!0}),s.prototype.with=function(b){if(!b)return this;var V=b.scheme,Me=b.authority,an=b.path,mn=b.query,zn=b.fragment;return V===void 0?V=this.scheme:V===null&&(V=pn),Me===void 0?Me=this.authority:Me===null&&(Me=pn),an===void 0?an=this.path:an===null&&(an=pn),mn===void 0?mn=this.query:mn===null&&(mn=pn),zn===void 0?zn=this.fragment:zn===null&&(zn=pn),V===this.scheme&&Me===this.authority&&an===this.path&&mn===this.query&&zn===this.fragment?this:new _e(V,Me,an,mn,zn)},s.parse=function(b,V){V===void 0&&(V=!1);var Me=oe.exec(b);return Me?new _e(Me[2]||pn,ot(Me[4]||pn),ot(Me[5]||pn),ot(Me[7]||pn),ot(Me[9]||pn),V):new _e(pn,pn,pn,pn,pn)},s.file=function(b){var V=pn;if(o.c&&(b=b.replace(/\\/g,le)),b[0]===le&&b[1]===le){var Me=b.indexOf(le,2);Me===-1?(V=b.substring(2),b=le):(V=b.substring(2,Me),b=b.substring(Me)||le)}return new _e("file",V,b,pn,pn)},s.from=function(b){return new _e(b.scheme,b.authority,b.path,b.query,b.fragment)},s.prototype.toString=function(b){return b===void 0&&(b=!1),Bn(this,b)},s.prototype.toJSON=function(){return this},s.revive=function(b){if(b){if(b instanceof s)return b;var V=new _e(b);return V._formatted=b.external,V._fsPath=b._sep===yn?b.fsPath:null,V}else return b},s}(),yn=o.c?1:void 0,_e=function(s){te(b,s);function b(){var V=s!==null&&s.apply(this,arguments)||this;return V._formatted=null,V._fsPath=null,V}return Object.defineProperty(b.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=at(this)),this._fsPath},enumerable:!0,configurable:!0}),b.prototype.toString=function(V){return V===void 0&&(V=!1),V?Bn(this,!0):(this._formatted||(this._formatted=Bn(this,!1)),this._formatted)},b.prototype.toJSON=function(){var V={$mid:1};return this._fsPath&&(V.fsPath=this._fsPath,V._sep=yn),this._formatted&&(V.external=this._formatted),this.path&&(V.path=this.path),this.scheme&&(V.scheme=this.scheme),this.authority&&(V.authority=this.authority),this.query&&(V.query=this.query),this.fragment&&(V.fragment=this.fragment),V},b}(Cn),dn=(Se={},Se[58]="%3A",Se[47]="%2F",Se[63]="%3F",Se[35]="%23",Se[91]="%5B",Se[93]="%5D",Se[64]="%40",Se[33]="%21",Se[36]="%24",Se[38]="%26",Se[39]="%27",Se[40]="%28",Se[41]="%29",Se[42]="%2A",Se[43]="%2B",Se[44]="%2C",Se[59]="%3B",Se[61]="%3D",Se[32]="%20",Se);function un(s,b){for(var V=void 0,Me=-1,an=0;an<s.length;an++){var mn=s.charCodeAt(an);if(mn>=97&&mn<=122||mn>=65&&mn<=90||mn>=48&&mn<=57||mn===45||mn===46||mn===95||mn===126||b&&mn===47)Me!==-1&&(V+=encodeURIComponent(s.substring(Me,an)),Me=-1),V!==void 0&&(V+=s.charAt(an));else{V===void 0&&(V=s.substr(0,an));var zn=dn[mn];zn!==void 0?(Me!==-1&&(V+=encodeURIComponent(s.substring(Me,an)),Me=-1),V+=zn):Me===-1&&(Me=an)}}return Me!==-1&&(V+=encodeURIComponent(s.substring(Me))),V!==void 0?V:s}function Rn(s){for(var b=void 0,V=0;V<s.length;V++){var Me=s.charCodeAt(V);Me===35||Me===63?(b===void 0&&(b=s.substr(0,V)),b+=dn[Me]):b!==void 0&&(b+=s[V])}return b!==void 0?b:s}function at(s){var b;return s.authority&&s.path.length>1&&s.scheme==="file"?b="//"+s.authority+s.path:s.path.charCodeAt(0)===47&&(s.path.charCodeAt(1)>=65&&s.path.charCodeAt(1)<=90||s.path.charCodeAt(1)>=97&&s.path.charCodeAt(1)<=122)&&s.path.charCodeAt(2)===58?b=s.path[1].toLowerCase()+s.path.substr(2):b=s.path,o.c&&(b=b.replace(/\//g,"\\")),b}function Bn(s,b){var V=b?Rn:un,Me="",an=s.scheme,mn=s.authority,zn=s.path,kt=s.query,Pt=s.fragment;if(an&&(Me+=an,Me+=":"),(mn||an==="file")&&(Me+=le,Me+=le),mn){var It=mn.indexOf("@");if(It!==-1){var fr=mn.substr(0,It);mn=mn.substr(It+1),It=fr.indexOf(":"),It===-1?Me+=V(fr,!1):(Me+=V(fr.substr(0,It),!1),Me+=":",Me+=V(fr.substr(It+1),!1)),Me+="@"}mn=mn.toLowerCase(),It=mn.indexOf(":"),It===-1?Me+=V(mn,!1):(Me+=V(mn.substr(0,It),!1),Me+=mn.substr(It))}if(zn){if(zn.length>=3&&zn.charCodeAt(0)===47&&zn.charCodeAt(2)===58){var hr=zn.charCodeAt(1);hr>=65&&hr<=90&&(zn="/"+String.fromCharCode(hr+32)+":"+zn.substr(3))}else if(zn.length>=2&&zn.charCodeAt(1)===58){var hr=zn.charCodeAt(0);hr>=65&&hr<=90&&(zn=String.fromCharCode(hr+32)+":"+zn.substr(2))}Me+=V(zn,!0)}return kt&&(Me+="?",Me+=V(kt,!1)),Pt&&(Me+="#",Me+=b?Pt:un(Pt,!1)),Me}function ut(s){try{return decodeURIComponent(s)}catch(b){return s.length>3?s.substr(0,3)+ut(s.substr(3)):s}}var ct=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ot(s){return s.match(ct)?s.replace(ct,function(b){return ut(b)}):s}var dt=function(){function s(b,V){this.lineNumber=b,this.column=V}return s.prototype.with=function(b,V){return b===void 0&&(b=this.lineNumber),V===void 0&&(V=this.column),b===this.lineNumber&&V===this.column?this:new s(b,V)},s.prototype.delta=function(b,V){return b===void 0&&(b=0),V===void 0&&(V=0),this.with(this.lineNumber+b,this.column+V)},s.prototype.equals=function(b){return s.equals(this,b)},s.equals=function(b,V){return!b&&!V?!0:!!b&&!!V&&b.lineNumber===V.lineNumber&&b.column===V.column},s.prototype.isBefore=function(b){return s.isBefore(this,b)},s.isBefore=function(b,V){return b.lineNumber<V.lineNumber?!0:V.lineNumber<b.lineNumber?!1:b.column<V.column},s.prototype.isBeforeOrEqual=function(b){return s.isBeforeOrEqual(this,b)},s.isBeforeOrEqual=function(b,V){return b.lineNumber<V.lineNumber?!0:V.lineNumber<b.lineNumber?!1:b.column<=V.column},s.compare=function(b,V){var Me=b.lineNumber|0,an=V.lineNumber|0;if(Me===an){var mn=b.column|0,zn=V.column|0;return mn-zn}return Me-an},s.prototype.clone=function(){return new s(this.lineNumber,this.column)},s.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},s.lift=function(b){return new s(b.lineNumber,b.column)},s.isIPosition=function(b){return b&&typeof b.lineNumber=="number"&&typeof b.column=="number"},s}(),Ct=function(){function s(b,V,Me,an){b>Me||b===Me&&V>an?(this.startLineNumber=Me,this.startColumn=an,this.endLineNumber=b,this.endColumn=V):(this.startLineNumber=b,this.startColumn=V,this.endLineNumber=Me,this.endColumn=an)}return s.prototype.isEmpty=function(){return s.isEmpty(this)},s.isEmpty=function(b){return b.startLineNumber===b.endLineNumber&&b.startColumn===b.endColumn},s.prototype.containsPosition=function(b){return s.containsPosition(this,b)},s.containsPosition=function(b,V){return V.lineNumber<b.startLineNumber||V.lineNumber>b.endLineNumber||V.lineNumber===b.startLineNumber&&V.column<b.startColumn?!1:!(V.lineNumber===b.endLineNumber&&V.column>b.endColumn)},s.prototype.containsRange=function(b){return s.containsRange(this,b)},s.containsRange=function(b,V){return V.startLineNumber<b.startLineNumber||V.endLineNumber<b.startLineNumber||(V.startLineNumber>b.endLineNumber||V.endLineNumber>b.endLineNumber||V.startLineNumber===b.startLineNumber&&V.startColumn<b.startColumn)?!1:!(V.endLineNumber===b.endLineNumber&&V.endColumn>b.endColumn)},s.prototype.strictContainsRange=function(b){return s.strictContainsRange(this,b)},s.strictContainsRange=function(b,V){return V.startLineNumber<b.startLineNumber||V.endLineNumber<b.startLineNumber||(V.startLineNumber>b.endLineNumber||V.endLineNumber>b.endLineNumber||V.startLineNumber===b.startLineNumber&&V.startColumn<=b.startColumn)?!1:!(V.endLineNumber===b.endLineNumber&&V.endColumn>=b.endColumn)},s.prototype.plusRange=function(b){return s.plusRange(this,b)},s.plusRange=function(b,V){var Me,an,mn,zn;return V.startLineNumber<b.startLineNumber?(Me=V.startLineNumber,an=V.startColumn):V.startLineNumber===b.startLineNumber?(Me=V.startLineNumber,an=Math.min(V.startColumn,b.startColumn)):(Me=b.startLineNumber,an=b.startColumn),V.endLineNumber>b.endLineNumber?(mn=V.endLineNumber,zn=V.endColumn):V.endLineNumber===b.endLineNumber?(mn=V.endLineNumber,zn=Math.max(V.endColumn,b.endColumn)):(mn=b.endLineNumber,zn=b.endColumn),new s(Me,an,mn,zn)},s.prototype.intersectRanges=function(b){return s.intersectRanges(this,b)},s.intersectRanges=function(b,V){var Me=b.startLineNumber,an=b.startColumn,mn=b.endLineNumber,zn=b.endColumn,kt=V.startLineNumber,Pt=V.startColumn,It=V.endLineNumber,fr=V.endColumn;return Me<kt?(Me=kt,an=Pt):Me===kt&&(an=Math.max(an,Pt)),mn>It?(mn=It,zn=fr):mn===It&&(zn=Math.min(zn,fr)),Me>mn||Me===mn&&an>zn?null:new s(Me,an,mn,zn)},s.prototype.equalsRange=function(b){return s.equalsRange(this,b)},s.equalsRange=function(b,V){return!!b&&!!V&&b.startLineNumber===V.startLineNumber&&b.startColumn===V.startColumn&&b.endLineNumber===V.endLineNumber&&b.endColumn===V.endColumn},s.prototype.getEndPosition=function(){return new dt(this.endLineNumber,this.endColumn)},s.prototype.getStartPosition=function(){return new dt(this.startLineNumber,this.startColumn)},s.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},s.prototype.setEndPosition=function(b,V){return new s(this.startLineNumber,this.startColumn,b,V)},s.prototype.setStartPosition=function(b,V){return new s(b,V,this.endLineNumber,this.endColumn)},s.prototype.collapseToStart=function(){return s.collapseToStart(this)},s.collapseToStart=function(b){return new s(b.startLineNumber,b.startColumn,b.startLineNumber,b.startColumn)},s.fromPositions=function(b,V){return V===void 0&&(V=b),new s(b.lineNumber,b.column,V.lineNumber,V.column)},s.lift=function(b){return b?new s(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn):null},s.isIRange=function(b){return b&&typeof b.startLineNumber=="number"&&typeof b.startColumn=="number"&&typeof b.endLineNumber=="number"&&typeof b.endColumn=="number"},s.areIntersectingOrTouching=function(b,V){return b.endLineNumber<V.startLineNumber||b.endLineNumber===V.startLineNumber&&b.endColumn<V.startColumn?!1:!(V.endLineNumber<b.startLineNumber||V.endLineNumber===b.startLineNumber&&V.endColumn<b.startColumn)},s.areIntersecting=function(b,V){return b.endLineNumber<V.startLineNumber||b.endLineNumber===V.startLineNumber&&b.endColumn<=V.startColumn?!1:!(V.endLineNumber<b.startLineNumber||V.endLineNumber===b.startLineNumber&&V.endColumn<=b.startColumn)},s.compareRangesUsingStarts=function(b,V){if(b&&V){var Me=b.startLineNumber|0,an=V.startLineNumber|0;if(Me===an){var mn=b.startColumn|0,zn=V.startColumn|0;if(mn===zn){var kt=b.endLineNumber|0,Pt=V.endLineNumber|0;if(kt===Pt){var It=b.endColumn|0,fr=V.endColumn|0;return It-fr}return kt-Pt}return mn-zn}return Me-an}var hr=b?1:0,$r=V?1:0;return hr-$r},s.compareRangesUsingEnds=function(b,V){return b.endLineNumber===V.endLineNumber?b.endColumn===V.endColumn?b.startLineNumber===V.startLineNumber?b.startColumn-V.startColumn:b.startLineNumber-V.startLineNumber:b.endColumn-V.endColumn:b.endLineNumber-V.endLineNumber},s.spansMultipleLines=function(b){return b.endLineNumber>b.startLineNumber},s}();function st(s){return!s||typeof s!="string"?!0:s.trim().length===0}function Kn(s,b,V){V===void 0&&(V="0");for(var Me=""+s,an=[Me],mn=Me.length;mn<b;mn++)an.push(V);return an.reverse().join("")}var Ie=/{(\d+)}/g;function Ce(s){for(var b=[],V=1;V<arguments.length;V++)b[V-1]=arguments[V];return b.length===0?s:s.replace(Ie,function(Me,an){var mn=parseInt(an,10);return isNaN(mn)||mn<0||mn>=b.length?Me:b[mn]})}function _n(s){return s.replace(/[<>&]/g,function(b){switch(b){case"<":return"<";case">":return">";case"&":return"&";default:return b}})}function yt(s){return s.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Dt(s,b){b===void 0&&(b=" ");var V=Ht(s,b);return $t(V,b)}function Ht(s,b){if(!s||!b)return s;var V=b.length;if(V===0||s.length===0)return s;for(var Me=0;s.indexOf(b,Me)===Me;)Me=Me+V;return s.substring(Me)}function $t(s,b){if(!s||!b)return s;var V=b.length,Me=s.length;if(V===0||Me===0)return s;for(var an=Me,mn=-1;!(mn=s.lastIndexOf(b,an-1),mn===-1||mn+V!==an);){if(mn===0)return"";an=mn}return s.substring(0,an)}function wr(s){return s.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Yr(s,b){if(s.length<b.length)return!1;if(s===b)return!0;for(var V=0;V<b.length;V++)if(s[V]!==b[V])return!1;return!0}function Hr(s,b){var V=s.length-b.length;return V>0?s.indexOf(b,V)===V:V===0?s===b:!1}function mt(s,b,V){if(V===void 0&&(V={}),!s)throw new Error("Cannot create regex from empty string");b||(s=yt(s)),V.wholeWord&&(/\B/.test(s.charAt(0))||(s="\\b"+s),/\B/.test(s.charAt(s.length-1))||(s=s+"\\b"));var Me="";return V.global&&(Me+="g"),V.matchCase||(Me+="i"),V.multiline&&(Me+="m"),V.unicode&&(Me+="u"),new RegExp(s,Me)}function va(s){if(s.source==="^"||s.source==="^$"||s.source==="$"||s.source==="^\\s*$")return!1;var b=s.exec("");return!!(b&&s.lastIndex===0)}function Lt(s){return(s.global?"g":"")+(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")}function Wn(s){for(var b=0,V=s.length;b<V;b++){var Me=s.charCodeAt(b);if(Me!==32&&Me!==9)return b}return-1}function Vt(s,b,V){b===void 0&&(b=0),V===void 0&&(V=s.length);for(var Me=b;Me<V;Me++){var an=s.charCodeAt(Me);if(an!==32&&an!==9)return s.substring(b,Me)}return s.substring(b,V)}function pt(s,b){b===void 0&&(b=s.length-1);for(var V=b;V>=0;V--){var Me=s.charCodeAt(V);if(Me!==32&&Me!==9)return V}return-1}function Tt(s,b){return s<b?-1:s>b?1:0}function ht(s,b){for(var V=Math.min(s.length,b.length),Me=0;Me<V;Me++){var an=s.charCodeAt(Me),mn=b.charCodeAt(Me);if(an===mn)continue;Ke(an)&&(an+=32),Ke(mn)&&(mn+=32);var zn=an-mn;if(zn===0)continue;return bt(an)&&bt(mn)?zn:Tt(s.toLowerCase(),b.toLowerCase())}return s.length<b.length?-1:s.length>b.length?1:0}function bt(s){return s>=97&&s<=122}function Ke(s){return s>=65&&s<=90}function Pn(s){return bt(s)||Ke(s)}function $n(s,b){return s.length===b.length&&rr(s,b)}function rr(s,b,V){V===void 0&&(V=s.length);for(var Me=0;Me<V;Me++){var an=s.charCodeAt(Me),mn=b.charCodeAt(Me);if(an===mn)continue;if(Pn(an)&&Pn(mn)){var zn=Math.abs(an-mn);if(zn!==0&&zn!==32)return!1}else if(String.fromCharCode(an).toLowerCase()!==String.fromCharCode(mn).toLowerCase())return!1}return!0}function xa(s,b){var V=b.length;return b.length>s.length?!1:rr(s,b,V)}function Fa(s,b){var V,Me=Math.min(s.length,b.length);for(V=0;V<Me;V++)if(s.charCodeAt(V)!==b.charCodeAt(V))return V;return Me}function ri(s,b){var V,Me=Math.min(s.length,b.length),an=s.length-1,mn=b.length-1;for(V=0;V<Me;V++)if(s.charCodeAt(an-V)!==b.charCodeAt(mn-V))return V;return Me}function Si(s){return 55296<=s&&s<=56319}function xi(s){return 56320<=s&&s<=57343}function vi(s,b,V){var Me=s.charCodeAt(V);if(Si(Me)&&V+1<b){var an=s.charCodeAt(V+1);if(xi(an))return(Me-55296<<10)+(an-56320)+65536}return Me}function Oi(s,b){var V=s.charCodeAt(b-1);if(xi(V)&&b>1){var Me=s.charCodeAt(b-2);if(Si(Me))return(Me-55296<<10)+(V-56320)+65536}return V}function Ja(s,b){var V=_a.getInstance(),Me=b,an=s.length,mn=vi(s,an,b);b+=mn>=65536?2:1;for(var zn=V.getGraphemeBreakType(mn);b<an;){var kt=vi(s,an,b),Pt=V.getGraphemeBreakType(kt);if(Jr(zn,Pt))break;b+=kt>=65536?2:1,zn=Pt}return b-Me}function Ka(s,b){var V=_a.getInstance(),Me=b,an=Oi(s,b);b-=an>=65536?2:1;for(var mn=V.getGraphemeBreakType(an);b>0;){var zn=Oi(s,b),kt=V.getGraphemeBreakType(zn);if(Jr(kt,mn))break;b-=zn>=65536?2:1,mn=kt}return Me-b}var ua=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function bi(s){return ua.test(s)}var Vo=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function wo(s){return Vo.test(s)}var Mo=/^[\t\n\r\x20-\x7E]*$/;function uo(s){return Mo.test(s)}function ci(s){for(var b=0,V=s.length;b<V;b++)if(Gi(s.charCodeAt(b)))return!0;return!1}function Gi(s){return s=+s,s>=11904&&s<=55215||s>=63744&&s<=64255||s>=65281&&s<=65374}function ji(s){return s>=127462&&s<=127487||s>=9728&&s<=10175||s>=127744&&s<=128591||s>=128640&&s<=128764||s>=128992&&s<=129003||s>=129280&&s<=129535||s>=129648&&s<=129651||s>=129656&&s<=129666||s>=129680&&s<=129685}var Ro=String.fromCharCode(65279);function Ao(s){return!!(s&&s.length>0&&s.charCodeAt(0)===65279)}function _o(s){return btoa(encodeURIComponent(s))}function Ri(s,b){for(var V="",Me=0;Me<b;Me++)V+=s;return V}function xt(s,b){return b===void 0&&(b=!1),s?(b&&(s=s.replace(/\\./g,"")),s.toLowerCase()!==s):!1}function Kt(s){var b=90-65+1;return s=s%(2*b),s<b?String.fromCharCode(97+s):String.fromCharCode(65+s-b)}function yr(s){var b=_a.getInstance();return b.getGraphemeBreakType(s)}function Jr(s,b){return s===0?b!==5&&b!==7:s===2&&b===3?!1:s===4||s===2||s===3||(b===4||b===2||b===3)?!0:s===8&&(b===8||b===9||b===11||b===12)||((s===11||s===9)&&(b===9||b===10)||((s===12||s===10)&&b===10||(b===5||b===13||(b===7||(s===1||s===13&&b===14)))))?!1:!(s===6&&b===6)}var _a=function(){function s(){this._data=La()}return s.getInstance=function(){return s._INSTANCE||(s._INSTANCE=new s),s._INSTANCE},s.prototype.getGraphemeBreakType=function(b){if(b<32)return b===10?3:b===13?2:4;if(b<127)return 0;for(var V=this._data,Me=V.length/3,an=1;an<=Me;)if(b<V[3*an])an=2*an;else if(b>V[3*an+1])an=2*an+1;else return V[3*an+2];return 0},s._INSTANCE=null,s}();function La(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}var qr=3;function pi(s,b,V,Me){var an=new Fe(s,b,V);return an.ComputeDiff(Me)}var Li=function(){function s(b){for(var V=[],Me=[],an=0,mn=b.length;an<mn;an++)V[an]=Vn(b[an],1),Me[an]=Mt(b[an],1);this.lines=b,this._startColumns=V,this._endColumns=Me}return s.prototype.getElements=function(){for(var b=[],V=0,Me=this.lines.length;V<Me;V++)b[V]=this.lines[V].substring(this._startColumns[V]-1,this._endColumns[V]-1);return b},s.prototype.getStartLineNumber=function(b){return b+1},s.prototype.getEndLineNumber=function(b){return b+1},s.prototype.createCharSequence=function(b,V,Me){for(var an=[],mn=[],zn=[],kt=0,Pt=V;Pt<=Me;Pt++)for(var It=this.lines[Pt],fr=b?this._startColumns[Pt]:1,hr=b?this._endColumns[Pt]:It.length+1,$r=fr;$r<hr;$r++)an[kt]=It.charCodeAt($r-1),mn[kt]=Pt+1,zn[kt]=$r,kt++;return new mi(an,mn,zn)},s}(),mi=function(){function s(b,V,Me){this._charCodes=b,this._lineNumbers=V,this._columns=Me}return s.prototype.getElements=function(){return this._charCodes},s.prototype.getStartLineNumber=function(b){return this._lineNumbers[b]},s.prototype.getStartColumn=function(b){return this._columns[b]},s.prototype.getEndLineNumber=function(b){return this._lineNumbers[b]},s.prototype.getEndColumn=function(b){return this._columns[b]+1},s}(),da=function(){function s(b,V,Me,an,mn,zn,kt,Pt){this.originalStartLineNumber=b,this.originalStartColumn=V,this.originalEndLineNumber=Me,this.originalEndColumn=an,this.modifiedStartLineNumber=mn,this.modifiedStartColumn=zn,this.modifiedEndLineNumber=kt,this.modifiedEndColumn=Pt}return s.createFromDiffChange=function(b,V,Me){var an,mn,zn,kt,Pt,It,fr,hr;return b.originalLength===0?(an=0,mn=0,zn=0,kt=0):(an=V.getStartLineNumber(b.originalStart),mn=V.getStartColumn(b.originalStart),zn=V.getEndLineNumber(b.originalStart+b.originalLength-1),kt=V.getEndColumn(b.originalStart+b.originalLength-1)),b.modifiedLength===0?(Pt=0,It=0,fr=0,hr=0):(Pt=Me.getStartLineNumber(b.modifiedStart),It=Me.getStartColumn(b.modifiedStart),fr=Me.getEndLineNumber(b.modifiedStart+b.modifiedLength-1),hr=Me.getEndColumn(b.modifiedStart+b.modifiedLength-1)),new s(an,mn,zn,kt,Pt,It,fr,hr)},s}();function en(s){if(s.length<=1)return s;for(var b=[s[0]],V=b[0],Me=1,an=s.length;Me<an;Me++){var mn=s[Me],zn=mn.originalStart-(V.originalStart+V.originalLength),kt=mn.modifiedStart-(V.modifiedStart+V.modifiedLength),Pt=Math.min(zn,kt);Pt<qr?(V.originalLength=mn.originalStart+mn.originalLength-V.originalStart,V.modifiedLength=mn.modifiedStart+mn.modifiedLength-V.modifiedStart):(b.push(mn),V=mn)}return b}var vn=function(){function s(b,V,Me,an,mn){this.originalStartLineNumber=b,this.originalEndLineNumber=V,this.modifiedStartLineNumber=Me,this.modifiedEndLineNumber=an,this.charChanges=mn}return s.createFromDiffResult=function(b,V,Me,an,mn,zn,kt){var Pt,It,fr,hr,$r=void 0;if(V.originalLength===0?(Pt=Me.getStartLineNumber(V.originalStart)-1,It=0):(Pt=Me.getStartLineNumber(V.originalStart),It=Me.getEndLineNumber(V.originalStart+V.originalLength-1)),V.modifiedLength===0?(fr=an.getStartLineNumber(V.modifiedStart)-1,hr=0):(fr=an.getStartLineNumber(V.modifiedStart),hr=an.getEndLineNumber(V.modifiedStart+V.modifiedLength-1)),zn&&V.originalLength>0&&V.originalLength<20&&V.modifiedLength>0&&V.modifiedLength<20&&mn()){var ba=Me.createCharSequence(b,V.originalStart,V.originalStart+V.originalLength-1),ra=an.createCharSequence(b,V.modifiedStart,V.modifiedStart+V.modifiedLength-1),Ba=pi(ba,ra,mn,!0).changes;kt&&(Ba=en(Ba)),$r=[];for(var Ai=0,$a=Ba.length;Ai<$a;Ai++)$r.push(da.createFromDiffChange(Ba[Ai],ba,ra))}return new s(Pt,It,fr,hr,$r)},s}(),Ln=function(){function s(b,V,Me){this.shouldComputeCharChanges=Me.shouldComputeCharChanges,this.shouldPostProcessCharChanges=Me.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=Me.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=Me.shouldMakePrettyDiff,this.originalLines=b,this.modifiedLines=V,this.original=new Li(b),this.modified=new Li(V),this.continueLineDiff=tr(Me.maxComputationTime),this.continueCharDiff=tr(Me.maxComputationTime===0?0:Math.min(Me.maxComputationTime,5e3))}return s.prototype.computeDiff=function(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};var b=pi(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),V=b.changes,Me=b.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var an=[],mn=0,zn=V.length;mn<zn;mn++)an.push(vn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,V[mn],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:Me,changes:an}}for(var kt=[],Pt=0,It=0,mn=-1,fr=V.length;mn<fr;mn++){for(var hr=mn+1<fr?V[mn+1]:null,$r=hr?hr.originalStart:this.originalLines.length,ba=hr?hr.modifiedStart:this.modifiedLines.length;Pt<$r&&It<ba;){var ra=this.originalLines[Pt],Ba=this.modifiedLines[It];if(ra!==Ba){{for(var Ai=Vn(ra,1),$a=Vn(Ba,1);Ai>1&&$a>1;){var ki=ra.charCodeAt(Ai-2),Qr=Ba.charCodeAt($a-2);if(ki!==Qr)break;Ai--,$a--}(Ai>1||$a>1)&&this._pushTrimWhitespaceCharChange(kt,Pt+1,1,Ai,It+1,1,$a)}{for(var ia=Mt(ra,1),oa=Mt(Ba,1),sa=ra.length+1,Da=Ba.length+1;ia<sa&&oa<Da;){var ki=ra.charCodeAt(ia-1),Qr=ra.charCodeAt(oa-1);if(ki!==Qr)break;ia++,oa++}(ia<sa||oa<Da)&&this._pushTrimWhitespaceCharChange(kt,Pt+1,ia,sa,It+1,oa,Da)}}Pt++,It++}hr&&(kt.push(vn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,hr,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),Pt+=hr.originalLength,It+=hr.modifiedLength)}return{quitEarly:Me,changes:kt}},s.prototype._pushTrimWhitespaceCharChange=function(b,V,Me,an,mn,zn,kt){if(this._mergeTrimWhitespaceCharChange(b,V,Me,an,mn,zn,kt))return;var Pt=void 0;this.shouldComputeCharChanges&&(Pt=[new da(V,Me,V,an,mn,zn,mn,kt)]),b.push(new vn(V,V,mn,mn,Pt))},s.prototype._mergeTrimWhitespaceCharChange=function(b,V,Me,an,mn,zn,kt){var Pt=b.length;if(Pt===0)return!1;var It=b[Pt-1];return It.originalEndLineNumber===0||It.modifiedEndLineNumber===0?!1:It.originalEndLineNumber+1===V&&It.modifiedEndLineNumber+1===mn?(It.originalEndLineNumber=V,It.modifiedEndLineNumber=mn,this.shouldComputeCharChanges&&It.charChanges&&It.charChanges.push(new da(V,Me,V,an,mn,zn,mn,kt)),!0):!1},s}();function Vn(s,b){var V=Wn(s);return V===-1?b:V+1}function Mt(s,b){var V=pt(s);return V===-1?b:V+2}function tr(s){if(s===0)return function(){return!0};var b=Date.now();return function(){return Date.now()-b<s}}function dr(s){return s<0?0:s>255?255:s|0}function Pr(s){return s<0?0:s>4294967295?4294967295:s|0}var za=function(){function s(b,V){this.index=b,this.remainder=V}return s}(),Ia=function(){function s(b){this.values=b,this.prefixSum=new Uint32Array(b.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return s.prototype.insertValues=function(b,V){b=Pr(b);var Me=this.values,an=this.prefixSum,mn=V.length;return mn===0?!1:(this.values=new Uint32Array(Me.length+mn),this.values.set(Me.subarray(0,b),0),this.values.set(Me.subarray(b),b+mn),this.values.set(V,b),b-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=b-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(an.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},s.prototype.changeValue=function(b,V){return b=Pr(b),V=Pr(V),this.values[b]===V?!1:(this.values[b]=V,b-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=b-1),!0)},s.prototype.removeValues=function(b,V){b=Pr(b),V=Pr(V);var Me=this.values,an=this.prefixSum;if(b>=Me.length)return!1;var mn=Me.length-b;return V>=mn&&(V=mn),V===0?!1:(this.values=new Uint32Array(Me.length-V),this.values.set(Me.subarray(0,b),0),this.values.set(Me.subarray(b+V),b),this.prefixSum=new Uint32Array(this.values.length),b-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=b-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(an.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},s.prototype.getTotalValue=function(){return this.values.length===0?0:this._getAccumulatedValue(this.values.length-1)},s.prototype.getAccumulatedValue=function(b){return b<0?0:(b=Pr(b),this._getAccumulatedValue(b))},s.prototype._getAccumulatedValue=function(b){if(b<=this.prefixSumValidIndex[0])return this.prefixSum[b];var V=this.prefixSumValidIndex[0]+1;V===0&&(this.prefixSum[0]=this.values[0],V++),b>=this.values.length&&(b=this.values.length-1);for(var Me=V;Me<=b;Me++)this.prefixSum[Me]=this.prefixSum[Me-1]+this.values[Me];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],b),this.prefixSum[b]},s.prototype.getIndexOf=function(b){b=Math.floor(b),this.getTotalValue();for(var V=0,Me=this.values.length-1,an=0,mn=0,zn=0;V<=Me;)if(an=V+(Me-V)/2|0,mn=this.prefixSum[an],zn=mn-this.values[an],b<zn)Me=an-1;else if(b>=mn)V=an+1;else break;return new za(an,b-zn)},s}(),Ii=function(){function s(b,V,Me,an){this._uri=b,this._lines=V,this._eol=Me,this._versionId=an,this._lineStarts=null}return s.prototype.dispose=function(){this._lines.length=0},s.prototype.getText=function(){return this._lines.join(this._eol)},s.prototype.onEvents=function(b){b.eol&&b.eol!==this._eol&&(this._eol=b.eol,this._lineStarts=null);for(var V=b.changes,Me=0,an=V;Me<an.length;Me++){var mn=an[Me];this._acceptDeleteRange(mn.range),this._acceptInsertText(new dt(mn.range.startLineNumber,mn.range.startColumn),mn.text)}this._versionId=b.versionId},s.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var b=this._eol.length,V=this._lines.length,Me=new Uint32Array(V),an=0;an<V;an++)Me[an]=this._lines[an].length+b;this._lineStarts=new Ia(Me)}},s.prototype._setLineText=function(b,V){this._lines[b]=V,this._lineStarts&&this._lineStarts.changeValue(b,this._lines[b].length+this._eol.length)},s.prototype._acceptDeleteRange=function(b){if(b.startLineNumber===b.endLineNumber){if(b.startColumn===b.endColumn)return;this._setLineText(b.startLineNumber-1,this._lines[b.startLineNumber-1].substring(0,b.startColumn-1)+this._lines[b.startLineNumber-1].substring(b.endColumn-1));return}this._setLineText(b.startLineNumber-1,this._lines[b.startLineNumber-1].substring(0,b.startColumn-1)+this._lines[b.endLineNumber-1].substring(b.endColumn-1)),this._lines.splice(b.startLineNumber,b.endLineNumber-b.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(b.startLineNumber,b.endLineNumber-b.startLineNumber)},s.prototype._acceptInsertText=function(b,V){if(V.length===0)return;var Me=V.split(/\r\n|\r|\n/);if(Me.length===1){this._setLineText(b.lineNumber-1,this._lines[b.lineNumber-1].substring(0,b.column-1)+Me[0]+this._lines[b.lineNumber-1].substring(b.column-1));return}Me[Me.length-1]+=this._lines[b.lineNumber-1].substring(b.column-1),this._setLineText(b.lineNumber-1,this._lines[b.lineNumber-1].substring(0,b.column-1)+Me[0]);for(var an=new Uint32Array(Me.length-1),mn=1;mn<Me.length;mn++)this._lines.splice(b.lineNumber+mn-1,0,Me[mn]),an[mn-1]=Me[mn].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(b.lineNumber,an)},s}(),ai="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function hi(s){s===void 0&&(s="");for(var b="(-?\\d*\\.\\d\\w*)|([^",V=0,Me=ai;V<Me.length;V++){var an=Me[V];if(s.indexOf(an)>=0)continue;b+="\\"+an}return b+="\\s]+)",new RegExp(b,"g")}var Xe=hi();function qn(s){var b=Xe;if(s&&s instanceof RegExp)if(s.global)b=s;else{var V="g";s.ignoreCase&&(V+="i"),s.multiline&&(V+="m"),s.unicode&&(V+="u"),b=new RegExp(s.source,V)}return b.lastIndex=0,b}function ge(s,b,V,Me){var an=s-1-Me,mn=V.lastIndexOf(" ",an-1)+1;b.lastIndex=mn;for(var zn;zn=b.exec(V);){var kt=zn.index||0;if(kt<=an&&b.lastIndex>=an)return{word:zn[0],startColumn:Me+1+kt,endColumn:Me+1+b.lastIndex}}return null}function hn(s,b,V,Me){var an=s-1-Me;b.lastIndex=0;for(var mn;mn=b.exec(V);){var zn=mn.index||0;if(zn>an)return null;if(b.lastIndex>=an)return{word:mn[0],startColumn:Me+1+zn,endColumn:Me+1+b.lastIndex}}return null}function Hn(s,b,V,Me){b.lastIndex=0;var an=b.exec(V);if(!an)return null;var mn=an[0].indexOf(" ")>=0?hn(s,b,V,Me):ge(s,b,V,Me);return b.lastIndex=0,mn}var de=function(){function s(b){var V=dr(b);this._defaultValue=V,this._asciiMap=s._createAsciiMap(V),this._map=new Map}return s._createAsciiMap=function(b){for(var V=new Uint8Array(256),Me=0;Me<256;Me++)V[Me]=b;return V},s.prototype.set=function(b,V){var Me=dr(V);b>=0&&b<256?this._asciiMap[b]=Me:this._map.set(b,Me)},s.prototype.get=function(b){return b>=0&&b<256?this._asciiMap[b]:this._map.get(b)||this._defaultValue},s}(),rn=function(){function s(){this._actual=new de(0)}return s.prototype.add=function(b){this._actual.set(b,1)},s.prototype.has=function(b){return this._actual.get(b)===1},s}(),kn=function(){function s(b,V,Me){for(var an=new Uint8Array(b*V),mn=0,zn=b*V;mn<zn;mn++)an[mn]=Me;this._data=an,this.rows=b,this.cols=V}return s.prototype.get=function(b,V){return this._data[b*this.cols+V]},s.prototype.set=function(b,V,Me){this._data[b*this.cols+V]=Me},s}(),Qn=function(){function s(b){for(var V=0,Me=0,an=0,mn=b.length;an<mn;an++){var zn=b[an],kt=zn[0],Pt=zn[1],It=zn[2];Pt>V&&(V=Pt),kt>Me&&(Me=kt),It>Me&&(Me=It)}V++,Me++;for(var fr=new kn(Me,V,0),an=0,mn=b.length;an<mn;an++){var hr=b[an],kt=hr[0],Pt=hr[1],It=hr[2];fr.set(kt,Pt,It)}this._states=fr,this._maxCharCode=V}return s.prototype.nextState=function(b,V){return V<0||V>=this._maxCharCode?0:this._states.get(b,V)},s}(),lt=null;function Ft(){return lt===null&&(lt=new Qn([[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]])),lt}var on=null;function kr(){if(on===null){on=new de(0);for(var s=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF20\uFF03\uFF04\uFF05\uFF06\uFF0A\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u3011\u300F\u300D\u300B\u3009\u201D\u2019\uFF40\uFF5E\u2026`,b=0;b<s.length;b++)on.set(s.charCodeAt(b),1);for(var V=".,;",b=0;b<V.length;b++)on.set(V.charCodeAt(b),2)}return on}var fa=function(){function s(){}return s._createLink=function(b,V,Me,an,mn){var zn=mn-1;do{var kt=V.charCodeAt(zn),Pt=b.get(kt);if(Pt!==2)break;zn--}while(zn>an);if(an>0){var It=V.charCodeAt(an-1),fr=V.charCodeAt(zn);(It===40&&fr===41||It===91&&fr===93||It===123&&fr===125)&&zn--}return{range:{startLineNumber:Me,startColumn:an+1,endLineNumber:Me,endColumn:zn+2},url:V.substring(an,zn+1)}},s.computeLinks=function(b,V){V===void 0&&(V=Ft());for(var Me=kr(),an=[],mn=1,zn=b.getLineCount();mn<=zn;mn++){for(var kt=b.getLineContent(mn),Pt=kt.length,It=0,fr=0,hr=0,$r=1,ba=!1,ra=!1,Ba=!1;It<Pt;){var Ai=!1,$a=kt.charCodeAt(It);if($r===13){var ki=void 0;switch($a){case 40:ba=!0,ki=0;break;case 41:ki=ba?0:1;break;case 91:ra=!0,ki=0;break;case 93:ki=ra?0:1;break;case 123:Ba=!0,ki=0;break;case 125:ki=Ba?0:1;break;case 39:ki=hr===34||hr===96?0:1;break;case 34:ki=hr===39||hr===96?0:1;break;case 96:ki=hr===39||hr===34?0:1;break;case 42:ki=hr===42?1:0;break;case 124:ki=hr===124?1:0;break;default:ki=Me.get($a)}ki===1&&(an.push(s._createLink(Me,kt,mn,fr,It)),Ai=!0)}else if($r===12){var ki=void 0;$a===91?(ra=!0,ki=0):ki=Me.get($a),ki===1?Ai=!0:$r=13}else $r=V.nextState($r,$a),$r===0&&(Ai=!0);Ai&&($r=1,ba=!1,ra=!1,Ba=!1,fr=It+1,hr=$a),It++}$r===13&&an.push(s._createLink(Me,kt,mn,fr,Pt))}return an},s}();function Wa(s){return!s||typeof s.getLineCount!="function"||typeof s.getLineContent!="function"?[]:fa.computeLinks(s)}var to=function(){function s(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return s.prototype.navigateValueSet=function(b,V,Me,an,mn){if(b&&V){var zn=this.doNavigateValueSet(V,mn);if(zn)return{range:b,value:zn}}if(Me&&an){var zn=this.doNavigateValueSet(an,mn);if(zn)return{range:Me,value:zn}}return null},s.prototype.doNavigateValueSet=function(b,V){var Me=this.numberReplace(b,V);return Me!==null?Me:this.textReplace(b,V)},s.prototype.numberReplace=function(b,V){var Me=Math.pow(10,b.length-(b.lastIndexOf(".")+1)),an=Number(b),mn=parseFloat(b);return!isNaN(an)&&!isNaN(mn)&&an===mn?an===0&&!V?null:(an=Math.floor(an*Me),an+=V?Me:-Me,String(an/Me)):null},s.prototype.textReplace=function(b,V){return this.valueSetsReplace(this._defaultValueSet,b,V)},s.prototype.valueSetsReplace=function(b,V,Me){for(var an=null,mn=0,zn=b.length;an===null&&mn<zn;mn++)an=this.valueSetReplace(b[mn],V,Me);return an},s.prototype.valueSetReplace=function(b,V,Me){var an=b.indexOf(V);return an>=0?(an+=Me?1:-1,an<0?an=b.length-1:an%=b.length,b[an]):null},s.INSTANCE=new s,s}(),ha=co("URDS");function Yo(s){var b=this,V=!1,Me;return function(){return V||(V=!0,Me=s.apply(b,arguments)),Me}}var ko=function(){function s(b){this.element=b,this.next=s.Undefined,this.prev=s.Undefined}return s.Undefined=new s(void 0),s}(),ks=function(){function s(){this._first=ko.Undefined,this._last=ko.Undefined,this._size=0}return Object.defineProperty(s.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),s.prototype.isEmpty=function(){return this._first===ko.Undefined},s.prototype.clear=function(){this._first=ko.Undefined,this._last=ko.Undefined,this._size=0},s.prototype.unshift=function(b){return this._insert(b,!1)},s.prototype.push=function(b){return this._insert(b,!0)},s.prototype._insert=function(b,V){var Me=this,an=new ko(b);if(this._first===ko.Undefined)this._first=an,this._last=an;else if(V){var mn=this._last;this._last=an,an.prev=mn,mn.next=an}else{var zn=this._first;this._first=an,an.next=zn,zn.prev=an}this._size+=1;var kt=!1;return function(){kt||(kt=!0,Me._remove(an))}},s.prototype.shift=function(){if(this._first===ko.Undefined)return;var b=this._first.element;return this._remove(this._first),b},s.prototype.pop=function(){if(this._last===ko.Undefined)return;var b=this._last.element;return this._remove(this._last),b},s.prototype._remove=function(b){if(b.prev!==ko.Undefined&&b.next!==ko.Undefined){var V=b.prev;V.next=b.next,b.next.prev=V}else b.prev===ko.Undefined&&b.next===ko.Undefined?(this._first=ko.Undefined,this._last=ko.Undefined):b.next===ko.Undefined?(this._last=this._last.prev,this._last.next=ko.Undefined):b.prev===ko.Undefined&&(this._first=this._first.next,this._first.prev=ko.Undefined);this._size-=1},s.prototype.iterator=function(){var b,V=this._first;return{next:function(){return V===ko.Undefined?Qe:(b?b.value=V.element:b={done:!1,value:V.element},V=V.next,b)}}},s.prototype.toArray=function(){for(var b=[],V=this._first;V!==ko.Undefined;V=V.next)b.push(V.element);return b},s}(),Rs=function(){var s=function(b,V){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,an){Me.__proto__=an}||function(Me,an){for(var mn in an)an.hasOwnProperty(mn)&&(Me[mn]=an[mn])},s(b,V)};return function(b,V){s(b,V);function Me(){this.constructor=b}b.prototype=V===null?Object.create(V):(Me.prototype=V.prototype,new Me)}}(),ml;(function(s){s.None=function(){return Du.None};function b(Qr){return function(ia,oa,sa){oa===void 0&&(oa=null);var Da=!1,Ha;return Ha=Qr(function(ti){return Da?void 0:(Ha?Ha.dispose():Da=!0,ia.call(oa,ti))},null,sa),Da&&Ha.dispose(),Ha}}s.once=b;function V(Qr,ia){return Pt(function(oa,sa,Da){return sa===void 0&&(sa=null),Qr(function(Ha){return oa.call(sa,ia(Ha))},null,Da)})}s.map=V;function Me(Qr,ia){return Pt(function(oa,sa,Da){return sa===void 0&&(sa=null),Qr(function(Ha){ia(Ha),oa.call(sa,Ha)},null,Da)})}s.forEach=Me;function an(Qr,ia){return Pt(function(oa,sa,Da){return sa===void 0&&(sa=null),Qr(function(Ha){return ia(Ha)&&oa.call(sa,Ha)},null,Da)})}s.filter=an;function mn(Qr){return Qr}s.signal=mn;function zn(){for(var Qr=[],ia=0;ia<arguments.length;ia++)Qr[ia]=arguments[ia];return function(oa,sa,Da){return sa===void 0&&(sa=null),Xo.apply(void 0,Qr.map(function(Ha){return Ha(function(ti){return oa.call(sa,ti)},null,Da)}))}}s.any=zn;function kt(Qr,ia,oa){var sa=oa;return V(Qr,function(Da){return sa=ia(sa,Da),sa})}s.reduce=kt;function Pt(Qr){var ia,oa=new $o({onFirstListenerAdd:function(){ia=Qr(oa.fire,oa)},onLastListenerRemove:function(){ia.dispose()}});return oa.event}s.snapshot=Pt;function It(Qr,ia,oa,sa,Da){oa===void 0&&(oa=100),sa===void 0&&(sa=!1);var Ha,ti=void 0,Qi=void 0,Za=0,Ls=new $o({leakWarningThreshold:Da,onFirstListenerAdd:function(){Ha=Qr(function(zr){Za++,ti=ia(ti,zr),sa&&!Qi&&(Ls.fire(ti),ti=void 0),clearTimeout(Qi),Qi=setTimeout(function(){var Zt=ti;ti=void 0,Qi=void 0,(!sa||Za>1)&&Ls.fire(Zt),Za=0},oa)})},onLastListenerRemove:function(){Ha.dispose()}});return Ls.event}s.debounce=It;function fr(Qr){var ia=new Date().getTime();return V(b(Qr),function(oa){return new Date().getTime()-ia})}s.stopwatch=fr;function hr(Qr){var ia=!0,oa;return an(Qr,function(sa){var Da=ia||sa!==oa;return ia=!1,oa=sa,Da})}s.latch=hr;function $r(Qr,ia,oa){ia===void 0&&(ia=!1),oa===void 0&&(oa=[]);var sa=oa.slice(),Da=Qr(function(Qi){sa?sa.push(Qi):ti.fire(Qi)}),Ha=function(){sa&&sa.forEach(function(Qi){return ti.fire(Qi)}),sa=null},ti=new $o({onFirstListenerAdd:function(){Da||(Da=Qr(function(Qi){return ti.fire(Qi)}))},onFirstListenerDidAdd:function(){sa&&(ia?setTimeout(Ha):Ha())},onLastListenerRemove:function(){Da&&Da.dispose(),Da=null}});return ti.event}s.buffer=$r;var ba=function(){function Qr(ia){this.event=ia}return Qr.prototype.map=function(ia){return new Qr(V(this.event,ia))},Qr.prototype.forEach=function(ia){return new Qr(Me(this.event,ia))},Qr.prototype.filter=function(ia){return new Qr(an(this.event,ia))},Qr.prototype.reduce=function(ia,oa){return new Qr(kt(this.event,ia,oa))},Qr.prototype.latch=function(){return new Qr(hr(this.event))},Qr.prototype.debounce=function(ia,oa,sa,Da){return oa===void 0&&(oa=100),sa===void 0&&(sa=!1),new Qr(It(this.event,ia,oa,sa,Da))},Qr.prototype.on=function(ia,oa,sa){return this.event(ia,oa,sa)},Qr.prototype.once=function(ia,oa,sa){return b(this.event)(ia,oa,sa)},Qr}();function ra(Qr){return new ba(Qr)}s.chain=ra;function Ba(Qr,ia,oa){oa===void 0&&(oa=function(Qi){return Qi});var sa=function(){for(var Qi=[],Za=0;Za<arguments.length;Za++)Qi[Za]=arguments[Za];return ti.fire(oa.apply(void 0,Qi))},Da=function(){return Qr.on(ia,sa)},Ha=function(){return Qr.removeListener(ia,sa)},ti=new $o({onFirstListenerAdd:Da,onLastListenerRemove:Ha});return ti.event}s.fromNodeEventEmitter=Ba;function Ai(Qr,ia,oa){oa===void 0&&(oa=function(Qi){return Qi});var sa=function(){for(var Qi=[],Za=0;Za<arguments.length;Za++)Qi[Za]=arguments[Za];return ti.fire(oa.apply(void 0,Qi))},Da=function(){return Qr.addEventListener(ia,sa)},Ha=function(){return Qr.removeEventListener(ia,sa)},ti=new $o({onFirstListenerAdd:Da,onLastListenerRemove:Ha});return ti.event}s.fromDOMEventEmitter=Ai;function $a(Qr){var ia=new $o,oa=!1;return Qr.then(void 0,function(){return null}).then(function(){oa?ia.fire(void 0):setTimeout(function(){return ia.fire(void 0)},0)}),oa=!0,ia.event}s.fromPromise=$a;function ki(Qr){return new Promise(function(ia){return b(Qr)(ia)})}s.toPromise=ki})(ml||(ml={}));var Fs=-1,Il=function(){function s(b,V){V===void 0&&(V=Math.random().toString(18).slice(2,5)),this.customThreshold=b,this.name=V,this._warnCountdown=0}return s.prototype.dispose=function(){this._stacks&&this._stacks.clear()},s.prototype.check=function(b){var V=this,Me=Fs;if(typeof this.customThreshold=="number"&&(Me=this.customThreshold),Me<=0||b<Me)return;this._stacks||(this._stacks=new Map);var an=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),mn=this._stacks.get(an)||0;if(this._stacks.set(an,mn+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=Me*.5;var zn,kt=0;this._stacks.forEach(function(Pt,It){(!zn||kt<Pt)&&(zn=It,kt=Pt)}),console.warn("["+this.name+"] potential listener LEAK detected, having "+b+" listeners already. MOST frequent listener ("+kt+"):"),console.warn(zn)}return function(){var Pt=V._stacks.get(an)||0;V._stacks.set(an,Pt-1)}},s}(),$o=function(){function s(b){this._disposed=!1,this._options=b,this._leakageMon=Fs>0?new Il(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(s.prototype,"event",{get:function(){var b=this;return this._event||(this._event=function(V,Me,an){b._listeners||(b._listeners=new ks);var mn=b._listeners.isEmpty();mn&&b._options&&b._options.onFirstListenerAdd&&b._options.onFirstListenerAdd(b);var zn=b._listeners.push(Me?[V,Me]:V);mn&&b._options&&b._options.onFirstListenerDidAdd&&b._options.onFirstListenerDidAdd(b),b._options&&b._options.onListenerDidAdd&&b._options.onListenerDidAdd(b,V,Me);var kt;b._leakageMon&&(kt=b._leakageMon.check(b._listeners.size));var Pt;return Pt={dispose:function(){if(kt&&kt(),Pt.dispose=s._noop,!b._disposed&&(zn(),b._options&&b._options.onLastListenerRemove)){var It=b._listeners&&!b._listeners.isEmpty();It||b._options.onLastListenerRemove(b)}}},an instanceof Od?an.add(Pt):Array.isArray(an)&&an.push(Pt),Pt}),this._event},enumerable:!0,configurable:!0}),s.prototype.fire=function(b){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new ks);for(var V=this._listeners.iterator(),Me=V.next();!Me.done;Me=V.next())this._deliveryQueue.push([Me.value,b]);for(;this._deliveryQueue.size>0;){var an=this._deliveryQueue.shift(),mn=an[0],zn=an[1];try{typeof mn=="function"?mn.call(void 0,zn):mn[0].call(mn[1],zn)}catch(kt){Bo(kt)}}}},s.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},s._noop=function(){},s}(),hl=function(s){Rs(b,s);function b(V){var Me=s.call(this,V)||this;return Me._isPaused=0,Me._eventQueue=new ks,Me._mergeFn=V&&V.merge,Me}return b.prototype.pause=function(){this._isPaused++},b.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var V=this._eventQueue.toArray();this._eventQueue.clear(),s.prototype.fire.call(this,this._mergeFn(V))}else for(;!this._isPaused&&this._eventQueue.size!==0;)s.prototype.fire.call(this,this._eventQueue.shift())},b.prototype.fire=function(V){this._listeners&&(this._isPaused!==0?this._eventQueue.push(V):s.prototype.fire.call(this,V))},b}($o),Ul=function(){function s(){var b=this;this.hasListeners=!1,this.events=[],this.emitter=new $o({onFirstListenerAdd:function(){return b.onFirstListenerAdd()},onLastListenerRemove:function(){return b.onLastListenerRemove()}})}return Object.defineProperty(s.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),s.prototype.add=function(b){var V=this,Me={event:b,listener:null};this.events.push(Me),this.hasListeners&&this.hook(Me);var an=function(){V.hasListeners&&V.unhook(Me);var mn=V.events.indexOf(Me);V.events.splice(mn,1)};return Cu(Yo(an))},s.prototype.onFirstListenerAdd=function(){var b=this;this.hasListeners=!0,this.events.forEach(function(V){return b.hook(V)})},s.prototype.onLastListenerRemove=function(){var b=this;this.hasListeners=!1,this.events.forEach(function(V){return b.unhook(V)})},s.prototype.hook=function(b){var V=this;b.listener=b.event(function(Me){return V.emitter.fire(Me)})},s.prototype.unhook=function(b){b.listener&&b.listener.dispose(),b.listener=null},s.prototype.dispose=function(){this.emitter.dispose()},s}(),gl=function(){function s(){this.buffers=[]}return s.prototype.wrapEvent=function(b){var V=this;return function(Me,an,mn){return b(function(zn){var kt=V.buffers[V.buffers.length-1];kt?kt.push(function(){return Me.call(an,zn)}):Me.call(an,zn)},void 0,mn)}},s.prototype.bufferEvents=function(b){var V=[];this.buffers.push(V);var Me=b();return this.buffers.pop(),V.forEach(function(an){return an()}),Me},s}(),po=function(){function s(){var b=this;this.listening=!1,this.inputEvent=ml.None,this.inputEventListener=Du.None,this.emitter=new $o({onFirstListenerDidAdd:function(){b.listening=!0,b.inputEventListener=b.inputEvent(b.emitter.fire,b.emitter)},onLastListenerRemove:function(){b.listening=!1,b.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(s.prototype,"input",{set:function(b){this.inputEvent=b,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=b(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),s.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},s}(),Cs=Object.freeze(function(s,b){var V=setTimeout(s.bind(b),0);return{dispose:function(){clearTimeout(V)}}}),Ds;(function(s){function b(V){return V===s.None||V===s.Cancelled||V instanceof _s?!0:!V||typeof V!="object"?!1:typeof V.isCancellationRequested=="boolean"&&typeof V.onCancellationRequested=="function"}s.isCancellationToken=b,s.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:ml.None}),s.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Cs})})(Ds||(Ds={}));var _s=function(){function s(){this._isCancelled=!1,this._emitter=null}return s.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(s.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?Cs:(this._emitter||(this._emitter=new $o),this._emitter.event)},enumerable:!0,configurable:!0}),s.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},s}(),yl=function(){function s(b){this._token=void 0,this._parentListener=void 0,this._parentListener=b&&b.onCancellationRequested(this.cancel,this)}return Object.defineProperty(s.prototype,"token",{get:function(){return this._token||(this._token=new _s),this._token},enumerable:!0,configurable:!0}),s.prototype.cancel=function(){this._token?this._token instanceof _s&&this._token.cancel():this._token=Ds.Cancelled},s.prototype.dispose=function(b){b===void 0&&(b=!1),b&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof _s&&this._token.dispose():this._token=Ds.None},s}(),Ks=function(){function s(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return s.prototype.define=function(b,V){this._keyCodeToStr[b]=V,this._strToKeyCode[V.toLowerCase()]=b},s.prototype.keyCodeToStr=function(b){return this._keyCodeToStr[b]},s.prototype.strToKeyCode=function(b){return this._strToKeyCode[b.toLowerCase()]||0},s}(),qs=new Ks,$s=new Ks,el=new Ks;(function(){function s(b,V,Me,an){Me===void 0&&(Me=V),an===void 0&&(an=Me),qs.define(b,V),$s.define(b,Me),el.define(b,an)}s(0,"unknown"),s(1,"Backspace"),s(2,"Tab"),s(3,"Enter"),s(4,"Shift"),s(5,"Ctrl"),s(6,"Alt"),s(7,"PauseBreak"),s(8,"CapsLock"),s(9,"Escape"),s(10,"Space"),s(11,"PageUp"),s(12,"PageDown"),s(13,"End"),s(14,"Home"),s(15,"LeftArrow","Left"),s(16,"UpArrow","Up"),s(17,"RightArrow","Right"),s(18,"DownArrow","Down"),s(19,"Insert"),s(20,"Delete"),s(21,"0"),s(22,"1"),s(23,"2"),s(24,"3"),s(25,"4"),s(26,"5"),s(27,"6"),s(28,"7"),s(29,"8"),s(30,"9"),s(31,"A"),s(32,"B"),s(33,"C"),s(34,"D"),s(35,"E"),s(36,"F"),s(37,"G"),s(38,"H"),s(39,"I"),s(40,"J"),s(41,"K"),s(42,"L"),s(43,"M"),s(44,"N"),s(45,"O"),s(46,"P"),s(47,"Q"),s(48,"R"),s(49,"S"),s(50,"T"),s(51,"U"),s(52,"V"),s(53,"W"),s(54,"X"),s(55,"Y"),s(56,"Z"),s(57,"Meta"),s(58,"ContextMenu"),s(59,"F1"),s(60,"F2"),s(61,"F3"),s(62,"F4"),s(63,"F5"),s(64,"F6"),s(65,"F7"),s(66,"F8"),s(67,"F9"),s(68,"F10"),s(69,"F11"),s(70,"F12"),s(71,"F13"),s(72,"F14"),s(73,"F15"),s(74,"F16"),s(75,"F17"),s(76,"F18"),s(77,"F19"),s(78,"NumLock"),s(79,"ScrollLock"),s(80,";",";","OEM_1"),s(81,"=","=","OEM_PLUS"),s(82,",",",","OEM_COMMA"),s(83,"-","-","OEM_MINUS"),s(84,".",".","OEM_PERIOD"),s(85,"/","/","OEM_2"),s(86,"`","`","OEM_3"),s(110,"ABNT_C1"),s(111,"ABNT_C2"),s(87,"[","[","OEM_4"),s(88,"\\","\\","OEM_5"),s(89,"]","]","OEM_6"),s(90,"'","'","OEM_7"),s(91,"OEM_8"),s(92,"OEM_102"),s(93,"NumPad0"),s(94,"NumPad1"),s(95,"NumPad2"),s(96,"NumPad3"),s(97,"NumPad4"),s(98,"NumPad5"),s(99,"NumPad6"),s(100,"NumPad7"),s(101,"NumPad8"),s(102,"NumPad9"),s(103,"NumPad_Multiply"),s(104,"NumPad_Add"),s(105,"NumPad_Separator"),s(106,"NumPad_Subtract"),s(107,"NumPad_Decimal"),s(108,"NumPad_Divide")})();var nl;(function(s){function b(zn){return qs.keyCodeToStr(zn)}s.toString=b;function V(zn){return qs.strToKeyCode(zn)}s.fromString=V;function Me(zn){return $s.keyCodeToStr(zn)}s.toUserSettingsUS=Me;function an(zn){return el.keyCodeToStr(zn)}s.toUserSettingsGeneral=an;function mn(zn){return $s.strToKeyCode(zn)||el.strToKeyCode(zn)}s.fromUserSettings=mn})(nl||(nl={}));function Fn(s,b){var V=(b&65535)<<16>>>0;return(s|V)>>>0}function Yn(s,b){if(s===0)return null;var V=(s&65535)>>>0,Me=(s&4294901760)>>>16;return Me!==0?new Xt([gt(V,b),gt(Me,b)]):new Xt([gt(V,b)])}function gt(s,b){var V=!!(s&2048),Me=!!(s&256),an=b===2?Me:V,mn=!!(s&1024),zn=!!(s&512),kt=b===2?V:Me,Pt=s&255;return new tt(an,mn,zn,kt,Pt)}var tt=function(){function s(b,V,Me,an,mn){this.ctrlKey=b,this.shiftKey=V,this.altKey=Me,this.metaKey=an,this.keyCode=mn}return s.prototype.equals=function(b){return this.ctrlKey===b.ctrlKey&&this.shiftKey===b.shiftKey&&this.altKey===b.altKey&&this.metaKey===b.metaKey&&this.keyCode===b.keyCode},s.prototype.isModifierKey=function(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4},s.prototype.toChord=function(){return new Xt([this])},s.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57},s}(),Xt=function(){function s(b){if(b.length===0)throw sn("parts");this.parts=b}return s.prototype.equals=function(b){if(b===null)return!1;if(this.parts.length!==b.parts.length)return!1;for(var V=0;V<this.parts.length;V++)if(!this.parts[V].equals(b.parts[V]))return!1;return!0},s}(),_r=function(){function s(b,V,Me,an,mn,zn){this.ctrlKey=b,this.shiftKey=V,this.altKey=Me,this.metaKey=an,this.keyLabel=mn,this.keyAriaLabel=zn}return s}(),Kr=function(){function s(){}return s}(),Dr=function(){var s=function(b,V){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,an){Me.__proto__=an}||function(Me,an){for(var mn in an)an.hasOwnProperty(mn)&&(Me[mn]=an[mn])},s(b,V)};return function(b,V){s(b,V);function Me(){this.constructor=b}b.prototype=V===null?Object.create(V):(Me.prototype=V.prototype,new Me)}}(),Ir=function(s){Dr(b,s);function b(V,Me,an,mn){var zn=s.call(this,V,Me,an,mn)||this;return zn.selectionStartLineNumber=V,zn.selectionStartColumn=Me,zn.positionLineNumber=an,zn.positionColumn=mn,zn}return b.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},b.prototype.equalsSelection=function(V){return b.selectionsEqual(this,V)},b.selectionsEqual=function(V,Me){return V.selectionStartLineNumber===Me.selectionStartLineNumber&&V.selectionStartColumn===Me.selectionStartColumn&&V.positionLineNumber===Me.positionLineNumber&&V.positionColumn===Me.positionColumn},b.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},b.prototype.setEndPosition=function(V,Me){return this.getDirection()===0?new b(this.startLineNumber,this.startColumn,V,Me):new b(V,Me,this.startLineNumber,this.startColumn)},b.prototype.getPosition=function(){return new dt(this.positionLineNumber,this.positionColumn)},b.prototype.setStartPosition=function(V,Me){return this.getDirection()===0?new b(V,Me,this.endLineNumber,this.endColumn):new b(this.endLineNumber,this.endColumn,V,Me)},b.fromPositions=function(V,Me){return Me===void 0&&(Me=V),new b(V.lineNumber,V.column,Me.lineNumber,Me.column)},b.liftSelection=function(V){return new b(V.selectionStartLineNumber,V.selectionStartColumn,V.positionLineNumber,V.positionColumn)},b.selectionsArrEqual=function(V,Me){if(V&&!Me||!V&&Me)return!1;if(!V&&!Me)return!0;if(V.length!==Me.length)return!1;for(var an=0,mn=V.length;an<mn;an++)if(!this.selectionsEqual(V[an],Me[an]))return!1;return!0},b.isISelection=function(V){return V&&typeof V.selectionStartLineNumber=="number"&&typeof V.selectionStartColumn=="number"&&typeof V.positionLineNumber=="number"&&typeof V.positionColumn=="number"},b.createWithDirection=function(V,Me,an,mn,zn){return zn===0?new b(V,Me,an,mn):new b(an,mn,V,Me)},b}(Ct),Mr=function(){function s(b,V,Me){this.offset=b|0,this.type=V,this.language=Me}return s.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},s}(),Er=function(){function s(b,V){this.tokens=b,this.endState=V}return s}(),pa=function(){function s(b,V){this.tokens=b,this.endState=V}return s}(),Ca;(function(s){s[s.Unknown=0]="Unknown",s[s.Disabled=1]="Disabled",s[s.Enabled=2]="Enabled"})(Ca||(Ca={}));var Ma;(function(s){s[s.KeepWhitespace=1]="KeepWhitespace",s[s.InsertAsSnippet=4]="InsertAsSnippet"})(Ma||(Ma={}));var gi;(function(s){s[s.Method=0]="Method",s[s.Function=1]="Function",s[s.Constructor=2]="Constructor",s[s.Field=3]="Field",s[s.Variable=4]="Variable",s[s.Class=5]="Class",s[s.Struct=6]="Struct",s[s.Interface=7]="Interface",s[s.Module=8]="Module",s[s.Property=9]="Property",s[s.Event=10]="Event",s[s.Operator=11]="Operator",s[s.Unit=12]="Unit",s[s.Value=13]="Value",s[s.Constant=14]="Constant",s[s.Enum=15]="Enum",s[s.EnumMember=16]="EnumMember",s[s.Keyword=17]="Keyword",s[s.Text=18]="Text",s[s.Color=19]="Color",s[s.File=20]="File",s[s.Reference=21]="Reference",s[s.Customcolor=22]="Customcolor",s[s.Folder=23]="Folder",s[s.TypeParameter=24]="TypeParameter",s[s.Snippet=25]="Snippet"})(gi||(gi={}));var vo;(function(s){s[s.Deprecated=1]="Deprecated"})(vo||(vo={}));var di;(function(s){s[s.Invoke=0]="Invoke",s[s.TriggerCharacter=1]="TriggerCharacter",s[s.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(di||(di={}));var Lo;(function(s){s[s.EXACT=0]="EXACT",s[s.ABOVE=1]="ABOVE",s[s.BELOW=2]="BELOW"})(Lo||(Lo={}));var Ki;(function(s){s[s.NotSet=0]="NotSet",s[s.ContentFlush=1]="ContentFlush",s[s.RecoverFromMarkers=2]="RecoverFromMarkers",s[s.Explicit=3]="Explicit",s[s.Paste=4]="Paste",s[s.Undo=5]="Undo",s[s.Redo=6]="Redo"})(Ki||(Ki={}));var xn;(function(s){s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(xn||(xn={}));var bo;(function(s){s[s.Text=0]="Text",s[s.Read=1]="Read",s[s.Write=2]="Write"})(bo||(bo={}));var Fo;(function(s){s[s.None=0]="None",s[s.Keep=1]="Keep",s[s.Brackets=2]="Brackets",s[s.Advanced=3]="Advanced",s[s.Full=4]="Full"})(Fo||(Fo={}));var Ho;(function(s){s[s.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",s[s.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",s[s.accessibilitySupport=2]="accessibilitySupport",s[s.accessibilityPageSize=3]="accessibilityPageSize",s[s.ariaLabel=4]="ariaLabel",s[s.autoClosingBrackets=5]="autoClosingBrackets",s[s.autoClosingOvertype=6]="autoClosingOvertype",s[s.autoClosingQuotes=7]="autoClosingQuotes",s[s.autoIndent=8]="autoIndent",s[s.automaticLayout=9]="automaticLayout",s[s.autoSurround=10]="autoSurround",s[s.codeLens=11]="codeLens",s[s.colorDecorators=12]="colorDecorators",s[s.comments=13]="comments",s[s.contextmenu=14]="contextmenu",s[s.copyWithSyntaxHighlighting=15]="copyWithSyntaxHighlighting",s[s.cursorBlinking=16]="cursorBlinking",s[s.cursorSmoothCaretAnimation=17]="cursorSmoothCaretAnimation",s[s.cursorStyle=18]="cursorStyle",s[s.cursorSurroundingLines=19]="cursorSurroundingLines",s[s.cursorSurroundingLinesStyle=20]="cursorSurroundingLinesStyle",s[s.cursorWidth=21]="cursorWidth",s[s.disableLayerHinting=22]="disableLayerHinting",s[s.disableMonospaceOptimizations=23]="disableMonospaceOptimizations",s[s.dragAndDrop=24]="dragAndDrop",s[s.emptySelectionClipboard=25]="emptySelectionClipboard",s[s.extraEditorClassName=26]="extraEditorClassName",s[s.fastScrollSensitivity=27]="fastScrollSensitivity",s[s.find=28]="find",s[s.fixedOverflowWidgets=29]="fixedOverflowWidgets",s[s.folding=30]="folding",s[s.foldingStrategy=31]="foldingStrategy",s[s.foldingHighlight=32]="foldingHighlight",s[s.fontFamily=33]="fontFamily",s[s.fontInfo=34]="fontInfo",s[s.fontLigatures=35]="fontLigatures",s[s.fontSize=36]="fontSize",s[s.fontWeight=37]="fontWeight",s[s.formatOnPaste=38]="formatOnPaste",s[s.formatOnType=39]="formatOnType",s[s.glyphMargin=40]="glyphMargin",s[s.gotoLocation=41]="gotoLocation",s[s.hideCursorInOverviewRuler=42]="hideCursorInOverviewRuler",s[s.highlightActiveIndentGuide=43]="highlightActiveIndentGuide",s[s.hover=44]="hover",s[s.inDiffEditor=45]="inDiffEditor",s[s.letterSpacing=46]="letterSpacing",s[s.lightbulb=47]="lightbulb",s[s.lineDecorationsWidth=48]="lineDecorationsWidth",s[s.lineHeight=49]="lineHeight",s[s.lineNumbers=50]="lineNumbers",s[s.lineNumbersMinChars=51]="lineNumbersMinChars",s[s.links=52]="links",s[s.matchBrackets=53]="matchBrackets",s[s.minimap=54]="minimap",s[s.mouseStyle=55]="mouseStyle",s[s.mouseWheelScrollSensitivity=56]="mouseWheelScrollSensitivity",s[s.mouseWheelZoom=57]="mouseWheelZoom",s[s.multiCursorMergeOverlapping=58]="multiCursorMergeOverlapping",s[s.multiCursorModifier=59]="multiCursorModifier",s[s.multiCursorPaste=60]="multiCursorPaste",s[s.occurrencesHighlight=61]="occurrencesHighlight",s[s.overviewRulerBorder=62]="overviewRulerBorder",s[s.overviewRulerLanes=63]="overviewRulerLanes",s[s.parameterHints=64]="parameterHints",s[s.peekWidgetDefaultFocus=65]="peekWidgetDefaultFocus",s[s.quickSuggestions=66]="quickSuggestions",s[s.quickSuggestionsDelay=67]="quickSuggestionsDelay",s[s.readOnly=68]="readOnly",s[s.renderControlCharacters=69]="renderControlCharacters",s[s.renderIndentGuides=70]="renderIndentGuides",s[s.renderFinalNewline=71]="renderFinalNewline",s[s.renderLineHighlight=72]="renderLineHighlight",s[s.renderValidationDecorations=73]="renderValidationDecorations",s[s.renderWhitespace=74]="renderWhitespace",s[s.revealHorizontalRightPadding=75]="revealHorizontalRightPadding",s[s.roundedSelection=76]="roundedSelection",s[s.rulers=77]="rulers",s[s.scrollbar=78]="scrollbar",s[s.scrollBeyondLastColumn=79]="scrollBeyondLastColumn",s[s.scrollBeyondLastLine=80]="scrollBeyondLastLine",s[s.selectionClipboard=81]="selectionClipboard",s[s.selectionHighlight=82]="selectionHighlight",s[s.selectOnLineNumbers=83]="selectOnLineNumbers",s[s.showFoldingControls=84]="showFoldingControls",s[s.showUnused=85]="showUnused",s[s.snippetSuggestions=86]="snippetSuggestions",s[s.smoothScrolling=87]="smoothScrolling",s[s.stopRenderingLineAfter=88]="stopRenderingLineAfter",s[s.suggest=89]="suggest",s[s.suggestFontSize=90]="suggestFontSize",s[s.suggestLineHeight=91]="suggestLineHeight",s[s.suggestOnTriggerCharacters=92]="suggestOnTriggerCharacters",s[s.suggestSelection=93]="suggestSelection",s[s.tabCompletion=94]="tabCompletion",s[s.useTabStops=95]="useTabStops",s[s.wordSeparators=96]="wordSeparators",s[s.wordWrap=97]="wordWrap",s[s.wordWrapBreakAfterCharacters=98]="wordWrapBreakAfterCharacters",s[s.wordWrapBreakBeforeCharacters=99]="wordWrapBreakBeforeCharacters",s[s.wordWrapColumn=100]="wordWrapColumn",s[s.wordWrapMinified=101]="wordWrapMinified",s[s.wrappingIndent=102]="wrappingIndent",s[s.wrappingStrategy=103]="wrappingStrategy",s[s.editorClassName=104]="editorClassName",s[s.pixelRatio=105]="pixelRatio",s[s.tabFocusMode=106]="tabFocusMode",s[s.layoutInfo=107]="layoutInfo",s[s.wrappingInfo=108]="wrappingInfo"})(Ho||(Ho={}));var Ga;(function(s){s[s.TextDefined=0]="TextDefined",s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(Ga||(Ga={}));var vs;(function(s){s[s.LF=0]="LF",s[s.CRLF=1]="CRLF"})(vs||(vs={}));var me;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(me||(me={}));var En;(function(s){s[s.Unknown=0]="Unknown",s[s.Backspace=1]="Backspace",s[s.Tab=2]="Tab",s[s.Enter=3]="Enter",s[s.Shift=4]="Shift",s[s.Ctrl=5]="Ctrl",s[s.Alt=6]="Alt",s[s.PauseBreak=7]="PauseBreak",s[s.CapsLock=8]="CapsLock",s[s.Escape=9]="Escape",s[s.Space=10]="Space",s[s.PageUp=11]="PageUp",s[s.PageDown=12]="PageDown",s[s.End=13]="End",s[s.Home=14]="Home",s[s.LeftArrow=15]="LeftArrow",s[s.UpArrow=16]="UpArrow",s[s.RightArrow=17]="RightArrow",s[s.DownArrow=18]="DownArrow",s[s.Insert=19]="Insert",s[s.Delete=20]="Delete",s[s.KEY_0=21]="KEY_0",s[s.KEY_1=22]="KEY_1",s[s.KEY_2=23]="KEY_2",s[s.KEY_3=24]="KEY_3",s[s.KEY_4=25]="KEY_4",s[s.KEY_5=26]="KEY_5",s[s.KEY_6=27]="KEY_6",s[s.KEY_7=28]="KEY_7",s[s.KEY_8=29]="KEY_8",s[s.KEY_9=30]="KEY_9",s[s.KEY_A=31]="KEY_A",s[s.KEY_B=32]="KEY_B",s[s.KEY_C=33]="KEY_C",s[s.KEY_D=34]="KEY_D",s[s.KEY_E=35]="KEY_E",s[s.KEY_F=36]="KEY_F",s[s.KEY_G=37]="KEY_G",s[s.KEY_H=38]="KEY_H",s[s.KEY_I=39]="KEY_I",s[s.KEY_J=40]="KEY_J",s[s.KEY_K=41]="KEY_K",s[s.KEY_L=42]="KEY_L",s[s.KEY_M=43]="KEY_M",s[s.KEY_N=44]="KEY_N",s[s.KEY_O=45]="KEY_O",s[s.KEY_P=46]="KEY_P",s[s.KEY_Q=47]="KEY_Q",s[s.KEY_R=48]="KEY_R",s[s.KEY_S=49]="KEY_S",s[s.KEY_T=50]="KEY_T",s[s.KEY_U=51]="KEY_U",s[s.KEY_V=52]="KEY_V",s[s.KEY_W=53]="KEY_W",s[s.KEY_X=54]="KEY_X",s[s.KEY_Y=55]="KEY_Y",s[s.KEY_Z=56]="KEY_Z",s[s.Meta=57]="Meta",s[s.ContextMenu=58]="ContextMenu",s[s.F1=59]="F1",s[s.F2=60]="F2",s[s.F3=61]="F3",s[s.F4=62]="F4",s[s.F5=63]="F5",s[s.F6=64]="F6",s[s.F7=65]="F7",s[s.F8=66]="F8",s[s.F9=67]="F9",s[s.F10=68]="F10",s[s.F11=69]="F11",s[s.F12=70]="F12",s[s.F13=71]="F13",s[s.F14=72]="F14",s[s.F15=73]="F15",s[s.F16=74]="F16",s[s.F17=75]="F17",s[s.F18=76]="F18",s[s.F19=77]="F19",s[s.NumLock=78]="NumLock",s[s.ScrollLock=79]="ScrollLock",s[s.US_SEMICOLON=80]="US_SEMICOLON",s[s.US_EQUAL=81]="US_EQUAL",s[s.US_COMMA=82]="US_COMMA",s[s.US_MINUS=83]="US_MINUS",s[s.US_DOT=84]="US_DOT",s[s.US_SLASH=85]="US_SLASH",s[s.US_BACKTICK=86]="US_BACKTICK",s[s.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",s[s.US_BACKSLASH=88]="US_BACKSLASH",s[s.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",s[s.US_QUOTE=90]="US_QUOTE",s[s.OEM_8=91]="OEM_8",s[s.OEM_102=92]="OEM_102",s[s.NUMPAD_0=93]="NUMPAD_0",s[s.NUMPAD_1=94]="NUMPAD_1",s[s.NUMPAD_2=95]="NUMPAD_2",s[s.NUMPAD_3=96]="NUMPAD_3",s[s.NUMPAD_4=97]="NUMPAD_4",s[s.NUMPAD_5=98]="NUMPAD_5",s[s.NUMPAD_6=99]="NUMPAD_6",s[s.NUMPAD_7=100]="NUMPAD_7",s[s.NUMPAD_8=101]="NUMPAD_8",s[s.NUMPAD_9=102]="NUMPAD_9",s[s.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",s[s.NUMPAD_ADD=104]="NUMPAD_ADD",s[s.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",s[s.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",s[s.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",s[s.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",s[s.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",s[s.ABNT_C1=110]="ABNT_C1",s[s.ABNT_C2=111]="ABNT_C2",s[s.MAX_VALUE=112]="MAX_VALUE"})(En||(En={}));var Zn;(function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"})(Zn||(Zn={}));var Gt;(function(s){s[s.Unnecessary=1]="Unnecessary",s[s.Deprecated=2]="Deprecated"})(Gt||(Gt={}));var vr;(function(s){s[s.Inline=1]="Inline",s[s.Gutter=2]="Gutter"})(vr||(vr={}));var ga;(function(s){s[s.UNKNOWN=0]="UNKNOWN",s[s.TEXTAREA=1]="TEXTAREA",s[s.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",s[s.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",s[s.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",s[s.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",s[s.CONTENT_TEXT=6]="CONTENT_TEXT",s[s.CONTENT_EMPTY=7]="CONTENT_EMPTY",s[s.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",s[s.CONTENT_WIDGET=9]="CONTENT_WIDGET",s[s.OVERVIEW_RULER=10]="OVERVIEW_RULER",s[s.SCROLLBAR=11]="SCROLLBAR",s[s.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",s[s.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(ga||(ga={}));var ii;(function(s){s[s.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",s[s.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",s[s.TOP_CENTER=2]="TOP_CENTER"})(ii||(ii={}));var qa;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=4]="Right",s[s.Full=7]="Full"})(qa||(qa={}));var wi;(function(s){s[s.Off=0]="Off",s[s.On=1]="On",s[s.Relative=2]="Relative",s[s.Interval=3]="Interval",s[s.Custom=4]="Custom"})(wi||(wi={}));var eo;(function(s){s[s.None=0]="None",s[s.Text=1]="Text",s[s.Blocks=2]="Blocks"})(eo||(eo={}));var na;(function(s){s[s.Smooth=0]="Smooth",s[s.Immediate=1]="Immediate"})(na||(na={}));var Lr;(function(s){s[s.Auto=1]="Auto",s[s.Hidden=2]="Hidden",s[s.Visible=3]="Visible"})(Lr||(Lr={}));var Eo;(function(s){s[s.LTR=0]="LTR",s[s.RTL=1]="RTL"})(Eo||(Eo={}));var Uo;(function(s){s[s.Invoke=1]="Invoke",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange"})(Uo||(Uo={}));var tl;(function(s){s[s.File=0]="File",s[s.Module=1]="Module",s[s.Namespace=2]="Namespace",s[s.Package=3]="Package",s[s.Class=4]="Class",s[s.Method=5]="Method",s[s.Property=6]="Property",s[s.Field=7]="Field",s[s.Constructor=8]="Constructor",s[s.Enum=9]="Enum",s[s.Interface=10]="Interface",s[s.Function=11]="Function",s[s.Variable=12]="Variable",s[s.Constant=13]="Constant",s[s.String=14]="String",s[s.Number=15]="Number",s[s.Boolean=16]="Boolean",s[s.Array=17]="Array",s[s.Object=18]="Object",s[s.Key=19]="Key",s[s.Null=20]="Null",s[s.EnumMember=21]="EnumMember",s[s.Struct=22]="Struct",s[s.Event=23]="Event",s[s.Operator=24]="Operator",s[s.TypeParameter=25]="TypeParameter"})(tl||(tl={}));var Qo;(function(s){s[s.Deprecated=1]="Deprecated"})(Qo||(Qo={}));var lo;(function(s){s[s.Hidden=0]="Hidden",s[s.Blink=1]="Blink",s[s.Smooth=2]="Smooth",s[s.Phase=3]="Phase",s[s.Expand=4]="Expand",s[s.Solid=5]="Solid"})(lo||(lo={}));var Os;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(Os||(Os={}));var Gs;(function(s){s[s.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",s[s.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",s[s.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",s[s.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Gs||(Gs={}));var Nc;(function(s){s[s.None=0]="None",s[s.Same=1]="Same",s[s.Indent=2]="Indent",s[s.DeepIndent=3]="DeepIndent"})(Nc||(Nc={}));var _l=function(){function s(){}return s.chord=function(b,V){return Fn(b,V)},s.CtrlCmd=2048,s.Shift=1024,s.Alt=512,s.WinCtrl=256,s}();function gc(){return{editor:void 0,languages:void 0,CancellationTokenSource:yl,Emitter:$o,KeyCode:En,KeyMod:_l,Position:dt,Range:Ct,Selection:Ir,SelectionDirection:Eo,MarkerSeverity:Zn,MarkerTag:Gt,Uri:Cn,Token:Mr}}var Ql=function(){var s=function(b,V){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,an){Me.__proto__=an}||function(Me,an){for(var mn in an)an.hasOwnProperty(mn)&&(Me[mn]=an[mn])},s(b,V)};return function(b,V){s(b,V);function Me(){this.constructor=b}b.prototype=V===null?Object.create(V):(Me.prototype=V.prototype,new Me)}}(),rl=function(s,b,V,Me){function an(mn){return mn instanceof V?mn:new V(function(zn){zn(mn)})}return new(V||(V=Promise))(function(mn,zn){function kt(fr){try{It(Me.next(fr))}catch(hr){zn(hr)}}function Pt(fr){try{It(Me.throw(fr))}catch(hr){zn(hr)}}function It(fr){fr.done?mn(fr.value):an(fr.value).then(kt,Pt)}It((Me=Me.apply(s,b||[])).next())})},Js=function(s,b){var V={label:0,sent:function(){if(mn[0]&1)throw mn[1];return mn[1]},trys:[],ops:[]},Me,an,mn,zn;return zn={next:kt(0),throw:kt(1),return:kt(2)},typeof Symbol=="function"&&(zn[Symbol.iterator]=function(){return this}),zn;function kt(It){return function(fr){return Pt([It,fr])}}function Pt(It){if(Me)throw new TypeError("Generator is already executing.");for(;V;)try{if(Me=1,an&&(mn=It[0]&2?an.return:It[0]?an.throw||((mn=an.return)&&mn.call(an),0):an.next)&&!(mn=mn.call(an,It[1])).done)return mn;(an=0,mn)&&(It=[It[0]&2,mn.value]);switch(It[0]){case 0:case 1:mn=It;break;case 4:return V.label++,{value:It[1],done:!1};case 5:V.label++,an=It[1],It=[0];continue;case 7:It=V.ops.pop(),V.trys.pop();continue;default:if(!(mn=V.trys,mn=mn.length>0&&mn[mn.length-1])&&(It[0]===6||It[0]===2)){V=0;continue}if(It[0]===3&&(!mn||It[1]>mn[0]&&It[1]<mn[3])){V.label=It[1];break}if(It[0]===6&&V.label<mn[1]){V.label=mn[1],mn=It;break}if(mn&&V.label<mn[2]){V.label=mn[2],V.ops.push(It);break}mn[2]&&V.ops.pop(),V.trys.pop();continue}It=b.call(s,V)}catch(fr){It=[6,fr],an=0}finally{Me=mn=0}if(It[0]&5)throw It[1];return{value:It[0]?It[1]:void 0,done:!0}}},Oc=function(s){Ql(b,s);function b(){return s!==null&&s.apply(this,arguments)||this}return Object.defineProperty(b.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),b.prototype.getValue=function(){return this.getText()},b.prototype.getLinesContent=function(){return this._lines.slice(0)},b.prototype.getLineCount=function(){return this._lines.length},b.prototype.getLineContent=function(V){return this._lines[V-1]},b.prototype.getWordAtPosition=function(V,Me){var an=Hn(V.column,qn(Me),this._lines[V.lineNumber-1],0);return an?new Ct(V.lineNumber,an.startColumn,V.lineNumber,an.endColumn):null},b.prototype.createWordIterator=function(V){var Me=this,an,mn=0,zn,kt=0,Pt=[],It=function(){if(kt<Pt.length){var fr=zn.substring(Pt[kt].start,Pt[kt].end);return kt+=1,an?an.value=fr:an={done:!1,value:fr},an}else return mn>=Me._lines.length?Qe:(zn=Me._lines[mn],Pt=Me._wordenize(zn,V),kt=0,mn+=1,It())};return{next:It}},b.prototype.getLineWords=function(V,Me){for(var an=this._lines[V-1],mn=this._wordenize(an,Me),zn=[],kt=0,Pt=mn;kt<Pt.length;kt++){var It=Pt[kt];zn.push({word:an.substring(It.start,It.end),startColumn:It.start+1,endColumn:It.end+1})}return zn},b.prototype._wordenize=function(V,Me){var an=[],mn;for(Me.lastIndex=0;(mn=Me.exec(V))&&!(mn[0].length===0);)an.push({start:mn.index,end:mn.index+mn[0].length});return an},b.prototype.getValueInRange=function(V){if(V=this._validateRange(V),V.startLineNumber===V.endLineNumber)return this._lines[V.startLineNumber-1].substring(V.startColumn-1,V.endColumn-1);var Me=this._eol,an=V.startLineNumber-1,mn=V.endLineNumber-1,zn=[];zn.push(this._lines[an].substring(V.startColumn-1));for(var kt=an+1;kt<mn;kt++)zn.push(this._lines[kt]);return zn.push(this._lines[mn].substring(0,V.endColumn-1)),zn.join(Me)},b.prototype.offsetAt=function(V){return V=this._validatePosition(V),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(V.lineNumber-2)+(V.column-1)},b.prototype.positionAt=function(V){V=Math.floor(V),V=Math.max(0,V),this._ensureLineStarts();var Me=this._lineStarts.getIndexOf(V),an=this._lines[Me.index].length;return{lineNumber:1+Me.index,column:1+Math.min(Me.remainder,an)}},b.prototype._validateRange=function(V){var Me=this._validatePosition({lineNumber:V.startLineNumber,column:V.startColumn}),an=this._validatePosition({lineNumber:V.endLineNumber,column:V.endColumn});return Me.lineNumber!==V.startLineNumber||Me.column!==V.startColumn||an.lineNumber!==V.endLineNumber||an.column!==V.endColumn?{startLineNumber:Me.lineNumber,startColumn:Me.column,endLineNumber:an.lineNumber,endColumn:an.column}:V},b.prototype._validatePosition=function(V){if(!dt.isIPosition(V))throw new Error("bad position");var Me=V.lineNumber,an=V.column,mn=!1;if(Me<1)Me=1,an=1,mn=!0;else if(Me>this._lines.length)Me=this._lines.length,an=this._lines[Me-1].length+1,mn=!0;else{var zn=this._lines[Me-1].length+1;an<1?(an=1,mn=!0):an>zn&&(an=zn,mn=!0)}return mn?{lineNumber:Me,column:an}:V},b}(Ii),au=function(){function s(b,V){this._host=b,this._models=Object.create(null),this._foreignModuleFactory=V,this._foreignModule=null}return s.prototype.dispose=function(){this._models=Object.create(null)},s.prototype._getModel=function(b){return this._models[b]},s.prototype._getModels=function(){var b=this,V=[];return Object.keys(this._models).forEach(function(Me){return V.push(b._models[Me])}),V},s.prototype.acceptNewModel=function(b){this._models[b.url]=new Oc(Cn.parse(b.url),b.lines,b.EOL,b.versionId)},s.prototype.acceptModelChanged=function(b,V){if(!this._models[b])return;var Me=this._models[b];Me.onEvents(V)},s.prototype.acceptRemovedModel=function(b){if(!this._models[b])return;delete this._models[b]},s.prototype.computeDiff=function(b,V,Me,an){return rl(this,void 0,void 0,function(){var mn,zn,kt,Pt,It,fr,hr;return Js(this,function($r){return mn=this._getModel(b),zn=this._getModel(V),!mn||!zn?[2,null]:(kt=mn.getLinesContent(),Pt=zn.getLinesContent(),It=new Ln(kt,Pt,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:Me,shouldMakePrettyDiff:!0,maxComputationTime:an}),fr=It.computeDiff(),hr=fr.changes.length>0?!1:this._modelsAreIdentical(mn,zn),[2,{quitEarly:fr.quitEarly,identical:hr,changes:fr.changes}])})})},s.prototype._modelsAreIdentical=function(b,V){var Me=b.getLineCount(),an=V.getLineCount();if(Me!==an)return!1;for(var mn=1;mn<=Me;mn++){var zn=b.getLineContent(mn),kt=V.getLineContent(mn);if(zn!==kt)return!1}return!0},s.prototype.computeMoreMinimalEdits=function(b,V){return rl(this,void 0,void 0,function(){var Me,an,mn,zn,kt,Pt,It,fr,hr,$r,ba,ra,Ba,Ai,$a,ki,Qr,ia;return Js(this,function(oa){if(Me=this._getModel(b),!Me)return[2,V];for(an=[],mn=void 0,V=D(V,function(sa,Da){if(sa.range&&Da.range)return Ct.compareRangesUsingStarts(sa.range,Da.range);var Ha=sa.range?0:1,ti=Da.range?0:1;return Ha-ti}),zn=0,kt=V;zn<kt.length;zn++){if(Pt=kt[zn],It=Pt.range,fr=Pt.text,hr=Pt.eol,typeof hr=="number"&&(mn=hr),Ct.isEmpty(It)&&!fr)continue;if($r=Me.getValueInRange(It),fr=fr.replace(/\r\n|\n|\r/g,Me.eol),$r===fr)continue;if(Math.max(fr.length,$r.length)>s._diffLimit){an.push({range:It,text:fr});continue}for(ba=fe($r,fr,!1),ra=Me.offsetAt(Ct.lift(It).getStartPosition()),Ba=0,Ai=ba;Ba<Ai.length;Ba++)$a=Ai[Ba],ki=Me.positionAt(ra+$a.originalStart),Qr=Me.positionAt(ra+$a.originalStart+$a.originalLength),ia={text:fr.substr($a.modifiedStart,$a.modifiedLength),range:{startLineNumber:ki.lineNumber,startColumn:ki.column,endLineNumber:Qr.lineNumber,endColumn:Qr.column}},Me.getValueInRange(ia.range)!==ia.text&&an.push(ia)}return typeof mn=="number"&&an.push({eol:mn,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),[2,an]})})},s.prototype.computeLinks=function(b){return rl(this,void 0,void 0,function(){var V;return Js(this,function(Me){return V=this._getModel(b),V?[2,Wa(V)]:[2,null]})})},s.prototype.textualSuggest=function(b,V,Me,an){return rl(this,void 0,void 0,function(){var mn,zn,kt,Pt,It,fr,hr,$r;return Js(this,function(ba){if(mn=this._getModel(b),!mn)return[2,null];for(zn=[],kt=new Set,Pt=new RegExp(Me,an),It=mn.getWordAtPosition(V,Pt),It&&kt.add(mn.getValueInRange(It)),fr=mn.createWordIterator(Pt),hr=fr.next();!hr.done&&kt.size<=s._suggestionsLimit;hr=fr.next()){if($r=hr.value,kt.has($r))continue;if(kt.add($r),!isNaN(Number($r)))continue;zn.push($r)}return[2,zn]})})},s.prototype.computeWordRanges=function(b,V,Me,an){return rl(this,void 0,void 0,function(){var mn,zn,kt,Pt,It,fr,hr,$r,ba;return Js(this,function(ra){if(mn=this._getModel(b),!mn)return[2,Object.create(null)];for(zn=new RegExp(Me,an),kt=Object.create(null),Pt=V.startLineNumber;Pt<V.endLineNumber;Pt++)for(It=mn.getLineWords(Pt,zn),fr=0,hr=It;fr<hr.length;fr++){if($r=hr[fr],!isNaN(Number($r.word)))continue;ba=kt[$r.word],ba||(ba=[],kt[$r.word]=ba),ba.push({startLineNumber:Pt,startColumn:$r.startColumn,endLineNumber:Pt,endColumn:$r.endColumn})}return[2,kt]})})},s.prototype.navigateValueSet=function(b,V,Me,an,mn){return rl(this,void 0,void 0,function(){var zn,kt,Pt,It,fr,hr;return Js(this,function($r){return zn=this._getModel(b),zn?(kt=new RegExp(an,mn),V.startColumn===V.endColumn&&(V={startLineNumber:V.startLineNumber,startColumn:V.startColumn,endLineNumber:V.endLineNumber,endColumn:V.endColumn+1}),Pt=zn.getValueInRange(V),It=zn.getWordAtPosition({lineNumber:V.startLineNumber,column:V.startColumn},kt),It?(fr=zn.getValueInRange(It),hr=to.INSTANCE.navigateValueSet(V,Pt,It,fr,Me),[2,hr]):[2,null]):[2,null]})})},s.prototype.loadForeignModule=function(b,V,Me){var an=this,mn=function(Pt,It){return an._host.fhr(Pt,It)},zn=P(Me,mn),kt={host:zn,getMirrorModels:function(){return an._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(kt,V),Promise.resolve(C(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},s.prototype.fmr=function(b,V){if(!this._foreignModule||typeof this._foreignModule[b]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+b));try{return Promise.resolve(this._foreignModule[b].apply(this._foreignModule,V))}catch(Me){return Promise.reject(Me)}},s._diffLimit=1e5,s._suggestionsLimit=1e4,s}();function Pc(s){return new au(s,null)}typeof importScripts=="function"&&(o.a.monaco=gc());var iu=!1;function Zl(s){if(iu)return;iu=!0;var b=new q(function(V){self.postMessage(V)},function(V){return new au(V,s)});self.onmessage=function(V){b.onmessage(V.data)}}self.onmessage=function(s){iu||Zl(null)};var zs=co("lz1K"),Mc=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
interface SymbolConstructor {
|
|
|
/**
|
|
|
* A reference to the prototype.
|
|
|
*/
|
|
|
readonly prototype: Symbol;
|
|
|
|
|
|
/**
|
|
|
* Returns a new unique Symbol value.
|
|
|
* @param description Description of the new Symbol object.
|
|
|
*/
|
|
|
(description?: string | number): symbol;
|
|
|
|
|
|
/**
|
|
|
* Returns a Symbol object from the global symbol registry matching the given key if found.
|
|
|
* Otherwise, returns a new symbol with this key.
|
|
|
* @param key key to search for.
|
|
|
*/
|
|
|
for(key: string): symbol;
|
|
|
|
|
|
/**
|
|
|
* Returns a key from the global symbol registry matching the given Symbol if found.
|
|
|
* Otherwise, returns a undefined.
|
|
|
* @param sym Symbol to find the key for.
|
|
|
*/
|
|
|
keyFor(sym: symbol): string | undefined;
|
|
|
}
|
|
|
|
|
|
declare var Symbol: SymbolConstructor;`,Nl=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
`+Mc+`
|
|
|
interface SymbolConstructor {
|
|
|
/**
|
|
|
* A method that determines if a constructor object recognizes an object as one of the
|
|
|
* constructor\u2019s instances. Called by the semantics of the instanceof operator.
|
|
|
*/
|
|
|
readonly hasInstance: symbol;
|
|
|
|
|
|
/**
|
|
|
* A Boolean value that if true indicates that an object should flatten to its array elements
|
|
|
* by Array.prototype.concat.
|
|
|
*/
|
|
|
readonly isConcatSpreadable: symbol;
|
|
|
|
|
|
/**
|
|
|
* A regular expression method that matches the regular expression against a string. Called
|
|
|
* by the String.prototype.match method.
|
|
|
*/
|
|
|
readonly match: symbol;
|
|
|
|
|
|
/**
|
|
|
* A regular expression method that replaces matched substrings of a string. Called by the
|
|
|
* String.prototype.replace method.
|
|
|
*/
|
|
|
readonly replace: symbol;
|
|
|
|
|
|
/**
|
|
|
* A regular expression method that returns the index within a string that matches the
|
|
|
* regular expression. Called by the String.prototype.search method.
|
|
|
*/
|
|
|
readonly search: symbol;
|
|
|
|
|
|
/**
|
|
|
* A function valued property that is the constructor function that is used to create
|
|
|
* derived objects.
|
|
|
*/
|
|
|
readonly species: symbol;
|
|
|
|
|
|
/**
|
|
|
* A regular expression method that splits a string at the indices that match the regular
|
|
|
* expression. Called by the String.prototype.split method.
|
|
|
*/
|
|
|
readonly split: symbol;
|
|
|
|
|
|
/**
|
|
|
* A method that converts an object to a corresponding primitive value.
|
|
|
* Called by the ToPrimitive abstract operation.
|
|
|
*/
|
|
|
readonly toPrimitive: symbol;
|
|
|
|
|
|
/**
|
|
|
* A String value that is used in the creation of the default string description of an object.
|
|
|
* Called by the built-in method Object.prototype.toString.
|
|
|
*/
|
|
|
readonly toStringTag: symbol;
|
|
|
|
|
|
/**
|
|
|
* An Object whose own property names are property names that are excluded from the 'with'
|
|
|
* environment bindings of the associated objects.
|
|
|
*/
|
|
|
readonly unscopables: symbol;
|
|
|
}
|
|
|
|
|
|
interface Symbol {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface Array<T> {
|
|
|
/**
|
|
|
* Returns an object whose properties have the value 'true'
|
|
|
* when they will be absent when used in a 'with' statement.
|
|
|
*/
|
|
|
[Symbol.unscopables](): {
|
|
|
copyWithin: boolean;
|
|
|
entries: boolean;
|
|
|
fill: boolean;
|
|
|
find: boolean;
|
|
|
findIndex: boolean;
|
|
|
keys: boolean;
|
|
|
values: boolean;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
interface Date {
|
|
|
/**
|
|
|
* Converts a Date object to a string.
|
|
|
*/
|
|
|
[Symbol.toPrimitive](hint: "default"): string;
|
|
|
/**
|
|
|
* Converts a Date object to a string.
|
|
|
*/
|
|
|
[Symbol.toPrimitive](hint: "string"): string;
|
|
|
/**
|
|
|
* Converts a Date object to a number.
|
|
|
*/
|
|
|
[Symbol.toPrimitive](hint: "number"): number;
|
|
|
/**
|
|
|
* Converts a Date object to a string or number.
|
|
|
*
|
|
|
* @param hint The strings "number", "string", or "default" to specify what primitive to return.
|
|
|
*
|
|
|
* @throws {TypeError} If 'hint' was given something other than "number", "string", or "default".
|
|
|
* @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default".
|
|
|
*/
|
|
|
[Symbol.toPrimitive](hint: string): string | number;
|
|
|
}
|
|
|
|
|
|
interface Map<K, V> {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface WeakMap<K extends object, V> {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface Set<T> {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface WeakSet<T extends object> {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface JSON {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface Function {
|
|
|
/**
|
|
|
* Determines whether the given value inherits from this function if this function was used
|
|
|
* as a constructor function.
|
|
|
*
|
|
|
* A constructor function can control which objects are recognized as its instances by
|
|
|
* 'instanceof' by overriding this method.
|
|
|
*/
|
|
|
[Symbol.hasInstance](value: any): boolean;
|
|
|
}
|
|
|
|
|
|
interface GeneratorFunction {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface Math {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface Promise<T> {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface PromiseConstructor {
|
|
|
readonly [Symbol.species]: PromiseConstructor;
|
|
|
}
|
|
|
|
|
|
interface RegExp {
|
|
|
/**
|
|
|
* Matches a string with this regular expression, and returns an array containing the results of
|
|
|
* that search.
|
|
|
* @param string A string to search within.
|
|
|
*/
|
|
|
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
|
|
|
|
/**
|
|
|
* Replaces text in a string, using this regular expression.
|
|
|
* @param string A String object or string literal whose contents matching against
|
|
|
* this regular expression will be replaced
|
|
|
* @param replaceValue A String object or string literal containing the text to replace for every
|
|
|
* successful match of this regular expression.
|
|
|
*/
|
|
|
[Symbol.replace](string: string, replaceValue: string): string;
|
|
|
|
|
|
/**
|
|
|
* Replaces text in a string, using this regular expression.
|
|
|
* @param string A String object or string literal whose contents matching against
|
|
|
* this regular expression will be replaced
|
|
|
* @param replacer A function that returns the replacement text.
|
|
|
*/
|
|
|
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
|
|
|
|
/**
|
|
|
* Finds the position beginning first substring match in a regular expression search
|
|
|
* using this regular expression.
|
|
|
*
|
|
|
* @param string The string to search within.
|
|
|
*/
|
|
|
[Symbol.search](string: string): number;
|
|
|
|
|
|
/**
|
|
|
* Returns an array of substrings that were delimited by strings in the original input that
|
|
|
* match against this regular expression.
|
|
|
*
|
|
|
* If the regular expression contains capturing parentheses, then each time this
|
|
|
* regular expression matches, the results (including any undefined results) of the
|
|
|
* capturing parentheses are spliced.
|
|
|
*
|
|
|
* @param string string value to split
|
|
|
* @param limit if not undefined, the output array is truncated so that it contains no more
|
|
|
* than 'limit' elements.
|
|
|
*/
|
|
|
[Symbol.split](string: string, limit?: number): string[];
|
|
|
}
|
|
|
|
|
|
interface RegExpConstructor {
|
|
|
readonly [Symbol.species]: RegExpConstructor;
|
|
|
}
|
|
|
|
|
|
interface String {
|
|
|
/**
|
|
|
* Matches a string an object that supports being matched against, and returns an array containing the results of that search.
|
|
|
* @param matcher An object that supports being matched against.
|
|
|
*/
|
|
|
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
|
|
|
|
|
|
/**
|
|
|
* Replaces text in a string, using an object that supports replacement within a string.
|
|
|
* @param searchValue A object can search for and replace matches within a string.
|
|
|
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
|
|
|
*/
|
|
|
replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
|
|
|
|
|
|
/**
|
|
|
* Replaces text in a string, using an object that supports replacement within a string.
|
|
|
* @param searchValue A object can search for and replace matches within a string.
|
|
|
* @param replacer A function that returns the replacement text.
|
|
|
*/
|
|
|
replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;
|
|
|
|
|
|
/**
|
|
|
* Finds the first substring match in a regular expression search.
|
|
|
* @param searcher An object which supports searching within a string.
|
|
|
*/
|
|
|
search(searcher: { [Symbol.search](string: string): number; }): number;
|
|
|
|
|
|
/**
|
|
|
* Split a string into substrings using the specified separator and return them as an array.
|
|
|
* @param splitter An object that can split a string.
|
|
|
* @param limit A value used to limit the number of elements returned in the array.
|
|
|
*/
|
|
|
split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];
|
|
|
}
|
|
|
|
|
|
interface ArrayBuffer {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface DataView {
|
|
|
readonly [Symbol.toStringTag]: string;
|
|
|
}
|
|
|
|
|
|
interface Int8Array {
|
|
|
readonly [Symbol.toStringTag]: "Int8Array";
|
|
|
}
|
|
|
|
|
|
interface Uint8Array {
|
|
|
readonly [Symbol.toStringTag]: "UInt8Array";
|
|
|
}
|
|
|
|
|
|
interface Uint8ClampedArray {
|
|
|
readonly [Symbol.toStringTag]: "Uint8ClampedArray";
|
|
|
}
|
|
|
|
|
|
interface Int16Array {
|
|
|
readonly [Symbol.toStringTag]: "Int16Array";
|
|
|
}
|
|
|
|
|
|
interface Uint16Array {
|
|
|
readonly [Symbol.toStringTag]: "Uint16Array";
|
|
|
}
|
|
|
|
|
|
interface Int32Array {
|
|
|
readonly [Symbol.toStringTag]: "Int32Array";
|
|
|
}
|
|
|
|
|
|
interface Uint32Array {
|
|
|
readonly [Symbol.toStringTag]: "Uint32Array";
|
|
|
}
|
|
|
|
|
|
interface Float32Array {
|
|
|
readonly [Symbol.toStringTag]: "Float32Array";
|
|
|
}
|
|
|
|
|
|
interface Float64Array {
|
|
|
readonly [Symbol.toStringTag]: "Float64Array";
|
|
|
}
|
|
|
|
|
|
interface ArrayConstructor {
|
|
|
readonly [Symbol.species]: ArrayConstructor;
|
|
|
}
|
|
|
interface MapConstructor {
|
|
|
readonly [Symbol.species]: MapConstructor;
|
|
|
}
|
|
|
interface SetConstructor {
|
|
|
readonly [Symbol.species]: SetConstructor;
|
|
|
}
|
|
|
interface ArrayBufferConstructor {
|
|
|
readonly [Symbol.species]: ArrayBufferConstructor;
|
|
|
}`,bs=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
declare namespace Reflect {
|
|
|
function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
|
|
|
function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: any): any;
|
|
|
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
|
|
|
function deleteProperty(target: object, propertyKey: PropertyKey): boolean;
|
|
|
function get(target: object, propertyKey: PropertyKey, receiver?: any): any;
|
|
|
function getOwnPropertyDescriptor(target: object, propertyKey: PropertyKey): PropertyDescriptor | undefined;
|
|
|
function getPrototypeOf(target: object): object;
|
|
|
function has(target: object, propertyKey: PropertyKey): boolean;
|
|
|
function isExtensible(target: object): boolean;
|
|
|
function ownKeys(target: object): PropertyKey[];
|
|
|
function preventExtensions(target: object): boolean;
|
|
|
function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
|
|
|
function setPrototypeOf(target: object, proto: any): boolean;
|
|
|
}
|
|
|
`,Rc=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
interface ProxyHandler<T extends object> {
|
|
|
getPrototypeOf? (target: T): object | null;
|
|
|
setPrototypeOf? (target: T, v: any): boolean;
|
|
|
isExtensible? (target: T): boolean;
|
|
|
preventExtensions? (target: T): boolean;
|
|
|
getOwnPropertyDescriptor? (target: T, p: PropertyKey): PropertyDescriptor | undefined;
|
|
|
has? (target: T, p: PropertyKey): boolean;
|
|
|
get? (target: T, p: PropertyKey, receiver: any): any;
|
|
|
set? (target: T, p: PropertyKey, value: any, receiver: any): boolean;
|
|
|
deleteProperty? (target: T, p: PropertyKey): boolean;
|
|
|
defineProperty? (target: T, p: PropertyKey, attributes: PropertyDescriptor): boolean;
|
|
|
enumerate? (target: T): PropertyKey[];
|
|
|
ownKeys? (target: T): PropertyKey[];
|
|
|
apply? (target: T, thisArg: any, argArray?: any): any;
|
|
|
construct? (target: T, argArray: any, newTarget?: any): object;
|
|
|
}
|
|
|
|
|
|
interface ProxyConstructor {
|
|
|
revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };
|
|
|
new <T extends object>(target: T, handler: ProxyHandler<T>): T;
|
|
|
}
|
|
|
declare var Proxy: ProxyConstructor;
|
|
|
`,$l=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
`+Mc+`
|
|
|
interface SymbolConstructor {
|
|
|
/**
|
|
|
* A method that returns the default iterator for an object. Called by the semantics of the
|
|
|
* for-of statement.
|
|
|
*/
|
|
|
readonly iterator: symbol;
|
|
|
}
|
|
|
|
|
|
interface IteratorYieldResult<TYield> {
|
|
|
done?: false;
|
|
|
value: TYield;
|
|
|
}
|
|
|
|
|
|
interface IteratorReturnResult<TReturn> {
|
|
|
done: true;
|
|
|
value: TReturn;
|
|
|
}
|
|
|
|
|
|
type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
|
|
|
|
|
|
interface Iterator<T, TReturn = any, TNext = undefined> {
|
|
|
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
|
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
|
|
|
return?(value?: TReturn): IteratorResult<T, TReturn>;
|
|
|
throw?(e?: any): IteratorResult<T, TReturn>;
|
|
|
}
|
|
|
|
|
|
interface Iterable<T> {
|
|
|
[Symbol.iterator](): Iterator<T>;
|
|
|
}
|
|
|
|
|
|
interface IterableIterator<T> extends Iterator<T> {
|
|
|
[Symbol.iterator](): IterableIterator<T>;
|
|
|
}
|
|
|
|
|
|
interface Array<T> {
|
|
|
/** Iterator */
|
|
|
[Symbol.iterator](): IterableIterator<T>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of key, value pairs for every entry in the array
|
|
|
*/
|
|
|
entries(): IterableIterator<[number, T]>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of keys in the array
|
|
|
*/
|
|
|
keys(): IterableIterator<number>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of values in the array
|
|
|
*/
|
|
|
values(): IterableIterator<T>;
|
|
|
}
|
|
|
|
|
|
interface ArrayConstructor {
|
|
|
/**
|
|
|
* Creates an array from an iterable object.
|
|
|
* @param iterable An iterable object to convert to an array.
|
|
|
*/
|
|
|
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an iterable object.
|
|
|
* @param iterable An iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
|
}
|
|
|
|
|
|
interface ReadonlyArray<T> {
|
|
|
/** Iterator of values in the array. */
|
|
|
[Symbol.iterator](): IterableIterator<T>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of key, value pairs for every entry in the array
|
|
|
*/
|
|
|
entries(): IterableIterator<[number, T]>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of keys in the array
|
|
|
*/
|
|
|
keys(): IterableIterator<number>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of values in the array
|
|
|
*/
|
|
|
values(): IterableIterator<T>;
|
|
|
}
|
|
|
|
|
|
interface IArguments {
|
|
|
/** Iterator */
|
|
|
[Symbol.iterator](): IterableIterator<any>;
|
|
|
}
|
|
|
|
|
|
interface Map<K, V> {
|
|
|
/** Returns an iterable of entries in the map. */
|
|
|
[Symbol.iterator](): IterableIterator<[K, V]>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of key, value pairs for every entry in the map.
|
|
|
*/
|
|
|
entries(): IterableIterator<[K, V]>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of keys in the map
|
|
|
*/
|
|
|
keys(): IterableIterator<K>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of values in the map
|
|
|
*/
|
|
|
values(): IterableIterator<V>;
|
|
|
}
|
|
|
|
|
|
interface ReadonlyMap<K, V> {
|
|
|
/** Returns an iterable of entries in the map. */
|
|
|
[Symbol.iterator](): IterableIterator<[K, V]>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of key, value pairs for every entry in the map.
|
|
|
*/
|
|
|
entries(): IterableIterator<[K, V]>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of keys in the map
|
|
|
*/
|
|
|
keys(): IterableIterator<K>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of values in the map
|
|
|
*/
|
|
|
values(): IterableIterator<V>;
|
|
|
}
|
|
|
|
|
|
interface MapConstructor {
|
|
|
new <K, V>(iterable: Iterable<readonly [K, V]>): Map<K, V>;
|
|
|
}
|
|
|
|
|
|
interface WeakMap<K extends object, V> { }
|
|
|
|
|
|
interface WeakMapConstructor {
|
|
|
new <K extends object, V>(iterable: Iterable<[K, V]>): WeakMap<K, V>;
|
|
|
}
|
|
|
|
|
|
interface Set<T> {
|
|
|
/** Iterates over values in the set. */
|
|
|
[Symbol.iterator](): IterableIterator<T>;
|
|
|
/**
|
|
|
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
|
|
|
*/
|
|
|
entries(): IterableIterator<[T, T]>;
|
|
|
/**
|
|
|
* Despite its name, returns an iterable of the values in the set,
|
|
|
*/
|
|
|
keys(): IterableIterator<T>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of values in the set.
|
|
|
*/
|
|
|
values(): IterableIterator<T>;
|
|
|
}
|
|
|
|
|
|
interface ReadonlySet<T> {
|
|
|
/** Iterates over values in the set. */
|
|
|
[Symbol.iterator](): IterableIterator<T>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
|
|
|
*/
|
|
|
entries(): IterableIterator<[T, T]>;
|
|
|
|
|
|
/**
|
|
|
* Despite its name, returns an iterable of the values in the set,
|
|
|
*/
|
|
|
keys(): IterableIterator<T>;
|
|
|
|
|
|
/**
|
|
|
* Returns an iterable of values in the set.
|
|
|
*/
|
|
|
values(): IterableIterator<T>;
|
|
|
}
|
|
|
|
|
|
interface SetConstructor {
|
|
|
new <T>(iterable?: Iterable<T> | null): Set<T>;
|
|
|
}
|
|
|
|
|
|
interface WeakSet<T extends object> { }
|
|
|
|
|
|
interface WeakSetConstructor {
|
|
|
new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>;
|
|
|
}
|
|
|
|
|
|
interface Promise<T> { }
|
|
|
|
|
|
interface PromiseConstructor {
|
|
|
/**
|
|
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
|
* resolve, or rejected when any Promise is rejected.
|
|
|
* @param values An array of Promises.
|
|
|
* @returns A new Promise.
|
|
|
*/
|
|
|
all<TAll>(values: Iterable<TAll | PromiseLike<TAll>>): Promise<TAll[]>;
|
|
|
|
|
|
/**
|
|
|
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
|
* or rejected.
|
|
|
* @param values An array of Promises.
|
|
|
* @returns A new Promise.
|
|
|
*/
|
|
|
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
|
|
|
}
|
|
|
|
|
|
declare namespace Reflect {
|
|
|
function enumerate(target: object): IterableIterator<any>;
|
|
|
}
|
|
|
|
|
|
interface String {
|
|
|
/** Iterator */
|
|
|
[Symbol.iterator](): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface Int8Array {
|
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
|
*/
|
|
|
entries(): IterableIterator<[number, number]>;
|
|
|
/**
|
|
|
* Returns an list of keys in the array
|
|
|
*/
|
|
|
keys(): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an list of values in the array
|
|
|
*/
|
|
|
values(): IterableIterator<number>;
|
|
|
}
|
|
|
|
|
|
interface Int8ArrayConstructor {
|
|
|
new (elements: Iterable<number>): Int8Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
|
|
|
}
|
|
|
|
|
|
interface Uint8Array {
|
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
|
*/
|
|
|
entries(): IterableIterator<[number, number]>;
|
|
|
/**
|
|
|
* Returns an list of keys in the array
|
|
|
*/
|
|
|
keys(): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an list of values in the array
|
|
|
*/
|
|
|
values(): IterableIterator<number>;
|
|
|
}
|
|
|
|
|
|
interface Uint8ArrayConstructor {
|
|
|
new (elements: Iterable<number>): Uint8Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
|
|
|
}
|
|
|
|
|
|
interface Uint8ClampedArray {
|
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
|
*/
|
|
|
entries(): IterableIterator<[number, number]>;
|
|
|
|
|
|
/**
|
|
|
* Returns an list of keys in the array
|
|
|
*/
|
|
|
keys(): IterableIterator<number>;
|
|
|
|
|
|
/**
|
|
|
* Returns an list of values in the array
|
|
|
*/
|
|
|
values(): IterableIterator<number>;
|
|
|
}
|
|
|
|
|
|
interface Uint8ClampedArrayConstructor {
|
|
|
new (elements: Iterable<number>): Uint8ClampedArray;
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
|
|
|
}
|
|
|
|
|
|
interface Int16Array {
|
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
|
*/
|
|
|
entries(): IterableIterator<[number, number]>;
|
|
|
|
|
|
/**
|
|
|
* Returns an list of keys in the array
|
|
|
*/
|
|
|
keys(): IterableIterator<number>;
|
|
|
|
|
|
/**
|
|
|
* Returns an list of values in the array
|
|
|
*/
|
|
|
values(): IterableIterator<number>;
|
|
|
}
|
|
|
|
|
|
interface Int16ArrayConstructor {
|
|
|
new (elements: Iterable<number>): Int16Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
|
|
|
}
|
|
|
|
|
|
interface Uint16Array {
|
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
|
*/
|
|
|
entries(): IterableIterator<[number, number]>;
|
|
|
/**
|
|
|
* Returns an list of keys in the array
|
|
|
*/
|
|
|
keys(): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an list of values in the array
|
|
|
*/
|
|
|
values(): IterableIterator<number>;
|
|
|
}
|
|
|
|
|
|
interface Uint16ArrayConstructor {
|
|
|
new (elements: Iterable<number>): Uint16Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
|
|
|
}
|
|
|
|
|
|
interface Int32Array {
|
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
|
*/
|
|
|
entries(): IterableIterator<[number, number]>;
|
|
|
/**
|
|
|
* Returns an list of keys in the array
|
|
|
*/
|
|
|
keys(): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an list of values in the array
|
|
|
*/
|
|
|
values(): IterableIterator<number>;
|
|
|
}
|
|
|
|
|
|
interface Int32ArrayConstructor {
|
|
|
new (elements: Iterable<number>): Int32Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
|
|
|
}
|
|
|
|
|
|
interface Uint32Array {
|
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
|
*/
|
|
|
entries(): IterableIterator<[number, number]>;
|
|
|
/**
|
|
|
* Returns an list of keys in the array
|
|
|
*/
|
|
|
keys(): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an list of values in the array
|
|
|
*/
|
|
|
values(): IterableIterator<number>;
|
|
|
}
|
|
|
|
|
|
interface Uint32ArrayConstructor {
|
|
|
new (elements: Iterable<number>): Uint32Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
|
|
|
}
|
|
|
|
|
|
interface Float32Array {
|
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
|
*/
|
|
|
entries(): IterableIterator<[number, number]>;
|
|
|
/**
|
|
|
* Returns an list of keys in the array
|
|
|
*/
|
|
|
keys(): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an list of values in the array
|
|
|
*/
|
|
|
values(): IterableIterator<number>;
|
|
|
}
|
|
|
|
|
|
interface Float32ArrayConstructor {
|
|
|
new (elements: Iterable<number>): Float32Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
|
|
|
}
|
|
|
|
|
|
interface Float64Array {
|
|
|
[Symbol.iterator](): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the array
|
|
|
*/
|
|
|
entries(): IterableIterator<[number, number]>;
|
|
|
/**
|
|
|
* Returns an list of keys in the array
|
|
|
*/
|
|
|
keys(): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an list of values in the array
|
|
|
*/
|
|
|
values(): IterableIterator<number>;
|
|
|
}
|
|
|
|
|
|
interface Float64ArrayConstructor {
|
|
|
new (elements: Iterable<number>): Float64Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
|
|
|
}
|
|
|
`,yc=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
interface PromiseConstructor {
|
|
|
/**
|
|
|
* A reference to the prototype.
|
|
|
*/
|
|
|
readonly prototype: Promise<any>;
|
|
|
|
|
|
/**
|
|
|
* Creates a new Promise.
|
|
|
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
|
|
|
* a resolve callback used to resolve the promise with a value or the result of another promise,
|
|
|
* and a reject callback used to reject the promise with a provided reason or error.
|
|
|
*/
|
|
|
new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
|
|
|
|
|
|
/**
|
|
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
|
* resolve, or rejected when any Promise is rejected.
|
|
|
* @param values An array of Promises.
|
|
|
* @returns A new Promise.
|
|
|
*/
|
|
|
all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
|
|
|
|
|
|
/**
|
|
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
|
* resolve, or rejected when any Promise is rejected.
|
|
|
* @param values An array of Promises.
|
|
|
* @returns A new Promise.
|
|
|
*/
|
|
|
all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
|
|
|
|
|
|
/**
|
|
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
|
* resolve, or rejected when any Promise is rejected.
|
|
|
* @param values An array of Promises.
|
|
|
* @returns A new Promise.
|
|
|
*/
|
|
|
all<T1, T2, T3, T4, T5, T6, T7, T8>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;
|
|
|
|
|
|
/**
|
|
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
|
* resolve, or rejected when any Promise is rejected.
|
|
|
* @param values An array of Promises.
|
|
|
* @returns A new Promise.
|
|
|
*/
|
|
|
all<T1, T2, T3, T4, T5, T6, T7>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, T3, T4, T5, T6, T7]>;
|
|
|
|
|
|
/**
|
|
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
|
* resolve, or rejected when any Promise is rejected.
|
|
|
* @param values An array of Promises.
|
|
|
* @returns A new Promise.
|
|
|
*/
|
|
|
all<T1, T2, T3, T4, T5, T6>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;
|
|
|
|
|
|
/**
|
|
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
|
* resolve, or rejected when any Promise is rejected.
|
|
|
* @param values An array of Promises.
|
|
|
* @returns A new Promise.
|
|
|
*/
|
|
|
all<T1, T2, T3, T4, T5>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;
|
|
|
|
|
|
/**
|
|
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
|
* resolve, or rejected when any Promise is rejected.
|
|
|
* @param values An array of Promises.
|
|
|
* @returns A new Promise.
|
|
|
*/
|
|
|
all<T1, T2, T3, T4>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>]): Promise<[T1, T2, T3, T4]>;
|
|
|
|
|
|
/**
|
|
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
|
* resolve, or rejected when any Promise is rejected.
|
|
|
* @param values An array of Promises.
|
|
|
* @returns A new Promise.
|
|
|
*/
|
|
|
all<T1, T2, T3>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;
|
|
|
|
|
|
/**
|
|
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
|
* resolve, or rejected when any Promise is rejected.
|
|
|
* @param values An array of Promises.
|
|
|
* @returns A new Promise.
|
|
|
*/
|
|
|
all<T1, T2>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
|
|
|
|
|
|
/**
|
|
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
|
|
* resolve, or rejected when any Promise is rejected.
|
|
|
* @param values An array of Promises.
|
|
|
* @returns A new Promise.
|
|
|
*/
|
|
|
all<T>(values: readonly (T | PromiseLike<T>)[]): Promise<T[]>;
|
|
|
|
|
|
/**
|
|
|
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
|
* or rejected.
|
|
|
* @param values An array of Promises.
|
|
|
* @returns A new Promise.
|
|
|
*/
|
|
|
race<T>(values: readonly T[]): Promise<T extends PromiseLike<infer U> ? U : T>;
|
|
|
|
|
|
/**
|
|
|
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
|
* or rejected.
|
|
|
* @param values An iterable of Promises.
|
|
|
* @returns A new Promise.
|
|
|
*/
|
|
|
race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;
|
|
|
|
|
|
/**
|
|
|
* Creates a new rejected promise for the provided reason.
|
|
|
* @param reason The reason the promise was rejected.
|
|
|
* @returns A new rejected Promise.
|
|
|
*/
|
|
|
reject<T = never>(reason?: any): Promise<T>;
|
|
|
|
|
|
/**
|
|
|
* Creates a new resolved promise for the provided value.
|
|
|
* @param value A promise.
|
|
|
* @returns A promise whose internal state matches the provided promise.
|
|
|
*/
|
|
|
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
|
|
|
|
/**
|
|
|
* Creates a new resolved promise .
|
|
|
* @returns A resolved promise.
|
|
|
*/
|
|
|
resolve(): Promise<void>;
|
|
|
}
|
|
|
|
|
|
declare var Promise: PromiseConstructor;
|
|
|
`,ou=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
`+$l+`
|
|
|
interface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {
|
|
|
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
|
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
|
|
|
return(value: TReturn): IteratorResult<T, TReturn>;
|
|
|
throw(e: any): IteratorResult<T, TReturn>;
|
|
|
[Symbol.iterator](): Generator<T, TReturn, TNext>;
|
|
|
}
|
|
|
|
|
|
interface GeneratorFunction {
|
|
|
/**
|
|
|
* Creates a new Generator object.
|
|
|
* @param args A list of arguments the function accepts.
|
|
|
*/
|
|
|
new (...args: any[]): Generator;
|
|
|
/**
|
|
|
* Creates a new Generator object.
|
|
|
* @param args A list of arguments the function accepts.
|
|
|
*/
|
|
|
(...args: any[]): Generator;
|
|
|
/**
|
|
|
* The length of the arguments.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Returns the name of the function.
|
|
|
*/
|
|
|
readonly name: string;
|
|
|
/**
|
|
|
* A reference to the prototype.
|
|
|
*/
|
|
|
readonly prototype: Generator;
|
|
|
}
|
|
|
|
|
|
interface GeneratorFunctionConstructor {
|
|
|
/**
|
|
|
* Creates a new Generator function.
|
|
|
* @param args A list of arguments the function accepts.
|
|
|
*/
|
|
|
new (...args: string[]): GeneratorFunction;
|
|
|
/**
|
|
|
* Creates a new Generator function.
|
|
|
* @param args A list of arguments the function accepts.
|
|
|
*/
|
|
|
(...args: string[]): GeneratorFunction;
|
|
|
/**
|
|
|
* The length of the arguments.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Returns the name of the function.
|
|
|
*/
|
|
|
readonly name: string;
|
|
|
/**
|
|
|
* A reference to the prototype.
|
|
|
*/
|
|
|
readonly prototype: GeneratorFunction;
|
|
|
}
|
|
|
`,Lu=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
interface Map<K, V> {
|
|
|
clear(): void;
|
|
|
delete(key: K): boolean;
|
|
|
forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
|
|
|
get(key: K): V | undefined;
|
|
|
has(key: K): boolean;
|
|
|
set(key: K, value: V): this;
|
|
|
readonly size: number;
|
|
|
}
|
|
|
|
|
|
interface MapConstructor {
|
|
|
new(): Map<any, any>;
|
|
|
new<K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
|
|
|
readonly prototype: Map<any, any>;
|
|
|
}
|
|
|
declare var Map: MapConstructor;
|
|
|
|
|
|
interface ReadonlyMap<K, V> {
|
|
|
forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
|
|
|
get(key: K): V | undefined;
|
|
|
has(key: K): boolean;
|
|
|
readonly size: number;
|
|
|
}
|
|
|
|
|
|
interface WeakMap<K extends object, V> {
|
|
|
delete(key: K): boolean;
|
|
|
get(key: K): V | undefined;
|
|
|
has(key: K): boolean;
|
|
|
set(key: K, value: V): this;
|
|
|
}
|
|
|
|
|
|
interface WeakMapConstructor {
|
|
|
new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;
|
|
|
readonly prototype: WeakMap<object, any>;
|
|
|
}
|
|
|
declare var WeakMap: WeakMapConstructor;
|
|
|
|
|
|
interface Set<T> {
|
|
|
add(value: T): this;
|
|
|
clear(): void;
|
|
|
delete(value: T): boolean;
|
|
|
forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
|
|
|
has(value: T): boolean;
|
|
|
readonly size: number;
|
|
|
}
|
|
|
|
|
|
interface SetConstructor {
|
|
|
new <T = any>(values?: readonly T[] | null): Set<T>;
|
|
|
readonly prototype: Set<any>;
|
|
|
}
|
|
|
declare var Set: SetConstructor;
|
|
|
|
|
|
interface ReadonlySet<T> {
|
|
|
forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
|
|
|
has(value: T): boolean;
|
|
|
readonly size: number;
|
|
|
}
|
|
|
|
|
|
interface WeakSet<T extends object> {
|
|
|
add(value: T): this;
|
|
|
delete(value: T): boolean;
|
|
|
has(value: T): boolean;
|
|
|
}
|
|
|
|
|
|
interface WeakSetConstructor {
|
|
|
new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;
|
|
|
readonly prototype: WeakSet<object>;
|
|
|
}
|
|
|
declare var WeakSet: WeakSetConstructor;
|
|
|
`,su=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
interface Array<T> {
|
|
|
/**
|
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
find<S extends T>(predicate: (this: void, value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;
|
|
|
find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after filling the section identified by start and end with value
|
|
|
* @param value value to fill array section with
|
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
|
* length+start where length is the length of the array.
|
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
|
* length+end.
|
|
|
*/
|
|
|
fill(value: T, start?: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
|
* to the same array starting at position target
|
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
|
* length of the array.
|
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
|
* is treated as length+end.
|
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
|
*/
|
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
}
|
|
|
|
|
|
interface ArrayConstructor {
|
|
|
/**
|
|
|
* Creates an array from an array-like object.
|
|
|
* @param arrayLike An array-like object to convert to an array.
|
|
|
*/
|
|
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an iterable object.
|
|
|
* @param arrayLike An array-like object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
|
|
|
|
/**
|
|
|
* Returns a new array from a set of elements.
|
|
|
* @param items A set of elements to include in the new array object.
|
|
|
*/
|
|
|
of<T>(...items: T[]): T[];
|
|
|
}
|
|
|
|
|
|
interface DateConstructor {
|
|
|
new (value: number | string | Date): Date;
|
|
|
}
|
|
|
|
|
|
interface Function {
|
|
|
/**
|
|
|
* Returns the name of the function. Function names are read-only and can not be changed.
|
|
|
*/
|
|
|
readonly name: string;
|
|
|
}
|
|
|
|
|
|
interface Math {
|
|
|
/**
|
|
|
* Returns the number of leading zero bits in the 32-bit binary representation of a number.
|
|
|
* @param x A numeric expression.
|
|
|
*/
|
|
|
clz32(x: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the result of 32-bit multiplication of two numbers.
|
|
|
* @param x First number
|
|
|
* @param y Second number
|
|
|
*/
|
|
|
imul(x: number, y: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the sign of the x, indicating whether x is positive, negative or zero.
|
|
|
* @param x The numeric expression to test
|
|
|
*/
|
|
|
sign(x: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the base 10 logarithm of a number.
|
|
|
* @param x A numeric expression.
|
|
|
*/
|
|
|
log10(x: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the base 2 logarithm of a number.
|
|
|
* @param x A numeric expression.
|
|
|
*/
|
|
|
log2(x: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the natural logarithm of 1 + x.
|
|
|
* @param x A numeric expression.
|
|
|
*/
|
|
|
log1p(x: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the result of (e^x - 1), which is an implementation-dependent approximation to
|
|
|
* subtracting 1 from the exponential function of x (e raised to the power of x, where e
|
|
|
* is the base of the natural logarithms).
|
|
|
* @param x A numeric expression.
|
|
|
*/
|
|
|
expm1(x: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the hyperbolic cosine of a number.
|
|
|
* @param x A numeric expression that contains an angle measured in radians.
|
|
|
*/
|
|
|
cosh(x: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the hyperbolic sine of a number.
|
|
|
* @param x A numeric expression that contains an angle measured in radians.
|
|
|
*/
|
|
|
sinh(x: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the hyperbolic tangent of a number.
|
|
|
* @param x A numeric expression that contains an angle measured in radians.
|
|
|
*/
|
|
|
tanh(x: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the inverse hyperbolic cosine of a number.
|
|
|
* @param x A numeric expression that contains an angle measured in radians.
|
|
|
*/
|
|
|
acosh(x: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the inverse hyperbolic sine of a number.
|
|
|
* @param x A numeric expression that contains an angle measured in radians.
|
|
|
*/
|
|
|
asinh(x: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the inverse hyperbolic tangent of a number.
|
|
|
* @param x A numeric expression that contains an angle measured in radians.
|
|
|
*/
|
|
|
atanh(x: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the square root of the sum of squares of its arguments.
|
|
|
* @param values Values to compute the square root for.
|
|
|
* If no arguments are passed, the result is +0.
|
|
|
* If there is only one argument, the result is the absolute value.
|
|
|
* If any argument is +Infinity or -Infinity, the result is +Infinity.
|
|
|
* If any argument is NaN, the result is NaN.
|
|
|
* If all arguments are either +0 or \u22120, the result is +0.
|
|
|
*/
|
|
|
hypot(...values: number[]): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the integral part of the a numeric expression, x, removing any fractional digits.
|
|
|
* If x is already an integer, the result is x.
|
|
|
* @param x A numeric expression.
|
|
|
*/
|
|
|
trunc(x: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the nearest single precision float representation of a number.
|
|
|
* @param x A numeric expression.
|
|
|
*/
|
|
|
fround(x: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns an implementation-dependent approximation to the cube root of number.
|
|
|
* @param x A numeric expression.
|
|
|
*/
|
|
|
cbrt(x: number): number;
|
|
|
}
|
|
|
|
|
|
interface NumberConstructor {
|
|
|
/**
|
|
|
* The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
|
|
|
* that is representable as a Number value, which is approximately:
|
|
|
* 2.2204460492503130808472633361816 x 10\u200D\u2212\u200D16.
|
|
|
*/
|
|
|
readonly EPSILON: number;
|
|
|
|
|
|
/**
|
|
|
* Returns true if passed value is finite.
|
|
|
* Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
|
|
|
* number. Only finite values of the type number, result in true.
|
|
|
* @param number A numeric value.
|
|
|
*/
|
|
|
isFinite(number: number): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns true if the value passed is an integer, false otherwise.
|
|
|
* @param number A numeric value.
|
|
|
*/
|
|
|
isInteger(number: number): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
|
|
|
* number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
|
|
|
* to a number. Only values of the type number, that are also NaN, result in true.
|
|
|
* @param number A numeric value.
|
|
|
*/
|
|
|
isNaN(number: number): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns true if the value passed is a safe integer.
|
|
|
* @param number A numeric value.
|
|
|
*/
|
|
|
isSafeInteger(number: number): boolean;
|
|
|
|
|
|
/**
|
|
|
* The value of the largest integer n such that n and n + 1 are both exactly representable as
|
|
|
* a Number value.
|
|
|
* The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 \u2212 1.
|
|
|
*/
|
|
|
readonly MAX_SAFE_INTEGER: number;
|
|
|
|
|
|
/**
|
|
|
* The value of the smallest integer n such that n and n \u2212 1 are both exactly representable as
|
|
|
* a Number value.
|
|
|
* The value of Number.MIN_SAFE_INTEGER is \u22129007199254740991 (\u2212(2^53 \u2212 1)).
|
|
|
*/
|
|
|
readonly MIN_SAFE_INTEGER: number;
|
|
|
|
|
|
/**
|
|
|
* Converts a string to a floating-point number.
|
|
|
* @param string A string that contains a floating-point number.
|
|
|
*/
|
|
|
parseFloat(string: string): number;
|
|
|
|
|
|
/**
|
|
|
* Converts A string to an integer.
|
|
|
* @param s A string to convert into a number.
|
|
|
* @param radix A value between 2 and 36 that specifies the base of the number in numString.
|
|
|
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
|
|
|
* All other strings are considered decimal.
|
|
|
*/
|
|
|
parseInt(string: string, radix?: number): number;
|
|
|
}
|
|
|
|
|
|
interface ObjectConstructor {
|
|
|
/**
|
|
|
* Copy the values of all of the enumerable own properties from one or more source objects to a
|
|
|
* target object. Returns the target object.
|
|
|
* @param target The target object to copy to.
|
|
|
* @param source The source object from which to copy properties.
|
|
|
*/
|
|
|
assign<T, U>(target: T, source: U): T & U;
|
|
|
|
|
|
/**
|
|
|
* Copy the values of all of the enumerable own properties from one or more source objects to a
|
|
|
* target object. Returns the target object.
|
|
|
* @param target The target object to copy to.
|
|
|
* @param source1 The first source object from which to copy properties.
|
|
|
* @param source2 The second source object from which to copy properties.
|
|
|
*/
|
|
|
assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
|
|
|
|
|
|
/**
|
|
|
* Copy the values of all of the enumerable own properties from one or more source objects to a
|
|
|
* target object. Returns the target object.
|
|
|
* @param target The target object to copy to.
|
|
|
* @param source1 The first source object from which to copy properties.
|
|
|
* @param source2 The second source object from which to copy properties.
|
|
|
* @param source3 The third source object from which to copy properties.
|
|
|
*/
|
|
|
assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
|
|
|
|
|
|
/**
|
|
|
* Copy the values of all of the enumerable own properties from one or more source objects to a
|
|
|
* target object. Returns the target object.
|
|
|
* @param target The target object to copy to.
|
|
|
* @param sources One or more source objects from which to copy properties
|
|
|
*/
|
|
|
assign(target: object, ...sources: any[]): any;
|
|
|
|
|
|
/**
|
|
|
* Returns an array of all symbol properties found directly on object o.
|
|
|
* @param o Object to retrieve the symbols from.
|
|
|
*/
|
|
|
getOwnPropertySymbols(o: any): symbol[];
|
|
|
|
|
|
/**
|
|
|
* Returns the names of the enumerable string properties and methods of an object.
|
|
|
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
|
*/
|
|
|
keys(o: {}): string[];
|
|
|
|
|
|
/**
|
|
|
* Returns true if the values are the same value, false otherwise.
|
|
|
* @param value1 The first value.
|
|
|
* @param value2 The second value.
|
|
|
*/
|
|
|
is(value1: any, value2: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Sets the prototype of a specified object o to object proto or null. Returns the object o.
|
|
|
* @param o The object to change its prototype.
|
|
|
* @param proto The value of the new prototype or null.
|
|
|
*/
|
|
|
setPrototypeOf(o: any, proto: object | null): any;
|
|
|
}
|
|
|
|
|
|
interface ReadonlyArray<T> {
|
|
|
/**
|
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
find<S extends T>(predicate: (this: void, value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;
|
|
|
find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;
|
|
|
}
|
|
|
|
|
|
interface RegExp {
|
|
|
/**
|
|
|
* Returns a string indicating the flags of the regular expression in question. This field is read-only.
|
|
|
* The characters in this string are sequenced and concatenated in the following order:
|
|
|
*
|
|
|
* - "g" for global
|
|
|
* - "i" for ignoreCase
|
|
|
* - "m" for multiline
|
|
|
* - "u" for unicode
|
|
|
* - "y" for sticky
|
|
|
*
|
|
|
* If no flags are set, the value is the empty string.
|
|
|
*/
|
|
|
readonly flags: string;
|
|
|
|
|
|
/**
|
|
|
* Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
|
|
|
* expression. Default is false. Read-only.
|
|
|
*/
|
|
|
readonly sticky: boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
|
|
|
* expression. Default is false. Read-only.
|
|
|
*/
|
|
|
readonly unicode: boolean;
|
|
|
}
|
|
|
|
|
|
interface RegExpConstructor {
|
|
|
new (pattern: RegExp | string, flags?: string): RegExp;
|
|
|
(pattern: RegExp | string, flags?: string): RegExp;
|
|
|
}
|
|
|
|
|
|
interface String {
|
|
|
/**
|
|
|
* Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
|
|
|
* value of the UTF-16 encoded code point starting at the string element at position pos in
|
|
|
* the String resulting from converting this object to a String.
|
|
|
* If there is no element at that position, the result is undefined.
|
|
|
* If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
|
|
|
*/
|
|
|
codePointAt(pos: number): number | undefined;
|
|
|
|
|
|
/**
|
|
|
* Returns true if searchString appears as a substring of the result of converting this
|
|
|
* object to a String, at one or more positions that are
|
|
|
* greater than or equal to position; otherwise, returns false.
|
|
|
* @param searchString search string
|
|
|
* @param position If position is undefined, 0 is assumed, so as to search all of the String.
|
|
|
*/
|
|
|
includes(searchString: string, position?: number): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns true if the sequence of elements of searchString converted to a String is the
|
|
|
* same as the corresponding elements of this object (converted to a String) starting at
|
|
|
* endPosition \u2013 length(this). Otherwise returns false.
|
|
|
*/
|
|
|
endsWith(searchString: string, endPosition?: number): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns the String value result of normalizing the string into the normalization form
|
|
|
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
|
|
|
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
|
|
|
* is "NFC"
|
|
|
*/
|
|
|
normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the String value result of normalizing the string into the normalization form
|
|
|
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
|
|
|
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
|
|
|
* is "NFC"
|
|
|
*/
|
|
|
normalize(form?: string): string;
|
|
|
|
|
|
/**
|
|
|
* Returns a String value that is made from count copies appended together. If count is 0,
|
|
|
* the empty string is returned.
|
|
|
* @param count number of copies to append
|
|
|
*/
|
|
|
repeat(count: number): string;
|
|
|
|
|
|
/**
|
|
|
* Returns true if the sequence of elements of searchString converted to a String is the
|
|
|
* same as the corresponding elements of this object (converted to a String) starting at
|
|
|
* position. Otherwise returns false.
|
|
|
*/
|
|
|
startsWith(searchString: string, position?: number): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns an <a> HTML anchor element and sets the name attribute to the text value
|
|
|
* @param name
|
|
|
*/
|
|
|
anchor(name: string): string;
|
|
|
|
|
|
/** Returns a <big> HTML element */
|
|
|
big(): string;
|
|
|
|
|
|
/** Returns a <blink> HTML element */
|
|
|
blink(): string;
|
|
|
|
|
|
/** Returns a <b> HTML element */
|
|
|
bold(): string;
|
|
|
|
|
|
/** Returns a <tt> HTML element */
|
|
|
fixed(): string;
|
|
|
|
|
|
/** Returns a <font> HTML element and sets the color attribute value */
|
|
|
fontcolor(color: string): string;
|
|
|
|
|
|
/** Returns a <font> HTML element and sets the size attribute value */
|
|
|
fontsize(size: number): string;
|
|
|
|
|
|
/** Returns a <font> HTML element and sets the size attribute value */
|
|
|
fontsize(size: string): string;
|
|
|
|
|
|
/** Returns an <i> HTML element */
|
|
|
italics(): string;
|
|
|
|
|
|
/** Returns an <a> HTML element and sets the href attribute value */
|
|
|
link(url: string): string;
|
|
|
|
|
|
/** Returns a <small> HTML element */
|
|
|
small(): string;
|
|
|
|
|
|
/** Returns a <strike> HTML element */
|
|
|
strike(): string;
|
|
|
|
|
|
/** Returns a <sub> HTML element */
|
|
|
sub(): string;
|
|
|
|
|
|
/** Returns a <sup> HTML element */
|
|
|
sup(): string;
|
|
|
}
|
|
|
|
|
|
interface StringConstructor {
|
|
|
/**
|
|
|
* Return the String value whose elements are, in order, the elements in the List elements.
|
|
|
* If length is 0, the empty string is returned.
|
|
|
*/
|
|
|
fromCodePoint(...codePoints: number[]): string;
|
|
|
|
|
|
/**
|
|
|
* String.raw is intended for use as a tag function of a Tagged Template String. When called
|
|
|
* as such the first argument will be a well formed template call site object and the rest
|
|
|
* parameter will contain the substitution values.
|
|
|
* @param template A well-formed template string call site representation.
|
|
|
* @param substitutions A set of substitution values.
|
|
|
*/
|
|
|
raw(template: TemplateStringsArray, ...substitutions: any[]): string;
|
|
|
}
|
|
|
`,lu=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
/////////////////////////////
|
|
|
/// DOM Iterable APIs
|
|
|
/////////////////////////////
|
|
|
|
|
|
interface AudioParam {
|
|
|
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
|
|
|
}
|
|
|
|
|
|
interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
|
|
|
}
|
|
|
|
|
|
interface AudioTrackList {
|
|
|
[Symbol.iterator](): IterableIterator<AudioTrack>;
|
|
|
}
|
|
|
|
|
|
interface BaseAudioContext {
|
|
|
createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
|
|
|
createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
|
|
|
}
|
|
|
|
|
|
interface CSSRuleList {
|
|
|
[Symbol.iterator](): IterableIterator<CSSRule>;
|
|
|
}
|
|
|
|
|
|
interface CSSStyleDeclaration {
|
|
|
[Symbol.iterator](): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface Cache {
|
|
|
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
|
}
|
|
|
|
|
|
interface CanvasPathDrawingStyles {
|
|
|
setLineDash(segments: Iterable<number>): void;
|
|
|
}
|
|
|
|
|
|
interface ClientRectList {
|
|
|
[Symbol.iterator](): IterableIterator<ClientRect>;
|
|
|
}
|
|
|
|
|
|
interface DOMRectList {
|
|
|
[Symbol.iterator](): IterableIterator<DOMRect>;
|
|
|
}
|
|
|
|
|
|
interface DOMStringList {
|
|
|
[Symbol.iterator](): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface DOMTokenList {
|
|
|
[Symbol.iterator](): IterableIterator<string>;
|
|
|
entries(): IterableIterator<[number, string]>;
|
|
|
keys(): IterableIterator<number>;
|
|
|
values(): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface DataTransferItemList {
|
|
|
[Symbol.iterator](): IterableIterator<DataTransferItem>;
|
|
|
}
|
|
|
|
|
|
interface FileList {
|
|
|
[Symbol.iterator](): IterableIterator<File>;
|
|
|
}
|
|
|
|
|
|
interface FormData {
|
|
|
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the list.
|
|
|
*/
|
|
|
entries(): IterableIterator<[string, FormDataEntryValue]>;
|
|
|
/**
|
|
|
* Returns a list of keys in the list.
|
|
|
*/
|
|
|
keys(): IterableIterator<string>;
|
|
|
/**
|
|
|
* Returns a list of values in the list.
|
|
|
*/
|
|
|
values(): IterableIterator<FormDataEntryValue>;
|
|
|
}
|
|
|
|
|
|
interface HTMLAllCollection {
|
|
|
[Symbol.iterator](): IterableIterator<Element>;
|
|
|
}
|
|
|
|
|
|
interface HTMLCollectionBase {
|
|
|
[Symbol.iterator](): IterableIterator<Element>;
|
|
|
}
|
|
|
|
|
|
interface HTMLCollectionOf<T extends Element> {
|
|
|
[Symbol.iterator](): IterableIterator<T>;
|
|
|
}
|
|
|
|
|
|
interface HTMLFormElement {
|
|
|
[Symbol.iterator](): IterableIterator<Element>;
|
|
|
}
|
|
|
|
|
|
interface HTMLSelectElement {
|
|
|
[Symbol.iterator](): IterableIterator<Element>;
|
|
|
}
|
|
|
|
|
|
interface Headers {
|
|
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
|
/**
|
|
|
* Returns an iterator allowing to go through all key/value pairs contained in this object.
|
|
|
*/
|
|
|
entries(): IterableIterator<[string, string]>;
|
|
|
/**
|
|
|
* Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
|
|
|
*/
|
|
|
keys(): IterableIterator<string>;
|
|
|
/**
|
|
|
* Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
|
|
|
*/
|
|
|
values(): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface IDBObjectStore {
|
|
|
/**
|
|
|
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
|
*/
|
|
|
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
|
}
|
|
|
|
|
|
interface MediaKeyStatusMap {
|
|
|
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
|
|
|
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
|
|
|
keys(): IterableIterator<BufferSource>;
|
|
|
values(): IterableIterator<MediaKeyStatus>;
|
|
|
}
|
|
|
|
|
|
interface MediaList {
|
|
|
[Symbol.iterator](): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface MimeTypeArray {
|
|
|
[Symbol.iterator](): IterableIterator<MimeType>;
|
|
|
}
|
|
|
|
|
|
interface NamedNodeMap {
|
|
|
[Symbol.iterator](): IterableIterator<Attr>;
|
|
|
}
|
|
|
|
|
|
interface Navigator {
|
|
|
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
|
|
|
}
|
|
|
|
|
|
interface NodeList {
|
|
|
[Symbol.iterator](): IterableIterator<Node>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the list.
|
|
|
*/
|
|
|
entries(): IterableIterator<[number, Node]>;
|
|
|
/**
|
|
|
* Returns an list of keys in the list.
|
|
|
*/
|
|
|
keys(): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an list of values in the list.
|
|
|
*/
|
|
|
values(): IterableIterator<Node>;
|
|
|
}
|
|
|
|
|
|
interface NodeListOf<TNode extends Node> {
|
|
|
[Symbol.iterator](): IterableIterator<TNode>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the list.
|
|
|
*/
|
|
|
entries(): IterableIterator<[number, TNode]>;
|
|
|
/**
|
|
|
* Returns an list of keys in the list.
|
|
|
*/
|
|
|
keys(): IterableIterator<number>;
|
|
|
/**
|
|
|
* Returns an list of values in the list.
|
|
|
*/
|
|
|
values(): IterableIterator<TNode>;
|
|
|
}
|
|
|
|
|
|
interface Plugin {
|
|
|
[Symbol.iterator](): IterableIterator<MimeType>;
|
|
|
}
|
|
|
|
|
|
interface PluginArray {
|
|
|
[Symbol.iterator](): IterableIterator<Plugin>;
|
|
|
}
|
|
|
|
|
|
interface RTCRtpTransceiver {
|
|
|
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
|
|
|
}
|
|
|
|
|
|
interface RTCStatsReport extends ReadonlyMap<string, any> {
|
|
|
}
|
|
|
|
|
|
interface SVGLengthList {
|
|
|
[Symbol.iterator](): IterableIterator<SVGLength>;
|
|
|
}
|
|
|
|
|
|
interface SVGNumberList {
|
|
|
[Symbol.iterator](): IterableIterator<SVGNumber>;
|
|
|
}
|
|
|
|
|
|
interface SVGPointList {
|
|
|
[Symbol.iterator](): IterableIterator<DOMPoint>;
|
|
|
}
|
|
|
|
|
|
interface SVGStringList {
|
|
|
[Symbol.iterator](): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface SourceBufferList {
|
|
|
[Symbol.iterator](): IterableIterator<SourceBuffer>;
|
|
|
}
|
|
|
|
|
|
interface SpeechGrammarList {
|
|
|
[Symbol.iterator](): IterableIterator<SpeechGrammar>;
|
|
|
}
|
|
|
|
|
|
interface SpeechRecognitionResult {
|
|
|
[Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
|
|
|
}
|
|
|
|
|
|
interface SpeechRecognitionResultList {
|
|
|
[Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
|
|
|
}
|
|
|
|
|
|
interface StyleSheetList {
|
|
|
[Symbol.iterator](): IterableIterator<StyleSheet>;
|
|
|
}
|
|
|
|
|
|
interface TextTrackCueList {
|
|
|
[Symbol.iterator](): IterableIterator<TextTrackCue>;
|
|
|
}
|
|
|
|
|
|
interface TextTrackList {
|
|
|
[Symbol.iterator](): IterableIterator<TextTrack>;
|
|
|
}
|
|
|
|
|
|
interface TouchList {
|
|
|
[Symbol.iterator](): IterableIterator<Touch>;
|
|
|
}
|
|
|
|
|
|
interface URLSearchParams {
|
|
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
|
/**
|
|
|
* Returns an array of key, value pairs for every entry in the search params.
|
|
|
*/
|
|
|
entries(): IterableIterator<[string, string]>;
|
|
|
/**
|
|
|
* Returns a list of keys in the search params.
|
|
|
*/
|
|
|
keys(): IterableIterator<string>;
|
|
|
/**
|
|
|
* Returns a list of values in the search params.
|
|
|
*/
|
|
|
values(): IterableIterator<string>;
|
|
|
}
|
|
|
|
|
|
interface VRDisplay {
|
|
|
requestPresent(layers: Iterable<VRLayer>): Promise<void>;
|
|
|
}
|
|
|
|
|
|
interface VideoTrackList {
|
|
|
[Symbol.iterator](): IterableIterator<VideoTrack>;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_draw_buffers {
|
|
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
|
}
|
|
|
|
|
|
interface WebAuthentication {
|
|
|
makeCredential(accountInformation: Account, cryptoParameters: Iterable<ScopedCredentialParameters>, attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;
|
|
|
}
|
|
|
|
|
|
interface WebGL2RenderingContextBase {
|
|
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
|
|
|
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
|
|
|
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
|
|
|
drawBuffers(buffers: Iterable<GLenum>): void;
|
|
|
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
|
|
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
|
|
|
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
|
|
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
|
|
|
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
|
|
|
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
|
|
|
}
|
|
|
|
|
|
interface WebGL2RenderingContextOverloads {
|
|
|
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
}
|
|
|
|
|
|
interface WebGLRenderingContextBase {
|
|
|
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
|
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
|
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
|
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
|
}
|
|
|
|
|
|
interface WebGLRenderingContextOverloads {
|
|
|
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
|
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
|
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
|
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
|
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
|
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
|
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
|
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
|
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
|
}
|
|
|
`,cu=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/////////////////////////////
|
|
|
/// Windows Script Host APIS
|
|
|
/////////////////////////////
|
|
|
|
|
|
|
|
|
interface ActiveXObject {
|
|
|
new (s: string): any;
|
|
|
}
|
|
|
declare var ActiveXObject: ActiveXObject;
|
|
|
|
|
|
interface ITextWriter {
|
|
|
Write(s: string): void;
|
|
|
WriteLine(s: string): void;
|
|
|
Close(): void;
|
|
|
}
|
|
|
|
|
|
interface TextStreamBase {
|
|
|
/**
|
|
|
* The column number of the current character position in an input stream.
|
|
|
*/
|
|
|
Column: number;
|
|
|
|
|
|
/**
|
|
|
* The current line number in an input stream.
|
|
|
*/
|
|
|
Line: number;
|
|
|
|
|
|
/**
|
|
|
* Closes a text stream.
|
|
|
* It is not necessary to close standard streams; they close automatically when the process ends. If
|
|
|
* you close a standard stream, be aware that any other pointers to that standard stream become invalid.
|
|
|
*/
|
|
|
Close(): void;
|
|
|
}
|
|
|
|
|
|
interface TextStreamWriter extends TextStreamBase {
|
|
|
/**
|
|
|
* Sends a string to an output stream.
|
|
|
*/
|
|
|
Write(s: string): void;
|
|
|
|
|
|
/**
|
|
|
* Sends a specified number of blank lines (newline characters) to an output stream.
|
|
|
*/
|
|
|
WriteBlankLines(intLines: number): void;
|
|
|
|
|
|
/**
|
|
|
* Sends a string followed by a newline character to an output stream.
|
|
|
*/
|
|
|
WriteLine(s: string): void;
|
|
|
}
|
|
|
|
|
|
interface TextStreamReader extends TextStreamBase {
|
|
|
/**
|
|
|
* Returns a specified number of characters from an input stream, starting at the current pointer position.
|
|
|
* Does not return until the ENTER key is pressed.
|
|
|
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
|
|
|
*/
|
|
|
Read(characters: number): string;
|
|
|
|
|
|
/**
|
|
|
* Returns all characters from an input stream.
|
|
|
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
|
|
|
*/
|
|
|
ReadAll(): string;
|
|
|
|
|
|
/**
|
|
|
* Returns an entire line from an input stream.
|
|
|
* Although this method extracts the newline character, it does not add it to the returned string.
|
|
|
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
|
|
|
*/
|
|
|
ReadLine(): string;
|
|
|
|
|
|
/**
|
|
|
* Skips a specified number of characters when reading from an input text stream.
|
|
|
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
|
|
|
* @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)
|
|
|
*/
|
|
|
Skip(characters: number): void;
|
|
|
|
|
|
/**
|
|
|
* Skips the next line when reading from an input text stream.
|
|
|
* Can only be used on a stream in reading mode, not writing or appending mode.
|
|
|
*/
|
|
|
SkipLine(): void;
|
|
|
|
|
|
/**
|
|
|
* Indicates whether the stream pointer position is at the end of a line.
|
|
|
*/
|
|
|
AtEndOfLine: boolean;
|
|
|
|
|
|
/**
|
|
|
* Indicates whether the stream pointer position is at the end of a stream.
|
|
|
*/
|
|
|
AtEndOfStream: boolean;
|
|
|
}
|
|
|
|
|
|
declare var WScript: {
|
|
|
/**
|
|
|
* Outputs text to either a message box (under WScript.exe) or the command console window followed by
|
|
|
* a newline (under CScript.exe).
|
|
|
*/
|
|
|
Echo(s: any): void;
|
|
|
|
|
|
/**
|
|
|
* Exposes the write-only error output stream for the current script.
|
|
|
* Can be accessed only while using CScript.exe.
|
|
|
*/
|
|
|
StdErr: TextStreamWriter;
|
|
|
|
|
|
/**
|
|
|
* Exposes the write-only output stream for the current script.
|
|
|
* Can be accessed only while using CScript.exe.
|
|
|
*/
|
|
|
StdOut: TextStreamWriter;
|
|
|
Arguments: { length: number; Item(n: number): string; };
|
|
|
|
|
|
/**
|
|
|
* The full path of the currently running script.
|
|
|
*/
|
|
|
ScriptFullName: string;
|
|
|
|
|
|
/**
|
|
|
* Forces the script to stop immediately, with an optional exit code.
|
|
|
*/
|
|
|
Quit(exitCode?: number): number;
|
|
|
|
|
|
/**
|
|
|
* The Windows Script Host build version number.
|
|
|
*/
|
|
|
BuildVersion: number;
|
|
|
|
|
|
/**
|
|
|
* Fully qualified path of the host executable.
|
|
|
*/
|
|
|
FullName: string;
|
|
|
|
|
|
/**
|
|
|
* Gets/sets the script mode - interactive(true) or batch(false).
|
|
|
*/
|
|
|
Interactive: boolean;
|
|
|
|
|
|
/**
|
|
|
* The name of the host executable (WScript.exe or CScript.exe).
|
|
|
*/
|
|
|
Name: string;
|
|
|
|
|
|
/**
|
|
|
* Path of the directory containing the host executable.
|
|
|
*/
|
|
|
Path: string;
|
|
|
|
|
|
/**
|
|
|
* The filename of the currently running script.
|
|
|
*/
|
|
|
ScriptName: string;
|
|
|
|
|
|
/**
|
|
|
* Exposes the read-only input stream for the current script.
|
|
|
* Can be accessed only while using CScript.exe.
|
|
|
*/
|
|
|
StdIn: TextStreamReader;
|
|
|
|
|
|
/**
|
|
|
* Windows Script Host version
|
|
|
*/
|
|
|
Version: string;
|
|
|
|
|
|
/**
|
|
|
* Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event.
|
|
|
*/
|
|
|
ConnectObject(objEventSource: any, strPrefix: string): void;
|
|
|
|
|
|
/**
|
|
|
* Creates a COM object.
|
|
|
* @param strProgiID
|
|
|
* @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
|
|
|
*/
|
|
|
CreateObject(strProgID: string, strPrefix?: string): any;
|
|
|
|
|
|
/**
|
|
|
* Disconnects a COM object from its event sources.
|
|
|
*/
|
|
|
DisconnectObject(obj: any): void;
|
|
|
|
|
|
/**
|
|
|
* Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.
|
|
|
* @param strPathname Fully qualified path to the file containing the object persisted to disk.
|
|
|
* For objects in memory, pass a zero-length string.
|
|
|
* @param strProgID
|
|
|
* @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
|
|
|
*/
|
|
|
GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;
|
|
|
|
|
|
/**
|
|
|
* Suspends script execution for a specified length of time, then continues execution.
|
|
|
* @param intTime Interval (in milliseconds) to suspend script execution.
|
|
|
*/
|
|
|
Sleep(intTime: number): void;
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* WSH is an alias for WScript under Windows Script Host
|
|
|
*/
|
|
|
declare var WSH: typeof WScript;
|
|
|
|
|
|
/**
|
|
|
* Represents an Automation SAFEARRAY
|
|
|
*/
|
|
|
declare class SafeArray<T = any> {
|
|
|
private constructor();
|
|
|
private SafeArray_typekey: SafeArray<T>;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Allows enumerating over a COM collection, which may not have indexed item access.
|
|
|
*/
|
|
|
interface Enumerator<T = any> {
|
|
|
/**
|
|
|
* Returns true if the current item is the last one in the collection, or the collection is empty,
|
|
|
* or the current item is undefined.
|
|
|
*/
|
|
|
atEnd(): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns the current item in the collection
|
|
|
*/
|
|
|
item(): T;
|
|
|
|
|
|
/**
|
|
|
* Resets the current item in the collection to the first item. If there are no items in the collection,
|
|
|
* the current item is set to undefined.
|
|
|
*/
|
|
|
moveFirst(): void;
|
|
|
|
|
|
/**
|
|
|
* Moves the current item to the next item in the collection. If the enumerator is at the end of
|
|
|
* the collection or the collection is empty, the current item is set to undefined.
|
|
|
*/
|
|
|
moveNext(): void;
|
|
|
}
|
|
|
|
|
|
interface EnumeratorConstructor {
|
|
|
new <T = any>(safearray: SafeArray<T>): Enumerator<T>;
|
|
|
new <T = any>(collection: { Item(index: any): T }): Enumerator<T>;
|
|
|
new <T = any>(collection: any): Enumerator<T>;
|
|
|
}
|
|
|
|
|
|
declare var Enumerator: EnumeratorConstructor;
|
|
|
|
|
|
/**
|
|
|
* Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.
|
|
|
*/
|
|
|
interface VBArray<T = any> {
|
|
|
/**
|
|
|
* Returns the number of dimensions (1-based).
|
|
|
*/
|
|
|
dimensions(): number;
|
|
|
|
|
|
/**
|
|
|
* Takes an index for each dimension in the array, and returns the item at the corresponding location.
|
|
|
*/
|
|
|
getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;
|
|
|
|
|
|
/**
|
|
|
* Returns the smallest available index for a given dimension.
|
|
|
* @param dimension 1-based dimension (defaults to 1)
|
|
|
*/
|
|
|
lbound(dimension?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the largest available index for a given dimension.
|
|
|
* @param dimension 1-based dimension (defaults to 1)
|
|
|
*/
|
|
|
ubound(dimension?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,
|
|
|
* each successive dimension is appended to the end of the array.
|
|
|
* Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]
|
|
|
*/
|
|
|
toArray(): T[];
|
|
|
}
|
|
|
|
|
|
interface VBArrayConstructor {
|
|
|
new <T = any>(safeArray: SafeArray<T>): VBArray<T>;
|
|
|
}
|
|
|
|
|
|
declare var VBArray: VBArrayConstructor;
|
|
|
|
|
|
/**
|
|
|
* Automation date (VT_DATE)
|
|
|
*/
|
|
|
declare class VarDate {
|
|
|
private constructor();
|
|
|
private VarDate_typekey: VarDate;
|
|
|
}
|
|
|
|
|
|
interface DateConstructor {
|
|
|
new (vd: VarDate): Date;
|
|
|
}
|
|
|
|
|
|
interface Date {
|
|
|
getVarDate: () => VarDate;
|
|
|
}
|
|
|
`,Fc=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
|
|
|
/////////////////////////////
|
|
|
/// WorkerGlobalScope APIs
|
|
|
/////////////////////////////
|
|
|
// These are only available in a Web Worker
|
|
|
declare function importScripts(...urls: string[]): void;
|
|
|
`,Gc=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
/////////////////////////////
|
|
|
/// DOM APIs
|
|
|
/////////////////////////////
|
|
|
|
|
|
interface Account {
|
|
|
displayName: string;
|
|
|
id: string;
|
|
|
imageURL?: string;
|
|
|
name?: string;
|
|
|
rpDisplayName: string;
|
|
|
}
|
|
|
|
|
|
interface AddEventListenerOptions extends EventListenerOptions {
|
|
|
once?: boolean;
|
|
|
passive?: boolean;
|
|
|
}
|
|
|
|
|
|
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 AssertionOptions {
|
|
|
allowList?: ScopedCredentialDescriptor[];
|
|
|
extensions?: WebAuthnExtensions;
|
|
|
rpId?: string;
|
|
|
timeoutSeconds?: number;
|
|
|
}
|
|
|
|
|
|
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<string, number>;
|
|
|
processorOptions?: any;
|
|
|
}
|
|
|
|
|
|
interface AuthenticationExtensionsClientInputs {
|
|
|
appid?: string;
|
|
|
authnSel?: AuthenticatorSelectionList;
|
|
|
exts?: boolean;
|
|
|
loc?: boolean;
|
|
|
txAuthGeneric?: txAuthGenericArg;
|
|
|
txAuthSimple?: string;
|
|
|
uvi?: boolean;
|
|
|
uvm?: boolean;
|
|
|
}
|
|
|
|
|
|
interface AuthenticationExtensionsClientOutputs {
|
|
|
appid?: boolean;
|
|
|
authnSel?: boolean;
|
|
|
exts?: AuthenticationExtensionsSupported;
|
|
|
loc?: Coordinates;
|
|
|
txAuthGeneric?: ArrayBuffer;
|
|
|
txAuthSimple?: string;
|
|
|
uvi?: ArrayBuffer;
|
|
|
uvm?: UvmEntries;
|
|
|
}
|
|
|
|
|
|
interface AuthenticatorSelectionCriteria {
|
|
|
authenticatorAttachment?: AuthenticatorAttachment;
|
|
|
requireResidentKey?: boolean;
|
|
|
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 ClientData {
|
|
|
challenge: string;
|
|
|
extensions?: WebAuthnExtensions;
|
|
|
hashAlg: string | Algorithm;
|
|
|
origin: string;
|
|
|
rpId: string;
|
|
|
tokenBinding?: string;
|
|
|
}
|
|
|
|
|
|
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 CredentialRequestOptions {
|
|
|
mediation?: CredentialMediationRequirement;
|
|
|
publicKey?: PublicKeyCredentialRequestOptions;
|
|
|
signal?: AbortSignal;
|
|
|
}
|
|
|
|
|
|
interface CustomEventInit<T = any> extends EventInit {
|
|
|
detail?: T;
|
|
|
}
|
|
|
|
|
|
interface DOMMatrix2DInit {
|
|
|
a?: number;
|
|
|
b?: number;
|
|
|
c?: number;
|
|
|
d?: number;
|
|
|
e?: number;
|
|
|
f?: number;
|
|
|
m11?: number;
|
|
|
m12?: number;
|
|
|
m21?: number;
|
|
|
m22?: number;
|
|
|
m41?: number;
|
|
|
m42?: number;
|
|
|
}
|
|
|
|
|
|
interface DOMMatrixInit extends DOMMatrix2DInit {
|
|
|
is2D?: boolean;
|
|
|
m13?: number;
|
|
|
m14?: number;
|
|
|
m23?: number;
|
|
|
m24?: number;
|
|
|
m31?: number;
|
|
|
m32?: number;
|
|
|
m33?: number;
|
|
|
m34?: number;
|
|
|
m43?: number;
|
|
|
m44?: number;
|
|
|
}
|
|
|
|
|
|
interface DOMPointInit {
|
|
|
w?: number;
|
|
|
x?: number;
|
|
|
y?: number;
|
|
|
z?: number;
|
|
|
}
|
|
|
|
|
|
interface DOMQuadInit {
|
|
|
p1?: DOMPointInit;
|
|
|
p2?: DOMPointInit;
|
|
|
p3?: DOMPointInit;
|
|
|
p4?: DOMPointInit;
|
|
|
}
|
|
|
|
|
|
interface DOMRectInit {
|
|
|
height?: number;
|
|
|
width?: number;
|
|
|
x?: number;
|
|
|
y?: number;
|
|
|
}
|
|
|
|
|
|
interface DelayOptions extends AudioNodeOptions {
|
|
|
delayTime?: number;
|
|
|
maxDelayTime?: number;
|
|
|
}
|
|
|
|
|
|
interface DeviceLightEventInit extends EventInit {
|
|
|
value?: 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 ImageBitmapRenderingContextSettings {
|
|
|
alpha?: boolean;
|
|
|
}
|
|
|
|
|
|
interface ImageEncodeOptions {
|
|
|
quality?: number;
|
|
|
type?: 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 | 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 {
|
|
|
code?: string;
|
|
|
isComposing?: boolean;
|
|
|
key?: string;
|
|
|
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?: any;
|
|
|
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 PannerOptions extends AudioNodeOptions {
|
|
|
coneInnerAngle?: number;
|
|
|
coneOuterAngle?: number;
|
|
|
coneOuterGain?: number;
|
|
|
distanceModel?: DistanceModelType;
|
|
|
maxDistance?: number;
|
|
|
orientationX?: number;
|
|
|
orientationY?: number;
|
|
|
orientationZ?: number;
|
|
|
panningModel?: PanningModelType;
|
|
|
positionX?: number;
|
|
|
positionY?: number;
|
|
|
positionZ?: number;
|
|
|
refDistance?: number;
|
|
|
rolloffFactor?: number;
|
|
|
}
|
|
|
|
|
|
interface PaymentCurrencyAmount {
|
|
|
currency: string;
|
|
|
currencySystem?: 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;
|
|
|
total?: PaymentItem;
|
|
|
}
|
|
|
|
|
|
interface PaymentItem {
|
|
|
amount: PaymentCurrencyAmount;
|
|
|
label: string;
|
|
|
pending?: boolean;
|
|
|
}
|
|
|
|
|
|
interface PaymentMethodData {
|
|
|
data?: any;
|
|
|
supportedMethods: string | string[];
|
|
|
}
|
|
|
|
|
|
interface PaymentOptions {
|
|
|
requestPayerEmail?: boolean;
|
|
|
requestPayerName?: boolean;
|
|
|
requestPayerPhone?: boolean;
|
|
|
requestShipping?: boolean;
|
|
|
shippingType?: string;
|
|
|
}
|
|
|
|
|
|
interface PaymentRequestUpdateEventInit extends EventInit {
|
|
|
}
|
|
|
|
|
|
interface PaymentShippingOption {
|
|
|
amount: PaymentCurrencyAmount;
|
|
|
id: string;
|
|
|
label: string;
|
|
|
selected?: boolean;
|
|
|
}
|
|
|
|
|
|
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 PipeOptions {
|
|
|
preventAbort?: boolean;
|
|
|
preventCancel?: boolean;
|
|
|
preventClose?: boolean;
|
|
|
signal?: AbortSignal;
|
|
|
}
|
|
|
|
|
|
interface PointerEventInit extends MouseEventInit {
|
|
|
height?: number;
|
|
|
isPrimary?: boolean;
|
|
|
pointerId?: number;
|
|
|
pointerType?: string;
|
|
|
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<any>;
|
|
|
reason?: any;
|
|
|
}
|
|
|
|
|
|
interface PropertyIndexedKeyframes {
|
|
|
composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
|
|
|
easing?: string | string[];
|
|
|
offset?: number | (number | null)[];
|
|
|
[property: string]: string | string[] | number | null | (number | null)[] | undefined;
|
|
|
}
|
|
|
|
|
|
interface PublicKeyCredentialCreationOptions {
|
|
|
attestation?: AttestationConveyancePreference;
|
|
|
authenticatorSelection?: AuthenticatorSelectionCriteria;
|
|
|
challenge: BufferSource;
|
|
|
excludeCredentials?: PublicKeyCredentialDescriptor[];
|
|
|
extensions?: AuthenticationExtensionsClientInputs;
|
|
|
pubKeyCredParams: PublicKeyCredentialParameters[];
|
|
|
rp: PublicKeyCredentialRpEntity;
|
|
|
timeout?: number;
|
|
|
user: PublicKeyCredentialUserEntity;
|
|
|
}
|
|
|
|
|
|
interface PublicKeyCredentialDescriptor {
|
|
|
id: BufferSource;
|
|
|
transports?: AuthenticatorTransport[];
|
|
|
type: PublicKeyCredentialType;
|
|
|
}
|
|
|
|
|
|
interface PublicKeyCredentialEntity {
|
|
|
icon?: string;
|
|
|
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<string, string>;
|
|
|
}
|
|
|
|
|
|
interface PushSubscriptionOptionsInit {
|
|
|
applicationServerKey?: BufferSource | string | null;
|
|
|
userVisibleOnly?: boolean;
|
|
|
}
|
|
|
|
|
|
interface QueuingStrategy<T = any> {
|
|
|
highWaterMark?: number;
|
|
|
size?: QueuingStrategySizeCallback<T>;
|
|
|
}
|
|
|
|
|
|
interface RTCAnswerOptions extends RTCOfferAnswerOptions {
|
|
|
}
|
|
|
|
|
|
interface RTCCertificateExpiration {
|
|
|
expires?: number;
|
|
|
}
|
|
|
|
|
|
interface RTCConfiguration {
|
|
|
bundlePolicy?: RTCBundlePolicy;
|
|
|
certificates?: RTCCertificate[];
|
|
|
iceCandidatePoolSize?: number;
|
|
|
iceServers?: RTCIceServer[];
|
|
|
iceTransportPolicy?: RTCIceTransportPolicy;
|
|
|
peerIdentity?: string;
|
|
|
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;
|
|
|
priority?: RTCPriorityType;
|
|
|
protocol?: string;
|
|
|
}
|
|
|
|
|
|
interface RTCDtlsFingerprint {
|
|
|
algorithm?: string;
|
|
|
value?: string;
|
|
|
}
|
|
|
|
|
|
interface RTCDtlsParameters {
|
|
|
fingerprints?: RTCDtlsFingerprint[];
|
|
|
role?: RTCDtlsRole;
|
|
|
}
|
|
|
|
|
|
interface RTCErrorEventInit extends EventInit {
|
|
|
error?: RTCError | null;
|
|
|
}
|
|
|
|
|
|
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;
|
|
|
}
|
|
|
|
|
|
interface RTCIceCandidatePair {
|
|
|
local?: RTCIceCandidate;
|
|
|
remote?: RTCIceCandidate;
|
|
|
}
|
|
|
|
|
|
interface RTCIceCandidatePairStats extends RTCStats {
|
|
|
availableIncomingBitrate?: number;
|
|
|
availableOutgoingBitrate?: number;
|
|
|
bytesReceived?: number;
|
|
|
bytesSent?: number;
|
|
|
localCandidateId?: string;
|
|
|
nominated?: boolean;
|
|
|
priority?: number;
|
|
|
readable?: boolean;
|
|
|
remoteCandidateId?: string;
|
|
|
roundTripTime?: number;
|
|
|
state?: RTCStatsIceCandidatePairState;
|
|
|
transportId?: string;
|
|
|
writable?: boolean;
|
|
|
}
|
|
|
|
|
|
interface RTCIceGatherOptions {
|
|
|
gatherPolicy?: RTCIceGatherPolicy;
|
|
|
iceservers?: RTCIceServer[];
|
|
|
}
|
|
|
|
|
|
interface RTCIceParameters {
|
|
|
password?: string;
|
|
|
usernameFragment?: string;
|
|
|
}
|
|
|
|
|
|
interface RTCIceServer {
|
|
|
credential?: string | RTCOAuthCredential;
|
|
|
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 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 RTCOAuthCredential {
|
|
|
accessToken: string;
|
|
|
macKey: string;
|
|
|
}
|
|
|
|
|
|
interface RTCOfferAnswerOptions {
|
|
|
voiceActivityDetection?: boolean;
|
|
|
}
|
|
|
|
|
|
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 {
|
|
|
errorCode: number;
|
|
|
hostCandidate?: string;
|
|
|
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;
|
|
|
source: number;
|
|
|
timestamp: number;
|
|
|
}
|
|
|
|
|
|
interface RTCRtpDecodingParameters extends RTCRtpCodingParameters {
|
|
|
}
|
|
|
|
|
|
interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
|
|
|
active?: boolean;
|
|
|
codecPayloadType?: number;
|
|
|
dtx?: RTCDtxStatus;
|
|
|
maxBitrate?: number;
|
|
|
maxFramerate?: number;
|
|
|
priority?: RTCPriorityType;
|
|
|
ptime?: 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 {
|
|
|
encodings: RTCRtpDecodingParameters[];
|
|
|
}
|
|
|
|
|
|
interface RTCRtpRtxParameters {
|
|
|
ssrc?: number;
|
|
|
}
|
|
|
|
|
|
interface RTCRtpSendParameters extends RTCRtpParameters {
|
|
|
degradationPreference?: RTCDegradationPreference;
|
|
|
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 RTCStatsEventInit extends EventInit {
|
|
|
report: RTCStatsReport;
|
|
|
}
|
|
|
|
|
|
interface RTCStatsReport {
|
|
|
}
|
|
|
|
|
|
interface RTCTrackEventInit extends EventInit {
|
|
|
receiver: RTCRtpReceiver;
|
|
|
streams?: MediaStream[];
|
|
|
track: MediaStreamTrack;
|
|
|
transceiver: RTCRtpTransceiver;
|
|
|
}
|
|
|
|
|
|
interface RTCTransportStats extends RTCStats {
|
|
|
activeConnection?: boolean;
|
|
|
bytesReceived?: number;
|
|
|
bytesSent?: number;
|
|
|
localCertificateId?: string;
|
|
|
remoteCertificateId?: string;
|
|
|
rtcpTransportStatsId?: string;
|
|
|
selectedCandidatePairId?: string;
|
|
|
}
|
|
|
|
|
|
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 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 ScopedCredentialDescriptor {
|
|
|
id: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;
|
|
|
transports?: Transport[];
|
|
|
type: ScopedCredentialType;
|
|
|
}
|
|
|
|
|
|
interface ScopedCredentialOptions {
|
|
|
excludeList?: ScopedCredentialDescriptor[];
|
|
|
extensions?: WebAuthnExtensions;
|
|
|
rpId?: string;
|
|
|
timeoutSeconds?: number;
|
|
|
}
|
|
|
|
|
|
interface ScopedCredentialParameters {
|
|
|
algorithm: string | Algorithm;
|
|
|
type: ScopedCredentialType;
|
|
|
}
|
|
|
|
|
|
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 ServiceWorkerMessageEventInit extends EventInit {
|
|
|
data?: any;
|
|
|
lastEventId?: string;
|
|
|
origin?: string;
|
|
|
ports?: MessagePort[] | null;
|
|
|
source?: ServiceWorker | MessagePort | null;
|
|
|
}
|
|
|
|
|
|
interface ShadowRootInit {
|
|
|
delegatesFocus?: boolean;
|
|
|
mode: ShadowRootMode;
|
|
|
}
|
|
|
|
|
|
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 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?: VideoTrack | AudioTrack | TextTrack | null;
|
|
|
}
|
|
|
|
|
|
interface Transformer<I = any, O = any> {
|
|
|
flush?: TransformStreamDefaultControllerCallback<O>;
|
|
|
readableType?: undefined;
|
|
|
start?: TransformStreamDefaultControllerCallback<O>;
|
|
|
transform?: TransformStreamDefaultControllerTransformCallback<I, O>;
|
|
|
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 UnderlyingByteSource {
|
|
|
autoAllocateChunkSize?: number;
|
|
|
cancel?: ReadableStreamErrorCallback;
|
|
|
pull?: ReadableByteStreamControllerCallback;
|
|
|
start?: ReadableByteStreamControllerCallback;
|
|
|
type: "bytes";
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSink<W = any> {
|
|
|
abort?: WritableStreamErrorCallback;
|
|
|
close?: WritableStreamDefaultControllerCloseCallback;
|
|
|
start?: WritableStreamDefaultControllerStartCallback;
|
|
|
type?: undefined;
|
|
|
write?: WritableStreamDefaultControllerWriteCallback<W>;
|
|
|
}
|
|
|
|
|
|
interface UnderlyingSource<R = any> {
|
|
|
cancel?: ReadableStreamErrorCallback;
|
|
|
pull?: ReadableStreamDefaultControllerCallback<R>;
|
|
|
start?: ReadableStreamDefaultControllerCallback<R>;
|
|
|
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 WebAuthnExtensions {
|
|
|
}
|
|
|
|
|
|
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 txAuthGenericArg {
|
|
|
content: ArrayBuffer;
|
|
|
contentType: string;
|
|
|
}
|
|
|
|
|
|
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<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var AbortSignal: {
|
|
|
prototype: AbortSignal;
|
|
|
new(): AbortSignal;
|
|
|
};
|
|
|
|
|
|
interface AbstractRange {
|
|
|
/**
|
|
|
* Returns true if range is collapsed, and false otherwise.
|
|
|
*/
|
|
|
readonly collapsed: boolean;
|
|
|
/**
|
|
|
* Returns range's end node.
|
|
|
*/
|
|
|
readonly endContainer: Node;
|
|
|
/**
|
|
|
* Returns range's end offset.
|
|
|
*/
|
|
|
readonly endOffset: number;
|
|
|
/**
|
|
|
* Returns range's start node.
|
|
|
*/
|
|
|
readonly startContainer: Node;
|
|
|
/**
|
|
|
* Returns range's start offset.
|
|
|
*/
|
|
|
readonly startOffset: number;
|
|
|
}
|
|
|
|
|
|
declare var AbstractRange: {
|
|
|
prototype: AbstractRange;
|
|
|
new(): AbstractRange;
|
|
|
};
|
|
|
|
|
|
interface AbstractWorkerEventMap {
|
|
|
"error": ErrorEvent;
|
|
|
}
|
|
|
|
|
|
interface AbstractWorker {
|
|
|
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
|
|
|
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
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<Animation>;
|
|
|
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<Animation>;
|
|
|
startTime: number | null;
|
|
|
timeline: AnimationTimeline | null;
|
|
|
cancel(): void;
|
|
|
finish(): void;
|
|
|
pause(): void;
|
|
|
play(): void;
|
|
|
reverse(): void;
|
|
|
updatePlaybackRate(playbackRate: number): void;
|
|
|
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var Animation: {
|
|
|
prototype: Animation;
|
|
|
new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;
|
|
|
};
|
|
|
|
|
|
interface AnimationEffect {
|
|
|
getComputedTiming(): ComputedEffectTiming;
|
|
|
getTiming(): EffectTiming;
|
|
|
updateTiming(timing?: OptionalEffectTiming): void;
|
|
|
}
|
|
|
|
|
|
declare var AnimationEffect: {
|
|
|
prototype: AnimationEffect;
|
|
|
new(): AnimationEffect;
|
|
|
};
|
|
|
|
|
|
/** Events providing information related to animations. */
|
|
|
interface AnimationEvent extends Event {
|
|
|
readonly animationName: string;
|
|
|
readonly elapsedTime: number;
|
|
|
readonly pseudoElement: string;
|
|
|
}
|
|
|
|
|
|
declare var AnimationEvent: {
|
|
|
prototype: AnimationEvent;
|
|
|
new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;
|
|
|
};
|
|
|
|
|
|
interface AnimationFrameProvider {
|
|
|
cancelAnimationFrame(handle: number): void;
|
|
|
requestAnimationFrame(callback: FrameRequestCallback): number;
|
|
|
}
|
|
|
|
|
|
interface AnimationPlaybackEvent extends Event {
|
|
|
readonly currentTime: 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<ApplicationCache>;
|
|
|
"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<ApplicationCache>) => 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<K extends keyof ApplicationCacheEventMap>(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof ApplicationCacheEventMap>(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 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, startInChannel?: number): void;
|
|
|
copyToChannel(source: Float32Array, channelNumber: number, startInChannel?: number): void;
|
|
|
getChannelData(channel: number): Float32Array;
|
|
|
}
|
|
|
|
|
|
declare var AudioBuffer: {
|
|
|
prototype: AudioBuffer;
|
|
|
new(options: AudioBufferOptions): AudioBuffer;
|
|
|
};
|
|
|
|
|
|
/** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */
|
|
|
interface AudioBufferSourceNode extends AudioScheduledSourceNode {
|
|
|
buffer: AudioBuffer | null;
|
|
|
readonly detune: AudioParam;
|
|
|
loop: boolean;
|
|
|
loopEnd: number;
|
|
|
loopStart: number;
|
|
|
readonly playbackRate: AudioParam;
|
|
|
start(when?: number, offset?: number, duration?: number): void;
|
|
|
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var AudioBufferSourceNode: {
|
|
|
prototype: AudioBufferSourceNode;
|
|
|
new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;
|
|
|
};
|
|
|
|
|
|
/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */
|
|
|
interface AudioContext extends BaseAudioContext {
|
|
|
readonly baseLatency: number;
|
|
|
readonly outputLatency: number;
|
|
|
close(): Promise<void>;
|
|
|
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
|
|
|
createMediaStreamDestination(): MediaStreamAudioDestinationNode;
|
|
|
createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
|
|
|
createMediaStreamTrackSource(mediaStreamTrack: MediaStreamTrack): MediaStreamTrackAudioSourceNode;
|
|
|
getOutputTimestamp(): AudioTimestamp;
|
|
|
resume(): Promise<void>;
|
|
|
suspend(): Promise<void>;
|
|
|
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var AudioContext: {
|
|
|
prototype: AudioContext;
|
|
|
new(contextOptions?: AudioContextOptions): AudioContext;
|
|
|
};
|
|
|
|
|
|
/** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */
|
|
|
interface AudioDestinationNode extends AudioNode {
|
|
|
readonly maxChannelCount: number;
|
|
|
}
|
|
|
|
|
|
declare var AudioDestinationNode: {
|
|
|
prototype: AudioDestinationNode;
|
|
|
new(): AudioDestinationNode;
|
|
|
};
|
|
|
|
|
|
/** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */
|
|
|
interface AudioListener {
|
|
|
readonly forwardX: AudioParam;
|
|
|
readonly forwardY: AudioParam;
|
|
|
readonly forwardZ: AudioParam;
|
|
|
readonly positionX: AudioParam;
|
|
|
readonly positionY: AudioParam;
|
|
|
readonly positionZ: AudioParam;
|
|
|
readonly upX: AudioParam;
|
|
|
readonly upY: AudioParam;
|
|
|
readonly upZ: AudioParam;
|
|
|
/** @deprecated */
|
|
|
setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
|
|
|
/** @deprecated */
|
|
|
setPosition(x: number, y: number, z: number): void;
|
|
|
}
|
|
|
|
|
|
declare var AudioListener: {
|
|
|
prototype: AudioListener;
|
|
|
new(): AudioListener;
|
|
|
};
|
|
|
|
|
|
/** A generic interface for representing an audio processing module. Examples include: */
|
|
|
interface AudioNode extends EventTarget {
|
|
|
channelCount: number;
|
|
|
channelCountMode: ChannelCountMode;
|
|
|
channelInterpretation: ChannelInterpretation;
|
|
|
readonly context: BaseAudioContext;
|
|
|
readonly numberOfInputs: number;
|
|
|
readonly numberOfOutputs: number;
|
|
|
connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;
|
|
|
connect(destinationParam: AudioParam, output?: number): void;
|
|
|
disconnect(): void;
|
|
|
disconnect(output: number): void;
|
|
|
disconnect(destinationNode: AudioNode): void;
|
|
|
disconnect(destinationNode: AudioNode, output: number): void;
|
|
|
disconnect(destinationNode: AudioNode, output: number, input: number): void;
|
|
|
disconnect(destinationParam: AudioParam): void;
|
|
|
disconnect(destinationParam: AudioParam, output: number): void;
|
|
|
}
|
|
|
|
|
|
declare var AudioNode: {
|
|
|
prototype: AudioNode;
|
|
|
new(): AudioNode;
|
|
|
};
|
|
|
|
|
|
/** The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */
|
|
|
interface AudioParam {
|
|
|
automationRate: AutomationRate;
|
|
|
readonly defaultValue: number;
|
|
|
readonly maxValue: number;
|
|
|
readonly minValue: number;
|
|
|
value: number;
|
|
|
cancelAndHoldAtTime(cancelTime: number): AudioParam;
|
|
|
cancelScheduledValues(cancelTime: number): AudioParam;
|
|
|
exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
|
|
|
linearRampToValueAtTime(value: number, endTime: number): AudioParam;
|
|
|
setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
|
|
|
setValueAtTime(value: number, startTime: number): AudioParam;
|
|
|
setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;
|
|
|
}
|
|
|
|
|
|
declare var AudioParam: {
|
|
|
prototype: AudioParam;
|
|
|
new(): AudioParam;
|
|
|
};
|
|
|
|
|
|
interface AudioParamMap {
|
|
|
forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var AudioParamMap: {
|
|
|
prototype: AudioParamMap;
|
|
|
new(): AudioParamMap;
|
|
|
};
|
|
|
|
|
|
/** The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed. */
|
|
|
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<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var AudioScheduledSourceNode: {
|
|
|
prototype: AudioScheduledSourceNode;
|
|
|
new(): AudioScheduledSourceNode;
|
|
|
};
|
|
|
|
|
|
/** A single audio track from one of the HTML media elements, <audio> or <video>. */
|
|
|
interface AudioTrack {
|
|
|
enabled: boolean;
|
|
|
readonly id: string;
|
|
|
kind: string;
|
|
|
readonly label: string;
|
|
|
language: string;
|
|
|
readonly sourceBuffer: SourceBuffer | null;
|
|
|
}
|
|
|
|
|
|
declare var AudioTrack: {
|
|
|
prototype: AudioTrack;
|
|
|
new(): AudioTrack;
|
|
|
};
|
|
|
|
|
|
interface AudioTrackListEventMap {
|
|
|
"addtrack": TrackEvent;
|
|
|
"change": Event;
|
|
|
"removetrack": TrackEvent;
|
|
|
}
|
|
|
|
|
|
/** Used to represent a list of the audio tracks contained within a given HTML media element, with each track represented by a separate AudioTrack object in the list. */
|
|
|
interface AudioTrackList extends EventTarget {
|
|
|
readonly length: number;
|
|
|
onaddtrack: ((this: AudioTrackList, ev: TrackEvent) => any) | null;
|
|
|
onchange: ((this: AudioTrackList, ev: Event) => any) | null;
|
|
|
onremovetrack: ((this: AudioTrackList, ev: TrackEvent) => any) | null;
|
|
|
getTrackById(id: string): AudioTrack | null;
|
|
|
item(index: number): AudioTrack;
|
|
|
addEventListener<K extends keyof AudioTrackListEventMap>(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AudioTrackListEventMap>(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
[index: number]: AudioTrack;
|
|
|
}
|
|
|
|
|
|
declare var AudioTrackList: {
|
|
|
prototype: AudioTrackList;
|
|
|
new(): AudioTrackList;
|
|
|
};
|
|
|
|
|
|
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<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var AudioWorkletNode: {
|
|
|
prototype: AudioWorkletNode;
|
|
|
new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;
|
|
|
};
|
|
|
|
|
|
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<AudioBuffer>;
|
|
|
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var BaseAudioContext: {
|
|
|
prototype: BaseAudioContext;
|
|
|
new(): BaseAudioContext;
|
|
|
};
|
|
|
|
|
|
/** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */
|
|
|
interface BeforeUnloadEvent extends Event {
|
|
|
returnValue: any;
|
|
|
}
|
|
|
|
|
|
declare var BeforeUnloadEvent: {
|
|
|
prototype: BeforeUnloadEvent;
|
|
|
new(): BeforeUnloadEvent;
|
|
|
};
|
|
|
|
|
|
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;
|
|
|
slice(start?: number, end?: number, contentType?: string): Blob;
|
|
|
}
|
|
|
|
|
|
declare var Blob: {
|
|
|
prototype: Blob;
|
|
|
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
|
|
|
};
|
|
|
|
|
|
interface Body {
|
|
|
readonly body: ReadableStream<Uint8Array> | null;
|
|
|
readonly bodyUsed: boolean;
|
|
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
|
blob(): Promise<Blob>;
|
|
|
formData(): Promise<FormData>;
|
|
|
json(): Promise<any>;
|
|
|
text(): Promise<string>;
|
|
|
}
|
|
|
|
|
|
interface BroadcastChannelEventMap {
|
|
|
"message": MessageEvent;
|
|
|
"messageerror": MessageEvent;
|
|
|
}
|
|
|
|
|
|
interface BroadcastChannel extends EventTarget {
|
|
|
/**
|
|
|
* Returns the channel name (as passed to the constructor).
|
|
|
*/
|
|
|
readonly name: string;
|
|
|
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
|
|
|
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
|
|
|
/**
|
|
|
* Closes the BroadcastChannel object, opening it up to garbage collection.
|
|
|
*/
|
|
|
close(): void;
|
|
|
/**
|
|
|
* Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.
|
|
|
*/
|
|
|
postMessage(message: any): void;
|
|
|
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var BroadcastChannel: {
|
|
|
prototype: BroadcastChannel;
|
|
|
new(name: string): BroadcastChannel;
|
|
|
};
|
|
|
|
|
|
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
|
|
|
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
|
|
|
highWaterMark: number;
|
|
|
size(chunk: ArrayBufferView): number;
|
|
|
}
|
|
|
|
|
|
declare var ByteLengthQueuingStrategy: {
|
|
|
prototype: ByteLengthQueuingStrategy;
|
|
|
new(options: { highWaterMark: number }): ByteLengthQueuingStrategy;
|
|
|
};
|
|
|
|
|
|
/** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don\u2019t need escaping as they normally do when inside a CDATA section. */
|
|
|
interface CDATASection extends Text {
|
|
|
}
|
|
|
|
|
|
declare var CDATASection: {
|
|
|
prototype: CDATASection;
|
|
|
new(): CDATASection;
|
|
|
};
|
|
|
|
|
|
/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
|
|
|
interface CSS {
|
|
|
escape(value: string): string;
|
|
|
supports(property: string, value?: string): boolean;
|
|
|
}
|
|
|
declare var CSS: CSS;
|
|
|
|
|
|
/** 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 CSSRule {
|
|
|
readonly pseudoClass: string;
|
|
|
readonly selector: string;
|
|
|
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;
|
|
|
readonly UNKNOWN_RULE: number;
|
|
|
readonly VIEWPORT_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;
|
|
|
readonly UNKNOWN_RULE: number;
|
|
|
readonly VIEWPORT_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;
|
|
|
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 | null;
|
|
|
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 | null;
|
|
|
cssText: string;
|
|
|
cursor: string;
|
|
|
direction: string;
|
|
|
display: string;
|
|
|
dominantBaseline: string;
|
|
|
emptyCells: string;
|
|
|
enableBackground: string | null;
|
|
|
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;
|
|
|
glyphOrientationHorizontal: string | null;
|
|
|
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;
|
|
|
imeMode: string | null;
|
|
|
inlineSize: string;
|
|
|
justifyContent: string;
|
|
|
justifyItems: string;
|
|
|
justifySelf: string;
|
|
|
kerning: string | null;
|
|
|
layoutGrid: string | null;
|
|
|
layoutGridChar: string | null;
|
|
|
layoutGridLine: string | null;
|
|
|
layoutGridMode: string | null;
|
|
|
layoutGridType: string | null;
|
|
|
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;
|
|
|
msContentZoomChaining: string | null;
|
|
|
msContentZoomLimit: string | null;
|
|
|
msContentZoomLimitMax: any;
|
|
|
msContentZoomLimitMin: any;
|
|
|
msContentZoomSnap: string | null;
|
|
|
msContentZoomSnapPoints: string | null;
|
|
|
msContentZoomSnapType: string | null;
|
|
|
msContentZooming: string | null;
|
|
|
msFlowFrom: string | null;
|
|
|
msFlowInto: string | null;
|
|
|
msFontFeatureSettings: string | null;
|
|
|
msGridColumn: any;
|
|
|
msGridColumnAlign: string | null;
|
|
|
msGridColumnSpan: any;
|
|
|
msGridColumns: string | null;
|
|
|
msGridRow: any;
|
|
|
msGridRowAlign: string | null;
|
|
|
msGridRowSpan: any;
|
|
|
msGridRows: string | null;
|
|
|
msHighContrastAdjust: string | null;
|
|
|
msHyphenateLimitChars: string | null;
|
|
|
msHyphenateLimitLines: any;
|
|
|
msHyphenateLimitZone: any;
|
|
|
msHyphens: string | null;
|
|
|
msImeAlign: string | null;
|
|
|
msOverflowStyle: string | null;
|
|
|
msScrollChaining: string | null;
|
|
|
msScrollLimit: string | null;
|
|
|
msScrollLimitXMax: any;
|
|
|
msScrollLimitXMin: any;
|
|
|
msScrollLimitYMax: any;
|
|
|
msScrollLimitYMin: any;
|
|
|
msScrollRails: string | null;
|
|
|
msScrollSnapPointsX: string | null;
|
|
|
msScrollSnapPointsY: string | null;
|
|
|
msScrollSnapType: string | null;
|
|
|
msScrollSnapX: string | null;
|
|
|
msScrollSnapY: string | null;
|
|
|
msScrollTranslation: string | null;
|
|
|
msTextCombineHorizontal: string | null;
|
|
|
msTextSizeAdjust: any;
|
|
|
msTouchAction: string | null;
|
|
|
msTouchSelect: string | null;
|
|
|
msUserSelect: string | null;
|
|
|
msWrapFlow: string;
|
|
|
msWrapMargin: any;
|
|
|
msWrapThrough: string;
|
|
|
objectFit: string;
|
|
|
objectPosition: string;
|
|
|
opacity: string | null;
|
|
|
order: string;
|
|
|
orphans: string;
|
|
|
outline: string;
|
|
|
outlineColor: string;
|
|
|
outlineOffset: string;
|
|
|
outlineStyle: string;
|
|
|
outlineWidth: string;
|
|
|
overflow: string;
|
|
|
overflowAnchor: string;
|
|
|
overflowWrap: string;
|
|
|
overflowX: string;
|
|
|
overflowY: 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;
|
|
|
penAction: string | null;
|
|
|
perspective: string;
|
|
|
perspectiveOrigin: string;
|
|
|
placeContent: string;
|
|
|
placeItems: string;
|
|
|
placeSelf: string;
|
|
|
pointerEvents: string | null;
|
|
|
position: string;
|
|
|
quotes: string;
|
|
|
resize: string;
|
|
|
right: string;
|
|
|
rotate: string;
|
|
|
rowGap: string;
|
|
|
rubyAlign: string | null;
|
|
|
rubyOverhang: string | null;
|
|
|
rubyPosition: string | null;
|
|
|
scale: string;
|
|
|
scrollBehavior: string;
|
|
|
shapeRendering: string;
|
|
|
stopColor: string | null;
|
|
|
stopOpacity: string | null;
|
|
|
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 | null;
|
|
|
textCombineUpright: string;
|
|
|
textDecoration: string;
|
|
|
textDecorationColor: string;
|
|
|
textDecorationLine: string;
|
|
|
textDecorationStyle: string;
|
|
|
textEmphasis: string;
|
|
|
textEmphasisColor: string;
|
|
|
textEmphasisPosition: string;
|
|
|
textEmphasisStyle: string;
|
|
|
textIndent: string;
|
|
|
textJustify: string;
|
|
|
textKashida: string | null;
|
|
|
textKashidaSpace: string | null;
|
|
|
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;
|
|
|
webkitBorderImage: string | null;
|
|
|
/** @deprecated */
|
|
|
webkitBorderRadius: string;
|
|
|
/** @deprecated */
|
|
|
webkitBorderTopLeftRadius: string;
|
|
|
/** @deprecated */
|
|
|
webkitBorderTopRightRadius: string;
|
|
|
/** @deprecated */
|
|
|
webkitBoxAlign: string;
|
|
|
webkitBoxDirection: string | null;
|
|
|
/** @deprecated */
|
|
|
webkitBoxFlex: string;
|
|
|
/** @deprecated */
|
|
|
webkitBoxOrdinalGroup: string;
|
|
|
webkitBoxOrient: string | null;
|
|
|
/** @deprecated */
|
|
|
webkitBoxPack: string;
|
|
|
/** @deprecated */
|
|
|
webkitBoxShadow: string;
|
|
|
/** @deprecated */
|
|
|
webkitBoxSizing: string;
|
|
|
webkitColumnBreakAfter: string | null;
|
|
|
webkitColumnBreakBefore: string | null;
|
|
|
webkitColumnBreakInside: string | null;
|
|
|
webkitColumnCount: any;
|
|
|
webkitColumnGap: any;
|
|
|
webkitColumnRule: string | null;
|
|
|
webkitColumnRuleColor: any;
|
|
|
webkitColumnRuleStyle: string | null;
|
|
|
webkitColumnRuleWidth: any;
|
|
|
webkitColumnSpan: string | null;
|
|
|
webkitColumnWidth: any;
|
|
|
webkitColumns: string | null;
|
|
|
/** @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 | null;
|
|
|
/** @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;
|
|
|
webkitUserModify: string | null;
|
|
|
webkitUserSelect: string | null;
|
|
|
webkitWritingMode: string | null;
|
|
|
whiteSpace: string;
|
|
|
widows: string;
|
|
|
width: string;
|
|
|
willChange: string;
|
|
|
wordBreak: string;
|
|
|
wordSpacing: string;
|
|
|
wordWrap: string;
|
|
|
writingMode: string;
|
|
|
zIndex: string;
|
|
|
zoom: string | null;
|
|
|
getPropertyPriority(propertyName: string): string;
|
|
|
getPropertyValue(propertyName: string): string;
|
|
|
item(index: number): string;
|
|
|
removeProperty(propertyName: string): string;
|
|
|
setProperty(propertyName: string, value: string | null, priority?: string | null): 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;
|
|
|
/** @deprecated */
|
|
|
cssText: string;
|
|
|
/** @deprecated */
|
|
|
readonly id: string;
|
|
|
/** @deprecated */
|
|
|
readonly imports: StyleSheetList;
|
|
|
/** @deprecated */
|
|
|
readonly isAlternate: boolean;
|
|
|
/** @deprecated */
|
|
|
readonly isPrefAlternate: boolean;
|
|
|
readonly ownerRule: CSSRule | null;
|
|
|
/** @deprecated */
|
|
|
readonly owningElement: Element;
|
|
|
/** @deprecated */
|
|
|
readonly pages: any;
|
|
|
/** @deprecated */
|
|
|
readonly readOnly: boolean;
|
|
|
readonly rules: CSSRuleList;
|
|
|
/** @deprecated */
|
|
|
addImport(bstrURL: string, lIndex?: number): number;
|
|
|
/** @deprecated */
|
|
|
addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number;
|
|
|
addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;
|
|
|
deleteRule(index?: number): void;
|
|
|
insertRule(rule: string, index?: number): number;
|
|
|
/** @deprecated */
|
|
|
removeImport(lIndex: number): void;
|
|
|
removeRule(lIndex: 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<void>;
|
|
|
addAll(requests: RequestInfo[]): Promise<void>;
|
|
|
delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;
|
|
|
keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
|
|
|
match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;
|
|
|
matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
|
|
|
put(request: RequestInfo, response: Response): Promise<void>;
|
|
|
}
|
|
|
|
|
|
declare var Cache: {
|
|
|
prototype: Cache;
|
|
|
new(): Cache;
|
|
|
};
|
|
|
|
|
|
/** The storage for Cache objects. */
|
|
|
interface CacheStorage {
|
|
|
delete(cacheName: string): Promise<boolean>;
|
|
|
has(cacheName: string): Promise<boolean>;
|
|
|
keys(): Promise<string[]>;
|
|
|
match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;
|
|
|
open(cacheName: string): Promise<Cache>;
|
|
|
}
|
|
|
|
|
|
declare var CacheStorage: {
|
|
|
prototype: CacheStorage;
|
|
|
new(): CacheStorage;
|
|
|
};
|
|
|
|
|
|
interface CanvasCompositing {
|
|
|
globalAlpha: number;
|
|
|
globalCompositeOperation: string;
|
|
|
}
|
|
|
|
|
|
interface CanvasDrawImage {
|
|
|
drawImage(image: CanvasImageSource, dx: number, dy: number): void;
|
|
|
drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
|
|
|
drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
|
|
|
}
|
|
|
|
|
|
interface CanvasDrawPath {
|
|
|
beginPath(): void;
|
|
|
clip(fillRule?: CanvasFillRule): void;
|
|
|
clip(path: Path2D, fillRule?: CanvasFillRule): void;
|
|
|
fill(fillRule?: CanvasFillRule): void;
|
|
|
fill(path: Path2D, fillRule?: CanvasFillRule): void;
|
|
|
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
|
|
|
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
|
|
|
isPointInStroke(x: number, y: number): boolean;
|
|
|
isPointInStroke(path: Path2D, x: number, y: number): boolean;
|
|
|
stroke(): void;
|
|
|
stroke(path: Path2D): void;
|
|
|
}
|
|
|
|
|
|
interface CanvasFillStrokeStyles {
|
|
|
fillStyle: string | CanvasGradient | CanvasPattern;
|
|
|
strokeStyle: string | CanvasGradient | CanvasPattern;
|
|
|
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
|
|
|
createPattern(image: CanvasImageSource, repetition: string): 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 <canvas> element. It is used for drawing shapes, text, images, and other objects. */
|
|
|
interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
|
|
|
readonly canvas: HTMLCanvasElement;
|
|
|
}
|
|
|
|
|
|
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;
|
|
|
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<string>;
|
|
|
writeText(data: string): Promise<void>;
|
|
|
}
|
|
|
|
|
|
declare var Clipboard: {
|
|
|
prototype: Clipboard;
|
|
|
new(): Clipboard;
|
|
|
};
|
|
|
|
|
|
/** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */
|
|
|
interface ClipboardEvent extends Event {
|
|
|
readonly clipboardData: DataTransfer | null;
|
|
|
}
|
|
|
|
|
|
declare var ClipboardEvent: {
|
|
|
prototype: ClipboardEvent;
|
|
|
new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
|
|
|
};
|
|
|
|
|
|
/** 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 {
|
|
|
readonly code: number;
|
|
|
readonly reason: string;
|
|
|
readonly wasClean: boolean;
|
|
|
/** @deprecated */
|
|
|
initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
|
|
|
}
|
|
|
|
|
|
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;
|
|
|
}
|
|
|
|
|
|
/** Provides access to the browser's debugging console (e.g.\xA0the Web Console in Firefox). The specifics of how it works varies\xA0from browser to browser, but there is a de facto set of features that are typically provided. */
|
|
|
interface Console {
|
|
|
memory: any;
|
|
|
assert(condition?: boolean, message?: string, ...data: any[]): void;
|
|
|
clear(): void;
|
|
|
count(label?: string): void;
|
|
|
debug(message?: any, ...optionalParams: any[]): void;
|
|
|
dir(value?: any, ...optionalParams: any[]): void;
|
|
|
dirxml(value: any): void;
|
|
|
error(message?: any, ...optionalParams: any[]): void;
|
|
|
exception(message?: string, ...optionalParams: any[]): void;
|
|
|
group(groupTitle?: string, ...optionalParams: any[]): void;
|
|
|
groupCollapsed(groupTitle?: string, ...optionalParams: any[]): void;
|
|
|
groupEnd(): void;
|
|
|
info(message?: any, ...optionalParams: any[]): void;
|
|
|
log(message?: any, ...optionalParams: any[]): void;
|
|
|
markTimeline(label?: string): void;
|
|
|
profile(reportName?: string): void;
|
|
|
profileEnd(reportName?: string): void;
|
|
|
table(...tabularData: any[]): void;
|
|
|
time(label?: string): void;
|
|
|
timeEnd(label?: string): void;
|
|
|
timeStamp(label?: string): void;
|
|
|
timeline(label?: string): void;
|
|
|
timelineEnd(label?: string): void;
|
|
|
trace(message?: any, ...optionalParams: any[]): void;
|
|
|
warn(message?: any, ...optionalParams: any[]): void;
|
|
|
}
|
|
|
|
|
|
declare var Console: {
|
|
|
prototype: Console;
|
|
|
new(): Console;
|
|
|
};
|
|
|
|
|
|
interface ConstantSourceNode extends AudioScheduledSourceNode {
|
|
|
readonly offset: AudioParam;
|
|
|
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var ConstantSourceNode: {
|
|
|
prototype: ConstantSourceNode;
|
|
|
new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
|
|
|
};
|
|
|
|
|
|
/** An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. */
|
|
|
interface ConvolverNode extends AudioNode {
|
|
|
buffer: AudioBuffer | null;
|
|
|
normalize: boolean;
|
|
|
}
|
|
|
|
|
|
declare var ConvolverNode: {
|
|
|
prototype: ConvolverNode;
|
|
|
new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;
|
|
|
};
|
|
|
|
|
|
/** The position and altitude of the device on Earth, as well as the accuracy with which these properties are calculated. */
|
|
|
interface Coordinates {
|
|
|
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;
|
|
|
}
|
|
|
|
|
|
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
|
|
|
interface CountQueuingStrategy extends QueuingStrategy {
|
|
|
highWaterMark: number;
|
|
|
size(chunk: any): 1;
|
|
|
}
|
|
|
|
|
|
declare var CountQueuingStrategy: {
|
|
|
prototype: CountQueuingStrategy;
|
|
|
new(options: { highWaterMark: number }): CountQueuingStrategy;
|
|
|
};
|
|
|
|
|
|
interface Credential {
|
|
|
readonly id: string;
|
|
|
readonly type: string;
|
|
|
}
|
|
|
|
|
|
declare var Credential: {
|
|
|
prototype: Credential;
|
|
|
new(): Credential;
|
|
|
};
|
|
|
|
|
|
interface CredentialsContainer {
|
|
|
create(options?: CredentialCreationOptions): Promise<Credential | null>;
|
|
|
get(options?: CredentialRequestOptions): Promise<Credential | null>;
|
|
|
preventSilentAccess(): Promise<void>;
|
|
|
store(credential: Credential): Promise<Credential>;
|
|
|
}
|
|
|
|
|
|
declare var CredentialsContainer: {
|
|
|
prototype: CredentialsContainer;
|
|
|
new(): CredentialsContainer;
|
|
|
};
|
|
|
|
|
|
/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
|
|
|
interface Crypto {
|
|
|
readonly subtle: SubtleCrypto;
|
|
|
getRandomValues<T extends Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null>(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: Function, options?: ElementDefinitionOptions): void;
|
|
|
get(name: string): any;
|
|
|
upgrade(root: Node): void;
|
|
|
whenDefined(name: string): Promise<void>;
|
|
|
}
|
|
|
|
|
|
declare var CustomElementRegistry: {
|
|
|
prototype: CustomElementRegistry;
|
|
|
new(): CustomElementRegistry;
|
|
|
};
|
|
|
|
|
|
interface CustomEvent<T = any> extends Event {
|
|
|
/**
|
|
|
* Returns any custom data event was created with. Typically used for synthetic events.
|
|
|
*/
|
|
|
readonly detail: T;
|
|
|
initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: T): void;
|
|
|
}
|
|
|
|
|
|
declare var CustomEvent: {
|
|
|
prototype: CustomEvent;
|
|
|
new<T>(typeArg: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
|
|
|
};
|
|
|
|
|
|
/** 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(namespaceURI: string | null, qualifiedName: string | null, doctype: DocumentType | null): Document;
|
|
|
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 DOML2DeprecatedColorProperty {
|
|
|
color: string;
|
|
|
}
|
|
|
|
|
|
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;
|
|
|
}
|
|
|
|
|
|
declare var DOMMatrixReadOnly: {
|
|
|
prototype: DOMMatrixReadOnly;
|
|
|
new(init?: string | number[]): DOMMatrixReadOnly;
|
|
|
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
|
|
|
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
|
|
|
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
|
|
|
};
|
|
|
|
|
|
/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */
|
|
|
interface DOMParser {
|
|
|
parseFromString(str: string, type: SupportedType): 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\xA0HTML\xA0attribute to represent data for custom attributes added to elements. */
|
|
|
interface DOMStringMap {
|
|
|
[name: string]: string | undefined;
|
|
|
}
|
|
|
|
|
|
declare var DOMStringMap: {
|
|
|
prototype: DOMStringMap;
|
|
|
new(): DOMStringMap;
|
|
|
};
|
|
|
|
|
|
/** A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. */
|
|
|
interface DOMTokenList {
|
|
|
/**
|
|
|
* Returns the number of tokens.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Returns the associated set as string.
|
|
|
*
|
|
|
* Can be set, to change the associated attribute.
|
|
|
*/
|
|
|
value: string;
|
|
|
/**
|
|
|
* 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<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: 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: string;
|
|
|
/**
|
|
|
* 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: string;
|
|
|
/**
|
|
|
* Returns a FileList of the files being dragged, if any.
|
|
|
*/
|
|
|
readonly files: FileList;
|
|
|
/**
|
|
|
* Returns a DataTransferItemList object, with the drag data.
|
|
|
*/
|
|
|
readonly items: DataTransferItemList;
|
|
|
/**
|
|
|
* Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files".
|
|
|
*/
|
|
|
readonly types: ReadonlyArray<string>;
|
|
|
/**
|
|
|
* Removes the data of the specified formats. Removes all data if the argument is omitted.
|
|
|
*/
|
|
|
clearData(format?: string): void;
|
|
|
/**
|
|
|
* Returns the specified data. If there is no such data, returns the empty string.
|
|
|
*/
|
|
|
getData(format: string): string;
|
|
|
/**
|
|
|
* Adds the specified data.
|
|
|
*/
|
|
|
setData(format: string, data: string): void;
|
|
|
/**
|
|
|
* Uses the given element to update the drag feedback, replacing any previously specified feedback.
|
|
|
*/
|
|
|
setDragImage(image: Element, x: number, y: number): void;
|
|
|
}
|
|
|
|
|
|
declare var DataTransfer: {
|
|
|
prototype: DataTransfer;
|
|
|
new(): DataTransfer;
|
|
|
};
|
|
|
|
|
|
/** One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. */
|
|
|
interface DataTransferItem {
|
|
|
/**
|
|
|
* Returns the drag data item kind, one of: "string", "file".
|
|
|
*/
|
|
|
readonly kind: string;
|
|
|
/**
|
|
|
* Returns the drag data item type string.
|
|
|
*/
|
|
|
readonly type: string;
|
|
|
/**
|
|
|
* Returns a File object, if the drag data item kind is File.
|
|
|
*/
|
|
|
getAsFile(): File | null;
|
|
|
/**
|
|
|
* Invokes the callback with the string data as the argument, if the drag data item kind is Plain Unicode string.
|
|
|
*/
|
|
|
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 DeviceLightEvent provides web developers with information from photo sensors or similiar detectors about ambient light levels near the device. For example this may be useful to adjust the screen's brightness based on the current ambient light level in order to save energy or provide better readability. */
|
|
|
interface DeviceLightEvent extends Event {
|
|
|
readonly value: number;
|
|
|
}
|
|
|
|
|
|
declare var DeviceLightEvent: {
|
|
|
prototype: DeviceLightEvent;
|
|
|
new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
|
|
|
};
|
|
|
|
|
|
/** 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;
|
|
|
};
|
|
|
|
|
|
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;
|
|
|
};
|
|
|
|
|
|
/** 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": ProgressEvent<Document>;
|
|
|
"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;
|
|
|
/**
|
|
|
* Gets the object that has the focus when the parent document has focus.
|
|
|
*/
|
|
|
readonly activeElement: Element | null;
|
|
|
/**
|
|
|
* Sets or gets the color of all active links in the document.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
alinkColor: string;
|
|
|
/**
|
|
|
* Returns a reference to the collection of elements contained by the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
readonly all: HTMLAllCollection;
|
|
|
/**
|
|
|
* Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;
|
|
|
/**
|
|
|
* Retrieves a collection of all applet objects in the document.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
readonly applets: HTMLCollectionOf<HTMLAppletElement>;
|
|
|
/**
|
|
|
* 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 | null;
|
|
|
/**
|
|
|
* Sets or gets a value that indicates whether the document can be edited.
|
|
|
*/
|
|
|
designMode: string;
|
|
|
/**
|
|
|
* Sets or retrieves a value that indicates the reading order of the object.
|
|
|
*/
|
|
|
dir: string;
|
|
|
/**
|
|
|
* Gets an object representing the document type declaration associated with the current document.
|
|
|
*/
|
|
|
readonly doctype: DocumentType | null;
|
|
|
/**
|
|
|
* Gets a reference to the root node of the document.
|
|
|
*/
|
|
|
readonly documentElement: HTMLElement;
|
|
|
/**
|
|
|
* Returns document's URL.
|
|
|
*/
|
|
|
readonly documentURI: string;
|
|
|
/**
|
|
|
* Sets or gets the security domain of the document.
|
|
|
*/
|
|
|
domain: string;
|
|
|
/**
|
|
|
* Retrieves a collection of all embed objects in the document.
|
|
|
*/
|
|
|
readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
|
|
|
/**
|
|
|
* Sets or gets the foreground (text) color of the document.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
fgColor: string;
|
|
|
/**
|
|
|
* Retrieves a collection, in source order, of all form objects in the document.
|
|
|
*/
|
|
|
readonly forms: HTMLCollectionOf<HTMLFormElement>;
|
|
|
/** @deprecated */
|
|
|
readonly fullscreen: boolean;
|
|
|
/**
|
|
|
* Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.
|
|
|
*/
|
|
|
readonly fullscreenEnabled: boolean;
|
|
|
/**
|
|
|
* Returns the head element.
|
|
|
*/
|
|
|
readonly head: HTMLHeadElement;
|
|
|
readonly hidden: boolean;
|
|
|
/**
|
|
|
* Retrieves a collection, in source order, of img objects in the document.
|
|
|
*/
|
|
|
readonly images: HTMLCollectionOf<HTMLImageElement>;
|
|
|
/**
|
|
|
* Gets the implementation object of the current document.
|
|
|
*/
|
|
|
readonly implementation: DOMImplementation;
|
|
|
/**
|
|
|
* Returns the character encoding used to create the webpage that is loaded into the document object.
|
|
|
*/
|
|
|
readonly inputEncoding: string;
|
|
|
/**
|
|
|
* Gets the date that the page was last modified, if the page supplies one.
|
|
|
*/
|
|
|
readonly lastModified: string;
|
|
|
/**
|
|
|
* Sets or gets the color of the document links.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
linkColor: string;
|
|
|
/**
|
|
|
* Retrieves a collection of all a objects that specify the href property and all area objects in the document.
|
|
|
*/
|
|
|
readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
|
|
|
/**
|
|
|
* Contains information about the current URL.
|
|
|
*/
|
|
|
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: ProgressEvent<Document>) => any) | null;
|
|
|
onvisibilitychange: ((this: Document, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Returns document's origin.
|
|
|
*/
|
|
|
readonly origin: string;
|
|
|
/**
|
|
|
* Return an HTMLCollection of the embed elements in the Document.
|
|
|
*/
|
|
|
readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;
|
|
|
/**
|
|
|
* Retrieves a value that indicates the current state of the object.
|
|
|
*/
|
|
|
readonly readyState: DocumentReadyState;
|
|
|
/**
|
|
|
* Gets the URL of the location that referred the user to the current page.
|
|
|
*/
|
|
|
readonly referrer: string;
|
|
|
/**
|
|
|
* Retrieves a collection of all script objects in the document.
|
|
|
*/
|
|
|
readonly scripts: HTMLCollectionOf<HTMLScriptElement>;
|
|
|
readonly scrollingElement: Element | null;
|
|
|
readonly timeline: DocumentTimeline;
|
|
|
/**
|
|
|
* Contains the title of the document.
|
|
|
*/
|
|
|
title: string;
|
|
|
readonly visibilityState: VisibilityState;
|
|
|
/**
|
|
|
* Sets or gets the color of the links that the user has visited.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
vlinkColor: string;
|
|
|
/**
|
|
|
* Moves node from another document and returns it.
|
|
|
*
|
|
|
* If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.
|
|
|
*/
|
|
|
adoptNode<T extends Node>(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<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];
|
|
|
/** @deprecated */
|
|
|
createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];
|
|
|
createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;
|
|
|
/**
|
|
|
* Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.
|
|
|
*
|
|
|
* If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.
|
|
|
*
|
|
|
* If one of the following conditions is true a "NamespaceError" DOMException will be thrown:
|
|
|
*
|
|
|
* localName does not match the QName production.
|
|
|
* Namespace prefix is not null and namespace is the empty string.
|
|
|
* Namespace prefix is "xml" and namespace is not the XML namespace.
|
|
|
* qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.
|
|
|
* namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".
|
|
|
*
|
|
|
* When supplied, options's is can be used to create a customized built-in element.
|
|
|
*/
|
|
|
createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
|
|
|
createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];
|
|
|
createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
|
|
|
createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;
|
|
|
createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;
|
|
|
createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
|
|
|
createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
|
|
|
createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
|
|
|
createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
|
|
|
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
|
|
|
createEvent(eventInterface: "CloseEvent"): CloseEvent;
|
|
|
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
|
|
|
createEvent(eventInterface: "CustomEvent"): CustomEvent;
|
|
|
createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;
|
|
|
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: "MSGestureEvent"): MSGestureEvent;
|
|
|
createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;
|
|
|
createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
|
|
|
createEvent(eventInterface: "MSPointerEvent"): MSPointerEvent;
|
|
|
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: "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: "RTCStatsEvent"): RTCStatsEvent;
|
|
|
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
|
|
|
createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;
|
|
|
createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;
|
|
|
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
|
|
|
createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;
|
|
|
createEvent(eventInterface: "SpeechRecognitionError"): SpeechRecognitionError;
|
|
|
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<void>;
|
|
|
exitPointerLock(): void;
|
|
|
getAnimations(): Animation[];
|
|
|
/**
|
|
|
* Returns a reference to the first object with the specified value of the ID or NAME attribute.
|
|
|
* @param elementId String that specifies the ID value. Case-insensitive.
|
|
|
*/
|
|
|
getElementById(elementId: string): HTMLElement | null;
|
|
|
/**
|
|
|
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
|
|
|
*/
|
|
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
|
/**
|
|
|
* Gets a collection of objects based on the value of the NAME or ID attribute.
|
|
|
* @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
|
|
|
*/
|
|
|
getElementsByName(elementName: string): NodeListOf<HTMLElement>;
|
|
|
/**
|
|
|
* Retrieves a collection of objects based on the specified element name.
|
|
|
* @param name Specifies the name of an element.
|
|
|
*/
|
|
|
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
|
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
|
/**
|
|
|
* If namespace and localName are "*" returns a HTMLCollection of all descendant elements.
|
|
|
*
|
|
|
* If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.
|
|
|
*
|
|
|
* If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.
|
|
|
*
|
|
|
* Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.
|
|
|
*/
|
|
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
|
getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf<Element>;
|
|
|
/**
|
|
|
* Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
|
|
|
*/
|
|
|
getSelection(): Selection | null;
|
|
|
/**
|
|
|
* Gets a value indicating whether the object currently has focus.
|
|
|
*/
|
|
|
hasFocus(): boolean;
|
|
|
/**
|
|
|
* Returns a copy of node. If deep is true, the copy also includes the node's descendants.
|
|
|
*
|
|
|
* If node is a document or a shadow root, throws a "NotSupportedError" DOMException.
|
|
|
*/
|
|
|
importNode<T extends Node>(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<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var Document: {
|
|
|
prototype: Document;
|
|
|
new(): Document;
|
|
|
};
|
|
|
|
|
|
interface DocumentAndElementEventHandlersEventMap {
|
|
|
"copy": ClipboardEvent;
|
|
|
"cut": ClipboardEvent;
|
|
|
"paste": ClipboardEvent;
|
|
|
}
|
|
|
|
|
|
interface DocumentAndElementEventHandlers {
|
|
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
|
addEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
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: "DeviceLightEvent"): DeviceLightEvent;
|
|
|
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: "MSGestureEvent"): MSGestureEvent;
|
|
|
createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;
|
|
|
createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
|
|
|
createEvent(eventInterface: "MSPointerEvent"): MSPointerEvent;
|
|
|
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: "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: "RTCStatsEvent"): RTCStatsEvent;
|
|
|
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
|
|
|
createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;
|
|
|
createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;
|
|
|
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
|
|
|
createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;
|
|
|
createEvent(eventInterface: "SpeechRecognitionError"): SpeechRecognitionError;
|
|
|
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 {
|
|
|
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 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, Slotable {
|
|
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
|
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;
|
|
|
/**
|
|
|
* Returns the namespace prefix.
|
|
|
*/
|
|
|
readonly prefix: string | null;
|
|
|
readonly scrollHeight: number;
|
|
|
scrollLeft: number;
|
|
|
scrollTop: number;
|
|
|
readonly scrollWidth: number;
|
|
|
/**
|
|
|
* Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
|
|
|
*/
|
|
|
readonly shadowRoot: ShadowRoot | null;
|
|
|
/**
|
|
|
* Returns the value of element's slot content attribute. Can be set to change it.
|
|
|
*/
|
|
|
slot: string;
|
|
|
/**
|
|
|
* Returns the HTML-uppercased qualified name.
|
|
|
*/
|
|
|
readonly tagName: string;
|
|
|
/**
|
|
|
* Creates a shadow root for element and returns it.
|
|
|
*/
|
|
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
|
/**
|
|
|
* Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
|
|
|
*/
|
|
|
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
|
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
|
closest<E extends Element = Element>(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(name: string): Attr | null;
|
|
|
getAttributeNodeNS(namespaceURI: string, localName: string): Attr | null;
|
|
|
getBoundingClientRect(): DOMRect;
|
|
|
getClientRects(): DOMRectList;
|
|
|
/**
|
|
|
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
|
|
|
*/
|
|
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
|
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
|
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
|
getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf<Element>;
|
|
|
/**
|
|
|
* Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
|
|
|
*/
|
|
|
hasAttribute(qualifiedName: string): boolean;
|
|
|
/**
|
|
|
* Returns true if element has an attribute whose namespace is namespace and local name is localName.
|
|
|
*/
|
|
|
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
|
/**
|
|
|
* Returns true if element has attributes, and false otherwise.
|
|
|
*/
|
|
|
hasAttributes(): boolean;
|
|
|
hasPointerCapture(pointerId: number): boolean;
|
|
|
insertAdjacentElement(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<void>;
|
|
|
requestPointerLock(): void;
|
|
|
scroll(options?: ScrollToOptions): void;
|
|
|
scroll(x: number, y: number): void;
|
|
|
scrollBy(options?: ScrollToOptions): void;
|
|
|
scrollBy(x: number, y: number): void;
|
|
|
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
|
scrollTo(options?: ScrollToOptions): void;
|
|
|
scrollTo(x: number, y: number): void;
|
|
|
/**
|
|
|
* Sets the value of element's first attribute whose qualified name is qualifiedName to value.
|
|
|
*/
|
|
|
setAttribute(qualifiedName: string, value: string): void;
|
|
|
/**
|
|
|
* Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
|
|
|
*/
|
|
|
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
|
setAttributeNode(attr: Attr): Attr | null;
|
|
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
|
setPointerCapture(pointerId: number): void;
|
|
|
/**
|
|
|
* If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
|
|
|
*
|
|
|
* Returns true if qualifiedName is now present, and false otherwise.
|
|
|
*/
|
|
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
|
webkitMatchesSelector(selectors: string): boolean;
|
|
|
addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var Element: {
|
|
|
prototype: Element;
|
|
|
new(): Element;
|
|
|
};
|
|
|
|
|
|
interface ElementCSSInlineStyle {
|
|
|
readonly style: CSSStyleDeclaration;
|
|
|
}
|
|
|
|
|
|
interface ElementContentEditable {
|
|
|
contentEditable: string;
|
|
|
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<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var EventSource: {
|
|
|
prototype: EventSource;
|
|
|
new(url: string, 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 \xA72.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 <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */
|
|
|
interface FileList {
|
|
|
readonly length: number;
|
|
|
item(index: number): File | null;
|
|
|
[index: number]: File;
|
|
|
}
|
|
|
|
|
|
declare var FileList: {
|
|
|
prototype: FileList;
|
|
|
new(): FileList;
|
|
|
};
|
|
|
|
|
|
interface FileReaderEventMap {
|
|
|
"abort": ProgressEvent<FileReader>;
|
|
|
"error": ProgressEvent<FileReader>;
|
|
|
"load": ProgressEvent<FileReader>;
|
|
|
"loadend": ProgressEvent<FileReader>;
|
|
|
"loadstart": ProgressEvent<FileReader>;
|
|
|
"progress": ProgressEvent<FileReader>;
|
|
|
}
|
|
|
|
|
|
/** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */
|
|
|
interface FileReader extends EventTarget {
|
|
|
readonly error: DOMException | null;
|
|
|
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
|
readonly readyState: number;
|
|
|
readonly result: string | ArrayBuffer | null;
|
|
|
abort(): void;
|
|
|
readAsArrayBuffer(blob: Blob): void;
|
|
|
readAsBinaryString(blob: Blob): void;
|
|
|
readAsDataURL(blob: Blob): void;
|
|
|
readAsText(blob: Blob, encoding?: string): void;
|
|
|
readonly DONE: number;
|
|
|
readonly EMPTY: number;
|
|
|
readonly LOADING: number;
|
|
|
addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var FileReader: {
|
|
|
prototype: FileReader;
|
|
|
new(): FileReader;
|
|
|
readonly DONE: number;
|
|
|
readonly EMPTY: number;
|
|
|
readonly LOADING: number;
|
|
|
};
|
|
|
|
|
|
/** 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<number>;
|
|
|
readonly buttons: ReadonlyArray<GamepadButton>;
|
|
|
readonly connected: boolean;
|
|
|
readonly hand: GamepadHand;
|
|
|
readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;
|
|
|
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<boolean>;
|
|
|
}
|
|
|
|
|
|
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 {
|
|
|
/**
|
|
|
* Returns a readable stream whose chunks are strings resulting from running encoding's decoder on the chunks written to writable.
|
|
|
*/
|
|
|
readonly readable: ReadableStream;
|
|
|
/**
|
|
|
* Returns a writable stream which accepts BufferSource chunks and runs them through encoding's decoder before making them available to readable.
|
|
|
*
|
|
|
* Typically this will be used via the pipeThrough() method on a ReadableStream source.
|
|
|
*
|
|
|
* \`\`\`
|
|
|
* var decoder = new TextDecoderStream(encoding);
|
|
|
* byteReadable
|
|
|
* .pipeThrough(decoder)
|
|
|
* .pipeTo(textWritable);
|
|
|
* \`\`\`
|
|
|
*
|
|
|
* If the error mode is "fatal" and encoding's decoder returns error, both readable and writable will be errored with a TypeError.
|
|
|
*/
|
|
|
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;
|
|
|
}
|
|
|
|
|
|
interface GlobalEventHandlersEventMap {
|
|
|
"abort": UIEvent;
|
|
|
"animationcancel": AnimationEvent;
|
|
|
"animationend": AnimationEvent;
|
|
|
"animationiteration": AnimationEvent;
|
|
|
"animationstart": AnimationEvent;
|
|
|
"auxclick": MouseEvent;
|
|
|
"blur": FocusEvent;
|
|
|
"cancel": Event;
|
|
|
"canplay": Event;
|
|
|
"canplaythrough": Event;
|
|
|
"change": Event;
|
|
|
"click": MouseEvent;
|
|
|
"close": Event;
|
|
|
"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;
|
|
|
"loadend": ProgressEvent;
|
|
|
"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;
|
|
|
onloadend: ((this: GlobalEventHandlers, ev: ProgressEvent) => 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<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
interface HTMLAllCollection {
|
|
|
/**
|
|
|
* Returns the number of elements in the collection.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Returns the item with index index from the collection (determined by tree order).
|
|
|
*/
|
|
|
item(nameOrIndex?: string): HTMLCollection | Element | null;
|
|
|
/**
|
|
|
* Returns the item with ID or name name from the collection.
|
|
|
*
|
|
|
* If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.
|
|
|
*
|
|
|
* Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.
|
|
|
*/
|
|
|
namedItem(name: string): HTMLCollection | Element | null;
|
|
|
[index: number]: Element;
|
|
|
}
|
|
|
|
|
|
declare var HTMLAllCollection: {
|
|
|
prototype: HTMLAllCollection;
|
|
|
new(): HTMLAllCollection;
|
|
|
};
|
|
|
|
|
|
/** Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. */
|
|
|
interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
|
|
/**
|
|
|
* Sets or retrieves the character set used to encode the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
charset: string;
|
|
|
/**
|
|
|
* Sets or retrieves the coordinates of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
coords: string;
|
|
|
download: string;
|
|
|
/**
|
|
|
* Sets or retrieves the language code of the object.
|
|
|
*/
|
|
|
hreflang: string;
|
|
|
/**
|
|
|
* Sets or retrieves the shape of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
name: string;
|
|
|
ping: string;
|
|
|
referrerPolicy: string;
|
|
|
/**
|
|
|
* Sets or retrieves the relationship between the object and the destination of the link.
|
|
|
*/
|
|
|
rel: string;
|
|
|
readonly relList: DOMTokenList;
|
|
|
/**
|
|
|
* Sets or retrieves the relationship between the object and the destination of the link.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
rev: string;
|
|
|
/**
|
|
|
* Sets or retrieves the shape of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
shape: string;
|
|
|
/**
|
|
|
* Sets or retrieves the window or frame at which to target content.
|
|
|
*/
|
|
|
target: string;
|
|
|
/**
|
|
|
* Retrieves or sets the text of the object as a string.
|
|
|
*/
|
|
|
text: string;
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLAnchorElement: {
|
|
|
prototype: HTMLAnchorElement;
|
|
|
new(): HTMLAnchorElement;
|
|
|
};
|
|
|
|
|
|
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<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: 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 <area> elements. */
|
|
|
interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
|
|
/**
|
|
|
* Sets or retrieves a text alternative to the graphic.
|
|
|
*/
|
|
|
alt: string;
|
|
|
/**
|
|
|
* Sets or retrieves the coordinates of the object.
|
|
|
*/
|
|
|
coords: string;
|
|
|
download: string;
|
|
|
/**
|
|
|
* Sets or gets whether clicks in this region cause action.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
noHref: boolean;
|
|
|
ping: string;
|
|
|
referrerPolicy: string;
|
|
|
rel: string;
|
|
|
readonly relList: DOMTokenList;
|
|
|
/**
|
|
|
* Sets or retrieves the shape of the object.
|
|
|
*/
|
|
|
shape: string;
|
|
|
/**
|
|
|
* Sets or retrieves the window or frame at which to target content.
|
|
|
*/
|
|
|
target: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLAreaElement: {
|
|
|
prototype: HTMLAreaElement;
|
|
|
new(): HTMLAreaElement;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */
|
|
|
interface HTMLAudioElement extends HTMLMediaElement {
|
|
|
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLAudioElement: {
|
|
|
prototype: HTMLAudioElement;
|
|
|
new(): HTMLAudioElement;
|
|
|
};
|
|
|
|
|
|
/** A HTML line break element (<br>). It inherits from HTMLElement. */
|
|
|
interface HTMLBRElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
clear: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLBRElement: {
|
|
|
prototype: HTMLBRElement;
|
|
|
new(): HTMLBRElement;
|
|
|
};
|
|
|
|
|
|
/** Contains the base URI\xA0for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */
|
|
|
interface HTMLBaseElement extends HTMLElement {
|
|
|
/**
|
|
|
* Gets or sets the baseline URL on which relative links are based.
|
|
|
*/
|
|
|
href: string;
|
|
|
/**
|
|
|
* Sets or retrieves the window or frame at which to target content.
|
|
|
*/
|
|
|
target: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLBaseElement: {
|
|
|
prototype: HTMLBaseElement;
|
|
|
new(): HTMLBaseElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <basefont> elements. */
|
|
|
interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty {
|
|
|
/**
|
|
|
* Sets or retrieves the current typeface family.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
face: string;
|
|
|
/**
|
|
|
* Sets or retrieves the font size of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
size: number;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLBaseFontElement: {
|
|
|
prototype: HTMLBaseFontElement;
|
|
|
new(): HTMLBaseFontElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
|
|
|
"orientationchange": Event;
|
|
|
}
|
|
|
|
|
|
/** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */
|
|
|
interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
|
|
|
/** @deprecated */
|
|
|
aLink: string;
|
|
|
/** @deprecated */
|
|
|
background: string;
|
|
|
/** @deprecated */
|
|
|
bgColor: string;
|
|
|
bgProperties: string;
|
|
|
/** @deprecated */
|
|
|
link: string;
|
|
|
/** @deprecated */
|
|
|
noWrap: boolean;
|
|
|
/** @deprecated */
|
|
|
onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;
|
|
|
/** @deprecated */
|
|
|
text: string;
|
|
|
/** @deprecated */
|
|
|
vLink: string;
|
|
|
addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLBodyElement: {
|
|
|
prototype: HTMLBodyElement;
|
|
|
new(): HTMLBodyElement;
|
|
|
};
|
|
|
|
|
|
/** Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. */
|
|
|
interface HTMLButtonElement extends HTMLElement {
|
|
|
/**
|
|
|
* Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
|
|
|
*/
|
|
|
autofocus: boolean;
|
|
|
disabled: boolean;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
/**
|
|
|
* Overrides the action attribute (where the data on a form is sent) on the parent form element.
|
|
|
*/
|
|
|
formAction: string;
|
|
|
/**
|
|
|
* Used to override the encoding (formEnctype attribute) specified on the form element.
|
|
|
*/
|
|
|
formEnctype: string;
|
|
|
/**
|
|
|
* Overrides the submit method attribute previously specified on a form element.
|
|
|
*/
|
|
|
formMethod: string;
|
|
|
/**
|
|
|
* Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
|
|
|
*/
|
|
|
formNoValidate: boolean;
|
|
|
/**
|
|
|
* Overrides the target attribute on a form element.
|
|
|
*/
|
|
|
formTarget: string;
|
|
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Gets the classification and default behavior of the button.
|
|
|
*/
|
|
|
type: string;
|
|
|
/**
|
|
|
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
|
|
|
*/
|
|
|
readonly validationMessage: string;
|
|
|
/**
|
|
|
* Returns a ValidityState object that represents the validity states of an element.
|
|
|
*/
|
|
|
readonly validity: ValidityState;
|
|
|
/**
|
|
|
* Sets or retrieves the default or selected value of the control.
|
|
|
*/
|
|
|
value: string;
|
|
|
/**
|
|
|
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
|
*/
|
|
|
readonly willValidate: boolean;
|
|
|
/**
|
|
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
|
*/
|
|
|
checkValidity(): boolean;
|
|
|
reportValidity(): boolean;
|
|
|
/**
|
|
|
* Sets a custom error message that is displayed when a form is submitted.
|
|
|
* @param error Sets a custom error message that is displayed when a form is submitted.
|
|
|
*/
|
|
|
setCustomValidity(error: string): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLButtonElement: {
|
|
|
prototype: HTMLButtonElement;
|
|
|
new(): HTMLButtonElement;
|
|
|
};
|
|
|
|
|
|
/** Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. */
|
|
|
interface HTMLCanvasElement extends HTMLElement {
|
|
|
/**
|
|
|
* Gets or sets the height of a canvas element on a document.
|
|
|
*/
|
|
|
height: number;
|
|
|
/**
|
|
|
* Gets or sets the width of a canvas element on a document.
|
|
|
*/
|
|
|
width: number;
|
|
|
/**
|
|
|
* Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
|
|
|
* @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
|
|
|
*/
|
|
|
getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
|
|
|
getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
|
|
|
getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
|
|
|
getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
|
|
|
getContext(contextId: string, options?: any): RenderingContext | null;
|
|
|
toBlob(callback: BlobCallback, type?: string, quality?: any): void;
|
|
|
/**
|
|
|
* Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
|
|
|
* @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
|
|
|
*/
|
|
|
toDataURL(type?: string, quality?: any): string;
|
|
|
transferControlToOffscreen(): OffscreenCanvas;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLCanvasElement: {
|
|
|
prototype: HTMLCanvasElement;
|
|
|
new(): HTMLCanvasElement;
|
|
|
};
|
|
|
|
|
|
/** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */
|
|
|
interface HTMLCollectionBase {
|
|
|
/**
|
|
|
* Sets or retrieves the number of objects in a collection.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Retrieves an object from various collections.
|
|
|
*/
|
|
|
item(index: number): Element | null;
|
|
|
[index: number]: Element;
|
|
|
}
|
|
|
|
|
|
interface HTMLCollection extends HTMLCollectionBase {
|
|
|
/**
|
|
|
* Retrieves a select object or an object from an options collection.
|
|
|
*/
|
|
|
namedItem(name: string): Element | null;
|
|
|
}
|
|
|
|
|
|
declare var HTMLCollection: {
|
|
|
prototype: HTMLCollection;
|
|
|
new(): HTMLCollection;
|
|
|
};
|
|
|
|
|
|
interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
|
|
|
item(index: number): T | null;
|
|
|
namedItem(name: string): T | null;
|
|
|
[index: number]: T;
|
|
|
}
|
|
|
|
|
|
/** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */
|
|
|
interface HTMLDListElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
compact: boolean;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLDListElement: {
|
|
|
prototype: HTMLDListElement;
|
|
|
new(): HTMLDListElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */
|
|
|
interface HTMLDataElement extends HTMLElement {
|
|
|
value: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLDataElement: {
|
|
|
prototype: HTMLDataElement;
|
|
|
new(): HTMLDataElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */
|
|
|
interface HTMLDataListElement extends HTMLElement {
|
|
|
readonly options: HTMLCollectionOf<HTMLOptionElement>;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLDataListElement: {
|
|
|
prototype: HTMLDataListElement;
|
|
|
new(): HTMLDataListElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLDetailsElement extends HTMLElement {
|
|
|
open: boolean;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLDetailsElement: {
|
|
|
prototype: HTMLDetailsElement;
|
|
|
new(): HTMLDetailsElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLDialogElement extends HTMLElement {
|
|
|
open: boolean;
|
|
|
returnValue: string;
|
|
|
close(returnValue?: string): void;
|
|
|
show(): void;
|
|
|
showModal(): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLDialogElement: {
|
|
|
prototype: HTMLDialogElement;
|
|
|
new(): HTMLDialogElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLDirectoryElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
compact: boolean;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLDirectoryElement: {
|
|
|
prototype: HTMLDirectoryElement;
|
|
|
new(): HTMLDirectoryElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. */
|
|
|
interface HTMLDivElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLDivElement: {
|
|
|
prototype: HTMLDivElement;
|
|
|
new(): HTMLDivElement;
|
|
|
};
|
|
|
|
|
|
/** The HTMLDocument property of Window objects is an alias that browsers expose for the Document interface object. */
|
|
|
interface HTMLDocument extends Document {
|
|
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLDocument: {
|
|
|
prototype: HTMLDocument;
|
|
|
new(): HTMLDocument;
|
|
|
};
|
|
|
|
|
|
interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap {
|
|
|
}
|
|
|
|
|
|
/** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */
|
|
|
interface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
|
|
|
accessKey: string;
|
|
|
readonly accessKeyLabel: string;
|
|
|
autocapitalize: string;
|
|
|
dir: string;
|
|
|
draggable: boolean;
|
|
|
hidden: boolean;
|
|
|
innerText: string;
|
|
|
lang: string;
|
|
|
readonly offsetHeight: number;
|
|
|
readonly offsetLeft: number;
|
|
|
readonly offsetParent: Element | null;
|
|
|
readonly offsetTop: number;
|
|
|
readonly offsetWidth: number;
|
|
|
spellcheck: boolean;
|
|
|
title: string;
|
|
|
translate: boolean;
|
|
|
click(): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLElement: {
|
|
|
prototype: HTMLElement;
|
|
|
new(): HTMLElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */
|
|
|
interface HTMLEmbedElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
/**
|
|
|
* Sets or retrieves the height of the object.
|
|
|
*/
|
|
|
height: string;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
name: string;
|
|
|
/**
|
|
|
* Sets or retrieves a URL to be loaded by the object.
|
|
|
*/
|
|
|
src: string;
|
|
|
type: string;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
*/
|
|
|
width: string;
|
|
|
getSVGDocument(): Document | null;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLEmbedElement: {
|
|
|
prototype: HTMLEmbedElement;
|
|
|
new(): HTMLEmbedElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. */
|
|
|
interface HTMLFieldSetElement extends HTMLElement {
|
|
|
disabled: boolean;
|
|
|
readonly elements: HTMLCollection;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
name: string;
|
|
|
readonly type: string;
|
|
|
/**
|
|
|
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
|
|
|
*/
|
|
|
readonly validationMessage: string;
|
|
|
/**
|
|
|
* Returns a ValidityState object that represents the validity states of an element.
|
|
|
*/
|
|
|
readonly validity: ValidityState;
|
|
|
/**
|
|
|
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
|
*/
|
|
|
readonly willValidate: boolean;
|
|
|
/**
|
|
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
|
*/
|
|
|
checkValidity(): boolean;
|
|
|
reportValidity(): boolean;
|
|
|
/**
|
|
|
* Sets a custom error message that is displayed when a form is submitted.
|
|
|
* @param error Sets a custom error message that is displayed when a form is submitted.
|
|
|
*/
|
|
|
setCustomValidity(error: string): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLFieldSetElement: {
|
|
|
prototype: HTMLFieldSetElement;
|
|
|
new(): HTMLFieldSetElement;
|
|
|
};
|
|
|
|
|
|
/** Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text. */
|
|
|
interface HTMLFontElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
color: string;
|
|
|
/**
|
|
|
* Sets or retrieves the current typeface family.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
face: string;
|
|
|
/** @deprecated */
|
|
|
size: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLFontElement: {
|
|
|
prototype: HTMLFontElement;
|
|
|
new(): HTMLFontElement;
|
|
|
};
|
|
|
|
|
|
/** A collection of HTML form control elements. */
|
|
|
interface HTMLFormControlsCollection extends HTMLCollectionBase {
|
|
|
/**
|
|
|
* Returns the item with ID or name name from the collection.
|
|
|
*
|
|
|
* If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.
|
|
|
*/
|
|
|
namedItem(name: string): RadioNodeList | Element | null;
|
|
|
}
|
|
|
|
|
|
declare var HTMLFormControlsCollection: {
|
|
|
prototype: HTMLFormControlsCollection;
|
|
|
new(): HTMLFormControlsCollection;
|
|
|
};
|
|
|
|
|
|
/** A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. */
|
|
|
interface HTMLFormElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.
|
|
|
*/
|
|
|
acceptCharset: string;
|
|
|
/**
|
|
|
* Sets or retrieves the URL to which the form content is sent for processing.
|
|
|
*/
|
|
|
action: string;
|
|
|
/**
|
|
|
* Specifies whether autocomplete is applied to an editable text field.
|
|
|
*/
|
|
|
autocomplete: string;
|
|
|
/**
|
|
|
* Retrieves a collection, in source order, of all controls in a given form.
|
|
|
*/
|
|
|
readonly elements: HTMLFormControlsCollection;
|
|
|
/**
|
|
|
* Sets or retrieves the MIME encoding for the form.
|
|
|
*/
|
|
|
encoding: string;
|
|
|
/**
|
|
|
* Sets or retrieves the encoding type for the form.
|
|
|
*/
|
|
|
enctype: string;
|
|
|
/**
|
|
|
* Sets or retrieves the number of objects in a collection.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Sets or retrieves how to send the form data to the server.
|
|
|
*/
|
|
|
method: string;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Designates a form that is not validated when submitted.
|
|
|
*/
|
|
|
noValidate: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the window or frame at which to target content.
|
|
|
*/
|
|
|
target: string;
|
|
|
/**
|
|
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
|
*/
|
|
|
checkValidity(): boolean;
|
|
|
reportValidity(): boolean;
|
|
|
/**
|
|
|
* Fires when the user resets a form.
|
|
|
*/
|
|
|
reset(): void;
|
|
|
/**
|
|
|
* Fires when a FORM is about to be submitted.
|
|
|
*/
|
|
|
submit(): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
[index: number]: Element;
|
|
|
[name: string]: any;
|
|
|
}
|
|
|
|
|
|
declare var HTMLFormElement: {
|
|
|
prototype: HTMLFormElement;
|
|
|
new(): HTMLFormElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLFrameElement extends HTMLElement {
|
|
|
/**
|
|
|
* Retrieves the document object of the page or frame.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
readonly contentDocument: Document | null;
|
|
|
/**
|
|
|
* Retrieves the object of the specified.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
readonly contentWindow: WindowProxy | null;
|
|
|
/**
|
|
|
* Sets or retrieves whether to display a border for the frame.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
frameBorder: string;
|
|
|
/**
|
|
|
* Sets or retrieves a URI to a long description of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
longDesc: string;
|
|
|
/**
|
|
|
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
marginHeight: string;
|
|
|
/**
|
|
|
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
marginWidth: string;
|
|
|
/**
|
|
|
* Sets or retrieves the frame name.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
name: string;
|
|
|
/**
|
|
|
* Sets or retrieves whether the user can resize the frame.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
noResize: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves whether the frame can be scrolled.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
scrolling: string;
|
|
|
/**
|
|
|
* Sets or retrieves a URL to be loaded by the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
src: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLFrameElement: {
|
|
|
prototype: HTMLFrameElement;
|
|
|
new(): HTMLFrameElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
|
|
|
}
|
|
|
|
|
|
/** Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements. */
|
|
|
interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {
|
|
|
/**
|
|
|
* Sets or retrieves the frame widths of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
cols: string;
|
|
|
/**
|
|
|
* Sets or retrieves the frame heights of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
rows: string;
|
|
|
addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLFrameSetElement: {
|
|
|
prototype: HTMLFrameSetElement;
|
|
|
new(): HTMLFrameSetElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. */
|
|
|
interface HTMLHRElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
/** @deprecated */
|
|
|
color: string;
|
|
|
/**
|
|
|
* Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
noShade: boolean;
|
|
|
/** @deprecated */
|
|
|
size: string;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
width: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLHRElement: {
|
|
|
prototype: HTMLHRElement;
|
|
|
new(): HTMLHRElement;
|
|
|
};
|
|
|
|
|
|
/** Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. */
|
|
|
interface HTMLHeadElement extends HTMLElement {
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLHeadElement: {
|
|
|
prototype: HTMLHeadElement;
|
|
|
new(): HTMLHeadElement;
|
|
|
};
|
|
|
|
|
|
/** The different heading elements. It inherits methods and properties from the HTMLElement interface. */
|
|
|
interface HTMLHeadingElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves a value that indicates the table alignment.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLHeadingElement: {
|
|
|
prototype: HTMLHeadingElement;
|
|
|
new(): HTMLHeadingElement;
|
|
|
};
|
|
|
|
|
|
/** Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. */
|
|
|
interface HTMLHtmlElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves the DTD version that governs the current document.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
version: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLHtmlElement: {
|
|
|
prototype: HTMLHtmlElement;
|
|
|
new(): HTMLHtmlElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLHyperlinkElementUtils {
|
|
|
hash: string;
|
|
|
host: string;
|
|
|
hostname: string;
|
|
|
href: string;
|
|
|
readonly origin: string;
|
|
|
password: string;
|
|
|
pathname: string;
|
|
|
port: string;
|
|
|
protocol: string;
|
|
|
search: string;
|
|
|
username: string;
|
|
|
}
|
|
|
|
|
|
/** Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. */
|
|
|
interface HTMLIFrameElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
allow: string;
|
|
|
allowFullscreen: boolean;
|
|
|
allowPaymentRequest: boolean;
|
|
|
/**
|
|
|
* Retrieves the document object of the page or frame.
|
|
|
*/
|
|
|
readonly contentDocument: Document | null;
|
|
|
/**
|
|
|
* Retrieves the object of the specified.
|
|
|
*/
|
|
|
readonly contentWindow: WindowProxy | null;
|
|
|
/**
|
|
|
* Sets or retrieves whether to display a border for the frame.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
frameBorder: string;
|
|
|
/**
|
|
|
* Sets or retrieves the height of the object.
|
|
|
*/
|
|
|
height: string;
|
|
|
/**
|
|
|
* Sets or retrieves a URI to a long description of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
longDesc: string;
|
|
|
/**
|
|
|
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
marginHeight: string;
|
|
|
/**
|
|
|
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
marginWidth: string;
|
|
|
/**
|
|
|
* Sets or retrieves the frame name.
|
|
|
*/
|
|
|
name: string;
|
|
|
referrerPolicy: ReferrerPolicy;
|
|
|
readonly sandbox: DOMTokenList;
|
|
|
/**
|
|
|
* Sets or retrieves whether the frame can be scrolled.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
scrolling: string;
|
|
|
/**
|
|
|
* Sets or retrieves a URL to be loaded by the object.
|
|
|
*/
|
|
|
src: string;
|
|
|
/**
|
|
|
* Sets or retrives the content of the page that is to contain.
|
|
|
*/
|
|
|
srcdoc: string;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
*/
|
|
|
width: string;
|
|
|
getSVGDocument(): Document | null;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLIFrameElement: {
|
|
|
prototype: HTMLIFrameElement;
|
|
|
new(): HTMLIFrameElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods for manipulating <img> elements. */
|
|
|
interface HTMLImageElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
/**
|
|
|
* Sets or retrieves a text alternative to the graphic.
|
|
|
*/
|
|
|
alt: string;
|
|
|
/**
|
|
|
* Specifies the properties of a border drawn around an object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
border: string;
|
|
|
/**
|
|
|
* Retrieves whether the object is fully loaded.
|
|
|
*/
|
|
|
readonly complete: boolean;
|
|
|
crossOrigin: string | null;
|
|
|
readonly currentSrc: string;
|
|
|
decoding: "async" | "sync" | "auto";
|
|
|
/**
|
|
|
* Sets or retrieves the height of the object.
|
|
|
*/
|
|
|
height: number;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the border to draw around the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
hspace: number;
|
|
|
/**
|
|
|
* Sets or retrieves whether the image is a server-side image map.
|
|
|
*/
|
|
|
isMap: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
longDesc: string;
|
|
|
/** @deprecated */
|
|
|
lowsrc: string;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
name: string;
|
|
|
/**
|
|
|
* The original height of the image resource before sizing.
|
|
|
*/
|
|
|
readonly naturalHeight: number;
|
|
|
/**
|
|
|
* The original width of the image resource before sizing.
|
|
|
*/
|
|
|
readonly naturalWidth: number;
|
|
|
referrerPolicy: string;
|
|
|
sizes: string;
|
|
|
/**
|
|
|
* The address or URL of the a media resource that is to be considered.
|
|
|
*/
|
|
|
src: string;
|
|
|
srcset: string;
|
|
|
/**
|
|
|
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
|
|
*/
|
|
|
useMap: string;
|
|
|
/**
|
|
|
* Sets or retrieves the vertical margin for the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
vspace: number;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
*/
|
|
|
width: number;
|
|
|
readonly x: number;
|
|
|
readonly y: number;
|
|
|
decode(): Promise<void>;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLImageElement: {
|
|
|
prototype: HTMLImageElement;
|
|
|
new(): HTMLImageElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. */
|
|
|
interface HTMLInputElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves a comma-separated list of content types.
|
|
|
*/
|
|
|
accept: string;
|
|
|
/**
|
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
/**
|
|
|
* Sets or retrieves a text alternative to the graphic.
|
|
|
*/
|
|
|
alt: string;
|
|
|
/**
|
|
|
* Specifies whether autocomplete is applied to an editable text field.
|
|
|
*/
|
|
|
autocomplete: string;
|
|
|
/**
|
|
|
* Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
|
|
|
*/
|
|
|
autofocus: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the state of the check box or radio button.
|
|
|
*/
|
|
|
checked: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the state of the check box or radio button.
|
|
|
*/
|
|
|
defaultChecked: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the initial contents of the object.
|
|
|
*/
|
|
|
defaultValue: string;
|
|
|
dirName: string;
|
|
|
disabled: boolean;
|
|
|
/**
|
|
|
* Returns a FileList object on a file type input object.
|
|
|
*/
|
|
|
files: FileList | null;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
/**
|
|
|
* Overrides the action attribute (where the data on a form is sent) on the parent form element.
|
|
|
*/
|
|
|
formAction: string;
|
|
|
/**
|
|
|
* Used to override the encoding (formEnctype attribute) specified on the form element.
|
|
|
*/
|
|
|
formEnctype: string;
|
|
|
/**
|
|
|
* Overrides the submit method attribute previously specified on a form element.
|
|
|
*/
|
|
|
formMethod: string;
|
|
|
/**
|
|
|
* Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
|
|
|
*/
|
|
|
formNoValidate: boolean;
|
|
|
/**
|
|
|
* Overrides the target attribute on a form element.
|
|
|
*/
|
|
|
formTarget: string;
|
|
|
/**
|
|
|
* Sets or retrieves the height of the object.
|
|
|
*/
|
|
|
height: number;
|
|
|
indeterminate: boolean;
|
|
|
readonly labels: NodeListOf<HTMLLabelElement> | null;
|
|
|
/**
|
|
|
* Specifies the ID of a pre-defined datalist of options for an input element.
|
|
|
*/
|
|
|
readonly list: HTMLElement | null;
|
|
|
/**
|
|
|
* Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
|
|
|
*/
|
|
|
max: string;
|
|
|
/**
|
|
|
* Sets or retrieves the maximum number of characters that the user can enter in a text control.
|
|
|
*/
|
|
|
maxLength: number;
|
|
|
/**
|
|
|
* Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
|
|
|
*/
|
|
|
min: string;
|
|
|
minLength: number;
|
|
|
/**
|
|
|
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
|
|
|
*/
|
|
|
multiple: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Gets or sets a string containing a regular expression that the user's input must match.
|
|
|
*/
|
|
|
pattern: string;
|
|
|
/**
|
|
|
* Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
|
|
|
*/
|
|
|
placeholder: string;
|
|
|
readOnly: boolean;
|
|
|
/**
|
|
|
* When present, marks an element that can't be submitted without a value.
|
|
|
*/
|
|
|
required: boolean;
|
|
|
selectionDirection: string | null;
|
|
|
/**
|
|
|
* Gets or sets the end position or offset of a text selection.
|
|
|
*/
|
|
|
selectionEnd: number | null;
|
|
|
/**
|
|
|
* Gets or sets the starting position or offset of a text selection.
|
|
|
*/
|
|
|
selectionStart: number | null;
|
|
|
size: number;
|
|
|
/**
|
|
|
* The address or URL of the a media resource that is to be considered.
|
|
|
*/
|
|
|
src: string;
|
|
|
/**
|
|
|
* Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field.
|
|
|
*/
|
|
|
step: string;
|
|
|
/**
|
|
|
* Returns the content type of the object.
|
|
|
*/
|
|
|
type: string;
|
|
|
/**
|
|
|
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
useMap: string;
|
|
|
/**
|
|
|
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
|
|
|
*/
|
|
|
readonly validationMessage: string;
|
|
|
/**
|
|
|
* Returns a ValidityState object that represents the validity states of an element.
|
|
|
*/
|
|
|
readonly validity: ValidityState;
|
|
|
/**
|
|
|
* Returns the value of the data at the cursor's current position.
|
|
|
*/
|
|
|
value: string;
|
|
|
/**
|
|
|
* Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based.
|
|
|
*/
|
|
|
valueAsDate: Date | null;
|
|
|
/**
|
|
|
* Returns the input field value as a number.
|
|
|
*/
|
|
|
valueAsNumber: number;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
*/
|
|
|
width: number;
|
|
|
/**
|
|
|
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
|
*/
|
|
|
readonly willValidate: boolean;
|
|
|
/**
|
|
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
|
*/
|
|
|
checkValidity(): boolean;
|
|
|
reportValidity(): boolean;
|
|
|
/**
|
|
|
* Makes the selection equal to the current object.
|
|
|
*/
|
|
|
select(): void;
|
|
|
/**
|
|
|
* Sets a custom error message that is displayed when a form is submitted.
|
|
|
* @param error Sets a custom error message that is displayed when a form is submitted.
|
|
|
*/
|
|
|
setCustomValidity(error: string): void;
|
|
|
setRangeText(replacement: string): void;
|
|
|
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
|
|
|
/**
|
|
|
* Sets the start and end positions of a selection in a text field.
|
|
|
* @param start The offset into the text field for the start of the selection.
|
|
|
* @param end The offset into the text field for the end of the selection.
|
|
|
* @param direction The direction in which the selection is performed.
|
|
|
*/
|
|
|
setSelectionRange(start: number, end: number, direction?: "forward" | "backward" | "none"): void;
|
|
|
/**
|
|
|
* Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
|
|
|
* @param n Value to decrement the value by.
|
|
|
*/
|
|
|
stepDown(n?: number): void;
|
|
|
/**
|
|
|
* Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.
|
|
|
* @param n Value to increment the value by.
|
|
|
*/
|
|
|
stepUp(n?: number): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLInputElement: {
|
|
|
prototype: HTMLInputElement;
|
|
|
new(): HTMLInputElement;
|
|
|
};
|
|
|
|
|
|
/** Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. */
|
|
|
interface HTMLLIElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
type: string;
|
|
|
/**
|
|
|
* Sets or retrieves the value of a list item.
|
|
|
*/
|
|
|
value: number;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLLIElement: {
|
|
|
prototype: HTMLLIElement;
|
|
|
new(): HTMLLIElement;
|
|
|
};
|
|
|
|
|
|
/** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */
|
|
|
interface HTMLLabelElement extends HTMLElement {
|
|
|
readonly control: HTMLElement | null;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
/**
|
|
|
* Sets or retrieves the object to which the given label object is assigned.
|
|
|
*/
|
|
|
htmlFor: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLLabelElement: {
|
|
|
prototype: HTMLLabelElement;
|
|
|
new(): HTMLLabelElement;
|
|
|
};
|
|
|
|
|
|
/** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. */
|
|
|
interface HTMLLegendElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLLegendElement: {
|
|
|
prototype: HTMLLegendElement;
|
|
|
new(): HTMLLegendElement;
|
|
|
};
|
|
|
|
|
|
/** Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface. */
|
|
|
interface HTMLLinkElement extends HTMLElement, LinkStyle {
|
|
|
as: string;
|
|
|
/**
|
|
|
* Sets or retrieves the character set used to encode the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
charset: string;
|
|
|
crossOrigin: string | null;
|
|
|
disabled: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves a destination URL or an anchor point.
|
|
|
*/
|
|
|
href: string;
|
|
|
/**
|
|
|
* Sets or retrieves the language code of the object.
|
|
|
*/
|
|
|
hreflang: string;
|
|
|
imageSizes: string;
|
|
|
imageSrcset: string;
|
|
|
integrity: string;
|
|
|
/**
|
|
|
* Sets or retrieves the media type.
|
|
|
*/
|
|
|
media: string;
|
|
|
referrerPolicy: string;
|
|
|
/**
|
|
|
* Sets or retrieves the relationship between the object and the destination of the link.
|
|
|
*/
|
|
|
rel: string;
|
|
|
readonly relList: DOMTokenList;
|
|
|
/**
|
|
|
* Sets or retrieves the relationship between the object and the destination of the link.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
rev: string;
|
|
|
readonly sizes: DOMTokenList;
|
|
|
/**
|
|
|
* Sets or retrieves the window or frame at which to target content.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
target: string;
|
|
|
/**
|
|
|
* Sets or retrieves the MIME type of the object.
|
|
|
*/
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLLinkElement: {
|
|
|
prototype: HTMLLinkElement;
|
|
|
new(): HTMLLinkElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements. */
|
|
|
interface HTMLMapElement extends HTMLElement {
|
|
|
/**
|
|
|
* Retrieves a collection of the area objects defined for the given map object.
|
|
|
*/
|
|
|
readonly areas: HTMLCollection;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
*/
|
|
|
name: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLMapElement: {
|
|
|
prototype: HTMLMapElement;
|
|
|
new(): HTMLMapElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLMarqueeElementEventMap extends HTMLElementEventMap {
|
|
|
"bounce": Event;
|
|
|
"finish": Event;
|
|
|
"start": Event;
|
|
|
}
|
|
|
|
|
|
/** Provides methods to manipulate <marquee> elements. */
|
|
|
interface HTMLMarqueeElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
behavior: string;
|
|
|
/** @deprecated */
|
|
|
bgColor: string;
|
|
|
/** @deprecated */
|
|
|
direction: string;
|
|
|
/** @deprecated */
|
|
|
height: string;
|
|
|
/** @deprecated */
|
|
|
hspace: number;
|
|
|
/** @deprecated */
|
|
|
loop: number;
|
|
|
/** @deprecated */
|
|
|
onbounce: ((this: HTMLMarqueeElement, ev: Event) => any) | null;
|
|
|
/** @deprecated */
|
|
|
onfinish: ((this: HTMLMarqueeElement, ev: Event) => any) | null;
|
|
|
/** @deprecated */
|
|
|
onstart: ((this: HTMLMarqueeElement, ev: Event) => any) | null;
|
|
|
/** @deprecated */
|
|
|
scrollAmount: number;
|
|
|
/** @deprecated */
|
|
|
scrollDelay: number;
|
|
|
/** @deprecated */
|
|
|
trueSpeed: boolean;
|
|
|
/** @deprecated */
|
|
|
vspace: number;
|
|
|
/** @deprecated */
|
|
|
width: string;
|
|
|
/** @deprecated */
|
|
|
start(): void;
|
|
|
/** @deprecated */
|
|
|
stop(): void;
|
|
|
addEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLMarqueeElement: {
|
|
|
prototype: HTMLMarqueeElement;
|
|
|
new(): HTMLMarqueeElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLMediaElementEventMap extends HTMLElementEventMap {
|
|
|
"encrypted": MediaEncryptedEvent;
|
|
|
"msneedkey": Event;
|
|
|
"waitingforkey": Event;
|
|
|
}
|
|
|
|
|
|
/** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities\xA0that are\xA0common to audio and video. */
|
|
|
interface HTMLMediaElement extends HTMLElement {
|
|
|
/**
|
|
|
* Returns an AudioTrackList object with the audio tracks for a given video element.
|
|
|
*/
|
|
|
readonly audioTracks: AudioTrackList;
|
|
|
/**
|
|
|
* Gets or sets a value that indicates whether to start playing the media automatically.
|
|
|
*/
|
|
|
autoplay: boolean;
|
|
|
/**
|
|
|
* Gets a collection of buffered time ranges.
|
|
|
*/
|
|
|
readonly buffered: TimeRanges;
|
|
|
/**
|
|
|
* Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player).
|
|
|
*/
|
|
|
controls: boolean;
|
|
|
crossOrigin: string | null;
|
|
|
/**
|
|
|
* Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.
|
|
|
*/
|
|
|
readonly currentSrc: string;
|
|
|
/**
|
|
|
* Gets or sets the current playback position, in seconds.
|
|
|
*/
|
|
|
currentTime: number;
|
|
|
defaultMuted: boolean;
|
|
|
/**
|
|
|
* Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.
|
|
|
*/
|
|
|
defaultPlaybackRate: number;
|
|
|
/**
|
|
|
* Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming.
|
|
|
*/
|
|
|
readonly duration: number;
|
|
|
/**
|
|
|
* Gets information about whether the playback has ended or not.
|
|
|
*/
|
|
|
readonly ended: boolean;
|
|
|
/**
|
|
|
* Returns an object representing the current error state of the audio or video element.
|
|
|
*/
|
|
|
readonly error: MediaError | null;
|
|
|
/**
|
|
|
* Gets or sets a flag to specify whether playback should restart after it completes.
|
|
|
*/
|
|
|
loop: boolean;
|
|
|
readonly mediaKeys: MediaKeys | null;
|
|
|
/**
|
|
|
* Specifies the purpose of the audio or video media, such as background audio or alerts.
|
|
|
*/
|
|
|
msAudioCategory: string;
|
|
|
/**
|
|
|
* Specifies the output device id that the audio will be sent to.
|
|
|
*/
|
|
|
msAudioDeviceType: string;
|
|
|
readonly msGraphicsTrustStatus: MSGraphicsTrust;
|
|
|
/**
|
|
|
* Gets the MSMediaKeys object, which is used for decrypting media data, that is associated with this media element.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
readonly msKeys: MSMediaKeys;
|
|
|
/**
|
|
|
* Gets or sets whether the DLNA PlayTo device is available.
|
|
|
*/
|
|
|
msPlayToDisabled: boolean;
|
|
|
/**
|
|
|
* Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.
|
|
|
*/
|
|
|
msPlayToPreferredSourceUri: string;
|
|
|
/**
|
|
|
* Gets or sets the primary DLNA PlayTo device.
|
|
|
*/
|
|
|
msPlayToPrimary: boolean;
|
|
|
/**
|
|
|
* Gets the source associated with the media element for use by the PlayToManager.
|
|
|
*/
|
|
|
readonly msPlayToSource: any;
|
|
|
/**
|
|
|
* Specifies whether or not to enable low-latency playback on the media element.
|
|
|
*/
|
|
|
msRealTime: boolean;
|
|
|
/**
|
|
|
* Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.
|
|
|
*/
|
|
|
muted: boolean;
|
|
|
/**
|
|
|
* Gets the current network activity for the element.
|
|
|
*/
|
|
|
readonly networkState: number;
|
|
|
onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
|
|
|
/** @deprecated */
|
|
|
onmsneedkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
|
|
|
onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Gets a flag that specifies whether playback is paused.
|
|
|
*/
|
|
|
readonly paused: boolean;
|
|
|
/**
|
|
|
* Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource.
|
|
|
*/
|
|
|
playbackRate: number;
|
|
|
/**
|
|
|
* Gets TimeRanges for the current media resource that has been played.
|
|
|
*/
|
|
|
readonly played: TimeRanges;
|
|
|
/**
|
|
|
* Gets or sets the current playback position, in seconds.
|
|
|
*/
|
|
|
preload: string;
|
|
|
readonly readyState: number;
|
|
|
/**
|
|
|
* Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
|
|
|
*/
|
|
|
readonly seekable: TimeRanges;
|
|
|
/**
|
|
|
* Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.
|
|
|
*/
|
|
|
readonly seeking: boolean;
|
|
|
/**
|
|
|
* The address or URL of the a media resource that is to be considered.
|
|
|
*/
|
|
|
src: string;
|
|
|
srcObject: MediaStream | MediaSource | Blob | null;
|
|
|
readonly textTracks: TextTrackList;
|
|
|
readonly videoTracks: VideoTrackList;
|
|
|
/**
|
|
|
* Gets or sets the volume level for audio portions of the media element.
|
|
|
*/
|
|
|
volume: number;
|
|
|
addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;
|
|
|
/**
|
|
|
* Returns a string that specifies whether the client can play a given media resource type.
|
|
|
*/
|
|
|
canPlayType(type: string): CanPlayTypeResult;
|
|
|
/**
|
|
|
* Resets the audio or video object and loads a new media resource.
|
|
|
*/
|
|
|
load(): void;
|
|
|
/**
|
|
|
* Clears all effects from the media pipeline.
|
|
|
*/
|
|
|
msClearEffects(): void;
|
|
|
msGetAsCastingSource(): any;
|
|
|
/**
|
|
|
* Inserts the specified audio effect into media pipeline.
|
|
|
*/
|
|
|
msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;
|
|
|
/** @deprecated */
|
|
|
msSetMediaKeys(mediaKeys: MSMediaKeys): void;
|
|
|
/**
|
|
|
* Specifies the media protection manager for a given media pipeline.
|
|
|
*/
|
|
|
msSetMediaProtectionManager(mediaProtectionManager?: any): void;
|
|
|
/**
|
|
|
* Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not.
|
|
|
*/
|
|
|
pause(): void;
|
|
|
/**
|
|
|
* Loads and starts playback of a media resource.
|
|
|
*/
|
|
|
play(): Promise<void>;
|
|
|
setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
|
|
|
readonly HAVE_CURRENT_DATA: number;
|
|
|
readonly HAVE_ENOUGH_DATA: number;
|
|
|
readonly HAVE_FUTURE_DATA: number;
|
|
|
readonly HAVE_METADATA: number;
|
|
|
readonly HAVE_NOTHING: number;
|
|
|
readonly NETWORK_EMPTY: number;
|
|
|
readonly NETWORK_IDLE: number;
|
|
|
readonly NETWORK_LOADING: number;
|
|
|
readonly NETWORK_NO_SOURCE: number;
|
|
|
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLMediaElement: {
|
|
|
prototype: HTMLMediaElement;
|
|
|
new(): HTMLMediaElement;
|
|
|
readonly HAVE_CURRENT_DATA: number;
|
|
|
readonly HAVE_ENOUGH_DATA: number;
|
|
|
readonly HAVE_FUTURE_DATA: number;
|
|
|
readonly HAVE_METADATA: number;
|
|
|
readonly HAVE_NOTHING: number;
|
|
|
readonly NETWORK_EMPTY: number;
|
|
|
readonly NETWORK_IDLE: number;
|
|
|
readonly NETWORK_LOADING: number;
|
|
|
readonly NETWORK_NO_SOURCE: number;
|
|
|
};
|
|
|
|
|
|
interface HTMLMenuElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
compact: boolean;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLMenuElement: {
|
|
|
prototype: HTMLMenuElement;
|
|
|
new(): HTMLMenuElement;
|
|
|
};
|
|
|
|
|
|
/** Contains descriptive metadata about a document. It\xA0inherits all of the properties and methods described in the HTMLElement interface. */
|
|
|
interface HTMLMetaElement extends HTMLElement {
|
|
|
/**
|
|
|
* Gets or sets meta-information to associate with httpEquiv or name.
|
|
|
*/
|
|
|
content: string;
|
|
|
/**
|
|
|
* Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.
|
|
|
*/
|
|
|
httpEquiv: string;
|
|
|
/**
|
|
|
* Sets or retrieves the value specified in the content attribute of the meta object.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
scheme: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLMetaElement: {
|
|
|
prototype: HTMLMetaElement;
|
|
|
new(): HTMLMetaElement;
|
|
|
};
|
|
|
|
|
|
/** The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. */
|
|
|
interface HTMLMeterElement extends HTMLElement {
|
|
|
high: number;
|
|
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
|
low: number;
|
|
|
max: number;
|
|
|
min: number;
|
|
|
optimum: number;
|
|
|
value: number;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLMeterElement: {
|
|
|
prototype: HTMLMeterElement;
|
|
|
new(): HTMLMeterElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. */
|
|
|
interface HTMLModElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves reference information about the object.
|
|
|
*/
|
|
|
cite: string;
|
|
|
/**
|
|
|
* Sets or retrieves the date and time of a modification to the object.
|
|
|
*/
|
|
|
dateTime: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLModElement: {
|
|
|
prototype: HTMLModElement;
|
|
|
new(): HTMLModElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */
|
|
|
interface HTMLOListElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
compact: boolean;
|
|
|
reversed: boolean;
|
|
|
/**
|
|
|
* The starting number.
|
|
|
*/
|
|
|
start: number;
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLOListElement: {
|
|
|
prototype: HTMLOListElement;
|
|
|
new(): HTMLOListElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. */
|
|
|
interface HTMLObjectElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
/**
|
|
|
* Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
archive: string;
|
|
|
/** @deprecated */
|
|
|
border: string;
|
|
|
/**
|
|
|
* Sets or retrieves the URL of the file containing the compiled Java class.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
code: string;
|
|
|
/**
|
|
|
* Sets or retrieves the URL of the component.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
codeBase: string;
|
|
|
/**
|
|
|
* Sets or retrieves the Internet media type for the code associated with the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
codeType: string;
|
|
|
/**
|
|
|
* Retrieves the document object of the page or frame.
|
|
|
*/
|
|
|
readonly contentDocument: Document | null;
|
|
|
readonly contentWindow: WindowProxy | null;
|
|
|
/**
|
|
|
* Sets or retrieves the URL that references the data of the object.
|
|
|
*/
|
|
|
data: string;
|
|
|
/** @deprecated */
|
|
|
declare: boolean;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
/**
|
|
|
* Sets or retrieves the height of the object.
|
|
|
*/
|
|
|
height: string;
|
|
|
/** @deprecated */
|
|
|
hspace: number;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Sets or retrieves a message to be displayed while an object is loading.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
standby: string;
|
|
|
/**
|
|
|
* Sets or retrieves the MIME type of the object.
|
|
|
*/
|
|
|
type: string;
|
|
|
/**
|
|
|
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
|
|
*/
|
|
|
useMap: string;
|
|
|
/**
|
|
|
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
|
|
|
*/
|
|
|
readonly validationMessage: string;
|
|
|
/**
|
|
|
* Returns a ValidityState object that represents the validity states of an element.
|
|
|
*/
|
|
|
readonly validity: ValidityState;
|
|
|
/** @deprecated */
|
|
|
vspace: number;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
*/
|
|
|
width: string;
|
|
|
/**
|
|
|
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
|
*/
|
|
|
readonly willValidate: boolean;
|
|
|
/**
|
|
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
|
*/
|
|
|
checkValidity(): boolean;
|
|
|
getSVGDocument(): Document | null;
|
|
|
reportValidity(): boolean;
|
|
|
/**
|
|
|
* Sets a custom error message that is displayed when a form is submitted.
|
|
|
* @param error Sets a custom error message that is displayed when a form is submitted.
|
|
|
*/
|
|
|
setCustomValidity(error: string): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLObjectElement: {
|
|
|
prototype: HTMLObjectElement;
|
|
|
new(): HTMLObjectElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. */
|
|
|
interface HTMLOptGroupElement extends HTMLElement {
|
|
|
disabled: boolean;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
/**
|
|
|
* Sets or retrieves a value that you can use to implement your own label functionality for the object.
|
|
|
*/
|
|
|
label: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLOptGroupElement: {
|
|
|
prototype: HTMLOptGroupElement;
|
|
|
new(): HTMLOptGroupElement;
|
|
|
};
|
|
|
|
|
|
/** <option> elements and inherits all classes and methods of the HTMLElement interface. */
|
|
|
interface HTMLOptionElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves the status of an option.
|
|
|
*/
|
|
|
defaultSelected: boolean;
|
|
|
disabled: boolean;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
/**
|
|
|
* Sets or retrieves the ordinal position of an option in a list box.
|
|
|
*/
|
|
|
readonly index: number;
|
|
|
/**
|
|
|
* Sets or retrieves a value that you can use to implement your own label functionality for the object.
|
|
|
*/
|
|
|
label: string;
|
|
|
/**
|
|
|
* Sets or retrieves whether the option in the list box is the default item.
|
|
|
*/
|
|
|
selected: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the text string specified by the option tag.
|
|
|
*/
|
|
|
text: string;
|
|
|
/**
|
|
|
* Sets or retrieves the value which is returned to the server when the form control is submitted.
|
|
|
*/
|
|
|
value: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLOptionElement: {
|
|
|
prototype: HTMLOptionElement;
|
|
|
new(): HTMLOptionElement;
|
|
|
};
|
|
|
|
|
|
/** HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select. */
|
|
|
interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
|
|
|
/**
|
|
|
* Returns the number of elements in the collection.
|
|
|
*
|
|
|
* When set to a smaller number, truncates the number of option elements in the corresponding container.
|
|
|
*
|
|
|
* When set to a greater number, adds new blank option elements to that container.
|
|
|
*/
|
|
|
length: number;
|
|
|
/**
|
|
|
* Returns the index of the first selected item, if any, or \u22121 if there is no selected item.
|
|
|
*
|
|
|
* Can be set, to change the selection.
|
|
|
*/
|
|
|
selectedIndex: number;
|
|
|
/**
|
|
|
* Inserts element before the node given by before.
|
|
|
*
|
|
|
* The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element.
|
|
|
*
|
|
|
* If before is omitted, null, or a number out of range, then element will be added at the end of the list.
|
|
|
*
|
|
|
* This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.
|
|
|
*/
|
|
|
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
|
|
|
/**
|
|
|
* Removes the item with index index from the collection.
|
|
|
*/
|
|
|
remove(index: number): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLOptionsCollection: {
|
|
|
prototype: HTMLOptionsCollection;
|
|
|
new(): HTMLOptionsCollection;
|
|
|
};
|
|
|
|
|
|
interface HTMLOrSVGElement {
|
|
|
readonly dataset: DOMStringMap;
|
|
|
nonce?: string;
|
|
|
tabIndex: number;
|
|
|
blur(): void;
|
|
|
focus(options?: FocusOptions): void;
|
|
|
}
|
|
|
|
|
|
/** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */
|
|
|
interface HTMLOutputElement extends HTMLElement {
|
|
|
defaultValue: string;
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
readonly htmlFor: DOMTokenList;
|
|
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
|
name: string;
|
|
|
readonly type: string;
|
|
|
readonly validationMessage: string;
|
|
|
readonly validity: ValidityState;
|
|
|
value: string;
|
|
|
readonly willValidate: boolean;
|
|
|
checkValidity(): boolean;
|
|
|
reportValidity(): boolean;
|
|
|
setCustomValidity(error: string): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLOutputElement: {
|
|
|
prototype: HTMLOutputElement;
|
|
|
new(): HTMLOutputElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */
|
|
|
interface HTMLParagraphElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLParagraphElement: {
|
|
|
prototype: HTMLParagraphElement;
|
|
|
new(): HTMLParagraphElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element. */
|
|
|
interface HTMLParamElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves the name of an input parameter for an element.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Sets or retrieves the content type of the resource designated by the value attribute.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
type: string;
|
|
|
/**
|
|
|
* Sets or retrieves the value of an input parameter for an element.
|
|
|
*/
|
|
|
value: string;
|
|
|
/**
|
|
|
* Sets or retrieves the data type of the value attribute.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
valueType: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLParamElement: {
|
|
|
prototype: HTMLParamElement;
|
|
|
new(): HTMLParamElement;
|
|
|
};
|
|
|
|
|
|
/** A <picture> HTML element. It doesn't implement specific properties or methods. */
|
|
|
interface HTMLPictureElement extends HTMLElement {
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLPictureElement: {
|
|
|
prototype: HTMLPictureElement;
|
|
|
new(): HTMLPictureElement;
|
|
|
};
|
|
|
|
|
|
/** Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>). */
|
|
|
interface HTMLPreElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or gets a value that you can use to implement your own width functionality for the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
width: number;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLPreElement: {
|
|
|
prototype: HTMLPreElement;
|
|
|
new(): HTMLPreElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements. */
|
|
|
interface HTMLProgressElement extends HTMLElement {
|
|
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
|
/**
|
|
|
* Defines the maximum, or "done" value for a progress element.
|
|
|
*/
|
|
|
max: number;
|
|
|
/**
|
|
|
* Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar).
|
|
|
*/
|
|
|
readonly position: number;
|
|
|
/**
|
|
|
* Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value.
|
|
|
*/
|
|
|
value: number;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLProgressElement: {
|
|
|
prototype: HTMLProgressElement;
|
|
|
new(): HTMLProgressElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element. */
|
|
|
interface HTMLQuoteElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves reference information about the object.
|
|
|
*/
|
|
|
cite: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLQuoteElement: {
|
|
|
prototype: HTMLQuoteElement;
|
|
|
new(): HTMLQuoteElement;
|
|
|
};
|
|
|
|
|
|
/** HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface). */
|
|
|
interface HTMLScriptElement extends HTMLElement {
|
|
|
async: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the character set used to encode the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
charset: string;
|
|
|
crossOrigin: string | null;
|
|
|
/**
|
|
|
* Sets or retrieves the status of the script.
|
|
|
*/
|
|
|
defer: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the event for which the script is written.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
event: string;
|
|
|
/**
|
|
|
* Sets or retrieves the object that is bound to the event script.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
htmlFor: string;
|
|
|
integrity: string;
|
|
|
noModule: boolean;
|
|
|
referrerPolicy: string;
|
|
|
/**
|
|
|
* Retrieves the URL to an external file that contains the source code or data.
|
|
|
*/
|
|
|
src: string;
|
|
|
/**
|
|
|
* Retrieves or sets the text of the object as a string.
|
|
|
*/
|
|
|
text: string;
|
|
|
/**
|
|
|
* Sets or retrieves the MIME type for the associated scripting engine.
|
|
|
*/
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLScriptElement: {
|
|
|
prototype: HTMLScriptElement;
|
|
|
new(): HTMLScriptElement;
|
|
|
};
|
|
|
|
|
|
/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */
|
|
|
interface HTMLSelectElement extends HTMLElement {
|
|
|
autocomplete: string;
|
|
|
/**
|
|
|
* Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
|
|
|
*/
|
|
|
autofocus: boolean;
|
|
|
disabled: boolean;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
|
/**
|
|
|
* Sets or retrieves the number of objects in a collection.
|
|
|
*/
|
|
|
length: number;
|
|
|
/**
|
|
|
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
|
|
|
*/
|
|
|
multiple: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
*/
|
|
|
name: string;
|
|
|
readonly options: HTMLOptionsCollection;
|
|
|
/**
|
|
|
* When present, marks an element that can't be submitted without a value.
|
|
|
*/
|
|
|
required: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the index of the selected option in a select object.
|
|
|
*/
|
|
|
selectedIndex: number;
|
|
|
readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
|
|
|
/**
|
|
|
* Sets or retrieves the number of rows in the list box.
|
|
|
*/
|
|
|
size: number;
|
|
|
/**
|
|
|
* Retrieves the type of select control based on the value of the MULTIPLE attribute.
|
|
|
*/
|
|
|
readonly type: string;
|
|
|
/**
|
|
|
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
|
|
|
*/
|
|
|
readonly validationMessage: string;
|
|
|
/**
|
|
|
* Returns a ValidityState object that represents the validity states of an element.
|
|
|
*/
|
|
|
readonly validity: ValidityState;
|
|
|
/**
|
|
|
* Sets or retrieves the value which is returned to the server when the form control is submitted.
|
|
|
*/
|
|
|
value: string;
|
|
|
/**
|
|
|
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
|
*/
|
|
|
readonly willValidate: boolean;
|
|
|
/**
|
|
|
* Adds an element to the areas, controlRange, or options collection.
|
|
|
* @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.
|
|
|
* @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.
|
|
|
*/
|
|
|
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
|
|
|
/**
|
|
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
|
*/
|
|
|
checkValidity(): boolean;
|
|
|
/**
|
|
|
* Retrieves a select object or an object from an options collection.
|
|
|
* @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
|
|
|
* @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
|
|
|
*/
|
|
|
item(index: number): Element | null;
|
|
|
/**
|
|
|
* Retrieves a select object or an object from an options collection.
|
|
|
* @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.
|
|
|
*/
|
|
|
namedItem(name: string): HTMLOptionElement | null;
|
|
|
/**
|
|
|
* Removes an element from the collection.
|
|
|
* @param index Number that specifies the zero-based index of the element to remove from the collection.
|
|
|
*/
|
|
|
remove(): void;
|
|
|
remove(index: number): void;
|
|
|
reportValidity(): boolean;
|
|
|
/**
|
|
|
* Sets a custom error message that is displayed when a form is submitted.
|
|
|
* @param error Sets a custom error message that is displayed when a form is submitted.
|
|
|
*/
|
|
|
setCustomValidity(error: string): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
[name: number]: HTMLOptionElement | HTMLOptGroupElement;
|
|
|
}
|
|
|
|
|
|
declare var HTMLSelectElement: {
|
|
|
prototype: HTMLSelectElement;
|
|
|
new(): HTMLSelectElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLSlotElement extends HTMLElement {
|
|
|
name: string;
|
|
|
assignedElements(options?: AssignedNodesOptions): Element[];
|
|
|
assignedNodes(options?: AssignedNodesOptions): Node[];
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLSlotElement: {
|
|
|
prototype: HTMLSlotElement;
|
|
|
new(): HTMLSlotElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */
|
|
|
interface HTMLSourceElement extends HTMLElement {
|
|
|
/**
|
|
|
* Gets or sets the intended media type of the media source.
|
|
|
*/
|
|
|
media: string;
|
|
|
sizes: string;
|
|
|
/**
|
|
|
* The address or URL of the a media resource that is to be considered.
|
|
|
*/
|
|
|
src: string;
|
|
|
srcset: string;
|
|
|
/**
|
|
|
* Gets or sets the MIME type of a media resource.
|
|
|
*/
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLSourceElement: {
|
|
|
prototype: HTMLSourceElement;
|
|
|
new(): HTMLSourceElement;
|
|
|
};
|
|
|
|
|
|
/** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
|
|
|
interface HTMLSpanElement extends HTMLElement {
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLSpanElement: {
|
|
|
prototype: HTMLSpanElement;
|
|
|
new(): HTMLSpanElement;
|
|
|
};
|
|
|
|
|
|
/** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */
|
|
|
interface HTMLStyleElement extends HTMLElement, LinkStyle {
|
|
|
/**
|
|
|
* Sets or retrieves the media type.
|
|
|
*/
|
|
|
media: string;
|
|
|
/**
|
|
|
* Retrieves the CSS language in which the style sheet is written.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLStyleElement: {
|
|
|
prototype: HTMLStyleElement;
|
|
|
new(): HTMLStyleElement;
|
|
|
};
|
|
|
|
|
|
/** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */
|
|
|
interface HTMLTableCaptionElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves the alignment of the caption or legend.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTableCaptionElement: {
|
|
|
prototype: HTMLTableCaptionElement;
|
|
|
new(): HTMLTableCaptionElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document. */
|
|
|
interface HTMLTableCellElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves abbreviated text for the object.
|
|
|
*/
|
|
|
abbr: string;
|
|
|
/**
|
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
/**
|
|
|
* Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
axis: string;
|
|
|
/** @deprecated */
|
|
|
bgColor: string;
|
|
|
/**
|
|
|
* Retrieves the position of the object in the cells collection of a row.
|
|
|
*/
|
|
|
readonly cellIndex: number;
|
|
|
/** @deprecated */
|
|
|
ch: string;
|
|
|
/** @deprecated */
|
|
|
chOff: string;
|
|
|
/**
|
|
|
* Sets or retrieves the number columns in the table that the object should span.
|
|
|
*/
|
|
|
colSpan: number;
|
|
|
/**
|
|
|
* Sets or retrieves a list of header cells that provide information for the object.
|
|
|
*/
|
|
|
headers: string;
|
|
|
/**
|
|
|
* Sets or retrieves the height of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
height: string;
|
|
|
/**
|
|
|
* Sets or retrieves whether the browser automatically performs wordwrap.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
noWrap: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves how many rows in a table the cell should span.
|
|
|
*/
|
|
|
rowSpan: number;
|
|
|
/**
|
|
|
* Sets or retrieves the group of cells in a table to which the object's information applies.
|
|
|
*/
|
|
|
scope: string;
|
|
|
/** @deprecated */
|
|
|
vAlign: string;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
width: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTableCellElement: {
|
|
|
prototype: HTMLTableCellElement;
|
|
|
new(): HTMLTableCellElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */
|
|
|
interface HTMLTableColElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves the alignment of the object relative to the display or table.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
/** @deprecated */
|
|
|
ch: string;
|
|
|
/** @deprecated */
|
|
|
chOff: string;
|
|
|
/**
|
|
|
* Sets or retrieves the number of columns in the group.
|
|
|
*/
|
|
|
span: number;
|
|
|
/** @deprecated */
|
|
|
vAlign: string;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
width: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTableColElement: {
|
|
|
prototype: HTMLTableColElement;
|
|
|
new(): HTMLTableColElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLTableDataCellElement extends HTMLTableCellElement {
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTableDataCellElement: {
|
|
|
prototype: HTMLTableDataCellElement;
|
|
|
new(): HTMLTableDataCellElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. */
|
|
|
interface HTMLTableElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves a value that indicates the table alignment.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
/** @deprecated */
|
|
|
bgColor: string;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the border to draw around the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
border: string;
|
|
|
/**
|
|
|
* Retrieves the caption object of a table.
|
|
|
*/
|
|
|
caption: HTMLTableCaptionElement | null;
|
|
|
/**
|
|
|
* Sets or retrieves the amount of space between the border of the cell and the content of the cell.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
cellPadding: string;
|
|
|
/**
|
|
|
* Sets or retrieves the amount of space between cells in a table.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
cellSpacing: string;
|
|
|
/**
|
|
|
* Sets or retrieves the way the border frame around the table is displayed.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
frame: string;
|
|
|
/**
|
|
|
* Sets or retrieves the number of horizontal rows contained in the object.
|
|
|
*/
|
|
|
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
|
|
|
/**
|
|
|
* Sets or retrieves which dividing lines (inner borders) are displayed.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
rules: string;
|
|
|
/**
|
|
|
* Sets or retrieves a description and/or structure of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
summary: string;
|
|
|
/**
|
|
|
* Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.
|
|
|
*/
|
|
|
readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
|
|
|
/**
|
|
|
* Retrieves the tFoot object of the table.
|
|
|
*/
|
|
|
tFoot: HTMLTableSectionElement | null;
|
|
|
/**
|
|
|
* Retrieves the tHead object of the table.
|
|
|
*/
|
|
|
tHead: HTMLTableSectionElement | null;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
width: string;
|
|
|
/**
|
|
|
* Creates an empty caption element in the table.
|
|
|
*/
|
|
|
createCaption(): HTMLTableCaptionElement;
|
|
|
/**
|
|
|
* Creates an empty tBody element in the table.
|
|
|
*/
|
|
|
createTBody(): HTMLTableSectionElement;
|
|
|
/**
|
|
|
* Creates an empty tFoot element in the table.
|
|
|
*/
|
|
|
createTFoot(): HTMLTableSectionElement;
|
|
|
/**
|
|
|
* Returns the tHead element object if successful, or null otherwise.
|
|
|
*/
|
|
|
createTHead(): HTMLTableSectionElement;
|
|
|
/**
|
|
|
* Deletes the caption element and its contents from the table.
|
|
|
*/
|
|
|
deleteCaption(): void;
|
|
|
/**
|
|
|
* Removes the specified row (tr) from the element and from the rows collection.
|
|
|
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
|
|
|
*/
|
|
|
deleteRow(index: number): void;
|
|
|
/**
|
|
|
* Deletes the tFoot element and its contents from the table.
|
|
|
*/
|
|
|
deleteTFoot(): void;
|
|
|
/**
|
|
|
* Deletes the tHead element and its contents from the table.
|
|
|
*/
|
|
|
deleteTHead(): void;
|
|
|
/**
|
|
|
* Creates a new row (tr) in the table, and adds the row to the rows collection.
|
|
|
* @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
|
|
|
*/
|
|
|
insertRow(index?: number): HTMLTableRowElement;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTableElement: {
|
|
|
prototype: HTMLTableElement;
|
|
|
new(): HTMLTableElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
|
|
|
scope: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTableHeaderCellElement: {
|
|
|
prototype: HTMLTableHeaderCellElement;
|
|
|
new(): HTMLTableHeaderCellElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. */
|
|
|
interface HTMLTableRowElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
/** @deprecated */
|
|
|
bgColor: string;
|
|
|
/**
|
|
|
* Retrieves a collection of all cells in the table row.
|
|
|
*/
|
|
|
readonly cells: HTMLCollectionOf<HTMLTableDataCellElement | HTMLTableHeaderCellElement>;
|
|
|
/** @deprecated */
|
|
|
ch: string;
|
|
|
/** @deprecated */
|
|
|
chOff: string;
|
|
|
/**
|
|
|
* Retrieves the position of the object in the rows collection for the table.
|
|
|
*/
|
|
|
readonly rowIndex: number;
|
|
|
/**
|
|
|
* Retrieves the position of the object in the collection.
|
|
|
*/
|
|
|
readonly sectionRowIndex: number;
|
|
|
/** @deprecated */
|
|
|
vAlign: string;
|
|
|
/**
|
|
|
* Removes the specified cell from the table row, as well as from the cells collection.
|
|
|
* @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.
|
|
|
*/
|
|
|
deleteCell(index: number): void;
|
|
|
/**
|
|
|
* Creates a new cell in the table row, and adds the cell to the cells collection.
|
|
|
* @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.
|
|
|
*/
|
|
|
insertCell(index?: number): HTMLTableDataCellElement;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTableRowElement: {
|
|
|
prototype: HTMLTableRowElement;
|
|
|
new(): HTMLTableRowElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table. */
|
|
|
interface HTMLTableSectionElement extends HTMLElement {
|
|
|
/**
|
|
|
* Sets or retrieves a value that indicates the table alignment.
|
|
|
*/
|
|
|
/** @deprecated */
|
|
|
align: string;
|
|
|
/** @deprecated */
|
|
|
ch: string;
|
|
|
/** @deprecated */
|
|
|
chOff: string;
|
|
|
/**
|
|
|
* Sets or retrieves the number of horizontal rows contained in the object.
|
|
|
*/
|
|
|
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
|
|
|
/** @deprecated */
|
|
|
vAlign: string;
|
|
|
/**
|
|
|
* Removes the specified row (tr) from the element and from the rows collection.
|
|
|
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
|
|
|
*/
|
|
|
deleteRow(index: number): void;
|
|
|
/**
|
|
|
* Creates a new row (tr) in the table, and adds the row to the rows collection.
|
|
|
* @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
|
|
|
*/
|
|
|
insertRow(index?: number): HTMLTableRowElement;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTableSectionElement: {
|
|
|
prototype: HTMLTableSectionElement;
|
|
|
new(): HTMLTableSectionElement;
|
|
|
};
|
|
|
|
|
|
/** Enables access to the contents of an HTML <template> element. */
|
|
|
interface HTMLTemplateElement extends HTMLElement {
|
|
|
readonly content: DocumentFragment;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTemplateElement: {
|
|
|
prototype: HTMLTemplateElement;
|
|
|
new(): HTMLTemplateElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */
|
|
|
interface HTMLTextAreaElement extends HTMLElement {
|
|
|
autocomplete: string;
|
|
|
/**
|
|
|
* Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
|
|
|
*/
|
|
|
autofocus: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the width of the object.
|
|
|
*/
|
|
|
cols: number;
|
|
|
/**
|
|
|
* Sets or retrieves the initial contents of the object.
|
|
|
*/
|
|
|
defaultValue: string;
|
|
|
dirName: string;
|
|
|
disabled: boolean;
|
|
|
/**
|
|
|
* Retrieves a reference to the form that the object is embedded in.
|
|
|
*/
|
|
|
readonly form: HTMLFormElement | null;
|
|
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
|
/**
|
|
|
* Sets or retrieves the maximum number of characters that the user can enter in a text control.
|
|
|
*/
|
|
|
maxLength: number;
|
|
|
minLength: number;
|
|
|
/**
|
|
|
* Sets or retrieves the name of the object.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
|
|
|
*/
|
|
|
placeholder: string;
|
|
|
/**
|
|
|
* Sets or retrieves the value indicated whether the content of the object is read-only.
|
|
|
*/
|
|
|
readOnly: boolean;
|
|
|
/**
|
|
|
* When present, marks an element that can't be submitted without a value.
|
|
|
*/
|
|
|
required: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves the number of horizontal rows contained in the object.
|
|
|
*/
|
|
|
rows: number;
|
|
|
selectionDirection: string;
|
|
|
/**
|
|
|
* Gets or sets the end position or offset of a text selection.
|
|
|
*/
|
|
|
selectionEnd: number;
|
|
|
/**
|
|
|
* Gets or sets the starting position or offset of a text selection.
|
|
|
*/
|
|
|
selectionStart: number;
|
|
|
readonly textLength: number;
|
|
|
/**
|
|
|
* Retrieves the type of control.
|
|
|
*/
|
|
|
readonly type: string;
|
|
|
/**
|
|
|
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
|
|
|
*/
|
|
|
readonly validationMessage: string;
|
|
|
/**
|
|
|
* Returns a ValidityState object that represents the validity states of an element.
|
|
|
*/
|
|
|
readonly validity: ValidityState;
|
|
|
/**
|
|
|
* Retrieves or sets the text in the entry field of the textArea element.
|
|
|
*/
|
|
|
value: string;
|
|
|
/**
|
|
|
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
|
*/
|
|
|
readonly willValidate: boolean;
|
|
|
/**
|
|
|
* Sets or retrieves how to handle wordwrapping in the object.
|
|
|
*/
|
|
|
wrap: string;
|
|
|
/**
|
|
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
|
*/
|
|
|
checkValidity(): boolean;
|
|
|
reportValidity(): boolean;
|
|
|
/**
|
|
|
* Highlights the input area of a form element.
|
|
|
*/
|
|
|
select(): void;
|
|
|
/**
|
|
|
* Sets a custom error message that is displayed when a form is submitted.
|
|
|
* @param error Sets a custom error message that is displayed when a form is submitted.
|
|
|
*/
|
|
|
setCustomValidity(error: string): void;
|
|
|
setRangeText(replacement: string): void;
|
|
|
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
|
|
|
/**
|
|
|
* Sets the start and end positions of a selection in a text field.
|
|
|
* @param start The offset into the text field for the start of the selection.
|
|
|
* @param end The offset into the text field for the end of the selection.
|
|
|
* @param direction The direction in which the selection is performed.
|
|
|
*/
|
|
|
setSelectionRange(start: number, end: number, direction?: "forward" | "backward" | "none"): void;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTextAreaElement: {
|
|
|
prototype: HTMLTextAreaElement;
|
|
|
new(): HTMLTextAreaElement;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. */
|
|
|
interface HTMLTimeElement extends HTMLElement {
|
|
|
dateTime: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTimeElement: {
|
|
|
prototype: HTMLTimeElement;
|
|
|
new(): HTMLTimeElement;
|
|
|
};
|
|
|
|
|
|
/** Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. */
|
|
|
interface HTMLTitleElement extends HTMLElement {
|
|
|
/**
|
|
|
* Retrieves or sets the text of the object as a string.
|
|
|
*/
|
|
|
text: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTitleElement: {
|
|
|
prototype: HTMLTitleElement;
|
|
|
new(): HTMLTitleElement;
|
|
|
};
|
|
|
|
|
|
/** The HTMLTrackElement */
|
|
|
interface HTMLTrackElement extends HTMLElement {
|
|
|
default: boolean;
|
|
|
kind: string;
|
|
|
label: string;
|
|
|
readonly readyState: number;
|
|
|
src: string;
|
|
|
srclang: string;
|
|
|
readonly track: TextTrack;
|
|
|
readonly ERROR: number;
|
|
|
readonly LOADED: number;
|
|
|
readonly LOADING: number;
|
|
|
readonly NONE: number;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLTrackElement: {
|
|
|
prototype: HTMLTrackElement;
|
|
|
new(): HTMLTrackElement;
|
|
|
readonly ERROR: number;
|
|
|
readonly LOADED: number;
|
|
|
readonly LOADING: number;
|
|
|
readonly NONE: number;
|
|
|
};
|
|
|
|
|
|
/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */
|
|
|
interface HTMLUListElement extends HTMLElement {
|
|
|
/** @deprecated */
|
|
|
compact: boolean;
|
|
|
/** @deprecated */
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLUListElement: {
|
|
|
prototype: HTMLUListElement;
|
|
|
new(): HTMLUListElement;
|
|
|
};
|
|
|
|
|
|
/** An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
|
|
|
interface HTMLUnknownElement extends HTMLElement {
|
|
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLUnknownElement: {
|
|
|
prototype: HTMLUnknownElement;
|
|
|
new(): HTMLUnknownElement;
|
|
|
};
|
|
|
|
|
|
interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
|
|
|
"MSVideoFormatChanged": Event;
|
|
|
"MSVideoFrameStepCompleted": Event;
|
|
|
"MSVideoOptimalLayoutChanged": Event;
|
|
|
}
|
|
|
|
|
|
/** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */
|
|
|
interface HTMLVideoElement extends HTMLMediaElement {
|
|
|
/**
|
|
|
* Gets or sets the height of the video element.
|
|
|
*/
|
|
|
height: number;
|
|
|
msHorizontalMirror: boolean;
|
|
|
readonly msIsLayoutOptimalForPlayback: boolean;
|
|
|
readonly msIsStereo3D: boolean;
|
|
|
msStereo3DPackingMode: string;
|
|
|
msStereo3DRenderMode: string;
|
|
|
msZoom: boolean;
|
|
|
onMSVideoFormatChanged: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
|
onMSVideoFrameStepCompleted: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
|
onMSVideoOptimalLayoutChanged: ((this: HTMLVideoElement, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available.
|
|
|
*/
|
|
|
poster: string;
|
|
|
/**
|
|
|
* Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.
|
|
|
*/
|
|
|
readonly videoHeight: number;
|
|
|
/**
|
|
|
* Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.
|
|
|
*/
|
|
|
readonly videoWidth: number;
|
|
|
readonly webkitDisplayingFullscreen: boolean;
|
|
|
readonly webkitSupportsFullscreen: boolean;
|
|
|
/**
|
|
|
* Gets or sets the width of the video element.
|
|
|
*/
|
|
|
width: number;
|
|
|
getVideoPlaybackQuality(): VideoPlaybackQuality;
|
|
|
msFrameStep(forward: boolean): void;
|
|
|
msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;
|
|
|
msSetVideoRectangle(left: number, top: number, right: number, bottom: number): void;
|
|
|
webkitEnterFullScreen(): void;
|
|
|
webkitEnterFullscreen(): void;
|
|
|
webkitExitFullScreen(): void;
|
|
|
webkitExitFullscreen(): void;
|
|
|
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var HTMLVideoElement: {
|
|
|
prototype: HTMLVideoElement;
|
|
|
new(): HTMLVideoElement;
|
|
|
};
|
|
|
|
|
|
/** Events that fire when the fragment identifier of the URL has changed. */
|
|
|
interface HashChangeEvent extends Event {
|
|
|
readonly newURL: string;
|
|
|
readonly oldURL: string;
|
|
|
}
|
|
|
|
|
|
declare var HashChangeEvent: {
|
|
|
prototype: HashChangeEvent;
|
|
|
new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
|
|
|
};
|
|
|
|
|
|
/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence. */
|
|
|
interface Headers {
|
|
|
append(name: string, value: string): void;
|
|
|
delete(name: string): void;
|
|
|
get(name: string): string | null;
|
|
|
has(name: string): boolean;
|
|
|
set(name: string, value: string): void;
|
|
|
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var Headers: {
|
|
|
prototype: Headers;
|
|
|
new(init?: HeadersInit): Headers;
|
|
|
};
|
|
|
|
|
|
/** Allows\xA0manipulation of\xA0the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */
|
|
|
interface History {
|
|
|
readonly length: number;
|
|
|
scrollRestoration: ScrollRestoration;
|
|
|
readonly state: any;
|
|
|
back(): void;
|
|
|
forward(): void;
|
|
|
go(delta?: number): void;
|
|
|
pushState(data: any, title: string, url?: string | null): void;
|
|
|
replaceState(data: any, title: string, url?: string | null): void;
|
|
|
}
|
|
|
|
|
|
declare var History: {
|
|
|
prototype: History;
|
|
|
new(): History;
|
|
|
};
|
|
|
|
|
|
interface HkdfCtrParams extends Algorithm {
|
|
|
context: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
|
|
|
hash: string | Algorithm;
|
|
|
label: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
|
|
|
}
|
|
|
|
|
|
interface IDBArrayKey extends Array<IDBValidKey> {
|
|
|
}
|
|
|
|
|
|
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
|
|
|
interface IDBCursor {
|
|
|
/**
|
|
|
* Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.
|
|
|
*/
|
|
|
readonly direction: IDBCursorDirection;
|
|
|
/**
|
|
|
* Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
|
|
|
*/
|
|
|
readonly key: IDBValidKey;
|
|
|
/**
|
|
|
* Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
|
|
|
*/
|
|
|
readonly primaryKey: IDBValidKey;
|
|
|
/**
|
|
|
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
|
|
|
*/
|
|
|
readonly source: IDBObjectStore | IDBIndex;
|
|
|
/**
|
|
|
* Advances the cursor through the next count records in range.
|
|
|
*/
|
|
|
advance(count: number): void;
|
|
|
/**
|
|
|
* Advances the cursor to the next record in range.
|
|
|
*/
|
|
|
continue(key?: IDBValidKey): void;
|
|
|
/**
|
|
|
* Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.
|
|
|
*/
|
|
|
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
|
|
|
/**
|
|
|
* Delete the record pointed at by the cursor with a new value.
|
|
|
*
|
|
|
* If successful, request's result will be undefined.
|
|
|
*/
|
|
|
delete(): IDBRequest<undefined>;
|
|
|
/**
|
|
|
* Updated the record pointed at by the cursor with a new value.
|
|
|
*
|
|
|
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
|
|
|
*
|
|
|
* If successful, request's result will be the record's key.
|
|
|
*/
|
|
|
update(value: any): IDBRequest<IDBValidKey>;
|
|
|
}
|
|
|
|
|
|
declare var IDBCursor: {
|
|
|
prototype: IDBCursor;
|
|
|
new(): IDBCursor;
|
|
|
};
|
|
|
|
|
|
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */
|
|
|
interface IDBCursorWithValue extends IDBCursor {
|
|
|
/**
|
|
|
* Returns the cursor's current value.
|
|
|
*/
|
|
|
readonly value: any;
|
|
|
}
|
|
|
|
|
|
declare var IDBCursorWithValue: {
|
|
|
prototype: IDBCursorWithValue;
|
|
|
new(): IDBCursorWithValue;
|
|
|
};
|
|
|
|
|
|
interface IDBDatabaseEventMap {
|
|
|
"abort": Event;
|
|
|
"close": Event;
|
|
|
"error": Event;
|
|
|
"versionchange": IDBVersionChangeEvent;
|
|
|
}
|
|
|
|
|
|
/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */
|
|
|
interface IDBDatabase extends EventTarget {
|
|
|
/**
|
|
|
* Returns the name of the database.
|
|
|
*/
|
|
|
readonly name: string;
|
|
|
/**
|
|
|
* Returns a list of the names of object stores in the database.
|
|
|
*/
|
|
|
readonly objectStoreNames: DOMStringList;
|
|
|
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
|
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
|
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
|
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
|
|
|
/**
|
|
|
* Returns the version of the database.
|
|
|
*/
|
|
|
readonly version: number;
|
|
|
/**
|
|
|
* Closes the connection once all running transactions have finished.
|
|
|
*/
|
|
|
close(): void;
|
|
|
/**
|
|
|
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
|
|
|
*
|
|
|
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
|
*/
|
|
|
createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore;
|
|
|
/**
|
|
|
* Deletes the object store with the given name.
|
|
|
*
|
|
|
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
|
*/
|
|
|
deleteObjectStore(name: string): void;
|
|
|
/**
|
|
|
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
|
|
|
*/
|
|
|
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
|
|
|
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var IDBDatabase: {
|
|
|
prototype: IDBDatabase;
|
|
|
new(): IDBDatabase;
|
|
|
};
|
|
|
|
|
|
interface IDBEnvironment {
|
|
|
readonly indexedDB: IDBFactory;
|
|
|
}
|
|
|
|
|
|
/** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */
|
|
|
interface IDBFactory {
|
|
|
/**
|
|
|
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
|
|
|
*
|
|
|
* Throws a "DataError" DOMException if either input is not a valid key.
|
|
|
*/
|
|
|
cmp(first: any, second: any): number;
|
|
|
/**
|
|
|
* Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null.
|
|
|
*/
|
|
|
deleteDatabase(name: string): IDBOpenDBRequest;
|
|
|
/**
|
|
|
* Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection.
|
|
|
*/
|
|
|
open(name: string, version?: number): IDBOpenDBRequest;
|
|
|
}
|
|
|
|
|
|
declare var IDBFactory: {
|
|
|
prototype: IDBFactory;
|
|
|
new(): IDBFactory;
|
|
|
};
|
|
|
|
|
|
/** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */
|
|
|
interface IDBIndex {
|
|
|
readonly keyPath: string | string[];
|
|
|
readonly multiEntry: boolean;
|
|
|
/**
|
|
|
* Returns the name of the index.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Returns the IDBObjectStore the index belongs to.
|
|
|
*/
|
|
|
readonly objectStore: IDBObjectStore;
|
|
|
readonly unique: boolean;
|
|
|
/**
|
|
|
* Retrieves the number of records matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the count.
|
|
|
*/
|
|
|
count(key?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
|
|
|
/**
|
|
|
* Retrieves the value of the first record matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the value, or undefined if there was no matching record.
|
|
|
*/
|
|
|
get(key: IDBValidKey | IDBKeyRange): IDBRequest<any | undefined>;
|
|
|
/**
|
|
|
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
|
|
|
*
|
|
|
* If successful, request's result will be an Array of the values.
|
|
|
*/
|
|
|
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
|
|
|
/**
|
|
|
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
|
|
|
*
|
|
|
* If successful, request's result will be an Array of the keys.
|
|
|
*/
|
|
|
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
|
|
|
/**
|
|
|
* Retrieves the key of the first record matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the key, or undefined if there was no matching record.
|
|
|
*/
|
|
|
getKey(key: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
|
|
|
/**
|
|
|
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
|
|
|
*
|
|
|
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
|
|
|
*/
|
|
|
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
|
|
|
/**
|
|
|
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
|
|
|
*
|
|
|
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
|
|
|
*/
|
|
|
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
|
|
|
}
|
|
|
|
|
|
declare var IDBIndex: {
|
|
|
prototype: IDBIndex;
|
|
|
new(): IDBIndex;
|
|
|
};
|
|
|
|
|
|
/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */
|
|
|
interface IDBKeyRange {
|
|
|
/**
|
|
|
* Returns lower bound, or undefined if none.
|
|
|
*/
|
|
|
readonly lower: any;
|
|
|
/**
|
|
|
* Returns true if the lower open flag is set, and false otherwise.
|
|
|
*/
|
|
|
readonly lowerOpen: boolean;
|
|
|
/**
|
|
|
* Returns upper bound, or undefined if none.
|
|
|
*/
|
|
|
readonly upper: any;
|
|
|
/**
|
|
|
* Returns true if the upper open flag is set, and false otherwise.
|
|
|
*/
|
|
|
readonly upperOpen: boolean;
|
|
|
/**
|
|
|
* Returns true if key is included in the range, and false otherwise.
|
|
|
*/
|
|
|
includes(key: any): boolean;
|
|
|
}
|
|
|
|
|
|
declare var IDBKeyRange: {
|
|
|
prototype: IDBKeyRange;
|
|
|
new(): IDBKeyRange;
|
|
|
/**
|
|
|
* Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.
|
|
|
*/
|
|
|
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
|
|
|
/**
|
|
|
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
|
|
|
*/
|
|
|
lowerBound(lower: any, open?: boolean): IDBKeyRange;
|
|
|
/**
|
|
|
* Returns a new IDBKeyRange spanning only key.
|
|
|
*/
|
|
|
only(value: any): IDBKeyRange;
|
|
|
/**
|
|
|
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
|
|
|
*/
|
|
|
upperBound(upper: any, open?: boolean): IDBKeyRange;
|
|
|
};
|
|
|
|
|
|
/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.) */
|
|
|
interface IDBObjectStore {
|
|
|
/**
|
|
|
* Returns true if the store has a key generator, and false otherwise.
|
|
|
*/
|
|
|
readonly autoIncrement: boolean;
|
|
|
/**
|
|
|
* Returns a list of the names of indexes in the store.
|
|
|
*/
|
|
|
readonly indexNames: DOMStringList;
|
|
|
/**
|
|
|
* Returns the key path of the store, or null if none.
|
|
|
*/
|
|
|
readonly keyPath: string | string[];
|
|
|
/**
|
|
|
* Returns the name of the store.
|
|
|
*/
|
|
|
name: string;
|
|
|
/**
|
|
|
* Returns the associated transaction.
|
|
|
*/
|
|
|
readonly transaction: IDBTransaction;
|
|
|
/**
|
|
|
* Adds or updates a record in store with the given value and key.
|
|
|
*
|
|
|
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
|
|
|
*
|
|
|
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
|
|
|
*
|
|
|
* If successful, request's result will be the record's key.
|
|
|
*/
|
|
|
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
|
|
|
/**
|
|
|
* Deletes all records in store.
|
|
|
*
|
|
|
* If successful, request's result will be undefined.
|
|
|
*/
|
|
|
clear(): IDBRequest<undefined>;
|
|
|
/**
|
|
|
* Retrieves the number of records matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the count.
|
|
|
*/
|
|
|
count(key?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
|
|
|
/**
|
|
|
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
|
*/
|
|
|
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
|
|
|
/**
|
|
|
* Deletes records in store with the given key or in the given key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be undefined.
|
|
|
*/
|
|
|
delete(key: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
|
|
|
/**
|
|
|
* Deletes the index in store with the given name.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
|
*/
|
|
|
deleteIndex(name: string): void;
|
|
|
/**
|
|
|
* Retrieves the value of the first record matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the value, or undefined if there was no matching record.
|
|
|
*/
|
|
|
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any | undefined>;
|
|
|
/**
|
|
|
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
|
|
|
*
|
|
|
* If successful, request's result will be an Array of the values.
|
|
|
*/
|
|
|
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
|
|
|
/**
|
|
|
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
|
|
|
*
|
|
|
* If successful, request's result will be an Array of the keys.
|
|
|
*/
|
|
|
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
|
|
|
/**
|
|
|
* Retrieves the key of the first record matching the given key or key range in query.
|
|
|
*
|
|
|
* If successful, request's result will be the key, or undefined if there was no matching record.
|
|
|
*/
|
|
|
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
|
|
|
index(name: string): IDBIndex;
|
|
|
/**
|
|
|
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
|
|
|
*
|
|
|
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
|
|
|
*/
|
|
|
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
|
|
|
/**
|
|
|
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
|
|
|
*
|
|
|
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
|
|
|
*/
|
|
|
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
|
|
|
/**
|
|
|
* Adds or updates a record in store with the given value and key.
|
|
|
*
|
|
|
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
|
|
|
*
|
|
|
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
|
|
|
*
|
|
|
* If successful, request's result will be the record's key.
|
|
|
*/
|
|
|
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
|
|
|
}
|
|
|
|
|
|
declare var IDBObjectStore: {
|
|
|
prototype: IDBObjectStore;
|
|
|
new(): IDBObjectStore;
|
|
|
};
|
|
|
|
|
|
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
|
|
|
"blocked": Event;
|
|
|
"upgradeneeded": IDBVersionChangeEvent;
|
|
|
}
|
|
|
|
|
|
/** Also inherits methods from its parents IDBRequest and EventTarget. */
|
|
|
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
|
|
|
onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;
|
|
|
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
|
|
|
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var IDBOpenDBRequest: {
|
|
|
prototype: IDBOpenDBRequest;
|
|
|
new(): IDBOpenDBRequest;
|
|
|
};
|
|
|
|
|
|
interface IDBRequestEventMap {
|
|
|
"error": Event;
|
|
|
"success": Event;
|
|
|
}
|
|
|
|
|
|
/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */
|
|
|
interface IDBRequest<T = any> extends EventTarget {
|
|
|
/**
|
|
|
* When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.
|
|
|
*/
|
|
|
readonly error: DOMException | null;
|
|
|
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
|
|
|
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Returns "pending" until a request is complete, then returns "done".
|
|
|
*/
|
|
|
readonly readyState: IDBRequestReadyState;
|
|
|
/**
|
|
|
* When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.
|
|
|
*/
|
|
|
readonly result: T;
|
|
|
/**
|
|
|
* Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.
|
|
|
*/
|
|
|
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
|
|
|
/**
|
|
|
* Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.
|
|
|
*/
|
|
|
readonly transaction: IDBTransaction | null;
|
|
|
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var IDBRequest: {
|
|
|
prototype: IDBRequest;
|
|
|
new(): IDBRequest;
|
|
|
};
|
|
|
|
|
|
interface IDBTransactionEventMap {
|
|
|
"abort": Event;
|
|
|
"complete": Event;
|
|
|
"error": Event;
|
|
|
}
|
|
|
|
|
|
interface IDBTransaction extends EventTarget {
|
|
|
/**
|
|
|
* Returns the transaction's connection.
|
|
|
*/
|
|
|
readonly db: IDBDatabase;
|
|
|
/**
|
|
|
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
|
|
|
*/
|
|
|
readonly error: DOMException;
|
|
|
/**
|
|
|
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
|
|
|
*/
|
|
|
readonly mode: IDBTransactionMode;
|
|
|
/**
|
|
|
* Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database.
|
|
|
*/
|
|
|
readonly objectStoreNames: DOMStringList;
|
|
|
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
|
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
|
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
|
|
|
*/
|
|
|
abort(): void;
|
|
|
/**
|
|
|
* Returns an IDBObjectStore in the transaction's scope.
|
|
|
*/
|
|
|
objectStore(name: string): IDBObjectStore;
|
|
|
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var IDBTransaction: {
|
|
|
prototype: IDBTransaction;
|
|
|
new(): IDBTransaction;
|
|
|
};
|
|
|
|
|
|
/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
|
|
|
interface IDBVersionChangeEvent extends Event {
|
|
|
readonly newVersion: number | null;
|
|
|
readonly oldVersion: number;
|
|
|
}
|
|
|
|
|
|
declare var IDBVersionChangeEvent: {
|
|
|
prototype: IDBVersionChangeEvent;
|
|
|
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
|
|
|
};
|
|
|
|
|
|
/** The\xA0IIRFilterNode\xA0interface of the\xA0Web Audio API\xA0is a AudioNode processor which implements a general infinite impulse response (IIR)\xA0 filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed. */
|
|
|
interface IIRFilterNode extends AudioNode {
|
|
|
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
|
|
|
}
|
|
|
|
|
|
declare var IIRFilterNode: {
|
|
|
prototype: IIRFilterNode;
|
|
|
new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;
|
|
|
};
|
|
|
|
|
|
interface ImageBitmap {
|
|
|
/**
|
|
|
* Returns the intrinsic height of the image, in CSS pixels.
|
|
|
*/
|
|
|
readonly height: number;
|
|
|
/**
|
|
|
* Returns the intrinsic width of the image, in CSS pixels.
|
|
|
*/
|
|
|
readonly width: number;
|
|
|
/**
|
|
|
* Releases imageBitmap's underlying bitmap data.
|
|
|
*/
|
|
|
close(): void;
|
|
|
}
|
|
|
|
|
|
declare var ImageBitmap: {
|
|
|
prototype: ImageBitmap;
|
|
|
new(): ImageBitmap;
|
|
|
};
|
|
|
|
|
|
interface ImageBitmapOptions {
|
|
|
colorSpaceConversion?: "none" | "default";
|
|
|
imageOrientation?: "none" | "flipY";
|
|
|
premultiplyAlpha?: "none" | "premultiply" | "default";
|
|
|
resizeHeight?: number;
|
|
|
resizeQuality?: "pixelated" | "low" | "medium" | "high";
|
|
|
resizeWidth?: number;
|
|
|
}
|
|
|
|
|
|
interface ImageBitmapRenderingContext {
|
|
|
/**
|
|
|
* Returns the canvas element that the context is bound to.
|
|
|
*/
|
|
|
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
|
|
|
/**
|
|
|
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
|
|
|
*/
|
|
|
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
|
|
|
}
|
|
|
|
|
|
declare var ImageBitmapRenderingContext: {
|
|
|
prototype: ImageBitmapRenderingContext;
|
|
|
new(): ImageBitmapRenderingContext;
|
|
|
};
|
|
|
|
|
|
/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
|
|
|
interface ImageData {
|
|
|
/**
|
|
|
* Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
|
|
|
*/
|
|
|
readonly data: Uint8ClampedArray;
|
|
|
/**
|
|
|
* Returns the actual dimensions of the data in the ImageData object, in pixels.
|
|
|
*/
|
|
|
readonly height: number;
|
|
|
/**
|
|
|
* Returns the actual dimensions of the data in the ImageData object, in pixels.
|
|
|
*/
|
|
|
readonly width: number;
|
|
|
}
|
|
|
|
|
|
declare var ImageData: {
|
|
|
prototype: ImageData;
|
|
|
new(width: number, height: number): ImageData;
|
|
|
new(array: Uint8ClampedArray, width: number, height?: number): ImageData;
|
|
|
};
|
|
|
|
|
|
interface InnerHTML {
|
|
|
innerHTML: string;
|
|
|
}
|
|
|
|
|
|
interface InputDeviceInfo extends MediaDeviceInfo {
|
|
|
getCapabilities(): MediaTrackCapabilities;
|
|
|
}
|
|
|
|
|
|
declare var InputDeviceInfo: {
|
|
|
prototype: InputDeviceInfo;
|
|
|
new(): InputDeviceInfo;
|
|
|
};
|
|
|
|
|
|
interface InputEvent extends UIEvent {
|
|
|
readonly data: string | null;
|
|
|
readonly inputType: string;
|
|
|
readonly isComposing: boolean;
|
|
|
}
|
|
|
|
|
|
declare var InputEvent: {
|
|
|
prototype: InputEvent;
|
|
|
new(type: string, eventInitDict?: InputEventInit): InputEvent;
|
|
|
};
|
|
|
|
|
|
/** provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport. */
|
|
|
interface IntersectionObserver {
|
|
|
readonly root: Element | null;
|
|
|
readonly rootMargin: string;
|
|
|
readonly thresholds: ReadonlyArray<number>;
|
|
|
disconnect(): void;
|
|
|
observe(target: Element): void;
|
|
|
takeRecords(): IntersectionObserverEntry[];
|
|
|
unobserve(target: Element): void;
|
|
|
}
|
|
|
|
|
|
declare var IntersectionObserver: {
|
|
|
prototype: IntersectionObserver;
|
|
|
new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;
|
|
|
};
|
|
|
|
|
|
/** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */
|
|
|
interface IntersectionObserverEntry {
|
|
|
readonly boundingClientRect: DOMRectReadOnly;
|
|
|
readonly intersectionRatio: number;
|
|
|
readonly intersectionRect: DOMRectReadOnly;
|
|
|
readonly isIntersecting: boolean;
|
|
|
readonly rootBounds: DOMRectReadOnly | null;
|
|
|
readonly target: Element;
|
|
|
readonly time: number;
|
|
|
}
|
|
|
|
|
|
declare var IntersectionObserverEntry: {
|
|
|
prototype: IntersectionObserverEntry;
|
|
|
new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;
|
|
|
};
|
|
|
|
|
|
/** KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard. */
|
|
|
interface KeyboardEvent extends UIEvent {
|
|
|
readonly altKey: boolean;
|
|
|
/** @deprecated */
|
|
|
char: string;
|
|
|
/** @deprecated */
|
|
|
readonly charCode: number;
|
|
|
readonly code: string;
|
|
|
readonly ctrlKey: boolean;
|
|
|
readonly isComposing: boolean;
|
|
|
readonly key: string;
|
|
|
/** @deprecated */
|
|
|
readonly keyCode: number;
|
|
|
readonly location: number;
|
|
|
readonly metaKey: boolean;
|
|
|
readonly repeat: boolean;
|
|
|
readonly shiftKey: boolean;
|
|
|
getModifierState(keyArg: string): boolean;
|
|
|
readonly DOM_KEY_LOCATION_LEFT: number;
|
|
|
readonly DOM_KEY_LOCATION_NUMPAD: number;
|
|
|
readonly DOM_KEY_LOCATION_RIGHT: number;
|
|
|
readonly DOM_KEY_LOCATION_STANDARD: number;
|
|
|
}
|
|
|
|
|
|
declare var KeyboardEvent: {
|
|
|
prototype: KeyboardEvent;
|
|
|
new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
|
|
|
readonly DOM_KEY_LOCATION_LEFT: number;
|
|
|
readonly DOM_KEY_LOCATION_NUMPAD: number;
|
|
|
readonly DOM_KEY_LOCATION_RIGHT: number;
|
|
|
readonly DOM_KEY_LOCATION_STANDARD: number;
|
|
|
};
|
|
|
|
|
|
interface KeyframeEffect extends AnimationEffect {
|
|
|
composite: CompositeOperation;
|
|
|
iterationComposite: IterationCompositeOperation;
|
|
|
target: Element | null;
|
|
|
getKeyframes(): ComputedKeyframe[];
|
|
|
setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;
|
|
|
}
|
|
|
|
|
|
declare var KeyframeEffect: {
|
|
|
prototype: KeyframeEffect;
|
|
|
new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;
|
|
|
new(source: KeyframeEffect): KeyframeEffect;
|
|
|
};
|
|
|
|
|
|
interface LinkStyle {
|
|
|
readonly sheet: StyleSheet | null;
|
|
|
}
|
|
|
|
|
|
interface ListeningStateChangedEvent extends Event {
|
|
|
readonly label: string;
|
|
|
readonly state: ListeningState;
|
|
|
}
|
|
|
|
|
|
declare var ListeningStateChangedEvent: {
|
|
|
prototype: ListeningStateChangedEvent;
|
|
|
new(): ListeningStateChangedEvent;
|
|
|
};
|
|
|
|
|
|
/** The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. */
|
|
|
interface Location {
|
|
|
/**
|
|
|
* Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context.
|
|
|
*/
|
|
|
readonly ancestorOrigins: DOMStringList;
|
|
|
/**
|
|
|
* Returns the Location object's URL's fragment (includes leading "#" if non-empty).
|
|
|
*
|
|
|
* Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").
|
|
|
*/
|
|
|
hash: string;
|
|
|
/**
|
|
|
* Returns the Location object's URL's host and port (if different from the default port for the scheme).
|
|
|
*
|
|
|
* Can be set, to navigate to the same URL with a changed host and port.
|
|
|
*/
|
|
|
host: string;
|
|
|
/**
|
|
|
* Returns the Location object's URL's host.
|
|
|
*
|
|
|
* Can be set, to navigate to the same URL with a changed host.
|
|
|
*/
|
|
|
hostname: string;
|
|
|
/**
|
|
|
* Returns the Location object's URL.
|
|
|
*
|
|
|
* Can be set, to navigate to the given URL.
|
|
|
*/
|
|
|
href: string;
|
|
|
/**
|
|
|
* Returns the Location object's URL's origin.
|
|
|
*/
|
|
|
readonly origin: string;
|
|
|
/**
|
|
|
* Returns the Location object's URL's path.
|
|
|
*
|
|
|
* Can be set, to navigate to the same URL with a changed path.
|
|
|
*/
|
|
|
pathname: string;
|
|
|
/**
|
|
|
* Returns the Location object's URL's port.
|
|
|
*
|
|
|
* Can be set, to navigate to the same URL with a changed port.
|
|
|
*/
|
|
|
port: string;
|
|
|
/**
|
|
|
* Returns the Location object's URL's scheme.
|
|
|
*
|
|
|
* Can be set, to navigate to the same URL with a changed scheme.
|
|
|
*/
|
|
|
protocol: string;
|
|
|
/**
|
|
|
* Returns the Location object's URL's query (includes leading "?" if non-empty).
|
|
|
*
|
|
|
* Can be set, to navigate to the same URL with a changed query (ignores leading "?").
|
|
|
*/
|
|
|
search: string;
|
|
|
/**
|
|
|
* Navigates to the given URL.
|
|
|
*/
|
|
|
assign(url: string): void;
|
|
|
/**
|
|
|
* Reloads the current page.
|
|
|
*/
|
|
|
reload(): void;
|
|
|
/** @deprecated */
|
|
|
reload(forcedReload: boolean): void;
|
|
|
/**
|
|
|
* Removes the current page from the session history and navigates to the given URL.
|
|
|
*/
|
|
|
replace(url: string): void;
|
|
|
}
|
|
|
|
|
|
declare var Location: {
|
|
|
prototype: Location;
|
|
|
new(): Location;
|
|
|
};
|
|
|
|
|
|
interface MSAssertion {
|
|
|
readonly id: string;
|
|
|
readonly type: MSCredentialType;
|
|
|
}
|
|
|
|
|
|
declare var MSAssertion: {
|
|
|
prototype: MSAssertion;
|
|
|
new(): MSAssertion;
|
|
|
};
|
|
|
|
|
|
interface MSBlobBuilder {
|
|
|
append(data: any, endings?: string): void;
|
|
|
getBlob(contentType?: string): Blob;
|
|
|
}
|
|
|
|
|
|
declare var MSBlobBuilder: {
|
|
|
prototype: MSBlobBuilder;
|
|
|
new(): MSBlobBuilder;
|
|
|
};
|
|
|
|
|
|
interface MSFIDOCredentialAssertion extends MSAssertion {
|
|
|
readonly algorithm: string | Algorithm;
|
|
|
readonly attestation: any;
|
|
|
readonly publicKey: string;
|
|
|
readonly transportHints: MSTransportType[];
|
|
|
}
|
|
|
|
|
|
declare var MSFIDOCredentialAssertion: {
|
|
|
prototype: MSFIDOCredentialAssertion;
|
|
|
new(): MSFIDOCredentialAssertion;
|
|
|
};
|
|
|
|
|
|
interface MSFIDOSignature {
|
|
|
readonly authnrData: string;
|
|
|
readonly clientData: string;
|
|
|
readonly signature: string;
|
|
|
}
|
|
|
|
|
|
declare var MSFIDOSignature: {
|
|
|
prototype: MSFIDOSignature;
|
|
|
new(): MSFIDOSignature;
|
|
|
};
|
|
|
|
|
|
interface MSFIDOSignatureAssertion extends MSAssertion {
|
|
|
readonly signature: MSFIDOSignature;
|
|
|
}
|
|
|
|
|
|
declare var MSFIDOSignatureAssertion: {
|
|
|
prototype: MSFIDOSignatureAssertion;
|
|
|
new(): MSFIDOSignatureAssertion;
|
|
|
};
|
|
|
|
|
|
interface MSFileSaver {
|
|
|
msSaveBlob(blob: any, defaultName?: string): boolean;
|
|
|
msSaveOrOpenBlob(blob: any, defaultName?: string): boolean;
|
|
|
}
|
|
|
|
|
|
interface MSGesture {
|
|
|
target: Element;
|
|
|
addPointer(pointerId: number): void;
|
|
|
stop(): void;
|
|
|
}
|
|
|
|
|
|
declare var MSGesture: {
|
|
|
prototype: MSGesture;
|
|
|
new(): MSGesture;
|
|
|
};
|
|
|
|
|
|
/** The MSGestureEvent is a proprietary interface specific to Internet Explorer and Microsoft Edge which represents events that occur due to touch gestures. Events using this interface include MSGestureStart, MSGestureEnd, MSGestureTap, MSGestureHold, MSGestureChange, and MSInertiaStart. */
|
|
|
interface MSGestureEvent extends UIEvent {
|
|
|
readonly clientX: number;
|
|
|
readonly clientY: number;
|
|
|
readonly expansion: number;
|
|
|
readonly gestureObject: any;
|
|
|
readonly hwTimestamp: number;
|
|
|
readonly offsetX: number;
|
|
|
readonly offsetY: number;
|
|
|
readonly rotation: number;
|
|
|
readonly scale: number;
|
|
|
readonly screenX: number;
|
|
|
readonly screenY: number;
|
|
|
readonly translationX: number;
|
|
|
readonly translationY: number;
|
|
|
readonly velocityAngular: number;
|
|
|
readonly velocityExpansion: number;
|
|
|
readonly velocityX: number;
|
|
|
readonly velocityY: number;
|
|
|
initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: number, translationXArg: number, translationYArg: number, scaleArg: number, expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: number, velocityExpansionArg: number, velocityAngularArg: number, hwTimestampArg: number): void;
|
|
|
readonly MSGESTURE_FLAG_BEGIN: number;
|
|
|
readonly MSGESTURE_FLAG_CANCEL: number;
|
|
|
readonly MSGESTURE_FLAG_END: number;
|
|
|
readonly MSGESTURE_FLAG_INERTIA: number;
|
|
|
readonly MSGESTURE_FLAG_NONE: number;
|
|
|
}
|
|
|
|
|
|
declare var MSGestureEvent: {
|
|
|
prototype: MSGestureEvent;
|
|
|
new(): MSGestureEvent;
|
|
|
readonly MSGESTURE_FLAG_BEGIN: number;
|
|
|
readonly MSGESTURE_FLAG_CANCEL: number;
|
|
|
readonly MSGESTURE_FLAG_END: number;
|
|
|
readonly MSGESTURE_FLAG_INERTIA: number;
|
|
|
readonly MSGESTURE_FLAG_NONE: number;
|
|
|
};
|
|
|
|
|
|
/** The msGraphicsTrust() constructor returns an object that provides properties for info on protected video playback. */
|
|
|
interface MSGraphicsTrust {
|
|
|
readonly constrictionActive: boolean;
|
|
|
readonly status: string;
|
|
|
}
|
|
|
|
|
|
declare var MSGraphicsTrust: {
|
|
|
prototype: MSGraphicsTrust;
|
|
|
new(): MSGraphicsTrust;
|
|
|
};
|
|
|
|
|
|
interface MSInputMethodContextEventMap {
|
|
|
"MSCandidateWindowHide": Event;
|
|
|
"MSCandidateWindowShow": Event;
|
|
|
"MSCandidateWindowUpdate": Event;
|
|
|
}
|
|
|
|
|
|
interface MSInputMethodContext extends EventTarget {
|
|
|
readonly compositionEndOffset: number;
|
|
|
readonly compositionStartOffset: number;
|
|
|
oncandidatewindowhide: ((this: MSInputMethodContext, ev: Event) => any) | null;
|
|
|
oncandidatewindowshow: ((this: MSInputMethodContext, ev: Event) => any) | null;
|
|
|
oncandidatewindowupdate: ((this: MSInputMethodContext, ev: Event) => any) | null;
|
|
|
readonly target: HTMLElement;
|
|
|
getCandidateWindowClientRect(): ClientRect;
|
|
|
getCompositionAlternatives(): string[];
|
|
|
hasComposition(): boolean;
|
|
|
isCandidateWindowVisible(): boolean;
|
|
|
addEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MSInputMethodContext: {
|
|
|
prototype: MSInputMethodContext;
|
|
|
new(): MSInputMethodContext;
|
|
|
};
|
|
|
|
|
|
interface MSMediaKeyError {
|
|
|
readonly code: number;
|
|
|
readonly systemCode: number;
|
|
|
readonly MS_MEDIA_KEYERR_CLIENT: number;
|
|
|
readonly MS_MEDIA_KEYERR_DOMAIN: number;
|
|
|
readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
|
|
|
readonly MS_MEDIA_KEYERR_OUTPUT: number;
|
|
|
readonly MS_MEDIA_KEYERR_SERVICE: number;
|
|
|
readonly MS_MEDIA_KEYERR_UNKNOWN: number;
|
|
|
}
|
|
|
|
|
|
declare var MSMediaKeyError: {
|
|
|
prototype: MSMediaKeyError;
|
|
|
new(): MSMediaKeyError;
|
|
|
readonly MS_MEDIA_KEYERR_CLIENT: number;
|
|
|
readonly MS_MEDIA_KEYERR_DOMAIN: number;
|
|
|
readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
|
|
|
readonly MS_MEDIA_KEYERR_OUTPUT: number;
|
|
|
readonly MS_MEDIA_KEYERR_SERVICE: number;
|
|
|
readonly MS_MEDIA_KEYERR_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
interface MSMediaKeyMessageEvent extends Event {
|
|
|
readonly destinationURL: string | null;
|
|
|
readonly message: Uint8Array;
|
|
|
}
|
|
|
|
|
|
declare var MSMediaKeyMessageEvent: {
|
|
|
prototype: MSMediaKeyMessageEvent;
|
|
|
new(): MSMediaKeyMessageEvent;
|
|
|
};
|
|
|
|
|
|
interface MSMediaKeyNeededEvent extends Event {
|
|
|
readonly initData: Uint8Array | null;
|
|
|
}
|
|
|
|
|
|
declare var MSMediaKeyNeededEvent: {
|
|
|
prototype: MSMediaKeyNeededEvent;
|
|
|
new(): MSMediaKeyNeededEvent;
|
|
|
};
|
|
|
|
|
|
interface MSMediaKeySession extends EventTarget {
|
|
|
readonly error: MSMediaKeyError | null;
|
|
|
readonly keySystem: string;
|
|
|
readonly sessionId: string;
|
|
|
close(): void;
|
|
|
update(key: Uint8Array): void;
|
|
|
}
|
|
|
|
|
|
declare var MSMediaKeySession: {
|
|
|
prototype: MSMediaKeySession;
|
|
|
new(): MSMediaKeySession;
|
|
|
};
|
|
|
|
|
|
interface MSMediaKeys {
|
|
|
readonly keySystem: string;
|
|
|
createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array | null): MSMediaKeySession;
|
|
|
}
|
|
|
|
|
|
declare var MSMediaKeys: {
|
|
|
prototype: MSMediaKeys;
|
|
|
new(keySystem: string): MSMediaKeys;
|
|
|
isTypeSupported(keySystem: string, type?: string | null): boolean;
|
|
|
isTypeSupportedWithFeatures(keySystem: string, type?: string | null): string;
|
|
|
};
|
|
|
|
|
|
interface MSNavigatorDoNotTrack {
|
|
|
confirmSiteSpecificTrackingException(args: ConfirmSiteSpecificExceptionsInformation): boolean;
|
|
|
confirmWebWideTrackingException(args: ExceptionInformation): boolean;
|
|
|
removeSiteSpecificTrackingException(args: ExceptionInformation): void;
|
|
|
removeWebWideTrackingException(args: ExceptionInformation): void;
|
|
|
storeSiteSpecificTrackingException(args: StoreSiteSpecificExceptionsInformation): void;
|
|
|
storeWebWideTrackingException(args: StoreExceptionsInformation): void;
|
|
|
}
|
|
|
|
|
|
interface MSPointerEvent extends MouseEvent {
|
|
|
readonly currentPoint: any;
|
|
|
readonly height: number;
|
|
|
readonly hwTimestamp: number;
|
|
|
readonly intermediatePoints: any;
|
|
|
readonly isPrimary: boolean;
|
|
|
readonly pointerId: number;
|
|
|
readonly pointerType: any;
|
|
|
readonly pressure: number;
|
|
|
readonly rotation: number;
|
|
|
readonly tiltX: number;
|
|
|
readonly tiltY: number;
|
|
|
readonly width: number;
|
|
|
getCurrentPoint(element: Element): void;
|
|
|
getIntermediatePoints(element: Element): void;
|
|
|
initPointerEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void;
|
|
|
}
|
|
|
|
|
|
declare var MSPointerEvent: {
|
|
|
prototype: MSPointerEvent;
|
|
|
new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent;
|
|
|
};
|
|
|
|
|
|
interface MSStream {
|
|
|
readonly type: string;
|
|
|
msClose(): void;
|
|
|
msDetachStream(): any;
|
|
|
}
|
|
|
|
|
|
declare var MSStream: {
|
|
|
prototype: MSStream;
|
|
|
new(): MSStream;
|
|
|
};
|
|
|
|
|
|
/** The MediaDevicesInfo interface contains information that describes a single media input or output device. */
|
|
|
interface MediaDeviceInfo {
|
|
|
readonly deviceId: string;
|
|
|
readonly groupId: string;
|
|
|
readonly kind: MediaDeviceKind;
|
|
|
readonly label: string;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var MediaDeviceInfo: {
|
|
|
prototype: MediaDeviceInfo;
|
|
|
new(): MediaDeviceInfo;
|
|
|
};
|
|
|
|
|
|
interface MediaDevicesEventMap {
|
|
|
"devicechange": Event;
|
|
|
}
|
|
|
|
|
|
/** Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data. */
|
|
|
interface MediaDevices extends EventTarget {
|
|
|
ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
|
|
|
enumerateDevices(): Promise<MediaDeviceInfo[]>;
|
|
|
getSupportedConstraints(): MediaTrackSupportedConstraints;
|
|
|
getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
|
|
|
addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MediaDevices: {
|
|
|
prototype: MediaDevices;
|
|
|
new(): MediaDevices;
|
|
|
};
|
|
|
|
|
|
/** A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio. */
|
|
|
interface MediaElementAudioSourceNode extends AudioNode {
|
|
|
readonly mediaElement: HTMLMediaElement;
|
|
|
}
|
|
|
|
|
|
declare var MediaElementAudioSourceNode: {
|
|
|
prototype: MediaElementAudioSourceNode;
|
|
|
new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;
|
|
|
};
|
|
|
|
|
|
interface MediaEncryptedEvent extends Event {
|
|
|
readonly initData: ArrayBuffer | null;
|
|
|
readonly initDataType: string;
|
|
|
}
|
|
|
|
|
|
declare var MediaEncryptedEvent: {
|
|
|
prototype: MediaEncryptedEvent;
|
|
|
new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;
|
|
|
};
|
|
|
|
|
|
/** An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. */
|
|
|
interface MediaError {
|
|
|
readonly code: number;
|
|
|
readonly message: string;
|
|
|
readonly msExtendedCode: number;
|
|
|
readonly MEDIA_ERR_ABORTED: number;
|
|
|
readonly MEDIA_ERR_DECODE: number;
|
|
|
readonly MEDIA_ERR_NETWORK: number;
|
|
|
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
|
|
|
readonly MS_MEDIA_ERR_ENCRYPTED: number;
|
|
|
}
|
|
|
|
|
|
declare var MediaError: {
|
|
|
prototype: MediaError;
|
|
|
new(): MediaError;
|
|
|
readonly MEDIA_ERR_ABORTED: number;
|
|
|
readonly MEDIA_ERR_DECODE: number;
|
|
|
readonly MEDIA_ERR_NETWORK: number;
|
|
|
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
|
|
|
readonly MS_MEDIA_ERR_ENCRYPTED: number;
|
|
|
};
|
|
|
|
|
|
/** This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session. */
|
|
|
interface MediaKeyMessageEvent extends Event {
|
|
|
readonly message: ArrayBuffer;
|
|
|
readonly messageType: MediaKeyMessageType;
|
|
|
}
|
|
|
|
|
|
declare var MediaKeyMessageEvent: {
|
|
|
prototype: MediaKeyMessageEvent;
|
|
|
new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;
|
|
|
};
|
|
|
|
|
|
interface MediaKeySessionEventMap {
|
|
|
"keystatuseschange": Event;
|
|
|
"message": MessageEvent;
|
|
|
}
|
|
|
|
|
|
/** This EncryptedMediaExtensions API interface represents a\xA0context for message exchange with a content decryption module (CDM). */
|
|
|
interface MediaKeySession extends EventTarget {
|
|
|
readonly closed: Promise<void>;
|
|
|
readonly expiration: number;
|
|
|
readonly keyStatuses: MediaKeyStatusMap;
|
|
|
onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
|
|
|
onmessage: ((this: MediaKeySession, ev: MessageEvent) => any) | null;
|
|
|
readonly sessionId: string;
|
|
|
close(): Promise<void>;
|
|
|
generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
|
|
|
load(sessionId: string): Promise<boolean>;
|
|
|
remove(): Promise<void>;
|
|
|
update(response: BufferSource): Promise<void>;
|
|
|
addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MediaKeySession: {
|
|
|
prototype: MediaKeySession;
|
|
|
new(): MediaKeySession;
|
|
|
};
|
|
|
|
|
|
/** This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs. */
|
|
|
interface MediaKeyStatusMap {
|
|
|
readonly size: number;
|
|
|
get(keyId: BufferSource): any;
|
|
|
has(keyId: BufferSource): boolean;
|
|
|
forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var MediaKeyStatusMap: {
|
|
|
prototype: MediaKeyStatusMap;
|
|
|
new(): MediaKeyStatusMap;
|
|
|
};
|
|
|
|
|
|
/** This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method. */
|
|
|
interface MediaKeySystemAccess {
|
|
|
readonly keySystem: string;
|
|
|
createMediaKeys(): Promise<MediaKeys>;
|
|
|
getConfiguration(): MediaKeySystemConfiguration;
|
|
|
}
|
|
|
|
|
|
declare var MediaKeySystemAccess: {
|
|
|
prototype: MediaKeySystemAccess;
|
|
|
new(): MediaKeySystemAccess;
|
|
|
};
|
|
|
|
|
|
/** This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback. */
|
|
|
interface MediaKeys {
|
|
|
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
|
|
|
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
|
|
|
}
|
|
|
|
|
|
declare var MediaKeys: {
|
|
|
prototype: MediaKeys;
|
|
|
new(): MediaKeys;
|
|
|
};
|
|
|
|
|
|
interface MediaList {
|
|
|
readonly length: number;
|
|
|
mediaText: string;
|
|
|
appendMedium(medium: string): void;
|
|
|
deleteMedium(medium: string): void;
|
|
|
item(index: number): string | null;
|
|
|
toString(): number;
|
|
|
[index: number]: string;
|
|
|
}
|
|
|
|
|
|
declare var MediaList: {
|
|
|
prototype: MediaList;
|
|
|
new(): MediaList;
|
|
|
};
|
|
|
|
|
|
interface MediaQueryListEventMap {
|
|
|
"change": MediaQueryListEvent;
|
|
|
}
|
|
|
|
|
|
/** Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true). */
|
|
|
interface MediaQueryList extends EventTarget {
|
|
|
readonly matches: boolean;
|
|
|
readonly media: string;
|
|
|
onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
|
|
|
/** @deprecated */
|
|
|
addListener(listener: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
|
|
|
/** @deprecated */
|
|
|
removeListener(listener: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
|
|
|
addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MediaQueryList: {
|
|
|
prototype: MediaQueryList;
|
|
|
new(): MediaQueryList;
|
|
|
};
|
|
|
|
|
|
interface MediaQueryListEvent extends Event {
|
|
|
readonly matches: boolean;
|
|
|
readonly media: string;
|
|
|
}
|
|
|
|
|
|
declare var MediaQueryListEvent: {
|
|
|
prototype: MediaQueryListEvent;
|
|
|
new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;
|
|
|
};
|
|
|
|
|
|
interface MediaSourceEventMap {
|
|
|
"sourceclose": Event;
|
|
|
"sourceended": Event;
|
|
|
"sourceopen": Event;
|
|
|
}
|
|
|
|
|
|
/** This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent. */
|
|
|
interface MediaSource extends EventTarget {
|
|
|
readonly activeSourceBuffers: SourceBufferList;
|
|
|
duration: number;
|
|
|
onsourceclose: ((this: MediaSource, ev: Event) => any) | null;
|
|
|
onsourceended: ((this: MediaSource, ev: Event) => any) | null;
|
|
|
onsourceopen: ((this: MediaSource, ev: Event) => any) | null;
|
|
|
readonly readyState: ReadyState;
|
|
|
readonly sourceBuffers: SourceBufferList;
|
|
|
addSourceBuffer(type: string): SourceBuffer;
|
|
|
clearLiveSeekableRange(): void;
|
|
|
endOfStream(error?: EndOfStreamError): void;
|
|
|
removeSourceBuffer(sourceBuffer: SourceBuffer): void;
|
|
|
setLiveSeekableRange(start: number, end: number): void;
|
|
|
addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MediaSource: {
|
|
|
prototype: MediaSource;
|
|
|
new(): MediaSource;
|
|
|
isTypeSupported(type: string): boolean;
|
|
|
};
|
|
|
|
|
|
interface MediaStreamEventMap {
|
|
|
"addtrack": MediaStreamTrackEvent;
|
|
|
"removetrack": MediaStreamTrackEvent;
|
|
|
}
|
|
|
|
|
|
/** A stream of media content. A stream consists of several tracks such as\xA0video or audio tracks. Each track is specified as an instance of MediaStreamTrack. */
|
|
|
interface MediaStream extends EventTarget {
|
|
|
readonly active: boolean;
|
|
|
readonly id: string;
|
|
|
onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
|
|
|
onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
|
|
|
addTrack(track: MediaStreamTrack): void;
|
|
|
clone(): MediaStream;
|
|
|
getAudioTracks(): MediaStreamTrack[];
|
|
|
getTrackById(trackId: string): MediaStreamTrack | null;
|
|
|
getTracks(): MediaStreamTrack[];
|
|
|
getVideoTracks(): MediaStreamTrack[];
|
|
|
removeTrack(track: MediaStreamTrack): void;
|
|
|
addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MediaStream: {
|
|
|
prototype: MediaStream;
|
|
|
new(): MediaStream;
|
|
|
new(stream: MediaStream): MediaStream;
|
|
|
new(tracks: MediaStreamTrack[]): MediaStream;
|
|
|
};
|
|
|
|
|
|
interface MediaStreamAudioDestinationNode extends AudioNode {
|
|
|
readonly stream: MediaStream;
|
|
|
}
|
|
|
|
|
|
declare var MediaStreamAudioDestinationNode: {
|
|
|
prototype: MediaStreamAudioDestinationNode;
|
|
|
new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;
|
|
|
};
|
|
|
|
|
|
/** A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs. */
|
|
|
interface MediaStreamAudioSourceNode extends AudioNode {
|
|
|
readonly mediaStream: MediaStream;
|
|
|
}
|
|
|
|
|
|
declare var MediaStreamAudioSourceNode: {
|
|
|
prototype: MediaStreamAudioSourceNode;
|
|
|
new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;
|
|
|
};
|
|
|
|
|
|
interface MediaStreamError {
|
|
|
readonly constraintName: string | null;
|
|
|
readonly message: string | null;
|
|
|
readonly name: string;
|
|
|
}
|
|
|
|
|
|
declare var MediaStreamError: {
|
|
|
prototype: MediaStreamError;
|
|
|
new(): MediaStreamError;
|
|
|
};
|
|
|
|
|
|
interface MediaStreamErrorEvent extends Event {
|
|
|
readonly error: MediaStreamError | null;
|
|
|
}
|
|
|
|
|
|
declare var MediaStreamErrorEvent: {
|
|
|
prototype: MediaStreamErrorEvent;
|
|
|
new(typeArg: string, eventInitDict?: MediaStreamErrorEventInit): MediaStreamErrorEvent;
|
|
|
};
|
|
|
|
|
|
/** Events that occurs in relation to a MediaStream. Two events of this type can be thrown: addstream and removestream. */
|
|
|
interface MediaStreamEvent extends Event {
|
|
|
readonly stream: MediaStream | null;
|
|
|
}
|
|
|
|
|
|
declare var MediaStreamEvent: {
|
|
|
prototype: MediaStreamEvent;
|
|
|
new(type: string, eventInitDict: MediaStreamEventInit): MediaStreamEvent;
|
|
|
};
|
|
|
|
|
|
interface MediaStreamTrackEventMap {
|
|
|
"ended": Event;
|
|
|
"isolationchange": Event;
|
|
|
"mute": Event;
|
|
|
"unmute": Event;
|
|
|
}
|
|
|
|
|
|
/** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */
|
|
|
interface MediaStreamTrack extends EventTarget {
|
|
|
enabled: boolean;
|
|
|
readonly id: string;
|
|
|
readonly isolated: boolean;
|
|
|
readonly kind: string;
|
|
|
readonly label: string;
|
|
|
readonly muted: boolean;
|
|
|
onended: ((this: MediaStreamTrack, ev: Event) => any) | null;
|
|
|
onisolationchange: ((this: MediaStreamTrack, ev: Event) => any) | null;
|
|
|
onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
|
|
|
onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
|
|
|
readonly readyState: MediaStreamTrackState;
|
|
|
applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;
|
|
|
clone(): MediaStreamTrack;
|
|
|
getCapabilities(): MediaTrackCapabilities;
|
|
|
getConstraints(): MediaTrackConstraints;
|
|
|
getSettings(): MediaTrackSettings;
|
|
|
stop(): void;
|
|
|
addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MediaStreamTrack: {
|
|
|
prototype: MediaStreamTrack;
|
|
|
new(): MediaStreamTrack;
|
|
|
};
|
|
|
|
|
|
interface MediaStreamTrackAudioSourceNode extends AudioNode {
|
|
|
}
|
|
|
|
|
|
declare var MediaStreamTrackAudioSourceNode: {
|
|
|
prototype: MediaStreamTrackAudioSourceNode;
|
|
|
new(context: AudioContext, options: MediaStreamTrackAudioSourceOptions): MediaStreamTrackAudioSourceNode;
|
|
|
};
|
|
|
|
|
|
/** Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur. */
|
|
|
interface MediaStreamTrackEvent extends Event {
|
|
|
readonly track: MediaStreamTrack;
|
|
|
}
|
|
|
|
|
|
declare var MediaStreamTrackEvent: {
|
|
|
prototype: MediaStreamTrackEvent;
|
|
|
new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;
|
|
|
};
|
|
|
|
|
|
/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
|
|
|
interface MessageChannel {
|
|
|
/**
|
|
|
* Returns the first MessagePort object.
|
|
|
*/
|
|
|
readonly port1: MessagePort;
|
|
|
/**
|
|
|
* Returns the second MessagePort object.
|
|
|
*/
|
|
|
readonly port2: MessagePort;
|
|
|
}
|
|
|
|
|
|
declare var MessageChannel: {
|
|
|
prototype: MessageChannel;
|
|
|
new(): MessageChannel;
|
|
|
};
|
|
|
|
|
|
/** A message received by a target object. */
|
|
|
interface MessageEvent extends Event {
|
|
|
/**
|
|
|
* Returns the data of the message.
|
|
|
*/
|
|
|
readonly data: any;
|
|
|
/**
|
|
|
* Returns the last event ID string, for server-sent events.
|
|
|
*/
|
|
|
readonly lastEventId: string;
|
|
|
/**
|
|
|
* Returns the origin of the message, for server-sent events and cross-document messaging.
|
|
|
*/
|
|
|
readonly origin: string;
|
|
|
/**
|
|
|
* Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
|
|
|
*/
|
|
|
readonly ports: ReadonlyArray<MessagePort>;
|
|
|
/**
|
|
|
* Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
|
|
|
*/
|
|
|
readonly source: MessageEventSource | null;
|
|
|
}
|
|
|
|
|
|
declare var MessageEvent: {
|
|
|
prototype: MessageEvent;
|
|
|
new(type: string, eventInitDict?: MessageEventInit): MessageEvent;
|
|
|
};
|
|
|
|
|
|
interface MessagePortEventMap {
|
|
|
"message": MessageEvent;
|
|
|
"messageerror": MessageEvent;
|
|
|
}
|
|
|
|
|
|
/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */
|
|
|
interface MessagePort extends EventTarget {
|
|
|
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
|
|
|
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
|
|
|
/**
|
|
|
* Disconnects the port, so that it is no longer active.
|
|
|
*/
|
|
|
close(): void;
|
|
|
/**
|
|
|
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
|
|
|
*
|
|
|
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
|
|
|
*/
|
|
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
|
postMessage(message: any, options?: PostMessageOptions): void;
|
|
|
/**
|
|
|
* Begins dispatching messages received on the port.
|
|
|
*/
|
|
|
start(): void;
|
|
|
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var MessagePort: {
|
|
|
prototype: MessagePort;
|
|
|
new(): MessagePort;
|
|
|
};
|
|
|
|
|
|
/** Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object. */
|
|
|
interface MimeType {
|
|
|
/**
|
|
|
* Returns the MIME type's description.
|
|
|
*/
|
|
|
readonly description: string;
|
|
|
/**
|
|
|
* Returns the Plugin object that implements this MIME type.
|
|
|
*/
|
|
|
readonly enabledPlugin: Plugin;
|
|
|
/**
|
|
|
* Returns the MIME type's typical file extensions, in a comma-separated list.
|
|
|
*/
|
|
|
readonly suffixes: string;
|
|
|
/**
|
|
|
* Returns the MIME type.
|
|
|
*/
|
|
|
readonly type: string;
|
|
|
}
|
|
|
|
|
|
declare var MimeType: {
|
|
|
prototype: MimeType;
|
|
|
new(): MimeType;
|
|
|
};
|
|
|
|
|
|
/** Returns an array of MimeType instances, each of which contains information\xA0about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes. */
|
|
|
interface MimeTypeArray {
|
|
|
readonly length: number;
|
|
|
item(index: number): MimeType | null;
|
|
|
namedItem(name: string): MimeType | null;
|
|
|
[index: number]: MimeType;
|
|
|
}
|
|
|
|
|
|
declare var MimeTypeArray: {
|
|
|
prototype: MimeTypeArray;
|
|
|
new(): MimeTypeArray;
|
|
|
};
|
|
|
|
|
|
/** Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown. */
|
|
|
interface MouseEvent extends UIEvent {
|
|
|
readonly altKey: boolean;
|
|
|
readonly button: number;
|
|
|
readonly buttons: number;
|
|
|
readonly clientX: number;
|
|
|
readonly clientY: number;
|
|
|
readonly ctrlKey: boolean;
|
|
|
readonly metaKey: boolean;
|
|
|
readonly movementX: number;
|
|
|
readonly movementY: number;
|
|
|
readonly offsetX: number;
|
|
|
readonly offsetY: number;
|
|
|
readonly pageX: number;
|
|
|
readonly pageY: number;
|
|
|
readonly relatedTarget: EventTarget | null;
|
|
|
readonly screenX: number;
|
|
|
readonly screenY: number;
|
|
|
readonly shiftKey: boolean;
|
|
|
readonly x: number;
|
|
|
readonly y: number;
|
|
|
getModifierState(keyArg: string): boolean;
|
|
|
initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void;
|
|
|
}
|
|
|
|
|
|
declare var MouseEvent: {
|
|
|
prototype: MouseEvent;
|
|
|
new(type: string, eventInitDict?: MouseEventInit): MouseEvent;
|
|
|
};
|
|
|
|
|
|
/** Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes. */
|
|
|
interface MutationEvent extends Event {
|
|
|
readonly attrChange: number;
|
|
|
readonly attrName: string;
|
|
|
readonly newValue: string;
|
|
|
readonly prevValue: string;
|
|
|
readonly relatedNode: Node;
|
|
|
initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, attrNameArg: string, attrChangeArg: number): void;
|
|
|
readonly ADDITION: number;
|
|
|
readonly MODIFICATION: number;
|
|
|
readonly REMOVAL: number;
|
|
|
}
|
|
|
|
|
|
declare var MutationEvent: {
|
|
|
prototype: MutationEvent;
|
|
|
new(): MutationEvent;
|
|
|
readonly ADDITION: number;
|
|
|
readonly MODIFICATION: number;
|
|
|
readonly REMOVAL: number;
|
|
|
};
|
|
|
|
|
|
/** Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification. */
|
|
|
interface MutationObserver {
|
|
|
/**
|
|
|
* Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked.
|
|
|
*/
|
|
|
disconnect(): void;
|
|
|
/**
|
|
|
* Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).
|
|
|
*
|
|
|
* The options argument allows for setting mutation observation options via object members.
|
|
|
*/
|
|
|
observe(target: Node, options?: MutationObserverInit): void;
|
|
|
/**
|
|
|
* Empties the record queue and returns what was in there.
|
|
|
*/
|
|
|
takeRecords(): MutationRecord[];
|
|
|
}
|
|
|
|
|
|
declare var MutationObserver: {
|
|
|
prototype: MutationObserver;
|
|
|
new(callback: MutationCallback): MutationObserver;
|
|
|
};
|
|
|
|
|
|
/** A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback. */
|
|
|
interface MutationRecord {
|
|
|
/**
|
|
|
* Return the nodes added and removed respectively.
|
|
|
*/
|
|
|
readonly addedNodes: NodeList;
|
|
|
/**
|
|
|
* Returns the local name of the changed attribute, and null otherwise.
|
|
|
*/
|
|
|
readonly attributeName: string | null;
|
|
|
/**
|
|
|
* Returns the namespace of the changed attribute, and null otherwise.
|
|
|
*/
|
|
|
readonly attributeNamespace: string | null;
|
|
|
/**
|
|
|
* Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.
|
|
|
*/
|
|
|
readonly nextSibling: Node | null;
|
|
|
/**
|
|
|
* The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null.
|
|
|
*/
|
|
|
readonly oldValue: string | null;
|
|
|
/**
|
|
|
* Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.
|
|
|
*/
|
|
|
readonly previousSibling: Node | null;
|
|
|
/**
|
|
|
* Return the nodes added and removed respectively.
|
|
|
*/
|
|
|
readonly removedNodes: NodeList;
|
|
|
/**
|
|
|
* Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed.
|
|
|
*/
|
|
|
readonly target: Node;
|
|
|
/**
|
|
|
* Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes.
|
|
|
*/
|
|
|
readonly type: MutationRecordType;
|
|
|
}
|
|
|
|
|
|
declare var MutationRecord: {
|
|
|
prototype: MutationRecord;
|
|
|
new(): MutationRecord;
|
|
|
};
|
|
|
|
|
|
/** A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. */
|
|
|
interface NamedNodeMap {
|
|
|
readonly length: number;
|
|
|
getNamedItem(qualifiedName: string): Attr | null;
|
|
|
getNamedItemNS(namespace: string | null, localName: string): Attr | null;
|
|
|
item(index: number): Attr | null;
|
|
|
removeNamedItem(qualifiedName: string): Attr;
|
|
|
removeNamedItemNS(namespace: string | null, localName: string): Attr;
|
|
|
setNamedItem(attr: Attr): Attr | null;
|
|
|
setNamedItemNS(attr: Attr): Attr | null;
|
|
|
[index: number]: Attr;
|
|
|
}
|
|
|
|
|
|
declare var NamedNodeMap: {
|
|
|
prototype: NamedNodeMap;
|
|
|
new(): NamedNodeMap;
|
|
|
};
|
|
|
|
|
|
interface NavigationPreloadManager {
|
|
|
disable(): Promise<void>;
|
|
|
enable(): Promise<void>;
|
|
|
getState(): Promise<NavigationPreloadState>;
|
|
|
setHeaderValue(value: string): Promise<void>;
|
|
|
}
|
|
|
|
|
|
declare var NavigationPreloadManager: {
|
|
|
prototype: NavigationPreloadManager;
|
|
|
new(): NavigationPreloadManager;
|
|
|
};
|
|
|
|
|
|
/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
|
|
|
interface Navigator extends MSFileSaver, MSNavigatorDoNotTrack, NavigatorAutomationInformation, NavigatorBeacon, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
|
readonly activeVRDisplays: ReadonlyArray<VRDisplay>;
|
|
|
readonly clipboard: Clipboard;
|
|
|
readonly credentials: CredentialsContainer;
|
|
|
readonly doNotTrack: string | null;
|
|
|
readonly geolocation: Geolocation;
|
|
|
readonly maxTouchPoints: number;
|
|
|
readonly mediaDevices: MediaDevices;
|
|
|
readonly msManipulationViewsEnabled: boolean;
|
|
|
readonly msMaxTouchPoints: number;
|
|
|
readonly msPointerEnabled: boolean;
|
|
|
readonly permissions: Permissions;
|
|
|
readonly pointerEnabled: boolean;
|
|
|
readonly serviceWorker: ServiceWorkerContainer;
|
|
|
getGamepads(): (Gamepad | null)[];
|
|
|
getUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;
|
|
|
getVRDisplays(): Promise<VRDisplay[]>;
|
|
|
msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;
|
|
|
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
|
|
|
vibrate(pattern: number | number[]): boolean;
|
|
|
}
|
|
|
|
|
|
declare var Navigator: {
|
|
|
prototype: Navigator;
|
|
|
new(): Navigator;
|
|
|
};
|
|
|
|
|
|
interface NavigatorAutomationInformation {
|
|
|
readonly webdriver: boolean;
|
|
|
}
|
|
|
|
|
|
interface NavigatorBeacon {
|
|
|
sendBeacon(url: string, data?: Blob | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | FormData | string | null): boolean;
|
|
|
}
|
|
|
|
|
|
interface NavigatorConcurrentHardware {
|
|
|
readonly hardwareConcurrency: number;
|
|
|
}
|
|
|
|
|
|
interface NavigatorContentUtils {
|
|
|
registerProtocolHandler(scheme: string, url: string, title: string): void;
|
|
|
unregisterProtocolHandler(scheme: string, url: string): void;
|
|
|
}
|
|
|
|
|
|
interface NavigatorCookies {
|
|
|
readonly cookieEnabled: boolean;
|
|
|
}
|
|
|
|
|
|
interface NavigatorID {
|
|
|
readonly appCodeName: string;
|
|
|
readonly appName: string;
|
|
|
readonly appVersion: string;
|
|
|
readonly oscpu: string;
|
|
|
readonly platform: string;
|
|
|
readonly product: string;
|
|
|
readonly productSub: string;
|
|
|
readonly userAgent: string;
|
|
|
readonly vendor: string;
|
|
|
readonly vendorSub: string;
|
|
|
taintEnabled(): boolean;
|
|
|
}
|
|
|
|
|
|
interface NavigatorLanguage {
|
|
|
readonly language: string;
|
|
|
readonly languages: ReadonlyArray<string>;
|
|
|
}
|
|
|
|
|
|
interface NavigatorOnLine {
|
|
|
readonly onLine: boolean;
|
|
|
}
|
|
|
|
|
|
interface NavigatorPlugins {
|
|
|
readonly mimeTypes: MimeTypeArray;
|
|
|
readonly plugins: PluginArray;
|
|
|
javaEnabled(): boolean;
|
|
|
}
|
|
|
|
|
|
interface NavigatorStorage {
|
|
|
readonly storage: StorageManager;
|
|
|
}
|
|
|
|
|
|
/** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */
|
|
|
interface Node extends EventTarget {
|
|
|
/**
|
|
|
* Returns node's node document's document base URL.
|
|
|
*/
|
|
|
readonly baseURI: string;
|
|
|
/**
|
|
|
* Returns the children.
|
|
|
*/
|
|
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
|
/**
|
|
|
* Returns the first child.
|
|
|
*/
|
|
|
readonly firstChild: ChildNode | null;
|
|
|
/**
|
|
|
* Returns true if node is connected and false otherwise.
|
|
|
*/
|
|
|
readonly isConnected: boolean;
|
|
|
/**
|
|
|
* Returns the last child.
|
|
|
*/
|
|
|
readonly lastChild: ChildNode | null;
|
|
|
/** @deprecated */
|
|
|
readonly namespaceURI: string | null;
|
|
|
/**
|
|
|
* Returns the next sibling.
|
|
|
*/
|
|
|
readonly nextSibling: ChildNode | null;
|
|
|
/**
|
|
|
* Returns a string appropriate for the type of node.
|
|
|
*/
|
|
|
readonly nodeName: string;
|
|
|
/**
|
|
|
* Returns the type of node.
|
|
|
*/
|
|
|
readonly nodeType: number;
|
|
|
nodeValue: string | null;
|
|
|
/**
|
|
|
* Returns the node document. Returns null for documents.
|
|
|
*/
|
|
|
readonly ownerDocument: Document | null;
|
|
|
/**
|
|
|
* Returns the parent element.
|
|
|
*/
|
|
|
readonly parentElement: HTMLElement | null;
|
|
|
/**
|
|
|
* Returns the parent.
|
|
|
*/
|
|
|
readonly parentNode: Node & ParentNode | null;
|
|
|
/**
|
|
|
* Returns the previous sibling.
|
|
|
*/
|
|
|
readonly previousSibling: Node | null;
|
|
|
textContent: string | null;
|
|
|
appendChild<T extends Node>(newChild: T): T;
|
|
|
/**
|
|
|
* Returns a copy of node. If deep is true, the copy also includes the node's descendants.
|
|
|
*/
|
|
|
cloneNode(deep?: boolean): Node;
|
|
|
/**
|
|
|
* Returns a bitmask indicating the position of other relative to node.
|
|
|
*/
|
|
|
compareDocumentPosition(other: Node): number;
|
|
|
/**
|
|
|
* Returns true if other is an inclusive descendant of node, and false otherwise.
|
|
|
*/
|
|
|
contains(other: Node | null): boolean;
|
|
|
/**
|
|
|
* Returns node's root.
|
|
|
*/
|
|
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
|
/**
|
|
|
* Returns whether node has children.
|
|
|
*/
|
|
|
hasChildNodes(): boolean;
|
|
|
insertBefore<T extends Node>(newChild: T, refChild: Node | null): T;
|
|
|
isDefaultNamespace(namespace: string | null): boolean;
|
|
|
/**
|
|
|
* Returns whether node and otherNode have the same properties.
|
|
|
*/
|
|
|
isEqualNode(otherNode: Node | null): boolean;
|
|
|
isSameNode(otherNode: Node | null): boolean;
|
|
|
lookupNamespaceURI(prefix: string | null): string | null;
|
|
|
lookupPrefix(namespace: string | null): string | null;
|
|
|
/**
|
|
|
* Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
|
|
|
*/
|
|
|
normalize(): void;
|
|
|
removeChild<T extends Node>(oldChild: T): T;
|
|
|
replaceChild<T extends Node>(newChild: Node, oldChild: T): T;
|
|
|
readonly ATTRIBUTE_NODE: number;
|
|
|
/**
|
|
|
* node is a CDATASection node.
|
|
|
*/
|
|
|
readonly CDATA_SECTION_NODE: number;
|
|
|
/**
|
|
|
* node is a Comment node.
|
|
|
*/
|
|
|
readonly COMMENT_NODE: number;
|
|
|
/**
|
|
|
* node is a DocumentFragment node.
|
|
|
*/
|
|
|
readonly DOCUMENT_FRAGMENT_NODE: number;
|
|
|
/**
|
|
|
* node is a document.
|
|
|
*/
|
|
|
readonly DOCUMENT_NODE: number;
|
|
|
/**
|
|
|
* Set when other is a descendant of node.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
|
/**
|
|
|
* Set when other is an ancestor of node.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
|
/**
|
|
|
* Set when node and other are not in the same tree.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
|
/**
|
|
|
* Set when other is following node.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
|
/**
|
|
|
* Set when other is preceding node.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
|
/**
|
|
|
* node is a doctype.
|
|
|
*/
|
|
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
|
/**
|
|
|
* node is an element.
|
|
|
*/
|
|
|
readonly ELEMENT_NODE: number;
|
|
|
readonly ENTITY_NODE: number;
|
|
|
readonly ENTITY_REFERENCE_NODE: number;
|
|
|
readonly NOTATION_NODE: number;
|
|
|
/**
|
|
|
* node is a ProcessingInstruction node.
|
|
|
*/
|
|
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
|
/**
|
|
|
* node is a Text node.
|
|
|
*/
|
|
|
readonly TEXT_NODE: number;
|
|
|
}
|
|
|
|
|
|
declare var Node: {
|
|
|
prototype: Node;
|
|
|
new(): Node;
|
|
|
readonly ATTRIBUTE_NODE: number;
|
|
|
/**
|
|
|
* node is a CDATASection node.
|
|
|
*/
|
|
|
readonly CDATA_SECTION_NODE: number;
|
|
|
/**
|
|
|
* node is a Comment node.
|
|
|
*/
|
|
|
readonly COMMENT_NODE: number;
|
|
|
/**
|
|
|
* node is a DocumentFragment node.
|
|
|
*/
|
|
|
readonly DOCUMENT_FRAGMENT_NODE: number;
|
|
|
/**
|
|
|
* node is a document.
|
|
|
*/
|
|
|
readonly DOCUMENT_NODE: number;
|
|
|
/**
|
|
|
* Set when other is a descendant of node.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
|
/**
|
|
|
* Set when other is an ancestor of node.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
|
/**
|
|
|
* Set when node and other are not in the same tree.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
|
/**
|
|
|
* Set when other is following node.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
|
/**
|
|
|
* Set when other is preceding node.
|
|
|
*/
|
|
|
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
|
/**
|
|
|
* node is a doctype.
|
|
|
*/
|
|
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
|
/**
|
|
|
* node is an element.
|
|
|
*/
|
|
|
readonly ELEMENT_NODE: number;
|
|
|
readonly ENTITY_NODE: number;
|
|
|
readonly ENTITY_REFERENCE_NODE: number;
|
|
|
readonly NOTATION_NODE: number;
|
|
|
/**
|
|
|
* node is a ProcessingInstruction node.
|
|
|
*/
|
|
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
|
/**
|
|
|
* node is a Text node.
|
|
|
*/
|
|
|
readonly TEXT_NODE: number;
|
|
|
};
|
|
|
|
|
|
/** An object used to filter the nodes in a NodeIterator or TreeWalker. They don't know anything about the DOM or how to traverse nodes; they just know how to evaluate a single node against the provided filter. */
|
|
|
interface NodeFilter {
|
|
|
acceptNode(node: Node): number;
|
|
|
}
|
|
|
|
|
|
declare var NodeFilter: {
|
|
|
readonly FILTER_ACCEPT: number;
|
|
|
readonly FILTER_REJECT: number;
|
|
|
readonly FILTER_SKIP: number;
|
|
|
readonly SHOW_ALL: number;
|
|
|
readonly SHOW_ATTRIBUTE: number;
|
|
|
readonly SHOW_CDATA_SECTION: number;
|
|
|
readonly SHOW_COMMENT: number;
|
|
|
readonly SHOW_DOCUMENT: number;
|
|
|
readonly SHOW_DOCUMENT_FRAGMENT: number;
|
|
|
readonly SHOW_DOCUMENT_TYPE: number;
|
|
|
readonly SHOW_ELEMENT: number;
|
|
|
readonly SHOW_ENTITY: number;
|
|
|
readonly SHOW_ENTITY_REFERENCE: number;
|
|
|
readonly SHOW_NOTATION: number;
|
|
|
readonly SHOW_PROCESSING_INSTRUCTION: number;
|
|
|
readonly SHOW_TEXT: number;
|
|
|
};
|
|
|
|
|
|
/** An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order. */
|
|
|
interface NodeIterator {
|
|
|
readonly filter: NodeFilter | null;
|
|
|
readonly pointerBeforeReferenceNode: boolean;
|
|
|
readonly referenceNode: Node;
|
|
|
readonly root: Node;
|
|
|
readonly whatToShow: number;
|
|
|
detach(): void;
|
|
|
nextNode(): Node | null;
|
|
|
previousNode(): Node | null;
|
|
|
}
|
|
|
|
|
|
declare var NodeIterator: {
|
|
|
prototype: NodeIterator;
|
|
|
new(): NodeIterator;
|
|
|
};
|
|
|
|
|
|
/** NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). */
|
|
|
interface NodeList {
|
|
|
/**
|
|
|
* Returns the number of nodes in the collection.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Returns the node with index index from the collection. The nodes are sorted in tree order.
|
|
|
*/
|
|
|
item(index: number): Node | null;
|
|
|
/**
|
|
|
* Performs the specified action for each node in an list.
|
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;
|
|
|
[index: number]: Node;
|
|
|
}
|
|
|
|
|
|
declare var NodeList: {
|
|
|
prototype: NodeList;
|
|
|
new(): NodeList;
|
|
|
};
|
|
|
|
|
|
interface NodeListOf<TNode extends Node> extends NodeList {
|
|
|
length: number;
|
|
|
item(index: number): TNode;
|
|
|
/**
|
|
|
* Performs the specified action for each node in an list.
|
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;
|
|
|
[index: number]: TNode;
|
|
|
}
|
|
|
|
|
|
interface NonDocumentTypeChildNode {
|
|
|
/**
|
|
|
* Returns the first following sibling that is an element, and null otherwise.
|
|
|
*/
|
|
|
readonly nextElementSibling: Element | null;
|
|
|
/**
|
|
|
* Returns the first preceding sibling that is an element, and null otherwise.
|
|
|
*/
|
|
|
readonly previousElementSibling: Element | null;
|
|
|
}
|
|
|
|
|
|
interface NonElementParentNode {
|
|
|
/**
|
|
|
* Returns the first element within node's descendants whose ID is elementId.
|
|
|
*/
|
|
|
getElementById(elementId: string): Element | null;
|
|
|
}
|
|
|
|
|
|
interface NotificationEventMap {
|
|
|
"click": Event;
|
|
|
"close": Event;
|
|
|
"error": Event;
|
|
|
"show": Event;
|
|
|
}
|
|
|
|
|
|
/** This Notifications API interface is used to configure and display desktop notifications to the user. */
|
|
|
interface Notification extends EventTarget {
|
|
|
readonly actions: ReadonlyArray<NotificationAction>;
|
|
|
readonly badge: string;
|
|
|
readonly body: string;
|
|
|
readonly data: any;
|
|
|
readonly dir: NotificationDirection;
|
|
|
readonly icon: string;
|
|
|
readonly image: string;
|
|
|
readonly lang: string;
|
|
|
onclick: ((this: Notification, ev: Event) => any) | null;
|
|
|
onclose: ((this: Notification, ev: Event) => any) | null;
|
|
|
onerror: ((this: Notification, ev: Event) => any) | null;
|
|
|
onshow: ((this: Notification, ev: Event) => any) | null;
|
|
|
readonly renotify: boolean;
|
|
|
readonly requireInteraction: boolean;
|
|
|
readonly silent: boolean;
|
|
|
readonly tag: string;
|
|
|
readonly timestamp: number;
|
|
|
readonly title: string;
|
|
|
readonly vibrate: ReadonlyArray<number>;
|
|
|
close(): void;
|
|
|
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var Notification: {
|
|
|
prototype: Notification;
|
|
|
new(title: string, options?: NotificationOptions): Notification;
|
|
|
readonly maxActions: number;
|
|
|
readonly permission: NotificationPermission;
|
|
|
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
|
|
|
};
|
|
|
|
|
|
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
|
|
|
interface OES_element_index_uint {
|
|
|
}
|
|
|
|
|
|
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
|
|
|
interface OES_standard_derivatives {
|
|
|
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
|
|
|
}
|
|
|
|
|
|
/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
|
|
|
interface OES_texture_float {
|
|
|
}
|
|
|
|
|
|
/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
|
|
|
interface OES_texture_float_linear {
|
|
|
}
|
|
|
|
|
|
/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */
|
|
|
interface OES_texture_half_float {
|
|
|
readonly HALF_FLOAT_OES: GLenum;
|
|
|
}
|
|
|
|
|
|
/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */
|
|
|
interface OES_texture_half_float_linear {
|
|
|
}
|
|
|
|
|
|
interface OES_vertex_array_object {
|
|
|
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
|
|
|
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
|
|
|
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
|
|
|
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
|
|
|
readonly VERTEX_ARRAY_BINDING_OES: GLenum;
|
|
|
}
|
|
|
|
|
|
/** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */
|
|
|
interface OfflineAudioCompletionEvent extends Event {
|
|
|
readonly renderedBuffer: AudioBuffer;
|
|
|
}
|
|
|
|
|
|
declare var OfflineAudioCompletionEvent: {
|
|
|
prototype: OfflineAudioCompletionEvent;
|
|
|
new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;
|
|
|
};
|
|
|
|
|
|
interface OfflineAudioContextEventMap extends BaseAudioContextEventMap {
|
|
|
"complete": OfflineAudioCompletionEvent;
|
|
|
}
|
|
|
|
|
|
/** An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer. */
|
|
|
interface OfflineAudioContext extends BaseAudioContext {
|
|
|
readonly length: number;
|
|
|
oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;
|
|
|
resume(): Promise<void>;
|
|
|
startRendering(): Promise<AudioBuffer>;
|
|
|
suspend(suspendTime: number): Promise<void>;
|
|
|
addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var OfflineAudioContext: {
|
|
|
prototype: OfflineAudioContext;
|
|
|
new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;
|
|
|
new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
|
|
|
};
|
|
|
|
|
|
interface OffscreenCanvas extends EventTarget {
|
|
|
/**
|
|
|
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
|
|
|
*
|
|
|
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
|
|
|
*/
|
|
|
height: number;
|
|
|
/**
|
|
|
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
|
|
|
*
|
|
|
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
|
|
|
*/
|
|
|
width: number;
|
|
|
/**
|
|
|
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
|
|
|
*
|
|
|
* The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
|
|
|
*/
|
|
|
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
|
|
|
/**
|
|
|
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
|
|
|
*
|
|
|
* This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
|
|
|
*
|
|
|
* Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
|
|
|
*/
|
|
|
getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): OffscreenCanvasRenderingContext2D | null;
|
|
|
getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
|
|
|
getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
|
|
|
getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
|
|
|
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
|
/**
|
|
|
* Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.
|
|
|
*/
|
|
|
transferToImageBitmap(): ImageBitmap;
|
|
|
}
|
|
|
|
|
|
declare var OffscreenCanvas: {
|
|
|
prototype: OffscreenCanvas;
|
|
|
new(width: number, height: number): OffscreenCanvas;
|
|
|
};
|
|
|
|
|
|
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
|
|
|
readonly canvas: OffscreenCanvas;
|
|
|
commit(): void;
|
|
|
}
|
|
|
|
|
|
declare var OffscreenCanvasRenderingContext2D: {
|
|
|
prototype: OffscreenCanvasRenderingContext2D;
|
|
|
new(): OffscreenCanvasRenderingContext2D;
|
|
|
};
|
|
|
|
|
|
/** The OscillatorNode\xA0interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency\xA0of a given wave to be created\u2014in effect, a constant tone. */
|
|
|
interface OscillatorNode extends AudioScheduledSourceNode {
|
|
|
readonly detune: AudioParam;
|
|
|
readonly frequency: AudioParam;
|
|
|
type: OscillatorType;
|
|
|
setPeriodicWave(periodicWave: PeriodicWave): void;
|
|
|
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var OscillatorNode: {
|
|
|
prototype: OscillatorNode;
|
|
|
new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;
|
|
|
};
|
|
|
|
|
|
interface OverconstrainedError extends Error {
|
|
|
constraint: string;
|
|
|
}
|
|
|
|
|
|
declare var OverconstrainedError: {
|
|
|
prototype: OverconstrainedError;
|
|
|
new(): OverconstrainedError;
|
|
|
};
|
|
|
|
|
|
interface OverflowEvent extends UIEvent {
|
|
|
readonly horizontalOverflow: boolean;
|
|
|
readonly orient: number;
|
|
|
readonly verticalOverflow: boolean;
|
|
|
readonly BOTH: number;
|
|
|
readonly HORIZONTAL: number;
|
|
|
readonly VERTICAL: number;
|
|
|
}
|
|
|
|
|
|
declare var OverflowEvent: {
|
|
|
prototype: OverflowEvent;
|
|
|
new(): OverflowEvent;
|
|
|
readonly BOTH: number;
|
|
|
readonly HORIZONTAL: number;
|
|
|
readonly VERTICAL: number;
|
|
|
};
|
|
|
|
|
|
/** The PageTransitionEvent is fired when a document is being loaded or unloaded. */
|
|
|
interface PageTransitionEvent extends Event {
|
|
|
readonly persisted: boolean;
|
|
|
}
|
|
|
|
|
|
declare var PageTransitionEvent: {
|
|
|
prototype: PageTransitionEvent;
|
|
|
new(): PageTransitionEvent;
|
|
|
};
|
|
|
|
|
|
/** A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can't have panning effects without at least two audio channels! */
|
|
|
interface PannerNode extends AudioNode {
|
|
|
coneInnerAngle: number;
|
|
|
coneOuterAngle: number;
|
|
|
coneOuterGain: number;
|
|
|
distanceModel: DistanceModelType;
|
|
|
maxDistance: number;
|
|
|
readonly orientationX: AudioParam;
|
|
|
readonly orientationY: AudioParam;
|
|
|
readonly orientationZ: AudioParam;
|
|
|
panningModel: PanningModelType;
|
|
|
readonly positionX: AudioParam;
|
|
|
readonly positionY: AudioParam;
|
|
|
readonly positionZ: AudioParam;
|
|
|
refDistance: number;
|
|
|
rolloffFactor: number;
|
|
|
/** @deprecated */
|
|
|
setOrientation(x: number, y: number, z: number): void;
|
|
|
/** @deprecated */
|
|
|
setPosition(x: number, y: number, z: number): void;
|
|
|
}
|
|
|
|
|
|
declare var PannerNode: {
|
|
|
prototype: PannerNode;
|
|
|
new(context: BaseAudioContext, options?: PannerOptions): PannerNode;
|
|
|
};
|
|
|
|
|
|
interface ParentNode {
|
|
|
readonly childElementCount: number;
|
|
|
/**
|
|
|
* Returns the child elements.
|
|
|
*/
|
|
|
readonly children: HTMLCollection;
|
|
|
/**
|
|
|
* Returns the first child that is an element, and null otherwise.
|
|
|
*/
|
|
|
readonly firstElementChild: Element | null;
|
|
|
/**
|
|
|
* Returns the last child that is an element, and null otherwise.
|
|
|
*/
|
|
|
readonly lastElementChild: Element | null;
|
|
|
/**
|
|
|
* Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
|
*
|
|
|
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
|
|
|
*/
|
|
|
append(...nodes: (Node | string)[]): void;
|
|
|
/**
|
|
|
* Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
|
*
|
|
|
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
|
|
|
*/
|
|
|
prepend(...nodes: (Node | string)[]): void;
|
|
|
/**
|
|
|
* Returns the first element that is a descendant of node that matches selectors.
|
|
|
*/
|
|
|
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
|
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
|
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
|
/**
|
|
|
* Returns all element descendants of node that match selectors.
|
|
|
*/
|
|
|
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
|
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
|
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
|
}
|
|
|
|
|
|
/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */
|
|
|
interface Path2D extends CanvasPath {
|
|
|
/**
|
|
|
* Adds to the path the path given by the argument.
|
|
|
*/
|
|
|
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
|
|
|
}
|
|
|
|
|
|
declare var Path2D: {
|
|
|
prototype: Path2D;
|
|
|
new(path?: Path2D | string): Path2D;
|
|
|
};
|
|
|
|
|
|
/** This Payment Request API interface is used to store shipping or payment address information. */
|
|
|
interface PaymentAddress {
|
|
|
readonly addressLine: string[];
|
|
|
readonly city: string;
|
|
|
readonly country: string;
|
|
|
readonly dependentLocality: string;
|
|
|
readonly languageCode: string;
|
|
|
readonly organization: string;
|
|
|
readonly phone: string;
|
|
|
readonly postalCode: string;
|
|
|
readonly recipient: string;
|
|
|
readonly region: string;
|
|
|
readonly sortingCode: string;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var PaymentAddress: {
|
|
|
prototype: PaymentAddress;
|
|
|
new(): PaymentAddress;
|
|
|
};
|
|
|
|
|
|
interface PaymentRequestEventMap {
|
|
|
"shippingaddresschange": Event;
|
|
|
"shippingoptionchange": Event;
|
|
|
}
|
|
|
|
|
|
/** This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user. */
|
|
|
interface PaymentRequest extends EventTarget {
|
|
|
readonly id: string;
|
|
|
onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null;
|
|
|
onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null;
|
|
|
readonly shippingAddress: PaymentAddress | null;
|
|
|
readonly shippingOption: string | null;
|
|
|
readonly shippingType: PaymentShippingType | null;
|
|
|
abort(): Promise<void>;
|
|
|
canMakePayment(): Promise<boolean>;
|
|
|
show(): Promise<PaymentResponse>;
|
|
|
addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var PaymentRequest: {
|
|
|
prototype: PaymentRequest;
|
|
|
new(methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions): PaymentRequest;
|
|
|
};
|
|
|
|
|
|
/** This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action. */
|
|
|
interface PaymentRequestUpdateEvent extends Event {
|
|
|
updateWith(detailsPromise: PaymentDetailsUpdate | Promise<PaymentDetailsUpdate>): void;
|
|
|
}
|
|
|
|
|
|
declare var PaymentRequestUpdateEvent: {
|
|
|
prototype: PaymentRequestUpdateEvent;
|
|
|
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
|
|
|
};
|
|
|
|
|
|
/** This Payment Request API interface is returned after a user selects a payment method and approves a payment request. */
|
|
|
interface PaymentResponse {
|
|
|
readonly details: any;
|
|
|
readonly methodName: string;
|
|
|
readonly payerEmail: string | null;
|
|
|
readonly payerName: string | null;
|
|
|
readonly payerPhone: string | null;
|
|
|
readonly requestId: string;
|
|
|
readonly shippingAddress: PaymentAddress | null;
|
|
|
readonly shippingOption: string | null;
|
|
|
complete(result?: PaymentComplete): Promise<void>;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var PaymentResponse: {
|
|
|
prototype: PaymentResponse;
|
|
|
new(): PaymentResponse;
|
|
|
};
|
|
|
|
|
|
interface PerfWidgetExternal {
|
|
|
readonly activeNetworkRequestCount: number;
|
|
|
readonly averageFrameTime: number;
|
|
|
readonly averagePaintTime: number;
|
|
|
readonly extraInformationEnabled: boolean;
|
|
|
readonly independentRenderingEnabled: boolean;
|
|
|
readonly irDisablingContentString: string;
|
|
|
readonly irStatusAvailable: boolean;
|
|
|
readonly maxCpuSpeed: number;
|
|
|
readonly paintRequestsPerSecond: number;
|
|
|
readonly performanceCounter: number;
|
|
|
readonly performanceCounterFrequency: number;
|
|
|
addEventListener(eventType: string, callback: Function): void;
|
|
|
getMemoryUsage(): number;
|
|
|
getProcessCpuUsage(): number;
|
|
|
getRecentCpuUsage(last: number | null): any;
|
|
|
getRecentFrames(last: number | null): any;
|
|
|
getRecentMemoryUsage(last: number | null): any;
|
|
|
getRecentPaintRequests(last: number | null): any;
|
|
|
removeEventListener(eventType: string, callback: Function): void;
|
|
|
repositionWindow(x: number, y: number): void;
|
|
|
resizeWindow(width: number, height: number): void;
|
|
|
}
|
|
|
|
|
|
declare var PerfWidgetExternal: {
|
|
|
prototype: PerfWidgetExternal;
|
|
|
new(): PerfWidgetExternal;
|
|
|
};
|
|
|
|
|
|
interface PerformanceEventMap {
|
|
|
"resourcetimingbufferfull": Event;
|
|
|
}
|
|
|
|
|
|
/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
|
|
|
interface Performance extends EventTarget {
|
|
|
/** @deprecated */
|
|
|
readonly navigation: PerformanceNavigation;
|
|
|
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
|
|
|
readonly timeOrigin: number;
|
|
|
/** @deprecated */
|
|
|
readonly timing: PerformanceTiming;
|
|
|
clearMarks(markName?: string): void;
|
|
|
clearMeasures(measureName?: string): void;
|
|
|
clearResourceTimings(): void;
|
|
|
getEntries(): PerformanceEntryList;
|
|
|
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
|
getEntriesByType(type: string): PerformanceEntryList;
|
|
|
mark(markName: string): void;
|
|
|
measure(measureName: string, startMark?: string, endMark?: string): void;
|
|
|
now(): number;
|
|
|
setResourceTimingBufferSize(maxSize: number): void;
|
|
|
toJSON(): any;
|
|
|
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var Performance: {
|
|
|
prototype: Performance;
|
|
|
new(): Performance;
|
|
|
};
|
|
|
|
|
|
/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
|
|
|
interface PerformanceEntry {
|
|
|
readonly duration: number;
|
|
|
readonly entryType: string;
|
|
|
readonly name: string;
|
|
|
readonly startTime: number;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceEntry: {
|
|
|
prototype: PerformanceEntry;
|
|
|
new(): PerformanceEntry;
|
|
|
};
|
|
|
|
|
|
/** PerformanceMark\xA0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
|
|
|
interface PerformanceMark extends PerformanceEntry {
|
|
|
}
|
|
|
|
|
|
declare var PerformanceMark: {
|
|
|
prototype: PerformanceMark;
|
|
|
new(): PerformanceMark;
|
|
|
};
|
|
|
|
|
|
/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
|
|
|
interface PerformanceMeasure extends PerformanceEntry {
|
|
|
}
|
|
|
|
|
|
declare var PerformanceMeasure: {
|
|
|
prototype: PerformanceMeasure;
|
|
|
new(): PerformanceMeasure;
|
|
|
};
|
|
|
|
|
|
/** The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done. */
|
|
|
interface PerformanceNavigation {
|
|
|
readonly redirectCount: number;
|
|
|
readonly type: number;
|
|
|
toJSON(): any;
|
|
|
readonly TYPE_BACK_FORWARD: number;
|
|
|
readonly TYPE_NAVIGATE: number;
|
|
|
readonly TYPE_RELOAD: number;
|
|
|
readonly TYPE_RESERVED: number;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceNavigation: {
|
|
|
prototype: PerformanceNavigation;
|
|
|
new(): PerformanceNavigation;
|
|
|
readonly TYPE_BACK_FORWARD: number;
|
|
|
readonly TYPE_NAVIGATE: number;
|
|
|
readonly TYPE_RELOAD: number;
|
|
|
readonly TYPE_RESERVED: number;
|
|
|
};
|
|
|
|
|
|
/** Provides methods and properties to store and retrieve metrics regarding the browser's document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document. */
|
|
|
interface PerformanceNavigationTiming extends PerformanceResourceTiming {
|
|
|
readonly domComplete: number;
|
|
|
readonly domContentLoadedEventEnd: number;
|
|
|
readonly domContentLoadedEventStart: number;
|
|
|
readonly domInteractive: number;
|
|
|
readonly loadEventEnd: number;
|
|
|
readonly loadEventStart: number;
|
|
|
readonly redirectCount: number;
|
|
|
readonly type: NavigationType;
|
|
|
readonly unloadEventEnd: number;
|
|
|
readonly unloadEventStart: number;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceNavigationTiming: {
|
|
|
prototype: PerformanceNavigationTiming;
|
|
|
new(): PerformanceNavigationTiming;
|
|
|
};
|
|
|
|
|
|
interface PerformanceObserver {
|
|
|
disconnect(): void;
|
|
|
observe(options?: PerformanceObserverInit): void;
|
|
|
takeRecords(): PerformanceEntryList;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceObserver: {
|
|
|
prototype: PerformanceObserver;
|
|
|
new(callback: PerformanceObserverCallback): PerformanceObserver;
|
|
|
readonly supportedEntryTypes: ReadonlyArray<string>;
|
|
|
};
|
|
|
|
|
|
interface PerformanceObserverEntryList {
|
|
|
getEntries(): PerformanceEntryList;
|
|
|
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
|
getEntriesByType(type: string): PerformanceEntryList;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceObserverEntryList: {
|
|
|
prototype: PerformanceObserverEntryList;
|
|
|
new(): PerformanceObserverEntryList;
|
|
|
};
|
|
|
|
|
|
/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */
|
|
|
interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
readonly connectEnd: number;
|
|
|
readonly connectStart: number;
|
|
|
readonly decodedBodySize: number;
|
|
|
readonly domainLookupEnd: number;
|
|
|
readonly domainLookupStart: number;
|
|
|
readonly encodedBodySize: number;
|
|
|
readonly fetchStart: number;
|
|
|
readonly initiatorType: string;
|
|
|
readonly nextHopProtocol: string;
|
|
|
readonly redirectEnd: number;
|
|
|
readonly redirectStart: number;
|
|
|
readonly requestStart: number;
|
|
|
readonly responseEnd: number;
|
|
|
readonly responseStart: number;
|
|
|
readonly secureConnectionStart: number;
|
|
|
readonly transferSize: number;
|
|
|
readonly workerStart: number;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceResourceTiming: {
|
|
|
prototype: PerformanceResourceTiming;
|
|
|
new(): PerformanceResourceTiming;
|
|
|
};
|
|
|
|
|
|
/** A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property. */
|
|
|
interface PerformanceTiming {
|
|
|
readonly connectEnd: number;
|
|
|
readonly connectStart: number;
|
|
|
readonly domComplete: number;
|
|
|
readonly domContentLoadedEventEnd: number;
|
|
|
readonly domContentLoadedEventStart: number;
|
|
|
readonly domInteractive: number;
|
|
|
readonly domLoading: number;
|
|
|
readonly domainLookupEnd: number;
|
|
|
readonly domainLookupStart: number;
|
|
|
readonly fetchStart: number;
|
|
|
readonly loadEventEnd: number;
|
|
|
readonly loadEventStart: number;
|
|
|
readonly navigationStart: number;
|
|
|
readonly redirectEnd: number;
|
|
|
readonly redirectStart: number;
|
|
|
readonly requestStart: number;
|
|
|
readonly responseEnd: number;
|
|
|
readonly responseStart: number;
|
|
|
readonly secureConnectionStart: number;
|
|
|
readonly unloadEventEnd: number;
|
|
|
readonly unloadEventStart: number;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var PerformanceTiming: {
|
|
|
prototype: PerformanceTiming;
|
|
|
new(): PerformanceTiming;
|
|
|
};
|
|
|
|
|
|
/** PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave(). */
|
|
|
interface PeriodicWave {
|
|
|
}
|
|
|
|
|
|
declare var PeriodicWave: {
|
|
|
prototype: PeriodicWave;
|
|
|
new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;
|
|
|
};
|
|
|
|
|
|
interface PermissionRequest extends DeferredPermissionRequest {
|
|
|
readonly state: MSWebViewPermissionState;
|
|
|
defer(): void;
|
|
|
}
|
|
|
|
|
|
declare var PermissionRequest: {
|
|
|
prototype: PermissionRequest;
|
|
|
new(): PermissionRequest;
|
|
|
};
|
|
|
|
|
|
interface PermissionRequestedEvent extends Event {
|
|
|
readonly permissionRequest: PermissionRequest;
|
|
|
}
|
|
|
|
|
|
declare var PermissionRequestedEvent: {
|
|
|
prototype: PermissionRequestedEvent;
|
|
|
new(): PermissionRequestedEvent;
|
|
|
};
|
|
|
|
|
|
interface PermissionStatusEventMap {
|
|
|
"change": Event;
|
|
|
}
|
|
|
|
|
|
interface PermissionStatus extends EventTarget {
|
|
|
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
|
|
|
readonly state: PermissionState;
|
|
|
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var PermissionStatus: {
|
|
|
prototype: PermissionStatus;
|
|
|
new(): PermissionStatus;
|
|
|
};
|
|
|
|
|
|
interface Permissions {
|
|
|
query(permissionDesc: PermissionDescriptor | DevicePermissionDescriptor | MidiPermissionDescriptor | PushPermissionDescriptor): Promise<PermissionStatus>;
|
|
|
}
|
|
|
|
|
|
declare var Permissions: {
|
|
|
prototype: Permissions;
|
|
|
new(): Permissions;
|
|
|
};
|
|
|
|
|
|
/** Provides information about a browser plugin. */
|
|
|
interface Plugin {
|
|
|
/**
|
|
|
* Returns the plugin's description.
|
|
|
*/
|
|
|
readonly description: string;
|
|
|
/**
|
|
|
* Returns the plugin library's filename, if applicable on the current platform.
|
|
|
*/
|
|
|
readonly filename: string;
|
|
|
/**
|
|
|
* Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Returns the plugin's name.
|
|
|
*/
|
|
|
readonly name: string;
|
|
|
/**
|
|
|
* Returns the specified MimeType object.
|
|
|
*/
|
|
|
item(index: number): MimeType | null;
|
|
|
namedItem(name: string): MimeType | null;
|
|
|
[index: number]: MimeType;
|
|
|
}
|
|
|
|
|
|
declare var Plugin: {
|
|
|
prototype: Plugin;
|
|
|
new(): Plugin;
|
|
|
};
|
|
|
|
|
|
/** Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins\xA0property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods. */
|
|
|
interface PluginArray {
|
|
|
readonly length: number;
|
|
|
item(index: number): Plugin | null;
|
|
|
namedItem(name: string): Plugin | null;
|
|
|
refresh(reload?: boolean): void;
|
|
|
[index: number]: Plugin;
|
|
|
}
|
|
|
|
|
|
declare var PluginArray: {
|
|
|
prototype: PluginArray;
|
|
|
new(): PluginArray;
|
|
|
};
|
|
|
|
|
|
/** The state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc. */
|
|
|
interface PointerEvent extends MouseEvent {
|
|
|
readonly height: number;
|
|
|
readonly isPrimary: boolean;
|
|
|
readonly pointerId: number;
|
|
|
readonly pointerType: string;
|
|
|
readonly pressure: number;
|
|
|
readonly tangentialPressure: number;
|
|
|
readonly tiltX: number;
|
|
|
readonly tiltY: number;
|
|
|
readonly twist: number;
|
|
|
readonly width: number;
|
|
|
}
|
|
|
|
|
|
declare var PointerEvent: {
|
|
|
prototype: PointerEvent;
|
|
|
new(type: string, eventInitDict?: PointerEventInit): PointerEvent;
|
|
|
};
|
|
|
|
|
|
/** PopStateEvent is an event handler for the popstate event on the window. */
|
|
|
interface PopStateEvent extends Event {
|
|
|
readonly state: any;
|
|
|
}
|
|
|
|
|
|
declare var PopStateEvent: {
|
|
|
prototype: PopStateEvent;
|
|
|
new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
|
|
|
};
|
|
|
|
|
|
/** The position of the concerned device at a given time. The position, represented by a Coordinates object, comprehends the 2D position of the device, on a spheroid representing the Earth, but also its altitude and its speed. */
|
|
|
interface Position {
|
|
|
readonly coords: Coordinates;
|
|
|
readonly timestamp: number;
|
|
|
}
|
|
|
|
|
|
/** The reason of an error occurring when using the geolocating device. */
|
|
|
interface PositionError {
|
|
|
readonly code: number;
|
|
|
readonly message: string;
|
|
|
readonly PERMISSION_DENIED: number;
|
|
|
readonly POSITION_UNAVAILABLE: number;
|
|
|
readonly TIMEOUT: number;
|
|
|
}
|
|
|
|
|
|
/** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. */
|
|
|
interface ProcessingInstruction extends CharacterData {
|
|
|
readonly target: string;
|
|
|
}
|
|
|
|
|
|
declare var ProcessingInstruction: {
|
|
|
prototype: ProcessingInstruction;
|
|
|
new(): ProcessingInstruction;
|
|
|
};
|
|
|
|
|
|
/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */
|
|
|
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
|
|
|
readonly lengthComputable: boolean;
|
|
|
readonly loaded: number;
|
|
|
readonly target: T | null;
|
|
|
readonly total: number;
|
|
|
}
|
|
|
|
|
|
declare var ProgressEvent: {
|
|
|
prototype: ProgressEvent;
|
|
|
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
|
|
|
};
|
|
|
|
|
|
interface PromiseRejectionEvent extends Event {
|
|
|
readonly promise: Promise<any>;
|
|
|
readonly reason: any;
|
|
|
}
|
|
|
|
|
|
declare var PromiseRejectionEvent: {
|
|
|
prototype: PromiseRejectionEvent;
|
|
|
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
|
|
|
};
|
|
|
|
|
|
interface PublicKeyCredential extends Credential {
|
|
|
readonly rawId: ArrayBuffer;
|
|
|
readonly response: AuthenticatorResponse;
|
|
|
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
|
|
|
}
|
|
|
|
|
|
declare var PublicKeyCredential: {
|
|
|
prototype: PublicKeyCredential;
|
|
|
new(): PublicKeyCredential;
|
|
|
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
|
|
|
};
|
|
|
|
|
|
/** This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. */
|
|
|
interface PushManager {
|
|
|
getSubscription(): Promise<PushSubscription | null>;
|
|
|
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
|
|
|
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
|
|
|
}
|
|
|
|
|
|
declare var PushManager: {
|
|
|
prototype: PushManager;
|
|
|
new(): PushManager;
|
|
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
|
};
|
|
|
|
|
|
/** This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service. */
|
|
|
interface PushSubscription {
|
|
|
readonly endpoint: string;
|
|
|
readonly expirationTime: number | null;
|
|
|
readonly options: PushSubscriptionOptions;
|
|
|
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
|
|
|
toJSON(): PushSubscriptionJSON;
|
|
|
unsubscribe(): Promise<boolean>;
|
|
|
}
|
|
|
|
|
|
declare var PushSubscription: {
|
|
|
prototype: PushSubscription;
|
|
|
new(): PushSubscription;
|
|
|
};
|
|
|
|
|
|
interface PushSubscriptionOptions {
|
|
|
readonly applicationServerKey: ArrayBuffer | null;
|
|
|
readonly userVisibleOnly: boolean;
|
|
|
}
|
|
|
|
|
|
declare var PushSubscriptionOptions: {
|
|
|
prototype: PushSubscriptionOptions;
|
|
|
new(): PushSubscriptionOptions;
|
|
|
};
|
|
|
|
|
|
interface RTCCertificate {
|
|
|
readonly expires: number;
|
|
|
getFingerprints(): RTCDtlsFingerprint[];
|
|
|
}
|
|
|
|
|
|
declare var RTCCertificate: {
|
|
|
prototype: RTCCertificate;
|
|
|
new(): RTCCertificate;
|
|
|
getSupportedAlgorithms(): AlgorithmIdentifier[];
|
|
|
};
|
|
|
|
|
|
interface RTCDTMFSenderEventMap {
|
|
|
"tonechange": RTCDTMFToneChangeEvent;
|
|
|
}
|
|
|
|
|
|
interface RTCDTMFSender extends EventTarget {
|
|
|
readonly canInsertDTMF: boolean;
|
|
|
ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;
|
|
|
readonly toneBuffer: string;
|
|
|
insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
|
|
|
addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCDTMFSender: {
|
|
|
prototype: RTCDTMFSender;
|
|
|
new(): RTCDTMFSender;
|
|
|
};
|
|
|
|
|
|
/** Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. */
|
|
|
interface RTCDTMFToneChangeEvent extends Event {
|
|
|
readonly tone: string;
|
|
|
}
|
|
|
|
|
|
declare var RTCDTMFToneChangeEvent: {
|
|
|
prototype: RTCDTMFToneChangeEvent;
|
|
|
new(type: string, eventInitDict: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
|
|
|
};
|
|
|
|
|
|
interface RTCDataChannelEventMap {
|
|
|
"bufferedamountlow": Event;
|
|
|
"close": Event;
|
|
|
"error": RTCErrorEvent;
|
|
|
"message": MessageEvent;
|
|
|
"open": Event;
|
|
|
}
|
|
|
|
|
|
interface RTCDataChannel extends EventTarget {
|
|
|
binaryType: string;
|
|
|
readonly bufferedAmount: number;
|
|
|
bufferedAmountLowThreshold: number;
|
|
|
readonly id: number | null;
|
|
|
readonly label: string;
|
|
|
readonly maxPacketLifeTime: number | null;
|
|
|
readonly maxRetransmits: number | null;
|
|
|
readonly negotiated: boolean;
|
|
|
onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
|
onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
|
onerror: ((this: RTCDataChannel, ev: RTCErrorEvent) => any) | null;
|
|
|
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
|
|
|
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
|
|
|
readonly ordered: boolean;
|
|
|
readonly priority: RTCPriorityType;
|
|
|
readonly protocol: string;
|
|
|
readonly readyState: RTCDataChannelState;
|
|
|
close(): void;
|
|
|
send(data: string): void;
|
|
|
send(data: Blob): void;
|
|
|
send(data: ArrayBuffer): void;
|
|
|
send(data: ArrayBufferView): void;
|
|
|
addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCDataChannel: {
|
|
|
prototype: RTCDataChannel;
|
|
|
new(): RTCDataChannel;
|
|
|
};
|
|
|
|
|
|
interface RTCDataChannelEvent extends Event {
|
|
|
readonly channel: RTCDataChannel;
|
|
|
}
|
|
|
|
|
|
declare var RTCDataChannelEvent: {
|
|
|
prototype: RTCDataChannelEvent;
|
|
|
new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;
|
|
|
};
|
|
|
|
|
|
interface RTCDtlsTransportEventMap {
|
|
|
"error": RTCErrorEvent;
|
|
|
"statechange": Event;
|
|
|
}
|
|
|
|
|
|
interface RTCDtlsTransport extends EventTarget {
|
|
|
onerror: ((this: RTCDtlsTransport, ev: RTCErrorEvent) => any) | null;
|
|
|
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
|
|
|
readonly state: RTCDtlsTransportState;
|
|
|
readonly transport: RTCIceTransport;
|
|
|
getRemoteCertificates(): ArrayBuffer[];
|
|
|
addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCDtlsTransport: {
|
|
|
prototype: RTCDtlsTransport;
|
|
|
new(): RTCDtlsTransport;
|
|
|
};
|
|
|
|
|
|
interface RTCDtlsTransportStateChangedEvent extends Event {
|
|
|
readonly state: RTCDtlsTransportState;
|
|
|
}
|
|
|
|
|
|
declare var RTCDtlsTransportStateChangedEvent: {
|
|
|
prototype: RTCDtlsTransportStateChangedEvent;
|
|
|
new(): RTCDtlsTransportStateChangedEvent;
|
|
|
};
|
|
|
|
|
|
interface RTCDtmfSenderEventMap {
|
|
|
"tonechange": RTCDTMFToneChangeEvent;
|
|
|
}
|
|
|
|
|
|
interface RTCDtmfSender extends EventTarget {
|
|
|
readonly canInsertDTMF: boolean;
|
|
|
readonly duration: number;
|
|
|
readonly interToneGap: number;
|
|
|
ontonechange: ((this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any) | null;
|
|
|
readonly sender: RTCRtpSender;
|
|
|
readonly toneBuffer: string;
|
|
|
insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
|
|
|
addEventListener<K extends keyof RTCDtmfSenderEventMap>(type: K, listener: (this: RTCDtmfSender, ev: RTCDtmfSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof RTCDtmfSenderEventMap>(type: K, listener: (this: RTCDtmfSender, ev: RTCDtmfSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCDtmfSender: {
|
|
|
prototype: RTCDtmfSender;
|
|
|
new(sender: RTCRtpSender): RTCDtmfSender;
|
|
|
};
|
|
|
|
|
|
interface RTCError extends Error {
|
|
|
errorDetail: string;
|
|
|
httpRequestStatusCode: number;
|
|
|
message: string;
|
|
|
name: string;
|
|
|
receivedAlert: number | null;
|
|
|
sctpCauseCode: number;
|
|
|
sdpLineNumber: number;
|
|
|
sentAlert: number | null;
|
|
|
}
|
|
|
|
|
|
declare var RTCError: {
|
|
|
prototype: RTCError;
|
|
|
new(errorDetail?: string, message?: string): RTCError;
|
|
|
};
|
|
|
|
|
|
interface RTCErrorEvent extends Event {
|
|
|
readonly error: RTCError | null;
|
|
|
}
|
|
|
|
|
|
declare var RTCErrorEvent: {
|
|
|
prototype: RTCErrorEvent;
|
|
|
new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;
|
|
|
};
|
|
|
|
|
|
/** The RTCIceCandidate interface\u2014part of the WebRTC API\u2014represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */
|
|
|
interface RTCIceCandidate {
|
|
|
readonly candidate: string;
|
|
|
readonly component: RTCIceComponent | null;
|
|
|
readonly foundation: string | null;
|
|
|
readonly ip: string | null;
|
|
|
readonly port: number | null;
|
|
|
readonly priority: number | null;
|
|
|
readonly protocol: RTCIceProtocol | null;
|
|
|
readonly relatedAddress: string | null;
|
|
|
readonly relatedPort: number | null;
|
|
|
readonly sdpMLineIndex: number | null;
|
|
|
readonly sdpMid: string | null;
|
|
|
readonly tcpType: RTCIceTcpCandidateType | null;
|
|
|
readonly type: RTCIceCandidateType | null;
|
|
|
readonly usernameFragment: string | null;
|
|
|
toJSON(): RTCIceCandidateInit;
|
|
|
}
|
|
|
|
|
|
declare var RTCIceCandidate: {
|
|
|
prototype: RTCIceCandidate;
|
|
|
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
|
|
|
};
|
|
|
|
|
|
interface RTCIceCandidatePairChangedEvent extends Event {
|
|
|
readonly pair: RTCIceCandidatePair;
|
|
|
}
|
|
|
|
|
|
declare var RTCIceCandidatePairChangedEvent: {
|
|
|
prototype: RTCIceCandidatePairChangedEvent;
|
|
|
new(): RTCIceCandidatePairChangedEvent;
|
|
|
};
|
|
|
|
|
|
interface RTCIceGathererEventMap {
|
|
|
"error": Event;
|
|
|
"localcandidate": RTCIceGathererEvent;
|
|
|
}
|
|
|
|
|
|
interface RTCIceGatherer extends RTCStatsProvider {
|
|
|
readonly component: RTCIceComponent;
|
|
|
onerror: ((this: RTCIceGatherer, ev: Event) => any) | null;
|
|
|
onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) | null;
|
|
|
createAssociatedGatherer(): RTCIceGatherer;
|
|
|
getLocalCandidates(): RTCIceCandidateDictionary[];
|
|
|
getLocalParameters(): RTCIceParameters;
|
|
|
addEventListener<K extends keyof RTCIceGathererEventMap>(type: K, listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof RTCIceGathererEventMap>(type: K, listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCIceGatherer: {
|
|
|
prototype: RTCIceGatherer;
|
|
|
new(options: RTCIceGatherOptions): RTCIceGatherer;
|
|
|
};
|
|
|
|
|
|
interface RTCIceGathererEvent extends Event {
|
|
|
readonly candidate: RTCIceCandidateDictionary | RTCIceCandidateComplete;
|
|
|
}
|
|
|
|
|
|
declare var RTCIceGathererEvent: {
|
|
|
prototype: RTCIceGathererEvent;
|
|
|
new(): RTCIceGathererEvent;
|
|
|
};
|
|
|
|
|
|
interface RTCIceTransportEventMap {
|
|
|
"gatheringstatechange": Event;
|
|
|
"selectedcandidatepairchange": Event;
|
|
|
"statechange": Event;
|
|
|
}
|
|
|
|
|
|
/** Provides access to information about the ICE transport layer over which the data is being sent and received. */
|
|
|
interface RTCIceTransport extends EventTarget {
|
|
|
readonly component: RTCIceComponent;
|
|
|
readonly gatheringState: RTCIceGathererState;
|
|
|
ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
|
|
|
onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;
|
|
|
onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
|
|
|
readonly role: RTCIceRole;
|
|
|
readonly state: RTCIceTransportState;
|
|
|
getLocalCandidates(): RTCIceCandidate[];
|
|
|
getLocalParameters(): RTCIceParameters | null;
|
|
|
getRemoteCandidates(): RTCIceCandidate[];
|
|
|
getRemoteParameters(): RTCIceParameters | null;
|
|
|
getSelectedCandidatePair(): RTCIceCandidatePair | null;
|
|
|
addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCIceTransport: {
|
|
|
prototype: RTCIceTransport;
|
|
|
new(): RTCIceTransport;
|
|
|
};
|
|
|
|
|
|
interface RTCIceTransportStateChangedEvent extends Event {
|
|
|
readonly state: RTCIceTransportState;
|
|
|
}
|
|
|
|
|
|
declare var RTCIceTransportStateChangedEvent: {
|
|
|
prototype: RTCIceTransportStateChangedEvent;
|
|
|
new(): RTCIceTransportStateChangedEvent;
|
|
|
};
|
|
|
|
|
|
interface RTCIdentityAssertion {
|
|
|
idp: string;
|
|
|
name: string;
|
|
|
}
|
|
|
|
|
|
declare var RTCIdentityAssertion: {
|
|
|
prototype: RTCIdentityAssertion;
|
|
|
new(idp: string, name: string): RTCIdentityAssertion;
|
|
|
};
|
|
|
|
|
|
interface RTCPeerConnectionEventMap {
|
|
|
"connectionstatechange": Event;
|
|
|
"datachannel": RTCDataChannelEvent;
|
|
|
"icecandidate": RTCPeerConnectionIceEvent;
|
|
|
"icecandidateerror": RTCPeerConnectionIceErrorEvent;
|
|
|
"iceconnectionstatechange": Event;
|
|
|
"icegatheringstatechange": Event;
|
|
|
"negotiationneeded": Event;
|
|
|
"signalingstatechange": Event;
|
|
|
"statsended": RTCStatsEvent;
|
|
|
"track": RTCTrackEvent;
|
|
|
}
|
|
|
|
|
|
/** A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it's no longer needed. */
|
|
|
interface RTCPeerConnection extends EventTarget {
|
|
|
readonly canTrickleIceCandidates: boolean | null;
|
|
|
readonly connectionState: RTCPeerConnectionState;
|
|
|
readonly currentLocalDescription: RTCSessionDescription | null;
|
|
|
readonly currentRemoteDescription: RTCSessionDescription | null;
|
|
|
readonly iceConnectionState: RTCIceConnectionState;
|
|
|
readonly iceGatheringState: RTCIceGatheringState;
|
|
|
readonly idpErrorInfo: string | null;
|
|
|
readonly idpLoginUrl: string | null;
|
|
|
readonly localDescription: RTCSessionDescription | null;
|
|
|
onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
|
|
|
ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;
|
|
|
onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;
|
|
|
onicecandidateerror: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any) | null;
|
|
|
oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
|
|
|
onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
|
|
|
onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
|
|
|
onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
|
|
|
onstatsended: ((this: RTCPeerConnection, ev: RTCStatsEvent) => any) | null;
|
|
|
ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
|
|
|
readonly peerIdentity: Promise<RTCIdentityAssertion>;
|
|
|
readonly pendingLocalDescription: RTCSessionDescription | null;
|
|
|
readonly pendingRemoteDescription: RTCSessionDescription | null;
|
|
|
readonly remoteDescription: RTCSessionDescription | null;
|
|
|
readonly sctp: RTCSctpTransport | null;
|
|
|
readonly signalingState: RTCSignalingState;
|
|
|
addIceCandidate(candidate: RTCIceCandidateInit | RTCIceCandidate): Promise<void>;
|
|
|
addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
|
|
|
addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
|
|
|
close(): void;
|
|
|
createAnswer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
|
|
|
createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
|
|
|
createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
|
|
|
getConfiguration(): RTCConfiguration;
|
|
|
getIdentityAssertion(): Promise<string>;
|
|
|
getReceivers(): RTCRtpReceiver[];
|
|
|
getSenders(): RTCRtpSender[];
|
|
|
getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
|
|
|
getTransceivers(): RTCRtpTransceiver[];
|
|
|
removeTrack(sender: RTCRtpSender): void;
|
|
|
setConfiguration(configuration: RTCConfiguration): void;
|
|
|
setIdentityProvider(provider: string, options?: RTCIdentityProviderOptions): void;
|
|
|
setLocalDescription(description: RTCSessionDescriptionInit): Promise<void>;
|
|
|
setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
|
|
|
addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCPeerConnection: {
|
|
|
prototype: RTCPeerConnection;
|
|
|
new(configuration?: RTCConfiguration): RTCPeerConnection;
|
|
|
generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
|
|
|
getDefaultIceServers(): RTCIceServer[];
|
|
|
};
|
|
|
|
|
|
interface RTCPeerConnectionIceErrorEvent extends Event {
|
|
|
readonly errorCode: number;
|
|
|
readonly errorText: string;
|
|
|
readonly hostCandidate: string;
|
|
|
readonly url: string;
|
|
|
}
|
|
|
|
|
|
declare var RTCPeerConnectionIceErrorEvent: {
|
|
|
prototype: RTCPeerConnectionIceErrorEvent;
|
|
|
new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;
|
|
|
};
|
|
|
|
|
|
/** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */
|
|
|
interface RTCPeerConnectionIceEvent extends Event {
|
|
|
readonly candidate: RTCIceCandidate | null;
|
|
|
readonly url: string | null;
|
|
|
}
|
|
|
|
|
|
declare var RTCPeerConnectionIceEvent: {
|
|
|
prototype: RTCPeerConnectionIceEvent;
|
|
|
new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;
|
|
|
};
|
|
|
|
|
|
/** This WebRTC API interface manages the reception and decoding of data for a\xA0MediaStreamTrack on an\xA0RTCPeerConnection. */
|
|
|
interface RTCRtpReceiver {
|
|
|
readonly rtcpTransport: RTCDtlsTransport | null;
|
|
|
readonly track: MediaStreamTrack;
|
|
|
readonly transport: RTCDtlsTransport | null;
|
|
|
getContributingSources(): RTCRtpContributingSource[];
|
|
|
getParameters(): RTCRtpReceiveParameters;
|
|
|
getStats(): Promise<RTCStatsReport>;
|
|
|
getSynchronizationSources(): RTCRtpSynchronizationSource[];
|
|
|
}
|
|
|
|
|
|
declare var RTCRtpReceiver: {
|
|
|
prototype: RTCRtpReceiver;
|
|
|
new(): RTCRtpReceiver;
|
|
|
getCapabilities(kind: string): RTCRtpCapabilities | null;
|
|
|
};
|
|
|
|
|
|
/** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */
|
|
|
interface RTCRtpSender {
|
|
|
readonly dtmf: RTCDTMFSender | null;
|
|
|
readonly rtcpTransport: RTCDtlsTransport | null;
|
|
|
readonly track: MediaStreamTrack | null;
|
|
|
readonly transport: RTCDtlsTransport | null;
|
|
|
getParameters(): RTCRtpSendParameters;
|
|
|
getStats(): Promise<RTCStatsReport>;
|
|
|
replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;
|
|
|
setParameters(parameters: RTCRtpSendParameters): Promise<void>;
|
|
|
setStreams(...streams: MediaStream[]): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCRtpSender: {
|
|
|
prototype: RTCRtpSender;
|
|
|
new(): RTCRtpSender;
|
|
|
getCapabilities(kind: string): RTCRtpCapabilities | null;
|
|
|
};
|
|
|
|
|
|
interface RTCRtpTransceiver {
|
|
|
readonly currentDirection: RTCRtpTransceiverDirection | null;
|
|
|
direction: RTCRtpTransceiverDirection;
|
|
|
readonly mid: string | null;
|
|
|
readonly receiver: RTCRtpReceiver;
|
|
|
readonly sender: RTCRtpSender;
|
|
|
readonly stopped: boolean;
|
|
|
setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
|
|
|
stop(): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCRtpTransceiver: {
|
|
|
prototype: RTCRtpTransceiver;
|
|
|
new(): RTCRtpTransceiver;
|
|
|
};
|
|
|
|
|
|
interface RTCSctpTransportEventMap {
|
|
|
"statechange": Event;
|
|
|
}
|
|
|
|
|
|
interface RTCSctpTransport {
|
|
|
readonly maxChannels: number | null;
|
|
|
readonly maxMessageSize: number;
|
|
|
onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
|
|
|
readonly state: RTCSctpTransportState;
|
|
|
readonly transport: RTCDtlsTransport;
|
|
|
addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCSctpTransport: {
|
|
|
prototype: RTCSctpTransport;
|
|
|
new(): RTCSctpTransport;
|
|
|
};
|
|
|
|
|
|
/** One end of a connection\u2014or potential connection\u2014and how it's configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session. */
|
|
|
interface RTCSessionDescription {
|
|
|
readonly sdp: string;
|
|
|
readonly type: RTCSdpType;
|
|
|
toJSON(): any;
|
|
|
}
|
|
|
|
|
|
declare var RTCSessionDescription: {
|
|
|
prototype: RTCSessionDescription;
|
|
|
new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
|
|
|
};
|
|
|
|
|
|
interface RTCSrtpSdesTransportEventMap {
|
|
|
"error": Event;
|
|
|
}
|
|
|
|
|
|
interface RTCSrtpSdesTransport extends EventTarget {
|
|
|
onerror: ((this: RTCSrtpSdesTransport, ev: Event) => any) | null;
|
|
|
readonly transport: RTCIceTransport;
|
|
|
addEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCSrtpSdesTransport: {
|
|
|
prototype: RTCSrtpSdesTransport;
|
|
|
new(transport: RTCIceTransport, encryptParameters: RTCSrtpSdesParameters, decryptParameters: RTCSrtpSdesParameters): RTCSrtpSdesTransport;
|
|
|
getLocalParameters(): RTCSrtpSdesParameters[];
|
|
|
};
|
|
|
|
|
|
interface RTCSsrcConflictEvent extends Event {
|
|
|
readonly ssrc: number;
|
|
|
}
|
|
|
|
|
|
declare var RTCSsrcConflictEvent: {
|
|
|
prototype: RTCSsrcConflictEvent;
|
|
|
new(): RTCSsrcConflictEvent;
|
|
|
};
|
|
|
|
|
|
interface RTCStatsEvent extends Event {
|
|
|
readonly report: RTCStatsReport;
|
|
|
}
|
|
|
|
|
|
declare var RTCStatsEvent: {
|
|
|
prototype: RTCStatsEvent;
|
|
|
new(type: string, eventInitDict: RTCStatsEventInit): RTCStatsEvent;
|
|
|
};
|
|
|
|
|
|
interface RTCStatsProvider extends EventTarget {
|
|
|
getStats(): Promise<RTCStatsReport>;
|
|
|
msGetStats(): Promise<RTCStatsReport>;
|
|
|
}
|
|
|
|
|
|
declare var RTCStatsProvider: {
|
|
|
prototype: RTCStatsProvider;
|
|
|
new(): RTCStatsProvider;
|
|
|
};
|
|
|
|
|
|
interface RTCStatsReport {
|
|
|
forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var RTCStatsReport: {
|
|
|
prototype: RTCStatsReport;
|
|
|
new(): RTCStatsReport;
|
|
|
};
|
|
|
|
|
|
interface RTCTrackEvent extends Event {
|
|
|
readonly receiver: RTCRtpReceiver;
|
|
|
readonly streams: ReadonlyArray<MediaStream>;
|
|
|
readonly track: MediaStreamTrack;
|
|
|
readonly transceiver: RTCRtpTransceiver;
|
|
|
}
|
|
|
|
|
|
declare var RTCTrackEvent: {
|
|
|
prototype: RTCTrackEvent;
|
|
|
new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;
|
|
|
};
|
|
|
|
|
|
interface RadioNodeList extends NodeList {
|
|
|
value: string;
|
|
|
}
|
|
|
|
|
|
declare var RadioNodeList: {
|
|
|
prototype: RadioNodeList;
|
|
|
new(): RadioNodeList;
|
|
|
};
|
|
|
|
|
|
interface RandomSource {
|
|
|
getRandomValues<T extends Int8Array | Uint8ClampedArray | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array>(array: T): T;
|
|
|
}
|
|
|
|
|
|
declare var RandomSource: {
|
|
|
prototype: RandomSource;
|
|
|
new(): RandomSource;
|
|
|
};
|
|
|
|
|
|
/** A fragment of a document that can contain nodes and parts of text nodes. */
|
|
|
interface Range extends AbstractRange {
|
|
|
/**
|
|
|
* Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node.
|
|
|
*/
|
|
|
readonly commonAncestorContainer: Node;
|
|
|
cloneContents(): DocumentFragment;
|
|
|
cloneRange(): Range;
|
|
|
collapse(toStart?: boolean): void;
|
|
|
compareBoundaryPoints(how: number, sourceRange: Range): number;
|
|
|
/**
|
|
|
* Returns \u22121 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range.
|
|
|
*/
|
|
|
comparePoint(node: Node, offset: number): number;
|
|
|
createContextualFragment(fragment: string): DocumentFragment;
|
|
|
deleteContents(): void;
|
|
|
detach(): void;
|
|
|
extractContents(): DocumentFragment;
|
|
|
getBoundingClientRect(): DOMRect;
|
|
|
getClientRects(): DOMRectList;
|
|
|
insertNode(node: Node): void;
|
|
|
/**
|
|
|
* Returns whether range intersects node.
|
|
|
*/
|
|
|
intersectsNode(node: Node): boolean;
|
|
|
isPointInRange(node: Node, offset: number): boolean;
|
|
|
selectNode(node: Node): void;
|
|
|
selectNodeContents(node: Node): void;
|
|
|
setEnd(node: Node, offset: number): void;
|
|
|
setEndAfter(node: Node): void;
|
|
|
setEndBefore(node: Node): void;
|
|
|
setStart(node: Node, offset: number): void;
|
|
|
setStartAfter(node: Node): void;
|
|
|
setStartBefore(node: Node): void;
|
|
|
surroundContents(newParent: Node): void;
|
|
|
readonly END_TO_END: number;
|
|
|
readonly END_TO_START: number;
|
|
|
readonly START_TO_END: number;
|
|
|
readonly START_TO_START: number;
|
|
|
}
|
|
|
|
|
|
declare var Range: {
|
|
|
prototype: Range;
|
|
|
new(): Range;
|
|
|
readonly END_TO_END: number;
|
|
|
readonly END_TO_START: number;
|
|
|
readonly START_TO_END: number;
|
|
|
readonly START_TO_START: number;
|
|
|
};
|
|
|
|
|
|
interface ReadableByteStreamController {
|
|
|
readonly byobRequest: ReadableStreamBYOBRequest | undefined;
|
|
|
readonly desiredSize: number | null;
|
|
|
close(): void;
|
|
|
enqueue(chunk: ArrayBufferView): void;
|
|
|
error(error?: any): void;
|
|
|
}
|
|
|
|
|
|
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
|
|
|
interface ReadableStream<R = any> {
|
|
|
readonly locked: boolean;
|
|
|
cancel(reason?: any): Promise<void>;
|
|
|
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
|
|
|
getReader(): ReadableStreamDefaultReader<R>;
|
|
|
pipeThrough<T>({ writable, readable }: { writable: WritableStream<R>, readable: ReadableStream<T> }, options?: PipeOptions): ReadableStream<T>;
|
|
|
pipeTo(dest: WritableStream<R>, options?: PipeOptions): Promise<void>;
|
|
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
|
}
|
|
|
|
|
|
declare var ReadableStream: {
|
|
|
prototype: ReadableStream;
|
|
|
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number, size?: undefined }): ReadableStream<Uint8Array>;
|
|
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
|
};
|
|
|
|
|
|
interface ReadableStreamBYOBReader {
|
|
|
readonly closed: Promise<void>;
|
|
|
cancel(reason?: any): Promise<void>;
|
|
|
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
|
|
|
releaseLock(): void;
|
|
|
}
|
|
|
|
|
|
interface ReadableStreamBYOBRequest {
|
|
|
readonly view: ArrayBufferView;
|
|
|
respond(bytesWritten: number): void;
|
|
|
respondWithNewView(view: ArrayBufferView): void;
|
|
|
}
|
|
|
|
|
|
interface ReadableStreamDefaultController<R = any> {
|
|
|
readonly desiredSize: number | null;
|
|
|
close(): void;
|
|
|
enqueue(chunk: R): void;
|
|
|
error(error?: any): void;
|
|
|
}
|
|
|
|
|
|
interface ReadableStreamDefaultReader<R = any> {
|
|
|
readonly closed: Promise<void>;
|
|
|
cancel(reason?: any): Promise<void>;
|
|
|
read(): Promise<ReadableStreamReadResult<R>>;
|
|
|
releaseLock(): void;
|
|
|
}
|
|
|
|
|
|
interface ReadableStreamReadResult<T> {
|
|
|
done: boolean;
|
|
|
value: T;
|
|
|
}
|
|
|
|
|
|
interface ReadableStreamReader<R = any> {
|
|
|
cancel(): Promise<void>;
|
|
|
read(): Promise<ReadableStreamReadResult<R>>;
|
|
|
releaseLock(): void;
|
|
|
}
|
|
|
|
|
|
declare var ReadableStreamReader: {
|
|
|
prototype: ReadableStreamReader;
|
|
|
new(): ReadableStreamReader;
|
|
|
};
|
|
|
|
|
|
/** This Fetch API interface represents a resource request. */
|
|
|
interface Request extends Body {
|
|
|
/**
|
|
|
* Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
|
|
|
*/
|
|
|
readonly cache: RequestCache;
|
|
|
/**
|
|
|
* Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.
|
|
|
*/
|
|
|
readonly credentials: RequestCredentials;
|
|
|
/**
|
|
|
* Returns the kind of resource requested by request, e.g., "document" or "script".
|
|
|
*/
|
|
|
readonly destination: RequestDestination;
|
|
|
/**
|
|
|
* Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
|
|
|
*/
|
|
|
readonly headers: Headers;
|
|
|
/**
|
|
|
* Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
|
|
|
*/
|
|
|
readonly integrity: string;
|
|
|
/**
|
|
|
* Returns a boolean indicating whether or not request is for a history navigation (a.k.a. back-foward navigation).
|
|
|
*/
|
|
|
readonly isHistoryNavigation: boolean;
|
|
|
/**
|
|
|
* Returns a boolean indicating whether or not request is for a reload navigation.
|
|
|
*/
|
|
|
readonly isReloadNavigation: boolean;
|
|
|
/**
|
|
|
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
|
|
|
*/
|
|
|
readonly keepalive: boolean;
|
|
|
/**
|
|
|
* Returns request's HTTP method, which is "GET" by default.
|
|
|
*/
|
|
|
readonly method: string;
|
|
|
/**
|
|
|
* Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.
|
|
|
*/
|
|
|
readonly mode: RequestMode;
|
|
|
/**
|
|
|
* Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
|
|
|
*/
|
|
|
readonly redirect: RequestRedirect;
|
|
|
/**
|
|
|
* Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made.
|
|
|
*/
|
|
|
readonly referrer: string;
|
|
|
/**
|
|
|
* Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
|
|
|
*/
|
|
|
readonly referrerPolicy: ReferrerPolicy;
|
|
|
/**
|
|
|
* Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
|
|
|
*/
|
|
|
readonly signal: AbortSignal;
|
|
|
/**
|
|
|
* Returns the URL of request as a string.
|
|
|
*/
|
|
|
readonly url: string;
|
|
|
clone(): Request;
|
|
|
}
|
|
|
|
|
|
declare var Request: {
|
|
|
prototype: Request;
|
|
|
new(input: RequestInfo, init?: RequestInit): Request;
|
|
|
};
|
|
|
|
|
|
/** This Fetch API interface represents the response to a request. */
|
|
|
interface Response extends Body {
|
|
|
readonly headers: Headers;
|
|
|
readonly ok: boolean;
|
|
|
readonly redirected: boolean;
|
|
|
readonly status: number;
|
|
|
readonly statusText: string;
|
|
|
readonly trailer: Promise<Headers>;
|
|
|
readonly type: ResponseType;
|
|
|
readonly url: string;
|
|
|
clone(): Response;
|
|
|
}
|
|
|
|
|
|
declare var Response: {
|
|
|
prototype: Response;
|
|
|
new(body?: BodyInit | null, init?: ResponseInit): Response;
|
|
|
error(): Response;
|
|
|
redirect(url: string, status?: number): Response;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <a> element, as well as methods to manipulate them. */
|
|
|
interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
|
|
|
readonly target: SVGAnimatedString;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGAElement: {
|
|
|
prototype: SVGAElement;
|
|
|
new(): SVGAElement;
|
|
|
};
|
|
|
|
|
|
/** Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. */
|
|
|
interface SVGAngle {
|
|
|
readonly unitType: number;
|
|
|
value: number;
|
|
|
valueAsString: string;
|
|
|
valueInSpecifiedUnits: number;
|
|
|
convertToSpecifiedUnits(unitType: number): void;
|
|
|
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
|
|
|
readonly SVG_ANGLETYPE_DEG: number;
|
|
|
readonly SVG_ANGLETYPE_GRAD: number;
|
|
|
readonly SVG_ANGLETYPE_RAD: number;
|
|
|
readonly SVG_ANGLETYPE_UNKNOWN: number;
|
|
|
readonly SVG_ANGLETYPE_UNSPECIFIED: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGAngle: {
|
|
|
prototype: SVGAngle;
|
|
|
new(): SVGAngle;
|
|
|
readonly SVG_ANGLETYPE_DEG: number;
|
|
|
readonly SVG_ANGLETYPE_GRAD: number;
|
|
|
readonly SVG_ANGLETYPE_RAD: number;
|
|
|
readonly SVG_ANGLETYPE_UNKNOWN: number;
|
|
|
readonly SVG_ANGLETYPE_UNSPECIFIED: number;
|
|
|
};
|
|
|
|
|
|
interface SVGAnimateElement extends SVGAnimationElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimateElement: {
|
|
|
prototype: SVGAnimateElement;
|
|
|
new(): SVGAnimateElement;
|
|
|
};
|
|
|
|
|
|
interface SVGAnimateMotionElement extends SVGAnimationElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimateMotionElement: {
|
|
|
prototype: SVGAnimateMotionElement;
|
|
|
new(): SVGAnimateMotionElement;
|
|
|
};
|
|
|
|
|
|
interface SVGAnimateTransformElement extends SVGAnimationElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimateTransformElement: {
|
|
|
prototype: SVGAnimateTransformElement;
|
|
|
new(): SVGAnimateTransformElement;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes of basic type <angle> which can be animated. */
|
|
|
interface SVGAnimatedAngle {
|
|
|
readonly animVal: SVGAngle;
|
|
|
readonly baseVal: SVGAngle;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedAngle: {
|
|
|
prototype: SVGAnimatedAngle;
|
|
|
new(): SVGAnimatedAngle;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes of type boolean which can be animated. */
|
|
|
interface SVGAnimatedBoolean {
|
|
|
readonly animVal: boolean;
|
|
|
baseVal: boolean;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedBoolean: {
|
|
|
prototype: SVGAnimatedBoolean;
|
|
|
new(): SVGAnimatedBoolean;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes whose value must be a constant from a particular enumeration and which can be animated. */
|
|
|
interface SVGAnimatedEnumeration {
|
|
|
readonly animVal: number;
|
|
|
baseVal: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedEnumeration: {
|
|
|
prototype: SVGAnimatedEnumeration;
|
|
|
new(): SVGAnimatedEnumeration;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes of basic type <integer> which can be animated. */
|
|
|
interface SVGAnimatedInteger {
|
|
|
readonly animVal: number;
|
|
|
baseVal: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedInteger: {
|
|
|
prototype: SVGAnimatedInteger;
|
|
|
new(): SVGAnimatedInteger;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes of basic type <length> which can be animated. */
|
|
|
interface SVGAnimatedLength {
|
|
|
readonly animVal: SVGLength;
|
|
|
readonly baseVal: SVGLength;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedLength: {
|
|
|
prototype: SVGAnimatedLength;
|
|
|
new(): SVGAnimatedLength;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes of type SVGLengthList which can be animated. */
|
|
|
interface SVGAnimatedLengthList {
|
|
|
readonly animVal: SVGLengthList;
|
|
|
readonly baseVal: SVGLengthList;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedLengthList: {
|
|
|
prototype: SVGAnimatedLengthList;
|
|
|
new(): SVGAnimatedLengthList;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes of basic type <Number> which can be animated. */
|
|
|
interface SVGAnimatedNumber {
|
|
|
readonly animVal: number;
|
|
|
baseVal: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedNumber: {
|
|
|
prototype: SVGAnimatedNumber;
|
|
|
new(): SVGAnimatedNumber;
|
|
|
};
|
|
|
|
|
|
/** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */
|
|
|
interface SVGAnimatedNumberList {
|
|
|
readonly animVal: SVGNumberList;
|
|
|
readonly baseVal: SVGNumberList;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedNumberList: {
|
|
|
prototype: SVGAnimatedNumberList;
|
|
|
new(): SVGAnimatedNumberList;
|
|
|
};
|
|
|
|
|
|
interface SVGAnimatedPoints {
|
|
|
readonly animatedPoints: SVGPointList;
|
|
|
readonly points: SVGPointList;
|
|
|
}
|
|
|
|
|
|
/** Used for attributes of type SVGPreserveAspectRatio which can be animated. */
|
|
|
interface SVGAnimatedPreserveAspectRatio {
|
|
|
readonly animVal: SVGPreserveAspectRatio;
|
|
|
readonly baseVal: SVGPreserveAspectRatio;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedPreserveAspectRatio: {
|
|
|
prototype: SVGAnimatedPreserveAspectRatio;
|
|
|
new(): SVGAnimatedPreserveAspectRatio;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes of basic SVGRect which can be animated. */
|
|
|
interface SVGAnimatedRect {
|
|
|
readonly animVal: DOMRectReadOnly;
|
|
|
readonly baseVal: DOMRect;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedRect: {
|
|
|
prototype: SVGAnimatedRect;
|
|
|
new(): SVGAnimatedRect;
|
|
|
};
|
|
|
|
|
|
/** The SVGAnimatedString\xA0interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared\xA0inside this. */
|
|
|
interface SVGAnimatedString {
|
|
|
readonly animVal: string;
|
|
|
baseVal: string;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedString: {
|
|
|
prototype: SVGAnimatedString;
|
|
|
new(): SVGAnimatedString;
|
|
|
};
|
|
|
|
|
|
/** Used for attributes which take a list of numbers and which can be animated. */
|
|
|
interface SVGAnimatedTransformList {
|
|
|
readonly animVal: SVGTransformList;
|
|
|
readonly baseVal: SVGTransformList;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimatedTransformList: {
|
|
|
prototype: SVGAnimatedTransformList;
|
|
|
new(): SVGAnimatedTransformList;
|
|
|
};
|
|
|
|
|
|
interface SVGAnimationElement extends SVGElement {
|
|
|
readonly targetElement: SVGElement;
|
|
|
getCurrentTime(): number;
|
|
|
getSimpleDuration(): number;
|
|
|
getStartTime(): number;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGAnimationElement: {
|
|
|
prototype: SVGAnimationElement;
|
|
|
new(): SVGAnimationElement;
|
|
|
};
|
|
|
|
|
|
/** An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle. */
|
|
|
interface SVGCircleElement extends SVGGeometryElement {
|
|
|
readonly cx: SVGAnimatedLength;
|
|
|
readonly cy: SVGAnimatedLength;
|
|
|
readonly r: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGCircleElement: {
|
|
|
prototype: SVGCircleElement;
|
|
|
new(): SVGCircleElement;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. */
|
|
|
interface SVGClipPathElement extends SVGElement {
|
|
|
readonly clipPathUnits: SVGAnimatedEnumeration;
|
|
|
readonly transform: SVGAnimatedTransformList;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGClipPathElement: {
|
|
|
prototype: SVGClipPathElement;
|
|
|
new(): SVGClipPathElement;
|
|
|
};
|
|
|
|
|
|
/** A base interface used by the component transfer function interfaces. */
|
|
|
interface SVGComponentTransferFunctionElement extends SVGElement {
|
|
|
readonly amplitude: SVGAnimatedNumber;
|
|
|
readonly exponent: SVGAnimatedNumber;
|
|
|
readonly intercept: SVGAnimatedNumber;
|
|
|
readonly offset: SVGAnimatedNumber;
|
|
|
readonly slope: SVGAnimatedNumber;
|
|
|
readonly tableValues: SVGAnimatedNumberList;
|
|
|
readonly type: SVGAnimatedEnumeration;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGComponentTransferFunctionElement: {
|
|
|
prototype: SVGComponentTransferFunctionElement;
|
|
|
new(): SVGComponentTransferFunctionElement;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
|
|
|
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
interface SVGCursorElement extends SVGElement {
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCursorElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCursorElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGCursorElement: {
|
|
|
prototype: SVGCursorElement;
|
|
|
new(): SVGCursorElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <defs> element. */
|
|
|
interface SVGDefsElement extends SVGGraphicsElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGDefsElement: {
|
|
|
prototype: SVGDefsElement;
|
|
|
new(): SVGDefsElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <desc> element. */
|
|
|
interface SVGDescElement extends SVGElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGDescElement: {
|
|
|
prototype: SVGDescElement;
|
|
|
new(): SVGDescElement;
|
|
|
};
|
|
|
|
|
|
interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap {
|
|
|
}
|
|
|
|
|
|
/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */
|
|
|
interface SVGElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement, SVGElementInstance {
|
|
|
/** @deprecated */
|
|
|
readonly className: any;
|
|
|
readonly ownerSVGElement: SVGSVGElement | null;
|
|
|
readonly viewportElement: SVGElement | null;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGElement: {
|
|
|
prototype: SVGElement;
|
|
|
new(): SVGElement;
|
|
|
};
|
|
|
|
|
|
interface SVGElementInstance extends EventTarget {
|
|
|
readonly correspondingElement: SVGElement;
|
|
|
readonly correspondingUseElement: SVGUseElement;
|
|
|
}
|
|
|
|
|
|
declare var SVGElementInstance: {
|
|
|
prototype: SVGElementInstance;
|
|
|
new(): SVGElementInstance;
|
|
|
};
|
|
|
|
|
|
interface SVGElementInstanceList {
|
|
|
/** @deprecated */
|
|
|
readonly length: number;
|
|
|
/** @deprecated */
|
|
|
item(index: number): SVGElementInstance;
|
|
|
}
|
|
|
|
|
|
declare var SVGElementInstanceList: {
|
|
|
prototype: SVGElementInstanceList;
|
|
|
new(): SVGElementInstanceList;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <ellipse> elements. */
|
|
|
interface SVGEllipseElement extends SVGGeometryElement {
|
|
|
readonly cx: SVGAnimatedLength;
|
|
|
readonly cy: SVGAnimatedLength;
|
|
|
readonly rx: SVGAnimatedLength;
|
|
|
readonly ry: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGEllipseElement: {
|
|
|
prototype: SVGEllipseElement;
|
|
|
new(): SVGEllipseElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feBlend> element. */
|
|
|
interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly in2: SVGAnimatedString;
|
|
|
readonly mode: SVGAnimatedEnumeration;
|
|
|
readonly SVG_FEBLEND_MODE_COLOR: number;
|
|
|
readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
|
|
|
readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
|
|
|
readonly SVG_FEBLEND_MODE_DARKEN: number;
|
|
|
readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
|
|
|
readonly SVG_FEBLEND_MODE_EXCLUSION: number;
|
|
|
readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
|
|
|
readonly SVG_FEBLEND_MODE_HUE: number;
|
|
|
readonly SVG_FEBLEND_MODE_LIGHTEN: number;
|
|
|
readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
|
|
|
readonly SVG_FEBLEND_MODE_MULTIPLY: number;
|
|
|
readonly SVG_FEBLEND_MODE_NORMAL: number;
|
|
|
readonly SVG_FEBLEND_MODE_OVERLAY: number;
|
|
|
readonly SVG_FEBLEND_MODE_SATURATION: number;
|
|
|
readonly SVG_FEBLEND_MODE_SCREEN: number;
|
|
|
readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
|
|
|
readonly SVG_FEBLEND_MODE_UNKNOWN: number;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEBlendElement: {
|
|
|
prototype: SVGFEBlendElement;
|
|
|
new(): SVGFEBlendElement;
|
|
|
readonly SVG_FEBLEND_MODE_COLOR: number;
|
|
|
readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
|
|
|
readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
|
|
|
readonly SVG_FEBLEND_MODE_DARKEN: number;
|
|
|
readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
|
|
|
readonly SVG_FEBLEND_MODE_EXCLUSION: number;
|
|
|
readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
|
|
|
readonly SVG_FEBLEND_MODE_HUE: number;
|
|
|
readonly SVG_FEBLEND_MODE_LIGHTEN: number;
|
|
|
readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
|
|
|
readonly SVG_FEBLEND_MODE_MULTIPLY: number;
|
|
|
readonly SVG_FEBLEND_MODE_NORMAL: number;
|
|
|
readonly SVG_FEBLEND_MODE_OVERLAY: number;
|
|
|
readonly SVG_FEBLEND_MODE_SATURATION: number;
|
|
|
readonly SVG_FEBLEND_MODE_SCREEN: number;
|
|
|
readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
|
|
|
readonly SVG_FEBLEND_MODE_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feColorMatrix> element. */
|
|
|
interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly type: SVGAnimatedEnumeration;
|
|
|
readonly values: SVGAnimatedNumberList;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEColorMatrixElement: {
|
|
|
prototype: SVGFEColorMatrixElement;
|
|
|
new(): SVGFEColorMatrixElement;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
|
|
|
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feComponentTransfer> element. */
|
|
|
interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEComponentTransferElement: {
|
|
|
prototype: SVGFEComponentTransferElement;
|
|
|
new(): SVGFEComponentTransferElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feComposite> element. */
|
|
|
interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly in2: SVGAnimatedString;
|
|
|
readonly k1: SVGAnimatedNumber;
|
|
|
readonly k2: SVGAnimatedNumber;
|
|
|
readonly k3: SVGAnimatedNumber;
|
|
|
readonly k4: SVGAnimatedNumber;
|
|
|
readonly operator: SVGAnimatedEnumeration;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFECompositeElement: {
|
|
|
prototype: SVGFECompositeElement;
|
|
|
new(): SVGFECompositeElement;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
|
|
|
readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feConvolveMatrix> element. */
|
|
|
interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly bias: SVGAnimatedNumber;
|
|
|
readonly divisor: SVGAnimatedNumber;
|
|
|
readonly edgeMode: SVGAnimatedEnumeration;
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly kernelMatrix: SVGAnimatedNumberList;
|
|
|
readonly kernelUnitLengthX: SVGAnimatedNumber;
|
|
|
readonly kernelUnitLengthY: SVGAnimatedNumber;
|
|
|
readonly orderX: SVGAnimatedInteger;
|
|
|
readonly orderY: SVGAnimatedInteger;
|
|
|
readonly preserveAlpha: SVGAnimatedBoolean;
|
|
|
readonly targetX: SVGAnimatedInteger;
|
|
|
readonly targetY: SVGAnimatedInteger;
|
|
|
readonly SVG_EDGEMODE_DUPLICATE: number;
|
|
|
readonly SVG_EDGEMODE_NONE: number;
|
|
|
readonly SVG_EDGEMODE_UNKNOWN: number;
|
|
|
readonly SVG_EDGEMODE_WRAP: number;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEConvolveMatrixElement: {
|
|
|
prototype: SVGFEConvolveMatrixElement;
|
|
|
new(): SVGFEConvolveMatrixElement;
|
|
|
readonly SVG_EDGEMODE_DUPLICATE: number;
|
|
|
readonly SVG_EDGEMODE_NONE: number;
|
|
|
readonly SVG_EDGEMODE_UNKNOWN: number;
|
|
|
readonly SVG_EDGEMODE_WRAP: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feDiffuseLighting> element. */
|
|
|
interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly diffuseConstant: SVGAnimatedNumber;
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly kernelUnitLengthX: SVGAnimatedNumber;
|
|
|
readonly kernelUnitLengthY: SVGAnimatedNumber;
|
|
|
readonly surfaceScale: SVGAnimatedNumber;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEDiffuseLightingElement: {
|
|
|
prototype: SVGFEDiffuseLightingElement;
|
|
|
new(): SVGFEDiffuseLightingElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feDisplacementMap> element. */
|
|
|
interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly in2: SVGAnimatedString;
|
|
|
readonly scale: SVGAnimatedNumber;
|
|
|
readonly xChannelSelector: SVGAnimatedEnumeration;
|
|
|
readonly yChannelSelector: SVGAnimatedEnumeration;
|
|
|
readonly SVG_CHANNEL_A: number;
|
|
|
readonly SVG_CHANNEL_B: number;
|
|
|
readonly SVG_CHANNEL_G: number;
|
|
|
readonly SVG_CHANNEL_R: number;
|
|
|
readonly SVG_CHANNEL_UNKNOWN: number;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEDisplacementMapElement: {
|
|
|
prototype: SVGFEDisplacementMapElement;
|
|
|
new(): SVGFEDisplacementMapElement;
|
|
|
readonly SVG_CHANNEL_A: number;
|
|
|
readonly SVG_CHANNEL_B: number;
|
|
|
readonly SVG_CHANNEL_G: number;
|
|
|
readonly SVG_CHANNEL_R: number;
|
|
|
readonly SVG_CHANNEL_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feDistantLight> element. */
|
|
|
interface SVGFEDistantLightElement extends SVGElement {
|
|
|
readonly azimuth: SVGAnimatedNumber;
|
|
|
readonly elevation: SVGAnimatedNumber;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEDistantLightElement: {
|
|
|
prototype: SVGFEDistantLightElement;
|
|
|
new(): SVGFEDistantLightElement;
|
|
|
};
|
|
|
|
|
|
interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly dx: SVGAnimatedNumber;
|
|
|
readonly dy: SVGAnimatedNumber;
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly stdDeviationX: SVGAnimatedNumber;
|
|
|
readonly stdDeviationY: SVGAnimatedNumber;
|
|
|
setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEDropShadowElement: {
|
|
|
prototype: SVGFEDropShadowElement;
|
|
|
new(): SVGFEDropShadowElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feFlood> element. */
|
|
|
interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEFloodElement: {
|
|
|
prototype: SVGFEFloodElement;
|
|
|
new(): SVGFEFloodElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feFuncA> element. */
|
|
|
interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEFuncAElement: {
|
|
|
prototype: SVGFEFuncAElement;
|
|
|
new(): SVGFEFuncAElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feFuncB> element. */
|
|
|
interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEFuncBElement: {
|
|
|
prototype: SVGFEFuncBElement;
|
|
|
new(): SVGFEFuncBElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feFuncG> element. */
|
|
|
interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEFuncGElement: {
|
|
|
prototype: SVGFEFuncGElement;
|
|
|
new(): SVGFEFuncGElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feFuncR> element. */
|
|
|
interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEFuncRElement: {
|
|
|
prototype: SVGFEFuncRElement;
|
|
|
new(): SVGFEFuncRElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feGaussianBlur> element. */
|
|
|
interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly stdDeviationX: SVGAnimatedNumber;
|
|
|
readonly stdDeviationY: SVGAnimatedNumber;
|
|
|
setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEGaussianBlurElement: {
|
|
|
prototype: SVGFEGaussianBlurElement;
|
|
|
new(): SVGFEGaussianBlurElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feImage> element. */
|
|
|
interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {
|
|
|
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEImageElement: {
|
|
|
prototype: SVGFEImageElement;
|
|
|
new(): SVGFEImageElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feMerge> element. */
|
|
|
interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEMergeElement: {
|
|
|
prototype: SVGFEMergeElement;
|
|
|
new(): SVGFEMergeElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feMergeNode> element. */
|
|
|
interface SVGFEMergeNodeElement extends SVGElement {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEMergeNodeElement: {
|
|
|
prototype: SVGFEMergeNodeElement;
|
|
|
new(): SVGFEMergeNodeElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feMorphology> element. */
|
|
|
interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly operator: SVGAnimatedEnumeration;
|
|
|
readonly radiusX: SVGAnimatedNumber;
|
|
|
readonly radiusY: SVGAnimatedNumber;
|
|
|
readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
|
|
|
readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
|
|
|
readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEMorphologyElement: {
|
|
|
prototype: SVGFEMorphologyElement;
|
|
|
new(): SVGFEMorphologyElement;
|
|
|
readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
|
|
|
readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
|
|
|
readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feOffset> element. */
|
|
|
interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly dx: SVGAnimatedNumber;
|
|
|
readonly dy: SVGAnimatedNumber;
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEOffsetElement: {
|
|
|
prototype: SVGFEOffsetElement;
|
|
|
new(): SVGFEOffsetElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <fePointLight> element. */
|
|
|
interface SVGFEPointLightElement extends SVGElement {
|
|
|
readonly x: SVGAnimatedNumber;
|
|
|
readonly y: SVGAnimatedNumber;
|
|
|
readonly z: SVGAnimatedNumber;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFEPointLightElement: {
|
|
|
prototype: SVGFEPointLightElement;
|
|
|
new(): SVGFEPointLightElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feSpecularLighting> element. */
|
|
|
interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
readonly kernelUnitLengthX: SVGAnimatedNumber;
|
|
|
readonly kernelUnitLengthY: SVGAnimatedNumber;
|
|
|
readonly specularConstant: SVGAnimatedNumber;
|
|
|
readonly specularExponent: SVGAnimatedNumber;
|
|
|
readonly surfaceScale: SVGAnimatedNumber;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFESpecularLightingElement: {
|
|
|
prototype: SVGFESpecularLightingElement;
|
|
|
new(): SVGFESpecularLightingElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feSpotLight> element. */
|
|
|
interface SVGFESpotLightElement extends SVGElement {
|
|
|
readonly limitingConeAngle: SVGAnimatedNumber;
|
|
|
readonly pointsAtX: SVGAnimatedNumber;
|
|
|
readonly pointsAtY: SVGAnimatedNumber;
|
|
|
readonly pointsAtZ: SVGAnimatedNumber;
|
|
|
readonly specularExponent: SVGAnimatedNumber;
|
|
|
readonly x: SVGAnimatedNumber;
|
|
|
readonly y: SVGAnimatedNumber;
|
|
|
readonly z: SVGAnimatedNumber;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFESpotLightElement: {
|
|
|
prototype: SVGFESpotLightElement;
|
|
|
new(): SVGFESpotLightElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feTile> element. */
|
|
|
interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly in1: SVGAnimatedString;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFETileElement: {
|
|
|
prototype: SVGFETileElement;
|
|
|
new(): SVGFETileElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <feTurbulence> element. */
|
|
|
interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly baseFrequencyX: SVGAnimatedNumber;
|
|
|
readonly baseFrequencyY: SVGAnimatedNumber;
|
|
|
readonly numOctaves: SVGAnimatedInteger;
|
|
|
readonly seed: SVGAnimatedNumber;
|
|
|
readonly stitchTiles: SVGAnimatedEnumeration;
|
|
|
readonly type: SVGAnimatedEnumeration;
|
|
|
readonly SVG_STITCHTYPE_NOSTITCH: number;
|
|
|
readonly SVG_STITCHTYPE_STITCH: number;
|
|
|
readonly SVG_STITCHTYPE_UNKNOWN: number;
|
|
|
readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
|
|
|
readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
|
|
|
readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFETurbulenceElement: {
|
|
|
prototype: SVGFETurbulenceElement;
|
|
|
new(): SVGFETurbulenceElement;
|
|
|
readonly SVG_STITCHTYPE_NOSTITCH: number;
|
|
|
readonly SVG_STITCHTYPE_STITCH: number;
|
|
|
readonly SVG_STITCHTYPE_UNKNOWN: number;
|
|
|
readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
|
|
|
readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
|
|
|
readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */
|
|
|
interface SVGFilterElement extends SVGElement, SVGURIReference {
|
|
|
readonly filterUnits: SVGAnimatedEnumeration;
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly primitiveUnits: SVGAnimatedEnumeration;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGFilterElement: {
|
|
|
prototype: SVGFilterElement;
|
|
|
new(): SVGFilterElement;
|
|
|
};
|
|
|
|
|
|
interface SVGFilterPrimitiveStandardAttributes {
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly result: SVGAnimatedString;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
}
|
|
|
|
|
|
interface SVGFitToViewBox {
|
|
|
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
|
|
|
readonly viewBox: SVGAnimatedRect;
|
|
|
}
|
|
|
|
|
|
/** Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. */
|
|
|
interface SVGForeignObjectElement extends SVGGraphicsElement {
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGForeignObjectElement: {
|
|
|
prototype: SVGForeignObjectElement;
|
|
|
new(): SVGForeignObjectElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <g> element. */
|
|
|
interface SVGGElement extends SVGGraphicsElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGGElement: {
|
|
|
prototype: SVGGElement;
|
|
|
new(): SVGGElement;
|
|
|
};
|
|
|
|
|
|
interface SVGGeometryElement extends SVGGraphicsElement {
|
|
|
readonly pathLength: SVGAnimatedNumber;
|
|
|
getPointAtLength(distance: number): DOMPoint;
|
|
|
getTotalLength(): number;
|
|
|
isPointInFill(point?: DOMPointInit): boolean;
|
|
|
isPointInStroke(point?: DOMPointInit): boolean;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGGeometryElement: {
|
|
|
prototype: SVGGeometryElement;
|
|
|
new(): SVGGeometryElement;
|
|
|
};
|
|
|
|
|
|
/** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */
|
|
|
interface SVGGradientElement extends SVGElement, SVGURIReference {
|
|
|
readonly gradientTransform: SVGAnimatedTransformList;
|
|
|
readonly gradientUnits: SVGAnimatedEnumeration;
|
|
|
readonly spreadMethod: SVGAnimatedEnumeration;
|
|
|
readonly SVG_SPREADMETHOD_PAD: number;
|
|
|
readonly SVG_SPREADMETHOD_REFLECT: number;
|
|
|
readonly SVG_SPREADMETHOD_REPEAT: number;
|
|
|
readonly SVG_SPREADMETHOD_UNKNOWN: number;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGGradientElement: {
|
|
|
prototype: SVGGradientElement;
|
|
|
new(): SVGGradientElement;
|
|
|
readonly SVG_SPREADMETHOD_PAD: number;
|
|
|
readonly SVG_SPREADMETHOD_REFLECT: number;
|
|
|
readonly SVG_SPREADMETHOD_REPEAT: number;
|
|
|
readonly SVG_SPREADMETHOD_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** SVG elements whose primary purpose is to directly render graphics into a group. */
|
|
|
interface SVGGraphicsElement extends SVGElement, SVGTests {
|
|
|
readonly transform: SVGAnimatedTransformList;
|
|
|
getBBox(options?: SVGBoundingBoxOptions): DOMRect;
|
|
|
getCTM(): DOMMatrix | null;
|
|
|
getScreenCTM(): DOMMatrix | null;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGGraphicsElement: {
|
|
|
prototype: SVGGraphicsElement;
|
|
|
new(): SVGGraphicsElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <image> element. */
|
|
|
interface SVGImageElement extends SVGGraphicsElement, SVGURIReference {
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGImageElement: {
|
|
|
prototype: SVGImageElement;
|
|
|
new(): SVGImageElement;
|
|
|
};
|
|
|
|
|
|
/** Correspond to the <length> basic data type. */
|
|
|
interface SVGLength {
|
|
|
readonly unitType: number;
|
|
|
value: number;
|
|
|
valueAsString: string;
|
|
|
valueInSpecifiedUnits: number;
|
|
|
convertToSpecifiedUnits(unitType: number): void;
|
|
|
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
|
|
|
readonly SVG_LENGTHTYPE_CM: number;
|
|
|
readonly SVG_LENGTHTYPE_EMS: number;
|
|
|
readonly SVG_LENGTHTYPE_EXS: number;
|
|
|
readonly SVG_LENGTHTYPE_IN: number;
|
|
|
readonly SVG_LENGTHTYPE_MM: number;
|
|
|
readonly SVG_LENGTHTYPE_NUMBER: number;
|
|
|
readonly SVG_LENGTHTYPE_PC: number;
|
|
|
readonly SVG_LENGTHTYPE_PERCENTAGE: number;
|
|
|
readonly SVG_LENGTHTYPE_PT: number;
|
|
|
readonly SVG_LENGTHTYPE_PX: number;
|
|
|
readonly SVG_LENGTHTYPE_UNKNOWN: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGLength: {
|
|
|
prototype: SVGLength;
|
|
|
new(): SVGLength;
|
|
|
readonly SVG_LENGTHTYPE_CM: number;
|
|
|
readonly SVG_LENGTHTYPE_EMS: number;
|
|
|
readonly SVG_LENGTHTYPE_EXS: number;
|
|
|
readonly SVG_LENGTHTYPE_IN: number;
|
|
|
readonly SVG_LENGTHTYPE_MM: number;
|
|
|
readonly SVG_LENGTHTYPE_NUMBER: number;
|
|
|
readonly SVG_LENGTHTYPE_PC: number;
|
|
|
readonly SVG_LENGTHTYPE_PERCENTAGE: number;
|
|
|
readonly SVG_LENGTHTYPE_PT: number;
|
|
|
readonly SVG_LENGTHTYPE_PX: number;
|
|
|
readonly SVG_LENGTHTYPE_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** The SVGLengthList defines a list of SVGLength objects. */
|
|
|
interface SVGLengthList {
|
|
|
readonly length: number;
|
|
|
readonly numberOfItems: number;
|
|
|
appendItem(newItem: SVGLength): SVGLength;
|
|
|
clear(): void;
|
|
|
getItem(index: number): SVGLength;
|
|
|
initialize(newItem: SVGLength): SVGLength;
|
|
|
insertItemBefore(newItem: SVGLength, index: number): SVGLength;
|
|
|
removeItem(index: number): SVGLength;
|
|
|
replaceItem(newItem: SVGLength, index: number): SVGLength;
|
|
|
[index: number]: SVGLength;
|
|
|
}
|
|
|
|
|
|
declare var SVGLengthList: {
|
|
|
prototype: SVGLengthList;
|
|
|
new(): SVGLengthList;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <line> elements, as well as methods to manipulate them. */
|
|
|
interface SVGLineElement extends SVGGeometryElement {
|
|
|
readonly x1: SVGAnimatedLength;
|
|
|
readonly x2: SVGAnimatedLength;
|
|
|
readonly y1: SVGAnimatedLength;
|
|
|
readonly y2: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGLineElement: {
|
|
|
prototype: SVGLineElement;
|
|
|
new(): SVGLineElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <linearGradient> element. */
|
|
|
interface SVGLinearGradientElement extends SVGGradientElement {
|
|
|
readonly x1: SVGAnimatedLength;
|
|
|
readonly x2: SVGAnimatedLength;
|
|
|
readonly y1: SVGAnimatedLength;
|
|
|
readonly y2: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGLinearGradientElement: {
|
|
|
prototype: SVGLinearGradientElement;
|
|
|
new(): SVGLinearGradientElement;
|
|
|
};
|
|
|
|
|
|
interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
|
|
|
readonly markerHeight: SVGAnimatedLength;
|
|
|
readonly markerUnits: SVGAnimatedEnumeration;
|
|
|
readonly markerWidth: SVGAnimatedLength;
|
|
|
readonly orientAngle: SVGAnimatedAngle;
|
|
|
readonly orientType: SVGAnimatedEnumeration;
|
|
|
readonly refX: SVGAnimatedLength;
|
|
|
readonly refY: SVGAnimatedLength;
|
|
|
setOrientToAngle(angle: SVGAngle): void;
|
|
|
setOrientToAuto(): void;
|
|
|
readonly SVG_MARKERUNITS_STROKEWIDTH: number;
|
|
|
readonly SVG_MARKERUNITS_UNKNOWN: number;
|
|
|
readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
|
|
|
readonly SVG_MARKER_ORIENT_ANGLE: number;
|
|
|
readonly SVG_MARKER_ORIENT_AUTO: number;
|
|
|
readonly SVG_MARKER_ORIENT_UNKNOWN: number;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGMarkerElement: {
|
|
|
prototype: SVGMarkerElement;
|
|
|
new(): SVGMarkerElement;
|
|
|
readonly SVG_MARKERUNITS_STROKEWIDTH: number;
|
|
|
readonly SVG_MARKERUNITS_UNKNOWN: number;
|
|
|
readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
|
|
|
readonly SVG_MARKER_ORIENT_ANGLE: number;
|
|
|
readonly SVG_MARKER_ORIENT_AUTO: number;
|
|
|
readonly SVG_MARKER_ORIENT_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <mask> elements, as well as methods to manipulate them. */
|
|
|
interface SVGMaskElement extends SVGElement {
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly maskContentUnits: SVGAnimatedEnumeration;
|
|
|
readonly maskUnits: SVGAnimatedEnumeration;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGMaskElement: {
|
|
|
prototype: SVGMaskElement;
|
|
|
new(): SVGMaskElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <metadata> element. */
|
|
|
interface SVGMetadataElement extends SVGElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGMetadataElement: {
|
|
|
prototype: SVGMetadataElement;
|
|
|
new(): SVGMetadataElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <number> basic data type. */
|
|
|
interface SVGNumber {
|
|
|
value: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGNumber: {
|
|
|
prototype: SVGNumber;
|
|
|
new(): SVGNumber;
|
|
|
};
|
|
|
|
|
|
/** The SVGNumberList defines a list of SVGNumber objects. */
|
|
|
interface SVGNumberList {
|
|
|
readonly length: number;
|
|
|
readonly numberOfItems: number;
|
|
|
appendItem(newItem: SVGNumber): SVGNumber;
|
|
|
clear(): void;
|
|
|
getItem(index: number): SVGNumber;
|
|
|
initialize(newItem: SVGNumber): SVGNumber;
|
|
|
insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
|
|
|
removeItem(index: number): SVGNumber;
|
|
|
replaceItem(newItem: SVGNumber, index: number): SVGNumber;
|
|
|
[index: number]: SVGNumber;
|
|
|
}
|
|
|
|
|
|
declare var SVGNumberList: {
|
|
|
prototype: SVGNumberList;
|
|
|
new(): SVGNumberList;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <path> element. */
|
|
|
interface SVGPathElement extends SVGGraphicsElement {
|
|
|
/** @deprecated */
|
|
|
readonly pathSegList: SVGPathSegList;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegClosePath(): SVGPathSegClosePath;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicRel;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothAbs;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothRel;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticAbs;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticRel;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothAbs;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothRel;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegLinetoHorizontalAbs(x: number): SVGPathSegLinetoHorizontalAbs;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegLinetoHorizontalRel(x: number): SVGPathSegLinetoHorizontalRel;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs;
|
|
|
/** @deprecated */
|
|
|
createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel;
|
|
|
/** @deprecated */
|
|
|
getPathSegAtLength(distance: number): number;
|
|
|
getPointAtLength(distance: number): SVGPoint;
|
|
|
getTotalLength(): number;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathElement: {
|
|
|
prototype: SVGPathElement;
|
|
|
new(): SVGPathElement;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSeg {
|
|
|
readonly pathSegType: number;
|
|
|
readonly pathSegTypeAsLetter: string;
|
|
|
readonly PATHSEG_ARC_ABS: number;
|
|
|
readonly PATHSEG_ARC_REL: number;
|
|
|
readonly PATHSEG_CLOSEPATH: number;
|
|
|
readonly PATHSEG_CURVETO_CUBIC_ABS: number;
|
|
|
readonly PATHSEG_CURVETO_CUBIC_REL: number;
|
|
|
readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
|
|
|
readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
|
|
|
readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
|
|
|
readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
|
|
|
readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
|
|
|
readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
|
|
|
readonly PATHSEG_LINETO_ABS: number;
|
|
|
readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
|
|
|
readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
|
|
|
readonly PATHSEG_LINETO_REL: number;
|
|
|
readonly PATHSEG_LINETO_VERTICAL_ABS: number;
|
|
|
readonly PATHSEG_LINETO_VERTICAL_REL: number;
|
|
|
readonly PATHSEG_MOVETO_ABS: number;
|
|
|
readonly PATHSEG_MOVETO_REL: number;
|
|
|
readonly PATHSEG_UNKNOWN: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSeg: {
|
|
|
prototype: SVGPathSeg;
|
|
|
new(): SVGPathSeg;
|
|
|
readonly PATHSEG_ARC_ABS: number;
|
|
|
readonly PATHSEG_ARC_REL: number;
|
|
|
readonly PATHSEG_CLOSEPATH: number;
|
|
|
readonly PATHSEG_CURVETO_CUBIC_ABS: number;
|
|
|
readonly PATHSEG_CURVETO_CUBIC_REL: number;
|
|
|
readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
|
|
|
readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
|
|
|
readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
|
|
|
readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
|
|
|
readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
|
|
|
readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
|
|
|
readonly PATHSEG_LINETO_ABS: number;
|
|
|
readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
|
|
|
readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
|
|
|
readonly PATHSEG_LINETO_REL: number;
|
|
|
readonly PATHSEG_LINETO_VERTICAL_ABS: number;
|
|
|
readonly PATHSEG_LINETO_VERTICAL_REL: number;
|
|
|
readonly PATHSEG_MOVETO_ABS: number;
|
|
|
readonly PATHSEG_MOVETO_REL: number;
|
|
|
readonly PATHSEG_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegArcAbs extends SVGPathSeg {
|
|
|
angle: number;
|
|
|
largeArcFlag: boolean;
|
|
|
r1: number;
|
|
|
r2: number;
|
|
|
sweepFlag: boolean;
|
|
|
x: number;
|
|
|
y: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegArcAbs: {
|
|
|
prototype: SVGPathSegArcAbs;
|
|
|
new(): SVGPathSegArcAbs;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegArcRel extends SVGPathSeg {
|
|
|
angle: number;
|
|
|
largeArcFlag: boolean;
|
|
|
r1: number;
|
|
|
r2: number;
|
|
|
sweepFlag: boolean;
|
|
|
x: number;
|
|
|
y: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegArcRel: {
|
|
|
prototype: SVGPathSegArcRel;
|
|
|
new(): SVGPathSegArcRel;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegClosePath extends SVGPathSeg {
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegClosePath: {
|
|
|
prototype: SVGPathSegClosePath;
|
|
|
new(): SVGPathSegClosePath;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg {
|
|
|
x: number;
|
|
|
x1: number;
|
|
|
x2: number;
|
|
|
y: number;
|
|
|
y1: number;
|
|
|
y2: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegCurvetoCubicAbs: {
|
|
|
prototype: SVGPathSegCurvetoCubicAbs;
|
|
|
new(): SVGPathSegCurvetoCubicAbs;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegCurvetoCubicRel extends SVGPathSeg {
|
|
|
x: number;
|
|
|
x1: number;
|
|
|
x2: number;
|
|
|
y: number;
|
|
|
y1: number;
|
|
|
y2: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegCurvetoCubicRel: {
|
|
|
prototype: SVGPathSegCurvetoCubicRel;
|
|
|
new(): SVGPathSegCurvetoCubicRel;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg {
|
|
|
x: number;
|
|
|
x2: number;
|
|
|
y: number;
|
|
|
y2: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegCurvetoCubicSmoothAbs: {
|
|
|
prototype: SVGPathSegCurvetoCubicSmoothAbs;
|
|
|
new(): SVGPathSegCurvetoCubicSmoothAbs;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg {
|
|
|
x: number;
|
|
|
x2: number;
|
|
|
y: number;
|
|
|
y2: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegCurvetoCubicSmoothRel: {
|
|
|
prototype: SVGPathSegCurvetoCubicSmoothRel;
|
|
|
new(): SVGPathSegCurvetoCubicSmoothRel;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg {
|
|
|
x: number;
|
|
|
x1: number;
|
|
|
y: number;
|
|
|
y1: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegCurvetoQuadraticAbs: {
|
|
|
prototype: SVGPathSegCurvetoQuadraticAbs;
|
|
|
new(): SVGPathSegCurvetoQuadraticAbs;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {
|
|
|
x: number;
|
|
|
x1: number;
|
|
|
y: number;
|
|
|
y1: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegCurvetoQuadraticRel: {
|
|
|
prototype: SVGPathSegCurvetoQuadraticRel;
|
|
|
new(): SVGPathSegCurvetoQuadraticRel;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg {
|
|
|
x: number;
|
|
|
y: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegCurvetoQuadraticSmoothAbs: {
|
|
|
prototype: SVGPathSegCurvetoQuadraticSmoothAbs;
|
|
|
new(): SVGPathSegCurvetoQuadraticSmoothAbs;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg {
|
|
|
x: number;
|
|
|
y: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegCurvetoQuadraticSmoothRel: {
|
|
|
prototype: SVGPathSegCurvetoQuadraticSmoothRel;
|
|
|
new(): SVGPathSegCurvetoQuadraticSmoothRel;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegLinetoAbs extends SVGPathSeg {
|
|
|
x: number;
|
|
|
y: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegLinetoAbs: {
|
|
|
prototype: SVGPathSegLinetoAbs;
|
|
|
new(): SVGPathSegLinetoAbs;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg {
|
|
|
x: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegLinetoHorizontalAbs: {
|
|
|
prototype: SVGPathSegLinetoHorizontalAbs;
|
|
|
new(): SVGPathSegLinetoHorizontalAbs;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg {
|
|
|
x: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegLinetoHorizontalRel: {
|
|
|
prototype: SVGPathSegLinetoHorizontalRel;
|
|
|
new(): SVGPathSegLinetoHorizontalRel;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegLinetoRel extends SVGPathSeg {
|
|
|
x: number;
|
|
|
y: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegLinetoRel: {
|
|
|
prototype: SVGPathSegLinetoRel;
|
|
|
new(): SVGPathSegLinetoRel;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg {
|
|
|
y: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegLinetoVerticalAbs: {
|
|
|
prototype: SVGPathSegLinetoVerticalAbs;
|
|
|
new(): SVGPathSegLinetoVerticalAbs;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegLinetoVerticalRel extends SVGPathSeg {
|
|
|
y: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegLinetoVerticalRel: {
|
|
|
prototype: SVGPathSegLinetoVerticalRel;
|
|
|
new(): SVGPathSegLinetoVerticalRel;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegList {
|
|
|
readonly numberOfItems: number;
|
|
|
appendItem(newItem: SVGPathSeg): SVGPathSeg;
|
|
|
clear(): void;
|
|
|
getItem(index: number): SVGPathSeg;
|
|
|
initialize(newItem: SVGPathSeg): SVGPathSeg;
|
|
|
insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg;
|
|
|
removeItem(index: number): SVGPathSeg;
|
|
|
replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegList: {
|
|
|
prototype: SVGPathSegList;
|
|
|
new(): SVGPathSegList;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegMovetoAbs extends SVGPathSeg {
|
|
|
x: number;
|
|
|
y: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegMovetoAbs: {
|
|
|
prototype: SVGPathSegMovetoAbs;
|
|
|
new(): SVGPathSegMovetoAbs;
|
|
|
};
|
|
|
|
|
|
interface SVGPathSegMovetoRel extends SVGPathSeg {
|
|
|
x: number;
|
|
|
y: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPathSegMovetoRel: {
|
|
|
prototype: SVGPathSegMovetoRel;
|
|
|
new(): SVGPathSegMovetoRel;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <pattern> element. */
|
|
|
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGTests, SVGURIReference {
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly patternContentUnits: SVGAnimatedEnumeration;
|
|
|
readonly patternTransform: SVGAnimatedTransformList;
|
|
|
readonly patternUnits: SVGAnimatedEnumeration;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGPatternElement: {
|
|
|
prototype: SVGPatternElement;
|
|
|
new(): SVGPatternElement;
|
|
|
};
|
|
|
|
|
|
interface SVGPointList {
|
|
|
readonly length: number;
|
|
|
readonly numberOfItems: number;
|
|
|
appendItem(newItem: DOMPoint): DOMPoint;
|
|
|
clear(): void;
|
|
|
getItem(index: number): DOMPoint;
|
|
|
initialize(newItem: DOMPoint): DOMPoint;
|
|
|
insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;
|
|
|
removeItem(index: number): DOMPoint;
|
|
|
replaceItem(newItem: DOMPoint, index: number): DOMPoint;
|
|
|
[index: number]: DOMPoint;
|
|
|
}
|
|
|
|
|
|
declare var SVGPointList: {
|
|
|
prototype: SVGPointList;
|
|
|
new(): SVGPointList;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <polygon> elements, as well as methods to manipulate them. */
|
|
|
interface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGPolygonElement: {
|
|
|
prototype: SVGPolygonElement;
|
|
|
new(): SVGPolygonElement;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <polyline> elements, as well as methods to manipulate them. */
|
|
|
interface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGPolylineElement: {
|
|
|
prototype: SVGPolylineElement;
|
|
|
new(): SVGPolylineElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements. */
|
|
|
interface SVGPreserveAspectRatio {
|
|
|
align: number;
|
|
|
meetOrSlice: number;
|
|
|
readonly SVG_MEETORSLICE_MEET: number;
|
|
|
readonly SVG_MEETORSLICE_SLICE: number;
|
|
|
readonly SVG_MEETORSLICE_UNKNOWN: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_NONE: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGPreserveAspectRatio: {
|
|
|
prototype: SVGPreserveAspectRatio;
|
|
|
new(): SVGPreserveAspectRatio;
|
|
|
readonly SVG_MEETORSLICE_MEET: number;
|
|
|
readonly SVG_MEETORSLICE_SLICE: number;
|
|
|
readonly SVG_MEETORSLICE_UNKNOWN: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_NONE: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
|
|
|
readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <RadialGradient> element. */
|
|
|
interface SVGRadialGradientElement extends SVGGradientElement {
|
|
|
readonly cx: SVGAnimatedLength;
|
|
|
readonly cy: SVGAnimatedLength;
|
|
|
readonly fx: SVGAnimatedLength;
|
|
|
readonly fy: SVGAnimatedLength;
|
|
|
readonly r: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGRadialGradientElement: {
|
|
|
prototype: SVGRadialGradientElement;
|
|
|
new(): SVGRadialGradientElement;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <rect> elements, as well as methods to manipulate them. */
|
|
|
interface SVGRectElement extends SVGGeometryElement {
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly rx: SVGAnimatedLength;
|
|
|
readonly ry: SVGAnimatedLength;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGRectElement: {
|
|
|
prototype: SVGRectElement;
|
|
|
new(): SVGRectElement;
|
|
|
};
|
|
|
|
|
|
interface SVGSVGElementEventMap extends SVGElementEventMap {
|
|
|
"SVGUnload": Event;
|
|
|
"SVGZoom": SVGZoomEvent;
|
|
|
}
|
|
|
|
|
|
/** Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices. */
|
|
|
interface SVGSVGElement extends SVGGraphicsElement, DocumentEvent, SVGFitToViewBox, SVGZoomAndPan {
|
|
|
/** @deprecated */
|
|
|
contentScriptType: string;
|
|
|
/** @deprecated */
|
|
|
contentStyleType: string;
|
|
|
currentScale: number;
|
|
|
readonly currentTranslate: SVGPoint;
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
onunload: ((this: SVGSVGElement, ev: Event) => any) | null;
|
|
|
onzoom: ((this: SVGSVGElement, ev: SVGZoomEvent) => any) | null;
|
|
|
/** @deprecated */
|
|
|
readonly pixelUnitToMillimeterX: number;
|
|
|
/** @deprecated */
|
|
|
readonly pixelUnitToMillimeterY: number;
|
|
|
/** @deprecated */
|
|
|
readonly screenPixelToMillimeterX: number;
|
|
|
/** @deprecated */
|
|
|
readonly screenPixelToMillimeterY: number;
|
|
|
/** @deprecated */
|
|
|
readonly viewport: SVGRect;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
animationsPaused(): boolean;
|
|
|
checkEnclosure(element: SVGElement, rect: SVGRect): boolean;
|
|
|
checkIntersection(element: SVGElement, rect: SVGRect): boolean;
|
|
|
createSVGAngle(): SVGAngle;
|
|
|
createSVGLength(): SVGLength;
|
|
|
createSVGMatrix(): SVGMatrix;
|
|
|
createSVGNumber(): SVGNumber;
|
|
|
createSVGPoint(): SVGPoint;
|
|
|
createSVGRect(): SVGRect;
|
|
|
createSVGTransform(): SVGTransform;
|
|
|
createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
|
|
|
deselectAll(): void;
|
|
|
/** @deprecated */
|
|
|
forceRedraw(): void;
|
|
|
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
|
|
|
getCurrentTime(): number;
|
|
|
getElementById(elementId: string): Element;
|
|
|
getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
|
|
|
getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
|
|
|
pauseAnimations(): void;
|
|
|
setCurrentTime(seconds: number): void;
|
|
|
/** @deprecated */
|
|
|
suspendRedraw(maxWaitMilliseconds: number): number;
|
|
|
unpauseAnimations(): void;
|
|
|
/** @deprecated */
|
|
|
unsuspendRedraw(suspendHandleID: number): void;
|
|
|
/** @deprecated */
|
|
|
unsuspendRedrawAll(): void;
|
|
|
addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGSVGElement: {
|
|
|
prototype: SVGSVGElement;
|
|
|
new(): SVGSVGElement;
|
|
|
readonly SVG_ZOOMANDPAN_DISABLE: number;
|
|
|
readonly SVG_ZOOMANDPAN_MAGNIFY: number;
|
|
|
readonly SVG_ZOOMANDPAN_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the SVG <script> element. */
|
|
|
interface SVGScriptElement extends SVGElement, SVGURIReference {
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGScriptElement: {
|
|
|
prototype: SVGScriptElement;
|
|
|
new(): SVGScriptElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <stop> element. */
|
|
|
interface SVGStopElement extends SVGElement {
|
|
|
readonly offset: SVGAnimatedNumber;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGStopElement: {
|
|
|
prototype: SVGStopElement;
|
|
|
new(): SVGStopElement;
|
|
|
};
|
|
|
|
|
|
/** The SVGStringList defines a list of DOMString objects. */
|
|
|
interface SVGStringList {
|
|
|
readonly length: number;
|
|
|
readonly numberOfItems: number;
|
|
|
appendItem(newItem: string): string;
|
|
|
clear(): void;
|
|
|
getItem(index: number): string;
|
|
|
initialize(newItem: string): string;
|
|
|
insertItemBefore(newItem: string, index: number): string;
|
|
|
removeItem(index: number): string;
|
|
|
replaceItem(newItem: string, index: number): string;
|
|
|
[index: number]: string;
|
|
|
}
|
|
|
|
|
|
declare var SVGStringList: {
|
|
|
prototype: SVGStringList;
|
|
|
new(): SVGStringList;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the SVG <style> element. */
|
|
|
interface SVGStyleElement extends SVGElement {
|
|
|
disabled: boolean;
|
|
|
media: string;
|
|
|
title: string;
|
|
|
type: string;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGStyleElement: {
|
|
|
prototype: SVGStyleElement;
|
|
|
new(): SVGStyleElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <switch> element. */
|
|
|
interface SVGSwitchElement extends SVGGraphicsElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGSwitchElement: {
|
|
|
prototype: SVGSwitchElement;
|
|
|
new(): SVGSwitchElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <symbol> element. */
|
|
|
interface SVGSymbolElement extends SVGElement, SVGFitToViewBox {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGSymbolElement: {
|
|
|
prototype: SVGSymbolElement;
|
|
|
new(): SVGSymbolElement;
|
|
|
};
|
|
|
|
|
|
/** A <tspan> element. */
|
|
|
interface SVGTSpanElement extends SVGTextPositioningElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGTSpanElement: {
|
|
|
prototype: SVGTSpanElement;
|
|
|
new(): SVGTSpanElement;
|
|
|
};
|
|
|
|
|
|
interface SVGTests {
|
|
|
readonly requiredExtensions: SVGStringList;
|
|
|
readonly systemLanguage: SVGStringList;
|
|
|
}
|
|
|
|
|
|
/** Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement. */
|
|
|
interface SVGTextContentElement extends SVGGraphicsElement {
|
|
|
readonly lengthAdjust: SVGAnimatedEnumeration;
|
|
|
readonly textLength: SVGAnimatedLength;
|
|
|
getCharNumAtPosition(point: SVGPoint): number;
|
|
|
getComputedTextLength(): number;
|
|
|
getEndPositionOfChar(charnum: number): SVGPoint;
|
|
|
getExtentOfChar(charnum: number): SVGRect;
|
|
|
getNumberOfChars(): number;
|
|
|
getRotationOfChar(charnum: number): number;
|
|
|
getStartPositionOfChar(charnum: number): SVGPoint;
|
|
|
getSubStringLength(charnum: number, nchars: number): number;
|
|
|
selectSubString(charnum: number, nchars: number): void;
|
|
|
readonly LENGTHADJUST_SPACING: number;
|
|
|
readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
|
|
|
readonly LENGTHADJUST_UNKNOWN: number;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGTextContentElement: {
|
|
|
prototype: SVGTextContentElement;
|
|
|
new(): SVGTextContentElement;
|
|
|
readonly LENGTHADJUST_SPACING: number;
|
|
|
readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
|
|
|
readonly LENGTHADJUST_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <text> elements. */
|
|
|
interface SVGTextElement extends SVGTextPositioningElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGTextElement: {
|
|
|
prototype: SVGTextElement;
|
|
|
new(): SVGTextElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <textPath> element. */
|
|
|
interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
|
|
|
readonly method: SVGAnimatedEnumeration;
|
|
|
readonly spacing: SVGAnimatedEnumeration;
|
|
|
readonly startOffset: SVGAnimatedLength;
|
|
|
readonly TEXTPATH_METHODTYPE_ALIGN: number;
|
|
|
readonly TEXTPATH_METHODTYPE_STRETCH: number;
|
|
|
readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
|
|
|
readonly TEXTPATH_SPACINGTYPE_AUTO: number;
|
|
|
readonly TEXTPATH_SPACINGTYPE_EXACT: number;
|
|
|
readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGTextPathElement: {
|
|
|
prototype: SVGTextPathElement;
|
|
|
new(): SVGTextPathElement;
|
|
|
readonly TEXTPATH_METHODTYPE_ALIGN: number;
|
|
|
readonly TEXTPATH_METHODTYPE_STRETCH: number;
|
|
|
readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
|
|
|
readonly TEXTPATH_SPACINGTYPE_AUTO: number;
|
|
|
readonly TEXTPATH_SPACINGTYPE_EXACT: number;
|
|
|
readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */
|
|
|
interface SVGTextPositioningElement extends SVGTextContentElement {
|
|
|
readonly dx: SVGAnimatedLengthList;
|
|
|
readonly dy: SVGAnimatedLengthList;
|
|
|
readonly rotate: SVGAnimatedNumberList;
|
|
|
readonly x: SVGAnimatedLengthList;
|
|
|
readonly y: SVGAnimatedLengthList;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGTextPositioningElement: {
|
|
|
prototype: SVGTextPositioningElement;
|
|
|
new(): SVGTextPositioningElement;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <title> element. */
|
|
|
interface SVGTitleElement extends SVGElement {
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGTitleElement: {
|
|
|
prototype: SVGTitleElement;
|
|
|
new(): SVGTitleElement;
|
|
|
};
|
|
|
|
|
|
/** SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(\u2026) or matrix(\u2026)) within a transform attribute. */
|
|
|
interface SVGTransform {
|
|
|
readonly angle: number;
|
|
|
readonly matrix: SVGMatrix;
|
|
|
readonly type: number;
|
|
|
setMatrix(matrix: SVGMatrix): void;
|
|
|
setRotate(angle: number, cx: number, cy: number): void;
|
|
|
setScale(sx: number, sy: number): void;
|
|
|
setSkewX(angle: number): void;
|
|
|
setSkewY(angle: number): void;
|
|
|
setTranslate(tx: number, ty: number): void;
|
|
|
readonly SVG_TRANSFORM_MATRIX: number;
|
|
|
readonly SVG_TRANSFORM_ROTATE: number;
|
|
|
readonly SVG_TRANSFORM_SCALE: number;
|
|
|
readonly SVG_TRANSFORM_SKEWX: number;
|
|
|
readonly SVG_TRANSFORM_SKEWY: number;
|
|
|
readonly SVG_TRANSFORM_TRANSLATE: number;
|
|
|
readonly SVG_TRANSFORM_UNKNOWN: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGTransform: {
|
|
|
prototype: SVGTransform;
|
|
|
new(): SVGTransform;
|
|
|
readonly SVG_TRANSFORM_MATRIX: number;
|
|
|
readonly SVG_TRANSFORM_ROTATE: number;
|
|
|
readonly SVG_TRANSFORM_SCALE: number;
|
|
|
readonly SVG_TRANSFORM_SKEWX: number;
|
|
|
readonly SVG_TRANSFORM_SKEWY: number;
|
|
|
readonly SVG_TRANSFORM_TRANSLATE: number;
|
|
|
readonly SVG_TRANSFORM_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** The SVGTransformList defines a list of SVGTransform objects. */
|
|
|
interface SVGTransformList {
|
|
|
readonly numberOfItems: number;
|
|
|
appendItem(newItem: SVGTransform): SVGTransform;
|
|
|
clear(): void;
|
|
|
consolidate(): SVGTransform;
|
|
|
createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
|
|
|
getItem(index: number): SVGTransform;
|
|
|
initialize(newItem: SVGTransform): SVGTransform;
|
|
|
insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
|
|
|
removeItem(index: number): SVGTransform;
|
|
|
replaceItem(newItem: SVGTransform, index: number): SVGTransform;
|
|
|
}
|
|
|
|
|
|
declare var SVGTransformList: {
|
|
|
prototype: SVGTransformList;
|
|
|
new(): SVGTransformList;
|
|
|
};
|
|
|
|
|
|
interface SVGURIReference {
|
|
|
readonly href: SVGAnimatedString;
|
|
|
}
|
|
|
|
|
|
/** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */
|
|
|
interface SVGUnitTypes {
|
|
|
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
|
|
|
readonly SVG_UNIT_TYPE_UNKNOWN: number;
|
|
|
readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGUnitTypes: {
|
|
|
prototype: SVGUnitTypes;
|
|
|
new(): SVGUnitTypes;
|
|
|
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
|
|
|
readonly SVG_UNIT_TYPE_UNKNOWN: number;
|
|
|
readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
|
|
|
};
|
|
|
|
|
|
/** Corresponds to the <use> element. */
|
|
|
interface SVGUseElement extends SVGGraphicsElement, SVGURIReference {
|
|
|
readonly animatedInstanceRoot: SVGElementInstance | null;
|
|
|
readonly height: SVGAnimatedLength;
|
|
|
readonly instanceRoot: SVGElementInstance | null;
|
|
|
readonly width: SVGAnimatedLength;
|
|
|
readonly x: SVGAnimatedLength;
|
|
|
readonly y: SVGAnimatedLength;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGUseElement: {
|
|
|
prototype: SVGUseElement;
|
|
|
new(): SVGUseElement;
|
|
|
};
|
|
|
|
|
|
/** Provides access to the properties of <view> elements, as well as methods to manipulate them. */
|
|
|
interface SVGViewElement extends SVGElement, SVGFitToViewBox, SVGZoomAndPan {
|
|
|
/** @deprecated */
|
|
|
readonly viewTarget: SVGStringList;
|
|
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SVGViewElement: {
|
|
|
prototype: SVGViewElement;
|
|
|
new(): SVGViewElement;
|
|
|
readonly SVG_ZOOMANDPAN_DISABLE: number;
|
|
|
readonly SVG_ZOOMANDPAN_MAGNIFY: number;
|
|
|
readonly SVG_ZOOMANDPAN_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
/** Used to reflect the zoomAndPan attribute, and is mixed in to other interfaces for elements that support this attribute. */
|
|
|
interface SVGZoomAndPan {
|
|
|
readonly zoomAndPan: number;
|
|
|
}
|
|
|
|
|
|
declare var SVGZoomAndPan: {
|
|
|
readonly SVG_ZOOMANDPAN_DISABLE: number;
|
|
|
readonly SVG_ZOOMANDPAN_MAGNIFY: number;
|
|
|
readonly SVG_ZOOMANDPAN_UNKNOWN: number;
|
|
|
};
|
|
|
|
|
|
interface SVGZoomEvent extends UIEvent {
|
|
|
readonly newScale: number;
|
|
|
readonly newTranslate: SVGPoint;
|
|
|
readonly previousScale: number;
|
|
|
readonly previousTranslate: SVGPoint;
|
|
|
readonly zoomRectScreen: SVGRect;
|
|
|
}
|
|
|
|
|
|
declare var SVGZoomEvent: {
|
|
|
prototype: SVGZoomEvent;
|
|
|
new(): SVGZoomEvent;
|
|
|
};
|
|
|
|
|
|
interface ScopedCredential {
|
|
|
readonly id: ArrayBuffer;
|
|
|
readonly type: ScopedCredentialType;
|
|
|
}
|
|
|
|
|
|
declare var ScopedCredential: {
|
|
|
prototype: ScopedCredential;
|
|
|
new(): ScopedCredential;
|
|
|
};
|
|
|
|
|
|
interface ScopedCredentialInfo {
|
|
|
readonly credential: ScopedCredential;
|
|
|
readonly publicKey: CryptoKey;
|
|
|
}
|
|
|
|
|
|
declare var ScopedCredentialInfo: {
|
|
|
prototype: ScopedCredentialInfo;
|
|
|
new(): ScopedCredentialInfo;
|
|
|
};
|
|
|
|
|
|
/** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */
|
|
|
interface Screen {
|
|
|
readonly availHeight: number;
|
|
|
readonly availWidth: number;
|
|
|
readonly colorDepth: number;
|
|
|
readonly height: number;
|
|
|
readonly orientation: ScreenOrientation;
|
|
|
readonly pixelDepth: number;
|
|
|
readonly width: number;
|
|
|
}
|
|
|
|
|
|
declare var Screen: {
|
|
|
prototype: Screen;
|
|
|
new(): Screen;
|
|
|
};
|
|
|
|
|
|
interface ScreenOrientationEventMap {
|
|
|
"change": Event;
|
|
|
}
|
|
|
|
|
|
interface ScreenOrientation extends EventTarget {
|
|
|
readonly angle: number;
|
|
|
onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
|
|
|
readonly type: OrientationType;
|
|
|
lock(orientation: OrientationLockType): Promise<void>;
|
|
|
unlock(): void;
|
|
|
addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var ScreenOrientation: {
|
|
|
prototype: ScreenOrientation;
|
|
|
new(): ScreenOrientation;
|
|
|
};
|
|
|
|
|
|
interface ScriptProcessorNodeEventMap {
|
|
|
"audioprocess": AudioProcessingEvent;
|
|
|
}
|
|
|
|
|
|
/** Allows the generation, processing, or analyzing of audio using JavaScript. */
|
|
|
interface ScriptProcessorNode extends AudioNode {
|
|
|
/** @deprecated */
|
|
|
readonly bufferSize: number;
|
|
|
/** @deprecated */
|
|
|
onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;
|
|
|
addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var ScriptProcessorNode: {
|
|
|
prototype: ScriptProcessorNode;
|
|
|
new(): ScriptProcessorNode;
|
|
|
};
|
|
|
|
|
|
/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
|
|
|
interface SecurityPolicyViolationEvent extends Event {
|
|
|
readonly blockedURI: string;
|
|
|
readonly columnNumber: number;
|
|
|
readonly documentURI: string;
|
|
|
readonly effectiveDirective: string;
|
|
|
readonly lineNumber: number;
|
|
|
readonly originalPolicy: string;
|
|
|
readonly referrer: string;
|
|
|
readonly sourceFile: string;
|
|
|
readonly statusCode: number;
|
|
|
readonly violatedDirective: string;
|
|
|
}
|
|
|
|
|
|
declare var SecurityPolicyViolationEvent: {
|
|
|
prototype: SecurityPolicyViolationEvent;
|
|
|
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
|
|
|
};
|
|
|
|
|
|
/** A Selection object\xA0represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or\xA0modification, call Window.getSelection(). */
|
|
|
interface Selection {
|
|
|
readonly anchorNode: Node | null;
|
|
|
readonly anchorOffset: number;
|
|
|
readonly focusNode: Node | null;
|
|
|
readonly focusOffset: number;
|
|
|
readonly isCollapsed: boolean;
|
|
|
readonly rangeCount: number;
|
|
|
readonly type: string;
|
|
|
addRange(range: Range): void;
|
|
|
collapse(node: Node | null, offset?: number): void;
|
|
|
collapseToEnd(): void;
|
|
|
collapseToStart(): void;
|
|
|
containsNode(node: Node, allowPartialContainment?: boolean): boolean;
|
|
|
deleteFromDocument(): void;
|
|
|
empty(): void;
|
|
|
extend(node: Node, offset?: number): void;
|
|
|
getRangeAt(index: number): Range;
|
|
|
removeAllRanges(): void;
|
|
|
removeRange(range: Range): void;
|
|
|
selectAllChildren(node: Node): void;
|
|
|
setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
|
|
|
setPosition(node: Node | null, offset?: number): void;
|
|
|
}
|
|
|
|
|
|
declare var Selection: {
|
|
|
prototype: Selection;
|
|
|
new(): Selection;
|
|
|
};
|
|
|
|
|
|
interface ServiceUIFrameContext {
|
|
|
getCachedFrameMessage(key: string): string;
|
|
|
postFrameMessage(key: string, data: string): void;
|
|
|
}
|
|
|
declare var ServiceUIFrameContext: ServiceUIFrameContext;
|
|
|
|
|
|
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
|
|
|
"statechange": Event;
|
|
|
}
|
|
|
|
|
|
/** This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object. */
|
|
|
interface ServiceWorker extends EventTarget, AbstractWorker {
|
|
|
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
|
|
|
readonly scriptURL: string;
|
|
|
readonly state: ServiceWorkerState;
|
|
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
|
postMessage(message: any, options?: PostMessageOptions): void;
|
|
|
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var ServiceWorker: {
|
|
|
prototype: ServiceWorker;
|
|
|
new(): ServiceWorker;
|
|
|
};
|
|
|
|
|
|
interface ServiceWorkerContainerEventMap {
|
|
|
"controllerchange": Event;
|
|
|
"message": MessageEvent;
|
|
|
"messageerror": MessageEvent;
|
|
|
}
|
|
|
|
|
|
/** The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations. */
|
|
|
interface ServiceWorkerContainer extends EventTarget {
|
|
|
readonly controller: ServiceWorker | null;
|
|
|
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
|
|
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
|
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
|
readonly ready: Promise<ServiceWorkerRegistration>;
|
|
|
getRegistration(clientURL?: string): Promise<ServiceWorkerRegistration | undefined>;
|
|
|
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
|
|
|
register(scriptURL: string, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
|
|
|
startMessages(): void;
|
|
|
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var ServiceWorkerContainer: {
|
|
|
prototype: ServiceWorkerContainer;
|
|
|
new(): ServiceWorkerContainer;
|
|
|
};
|
|
|
|
|
|
/** This ServiceWorker API interface contains information about an event sent to a ServiceWorkerContainer\xA0target. This extends the default message event to allow setting a ServiceWorker object as the source of a message. The event object is accessed via the handler function of a message event, when fired by a message received from a service worker. */
|
|
|
interface ServiceWorkerMessageEvent extends Event {
|
|
|
readonly data: any;
|
|
|
readonly lastEventId: string;
|
|
|
readonly origin: string;
|
|
|
readonly ports: ReadonlyArray<MessagePort> | null;
|
|
|
readonly source: ServiceWorker | MessagePort | null;
|
|
|
}
|
|
|
|
|
|
declare var ServiceWorkerMessageEvent: {
|
|
|
prototype: ServiceWorkerMessageEvent;
|
|
|
new(type: string, eventInitDict?: ServiceWorkerMessageEventInit): ServiceWorkerMessageEvent;
|
|
|
};
|
|
|
|
|
|
interface ServiceWorkerRegistrationEventMap {
|
|
|
"updatefound": Event;
|
|
|
}
|
|
|
|
|
|
/** This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin. */
|
|
|
interface ServiceWorkerRegistration extends EventTarget {
|
|
|
readonly active: ServiceWorker | null;
|
|
|
readonly installing: ServiceWorker | null;
|
|
|
readonly navigationPreload: NavigationPreloadManager;
|
|
|
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
|
|
|
readonly pushManager: PushManager;
|
|
|
readonly scope: string;
|
|
|
readonly sync: SyncManager;
|
|
|
readonly updateViaCache: ServiceWorkerUpdateViaCache;
|
|
|
readonly waiting: ServiceWorker | null;
|
|
|
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
|
|
|
showNotification(title: string, options?: NotificationOptions): Promise<void>;
|
|
|
unregister(): Promise<boolean>;
|
|
|
update(): Promise<void>;
|
|
|
addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var ServiceWorkerRegistration: {
|
|
|
prototype: ServiceWorkerRegistration;
|
|
|
new(): ServiceWorkerRegistration;
|
|
|
};
|
|
|
|
|
|
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
|
|
|
readonly host: Element;
|
|
|
readonly mode: ShadowRootMode;
|
|
|
}
|
|
|
|
|
|
declare var ShadowRoot: {
|
|
|
prototype: ShadowRoot;
|
|
|
new(): ShadowRoot;
|
|
|
};
|
|
|
|
|
|
interface Slotable {
|
|
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
|
}
|
|
|
|
|
|
interface SourceBufferEventMap {
|
|
|
"abort": Event;
|
|
|
"error": Event;
|
|
|
"update": Event;
|
|
|
"updateend": Event;
|
|
|
"updatestart": Event;
|
|
|
}
|
|
|
|
|
|
/** A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource\xA0object. This can be made up of one or several media segments. */
|
|
|
interface SourceBuffer extends EventTarget {
|
|
|
appendWindowEnd: number;
|
|
|
appendWindowStart: number;
|
|
|
readonly audioTracks: AudioTrackList;
|
|
|
readonly buffered: TimeRanges;
|
|
|
mode: AppendMode;
|
|
|
onabort: ((this: SourceBuffer, ev: Event) => any) | null;
|
|
|
onerror: ((this: SourceBuffer, ev: Event) => any) | null;
|
|
|
onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
|
|
|
onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
|
|
|
onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
|
|
|
readonly textTracks: TextTrackList;
|
|
|
timestampOffset: number;
|
|
|
readonly updating: boolean;
|
|
|
readonly videoTracks: VideoTrackList;
|
|
|
abort(): void;
|
|
|
appendBuffer(data: BufferSource): void;
|
|
|
remove(start: number, end: number): void;
|
|
|
addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SourceBuffer: {
|
|
|
prototype: SourceBuffer;
|
|
|
new(): SourceBuffer;
|
|
|
};
|
|
|
|
|
|
interface SourceBufferListEventMap {
|
|
|
"addsourcebuffer": Event;
|
|
|
"removesourcebuffer": Event;
|
|
|
}
|
|
|
|
|
|
/** A simple container list for multiple SourceBuffer objects. */
|
|
|
interface SourceBufferList extends EventTarget {
|
|
|
readonly length: number;
|
|
|
onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
|
|
|
onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
|
|
|
addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
[index: number]: SourceBuffer;
|
|
|
}
|
|
|
|
|
|
declare var SourceBufferList: {
|
|
|
prototype: SourceBufferList;
|
|
|
new(): SourceBufferList;
|
|
|
};
|
|
|
|
|
|
interface SpeechGrammar {
|
|
|
src: string;
|
|
|
weight: number;
|
|
|
}
|
|
|
|
|
|
declare var SpeechGrammar: {
|
|
|
prototype: SpeechGrammar;
|
|
|
new(): SpeechGrammar;
|
|
|
};
|
|
|
|
|
|
interface SpeechGrammarList {
|
|
|
readonly length: number;
|
|
|
addFromString(string: string, weight?: number): void;
|
|
|
addFromURI(src: string, weight?: number): void;
|
|
|
item(index: number): SpeechGrammar;
|
|
|
[index: number]: SpeechGrammar;
|
|
|
}
|
|
|
|
|
|
declare var SpeechGrammarList: {
|
|
|
prototype: SpeechGrammarList;
|
|
|
new(): SpeechGrammarList;
|
|
|
};
|
|
|
|
|
|
interface SpeechRecognitionEventMap {
|
|
|
"audioend": Event;
|
|
|
"audiostart": Event;
|
|
|
"end": Event;
|
|
|
"error": SpeechRecognitionError;
|
|
|
"nomatch": SpeechRecognitionEvent;
|
|
|
"result": SpeechRecognitionEvent;
|
|
|
"soundend": Event;
|
|
|
"soundstart": Event;
|
|
|
"speechend": Event;
|
|
|
"speechstart": Event;
|
|
|
"start": Event;
|
|
|
}
|
|
|
|
|
|
interface SpeechRecognition extends EventTarget {
|
|
|
continuous: boolean;
|
|
|
grammars: SpeechGrammarList;
|
|
|
interimResults: boolean;
|
|
|
lang: string;
|
|
|
maxAlternatives: number;
|
|
|
onaudioend: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
|
onaudiostart: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
|
onend: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
|
onerror: ((this: SpeechRecognition, ev: SpeechRecognitionError) => any) | null;
|
|
|
onnomatch: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null;
|
|
|
onresult: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null;
|
|
|
onsoundend: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
|
onsoundstart: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
|
onspeechend: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
|
onspeechstart: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
|
onstart: ((this: SpeechRecognition, ev: Event) => any) | null;
|
|
|
serviceURI: string;
|
|
|
abort(): void;
|
|
|
start(): void;
|
|
|
stop(): void;
|
|
|
addEventListener<K extends keyof SpeechRecognitionEventMap>(type: K, listener: (this: SpeechRecognition, ev: SpeechRecognitionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SpeechRecognitionEventMap>(type: K, listener: (this: SpeechRecognition, ev: SpeechRecognitionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SpeechRecognition: {
|
|
|
prototype: SpeechRecognition;
|
|
|
new(): SpeechRecognition;
|
|
|
};
|
|
|
|
|
|
interface SpeechRecognitionAlternative {
|
|
|
readonly confidence: number;
|
|
|
readonly transcript: string;
|
|
|
}
|
|
|
|
|
|
declare var SpeechRecognitionAlternative: {
|
|
|
prototype: SpeechRecognitionAlternative;
|
|
|
new(): SpeechRecognitionAlternative;
|
|
|
};
|
|
|
|
|
|
interface SpeechRecognitionError extends Event {
|
|
|
readonly error: SpeechRecognitionErrorCode;
|
|
|
readonly message: string;
|
|
|
}
|
|
|
|
|
|
declare var SpeechRecognitionError: {
|
|
|
prototype: SpeechRecognitionError;
|
|
|
new(): SpeechRecognitionError;
|
|
|
};
|
|
|
|
|
|
interface SpeechRecognitionEvent extends Event {
|
|
|
readonly emma: Document | null;
|
|
|
readonly interpretation: any;
|
|
|
readonly resultIndex: number;
|
|
|
readonly results: SpeechRecognitionResultList;
|
|
|
}
|
|
|
|
|
|
declare var SpeechRecognitionEvent: {
|
|
|
prototype: SpeechRecognitionEvent;
|
|
|
new(): SpeechRecognitionEvent;
|
|
|
};
|
|
|
|
|
|
interface SpeechRecognitionResult {
|
|
|
readonly isFinal: boolean;
|
|
|
readonly length: number;
|
|
|
item(index: number): SpeechRecognitionAlternative;
|
|
|
[index: number]: SpeechRecognitionAlternative;
|
|
|
}
|
|
|
|
|
|
declare var SpeechRecognitionResult: {
|
|
|
prototype: SpeechRecognitionResult;
|
|
|
new(): SpeechRecognitionResult;
|
|
|
};
|
|
|
|
|
|
interface SpeechRecognitionResultList {
|
|
|
readonly length: number;
|
|
|
item(index: number): SpeechRecognitionResult;
|
|
|
[index: number]: SpeechRecognitionResult;
|
|
|
}
|
|
|
|
|
|
declare var SpeechRecognitionResultList: {
|
|
|
prototype: SpeechRecognitionResultList;
|
|
|
new(): SpeechRecognitionResultList;
|
|
|
};
|
|
|
|
|
|
interface SpeechSynthesisEventMap {
|
|
|
"voiceschanged": Event;
|
|
|
}
|
|
|
|
|
|
/** This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides. */
|
|
|
interface SpeechSynthesis extends EventTarget {
|
|
|
onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;
|
|
|
readonly paused: boolean;
|
|
|
readonly pending: boolean;
|
|
|
readonly speaking: boolean;
|
|
|
cancel(): void;
|
|
|
getVoices(): SpeechSynthesisVoice[];
|
|
|
pause(): void;
|
|
|
resume(): void;
|
|
|
speak(utterance: SpeechSynthesisUtterance): void;
|
|
|
addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SpeechSynthesis: {
|
|
|
prototype: SpeechSynthesis;
|
|
|
new(): SpeechSynthesis;
|
|
|
};
|
|
|
|
|
|
interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {
|
|
|
readonly error: SpeechSynthesisErrorCode;
|
|
|
}
|
|
|
|
|
|
declare var SpeechSynthesisErrorEvent: {
|
|
|
prototype: SpeechSynthesisErrorEvent;
|
|
|
new(): SpeechSynthesisErrorEvent;
|
|
|
};
|
|
|
|
|
|
/** This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. */
|
|
|
interface SpeechSynthesisEvent extends Event {
|
|
|
readonly charIndex: number;
|
|
|
readonly elapsedTime: number;
|
|
|
readonly name: string;
|
|
|
readonly utterance: SpeechSynthesisUtterance;
|
|
|
}
|
|
|
|
|
|
declare var SpeechSynthesisEvent: {
|
|
|
prototype: SpeechSynthesisEvent;
|
|
|
new(): SpeechSynthesisEvent;
|
|
|
};
|
|
|
|
|
|
interface SpeechSynthesisUtteranceEventMap {
|
|
|
"boundary": SpeechSynthesisEvent;
|
|
|
"end": SpeechSynthesisEvent;
|
|
|
"error": SpeechSynthesisErrorEvent;
|
|
|
"mark": SpeechSynthesisEvent;
|
|
|
"pause": SpeechSynthesisEvent;
|
|
|
"resume": SpeechSynthesisEvent;
|
|
|
"start": SpeechSynthesisEvent;
|
|
|
}
|
|
|
|
|
|
/** This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.) */
|
|
|
interface SpeechSynthesisUtterance extends EventTarget {
|
|
|
lang: string;
|
|
|
onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
|
|
|
onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
|
|
|
onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;
|
|
|
onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
|
|
|
onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
|
|
|
onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
|
|
|
onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
|
|
|
pitch: number;
|
|
|
rate: number;
|
|
|
text: string;
|
|
|
voice: SpeechSynthesisVoice;
|
|
|
volume: number;
|
|
|
addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var SpeechSynthesisUtterance: {
|
|
|
prototype: SpeechSynthesisUtterance;
|
|
|
new(): SpeechSynthesisUtterance;
|
|
|
new(text: string): SpeechSynthesisUtterance;
|
|
|
};
|
|
|
|
|
|
/** This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI. */
|
|
|
interface SpeechSynthesisVoice {
|
|
|
readonly default: boolean;
|
|
|
readonly lang: string;
|
|
|
readonly localService: boolean;
|
|
|
readonly name: string;
|
|
|
readonly voiceURI: string;
|
|
|
}
|
|
|
|
|
|
declare var SpeechSynthesisVoice: {
|
|
|
prototype: SpeechSynthesisVoice;
|
|
|
new(): SpeechSynthesisVoice;
|
|
|
};
|
|
|
|
|
|
interface StaticRange extends AbstractRange {
|
|
|
}
|
|
|
|
|
|
declare var StaticRange: {
|
|
|
prototype: StaticRange;
|
|
|
new(): StaticRange;
|
|
|
};
|
|
|
|
|
|
/** The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode. */
|
|
|
interface StereoPannerNode extends AudioNode {
|
|
|
readonly pan: AudioParam;
|
|
|
}
|
|
|
|
|
|
declare var StereoPannerNode: {
|
|
|
prototype: StereoPannerNode;
|
|
|
new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;
|
|
|
};
|
|
|
|
|
|
/** This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items. */
|
|
|
interface Storage {
|
|
|
/**
|
|
|
* Returns the number of key/value pairs currently present in the list associated with the object.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Empties the list associated with the object of all key/value pairs, if there are any.
|
|
|
*/
|
|
|
clear(): void;
|
|
|
/**
|
|
|
* Returns the current value associated with the given key, or null if the given key does not exist in the list associated with the object.
|
|
|
*/
|
|
|
getItem(key: string): string | null;
|
|
|
/**
|
|
|
* Returns the name of the nth key in the list, or null if n is greater than or equal to the number of key/value pairs in the object.
|
|
|
*/
|
|
|
key(index: number): string | null;
|
|
|
/**
|
|
|
* Removes the key/value pair with the given key from the list associated with the object, if a key/value pair with the given key exists.
|
|
|
*/
|
|
|
removeItem(key: string): void;
|
|
|
/**
|
|
|
* Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
|
|
|
*
|
|
|
* Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)
|
|
|
*/
|
|
|
setItem(key: string, value: string): void;
|
|
|
[name: string]: any;
|
|
|
}
|
|
|
|
|
|
declare var Storage: {
|
|
|
prototype: Storage;
|
|
|
new(): Storage;
|
|
|
};
|
|
|
|
|
|
/** A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. */
|
|
|
interface StorageEvent extends Event {
|
|
|
/**
|
|
|
* Returns the key of the storage item being changed.
|
|
|
*/
|
|
|
readonly key: string | null;
|
|
|
/**
|
|
|
* Returns the new value of the key of the storage item whose value is being changed.
|
|
|
*/
|
|
|
readonly newValue: string | null;
|
|
|
/**
|
|
|
* Returns the old value of the key of the storage item whose value is being changed.
|
|
|
*/
|
|
|
readonly oldValue: string | null;
|
|
|
/**
|
|
|
* Returns the Storage object that was affected.
|
|
|
*/
|
|
|
readonly storageArea: Storage | null;
|
|
|
/**
|
|
|
* Returns the URL of the document whose storage item changed.
|
|
|
*/
|
|
|
readonly url: string;
|
|
|
}
|
|
|
|
|
|
declare var StorageEvent: {
|
|
|
prototype: StorageEvent;
|
|
|
new(type: string, eventInitDict?: StorageEventInit): StorageEvent;
|
|
|
};
|
|
|
|
|
|
interface StorageManager {
|
|
|
estimate(): Promise<StorageEstimate>;
|
|
|
persist(): Promise<boolean>;
|
|
|
persisted(): Promise<boolean>;
|
|
|
}
|
|
|
|
|
|
declare var StorageManager: {
|
|
|
prototype: StorageManager;
|
|
|
new(): StorageManager;
|
|
|
};
|
|
|
|
|
|
interface StyleMedia {
|
|
|
readonly type: string;
|
|
|
matchMedium(mediaquery: string): boolean;
|
|
|
}
|
|
|
|
|
|
declare var StyleMedia: {
|
|
|
prototype: StyleMedia;
|
|
|
new(): StyleMedia;
|
|
|
};
|
|
|
|
|
|
/** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */
|
|
|
interface StyleSheet {
|
|
|
disabled: boolean;
|
|
|
readonly href: string | null;
|
|
|
readonly media: MediaList;
|
|
|
readonly ownerNode: Node;
|
|
|
readonly parentStyleSheet: StyleSheet | null;
|
|
|
readonly title: string | null;
|
|
|
readonly type: string;
|
|
|
}
|
|
|
|
|
|
declare var StyleSheet: {
|
|
|
prototype: StyleSheet;
|
|
|
new(): StyleSheet;
|
|
|
};
|
|
|
|
|
|
/** A list of StyleSheet. */
|
|
|
interface StyleSheetList {
|
|
|
readonly length: number;
|
|
|
item(index: number): StyleSheet | null;
|
|
|
[index: number]: StyleSheet;
|
|
|
}
|
|
|
|
|
|
declare var StyleSheetList: {
|
|
|
prototype: StyleSheetList;
|
|
|
new(): StyleSheetList;
|
|
|
};
|
|
|
|
|
|
/** This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto). */
|
|
|
interface SubtleCrypto {
|
|
|
decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;
|
|
|
deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: number): PromiseLike<ArrayBuffer>;
|
|
|
deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
|
|
|
digest(algorithm: string | Algorithm, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;
|
|
|
encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;
|
|
|
exportKey(format: "jwk", key: CryptoKey): PromiseLike<JsonWebKey>;
|
|
|
exportKey(format: "raw" | "pkcs8" | "spki", key: CryptoKey): PromiseLike<ArrayBuffer>;
|
|
|
exportKey(format: string, key: CryptoKey): PromiseLike<JsonWebKey | ArrayBuffer>;
|
|
|
generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair | CryptoKey>;
|
|
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | DhKeyGenParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair>;
|
|
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
|
|
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
|
|
|
importKey(format: "raw" | "pkcs8" | "spki", keyData: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
|
|
|
importKey(format: string, keyData: JsonWebKey | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
|
|
|
sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;
|
|
|
unwrapKey(format: string, wrappedKey: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, unwrappingKey: CryptoKey, unwrapAlgorithm: string | Algorithm, unwrappedKeyAlgorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
|
|
|
verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, signature: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<boolean>;
|
|
|
wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: string | Algorithm): PromiseLike<ArrayBuffer>;
|
|
|
}
|
|
|
|
|
|
declare var SubtleCrypto: {
|
|
|
prototype: SubtleCrypto;
|
|
|
new(): SubtleCrypto;
|
|
|
};
|
|
|
|
|
|
/** This ServiceWorker API interface provides an interface for registering and listing sync registrations. */
|
|
|
interface SyncManager {
|
|
|
getTags(): Promise<string[]>;
|
|
|
register(tag: string): Promise<void>;
|
|
|
}
|
|
|
|
|
|
declare var SyncManager: {
|
|
|
prototype: SyncManager;
|
|
|
new(): SyncManager;
|
|
|
};
|
|
|
|
|
|
/** The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children. */
|
|
|
interface Text extends CharacterData, Slotable {
|
|
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
|
/**
|
|
|
* Returns the combined data of all direct Text node siblings.
|
|
|
*/
|
|
|
readonly wholeText: string;
|
|
|
/**
|
|
|
* Splits data at the given offset and returns the remainder as Text node.
|
|
|
*/
|
|
|
splitText(offset: number): Text;
|
|
|
}
|
|
|
|
|
|
declare var Text: {
|
|
|
prototype: Text;
|
|
|
new(data?: string): Text;
|
|
|
};
|
|
|
|
|
|
/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
|
|
|
interface TextDecoder extends TextDecoderCommon {
|
|
|
/**
|
|
|
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented stream. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
|
|
|
*
|
|
|
* \`\`\`
|
|
|
* var string = "", decoder = new TextDecoder(encoding), buffer;
|
|
|
* while(buffer = next_chunk()) {
|
|
|
* string += decoder.decode(buffer, {stream:true});
|
|
|
* }
|
|
|
* string += decoder.decode(); // end-of-stream
|
|
|
* \`\`\`
|
|
|
*
|
|
|
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
|
|
|
*/
|
|
|
decode(input?: BufferSource, options?: TextDecodeOptions): string;
|
|
|
}
|
|
|
|
|
|
declare var TextDecoder: {
|
|
|
prototype: TextDecoder;
|
|
|
new(label?: string, options?: TextDecoderOptions): TextDecoder;
|
|
|
};
|
|
|
|
|
|
interface TextDecoderCommon {
|
|
|
/**
|
|
|
* Returns encoding's name, lowercased.
|
|
|
*/
|
|
|
readonly encoding: string;
|
|
|
/**
|
|
|
* Returns true if error mode is "fatal", and false otherwise.
|
|
|
*/
|
|
|
readonly fatal: boolean;
|
|
|
/**
|
|
|
* Returns true if ignore BOM flag is set, and false otherwise.
|
|
|
*/
|
|
|
readonly ignoreBOM: boolean;
|
|
|
}
|
|
|
|
|
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
|
}
|
|
|
|
|
|
declare var TextDecoderStream: {
|
|
|
prototype: TextDecoderStream;
|
|
|
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
|
|
|
};
|
|
|
|
|
|
/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
|
|
|
interface TextEncoder extends TextEncoderCommon {
|
|
|
/**
|
|
|
* Returns the result of running UTF-8's encoder.
|
|
|
*/
|
|
|
encode(input?: string): Uint8Array;
|
|
|
/**
|
|
|
* Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as a dictionary whereby read is the number of converted code units of source and written is the number of bytes modified in destination.
|
|
|
*/
|
|
|
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
|
|
|
}
|
|
|
|
|
|
declare var TextEncoder: {
|
|
|
prototype: TextEncoder;
|
|
|
new(): TextEncoder;
|
|
|
};
|
|
|
|
|
|
interface TextEncoderCommon {
|
|
|
/**
|
|
|
* Returns "utf-8".
|
|
|
*/
|
|
|
readonly encoding: string;
|
|
|
}
|
|
|
|
|
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
|
}
|
|
|
|
|
|
declare var TextEncoderStream: {
|
|
|
prototype: TextEncoderStream;
|
|
|
new(): TextEncoderStream;
|
|
|
};
|
|
|
|
|
|
interface TextEvent extends UIEvent {
|
|
|
readonly data: string;
|
|
|
initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: string): void;
|
|
|
readonly DOM_INPUT_METHOD_DROP: number;
|
|
|
readonly DOM_INPUT_METHOD_HANDWRITING: number;
|
|
|
readonly DOM_INPUT_METHOD_IME: number;
|
|
|
readonly DOM_INPUT_METHOD_KEYBOARD: number;
|
|
|
readonly DOM_INPUT_METHOD_MULTIMODAL: number;
|
|
|
readonly DOM_INPUT_METHOD_OPTION: number;
|
|
|
readonly DOM_INPUT_METHOD_PASTE: number;
|
|
|
readonly DOM_INPUT_METHOD_SCRIPT: number;
|
|
|
readonly DOM_INPUT_METHOD_UNKNOWN: number;
|
|
|
readonly DOM_INPUT_METHOD_VOICE: number;
|
|
|
}
|
|
|
|
|
|
declare var TextEvent: {
|
|
|
prototype: TextEvent;
|
|
|
new(): TextEvent;
|
|
|
readonly DOM_INPUT_METHOD_DROP: number;
|
|
|
readonly DOM_INPUT_METHOD_HANDWRITING: number;
|
|
|
readonly DOM_INPUT_METHOD_IME: number;
|
|
|
readonly DOM_INPUT_METHOD_KEYBOARD: number;
|
|
|
readonly DOM_INPUT_METHOD_MULTIMODAL: number;
|
|
|
readonly DOM_INPUT_METHOD_OPTION: number;
|
|
|
readonly DOM_INPUT_METHOD_PASTE: number;
|
|
|
readonly DOM_INPUT_METHOD_SCRIPT: number;
|
|
|
readonly DOM_INPUT_METHOD_UNKNOWN: number;
|
|
|
readonly DOM_INPUT_METHOD_VOICE: number;
|
|
|
};
|
|
|
|
|
|
/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
|
|
|
interface TextMetrics {
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly actualBoundingBoxAscent: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly actualBoundingBoxDescent: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly actualBoundingBoxLeft: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly actualBoundingBoxRight: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly alphabeticBaseline: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly emHeightAscent: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly emHeightDescent: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly fontBoundingBoxAscent: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly fontBoundingBoxDescent: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly hangingBaseline: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly ideographicBaseline: number;
|
|
|
/**
|
|
|
* Returns the measurement described below.
|
|
|
*/
|
|
|
readonly width: number;
|
|
|
}
|
|
|
|
|
|
declare var TextMetrics: {
|
|
|
prototype: TextMetrics;
|
|
|
new(): TextMetrics;
|
|
|
};
|
|
|
|
|
|
interface TextTrackEventMap {
|
|
|
"cuechange": Event;
|
|
|
"error": Event;
|
|
|
"load": Event;
|
|
|
}
|
|
|
|
|
|
/** This interface also inherits properties from EventTarget. */
|
|
|
interface TextTrack extends EventTarget {
|
|
|
readonly activeCues: TextTrackCueList;
|
|
|
readonly cues: TextTrackCueList;
|
|
|
readonly inBandMetadataTrackDispatchType: string;
|
|
|
readonly kind: string;
|
|
|
readonly label: string;
|
|
|
readonly language: string;
|
|
|
mode: TextTrackMode | number;
|
|
|
oncuechange: ((this: TextTrack, ev: Event) => any) | null;
|
|
|
onerror: ((this: TextTrack, ev: Event) => any) | null;
|
|
|
onload: ((this: TextTrack, ev: Event) => any) | null;
|
|
|
readonly readyState: number;
|
|
|
readonly sourceBuffer: SourceBuffer | null;
|
|
|
addCue(cue: TextTrackCue): void;
|
|
|
removeCue(cue: TextTrackCue): void;
|
|
|
readonly DISABLED: number;
|
|
|
readonly ERROR: number;
|
|
|
readonly HIDDEN: number;
|
|
|
readonly LOADED: number;
|
|
|
readonly LOADING: number;
|
|
|
readonly NONE: number;
|
|
|
readonly SHOWING: number;
|
|
|
addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var TextTrack: {
|
|
|
prototype: TextTrack;
|
|
|
new(): TextTrack;
|
|
|
readonly DISABLED: number;
|
|
|
readonly ERROR: number;
|
|
|
readonly HIDDEN: number;
|
|
|
readonly LOADED: number;
|
|
|
readonly LOADING: number;
|
|
|
readonly NONE: number;
|
|
|
readonly SHOWING: number;
|
|
|
};
|
|
|
|
|
|
interface TextTrackCueEventMap {
|
|
|
"enter": Event;
|
|
|
"exit": Event;
|
|
|
}
|
|
|
|
|
|
/** TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used. */
|
|
|
interface TextTrackCue extends EventTarget {
|
|
|
endTime: number;
|
|
|
id: string;
|
|
|
onenter: ((this: TextTrackCue, ev: Event) => any) | null;
|
|
|
onexit: ((this: TextTrackCue, ev: Event) => any) | null;
|
|
|
pauseOnExit: boolean;
|
|
|
startTime: number;
|
|
|
text: string;
|
|
|
readonly track: TextTrack;
|
|
|
getCueAsHTML(): DocumentFragment;
|
|
|
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var TextTrackCue: {
|
|
|
prototype: TextTrackCue;
|
|
|
new(startTime: number, endTime: number, text: string): TextTrackCue;
|
|
|
};
|
|
|
|
|
|
interface TextTrackCueList {
|
|
|
readonly length: number;
|
|
|
getCueById(id: string): TextTrackCue;
|
|
|
item(index: number): TextTrackCue;
|
|
|
[index: number]: TextTrackCue;
|
|
|
}
|
|
|
|
|
|
declare var TextTrackCueList: {
|
|
|
prototype: TextTrackCueList;
|
|
|
new(): TextTrackCueList;
|
|
|
};
|
|
|
|
|
|
interface TextTrackListEventMap {
|
|
|
"addtrack": TrackEvent;
|
|
|
}
|
|
|
|
|
|
interface TextTrackList extends EventTarget {
|
|
|
readonly length: number;
|
|
|
onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
|
|
|
item(index: number): TextTrack;
|
|
|
addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
[index: number]: TextTrack;
|
|
|
}
|
|
|
|
|
|
declare var TextTrackList: {
|
|
|
prototype: TextTrackList;
|
|
|
new(): TextTrackList;
|
|
|
};
|
|
|
|
|
|
/** Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video>\xA0elements. */
|
|
|
interface TimeRanges {
|
|
|
readonly length: number;
|
|
|
end(index: number): number;
|
|
|
start(index: number): number;
|
|
|
}
|
|
|
|
|
|
declare var TimeRanges: {
|
|
|
prototype: TimeRanges;
|
|
|
new(): TimeRanges;
|
|
|
};
|
|
|
|
|
|
/** A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. */
|
|
|
interface Touch {
|
|
|
readonly altitudeAngle: number;
|
|
|
readonly azimuthAngle: number;
|
|
|
readonly clientX: number;
|
|
|
readonly clientY: number;
|
|
|
readonly force: number;
|
|
|
readonly identifier: number;
|
|
|
readonly pageX: number;
|
|
|
readonly pageY: number;
|
|
|
readonly radiusX: number;
|
|
|
readonly radiusY: number;
|
|
|
readonly rotationAngle: number;
|
|
|
readonly screenX: number;
|
|
|
readonly screenY: number;
|
|
|
readonly target: EventTarget;
|
|
|
readonly touchType: TouchType;
|
|
|
}
|
|
|
|
|
|
declare var Touch: {
|
|
|
prototype: Touch;
|
|
|
new(touchInitDict: TouchInit): Touch;
|
|
|
};
|
|
|
|
|
|
/** An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth. */
|
|
|
interface TouchEvent extends UIEvent {
|
|
|
readonly altKey: boolean;
|
|
|
readonly changedTouches: TouchList;
|
|
|
readonly ctrlKey: boolean;
|
|
|
readonly metaKey: boolean;
|
|
|
readonly shiftKey: boolean;
|
|
|
readonly targetTouches: TouchList;
|
|
|
readonly touches: TouchList;
|
|
|
}
|
|
|
|
|
|
declare var TouchEvent: {
|
|
|
prototype: TouchEvent;
|
|
|
new(type: string, eventInitDict?: TouchEventInit): TouchEvent;
|
|
|
};
|
|
|
|
|
|
/** A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries. */
|
|
|
interface TouchList {
|
|
|
readonly length: number;
|
|
|
item(index: number): Touch | null;
|
|
|
[index: number]: Touch;
|
|
|
}
|
|
|
|
|
|
declare var TouchList: {
|
|
|
prototype: TouchList;
|
|
|
new(): TouchList;
|
|
|
};
|
|
|
|
|
|
/** The TrackEvent interface, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack. */
|
|
|
interface TrackEvent extends Event {
|
|
|
readonly track: VideoTrack | AudioTrack | TextTrack | null;
|
|
|
}
|
|
|
|
|
|
declare var TrackEvent: {
|
|
|
prototype: TrackEvent;
|
|
|
new(typeArg: string, eventInitDict?: TrackEventInit): TrackEvent;
|
|
|
};
|
|
|
|
|
|
interface TransformStream<I = any, O = any> {
|
|
|
readonly readable: ReadableStream<O>;
|
|
|
readonly writable: WritableStream<I>;
|
|
|
}
|
|
|
|
|
|
declare var TransformStream: {
|
|
|
prototype: TransformStream;
|
|
|
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
|
|
|
};
|
|
|
|
|
|
interface TransformStreamDefaultController<O = any> {
|
|
|
readonly desiredSize: number | null;
|
|
|
enqueue(chunk: O): void;
|
|
|
error(reason?: any): void;
|
|
|
terminate(): void;
|
|
|
}
|
|
|
|
|
|
/** Events providing information related to transitions. */
|
|
|
interface TransitionEvent extends Event {
|
|
|
readonly elapsedTime: number;
|
|
|
readonly propertyName: string;
|
|
|
readonly pseudoElement: string;
|
|
|
}
|
|
|
|
|
|
declare var TransitionEvent: {
|
|
|
prototype: TransitionEvent;
|
|
|
new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;
|
|
|
};
|
|
|
|
|
|
/** The nodes of a document subtree and a position within them. */
|
|
|
interface TreeWalker {
|
|
|
currentNode: Node;
|
|
|
readonly filter: NodeFilter | null;
|
|
|
readonly root: Node;
|
|
|
readonly whatToShow: number;
|
|
|
firstChild(): Node | null;
|
|
|
lastChild(): Node | null;
|
|
|
nextNode(): Node | null;
|
|
|
nextSibling(): Node | null;
|
|
|
parentNode(): Node | null;
|
|
|
previousNode(): Node | null;
|
|
|
previousSibling(): Node | null;
|
|
|
}
|
|
|
|
|
|
declare var TreeWalker: {
|
|
|
prototype: TreeWalker;
|
|
|
new(): TreeWalker;
|
|
|
};
|
|
|
|
|
|
/** Simple user interface events. */
|
|
|
interface UIEvent extends Event {
|
|
|
readonly detail: number;
|
|
|
readonly view: Window | null;
|
|
|
/** @deprecated */
|
|
|
readonly which: number;
|
|
|
}
|
|
|
|
|
|
declare var UIEvent: {
|
|
|
prototype: UIEvent;
|
|
|
new(type: string, eventInitDict?: UIEventInit): UIEvent;
|
|
|
};
|
|
|
|
|
|
/** The URL\xA0interface represents an object providing static methods used for creating object URLs. */
|
|
|
interface URL {
|
|
|
hash: string;
|
|
|
host: string;
|
|
|
hostname: string;
|
|
|
href: string;
|
|
|
readonly origin: string;
|
|
|
password: string;
|
|
|
pathname: string;
|
|
|
port: string;
|
|
|
protocol: string;
|
|
|
search: string;
|
|
|
readonly searchParams: URLSearchParams;
|
|
|
username: string;
|
|
|
toJSON(): string;
|
|
|
}
|
|
|
|
|
|
declare var URL: {
|
|
|
prototype: URL;
|
|
|
new(url: string, base?: string | URL): URL;
|
|
|
createObjectURL(object: any): string;
|
|
|
revokeObjectURL(url: string): void;
|
|
|
};
|
|
|
|
|
|
type webkitURL = URL;
|
|
|
declare var webkitURL: typeof URL;
|
|
|
|
|
|
interface URLSearchParams {
|
|
|
/**
|
|
|
* Appends a specified key/value pair as a new search parameter.
|
|
|
*/
|
|
|
append(name: string, value: string): void;
|
|
|
/**
|
|
|
* Deletes the given search parameter, and its associated value, from the list of all search parameters.
|
|
|
*/
|
|
|
delete(name: string): void;
|
|
|
/**
|
|
|
* Returns the first value associated to the given search parameter.
|
|
|
*/
|
|
|
get(name: string): string | null;
|
|
|
/**
|
|
|
* Returns all the values association with a given search parameter.
|
|
|
*/
|
|
|
getAll(name: string): string[];
|
|
|
/**
|
|
|
* Returns a Boolean indicating if such a search parameter exists.
|
|
|
*/
|
|
|
has(name: string): boolean;
|
|
|
/**
|
|
|
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
|
|
|
*/
|
|
|
set(name: string, value: string): void;
|
|
|
sort(): void;
|
|
|
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
|
|
|
}
|
|
|
|
|
|
declare var URLSearchParams: {
|
|
|
prototype: URLSearchParams;
|
|
|
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
|
|
|
};
|
|
|
|
|
|
/** This WebVR API interface represents any VR device supported by this API. It includes generic information such as device IDs and descriptions, as well as methods for starting to present a VR scene, retrieving eye parameters and display capabilities, and other important functionality. */
|
|
|
interface VRDisplay extends EventTarget {
|
|
|
readonly capabilities: VRDisplayCapabilities;
|
|
|
depthFar: number;
|
|
|
depthNear: number;
|
|
|
readonly displayId: number;
|
|
|
readonly displayName: string;
|
|
|
readonly isConnected: boolean;
|
|
|
readonly isPresenting: boolean;
|
|
|
readonly stageParameters: VRStageParameters | null;
|
|
|
cancelAnimationFrame(handle: number): void;
|
|
|
exitPresent(): Promise<void>;
|
|
|
getEyeParameters(whichEye: string): VREyeParameters;
|
|
|
getFrameData(frameData: VRFrameData): boolean;
|
|
|
getLayers(): VRLayer[];
|
|
|
/** @deprecated */
|
|
|
getPose(): VRPose;
|
|
|
requestAnimationFrame(callback: FrameRequestCallback): number;
|
|
|
requestPresent(layers: VRLayer[]): Promise<void>;
|
|
|
resetPose(): void;
|
|
|
submitFrame(pose?: VRPose): void;
|
|
|
}
|
|
|
|
|
|
declare var VRDisplay: {
|
|
|
prototype: VRDisplay;
|
|
|
new(): VRDisplay;
|
|
|
};
|
|
|
|
|
|
/** This WebVR API interface describes the capabilities of a VRDisplay \u2014 its features can be used to perform VR device capability tests, for example can it return position information. */
|
|
|
interface VRDisplayCapabilities {
|
|
|
readonly canPresent: boolean;
|
|
|
readonly hasExternalDisplay: boolean;
|
|
|
readonly hasOrientation: boolean;
|
|
|
readonly hasPosition: boolean;
|
|
|
readonly maxLayers: number;
|
|
|
}
|
|
|
|
|
|
declare var VRDisplayCapabilities: {
|
|
|
prototype: VRDisplayCapabilities;
|
|
|
new(): VRDisplayCapabilities;
|
|
|
};
|
|
|
|
|
|
/** This WebVR API interface represents represents the event object of WebVR-related events (see the list of WebVR window extensions). */
|
|
|
interface VRDisplayEvent extends Event {
|
|
|
readonly display: VRDisplay;
|
|
|
readonly reason: VRDisplayEventReason | null;
|
|
|
}
|
|
|
|
|
|
declare var VRDisplayEvent: {
|
|
|
prototype: VRDisplayEvent;
|
|
|
new(type: string, eventInitDict: VRDisplayEventInit): VRDisplayEvent;
|
|
|
};
|
|
|
|
|
|
/** This WebVR API interface represents all the information required to correctly render a scene for a given eye, including field of view information. */
|
|
|
interface VREyeParameters {
|
|
|
/** @deprecated */
|
|
|
readonly fieldOfView: VRFieldOfView;
|
|
|
readonly offset: Float32Array;
|
|
|
readonly renderHeight: number;
|
|
|
readonly renderWidth: number;
|
|
|
}
|
|
|
|
|
|
declare var VREyeParameters: {
|
|
|
prototype: VREyeParameters;
|
|
|
new(): VREyeParameters;
|
|
|
};
|
|
|
|
|
|
/** This WebVR API interface represents a field of view defined by 4 different degree values describing the view from a center point. */
|
|
|
interface VRFieldOfView {
|
|
|
readonly downDegrees: number;
|
|
|
readonly leftDegrees: number;
|
|
|
readonly rightDegrees: number;
|
|
|
readonly upDegrees: number;
|
|
|
}
|
|
|
|
|
|
declare var VRFieldOfView: {
|
|
|
prototype: VRFieldOfView;
|
|
|
new(): VRFieldOfView;
|
|
|
};
|
|
|
|
|
|
/** This WebVR API interface represents all the information needed to render a single frame of a VR scene; constructed by VRDisplay.getFrameData(). */
|
|
|
interface VRFrameData {
|
|
|
readonly leftProjectionMatrix: Float32Array;
|
|
|
readonly leftViewMatrix: Float32Array;
|
|
|
readonly pose: VRPose;
|
|
|
readonly rightProjectionMatrix: Float32Array;
|
|
|
readonly rightViewMatrix: Float32Array;
|
|
|
readonly timestamp: number;
|
|
|
}
|
|
|
|
|
|
declare var VRFrameData: {
|
|
|
prototype: VRFrameData;
|
|
|
new(): VRFrameData;
|
|
|
};
|
|
|
|
|
|
/** This WebVR API interface represents the state of a VR sensor at a given timestamp (which includes orientation, position, velocity, and acceleration information.) */
|
|
|
interface VRPose {
|
|
|
readonly angularAcceleration: Float32Array | null;
|
|
|
readonly angularVelocity: Float32Array | null;
|
|
|
readonly linearAcceleration: Float32Array | null;
|
|
|
readonly linearVelocity: Float32Array | null;
|
|
|
readonly orientation: Float32Array | null;
|
|
|
readonly position: Float32Array | null;
|
|
|
readonly timestamp: number;
|
|
|
}
|
|
|
|
|
|
declare var VRPose: {
|
|
|
prototype: VRPose;
|
|
|
new(): VRPose;
|
|
|
};
|
|
|
|
|
|
interface VTTCue extends TextTrackCue {
|
|
|
align: AlignSetting;
|
|
|
line: LineAndPositionSetting;
|
|
|
lineAlign: LineAlignSetting;
|
|
|
position: LineAndPositionSetting;
|
|
|
positionAlign: PositionAlignSetting;
|
|
|
region: VTTRegion | null;
|
|
|
size: number;
|
|
|
snapToLines: boolean;
|
|
|
text: string;
|
|
|
vertical: DirectionSetting;
|
|
|
getCueAsHTML(): DocumentFragment;
|
|
|
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var VTTCue: {
|
|
|
prototype: VTTCue;
|
|
|
new(startTime: number, endTime: number, text: string): VTTCue;
|
|
|
};
|
|
|
|
|
|
interface VTTRegion {
|
|
|
id: string;
|
|
|
lines: number;
|
|
|
regionAnchorX: number;
|
|
|
regionAnchorY: number;
|
|
|
scroll: ScrollSetting;
|
|
|
viewportAnchorX: number;
|
|
|
viewportAnchorY: number;
|
|
|
width: number;
|
|
|
}
|
|
|
|
|
|
declare var VTTRegion: {
|
|
|
prototype: VTTRegion;
|
|
|
new(): VTTRegion;
|
|
|
};
|
|
|
|
|
|
/** The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid. */
|
|
|
interface ValidityState {
|
|
|
readonly badInput: boolean;
|
|
|
readonly customError: boolean;
|
|
|
readonly patternMismatch: boolean;
|
|
|
readonly rangeOverflow: boolean;
|
|
|
readonly rangeUnderflow: boolean;
|
|
|
readonly stepMismatch: boolean;
|
|
|
readonly tooLong: boolean;
|
|
|
readonly tooShort: boolean;
|
|
|
readonly typeMismatch: boolean;
|
|
|
readonly valid: boolean;
|
|
|
readonly valueMissing: boolean;
|
|
|
}
|
|
|
|
|
|
declare var ValidityState: {
|
|
|
prototype: ValidityState;
|
|
|
new(): ValidityState;
|
|
|
};
|
|
|
|
|
|
/** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */
|
|
|
interface VideoPlaybackQuality {
|
|
|
readonly corruptedVideoFrames: number;
|
|
|
readonly creationTime: number;
|
|
|
readonly droppedVideoFrames: number;
|
|
|
readonly totalFrameDelay: number;
|
|
|
readonly totalVideoFrames: number;
|
|
|
}
|
|
|
|
|
|
declare var VideoPlaybackQuality: {
|
|
|
prototype: VideoPlaybackQuality;
|
|
|
new(): VideoPlaybackQuality;
|
|
|
};
|
|
|
|
|
|
/** A single video track from a <video> element. */
|
|
|
interface VideoTrack {
|
|
|
readonly id: string;
|
|
|
kind: string;
|
|
|
readonly label: string;
|
|
|
language: string;
|
|
|
selected: boolean;
|
|
|
readonly sourceBuffer: SourceBuffer | null;
|
|
|
}
|
|
|
|
|
|
declare var VideoTrack: {
|
|
|
prototype: VideoTrack;
|
|
|
new(): VideoTrack;
|
|
|
};
|
|
|
|
|
|
interface VideoTrackListEventMap {
|
|
|
"addtrack": TrackEvent;
|
|
|
"change": Event;
|
|
|
"removetrack": TrackEvent;
|
|
|
}
|
|
|
|
|
|
/** Used to represent a list of the video tracks contained within a <video> element, with each track represented by a separate VideoTrack object in the list. */
|
|
|
interface VideoTrackList extends EventTarget {
|
|
|
readonly length: number;
|
|
|
onaddtrack: ((this: VideoTrackList, ev: TrackEvent) => any) | null;
|
|
|
onchange: ((this: VideoTrackList, ev: Event) => any) | null;
|
|
|
onremovetrack: ((this: VideoTrackList, ev: TrackEvent) => any) | null;
|
|
|
readonly selectedIndex: number;
|
|
|
getTrackById(id: string): VideoTrack | null;
|
|
|
item(index: number): VideoTrack;
|
|
|
addEventListener<K extends keyof VideoTrackListEventMap>(type: K, listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof VideoTrackListEventMap>(type: K, listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
[index: number]: VideoTrack;
|
|
|
}
|
|
|
|
|
|
declare var VideoTrackList: {
|
|
|
prototype: VideoTrackList;
|
|
|
new(): VideoTrackList;
|
|
|
};
|
|
|
|
|
|
interface WEBGL_color_buffer_float {
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
|
|
|
readonly RGBA32F_EXT: GLenum;
|
|
|
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_compressed_texture_astc {
|
|
|
getSupportedProfiles(): string[];
|
|
|
readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;
|
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;
|
|
|
}
|
|
|
|
|
|
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
|
|
|
interface WEBGL_compressed_texture_s3tc {
|
|
|
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
|
|
|
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;
|
|
|
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;
|
|
|
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_compressed_texture_s3tc_srgb {
|
|
|
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;
|
|
|
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;
|
|
|
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;
|
|
|
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;
|
|
|
}
|
|
|
|
|
|
/** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */
|
|
|
interface WEBGL_debug_renderer_info {
|
|
|
readonly UNMASKED_RENDERER_WEBGL: GLenum;
|
|
|
readonly UNMASKED_VENDOR_WEBGL: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_debug_shaders {
|
|
|
getTranslatedShaderSource(shader: WebGLShader): string;
|
|
|
}
|
|
|
|
|
|
/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
|
|
|
interface WEBGL_depth_texture {
|
|
|
readonly UNSIGNED_INT_24_8_WEBGL: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_draw_buffers {
|
|
|
drawBuffersWEBGL(buffers: GLenum[]): void;
|
|
|
readonly COLOR_ATTACHMENT0_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT10_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT11_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT12_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT13_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT14_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT15_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT1_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT2_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT3_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT4_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT5_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT6_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT7_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT8_WEBGL: GLenum;
|
|
|
readonly COLOR_ATTACHMENT9_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER0_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER10_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER11_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER12_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER13_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER14_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER15_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER1_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER2_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER3_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER4_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER5_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER6_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER7_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER8_WEBGL: GLenum;
|
|
|
readonly DRAW_BUFFER9_WEBGL: GLenum;
|
|
|
readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;
|
|
|
readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WEBGL_lose_context {
|
|
|
loseContext(): void;
|
|
|
restoreContext(): void;
|
|
|
}
|
|
|
|
|
|
/** A WaveShaperNode always has exactly one input and one output. */
|
|
|
interface WaveShaperNode extends AudioNode {
|
|
|
curve: Float32Array | null;
|
|
|
oversample: OverSampleType;
|
|
|
}
|
|
|
|
|
|
declare var WaveShaperNode: {
|
|
|
prototype: WaveShaperNode;
|
|
|
new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
|
|
|
};
|
|
|
|
|
|
interface WebAuthentication {
|
|
|
getAssertion(assertionChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: AssertionOptions): Promise<WebAuthnAssertion>;
|
|
|
makeCredential(accountInformation: Account, cryptoParameters: ScopedCredentialParameters[], attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;
|
|
|
}
|
|
|
|
|
|
declare var WebAuthentication: {
|
|
|
prototype: WebAuthentication;
|
|
|
new(): WebAuthentication;
|
|
|
};
|
|
|
|
|
|
interface WebAuthnAssertion {
|
|
|
readonly authenticatorData: ArrayBuffer;
|
|
|
readonly clientData: ArrayBuffer;
|
|
|
readonly credential: ScopedCredential;
|
|
|
readonly signature: ArrayBuffer;
|
|
|
}
|
|
|
|
|
|
declare var WebAuthnAssertion: {
|
|
|
prototype: WebAuthnAssertion;
|
|
|
new(): WebAuthnAssertion;
|
|
|
};
|
|
|
|
|
|
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
|
|
|
}
|
|
|
|
|
|
declare var WebGL2RenderingContext: {
|
|
|
prototype: WebGL2RenderingContext;
|
|
|
new(): WebGL2RenderingContext;
|
|
|
readonly ACTIVE_ATTRIBUTES: GLenum;
|
|
|
readonly ACTIVE_TEXTURE: GLenum;
|
|
|
readonly ACTIVE_UNIFORMS: GLenum;
|
|
|
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
|
|
|
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
|
|
|
readonly ALPHA: GLenum;
|
|
|
readonly ALPHA_BITS: GLenum;
|
|
|
readonly ALWAYS: GLenum;
|
|
|
readonly ARRAY_BUFFER: GLenum;
|
|
|
readonly ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly ATTACHED_SHADERS: GLenum;
|
|
|
readonly BACK: GLenum;
|
|
|
readonly BLEND: GLenum;
|
|
|
readonly BLEND_COLOR: GLenum;
|
|
|
readonly BLEND_DST_ALPHA: GLenum;
|
|
|
readonly BLEND_DST_RGB: GLenum;
|
|
|
readonly BLEND_EQUATION: GLenum;
|
|
|
readonly BLEND_EQUATION_ALPHA: GLenum;
|
|
|
readonly BLEND_EQUATION_RGB: GLenum;
|
|
|
readonly BLEND_SRC_ALPHA: GLenum;
|
|
|
readonly BLEND_SRC_RGB: GLenum;
|
|
|
readonly BLUE_BITS: GLenum;
|
|
|
readonly BOOL: GLenum;
|
|
|
readonly BOOL_VEC2: GLenum;
|
|
|
readonly BOOL_VEC3: GLenum;
|
|
|
readonly BOOL_VEC4: GLenum;
|
|
|
readonly BROWSER_DEFAULT_WEBGL: GLenum;
|
|
|
readonly BUFFER_SIZE: GLenum;
|
|
|
readonly BUFFER_USAGE: GLenum;
|
|
|
readonly BYTE: GLenum;
|
|
|
readonly CCW: GLenum;
|
|
|
readonly CLAMP_TO_EDGE: GLenum;
|
|
|
readonly COLOR_ATTACHMENT0: GLenum;
|
|
|
readonly COLOR_BUFFER_BIT: GLenum;
|
|
|
readonly COLOR_CLEAR_VALUE: GLenum;
|
|
|
readonly COLOR_WRITEMASK: GLenum;
|
|
|
readonly COMPILE_STATUS: GLenum;
|
|
|
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
|
|
|
readonly CONSTANT_ALPHA: GLenum;
|
|
|
readonly CONSTANT_COLOR: GLenum;
|
|
|
readonly CONTEXT_LOST_WEBGL: GLenum;
|
|
|
readonly CULL_FACE: GLenum;
|
|
|
readonly CULL_FACE_MODE: GLenum;
|
|
|
readonly CURRENT_PROGRAM: GLenum;
|
|
|
readonly CURRENT_VERTEX_ATTRIB: GLenum;
|
|
|
readonly CW: GLenum;
|
|
|
readonly DECR: GLenum;
|
|
|
readonly DECR_WRAP: GLenum;
|
|
|
readonly DELETE_STATUS: GLenum;
|
|
|
readonly DEPTH_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_BITS: GLenum;
|
|
|
readonly DEPTH_BUFFER_BIT: GLenum;
|
|
|
readonly DEPTH_CLEAR_VALUE: GLenum;
|
|
|
readonly DEPTH_COMPONENT: GLenum;
|
|
|
readonly DEPTH_COMPONENT16: GLenum;
|
|
|
readonly DEPTH_FUNC: GLenum;
|
|
|
readonly DEPTH_RANGE: GLenum;
|
|
|
readonly DEPTH_STENCIL: GLenum;
|
|
|
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_TEST: GLenum;
|
|
|
readonly DEPTH_WRITEMASK: GLenum;
|
|
|
readonly DITHER: GLenum;
|
|
|
readonly DONT_CARE: GLenum;
|
|
|
readonly DST_ALPHA: GLenum;
|
|
|
readonly DST_COLOR: GLenum;
|
|
|
readonly DYNAMIC_DRAW: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly EQUAL: GLenum;
|
|
|
readonly FASTEST: GLenum;
|
|
|
readonly FLOAT: GLenum;
|
|
|
readonly FLOAT_MAT2: GLenum;
|
|
|
readonly FLOAT_MAT3: GLenum;
|
|
|
readonly FLOAT_MAT4: GLenum;
|
|
|
readonly FLOAT_VEC2: GLenum;
|
|
|
readonly FLOAT_VEC3: GLenum;
|
|
|
readonly FLOAT_VEC4: GLenum;
|
|
|
readonly FRAGMENT_SHADER: GLenum;
|
|
|
readonly FRAMEBUFFER: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
|
|
|
readonly FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly FRAMEBUFFER_COMPLETE: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
|
|
|
readonly FRONT: GLenum;
|
|
|
readonly FRONT_AND_BACK: GLenum;
|
|
|
readonly FRONT_FACE: GLenum;
|
|
|
readonly FUNC_ADD: GLenum;
|
|
|
readonly FUNC_REVERSE_SUBTRACT: GLenum;
|
|
|
readonly FUNC_SUBTRACT: GLenum;
|
|
|
readonly GENERATE_MIPMAP_HINT: GLenum;
|
|
|
readonly GEQUAL: GLenum;
|
|
|
readonly GREATER: GLenum;
|
|
|
readonly GREEN_BITS: GLenum;
|
|
|
readonly HIGH_FLOAT: GLenum;
|
|
|
readonly HIGH_INT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
|
|
|
readonly INCR: GLenum;
|
|
|
readonly INCR_WRAP: GLenum;
|
|
|
readonly INT: GLenum;
|
|
|
readonly INT_VEC2: GLenum;
|
|
|
readonly INT_VEC3: GLenum;
|
|
|
readonly INT_VEC4: GLenum;
|
|
|
readonly INVALID_ENUM: GLenum;
|
|
|
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
|
|
|
readonly INVALID_OPERATION: GLenum;
|
|
|
readonly INVALID_VALUE: GLenum;
|
|
|
readonly INVERT: GLenum;
|
|
|
readonly KEEP: GLenum;
|
|
|
readonly LEQUAL: GLenum;
|
|
|
readonly LESS: GLenum;
|
|
|
readonly LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_NEAREST: GLenum;
|
|
|
readonly LINES: GLenum;
|
|
|
readonly LINE_LOOP: GLenum;
|
|
|
readonly LINE_STRIP: GLenum;
|
|
|
readonly LINE_WIDTH: GLenum;
|
|
|
readonly LINK_STATUS: GLenum;
|
|
|
readonly LOW_FLOAT: GLenum;
|
|
|
readonly LOW_INT: GLenum;
|
|
|
readonly LUMINANCE: GLenum;
|
|
|
readonly LUMINANCE_ALPHA: GLenum;
|
|
|
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_RENDERBUFFER_SIZE: GLenum;
|
|
|
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_VARYING_VECTORS: GLenum;
|
|
|
readonly MAX_VERTEX_ATTRIBS: GLenum;
|
|
|
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_VIEWPORT_DIMS: GLenum;
|
|
|
readonly MEDIUM_FLOAT: GLenum;
|
|
|
readonly MEDIUM_INT: GLenum;
|
|
|
readonly MIRRORED_REPEAT: GLenum;
|
|
|
readonly NEAREST: GLenum;
|
|
|
readonly NEAREST_MIPMAP_LINEAR: GLenum;
|
|
|
readonly NEAREST_MIPMAP_NEAREST: GLenum;
|
|
|
readonly NEVER: GLenum;
|
|
|
readonly NICEST: GLenum;
|
|
|
readonly NONE: GLenum;
|
|
|
readonly NOTEQUAL: GLenum;
|
|
|
readonly NO_ERROR: GLenum;
|
|
|
readonly ONE: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_DST_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_DST_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_SRC_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_SRC_COLOR: GLenum;
|
|
|
readonly OUT_OF_MEMORY: GLenum;
|
|
|
readonly PACK_ALIGNMENT: GLenum;
|
|
|
readonly POINTS: GLenum;
|
|
|
readonly POLYGON_OFFSET_FACTOR: GLenum;
|
|
|
readonly POLYGON_OFFSET_FILL: GLenum;
|
|
|
readonly POLYGON_OFFSET_UNITS: GLenum;
|
|
|
readonly RED_BITS: GLenum;
|
|
|
readonly RENDERBUFFER: GLenum;
|
|
|
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_BINDING: GLenum;
|
|
|
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_HEIGHT: GLenum;
|
|
|
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
|
|
|
readonly RENDERBUFFER_RED_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_WIDTH: GLenum;
|
|
|
readonly RENDERER: GLenum;
|
|
|
readonly REPEAT: GLenum;
|
|
|
readonly REPLACE: GLenum;
|
|
|
readonly RGB: GLenum;
|
|
|
readonly RGB565: GLenum;
|
|
|
readonly RGB5_A1: GLenum;
|
|
|
readonly RGBA: GLenum;
|
|
|
readonly RGBA4: GLenum;
|
|
|
readonly SAMPLER_2D: GLenum;
|
|
|
readonly SAMPLER_CUBE: GLenum;
|
|
|
readonly SAMPLES: GLenum;
|
|
|
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_BUFFERS: GLenum;
|
|
|
readonly SAMPLE_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_INVERT: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_VALUE: GLenum;
|
|
|
readonly SCISSOR_BOX: GLenum;
|
|
|
readonly SCISSOR_TEST: GLenum;
|
|
|
readonly SHADER_TYPE: GLenum;
|
|
|
readonly SHADING_LANGUAGE_VERSION: GLenum;
|
|
|
readonly SHORT: GLenum;
|
|
|
readonly SRC_ALPHA: GLenum;
|
|
|
readonly SRC_ALPHA_SATURATE: GLenum;
|
|
|
readonly SRC_COLOR: GLenum;
|
|
|
readonly STATIC_DRAW: GLenum;
|
|
|
readonly STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly STENCIL_BACK_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_FUNC: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_BACK_REF: GLenum;
|
|
|
readonly STENCIL_BACK_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_BACK_WRITEMASK: GLenum;
|
|
|
readonly STENCIL_BITS: GLenum;
|
|
|
readonly STENCIL_BUFFER_BIT: GLenum;
|
|
|
readonly STENCIL_CLEAR_VALUE: GLenum;
|
|
|
readonly STENCIL_FAIL: GLenum;
|
|
|
readonly STENCIL_FUNC: GLenum;
|
|
|
readonly STENCIL_INDEX8: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_REF: GLenum;
|
|
|
readonly STENCIL_TEST: GLenum;
|
|
|
readonly STENCIL_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_WRITEMASK: GLenum;
|
|
|
readonly STREAM_DRAW: GLenum;
|
|
|
readonly SUBPIXEL_BITS: GLenum;
|
|
|
readonly TEXTURE: GLenum;
|
|
|
readonly TEXTURE0: GLenum;
|
|
|
readonly TEXTURE1: GLenum;
|
|
|
readonly TEXTURE10: GLenum;
|
|
|
readonly TEXTURE11: GLenum;
|
|
|
readonly TEXTURE12: GLenum;
|
|
|
readonly TEXTURE13: GLenum;
|
|
|
readonly TEXTURE14: GLenum;
|
|
|
readonly TEXTURE15: GLenum;
|
|
|
readonly TEXTURE16: GLenum;
|
|
|
readonly TEXTURE17: GLenum;
|
|
|
readonly TEXTURE18: GLenum;
|
|
|
readonly TEXTURE19: GLenum;
|
|
|
readonly TEXTURE2: GLenum;
|
|
|
readonly TEXTURE20: GLenum;
|
|
|
readonly TEXTURE21: GLenum;
|
|
|
readonly TEXTURE22: GLenum;
|
|
|
readonly TEXTURE23: GLenum;
|
|
|
readonly TEXTURE24: GLenum;
|
|
|
readonly TEXTURE25: GLenum;
|
|
|
readonly TEXTURE26: GLenum;
|
|
|
readonly TEXTURE27: GLenum;
|
|
|
readonly TEXTURE28: GLenum;
|
|
|
readonly TEXTURE29: GLenum;
|
|
|
readonly TEXTURE3: GLenum;
|
|
|
readonly TEXTURE30: GLenum;
|
|
|
readonly TEXTURE31: GLenum;
|
|
|
readonly TEXTURE4: GLenum;
|
|
|
readonly TEXTURE5: GLenum;
|
|
|
readonly TEXTURE6: GLenum;
|
|
|
readonly TEXTURE7: GLenum;
|
|
|
readonly TEXTURE8: GLenum;
|
|
|
readonly TEXTURE9: GLenum;
|
|
|
readonly TEXTURE_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
|
|
|
readonly TEXTURE_MAG_FILTER: GLenum;
|
|
|
readonly TEXTURE_MIN_FILTER: GLenum;
|
|
|
readonly TEXTURE_WRAP_S: GLenum;
|
|
|
readonly TEXTURE_WRAP_T: GLenum;
|
|
|
readonly TRIANGLES: GLenum;
|
|
|
readonly TRIANGLE_FAN: GLenum;
|
|
|
readonly TRIANGLE_STRIP: GLenum;
|
|
|
readonly UNPACK_ALIGNMENT: GLenum;
|
|
|
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
|
|
|
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
|
|
|
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
|
|
|
readonly UNSIGNED_BYTE: GLenum;
|
|
|
readonly UNSIGNED_INT: GLenum;
|
|
|
readonly UNSIGNED_SHORT: GLenum;
|
|
|
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_6_5: GLenum;
|
|
|
readonly VALIDATE_STATUS: GLenum;
|
|
|
readonly VENDOR: GLenum;
|
|
|
readonly VERSION: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
|
|
|
readonly VERTEX_SHADER: GLenum;
|
|
|
readonly VIEWPORT: GLenum;
|
|
|
readonly ZERO: GLenum;
|
|
|
readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly ALREADY_SIGNALED: GLenum;
|
|
|
readonly ANY_SAMPLES_PASSED: GLenum;
|
|
|
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
|
|
|
readonly COLOR: GLenum;
|
|
|
readonly COLOR_ATTACHMENT1: GLenum;
|
|
|
readonly COLOR_ATTACHMENT10: GLenum;
|
|
|
readonly COLOR_ATTACHMENT11: GLenum;
|
|
|
readonly COLOR_ATTACHMENT12: GLenum;
|
|
|
readonly COLOR_ATTACHMENT13: GLenum;
|
|
|
readonly COLOR_ATTACHMENT14: GLenum;
|
|
|
readonly COLOR_ATTACHMENT15: GLenum;
|
|
|
readonly COLOR_ATTACHMENT2: GLenum;
|
|
|
readonly COLOR_ATTACHMENT3: GLenum;
|
|
|
readonly COLOR_ATTACHMENT4: GLenum;
|
|
|
readonly COLOR_ATTACHMENT5: GLenum;
|
|
|
readonly COLOR_ATTACHMENT6: GLenum;
|
|
|
readonly COLOR_ATTACHMENT7: GLenum;
|
|
|
readonly COLOR_ATTACHMENT8: GLenum;
|
|
|
readonly COLOR_ATTACHMENT9: GLenum;
|
|
|
readonly COMPARE_REF_TO_TEXTURE: GLenum;
|
|
|
readonly CONDITION_SATISFIED: GLenum;
|
|
|
readonly COPY_READ_BUFFER: GLenum;
|
|
|
readonly COPY_READ_BUFFER_BINDING: GLenum;
|
|
|
readonly COPY_WRITE_BUFFER: GLenum;
|
|
|
readonly COPY_WRITE_BUFFER_BINDING: GLenum;
|
|
|
readonly CURRENT_QUERY: GLenum;
|
|
|
readonly DEPTH: GLenum;
|
|
|
readonly DEPTH24_STENCIL8: GLenum;
|
|
|
readonly DEPTH32F_STENCIL8: GLenum;
|
|
|
readonly DEPTH_COMPONENT24: GLenum;
|
|
|
readonly DEPTH_COMPONENT32F: GLenum;
|
|
|
readonly DRAW_BUFFER0: GLenum;
|
|
|
readonly DRAW_BUFFER1: GLenum;
|
|
|
readonly DRAW_BUFFER10: GLenum;
|
|
|
readonly DRAW_BUFFER11: GLenum;
|
|
|
readonly DRAW_BUFFER12: GLenum;
|
|
|
readonly DRAW_BUFFER13: GLenum;
|
|
|
readonly DRAW_BUFFER14: GLenum;
|
|
|
readonly DRAW_BUFFER15: GLenum;
|
|
|
readonly DRAW_BUFFER2: GLenum;
|
|
|
readonly DRAW_BUFFER3: GLenum;
|
|
|
readonly DRAW_BUFFER4: GLenum;
|
|
|
readonly DRAW_BUFFER5: GLenum;
|
|
|
readonly DRAW_BUFFER6: GLenum;
|
|
|
readonly DRAW_BUFFER7: GLenum;
|
|
|
readonly DRAW_BUFFER8: GLenum;
|
|
|
readonly DRAW_BUFFER9: GLenum;
|
|
|
readonly DRAW_FRAMEBUFFER: GLenum;
|
|
|
readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly DYNAMIC_COPY: GLenum;
|
|
|
readonly DYNAMIC_READ: GLenum;
|
|
|
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
|
|
|
readonly FLOAT_MAT2x3: GLenum;
|
|
|
readonly FLOAT_MAT2x4: GLenum;
|
|
|
readonly FLOAT_MAT3x2: GLenum;
|
|
|
readonly FLOAT_MAT3x4: GLenum;
|
|
|
readonly FLOAT_MAT4x2: GLenum;
|
|
|
readonly FLOAT_MAT4x3: GLenum;
|
|
|
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
|
|
|
readonly FRAMEBUFFER_DEFAULT: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
|
|
|
readonly HALF_FLOAT: GLenum;
|
|
|
readonly INTERLEAVED_ATTRIBS: GLenum;
|
|
|
readonly INT_2_10_10_10_REV: GLenum;
|
|
|
readonly INT_SAMPLER_2D: GLenum;
|
|
|
readonly INT_SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly INT_SAMPLER_3D: GLenum;
|
|
|
readonly INT_SAMPLER_CUBE: GLenum;
|
|
|
readonly INVALID_INDEX: GLenum;
|
|
|
readonly MAX: GLenum;
|
|
|
readonly MAX_3D_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
|
|
|
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
|
|
|
readonly MAX_COLOR_ATTACHMENTS: GLenum;
|
|
|
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_DRAW_BUFFERS: GLenum;
|
|
|
readonly MAX_ELEMENTS_INDICES: GLenum;
|
|
|
readonly MAX_ELEMENTS_VERTICES: GLenum;
|
|
|
readonly MAX_ELEMENT_INDEX: GLenum;
|
|
|
readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
|
|
|
readonly MAX_SAMPLES: GLenum;
|
|
|
readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
|
|
|
readonly MAX_TEXTURE_LOD_BIAS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
|
|
|
readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
|
|
|
readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
|
|
|
readonly MAX_VARYING_COMPONENTS: GLenum;
|
|
|
readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MIN: GLenum;
|
|
|
readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
|
|
|
readonly OBJECT_TYPE: GLenum;
|
|
|
readonly PACK_ROW_LENGTH: GLenum;
|
|
|
readonly PACK_SKIP_PIXELS: GLenum;
|
|
|
readonly PACK_SKIP_ROWS: GLenum;
|
|
|
readonly PIXEL_PACK_BUFFER: GLenum;
|
|
|
readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
|
|
|
readonly PIXEL_UNPACK_BUFFER: GLenum;
|
|
|
readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
|
|
|
readonly QUERY_RESULT: GLenum;
|
|
|
readonly QUERY_RESULT_AVAILABLE: GLenum;
|
|
|
readonly R11F_G11F_B10F: GLenum;
|
|
|
readonly R16F: GLenum;
|
|
|
readonly R16I: GLenum;
|
|
|
readonly R16UI: GLenum;
|
|
|
readonly R32F: GLenum;
|
|
|
readonly R32I: GLenum;
|
|
|
readonly R32UI: GLenum;
|
|
|
readonly R8: GLenum;
|
|
|
readonly R8I: GLenum;
|
|
|
readonly R8UI: GLenum;
|
|
|
readonly R8_SNORM: GLenum;
|
|
|
readonly RASTERIZER_DISCARD: GLenum;
|
|
|
readonly READ_BUFFER: GLenum;
|
|
|
readonly READ_FRAMEBUFFER: GLenum;
|
|
|
readonly READ_FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly RED: GLenum;
|
|
|
readonly RED_INTEGER: GLenum;
|
|
|
readonly RENDERBUFFER_SAMPLES: GLenum;
|
|
|
readonly RG: GLenum;
|
|
|
readonly RG16F: GLenum;
|
|
|
readonly RG16I: GLenum;
|
|
|
readonly RG16UI: GLenum;
|
|
|
readonly RG32F: GLenum;
|
|
|
readonly RG32I: GLenum;
|
|
|
readonly RG32UI: GLenum;
|
|
|
readonly RG8: GLenum;
|
|
|
readonly RG8I: GLenum;
|
|
|
readonly RG8UI: GLenum;
|
|
|
readonly RG8_SNORM: GLenum;
|
|
|
readonly RGB10_A2: GLenum;
|
|
|
readonly RGB10_A2UI: GLenum;
|
|
|
readonly RGB16F: GLenum;
|
|
|
readonly RGB16I: GLenum;
|
|
|
readonly RGB16UI: GLenum;
|
|
|
readonly RGB32F: GLenum;
|
|
|
readonly RGB32I: GLenum;
|
|
|
readonly RGB32UI: GLenum;
|
|
|
readonly RGB8: GLenum;
|
|
|
readonly RGB8I: GLenum;
|
|
|
readonly RGB8UI: GLenum;
|
|
|
readonly RGB8_SNORM: GLenum;
|
|
|
readonly RGB9_E5: GLenum;
|
|
|
readonly RGBA16F: GLenum;
|
|
|
readonly RGBA16I: GLenum;
|
|
|
readonly RGBA16UI: GLenum;
|
|
|
readonly RGBA32F: GLenum;
|
|
|
readonly RGBA32I: GLenum;
|
|
|
readonly RGBA32UI: GLenum;
|
|
|
readonly RGBA8: GLenum;
|
|
|
readonly RGBA8I: GLenum;
|
|
|
readonly RGBA8UI: GLenum;
|
|
|
readonly RGBA8_SNORM: GLenum;
|
|
|
readonly RGBA_INTEGER: GLenum;
|
|
|
readonly RGB_INTEGER: GLenum;
|
|
|
readonly RG_INTEGER: GLenum;
|
|
|
readonly SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
|
|
|
readonly SAMPLER_2D_SHADOW: GLenum;
|
|
|
readonly SAMPLER_3D: GLenum;
|
|
|
readonly SAMPLER_BINDING: GLenum;
|
|
|
readonly SAMPLER_CUBE_SHADOW: GLenum;
|
|
|
readonly SEPARATE_ATTRIBS: GLenum;
|
|
|
readonly SIGNALED: GLenum;
|
|
|
readonly SIGNED_NORMALIZED: GLenum;
|
|
|
readonly SRGB: GLenum;
|
|
|
readonly SRGB8: GLenum;
|
|
|
readonly SRGB8_ALPHA8: GLenum;
|
|
|
readonly STATIC_COPY: GLenum;
|
|
|
readonly STATIC_READ: GLenum;
|
|
|
readonly STENCIL: GLenum;
|
|
|
readonly STREAM_COPY: GLenum;
|
|
|
readonly STREAM_READ: GLenum;
|
|
|
readonly SYNC_CONDITION: GLenum;
|
|
|
readonly SYNC_FENCE: GLenum;
|
|
|
readonly SYNC_FLAGS: GLenum;
|
|
|
readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
|
|
|
readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
|
|
|
readonly SYNC_STATUS: GLenum;
|
|
|
readonly TEXTURE_2D_ARRAY: GLenum;
|
|
|
readonly TEXTURE_3D: GLenum;
|
|
|
readonly TEXTURE_BASE_LEVEL: GLenum;
|
|
|
readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
|
|
|
readonly TEXTURE_BINDING_3D: GLenum;
|
|
|
readonly TEXTURE_COMPARE_FUNC: GLenum;
|
|
|
readonly TEXTURE_COMPARE_MODE: GLenum;
|
|
|
readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
|
|
|
readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
|
|
|
readonly TEXTURE_MAX_LEVEL: GLenum;
|
|
|
readonly TEXTURE_MAX_LOD: GLenum;
|
|
|
readonly TEXTURE_MIN_LOD: GLenum;
|
|
|
readonly TEXTURE_WRAP_R: GLenum;
|
|
|
readonly TIMEOUT_EXPIRED: GLenum;
|
|
|
readonly TIMEOUT_IGNORED: GLint64;
|
|
|
readonly TRANSFORM_FEEDBACK: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
|
|
|
readonly UNIFORM_ARRAY_STRIDE: GLenum;
|
|
|
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
|
|
|
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
|
|
|
readonly UNIFORM_BLOCK_BINDING: GLenum;
|
|
|
readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
|
|
|
readonly UNIFORM_BLOCK_INDEX: GLenum;
|
|
|
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
|
|
|
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
|
|
|
readonly UNIFORM_BUFFER: GLenum;
|
|
|
readonly UNIFORM_BUFFER_BINDING: GLenum;
|
|
|
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
|
|
|
readonly UNIFORM_BUFFER_SIZE: GLenum;
|
|
|
readonly UNIFORM_BUFFER_START: GLenum;
|
|
|
readonly UNIFORM_IS_ROW_MAJOR: GLenum;
|
|
|
readonly UNIFORM_MATRIX_STRIDE: GLenum;
|
|
|
readonly UNIFORM_OFFSET: GLenum;
|
|
|
readonly UNIFORM_SIZE: GLenum;
|
|
|
readonly UNIFORM_TYPE: GLenum;
|
|
|
readonly UNPACK_IMAGE_HEIGHT: GLenum;
|
|
|
readonly UNPACK_ROW_LENGTH: GLenum;
|
|
|
readonly UNPACK_SKIP_IMAGES: GLenum;
|
|
|
readonly UNPACK_SKIP_PIXELS: GLenum;
|
|
|
readonly UNPACK_SKIP_ROWS: GLenum;
|
|
|
readonly UNSIGNALED: GLenum;
|
|
|
readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_24_8: GLenum;
|
|
|
readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC2: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC3: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC4: GLenum;
|
|
|
readonly UNSIGNED_NORMALIZED: GLenum;
|
|
|
readonly VERTEX_ARRAY_BINDING: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
|
|
|
readonly WAIT_FAILED: GLenum;
|
|
|
};
|
|
|
|
|
|
interface WebGL2RenderingContextBase {
|
|
|
beginQuery(target: GLenum, query: WebGLQuery): void;
|
|
|
beginTransformFeedback(primitiveMode: GLenum): void;
|
|
|
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
|
|
|
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
|
|
|
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
|
|
|
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
|
|
|
bindVertexArray(array: WebGLVertexArrayObject | null): void;
|
|
|
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
|
|
|
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
|
|
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
|
|
|
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
|
|
|
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
|
|
|
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
|
|
|
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
|
|
|
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
|
|
|
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
|
|
|
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
|
|
|
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
|
|
|
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
createQuery(): WebGLQuery | null;
|
|
|
createSampler(): WebGLSampler | null;
|
|
|
createTransformFeedback(): WebGLTransformFeedback | null;
|
|
|
createVertexArray(): WebGLVertexArrayObject | null;
|
|
|
deleteQuery(query: WebGLQuery | null): void;
|
|
|
deleteSampler(sampler: WebGLSampler | null): void;
|
|
|
deleteSync(sync: WebGLSync | null): void;
|
|
|
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
|
|
|
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
|
|
|
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
|
|
|
drawBuffers(buffers: GLenum[]): void;
|
|
|
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
|
|
|
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
|
|
|
endQuery(target: GLenum): void;
|
|
|
endTransformFeedback(): void;
|
|
|
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
|
|
|
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
|
|
|
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
|
|
|
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
|
|
|
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
|
|
|
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
|
|
|
getFragDataLocation(program: WebGLProgram, name: string): GLint;
|
|
|
getIndexedParameter(target: GLenum, index: GLuint): any;
|
|
|
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
|
|
|
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
|
|
|
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
|
|
|
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
|
|
|
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
|
|
|
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
|
|
|
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
|
|
|
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
|
|
|
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
|
|
|
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
isQuery(query: WebGLQuery | null): GLboolean;
|
|
|
isSampler(sampler: WebGLSampler | null): GLboolean;
|
|
|
isSync(sync: WebGLSync | null): GLboolean;
|
|
|
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
|
|
|
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
|
|
|
pauseTransformFeedback(): void;
|
|
|
readBuffer(src: GLenum): void;
|
|
|
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
|
|
|
resumeTransformFeedback(): void;
|
|
|
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
|
|
|
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
|
|
|
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
|
|
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
|
|
|
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
|
|
|
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
|
|
|
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
|
|
|
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
|
|
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;
|
|
|
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
|
|
|
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
|
|
|
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
|
|
|
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
|
|
|
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
|
|
|
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
|
|
|
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
|
|
|
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
|
|
|
vertexAttribI4iv(index: GLuint, values: Int32List): void;
|
|
|
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
|
|
|
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
|
|
|
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
|
|
|
waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
|
|
|
readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly ALREADY_SIGNALED: GLenum;
|
|
|
readonly ANY_SAMPLES_PASSED: GLenum;
|
|
|
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
|
|
|
readonly COLOR: GLenum;
|
|
|
readonly COLOR_ATTACHMENT1: GLenum;
|
|
|
readonly COLOR_ATTACHMENT10: GLenum;
|
|
|
readonly COLOR_ATTACHMENT11: GLenum;
|
|
|
readonly COLOR_ATTACHMENT12: GLenum;
|
|
|
readonly COLOR_ATTACHMENT13: GLenum;
|
|
|
readonly COLOR_ATTACHMENT14: GLenum;
|
|
|
readonly COLOR_ATTACHMENT15: GLenum;
|
|
|
readonly COLOR_ATTACHMENT2: GLenum;
|
|
|
readonly COLOR_ATTACHMENT3: GLenum;
|
|
|
readonly COLOR_ATTACHMENT4: GLenum;
|
|
|
readonly COLOR_ATTACHMENT5: GLenum;
|
|
|
readonly COLOR_ATTACHMENT6: GLenum;
|
|
|
readonly COLOR_ATTACHMENT7: GLenum;
|
|
|
readonly COLOR_ATTACHMENT8: GLenum;
|
|
|
readonly COLOR_ATTACHMENT9: GLenum;
|
|
|
readonly COMPARE_REF_TO_TEXTURE: GLenum;
|
|
|
readonly CONDITION_SATISFIED: GLenum;
|
|
|
readonly COPY_READ_BUFFER: GLenum;
|
|
|
readonly COPY_READ_BUFFER_BINDING: GLenum;
|
|
|
readonly COPY_WRITE_BUFFER: GLenum;
|
|
|
readonly COPY_WRITE_BUFFER_BINDING: GLenum;
|
|
|
readonly CURRENT_QUERY: GLenum;
|
|
|
readonly DEPTH: GLenum;
|
|
|
readonly DEPTH24_STENCIL8: GLenum;
|
|
|
readonly DEPTH32F_STENCIL8: GLenum;
|
|
|
readonly DEPTH_COMPONENT24: GLenum;
|
|
|
readonly DEPTH_COMPONENT32F: GLenum;
|
|
|
readonly DRAW_BUFFER0: GLenum;
|
|
|
readonly DRAW_BUFFER1: GLenum;
|
|
|
readonly DRAW_BUFFER10: GLenum;
|
|
|
readonly DRAW_BUFFER11: GLenum;
|
|
|
readonly DRAW_BUFFER12: GLenum;
|
|
|
readonly DRAW_BUFFER13: GLenum;
|
|
|
readonly DRAW_BUFFER14: GLenum;
|
|
|
readonly DRAW_BUFFER15: GLenum;
|
|
|
readonly DRAW_BUFFER2: GLenum;
|
|
|
readonly DRAW_BUFFER3: GLenum;
|
|
|
readonly DRAW_BUFFER4: GLenum;
|
|
|
readonly DRAW_BUFFER5: GLenum;
|
|
|
readonly DRAW_BUFFER6: GLenum;
|
|
|
readonly DRAW_BUFFER7: GLenum;
|
|
|
readonly DRAW_BUFFER8: GLenum;
|
|
|
readonly DRAW_BUFFER9: GLenum;
|
|
|
readonly DRAW_FRAMEBUFFER: GLenum;
|
|
|
readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly DYNAMIC_COPY: GLenum;
|
|
|
readonly DYNAMIC_READ: GLenum;
|
|
|
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
|
|
|
readonly FLOAT_MAT2x3: GLenum;
|
|
|
readonly FLOAT_MAT2x4: GLenum;
|
|
|
readonly FLOAT_MAT3x2: GLenum;
|
|
|
readonly FLOAT_MAT3x4: GLenum;
|
|
|
readonly FLOAT_MAT4x2: GLenum;
|
|
|
readonly FLOAT_MAT4x3: GLenum;
|
|
|
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
|
|
|
readonly FRAMEBUFFER_DEFAULT: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
|
|
|
readonly HALF_FLOAT: GLenum;
|
|
|
readonly INTERLEAVED_ATTRIBS: GLenum;
|
|
|
readonly INT_2_10_10_10_REV: GLenum;
|
|
|
readonly INT_SAMPLER_2D: GLenum;
|
|
|
readonly INT_SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly INT_SAMPLER_3D: GLenum;
|
|
|
readonly INT_SAMPLER_CUBE: GLenum;
|
|
|
readonly INVALID_INDEX: GLenum;
|
|
|
readonly MAX: GLenum;
|
|
|
readonly MAX_3D_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
|
|
|
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
|
|
|
readonly MAX_COLOR_ATTACHMENTS: GLenum;
|
|
|
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_DRAW_BUFFERS: GLenum;
|
|
|
readonly MAX_ELEMENTS_INDICES: GLenum;
|
|
|
readonly MAX_ELEMENTS_VERTICES: GLenum;
|
|
|
readonly MAX_ELEMENT_INDEX: GLenum;
|
|
|
readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
|
|
|
readonly MAX_SAMPLES: GLenum;
|
|
|
readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
|
|
|
readonly MAX_TEXTURE_LOD_BIAS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
|
|
|
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
|
|
|
readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
|
|
|
readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
|
|
|
readonly MAX_VARYING_COMPONENTS: GLenum;
|
|
|
readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
|
|
|
readonly MIN: GLenum;
|
|
|
readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
|
|
|
readonly OBJECT_TYPE: GLenum;
|
|
|
readonly PACK_ROW_LENGTH: GLenum;
|
|
|
readonly PACK_SKIP_PIXELS: GLenum;
|
|
|
readonly PACK_SKIP_ROWS: GLenum;
|
|
|
readonly PIXEL_PACK_BUFFER: GLenum;
|
|
|
readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
|
|
|
readonly PIXEL_UNPACK_BUFFER: GLenum;
|
|
|
readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
|
|
|
readonly QUERY_RESULT: GLenum;
|
|
|
readonly QUERY_RESULT_AVAILABLE: GLenum;
|
|
|
readonly R11F_G11F_B10F: GLenum;
|
|
|
readonly R16F: GLenum;
|
|
|
readonly R16I: GLenum;
|
|
|
readonly R16UI: GLenum;
|
|
|
readonly R32F: GLenum;
|
|
|
readonly R32I: GLenum;
|
|
|
readonly R32UI: GLenum;
|
|
|
readonly R8: GLenum;
|
|
|
readonly R8I: GLenum;
|
|
|
readonly R8UI: GLenum;
|
|
|
readonly R8_SNORM: GLenum;
|
|
|
readonly RASTERIZER_DISCARD: GLenum;
|
|
|
readonly READ_BUFFER: GLenum;
|
|
|
readonly READ_FRAMEBUFFER: GLenum;
|
|
|
readonly READ_FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly RED: GLenum;
|
|
|
readonly RED_INTEGER: GLenum;
|
|
|
readonly RENDERBUFFER_SAMPLES: GLenum;
|
|
|
readonly RG: GLenum;
|
|
|
readonly RG16F: GLenum;
|
|
|
readonly RG16I: GLenum;
|
|
|
readonly RG16UI: GLenum;
|
|
|
readonly RG32F: GLenum;
|
|
|
readonly RG32I: GLenum;
|
|
|
readonly RG32UI: GLenum;
|
|
|
readonly RG8: GLenum;
|
|
|
readonly RG8I: GLenum;
|
|
|
readonly RG8UI: GLenum;
|
|
|
readonly RG8_SNORM: GLenum;
|
|
|
readonly RGB10_A2: GLenum;
|
|
|
readonly RGB10_A2UI: GLenum;
|
|
|
readonly RGB16F: GLenum;
|
|
|
readonly RGB16I: GLenum;
|
|
|
readonly RGB16UI: GLenum;
|
|
|
readonly RGB32F: GLenum;
|
|
|
readonly RGB32I: GLenum;
|
|
|
readonly RGB32UI: GLenum;
|
|
|
readonly RGB8: GLenum;
|
|
|
readonly RGB8I: GLenum;
|
|
|
readonly RGB8UI: GLenum;
|
|
|
readonly RGB8_SNORM: GLenum;
|
|
|
readonly RGB9_E5: GLenum;
|
|
|
readonly RGBA16F: GLenum;
|
|
|
readonly RGBA16I: GLenum;
|
|
|
readonly RGBA16UI: GLenum;
|
|
|
readonly RGBA32F: GLenum;
|
|
|
readonly RGBA32I: GLenum;
|
|
|
readonly RGBA32UI: GLenum;
|
|
|
readonly RGBA8: GLenum;
|
|
|
readonly RGBA8I: GLenum;
|
|
|
readonly RGBA8UI: GLenum;
|
|
|
readonly RGBA8_SNORM: GLenum;
|
|
|
readonly RGBA_INTEGER: GLenum;
|
|
|
readonly RGB_INTEGER: GLenum;
|
|
|
readonly RG_INTEGER: GLenum;
|
|
|
readonly SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
|
|
|
readonly SAMPLER_2D_SHADOW: GLenum;
|
|
|
readonly SAMPLER_3D: GLenum;
|
|
|
readonly SAMPLER_BINDING: GLenum;
|
|
|
readonly SAMPLER_CUBE_SHADOW: GLenum;
|
|
|
readonly SEPARATE_ATTRIBS: GLenum;
|
|
|
readonly SIGNALED: GLenum;
|
|
|
readonly SIGNED_NORMALIZED: GLenum;
|
|
|
readonly SRGB: GLenum;
|
|
|
readonly SRGB8: GLenum;
|
|
|
readonly SRGB8_ALPHA8: GLenum;
|
|
|
readonly STATIC_COPY: GLenum;
|
|
|
readonly STATIC_READ: GLenum;
|
|
|
readonly STENCIL: GLenum;
|
|
|
readonly STREAM_COPY: GLenum;
|
|
|
readonly STREAM_READ: GLenum;
|
|
|
readonly SYNC_CONDITION: GLenum;
|
|
|
readonly SYNC_FENCE: GLenum;
|
|
|
readonly SYNC_FLAGS: GLenum;
|
|
|
readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
|
|
|
readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
|
|
|
readonly SYNC_STATUS: GLenum;
|
|
|
readonly TEXTURE_2D_ARRAY: GLenum;
|
|
|
readonly TEXTURE_3D: GLenum;
|
|
|
readonly TEXTURE_BASE_LEVEL: GLenum;
|
|
|
readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
|
|
|
readonly TEXTURE_BINDING_3D: GLenum;
|
|
|
readonly TEXTURE_COMPARE_FUNC: GLenum;
|
|
|
readonly TEXTURE_COMPARE_MODE: GLenum;
|
|
|
readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
|
|
|
readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
|
|
|
readonly TEXTURE_MAX_LEVEL: GLenum;
|
|
|
readonly TEXTURE_MAX_LOD: GLenum;
|
|
|
readonly TEXTURE_MIN_LOD: GLenum;
|
|
|
readonly TEXTURE_WRAP_R: GLenum;
|
|
|
readonly TIMEOUT_EXPIRED: GLenum;
|
|
|
readonly TIMEOUT_IGNORED: GLint64;
|
|
|
readonly TRANSFORM_FEEDBACK: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
|
|
|
readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
|
|
|
readonly UNIFORM_ARRAY_STRIDE: GLenum;
|
|
|
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
|
|
|
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
|
|
|
readonly UNIFORM_BLOCK_BINDING: GLenum;
|
|
|
readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
|
|
|
readonly UNIFORM_BLOCK_INDEX: GLenum;
|
|
|
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
|
|
|
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
|
|
|
readonly UNIFORM_BUFFER: GLenum;
|
|
|
readonly UNIFORM_BUFFER_BINDING: GLenum;
|
|
|
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
|
|
|
readonly UNIFORM_BUFFER_SIZE: GLenum;
|
|
|
readonly UNIFORM_BUFFER_START: GLenum;
|
|
|
readonly UNIFORM_IS_ROW_MAJOR: GLenum;
|
|
|
readonly UNIFORM_MATRIX_STRIDE: GLenum;
|
|
|
readonly UNIFORM_OFFSET: GLenum;
|
|
|
readonly UNIFORM_SIZE: GLenum;
|
|
|
readonly UNIFORM_TYPE: GLenum;
|
|
|
readonly UNPACK_IMAGE_HEIGHT: GLenum;
|
|
|
readonly UNPACK_ROW_LENGTH: GLenum;
|
|
|
readonly UNPACK_SKIP_IMAGES: GLenum;
|
|
|
readonly UNPACK_SKIP_PIXELS: GLenum;
|
|
|
readonly UNPACK_SKIP_ROWS: GLenum;
|
|
|
readonly UNSIGNALED: GLenum;
|
|
|
readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_24_8: GLenum;
|
|
|
readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
|
|
|
readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC2: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC3: GLenum;
|
|
|
readonly UNSIGNED_INT_VEC4: GLenum;
|
|
|
readonly UNSIGNED_NORMALIZED: GLenum;
|
|
|
readonly VERTEX_ARRAY_BINDING: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
|
|
|
readonly WAIT_FAILED: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WebGL2RenderingContextOverloads {
|
|
|
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
|
|
|
bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
|
|
|
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
|
|
|
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
|
|
|
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
|
|
|
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
|
|
|
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
|
|
|
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
|
|
|
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
|
|
|
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
|
|
|
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
|
|
|
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
|
|
|
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
|
|
}
|
|
|
|
|
|
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
|
|
|
interface WebGLActiveInfo {
|
|
|
readonly name: string;
|
|
|
readonly size: GLint;
|
|
|
readonly type: GLenum;
|
|
|
}
|
|
|
|
|
|
declare var WebGLActiveInfo: {
|
|
|
prototype: WebGLActiveInfo;
|
|
|
new(): WebGLActiveInfo;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
|
|
|
interface WebGLBuffer extends WebGLObject {
|
|
|
}
|
|
|
|
|
|
declare var WebGLBuffer: {
|
|
|
prototype: WebGLBuffer;
|
|
|
new(): WebGLBuffer;
|
|
|
};
|
|
|
|
|
|
/** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */
|
|
|
interface WebGLContextEvent extends Event {
|
|
|
readonly statusMessage: string;
|
|
|
}
|
|
|
|
|
|
declare var WebGLContextEvent: {
|
|
|
prototype: WebGLContextEvent;
|
|
|
new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
|
|
|
interface WebGLFramebuffer extends WebGLObject {
|
|
|
}
|
|
|
|
|
|
declare var WebGLFramebuffer: {
|
|
|
prototype: WebGLFramebuffer;
|
|
|
new(): WebGLFramebuffer;
|
|
|
};
|
|
|
|
|
|
interface WebGLObject {
|
|
|
}
|
|
|
|
|
|
declare var WebGLObject: {
|
|
|
prototype: WebGLObject;
|
|
|
new(): WebGLObject;
|
|
|
};
|
|
|
|
|
|
/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
|
|
|
interface WebGLProgram extends WebGLObject {
|
|
|
}
|
|
|
|
|
|
declare var WebGLProgram: {
|
|
|
prototype: WebGLProgram;
|
|
|
new(): WebGLProgram;
|
|
|
};
|
|
|
|
|
|
interface WebGLQuery extends WebGLObject {
|
|
|
}
|
|
|
|
|
|
declare var WebGLQuery: {
|
|
|
prototype: WebGLQuery;
|
|
|
new(): WebGLQuery;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
|
|
|
interface WebGLRenderbuffer extends WebGLObject {
|
|
|
}
|
|
|
|
|
|
declare var WebGLRenderbuffer: {
|
|
|
prototype: WebGLRenderbuffer;
|
|
|
new(): WebGLRenderbuffer;
|
|
|
};
|
|
|
|
|
|
/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
|
|
|
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
|
|
|
}
|
|
|
|
|
|
declare var WebGLRenderingContext: {
|
|
|
prototype: WebGLRenderingContext;
|
|
|
new(): WebGLRenderingContext;
|
|
|
readonly ACTIVE_ATTRIBUTES: GLenum;
|
|
|
readonly ACTIVE_TEXTURE: GLenum;
|
|
|
readonly ACTIVE_UNIFORMS: GLenum;
|
|
|
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
|
|
|
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
|
|
|
readonly ALPHA: GLenum;
|
|
|
readonly ALPHA_BITS: GLenum;
|
|
|
readonly ALWAYS: GLenum;
|
|
|
readonly ARRAY_BUFFER: GLenum;
|
|
|
readonly ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly ATTACHED_SHADERS: GLenum;
|
|
|
readonly BACK: GLenum;
|
|
|
readonly BLEND: GLenum;
|
|
|
readonly BLEND_COLOR: GLenum;
|
|
|
readonly BLEND_DST_ALPHA: GLenum;
|
|
|
readonly BLEND_DST_RGB: GLenum;
|
|
|
readonly BLEND_EQUATION: GLenum;
|
|
|
readonly BLEND_EQUATION_ALPHA: GLenum;
|
|
|
readonly BLEND_EQUATION_RGB: GLenum;
|
|
|
readonly BLEND_SRC_ALPHA: GLenum;
|
|
|
readonly BLEND_SRC_RGB: GLenum;
|
|
|
readonly BLUE_BITS: GLenum;
|
|
|
readonly BOOL: GLenum;
|
|
|
readonly BOOL_VEC2: GLenum;
|
|
|
readonly BOOL_VEC3: GLenum;
|
|
|
readonly BOOL_VEC4: GLenum;
|
|
|
readonly BROWSER_DEFAULT_WEBGL: GLenum;
|
|
|
readonly BUFFER_SIZE: GLenum;
|
|
|
readonly BUFFER_USAGE: GLenum;
|
|
|
readonly BYTE: GLenum;
|
|
|
readonly CCW: GLenum;
|
|
|
readonly CLAMP_TO_EDGE: GLenum;
|
|
|
readonly COLOR_ATTACHMENT0: GLenum;
|
|
|
readonly COLOR_BUFFER_BIT: GLenum;
|
|
|
readonly COLOR_CLEAR_VALUE: GLenum;
|
|
|
readonly COLOR_WRITEMASK: GLenum;
|
|
|
readonly COMPILE_STATUS: GLenum;
|
|
|
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
|
|
|
readonly CONSTANT_ALPHA: GLenum;
|
|
|
readonly CONSTANT_COLOR: GLenum;
|
|
|
readonly CONTEXT_LOST_WEBGL: GLenum;
|
|
|
readonly CULL_FACE: GLenum;
|
|
|
readonly CULL_FACE_MODE: GLenum;
|
|
|
readonly CURRENT_PROGRAM: GLenum;
|
|
|
readonly CURRENT_VERTEX_ATTRIB: GLenum;
|
|
|
readonly CW: GLenum;
|
|
|
readonly DECR: GLenum;
|
|
|
readonly DECR_WRAP: GLenum;
|
|
|
readonly DELETE_STATUS: GLenum;
|
|
|
readonly DEPTH_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_BITS: GLenum;
|
|
|
readonly DEPTH_BUFFER_BIT: GLenum;
|
|
|
readonly DEPTH_CLEAR_VALUE: GLenum;
|
|
|
readonly DEPTH_COMPONENT: GLenum;
|
|
|
readonly DEPTH_COMPONENT16: GLenum;
|
|
|
readonly DEPTH_FUNC: GLenum;
|
|
|
readonly DEPTH_RANGE: GLenum;
|
|
|
readonly DEPTH_STENCIL: GLenum;
|
|
|
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_TEST: GLenum;
|
|
|
readonly DEPTH_WRITEMASK: GLenum;
|
|
|
readonly DITHER: GLenum;
|
|
|
readonly DONT_CARE: GLenum;
|
|
|
readonly DST_ALPHA: GLenum;
|
|
|
readonly DST_COLOR: GLenum;
|
|
|
readonly DYNAMIC_DRAW: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly EQUAL: GLenum;
|
|
|
readonly FASTEST: GLenum;
|
|
|
readonly FLOAT: GLenum;
|
|
|
readonly FLOAT_MAT2: GLenum;
|
|
|
readonly FLOAT_MAT3: GLenum;
|
|
|
readonly FLOAT_MAT4: GLenum;
|
|
|
readonly FLOAT_VEC2: GLenum;
|
|
|
readonly FLOAT_VEC3: GLenum;
|
|
|
readonly FLOAT_VEC4: GLenum;
|
|
|
readonly FRAGMENT_SHADER: GLenum;
|
|
|
readonly FRAMEBUFFER: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
|
|
|
readonly FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly FRAMEBUFFER_COMPLETE: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
|
|
|
readonly FRONT: GLenum;
|
|
|
readonly FRONT_AND_BACK: GLenum;
|
|
|
readonly FRONT_FACE: GLenum;
|
|
|
readonly FUNC_ADD: GLenum;
|
|
|
readonly FUNC_REVERSE_SUBTRACT: GLenum;
|
|
|
readonly FUNC_SUBTRACT: GLenum;
|
|
|
readonly GENERATE_MIPMAP_HINT: GLenum;
|
|
|
readonly GEQUAL: GLenum;
|
|
|
readonly GREATER: GLenum;
|
|
|
readonly GREEN_BITS: GLenum;
|
|
|
readonly HIGH_FLOAT: GLenum;
|
|
|
readonly HIGH_INT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
|
|
|
readonly INCR: GLenum;
|
|
|
readonly INCR_WRAP: GLenum;
|
|
|
readonly INT: GLenum;
|
|
|
readonly INT_VEC2: GLenum;
|
|
|
readonly INT_VEC3: GLenum;
|
|
|
readonly INT_VEC4: GLenum;
|
|
|
readonly INVALID_ENUM: GLenum;
|
|
|
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
|
|
|
readonly INVALID_OPERATION: GLenum;
|
|
|
readonly INVALID_VALUE: GLenum;
|
|
|
readonly INVERT: GLenum;
|
|
|
readonly KEEP: GLenum;
|
|
|
readonly LEQUAL: GLenum;
|
|
|
readonly LESS: GLenum;
|
|
|
readonly LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_NEAREST: GLenum;
|
|
|
readonly LINES: GLenum;
|
|
|
readonly LINE_LOOP: GLenum;
|
|
|
readonly LINE_STRIP: GLenum;
|
|
|
readonly LINE_WIDTH: GLenum;
|
|
|
readonly LINK_STATUS: GLenum;
|
|
|
readonly LOW_FLOAT: GLenum;
|
|
|
readonly LOW_INT: GLenum;
|
|
|
readonly LUMINANCE: GLenum;
|
|
|
readonly LUMINANCE_ALPHA: GLenum;
|
|
|
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_RENDERBUFFER_SIZE: GLenum;
|
|
|
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_VARYING_VECTORS: GLenum;
|
|
|
readonly MAX_VERTEX_ATTRIBS: GLenum;
|
|
|
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_VIEWPORT_DIMS: GLenum;
|
|
|
readonly MEDIUM_FLOAT: GLenum;
|
|
|
readonly MEDIUM_INT: GLenum;
|
|
|
readonly MIRRORED_REPEAT: GLenum;
|
|
|
readonly NEAREST: GLenum;
|
|
|
readonly NEAREST_MIPMAP_LINEAR: GLenum;
|
|
|
readonly NEAREST_MIPMAP_NEAREST: GLenum;
|
|
|
readonly NEVER: GLenum;
|
|
|
readonly NICEST: GLenum;
|
|
|
readonly NONE: GLenum;
|
|
|
readonly NOTEQUAL: GLenum;
|
|
|
readonly NO_ERROR: GLenum;
|
|
|
readonly ONE: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_DST_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_DST_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_SRC_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_SRC_COLOR: GLenum;
|
|
|
readonly OUT_OF_MEMORY: GLenum;
|
|
|
readonly PACK_ALIGNMENT: GLenum;
|
|
|
readonly POINTS: GLenum;
|
|
|
readonly POLYGON_OFFSET_FACTOR: GLenum;
|
|
|
readonly POLYGON_OFFSET_FILL: GLenum;
|
|
|
readonly POLYGON_OFFSET_UNITS: GLenum;
|
|
|
readonly RED_BITS: GLenum;
|
|
|
readonly RENDERBUFFER: GLenum;
|
|
|
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_BINDING: GLenum;
|
|
|
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_HEIGHT: GLenum;
|
|
|
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
|
|
|
readonly RENDERBUFFER_RED_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_WIDTH: GLenum;
|
|
|
readonly RENDERER: GLenum;
|
|
|
readonly REPEAT: GLenum;
|
|
|
readonly REPLACE: GLenum;
|
|
|
readonly RGB: GLenum;
|
|
|
readonly RGB565: GLenum;
|
|
|
readonly RGB5_A1: GLenum;
|
|
|
readonly RGBA: GLenum;
|
|
|
readonly RGBA4: GLenum;
|
|
|
readonly SAMPLER_2D: GLenum;
|
|
|
readonly SAMPLER_CUBE: GLenum;
|
|
|
readonly SAMPLES: GLenum;
|
|
|
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_BUFFERS: GLenum;
|
|
|
readonly SAMPLE_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_INVERT: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_VALUE: GLenum;
|
|
|
readonly SCISSOR_BOX: GLenum;
|
|
|
readonly SCISSOR_TEST: GLenum;
|
|
|
readonly SHADER_TYPE: GLenum;
|
|
|
readonly SHADING_LANGUAGE_VERSION: GLenum;
|
|
|
readonly SHORT: GLenum;
|
|
|
readonly SRC_ALPHA: GLenum;
|
|
|
readonly SRC_ALPHA_SATURATE: GLenum;
|
|
|
readonly SRC_COLOR: GLenum;
|
|
|
readonly STATIC_DRAW: GLenum;
|
|
|
readonly STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly STENCIL_BACK_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_FUNC: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_BACK_REF: GLenum;
|
|
|
readonly STENCIL_BACK_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_BACK_WRITEMASK: GLenum;
|
|
|
readonly STENCIL_BITS: GLenum;
|
|
|
readonly STENCIL_BUFFER_BIT: GLenum;
|
|
|
readonly STENCIL_CLEAR_VALUE: GLenum;
|
|
|
readonly STENCIL_FAIL: GLenum;
|
|
|
readonly STENCIL_FUNC: GLenum;
|
|
|
readonly STENCIL_INDEX8: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_REF: GLenum;
|
|
|
readonly STENCIL_TEST: GLenum;
|
|
|
readonly STENCIL_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_WRITEMASK: GLenum;
|
|
|
readonly STREAM_DRAW: GLenum;
|
|
|
readonly SUBPIXEL_BITS: GLenum;
|
|
|
readonly TEXTURE: GLenum;
|
|
|
readonly TEXTURE0: GLenum;
|
|
|
readonly TEXTURE1: GLenum;
|
|
|
readonly TEXTURE10: GLenum;
|
|
|
readonly TEXTURE11: GLenum;
|
|
|
readonly TEXTURE12: GLenum;
|
|
|
readonly TEXTURE13: GLenum;
|
|
|
readonly TEXTURE14: GLenum;
|
|
|
readonly TEXTURE15: GLenum;
|
|
|
readonly TEXTURE16: GLenum;
|
|
|
readonly TEXTURE17: GLenum;
|
|
|
readonly TEXTURE18: GLenum;
|
|
|
readonly TEXTURE19: GLenum;
|
|
|
readonly TEXTURE2: GLenum;
|
|
|
readonly TEXTURE20: GLenum;
|
|
|
readonly TEXTURE21: GLenum;
|
|
|
readonly TEXTURE22: GLenum;
|
|
|
readonly TEXTURE23: GLenum;
|
|
|
readonly TEXTURE24: GLenum;
|
|
|
readonly TEXTURE25: GLenum;
|
|
|
readonly TEXTURE26: GLenum;
|
|
|
readonly TEXTURE27: GLenum;
|
|
|
readonly TEXTURE28: GLenum;
|
|
|
readonly TEXTURE29: GLenum;
|
|
|
readonly TEXTURE3: GLenum;
|
|
|
readonly TEXTURE30: GLenum;
|
|
|
readonly TEXTURE31: GLenum;
|
|
|
readonly TEXTURE4: GLenum;
|
|
|
readonly TEXTURE5: GLenum;
|
|
|
readonly TEXTURE6: GLenum;
|
|
|
readonly TEXTURE7: GLenum;
|
|
|
readonly TEXTURE8: GLenum;
|
|
|
readonly TEXTURE9: GLenum;
|
|
|
readonly TEXTURE_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
|
|
|
readonly TEXTURE_MAG_FILTER: GLenum;
|
|
|
readonly TEXTURE_MIN_FILTER: GLenum;
|
|
|
readonly TEXTURE_WRAP_S: GLenum;
|
|
|
readonly TEXTURE_WRAP_T: GLenum;
|
|
|
readonly TRIANGLES: GLenum;
|
|
|
readonly TRIANGLE_FAN: GLenum;
|
|
|
readonly TRIANGLE_STRIP: GLenum;
|
|
|
readonly UNPACK_ALIGNMENT: GLenum;
|
|
|
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
|
|
|
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
|
|
|
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
|
|
|
readonly UNSIGNED_BYTE: GLenum;
|
|
|
readonly UNSIGNED_INT: GLenum;
|
|
|
readonly UNSIGNED_SHORT: GLenum;
|
|
|
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_6_5: GLenum;
|
|
|
readonly VALIDATE_STATUS: GLenum;
|
|
|
readonly VENDOR: GLenum;
|
|
|
readonly VERSION: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
|
|
|
readonly VERTEX_SHADER: GLenum;
|
|
|
readonly VIEWPORT: GLenum;
|
|
|
readonly ZERO: GLenum;
|
|
|
};
|
|
|
|
|
|
interface WebGLRenderingContextBase {
|
|
|
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
|
|
|
readonly drawingBufferHeight: GLsizei;
|
|
|
readonly drawingBufferWidth: GLsizei;
|
|
|
activeTexture(texture: GLenum): void;
|
|
|
attachShader(program: WebGLProgram, shader: WebGLShader): void;
|
|
|
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
|
|
|
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
|
|
|
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
|
|
|
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
|
|
|
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
|
|
|
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
|
|
|
blendEquation(mode: GLenum): void;
|
|
|
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
|
|
|
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
|
|
|
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
|
|
|
checkFramebufferStatus(target: GLenum): GLenum;
|
|
|
clear(mask: GLbitfield): void;
|
|
|
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
|
|
|
clearDepth(depth: GLclampf): void;
|
|
|
clearStencil(s: GLint): void;
|
|
|
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
|
|
|
compileShader(shader: WebGLShader): void;
|
|
|
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
|
|
|
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
createBuffer(): WebGLBuffer | null;
|
|
|
createFramebuffer(): WebGLFramebuffer | null;
|
|
|
createProgram(): WebGLProgram | null;
|
|
|
createRenderbuffer(): WebGLRenderbuffer | null;
|
|
|
createShader(type: GLenum): WebGLShader | null;
|
|
|
createTexture(): WebGLTexture | null;
|
|
|
cullFace(mode: GLenum): void;
|
|
|
deleteBuffer(buffer: WebGLBuffer | null): void;
|
|
|
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
|
|
|
deleteProgram(program: WebGLProgram | null): void;
|
|
|
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
|
|
|
deleteShader(shader: WebGLShader | null): void;
|
|
|
deleteTexture(texture: WebGLTexture | null): void;
|
|
|
depthFunc(func: GLenum): void;
|
|
|
depthMask(flag: GLboolean): void;
|
|
|
depthRange(zNear: GLclampf, zFar: GLclampf): void;
|
|
|
detachShader(program: WebGLProgram, shader: WebGLShader): void;
|
|
|
disable(cap: GLenum): void;
|
|
|
disableVertexAttribArray(index: GLuint): void;
|
|
|
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
|
|
|
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
|
|
|
enable(cap: GLenum): void;
|
|
|
enableVertexAttribArray(index: GLuint): void;
|
|
|
finish(): void;
|
|
|
flush(): void;
|
|
|
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
|
|
|
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
|
|
|
frontFace(mode: GLenum): void;
|
|
|
generateMipmap(target: GLenum): void;
|
|
|
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
|
|
|
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
|
|
|
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
|
|
|
getAttribLocation(program: WebGLProgram, name: string): GLint;
|
|
|
getBufferParameter(target: GLenum, pname: GLenum): any;
|
|
|
getContextAttributes(): WebGLContextAttributes | null;
|
|
|
getError(): GLenum;
|
|
|
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
|
|
|
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
|
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
|
|
|
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
|
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
|
|
|
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
|
|
|
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
|
|
|
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
|
|
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
|
|
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
|
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
|
|
|
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
|
|
|
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
|
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
|
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
|
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
|
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
|
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
|
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
|
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
|
getExtension(extensionName: string): any;
|
|
|
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
|
|
|
getParameter(pname: GLenum): any;
|
|
|
getProgramInfoLog(program: WebGLProgram): string | null;
|
|
|
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
|
|
|
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
|
|
|
getShaderInfoLog(shader: WebGLShader): string | null;
|
|
|
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
|
|
|
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
|
|
|
getShaderSource(shader: WebGLShader): string | null;
|
|
|
getSupportedExtensions(): string[] | null;
|
|
|
getTexParameter(target: GLenum, pname: GLenum): any;
|
|
|
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
|
|
|
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
|
|
|
getVertexAttrib(index: GLuint, pname: GLenum): any;
|
|
|
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
|
|
|
hint(target: GLenum, mode: GLenum): void;
|
|
|
isBuffer(buffer: WebGLBuffer | null): GLboolean;
|
|
|
isContextLost(): boolean;
|
|
|
isEnabled(cap: GLenum): GLboolean;
|
|
|
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
|
|
|
isProgram(program: WebGLProgram | null): GLboolean;
|
|
|
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
|
|
|
isShader(shader: WebGLShader | null): GLboolean;
|
|
|
isTexture(texture: WebGLTexture | null): GLboolean;
|
|
|
lineWidth(width: GLfloat): void;
|
|
|
linkProgram(program: WebGLProgram): void;
|
|
|
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
|
|
|
polygonOffset(factor: GLfloat, units: GLfloat): void;
|
|
|
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
|
|
|
sampleCoverage(value: GLclampf, invert: GLboolean): void;
|
|
|
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
shaderSource(shader: WebGLShader, source: string): void;
|
|
|
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
|
|
|
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
|
|
|
stencilMask(mask: GLuint): void;
|
|
|
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
|
|
|
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
|
|
|
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
|
|
|
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
|
|
|
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
|
|
|
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
|
|
|
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
|
|
|
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
|
|
|
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
|
|
|
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
|
|
|
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
|
|
|
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
|
|
|
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
|
|
|
useProgram(program: WebGLProgram | null): void;
|
|
|
validateProgram(program: WebGLProgram): void;
|
|
|
vertexAttrib1f(index: GLuint, x: GLfloat): void;
|
|
|
vertexAttrib1fv(index: GLuint, values: Float32List): void;
|
|
|
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
|
|
|
vertexAttrib2fv(index: GLuint, values: Float32List): void;
|
|
|
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
|
|
|
vertexAttrib3fv(index: GLuint, values: Float32List): void;
|
|
|
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
|
|
|
vertexAttrib4fv(index: GLuint, values: Float32List): void;
|
|
|
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
|
|
|
viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
|
readonly ACTIVE_ATTRIBUTES: GLenum;
|
|
|
readonly ACTIVE_TEXTURE: GLenum;
|
|
|
readonly ACTIVE_UNIFORMS: GLenum;
|
|
|
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
|
|
|
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
|
|
|
readonly ALPHA: GLenum;
|
|
|
readonly ALPHA_BITS: GLenum;
|
|
|
readonly ALWAYS: GLenum;
|
|
|
readonly ARRAY_BUFFER: GLenum;
|
|
|
readonly ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly ATTACHED_SHADERS: GLenum;
|
|
|
readonly BACK: GLenum;
|
|
|
readonly BLEND: GLenum;
|
|
|
readonly BLEND_COLOR: GLenum;
|
|
|
readonly BLEND_DST_ALPHA: GLenum;
|
|
|
readonly BLEND_DST_RGB: GLenum;
|
|
|
readonly BLEND_EQUATION: GLenum;
|
|
|
readonly BLEND_EQUATION_ALPHA: GLenum;
|
|
|
readonly BLEND_EQUATION_RGB: GLenum;
|
|
|
readonly BLEND_SRC_ALPHA: GLenum;
|
|
|
readonly BLEND_SRC_RGB: GLenum;
|
|
|
readonly BLUE_BITS: GLenum;
|
|
|
readonly BOOL: GLenum;
|
|
|
readonly BOOL_VEC2: GLenum;
|
|
|
readonly BOOL_VEC3: GLenum;
|
|
|
readonly BOOL_VEC4: GLenum;
|
|
|
readonly BROWSER_DEFAULT_WEBGL: GLenum;
|
|
|
readonly BUFFER_SIZE: GLenum;
|
|
|
readonly BUFFER_USAGE: GLenum;
|
|
|
readonly BYTE: GLenum;
|
|
|
readonly CCW: GLenum;
|
|
|
readonly CLAMP_TO_EDGE: GLenum;
|
|
|
readonly COLOR_ATTACHMENT0: GLenum;
|
|
|
readonly COLOR_BUFFER_BIT: GLenum;
|
|
|
readonly COLOR_CLEAR_VALUE: GLenum;
|
|
|
readonly COLOR_WRITEMASK: GLenum;
|
|
|
readonly COMPILE_STATUS: GLenum;
|
|
|
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
|
|
|
readonly CONSTANT_ALPHA: GLenum;
|
|
|
readonly CONSTANT_COLOR: GLenum;
|
|
|
readonly CONTEXT_LOST_WEBGL: GLenum;
|
|
|
readonly CULL_FACE: GLenum;
|
|
|
readonly CULL_FACE_MODE: GLenum;
|
|
|
readonly CURRENT_PROGRAM: GLenum;
|
|
|
readonly CURRENT_VERTEX_ATTRIB: GLenum;
|
|
|
readonly CW: GLenum;
|
|
|
readonly DECR: GLenum;
|
|
|
readonly DECR_WRAP: GLenum;
|
|
|
readonly DELETE_STATUS: GLenum;
|
|
|
readonly DEPTH_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_BITS: GLenum;
|
|
|
readonly DEPTH_BUFFER_BIT: GLenum;
|
|
|
readonly DEPTH_CLEAR_VALUE: GLenum;
|
|
|
readonly DEPTH_COMPONENT: GLenum;
|
|
|
readonly DEPTH_COMPONENT16: GLenum;
|
|
|
readonly DEPTH_FUNC: GLenum;
|
|
|
readonly DEPTH_RANGE: GLenum;
|
|
|
readonly DEPTH_STENCIL: GLenum;
|
|
|
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly DEPTH_TEST: GLenum;
|
|
|
readonly DEPTH_WRITEMASK: GLenum;
|
|
|
readonly DITHER: GLenum;
|
|
|
readonly DONT_CARE: GLenum;
|
|
|
readonly DST_ALPHA: GLenum;
|
|
|
readonly DST_COLOR: GLenum;
|
|
|
readonly DYNAMIC_DRAW: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER: GLenum;
|
|
|
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly EQUAL: GLenum;
|
|
|
readonly FASTEST: GLenum;
|
|
|
readonly FLOAT: GLenum;
|
|
|
readonly FLOAT_MAT2: GLenum;
|
|
|
readonly FLOAT_MAT3: GLenum;
|
|
|
readonly FLOAT_MAT4: GLenum;
|
|
|
readonly FLOAT_VEC2: GLenum;
|
|
|
readonly FLOAT_VEC3: GLenum;
|
|
|
readonly FLOAT_VEC4: GLenum;
|
|
|
readonly FRAGMENT_SHADER: GLenum;
|
|
|
readonly FRAMEBUFFER: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
|
|
|
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
|
|
|
readonly FRAMEBUFFER_BINDING: GLenum;
|
|
|
readonly FRAMEBUFFER_COMPLETE: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
|
|
|
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
|
|
|
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
|
|
|
readonly FRONT: GLenum;
|
|
|
readonly FRONT_AND_BACK: GLenum;
|
|
|
readonly FRONT_FACE: GLenum;
|
|
|
readonly FUNC_ADD: GLenum;
|
|
|
readonly FUNC_REVERSE_SUBTRACT: GLenum;
|
|
|
readonly FUNC_SUBTRACT: GLenum;
|
|
|
readonly GENERATE_MIPMAP_HINT: GLenum;
|
|
|
readonly GEQUAL: GLenum;
|
|
|
readonly GREATER: GLenum;
|
|
|
readonly GREEN_BITS: GLenum;
|
|
|
readonly HIGH_FLOAT: GLenum;
|
|
|
readonly HIGH_INT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
|
|
|
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
|
|
|
readonly INCR: GLenum;
|
|
|
readonly INCR_WRAP: GLenum;
|
|
|
readonly INT: GLenum;
|
|
|
readonly INT_VEC2: GLenum;
|
|
|
readonly INT_VEC3: GLenum;
|
|
|
readonly INT_VEC4: GLenum;
|
|
|
readonly INVALID_ENUM: GLenum;
|
|
|
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
|
|
|
readonly INVALID_OPERATION: GLenum;
|
|
|
readonly INVALID_VALUE: GLenum;
|
|
|
readonly INVERT: GLenum;
|
|
|
readonly KEEP: GLenum;
|
|
|
readonly LEQUAL: GLenum;
|
|
|
readonly LESS: GLenum;
|
|
|
readonly LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_LINEAR: GLenum;
|
|
|
readonly LINEAR_MIPMAP_NEAREST: GLenum;
|
|
|
readonly LINES: GLenum;
|
|
|
readonly LINE_LOOP: GLenum;
|
|
|
readonly LINE_STRIP: GLenum;
|
|
|
readonly LINE_WIDTH: GLenum;
|
|
|
readonly LINK_STATUS: GLenum;
|
|
|
readonly LOW_FLOAT: GLenum;
|
|
|
readonly LOW_INT: GLenum;
|
|
|
readonly LUMINANCE: GLenum;
|
|
|
readonly LUMINANCE_ALPHA: GLenum;
|
|
|
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_RENDERBUFFER_SIZE: GLenum;
|
|
|
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_TEXTURE_SIZE: GLenum;
|
|
|
readonly MAX_VARYING_VECTORS: GLenum;
|
|
|
readonly MAX_VERTEX_ATTRIBS: GLenum;
|
|
|
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
|
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
|
|
|
readonly MAX_VIEWPORT_DIMS: GLenum;
|
|
|
readonly MEDIUM_FLOAT: GLenum;
|
|
|
readonly MEDIUM_INT: GLenum;
|
|
|
readonly MIRRORED_REPEAT: GLenum;
|
|
|
readonly NEAREST: GLenum;
|
|
|
readonly NEAREST_MIPMAP_LINEAR: GLenum;
|
|
|
readonly NEAREST_MIPMAP_NEAREST: GLenum;
|
|
|
readonly NEVER: GLenum;
|
|
|
readonly NICEST: GLenum;
|
|
|
readonly NONE: GLenum;
|
|
|
readonly NOTEQUAL: GLenum;
|
|
|
readonly NO_ERROR: GLenum;
|
|
|
readonly ONE: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_DST_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_DST_COLOR: GLenum;
|
|
|
readonly ONE_MINUS_SRC_ALPHA: GLenum;
|
|
|
readonly ONE_MINUS_SRC_COLOR: GLenum;
|
|
|
readonly OUT_OF_MEMORY: GLenum;
|
|
|
readonly PACK_ALIGNMENT: GLenum;
|
|
|
readonly POINTS: GLenum;
|
|
|
readonly POLYGON_OFFSET_FACTOR: GLenum;
|
|
|
readonly POLYGON_OFFSET_FILL: GLenum;
|
|
|
readonly POLYGON_OFFSET_UNITS: GLenum;
|
|
|
readonly RED_BITS: GLenum;
|
|
|
readonly RENDERBUFFER: GLenum;
|
|
|
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_BINDING: GLenum;
|
|
|
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_HEIGHT: GLenum;
|
|
|
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
|
|
|
readonly RENDERBUFFER_RED_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
|
|
|
readonly RENDERBUFFER_WIDTH: GLenum;
|
|
|
readonly RENDERER: GLenum;
|
|
|
readonly REPEAT: GLenum;
|
|
|
readonly REPLACE: GLenum;
|
|
|
readonly RGB: GLenum;
|
|
|
readonly RGB565: GLenum;
|
|
|
readonly RGB5_A1: GLenum;
|
|
|
readonly RGBA: GLenum;
|
|
|
readonly RGBA4: GLenum;
|
|
|
readonly SAMPLER_2D: GLenum;
|
|
|
readonly SAMPLER_CUBE: GLenum;
|
|
|
readonly SAMPLES: GLenum;
|
|
|
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_BUFFERS: GLenum;
|
|
|
readonly SAMPLE_COVERAGE: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_INVERT: GLenum;
|
|
|
readonly SAMPLE_COVERAGE_VALUE: GLenum;
|
|
|
readonly SCISSOR_BOX: GLenum;
|
|
|
readonly SCISSOR_TEST: GLenum;
|
|
|
readonly SHADER_TYPE: GLenum;
|
|
|
readonly SHADING_LANGUAGE_VERSION: GLenum;
|
|
|
readonly SHORT: GLenum;
|
|
|
readonly SRC_ALPHA: GLenum;
|
|
|
readonly SRC_ALPHA_SATURATE: GLenum;
|
|
|
readonly SRC_COLOR: GLenum;
|
|
|
readonly STATIC_DRAW: GLenum;
|
|
|
readonly STENCIL_ATTACHMENT: GLenum;
|
|
|
readonly STENCIL_BACK_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_FUNC: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_BACK_REF: GLenum;
|
|
|
readonly STENCIL_BACK_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_BACK_WRITEMASK: GLenum;
|
|
|
readonly STENCIL_BITS: GLenum;
|
|
|
readonly STENCIL_BUFFER_BIT: GLenum;
|
|
|
readonly STENCIL_CLEAR_VALUE: GLenum;
|
|
|
readonly STENCIL_FAIL: GLenum;
|
|
|
readonly STENCIL_FUNC: GLenum;
|
|
|
readonly STENCIL_INDEX8: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
|
|
|
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
|
|
|
readonly STENCIL_REF: GLenum;
|
|
|
readonly STENCIL_TEST: GLenum;
|
|
|
readonly STENCIL_VALUE_MASK: GLenum;
|
|
|
readonly STENCIL_WRITEMASK: GLenum;
|
|
|
readonly STREAM_DRAW: GLenum;
|
|
|
readonly SUBPIXEL_BITS: GLenum;
|
|
|
readonly TEXTURE: GLenum;
|
|
|
readonly TEXTURE0: GLenum;
|
|
|
readonly TEXTURE1: GLenum;
|
|
|
readonly TEXTURE10: GLenum;
|
|
|
readonly TEXTURE11: GLenum;
|
|
|
readonly TEXTURE12: GLenum;
|
|
|
readonly TEXTURE13: GLenum;
|
|
|
readonly TEXTURE14: GLenum;
|
|
|
readonly TEXTURE15: GLenum;
|
|
|
readonly TEXTURE16: GLenum;
|
|
|
readonly TEXTURE17: GLenum;
|
|
|
readonly TEXTURE18: GLenum;
|
|
|
readonly TEXTURE19: GLenum;
|
|
|
readonly TEXTURE2: GLenum;
|
|
|
readonly TEXTURE20: GLenum;
|
|
|
readonly TEXTURE21: GLenum;
|
|
|
readonly TEXTURE22: GLenum;
|
|
|
readonly TEXTURE23: GLenum;
|
|
|
readonly TEXTURE24: GLenum;
|
|
|
readonly TEXTURE25: GLenum;
|
|
|
readonly TEXTURE26: GLenum;
|
|
|
readonly TEXTURE27: GLenum;
|
|
|
readonly TEXTURE28: GLenum;
|
|
|
readonly TEXTURE29: GLenum;
|
|
|
readonly TEXTURE3: GLenum;
|
|
|
readonly TEXTURE30: GLenum;
|
|
|
readonly TEXTURE31: GLenum;
|
|
|
readonly TEXTURE4: GLenum;
|
|
|
readonly TEXTURE5: GLenum;
|
|
|
readonly TEXTURE6: GLenum;
|
|
|
readonly TEXTURE7: GLenum;
|
|
|
readonly TEXTURE8: GLenum;
|
|
|
readonly TEXTURE9: GLenum;
|
|
|
readonly TEXTURE_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_2D: GLenum;
|
|
|
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
|
|
|
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
|
|
|
readonly TEXTURE_MAG_FILTER: GLenum;
|
|
|
readonly TEXTURE_MIN_FILTER: GLenum;
|
|
|
readonly TEXTURE_WRAP_S: GLenum;
|
|
|
readonly TEXTURE_WRAP_T: GLenum;
|
|
|
readonly TRIANGLES: GLenum;
|
|
|
readonly TRIANGLE_FAN: GLenum;
|
|
|
readonly TRIANGLE_STRIP: GLenum;
|
|
|
readonly UNPACK_ALIGNMENT: GLenum;
|
|
|
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
|
|
|
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
|
|
|
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
|
|
|
readonly UNSIGNED_BYTE: GLenum;
|
|
|
readonly UNSIGNED_INT: GLenum;
|
|
|
readonly UNSIGNED_SHORT: GLenum;
|
|
|
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
|
|
|
readonly UNSIGNED_SHORT_5_6_5: GLenum;
|
|
|
readonly VALIDATE_STATUS: GLenum;
|
|
|
readonly VENDOR: GLenum;
|
|
|
readonly VERSION: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
|
|
|
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
|
|
|
readonly VERTEX_SHADER: GLenum;
|
|
|
readonly VIEWPORT: GLenum;
|
|
|
readonly ZERO: GLenum;
|
|
|
}
|
|
|
|
|
|
interface WebGLRenderingContextOverloads {
|
|
|
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
|
|
|
bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
|
|
|
bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
|
|
|
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
|
|
|
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
|
|
|
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
|
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
|
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
|
|
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
|
|
|
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
|
|
|
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
|
|
|
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
|
|
|
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
|
|
|
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
|
|
|
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
|
|
|
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
|
|
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
|
|
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
|
|
|
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
|
|
|
}
|
|
|
|
|
|
interface WebGLSampler extends WebGLObject {
|
|
|
}
|
|
|
|
|
|
declare var WebGLSampler: {
|
|
|
prototype: WebGLSampler;
|
|
|
new(): WebGLSampler;
|
|
|
};
|
|
|
|
|
|
/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
|
|
|
interface WebGLShader extends WebGLObject {
|
|
|
}
|
|
|
|
|
|
declare var WebGLShader: {
|
|
|
prototype: WebGLShader;
|
|
|
new(): WebGLShader;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
|
|
|
interface WebGLShaderPrecisionFormat {
|
|
|
readonly precision: GLint;
|
|
|
readonly rangeMax: GLint;
|
|
|
readonly rangeMin: GLint;
|
|
|
}
|
|
|
|
|
|
declare var WebGLShaderPrecisionFormat: {
|
|
|
prototype: WebGLShaderPrecisionFormat;
|
|
|
new(): WebGLShaderPrecisionFormat;
|
|
|
};
|
|
|
|
|
|
interface WebGLSync extends WebGLObject {
|
|
|
}
|
|
|
|
|
|
declare var WebGLSync: {
|
|
|
prototype: WebGLSync;
|
|
|
new(): WebGLSync;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
|
|
|
interface WebGLTexture extends WebGLObject {
|
|
|
}
|
|
|
|
|
|
declare var WebGLTexture: {
|
|
|
prototype: WebGLTexture;
|
|
|
new(): WebGLTexture;
|
|
|
};
|
|
|
|
|
|
interface WebGLTransformFeedback extends WebGLObject {
|
|
|
}
|
|
|
|
|
|
declare var WebGLTransformFeedback: {
|
|
|
prototype: WebGLTransformFeedback;
|
|
|
new(): WebGLTransformFeedback;
|
|
|
};
|
|
|
|
|
|
/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
|
|
|
interface WebGLUniformLocation {
|
|
|
}
|
|
|
|
|
|
declare var WebGLUniformLocation: {
|
|
|
prototype: WebGLUniformLocation;
|
|
|
new(): WebGLUniformLocation;
|
|
|
};
|
|
|
|
|
|
interface WebGLVertexArrayObject extends WebGLObject {
|
|
|
}
|
|
|
|
|
|
declare var WebGLVertexArrayObject: {
|
|
|
prototype: WebGLVertexArrayObject;
|
|
|
new(): WebGLVertexArrayObject;
|
|
|
};
|
|
|
|
|
|
interface WebGLVertexArrayObjectOES extends WebGLObject {
|
|
|
}
|
|
|
|
|
|
interface WebKitPoint {
|
|
|
x: number;
|
|
|
y: number;
|
|
|
}
|
|
|
|
|
|
declare var WebKitPoint: {
|
|
|
prototype: WebKitPoint;
|
|
|
new(x?: number, y?: number): WebKitPoint;
|
|
|
};
|
|
|
|
|
|
interface WebSocketEventMap {
|
|
|
"close": CloseEvent;
|
|
|
"error": Event;
|
|
|
"message": MessageEvent;
|
|
|
"open": Event;
|
|
|
}
|
|
|
|
|
|
/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
|
|
|
interface WebSocket extends EventTarget {
|
|
|
binaryType: BinaryType;
|
|
|
readonly bufferedAmount: number;
|
|
|
readonly extensions: string;
|
|
|
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
|
|
|
onerror: ((this: WebSocket, ev: Event) => any) | null;
|
|
|
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
|
|
|
onopen: ((this: WebSocket, ev: Event) => any) | null;
|
|
|
readonly protocol: string;
|
|
|
readonly readyState: number;
|
|
|
readonly url: string;
|
|
|
close(code?: number, reason?: string): void;
|
|
|
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
|
readonly CLOSED: number;
|
|
|
readonly CLOSING: number;
|
|
|
readonly CONNECTING: number;
|
|
|
readonly OPEN: number;
|
|
|
addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var WebSocket: {
|
|
|
prototype: WebSocket;
|
|
|
new(url: string, protocols?: string | string[]): WebSocket;
|
|
|
readonly CLOSED: number;
|
|
|
readonly CLOSING: number;
|
|
|
readonly CONNECTING: number;
|
|
|
readonly OPEN: number;
|
|
|
};
|
|
|
|
|
|
/** Events that occur due to the user moving a mouse wheel or similar input device. */
|
|
|
interface WheelEvent extends MouseEvent {
|
|
|
readonly deltaMode: number;
|
|
|
readonly deltaX: number;
|
|
|
readonly deltaY: number;
|
|
|
readonly deltaZ: number;
|
|
|
readonly DOM_DELTA_LINE: number;
|
|
|
readonly DOM_DELTA_PAGE: number;
|
|
|
readonly DOM_DELTA_PIXEL: number;
|
|
|
}
|
|
|
|
|
|
declare var WheelEvent: {
|
|
|
prototype: WheelEvent;
|
|
|
new(type: string, eventInitDict?: WheelEventInit): WheelEvent;
|
|
|
readonly DOM_DELTA_LINE: number;
|
|
|
readonly DOM_DELTA_PAGE: number;
|
|
|
readonly DOM_DELTA_PIXEL: number;
|
|
|
};
|
|
|
|
|
|
interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
|
|
|
"abort": UIEvent;
|
|
|
"afterprint": Event;
|
|
|
"beforeprint": Event;
|
|
|
"beforeunload": BeforeUnloadEvent;
|
|
|
"blur": FocusEvent;
|
|
|
"canplay": Event;
|
|
|
"canplaythrough": Event;
|
|
|
"change": Event;
|
|
|
"click": MouseEvent;
|
|
|
"compassneedscalibration": Event;
|
|
|
"contextmenu": MouseEvent;
|
|
|
"dblclick": MouseEvent;
|
|
|
"devicelight": DeviceLightEvent;
|
|
|
"devicemotion": DeviceMotionEvent;
|
|
|
"deviceorientation": DeviceOrientationEvent;
|
|
|
"deviceorientationabsolute": DeviceOrientationEvent;
|
|
|
"drag": DragEvent;
|
|
|
"dragend": DragEvent;
|
|
|
"dragenter": DragEvent;
|
|
|
"dragleave": DragEvent;
|
|
|
"dragover": DragEvent;
|
|
|
"dragstart": DragEvent;
|
|
|
"drop": DragEvent;
|
|
|
"durationchange": Event;
|
|
|
"emptied": Event;
|
|
|
"ended": Event;
|
|
|
"error": ErrorEvent;
|
|
|
"focus": FocusEvent;
|
|
|
"hashchange": HashChangeEvent;
|
|
|
"input": Event;
|
|
|
"invalid": Event;
|
|
|
"keydown": KeyboardEvent;
|
|
|
"keypress": KeyboardEvent;
|
|
|
"keyup": KeyboardEvent;
|
|
|
"load": Event;
|
|
|
"loadeddata": Event;
|
|
|
"loadedmetadata": Event;
|
|
|
"loadstart": Event;
|
|
|
"message": MessageEvent;
|
|
|
"mousedown": MouseEvent;
|
|
|
"mouseenter": MouseEvent;
|
|
|
"mouseleave": MouseEvent;
|
|
|
"mousemove": MouseEvent;
|
|
|
"mouseout": MouseEvent;
|
|
|
"mouseover": MouseEvent;
|
|
|
"mouseup": MouseEvent;
|
|
|
"mousewheel": Event;
|
|
|
"MSGestureChange": Event;
|
|
|
"MSGestureDoubleTap": Event;
|
|
|
"MSGestureEnd": Event;
|
|
|
"MSGestureHold": Event;
|
|
|
"MSGestureStart": Event;
|
|
|
"MSGestureTap": Event;
|
|
|
"MSInertiaStart": Event;
|
|
|
"MSPointerCancel": Event;
|
|
|
"MSPointerDown": Event;
|
|
|
"MSPointerEnter": Event;
|
|
|
"MSPointerLeave": Event;
|
|
|
"MSPointerMove": Event;
|
|
|
"MSPointerOut": Event;
|
|
|
"MSPointerOver": Event;
|
|
|
"MSPointerUp": Event;
|
|
|
"offline": Event;
|
|
|
"online": Event;
|
|
|
"orientationchange": Event;
|
|
|
"pagehide": PageTransitionEvent;
|
|
|
"pageshow": PageTransitionEvent;
|
|
|
"pause": Event;
|
|
|
"play": Event;
|
|
|
"playing": Event;
|
|
|
"popstate": PopStateEvent;
|
|
|
"progress": ProgressEvent<Window>;
|
|
|
"ratechange": Event;
|
|
|
"readystatechange": ProgressEvent<Window>;
|
|
|
"reset": Event;
|
|
|
"resize": UIEvent;
|
|
|
"scroll": Event;
|
|
|
"seeked": Event;
|
|
|
"seeking": Event;
|
|
|
"select": Event;
|
|
|
"stalled": Event;
|
|
|
"storage": StorageEvent;
|
|
|
"submit": Event;
|
|
|
"suspend": Event;
|
|
|
"timeupdate": Event;
|
|
|
"unload": Event;
|
|
|
"volumechange": Event;
|
|
|
"vrdisplayactivate": Event;
|
|
|
"vrdisplayblur": Event;
|
|
|
"vrdisplayconnect": Event;
|
|
|
"vrdisplaydeactivate": Event;
|
|
|
"vrdisplaydisconnect": Event;
|
|
|
"vrdisplayfocus": Event;
|
|
|
"vrdisplaypointerrestricted": Event;
|
|
|
"vrdisplaypointerunrestricted": Event;
|
|
|
"vrdisplaypresentchange": Event;
|
|
|
"waiting": Event;
|
|
|
}
|
|
|
|
|
|
/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */
|
|
|
interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, IDBEnvironment, WindowBase64, WindowConsole, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage, WindowTimers {
|
|
|
readonly applicationCache: ApplicationCache;
|
|
|
readonly caches: CacheStorage;
|
|
|
readonly clientInformation: Navigator;
|
|
|
readonly closed: boolean;
|
|
|
readonly crypto: Crypto;
|
|
|
customElements: CustomElementRegistry;
|
|
|
defaultStatus: string;
|
|
|
readonly devicePixelRatio: number;
|
|
|
readonly doNotTrack: string;
|
|
|
readonly document: Document;
|
|
|
/** @deprecated */
|
|
|
readonly event: Event | undefined;
|
|
|
/** @deprecated */
|
|
|
readonly external: External;
|
|
|
readonly frameElement: Element;
|
|
|
readonly frames: Window;
|
|
|
readonly history: History;
|
|
|
readonly innerHeight: number;
|
|
|
readonly innerWidth: number;
|
|
|
readonly isSecureContext: boolean;
|
|
|
readonly length: number;
|
|
|
location: Location;
|
|
|
readonly locationbar: BarProp;
|
|
|
readonly menubar: BarProp;
|
|
|
readonly msContentScript: ExtensionScriptApis;
|
|
|
name: string;
|
|
|
readonly navigator: Navigator;
|
|
|
offscreenBuffering: string | boolean;
|
|
|
oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;
|
|
|
ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;
|
|
|
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
|
|
|
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
|
|
|
ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
|
|
|
onmousewheel: ((this: Window, ev: Event) => any) | null;
|
|
|
onmsgesturechange: ((this: Window, ev: Event) => any) | null;
|
|
|
onmsgesturedoubletap: ((this: Window, ev: Event) => any) | null;
|
|
|
onmsgestureend: ((this: Window, ev: Event) => any) | null;
|
|
|
onmsgesturehold: ((this: Window, ev: Event) => any) | null;
|
|
|
onmsgesturestart: ((this: Window, ev: Event) => any) | null;
|
|
|
onmsgesturetap: ((this: Window, ev: Event) => any) | null;
|
|
|
onmsinertiastart: ((this: Window, ev: Event) => any) | null;
|
|
|
onmspointercancel: ((this: Window, ev: Event) => any) | null;
|
|
|
onmspointerdown: ((this: Window, ev: Event) => any) | null;
|
|
|
onmspointerenter: ((this: Window, ev: Event) => any) | null;
|
|
|
onmspointerleave: ((this: Window, ev: Event) => any) | null;
|
|
|
onmspointermove: ((this: Window, ev: Event) => any) | null;
|
|
|
onmspointerout: ((this: Window, ev: Event) => any) | null;
|
|
|
onmspointerover: ((this: Window, ev: Event) => any) | null;
|
|
|
onmspointerup: ((this: Window, ev: Event) => any) | null;
|
|
|
/** @deprecated */
|
|
|
onorientationchange: ((this: Window, ev: Event) => any) | null;
|
|
|
onreadystatechange: ((this: Window, ev: ProgressEvent<Window>) => any) | null;
|
|
|
onvrdisplayactivate: ((this: Window, ev: Event) => any) | null;
|
|
|
onvrdisplayblur: ((this: Window, ev: Event) => any) | null;
|
|
|
onvrdisplayconnect: ((this: Window, ev: Event) => any) | null;
|
|
|
onvrdisplaydeactivate: ((this: Window, ev: Event) => any) | null;
|
|
|
onvrdisplaydisconnect: ((this: Window, ev: Event) => any) | null;
|
|
|
onvrdisplayfocus: ((this: Window, ev: Event) => any) | null;
|
|
|
onvrdisplaypointerrestricted: ((this: Window, ev: Event) => any) | null;
|
|
|
onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) | null;
|
|
|
onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;
|
|
|
opener: any;
|
|
|
/** @deprecated */
|
|
|
readonly orientation: string | number;
|
|
|
readonly outerHeight: number;
|
|
|
readonly outerWidth: number;
|
|
|
readonly pageXOffset: number;
|
|
|
readonly pageYOffset: number;
|
|
|
readonly parent: Window;
|
|
|
readonly performance: Performance;
|
|
|
readonly personalbar: BarProp;
|
|
|
readonly screen: Screen;
|
|
|
readonly screenLeft: number;
|
|
|
readonly screenTop: number;
|
|
|
readonly screenX: number;
|
|
|
readonly screenY: number;
|
|
|
readonly scrollX: number;
|
|
|
readonly scrollY: number;
|
|
|
readonly scrollbars: BarProp;
|
|
|
readonly self: Window & typeof globalThis;
|
|
|
readonly speechSynthesis: SpeechSynthesis;
|
|
|
status: string;
|
|
|
readonly statusbar: BarProp;
|
|
|
readonly styleMedia: StyleMedia;
|
|
|
readonly toolbar: BarProp;
|
|
|
readonly top: Window;
|
|
|
readonly window: Window & typeof globalThis;
|
|
|
alert(message?: any): void;
|
|
|
blur(): void;
|
|
|
/** @deprecated */
|
|
|
captureEvents(): void;
|
|
|
close(): void;
|
|
|
confirm(message?: string): boolean;
|
|
|
departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void;
|
|
|
focus(): void;
|
|
|
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
|
|
|
getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList;
|
|
|
getSelection(): Selection | null;
|
|
|
matchMedia(query: string): MediaQueryList;
|
|
|
moveBy(x: number, y: number): void;
|
|
|
moveTo(x: number, y: number): void;
|
|
|
msWriteProfilerMark(profilerMarkName: string): void;
|
|
|
open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;
|
|
|
postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
|
|
|
print(): void;
|
|
|
prompt(message?: string, _default?: string): string | null;
|
|
|
/** @deprecated */
|
|
|
releaseEvents(): void;
|
|
|
resizeBy(x: number, y: number): void;
|
|
|
resizeTo(x: number, y: number): void;
|
|
|
scroll(options?: ScrollToOptions): void;
|
|
|
scroll(x: number, y: number): void;
|
|
|
scrollBy(options?: ScrollToOptions): void;
|
|
|
scrollBy(x: number, y: number): void;
|
|
|
scrollTo(options?: ScrollToOptions): void;
|
|
|
scrollTo(x: number, y: number): void;
|
|
|
stop(): void;
|
|
|
webkitCancelAnimationFrame(handle: number): void;
|
|
|
webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
|
|
|
webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
|
|
|
webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
|
|
|
addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
[index: number]: Window;
|
|
|
}
|
|
|
|
|
|
declare var Window: {
|
|
|
prototype: Window;
|
|
|
new(): Window;
|
|
|
};
|
|
|
|
|
|
interface WindowBase64 {
|
|
|
atob(encodedString: string): string;
|
|
|
btoa(rawString: string): string;
|
|
|
}
|
|
|
|
|
|
interface WindowConsole {
|
|
|
readonly console: Console;
|
|
|
}
|
|
|
|
|
|
interface WindowEventHandlersEventMap {
|
|
|
"afterprint": Event;
|
|
|
"beforeprint": Event;
|
|
|
"beforeunload": BeforeUnloadEvent;
|
|
|
"hashchange": HashChangeEvent;
|
|
|
"languagechange": Event;
|
|
|
"message": MessageEvent;
|
|
|
"messageerror": MessageEvent;
|
|
|
"offline": Event;
|
|
|
"online": Event;
|
|
|
"pagehide": PageTransitionEvent;
|
|
|
"pageshow": PageTransitionEvent;
|
|
|
"popstate": PopStateEvent;
|
|
|
"rejectionhandled": Event;
|
|
|
"storage": StorageEvent;
|
|
|
"unhandledrejection": PromiseRejectionEvent;
|
|
|
"unload": Event;
|
|
|
}
|
|
|
|
|
|
interface WindowEventHandlers {
|
|
|
onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
|
onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
|
onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;
|
|
|
onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;
|
|
|
onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
|
onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
|
|
|
onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
|
|
|
onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
|
ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
|
onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
|
|
|
onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
|
|
|
onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
|
|
|
onrejectionhandled: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
|
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
|
|
|
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
|
|
|
onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
|
|
|
addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
interface WindowLocalStorage {
|
|
|
readonly localStorage: Storage;
|
|
|
}
|
|
|
|
|
|
interface WindowOrWorkerGlobalScope {
|
|
|
readonly caches: CacheStorage;
|
|
|
readonly crypto: Crypto;
|
|
|
readonly indexedDB: IDBFactory;
|
|
|
readonly origin: string;
|
|
|
readonly performance: Performance;
|
|
|
atob(data: string): string;
|
|
|
btoa(data: string): string;
|
|
|
clearInterval(handle?: number): void;
|
|
|
clearTimeout(handle?: number): void;
|
|
|
createImageBitmap(image: ImageBitmapSource): Promise<ImageBitmap>;
|
|
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number): Promise<ImageBitmap>;
|
|
|
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
|
queueMicrotask(callback: Function): void;
|
|
|
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
|
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
|
}
|
|
|
|
|
|
interface WindowSessionStorage {
|
|
|
readonly sessionStorage: Storage;
|
|
|
}
|
|
|
|
|
|
interface WindowTimers {
|
|
|
}
|
|
|
|
|
|
interface WorkerEventMap extends AbstractWorkerEventMap {
|
|
|
"message": MessageEvent;
|
|
|
}
|
|
|
|
|
|
/** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */
|
|
|
interface Worker extends EventTarget, AbstractWorker {
|
|
|
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
|
|
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
|
postMessage(message: any, options?: PostMessageOptions): void;
|
|
|
terminate(): void;
|
|
|
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var Worker: {
|
|
|
prototype: Worker;
|
|
|
new(stringUrl: string | URL, options?: WorkerOptions): Worker;
|
|
|
};
|
|
|
|
|
|
interface Worklet {
|
|
|
addModule(moduleURL: string, options?: WorkletOptions): Promise<void>;
|
|
|
}
|
|
|
|
|
|
declare var Worklet: {
|
|
|
prototype: Worklet;
|
|
|
new(): Worklet;
|
|
|
};
|
|
|
|
|
|
/** This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
|
|
|
interface WritableStream<W = any> {
|
|
|
readonly locked: boolean;
|
|
|
abort(reason?: any): Promise<void>;
|
|
|
getWriter(): WritableStreamDefaultWriter<W>;
|
|
|
}
|
|
|
|
|
|
declare var WritableStream: {
|
|
|
prototype: WritableStream;
|
|
|
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
|
|
|
};
|
|
|
|
|
|
/** This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
|
|
|
interface WritableStreamDefaultController {
|
|
|
error(error?: any): void;
|
|
|
}
|
|
|
|
|
|
/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */
|
|
|
interface WritableStreamDefaultWriter<W = any> {
|
|
|
readonly closed: Promise<void>;
|
|
|
readonly desiredSize: number | null;
|
|
|
readonly ready: Promise<void>;
|
|
|
abort(reason?: any): Promise<void>;
|
|
|
close(): Promise<void>;
|
|
|
releaseLock(): void;
|
|
|
write(chunk: W): Promise<void>;
|
|
|
}
|
|
|
|
|
|
/** An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents. */
|
|
|
interface XMLDocument extends Document {
|
|
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var XMLDocument: {
|
|
|
prototype: XMLDocument;
|
|
|
new(): XMLDocument;
|
|
|
};
|
|
|
|
|
|
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
|
|
|
"readystatechange": Event;
|
|
|
}
|
|
|
|
|
|
/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
|
|
|
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
|
|
|
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Returns client's state.
|
|
|
*/
|
|
|
readonly readyState: number;
|
|
|
/**
|
|
|
* Returns the response's body.
|
|
|
*/
|
|
|
readonly response: any;
|
|
|
/**
|
|
|
* Returns the text response.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
|
|
|
*/
|
|
|
readonly responseText: string;
|
|
|
/**
|
|
|
* Returns the response type.
|
|
|
*
|
|
|
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
|
|
|
*
|
|
|
* When set: setting to "document" is ignored if current global object is not a Window object.
|
|
|
*
|
|
|
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
|
|
|
*
|
|
|
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
|
|
|
*/
|
|
|
responseType: XMLHttpRequestResponseType;
|
|
|
readonly responseURL: string;
|
|
|
/**
|
|
|
* Returns the document response.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".
|
|
|
*/
|
|
|
readonly responseXML: Document | null;
|
|
|
readonly status: number;
|
|
|
readonly statusText: string;
|
|
|
/**
|
|
|
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and the synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
|
|
|
*
|
|
|
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
|
|
|
*/
|
|
|
timeout: number;
|
|
|
/**
|
|
|
* Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
|
|
|
*/
|
|
|
readonly upload: XMLHttpRequestUpload;
|
|
|
/**
|
|
|
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
|
|
|
*
|
|
|
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
|
|
|
*/
|
|
|
withCredentials: boolean;
|
|
|
/**
|
|
|
* Cancels any network activity.
|
|
|
*/
|
|
|
abort(): void;
|
|
|
getAllResponseHeaders(): string;
|
|
|
getResponseHeader(name: string): string | null;
|
|
|
/**
|
|
|
* Sets the request method, request URL, and synchronous flag.
|
|
|
*
|
|
|
* Throws a "SyntaxError" DOMException if either method is not a valid HTTP method or url cannot be parsed.
|
|
|
*
|
|
|
* Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
|
|
|
*
|
|
|
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
|
|
|
*/
|
|
|
open(method: string, url: string): void;
|
|
|
open(method: string, url: string, async: boolean, username?: string | null, password?: string | null): void;
|
|
|
/**
|
|
|
* Acts as if the \`Content-Type\` header value for response is mime. (It does not actually change the header though.)
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if state is loading or done.
|
|
|
*/
|
|
|
overrideMimeType(mime: string): void;
|
|
|
/**
|
|
|
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
|
|
|
*/
|
|
|
send(body?: Document | BodyInit | null): void;
|
|
|
/**
|
|
|
* Combines a header in author request headers.
|
|
|
*
|
|
|
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
|
|
|
*
|
|
|
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
|
|
|
*/
|
|
|
setRequestHeader(name: string, value: string): void;
|
|
|
readonly DONE: number;
|
|
|
readonly HEADERS_RECEIVED: number;
|
|
|
readonly LOADING: number;
|
|
|
readonly OPENED: number;
|
|
|
readonly UNSENT: number;
|
|
|
addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var XMLHttpRequest: {
|
|
|
prototype: XMLHttpRequest;
|
|
|
new(): XMLHttpRequest;
|
|
|
readonly DONE: number;
|
|
|
readonly HEADERS_RECEIVED: number;
|
|
|
readonly LOADING: number;
|
|
|
readonly OPENED: number;
|
|
|
readonly UNSENT: number;
|
|
|
};
|
|
|
|
|
|
interface XMLHttpRequestEventTargetEventMap {
|
|
|
"abort": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"error": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"load": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"loadend": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"progress": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
"timeout": ProgressEvent<XMLHttpRequestEventTarget>;
|
|
|
}
|
|
|
|
|
|
interface XMLHttpRequestEventTarget extends EventTarget {
|
|
|
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
|
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var XMLHttpRequestEventTarget: {
|
|
|
prototype: XMLHttpRequestEventTarget;
|
|
|
new(): XMLHttpRequestEventTarget;
|
|
|
};
|
|
|
|
|
|
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
|
|
|
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var XMLHttpRequestUpload: {
|
|
|
prototype: XMLHttpRequestUpload;
|
|
|
new(): XMLHttpRequestUpload;
|
|
|
};
|
|
|
|
|
|
/** Provides the serializeToString() method to construct an XML string representing a DOM tree. */
|
|
|
interface XMLSerializer {
|
|
|
serializeToString(root: Node): string;
|
|
|
}
|
|
|
|
|
|
declare var XMLSerializer: {
|
|
|
prototype: XMLSerializer;
|
|
|
new(): XMLSerializer;
|
|
|
};
|
|
|
|
|
|
/** The\xA0XPathEvaluator interface allows to compile and evaluate XPath expressions. */
|
|
|
interface XPathEvaluator extends XPathEvaluatorBase {
|
|
|
}
|
|
|
|
|
|
declare var XPathEvaluator: {
|
|
|
prototype: XPathEvaluator;
|
|
|
new(): XPathEvaluator;
|
|
|
};
|
|
|
|
|
|
interface XPathEvaluatorBase {
|
|
|
createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
|
|
|
createNSResolver(nodeResolver: Node): XPathNSResolver;
|
|
|
evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;
|
|
|
}
|
|
|
|
|
|
/** This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. */
|
|
|
interface XPathExpression {
|
|
|
evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;
|
|
|
}
|
|
|
|
|
|
declare var XPathExpression: {
|
|
|
prototype: XPathExpression;
|
|
|
new(): XPathExpression;
|
|
|
};
|
|
|
|
|
|
/** The results generated by evaluating an XPath expression within the context of a given node. */
|
|
|
interface XPathResult {
|
|
|
readonly booleanValue: boolean;
|
|
|
readonly invalidIteratorState: boolean;
|
|
|
readonly numberValue: number;
|
|
|
readonly resultType: number;
|
|
|
readonly singleNodeValue: Node | null;
|
|
|
readonly snapshotLength: number;
|
|
|
readonly stringValue: string;
|
|
|
iterateNext(): Node | null;
|
|
|
snapshotItem(index: number): Node | null;
|
|
|
readonly ANY_TYPE: number;
|
|
|
readonly ANY_UNORDERED_NODE_TYPE: number;
|
|
|
readonly BOOLEAN_TYPE: number;
|
|
|
readonly FIRST_ORDERED_NODE_TYPE: number;
|
|
|
readonly NUMBER_TYPE: number;
|
|
|
readonly ORDERED_NODE_ITERATOR_TYPE: number;
|
|
|
readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
|
|
|
readonly STRING_TYPE: number;
|
|
|
readonly UNORDERED_NODE_ITERATOR_TYPE: number;
|
|
|
readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
|
|
|
}
|
|
|
|
|
|
declare var XPathResult: {
|
|
|
prototype: XPathResult;
|
|
|
new(): XPathResult;
|
|
|
readonly ANY_TYPE: number;
|
|
|
readonly ANY_UNORDERED_NODE_TYPE: number;
|
|
|
readonly BOOLEAN_TYPE: number;
|
|
|
readonly FIRST_ORDERED_NODE_TYPE: number;
|
|
|
readonly NUMBER_TYPE: number;
|
|
|
readonly ORDERED_NODE_ITERATOR_TYPE: number;
|
|
|
readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
|
|
|
readonly STRING_TYPE: number;
|
|
|
readonly UNORDERED_NODE_ITERATOR_TYPE: number;
|
|
|
readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
|
|
|
};
|
|
|
|
|
|
/** An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents. */
|
|
|
interface XSLTProcessor {
|
|
|
clearParameters(): void;
|
|
|
getParameter(namespaceURI: string, localName: string): any;
|
|
|
importStylesheet(style: Node): void;
|
|
|
removeParameter(namespaceURI: string, localName: string): void;
|
|
|
reset(): void;
|
|
|
setParameter(namespaceURI: string, localName: string, value: any): void;
|
|
|
transformToDocument(source: Node): Document;
|
|
|
transformToFragment(source: Node, document: Document): DocumentFragment;
|
|
|
}
|
|
|
|
|
|
declare var XSLTProcessor: {
|
|
|
prototype: XSLTProcessor;
|
|
|
new(): XSLTProcessor;
|
|
|
};
|
|
|
|
|
|
interface webkitRTCPeerConnection extends RTCPeerConnection {
|
|
|
addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: webkitRTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: webkitRTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
}
|
|
|
|
|
|
declare var webkitRTCPeerConnection: {
|
|
|
prototype: webkitRTCPeerConnection;
|
|
|
new(configuration: RTCConfiguration): webkitRTCPeerConnection;
|
|
|
};
|
|
|
|
|
|
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
|
|
|
|
declare namespace WebAssembly {
|
|
|
interface CompileError {
|
|
|
}
|
|
|
|
|
|
var CompileError: {
|
|
|
prototype: CompileError;
|
|
|
new(): CompileError;
|
|
|
};
|
|
|
|
|
|
interface Global {
|
|
|
value: any;
|
|
|
valueOf(): any;
|
|
|
}
|
|
|
|
|
|
var Global: {
|
|
|
prototype: Global;
|
|
|
new(descriptor: GlobalDescriptor, v?: any): Global;
|
|
|
};
|
|
|
|
|
|
interface Instance {
|
|
|
readonly exports: Exports;
|
|
|
}
|
|
|
|
|
|
var Instance: {
|
|
|
prototype: Instance;
|
|
|
new(module: Module, importObject?: Imports): Instance;
|
|
|
};
|
|
|
|
|
|
interface LinkError {
|
|
|
}
|
|
|
|
|
|
var LinkError: {
|
|
|
prototype: LinkError;
|
|
|
new(): LinkError;
|
|
|
};
|
|
|
|
|
|
interface Memory {
|
|
|
readonly buffer: ArrayBuffer;
|
|
|
grow(delta: number): number;
|
|
|
}
|
|
|
|
|
|
var Memory: {
|
|
|
prototype: Memory;
|
|
|
new(descriptor: MemoryDescriptor): Memory;
|
|
|
};
|
|
|
|
|
|
interface Module {
|
|
|
}
|
|
|
|
|
|
var Module: {
|
|
|
prototype: Module;
|
|
|
new(bytes: BufferSource): Module;
|
|
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
|
};
|
|
|
|
|
|
interface RuntimeError {
|
|
|
}
|
|
|
|
|
|
var RuntimeError: {
|
|
|
prototype: RuntimeError;
|
|
|
new(): RuntimeError;
|
|
|
};
|
|
|
|
|
|
interface Table {
|
|
|
readonly length: number;
|
|
|
get(index: number): Function | null;
|
|
|
grow(delta: number): number;
|
|
|
set(index: number, value: Function | null): void;
|
|
|
}
|
|
|
|
|
|
var Table: {
|
|
|
prototype: Table;
|
|
|
new(descriptor: TableDescriptor): Table;
|
|
|
};
|
|
|
|
|
|
interface GlobalDescriptor {
|
|
|
mutable?: boolean;
|
|
|
value: ValueType;
|
|
|
}
|
|
|
|
|
|
interface MemoryDescriptor {
|
|
|
initial: number;
|
|
|
maximum?: number;
|
|
|
}
|
|
|
|
|
|
interface ModuleExportDescriptor {
|
|
|
kind: ImportExportKind;
|
|
|
name: string;
|
|
|
}
|
|
|
|
|
|
interface ModuleImportDescriptor {
|
|
|
kind: ImportExportKind;
|
|
|
module: string;
|
|
|
name: string;
|
|
|
}
|
|
|
|
|
|
interface TableDescriptor {
|
|
|
element: TableKind;
|
|
|
initial: number;
|
|
|
maximum?: number;
|
|
|
}
|
|
|
|
|
|
interface WebAssemblyInstantiatedSource {
|
|
|
instance: Instance;
|
|
|
module: Module;
|
|
|
}
|
|
|
|
|
|
type ImportExportKind = "function" | "table" | "memory" | "global";
|
|
|
type TableKind = "anyfunc";
|
|
|
type ValueType = "i32" | "i64" | "f32" | "f64";
|
|
|
type ExportValue = Function | Global | Memory | Table;
|
|
|
type Exports = Record<string, ExportValue>;
|
|
|
type ImportValue = ExportValue | number;
|
|
|
type ModuleImports = Record<string, ImportValue>;
|
|
|
type Imports = Record<string, ModuleImports>;
|
|
|
function compile(bytes: BufferSource): Promise<Module>;
|
|
|
function compileStreaming(source: Response | Promise<Response>): Promise<Module>;
|
|
|
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
|
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
|
|
function instantiateStreaming(response: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
|
function validate(bytes: BufferSource): boolean;
|
|
|
}
|
|
|
|
|
|
interface BlobCallback {
|
|
|
(blob: Blob | null): void;
|
|
|
}
|
|
|
|
|
|
interface DecodeErrorCallback {
|
|
|
(error: DOMException): void;
|
|
|
}
|
|
|
|
|
|
interface DecodeSuccessCallback {
|
|
|
(decodedData: AudioBuffer): void;
|
|
|
}
|
|
|
|
|
|
interface EventHandlerNonNull {
|
|
|
(event: Event): any;
|
|
|
}
|
|
|
|
|
|
interface ForEachCallback {
|
|
|
(keyId: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, status: MediaKeyStatus): void;
|
|
|
}
|
|
|
|
|
|
interface FrameRequestCallback {
|
|
|
(time: number): void;
|
|
|
}
|
|
|
|
|
|
interface FunctionStringCallback {
|
|
|
(data: string): void;
|
|
|
}
|
|
|
|
|
|
interface IntersectionObserverCallback {
|
|
|
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
|
|
|
}
|
|
|
|
|
|
interface MSLaunchUriCallback {
|
|
|
(): void;
|
|
|
}
|
|
|
|
|
|
interface MutationCallback {
|
|
|
(mutations: MutationRecord[], observer: MutationObserver): void;
|
|
|
}
|
|
|
|
|
|
interface NavigatorUserMediaErrorCallback {
|
|
|
(error: MediaStreamError): void;
|
|
|
}
|
|
|
|
|
|
interface NavigatorUserMediaSuccessCallback {
|
|
|
(stream: MediaStream): void;
|
|
|
}
|
|
|
|
|
|
interface NotificationPermissionCallback {
|
|
|
(permission: NotificationPermission): void;
|
|
|
}
|
|
|
|
|
|
interface OnBeforeUnloadEventHandlerNonNull {
|
|
|
(event: Event): string | null;
|
|
|
}
|
|
|
|
|
|
interface OnErrorEventHandlerNonNull {
|
|
|
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
|
|
|
}
|
|
|
|
|
|
interface PerformanceObserverCallback {
|
|
|
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
|
|
|
}
|
|
|
|
|
|
interface PositionCallback {
|
|
|
(position: Position): void;
|
|
|
}
|
|
|
|
|
|
interface PositionErrorCallback {
|
|
|
(positionError: PositionError): void;
|
|
|
}
|
|
|
|
|
|
interface QueuingStrategySizeCallback<T = any> {
|
|
|
(chunk: T): number;
|
|
|
}
|
|
|
|
|
|
interface RTCPeerConnectionErrorCallback {
|
|
|
(error: DOMException): void;
|
|
|
}
|
|
|
|
|
|
interface RTCSessionDescriptionCallback {
|
|
|
(description: RTCSessionDescriptionInit): void;
|
|
|
}
|
|
|
|
|
|
interface RTCStatsCallback {
|
|
|
(report: RTCStatsReport): void;
|
|
|
}
|
|
|
|
|
|
interface ReadableByteStreamControllerCallback {
|
|
|
(controller: ReadableByteStreamController): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface ReadableStreamDefaultControllerCallback<R> {
|
|
|
(controller: ReadableStreamDefaultController<R>): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface ReadableStreamErrorCallback {
|
|
|
(reason: any): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface TransformStreamDefaultControllerCallback<O> {
|
|
|
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface TransformStreamDefaultControllerTransformCallback<I, O> {
|
|
|
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface VoidFunction {
|
|
|
(): void;
|
|
|
}
|
|
|
|
|
|
interface WritableStreamDefaultControllerCloseCallback {
|
|
|
(): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface WritableStreamDefaultControllerStartCallback {
|
|
|
(controller: WritableStreamDefaultController): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface WritableStreamDefaultControllerWriteCallback<W> {
|
|
|
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface WritableStreamErrorCallback {
|
|
|
(reason: any): void | PromiseLike<void>;
|
|
|
}
|
|
|
|
|
|
interface HTMLElementTagNameMap {
|
|
|
"a": HTMLAnchorElement;
|
|
|
"abbr": HTMLElement;
|
|
|
"address": HTMLElement;
|
|
|
"applet": HTMLAppletElement;
|
|
|
"area": HTMLAreaElement;
|
|
|
"article": HTMLElement;
|
|
|
"aside": HTMLElement;
|
|
|
"audio": HTMLAudioElement;
|
|
|
"b": HTMLElement;
|
|
|
"base": HTMLBaseElement;
|
|
|
"basefont": HTMLBaseFontElement;
|
|
|
"bdi": HTMLElement;
|
|
|
"bdo": HTMLElement;
|
|
|
"blockquote": HTMLQuoteElement;
|
|
|
"body": HTMLBodyElement;
|
|
|
"br": HTMLBRElement;
|
|
|
"button": HTMLButtonElement;
|
|
|
"canvas": HTMLCanvasElement;
|
|
|
"caption": HTMLTableCaptionElement;
|
|
|
"cite": HTMLElement;
|
|
|
"code": HTMLElement;
|
|
|
"col": HTMLTableColElement;
|
|
|
"colgroup": HTMLTableColElement;
|
|
|
"data": HTMLDataElement;
|
|
|
"datalist": HTMLDataListElement;
|
|
|
"dd": HTMLElement;
|
|
|
"del": HTMLModElement;
|
|
|
"details": HTMLDetailsElement;
|
|
|
"dfn": HTMLElement;
|
|
|
"dialog": HTMLDialogElement;
|
|
|
"dir": HTMLDirectoryElement;
|
|
|
"div": HTMLDivElement;
|
|
|
"dl": HTMLDListElement;
|
|
|
"dt": HTMLElement;
|
|
|
"em": HTMLElement;
|
|
|
"embed": HTMLEmbedElement;
|
|
|
"fieldset": HTMLFieldSetElement;
|
|
|
"figcaption": HTMLElement;
|
|
|
"figure": HTMLElement;
|
|
|
"font": HTMLFontElement;
|
|
|
"footer": HTMLElement;
|
|
|
"form": HTMLFormElement;
|
|
|
"frame": HTMLFrameElement;
|
|
|
"frameset": HTMLFrameSetElement;
|
|
|
"h1": HTMLHeadingElement;
|
|
|
"h2": HTMLHeadingElement;
|
|
|
"h3": HTMLHeadingElement;
|
|
|
"h4": HTMLHeadingElement;
|
|
|
"h5": HTMLHeadingElement;
|
|
|
"h6": HTMLHeadingElement;
|
|
|
"head": HTMLHeadElement;
|
|
|
"header": HTMLElement;
|
|
|
"hgroup": HTMLElement;
|
|
|
"hr": HTMLHRElement;
|
|
|
"html": HTMLHtmlElement;
|
|
|
"i": HTMLElement;
|
|
|
"iframe": HTMLIFrameElement;
|
|
|
"img": HTMLImageElement;
|
|
|
"input": HTMLInputElement;
|
|
|
"ins": HTMLModElement;
|
|
|
"kbd": HTMLElement;
|
|
|
"label": HTMLLabelElement;
|
|
|
"legend": HTMLLegendElement;
|
|
|
"li": HTMLLIElement;
|
|
|
"link": HTMLLinkElement;
|
|
|
"main": HTMLElement;
|
|
|
"map": HTMLMapElement;
|
|
|
"mark": HTMLElement;
|
|
|
"marquee": HTMLMarqueeElement;
|
|
|
"menu": HTMLMenuElement;
|
|
|
"meta": HTMLMetaElement;
|
|
|
"meter": HTMLMeterElement;
|
|
|
"nav": HTMLElement;
|
|
|
"noscript": HTMLElement;
|
|
|
"object": HTMLObjectElement;
|
|
|
"ol": HTMLOListElement;
|
|
|
"optgroup": HTMLOptGroupElement;
|
|
|
"option": HTMLOptionElement;
|
|
|
"output": HTMLOutputElement;
|
|
|
"p": HTMLParagraphElement;
|
|
|
"param": HTMLParamElement;
|
|
|
"picture": HTMLPictureElement;
|
|
|
"pre": HTMLPreElement;
|
|
|
"progress": HTMLProgressElement;
|
|
|
"q": HTMLQuoteElement;
|
|
|
"rp": HTMLElement;
|
|
|
"rt": HTMLElement;
|
|
|
"ruby": HTMLElement;
|
|
|
"s": HTMLElement;
|
|
|
"samp": HTMLElement;
|
|
|
"script": HTMLScriptElement;
|
|
|
"section": HTMLElement;
|
|
|
"select": HTMLSelectElement;
|
|
|
"slot": HTMLSlotElement;
|
|
|
"small": HTMLElement;
|
|
|
"source": HTMLSourceElement;
|
|
|
"span": HTMLSpanElement;
|
|
|
"strong": HTMLElement;
|
|
|
"style": HTMLStyleElement;
|
|
|
"sub": HTMLElement;
|
|
|
"summary": HTMLElement;
|
|
|
"sup": HTMLElement;
|
|
|
"table": HTMLTableElement;
|
|
|
"tbody": HTMLTableSectionElement;
|
|
|
"td": HTMLTableDataCellElement;
|
|
|
"template": HTMLTemplateElement;
|
|
|
"textarea": HTMLTextAreaElement;
|
|
|
"tfoot": HTMLTableSectionElement;
|
|
|
"th": HTMLTableHeaderCellElement;
|
|
|
"thead": HTMLTableSectionElement;
|
|
|
"time": HTMLTimeElement;
|
|
|
"title": HTMLTitleElement;
|
|
|
"tr": HTMLTableRowElement;
|
|
|
"track": HTMLTrackElement;
|
|
|
"u": HTMLElement;
|
|
|
"ul": HTMLUListElement;
|
|
|
"var": HTMLElement;
|
|
|
"video": HTMLVideoElement;
|
|
|
"wbr": HTMLElement;
|
|
|
}
|
|
|
|
|
|
interface HTMLElementDeprecatedTagNameMap {
|
|
|
"listing": HTMLPreElement;
|
|
|
"xmp": HTMLPreElement;
|
|
|
}
|
|
|
|
|
|
interface SVGElementTagNameMap {
|
|
|
"a": SVGAElement;
|
|
|
"circle": SVGCircleElement;
|
|
|
"clipPath": SVGClipPathElement;
|
|
|
"defs": SVGDefsElement;
|
|
|
"desc": SVGDescElement;
|
|
|
"ellipse": SVGEllipseElement;
|
|
|
"feBlend": SVGFEBlendElement;
|
|
|
"feColorMatrix": SVGFEColorMatrixElement;
|
|
|
"feComponentTransfer": SVGFEComponentTransferElement;
|
|
|
"feComposite": SVGFECompositeElement;
|
|
|
"feConvolveMatrix": SVGFEConvolveMatrixElement;
|
|
|
"feDiffuseLighting": SVGFEDiffuseLightingElement;
|
|
|
"feDisplacementMap": SVGFEDisplacementMapElement;
|
|
|
"feDistantLight": SVGFEDistantLightElement;
|
|
|
"feFlood": SVGFEFloodElement;
|
|
|
"feFuncA": SVGFEFuncAElement;
|
|
|
"feFuncB": SVGFEFuncBElement;
|
|
|
"feFuncG": SVGFEFuncGElement;
|
|
|
"feFuncR": SVGFEFuncRElement;
|
|
|
"feGaussianBlur": SVGFEGaussianBlurElement;
|
|
|
"feImage": SVGFEImageElement;
|
|
|
"feMerge": SVGFEMergeElement;
|
|
|
"feMergeNode": SVGFEMergeNodeElement;
|
|
|
"feMorphology": SVGFEMorphologyElement;
|
|
|
"feOffset": SVGFEOffsetElement;
|
|
|
"fePointLight": SVGFEPointLightElement;
|
|
|
"feSpecularLighting": SVGFESpecularLightingElement;
|
|
|
"feSpotLight": SVGFESpotLightElement;
|
|
|
"feTile": SVGFETileElement;
|
|
|
"feTurbulence": SVGFETurbulenceElement;
|
|
|
"filter": SVGFilterElement;
|
|
|
"foreignObject": SVGForeignObjectElement;
|
|
|
"g": SVGGElement;
|
|
|
"image": SVGImageElement;
|
|
|
"line": SVGLineElement;
|
|
|
"linearGradient": SVGLinearGradientElement;
|
|
|
"marker": SVGMarkerElement;
|
|
|
"mask": SVGMaskElement;
|
|
|
"metadata": SVGMetadataElement;
|
|
|
"path": SVGPathElement;
|
|
|
"pattern": SVGPatternElement;
|
|
|
"polygon": SVGPolygonElement;
|
|
|
"polyline": SVGPolylineElement;
|
|
|
"radialGradient": SVGRadialGradientElement;
|
|
|
"rect": SVGRectElement;
|
|
|
"script": SVGScriptElement;
|
|
|
"stop": SVGStopElement;
|
|
|
"style": SVGStyleElement;
|
|
|
"svg": SVGSVGElement;
|
|
|
"switch": SVGSwitchElement;
|
|
|
"symbol": SVGSymbolElement;
|
|
|
"text": SVGTextElement;
|
|
|
"textPath": SVGTextPathElement;
|
|
|
"title": SVGTitleElement;
|
|
|
"tspan": SVGTSpanElement;
|
|
|
"use": SVGUseElement;
|
|
|
"view": SVGViewElement;
|
|
|
}
|
|
|
|
|
|
/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */
|
|
|
type ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;
|
|
|
|
|
|
declare var Audio: {
|
|
|
new(src?: string): HTMLAudioElement;
|
|
|
};
|
|
|
declare var Image: {
|
|
|
new(width?: number, height?: number): HTMLImageElement;
|
|
|
};
|
|
|
declare var Option: {
|
|
|
new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
|
|
|
};
|
|
|
declare var applicationCache: ApplicationCache;
|
|
|
declare var caches: CacheStorage;
|
|
|
declare var clientInformation: Navigator;
|
|
|
declare var closed: boolean;
|
|
|
declare var crypto: Crypto;
|
|
|
declare var customElements: CustomElementRegistry;
|
|
|
declare var defaultStatus: string;
|
|
|
declare var devicePixelRatio: number;
|
|
|
declare var doNotTrack: string;
|
|
|
declare var document: Document;
|
|
|
/** @deprecated */
|
|
|
declare var event: Event | undefined;
|
|
|
/** @deprecated */
|
|
|
declare var external: External;
|
|
|
declare var frameElement: Element;
|
|
|
declare var frames: Window;
|
|
|
declare var history: History;
|
|
|
declare var innerHeight: number;
|
|
|
declare var innerWidth: number;
|
|
|
declare var isSecureContext: boolean;
|
|
|
declare var length: number;
|
|
|
declare var location: Location;
|
|
|
declare var locationbar: BarProp;
|
|
|
declare var menubar: BarProp;
|
|
|
declare var msContentScript: ExtensionScriptApis;
|
|
|
declare const name: never;
|
|
|
declare var navigator: Navigator;
|
|
|
declare var offscreenBuffering: string | boolean;
|
|
|
declare var oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;
|
|
|
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
|
|
|
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
|
|
|
declare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
|
|
|
declare var onmousewheel: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmsgesturechange: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmsgesturedoubletap: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmsgestureend: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmsgesturehold: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmsgesturestart: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmsgesturetap: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmsinertiastart: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmspointercancel: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmspointerdown: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmspointerenter: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmspointerleave: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmspointermove: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmspointerout: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmspointerover: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmspointerup: ((this: Window, ev: Event) => any) | null;
|
|
|
/** @deprecated */
|
|
|
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onreadystatechange: ((this: Window, ev: ProgressEvent<Window>) => any) | null;
|
|
|
declare var onvrdisplayactivate: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onvrdisplayblur: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onvrdisplayconnect: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onvrdisplaydeactivate: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onvrdisplaydisconnect: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onvrdisplayfocus: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onvrdisplaypointerrestricted: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var opener: any;
|
|
|
/** @deprecated */
|
|
|
declare var orientation: string | number;
|
|
|
declare var outerHeight: number;
|
|
|
declare var outerWidth: number;
|
|
|
declare var pageXOffset: number;
|
|
|
declare var pageYOffset: number;
|
|
|
declare var parent: Window;
|
|
|
declare var performance: Performance;
|
|
|
declare var personalbar: BarProp;
|
|
|
declare var screen: Screen;
|
|
|
declare var screenLeft: number;
|
|
|
declare var screenTop: number;
|
|
|
declare var screenX: number;
|
|
|
declare var screenY: number;
|
|
|
declare var scrollX: number;
|
|
|
declare var scrollY: number;
|
|
|
declare var scrollbars: BarProp;
|
|
|
declare var self: Window & typeof globalThis;
|
|
|
declare var speechSynthesis: SpeechSynthesis;
|
|
|
declare var status: string;
|
|
|
declare var statusbar: BarProp;
|
|
|
declare var styleMedia: StyleMedia;
|
|
|
declare var toolbar: BarProp;
|
|
|
declare var top: Window;
|
|
|
declare var window: Window & typeof globalThis;
|
|
|
declare function alert(message?: any): void;
|
|
|
declare function blur(): void;
|
|
|
/** @deprecated */
|
|
|
declare function captureEvents(): void;
|
|
|
declare function close(): void;
|
|
|
declare function confirm(message?: string): boolean;
|
|
|
declare function departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void;
|
|
|
declare function focus(): void;
|
|
|
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
|
|
|
declare function getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList;
|
|
|
declare function getSelection(): Selection | null;
|
|
|
declare function matchMedia(query: string): MediaQueryList;
|
|
|
declare function moveBy(x: number, y: number): void;
|
|
|
declare function moveTo(x: number, y: number): void;
|
|
|
declare function msWriteProfilerMark(profilerMarkName: string): void;
|
|
|
declare function open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;
|
|
|
declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
|
|
|
declare function print(): void;
|
|
|
declare function prompt(message?: string, _default?: string): string | null;
|
|
|
/** @deprecated */
|
|
|
declare function releaseEvents(): void;
|
|
|
declare function resizeBy(x: number, y: number): void;
|
|
|
declare function resizeTo(x: number, y: number): void;
|
|
|
declare function scroll(options?: ScrollToOptions): void;
|
|
|
declare function scroll(x: number, y: number): void;
|
|
|
declare function scrollBy(options?: ScrollToOptions): void;
|
|
|
declare function scrollBy(x: number, y: number): void;
|
|
|
declare function scrollTo(options?: ScrollToOptions): void;
|
|
|
declare function scrollTo(x: number, y: number): void;
|
|
|
declare function stop(): void;
|
|
|
declare function webkitCancelAnimationFrame(handle: number): void;
|
|
|
declare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
|
|
|
declare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
|
|
|
declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
|
|
|
declare function toString(): string;
|
|
|
/**
|
|
|
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
|
|
|
*/
|
|
|
declare function dispatchEvent(event: Event): boolean;
|
|
|
declare var sessionStorage: Storage;
|
|
|
declare var localStorage: Storage;
|
|
|
declare var console: Console;
|
|
|
/**
|
|
|
* Fires when the user aborts the download.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onabort: ((this: Window, ev: UIEvent) => any) | null;
|
|
|
declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;
|
|
|
declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;
|
|
|
declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;
|
|
|
declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;
|
|
|
declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the object loses the input focus.
|
|
|
* @param ev The focus event.
|
|
|
*/
|
|
|
declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
|
|
|
declare var oncancel: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when playback is possible, but would require further buffering.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var oncanplay: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the contents of the object or selection have changed.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onchange: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user clicks the left mouse button on the object
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
declare var onclose: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
declare var oncuechange: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user double-clicks the object.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
declare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the source object continuously during a drag operation.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var ondrag: ((this: Window, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the source object when the user releases the mouse at the close of a drag operation.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var ondragend: ((this: Window, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the target element when the user drags the object to a valid drop target.
|
|
|
* @param ev The drag event.
|
|
|
*/
|
|
|
declare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;
|
|
|
declare var ondragexit: ((this: Window, 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.
|
|
|
*/
|
|
|
declare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the target element continuously while the user drags the object over a valid drop target.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var ondragover: ((this: Window, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires on the source object when the user starts to drag a text selection or selected object.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;
|
|
|
declare var ondrop: ((this: Window, ev: DragEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the duration attribute is updated.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var ondurationchange: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the media element is reset to its initial state.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onemptied: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the end of playback is reached.
|
|
|
* @param ev The event
|
|
|
*/
|
|
|
declare var onended: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when an error occurs during object loading.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onerror: OnErrorEventHandler;
|
|
|
/**
|
|
|
* Fires when the object receives focus.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;
|
|
|
declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
declare var oninput: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var oninvalid: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user presses a key.
|
|
|
* @param ev The keyboard event
|
|
|
*/
|
|
|
declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user presses an alphanumeric key.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user releases a key.
|
|
|
* @param ev The keyboard event
|
|
|
*/
|
|
|
declare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires immediately after the browser loads the object.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onload: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when media data is loaded at the current playback position.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onloadeddata: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the duration and dimensions of the media have been determined.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onloadend: ((this: Window, ev: ProgressEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs when Internet Explorer begins looking for media data.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onloadstart: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user clicks the object with either mouse button.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
declare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
declare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
declare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user moves the mouse over the object.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
declare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user moves the mouse pointer outside the boundaries of the object.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
declare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user moves the mouse pointer into the object.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user releases a mouse button while the mouse is over the object.
|
|
|
* @param ev The mouse event.
|
|
|
*/
|
|
|
declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs when playback is paused.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onpause: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the play method is requested.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onplay: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the audio or video has started playing.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onplaying: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
declare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
declare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
declare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs to indicate progress while downloading media data.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the playback rate is increased or decreased.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onratechange: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user resets a form.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onreset: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
|
|
|
/**
|
|
|
* Fires when the user repositions the scroll box in the scroll bar on the object.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onscroll: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the seek operation ends.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onseeked: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the current playback position is moved.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onseeking: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Fires when the current selection changes.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onselect: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the download has stopped.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onstalled: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onsubmit: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs if the load operation has been intentionally halted.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onsuspend: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs to indicate the current playback position.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var ontoggle: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null;
|
|
|
declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null;
|
|
|
declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null;
|
|
|
declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null;
|
|
|
declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
|
|
|
declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
|
|
|
declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
|
|
|
declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;
|
|
|
/**
|
|
|
* Occurs when the volume is changed, or playback is muted or unmuted.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
|
|
|
/**
|
|
|
* Occurs when playback stops because the next frame of a video resource is not available.
|
|
|
* @param ev The event.
|
|
|
*/
|
|
|
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
|
|
|
declare var indexedDB: IDBFactory;
|
|
|
declare function atob(encodedString: string): string;
|
|
|
declare function btoa(rawString: string): string;
|
|
|
declare function cancelAnimationFrame(handle: number): void;
|
|
|
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
|
|
|
declare var caches: CacheStorage;
|
|
|
declare var crypto: Crypto;
|
|
|
declare var indexedDB: IDBFactory;
|
|
|
declare var origin: string;
|
|
|
declare var performance: Performance;
|
|
|
declare function atob(data: string): string;
|
|
|
declare function btoa(data: string): string;
|
|
|
declare function clearInterval(handle?: number): void;
|
|
|
declare function clearTimeout(handle?: number): void;
|
|
|
declare function createImageBitmap(image: ImageBitmapSource): Promise<ImageBitmap>;
|
|
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number): Promise<ImageBitmap>;
|
|
|
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
|
declare function queueMicrotask(callback: Function): void;
|
|
|
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
|
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
|
declare var sessionStorage: Storage;
|
|
|
declare var localStorage: Storage;
|
|
|
declare var onafterprint: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
|
|
|
declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;
|
|
|
declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
|
|
|
declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;
|
|
|
declare var onoffline: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var ononline: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
|
|
|
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
|
|
|
declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
|
|
|
declare var onrejectionhandled: ((this: Window, ev: Event) => any) | null;
|
|
|
declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
|
|
|
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
|
|
|
declare var onunload: ((this: Window, ev: Event) => any) | null;
|
|
|
declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
|
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
|
declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
|
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
|
type HeadersInit = Headers | string[][] | Record<string, string>;
|
|
|
type BodyInit = Blob | BufferSource | FormData | URLSearchParams | ReadableStream<Uint8Array> | string;
|
|
|
type RequestInfo = Request | string;
|
|
|
type BlobPart = BufferSource | Blob | string;
|
|
|
type DOMHighResTimeStamp = number;
|
|
|
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
|
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
|
|
|
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;
|
|
|
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
|
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
|
|
|
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
|
|
|
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
|
|
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
|
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
|
|
|
type TimerHandler = string | Function;
|
|
|
type ConstrainULong = number | ConstrainULongRange;
|
|
|
type ConstrainDouble = number | ConstrainDoubleRange;
|
|
|
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
|
|
|
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
|
|
|
type PerformanceEntryList = PerformanceEntry[];
|
|
|
type VibratePattern = number | number[];
|
|
|
type COSEAlgorithmIdentifier = number;
|
|
|
type AuthenticatorSelectionList = AAGUID[];
|
|
|
type AAGUID = BufferSource;
|
|
|
type AuthenticationExtensionsSupported = string[];
|
|
|
type UvmEntry = number[];
|
|
|
type UvmEntries = UvmEntry[];
|
|
|
type AlgorithmIdentifier = string | Algorithm;
|
|
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
|
type BigInteger = Uint8Array;
|
|
|
type NamedCurve = string;
|
|
|
type GLenum = number;
|
|
|
type GLboolean = boolean;
|
|
|
type GLbitfield = number;
|
|
|
type GLint = number;
|
|
|
type GLsizei = number;
|
|
|
type GLintptr = number;
|
|
|
type GLsizeiptr = number;
|
|
|
type GLuint = number;
|
|
|
type GLfloat = number;
|
|
|
type GLclampf = number;
|
|
|
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas;
|
|
|
type Float32List = Float32Array | GLfloat[];
|
|
|
type Int32List = Int32Array | GLint[];
|
|
|
type GLint64 = number;
|
|
|
type GLuint64 = number;
|
|
|
type Uint32List = Uint32Array | GLuint[];
|
|
|
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
|
type DOMTimeStamp = number;
|
|
|
type LineAndPositionSetting = number | AutoKeyword;
|
|
|
type FormDataEntryValue = File | string;
|
|
|
type InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend";
|
|
|
type IDBValidKey = number | string | Date | BufferSource | IDBArrayKey;
|
|
|
type MutationRecordType = "attributes" | "characterData" | "childList";
|
|
|
type IDBKeyPath = string;
|
|
|
type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
|
|
|
type RTCIceGatherCandidate = RTCIceCandidateDictionary | RTCIceCandidateComplete;
|
|
|
type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
|
|
|
/** @deprecated */
|
|
|
type MouseWheelEvent = WheelEvent;
|
|
|
type WindowProxy = Window;
|
|
|
type AlignSetting = "start" | "center" | "end" | "left" | "right";
|
|
|
type AnimationPlayState = "idle" | "running" | "paused" | "finished";
|
|
|
type AppendMode = "segments" | "sequence";
|
|
|
type AttestationConveyancePreference = "none" | "indirect" | "direct";
|
|
|
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
|
|
|
type AudioContextState = "suspended" | "running" | "closed";
|
|
|
type AuthenticatorAttachment = "platform" | "cross-platform";
|
|
|
type AuthenticatorTransport = "usb" | "nfc" | "ble" | "internal";
|
|
|
type AutoKeyword = "auto";
|
|
|
type AutomationRate = "a-rate" | "k-rate";
|
|
|
type BinaryType = "blob" | "arraybuffer";
|
|
|
type BiquadFilterType = "lowpass" | "highpass" | "bandpass" | "lowshelf" | "highshelf" | "peaking" | "notch" | "allpass";
|
|
|
type CanPlayTypeResult = "" | "maybe" | "probably";
|
|
|
type CanvasDirection = "ltr" | "rtl" | "inherit";
|
|
|
type CanvasFillRule = "nonzero" | "evenodd";
|
|
|
type CanvasLineCap = "butt" | "round" | "square";
|
|
|
type CanvasLineJoin = "round" | "bevel" | "miter";
|
|
|
type CanvasTextAlign = "start" | "end" | "left" | "right" | "center";
|
|
|
type CanvasTextBaseline = "top" | "hanging" | "middle" | "alphabetic" | "ideographic" | "bottom";
|
|
|
type ChannelCountMode = "max" | "clamped-max" | "explicit";
|
|
|
type ChannelInterpretation = "speakers" | "discrete";
|
|
|
type ClientTypes = "window" | "worker" | "sharedworker" | "all";
|
|
|
type CompositeOperation = "replace" | "add" | "accumulate";
|
|
|
type CompositeOperationOrAuto = "replace" | "add" | "accumulate" | "auto";
|
|
|
type CredentialMediationRequirement = "silent" | "optional" | "required";
|
|
|
type DirectionSetting = "" | "rl" | "lr";
|
|
|
type DisplayCaptureSurfaceType = "monitor" | "window" | "application" | "browser";
|
|
|
type DistanceModelType = "linear" | "inverse" | "exponential";
|
|
|
type DocumentReadyState = "loading" | "interactive" | "complete";
|
|
|
type EndOfStreamError = "network" | "decode";
|
|
|
type EndingType = "transparent" | "native";
|
|
|
type FillMode = "none" | "forwards" | "backwards" | "both" | "auto";
|
|
|
type FullscreenNavigationUI = "auto" | "show" | "hide";
|
|
|
type GamepadHand = "" | "left" | "right";
|
|
|
type GamepadHapticActuatorType = "vibration";
|
|
|
type GamepadMappingType = "" | "standard";
|
|
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
|
type IDBRequestReadyState = "pending" | "done";
|
|
|
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
|
|
type ImageSmoothingQuality = "low" | "medium" | "high";
|
|
|
type IterationCompositeOperation = "replace" | "accumulate";
|
|
|
type KeyFormat = "raw" | "spki" | "pkcs8" | "jwk";
|
|
|
type KeyType = "public" | "private" | "secret";
|
|
|
type KeyUsage = "encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey";
|
|
|
type LineAlignSetting = "start" | "center" | "end";
|
|
|
type ListeningState = "inactive" | "active" | "disambiguation";
|
|
|
type MSCredentialType = "FIDO_2_0";
|
|
|
type MSTransportType = "Embedded" | "USB" | "NFC" | "BT";
|
|
|
type MSWebViewPermissionState = "unknown" | "defer" | "allow" | "deny";
|
|
|
type MSWebViewPermissionType = "geolocation" | "unlimitedIndexedDBQuota" | "media" | "pointerlock" | "webnotifications";
|
|
|
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
|
|
|
type MediaKeyMessageType = "license-request" | "license-renewal" | "license-release" | "individualization-request";
|
|
|
type MediaKeySessionType = "temporary" | "persistent-license";
|
|
|
type MediaKeyStatus = "usable" | "expired" | "released" | "output-restricted" | "output-downscaled" | "status-pending" | "internal-error";
|
|
|
type MediaKeysRequirement = "required" | "optional" | "not-allowed";
|
|
|
type MediaStreamTrackState = "live" | "ended";
|
|
|
type NavigationReason = "up" | "down" | "left" | "right";
|
|
|
type NavigationType = "navigate" | "reload" | "back_forward" | "prerender";
|
|
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
|
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2";
|
|
|
type OrientationLockType = "any" | "natural" | "landscape" | "portrait" | "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary";
|
|
|
type OrientationType = "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary";
|
|
|
type OscillatorType = "sine" | "square" | "sawtooth" | "triangle" | "custom";
|
|
|
type OverSampleType = "none" | "2x" | "4x";
|
|
|
type PanningModelType = "equalpower" | "HRTF";
|
|
|
type PaymentComplete = "success" | "fail" | "unknown";
|
|
|
type PaymentShippingType = "shipping" | "delivery" | "pickup";
|
|
|
type PermissionName = "geolocation" | "notifications" | "push" | "midi" | "camera" | "microphone" | "speaker" | "device-info" | "background-sync" | "bluetooth" | "persistent-storage" | "ambient-light-sensor" | "accelerometer" | "gyroscope" | "magnetometer" | "clipboard";
|
|
|
type PermissionState = "granted" | "denied" | "prompt";
|
|
|
type PlaybackDirection = "normal" | "reverse" | "alternate" | "alternate-reverse";
|
|
|
type PositionAlignSetting = "line-left" | "center" | "line-right" | "auto";
|
|
|
type PublicKeyCredentialType = "public-key";
|
|
|
type PushEncryptionKeyName = "p256dh" | "auth";
|
|
|
type PushPermissionState = "denied" | "granted" | "prompt";
|
|
|
type RTCBundlePolicy = "balanced" | "max-compat" | "max-bundle";
|
|
|
type RTCDataChannelState = "connecting" | "open" | "closing" | "closed";
|
|
|
type RTCDegradationPreference = "maintain-framerate" | "maintain-resolution" | "balanced";
|
|
|
type RTCDtlsRole = "auto" | "client" | "server";
|
|
|
type RTCDtlsTransportState = "new" | "connecting" | "connected" | "closed" | "failed";
|
|
|
type RTCDtxStatus = "disabled" | "enabled";
|
|
|
type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "idp-bad-script-failure" | "idp-execution-failure" | "idp-load-failure" | "idp-need-login" | "idp-timeout" | "idp-tls-failure" | "idp-token-expired" | "idp-token-invalid" | "sctp-failure" | "sdp-syntax-error" | "hardware-encoder-not-available" | "hardware-encoder-error";
|
|
|
type RTCIceCandidateType = "host" | "srflx" | "prflx" | "relay";
|
|
|
type RTCIceComponent = "rtp" | "rtcp";
|
|
|
type RTCIceConnectionState = "new" | "checking" | "connected" | "completed" | "disconnected" | "failed" | "closed";
|
|
|
type RTCIceCredentialType = "password" | "oauth";
|
|
|
type RTCIceGatherPolicy = "all" | "nohost" | "relay";
|
|
|
type RTCIceGathererState = "new" | "gathering" | "complete";
|
|
|
type RTCIceGatheringState = "new" | "gathering" | "complete";
|
|
|
type RTCIceProtocol = "udp" | "tcp";
|
|
|
type RTCIceRole = "controlling" | "controlled";
|
|
|
type RTCIceTcpCandidateType = "active" | "passive" | "so";
|
|
|
type RTCIceTransportPolicy = "relay" | "all";
|
|
|
type RTCIceTransportState = "new" | "checking" | "connected" | "completed" | "disconnected" | "failed" | "closed";
|
|
|
type RTCPeerConnectionState = "new" | "connecting" | "connected" | "disconnected" | "failed" | "closed";
|
|
|
type RTCPriorityType = "very-low" | "low" | "medium" | "high";
|
|
|
type RTCRtcpMuxPolicy = "negotiate" | "require";
|
|
|
type RTCRtpTransceiverDirection = "sendrecv" | "sendonly" | "recvonly" | "inactive";
|
|
|
type RTCSctpTransportState = "connecting" | "connected" | "closed";
|
|
|
type RTCSdpType = "offer" | "pranswer" | "answer" | "rollback";
|
|
|
type RTCSignalingState = "stable" | "have-local-offer" | "have-remote-offer" | "have-local-pranswer" | "have-remote-pranswer" | "closed";
|
|
|
type RTCStatsIceCandidatePairState = "frozen" | "waiting" | "inprogress" | "failed" | "succeeded" | "cancelled";
|
|
|
type RTCStatsIceCandidateType = "host" | "serverreflexive" | "peerreflexive" | "relayed";
|
|
|
type RTCStatsType = "inboundrtp" | "outboundrtp" | "session" | "datachannel" | "track" | "transport" | "candidatepair" | "localcandidate" | "remotecandidate";
|
|
|
type ReadyState = "closed" | "open" | "ended";
|
|
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "same-origin" | "origin" | "strict-origin" | "origin-when-cross-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
|
type RequestCache = "default" | "no-store" | "reload" | "no-cache" | "force-cache" | "only-if-cached";
|
|
|
type RequestCredentials = "omit" | "same-origin" | "include";
|
|
|
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
|
type RequestMode = "navigate" | "same-origin" | "no-cors" | "cors";
|
|
|
type RequestRedirect = "follow" | "error" | "manual";
|
|
|
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
|
|
|
type ScopedCredentialType = "ScopedCred";
|
|
|
type ScrollBehavior = "auto" | "smooth";
|
|
|
type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
|
|
|
type ScrollRestoration = "auto" | "manual";
|
|
|
type ScrollSetting = "" | "up";
|
|
|
type SelectionMode = "select" | "start" | "end" | "preserve";
|
|
|
type ServiceWorkerState = "installing" | "installed" | "activating" | "activated" | "redundant";
|
|
|
type ServiceWorkerUpdateViaCache = "imports" | "all" | "none";
|
|
|
type ShadowRootMode = "open" | "closed";
|
|
|
type SpeechRecognitionErrorCode = "no-speech" | "aborted" | "audio-capture" | "network" | "not-allowed" | "service-not-allowed" | "bad-grammar" | "language-not-supported";
|
|
|
type SpeechSynthesisErrorCode = "canceled" | "interrupted" | "audio-busy" | "audio-hardware" | "network" | "synthesis-unavailable" | "synthesis-failed" | "language-unavailable" | "voice-unavailable" | "text-too-long" | "invalid-argument";
|
|
|
type SupportedType = "text/html" | "text/xml" | "application/xml" | "application/xhtml+xml" | "image/svg+xml";
|
|
|
type TextTrackKind = "subtitles" | "captions" | "descriptions" | "chapters" | "metadata";
|
|
|
type TextTrackMode = "disabled" | "hidden" | "showing";
|
|
|
type TouchType = "direct" | "stylus";
|
|
|
type Transport = "usb" | "nfc" | "ble";
|
|
|
type UserVerificationRequirement = "required" | "preferred" | "discouraged";
|
|
|
type VRDisplayEventReason = "mounted" | "navigation" | "requested" | "unmounted";
|
|
|
type VideoFacingModeEnum = "user" | "environment" | "left" | "right";
|
|
|
type VisibilityState = "hidden" | "visible";
|
|
|
type WebGLPowerPreference = "default" | "low-power" | "high-performance";
|
|
|
type WorkerType = "classic" | "module";
|
|
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
|
|
`,_c=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
|
/////////////////////////////
|
|
|
/// ECMAScript APIs
|
|
|
/////////////////////////////
|
|
|
|
|
|
declare var NaN: number;
|
|
|
declare var Infinity: number;
|
|
|
|
|
|
/**
|
|
|
* Evaluates JavaScript code and executes it.
|
|
|
* @param x A String value that contains valid JavaScript code.
|
|
|
*/
|
|
|
declare function eval(x: string): any;
|
|
|
|
|
|
/**
|
|
|
* Converts a string to an integer.
|
|
|
* @param s A string to convert into a number.
|
|
|
* @param radix A value between 2 and 36 that specifies the base of the number in numString.
|
|
|
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
|
|
|
* All other strings are considered decimal.
|
|
|
*/
|
|
|
declare function parseInt(s: string, radix?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Converts a string to a floating-point number.
|
|
|
* @param string A string that contains a floating-point number.
|
|
|
*/
|
|
|
declare function parseFloat(string: string): number;
|
|
|
|
|
|
/**
|
|
|
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
|
|
|
* @param number A numeric value.
|
|
|
*/
|
|
|
declare function isNaN(number: number): boolean;
|
|
|
|
|
|
/**
|
|
|
* Determines whether a supplied number is finite.
|
|
|
* @param number Any numeric value.
|
|
|
*/
|
|
|
declare function isFinite(number: number): boolean;
|
|
|
|
|
|
/**
|
|
|
* Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
|
|
|
* @param encodedURI A value representing an encoded URI.
|
|
|
*/
|
|
|
declare function decodeURI(encodedURI: string): string;
|
|
|
|
|
|
/**
|
|
|
* Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
|
|
|
* @param encodedURIComponent A value representing an encoded URI component.
|
|
|
*/
|
|
|
declare function decodeURIComponent(encodedURIComponent: string): string;
|
|
|
|
|
|
/**
|
|
|
* Encodes a text string as a valid Uniform Resource Identifier (URI)
|
|
|
* @param uri A value representing an encoded URI.
|
|
|
*/
|
|
|
declare function encodeURI(uri: string): string;
|
|
|
|
|
|
/**
|
|
|
* Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
|
|
|
* @param uriComponent A value representing an encoded URI component.
|
|
|
*/
|
|
|
declare function encodeURIComponent(uriComponent: string | number | boolean): string;
|
|
|
|
|
|
/**
|
|
|
* Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
|
|
|
* @param string A string value
|
|
|
*/
|
|
|
declare function escape(string: string): string;
|
|
|
|
|
|
/**
|
|
|
* Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
|
|
|
* @param string A string value
|
|
|
*/
|
|
|
declare function unescape(string: string): string;
|
|
|
|
|
|
interface Symbol {
|
|
|
/** Returns a string representation of an object. */
|
|
|
toString(): string;
|
|
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
|
valueOf(): symbol;
|
|
|
}
|
|
|
|
|
|
declare type PropertyKey = string | number | symbol;
|
|
|
|
|
|
interface PropertyDescriptor {
|
|
|
configurable?: boolean;
|
|
|
enumerable?: boolean;
|
|
|
value?: any;
|
|
|
writable?: boolean;
|
|
|
get?(): any;
|
|
|
set?(v: any): void;
|
|
|
}
|
|
|
|
|
|
interface PropertyDescriptorMap {
|
|
|
[s: string]: PropertyDescriptor;
|
|
|
}
|
|
|
|
|
|
interface Object {
|
|
|
/** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
|
|
|
constructor: Function;
|
|
|
|
|
|
/** Returns a string representation of an object. */
|
|
|
toString(): string;
|
|
|
|
|
|
/** Returns a date converted to a string using the current locale. */
|
|
|
toLocaleString(): string;
|
|
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
|
valueOf(): Object;
|
|
|
|
|
|
/**
|
|
|
* Determines whether an object has a property with the specified name.
|
|
|
* @param v A property name.
|
|
|
*/
|
|
|
hasOwnProperty(v: PropertyKey): boolean;
|
|
|
|
|
|
/**
|
|
|
* Determines whether an object exists in another object's prototype chain.
|
|
|
* @param v Another object whose prototype chain is to be checked.
|
|
|
*/
|
|
|
isPrototypeOf(v: Object): boolean;
|
|
|
|
|
|
/**
|
|
|
* Determines whether a specified property is enumerable.
|
|
|
* @param v A property name.
|
|
|
*/
|
|
|
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
|
}
|
|
|
|
|
|
interface ObjectConstructor {
|
|
|
new(value?: any): Object;
|
|
|
(): any;
|
|
|
(value: any): any;
|
|
|
|
|
|
/** A reference to the prototype for a class of objects. */
|
|
|
readonly prototype: Object;
|
|
|
|
|
|
/**
|
|
|
* Returns the prototype of an object.
|
|
|
* @param o The object that references the prototype.
|
|
|
*/
|
|
|
getPrototypeOf(o: any): any;
|
|
|
|
|
|
/**
|
|
|
* Gets the own property descriptor of the specified object.
|
|
|
* An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
|
|
|
* @param o Object that contains the property.
|
|
|
* @param p Name of the property.
|
|
|
*/
|
|
|
getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;
|
|
|
|
|
|
/**
|
|
|
* Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
|
|
|
* on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
|
|
|
* @param o Object that contains the own properties.
|
|
|
*/
|
|
|
getOwnPropertyNames(o: any): string[];
|
|
|
|
|
|
/**
|
|
|
* Creates an object that has the specified prototype or that has null prototype.
|
|
|
* @param o Object to use as a prototype. May be null.
|
|
|
*/
|
|
|
create(o: object | null): any;
|
|
|
|
|
|
/**
|
|
|
* Creates an object that has the specified prototype, and that optionally contains specified properties.
|
|
|
* @param o Object to use as a prototype. May be null
|
|
|
* @param properties JavaScript object that contains one or more property descriptors.
|
|
|
*/
|
|
|
create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
|
|
|
|
/**
|
|
|
* Adds a property to an object, or modifies attributes of an existing property.
|
|
|
* @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
|
|
|
* @param p The property name.
|
|
|
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
|
|
|
*/
|
|
|
defineProperty(o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): any;
|
|
|
|
|
|
/**
|
|
|
* Adds one or more properties to an object, and/or modifies attributes of existing properties.
|
|
|
* @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
|
|
|
* @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
|
|
|
*/
|
|
|
defineProperties(o: any, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
|
|
|
|
/**
|
|
|
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
|
|
|
* @param o Object on which to lock the attributes.
|
|
|
*/
|
|
|
seal<T>(o: T): T;
|
|
|
|
|
|
/**
|
|
|
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
|
|
|
* @param o Object on which to lock the attributes.
|
|
|
*/
|
|
|
freeze<T>(a: T[]): readonly T[];
|
|
|
|
|
|
/**
|
|
|
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
|
|
|
* @param o Object on which to lock the attributes.
|
|
|
*/
|
|
|
freeze<T extends Function>(f: T): T;
|
|
|
|
|
|
/**
|
|
|
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
|
|
|
* @param o Object on which to lock the attributes.
|
|
|
*/
|
|
|
freeze<T>(o: T): Readonly<T>;
|
|
|
|
|
|
/**
|
|
|
* Prevents the addition of new properties to an object.
|
|
|
* @param o Object to make non-extensible.
|
|
|
*/
|
|
|
preventExtensions<T>(o: T): T;
|
|
|
|
|
|
/**
|
|
|
* Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
|
|
|
* @param o Object to test.
|
|
|
*/
|
|
|
isSealed(o: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
|
|
|
* @param o Object to test.
|
|
|
*/
|
|
|
isFrozen(o: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns a value that indicates whether new properties can be added to an object.
|
|
|
* @param o Object to test.
|
|
|
*/
|
|
|
isExtensible(o: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns the names of the enumerable string properties and methods of an object.
|
|
|
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
|
*/
|
|
|
keys(o: object): string[];
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Provides functionality common to all JavaScript objects.
|
|
|
*/
|
|
|
declare var Object: ObjectConstructor;
|
|
|
|
|
|
/**
|
|
|
* Creates a new function.
|
|
|
*/
|
|
|
interface Function {
|
|
|
/**
|
|
|
* Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
|
|
|
* @param thisArg The object to be used as the this object.
|
|
|
* @param argArray A set of arguments to be passed to the function.
|
|
|
*/
|
|
|
apply(this: Function, thisArg: any, argArray?: any): any;
|
|
|
|
|
|
/**
|
|
|
* Calls a method of an object, substituting another object for the current object.
|
|
|
* @param thisArg The object to be used as the current object.
|
|
|
* @param argArray A list of arguments to be passed to the method.
|
|
|
*/
|
|
|
call(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
|
|
|
|
/**
|
|
|
* For a given function, creates a bound function that has the same body as the original function.
|
|
|
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
|
|
|
* @param thisArg An object to which the this keyword can refer inside the new function.
|
|
|
* @param argArray A list of arguments to be passed to the new function.
|
|
|
*/
|
|
|
bind(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
|
|
|
|
/** Returns a string representation of a function. */
|
|
|
toString(): string;
|
|
|
|
|
|
prototype: any;
|
|
|
readonly length: number;
|
|
|
|
|
|
// Non-standard extensions
|
|
|
arguments: any;
|
|
|
caller: Function;
|
|
|
}
|
|
|
|
|
|
interface FunctionConstructor {
|
|
|
/**
|
|
|
* Creates a new function.
|
|
|
* @param args A list of arguments the function accepts.
|
|
|
*/
|
|
|
new(...args: string[]): Function;
|
|
|
(...args: string[]): Function;
|
|
|
readonly prototype: Function;
|
|
|
}
|
|
|
|
|
|
declare var Function: FunctionConstructor;
|
|
|
|
|
|
/**
|
|
|
* Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
|
|
|
*/
|
|
|
type ThisParameterType<T> = T extends (this: unknown, ...args: any[]) => any ? unknown : T extends (this: infer U, ...args: any[]) => any ? U : unknown;
|
|
|
|
|
|
/**
|
|
|
* Removes the 'this' parameter from a function type.
|
|
|
*/
|
|
|
type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;
|
|
|
|
|
|
interface CallableFunction extends Function {
|
|
|
/**
|
|
|
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
|
|
|
* @param thisArg The object to be used as the this object.
|
|
|
* @param args An array of argument values to be passed to the function.
|
|
|
*/
|
|
|
apply<T, R>(this: (this: T) => R, thisArg: T): R;
|
|
|
apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;
|
|
|
|
|
|
/**
|
|
|
* Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
|
|
|
* @param thisArg The object to be used as the this object.
|
|
|
* @param args Argument values to be passed to the function.
|
|
|
*/
|
|
|
call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;
|
|
|
|
|
|
/**
|
|
|
* For a given function, creates a bound function that has the same body as the original function.
|
|
|
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
|
|
|
* @param thisArg The object to be used as the this object.
|
|
|
* @param args Arguments to bind to the parameters of the function.
|
|
|
*/
|
|
|
bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;
|
|
|
bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;
|
|
|
bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R;
|
|
|
bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R;
|
|
|
bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R;
|
|
|
bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;
|
|
|
}
|
|
|
|
|
|
interface NewableFunction extends Function {
|
|
|
/**
|
|
|
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
|
|
|
* @param thisArg The object to be used as the this object.
|
|
|
* @param args An array of argument values to be passed to the function.
|
|
|
*/
|
|
|
apply<T>(this: new () => T, thisArg: T): void;
|
|
|
apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;
|
|
|
|
|
|
/**
|
|
|
* Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
|
|
|
* @param thisArg The object to be used as the this object.
|
|
|
* @param args Argument values to be passed to the function.
|
|
|
*/
|
|
|
call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;
|
|
|
|
|
|
/**
|
|
|
* For a given function, creates a bound function that has the same body as the original function.
|
|
|
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
|
|
|
* @param thisArg The object to be used as the this object.
|
|
|
* @param args Arguments to bind to the parameters of the function.
|
|
|
*/
|
|
|
bind<T>(this: T, thisArg: any): T;
|
|
|
bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;
|
|
|
bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R;
|
|
|
bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R;
|
|
|
bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R;
|
|
|
bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;
|
|
|
}
|
|
|
|
|
|
interface IArguments {
|
|
|
[index: number]: any;
|
|
|
length: number;
|
|
|
callee: Function;
|
|
|
}
|
|
|
|
|
|
interface String {
|
|
|
/** Returns a string representation of a string. */
|
|
|
toString(): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the character at the specified index.
|
|
|
* @param pos The zero-based index of the desired character.
|
|
|
*/
|
|
|
charAt(pos: number): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the Unicode value of the character at the specified location.
|
|
|
* @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
|
|
|
*/
|
|
|
charCodeAt(index: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns a string that contains the concatenation of two or more strings.
|
|
|
* @param strings The strings to append to the end of the string.
|
|
|
*/
|
|
|
concat(...strings: string[]): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the position of the first occurrence of a substring.
|
|
|
* @param searchString The substring to search for in the string
|
|
|
* @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
|
|
|
*/
|
|
|
indexOf(searchString: string, position?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Returns the last occurrence of a substring in the string.
|
|
|
* @param searchString The substring to search for.
|
|
|
* @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
|
|
|
*/
|
|
|
lastIndexOf(searchString: string, position?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Determines whether two strings are equivalent in the current locale.
|
|
|
* @param that String to compare to target string
|
|
|
*/
|
|
|
localeCompare(that: string): number;
|
|
|
|
|
|
/**
|
|
|
* Matches a string with a regular expression, and returns an array containing the results of that search.
|
|
|
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
|
|
|
*/
|
|
|
match(regexp: string | RegExp): RegExpMatchArray | null;
|
|
|
|
|
|
/**
|
|
|
* Replaces text in a string, using a regular expression or search string.
|
|
|
* @param searchValue A string to search for.
|
|
|
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
|
|
|
*/
|
|
|
replace(searchValue: string | RegExp, replaceValue: string): string;
|
|
|
|
|
|
/**
|
|
|
* Replaces text in a string, using a regular expression or search string.
|
|
|
* @param searchValue A string to search for.
|
|
|
* @param replacer A function that returns the replacement text.
|
|
|
*/
|
|
|
replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
|
|
|
|
/**
|
|
|
* Finds the first substring match in a regular expression search.
|
|
|
* @param regexp The regular expression pattern and applicable flags.
|
|
|
*/
|
|
|
search(regexp: string | RegExp): number;
|
|
|
|
|
|
/**
|
|
|
* Returns a section of a string.
|
|
|
* @param start The index to the beginning of the specified portion of stringObj.
|
|
|
* @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
|
|
|
* If this value is not specified, the substring continues to the end of stringObj.
|
|
|
*/
|
|
|
slice(start?: number, end?: number): string;
|
|
|
|
|
|
/**
|
|
|
* Split a string into substrings using the specified separator and return them as an array.
|
|
|
* @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
|
|
|
* @param limit A value used to limit the number of elements returned in the array.
|
|
|
*/
|
|
|
split(separator: string | RegExp, limit?: number): string[];
|
|
|
|
|
|
/**
|
|
|
* Returns the substring at the specified location within a String object.
|
|
|
* @param start The zero-based index number indicating the beginning of the substring.
|
|
|
* @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
|
|
|
* If end is omitted, the characters from start through the end of the original string are returned.
|
|
|
*/
|
|
|
substring(start: number, end?: number): string;
|
|
|
|
|
|
/** Converts all the alphabetic characters in a string to lowercase. */
|
|
|
toLowerCase(): string;
|
|
|
|
|
|
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
|
|
|
toLocaleLowerCase(locales?: string | string[]): string;
|
|
|
|
|
|
/** Converts all the alphabetic characters in a string to uppercase. */
|
|
|
toUpperCase(): string;
|
|
|
|
|
|
/** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
|
|
|
toLocaleUpperCase(locales?: string | string[]): string;
|
|
|
|
|
|
/** Removes the leading and trailing white space and line terminator characters from a string. */
|
|
|
trim(): string;
|
|
|
|
|
|
/** Returns the length of a String object. */
|
|
|
readonly length: number;
|
|
|
|
|
|
// IE extensions
|
|
|
/**
|
|
|
* Gets a substring beginning at the specified location and having the specified length.
|
|
|
* @param from The starting position of the desired substring. The index of the first character in the string is zero.
|
|
|
* @param length The number of characters to include in the returned substring.
|
|
|
*/
|
|
|
substr(from: number, length?: number): string;
|
|
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
|
valueOf(): string;
|
|
|
|
|
|
readonly [index: number]: string;
|
|
|
}
|
|
|
|
|
|
interface StringConstructor {
|
|
|
new(value?: any): String;
|
|
|
(value?: any): string;
|
|
|
readonly prototype: String;
|
|
|
fromCharCode(...codes: number[]): string;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Allows manipulation and formatting of text strings and determination and location of substrings within strings.
|
|
|
*/
|
|
|
declare var String: StringConstructor;
|
|
|
|
|
|
interface Boolean {
|
|
|
/** Returns the primitive value of the specified object. */
|
|
|
valueOf(): boolean;
|
|
|
}
|
|
|
|
|
|
interface BooleanConstructor {
|
|
|
new(value?: any): Boolean;
|
|
|
<T>(value?: T): boolean;
|
|
|
readonly prototype: Boolean;
|
|
|
}
|
|
|
|
|
|
declare var Boolean: BooleanConstructor;
|
|
|
|
|
|
interface Number {
|
|
|
/**
|
|
|
* Returns a string representation of an object.
|
|
|
* @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
|
|
|
*/
|
|
|
toString(radix?: number): string;
|
|
|
|
|
|
/**
|
|
|
* Returns a string representing a number in fixed-point notation.
|
|
|
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
|
|
|
*/
|
|
|
toFixed(fractionDigits?: number): string;
|
|
|
|
|
|
/**
|
|
|
* Returns a string containing a number represented in exponential notation.
|
|
|
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
|
|
|
*/
|
|
|
toExponential(fractionDigits?: number): string;
|
|
|
|
|
|
/**
|
|
|
* Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
|
|
|
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
|
|
|
*/
|
|
|
toPrecision(precision?: number): string;
|
|
|
|
|
|
/** Returns the primitive value of the specified object. */
|
|
|
valueOf(): number;
|
|
|
}
|
|
|
|
|
|
interface NumberConstructor {
|
|
|
new(value?: any): Number;
|
|
|
(value?: any): number;
|
|
|
readonly prototype: Number;
|
|
|
|
|
|
/** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
|
|
|
readonly MAX_VALUE: number;
|
|
|
|
|
|
/** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
|
|
|
readonly MIN_VALUE: number;
|
|
|
|
|
|
/**
|
|
|
* A value that is not a number.
|
|
|
* In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
|
|
|
*/
|
|
|
readonly NaN: number;
|
|
|
|
|
|
/**
|
|
|
* A value that is less than the largest negative number that can be represented in JavaScript.
|
|
|
* JavaScript displays NEGATIVE_INFINITY values as -infinity.
|
|
|
*/
|
|
|
readonly NEGATIVE_INFINITY: number;
|
|
|
|
|
|
/**
|
|
|
* A value greater than the largest number that can be represented in JavaScript.
|
|
|
* JavaScript displays POSITIVE_INFINITY values as infinity.
|
|
|
*/
|
|
|
readonly POSITIVE_INFINITY: number;
|
|
|
}
|
|
|
|
|
|
/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
|
|
|
declare var Number: NumberConstructor;
|
|
|
|
|
|
interface TemplateStringsArray extends ReadonlyArray<string> {
|
|
|
readonly raw: readonly string[];
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* The type of \`import.meta\`.
|
|
|
*
|
|
|
* If you need to declare that a given property exists on \`import.meta\`,
|
|
|
* this type may be augmented via interface merging.
|
|
|
*/
|
|
|
interface ImportMeta {
|
|
|
}
|
|
|
|
|
|
interface Math {
|
|
|
/** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
|
|
|
readonly E: number;
|
|
|
/** The natural logarithm of 10. */
|
|
|
readonly LN10: number;
|
|
|
/** The natural logarithm of 2. */
|
|
|
readonly LN2: number;
|
|
|
/** The base-2 logarithm of e. */
|
|
|
readonly LOG2E: number;
|
|
|
/** The base-10 logarithm of e. */
|
|
|
readonly LOG10E: number;
|
|
|
/** Pi. This is the ratio of the circumference of a circle to its diameter. */
|
|
|
readonly PI: number;
|
|
|
/** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
|
|
|
readonly SQRT1_2: number;
|
|
|
/** The square root of 2. */
|
|
|
readonly SQRT2: number;
|
|
|
/**
|
|
|
* Returns the absolute value of a number (the value without regard to whether it is positive or negative).
|
|
|
* For example, the absolute value of -5 is the same as the absolute value of 5.
|
|
|
* @param x A numeric expression for which the absolute value is needed.
|
|
|
*/
|
|
|
abs(x: number): number;
|
|
|
/**
|
|
|
* Returns the arc cosine (or inverse cosine) of a number.
|
|
|
* @param x A numeric expression.
|
|
|
*/
|
|
|
acos(x: number): number;
|
|
|
/**
|
|
|
* Returns the arcsine of a number.
|
|
|
* @param x A numeric expression.
|
|
|
*/
|
|
|
asin(x: number): number;
|
|
|
/**
|
|
|
* Returns the arctangent of a number.
|
|
|
* @param x A numeric expression for which the arctangent is needed.
|
|
|
*/
|
|
|
atan(x: number): number;
|
|
|
/**
|
|
|
* Returns the angle (in radians) from the X axis to a point.
|
|
|
* @param y A numeric expression representing the cartesian y-coordinate.
|
|
|
* @param x A numeric expression representing the cartesian x-coordinate.
|
|
|
*/
|
|
|
atan2(y: number, x: number): number;
|
|
|
/**
|
|
|
* Returns the smallest integer greater than or equal to its numeric argument.
|
|
|
* @param x A numeric expression.
|
|
|
*/
|
|
|
ceil(x: number): number;
|
|
|
/**
|
|
|
* Returns the cosine of a number.
|
|
|
* @param x A numeric expression that contains an angle measured in radians.
|
|
|
*/
|
|
|
cos(x: number): number;
|
|
|
/**
|
|
|
* Returns e (the base of natural logarithms) raised to a power.
|
|
|
* @param x A numeric expression representing the power of e.
|
|
|
*/
|
|
|
exp(x: number): number;
|
|
|
/**
|
|
|
* Returns the greatest integer less than or equal to its numeric argument.
|
|
|
* @param x A numeric expression.
|
|
|
*/
|
|
|
floor(x: number): number;
|
|
|
/**
|
|
|
* Returns the natural logarithm (base e) of a number.
|
|
|
* @param x A numeric expression.
|
|
|
*/
|
|
|
log(x: number): number;
|
|
|
/**
|
|
|
* Returns the larger of a set of supplied numeric expressions.
|
|
|
* @param values Numeric expressions to be evaluated.
|
|
|
*/
|
|
|
max(...values: number[]): number;
|
|
|
/**
|
|
|
* Returns the smaller of a set of supplied numeric expressions.
|
|
|
* @param values Numeric expressions to be evaluated.
|
|
|
*/
|
|
|
min(...values: number[]): number;
|
|
|
/**
|
|
|
* Returns the value of a base expression taken to a specified power.
|
|
|
* @param x The base value of the expression.
|
|
|
* @param y The exponent value of the expression.
|
|
|
*/
|
|
|
pow(x: number, y: number): number;
|
|
|
/** Returns a pseudorandom number between 0 and 1. */
|
|
|
random(): number;
|
|
|
/**
|
|
|
* Returns a supplied numeric expression rounded to the nearest integer.
|
|
|
* @param x The value to be rounded to the nearest integer.
|
|
|
*/
|
|
|
round(x: number): number;
|
|
|
/**
|
|
|
* Returns the sine of a number.
|
|
|
* @param x A numeric expression that contains an angle measured in radians.
|
|
|
*/
|
|
|
sin(x: number): number;
|
|
|
/**
|
|
|
* Returns the square root of a number.
|
|
|
* @param x A numeric expression.
|
|
|
*/
|
|
|
sqrt(x: number): number;
|
|
|
/**
|
|
|
* Returns the tangent of a number.
|
|
|
* @param x A numeric expression that contains an angle measured in radians.
|
|
|
*/
|
|
|
tan(x: number): number;
|
|
|
}
|
|
|
/** An intrinsic object that provides basic mathematics functionality and constants. */
|
|
|
declare var Math: Math;
|
|
|
|
|
|
/** Enables basic storage and retrieval of dates and times. */
|
|
|
interface Date {
|
|
|
/** Returns a string representation of a date. The format of the string depends on the locale. */
|
|
|
toString(): string;
|
|
|
/** Returns a date as a string value. */
|
|
|
toDateString(): string;
|
|
|
/** Returns a time as a string value. */
|
|
|
toTimeString(): string;
|
|
|
/** Returns a value as a string value appropriate to the host environment's current locale. */
|
|
|
toLocaleString(): string;
|
|
|
/** Returns a date as a string value appropriate to the host environment's current locale. */
|
|
|
toLocaleDateString(): string;
|
|
|
/** Returns a time as a string value appropriate to the host environment's current locale. */
|
|
|
toLocaleTimeString(): string;
|
|
|
/** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
|
|
|
valueOf(): number;
|
|
|
/** Gets the time value in milliseconds. */
|
|
|
getTime(): number;
|
|
|
/** Gets the year, using local time. */
|
|
|
getFullYear(): number;
|
|
|
/** Gets the year using Universal Coordinated Time (UTC). */
|
|
|
getUTCFullYear(): number;
|
|
|
/** Gets the month, using local time. */
|
|
|
getMonth(): number;
|
|
|
/** Gets the month of a Date object using Universal Coordinated Time (UTC). */
|
|
|
getUTCMonth(): number;
|
|
|
/** Gets the day-of-the-month, using local time. */
|
|
|
getDate(): number;
|
|
|
/** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
|
|
|
getUTCDate(): number;
|
|
|
/** Gets the day of the week, using local time. */
|
|
|
getDay(): number;
|
|
|
/** Gets the day of the week using Universal Coordinated Time (UTC). */
|
|
|
getUTCDay(): number;
|
|
|
/** Gets the hours in a date, using local time. */
|
|
|
getHours(): number;
|
|
|
/** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
|
|
|
getUTCHours(): number;
|
|
|
/** Gets the minutes of a Date object, using local time. */
|
|
|
getMinutes(): number;
|
|
|
/** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
|
|
|
getUTCMinutes(): number;
|
|
|
/** Gets the seconds of a Date object, using local time. */
|
|
|
getSeconds(): number;
|
|
|
/** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
|
|
|
getUTCSeconds(): number;
|
|
|
/** Gets the milliseconds of a Date, using local time. */
|
|
|
getMilliseconds(): number;
|
|
|
/** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
|
|
|
getUTCMilliseconds(): number;
|
|
|
/** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
|
|
|
getTimezoneOffset(): number;
|
|
|
/**
|
|
|
* Sets the date and time value in the Date object.
|
|
|
* @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
|
|
|
*/
|
|
|
setTime(time: number): number;
|
|
|
/**
|
|
|
* Sets the milliseconds value in the Date object using local time.
|
|
|
* @param ms A numeric value equal to the millisecond value.
|
|
|
*/
|
|
|
setMilliseconds(ms: number): number;
|
|
|
/**
|
|
|
* Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
|
|
|
* @param ms A numeric value equal to the millisecond value.
|
|
|
*/
|
|
|
setUTCMilliseconds(ms: number): number;
|
|
|
|
|
|
/**
|
|
|
* Sets the seconds value in the Date object using local time.
|
|
|
* @param sec A numeric value equal to the seconds value.
|
|
|
* @param ms A numeric value equal to the milliseconds value.
|
|
|
*/
|
|
|
setSeconds(sec: number, ms?: number): number;
|
|
|
/**
|
|
|
* Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
|
|
|
* @param sec A numeric value equal to the seconds value.
|
|
|
* @param ms A numeric value equal to the milliseconds value.
|
|
|
*/
|
|
|
setUTCSeconds(sec: number, ms?: number): number;
|
|
|
/**
|
|
|
* Sets the minutes value in the Date object using local time.
|
|
|
* @param min A numeric value equal to the minutes value.
|
|
|
* @param sec A numeric value equal to the seconds value.
|
|
|
* @param ms A numeric value equal to the milliseconds value.
|
|
|
*/
|
|
|
setMinutes(min: number, sec?: number, ms?: number): number;
|
|
|
/**
|
|
|
* Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
|
|
|
* @param min A numeric value equal to the minutes value.
|
|
|
* @param sec A numeric value equal to the seconds value.
|
|
|
* @param ms A numeric value equal to the milliseconds value.
|
|
|
*/
|
|
|
setUTCMinutes(min: number, sec?: number, ms?: number): number;
|
|
|
/**
|
|
|
* Sets the hour value in the Date object using local time.
|
|
|
* @param hours A numeric value equal to the hours value.
|
|
|
* @param min A numeric value equal to the minutes value.
|
|
|
* @param sec A numeric value equal to the seconds value.
|
|
|
* @param ms A numeric value equal to the milliseconds value.
|
|
|
*/
|
|
|
setHours(hours: number, min?: number, sec?: number, ms?: number): number;
|
|
|
/**
|
|
|
* Sets the hours value in the Date object using Universal Coordinated Time (UTC).
|
|
|
* @param hours A numeric value equal to the hours value.
|
|
|
* @param min A numeric value equal to the minutes value.
|
|
|
* @param sec A numeric value equal to the seconds value.
|
|
|
* @param ms A numeric value equal to the milliseconds value.
|
|
|
*/
|
|
|
setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
|
|
|
/**
|
|
|
* Sets the numeric day-of-the-month value of the Date object using local time.
|
|
|
* @param date A numeric value equal to the day of the month.
|
|
|
*/
|
|
|
setDate(date: number): number;
|
|
|
/**
|
|
|
* Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
|
|
|
* @param date A numeric value equal to the day of the month.
|
|
|
*/
|
|
|
setUTCDate(date: number): number;
|
|
|
/**
|
|
|
* Sets the month value in the Date object using local time.
|
|
|
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
|
|
|
* @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
|
|
|
*/
|
|
|
setMonth(month: number, date?: number): number;
|
|
|
/**
|
|
|
* Sets the month value in the Date object using Universal Coordinated Time (UTC).
|
|
|
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
|
|
|
* @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
|
|
|
*/
|
|
|
setUTCMonth(month: number, date?: number): number;
|
|
|
/**
|
|
|
* Sets the year of the Date object using local time.
|
|
|
* @param year A numeric value for the year.
|
|
|
* @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
|
|
|
* @param date A numeric value equal for the day of the month.
|
|
|
*/
|
|
|
setFullYear(year: number, month?: number, date?: number): number;
|
|
|
/**
|
|
|
* Sets the year value in the Date object using Universal Coordinated Time (UTC).
|
|
|
* @param year A numeric value equal to the year.
|
|
|
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
|
|
|
* @param date A numeric value equal to the day of the month.
|
|
|
*/
|
|
|
setUTCFullYear(year: number, month?: number, date?: number): number;
|
|
|
/** Returns a date converted to a string using Universal Coordinated Time (UTC). */
|
|
|
toUTCString(): string;
|
|
|
/** Returns a date as a string value in ISO format. */
|
|
|
toISOString(): string;
|
|
|
/** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
|
|
|
toJSON(key?: any): string;
|
|
|
}
|
|
|
|
|
|
interface DateConstructor {
|
|
|
new(): Date;
|
|
|
new(value: number | string): Date;
|
|
|
new(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
|
|
|
(): string;
|
|
|
readonly prototype: Date;
|
|
|
/**
|
|
|
* Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
|
|
|
* @param s A date string
|
|
|
*/
|
|
|
parse(s: string): number;
|
|
|
/**
|
|
|
* Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
|
|
|
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
|
|
|
* @param month The month as a number between 0 and 11 (January to December).
|
|
|
* @param date The date as a number between 1 and 31.
|
|
|
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
|
|
|
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
|
|
|
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
|
|
|
* @param ms A number from 0 to 999 that specifies the milliseconds.
|
|
|
*/
|
|
|
UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
|
|
|
now(): number;
|
|
|
}
|
|
|
|
|
|
declare var Date: DateConstructor;
|
|
|
|
|
|
interface RegExpMatchArray extends Array<string> {
|
|
|
index?: number;
|
|
|
input?: string;
|
|
|
}
|
|
|
|
|
|
interface RegExpExecArray extends Array<string> {
|
|
|
index: number;
|
|
|
input: string;
|
|
|
}
|
|
|
|
|
|
interface RegExp {
|
|
|
/**
|
|
|
* Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
|
|
|
* @param string The String object or string literal on which to perform the search.
|
|
|
*/
|
|
|
exec(string: string): RegExpExecArray | null;
|
|
|
|
|
|
/**
|
|
|
* Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
|
|
|
* @param string String on which to perform the search.
|
|
|
*/
|
|
|
test(string: string): boolean;
|
|
|
|
|
|
/** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
|
|
|
readonly source: string;
|
|
|
|
|
|
/** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
|
|
|
readonly global: boolean;
|
|
|
|
|
|
/** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
|
|
|
readonly ignoreCase: boolean;
|
|
|
|
|
|
/** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
|
|
|
readonly multiline: boolean;
|
|
|
|
|
|
lastIndex: number;
|
|
|
|
|
|
// Non-standard extensions
|
|
|
compile(): this;
|
|
|
}
|
|
|
|
|
|
interface RegExpConstructor {
|
|
|
new(pattern: RegExp | string): RegExp;
|
|
|
new(pattern: string, flags?: string): RegExp;
|
|
|
(pattern: RegExp | string): RegExp;
|
|
|
(pattern: string, flags?: string): RegExp;
|
|
|
readonly prototype: RegExp;
|
|
|
|
|
|
// Non-standard extensions
|
|
|
$1: string;
|
|
|
$2: string;
|
|
|
$3: string;
|
|
|
$4: string;
|
|
|
$5: string;
|
|
|
$6: string;
|
|
|
$7: string;
|
|
|
$8: string;
|
|
|
$9: string;
|
|
|
lastMatch: string;
|
|
|
}
|
|
|
|
|
|
declare var RegExp: RegExpConstructor;
|
|
|
|
|
|
interface Error {
|
|
|
name: string;
|
|
|
message: string;
|
|
|
stack?: string;
|
|
|
}
|
|
|
|
|
|
interface ErrorConstructor {
|
|
|
new(message?: string): Error;
|
|
|
(message?: string): Error;
|
|
|
readonly prototype: Error;
|
|
|
}
|
|
|
|
|
|
declare var Error: ErrorConstructor;
|
|
|
|
|
|
interface EvalError extends Error {
|
|
|
}
|
|
|
|
|
|
interface EvalErrorConstructor {
|
|
|
new(message?: string): EvalError;
|
|
|
(message?: string): EvalError;
|
|
|
readonly prototype: EvalError;
|
|
|
}
|
|
|
|
|
|
declare var EvalError: EvalErrorConstructor;
|
|
|
|
|
|
interface RangeError extends Error {
|
|
|
}
|
|
|
|
|
|
interface RangeErrorConstructor {
|
|
|
new(message?: string): RangeError;
|
|
|
(message?: string): RangeError;
|
|
|
readonly prototype: RangeError;
|
|
|
}
|
|
|
|
|
|
declare var RangeError: RangeErrorConstructor;
|
|
|
|
|
|
interface ReferenceError extends Error {
|
|
|
}
|
|
|
|
|
|
interface ReferenceErrorConstructor {
|
|
|
new(message?: string): ReferenceError;
|
|
|
(message?: string): ReferenceError;
|
|
|
readonly prototype: ReferenceError;
|
|
|
}
|
|
|
|
|
|
declare var ReferenceError: ReferenceErrorConstructor;
|
|
|
|
|
|
interface SyntaxError extends Error {
|
|
|
}
|
|
|
|
|
|
interface SyntaxErrorConstructor {
|
|
|
new(message?: string): SyntaxError;
|
|
|
(message?: string): SyntaxError;
|
|
|
readonly prototype: SyntaxError;
|
|
|
}
|
|
|
|
|
|
declare var SyntaxError: SyntaxErrorConstructor;
|
|
|
|
|
|
interface TypeError extends Error {
|
|
|
}
|
|
|
|
|
|
interface TypeErrorConstructor {
|
|
|
new(message?: string): TypeError;
|
|
|
(message?: string): TypeError;
|
|
|
readonly prototype: TypeError;
|
|
|
}
|
|
|
|
|
|
declare var TypeError: TypeErrorConstructor;
|
|
|
|
|
|
interface URIError extends Error {
|
|
|
}
|
|
|
|
|
|
interface URIErrorConstructor {
|
|
|
new(message?: string): URIError;
|
|
|
(message?: string): URIError;
|
|
|
readonly prototype: URIError;
|
|
|
}
|
|
|
|
|
|
declare var URIError: URIErrorConstructor;
|
|
|
|
|
|
interface JSON {
|
|
|
/**
|
|
|
* Converts a JavaScript Object Notation (JSON) string into an object.
|
|
|
* @param text A valid JSON string.
|
|
|
* @param reviver A function that transforms the results. This function is called for each member of the object.
|
|
|
* If a member contains nested objects, the nested objects are transformed before the parent object is.
|
|
|
*/
|
|
|
parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
|
|
|
/**
|
|
|
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
|
|
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
|
* @param replacer A function that transforms the results.
|
|
|
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
|
*/
|
|
|
stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
|
/**
|
|
|
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
|
|
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
|
* @param replacer An array of strings and numbers that acts as a approved list for selecting the object properties that will be stringified.
|
|
|
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
|
*/
|
|
|
stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
|
|
|
*/
|
|
|
declare var JSON: JSON;
|
|
|
|
|
|
|
|
|
/////////////////////////////
|
|
|
/// ECMAScript Array API (specially handled by compiler)
|
|
|
/////////////////////////////
|
|
|
|
|
|
interface ReadonlyArray<T> {
|
|
|
/**
|
|
|
* Gets the length of the array. This is a number one higher than the highest element defined in an array.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
/**
|
|
|
* Returns a string representation of an array.
|
|
|
*/
|
|
|
toString(): string;
|
|
|
/**
|
|
|
* Returns a string representation of an array. The elements are converted to string using their toLocalString methods.
|
|
|
*/
|
|
|
toLocaleString(): string;
|
|
|
/**
|
|
|
* Combines two or more arrays.
|
|
|
* @param items Additional items to add to the end of array1.
|
|
|
*/
|
|
|
concat(...items: ConcatArray<T>[]): T[];
|
|
|
/**
|
|
|
* Combines two or more arrays.
|
|
|
* @param items Additional items to add to the end of array1.
|
|
|
*/
|
|
|
concat(...items: (T | ConcatArray<T>)[]): T[];
|
|
|
/**
|
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
|
* @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
|
|
|
*/
|
|
|
join(separator?: string): string;
|
|
|
/**
|
|
|
* Returns a section of an array.
|
|
|
* @param start The beginning of the specified portion of the array.
|
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
|
*/
|
|
|
slice(start?: number, end?: number): T[];
|
|
|
/**
|
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
|
|
|
*/
|
|
|
indexOf(searchElement: T, fromIndex?: number): number;
|
|
|
/**
|
|
|
* Returns the index of the last occurrence of a specified value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
|
|
|
*/
|
|
|
lastIndexOf(searchElement: T, fromIndex?: number): number;
|
|
|
/**
|
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The every method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
every(callbackfn: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
|
|
|
/**
|
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The some method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
some(callbackfn: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
|
|
|
/**
|
|
|
* Performs the specified action for each element in an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;
|
|
|
/**
|
|
|
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];
|
|
|
/**
|
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
filter<S extends T>(callbackfn: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];
|
|
|
/**
|
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
filter(callbackfn: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
|
*/
|
|
|
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
|
|
|
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
|
*/
|
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
|
*/
|
|
|
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
|
|
|
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
|
*/
|
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
|
|
|
|
|
|
readonly [n: number]: T;
|
|
|
}
|
|
|
|
|
|
interface ConcatArray<T> {
|
|
|
readonly length: number;
|
|
|
readonly [n: number]: T;
|
|
|
join(separator?: string): string;
|
|
|
slice(start?: number, end?: number): T[];
|
|
|
}
|
|
|
|
|
|
interface Array<T> {
|
|
|
/**
|
|
|
* Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
|
|
|
*/
|
|
|
length: number;
|
|
|
/**
|
|
|
* Returns a string representation of an array.
|
|
|
*/
|
|
|
toString(): string;
|
|
|
/**
|
|
|
* Returns a string representation of an array. The elements are converted to string using their toLocalString methods.
|
|
|
*/
|
|
|
toLocaleString(): string;
|
|
|
/**
|
|
|
* Removes the last element from an array and returns it.
|
|
|
*/
|
|
|
pop(): T | undefined;
|
|
|
/**
|
|
|
* Appends new elements to an array, and returns the new length of the array.
|
|
|
* @param items New elements of the Array.
|
|
|
*/
|
|
|
push(...items: T[]): number;
|
|
|
/**
|
|
|
* Combines two or more arrays.
|
|
|
* @param items Additional items to add to the end of array1.
|
|
|
*/
|
|
|
concat(...items: ConcatArray<T>[]): T[];
|
|
|
/**
|
|
|
* Combines two or more arrays.
|
|
|
* @param items Additional items to add to the end of array1.
|
|
|
*/
|
|
|
concat(...items: (T | ConcatArray<T>)[]): T[];
|
|
|
/**
|
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
|
* @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
|
|
|
*/
|
|
|
join(separator?: string): string;
|
|
|
/**
|
|
|
* Reverses the elements in an Array.
|
|
|
*/
|
|
|
reverse(): T[];
|
|
|
/**
|
|
|
* Removes the first element from an array and returns it.
|
|
|
*/
|
|
|
shift(): T | undefined;
|
|
|
/**
|
|
|
* Returns a section of an array.
|
|
|
* @param start The beginning of the specified portion of the array.
|
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
|
*/
|
|
|
slice(start?: number, end?: number): T[];
|
|
|
/**
|
|
|
* Sorts an array.
|
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
|
|
* \`\`\`ts
|
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
|
* \`\`\`
|
|
|
*/
|
|
|
sort(compareFn?: (a: T, b: T) => number): this;
|
|
|
/**
|
|
|
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
|
|
* @param start The zero-based location in the array from which to start removing elements.
|
|
|
* @param deleteCount The number of elements to remove.
|
|
|
*/
|
|
|
splice(start: number, deleteCount?: number): T[];
|
|
|
/**
|
|
|
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
|
|
* @param start The zero-based location in the array from which to start removing elements.
|
|
|
* @param deleteCount The number of elements to remove.
|
|
|
* @param items Elements to insert into the array in place of the deleted elements.
|
|
|
*/
|
|
|
splice(start: number, deleteCount: number, ...items: T[]): T[];
|
|
|
/**
|
|
|
* Inserts new elements at the start of an array.
|
|
|
* @param items Elements to insert at the start of the Array.
|
|
|
*/
|
|
|
unshift(...items: T[]): number;
|
|
|
/**
|
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
|
|
|
*/
|
|
|
indexOf(searchElement: T, fromIndex?: number): number;
|
|
|
/**
|
|
|
* Returns the index of the last occurrence of a specified value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
|
|
|
*/
|
|
|
lastIndexOf(searchElement: T, fromIndex?: number): number;
|
|
|
/**
|
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The every method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
every(callbackfn: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
|
|
|
/**
|
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The some method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
some(callbackfn: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
|
|
|
/**
|
|
|
* Performs the specified action for each element in an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
|
|
|
/**
|
|
|
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
|
|
|
/**
|
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
filter<S extends T>(callbackfn: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
|
|
|
/**
|
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
filter(callbackfn: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
|
*/
|
|
|
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
|
|
|
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
|
*/
|
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
|
*/
|
|
|
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
|
|
|
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
|
*/
|
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
|
|
|
|
|
|
[n: number]: T;
|
|
|
}
|
|
|
|
|
|
interface ArrayConstructor {
|
|
|
new(arrayLength?: number): any[];
|
|
|
new <T>(arrayLength: number): T[];
|
|
|
new <T>(...items: T[]): T[];
|
|
|
(arrayLength?: number): any[];
|
|
|
<T>(arrayLength: number): T[];
|
|
|
<T>(...items: T[]): T[];
|
|
|
isArray(arg: any): arg is any[];
|
|
|
readonly prototype: any[];
|
|
|
}
|
|
|
|
|
|
declare var Array: ArrayConstructor;
|
|
|
|
|
|
interface TypedPropertyDescriptor<T> {
|
|
|
enumerable?: boolean;
|
|
|
configurable?: boolean;
|
|
|
writable?: boolean;
|
|
|
value?: T;
|
|
|
get?: () => T;
|
|
|
set?: (value: T) => void;
|
|
|
}
|
|
|
|
|
|
declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
|
|
|
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
|
|
|
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
|
|
|
declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
|
|
|
|
declare type PromiseConstructorLike = new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
|
|
|
|
|
|
interface PromiseLike<T> {
|
|
|
/**
|
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
|
*/
|
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Represents the completion of an asynchronous operation
|
|
|
*/
|
|
|
interface Promise<T> {
|
|
|
/**
|
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
|
*/
|
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
|
|
|
|
|
/**
|
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
|
* @returns A Promise for the completion of the callback.
|
|
|
*/
|
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
|
|
|
}
|
|
|
|
|
|
interface ArrayLike<T> {
|
|
|
readonly length: number;
|
|
|
readonly [n: number]: T;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Make all properties in T optional
|
|
|
*/
|
|
|
type Partial<T> = {
|
|
|
[P in keyof T]?: T[P];
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* Make all properties in T required
|
|
|
*/
|
|
|
type Required<T> = {
|
|
|
[P in keyof T]-?: T[P];
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* Make all properties in T readonly
|
|
|
*/
|
|
|
type Readonly<T> = {
|
|
|
readonly [P in keyof T]: T[P];
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* From T, pick a set of properties whose keys are in the union K
|
|
|
*/
|
|
|
type Pick<T, K extends keyof T> = {
|
|
|
[P in K]: T[P];
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* Construct a type with a set of properties K of type T
|
|
|
*/
|
|
|
type Record<K extends keyof any, T> = {
|
|
|
[P in K]: T;
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* Exclude from T those types that are assignable to U
|
|
|
*/
|
|
|
type Exclude<T, U> = T extends U ? never : T;
|
|
|
|
|
|
/**
|
|
|
* Extract from T those types that are assignable to U
|
|
|
*/
|
|
|
type Extract<T, U> = T extends U ? T : never;
|
|
|
|
|
|
/**
|
|
|
* Construct a type with the properties of T except for those in type K.
|
|
|
*/
|
|
|
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
|
|
|
|
|
|
/**
|
|
|
* Exclude null and undefined from T
|
|
|
*/
|
|
|
type NonNullable<T> = T extends null | undefined ? never : T;
|
|
|
|
|
|
/**
|
|
|
* Obtain the parameters of a function type in a tuple
|
|
|
*/
|
|
|
type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;
|
|
|
|
|
|
/**
|
|
|
* Obtain the parameters of a constructor function type in a tuple
|
|
|
*/
|
|
|
type ConstructorParameters<T extends new (...args: any) => any> = T extends new (...args: infer P) => any ? P : never;
|
|
|
|
|
|
/**
|
|
|
* Obtain the return type of a function type
|
|
|
*/
|
|
|
type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
|
|
|
|
|
|
/**
|
|
|
* Obtain the return type of a constructor function type
|
|
|
*/
|
|
|
type InstanceType<T extends new (...args: any) => any> = T extends new (...args: any) => infer R ? R : any;
|
|
|
|
|
|
/**
|
|
|
* Marker for contextual 'this' type
|
|
|
*/
|
|
|
interface ThisType<T> { }
|
|
|
|
|
|
/**
|
|
|
* Represents a raw buffer of binary data, which is used to store data for the
|
|
|
* different typed arrays. ArrayBuffers cannot be read from or written to directly,
|
|
|
* but can be passed to a typed array or DataView Object to interpret the raw
|
|
|
* buffer as needed.
|
|
|
*/
|
|
|
interface ArrayBuffer {
|
|
|
/**
|
|
|
* Read-only. The length of the ArrayBuffer (in bytes).
|
|
|
*/
|
|
|
readonly byteLength: number;
|
|
|
|
|
|
/**
|
|
|
* Returns a section of an ArrayBuffer.
|
|
|
*/
|
|
|
slice(begin: number, end?: number): ArrayBuffer;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.
|
|
|
*/
|
|
|
interface ArrayBufferTypes {
|
|
|
ArrayBuffer: ArrayBuffer;
|
|
|
}
|
|
|
type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
|
|
|
|
|
|
interface ArrayBufferConstructor {
|
|
|
readonly prototype: ArrayBuffer;
|
|
|
new(byteLength: number): ArrayBuffer;
|
|
|
isView(arg: any): arg is ArrayBufferView;
|
|
|
}
|
|
|
declare var ArrayBuffer: ArrayBufferConstructor;
|
|
|
|
|
|
interface ArrayBufferView {
|
|
|
/**
|
|
|
* The ArrayBuffer instance referenced by the array.
|
|
|
*/
|
|
|
buffer: ArrayBufferLike;
|
|
|
|
|
|
/**
|
|
|
* The length in bytes of the array.
|
|
|
*/
|
|
|
byteLength: number;
|
|
|
|
|
|
/**
|
|
|
* The offset in bytes of the array.
|
|
|
*/
|
|
|
byteOffset: number;
|
|
|
}
|
|
|
|
|
|
interface DataView {
|
|
|
readonly buffer: ArrayBuffer;
|
|
|
readonly byteLength: number;
|
|
|
readonly byteOffset: number;
|
|
|
/**
|
|
|
* Gets the Float32 value at the specified byte offset from the start of the view. There is
|
|
|
* no alignment constraint; multi-byte values may be fetched from any offset.
|
|
|
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
|
|
*/
|
|
|
getFloat32(byteOffset: number, littleEndian?: boolean): number;
|
|
|
|
|
|
/**
|
|
|
* Gets the Float64 value at the specified byte offset from the start of the view. There is
|
|
|
* no alignment constraint; multi-byte values may be fetched from any offset.
|
|
|
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
|
|
*/
|
|
|
getFloat64(byteOffset: number, littleEndian?: boolean): number;
|
|
|
|
|
|
/**
|
|
|
* Gets the Int8 value at the specified byte offset from the start of the view. There is
|
|
|
* no alignment constraint; multi-byte values may be fetched from any offset.
|
|
|
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
|
|
*/
|
|
|
getInt8(byteOffset: number): number;
|
|
|
|
|
|
/**
|
|
|
* Gets the Int16 value at the specified byte offset from the start of the view. There is
|
|
|
* no alignment constraint; multi-byte values may be fetched from any offset.
|
|
|
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
|
|
*/
|
|
|
getInt16(byteOffset: number, littleEndian?: boolean): number;
|
|
|
/**
|
|
|
* Gets the Int32 value at the specified byte offset from the start of the view. There is
|
|
|
* no alignment constraint; multi-byte values may be fetched from any offset.
|
|
|
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
|
|
*/
|
|
|
getInt32(byteOffset: number, littleEndian?: boolean): number;
|
|
|
|
|
|
/**
|
|
|
* Gets the Uint8 value at the specified byte offset from the start of the view. There is
|
|
|
* no alignment constraint; multi-byte values may be fetched from any offset.
|
|
|
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
|
|
*/
|
|
|
getUint8(byteOffset: number): number;
|
|
|
|
|
|
/**
|
|
|
* Gets the Uint16 value at the specified byte offset from the start of the view. There is
|
|
|
* no alignment constraint; multi-byte values may be fetched from any offset.
|
|
|
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
|
|
*/
|
|
|
getUint16(byteOffset: number, littleEndian?: boolean): number;
|
|
|
|
|
|
/**
|
|
|
* Gets the Uint32 value at the specified byte offset from the start of the view. There is
|
|
|
* no alignment constraint; multi-byte values may be fetched from any offset.
|
|
|
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
|
|
*/
|
|
|
getUint32(byteOffset: number, littleEndian?: boolean): number;
|
|
|
|
|
|
/**
|
|
|
* Stores an Float32 value at the specified byte offset from the start of the view.
|
|
|
* @param byteOffset The place in the buffer at which the value should be set.
|
|
|
* @param value The value to set.
|
|
|
* @param littleEndian If false or undefined, a big-endian value should be written,
|
|
|
* otherwise a little-endian value should be written.
|
|
|
*/
|
|
|
setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
|
|
|
|
|
|
/**
|
|
|
* Stores an Float64 value at the specified byte offset from the start of the view.
|
|
|
* @param byteOffset The place in the buffer at which the value should be set.
|
|
|
* @param value The value to set.
|
|
|
* @param littleEndian If false or undefined, a big-endian value should be written,
|
|
|
* otherwise a little-endian value should be written.
|
|
|
*/
|
|
|
setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
|
|
|
|
|
|
/**
|
|
|
* Stores an Int8 value at the specified byte offset from the start of the view.
|
|
|
* @param byteOffset The place in the buffer at which the value should be set.
|
|
|
* @param value The value to set.
|
|
|
*/
|
|
|
setInt8(byteOffset: number, value: number): void;
|
|
|
|
|
|
/**
|
|
|
* Stores an Int16 value at the specified byte offset from the start of the view.
|
|
|
* @param byteOffset The place in the buffer at which the value should be set.
|
|
|
* @param value The value to set.
|
|
|
* @param littleEndian If false or undefined, a big-endian value should be written,
|
|
|
* otherwise a little-endian value should be written.
|
|
|
*/
|
|
|
setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
|
|
|
|
|
|
/**
|
|
|
* Stores an Int32 value at the specified byte offset from the start of the view.
|
|
|
* @param byteOffset The place in the buffer at which the value should be set.
|
|
|
* @param value The value to set.
|
|
|
* @param littleEndian If false or undefined, a big-endian value should be written,
|
|
|
* otherwise a little-endian value should be written.
|
|
|
*/
|
|
|
setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
|
|
|
|
|
|
/**
|
|
|
* Stores an Uint8 value at the specified byte offset from the start of the view.
|
|
|
* @param byteOffset The place in the buffer at which the value should be set.
|
|
|
* @param value The value to set.
|
|
|
*/
|
|
|
setUint8(byteOffset: number, value: number): void;
|
|
|
|
|
|
/**
|
|
|
* Stores an Uint16 value at the specified byte offset from the start of the view.
|
|
|
* @param byteOffset The place in the buffer at which the value should be set.
|
|
|
* @param value The value to set.
|
|
|
* @param littleEndian If false or undefined, a big-endian value should be written,
|
|
|
* otherwise a little-endian value should be written.
|
|
|
*/
|
|
|
setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
|
|
|
|
|
|
/**
|
|
|
* Stores an Uint32 value at the specified byte offset from the start of the view.
|
|
|
* @param byteOffset The place in the buffer at which the value should be set.
|
|
|
* @param value The value to set.
|
|
|
* @param littleEndian If false or undefined, a big-endian value should be written,
|
|
|
* otherwise a little-endian value should be written.
|
|
|
*/
|
|
|
setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
|
|
|
}
|
|
|
|
|
|
interface DataViewConstructor {
|
|
|
new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
|
|
|
}
|
|
|
declare var DataView: DataViewConstructor;
|
|
|
|
|
|
/**
|
|
|
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
|
|
|
* number of bytes could not be allocated an exception is raised.
|
|
|
*/
|
|
|
interface Int8Array {
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* The ArrayBuffer instance referenced by the array.
|
|
|
*/
|
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
|
|
/**
|
|
|
* The length in bytes of the array.
|
|
|
*/
|
|
|
readonly byteLength: number;
|
|
|
|
|
|
/**
|
|
|
* The offset in bytes of the array.
|
|
|
*/
|
|
|
readonly byteOffset: number;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
|
* to the same array starting at position target
|
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
|
* length of the array.
|
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
|
* is treated as length+end.
|
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
|
*/
|
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The every method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
every(callbackfn: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after filling the section identified by start and end with value
|
|
|
* @param value value to fill array section with
|
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
|
* length+start where length is the length of the array.
|
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
|
* length+end.
|
|
|
*/
|
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The filter method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
filter(callbackfn: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;
|
|
|
|
|
|
/**
|
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;
|
|
|
|
|
|
/**
|
|
|
* Performs the specified action for each element in an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
|
*/
|
|
|
join(separator?: string): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* The length of the array.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
|
|
|
/**
|
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
|
* contains the results.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
|
* argument instead of an array value.
|
|
|
*/
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Reverses the elements in an Array.
|
|
|
*/
|
|
|
reverse(): Int8Array;
|
|
|
|
|
|
/**
|
|
|
* Sets a value or an array of values.
|
|
|
* @param array A typed or untyped array of values to set.
|
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
|
*/
|
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
|
|
/**
|
|
|
* Returns a section of an array.
|
|
|
* @param start The beginning of the specified portion of the array.
|
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
|
*/
|
|
|
slice(start?: number, end?: number): Int8Array;
|
|
|
|
|
|
/**
|
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The some method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
some(callbackfn: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Sorts an array.
|
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
|
|
* \`\`\`ts
|
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
|
* \`\`\`
|
|
|
*/
|
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
|
|
/**
|
|
|
* Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
|
|
|
* at begin, inclusive, up to end, exclusive.
|
|
|
* @param begin The index of the beginning of the array.
|
|
|
* @param end The index of the end of the array.
|
|
|
*/
|
|
|
subarray(begin?: number, end?: number): Int8Array;
|
|
|
|
|
|
/**
|
|
|
* Converts a number to a string by using the current locale.
|
|
|
*/
|
|
|
toLocaleString(): string;
|
|
|
|
|
|
/**
|
|
|
* Returns a string representation of an array.
|
|
|
*/
|
|
|
toString(): string;
|
|
|
|
|
|
[index: number]: number;
|
|
|
}
|
|
|
interface Int8ArrayConstructor {
|
|
|
readonly prototype: Int8Array;
|
|
|
new(length: number): Int8Array;
|
|
|
new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Int8Array;
|
|
|
new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int8Array;
|
|
|
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* Returns a new array from a set of elements.
|
|
|
* @param items A set of elements to include in the new array object.
|
|
|
*/
|
|
|
of(...items: number[]): Int8Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
*/
|
|
|
from(arrayLike: ArrayLike<number>): Int8Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
|
|
|
|
|
|
|
|
|
}
|
|
|
declare var Int8Array: Int8ArrayConstructor;
|
|
|
|
|
|
/**
|
|
|
* A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
|
|
|
* requested number of bytes could not be allocated an exception is raised.
|
|
|
*/
|
|
|
interface Uint8Array {
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* The ArrayBuffer instance referenced by the array.
|
|
|
*/
|
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
|
|
/**
|
|
|
* The length in bytes of the array.
|
|
|
*/
|
|
|
readonly byteLength: number;
|
|
|
|
|
|
/**
|
|
|
* The offset in bytes of the array.
|
|
|
*/
|
|
|
readonly byteOffset: number;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
|
* to the same array starting at position target
|
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
|
* length of the array.
|
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
|
* is treated as length+end.
|
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
|
*/
|
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The every method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
every(callbackfn: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after filling the section identified by start and end with value
|
|
|
* @param value value to fill array section with
|
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
|
* length+start where length is the length of the array.
|
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
|
* length+end.
|
|
|
*/
|
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The filter method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
filter(callbackfn: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;
|
|
|
|
|
|
/**
|
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;
|
|
|
|
|
|
/**
|
|
|
* Performs the specified action for each element in an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
|
*/
|
|
|
join(separator?: string): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* The length of the array.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
|
|
|
/**
|
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
|
* contains the results.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
|
* argument instead of an array value.
|
|
|
*/
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Reverses the elements in an Array.
|
|
|
*/
|
|
|
reverse(): Uint8Array;
|
|
|
|
|
|
/**
|
|
|
* Sets a value or an array of values.
|
|
|
* @param array A typed or untyped array of values to set.
|
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
|
*/
|
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
|
|
/**
|
|
|
* Returns a section of an array.
|
|
|
* @param start The beginning of the specified portion of the array.
|
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
|
*/
|
|
|
slice(start?: number, end?: number): Uint8Array;
|
|
|
|
|
|
/**
|
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The some method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
some(callbackfn: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Sorts an array.
|
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
|
|
* \`\`\`ts
|
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
|
* \`\`\`
|
|
|
*/
|
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
|
|
/**
|
|
|
* Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
|
|
|
* at begin, inclusive, up to end, exclusive.
|
|
|
* @param begin The index of the beginning of the array.
|
|
|
* @param end The index of the end of the array.
|
|
|
*/
|
|
|
subarray(begin?: number, end?: number): Uint8Array;
|
|
|
|
|
|
/**
|
|
|
* Converts a number to a string by using the current locale.
|
|
|
*/
|
|
|
toLocaleString(): string;
|
|
|
|
|
|
/**
|
|
|
* Returns a string representation of an array.
|
|
|
*/
|
|
|
toString(): string;
|
|
|
|
|
|
[index: number]: number;
|
|
|
}
|
|
|
|
|
|
interface Uint8ArrayConstructor {
|
|
|
readonly prototype: Uint8Array;
|
|
|
new(length: number): Uint8Array;
|
|
|
new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint8Array;
|
|
|
new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint8Array;
|
|
|
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* Returns a new array from a set of elements.
|
|
|
* @param items A set of elements to include in the new array object.
|
|
|
*/
|
|
|
of(...items: number[]): Uint8Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
*/
|
|
|
from(arrayLike: ArrayLike<number>): Uint8Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
|
|
|
|
|
|
}
|
|
|
declare var Uint8Array: Uint8ArrayConstructor;
|
|
|
|
|
|
/**
|
|
|
* A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
|
|
|
* If the requested number of bytes could not be allocated an exception is raised.
|
|
|
*/
|
|
|
interface Uint8ClampedArray {
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* The ArrayBuffer instance referenced by the array.
|
|
|
*/
|
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
|
|
/**
|
|
|
* The length in bytes of the array.
|
|
|
*/
|
|
|
readonly byteLength: number;
|
|
|
|
|
|
/**
|
|
|
* The offset in bytes of the array.
|
|
|
*/
|
|
|
readonly byteOffset: number;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
|
* to the same array starting at position target
|
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
|
* length of the array.
|
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
|
* is treated as length+end.
|
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
|
*/
|
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The every method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after filling the section identified by start and end with value
|
|
|
* @param value value to fill array section with
|
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
|
* length+start where length is the length of the array.
|
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
|
* length+end.
|
|
|
*/
|
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The filter method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
filter(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
|
|
|
|
|
|
/**
|
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;
|
|
|
|
|
|
/**
|
|
|
* Performs the specified action for each element in an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
|
*/
|
|
|
join(separator?: string): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* The length of the array.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
|
|
|
/**
|
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
|
* contains the results.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
|
* argument instead of an array value.
|
|
|
*/
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Reverses the elements in an Array.
|
|
|
*/
|
|
|
reverse(): Uint8ClampedArray;
|
|
|
|
|
|
/**
|
|
|
* Sets a value or an array of values.
|
|
|
* @param array A typed or untyped array of values to set.
|
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
|
*/
|
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
|
|
/**
|
|
|
* Returns a section of an array.
|
|
|
* @param start The beginning of the specified portion of the array.
|
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
|
*/
|
|
|
slice(start?: number, end?: number): Uint8ClampedArray;
|
|
|
|
|
|
/**
|
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The some method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Sorts an array.
|
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
|
|
* \`\`\`ts
|
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
|
* \`\`\`
|
|
|
*/
|
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
|
|
/**
|
|
|
* Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
|
|
|
* at begin, inclusive, up to end, exclusive.
|
|
|
* @param begin The index of the beginning of the array.
|
|
|
* @param end The index of the end of the array.
|
|
|
*/
|
|
|
subarray(begin?: number, end?: number): Uint8ClampedArray;
|
|
|
|
|
|
/**
|
|
|
* Converts a number to a string by using the current locale.
|
|
|
*/
|
|
|
toLocaleString(): string;
|
|
|
|
|
|
/**
|
|
|
* Returns a string representation of an array.
|
|
|
*/
|
|
|
toString(): string;
|
|
|
|
|
|
[index: number]: number;
|
|
|
}
|
|
|
|
|
|
interface Uint8ClampedArrayConstructor {
|
|
|
readonly prototype: Uint8ClampedArray;
|
|
|
new(length: number): Uint8ClampedArray;
|
|
|
new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
|
|
|
new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint8ClampedArray;
|
|
|
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* Returns a new array from a set of elements.
|
|
|
* @param items A set of elements to include in the new array object.
|
|
|
*/
|
|
|
of(...items: number[]): Uint8ClampedArray;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
*/
|
|
|
from(arrayLike: ArrayLike<number>): Uint8ClampedArray;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;
|
|
|
}
|
|
|
declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;
|
|
|
|
|
|
/**
|
|
|
* A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
|
|
|
* requested number of bytes could not be allocated an exception is raised.
|
|
|
*/
|
|
|
interface Int16Array {
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* The ArrayBuffer instance referenced by the array.
|
|
|
*/
|
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
|
|
/**
|
|
|
* The length in bytes of the array.
|
|
|
*/
|
|
|
readonly byteLength: number;
|
|
|
|
|
|
/**
|
|
|
* The offset in bytes of the array.
|
|
|
*/
|
|
|
readonly byteOffset: number;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
|
* to the same array starting at position target
|
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
|
* length of the array.
|
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
|
* is treated as length+end.
|
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
|
*/
|
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The every method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
every(callbackfn: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after filling the section identified by start and end with value
|
|
|
* @param value value to fill array section with
|
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
|
* length+start where length is the length of the array.
|
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
|
* length+end.
|
|
|
*/
|
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The filter method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
filter(callbackfn: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;
|
|
|
|
|
|
/**
|
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;
|
|
|
|
|
|
/**
|
|
|
* Performs the specified action for each element in an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
|
|
|
/**
|
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
|
*/
|
|
|
join(separator?: string): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* The length of the array.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
|
|
|
/**
|
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
|
* contains the results.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
|
* argument instead of an array value.
|
|
|
*/
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Reverses the elements in an Array.
|
|
|
*/
|
|
|
reverse(): Int16Array;
|
|
|
|
|
|
/**
|
|
|
* Sets a value or an array of values.
|
|
|
* @param array A typed or untyped array of values to set.
|
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
|
*/
|
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
|
|
/**
|
|
|
* Returns a section of an array.
|
|
|
* @param start The beginning of the specified portion of the array.
|
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
|
*/
|
|
|
slice(start?: number, end?: number): Int16Array;
|
|
|
|
|
|
/**
|
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The some method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
some(callbackfn: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Sorts an array.
|
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
|
|
* \`\`\`ts
|
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
|
* \`\`\`
|
|
|
*/
|
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
|
|
/**
|
|
|
* Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
|
|
|
* at begin, inclusive, up to end, exclusive.
|
|
|
* @param begin The index of the beginning of the array.
|
|
|
* @param end The index of the end of the array.
|
|
|
*/
|
|
|
subarray(begin?: number, end?: number): Int16Array;
|
|
|
|
|
|
/**
|
|
|
* Converts a number to a string by using the current locale.
|
|
|
*/
|
|
|
toLocaleString(): string;
|
|
|
|
|
|
/**
|
|
|
* Returns a string representation of an array.
|
|
|
*/
|
|
|
toString(): string;
|
|
|
|
|
|
[index: number]: number;
|
|
|
}
|
|
|
|
|
|
interface Int16ArrayConstructor {
|
|
|
readonly prototype: Int16Array;
|
|
|
new(length: number): Int16Array;
|
|
|
new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Int16Array;
|
|
|
new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int16Array;
|
|
|
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* Returns a new array from a set of elements.
|
|
|
* @param items A set of elements to include in the new array object.
|
|
|
*/
|
|
|
of(...items: number[]): Int16Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
*/
|
|
|
from(arrayLike: ArrayLike<number>): Int16Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
|
|
|
|
|
|
|
|
|
}
|
|
|
declare var Int16Array: Int16ArrayConstructor;
|
|
|
|
|
|
/**
|
|
|
* A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
|
|
|
* requested number of bytes could not be allocated an exception is raised.
|
|
|
*/
|
|
|
interface Uint16Array {
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* The ArrayBuffer instance referenced by the array.
|
|
|
*/
|
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
|
|
/**
|
|
|
* The length in bytes of the array.
|
|
|
*/
|
|
|
readonly byteLength: number;
|
|
|
|
|
|
/**
|
|
|
* The offset in bytes of the array.
|
|
|
*/
|
|
|
readonly byteOffset: number;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
|
* to the same array starting at position target
|
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
|
* length of the array.
|
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
|
* is treated as length+end.
|
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
|
*/
|
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The every method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
every(callbackfn: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after filling the section identified by start and end with value
|
|
|
* @param value value to fill array section with
|
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
|
* length+start where length is the length of the array.
|
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
|
* length+end.
|
|
|
*/
|
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The filter method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
filter(callbackfn: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;
|
|
|
|
|
|
/**
|
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;
|
|
|
|
|
|
/**
|
|
|
* Performs the specified action for each element in an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
|
*/
|
|
|
join(separator?: string): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* The length of the array.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
|
|
|
/**
|
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
|
* contains the results.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
|
* argument instead of an array value.
|
|
|
*/
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Reverses the elements in an Array.
|
|
|
*/
|
|
|
reverse(): Uint16Array;
|
|
|
|
|
|
/**
|
|
|
* Sets a value or an array of values.
|
|
|
* @param array A typed or untyped array of values to set.
|
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
|
*/
|
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
|
|
/**
|
|
|
* Returns a section of an array.
|
|
|
* @param start The beginning of the specified portion of the array.
|
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
|
*/
|
|
|
slice(start?: number, end?: number): Uint16Array;
|
|
|
|
|
|
/**
|
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The some method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
some(callbackfn: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Sorts an array.
|
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
|
|
* \`\`\`ts
|
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
|
* \`\`\`
|
|
|
*/
|
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
|
|
/**
|
|
|
* Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
|
|
|
* at begin, inclusive, up to end, exclusive.
|
|
|
* @param begin The index of the beginning of the array.
|
|
|
* @param end The index of the end of the array.
|
|
|
*/
|
|
|
subarray(begin?: number, end?: number): Uint16Array;
|
|
|
|
|
|
/**
|
|
|
* Converts a number to a string by using the current locale.
|
|
|
*/
|
|
|
toLocaleString(): string;
|
|
|
|
|
|
/**
|
|
|
* Returns a string representation of an array.
|
|
|
*/
|
|
|
toString(): string;
|
|
|
|
|
|
[index: number]: number;
|
|
|
}
|
|
|
|
|
|
interface Uint16ArrayConstructor {
|
|
|
readonly prototype: Uint16Array;
|
|
|
new(length: number): Uint16Array;
|
|
|
new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint16Array;
|
|
|
new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint16Array;
|
|
|
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* Returns a new array from a set of elements.
|
|
|
* @param items A set of elements to include in the new array object.
|
|
|
*/
|
|
|
of(...items: number[]): Uint16Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
*/
|
|
|
from(arrayLike: ArrayLike<number>): Uint16Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
|
|
|
|
|
|
|
|
|
}
|
|
|
declare var Uint16Array: Uint16ArrayConstructor;
|
|
|
/**
|
|
|
* A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
|
|
|
* requested number of bytes could not be allocated an exception is raised.
|
|
|
*/
|
|
|
interface Int32Array {
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* The ArrayBuffer instance referenced by the array.
|
|
|
*/
|
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
|
|
/**
|
|
|
* The length in bytes of the array.
|
|
|
*/
|
|
|
readonly byteLength: number;
|
|
|
|
|
|
/**
|
|
|
* The offset in bytes of the array.
|
|
|
*/
|
|
|
readonly byteOffset: number;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
|
* to the same array starting at position target
|
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
|
* length of the array.
|
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
|
* is treated as length+end.
|
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
|
*/
|
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The every method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
every(callbackfn: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after filling the section identified by start and end with value
|
|
|
* @param value value to fill array section with
|
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
|
* length+start where length is the length of the array.
|
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
|
* length+end.
|
|
|
*/
|
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The filter method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
filter(callbackfn: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;
|
|
|
|
|
|
/**
|
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;
|
|
|
|
|
|
/**
|
|
|
* Performs the specified action for each element in an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
|
*/
|
|
|
join(separator?: string): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* The length of the array.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
|
|
|
/**
|
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
|
* contains the results.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
|
* argument instead of an array value.
|
|
|
*/
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Reverses the elements in an Array.
|
|
|
*/
|
|
|
reverse(): Int32Array;
|
|
|
|
|
|
/**
|
|
|
* Sets a value or an array of values.
|
|
|
* @param array A typed or untyped array of values to set.
|
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
|
*/
|
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
|
|
/**
|
|
|
* Returns a section of an array.
|
|
|
* @param start The beginning of the specified portion of the array.
|
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
|
*/
|
|
|
slice(start?: number, end?: number): Int32Array;
|
|
|
|
|
|
/**
|
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The some method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
some(callbackfn: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Sorts an array.
|
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
|
|
* \`\`\`ts
|
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
|
* \`\`\`
|
|
|
*/
|
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
|
|
/**
|
|
|
* Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
|
|
|
* at begin, inclusive, up to end, exclusive.
|
|
|
* @param begin The index of the beginning of the array.
|
|
|
* @param end The index of the end of the array.
|
|
|
*/
|
|
|
subarray(begin?: number, end?: number): Int32Array;
|
|
|
|
|
|
/**
|
|
|
* Converts a number to a string by using the current locale.
|
|
|
*/
|
|
|
toLocaleString(): string;
|
|
|
|
|
|
/**
|
|
|
* Returns a string representation of an array.
|
|
|
*/
|
|
|
toString(): string;
|
|
|
|
|
|
[index: number]: number;
|
|
|
}
|
|
|
|
|
|
interface Int32ArrayConstructor {
|
|
|
readonly prototype: Int32Array;
|
|
|
new(length: number): Int32Array;
|
|
|
new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Int32Array;
|
|
|
new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int32Array;
|
|
|
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* Returns a new array from a set of elements.
|
|
|
* @param items A set of elements to include in the new array object.
|
|
|
*/
|
|
|
of(...items: number[]): Int32Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
*/
|
|
|
from(arrayLike: ArrayLike<number>): Int32Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
|
|
|
|
|
|
}
|
|
|
declare var Int32Array: Int32ArrayConstructor;
|
|
|
|
|
|
/**
|
|
|
* A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
|
|
|
* requested number of bytes could not be allocated an exception is raised.
|
|
|
*/
|
|
|
interface Uint32Array {
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* The ArrayBuffer instance referenced by the array.
|
|
|
*/
|
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
|
|
/**
|
|
|
* The length in bytes of the array.
|
|
|
*/
|
|
|
readonly byteLength: number;
|
|
|
|
|
|
/**
|
|
|
* The offset in bytes of the array.
|
|
|
*/
|
|
|
readonly byteOffset: number;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
|
* to the same array starting at position target
|
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
|
* length of the array.
|
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
|
* is treated as length+end.
|
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
|
*/
|
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The every method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
every(callbackfn: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after filling the section identified by start and end with value
|
|
|
* @param value value to fill array section with
|
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
|
* length+start where length is the length of the array.
|
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
|
* length+end.
|
|
|
*/
|
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The filter method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
filter(callbackfn: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;
|
|
|
|
|
|
/**
|
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;
|
|
|
|
|
|
/**
|
|
|
* Performs the specified action for each element in an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
|
|
|
/**
|
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
|
*/
|
|
|
join(separator?: string): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* The length of the array.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
|
|
|
/**
|
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
|
* contains the results.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
|
* argument instead of an array value.
|
|
|
*/
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Reverses the elements in an Array.
|
|
|
*/
|
|
|
reverse(): Uint32Array;
|
|
|
|
|
|
/**
|
|
|
* Sets a value or an array of values.
|
|
|
* @param array A typed or untyped array of values to set.
|
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
|
*/
|
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
|
|
/**
|
|
|
* Returns a section of an array.
|
|
|
* @param start The beginning of the specified portion of the array.
|
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
|
*/
|
|
|
slice(start?: number, end?: number): Uint32Array;
|
|
|
|
|
|
/**
|
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The some method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
some(callbackfn: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Sorts an array.
|
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
|
|
* \`\`\`ts
|
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
|
* \`\`\`
|
|
|
*/
|
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
|
|
/**
|
|
|
* Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
|
|
|
* at begin, inclusive, up to end, exclusive.
|
|
|
* @param begin The index of the beginning of the array.
|
|
|
* @param end The index of the end of the array.
|
|
|
*/
|
|
|
subarray(begin?: number, end?: number): Uint32Array;
|
|
|
|
|
|
/**
|
|
|
* Converts a number to a string by using the current locale.
|
|
|
*/
|
|
|
toLocaleString(): string;
|
|
|
|
|
|
/**
|
|
|
* Returns a string representation of an array.
|
|
|
*/
|
|
|
toString(): string;
|
|
|
|
|
|
[index: number]: number;
|
|
|
}
|
|
|
|
|
|
interface Uint32ArrayConstructor {
|
|
|
readonly prototype: Uint32Array;
|
|
|
new(length: number): Uint32Array;
|
|
|
new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint32Array;
|
|
|
new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint32Array;
|
|
|
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* Returns a new array from a set of elements.
|
|
|
* @param items A set of elements to include in the new array object.
|
|
|
*/
|
|
|
of(...items: number[]): Uint32Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
*/
|
|
|
from(arrayLike: ArrayLike<number>): Uint32Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
|
|
|
|
|
|
}
|
|
|
declare var Uint32Array: Uint32ArrayConstructor;
|
|
|
|
|
|
/**
|
|
|
* A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
|
|
|
* of bytes could not be allocated an exception is raised.
|
|
|
*/
|
|
|
interface Float32Array {
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* The ArrayBuffer instance referenced by the array.
|
|
|
*/
|
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
|
|
/**
|
|
|
* The length in bytes of the array.
|
|
|
*/
|
|
|
readonly byteLength: number;
|
|
|
|
|
|
/**
|
|
|
* The offset in bytes of the array.
|
|
|
*/
|
|
|
readonly byteOffset: number;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
|
* to the same array starting at position target
|
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
|
* length of the array.
|
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
|
* is treated as length+end.
|
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
|
*/
|
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The every method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
every(callbackfn: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after filling the section identified by start and end with value
|
|
|
* @param value value to fill array section with
|
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
|
* length+start where length is the length of the array.
|
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
|
* length+end.
|
|
|
*/
|
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The filter method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
filter(callbackfn: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;
|
|
|
|
|
|
/**
|
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;
|
|
|
|
|
|
/**
|
|
|
* Performs the specified action for each element in an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
|
*/
|
|
|
join(separator?: string): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* The length of the array.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
|
|
|
/**
|
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
|
* contains the results.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
|
* argument instead of an array value.
|
|
|
*/
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Reverses the elements in an Array.
|
|
|
*/
|
|
|
reverse(): Float32Array;
|
|
|
|
|
|
/**
|
|
|
* Sets a value or an array of values.
|
|
|
* @param array A typed or untyped array of values to set.
|
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
|
*/
|
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
|
|
/**
|
|
|
* Returns a section of an array.
|
|
|
* @param start The beginning of the specified portion of the array.
|
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
|
*/
|
|
|
slice(start?: number, end?: number): Float32Array;
|
|
|
|
|
|
/**
|
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The some method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
some(callbackfn: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Sorts an array.
|
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
|
|
* \`\`\`ts
|
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
|
* \`\`\`
|
|
|
*/
|
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
|
|
/**
|
|
|
* Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
|
|
|
* at begin, inclusive, up to end, exclusive.
|
|
|
* @param begin The index of the beginning of the array.
|
|
|
* @param end The index of the end of the array.
|
|
|
*/
|
|
|
subarray(begin?: number, end?: number): Float32Array;
|
|
|
|
|
|
/**
|
|
|
* Converts a number to a string by using the current locale.
|
|
|
*/
|
|
|
toLocaleString(): string;
|
|
|
|
|
|
/**
|
|
|
* Returns a string representation of an array.
|
|
|
*/
|
|
|
toString(): string;
|
|
|
|
|
|
[index: number]: number;
|
|
|
}
|
|
|
|
|
|
interface Float32ArrayConstructor {
|
|
|
readonly prototype: Float32Array;
|
|
|
new(length: number): Float32Array;
|
|
|
new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Float32Array;
|
|
|
new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Float32Array;
|
|
|
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* Returns a new array from a set of elements.
|
|
|
* @param items A set of elements to include in the new array object.
|
|
|
*/
|
|
|
of(...items: number[]): Float32Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
*/
|
|
|
from(arrayLike: ArrayLike<number>): Float32Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
|
|
|
|
|
|
|
|
|
}
|
|
|
declare var Float32Array: Float32ArrayConstructor;
|
|
|
|
|
|
/**
|
|
|
* A typed array of 64-bit float values. The contents are initialized to 0. If the requested
|
|
|
* number of bytes could not be allocated an exception is raised.
|
|
|
*/
|
|
|
interface Float64Array {
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* The ArrayBuffer instance referenced by the array.
|
|
|
*/
|
|
|
readonly buffer: ArrayBufferLike;
|
|
|
|
|
|
/**
|
|
|
* The length in bytes of the array.
|
|
|
*/
|
|
|
readonly byteLength: number;
|
|
|
|
|
|
/**
|
|
|
* The offset in bytes of the array.
|
|
|
*/
|
|
|
readonly byteOffset: number;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after copying a section of the array identified by start and end
|
|
|
* to the same array starting at position target
|
|
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
|
* length of the array.
|
|
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
|
* is treated as length+end.
|
|
|
* @param end If not specified, length of the this object is used as its default value.
|
|
|
*/
|
|
|
copyWithin(target: number, start: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Determines whether all the members of an array satisfy the specified test.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The every method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value false, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
every(callbackfn: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Returns the this object after filling the section identified by start and end with value
|
|
|
* @param value value to fill array section with
|
|
|
* @param start index to start filling the array at. If start is negative, it is treated as
|
|
|
* length+start where length is the length of the array.
|
|
|
* @param end index to stop filling the array at. If end is negative, it is treated as
|
|
|
* length+end.
|
|
|
*/
|
|
|
fill(value: number, start?: number, end?: number): this;
|
|
|
|
|
|
/**
|
|
|
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The filter method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
filter(callbackfn: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;
|
|
|
|
|
|
/**
|
|
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
|
* immediately returns that element value. Otherwise, find returns undefined.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
|
* otherwise.
|
|
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
|
* order, until it finds one where predicate returns true. If such an element is found,
|
|
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
|
* predicate. If it is not provided, undefined is used instead.
|
|
|
*/
|
|
|
findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;
|
|
|
|
|
|
/**
|
|
|
* Performs the specified action for each element in an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the first occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* Adds all the elements of an array separated by the specified separator string.
|
|
|
* @param separator A string used to separate one element of an array from the next in the
|
|
|
* resulting String. If omitted, the array elements are separated with a comma.
|
|
|
*/
|
|
|
join(separator?: string): string;
|
|
|
|
|
|
/**
|
|
|
* Returns the index of the last occurrence of a value in an array.
|
|
|
* @param searchElement The value to locate in the array.
|
|
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
|
* search starts at index 0.
|
|
|
*/
|
|
|
lastIndexOf(searchElement: number, fromIndex?: number): number;
|
|
|
|
|
|
/**
|
|
|
* The length of the array.
|
|
|
*/
|
|
|
readonly length: number;
|
|
|
|
|
|
/**
|
|
|
* Calls a defined callback function on each element of an array, and returns an array that
|
|
|
* contains the results.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The map method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
|
|
|
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
|
* the callback function is the accumulated result, and is provided as an argument in the next
|
|
|
* call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
|
|
|
* callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
|
* argument instead of an array value.
|
|
|
*/
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
|
|
|
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
|
|
|
|
|
|
/**
|
|
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
|
* The return value of the callback function is the accumulated result, and is provided as an
|
|
|
* argument in the next call to the callback function.
|
|
|
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
|
|
|
* the callbackfn function one time for each element in the array.
|
|
|
* @param initialValue If initialValue is specified, it is used as the initial value to start
|
|
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
|
* instead of an array value.
|
|
|
*/
|
|
|
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
|
|
|
|
|
|
/**
|
|
|
* Reverses the elements in an Array.
|
|
|
*/
|
|
|
reverse(): Float64Array;
|
|
|
|
|
|
/**
|
|
|
* Sets a value or an array of values.
|
|
|
* @param array A typed or untyped array of values to set.
|
|
|
* @param offset The index in the current array at which the values are to be written.
|
|
|
*/
|
|
|
set(array: ArrayLike<number>, offset?: number): void;
|
|
|
|
|
|
/**
|
|
|
* Returns a section of an array.
|
|
|
* @param start The beginning of the specified portion of the array.
|
|
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
|
*/
|
|
|
slice(start?: number, end?: number): Float64Array;
|
|
|
|
|
|
/**
|
|
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
|
* @param callbackfn A function that accepts up to three arguments. The some method calls
|
|
|
* the callbackfn function for each element in the array until the callbackfn returns a value
|
|
|
* which is coercible to the Boolean value true, or until the end of the array.
|
|
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
|
* If thisArg is omitted, undefined is used as the this value.
|
|
|
*/
|
|
|
some(callbackfn: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
|
|
|
|
|
|
/**
|
|
|
* Sorts an array.
|
|
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
|
* a negative value if first argument is less than second argument, zero if they're equal and a positive
|
|
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
|
|
* \`\`\`ts
|
|
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
|
* \`\`\`
|
|
|
*/
|
|
|
sort(compareFn?: (a: number, b: number) => number): this;
|
|
|
|
|
|
/**
|
|
|
* at begin, inclusive, up to end, exclusive.
|
|
|
* @param begin The index of the beginning of the array.
|
|
|
* @param end The index of the end of the array.
|
|
|
*/
|
|
|
subarray(begin?: number, end?: number): Float64Array;
|
|
|
|
|
|
toString(): string;
|
|
|
|
|
|
[index: number]: number;
|
|
|
}
|
|
|
|
|
|
interface Float64ArrayConstructor {
|
|
|
readonly prototype: Float64Array;
|
|
|
new(length: number): Float64Array;
|
|
|
new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Float64Array;
|
|
|
new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Float64Array;
|
|
|
|
|
|
/**
|
|
|
* The size in bytes of each element in the array.
|
|
|
*/
|
|
|
readonly BYTES_PER_ELEMENT: number;
|
|
|
|
|
|
/**
|
|
|
* Returns a new array from a set of elements.
|
|
|
* @param items A set of elements to include in the new array object.
|
|
|
*/
|
|
|
of(...items: number[]): Float64Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
*/
|
|
|
from(arrayLike: ArrayLike<number>): Float64Array;
|
|
|
|
|
|
/**
|
|
|
* Creates an array from an array-like or iterable object.
|
|
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
|
* @param mapfn A mapping function to call on every element of the array.
|
|
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
|
*/
|
|
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
|
|
|
|
|
|
}
|
|
|
declare var Float64Array: Float64ArrayConstructor;
|
|
|
|
|
|
/////////////////////////////
|
|
|
/// ECMAScript Internationalization API
|
|
|
/////////////////////////////
|
|
|
|
|
|
declare namespace Intl {
|
|
|
interface CollatorOptions {
|
|
|
usage?: string;
|
|
|
localeMatcher?: string;
|
|
|
numeric?: boolean;
|
|
|
caseFirst?: string;
|
|
|
sensitivity?: string;
|
|
|
ignorePunctuation?: boolean;
|
|
|
}
|
|
|
|
|
|
interface ResolvedCollatorOptions {
|
|
|
locale: string;
|
|
|
usage: string;
|
|
|
sensitivity: string;
|
|
|
ignorePunctuation: boolean;
|
|
|
collation: string;
|
|
|
caseFirst: string;
|
|
|
numeric: boolean;
|
|
|
}
|
|
|
|
|
|
interface Collator {
|
|
|
compare(x: string, y: string): number;
|
|
|
resolvedOptions(): ResolvedCollatorOptions;
|
|
|
}
|
|
|
var Collator: {
|
|
|
new(locales?: string | string[], options?: CollatorOptions): Collator;
|
|
|
(locales?: string | string[], options?: CollatorOptions): Collator;
|
|
|
supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
|
|
|
};
|
|
|
|
|
|
interface NumberFormatOptions {
|
|
|
localeMatcher?: string;
|
|
|
style?: string;
|
|
|
currency?: string;
|
|
|
currencyDisplay?: string;
|
|
|
useGrouping?: boolean;
|
|
|
minimumIntegerDigits?: number;
|
|
|
minimumFractionDigits?: number;
|
|
|
maximumFractionDigits?: number;
|
|
|
minimumSignificantDigits?: number;
|
|
|
maximumSignificantDigits?: number;
|
|
|
}
|
|
|
|
|
|
interface ResolvedNumberFormatOptions {
|
|
|
locale: string;
|
|
|
numberingSystem: string;
|
|
|
style: string;
|
|
|
currency?: string;
|
|
|
currencyDisplay?: string;
|
|
|
minimumIntegerDigits: number;
|
|
|
minimumFractionDigits: number;
|
|
|
maximumFractionDigits: number;
|
|
|
minimumSignificantDigits?: number;
|
|
|
maximumSignificantDigits?: number;
|
|
|
useGrouping: boolean;
|
|
|
}
|
|
|
|
|
|
interface NumberFormat {
|
|
|
format(value: number): string;
|
|
|
resolvedOptions(): ResolvedNumberFormatOptions;
|
|
|
}
|
|
|
var NumberFormat: {
|
|
|
new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
|
|
(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
|
|
supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
|
|
|
};
|
|
|
|
|
|
interface DateTimeFormatOptions {
|
|
|
localeMatcher?: string;
|
|
|
weekday?: string;
|
|
|
era?: string;
|
|
|
year?: string;
|
|
|
month?: string;
|
|
|
day?: string;
|
|
|
hour?: string;
|
|
|
minute?: string;
|
|
|
second?: string;
|
|
|
timeZoneName?: string;
|
|
|
formatMatcher?: string;
|
|
|
hour12?: boolean;
|
|
|
timeZone?: string;
|
|
|
}
|
|
|
|
|
|
interface ResolvedDateTimeFormatOptions {
|
|
|
locale: string;
|
|
|
calendar: string;
|
|
|
numberingSystem: string;
|
|
|
timeZone: string;
|
|
|
hour12?: boolean;
|
|
|
weekday?: string;
|
|
|
era?: string;
|
|
|
year?: string;
|
|
|
month?: string;
|
|
|
day?: string;
|
|
|
hour?: string;
|
|
|
minute?: string;
|
|
|
second?: string;
|
|
|
timeZoneName?: string;
|
|
|
}
|
|
|
|
|
|
interface DateTimeFormat {
|
|
|
format(date?: Date | number): string;
|
|
|
resolvedOptions(): ResolvedDateTimeFormatOptions;
|
|
|
}
|
|
|
var DateTimeFormat: {
|
|
|
new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
|
|
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
|
|
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
|
|
|
};
|
|
|
}
|
|
|
|
|
|
interface String {
|
|
|
/**
|
|
|
* Determines whether two strings are equivalent in the current or specified locale.
|
|
|
* @param that String to compare to target string
|
|
|
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
|
|
|
* @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
|
|
|
*/
|
|
|
localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
|
|
}
|
|
|
|
|
|
interface Number {
|
|
|
/**
|
|
|
* Converts a number to a string by using the current or specified locale.
|
|
|
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
|
* @param options An object that contains one or more properties that specify comparison options.
|
|
|
*/
|
|
|
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
|
}
|
|
|
|
|
|
interface Date {
|
|
|
/**
|
|
|
* Converts a date and time to a string by using the current or specified locale.
|
|
|
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
|
* @param options An object that contains one or more properties that specify comparison options.
|
|
|
*/
|
|
|
toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
|
|
/**
|
|
|
* Converts a date to a string by using the current or specified locale.
|
|
|
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
|
* @param options An object that contains one or more properties that specify comparison options.
|
|
|
*/
|
|
|
toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
|
|
|
|
|
/**
|
|
|
* Converts a time to a string by using the current or specified locale.
|
|
|
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
|
* @param options An object that contains one or more properties that specify comparison options.
|
|
|
*/
|
|
|
toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
|
|
}
|
|
|
`,Bc=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
`+_c+""+su+""+Lu+""+ou+""+yc+""+$l+""+Rc+""+bs+""+Mc+""+Nl+"",uu=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
`+Bc+""+Gc+""+lu+""+Fc+""+cu+"",du=`/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
and limitations under the License.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
`+_c+""+Gc+""+Fc+""+cu+"",ec={NAME:"defaultLib:lib.d.ts",CONTENTS:du},Vc={NAME:"defaultLib:lib.es6.d.ts",CONTENTS:uu},al=function(){function s(b,V){this._extraLibs=Object.create(null),this._languageService=zs.c(this),this._ctx=b,this._compilerOptions=V.compilerOptions,this._extraLibs=V.extraLibs}return s.prototype.getCompilationSettings=function(){return this._compilerOptions},s.prototype.getScriptFileNames=function(){var b=this._ctx.getMirrorModels().map(function(V){return V.uri.toString()});return b.concat(Object.keys(this._extraLibs))},s.prototype._getModel=function(b){for(var V=this._ctx.getMirrorModels(),Me=0;Me<V.length;Me++)if(V[Me].uri.toString()===b)return V[Me];return null},s.prototype.getScriptVersion=function(b){var V=this._getModel(b);return V?V.version.toString():this.isDefaultLibFileName(b)?"1":b in this._extraLibs?String(this._extraLibs[b].version):""},s.prototype.getScriptSnapshot=function(b){var V,Me=this._getModel(b);if(Me)V=Me.getValue();else if(b in this._extraLibs)V=this._extraLibs[b].content;else if(b===ec.NAME)V=ec.CONTENTS;else if(b===Vc.NAME)V=Vc.CONTENTS;else return;return{getText:function(an,mn){return V.substring(an,mn)},getLength:function(){return V.length},getChangeRange:function(){return}}},s.prototype.getScriptKind=function(b){var V=b.substr(b.lastIndexOf(".")+1);switch(V){case"ts":return zs.a.TS;case"tsx":return zs.a.TSX;case"js":return zs.a.JS;case"jsx":return zs.a.JSX;default:return this.getCompilationSettings().allowJs?zs.a.JS:zs.a.TS}},s.prototype.getCurrentDirectory=function(){return""},s.prototype.getDefaultLibFileName=function(b){return(b.target||zs.b.ES5)<=zs.b.ES5?ec.NAME:Vc.NAME},s.prototype.isDefaultLibFileName=function(b){return b===this.getDefaultLibFileName(this._compilerOptions)},s.clearFiles=function(b){return b.forEach(function(V){V.file=void 0;var Me=V.relatedInformation;Me&&Me.forEach(function(an){return an.file=void 0})}),b},s.prototype.getSyntacticDiagnostics=function(b){var V=this._languageService.getSyntacticDiagnostics(b);return Promise.resolve(s.clearFiles(V))},s.prototype.getSemanticDiagnostics=function(b){var V=this._languageService.getSemanticDiagnostics(b);return Promise.resolve(s.clearFiles(V))},s.prototype.getSuggestionDiagnostics=function(b){var V=this._languageService.getSuggestionDiagnostics(b);return Promise.resolve(s.clearFiles(V))},s.prototype.getCompilerOptionsDiagnostics=function(b){var V=this._languageService.getCompilerOptionsDiagnostics();return Promise.resolve(s.clearFiles(V))},s.prototype.getCompletionsAtPosition=function(b,V){return Promise.resolve(this._languageService.getCompletionsAtPosition(b,V,void 0))},s.prototype.getCompletionEntryDetails=function(b,V,Me){return Promise.resolve(this._languageService.getCompletionEntryDetails(b,V,Me,void 0,void 0,void 0))},s.prototype.getSignatureHelpItems=function(b,V){return Promise.resolve(this._languageService.getSignatureHelpItems(b,V,void 0))},s.prototype.getQuickInfoAtPosition=function(b,V){return Promise.resolve(this._languageService.getQuickInfoAtPosition(b,V))},s.prototype.getOccurrencesAtPosition=function(b,V){return Promise.resolve(this._languageService.getOccurrencesAtPosition(b,V))},s.prototype.getDefinitionAtPosition=function(b,V){return Promise.resolve(this._languageService.getDefinitionAtPosition(b,V))},s.prototype.getReferencesAtPosition=function(b,V){return Promise.resolve(this._languageService.getReferencesAtPosition(b,V))},s.prototype.getNavigationBarItems=function(b){return Promise.resolve(this._languageService.getNavigationBarItems(b))},s.prototype.getFormattingEditsForDocument=function(b,V){return Promise.resolve(this._languageService.getFormattingEditsForDocument(b,V))},s.prototype.getFormattingEditsForRange=function(b,V,Me,an){return Promise.resolve(this._languageService.getFormattingEditsForRange(b,V,Me,an))},s.prototype.getFormattingEditsAfterKeystroke=function(b,V,Me,an){return Promise.resolve(this._languageService.getFormattingEditsAfterKeystroke(b,V,Me,an))},s.prototype.findRenameLocations=function(b,V,Me,an,mn){return Promise.resolve(this._languageService.findRenameLocations(b,V,Me,an,mn))},s.prototype.getRenameInfo=function(b,V,Me){return Promise.resolve(this._languageService.getRenameInfo(b,V,Me))},s.prototype.getEmitOutput=function(b){return Promise.resolve(this._languageService.getEmitOutput(b))},s.prototype.getCodeFixesAtPosition=function(b,V,Me,an,mn){var zn={};return Promise.resolve(this._languageService.getCodeFixesAtPosition(b,V,Me,an,mn,zn))},s.prototype.updateExtraLibs=function(b){this._extraLibs=b},s}();function Xs(s,b){return new al(s,b)}self.onmessage=function(){Zl(function(s,b){return new al(s,b)})}},"33yf":function(ru,Ui,co){(function(li){function qi(xr,_i){for(var Mi=0,sn=xr.length-1;sn>=0;sn--){var Wo=xr[sn];Wo==="."?xr.splice(sn,1):Wo===".."?(xr.splice(sn,1),Mi++):Mi&&(xr.splice(sn,1),Mi--)}if(_i)for(;Mi--;Mi)xr.unshift("..");return xr}Ui.resolve=function(){for(var xr="",_i=!1,Mi=arguments.length-1;Mi>=-1&&!_i;Mi--){var sn=Mi>=0?arguments[Mi]:li.cwd();if(typeof sn!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!sn)continue;xr=sn+"/"+xr,_i=sn.charAt(0)==="/"}return xr=qi(Tr(xr.split("/"),function(Wo){return!!Wo}),!_i).join("/"),(_i?"/":"")+xr||"."},Ui.normalize=function(xr){var _i=Ui.isAbsolute(xr),Mi=Rr(xr,-1)==="/";return xr=qi(Tr(xr.split("/"),function(sn){return!!sn}),!_i).join("/"),!xr&&!_i&&(xr="."),xr&&Mi&&(xr+="/"),(_i?"/":"")+xr},Ui.isAbsolute=function(xr){return xr.charAt(0)==="/"},Ui.join=function(){var xr=Array.prototype.slice.call(arguments,0);return Ui.normalize(Tr(xr,function(_i,Mi){if(typeof _i!="string")throw new TypeError("Arguments to path.join must be strings");return _i}).join("/"))},Ui.relative=function(xr,_i){xr=Ui.resolve(xr).substr(1),_i=Ui.resolve(_i).substr(1);function Mi(Ti){for(var so=0;so<Ti.length&&!(Ti[so]!=="");so++);for(var Xo=Ti.length-1;Xo>=0&&!(Ti[Xo]!=="");Xo--);return so>Xo?[]:Ti.slice(so,Xo-so+1)}for(var sn=Mi(xr.split("/")),Wo=Mi(_i.split("/")),As=Math.min(sn.length,Wo.length),pl=As,zo=0;zo<As;zo++)if(sn[zo]!==Wo[zo]){pl=zo;break}for(var Aa=[],zo=pl;zo<sn.length;zo++)Aa.push("..");return Aa=Aa.concat(Wo.slice(pl)),Aa.join("/")},Ui.sep="/",Ui.delimiter=":",Ui.dirname=function(xr){if(typeof xr!="string"&&(xr=xr+""),xr.length===0)return".";for(var _i=xr.charCodeAt(0),Mi=_i===47,sn=-1,Wo=!0,As=xr.length-1;As>=1;--As)if(_i=xr.charCodeAt(As),_i===47){if(!Wo){sn=As;break}}else Wo=!1;return sn===-1?Mi?"/":".":Mi&&sn===1?"/":xr.slice(0,sn)};function Bo(xr){typeof xr!="string"&&(xr=xr+"");var _i=0,Mi=-1,sn=!0,Wo;for(Wo=xr.length-1;Wo>=0;--Wo)if(xr.charCodeAt(Wo)===47){if(!sn){_i=Wo+1;break}}else Mi===-1&&(sn=!1,Mi=Wo+1);return Mi===-1?"":xr.slice(_i,Mi)}Ui.basename=function(xr,_i){var Mi=Bo(xr);return _i&&Mi.substr(-1*_i.length)===_i&&(Mi=Mi.substr(0,Mi.length-_i.length)),Mi},Ui.extname=function(xr){typeof xr!="string"&&(xr=xr+"");for(var _i=-1,Mi=0,sn=-1,Wo=!0,As=0,pl=xr.length-1;pl>=0;--pl){var zo=xr.charCodeAt(pl);if(zo===47){if(!Wo){Mi=pl+1;break}continue}sn===-1&&(Wo=!1,sn=pl+1),zo===46?_i===-1?_i=pl:As!==1&&(As=1):_i!==-1&&(As=-1)}return _i===-1||sn===-1||As===0||As===1&&_i===sn-1&&_i===Mi+1?"":xr.slice(_i,sn)};function Tr(xr,_i){if(xr.filter)return xr.filter(_i);for(var Mi=[],sn=0;sn<xr.length;sn++)_i(xr[sn],sn,xr)&&Mi.push(xr[sn]);return Mi}var Rr="ab".substr(-1)==="b"?function(xr,_i,Mi){return xr.substr(_i,Mi)}:function(xr,_i,Mi){return _i<0&&(_i=xr.length+_i),xr.substr(_i,Mi)}}).call(this,co("Q2Ig"))},IyRk:function(ru,Ui){(function(co){ru.exports=function(){var li={873:function(Tr){var Rr;Rr=function(){return this}();try{Rr=Rr||new Function("return this")()}catch(xr){typeof window=="object"&&(Rr=window)}Tr.exports=Rr}},qi={};function Bo(Tr){if(qi[Tr])return qi[Tr].exports;var Rr=qi[Tr]={exports:{}},xr=!0;try{li[Tr](Rr,Rr.exports,Bo),xr=!1}finally{xr&&delete qi[Tr]}return Rr.exports}return Bo.ab=co+"/",Bo(873)}()}).call(this,"/")},MNsG:function(ru,Ui,co){"use strict";(function(li,qi){co.d(Ui,"c",function(){return Od}),co.d(Ui,"b",function(){return o}),co.d(Ui,"a",function(){return Ee});var Bo="en",Tr=!1,Rr=!1,xr=!1,_i=!1,Mi=!1,sn=!1,Wo=void 0,As=Bo,pl=void 0,zo=void 0,Aa=typeof li!="undefined"&&typeof li.versions!="undefined"&&typeof li.versions.electron!="undefined"&&li.type==="renderer";if(typeof navigator=="object"&&!Aa)zo=navigator.userAgent,Tr=zo.indexOf("Windows")>=0,Rr=zo.indexOf("Macintosh")>=0,sn=zo.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,xr=zo.indexOf("Linux")>=0,Mi=!0,Wo=navigator.language,As=Wo;else if(typeof li=="object"){Tr=li.platform==="win32",Rr=li.platform==="darwin",xr=li.platform==="linux",Wo=Bo,As=Bo;var Ti=Object({NODE_ENV:"production"}).VSCODE_NLS_CONFIG;if(Ti)try{var so=JSON.parse(Ti),Xo=so.availableLanguages["*"];Wo=so.locale,As=Xo||Bo,pl=so._translationsConfigFile}catch(he){}_i=!0}var Cu=0;Rr?Cu=1:Tr?Cu=3:xr&&(Cu=2);var Od=Tr,Du=Rr,Pp=xr,e=_i,o=Mi,M=sn,qe=typeof self=="object"?self:typeof qi=="object"?qi:{},Ee=qe,Ge=function(){if(Ee.setImmediate)return Ee.setImmediate.bind(Ee);if(typeof Ee.postMessage=="function"&&!Ee.importScripts){var ee=[];Ee.addEventListener("message",function(Oe){if(Oe.data&&Oe.data.vscodeSetImmediateId)for(var N=0,Te=ee.length;N<Te;N++){var ie=ee[N];if(ie.id===Oe.data.vscodeSetImmediateId){ee.splice(N,1),ie.callback();return}}});var f=0;return function(Oe){var N=++f;ee.push({id:N,callback:Oe}),Ee.postMessage({vscodeSetImmediateId:N},"*")}}if(typeof li!="undefined"&&typeof li.nextTick=="function")return li.nextTick.bind(li);var J=Promise.resolve();return function(Oe){return J.then(Oe)}}(),Be=Rr?2:Tr?1:3}).call(this,co("Q2Ig"),co("IyRk"))},Q2Ig:function(ru,Ui,co){Ui.nextTick=function(qi){var Bo=Array.prototype.slice.call(arguments);Bo.shift(),setTimeout(function(){qi.apply(null,Bo)},0)},Ui.platform=Ui.arch=Ui.execPath=Ui.title="browser",Ui.pid=1,Ui.browser=!0,Ui.env={},Ui.argv=[],Ui.binding=function(li){throw new Error("No such module. (Possibly not yet loaded)")},function(){var li="/",qi;Ui.cwd=function(){return li},Ui.chdir=function(Bo){qi||(qi=co("33yf")),li=qi.resolve(Bo,li)}}(),Ui.exit=Ui.kill=Ui.umask=Ui.dlopen=Ui.uptime=Ui.memoryUsage=Ui.uvCounters=function(){},Ui.features={}},URDS:function(ru,Ui,co){(function(li){/*!
|
|
|
Copyright (c) 2014 Taylor Hakes
|
|
|
Copyright (c) 2014 Forbes Lindesay
|
|
|
*/(function(qi,Bo){Bo()})(this,function(){"use strict";function qi(Aa){var Ti=this.constructor;return this.then(function(so){return Ti.resolve(Aa()).then(function(){return so})},function(so){return Ti.resolve(Aa()).then(function(){return Ti.reject(so)})})}var Bo=setTimeout;function Tr(){}function Rr(Aa,Ti){return function(){Aa.apply(Ti,arguments)}}function xr(Aa){if(!(this instanceof xr))throw new TypeError("Promises must be constructed via new");if(typeof Aa!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],pl(Aa,this)}function _i(Aa,Ti){for(;Aa._state===3;)Aa=Aa._value;if(Aa._state===0){Aa._deferreds.push(Ti);return}Aa._handled=!0,xr._immediateFn(function(){var so=Aa._state===1?Ti.onFulfilled:Ti.onRejected;if(so===null){(Aa._state===1?Mi:sn)(Ti.promise,Aa._value);return}var Xo;try{Xo=so(Aa._value)}catch(Cu){sn(Ti.promise,Cu);return}Mi(Ti.promise,Xo)})}function Mi(Aa,Ti){try{if(Ti===Aa)throw new TypeError("A promise cannot be resolved with itself.");if(Ti&&(typeof Ti=="object"||typeof Ti=="function")){var so=Ti.then;if(Ti instanceof xr){Aa._state=3,Aa._value=Ti,Wo(Aa);return}else if(typeof so=="function"){pl(Rr(so,Ti),Aa);return}}Aa._state=1,Aa._value=Ti,Wo(Aa)}catch(Xo){sn(Aa,Xo)}}function sn(Aa,Ti){Aa._state=2,Aa._value=Ti,Wo(Aa)}function Wo(Aa){Aa._state===2&&Aa._deferreds.length===0&&xr._immediateFn(function(){Aa._handled||xr._unhandledRejectionFn(Aa._value)});for(var Ti=0,so=Aa._deferreds.length;Ti<so;Ti++)_i(Aa,Aa._deferreds[Ti]);Aa._deferreds=null}function As(Aa,Ti,so){this.onFulfilled=typeof Aa=="function"?Aa:null,this.onRejected=typeof Ti=="function"?Ti:null,this.promise=so}function pl(Aa,Ti){var so=!1;try{Aa(function(Xo){if(so)return;so=!0,Mi(Ti,Xo)},function(Xo){if(so)return;so=!0,sn(Ti,Xo)})}catch(Xo){if(so)return;so=!0,sn(Ti,Xo)}}xr.prototype.catch=function(Aa){return this.then(null,Aa)},xr.prototype.then=function(Aa,Ti){var so=new this.constructor(Tr);return _i(this,new As(Aa,Ti,so)),so},xr.prototype.finally=qi,xr.all=function(Aa){return new xr(function(Ti,so){if(!Aa||typeof Aa.length=="undefined")throw new TypeError("Promise.all accepts an array");var Xo=Array.prototype.slice.call(Aa);if(Xo.length===0)return Ti([]);var Cu=Xo.length;function Od(Pp,e){try{if(e&&(typeof e=="object"||typeof e=="function")){var o=e.then;if(typeof o=="function"){o.call(e,function(M){Od(Pp,M)},so);return}}Xo[Pp]=e,--Cu===0&&Ti(Xo)}catch(M){so(M)}}for(var Du=0;Du<Xo.length;Du++)Od(Du,Xo[Du])})},xr.resolve=function(Aa){return Aa&&typeof Aa=="object"&&Aa.constructor===xr?Aa:new xr(function(Ti){Ti(Aa)})},xr.reject=function(Aa){return new xr(function(Ti,so){so(Aa)})},xr.race=function(Aa){return new xr(function(Ti,so){for(var Xo=0,Cu=Aa.length;Xo<Cu;Xo++)Aa[Xo].then(Ti,so)})},xr._immediateFn=typeof setImmediate=="function"&&function(Aa){setImmediate(Aa)}||function(Aa){Bo(Aa,0)},xr._unhandledRejectionFn=function(Ti){typeof console!="undefined"&&console&&console.warn("Possible Unhandled Promise Rejection:",Ti)};var zo=function(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof li!="undefined")return li;throw new Error("unable to locate global object")}();"Promise"in zo?zo.Promise.prototype.finally||(zo.Promise.prototype.finally=qi):zo.Promise=xr})}).call(this,co("IyRk"))},"Vg/k":function(ru,Ui){(function(co){ru.exports=function(){var li={46:function(Tr){Tr.exports=function(Rr){if(!Rr.webpackPolyfill){var xr=Object.create(Rr);xr.children||(xr.children=[]),Object.defineProperty(xr,"loaded",{enumerable:!0,get:function(){return xr.l}}),Object.defineProperty(xr,"id",{enumerable:!0,get:function(){return xr.i}}),Object.defineProperty(xr,"exports",{enumerable:!0}),xr.webpackPolyfill=1}return xr}}},qi={};function Bo(Tr){if(qi[Tr])return qi[Tr].exports;var Rr=qi[Tr]={exports:{}},xr=!0;try{li[Tr](Rr,Rr.exports,Bo),xr=!1}finally{xr&&delete qi[Tr]}return Rr.exports}return Bo.ab=co+"/",Bo(46)}()}).call(this,"/")},lz1K:function(ru,Ui,co){"use strict";(function(li,qi,Bo){co.d(Ui,"c",function(){return Aa}),co.d(Ui,"a",function(){return Od}),co.d(Ui,"b",function(){return Du});/*! *****************************************************************************
|
|
|
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 Tr=function(){for(var e=0,o=0,M=arguments.length;o<M;o++)e+=arguments[o].length;for(var qe=Array(e),Ee=0,o=0;o<M;o++)for(var Ge=arguments[o],Be=0,he=Ge.length;Be<he;Be++,Ee++)qe[Ee]=Ge[Be];return qe},Rr=function(){return Rr=Object.assign||function(e){for(var o,M=1,qe=arguments.length;M<qe;M++){o=arguments[M];for(var Ee in o)Object.prototype.hasOwnProperty.call(o,Ee)&&(e[Ee]=o[Ee])}return e},Rr.apply(this,arguments)},xr=function(e,o){var M={label:0,sent:function(){if(Ge[0]&1)throw Ge[1];return Ge[1]},trys:[],ops:[]},qe,Ee,Ge,Be;return Be={next:he(0),throw:he(1),return:he(2)},typeof Symbol=="function"&&(Be[Symbol.iterator]=function(){return this}),Be;function he(f){return function(J){return ee([f,J])}}function ee(f){if(qe)throw new TypeError("Generator is already executing.");for(;M;)try{if(qe=1,Ee&&(Ge=f[0]&2?Ee.return:f[0]?Ee.throw||((Ge=Ee.return)&&Ge.call(Ee),0):Ee.next)&&!(Ge=Ge.call(Ee,f[1])).done)return Ge;(Ee=0,Ge)&&(f=[f[0]&2,Ge.value]);switch(f[0]){case 0:case 1:Ge=f;break;case 4:return M.label++,{value:f[1],done:!1};case 5:M.label++,Ee=f[1],f=[0];continue;case 7:f=M.ops.pop(),M.trys.pop();continue;default:if(!(Ge=M.trys,Ge=Ge.length>0&&Ge[Ge.length-1])&&(f[0]===6||f[0]===2)){M=0;continue}if(f[0]===3&&(!Ge||f[1]>Ge[0]&&f[1]<Ge[3])){M.label=f[1];break}if(f[0]===6&&M.label<Ge[1]){M.label=Ge[1],Ge=f;break}if(Ge&&M.label<Ge[2]){M.label=Ge[2],M.ops.push(f);break}Ge[2]&&M.ops.pop(),M.trys.pop();continue}f=o.call(e,M)}catch(J){f=[6,J],Ee=0}finally{qe=Ge=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},_i=function(e,o){return Object.defineProperty?Object.defineProperty(e,"raw",{value:o}):e.raw=o,e},Mi=function(){var e=function(o,M){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,Ee){qe.__proto__=Ee}||function(qe,Ee){for(var Ge in Ee)Ee.hasOwnProperty(Ge)&&(qe[Ge]=Ee[Ge])},e(o,M)};return function(o,M){e(o,M);function qe(){this.constructor=o}o.prototype=M===null?Object.create(M):(qe.prototype=M.prototype,new qe)}}(),sn;(function(e){function o(){function M(){var Ee=Object.create(null);return Ee.__=void 0,delete Ee.__,Ee}var qe=function(){function Ee(Ge,Be){this.currentEntry=Ge,this.selector=Be}return Ee.prototype.next=function(){for(;this.currentEntry;){var Ge=!!this.currentEntry.skipNext;if(this.currentEntry=this.currentEntry.nextEntry,!Ge)break}return this.currentEntry?{value:this.selector(this.currentEntry.key,this.currentEntry.value),done:!1}:{value:void 0,done:!0}},Ee}();return function(){function Ee(){this.data=M(),this.size=0,this.firstEntry={},this.lastEntry=this.firstEntry}return Ee.prototype.get=function(Ge){var Be=this.data[Ge];return Be&&Be.value},Ee.prototype.set=function(Ge,Be){if(this.has(Ge))this.data[Ge].value=Be;else{this.size++;var he={key:Ge,value:Be};this.data[Ge]=he;var ee=this.lastEntry;ee.nextEntry=he,he.previousEntry=ee,this.lastEntry=he}return this},Ee.prototype.has=function(Ge){return Ge in this.data},Ee.prototype.delete=function(Ge){if(this.has(Ge)){this.size--;var Be=this.data[Ge];delete this.data[Ge];var he=Be.previousEntry;return he.nextEntry=Be.nextEntry,Be.nextEntry&&(Be.nextEntry.previousEntry=he),this.lastEntry===Be&&(this.lastEntry=he),Be.previousEntry=void 0,Be.nextEntry=he,Be.skipNext=!0,!0}return!1},Ee.prototype.clear=function(){this.data=M(),this.size=0;for(var Ge=this.firstEntry,Be=Ge.nextEntry;Be;){var he=Be.nextEntry;Be.previousEntry=void 0,Be.nextEntry=Ge,Be.skipNext=!0,Be=he}Ge.nextEntry=void 0,this.lastEntry=Ge},Ee.prototype.keys=function(){return new qe(this.firstEntry,function(Ge){return Ge})},Ee.prototype.values=function(){return new qe(this.firstEntry,function(Ge,Be){return Be})},Ee.prototype.entries=function(){return new qe(this.firstEntry,function(Ge,Be){return[Ge,Be]})},Ee.prototype.forEach=function(Ge){for(var Be=this.entries();;){var he=Be.next();if(he.done)break;var ee=he.value,f=ee[0],J=ee[1];Ge(J,f)}},Ee}()}e.createMapShim=o})(sn||(sn={}));var sn;(function(e){e.versionMajorMinor="3.7",e.version=e.versionMajorMinor+".5"})(sn||(sn={})),function(e){var o;(function(M){M[M.LessThan=-1]="LessThan",M[M.EqualTo=0]="EqualTo",M[M.GreaterThan=1]="GreaterThan"})(o=e.Comparison||(e.Comparison={}))}(sn||(sn={})),function(e){function o(){return typeof Map!="undefined"&&"entries"in Map.prototype?Map:void 0}e.tryGetNativeMap=o}(sn||(sn={})),function(e){e.emptyArray=[],e.Map=e.tryGetNativeMap()||function(){if(typeof e.createMapShim=="function")return e.createMapShim();throw new Error("TypeScript requires an environment that provides a compatible native Map implementation.")}();function o(){return new e.Map}e.createMap=o;function M(en){for(var vn=o(),Ln=0,Vn=en;Ln<Vn.length;Ln++){var Mt=Vn[Ln],tr=Mt[0],dr=Mt[1];vn.set(tr,dr)}return vn}e.createMapFromEntries=M;function qe(en){var vn=new e.Map;for(var Ln in en)L.call(en,Ln)&&vn.set(Ln,en[Ln]);return vn}e.createMapFromTemplate=qe;function Ee(en){return en?en.length:0}e.length=Ee;function Ge(en,vn){if(en)for(var Ln=0;Ln<en.length;Ln++){var Vn=vn(en[Ln],Ln);if(Vn)return Vn}return}e.forEach=Ge;function Be(en,vn){if(en)for(var Ln=en.length-1;Ln>=0;Ln--){var Vn=vn(en[Ln],Ln);if(Vn)return Vn}return}e.forEachRight=Be;function he(en,vn){if(en===void 0)return;for(var Ln=0;Ln<en.length;Ln++){var Vn=vn(en[Ln],Ln);if(Vn!==void 0)return Vn}return}e.firstDefined=he;function ee(en,vn){for(;;){var Ln=en.next();if(Ln.done)return;var Vn=vn(Ln.value);if(Vn!==void 0)return Vn}}e.firstDefinedIterator=ee;function f(en,vn,Ln){var Vn=[];e.Debug.assertEqual(en.length,vn.length);for(var Mt=0;Mt<en.length;Mt++)Vn.push(Ln(en[Mt],vn[Mt],Mt));return Vn}e.zipWith=f;function J(en,vn){e.Debug.assertEqual(en.length,vn.length);var Ln=0;return{next:function(){return Ln===en.length?{value:void 0,done:!0}:(Ln++,{value:[en[Ln-1],vn[Ln-1]],done:!1})}}}e.zipToIterator=J;function Oe(en,vn){e.Debug.assert(en.length===vn.length);for(var Ln=o(),Vn=0;Vn<en.length;++Vn)Ln.set(en[Vn],vn[Vn]);return Ln}e.zipToMap=Oe;function N(en,vn){if(en){for(var Ln=0;Ln<en.length;Ln++)if(!vn(en[Ln],Ln))return!1}return!0}e.every=N;function Te(en,vn){for(var Ln=0;Ln<en.length;Ln++){var Vn=en[Ln];if(vn(Vn,Ln))return Vn}return}e.find=Te;function ie(en,vn){for(var Ln=en.length-1;Ln>=0;Ln--){var Vn=en[Ln];if(vn(Vn,Ln))return Vn}return}e.findLast=ie;function ce(en,vn,Ln){for(var Vn=Ln||0;Vn<en.length;Vn++)if(vn(en[Vn],Vn))return Vn;return-1}e.findIndex=ce;function x(en,vn,Ln){for(var Vn=Ln===void 0?en.length-1:Ln;Vn>=0;Vn--)if(vn(en[Vn],Vn))return Vn;return-1}e.findLastIndex=x;function C(en,vn){for(var Ln=0;Ln<en.length;Ln++){var Vn=vn(en[Ln],Ln);if(Vn)return Vn}return e.Debug.fail()}e.findMap=C;function P(en,vn,Ln){if(Ln===void 0&&(Ln=mt),en)for(var Vn=0,Mt=en;Vn<Mt.length;Vn++){var tr=Mt[Vn];if(Ln(tr,vn))return!0}return!1}e.contains=P;function h(en,vn,Ln){return Ln===void 0&&(Ln=mt),en.length===vn.length&&en.every(function(Vn,Mt){return Ln(Vn,vn[Mt])})}e.arraysEqual=h;function X(en,vn,Ln){for(var Vn=Ln||0;Vn<en.length;Vn++)if(P(vn,en.charCodeAt(Vn)))return Vn;return-1}e.indexOfAnyCharCode=X;function $(en,vn){var Ln=0;if(en)for(var Vn=0;Vn<en.length;Vn++){var Mt=en[Vn];vn(Mt,Vn)&&Ln++}return Ln}e.countWhere=$;function Q(en,vn){if(en){for(var Ln=en.length,Vn=0;Vn<Ln&&vn(en[Vn]);)Vn++;if(Vn<Ln){var Mt=en.slice(0,Vn);for(Vn++;Vn<Ln;){var tr=en[Vn];vn(tr)&&Mt.push(tr),Vn++}return Mt}}return en}e.filter=Q;function z(en,vn){for(var Ln=0,Vn=0;Vn<en.length;Vn++)vn(en[Vn],Vn,en)&&(en[Ln]=en[Vn],Ln++);en.length=Ln}e.filterMutate=z;function se(en){en.length=0}e.clear=se;function G(en,vn){var Ln;if(en){Ln=[];for(var Vn=0;Vn<en.length;Vn++)Ln.push(vn(en[Vn],Vn))}return Ln}e.map=G;function H(en,vn){return{next:function(){var Ln=en.next();return Ln.done?Ln:{value:vn(Ln.value),done:!1}}}}e.mapIterator=H;function q(en,vn){if(en)for(var Ln=0;Ln<en.length;Ln++){var Vn=en[Ln],Mt=vn(Vn,Ln);if(Vn!==Mt){var tr=en.slice(0,Ln);for(tr.push(Mt),Ln++;Ln<en.length;Ln++)tr.push(vn(en[Ln],Ln));return tr}}return en}e.sameMap=q;function be(en){for(var vn=[],Ln=0,Vn=en;Ln<Vn.length;Ln++){var Mt=Vn[Ln];Mt&&(ct(Mt)?w(vn,Mt):vn.push(Mt))}return vn}e.flatten=be;function R(en,vn){var Ln;if(en)for(var Vn=0;Vn<en.length;Vn++){var Mt=vn(en[Vn],Vn);Mt&&(ct(Mt)?Ln=w(Ln,Mt):Ln=ve(Ln,Mt))}return Ln||e.emptyArray}e.flatMap=R;function K(en,vn){var Ln=[];if(en)for(var Vn=0;Vn<en.length;Vn++){var Mt=vn(en[Vn],Vn);Mt&&(ct(Mt)?w(Ln,Mt):Ln.push(Mt))}return Ln}e.flatMapToMutable=K;function m(en,vn){var Ln=en.next();if(Ln.done)return e.emptyIterator;var Vn=Mt(Ln.value);return{next:function(){for(;;){var tr=Vn.next();if(!tr.done)return tr;var dr=en.next();if(dr.done)return dr;Vn=Mt(dr.value)}}};function Mt(tr){var dr=vn(tr);return dr===void 0?e.emptyIterator:ct(dr)?In(dr):dr}}e.flatMapIterator=m;function _(en,vn){var Ln;if(en)for(var Vn=0;Vn<en.length;Vn++){var Mt=en[Vn],tr=vn(Mt,Vn);(Ln||Mt!==tr||ct(tr))&&(Ln||(Ln=en.slice(0,Vn)),ct(tr)?w(Ln,tr):Ln.push(tr))}return Ln||en}e.sameFlatMap=_;function I(en,vn){for(var Ln=[],Vn=0;Vn<en.length;Vn++){var Mt=vn(en[Vn],Vn);if(Mt===void 0)return;Ln.push(Mt)}return Ln}e.mapAllOrFail=I;function D(en,vn){var Ln=[];if(en)for(var Vn=0;Vn<en.length;Vn++){var Mt=vn(en[Vn],Vn);Mt!==void 0&&Ln.push(Mt)}return Ln}e.mapDefined=D;function y(en,vn){return{next:function(){for(;;){var Ln=en.next();if(Ln.done)return Ln;var Vn=vn(Ln.value);if(Vn!==void 0)return{value:Vn,done:!1}}}}}e.mapDefinedIterator=y,e.emptyIterator={next:function(){return{value:void 0,done:!0}}};function E(en){var vn=!1;return{next:function(){var Ln=vn;return vn=!0,Ln?{value:void 0,done:!0}:{value:en,done:!1}}}}e.singleIterator=E;function k(en,vn,Ln){var Vn;if(en){Vn=[];for(var Mt=en.length,tr=void 0,dr=void 0,Pr=0,za=0;Pr<Mt;){for(;za<Mt;){var Ia=en[za];if(dr=vn(Ia,za),za===0)tr=dr;else if(dr!==tr)break;za++}if(Pr<za){var Ii=Ln(en.slice(Pr,za),tr,Pr,za);Ii&&Vn.push(Ii),Pr=za}tr=dr,za++}}return Vn}e.spanMap=k;function T(en,vn){if(!en)return;var Ln=o();return en.forEach(function(Vn,Mt){var tr=vn(Mt,Vn),dr=tr[0],Pr=tr[1];Ln.set(dr,Pr)}),Ln}e.mapEntries=T;function ne(en,vn){if(en)if(vn)for(var Ln=0,Vn=en;Ln<Vn.length;Ln++){var Mt=Vn[Ln];if(vn(Mt))return!0}else return en.length>0;return!1}e.some=ne;function O(en,vn,Ln){for(var Vn,Mt=0;Mt<en.length;Mt++)vn(en[Mt])?Vn=Vn===void 0?Mt:Vn:Vn!==void 0&&(Ln(Vn,Mt),Vn=void 0);Vn!==void 0&&Ln(Vn,en.length)}e.getRangesWhere=O;function Y(en,vn){return ne(vn)?ne(en)?Tr(en,vn):vn:en}e.concatenate=Y;function pe(en,vn,Ln){var Vn=en.map(function(Ia,Ii){return Ii});a(en,Vn,Ln);for(var Mt=en[Vn[0]],tr=[Vn[0]],dr=1;dr<Vn.length;dr++){var Pr=Vn[dr],za=en[Pr];vn(Mt,za)||(tr.push(Pr),Mt=za)}return tr.sort(),tr.map(function(Ia){return en[Ia]})}function S(en,vn){for(var Ln=[],Vn=0,Mt=en;Vn<Mt.length;Vn++){var tr=Mt[Vn];j(Ln,tr,vn)}return Ln}function v(en,vn,Ln){return en.length===0?[]:en.length===1?en.slice():Ln?pe(en,vn,Ln):S(en,vn)}e.deduplicate=v;function U(en,vn){if(en.length===0)return e.emptyArray;for(var Ln=en[0],Vn=[Ln],Mt=1;Mt<en.length;Mt++){var tr=en[Mt];switch(vn(tr,Ln)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}Vn.push(Ln=tr)}return Vn}function ue(en,vn,Ln){if(en.length===0){en.push(vn);return}var Vn=ke(en,vn,Dt,Ln);Vn<0&&en.splice(~Vn,0,vn)}e.insertSorted=ue;function De(en,vn,Ln){return U(Ze(en,vn),Ln||vn||ht)}e.sortAndDeduplicate=De;function Z(en,vn,Ln){if(Ln===void 0&&(Ln=mt),!en||!vn)return en===vn;if(en.length!==vn.length)return!1;for(var Vn=0;Vn<en.length;Vn++)if(!Ln(en[Vn],vn[Vn],Vn))return!1;return!0}e.arrayIsEqualTo=Z;function Re(en){var vn;if(en)for(var Ln=0;Ln<en.length;Ln++){var Vn=en[Ln];(vn||!Vn)&&(vn||(vn=en.slice(0,Ln)),Vn&&vn.push(Vn))}return vn||en}e.compact=Re;function we(en,vn,Ln){if(!vn||!en||vn.length===0||en.length===0)return vn;var Vn=[];e:for(var Mt=0,tr=0;tr<vn.length;tr++){tr>0&&e.Debug.assertGreaterThanOrEqual(Ln(vn[tr],vn[tr-1]),0);n:for(var dr=Mt;Mt<en.length;Mt++){Mt>dr&&e.Debug.assertGreaterThanOrEqual(Ln(en[Mt],en[Mt-1]),0);switch(Ln(vn[tr],en[Mt])){case-1:Vn.push(vn[tr]);continue e;case 0:continue e;case 1:continue n}}}return Vn}e.relativeComplement=we;function He(en,vn){for(var Ln=0,Vn=0,Mt=en;Vn<Mt.length;Vn++){var tr=Mt[Vn];Ln+=tr[vn]}return Ln}e.sum=He;function ve(en,vn){return vn===void 0?en:en===void 0?[vn]:(en.push(vn),en)}e.append=ve;function je(en,vn){return vn<0?en.length+vn:vn}function w(en,vn,Ln,Vn){if(vn===void 0||vn.length===0)return en;if(en===void 0)return vn.slice(Ln,Vn);Ln=Ln===void 0?0:je(vn,Ln),Vn=Vn===void 0?vn.length:je(vn,Vn);for(var Mt=Ln;Mt<Vn&&Mt<vn.length;Mt++)vn[Mt]!==void 0&&en.push(vn[Mt]);return en}e.addRange=w;function j(en,vn,Ln){return P(en,vn,Ln)?!1:(en.push(vn),!0)}e.pushIfUnique=j;function Pe(en,vn,Ln){return en?(j(en,vn,Ln),en):[vn]}e.appendIfUnique=Pe;function a(en,vn,Ln){vn.sort(function(Vn,Mt){return Ln(en[Vn],en[Mt])||Vt(Vn,Mt)})}function Ze(en,vn){return en.length===0?en:en.slice().sort(vn)}e.sort=Ze;function In(en){var vn=0;return{next:function(){return vn===en.length?{value:void 0,done:!0}:(vn++,{value:en[vn-1],done:!1})}}}e.arrayIterator=In;function et(en){var vn=en.length;return{next:function(){return vn===0?{value:void 0,done:!0}:(vn--,{value:en[vn],done:!1})}}}e.arrayReverseIterator=et;function ae(en,vn){var Ln=en.map(function(Vn,Mt){return Mt});return a(en,Ln,vn),Ln.map(function(Vn){return en[Vn]})}e.stableSort=ae;function fe(en,vn,Ln,Vn){for(;Ln<Vn;){if(en[Ln]!==vn[Ln])return!1;Ln++}return!0}e.rangeEquals=fe;function Le(en,vn){return en&&(vn=je(en,vn),vn<en.length)?en[vn]:void 0}e.elementAt=Le;function Je(en){return en.length===0?void 0:en[0]}e.firstOrUndefined=Je;function $e(en){return e.Debug.assert(en.length!==0),en[0]}e.first=$e;function Fe(en){return en.length===0?void 0:en[en.length-1]}e.lastOrUndefined=Fe;function cn(en){return e.Debug.assert(en.length!==0),en[en.length-1]}e.last=cn;function Qe(en){return en&&en.length===1?en[0]:void 0}e.singleOrUndefined=Qe;function ln(en){return en&&en.length===1?en[0]:en}e.singleOrMany=ln;function ye(en,vn,Ln){var Vn=en.slice(0);return Vn[vn]=Ln,Vn}e.replaceElement=ye;function ke(en,vn,Ln,Vn,Mt){return F(en,Ln(vn),Ln,Vn,Mt)}e.binarySearch=ke;function F(en,vn,Ln,Vn,Mt){if(!ne(en))return-1;for(var tr=Mt||0,dr=en.length-1;tr<=dr;){var Pr=tr+(dr-tr>>1),za=Ln(en[Pr]);switch(Vn(za,vn)){case-1:tr=Pr+1;break;case 0:return Pr;case 1:dr=Pr-1;break}}return~tr}e.binarySearchKey=F;function c(en,vn,Ln,Vn,Mt){if(en&&en.length>0){var tr=en.length;if(tr>0){var dr=Vn===void 0||Vn<0?0:Vn,Pr=Mt===void 0||dr+Mt>tr-1?tr-1:dr+Mt,za=void 0;for(arguments.length<=2?(za=en[dr],dr++):za=Ln;dr<=Pr;)za=vn(za,en[dr],dr),dr++;return za}}return Ln}e.reduceLeft=c;var L=Object.prototype.hasOwnProperty;function te(en,vn){return L.call(en,vn)}e.hasProperty=te;function Se(en,vn){return L.call(en,vn)?en[vn]:void 0}e.getProperty=Se;function Ne(en){var vn=[];for(var Ln in en)L.call(en,Ln)&&vn.push(Ln);return vn}e.getOwnKeys=Ne;function ze(en){var vn=[];do for(var Ln=Object.getOwnPropertyNames(en),Vn=0,Mt=Ln;Vn<Mt.length;Vn++){var tr=Mt[Vn];j(vn,tr)}while(en=Object.getPrototypeOf(en));return vn}e.getAllKeys=ze;function Tn(en){var vn=[];for(var Ln in en)L.call(en,Ln)&&vn.push(en[Ln]);return vn}e.getOwnValues=Tn;function wn(en,vn){for(var Ln=[],Vn=en.next();!Vn.done;Vn=en.next())Ln.push(vn?vn(Vn.value):Vn.value);return Ln}e.arrayFrom=wn;function jn(en){for(var vn=[],Ln=1;Ln<arguments.length;Ln++)vn[Ln-1]=arguments[Ln];for(var Vn=0,Mt=vn;Vn<Mt.length;Vn++){var tr=Mt[Vn];if(tr===void 0)continue;for(var dr in tr)te(tr,dr)&&(en[dr]=tr[dr])}return en}e.assign=jn;function nn(en,vn,Ln){if(Ln===void 0&&(Ln=mt),en===vn)return!0;if(!en||!vn)return!1;for(var Vn in en)if(L.call(en,Vn)){if(!L.call(vn,Vn))return!1;if(!Ln(en[Vn],vn[Vn]))return!1}for(var Vn in vn)if(L.call(vn,Vn)&&!L.call(en,Vn))return!1;return!0}e.equalOwnProperties=nn;function pn(en,vn,Ln){Ln===void 0&&(Ln=Dt);for(var Vn=o(),Mt=0,tr=en;Mt<tr.length;Mt++){var dr=tr[Mt],Pr=vn(dr);Pr!==void 0&&Vn.set(Pr,Ln(dr))}return Vn}e.arrayToMap=pn;function le(en,vn,Ln){Ln===void 0&&(Ln=Dt);for(var Vn=[],Mt=0,tr=en;Mt<tr.length;Mt++){var dr=tr[Mt];Vn[vn(dr)]=Ln(dr)}return Vn}e.arrayToNumericMap=le;function oe(en,vn,Ln){Ln===void 0&&(Ln=Dt);for(var Vn=at(),Mt=0,tr=en;Mt<tr.length;Mt++){var dr=tr[Mt];Vn.add(vn(dr),Ln(dr))}return Vn}e.arrayToMultiMap=oe;function Cn(en,vn){return wn(oe(en,vn).values())}e.group=Cn;function yn(en){var vn={};for(var Ln in en)L.call(en,Ln)&&(vn[Ln]=en[Ln]);return vn}e.clone=yn;function _e(en,vn){var Ln={};for(var Vn in vn)L.call(vn,Vn)&&(Ln[Vn]=vn[Vn]);for(var Vn in en)L.call(en,Vn)&&(Ln[Vn]=en[Vn]);return Ln}e.extend=_e;function dn(en,vn){for(var Ln in vn)L.call(vn,Ln)&&(en[Ln]=vn[Ln])}e.copyProperties=dn;function un(en,vn){return vn?vn.bind(en):void 0}e.maybeBind=un;function Rn(en,vn){var Ln=o();return en.forEach(function(Vn,Mt){return Ln.set.apply(Ln,vn(Vn,Mt))}),Ln}e.mapMap=Rn;function at(){var en=o();return en.add=Bn,en.remove=ut,en}e.createMultiMap=at;function Bn(en,vn){var Ln=this.get(en);return Ln?Ln.push(vn):this.set(en,Ln=[vn]),Ln}function ut(en,vn){var Ln=this.get(en);Ln&&(uo(Ln,vn),Ln.length||this.delete(en))}function ct(en){return Array.isArray?Array.isArray(en):en instanceof Array}e.isArray=ct;function ot(en){return ct(en)?en:[en]}e.toArray=ot;function dt(en){return typeof en=="string"}e.isString=dt;function Ct(en){return typeof en=="number"}e.isNumber=Ct;function st(en,vn){return en!==void 0&&vn(en)?en:void 0}e.tryCast=st;function Kn(en,vn){return en!==void 0&&vn(en)?en:e.Debug.fail("Invalid cast. The supplied value "+en+" did not pass the test '"+e.Debug.getFunctionName(vn)+"'.")}e.cast=Kn;function Ie(en){}e.noop=Ie;function Ce(){return!1}e.returnFalse=Ce;function _n(){return!0}e.returnTrue=_n;function yt(){return}e.returnUndefined=yt;function Dt(en){return en}e.identity=Dt;function Ht(en){return en.toLowerCase()}e.toLowerCase=Ht;function $t(){throw new Error("Not implemented")}e.notImplemented=$t;function wr(en){var vn;return function(){return en&&(vn=en(),en=void 0),vn}}e.memoize=wr;function Yr(en,vn,Ln,Vn,Mt){if(Mt){for(var tr=[],dr=0;dr<arguments.length;dr++)tr[dr]=arguments[dr];return function(Pr){return c(tr,function(za,Ia){return Ia(za)},Pr)}}else return Vn?function(Pr){return Vn(Ln(vn(en(Pr))))}:Ln?function(Pr){return Ln(vn(en(Pr)))}:vn?function(Pr){return vn(en(Pr))}:en?function(Pr){return en(Pr)}:function(Pr){return Pr}}e.compose=Yr;var Hr;(function(en){en[en.None=0]="None",en[en.Normal=1]="Normal",en[en.Aggressive=2]="Aggressive",en[en.VeryAggressive=3]="VeryAggressive"})(Hr=e.AssertionLevel||(e.AssertionLevel={}));function mt(en,vn){return en===vn}e.equateValues=mt;function va(en,vn){return en===vn||en!==void 0&&vn!==void 0&&en.toUpperCase()===vn.toUpperCase()}e.equateStringsCaseInsensitive=va;function Lt(en,vn){return mt(en,vn)}e.equateStringsCaseSensitive=Lt;function Wn(en,vn){return en===vn?0:en===void 0?-1:vn===void 0?1:en<vn?-1:1}function Vt(en,vn){return Wn(en,vn)}e.compareValues=Vt;function pt(en,vn,Ln){return Ln(en,vn)===-1?en:vn}e.min=pt;function Tt(en,vn){return en===vn?0:en===void 0?-1:vn===void 0?1:(en=en.toUpperCase(),vn=vn.toUpperCase(),en<vn?-1:en>vn?1:0)}e.compareStringsCaseInsensitive=Tt;function ht(en,vn){return Wn(en,vn)}e.compareStringsCaseSensitive=ht;function bt(en){return en?Tt:ht}e.getStringComparer=bt;var Ke=function(){var en,vn,Ln=Pr();return za;function Vn(Ia,Ii,ai){if(Ia===Ii)return 0;if(Ia===void 0)return-1;if(Ii===void 0)return 1;var hi=ai(Ia,Ii);return hi<0?-1:hi>0?1:0}function Mt(Ia){var Ii=new Intl.Collator(Ia,{usage:"sort",sensitivity:"variant"}).compare;return function(ai,hi){return Vn(ai,hi,Ii)}}function tr(Ia){if(Ia!==void 0)return dr();return function(ai,hi){return Vn(ai,hi,Ii)};function Ii(ai,hi){return ai.localeCompare(hi)}}function dr(){return function(ai,hi){return Vn(ai,hi,Ia)};function Ia(ai,hi){return Ii(ai.toUpperCase(),hi.toUpperCase())||Ii(ai,hi)}function Ii(ai,hi){return ai<hi?-1:ai>hi?1:0}}function Pr(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?Mt:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?tr:dr}function za(Ia){return Ia===void 0?en||(en=Ln(Ia)):Ia==="en-US"?vn||(vn=Ln(Ia)):Ln(Ia)}}(),Pn,$n;function rr(){return $n}e.getUILocale=rr;function xa(en){$n!==en&&($n=en,Pn=void 0)}e.setUILocale=xa;function Fa(en,vn){var Ln=Pn||(Pn=Ke($n));return Ln(en,vn)}e.compareStringsCaseSensitiveUI=Fa;function ri(en,vn,Ln,Vn){return en===vn?0:en===void 0?-1:vn===void 0?1:Vn(en[Ln],vn[Ln])}e.compareProperties=ri;function Si(en,vn){return Vt(en?1:0,vn?1:0)}e.compareBooleans=Si;function xi(en,vn,Ln){for(var Vn=Math.min(2,Math.floor(en.length*.34)),Mt=Math.floor(en.length*.4)+1,tr,dr=!1,Pr=en.toLowerCase(),za=0,Ia=vn;za<Ia.length;za++){var Ii=Ia[za],ai=Ln(Ii);if(ai!==void 0&&Math.abs(ai.length-Pr.length)<=Vn){var hi=ai.toLowerCase();if(hi===Pr){if(ai===en)continue;return Ii}if(dr)continue;if(ai.length<3)continue;var Xe=vi(Pr,hi,Mt-1);if(Xe===void 0)continue;Xe<3?(dr=!0,tr=Ii):(e.Debug.assert(Xe<Mt),Mt=Xe,tr=Ii)}}return tr}e.getSpellingSuggestion=xi;function vi(en,vn,Ln){for(var Vn=new Array(vn.length+1),Mt=new Array(vn.length+1),tr=Ln+1,dr=0;dr<=vn.length;dr++)Vn[dr]=dr;for(var dr=1;dr<=en.length;dr++){var Pr=en.charCodeAt(dr-1),za=dr>Ln?dr-Ln:1,Ia=vn.length>Ln+dr?Ln+dr:vn.length;Mt[0]=dr;for(var Ii=dr,ai=1;ai<za;ai++)Mt[ai]=tr;for(var ai=za;ai<=Ia;ai++){var hi=Pr===vn.charCodeAt(ai-1)?Vn[ai-1]:Math.min(Vn[ai]+1,Mt[ai-1]+1,Vn[ai-1]+2);Mt[ai]=hi,Ii=Math.min(Ii,hi)}for(var ai=Ia+1;ai<=vn.length;ai++)Mt[ai]=tr;if(Ii>Ln)return;var Xe=Vn;Vn=Mt,Mt=Xe}var qn=Vn[vn.length];return qn>Ln?void 0:qn}function Oi(en,vn){var Ln=en.length-vn.length;return Ln>=0&&en.indexOf(vn,Ln)===Ln}e.endsWith=Oi;function Ja(en,vn){return Oi(en,vn)?en.slice(0,en.length-vn.length):en}e.removeSuffix=Ja;function Ka(en,vn){return Oi(en,vn)?en.slice(0,en.length-vn.length):void 0}e.tryRemoveSuffix=Ka;function ua(en,vn){return en.indexOf(vn)!==-1}e.stringContains=ua;function bi(en){var vn=/[.-]((min)|(\d+(\.\d+)*))$/;return en.replace(vn,"").replace(vn,"")}e.removeMinAndVersionNumbers=bi;function Vo(en,vn){for(var Ln=0;Ln<en.length;Ln++)if(en[Ln]===vn)return wo(en,Ln),!0;return!1}e.orderedRemoveItem=Vo;function wo(en,vn){for(var Ln=vn;Ln<en.length-1;Ln++)en[Ln]=en[Ln+1];en.pop()}e.orderedRemoveItemAt=wo;function Mo(en,vn){en[vn]=en[en.length-1],en.pop()}e.unorderedRemoveItemAt=Mo;function uo(en,vn){return ci(en,function(Ln){return Ln===vn})}e.unorderedRemoveItem=uo;function ci(en,vn){for(var Ln=0;Ln<en.length;Ln++)if(vn(en[Ln]))return Mo(en,Ln),!0;return!1}function Gi(en){return en?Dt:Ht}e.createGetCanonicalFileName=Gi;function ji(en){var vn=en.prefix,Ln=en.suffix;return vn+"*"+Ln}e.patternText=ji;function Ro(en,vn){return e.Debug.assert(Kt(en,vn)),vn.substring(en.prefix.length,vn.length-en.suffix.length)}e.matchedText=Ro;function Ao(en,vn,Ln){for(var Vn,Mt=-1,tr=0,dr=en;tr<dr.length;tr++){var Pr=dr[tr],za=vn(Pr);Kt(za,Ln)&&za.prefix.length>Mt&&(Mt=za.prefix.length,Vn=Pr)}return Vn}e.findBestPatternMatch=Ao;function _o(en,vn){return en.lastIndexOf(vn,0)===0}e.startsWith=_o;function Ri(en,vn){return _o(en,vn)?en.substr(vn.length):en}e.removePrefix=Ri;function xt(en,vn,Ln){return Ln===void 0&&(Ln=Dt),_o(Ln(en),Ln(vn))?en.substring(vn.length):void 0}e.tryRemovePrefix=xt;function Kt(en,vn){var Ln=en.prefix,Vn=en.suffix;return vn.length>=Ln.length+Vn.length&&_o(vn,Ln)&&Oi(vn,Vn)}function yr(en,vn){return function(Ln){return en(Ln)&&vn(Ln)}}e.and=yr;function Jr(){for(var en=[],vn=0;vn<arguments.length;vn++)en[vn]=arguments[vn];return function(Ln){for(var Vn=0,Mt=en;Vn<Mt.length;Vn++){var tr=Mt[Vn];if(tr(Ln))return!0}return!1}}e.or=Jr;function _a(en){return function(){for(var vn=[],Ln=0;Ln<arguments.length;Ln++)vn[Ln]=arguments[Ln];return!en.apply(void 0,vn)}}e.not=_a;function La(en){}e.assertType=La;function qr(en){return en===void 0?void 0:[en]}e.singleElementArray=qr;function pi(en,vn,Ln,Vn,Mt,tr){tr=tr||Ie;for(var dr=0,Pr=0,za=en.length,Ia=vn.length;dr<za&&Pr<Ia;){var Ii=en[dr],ai=vn[Pr],hi=Ln(Ii,ai);hi===-1?(Vn(Ii),dr++):hi===1?(Mt(ai),Pr++):(tr(ai,Ii),dr++,Pr++)}for(;dr<za;)Vn(en[dr++]);for(;Pr<Ia;)Mt(vn[Pr++])}e.enumerateInsertsAndDeletes=pi;function Li(en,vn){for(var Ln=Array(en),Vn=0;Vn<en;Vn++)Ln[Vn]=vn(Vn);return Ln}e.fill=Li;function mi(en){var vn=[];return da(en,vn,void 0,0),vn}e.cartesianProduct=mi;function da(en,vn,Ln,Vn){for(var Mt=0,tr=en[Vn];Mt<tr.length;Mt++){var dr=tr[Mt],Pr=void 0;Ln?(Pr=Ln.slice(),Pr.push(dr)):Pr=[dr],Vn===en.length-1?vn.push(Pr):da(en,vn,Pr,Vn+1)}}}(sn||(sn={}));var sn;(function(e){var o;(function(M){M.currentAssertionLevel=0,M.isDebugging=!1;function qe(I){return M.currentAssertionLevel>=I}M.shouldAssert=qe;function Ee(I,D,y,E){I||(y&&(D+=`\r
|
|
|
Verbose Debug Information: `+(typeof y=="string"?y:y())),f(D?"False expression: "+D:"False expression.",E||Ee))}M.assert=Ee;function Ge(I,D,y,E){if(I!==D){var k=y?E?y+" "+E:y:"";f("Expected "+I+" === "+D+". "+k)}}M.assertEqual=Ge;function Be(I,D,y){I>=D&&f("Expected "+I+" < "+D+". "+(y||""))}M.assertLessThan=Be;function he(I,D){I>D&&f("Expected "+I+" <= "+D)}M.assertLessThanOrEqual=he;function ee(I,D){I<D&&f("Expected "+I+" >= "+D)}M.assertGreaterThanOrEqual=ee;function f(I,D){debugger;var y=new Error(I?"Debug Failure. "+I:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(y,D||f),y}M.fail=f;function J(I,D){return I==null?f(D):I}M.assertDefined=J;function Oe(I,D){for(var y=0,E=I;y<E.length;y++){var k=E[y];J(k,D)}return I}M.assertEachDefined=Oe;function N(I,D,y){D===void 0&&(D="Illegal value:");var E=typeof I=="object"&&e.hasProperty(I,"kind")&&e.hasProperty(I,"pos")&&C?"SyntaxKind: "+C(I.kind):JSON.stringify(I);return f(D+" "+E,y||N)}M.assertNever=N;function Te(I){if(typeof I!="function")return"";if(I.hasOwnProperty("name"))return I.name;var D=Function.prototype.toString.call(I),y=/^function\s+([\w\$]+)\s*\(/.exec(D);return y?y[1]:""}M.getFunctionName=Te;function ie(I){return"{ name: "+e.unescapeLeadingUnderscores(I.escapedName)+"; flags: "+Q(I.flags)+"; declarations: "+e.map(I.declarations,function(D){return C(D.kind)})+" }"}M.formatSymbol=ie;function ce(I,D,y){I===void 0&&(I=0);var E=x(D);if(I===0)return E.length>0&&E[0][0]===0?E[0][1]:"0";if(y){for(var k="",T=I,ne=E.length-1;ne>=0&&T!==0;ne--){var O=E[ne],Y=O[0],pe=O[1];Y!==0&&(T&Y)===Y&&(T&=~Y,k=""+pe+(k?"|":"")+k)}if(T===0)return k}else for(var S=0,v=E;S<v.length;S++){var U=v[S],Y=U[0],pe=U[1];if(Y===I)return pe}return I.toString()}M.formatEnum=ce;function x(I){var D=[];for(var y in I){var E=I[y];typeof E=="number"&&D.push([E,y])}return e.stableSort(D,function(k,T){return e.compareValues(k[0],T[0])})}function C(I){return ce(I,e.SyntaxKind,!1)}M.formatSyntaxKind=C;function P(I){return ce(I,e.NodeFlags,!0)}M.formatNodeFlags=P;function h(I){return ce(I,e.ModifierFlags,!0)}M.formatModifierFlags=h;function X(I){return ce(I,e.TransformFlags,!0)}M.formatTransformFlags=X;function $(I){return ce(I,e.EmitFlags,!0)}M.formatEmitFlags=$;function Q(I){return ce(I,e.SymbolFlags,!0)}M.formatSymbolFlags=Q;function z(I){return ce(I,e.TypeFlags,!0)}M.formatTypeFlags=z;function se(I){return ce(I,e.ObjectFlags,!0)}M.formatObjectFlags=se;function G(I,D){return f((D||"Unexpected node.")+`\r
|
|
|
Node `+C(I.kind)+" was unexpected.",G)}M.failBadSyntaxKind=G,M.assertEachNode=qe(1)?function(I,D,y){return Ee(D===void 0||e.every(I,D),y||"Unexpected node.",function(){return"Node array did not pass test '"+Te(D)+"'."},M.assertEachNode)}:e.noop,M.assertNode=qe(1)?function(I,D,y){return Ee(D===void 0||D(I),y||"Unexpected node.",function(){return"Node "+C(I.kind)+" did not pass test '"+Te(D)+"'."},M.assertNode)}:e.noop,M.assertNotNode=qe(1)?function(I,D,y){return Ee(D===void 0||!D(I),y||"Unexpected node.",function(){return"Node "+C(I.kind)+" should not have passed test '"+Te(D)+"'."},M.assertNode)}:e.noop,M.assertOptionalNode=qe(1)?function(I,D,y){return Ee(D===void 0||I===void 0||D(I),y||"Unexpected node.",function(){return"Node "+C(I.kind)+" did not pass test '"+Te(D)+"'."},M.assertOptionalNode)}:e.noop,M.assertOptionalToken=qe(1)?function(I,D,y){return Ee(D===void 0||I===void 0||I.kind===D,y||"Unexpected node.",function(){return"Node "+C(I.kind)+" was not a '"+C(D)+"' token."},M.assertOptionalToken)}:e.noop,M.assertMissingNode=qe(1)?function(I,D){return Ee(I===void 0,D||"Unexpected node.",function(){return"Node "+C(I.kind)+" was unexpected'."},M.assertMissingNode)}:e.noop;var H=!1,q;function be(){if(_(),!q)throw new Error("Debugging helpers could not be loaded.");return q}function R(I){return console.log(K(I))}M.printControlFlowGraph=R;function K(I){return be().formatControlFlowGraph(I)}M.formatControlFlowGraph=K;function m(I){H&&("__debugFlowFlags"in I||Object.defineProperties(I,{__debugFlowFlags:{get:function(){return ce(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return K(this)}}}))}M.attachFlowNodeDebugInfo=m;function _(){if(H)return;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return Q(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return z(this.flags)}},__debugObjectFlags:{get:function(){return this.flags&524288?se(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var I=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()],D=0,y=I;D<y.length;D++){var E=y[D];E.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(E.prototype,{__debugKind:{get:function(){return C(this.kind)}},__debugNodeFlags:{get:function(){return P(this.flags)}},__debugModifierFlags:{get:function(){return h(e.getModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return X(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return $(e.getEmitFlags(this))}},__debugGetText:{value:function(ne){if(e.nodeIsSynthesized(this))return"";var O=e.getParseTreeNode(this),Y=O&&e.getSourceFileOfNode(O);return Y?e.getSourceTextOfNodeFromSourceFile(Y,O,ne):""}}})}try{if(e.sys&&e.sys.require){var k=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),T=void 0;T.error||(T.module.init(e),q=T.module)}}catch(ne){}H=!0}M.enableDebugInfo=_})(o=e.Debug||(e.Debug={}))})(sn||(sn={}));var sn;(function(e){e.timestamp=typeof performance!="undefined"&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date}})(sn||(sn={})),function(e){var o;(function(M){var qe=typeof onProfilerEvent=="function"&&onProfilerEvent.profiler===!0?onProfilerEvent:function(){},Ee=!1,Ge=0,Be,he,ee;function f(P,h,X,$){return P?J(h,X,$):M.nullTimer}M.createTimerIf=f;function J(P,h,X){var $=0;return{enter:Q,exit:z};function Q(){++$===1&&Oe(h)}function z(){--$===0?(Oe(X),N(P,h,X)):$<0&&e.Debug.fail("enter/exit count does not match.")}}M.createTimer=J,M.nullTimer={enter:e.noop,exit:e.noop};function Oe(P){Ee&&(he.set(P,e.timestamp()),Be.set(P,(Be.get(P)||0)+1),qe(P))}M.mark=Oe;function N(P,h,X){if(Ee){var $=X&&he.get(X)||e.timestamp(),Q=h&&he.get(h)||Ge;ee.set(P,(ee.get(P)||0)+($-Q))}}M.measure=N;function Te(P){return Be&&Be.get(P)||0}M.getCount=Te;function ie(P){return ee&&ee.get(P)||0}M.getDuration=ie;function ce(P){ee.forEach(function(h,X){P(X,h)})}M.forEachMeasure=ce;function x(){Be=e.createMap(),he=e.createMap(),ee=e.createMap(),Ee=!0,Ge=e.timestamp()}M.enable=x;function C(){Ee=!1}M.disable=C})(o=e.performance||(e.performance={}))}(sn||(sn={}));var sn;(function(e){var o={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},M;try{M=void 0}catch(qe){M=void 0}e.perfLogger=M&&M.logEvent?M:o})(sn||(sn={}));var sn;(function(e){var o=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,M=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,qe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Ee=/^(0|[1-9]\d*)$/,Ge=function(){function H(q,be,R,K,m){if(be===void 0&&(be=0),R===void 0&&(R=0),K===void 0&&(K=""),m===void 0&&(m=""),typeof q=="string"){var _=e.Debug.assertDefined(Be(q),"Invalid version");q=_.major,be=_.minor,R=_.patch,K=_.prerelease,m=_.build}e.Debug.assert(q>=0,"Invalid argument: major"),e.Debug.assert(be>=0,"Invalid argument: minor"),e.Debug.assert(R>=0,"Invalid argument: patch"),e.Debug.assert(!K||M.test(K),"Invalid argument: prerelease"),e.Debug.assert(!m||qe.test(m),"Invalid argument: build"),this.major=q,this.minor=be,this.patch=R,this.prerelease=K?K.split("."):e.emptyArray,this.build=m?m.split("."):e.emptyArray}return H.tryParse=function(q){var be=Be(q);if(!be)return;var R=be.major,K=be.minor,m=be.patch,_=be.prerelease,I=be.build;return new H(R,K,m,_,I)},H.prototype.compareTo=function(q){return this===q?0:q===void 0?1:e.compareValues(this.major,q.major)||e.compareValues(this.minor,q.minor)||e.compareValues(this.patch,q.patch)||he(this.prerelease,q.prerelease)},H.prototype.increment=function(q){switch(q){case"major":return new H(this.major+1,0,0);case"minor":return new H(this.major,this.minor+1,0);case"patch":return new H(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(q)}},H.prototype.toString=function(){var q=this.major+"."+this.minor+"."+this.patch;return e.some(this.prerelease)&&(q+="-"+this.prerelease.join(".")),e.some(this.build)&&(q+="+"+this.build.join(".")),q},H.zero=new H(0,0,0),H}();e.Version=Ge;function Be(H){var q=o.exec(H);if(!q)return;var be=q[1],R=q[2],K=R===void 0?"0":R,m=q[3],_=m===void 0?"0":m,I=q[4],D=I===void 0?"":I,y=q[5],E=y===void 0?"":y;return D&&!M.test(D)||E&&!qe.test(E)?void 0:{major:parseInt(be,10),minor:parseInt(K,10),patch:parseInt(_,10),prerelease:D,build:E}}function he(H,q){if(H===q)return 0;if(H.length===0)return q.length===0?0:1;if(q.length===0)return-1;for(var be=Math.min(H.length,q.length),R=0;R<be;R++){var K=H[R],m=q[R];if(K===m)continue;var _=Ee.test(K),I=Ee.test(m);if(_||I){if(_!==I)return _?-1:1;var D=e.compareValues(+K,+m);if(D)return D}else{var D=e.compareStringsCaseSensitive(K,m);if(D)return D}}return e.compareValues(H.length,q.length)}var ee=function(){function H(q){this._alternatives=q?e.Debug.assertDefined(ie(q),"Invalid range spec."):e.emptyArray}return H.tryParse=function(q){var be=ie(q);if(be){var R=new H("");return R._alternatives=be,R}return},H.prototype.test=function(q){return typeof q=="string"&&(q=new Ge(q)),X(q,this._alternatives)},H.prototype.toString=function(){return z(this._alternatives)},H}();e.VersionRange=ee;var f=/\s*\|\|\s*/g,J=/\s+/g,Oe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,N=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Te=/^\s*(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function ie(H){for(var q=[],be=0,R=H.trim().split(f);be<R.length;be++){var K=R[be];if(!K)continue;var m=[],_=N.exec(K);if(_){if(!x(_[1],_[2],m))return}else for(var I=0,D=K.split(J);I<D.length;I++){var y=D[I],E=Te.exec(y);if(!E||!C(E[1],E[2],m))return}q.push(m)}return q}function ce(H){var q=Oe.exec(H);if(!q)return;var be=q[1],R=q[2],K=R===void 0?"*":R,m=q[3],_=m===void 0?"*":m,I=q[4],D=q[5],y=new Ge(P(be)?0:parseInt(be,10),P(be)||P(K)?0:parseInt(K,10),P(be)||P(K)||P(_)?0:parseInt(_,10),I,D);return{version:y,major:be,minor:K,patch:_}}function x(H,q,be){var R=ce(H);if(!R)return!1;var K=ce(q);return K?(P(R.major)||be.push(h(">=",R.version)),P(K.major)||be.push(P(K.minor)?h("<",K.version.increment("major")):P(K.patch)?h("<",K.version.increment("minor")):h("<=",K.version)),!0):!1}function C(H,q,be){var R=ce(q);if(!R)return!1;var K=R.version,m=R.major,_=R.minor,I=R.patch;if(P(m))(H==="<"||H===">")&&be.push(h("<",Ge.zero));else switch(H){case"~":be.push(h(">=",K)),be.push(h("<",K.increment(P(_)?"major":"minor")));break;case"^":be.push(h(">=",K)),be.push(h("<",K.increment(K.major>0||P(_)?"major":K.minor>0||P(I)?"minor":"patch")));break;case"<":case">=":be.push(h(H,K));break;case"<=":case">":be.push(P(_)?h(H==="<="?"<":">=",K.increment("major")):P(I)?h(H==="<="?"<":">=",K.increment("minor")):h(H,K));break;case"=":case void 0:P(_)||P(I)?(be.push(h(">=",K)),be.push(h("<",K.increment(P(_)?"major":"minor")))):be.push(h("=",K));break;default:return!1}return!0}function P(H){return H==="*"||H==="x"||H==="X"}function h(H,q){return{operator:H,operand:q}}function X(H,q){if(q.length===0)return!0;for(var be=0,R=q;be<R.length;be++){var K=R[be];if($(H,K))return!0}return!1}function $(H,q){for(var be=0,R=q;be<R.length;be++){var K=R[be];if(!Q(H,K.operator,K.operand))return!1}return!0}function Q(H,q,be){var R=H.compareTo(be);switch(q){case"<":return R<0;case"<=":return R<=0;case">":return R>0;case">=":return R>=0;case"=":return R===0;default:return e.Debug.assertNever(q)}}function z(H){return e.map(H,se).join(" || ")||"*"}function se(H){return e.map(H,G).join(" ")}function G(H){return""+H.operator+H.operand}})(sn||(sn={}));var sn;(function(e){var o;(function(a){a[a.Unknown=0]="Unknown",a[a.EndOfFileToken=1]="EndOfFileToken",a[a.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",a[a.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",a[a.NewLineTrivia=4]="NewLineTrivia",a[a.WhitespaceTrivia=5]="WhitespaceTrivia",a[a.ShebangTrivia=6]="ShebangTrivia",a[a.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",a[a.NumericLiteral=8]="NumericLiteral",a[a.BigIntLiteral=9]="BigIntLiteral",a[a.StringLiteral=10]="StringLiteral",a[a.JsxText=11]="JsxText",a[a.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",a[a.RegularExpressionLiteral=13]="RegularExpressionLiteral",a[a.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",a[a.TemplateHead=15]="TemplateHead",a[a.TemplateMiddle=16]="TemplateMiddle",a[a.TemplateTail=17]="TemplateTail",a[a.OpenBraceToken=18]="OpenBraceToken",a[a.CloseBraceToken=19]="CloseBraceToken",a[a.OpenParenToken=20]="OpenParenToken",a[a.CloseParenToken=21]="CloseParenToken",a[a.OpenBracketToken=22]="OpenBracketToken",a[a.CloseBracketToken=23]="CloseBracketToken",a[a.DotToken=24]="DotToken",a[a.DotDotDotToken=25]="DotDotDotToken",a[a.SemicolonToken=26]="SemicolonToken",a[a.CommaToken=27]="CommaToken",a[a.QuestionDotToken=28]="QuestionDotToken",a[a.LessThanToken=29]="LessThanToken",a[a.LessThanSlashToken=30]="LessThanSlashToken",a[a.GreaterThanToken=31]="GreaterThanToken",a[a.LessThanEqualsToken=32]="LessThanEqualsToken",a[a.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",a[a.EqualsEqualsToken=34]="EqualsEqualsToken",a[a.ExclamationEqualsToken=35]="ExclamationEqualsToken",a[a.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",a[a.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",a[a.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",a[a.PlusToken=39]="PlusToken",a[a.MinusToken=40]="MinusToken",a[a.AsteriskToken=41]="AsteriskToken",a[a.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",a[a.SlashToken=43]="SlashToken",a[a.PercentToken=44]="PercentToken",a[a.PlusPlusToken=45]="PlusPlusToken",a[a.MinusMinusToken=46]="MinusMinusToken",a[a.LessThanLessThanToken=47]="LessThanLessThanToken",a[a.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",a[a.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",a[a.AmpersandToken=50]="AmpersandToken",a[a.BarToken=51]="BarToken",a[a.CaretToken=52]="CaretToken",a[a.ExclamationToken=53]="ExclamationToken",a[a.TildeToken=54]="TildeToken",a[a.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",a[a.BarBarToken=56]="BarBarToken",a[a.QuestionToken=57]="QuestionToken",a[a.ColonToken=58]="ColonToken",a[a.AtToken=59]="AtToken",a[a.QuestionQuestionToken=60]="QuestionQuestionToken",a[a.BacktickToken=61]="BacktickToken",a[a.EqualsToken=62]="EqualsToken",a[a.PlusEqualsToken=63]="PlusEqualsToken",a[a.MinusEqualsToken=64]="MinusEqualsToken",a[a.AsteriskEqualsToken=65]="AsteriskEqualsToken",a[a.AsteriskAsteriskEqualsToken=66]="AsteriskAsteriskEqualsToken",a[a.SlashEqualsToken=67]="SlashEqualsToken",a[a.PercentEqualsToken=68]="PercentEqualsToken",a[a.LessThanLessThanEqualsToken=69]="LessThanLessThanEqualsToken",a[a.GreaterThanGreaterThanEqualsToken=70]="GreaterThanGreaterThanEqualsToken",a[a.GreaterThanGreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanGreaterThanEqualsToken",a[a.AmpersandEqualsToken=72]="AmpersandEqualsToken",a[a.BarEqualsToken=73]="BarEqualsToken",a[a.CaretEqualsToken=74]="CaretEqualsToken",a[a.Identifier=75]="Identifier",a[a.BreakKeyword=76]="BreakKeyword",a[a.CaseKeyword=77]="CaseKeyword",a[a.CatchKeyword=78]="CatchKeyword",a[a.ClassKeyword=79]="ClassKeyword",a[a.ConstKeyword=80]="ConstKeyword",a[a.ContinueKeyword=81]="ContinueKeyword",a[a.DebuggerKeyword=82]="DebuggerKeyword",a[a.DefaultKeyword=83]="DefaultKeyword",a[a.DeleteKeyword=84]="DeleteKeyword",a[a.DoKeyword=85]="DoKeyword",a[a.ElseKeyword=86]="ElseKeyword",a[a.EnumKeyword=87]="EnumKeyword",a[a.ExportKeyword=88]="ExportKeyword",a[a.ExtendsKeyword=89]="ExtendsKeyword",a[a.FalseKeyword=90]="FalseKeyword",a[a.FinallyKeyword=91]="FinallyKeyword",a[a.ForKeyword=92]="ForKeyword",a[a.FunctionKeyword=93]="FunctionKeyword",a[a.IfKeyword=94]="IfKeyword",a[a.ImportKeyword=95]="ImportKeyword",a[a.InKeyword=96]="InKeyword",a[a.InstanceOfKeyword=97]="InstanceOfKeyword",a[a.NewKeyword=98]="NewKeyword",a[a.NullKeyword=99]="NullKeyword",a[a.ReturnKeyword=100]="ReturnKeyword",a[a.SuperKeyword=101]="SuperKeyword",a[a.SwitchKeyword=102]="SwitchKeyword",a[a.ThisKeyword=103]="ThisKeyword",a[a.ThrowKeyword=104]="ThrowKeyword",a[a.TrueKeyword=105]="TrueKeyword",a[a.TryKeyword=106]="TryKeyword",a[a.TypeOfKeyword=107]="TypeOfKeyword",a[a.VarKeyword=108]="VarKeyword",a[a.VoidKeyword=109]="VoidKeyword",a[a.WhileKeyword=110]="WhileKeyword",a[a.WithKeyword=111]="WithKeyword",a[a.ImplementsKeyword=112]="ImplementsKeyword",a[a.InterfaceKeyword=113]="InterfaceKeyword",a[a.LetKeyword=114]="LetKeyword",a[a.PackageKeyword=115]="PackageKeyword",a[a.PrivateKeyword=116]="PrivateKeyword",a[a.ProtectedKeyword=117]="ProtectedKeyword",a[a.PublicKeyword=118]="PublicKeyword",a[a.StaticKeyword=119]="StaticKeyword",a[a.YieldKeyword=120]="YieldKeyword",a[a.AbstractKeyword=121]="AbstractKeyword",a[a.AsKeyword=122]="AsKeyword",a[a.AssertsKeyword=123]="AssertsKeyword",a[a.AnyKeyword=124]="AnyKeyword",a[a.AsyncKeyword=125]="AsyncKeyword",a[a.AwaitKeyword=126]="AwaitKeyword",a[a.BooleanKeyword=127]="BooleanKeyword",a[a.ConstructorKeyword=128]="ConstructorKeyword",a[a.DeclareKeyword=129]="DeclareKeyword",a[a.GetKeyword=130]="GetKeyword",a[a.InferKeyword=131]="InferKeyword",a[a.IsKeyword=132]="IsKeyword",a[a.KeyOfKeyword=133]="KeyOfKeyword",a[a.ModuleKeyword=134]="ModuleKeyword",a[a.NamespaceKeyword=135]="NamespaceKeyword",a[a.NeverKeyword=136]="NeverKeyword",a[a.ReadonlyKeyword=137]="ReadonlyKeyword",a[a.RequireKeyword=138]="RequireKeyword",a[a.NumberKeyword=139]="NumberKeyword",a[a.ObjectKeyword=140]="ObjectKeyword",a[a.SetKeyword=141]="SetKeyword",a[a.StringKeyword=142]="StringKeyword",a[a.SymbolKeyword=143]="SymbolKeyword",a[a.TypeKeyword=144]="TypeKeyword",a[a.UndefinedKeyword=145]="UndefinedKeyword",a[a.UniqueKeyword=146]="UniqueKeyword",a[a.UnknownKeyword=147]="UnknownKeyword",a[a.FromKeyword=148]="FromKeyword",a[a.GlobalKeyword=149]="GlobalKeyword",a[a.BigIntKeyword=150]="BigIntKeyword",a[a.OfKeyword=151]="OfKeyword",a[a.QualifiedName=152]="QualifiedName",a[a.ComputedPropertyName=153]="ComputedPropertyName",a[a.TypeParameter=154]="TypeParameter",a[a.Parameter=155]="Parameter",a[a.Decorator=156]="Decorator",a[a.PropertySignature=157]="PropertySignature",a[a.PropertyDeclaration=158]="PropertyDeclaration",a[a.MethodSignature=159]="MethodSignature",a[a.MethodDeclaration=160]="MethodDeclaration",a[a.Constructor=161]="Constructor",a[a.GetAccessor=162]="GetAccessor",a[a.SetAccessor=163]="SetAccessor",a[a.CallSignature=164]="CallSignature",a[a.ConstructSignature=165]="ConstructSignature",a[a.IndexSignature=166]="IndexSignature",a[a.TypePredicate=167]="TypePredicate",a[a.TypeReference=168]="TypeReference",a[a.FunctionType=169]="FunctionType",a[a.ConstructorType=170]="ConstructorType",a[a.TypeQuery=171]="TypeQuery",a[a.TypeLiteral=172]="TypeLiteral",a[a.ArrayType=173]="ArrayType",a[a.TupleType=174]="TupleType",a[a.OptionalType=175]="OptionalType",a[a.RestType=176]="RestType",a[a.UnionType=177]="UnionType",a[a.IntersectionType=178]="IntersectionType",a[a.ConditionalType=179]="ConditionalType",a[a.InferType=180]="InferType",a[a.ParenthesizedType=181]="ParenthesizedType",a[a.ThisType=182]="ThisType",a[a.TypeOperator=183]="TypeOperator",a[a.IndexedAccessType=184]="IndexedAccessType",a[a.MappedType=185]="MappedType",a[a.LiteralType=186]="LiteralType",a[a.ImportType=187]="ImportType",a[a.ObjectBindingPattern=188]="ObjectBindingPattern",a[a.ArrayBindingPattern=189]="ArrayBindingPattern",a[a.BindingElement=190]="BindingElement",a[a.ArrayLiteralExpression=191]="ArrayLiteralExpression",a[a.ObjectLiteralExpression=192]="ObjectLiteralExpression",a[a.PropertyAccessExpression=193]="PropertyAccessExpression",a[a.ElementAccessExpression=194]="ElementAccessExpression",a[a.CallExpression=195]="CallExpression",a[a.NewExpression=196]="NewExpression",a[a.TaggedTemplateExpression=197]="TaggedTemplateExpression",a[a.TypeAssertionExpression=198]="TypeAssertionExpression",a[a.ParenthesizedExpression=199]="ParenthesizedExpression",a[a.FunctionExpression=200]="FunctionExpression",a[a.ArrowFunction=201]="ArrowFunction",a[a.DeleteExpression=202]="DeleteExpression",a[a.TypeOfExpression=203]="TypeOfExpression",a[a.VoidExpression=204]="VoidExpression",a[a.AwaitExpression=205]="AwaitExpression",a[a.PrefixUnaryExpression=206]="PrefixUnaryExpression",a[a.PostfixUnaryExpression=207]="PostfixUnaryExpression",a[a.BinaryExpression=208]="BinaryExpression",a[a.ConditionalExpression=209]="ConditionalExpression",a[a.TemplateExpression=210]="TemplateExpression",a[a.YieldExpression=211]="YieldExpression",a[a.SpreadElement=212]="SpreadElement",a[a.ClassExpression=213]="ClassExpression",a[a.OmittedExpression=214]="OmittedExpression",a[a.ExpressionWithTypeArguments=215]="ExpressionWithTypeArguments",a[a.AsExpression=216]="AsExpression",a[a.NonNullExpression=217]="NonNullExpression",a[a.MetaProperty=218]="MetaProperty",a[a.SyntheticExpression=219]="SyntheticExpression",a[a.TemplateSpan=220]="TemplateSpan",a[a.SemicolonClassElement=221]="SemicolonClassElement",a[a.Block=222]="Block",a[a.EmptyStatement=223]="EmptyStatement",a[a.VariableStatement=224]="VariableStatement",a[a.ExpressionStatement=225]="ExpressionStatement",a[a.IfStatement=226]="IfStatement",a[a.DoStatement=227]="DoStatement",a[a.WhileStatement=228]="WhileStatement",a[a.ForStatement=229]="ForStatement",a[a.ForInStatement=230]="ForInStatement",a[a.ForOfStatement=231]="ForOfStatement",a[a.ContinueStatement=232]="ContinueStatement",a[a.BreakStatement=233]="BreakStatement",a[a.ReturnStatement=234]="ReturnStatement",a[a.WithStatement=235]="WithStatement",a[a.SwitchStatement=236]="SwitchStatement",a[a.LabeledStatement=237]="LabeledStatement",a[a.ThrowStatement=238]="ThrowStatement",a[a.TryStatement=239]="TryStatement",a[a.DebuggerStatement=240]="DebuggerStatement",a[a.VariableDeclaration=241]="VariableDeclaration",a[a.VariableDeclarationList=242]="VariableDeclarationList",a[a.FunctionDeclaration=243]="FunctionDeclaration",a[a.ClassDeclaration=244]="ClassDeclaration",a[a.InterfaceDeclaration=245]="InterfaceDeclaration",a[a.TypeAliasDeclaration=246]="TypeAliasDeclaration",a[a.EnumDeclaration=247]="EnumDeclaration",a[a.ModuleDeclaration=248]="ModuleDeclaration",a[a.ModuleBlock=249]="ModuleBlock",a[a.CaseBlock=250]="CaseBlock",a[a.NamespaceExportDeclaration=251]="NamespaceExportDeclaration",a[a.ImportEqualsDeclaration=252]="ImportEqualsDeclaration",a[a.ImportDeclaration=253]="ImportDeclaration",a[a.ImportClause=254]="ImportClause",a[a.NamespaceImport=255]="NamespaceImport",a[a.NamedImports=256]="NamedImports",a[a.ImportSpecifier=257]="ImportSpecifier",a[a.ExportAssignment=258]="ExportAssignment",a[a.ExportDeclaration=259]="ExportDeclaration",a[a.NamedExports=260]="NamedExports",a[a.ExportSpecifier=261]="ExportSpecifier",a[a.MissingDeclaration=262]="MissingDeclaration",a[a.ExternalModuleReference=263]="ExternalModuleReference",a[a.JsxElement=264]="JsxElement",a[a.JsxSelfClosingElement=265]="JsxSelfClosingElement",a[a.JsxOpeningElement=266]="JsxOpeningElement",a[a.JsxClosingElement=267]="JsxClosingElement",a[a.JsxFragment=268]="JsxFragment",a[a.JsxOpeningFragment=269]="JsxOpeningFragment",a[a.JsxClosingFragment=270]="JsxClosingFragment",a[a.JsxAttribute=271]="JsxAttribute",a[a.JsxAttributes=272]="JsxAttributes",a[a.JsxSpreadAttribute=273]="JsxSpreadAttribute",a[a.JsxExpression=274]="JsxExpression",a[a.CaseClause=275]="CaseClause",a[a.DefaultClause=276]="DefaultClause",a[a.HeritageClause=277]="HeritageClause",a[a.CatchClause=278]="CatchClause",a[a.PropertyAssignment=279]="PropertyAssignment",a[a.ShorthandPropertyAssignment=280]="ShorthandPropertyAssignment",a[a.SpreadAssignment=281]="SpreadAssignment",a[a.EnumMember=282]="EnumMember",a[a.UnparsedPrologue=283]="UnparsedPrologue",a[a.UnparsedPrepend=284]="UnparsedPrepend",a[a.UnparsedText=285]="UnparsedText",a[a.UnparsedInternalText=286]="UnparsedInternalText",a[a.UnparsedSyntheticReference=287]="UnparsedSyntheticReference",a[a.SourceFile=288]="SourceFile",a[a.Bundle=289]="Bundle",a[a.UnparsedSource=290]="UnparsedSource",a[a.InputFiles=291]="InputFiles",a[a.JSDocTypeExpression=292]="JSDocTypeExpression",a[a.JSDocAllType=293]="JSDocAllType",a[a.JSDocUnknownType=294]="JSDocUnknownType",a[a.JSDocNullableType=295]="JSDocNullableType",a[a.JSDocNonNullableType=296]="JSDocNonNullableType",a[a.JSDocOptionalType=297]="JSDocOptionalType",a[a.JSDocFunctionType=298]="JSDocFunctionType",a[a.JSDocVariadicType=299]="JSDocVariadicType",a[a.JSDocNamepathType=300]="JSDocNamepathType",a[a.JSDocComment=301]="JSDocComment",a[a.JSDocTypeLiteral=302]="JSDocTypeLiteral",a[a.JSDocSignature=303]="JSDocSignature",a[a.JSDocTag=304]="JSDocTag",a[a.JSDocAugmentsTag=305]="JSDocAugmentsTag",a[a.JSDocAuthorTag=306]="JSDocAuthorTag",a[a.JSDocClassTag=307]="JSDocClassTag",a[a.JSDocCallbackTag=308]="JSDocCallbackTag",a[a.JSDocEnumTag=309]="JSDocEnumTag",a[a.JSDocParameterTag=310]="JSDocParameterTag",a[a.JSDocReturnTag=311]="JSDocReturnTag",a[a.JSDocThisTag=312]="JSDocThisTag",a[a.JSDocTypeTag=313]="JSDocTypeTag",a[a.JSDocTemplateTag=314]="JSDocTemplateTag",a[a.JSDocTypedefTag=315]="JSDocTypedefTag",a[a.JSDocPropertyTag=316]="JSDocPropertyTag",a[a.SyntaxList=317]="SyntaxList",a[a.NotEmittedStatement=318]="NotEmittedStatement",a[a.PartiallyEmittedExpression=319]="PartiallyEmittedExpression",a[a.CommaListExpression=320]="CommaListExpression",a[a.MergeDeclarationMarker=321]="MergeDeclarationMarker",a[a.EndOfDeclarationMarker=322]="EndOfDeclarationMarker",a[a.SyntheticReferenceExpression=323]="SyntheticReferenceExpression",a[a.Count=324]="Count",a[a.FirstAssignment=62]="FirstAssignment",a[a.LastAssignment=74]="LastAssignment",a[a.FirstCompoundAssignment=63]="FirstCompoundAssignment",a[a.LastCompoundAssignment=74]="LastCompoundAssignment",a[a.FirstReservedWord=76]="FirstReservedWord",a[a.LastReservedWord=111]="LastReservedWord",a[a.FirstKeyword=76]="FirstKeyword",a[a.LastKeyword=151]="LastKeyword",a[a.FirstFutureReservedWord=112]="FirstFutureReservedWord",a[a.LastFutureReservedWord=120]="LastFutureReservedWord",a[a.FirstTypeNode=167]="FirstTypeNode",a[a.LastTypeNode=187]="LastTypeNode",a[a.FirstPunctuation=18]="FirstPunctuation",a[a.LastPunctuation=74]="LastPunctuation",a[a.FirstToken=0]="FirstToken",a[a.LastToken=151]="LastToken",a[a.FirstTriviaToken=2]="FirstTriviaToken",a[a.LastTriviaToken=7]="LastTriviaToken",a[a.FirstLiteralToken=8]="FirstLiteralToken",a[a.LastLiteralToken=14]="LastLiteralToken",a[a.FirstTemplateToken=14]="FirstTemplateToken",a[a.LastTemplateToken=17]="LastTemplateToken",a[a.FirstBinaryOperator=29]="FirstBinaryOperator",a[a.LastBinaryOperator=74]="LastBinaryOperator",a[a.FirstStatement=224]="FirstStatement",a[a.LastStatement=240]="LastStatement",a[a.FirstNode=152]="FirstNode",a[a.FirstJSDocNode=292]="FirstJSDocNode",a[a.LastJSDocNode=316]="LastJSDocNode",a[a.FirstJSDocTagNode=304]="FirstJSDocTagNode",a[a.LastJSDocTagNode=316]="LastJSDocTagNode",a[a.FirstContextualKeyword=121]="FirstContextualKeyword",a[a.LastContextualKeyword=151]="LastContextualKeyword"})(o=e.SyntaxKind||(e.SyntaxKind={}));var M;(function(a){a[a.None=0]="None",a[a.Let=1]="Let",a[a.Const=2]="Const",a[a.NestedNamespace=4]="NestedNamespace",a[a.Synthesized=8]="Synthesized",a[a.Namespace=16]="Namespace",a[a.OptionalChain=32]="OptionalChain",a[a.ExportContext=64]="ExportContext",a[a.ContainsThis=128]="ContainsThis",a[a.HasImplicitReturn=256]="HasImplicitReturn",a[a.HasExplicitReturn=512]="HasExplicitReturn",a[a.GlobalAugmentation=1024]="GlobalAugmentation",a[a.HasAsyncFunctions=2048]="HasAsyncFunctions",a[a.DisallowInContext=4096]="DisallowInContext",a[a.YieldContext=8192]="YieldContext",a[a.DecoratorContext=16384]="DecoratorContext",a[a.AwaitContext=32768]="AwaitContext",a[a.ThisNodeHasError=65536]="ThisNodeHasError",a[a.JavaScriptFile=131072]="JavaScriptFile",a[a.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",a[a.HasAggregatedChildData=524288]="HasAggregatedChildData",a[a.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",a[a.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",a[a.JSDoc=4194304]="JSDoc",a[a.Ambient=8388608]="Ambient",a[a.InWithStatement=16777216]="InWithStatement",a[a.JsonFile=33554432]="JsonFile",a[a.BlockScoped=3]="BlockScoped",a[a.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",a[a.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",a[a.ContextFlags=25358336]="ContextFlags",a[a.TypeExcludesFlags=40960]="TypeExcludesFlags",a[a.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags"})(M=e.NodeFlags||(e.NodeFlags={}));var qe;(function(a){a[a.None=0]="None",a[a.Export=1]="Export",a[a.Ambient=2]="Ambient",a[a.Public=4]="Public",a[a.Private=8]="Private",a[a.Protected=16]="Protected",a[a.Static=32]="Static",a[a.Readonly=64]="Readonly",a[a.Abstract=128]="Abstract",a[a.Async=256]="Async",a[a.Default=512]="Default",a[a.Const=2048]="Const",a[a.HasComputedFlags=536870912]="HasComputedFlags",a[a.AccessibilityModifier=28]="AccessibilityModifier",a[a.ParameterPropertyModifier=92]="ParameterPropertyModifier",a[a.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",a[a.TypeScriptModifier=2270]="TypeScriptModifier",a[a.ExportDefault=513]="ExportDefault",a[a.All=3071]="All"})(qe=e.ModifierFlags||(e.ModifierFlags={}));var Ee;(function(a){a[a.None=0]="None",a[a.IntrinsicNamedElement=1]="IntrinsicNamedElement",a[a.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",a[a.IntrinsicElement=3]="IntrinsicElement"})(Ee=e.JsxFlags||(e.JsxFlags={}));var Ge;(function(a){a[a.Succeeded=1]="Succeeded",a[a.Failed=2]="Failed",a[a.Reported=4]="Reported",a[a.ReportsUnmeasurable=8]="ReportsUnmeasurable",a[a.ReportsUnreliable=16]="ReportsUnreliable",a[a.ReportsMask=24]="ReportsMask"})(Ge=e.RelationComparisonResult||(e.RelationComparisonResult={}));var Be;(function(a){a[a.None=0]="None",a[a.Auto=1]="Auto",a[a.Loop=2]="Loop",a[a.Unique=3]="Unique",a[a.Node=4]="Node",a[a.KindMask=7]="KindMask",a[a.ReservedInNestedScopes=8]="ReservedInNestedScopes",a[a.Optimistic=16]="Optimistic",a[a.FileLevel=32]="FileLevel"})(Be=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}));var he;(function(a){a[a.None=0]="None",a[a.PrecedingLineBreak=1]="PrecedingLineBreak",a[a.PrecedingJSDocComment=2]="PrecedingJSDocComment",a[a.Unterminated=4]="Unterminated",a[a.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",a[a.Scientific=16]="Scientific",a[a.Octal=32]="Octal",a[a.HexSpecifier=64]="HexSpecifier",a[a.BinarySpecifier=128]="BinarySpecifier",a[a.OctalSpecifier=256]="OctalSpecifier",a[a.ContainsSeparator=512]="ContainsSeparator",a[a.UnicodeEscape=1024]="UnicodeEscape",a[a.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",a[a.NumericLiteralFlags=1008]="NumericLiteralFlags"})(he=e.TokenFlags||(e.TokenFlags={}));var ee;(function(a){a[a.Unreachable=1]="Unreachable",a[a.Start=2]="Start",a[a.BranchLabel=4]="BranchLabel",a[a.LoopLabel=8]="LoopLabel",a[a.Assignment=16]="Assignment",a[a.TrueCondition=32]="TrueCondition",a[a.FalseCondition=64]="FalseCondition",a[a.SwitchClause=128]="SwitchClause",a[a.ArrayMutation=256]="ArrayMutation",a[a.Call=512]="Call",a[a.Referenced=1024]="Referenced",a[a.Shared=2048]="Shared",a[a.PreFinally=4096]="PreFinally",a[a.AfterFinally=8192]="AfterFinally",a[a.Cached=16384]="Cached",a[a.Label=12]="Label",a[a.Condition=96]="Condition"})(ee=e.FlowFlags||(e.FlowFlags={}));var f=function(){function a(){}return a}();e.OperationCanceledException=f;var J;(function(a){a[a.Import=0]="Import",a[a.ReferenceFile=1]="ReferenceFile",a[a.TypeReferenceDirective=2]="TypeReferenceDirective"})(J=e.RefFileKind||(e.RefFileKind={}));var Oe;(function(a){a[a.Not=0]="Not",a[a.SafeModules=1]="SafeModules",a[a.Completely=2]="Completely"})(Oe=e.StructureIsReused||(e.StructureIsReused={}));var N;(function(a){a[a.Success=0]="Success",a[a.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",a[a.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",a[a.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",a[a.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",a[a.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped"})(N=e.ExitStatus||(e.ExitStatus={}));var Te;(function(a){a[a.None=0]="None",a[a.Literal=1]="Literal",a[a.Subtype=2]="Subtype"})(Te=e.UnionReduction||(e.UnionReduction={}));var ie;(function(a){a[a.None=0]="None",a[a.Signature=1]="Signature",a[a.NoConstraints=2]="NoConstraints",a[a.Completion=4]="Completion"})(ie=e.ContextFlags||(e.ContextFlags={}));var ce;(function(a){a[a.None=0]="None",a[a.NoTruncation=1]="NoTruncation",a[a.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",a[a.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",a[a.UseStructuralFallback=8]="UseStructuralFallback",a[a.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",a[a.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",a[a.UseFullyQualifiedType=64]="UseFullyQualifiedType",a[a.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",a[a.SuppressAnyReturnType=256]="SuppressAnyReturnType",a[a.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",a[a.MultilineObjectLiterals=1024]="MultilineObjectLiterals",a[a.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",a[a.UseTypeOfFunction=4096]="UseTypeOfFunction",a[a.OmitParameterModifiers=8192]="OmitParameterModifiers",a[a.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",a[a.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",a[a.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",a[a.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",a[a.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",a[a.AllowEmptyTuple=524288]="AllowEmptyTuple",a[a.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",a[a.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",a[a.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",a[a.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",a[a.IgnoreErrors=70221824]="IgnoreErrors",a[a.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",a[a.InTypeAlias=8388608]="InTypeAlias",a[a.InInitialEntityName=16777216]="InInitialEntityName",a[a.InReverseMappedType=33554432]="InReverseMappedType"})(ce=e.NodeBuilderFlags||(e.NodeBuilderFlags={}));var x;(function(a){a[a.None=0]="None",a[a.NoTruncation=1]="NoTruncation",a[a.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",a[a.UseStructuralFallback=8]="UseStructuralFallback",a[a.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",a[a.UseFullyQualifiedType=64]="UseFullyQualifiedType",a[a.SuppressAnyReturnType=256]="SuppressAnyReturnType",a[a.MultilineObjectLiterals=1024]="MultilineObjectLiterals",a[a.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",a[a.UseTypeOfFunction=4096]="UseTypeOfFunction",a[a.OmitParameterModifiers=8192]="OmitParameterModifiers",a[a.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",a[a.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",a[a.AddUndefined=131072]="AddUndefined",a[a.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",a[a.InArrayType=524288]="InArrayType",a[a.InElementType=2097152]="InElementType",a[a.InFirstTypeArgument=4194304]="InFirstTypeArgument",a[a.InTypeAlias=8388608]="InTypeAlias",a[a.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",a[a.NodeBuilderFlagsMask=9469291]="NodeBuilderFlagsMask"})(x=e.TypeFormatFlags||(e.TypeFormatFlags={}));var C;(function(a){a[a.None=0]="None",a[a.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",a[a.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",a[a.AllowAnyNodeKind=4]="AllowAnyNodeKind",a[a.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",a[a.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain"})(C=e.SymbolFormatFlags||(e.SymbolFormatFlags={}));var P;(function(a){a[a.Accessible=0]="Accessible",a[a.NotAccessible=1]="NotAccessible",a[a.CannotBeNamed=2]="CannotBeNamed"})(P=e.SymbolAccessibility||(e.SymbolAccessibility={}));var h;(function(a){a[a.UnionOrIntersection=0]="UnionOrIntersection",a[a.Spread=1]="Spread"})(h=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}));var X;(function(a){a[a.This=0]="This",a[a.Identifier=1]="Identifier",a[a.AssertsThis=2]="AssertsThis",a[a.AssertsIdentifier=3]="AssertsIdentifier"})(X=e.TypePredicateKind||(e.TypePredicateKind={}));var $;(function(a){a[a.Unknown=0]="Unknown",a[a.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",a[a.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",a[a.NumberLikeType=3]="NumberLikeType",a[a.BigIntLikeType=4]="BigIntLikeType",a[a.StringLikeType=5]="StringLikeType",a[a.BooleanType=6]="BooleanType",a[a.ArrayLikeType=7]="ArrayLikeType",a[a.ESSymbolType=8]="ESSymbolType",a[a.Promise=9]="Promise",a[a.TypeWithCallSignature=10]="TypeWithCallSignature",a[a.ObjectType=11]="ObjectType"})($=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}));var Q;(function(a){a[a.None=0]="None",a[a.FunctionScopedVariable=1]="FunctionScopedVariable",a[a.BlockScopedVariable=2]="BlockScopedVariable",a[a.Property=4]="Property",a[a.EnumMember=8]="EnumMember",a[a.Function=16]="Function",a[a.Class=32]="Class",a[a.Interface=64]="Interface",a[a.ConstEnum=128]="ConstEnum",a[a.RegularEnum=256]="RegularEnum",a[a.ValueModule=512]="ValueModule",a[a.NamespaceModule=1024]="NamespaceModule",a[a.TypeLiteral=2048]="TypeLiteral",a[a.ObjectLiteral=4096]="ObjectLiteral",a[a.Method=8192]="Method",a[a.Constructor=16384]="Constructor",a[a.GetAccessor=32768]="GetAccessor",a[a.SetAccessor=65536]="SetAccessor",a[a.Signature=131072]="Signature",a[a.TypeParameter=262144]="TypeParameter",a[a.TypeAlias=524288]="TypeAlias",a[a.ExportValue=1048576]="ExportValue",a[a.Alias=2097152]="Alias",a[a.Prototype=4194304]="Prototype",a[a.ExportStar=8388608]="ExportStar",a[a.Optional=16777216]="Optional",a[a.Transient=33554432]="Transient",a[a.Assignment=67108864]="Assignment",a[a.ModuleExports=134217728]="ModuleExports",a[a.All=67108863]="All",a[a.Enum=384]="Enum",a[a.Variable=3]="Variable",a[a.Value=111551]="Value",a[a.Type=788968]="Type",a[a.Namespace=1920]="Namespace",a[a.Module=1536]="Module",a[a.Accessor=98304]="Accessor",a[a.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",a[a.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",a[a.ParameterExcludes=111551]="ParameterExcludes",a[a.PropertyExcludes=0]="PropertyExcludes",a[a.EnumMemberExcludes=900095]="EnumMemberExcludes",a[a.FunctionExcludes=110991]="FunctionExcludes",a[a.ClassExcludes=899503]="ClassExcludes",a[a.InterfaceExcludes=788872]="InterfaceExcludes",a[a.RegularEnumExcludes=899327]="RegularEnumExcludes",a[a.ConstEnumExcludes=899967]="ConstEnumExcludes",a[a.ValueModuleExcludes=110735]="ValueModuleExcludes",a[a.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",a[a.MethodExcludes=103359]="MethodExcludes",a[a.GetAccessorExcludes=46015]="GetAccessorExcludes",a[a.SetAccessorExcludes=78783]="SetAccessorExcludes",a[a.TypeParameterExcludes=526824]="TypeParameterExcludes",a[a.TypeAliasExcludes=788968]="TypeAliasExcludes",a[a.AliasExcludes=2097152]="AliasExcludes",a[a.ModuleMember=2623475]="ModuleMember",a[a.ExportHasLocal=944]="ExportHasLocal",a[a.BlockScoped=418]="BlockScoped",a[a.PropertyOrAccessor=98308]="PropertyOrAccessor",a[a.ClassMember=106500]="ClassMember",a[a.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",a[a.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",a[a.Classifiable=2885600]="Classifiable",a[a.LateBindingContainer=6256]="LateBindingContainer"})(Q=e.SymbolFlags||(e.SymbolFlags={}));var z;(function(a){a[a.Numeric=0]="Numeric",a[a.Literal=1]="Literal"})(z=e.EnumKind||(e.EnumKind={}));var se;(function(a){a[a.Instantiated=1]="Instantiated",a[a.SyntheticProperty=2]="SyntheticProperty",a[a.SyntheticMethod=4]="SyntheticMethod",a[a.Readonly=8]="Readonly",a[a.ReadPartial=16]="ReadPartial",a[a.WritePartial=32]="WritePartial",a[a.HasNonUniformType=64]="HasNonUniformType",a[a.HasLiteralType=128]="HasLiteralType",a[a.ContainsPublic=256]="ContainsPublic",a[a.ContainsProtected=512]="ContainsProtected",a[a.ContainsPrivate=1024]="ContainsPrivate",a[a.ContainsStatic=2048]="ContainsStatic",a[a.Late=4096]="Late",a[a.ReverseMapped=8192]="ReverseMapped",a[a.OptionalParameter=16384]="OptionalParameter",a[a.RestParameter=32768]="RestParameter",a[a.DeferredType=65536]="DeferredType",a[a.Synthetic=6]="Synthetic",a[a.Discriminant=192]="Discriminant",a[a.Partial=48]="Partial"})(se=e.CheckFlags||(e.CheckFlags={}));var G;(function(a){a.Call="__call",a.Constructor="__constructor",a.New="__new",a.Index="__index",a.ExportStar="__export",a.Global="__global",a.Missing="__missing",a.Type="__type",a.Object="__object",a.JSXAttributes="__jsxAttributes",a.Class="__class",a.Function="__function",a.Computed="__computed",a.Resolving="__resolving__",a.ExportEquals="export=",a.Default="default",a.This="this"})(G=e.InternalSymbolName||(e.InternalSymbolName={}));var H;(function(a){a[a.TypeChecked=1]="TypeChecked",a[a.LexicalThis=2]="LexicalThis",a[a.CaptureThis=4]="CaptureThis",a[a.CaptureNewTarget=8]="CaptureNewTarget",a[a.SuperInstance=256]="SuperInstance",a[a.SuperStatic=512]="SuperStatic",a[a.ContextChecked=1024]="ContextChecked",a[a.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",a[a.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",a[a.CaptureArguments=8192]="CaptureArguments",a[a.EnumValuesComputed=16384]="EnumValuesComputed",a[a.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",a[a.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",a[a.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",a[a.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",a[a.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",a[a.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",a[a.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",a[a.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",a[a.AssignmentsMarked=8388608]="AssignmentsMarked",a[a.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",a[a.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass"})(H=e.NodeCheckFlags||(e.NodeCheckFlags={}));var q;(function(a){a[a.Any=1]="Any",a[a.Unknown=2]="Unknown",a[a.String=4]="String",a[a.Number=8]="Number",a[a.Boolean=16]="Boolean",a[a.Enum=32]="Enum",a[a.BigInt=64]="BigInt",a[a.StringLiteral=128]="StringLiteral",a[a.NumberLiteral=256]="NumberLiteral",a[a.BooleanLiteral=512]="BooleanLiteral",a[a.EnumLiteral=1024]="EnumLiteral",a[a.BigIntLiteral=2048]="BigIntLiteral",a[a.ESSymbol=4096]="ESSymbol",a[a.UniqueESSymbol=8192]="UniqueESSymbol",a[a.Void=16384]="Void",a[a.Undefined=32768]="Undefined",a[a.Null=65536]="Null",a[a.Never=131072]="Never",a[a.TypeParameter=262144]="TypeParameter",a[a.Object=524288]="Object",a[a.Union=1048576]="Union",a[a.Intersection=2097152]="Intersection",a[a.Index=4194304]="Index",a[a.IndexedAccess=8388608]="IndexedAccess",a[a.Conditional=16777216]="Conditional",a[a.Substitution=33554432]="Substitution",a[a.NonPrimitive=67108864]="NonPrimitive",a[a.AnyOrUnknown=3]="AnyOrUnknown",a[a.Nullable=98304]="Nullable",a[a.Literal=2944]="Literal",a[a.Unit=109440]="Unit",a[a.StringOrNumberLiteral=384]="StringOrNumberLiteral",a[a.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",a[a.DefinitelyFalsy=117632]="DefinitelyFalsy",a[a.PossiblyFalsy=117724]="PossiblyFalsy",a[a.Intrinsic=67359327]="Intrinsic",a[a.Primitive=131068]="Primitive",a[a.StringLike=132]="StringLike",a[a.NumberLike=296]="NumberLike",a[a.BigIntLike=2112]="BigIntLike",a[a.BooleanLike=528]="BooleanLike",a[a.EnumLike=1056]="EnumLike",a[a.ESSymbolLike=12288]="ESSymbolLike",a[a.VoidLike=49152]="VoidLike",a[a.DisjointDomains=67238908]="DisjointDomains",a[a.UnionOrIntersection=3145728]="UnionOrIntersection",a[a.StructuredType=3670016]="StructuredType",a[a.TypeVariable=8650752]="TypeVariable",a[a.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",a[a.InstantiablePrimitive=4194304]="InstantiablePrimitive",a[a.Instantiable=63176704]="Instantiable",a[a.StructuredOrInstantiable=66846720]="StructuredOrInstantiable",a[a.ObjectFlagsType=3899392]="ObjectFlagsType",a[a.Simplifiable=25165824]="Simplifiable",a[a.Narrowable=133970943]="Narrowable",a[a.NotUnionOrUnit=67637251]="NotUnionOrUnit",a[a.NotPrimitiveUnion=66994211]="NotPrimitiveUnion",a[a.IncludesMask=68943871]="IncludesMask",a[a.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",a[a.IncludesNonWideningType=2097152]="IncludesNonWideningType",a[a.IncludesWildcard=4194304]="IncludesWildcard",a[a.IncludesEmptyObject=8388608]="IncludesEmptyObject",a[a.GenericMappedType=131072]="GenericMappedType"})(q=e.TypeFlags||(e.TypeFlags={}));var be;(function(a){a[a.Class=1]="Class",a[a.Interface=2]="Interface",a[a.Reference=4]="Reference",a[a.Tuple=8]="Tuple",a[a.Anonymous=16]="Anonymous",a[a.Mapped=32]="Mapped",a[a.Instantiated=64]="Instantiated",a[a.ObjectLiteral=128]="ObjectLiteral",a[a.EvolvingArray=256]="EvolvingArray",a[a.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",a[a.ContainsSpread=1024]="ContainsSpread",a[a.ReverseMapped=2048]="ReverseMapped",a[a.JsxAttributes=4096]="JsxAttributes",a[a.MarkerType=8192]="MarkerType",a[a.JSLiteral=16384]="JSLiteral",a[a.FreshLiteral=32768]="FreshLiteral",a[a.ArrayLiteral=65536]="ArrayLiteral",a[a.PrimitiveUnion=131072]="PrimitiveUnion",a[a.ContainsWideningType=262144]="ContainsWideningType",a[a.ContainsObjectOrArrayLiteral=524288]="ContainsObjectOrArrayLiteral",a[a.NonInferrableType=1048576]="NonInferrableType",a[a.ClassOrInterface=3]="ClassOrInterface",a[a.RequiresWidening=786432]="RequiresWidening",a[a.PropagatingFlags=1835008]="PropagatingFlags"})(be=e.ObjectFlags||(e.ObjectFlags={}));var R;(function(a){a[a.Invariant=0]="Invariant",a[a.Covariant=1]="Covariant",a[a.Contravariant=2]="Contravariant",a[a.Bivariant=3]="Bivariant",a[a.Independent=4]="Independent",a[a.VarianceMask=7]="VarianceMask",a[a.Unmeasurable=8]="Unmeasurable",a[a.Unreliable=16]="Unreliable",a[a.AllowsStructuralFallback=24]="AllowsStructuralFallback"})(R=e.VarianceFlags||(e.VarianceFlags={}));var K;(function(a){a[a.Component=0]="Component",a[a.Function=1]="Function",a[a.Mixed=2]="Mixed"})(K=e.JsxReferenceKind||(e.JsxReferenceKind={}));var m;(function(a){a[a.Call=0]="Call",a[a.Construct=1]="Construct"})(m=e.SignatureKind||(e.SignatureKind={}));var _;(function(a){a[a.None=0]="None",a[a.HasRestParameter=1]="HasRestParameter",a[a.HasLiteralTypes=2]="HasLiteralTypes",a[a.IsInnerCallChain=4]="IsInnerCallChain",a[a.IsOuterCallChain=8]="IsOuterCallChain",a[a.PropagatingFlags=3]="PropagatingFlags",a[a.CallChainFlags=12]="CallChainFlags"})(_=e.SignatureFlags||(e.SignatureFlags={}));var I;(function(a){a[a.String=0]="String",a[a.Number=1]="Number"})(I=e.IndexKind||(e.IndexKind={}));var D;(function(a){a[a.NakedTypeVariable=1]="NakedTypeVariable",a[a.HomomorphicMappedType=2]="HomomorphicMappedType",a[a.PartialHomomorphicMappedType=4]="PartialHomomorphicMappedType",a[a.MappedTypeConstraint=8]="MappedTypeConstraint",a[a.ReturnType=16]="ReturnType",a[a.LiteralKeyof=32]="LiteralKeyof",a[a.NoConstraints=64]="NoConstraints",a[a.AlwaysStrict=128]="AlwaysStrict",a[a.MaxValue=256]="MaxValue",a[a.PriorityImpliesCombination=56]="PriorityImpliesCombination",a[a.Circularity=-1]="Circularity"})(D=e.InferencePriority||(e.InferencePriority={}));var y;(function(a){a[a.None=0]="None",a[a.NoDefault=1]="NoDefault",a[a.AnyDefault=2]="AnyDefault",a[a.SkippedGenericFunction=4]="SkippedGenericFunction"})(y=e.InferenceFlags||(e.InferenceFlags={}));var E;(function(a){a[a.False=0]="False",a[a.Maybe=1]="Maybe",a[a.True=-1]="True"})(E=e.Ternary||(e.Ternary={}));var k;(function(a){a[a.None=0]="None",a[a.ExportsProperty=1]="ExportsProperty",a[a.ModuleExports=2]="ModuleExports",a[a.PrototypeProperty=3]="PrototypeProperty",a[a.ThisProperty=4]="ThisProperty",a[a.Property=5]="Property",a[a.Prototype=6]="Prototype",a[a.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",a[a.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",a[a.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"})(k=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}));var T;(function(a){a[a.Warning=0]="Warning",a[a.Error=1]="Error",a[a.Suggestion=2]="Suggestion",a[a.Message=3]="Message"})(T=e.DiagnosticCategory||(e.DiagnosticCategory={}));function ne(a,Ze){Ze===void 0&&(Ze=!0);var In=T[a.category];return Ze?In.toLowerCase():In}e.diagnosticCategoryName=ne;var O;(function(a){a[a.Classic=1]="Classic",a[a.NodeJs=2]="NodeJs"})(O=e.ModuleResolutionKind||(e.ModuleResolutionKind={}));var Y;(function(a){a[a.None=0]="None",a[a.CommonJS=1]="CommonJS",a[a.AMD=2]="AMD",a[a.UMD=3]="UMD",a[a.System=4]="System",a[a.ES2015=5]="ES2015",a[a.ESNext=99]="ESNext"})(Y=e.ModuleKind||(e.ModuleKind={}));var pe;(function(a){a[a.None=0]="None",a[a.Preserve=1]="Preserve",a[a.React=2]="React",a[a.ReactNative=3]="ReactNative"})(pe=e.JsxEmit||(e.JsxEmit={}));var S;(function(a){a[a.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",a[a.LineFeed=1]="LineFeed"})(S=e.NewLineKind||(e.NewLineKind={}));var v;(function(a){a[a.Unknown=0]="Unknown",a[a.JS=1]="JS",a[a.JSX=2]="JSX",a[a.TS=3]="TS",a[a.TSX=4]="TSX",a[a.External=5]="External",a[a.JSON=6]="JSON",a[a.Deferred=7]="Deferred"})(v=e.ScriptKind||(e.ScriptKind={}));var U;(function(a){a[a.ES3=0]="ES3",a[a.ES5=1]="ES5",a[a.ES2015=2]="ES2015",a[a.ES2016=3]="ES2016",a[a.ES2017=4]="ES2017",a[a.ES2018=5]="ES2018",a[a.ES2019=6]="ES2019",a[a.ES2020=7]="ES2020",a[a.ESNext=99]="ESNext",a[a.JSON=100]="JSON",a[a.Latest=99]="Latest"})(U=e.ScriptTarget||(e.ScriptTarget={}));var ue;(function(a){a[a.Standard=0]="Standard",a[a.JSX=1]="JSX"})(ue=e.LanguageVariant||(e.LanguageVariant={}));var De;(function(a){a[a.None=0]="None",a[a.Recursive=1]="Recursive"})(De=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}));var Z;(function(a){a[a.nullCharacter=0]="nullCharacter",a[a.maxAsciiCharacter=127]="maxAsciiCharacter",a[a.lineFeed=10]="lineFeed",a[a.carriageReturn=13]="carriageReturn",a[a.lineSeparator=8232]="lineSeparator",a[a.paragraphSeparator=8233]="paragraphSeparator",a[a.nextLine=133]="nextLine",a[a.space=32]="space",a[a.nonBreakingSpace=160]="nonBreakingSpace",a[a.enQuad=8192]="enQuad",a[a.emQuad=8193]="emQuad",a[a.enSpace=8194]="enSpace",a[a.emSpace=8195]="emSpace",a[a.threePerEmSpace=8196]="threePerEmSpace",a[a.fourPerEmSpace=8197]="fourPerEmSpace",a[a.sixPerEmSpace=8198]="sixPerEmSpace",a[a.figureSpace=8199]="figureSpace",a[a.punctuationSpace=8200]="punctuationSpace",a[a.thinSpace=8201]="thinSpace",a[a.hairSpace=8202]="hairSpace",a[a.zeroWidthSpace=8203]="zeroWidthSpace",a[a.narrowNoBreakSpace=8239]="narrowNoBreakSpace",a[a.ideographicSpace=12288]="ideographicSpace",a[a.mathematicalSpace=8287]="mathematicalSpace",a[a.ogham=5760]="ogham",a[a._=95]="_",a[a.$=36]="$",a[a._0=48]="_0",a[a._1=49]="_1",a[a._2=50]="_2",a[a._3=51]="_3",a[a._4=52]="_4",a[a._5=53]="_5",a[a._6=54]="_6",a[a._7=55]="_7",a[a._8=56]="_8",a[a._9=57]="_9",a[a.a=97]="a",a[a.b=98]="b",a[a.c=99]="c",a[a.d=100]="d",a[a.e=101]="e",a[a.f=102]="f",a[a.g=103]="g",a[a.h=104]="h",a[a.i=105]="i",a[a.j=106]="j",a[a.k=107]="k",a[a.l=108]="l",a[a.m=109]="m",a[a.n=110]="n",a[a.o=111]="o",a[a.p=112]="p",a[a.q=113]="q",a[a.r=114]="r",a[a.s=115]="s",a[a.t=116]="t",a[a.u=117]="u",a[a.v=118]="v",a[a.w=119]="w",a[a.x=120]="x",a[a.y=121]="y",a[a.z=122]="z",a[a.A=65]="A",a[a.B=66]="B",a[a.C=67]="C",a[a.D=68]="D",a[a.E=69]="E",a[a.F=70]="F",a[a.G=71]="G",a[a.H=72]="H",a[a.I=73]="I",a[a.J=74]="J",a[a.K=75]="K",a[a.L=76]="L",a[a.M=77]="M",a[a.N=78]="N",a[a.O=79]="O",a[a.P=80]="P",a[a.Q=81]="Q",a[a.R=82]="R",a[a.S=83]="S",a[a.T=84]="T",a[a.U=85]="U",a[a.V=86]="V",a[a.W=87]="W",a[a.X=88]="X",a[a.Y=89]="Y",a[a.Z=90]="Z",a[a.ampersand=38]="ampersand",a[a.asterisk=42]="asterisk",a[a.at=64]="at",a[a.backslash=92]="backslash",a[a.backtick=96]="backtick",a[a.bar=124]="bar",a[a.caret=94]="caret",a[a.closeBrace=125]="closeBrace",a[a.closeBracket=93]="closeBracket",a[a.closeParen=41]="closeParen",a[a.colon=58]="colon",a[a.comma=44]="comma",a[a.dot=46]="dot",a[a.doubleQuote=34]="doubleQuote",a[a.equals=61]="equals",a[a.exclamation=33]="exclamation",a[a.greaterThan=62]="greaterThan",a[a.hash=35]="hash",a[a.lessThan=60]="lessThan",a[a.minus=45]="minus",a[a.openBrace=123]="openBrace",a[a.openBracket=91]="openBracket",a[a.openParen=40]="openParen",a[a.percent=37]="percent",a[a.plus=43]="plus",a[a.question=63]="question",a[a.semicolon=59]="semicolon",a[a.singleQuote=39]="singleQuote",a[a.slash=47]="slash",a[a.tilde=126]="tilde",a[a.backspace=8]="backspace",a[a.formFeed=12]="formFeed",a[a.byteOrderMark=65279]="byteOrderMark",a[a.tab=9]="tab",a[a.verticalTab=11]="verticalTab"})(Z=e.CharacterCodes||(e.CharacterCodes={}));var Re;(function(a){a.Ts=".ts",a.Tsx=".tsx",a.Dts=".d.ts",a.Js=".js",a.Jsx=".jsx",a.Json=".json",a.TsBuildInfo=".tsbuildinfo"})(Re=e.Extension||(e.Extension={}));var we;(function(a){a[a.None=0]="None",a[a.ContainsTypeScript=1]="ContainsTypeScript",a[a.ContainsJsx=2]="ContainsJsx",a[a.ContainsESNext=4]="ContainsESNext",a[a.ContainsES2019=8]="ContainsES2019",a[a.ContainsES2018=16]="ContainsES2018",a[a.ContainsES2017=32]="ContainsES2017",a[a.ContainsES2016=64]="ContainsES2016",a[a.ContainsES2015=128]="ContainsES2015",a[a.ContainsGenerator=256]="ContainsGenerator",a[a.ContainsDestructuringAssignment=512]="ContainsDestructuringAssignment",a[a.ContainsTypeScriptClassSyntax=1024]="ContainsTypeScriptClassSyntax",a[a.ContainsLexicalThis=2048]="ContainsLexicalThis",a[a.ContainsRestOrSpread=4096]="ContainsRestOrSpread",a[a.ContainsObjectRestOrSpread=8192]="ContainsObjectRestOrSpread",a[a.ContainsComputedPropertyName=16384]="ContainsComputedPropertyName",a[a.ContainsBlockScopedBinding=32768]="ContainsBlockScopedBinding",a[a.ContainsBindingPattern=65536]="ContainsBindingPattern",a[a.ContainsYield=131072]="ContainsYield",a[a.ContainsHoistedDeclarationOrCompletion=262144]="ContainsHoistedDeclarationOrCompletion",a[a.ContainsDynamicImport=524288]="ContainsDynamicImport",a[a.ContainsClassFields=1048576]="ContainsClassFields",a[a.HasComputedFlags=536870912]="HasComputedFlags",a[a.AssertTypeScript=1]="AssertTypeScript",a[a.AssertJsx=2]="AssertJsx",a[a.AssertESNext=4]="AssertESNext",a[a.AssertES2019=8]="AssertES2019",a[a.AssertES2018=16]="AssertES2018",a[a.AssertES2017=32]="AssertES2017",a[a.AssertES2016=64]="AssertES2016",a[a.AssertES2015=128]="AssertES2015",a[a.AssertGenerator=256]="AssertGenerator",a[a.AssertDestructuringAssignment=512]="AssertDestructuringAssignment",a[a.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",a[a.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",a[a.NodeExcludes=536870912]="NodeExcludes",a[a.ArrowFunctionExcludes=537371648]="ArrowFunctionExcludes",a[a.FunctionExcludes=537373696]="FunctionExcludes",a[a.ConstructorExcludes=537372672]="ConstructorExcludes",a[a.MethodOrAccessorExcludes=537372672]="MethodOrAccessorExcludes",a[a.PropertyExcludes=536872960]="PropertyExcludes",a[a.ClassExcludes=536888320]="ClassExcludes",a[a.ModuleExcludes=537168896]="ModuleExcludes",a[a.TypeExcludes=-2]="TypeExcludes",a[a.ObjectLiteralExcludes=536896512]="ObjectLiteralExcludes",a[a.ArrayLiteralOrCallOrNewExcludes=536875008]="ArrayLiteralOrCallOrNewExcludes",a[a.VariableDeclarationListExcludes=536944640]="VariableDeclarationListExcludes",a[a.ParameterExcludes=536870912]="ParameterExcludes",a[a.CatchClauseExcludes=536879104]="CatchClauseExcludes",a[a.BindingPatternExcludes=536875008]="BindingPatternExcludes",a[a.PropertyNamePropagatingFlags=2048]="PropertyNamePropagatingFlags"})(we=e.TransformFlags||(e.TransformFlags={}));var He;(function(a){a[a.None=0]="None",a[a.SingleLine=1]="SingleLine",a[a.AdviseOnEmitNode=2]="AdviseOnEmitNode",a[a.NoSubstitution=4]="NoSubstitution",a[a.CapturesThis=8]="CapturesThis",a[a.NoLeadingSourceMap=16]="NoLeadingSourceMap",a[a.NoTrailingSourceMap=32]="NoTrailingSourceMap",a[a.NoSourceMap=48]="NoSourceMap",a[a.NoNestedSourceMaps=64]="NoNestedSourceMaps",a[a.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",a[a.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",a[a.NoTokenSourceMaps=384]="NoTokenSourceMaps",a[a.NoLeadingComments=512]="NoLeadingComments",a[a.NoTrailingComments=1024]="NoTrailingComments",a[a.NoComments=1536]="NoComments",a[a.NoNestedComments=2048]="NoNestedComments",a[a.HelperName=4096]="HelperName",a[a.ExportName=8192]="ExportName",a[a.LocalName=16384]="LocalName",a[a.InternalName=32768]="InternalName",a[a.Indented=65536]="Indented",a[a.NoIndentation=131072]="NoIndentation",a[a.AsyncFunctionBody=262144]="AsyncFunctionBody",a[a.ReuseTempVariableScope=524288]="ReuseTempVariableScope",a[a.CustomPrologue=1048576]="CustomPrologue",a[a.NoHoisting=2097152]="NoHoisting",a[a.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",a[a.Iterator=8388608]="Iterator",a[a.NoAsciiEscaping=16777216]="NoAsciiEscaping",a[a.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",a[a.NeverApplyImportHelper=67108864]="NeverApplyImportHelper"})(He=e.EmitFlags||(e.EmitFlags={}));var ve;(function(a){a[a.Extends=1]="Extends",a[a.Assign=2]="Assign",a[a.Rest=4]="Rest",a[a.Decorate=8]="Decorate",a[a.Metadata=16]="Metadata",a[a.Param=32]="Param",a[a.Awaiter=64]="Awaiter",a[a.Generator=128]="Generator",a[a.Values=256]="Values",a[a.Read=512]="Read",a[a.Spread=1024]="Spread",a[a.SpreadArrays=2048]="SpreadArrays",a[a.Await=4096]="Await",a[a.AsyncGenerator=8192]="AsyncGenerator",a[a.AsyncDelegator=16384]="AsyncDelegator",a[a.AsyncValues=32768]="AsyncValues",a[a.ExportStar=65536]="ExportStar",a[a.MakeTemplateObject=131072]="MakeTemplateObject",a[a.FirstEmitHelper=1]="FirstEmitHelper",a[a.LastEmitHelper=131072]="LastEmitHelper",a[a.ForOfIncludes=256]="ForOfIncludes",a[a.ForAwaitOfIncludes=32768]="ForAwaitOfIncludes",a[a.AsyncGeneratorIncludes=12288]="AsyncGeneratorIncludes",a[a.AsyncDelegatorIncludes=53248]="AsyncDelegatorIncludes",a[a.SpreadIncludes=1536]="SpreadIncludes"})(ve=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}));var je;(function(a){a[a.SourceFile=0]="SourceFile",a[a.Expression=1]="Expression",a[a.IdentifierName=2]="IdentifierName",a[a.MappedTypeParameter=3]="MappedTypeParameter",a[a.Unspecified=4]="Unspecified",a[a.EmbeddedStatement=5]="EmbeddedStatement"})(je=e.EmitHint||(e.EmitHint={}));var w;(function(a){a.Prologue="prologue",a.EmitHelpers="emitHelpers",a.NoDefaultLib="no-default-lib",a.Reference="reference",a.Type="type",a.Lib="lib",a.Prepend="prepend",a.Text="text",a.Internal="internal"})(w=e.BundleFileSectionKind||(e.BundleFileSectionKind={}));var j;(function(a){a[a.None=0]="None",a[a.SingleLine=0]="SingleLine",a[a.MultiLine=1]="MultiLine",a[a.PreserveLines=2]="PreserveLines",a[a.LinesMask=3]="LinesMask",a[a.NotDelimited=0]="NotDelimited",a[a.BarDelimited=4]="BarDelimited",a[a.AmpersandDelimited=8]="AmpersandDelimited",a[a.CommaDelimited=16]="CommaDelimited",a[a.AsteriskDelimited=32]="AsteriskDelimited",a[a.DelimitersMask=60]="DelimitersMask",a[a.AllowTrailingComma=64]="AllowTrailingComma",a[a.Indented=128]="Indented",a[a.SpaceBetweenBraces=256]="SpaceBetweenBraces",a[a.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",a[a.Braces=1024]="Braces",a[a.Parenthesis=2048]="Parenthesis",a[a.AngleBrackets=4096]="AngleBrackets",a[a.SquareBrackets=8192]="SquareBrackets",a[a.BracketsMask=15360]="BracketsMask",a[a.OptionalIfUndefined=16384]="OptionalIfUndefined",a[a.OptionalIfEmpty=32768]="OptionalIfEmpty",a[a.Optional=49152]="Optional",a[a.PreferNewLine=65536]="PreferNewLine",a[a.NoTrailingNewLine=131072]="NoTrailingNewLine",a[a.NoInterveningComments=262144]="NoInterveningComments",a[a.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",a[a.SingleElement=1048576]="SingleElement",a[a.Modifiers=262656]="Modifiers",a[a.HeritageClauses=512]="HeritageClauses",a[a.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",a[a.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",a[a.TupleTypeElements=528]="TupleTypeElements",a[a.UnionTypeConstituents=516]="UnionTypeConstituents",a[a.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",a[a.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",a[a.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",a[a.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",a[a.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",a[a.CommaListElements=528]="CommaListElements",a[a.CallExpressionArguments=2576]="CallExpressionArguments",a[a.NewExpressionArguments=18960]="NewExpressionArguments",a[a.TemplateExpressionSpans=262144]="TemplateExpressionSpans",a[a.SingleLineBlockStatements=768]="SingleLineBlockStatements",a[a.MultiLineBlockStatements=129]="MultiLineBlockStatements",a[a.VariableDeclarationList=528]="VariableDeclarationList",a[a.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",a[a.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",a[a.ClassHeritageClauses=0]="ClassHeritageClauses",a[a.ClassMembers=129]="ClassMembers",a[a.InterfaceMembers=129]="InterfaceMembers",a[a.EnumMembers=145]="EnumMembers",a[a.CaseBlockClauses=129]="CaseBlockClauses",a[a.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",a[a.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",a[a.JsxElementAttributes=262656]="JsxElementAttributes",a[a.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",a[a.HeritageClauseTypes=528]="HeritageClauseTypes",a[a.SourceFileStatements=131073]="SourceFileStatements",a[a.Decorators=49153]="Decorators",a[a.TypeArguments=53776]="TypeArguments",a[a.TypeParameters=53776]="TypeParameters",a[a.Parameters=2576]="Parameters",a[a.IndexSignatureParameters=8848]="IndexSignatureParameters",a[a.JSDocComment=33]="JSDocComment"})(j=e.ListFormat||(e.ListFormat={}));var Pe;(function(a){a[a.None=0]="None",a[a.TripleSlashXML=1]="TripleSlashXML",a[a.SingleLine=2]="SingleLine",a[a.MultiLine=4]="MultiLine",a[a.All=7]="All",a[a.Default=7]="Default"})(Pe=e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4}}})(sn||(sn={}));var sn;(function(e){function o(C){for(var P=5381,h=0;h<C.length;h++)P=(P<<5)+P+C.charCodeAt(h);return P.toString()}e.generateDjb2Hash=o;function M(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}e.setStackTraceLimit=M;var qe;(function(C){C[C.Created=0]="Created",C[C.Changed=1]="Changed",C[C.Deleted=2]="Deleted"})(qe=e.FileWatcherEventKind||(e.FileWatcherEventKind={}));var Ee;(function(C){C[C.High=2e3]="High",C[C.Medium=500]="Medium",C[C.Low=250]="Low"})(Ee=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0);function Ge(C){var P;return P={},P[Ee.Low]=C.Low,P[Ee.Medium]=C.Medium,P[Ee.High]=C.High,P}var Be={Low:32,Medium:64,High:256},he=Ge(Be);e.unchangedPollThresholds=Ge(Be);function ee(C){if(!C.getEnvironmentVariable)return;var P=$("TSC_WATCH_POLLINGINTERVAL",Ee);he=Q("TSC_WATCH_POLLINGCHUNKSIZE",Be)||he,e.unchangedPollThresholds=Q("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",Be)||e.unchangedPollThresholds;function h(z,se){return C.getEnvironmentVariable(z+"_"+se.toUpperCase())}function X(z){var se;return G("Low"),G("Medium"),G("High"),se;function G(H){var q=h(z,H);q&&((se||(se={}))[H]=Number(q))}}function $(z,se){var G=X(z);if(G)return H("Low"),H("Medium"),H("High"),!0;return!1;function H(q){se[q]=G[q]||se[q]}}function Q(z,se){var G=X(z);return(P||G)&&Ge(G?Rr(Rr({},se),G):se)}}e.setCustomPollingValues=ee;function f(C){var P=[],h=[],X=se(Ee.Low),$=se(Ee.Medium),Q=se(Ee.High);return z;function z(D,y,E){var k={fileName:D,callback:y,unchangedPolls:0,mtime:I(D)};return P.push(k),R(k,E),{close:function(){k.isClosed=!0,e.unorderedRemoveItem(P,k)}}}function se(D){var y=[];return y.pollingInterval=D,y.pollIndex=0,y.pollScheduled=!1,y}function G(D){D.pollIndex=q(D,D.pollingInterval,D.pollIndex,he[D.pollingInterval]),D.length?_(D.pollingInterval):(e.Debug.assert(D.pollIndex===0),D.pollScheduled=!1)}function H(D){q(h,Ee.Low,0,h.length),G(D),!D.pollScheduled&&h.length&&_(Ee.Low)}function q(D,y,E,k){for(var T=D.length,ne=E,O=0;O<k&&T>0;S(),T--){var Y=D[E];if(Y){if(Y.isClosed){D[E]=void 0;continue}}else continue;O++;var pe=Oe(Y,I(Y.fileName));Y.isClosed?D[E]=void 0:pe?(Y.unchangedPolls=0,D!==h&&(D[E]=void 0,K(Y))):Y.unchangedPolls!==e.unchangedPollThresholds[y]?Y.unchangedPolls++:D===h?(Y.unchangedPolls=1,D[E]=void 0,R(Y,Ee.Low)):y!==Ee.High&&(Y.unchangedPolls++,D[E]=void 0,R(Y,y===Ee.Low?Ee.Medium:Ee.High)),D[E]&&(ne<E&&(D[ne]=Y,D[E]=void 0),ne++)}return E;function S(){E++,E===D.length&&(ne<E&&(D.length=ne),E=0,ne=0)}}function be(D){switch(D){case Ee.Low:return X;case Ee.Medium:return $;case Ee.High:return Q}}function R(D,y){be(y).push(D),m(y)}function K(D){h.push(D),m(Ee.Low)}function m(D){be(D).pollScheduled||_(D)}function _(D){be(D).pollScheduled=C.setTimeout(D===Ee.Low?H:G,D,be(D))}function I(D){return C.getModifiedTime(D)||e.missingFileModifiedTime}}e.createDynamicPriorityPollingWatchFile=f;function J(C,P){var h=e.createMap(),X=e.createMultiMap(),$=e.createGetCanonicalFileName(P);return function(Q,z,se){var G=$(Q),H=h.get(G);return H?H.refCount++:h.set(G,{watcher:C(Q,function(q,be){return e.forEach(X.get(G),function(R){return R(q,be)})},se),refCount:1}),X.add(G,z),{close:function(){var q=e.Debug.assertDefined(h.get(G));if(X.remove(G,z),q.refCount--,q.refCount)return;h.delete(G),e.closeFileWatcherOf(q)}}}}e.createSingleFileWatcherPerName=J;function Oe(C,P){var h=C.mtime.getTime(),X=P.getTime();return h!==X?(C.mtime=P,C.callback(C.fileName,N(h,X)),!0):!1}e.onWatchedFileStat=Oe;function N(C,P){return C===0?qe.Created:P===0?qe.Deleted:qe.Changed}e.getFileWatcherEventKind=N,e.ignoredPaths=["/node_modules/.","/.git","/.#"],e.sysLog=e.noop;function Te(C){var P=e.createMap(),h=e.createMultiMap(),X=e.getStringComparer(!C.useCaseSensitiveFileNames),$=e.createGetCanonicalFileName(C.useCaseSensitiveFileNames);return Q;function Q(q,be){var R=$(q),K=P.get(R);return K?K.refCount++:(K={watcher:C.watchDirectory(q,function(m){if(G(m))return;h.forEach(function(_,I){(I===R||e.startsWith(R,I)&&R[I.length]===e.directorySeparator)&&_.forEach(function(D){return D(m)})}),z(q,R)}),refCount:1,childWatches:e.emptyArray},P.set(R,K),z(q,R)),be&&h.add(R,be),{dirName:q,close:function(){var m=e.Debug.assertDefined(P.get(R));if(be&&h.remove(R,be),m.refCount--,m.refCount)return;P.delete(R),e.closeFileWatcherOf(m),m.childWatches.forEach(e.closeFileWatcher)}}}function z(q,be){var R=P.get(be);R&&(R.childWatches=se(q,R.childWatches))}function se(q,be){var R;return e.enumerateInsertsAndDeletes(C.directoryExists(q)?e.mapDefined(C.getAccessibleSortedChildDirectories(q),function(_){var I=e.getNormalizedAbsolutePath(_,q);return!G(I)&&X(I,e.normalizePath(C.realpath(I)))===0?I:void 0}):e.emptyArray,be,function(_,I){return X(_,I.dirName)},K,e.closeFileWatcher,m),R||e.emptyArray;function K(_){var I=Q(_);m(I)}function m(_){(R||(R=[])).push(_)}}function G(q){return e.some(e.ignoredPaths,function(be){return H(q,be)})}function H(q,be){return e.stringContains(q,be)?!0:C.useCaseSensitiveFileNames?!1:e.stringContains($(q),be)}}e.createRecursiveDirectoryWatcher=Te;function ie(C,P){var h=e.getDirectoryPath(C),X=h!==""&&C!==h&&!P.directoryExists(h);X&&ie(h,P),(X||!P.directoryExists(C))&&P.createDirectory(C)}function ce(C){var P=C.writeFile;C.writeFile=function(h,X,$){var Q=e.getDirectoryPath(e.normalizeSlashes(h));Q&&!C.directoryExists(Q)&&ie(Q,C),P.call(C,h,X,$)}}e.patchWriteFileEnsuringDirectory=ce;function x(){if(typeof li=="undefined")return;var C=li.version;if(!C)return;var P=C.indexOf(".");return P===-1?void 0:parseInt(C.substring(1,P))}e.getNodeMajorVersion=x,e.sys=void 0,e.sys&&e.sys.getEnvironmentVariable&&(ee(e.sys),e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)})(sn||(sn={}));var sn;(function(e){e.directorySeparator="/";var o="\\",M="://",qe=/\\/g;function Ee(w){return w===47||w===92}e.isAnyDirectorySeparator=Ee;function Ge(w){return x(w)<0}e.isUrl=Ge;function Be(w){return x(w)>0}e.isRootedDiskPath=Be;function he(w){var j=x(w);return j>0&&j===w.length}e.isDiskPathRoot=he;function ee(w){return x(w)!==0}e.pathIsAbsolute=ee;function f(w){return/^\.\.?($|[\\/])/.test(w)}e.pathIsRelative=f;function J(w){return e.stringContains(h(w),".")}e.hasExtension=J;function Oe(w,j){return w.length>j.length&&e.endsWith(w,j)}e.fileExtensionIs=Oe;function N(w,j){for(var Pe=0,a=j;Pe<a.length;Pe++){var Ze=a[Pe];if(Oe(w,Ze))return!0}return!1}e.fileExtensionIsOneOf=N;function Te(w){return w.length>0&&Ee(w.charCodeAt(w.length-1))}e.hasTrailingDirectorySeparator=Te;function ie(w){return w>=97&&w<=122||w>=65&&w<=90}function ce(w,j){var Pe=w.charCodeAt(j);if(Pe===58)return j+1;if(Pe===37&&w.charCodeAt(j+1)===51){var a=w.charCodeAt(j+2);if(a===97||a===65)return j+3}return-1}function x(w){if(!w)return 0;var j=w.charCodeAt(0);if(j===47||j===92){if(w.charCodeAt(1)!==j)return 1;var Pe=w.indexOf(j===47?e.directorySeparator:o,2);return Pe<0?w.length:Pe+1}if(ie(j)&&w.charCodeAt(1)===58){var a=w.charCodeAt(2);if(a===47||a===92)return 3;if(w.length===2)return 2}var Ze=w.indexOf(M);if(Ze!==-1){var In=Ze+M.length,et=w.indexOf(e.directorySeparator,In);if(et!==-1){var ae=w.slice(0,Ze),fe=w.slice(In,et);if(ae==="file"&&(fe===""||fe==="localhost")&&ie(w.charCodeAt(et+1))){var Le=ce(w,et+2);if(Le!==-1){if(w.charCodeAt(Le)===47)return~(Le+1);if(Le===w.length)return~Le}}return~(et+1)}return~w.length}return 0}function C(w){var j=x(w);return j<0?~j:j}e.getRootLength=C;function P(w){w=H(w);var j=C(w);return j===w.length?w:(w=k(w),w.slice(0,Math.max(j,w.lastIndexOf(e.directorySeparator))))}e.getDirectoryPath=P;function h(w,j,Pe){w=H(w);var a=C(w);if(a===w.length)return"";w=k(w);var Ze=w.slice(Math.max(C(w),w.lastIndexOf(e.directorySeparator)+1)),In=j!==void 0&&Pe!==void 0?Q(Ze,j,Pe):void 0;return In?Ze.slice(0,Ze.length-In.length):Ze}e.getBaseFileName=h;function X(w,j,Pe){if(e.startsWith(j,".")||(j="."+j),w.length>=j.length&&w.charCodeAt(w.length-j.length)===46){var a=w.slice(w.length-j.length);if(Pe(a,j))return a}}function $(w,j,Pe){if(typeof j=="string")return X(w,j,Pe)||"";for(var a=0,Ze=j;a<Ze.length;a++){var In=Ze[a],et=X(w,In,Pe);if(et)return et}return""}function Q(w,j,Pe){if(j)return $(k(w),j,Pe?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var a=h(w),Ze=a.lastIndexOf(".");return Ze>=0?a.substring(Ze):""}e.getAnyExtensionFromPath=Q;function z(w,j){var Pe=w.substring(0,j),a=w.substring(j).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),Tr([Pe],a)}function se(w,j){return j===void 0&&(j=""),w=be(j,w),z(w,C(w))}e.getPathComponents=se;function G(w){if(w.length===0)return"";var j=w[0]&&T(w[0]);return j+w.slice(1).join(e.directorySeparator)}e.getPathFromPathComponents=G;function H(w){return w.replace(qe,e.directorySeparator)}e.normalizeSlashes=H;function q(w){if(!e.some(w))return[];for(var j=[w[0]],Pe=1;Pe<w.length;Pe++){var a=w[Pe];if(!a)continue;if(a===".")continue;if(a===".."){if(j.length>1){if(j[j.length-1]!==".."){j.pop();continue}}else if(j[0])continue}j.push(a)}return j}e.reducePathComponents=q;function be(w){for(var j=[],Pe=1;Pe<arguments.length;Pe++)j[Pe-1]=arguments[Pe];w&&(w=H(w));for(var a=0,Ze=j;a<Ze.length;a++){var In=Ze[a];if(!In)continue;In=H(In),!w||C(In)!==0?w=In:w=T(w)+In}return w}e.combinePaths=be;function R(w){for(var j=[],Pe=1;Pe<arguments.length;Pe++)j[Pe-1]=arguments[Pe];return _(e.some(j)?be.apply(void 0,Tr([w],j)):H(w))}e.resolvePath=R;function K(w,j){return q(se(w,j))}e.getNormalizedPathComponents=K;function m(w,j){return G(K(w,j))}e.getNormalizedAbsolutePath=m;function _(w){w=H(w);var j=G(q(se(w)));return j&&Te(w)?T(j):j}e.normalizePath=_;function I(w){return w.length===0?"":w.slice(1).join(e.directorySeparator)}function D(w,j){return I(K(w,j))}e.getNormalizedAbsolutePathWithoutRoot=D;function y(w,j,Pe){var a=Be(w)?_(w):m(w,j);return Pe(a)}e.toPath=y;function E(w){w=H(w);var j=q(se(w)),Pe=j[0],a=j.slice(1);if(a.length){var Ze=Pe+a.join(e.directorySeparator);return{path:Te(w)?T(Ze):Ze,parts:a}}else return{path:Pe,parts:a}}e.normalizePathAndParts=E;function k(w){return Te(w)?w.substr(0,w.length-1):w}e.removeTrailingDirectorySeparator=k;function T(w){return Te(w)?w:w+e.directorySeparator}e.ensureTrailingDirectorySeparator=T;function ne(w){return!ee(w)&&!f(w)?"./"+w:w}e.ensurePathIsNonModuleName=ne;function O(w,j,Pe,a){var Ze=Pe!==void 0&&a!==void 0?Q(w,Pe,a):Q(w);return Ze?w.slice(0,w.length-Ze.length)+(e.startsWith(j,".")?j:"."+j):w}e.changeAnyExtension=O;var Y=/(^|\/)\.{0,2}($|\/)/;function pe(w,j,Pe){if(w===j)return 0;if(w===void 0)return-1;if(j===void 0)return 1;var a=w.substring(0,C(w)),Ze=j.substring(0,C(j)),In=e.compareStringsCaseInsensitive(a,Ze);if(In!==0)return In;var et=w.substring(a.length),ae=j.substring(Ze.length);if(!Y.test(et)&&!Y.test(ae))return Pe(et,ae);for(var fe=q(se(w)),Le=q(se(j)),Je=Math.min(fe.length,Le.length),$e=1;$e<Je;$e++){var Fe=Pe(fe[$e],Le[$e]);if(Fe!==0)return Fe}return e.compareValues(fe.length,Le.length)}function S(w,j){return pe(w,j,e.compareStringsCaseSensitive)}e.comparePathsCaseSensitive=S;function v(w,j){return pe(w,j,e.compareStringsCaseInsensitive)}e.comparePathsCaseInsensitive=v;function U(w,j,Pe,a){return typeof Pe=="string"?(w=be(Pe,w),j=be(Pe,j)):typeof Pe=="boolean"&&(a=Pe),pe(w,j,e.getStringComparer(a))}e.comparePaths=U;function ue(w,j,Pe,a){if(typeof Pe=="string"?(w=be(Pe,w),j=be(Pe,j)):typeof Pe=="boolean"&&(a=Pe),w===void 0||j===void 0)return!1;if(w===j)return!0;var Ze=q(se(w)),In=q(se(j));if(In.length<Ze.length)return!1;for(var et=a?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,ae=0;ae<Ze.length;ae++){var fe=ae===0?e.equateStringsCaseInsensitive:et;if(!fe(Ze[ae],In[ae]))return!1}return!0}e.containsPath=ue;function De(w,j,Pe){var a=Pe(w),Ze=Pe(j);return e.startsWith(a,Ze+"/")||e.startsWith(a,Ze+"\\")}e.startsWithDirectory=De;function Z(w,j,Pe,a){var Ze=q(se(w)),In=q(se(j)),et;for(et=0;et<Ze.length&&et<In.length;et++){var ae=a(Ze[et]),fe=a(In[et]),Le=et===0?e.equateStringsCaseInsensitive:Pe;if(!Le(ae,fe))break}if(et===0)return In;for(var Je=In.slice(et),$e=[];et<Ze.length;et++)$e.push("..");return Tr([""],$e,Je)}e.getPathComponentsRelativeTo=Z;function Re(w,j,Pe){e.Debug.assert(C(w)>0===C(j)>0,"Paths must either both be absolute or both be relative");var a=typeof Pe=="function"?Pe:e.identity,Ze=typeof Pe=="boolean"?Pe:!1,In=Z(w,j,Ze?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,a);return G(In)}e.getRelativePathFromDirectory=Re;function we(w,j,Pe){return Be(w)?ve(j,w,j,Pe,!1):w}e.convertToRelativePath=we;function He(w,j,Pe){return ne(Re(P(w),j,Pe))}e.getRelativePathFromFile=He;function ve(w,j,Pe,a,Ze){var In=Z(R(Pe,w),R(Pe,j),e.equateStringsCaseSensitive,a),et=In[0];if(Ze&&Be(et)){var ae=et.charAt(0)===e.directorySeparator?"file://":"file:///";In[0]=ae+et}return G(In)}e.getRelativePathToDirectoryOrUrl=ve;function je(w,j){for(;;){var Pe=j(w);if(Pe!==void 0)return Pe;var a=P(w);if(a===w)return;w=a}}e.forEachAncestorDirectory=je})(sn||(sn={}));var sn;(function(e){function o(M,qe,Ee,Ge,Be,he){return{code:M,category:qe,key:Ee,message:Ge,reportsUnnecessary:Be,elidedInCompatabilityPyramid:he}}e.Diagnostics={Unterminated_string_literal:o(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:o(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:o(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:o(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),Trailing_comma_not_allowed:o(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:o(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:o(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:o(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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."),Accessibility_modifier_already_seen:o(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:o(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:o(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_a_class_element:o(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),super_must_be_followed_by_an_argument_list_or_member_access:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:o(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:o(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:o(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:o(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:o(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."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:o(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:o(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:o(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:o(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:o(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:o(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:o(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:o(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:o(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:o(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:o(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:o(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:o(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:o(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:o(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:o(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:o(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:o(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:o(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:o(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:o(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:o(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:o(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:o(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:o(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:o(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:o(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:o(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:o(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:o(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:o(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:o(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:o(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:o(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:o(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:o(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:o(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:o(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:o(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_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:o(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a 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:o(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:o(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:o(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:o(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:o(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:o(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:o(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:o(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:o(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:o(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:o(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:o(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:o(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:o(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:o(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:o(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:o(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:o(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:o(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:o(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:o(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:o(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:o(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:o(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:o(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:o(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:o(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),Catch_clause_variable_cannot_have_a_type_annotation:o(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer:o(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:o(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:o(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:o(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:o(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:o(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."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:o(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here:o(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:o(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."),All_files_must_be_modules_when_the_isolatedModules_flag_is_provided:o(1208,e.DiagnosticCategory.Error,"All_files_must_be_modules_when_the_isolatedModules_flag_is_provided_1208","All files must be modules when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:o(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:o(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:o(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:o(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:o(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:o(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:o(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_can_only_be_used_in_a_module:o(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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_rest_element_must_be_last_in_a_tuple_type:o(1256,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_tuple_type_1256","A rest element must be last in a tuple type."),A_required_element_cannot_follow_an_optional_element:o(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation:o(1258,e.DiagnosticCategory.Error,"Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation_1258","Definite assignment assertions can only be used along with a type annotation."),Module_0_can_only_be_default_imported_using_the_1_flag:o(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:o(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),with_statements_are_not_allowed_in_an_async_function_block:o(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_expression_is_only_allowed_within_an_async_function:o(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:o(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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_esnext_commonjs_amd_system_or_umd:o(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_commonjs_amd_system_or_umd_1323","Dynamic imports are only supported when the '--module' flag is set to 'esnext', 'commonjs', 'amd', 'system', or 'umd'."),Dynamic_import_must_have_one_specifier_as_an_argument:o(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:o(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:o(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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_esnext_or_system:o(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'esnext' or 'system'."),A_label_is_not_allowed_here:o(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:o(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:o(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:o(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:o(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:o(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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."),The_types_of_0_are_incompatible_between_these_types:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:o(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:o(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:o(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0:o(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:o(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:o(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:o(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:o(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:o(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:o(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:o(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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_be_of_type_any_an_object_type_or_a_type_parameter:o(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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_be_referenced_in_its_initializer:o(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:o(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:o(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:o(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_or_has_parameter_properties:o(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 or has parameter properties."),Constructors_for_derived_classes_must_contain_a_super_call:o(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:o(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:o(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:o(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:o(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:o(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:o(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:o(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:o(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:o(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:o(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:o(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:o(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:o(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:o(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:o(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:o(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:o(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:o(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:o(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:o(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:o(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:o(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:o(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:o(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}'."),Class_0_incorrectly_implements_interface_1:o(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:o(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:o(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:o(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:o(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:o(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:o(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:o(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:o(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:o(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:o(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:o(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:o(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:o(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:o(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:o(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:o(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:o(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:o(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:o(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Type_0_is_not_an_array_type:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:o(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:o(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:o(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:o(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:o(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:o(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_Did_you_mean_2:o(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:o(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:o(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:o(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:o(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_1_or_more:o(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:o(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:o(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:o(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:o(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:o(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_is_a_static_member_of_type_1:o(2576,e.DiagnosticCategory.Error,"Property_0_is_a_static_member_of_type_1_2576","Property '{0}' is a static member of type '{1}'"),Return_type_annotation_circularly_references_itself:o(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode:o(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery:o(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha:o(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:o(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 es2015 or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:o(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:o(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:o(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:o(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:o(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:o(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:o(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_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:o(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_th_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @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_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:o(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_an_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @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_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:o(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @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:o(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."),JSX_element_attributes_type_0_may_not_be_a_union_type:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_property:o(2610,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_proper_2610","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member property."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_accessor:o(2611,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_access_2611","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member 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:o(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:o(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:o(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?"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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'."),Module_0_has_no_exported_member_1_Did_you_mean_2:o(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:o(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:o(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:o(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:o(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:o(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:o(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:o(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:o(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:o(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),It_is_highly_likely_that_you_are_missing_a_semicolon:o(2734,e.DiagnosticCategory.Error,"It_is_highly_likely_that_you_are_missing_a_semicolon_2734","It is highly likely that you are missing a semicolon."),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:o(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:o(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_ESNext:o(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ESNext_2737","BigInt literals are not available when targeting lower than ESNext."),An_outer_value_of_this_is_shadowed_by_this_container:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_2749","'{0}' refers to a value, but is being used as a type here."),The_implementation_signature_is_declared_here:o(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:o(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:o(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:o(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:o(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:o(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:o(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:o(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:o(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead:o(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it__2774","This condition will always return true since the 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:o(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:o(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:o(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:o(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:o(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:o(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:o(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."),Import_declaration_0_is_using_private_name_1:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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_interface_0_has_or_is_using_private_name_1:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),The_current_host_does_not_support_the_0_option:o(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:o(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:o(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:o(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:o(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:o(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:o(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Could_not_write_file_0_Colon_1:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:o(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:o(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:o(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:o(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:o(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:o(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:o(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:o(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:o(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:o(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:o(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:o(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:o(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:o(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:o(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:o(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:o(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:o(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:o(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:o(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_or_ESNEXT:o(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:o(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message:o(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:o(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:o(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:o(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:o(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:o(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:o(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:o(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:o(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:o(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:o(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:o(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:o(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:o(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:o(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:o(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:o(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:o(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:o(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:o(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:o(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:o(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:o(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:o(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unsupported_locale_0:o(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:o(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:o(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:o(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:o(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_unsupported_extension_The_only_supported_extensions_are_1:o(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:o(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:o(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:o(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:o(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:o(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:o(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file:o(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators:o(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:o(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:o(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:o(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:o(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:o(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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_or_react:o(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:o(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:o(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:o(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:o(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:o(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:o(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:o(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:o(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:o(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:o(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:o(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:o(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:o(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:o(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:o(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:o(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:o(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:o(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:o(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:o(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:o(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:o(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:o(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:o(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:o(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:o(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:o(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:o(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:o(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:o(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:o(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:o(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:o(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:o(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:o(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:o(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:o(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:o(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:o(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:o(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:o(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:o(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:o(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:o(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:o(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:o(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:o(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:o(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:o(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:o(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:o(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:o(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:o(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:o(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:o(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:o(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:o(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:o(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:o(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:o(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:o(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:o(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Projects_to_reference:o(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:o(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:o(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:o(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:o(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:o(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:o(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:o(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:o(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:o(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:o(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:o(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:o(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:o(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:o(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:o(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Enable_verbose_logging:o(6366,e.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),Show_what_would_be_built_or_deleted_if_specified_with_clean:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:o(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:o(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:o(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:o(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:o(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"),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:o(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:o(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:o(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:o(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."),Variable_0_implicitly_has_an_1_type:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:o(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:o(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:o(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:o(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:o(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:o(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:o(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_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:o(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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."),You_cannot_rename_this_element:o(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:o(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_a_ts_file:o(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:o(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:o(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:o(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:o(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:o(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:o(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:o(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:o(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:o(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:o(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:o(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:o(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:o(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:o(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:o(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:o(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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}'."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:o(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:o(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:o(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:o(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:o(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:o(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:o(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:o(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:o(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),JSX_fragment_is_not_supported_when_using_jsxFactory:o(17016,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_jsxFactory_17016","JSX fragment is not supported when using --jsxFactory"),JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma:o(17017,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma_17017","JSX fragment is not supported when using an inline JSX factory pragma"),Circularity_detected_while_resolving_configuration_Colon_0:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(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:o(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:o(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:o(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_declaration_for_Colon_0:o(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{0}'"),Remove_import_from_0:o(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:o(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:o(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:o(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_destructuring:o(90009,e.DiagnosticCategory.Message,"Remove_destructuring_90009","Remove destructuring"),Remove_variable_statement:o(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:o(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:o(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:o(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013",`Import '{0}' from module "{1}"`),Change_0_to_1:o(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:o(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015",`Add '{0}' to existing import declaration from "{1}"`),Declare_property_0:o(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:o(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:o(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:o(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:o(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:o(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:o(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:o(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:o(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:o(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:o(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:o(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:o(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:o(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:o(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:o(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:o(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:o(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:o(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Convert_function_to_an_ES2015_class:o(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:o(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_to_0_in_1:o(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:o(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:o(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:o(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:o(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:o(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:o(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:o(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:o(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:o(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:o(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:o(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:o(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:o(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:o(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:o(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:o(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Add_all_missing_members:o(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:o(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:o(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:o(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:o(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:o(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:o(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:o(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:o(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:o(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:o(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:o(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:o(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:o(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:o(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:o(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:o(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:o(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:o(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:o(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:o(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:o(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:o(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:o(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:o(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:o(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:o(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:o(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:o(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:o(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:o(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:o(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:o(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:o(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:o(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:o(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:o(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:o(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:o(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:o(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:o(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:o(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:o(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:o(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:o(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_unknown_conversion_for_non_overlapping_types:o(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:o(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:o(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:o(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:o(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:o(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:o(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Allow_accessing_UMD_globals_from_modules:o(95076,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_95076","Allow accessing UMD globals from modules."),Extract_type:o(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:o(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:o(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:o(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:o(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:o(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:o(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:o(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:o(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:o(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:o(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:o(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:o(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:o(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:o(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:o(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:o(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:o(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:o(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:o(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:o(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:o(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?")}})(sn||(sn={}));var sn;(function(e){var o;function M(w){return w>=75}e.tokenIsIdentifierOrKeyword=M;function qe(w){return w===31||M(w)}e.tokenIsIdentifierOrKeywordOrGreaterThan=qe;var Ee=(o={abstract:121,any:124,as:122,asserts:123,bigint:150,boolean:127,break:76,case:77,catch:78,class:79,continue:81,const:80},o["constructor"]=128,o.debugger=82,o.declare=129,o.default=83,o.delete=84,o.do=85,o.else=86,o.enum=87,o.export=88,o.extends=89,o.false=90,o.finally=91,o.for=92,o.from=148,o.function=93,o.get=130,o.if=94,o.implements=112,o.import=95,o.in=96,o.infer=131,o.instanceof=97,o.interface=113,o.is=132,o.keyof=133,o.let=114,o.module=134,o.namespace=135,o.never=136,o.new=98,o.null=99,o.number=139,o.object=140,o.package=115,o.private=116,o.protected=117,o.public=118,o.readonly=137,o.require=138,o.global=149,o.return=100,o.set=141,o.static=119,o.string=142,o.super=101,o.switch=102,o.symbol=143,o.this=103,o.throw=104,o.true=105,o.try=106,o.type=144,o.typeof=107,o.undefined=145,o.unique=146,o.unknown=147,o.var=108,o.void=109,o.while=110,o.with=111,o.yield=120,o.async=125,o.await=126,o.of=151,o),Ge=e.createMapFromTemplate(Ee),Be=e.createMapFromTemplate(Rr(Rr({},Ee),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":62,"+=":63,"-=":64,"*=":65,"**=":66,"/=":67,"%=":68,"<<=":69,">>=":70,">>>=":71,"&=":72,"|=":73,"^=":74,"@":59,"`":61})),he=[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],ee=[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],f=[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],J=[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],Oe=[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],N=[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];function Te(w,j){if(w<j[0])return!1;for(var Pe=0,a=j.length,Ze;Pe+1<a;){if(Ze=Pe+(a-Pe)/2,Ze-=Ze%2,j[Ze]<=w&&w<=j[Ze+1])return!0;w<j[Ze]?a=Ze:Pe=Ze+2}return!1}function ie(w,j){return j>=2?Te(w,Oe):j===1?Te(w,f):Te(w,he)}e.isUnicodeIdentifierStart=ie;function ce(w,j){return j>=2?Te(w,N):j===1?Te(w,J):Te(w,ee)}function x(w){var j=[];return w.forEach(function(Pe,a){j[Pe]=a}),j}var C=x(Be);function P(w){return C[w]}e.tokenToString=P;function h(w){return Be.get(w)}e.stringToToken=h;function X(w){for(var j=new Array,Pe=0,a=0;Pe<w.length;){var Ze=w.charCodeAt(Pe);Pe++;switch(Ze){case 13:w.charCodeAt(Pe)===10&&Pe++;case 10:j.push(a),a=Pe;break;default:Ze>127&&be(Ze)&&(j.push(a),a=Pe);break}}return j.push(a),j}e.computeLineStarts=X;function $(w,j,Pe,a){return w.getPositionOfLineAndCharacter?w.getPositionOfLineAndCharacter(j,Pe,a):Q(z(w),j,Pe,w.text,a)}e.getPositionOfLineAndCharacter=$;function Q(w,j,Pe,a,Ze){(j<0||j>=w.length)&&(Ze?j=j<0?0:j>=w.length?w.length-1:j:e.Debug.fail("Bad line number. Line: "+j+", lineStarts.length: "+w.length+" , line map is correct? "+(a!==void 0?e.arraysEqual(w,X(a)):"unknown")));var In=w[j]+Pe;return Ze?In>w[j+1]?w[j+1]:typeof a=="string"&&In>a.length?a.length:In:(j<w.length-1?e.Debug.assert(In<w[j+1]):a!==void 0&&e.Debug.assert(In<=a.length),In)}e.computePositionOfLineAndCharacter=Q;function z(w){return w.lineMap||(w.lineMap=X(w.text))}e.getLineStarts=z;function se(w,j){var Pe=e.binarySearch(w,j,e.identity,e.compareValues);return Pe<0&&(Pe=~Pe-1,e.Debug.assert(Pe!==-1,"position cannot precede the beginning of the file")),{line:Pe,character:j-w[Pe]}}e.computeLineAndCharacterOfPosition=se;function G(w,j){return se(z(w),j)}e.getLineAndCharacterOfPosition=G;function H(w){return q(w)||be(w)}e.isWhiteSpaceLike=H;function q(w){return w===32||w===9||w===11||w===12||w===160||w===133||w===5760||w>=8192&&w<=8203||w===8239||w===8287||w===12288||w===65279}e.isWhiteSpaceSingleLine=q;function be(w){return w===10||w===13||w===8232||w===8233}e.isLineBreak=be;function R(w){return w>=48&&w<=57}function K(w){return w>=48&&w<=55}e.isOctalDigit=K;function m(w,j){var Pe=w.charCodeAt(j);switch(Pe){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 j===0;default:return Pe>127}}e.couldStartTrivia=m;function _(w,j,Pe,a){if(a===void 0&&(a=!1),e.positionIsSynthesized(j))return j;for(;;){var Ze=w.charCodeAt(j);switch(Ze){case 13:w.charCodeAt(j+1)===10&&j++;case 10:if(j++,Pe)return j;continue;case 9:case 11:case 12:case 32:j++;continue;case 47:if(a)break;if(w.charCodeAt(j+1)===47){for(j+=2;j<w.length&&!be(w.charCodeAt(j));)j++;continue}if(w.charCodeAt(j+1)===42){for(j+=2;j<w.length;){if(w.charCodeAt(j)===42&&w.charCodeAt(j+1)===47){j+=2;break}j++}continue}break;case 60:case 124:case 61:case 62:if(D(w,j)){j=y(w,j);continue}break;case 35:if(j===0&&k(w,j)){j=T(w,j);continue}break;default:if(Ze>127&&H(Ze)){j++;continue}break}return j}}e.skipTrivia=_;var I="<<<<<<<".length;function D(w,j){if(e.Debug.assert(j>=0),j===0||be(w.charCodeAt(j-1))){var Pe=w.charCodeAt(j);if(j+I<w.length){for(var a=0;a<I;a++)if(w.charCodeAt(j+a)!==Pe)return!1;return Pe===61||w.charCodeAt(j+I)===32}}return!1}function y(w,j,Pe){Pe&&Pe(e.Diagnostics.Merge_conflict_marker_encountered,j,I);var a=w.charCodeAt(j),Ze=w.length;if(a===60||a===62)for(;j<Ze&&!be(w.charCodeAt(j));)j++;else for(e.Debug.assert(a===124||a===61);j<Ze;){var In=w.charCodeAt(j);if((In===61||In===62)&&In!==a&&D(w,j))break;j++}return j}var E=/^#!.*/;function k(w,j){return e.Debug.assert(j===0),E.test(w)}e.isShebangTrivia=k;function T(w,j){var Pe=E.exec(w)[0];return j=j+Pe.length,j}e.scanShebangTrivia=T;function ne(w,j,Pe,a,Ze,In,et){var ae,fe,Le,Je,$e=!1,Fe=a,cn=et;if(Pe===0){Fe=!0;var Qe=De(j);Qe&&(Pe=Qe.length)}e:for(;Pe>=0&&Pe<j.length;){var ln=j.charCodeAt(Pe);switch(ln){case 13:j.charCodeAt(Pe+1)===10&&Pe++;case 10:if(Pe++,a)break e;Fe=!0,$e&&(Je=!0);continue;case 9:case 11:case 12:case 32:Pe++;continue;case 47:var ye=j.charCodeAt(Pe+1),ke=!1;if(ye===47||ye===42){var F=ye===47?2:3,c=Pe;if(Pe+=2,ye===47)for(;Pe<j.length;){if(be(j.charCodeAt(Pe))){ke=!0;break}Pe++}else for(;Pe<j.length;){if(j.charCodeAt(Pe)===42&&j.charCodeAt(Pe+1)===47){Pe+=2;break}Pe++}if(Fe){if($e&&(cn=Ze(ae,fe,Le,Je,In,cn),!w&&cn))return cn;ae=c,fe=Pe,Le=F,Je=ke,$e=!0}continue}break e;default:if(ln>127&&H(ln)){$e&&be(ln)&&(Je=!0),Pe++;continue}break e}}return $e&&(cn=Ze(ae,fe,Le,Je,In,cn)),cn}function O(w,j,Pe,a){return ne(!1,w,j,!1,Pe,a)}e.forEachLeadingCommentRange=O;function Y(w,j,Pe,a){return ne(!1,w,j,!0,Pe,a)}e.forEachTrailingCommentRange=Y;function pe(w,j,Pe,a,Ze){return ne(!0,w,j,!1,Pe,a,Ze)}e.reduceEachLeadingCommentRange=pe;function S(w,j,Pe,a,Ze){return ne(!0,w,j,!0,Pe,a,Ze)}e.reduceEachTrailingCommentRange=S;function v(w,j,Pe,a,Ze,In){return In||(In=[]),In.push({kind:Pe,pos:w,end:j,hasTrailingNewLine:a}),In}function U(w,j){return pe(w,j,v,void 0,void 0)}e.getLeadingCommentRanges=U;function ue(w,j){return S(w,j,v,void 0,void 0)}e.getTrailingCommentRanges=ue;function De(w){var j=E.exec(w);if(j)return j[0]}e.getShebang=De;function Z(w,j){return w>=65&&w<=90||w>=97&&w<=122||w===36||w===95||w>127&&ie(w,j)}e.isIdentifierStart=Z;function Re(w,j){return w>=65&&w<=90||w>=97&&w<=122||w>=48&&w<=57||w===36||w===95||w>127&&ce(w,j)}e.isIdentifierPart=Re;function we(w,j){var Pe=ve(w,0);if(!Z(Pe,j))return!1;for(var a=je(Pe);a<w.length;a+=je(Pe))if(!Re(Pe=ve(w,a),j))return!1;return!0}e.isIdentifierText=we;function He(w,j,Pe,a,Ze,In,et){Pe===void 0&&(Pe=0);var ae=a,fe,Le,Je,$e,Fe,cn,Qe,ln=0;$t(ae,In,et);var ye={getStartPos:function(){return Je},getTextPos:function(){return fe},getToken:function(){return Fe},getTokenPos:function(){return $e},getTokenText:function(){return ae.substring($e,fe)},getTokenValue:function(){return cn},hasUnicodeEscape:function(){return(Qe&1024)!==0},hasExtendedUnicodeEscape:function(){return(Qe&8)!==0},hasPrecedingLineBreak:function(){return(Qe&1)!==0},isIdentifier:function(){return Fe===75||Fe>111},isReservedWord:function(){return Fe>=76&&Fe<=111},isUnterminated:function(){return(Qe&4)!==0},getTokenFlags:function(){return Qe},reScanGreaterToken:at,reScanSlashToken:Bn,reScanTemplateToken:ut,scanJsxIdentifier:st,scanJsxAttributeValue:Kn,reScanJsxToken:ct,reScanLessThanToken:ot,reScanQuestionToken:dt,scanJsxToken:Ct,scanJsDocToken:Ie,scan:Rn,getText:Ht,setText:$t,setScriptTarget:Yr,setLanguageVariant:Hr,setOnError:wr,setTextPos:mt,setInJSDocType:va,tryScan:Dt,lookAhead:yt,scanRange:_n};return e.Debug.isDebugging&&Object.defineProperty(ye,"__debugShowCurrentPositionInText",{get:function(){var Lt=ye.getText();return Lt.slice(0,ye.getStartPos())+"\u2551"+Lt.slice(ye.getStartPos())}}),ye;function ke(Lt,Wn,Vt){if(Wn===void 0&&(Wn=fe),Ze){var pt=fe;fe=Wn,Ze(Lt,Vt||0),fe=pt}}function F(){for(var Lt=fe,Wn=!1,Vt=!1,pt="";;){var Tt=ae.charCodeAt(fe);if(Tt===95){Qe|=512,Wn?(Wn=!1,Vt=!0,pt+=ae.substring(Lt,fe)):ke(Vt?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,fe,1),fe++,Lt=fe;continue}if(R(Tt)){Wn=!0,Vt=!1,fe++;continue}break}return ae.charCodeAt(fe-1)===95&&ke(e.Diagnostics.Numeric_separators_are_not_allowed_here,fe-1,1),pt+ae.substring(Lt,fe)}function c(){var Lt=fe,Wn=F(),Vt,pt;ae.charCodeAt(fe)===46&&(fe++,Vt=F());var Tt=fe;if(ae.charCodeAt(fe)===69||ae.charCodeAt(fe)===101){fe++,Qe|=16,(ae.charCodeAt(fe)===43||ae.charCodeAt(fe)===45)&&fe++;var ht=fe,bt=F();bt?(pt=ae.substring(Tt,ht)+bt,Tt=fe):ke(e.Diagnostics.Digit_expected)}var Ke;if(Qe&512?(Ke=Wn,Vt&&(Ke+="."+Vt),pt&&(Ke+=pt)):Ke=ae.substring(Lt,Tt),Vt!==void 0||Qe&16)return L(Lt,Vt===void 0&&!!(Qe&16)),{type:8,value:""+ +Ke};cn=Ke;var Pn=un();return L(Lt),{type:Pn,value:cn}}function L(Lt,Wn){if(!Z(ve(ae,fe),w))return;var Vt=fe,pt=yn().length;pt===1&&ae[Vt]==="n"?ke(Wn?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,Lt,Vt-Lt+1):(ke(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Vt,pt),fe=Vt)}function te(){for(var Lt=fe;K(ae.charCodeAt(fe));)fe++;return+ae.substring(Lt,fe)}function Se(Lt,Wn){var Vt=ze(Lt,!1,Wn);return Vt?parseInt(Vt,16):-1}function Ne(Lt,Wn){return ze(Lt,!0,Wn)}function ze(Lt,Wn,Vt){for(var pt=[],Tt=!1,ht=!1;pt.length<Lt||Wn;){var bt=ae.charCodeAt(fe);if(Vt&&bt===95){Qe|=512,Tt?(Tt=!1,ht=!0):ke(ht?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,fe,1),fe++;continue}if(Tt=Vt,bt>=65&&bt<=70)bt+=97-65;else if(!(bt>=48&&bt<=57||bt>=97&&bt<=102))break;pt.push(bt),fe++,ht=!1}return pt.length<Lt&&(pt=[]),ae.charCodeAt(fe-1)===95&&ke(e.Diagnostics.Numeric_separators_are_not_allowed_here,fe-1,1),String.fromCharCode.apply(String,pt)}function Tn(Lt){Lt===void 0&&(Lt=!1);var Wn=ae.charCodeAt(fe);fe++;for(var Vt="",pt=fe;;){if(fe>=Le){Vt+=ae.substring(pt,fe),Qe|=4,ke(e.Diagnostics.Unterminated_string_literal);break}var Tt=ae.charCodeAt(fe);if(Tt===Wn){Vt+=ae.substring(pt,fe),fe++;break}if(Tt===92&&!Lt){Vt+=ae.substring(pt,fe),Vt+=jn(),pt=fe;continue}if(be(Tt)&&!Lt){Vt+=ae.substring(pt,fe),Qe|=4,ke(e.Diagnostics.Unterminated_string_literal);break}fe++}return Vt}function wn(){var Lt=ae.charCodeAt(fe)===96;fe++;for(var Wn=fe,Vt="",pt;;){if(fe>=Le){Vt+=ae.substring(Wn,fe),Qe|=4,ke(e.Diagnostics.Unterminated_template_literal),pt=Lt?14:17;break}var Tt=ae.charCodeAt(fe);if(Tt===96){Vt+=ae.substring(Wn,fe),fe++,pt=Lt?14:17;break}if(Tt===36&&fe+1<Le&&ae.charCodeAt(fe+1)===123){Vt+=ae.substring(Wn,fe),fe+=2,pt=Lt?15:16;break}if(Tt===92){Vt+=ae.substring(Wn,fe),Vt+=jn(),Wn=fe;continue}if(Tt===13){Vt+=ae.substring(Wn,fe),fe++,fe<Le&&ae.charCodeAt(fe)===10&&fe++,Vt+=`
|
|
|
`,Wn=fe;continue}fe++}return e.Debug.assert(pt!==void 0),cn=Vt,pt}function jn(){if(fe++,fe>=Le)return ke(e.Diagnostics.Unexpected_end_of_text),"";var Lt=ae.charCodeAt(fe);fe++;switch(Lt){case 48:return"\0";case 98:return"\b";case 116:return" ";case 110:return`
|
|
|
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return fe<Le&&ae.charCodeAt(fe)===123?(Qe|=8,fe++,pn()):(Qe|=1024,nn(4));case 120:return nn(2);case 13:fe<Le&&ae.charCodeAt(fe)===10&&fe++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(Lt)}}function nn(Lt){var Wn=Se(Lt,!1);return Wn>=0?String.fromCharCode(Wn):(ke(e.Diagnostics.Hexadecimal_digit_expected),"")}function pn(){var Lt=Ne(1,!1),Wn=Lt?parseInt(Lt,16):-1,Vt=!1;return Wn<0?(ke(e.Diagnostics.Hexadecimal_digit_expected),Vt=!0):Wn>1114111&&(ke(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Vt=!0),fe>=Le?(ke(e.Diagnostics.Unexpected_end_of_text),Vt=!0):ae.charCodeAt(fe)===125?fe++:(ke(e.Diagnostics.Unterminated_Unicode_escape_sequence),Vt=!0),Vt?"":le(Wn)}function le(Lt){if(e.Debug.assert(0<=Lt&&Lt<=1114111),Lt<=65535)return String.fromCharCode(Lt);var Wn=Math.floor((Lt-65536)/1024)+55296,Vt=(Lt-65536)%1024+56320;return String.fromCharCode(Wn,Vt)}function oe(){if(fe+5<Le&&ae.charCodeAt(fe+1)===117){var Lt=fe;fe+=2;var Wn=Se(4,!1);return fe=Lt,Wn}return-1}function Cn(){if(w>=2&&ve(ae,fe+1)===117&&ve(ae,fe+2)===123){var Lt=fe;fe+=3;var Wn=Ne(1,!1),Vt=Wn?parseInt(Wn,16):-1;return fe=Lt,Vt}return-1}function yn(){for(var Lt="",Wn=fe;fe<Le;){var Vt=ve(ae,fe);if(Re(Vt,w))fe+=je(Vt);else if(Vt===92){if(Vt=Cn(),Vt>=0&&Re(Vt,w)){fe+=3,Qe|=8,Lt+=pn(),Wn=fe;continue}if(Vt=oe(),!(Vt>=0&&Re(Vt,w)))break;Qe|=1024,Lt+=ae.substring(Wn,fe),Lt+=le(Vt),fe+=6,Wn=fe}else break}return Lt+=ae.substring(Wn,fe),Lt}function _e(){var Lt=cn.length;if(Lt>=2&&Lt<=11){var Wn=cn.charCodeAt(0);if(Wn>=97&&Wn<=122){var Vt=Ge.get(cn);if(Vt!==void 0)return Fe=Vt}}return Fe=75}function dn(Lt){for(var Wn="",Vt=!1,pt=!1;;){var Tt=ae.charCodeAt(fe);if(Tt===95){Qe|=512,Vt?(Vt=!1,pt=!0):ke(pt?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,fe,1),fe++;continue}if(Vt=!0,!R(Tt)||Tt-48>=Lt)break;Wn+=ae[fe],fe++,pt=!1}return ae.charCodeAt(fe-1)===95&&ke(e.Diagnostics.Numeric_separators_are_not_allowed_here,fe-1,1),Wn}function un(){if(ae.charCodeAt(fe)===110)return cn+="n",Qe&384&&(cn=e.parsePseudoBigInt(cn)+"n"),fe++,9;var Lt=Qe&128?parseInt(cn.slice(2),2):Qe&256?parseInt(cn.slice(2),8):+cn;return cn=""+Lt,8}function Rn(){var Lt;Je=fe,Qe=0;for(var Wn=!1;;){if($e=fe,fe>=Le)return Fe=1;var Vt=ve(ae,fe);if(Vt===35&&fe===0&&k(ae,fe)){if(fe=T(ae,fe),j)continue;return Fe=6}switch(Vt){case 10:case 13:if(Qe|=1,j){fe++;continue}else return Vt===13&&fe+1<Le&&ae.charCodeAt(fe+1)===10?fe+=2:fe++,Fe=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(j){fe++;continue}else{for(;fe<Le&&q(ae.charCodeAt(fe));)fe++;return Fe=5}case 33:return ae.charCodeAt(fe+1)===61?ae.charCodeAt(fe+2)===61?(fe+=3,Fe=37):(fe+=2,Fe=35):(fe++,Fe=53);case 34:case 39:return cn=Tn(),Fe=10;case 96:return Fe=wn();case 37:return ae.charCodeAt(fe+1)===61?(fe+=2,Fe=68):(fe++,Fe=44);case 38:return ae.charCodeAt(fe+1)===38?(fe+=2,Fe=55):ae.charCodeAt(fe+1)===61?(fe+=2,Fe=72):(fe++,Fe=50);case 40:return fe++,Fe=20;case 41:return fe++,Fe=21;case 42:if(ae.charCodeAt(fe+1)===61)return fe+=2,Fe=65;if(ae.charCodeAt(fe+1)===42)return ae.charCodeAt(fe+2)===61?(fe+=3,Fe=66):(fe+=2,Fe=42);if(fe++,ln&&!Wn&&Qe&1){Wn=!0;continue}return Fe=41;case 43:return ae.charCodeAt(fe+1)===43?(fe+=2,Fe=45):ae.charCodeAt(fe+1)===61?(fe+=2,Fe=63):(fe++,Fe=39);case 44:return fe++,Fe=27;case 45:return ae.charCodeAt(fe+1)===45?(fe+=2,Fe=46):ae.charCodeAt(fe+1)===61?(fe+=2,Fe=64):(fe++,Fe=40);case 46:return R(ae.charCodeAt(fe+1))?(cn=c().value,Fe=8):ae.charCodeAt(fe+1)===46&&ae.charCodeAt(fe+2)===46?(fe+=3,Fe=25):(fe++,Fe=24);case 47:if(ae.charCodeAt(fe+1)===47){for(fe+=2;fe<Le&&!be(ae.charCodeAt(fe));)fe++;if(j)continue;return Fe=2}if(ae.charCodeAt(fe+1)===42){fe+=2,ae.charCodeAt(fe)===42&&ae.charCodeAt(fe+1)!==47&&(Qe|=2);for(var pt=!1;fe<Le;){var Tt=ae.charCodeAt(fe);if(Tt===42&&ae.charCodeAt(fe+1)===47){fe+=2,pt=!0;break}be(Tt)&&(Qe|=1),fe++}if(pt||ke(e.Diagnostics.Asterisk_Slash_expected),j)continue;return pt||(Qe|=4),Fe=3}return ae.charCodeAt(fe+1)===61?(fe+=2,Fe=67):(fe++,Fe=43);case 48:if(fe+2<Le&&(ae.charCodeAt(fe+1)===88||ae.charCodeAt(fe+1)===120))return fe+=2,cn=Ne(1,!0),cn||(ke(e.Diagnostics.Hexadecimal_digit_expected),cn="0"),cn="0x"+cn,Qe|=64,Fe=un();if(fe+2<Le&&(ae.charCodeAt(fe+1)===66||ae.charCodeAt(fe+1)===98))return fe+=2,cn=dn(2),cn||(ke(e.Diagnostics.Binary_digit_expected),cn="0"),cn="0b"+cn,Qe|=128,Fe=un();if(fe+2<Le&&(ae.charCodeAt(fe+1)===79||ae.charCodeAt(fe+1)===111))return fe+=2,cn=dn(8),cn||(ke(e.Diagnostics.Octal_digit_expected),cn="0"),cn="0o"+cn,Qe|=256,Fe=un();if(fe+1<Le&&K(ae.charCodeAt(fe+1)))return cn=""+te(),Qe|=32,Fe=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Lt=c(),Fe=Lt.type,cn=Lt.value,Fe;case 58:return fe++,Fe=58;case 59:return fe++,Fe=26;case 60:if(D(ae,fe)){if(fe=y(ae,fe,ke),j)continue;return Fe=7}return ae.charCodeAt(fe+1)===60?ae.charCodeAt(fe+2)===61?(fe+=3,Fe=69):(fe+=2,Fe=47):ae.charCodeAt(fe+1)===61?(fe+=2,Fe=32):Pe===1&&ae.charCodeAt(fe+1)===47&&ae.charCodeAt(fe+2)!==42?(fe+=2,Fe=30):(fe++,Fe=29);case 61:if(D(ae,fe)){if(fe=y(ae,fe,ke),j)continue;return Fe=7}return ae.charCodeAt(fe+1)===61?ae.charCodeAt(fe+2)===61?(fe+=3,Fe=36):(fe+=2,Fe=34):ae.charCodeAt(fe+1)===62?(fe+=2,Fe=38):(fe++,Fe=62);case 62:if(D(ae,fe)){if(fe=y(ae,fe,ke),j)continue;return Fe=7}return fe++,Fe=31;case 63:return fe++,ae.charCodeAt(fe)===46&&!R(ae.charCodeAt(fe+1))?(fe++,Fe=28):ae.charCodeAt(fe)===63?(fe++,Fe=60):Fe=57;case 91:return fe++,Fe=22;case 93:return fe++,Fe=23;case 94:return ae.charCodeAt(fe+1)===61?(fe+=2,Fe=74):(fe++,Fe=52);case 123:return fe++,Fe=18;case 124:if(D(ae,fe)){if(fe=y(ae,fe,ke),j)continue;return Fe=7}return ae.charCodeAt(fe+1)===124?(fe+=2,Fe=56):ae.charCodeAt(fe+1)===61?(fe+=2,Fe=73):(fe++,Fe=51);case 125:return fe++,Fe=19;case 126:return fe++,Fe=54;case 64:return fe++,Fe=59;case 92:var ht=Cn();if(ht>=0&&Z(ht,w))return fe+=3,Qe|=8,cn=pn()+yn(),Fe=_e();var bt=oe();return bt>=0&&Z(bt,w)?(fe+=6,Qe|=1024,cn=String.fromCharCode(bt)+yn(),Fe=_e()):(ke(e.Diagnostics.Invalid_character),fe++,Fe=0);default:if(Z(Vt,w)){for(fe+=je(Vt);fe<Le&&Re(Vt=ve(ae,fe),w);)fe+=je(Vt);return cn=ae.substring($e,fe),Vt===92&&(cn+=yn()),Fe=_e()}else if(q(Vt)){fe+=je(Vt);continue}else if(be(Vt)){Qe|=1,fe+=je(Vt);continue}return ke(e.Diagnostics.Invalid_character),fe+=je(Vt),Fe=0}}}function at(){if(Fe===31){if(ae.charCodeAt(fe)===62)return ae.charCodeAt(fe+1)===62?ae.charCodeAt(fe+2)===61?(fe+=3,Fe=71):(fe+=2,Fe=49):ae.charCodeAt(fe+1)===61?(fe+=2,Fe=70):(fe++,Fe=48);if(ae.charCodeAt(fe)===61)return fe++,Fe=33}return Fe}function Bn(){if(Fe===43||Fe===67){for(var Lt=$e+1,Wn=!1,Vt=!1;;){if(Lt>=Le){Qe|=4,ke(e.Diagnostics.Unterminated_regular_expression_literal);break}var pt=ae.charCodeAt(Lt);if(be(pt)){Qe|=4,ke(e.Diagnostics.Unterminated_regular_expression_literal);break}if(Wn)Wn=!1;else if(pt===47&&!Vt){Lt++;break}else pt===91?Vt=!0:pt===92?Wn=!0:pt===93&&(Vt=!1);Lt++}for(;Lt<Le&&Re(ae.charCodeAt(Lt),w);)Lt++;fe=Lt,cn=ae.substring($e,fe),Fe=13}return Fe}function ut(){return e.Debug.assert(Fe===19,"'reScanTemplateToken' should only be called on a '}'"),fe=$e,Fe=wn()}function ct(){return fe=$e=Je,Fe=Ct()}function ot(){return Fe===47?(fe=$e+1,Fe=29):Fe}function dt(){return e.Debug.assert(Fe===60,"'reScanQuestionToken' should only be called on a '??'"),fe=$e+1,Fe=57}function Ct(){if(Je=$e=fe,fe>=Le)return Fe=1;var Lt=ae.charCodeAt(fe);if(Lt===60)return ae.charCodeAt(fe+1)===47?(fe+=2,Fe=30):(fe++,Fe=29);if(Lt===123)return fe++,Fe=18;for(var Wn=0;fe<Le&&!(Lt=ae.charCodeAt(fe),Lt===123);){if(Lt===60){if(D(ae,fe))return fe=y(ae,fe,ke),Fe=7;break}be(Lt)&&Wn===0?Wn=-1:H(Lt)||(Wn=fe),fe++}return cn=ae.substring(Je,fe),Wn===-1?12:11}function st(){if(M(Fe))for(;fe<Le;){var Lt=ae.charCodeAt(fe);if(Lt===45){cn+="-",fe++;continue}var Wn=fe;if(cn+=yn(),fe===Wn)break}return Fe}function Kn(){Je=fe;switch(ae.charCodeAt(fe)){case 34:case 39:return cn=Tn(!0),Fe=10;default:return Rn()}}function Ie(){if(Je=$e=fe,Qe=0,fe>=Le)return Fe=1;var Lt=ve(ae,fe);fe+=je(Lt);switch(Lt){case 9:case 11:case 12:case 32:for(;fe<Le&&q(ae.charCodeAt(fe));)fe++;return Fe=5;case 64:return Fe=59;case 10:case 13:return Qe|=1,Fe=4;case 42:return Fe=41;case 123:return Fe=18;case 125:return Fe=19;case 91:return Fe=22;case 93:return Fe=23;case 60:return Fe=29;case 62:return Fe=31;case 61:return Fe=62;case 44:return Fe=27;case 46:return Fe=24;case 96:return Fe=61;case 92:fe--;var Wn=Cn();if(Wn>=0&&Z(Wn,w))return fe+=3,Qe|=8,cn=pn()+yn(),Fe=_e();var Vt=oe();return Vt>=0&&Z(Vt,w)?(fe+=6,Qe|=1024,cn=String.fromCharCode(Vt)+yn(),Fe=_e()):(fe++,Fe=0)}if(Z(Lt,w)){for(var pt=Lt;fe<Le&&Re(pt=ve(ae,fe),w)||ae.charCodeAt(fe)===45;)fe+=je(pt);return cn=ae.substring($e,fe),pt===92&&(cn+=yn()),Fe=_e()}else return Fe=0}function Ce(Lt,Wn){var Vt=fe,pt=Je,Tt=$e,ht=Fe,bt=cn,Ke=Qe,Pn=Lt();return(!Pn||Wn)&&(fe=Vt,Je=pt,$e=Tt,Fe=ht,cn=bt,Qe=Ke),Pn}function _n(Lt,Wn,Vt){var pt=Le,Tt=fe,ht=Je,bt=$e,Ke=Fe,Pn=cn,$n=Qe;$t(ae,Lt,Wn);var rr=Vt();return Le=pt,fe=Tt,Je=ht,$e=bt,Fe=Ke,cn=Pn,Qe=$n,rr}function yt(Lt){return Ce(Lt,!0)}function Dt(Lt){return Ce(Lt,!1)}function Ht(){return ae}function $t(Lt,Wn,Vt){ae=Lt||"",Le=Vt===void 0?ae.length:Wn+Vt,mt(Wn||0)}function wr(Lt){Ze=Lt}function Yr(Lt){w=Lt}function Hr(Lt){Pe=Lt}function mt(Lt){e.Debug.assert(Lt>=0),fe=Lt,Je=Lt,$e=Lt,Fe=0,cn=void 0,Qe=0}function va(Lt){ln+=Lt?1:-1}}e.createScanner=He;var ve=String.prototype.codePointAt?function(w,j){return w.codePointAt(j)}:function(j,Pe){var a=j.length;if(Pe<0||Pe>=a)return;var Ze=j.charCodeAt(Pe);if(Ze>=55296&&Ze<=56319&&a>Pe+1){var In=j.charCodeAt(Pe+1);if(In>=56320&&In<=57343)return(Ze-55296)*1024+In-56320+65536}return Ze};function je(w){return w>=65536?2:1}})(sn||(sn={}));var sn;(function(e){function o(qe){return e.pathIsRelative(qe)||e.isRootedDiskPath(qe)}e.isExternalModuleNameRelative=o;function M(qe){return e.sortAndDeduplicate(qe,e.compareDiagnostics)}e.sortAndDeduplicateDiagnostics=M})(sn||(sn={})),function(e){e.resolvingEmptyArray=[],e.emptyMap=e.createMap(),e.emptyUnderscoreEscapedMap=e.emptyMap,e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160;function o(u,xe){var An=u.declarations;if(An)for(var nt=0,Jn=An;nt<Jn.length;nt++){var ma=Jn[nt];if(ma.kind===xe)return ma}return}e.getDeclarationOfKind=o;function M(){return new e.Map}e.createUnderscoreEscapedMap=M;function qe(u){return!!u&&!!u.size}e.hasEntries=qe;function Ee(u){var xe=e.createMap();if(u)for(var An=0,nt=u;An<nt.length;An++){var Jn=nt[An];xe.set(Jn.escapedName,Jn)}return xe}e.createSymbolTable=Ee;var Ge=Be();function Be(){var u="",xe=function(An){return u+=An};return{getText:function(){return u},write:xe,rawWrite:xe,writeKeyword:xe,writeOperator:xe,writePunctuation:xe,writeSpace:xe,writeStringLiteral:xe,writeLiteral:xe,writeParameter:xe,writeProperty:xe,writeSymbol:function(An,nt){return xe(An)},writeTrailingSemicolon:xe,writeComment:xe,getTextPos:function(){return u.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!u.length&&e.isWhiteSpaceLike(u.charCodeAt(u.length-1))},writeLine:function(){return u+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return u=""},trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}function he(u,xe){return u.configFilePath!==xe.configFilePath||ee(u,xe)}e.changesAffectModuleResolution=he;function ee(u,xe){return e.moduleResolutionOptionDeclarations.some(function(An){return!e.isJsonEqual(e.getCompilerOptionValue(u,An),e.getCompilerOptionValue(xe,An))})}e.optionsHaveModuleResolutionChanges=ee;function f(u,xe){for(;u;){var An=xe(u);if(An==="quit")return;if(An)return u;u=u.parent}return}e.findAncestor=f;function J(u,xe){for(;;){var An=xe(u);if(An==="quit")return;if(An!==void 0)return An;if(e.isSourceFile(u))return;u=u.parent}}e.forEachAncestor=J;function Oe(u,xe){for(var An=u.entries(),nt=An.next();!nt.done;nt=An.next()){var Jn=nt.value,ma=Jn[0],Ta=Jn[1],Ra=xe(Ta,ma);if(Ra)return Ra}return}e.forEachEntry=Oe;function N(u,xe){for(var An=u.keys(),nt=An.next();!nt.done;nt=An.next()){var Jn=xe(nt.value);if(Jn)return Jn}return}e.forEachKey=N;function Te(u,xe){u.forEach(function(An,nt){xe.set(nt,An)})}e.copyEntries=Te;function ie(u,xe){return e.arrayToMap(u,xe||function(An){return An},e.returnTrue)}e.arrayToSet=ie;function ce(u){var xe=e.createMap();return Te(u,xe),xe}e.cloneMap=ce;function x(u){var xe=Ge.getText();try{return u(Ge),Ge.getText()}finally{Ge.clear(),Ge.writeKeyword(xe)}}e.usingSingleLineStringWriter=x;function C(u){return u.end-u.pos}e.getFullWidth=C;function P(u,xe){return u&&u.resolvedModules&&u.resolvedModules.get(xe)}e.getResolvedModule=P;function h(u,xe,An){u.resolvedModules||(u.resolvedModules=e.createMap()),u.resolvedModules.set(xe,An)}e.setResolvedModule=h;function X(u,xe,An){u.resolvedTypeReferenceDirectiveNames||(u.resolvedTypeReferenceDirectiveNames=e.createMap()),u.resolvedTypeReferenceDirectiveNames.set(xe,An)}e.setResolvedTypeReferenceDirective=X;function $(u,xe){return u.path===xe.path&&!u.prepend===!xe.prepend&&!u.circular===!xe.circular}e.projectReferenceIsEqualTo=$;function Q(u,xe){return u.isExternalLibraryImport===xe.isExternalLibraryImport&&u.extension===xe.extension&&u.resolvedFileName===xe.resolvedFileName&&u.originalPath===xe.originalPath&&z(u.packageId,xe.packageId)}e.moduleResolutionIsEqualTo=Q;function z(u,xe){return u===xe||!!u&&!!xe&&u.name===xe.name&&u.subModuleName===xe.subModuleName&&u.version===xe.version}function se(u){var xe=u.name,An=u.subModuleName,nt=u.version,Jn=An?xe+"/"+An:xe;return Jn+"@"+nt}e.packageIdToString=se;function G(u,xe){return u.resolvedFileName===xe.resolvedFileName&&u.primary===xe.primary}e.typeDirectiveIsEqualTo=G;function H(u,xe,An,nt){e.Debug.assert(u.length===xe.length);for(var Jn=0;Jn<u.length;Jn++){var ma=xe[Jn],Ta=An&&An.get(u[Jn]),Ra=Ta?!ma||!nt(Ta,ma):ma;if(Ra)return!0}return!1}e.hasChangesInResolutions=H;function q(u){return be(u),(u.flags&262144)!==0}e.containsParseError=q;function be(u){if(!(u.flags&524288)){var xe=(u.flags&65536)!==0||e.forEachChild(u,q);xe&&(u.flags|=262144),u.flags|=524288}}function R(u){for(;u&&u.kind!==288;)u=u.parent;return u}e.getSourceFileOfNode=R;function K(u){switch(u.kind){case 222:case 250:case 229:case 230:case 231:return!0}return!1}e.isStatementWithLocals=K;function m(u,xe){return e.Debug.assert(u>=0),e.getLineStarts(xe)[u]}e.getStartPositionOfLine=m;function _(u){var xe=R(u),An=e.getLineAndCharacterOfPosition(xe,u.pos);return xe.fileName+"("+(An.line+1)+","+(An.character+1)+")"}e.nodePosToString=_;function I(u,xe){e.Debug.assert(u>=0);var An=e.getLineStarts(xe),nt=u,Jn=xe.text;if(nt+1===An.length)return Jn.length-1;var ma=An[nt],Ta=An[nt+1]-1;for(e.Debug.assert(e.isLineBreak(Jn.charCodeAt(Ta)));ma<=Ta&&e.isLineBreak(Jn.charCodeAt(Ta));)Ta--;return Ta}e.getEndLinePosition=I;function D(u,xe,An){return!(An&&An(xe))&&!u.identifiers.has(xe)}e.isFileLevelUniqueName=D;function y(u){return u===void 0?!0:u.pos===u.end&&u.pos>=0&&u.kind!==1}e.nodeIsMissing=y;function E(u){return!y(u)}e.nodeIsPresent=E;function k(u,xe,An){if(xe===void 0||xe.length===0)return u;for(var nt=0;nt<u.length&&An(u[nt]);++nt);return u.splice.apply(u,Tr([nt,0],xe)),u}function T(u,xe,An){if(xe===void 0)return u;for(var nt=0;nt<u.length&&An(u[nt]);++nt);return u.splice(nt,0,xe),u}function ne(u){return Ie(u)||!!(w(u)&1048576)}function O(u,xe){return k(u,xe,Ie)}e.insertStatementsAfterStandardPrologue=O;function Y(u,xe){return k(u,xe,ne)}e.insertStatementsAfterCustomPrologue=Y;function pe(u,xe){return T(u,xe,Ie)}e.insertStatementAfterStandardPrologue=pe;function S(u,xe){return T(u,xe,ne)}e.insertStatementAfterCustomPrologue=S;function v(u,xe,An){if(u.charCodeAt(xe+1)===47&&xe+2<An&&u.charCodeAt(xe+2)===47){var nt=u.substring(xe,An);return!!(nt.match(e.fullTripleSlashReferencePathRegEx)||nt.match(e.fullTripleSlashAMDReferencePathRegEx)||nt.match(yt)||nt.match(Dt))}return!1}e.isRecognizedTripleSlashComment=v;function U(u,xe){return u.charCodeAt(xe+1)===42&&u.charCodeAt(xe+2)===33}e.isPinnedComment=U;function ue(u,xe,An){return y(u)?u.pos:e.isJSDocNode(u)?e.skipTrivia((xe||R(u)).text,u.pos,!1,!0):An&&e.hasJSDocNodes(u)?ue(u.jsDoc[0]):u.kind===317&&u._children.length>0?ue(u._children[0],xe,An):e.skipTrivia((xe||R(u)).text,u.pos)}e.getTokenPosOfNode=ue;function De(u,xe){return y(u)||!u.decorators?ue(u,xe):e.skipTrivia((xe||R(u)).text,u.decorators.end)}e.getNonDecoratorTokenPosOfNode=De;function Z(u,xe,An){return An===void 0&&(An=!1),we(u.text,xe,An)}e.getSourceTextOfNodeFromSourceFile=Z;function Re(u){return u.kind===292||u.parent&&Re(u.parent)}function we(u,xe,An){if(An===void 0&&(An=!1),y(xe))return"";var nt=u.substring(An?xe.pos:e.skipTrivia(u,xe.pos),xe.end);return Re(xe)&&(nt=nt.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),nt}e.getTextOfNodeFromSourceText=we;function He(u,xe){return xe===void 0&&(xe=!1),Z(R(u),u,xe)}e.getTextOfNode=He;function ve(u){return u.pos}function je(u,xe){return e.binarySearch(u,xe,ve,e.compareValues)}e.indexOfNode=je;function w(u){var xe=u.emitNode;return xe&&xe.flags||0}e.getEmitFlags=w;function j(u,xe,An){if(!Rc(u)&&u.parent&&!(e.isNumericLiteral(u)&&u.numericLiteralFlags&512||e.isBigIntLiteral(u)))return Z(xe,u);var nt=An||w(u)&16777216?al:mn;switch(u.kind){case 10:return u.singleQuote?"'"+nt(u.text,39)+"'":'"'+nt(u.text,34)+'"';case 14:case 15:case 16:case 17:var Jn=u.rawText||Bc(nt(u.text,96));switch(u.kind){case 14:return"`"+Jn+"`";case 15:return"`"+Jn+"${";case 16:return"}"+Jn+"${";case 17:return"}"+Jn+"`"}break;case 8:case 9:case 13:return u.text}return e.Debug.fail("Literal kind '"+u.kind+"' not accounted for.")}e.getLiteralText=j;function Pe(u){return e.isString(u)?'"'+mn(u)+'"':""+u}e.getTextOfConstantValue=Pe;function a(u){return e.getBaseFileName(u).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}e.makeIdentifierFromModuleName=a;function Ze(u){return(e.getCombinedNodeFlags(u)&3)!==0||In(u)}e.isBlockOrCatchScoped=Ze;function In(u){var xe=Nl(u);return xe.kind===241&&xe.parent.kind===278}e.isCatchClauseVariableDeclarationOrBindingElement=In;function et(u){return e.isModuleDeclaration(u)&&(u.name.kind===10||cn(u))}e.isAmbientModule=et;function ae(u){return e.isModuleDeclaration(u)&&u.name.kind===10}e.isModuleWithStringLiteralName=ae;function fe(u){return e.isModuleDeclaration(u)&&e.isStringLiteral(u.name)}e.isNonGlobalAmbientModule=fe;function Le(u){return e.isModuleDeclaration(u)||e.isIdentifier(u)}e.isEffectiveModuleDeclaration=Le;function Je(u){return $e(u.valueDeclaration)}e.isShorthandAmbientModuleSymbol=Je;function $e(u){return u&&u.kind===248&&!u.body}function Fe(u){return u.kind===288||u.kind===248||e.isFunctionLike(u)}e.isBlockScopedContainerTopLevel=Fe;function cn(u){return!!(u.flags&1024)}e.isGlobalScopeAugmentation=cn;function Qe(u){return et(u)&&ln(u)}e.isExternalModuleAugmentation=Qe;function ln(u){switch(u.parent.kind){case 288:return e.isExternalModule(u.parent);case 249:return et(u.parent.parent)&&e.isSourceFile(u.parent.parent.parent)&&!e.isExternalModule(u.parent.parent.parent)}return!1}e.isModuleAugmentationExternal=ln;function ye(u){return e.find(u.declarations,function(xe){return!Qe(xe)&&!(e.isModuleDeclaration(xe)&&cn(xe))})}e.getNonAugmentationDeclaration=ye;function ke(u,xe){return e.isExternalModule(u)||xe.isolatedModules||e.getEmitModuleKind(xe)===e.ModuleKind.CommonJS&&!!u.commonJsModuleIndicator}e.isEffectiveExternalModule=ke;function F(u,xe){switch(u.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return u.isDeclarationFile?!1:e.getStrictOptionValue(xe,"alwaysStrict")||e.startsWithUseStrict(u.statements)?!0:e.isExternalModule(u)||xe.isolatedModules?e.getEmitModuleKind(xe)>=e.ModuleKind.ES2015?!0:!xe.noImplicitUseStrict:!1}e.isEffectiveStrictModeSourceFile=F;function c(u,xe){switch(u.kind){case 288:case 250:case 278:case 248:case 229:case 230:case 231:case 161:case 160:case 162:case 163:case 243:case 200:case 201:return!0;case 222:return!e.isFunctionLike(xe)}return!1}e.isBlockScope=c;function L(u){switch(u.kind){case 308:case 315:case 303:return!0;default:return e.assertType(u),te(u)}}e.isDeclarationWithTypeParameters=L;function te(u){switch(u.kind){case 164:case 165:case 159:case 166:case 169:case 170:case 298:case 244:case 213:case 245:case 246:case 314:case 243:case 160:case 161:case 162:case 163:case 200:case 201:return!0;default:return e.assertType(u),!1}}e.isDeclarationWithTypeParameterChildren=te;function Se(u){switch(u.kind){case 253:case 252:return!0;default:return!1}}e.isAnyImportSyntax=Se;function Ne(u){switch(u.kind){case 253:case 252:case 224:case 244:case 243:case 248:case 246:case 245:case 247:return!0;default:return!1}}e.isLateVisibilityPaintedStatement=Ne;function ze(u){return Se(u)||e.isExportDeclaration(u)}e.isAnyImportOrReExport=ze;function Tn(u){return f(u.parent,function(xe){return c(xe,xe.parent)})}e.getEnclosingBlockScopeContainer=Tn;function wn(u){return!u||C(u)===0?"(Missing)":He(u)}e.declarationNameToString=wn;function jn(u){return u.declaration?wn(u.declaration.parameters[0].name):void 0}e.getNameFromIndexInfo=jn;function nn(u){switch(u.kind){case 75:return u.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(u.text);case 153:return Gs(u.expression)?e.escapeLeadingUnderscores(u.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(u)}}e.getTextOfPropertyName=nn;function pn(u){switch(u.kind){case 75:return C(u)===0?e.idText(u):He(u);case 152:return pn(u.left)+"."+pn(u.right);case 193:return pn(u.expression)+"."+pn(u.name);default:throw e.Debug.assertNever(u)}}e.entityNameToString=pn;function le(u,xe,An,nt,Jn,ma){var Ta=R(u);return Cn(Ta,u,xe,An,nt,Jn,ma)}e.createDiagnosticForNode=le;function oe(u,xe,An,nt,Jn,ma,Ta){var Ra=e.skipTrivia(u.text,xe.pos);return e.createFileDiagnostic(u,Ra,xe.end-Ra,An,nt,Jn,ma,Ta)}e.createDiagnosticForNodeArray=oe;function Cn(u,xe,An,nt,Jn,ma,Ta){var Ra=un(u,xe);return e.createFileDiagnostic(u,Ra.start,Ra.length,An,nt,Jn,ma,Ta)}e.createDiagnosticForNodeInSourceFile=Cn;function yn(u,xe,An){var nt=R(u),Jn=un(nt,u);return{file:nt,start:Jn.start,length:Jn.length,code:xe.code,category:xe.category,messageText:xe.next?xe:xe.messageText,relatedInformation:An}}e.createDiagnosticForNodeFromMessageChain=yn;function _e(u,xe){var An=e.createScanner(u.languageVersion,!0,u.languageVariant,u.text,void 0,xe);An.scan();var nt=An.getTokenPos();return e.createTextSpanFromBounds(nt,An.getTextPos())}e.getSpanOfTokenAtPosition=_e;function dn(u,xe){var An=e.skipTrivia(u.text,xe.pos);if(xe.body&&xe.body.kind===222){var nt=e.getLineAndCharacterOfPosition(u,xe.body.pos).line,Jn=e.getLineAndCharacterOfPosition(u,xe.body.end).line;if(nt<Jn)return e.createTextSpan(An,I(nt,u)-An+1)}return e.createTextSpanFromBounds(An,xe.end)}function un(u,xe){var An=xe;switch(xe.kind){case 288:var nt=e.skipTrivia(u.text,0,!1);return nt===u.text.length?e.createTextSpan(0,0):_e(u,nt);case 241:case 190:case 244:case 213:case 245:case 248:case 247:case 282:case 243:case 200:case 160:case 162:case 163:case 246:case 158:case 157:An=xe.name;break;case 201:return dn(u,xe);case 275:case 276:var Jn=e.skipTrivia(u.text,xe.pos),ma=xe.statements.length>0?xe.statements[0].pos:xe.end;return e.createTextSpanFromBounds(Jn,ma)}if(An===void 0)return _e(u,xe.pos);e.Debug.assert(!e.isJSDoc(An));var Ta=y(An),Ra=Ta||e.isJsxText(xe)?An.pos:e.skipTrivia(u.text,An.pos);return Ta?(e.Debug.assert(Ra===An.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(Ra===An.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(Ra>=An.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(Ra<=An.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(Ra,An.end)}e.getErrorSpanForNode=un;function Rn(u){return(u.externalModuleIndicator||u.commonJsModuleIndicator)!==void 0}e.isExternalOrCommonJsModule=Rn;function at(u){return u.scriptKind===6}e.isJsonSourceFile=at;function Bn(u){return!!(e.getCombinedModifierFlags(u)&2048)}e.isEnumConst=Bn;function ut(u){return!!(e.getCombinedModifierFlags(u)&64&&!e.isParameterPropertyDeclaration(u,u.parent))}e.isDeclarationReadonly=ut;function ct(u){return!!(e.getCombinedNodeFlags(u)&2)}e.isVarConst=ct;function ot(u){return!!(e.getCombinedNodeFlags(u)&1)}e.isLet=ot;function dt(u){return u.kind===195&&u.expression.kind===101}e.isSuperCall=dt;function Ct(u){return u.kind===195&&u.expression.kind===95}e.isImportCall=Ct;function st(u){return e.isMetaProperty(u)&&u.keywordToken===95&&u.name.escapedText==="meta"}e.isImportMeta=st;function Kn(u){return e.isImportTypeNode(u)&&e.isLiteralTypeNode(u.argument)&&e.isStringLiteral(u.argument.literal)}e.isLiteralImportTypeNode=Kn;function Ie(u){return u.kind===225&&u.expression.kind===10}e.isPrologueDirective=Ie;function Ce(u,xe){return u.kind!==11?e.getLeadingCommentRanges(xe.text,u.pos):void 0}e.getLeadingCommentRangesOfNode=Ce;function _n(u,xe){var An=u.kind===155||u.kind===154||u.kind===200||u.kind===201||u.kind===199?e.concatenate(e.getTrailingCommentRanges(xe,u.pos),e.getLeadingCommentRanges(xe,u.pos)):e.getLeadingCommentRanges(xe,u.pos);return e.filter(An,function(nt){return xe.charCodeAt(nt.pos+1)===42&&xe.charCodeAt(nt.pos+2)===42&&xe.charCodeAt(nt.pos+3)!==47})}e.getJSDocCommentRanges=_n,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var yt=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var Dt=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function Ht(u){if(167<=u.kind&&u.kind<=187)return!0;switch(u.kind){case 124:case 147:case 139:case 150:case 142:case 127:case 143:case 140:case 145:case 136:return!0;case 109:return u.parent.kind!==204;case 215:return!vl(u);case 154:return u.parent.kind===185||u.parent.kind===180;case 75:(u.parent.kind===152&&u.parent.right===u||u.parent.kind===193&&u.parent.name===u)&&(u=u.parent),e.Debug.assert(u.kind===75||u.kind===152||u.kind===193,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 152:case 193:case 103:{var xe=u.parent;if(xe.kind===171)return!1;if(xe.kind===187)return!xe.isTypeOf;if(167<=xe.kind&&xe.kind<=187)return!0;switch(xe.kind){case 215:return!vl(xe);case 154:return u===xe.constraint;case 314:return u===xe.constraint;case 158:case 157:case 155:case 241:return u===xe.type;case 243:case 200:case 201:case 161:case 160:case 159:case 162:case 163:return u===xe.type;case 164:case 165:case 166:return u===xe.type;case 198:return u===xe.type;case 195:case 196:return e.contains(xe.typeArguments,u);case 197:return!1}}}return!1}e.isPartOfTypeNode=Ht;function $t(u,xe){for(;u;){if(u.kind===xe)return!0;u=u.parent}return!1}e.isChildOfNodeWithKind=$t;function wr(u,xe){return An(u);function An(nt){switch(nt.kind){case 234:return xe(nt);case 250:case 222:case 226:case 227:case 228:case 229:case 230:case 231:case 235:case 236:case 275:case 276:case 237:case 239:case 278:return e.forEachChild(nt,An)}}}e.forEachReturnStatement=wr;function Yr(u,xe){return An(u);function An(nt){switch(nt.kind){case 211:xe(nt);var Jn=nt.expression;Jn&&An(Jn);return;case 247:case 245:case 248:case 246:case 244:case 213:return;default:if(e.isFunctionLike(nt)){if(nt.name&&nt.name.kind===153){An(nt.name.expression);return}}else Ht(nt)||e.forEachChild(nt,An)}}}e.forEachYieldExpression=Yr;function Hr(u){return u&&u.kind===173?u.elementType:u&&u.kind===168?e.singleOrUndefined(u.typeArguments):void 0}e.getRestParameterElementType=Hr;function mt(u){switch(u.kind){case 245:case 244:case 213:case 172:return u.members;case 192:return u.properties}}e.getMembersOfDeclaration=mt;function va(u){if(u)switch(u.kind){case 190:case 282:case 155:case 279:case 158:case 157:case 280:case 241:return!0}return!1}e.isVariableLike=va;function Lt(u){return va(u)||e.isAccessor(u)}e.isVariableLikeOrAccessor=Lt;function Wn(u){return u.parent.kind===242&&u.parent.parent.kind===224}e.isVariableDeclarationInVariableStatement=Wn;function Vt(u){return e.isVariableDeclaration(u)?ct(u)&&e.isIdentifier(u.name)&&Wn(u):e.isPropertyDeclaration(u)?bc(u)&&No(u):e.isPropertySignature(u)&&bc(u)}e.isValidESSymbolDeclaration=Vt;function pt(u){switch(u.kind){case 160:case 159:case 161:case 162:case 163:case 243:case 200:return!0}return!1}e.introducesArgumentsExoticObject=pt;function Tt(u,xe){for(;;){if(xe&&xe(u),u.statement.kind!==237)return u.statement;u=u.statement}}e.unwrapInnermostStatementOfLabel=Tt;function ht(u){return u&&u.kind===222&&e.isFunctionLike(u.parent)}e.isFunctionBlock=ht;function bt(u){return u&&u.kind===160&&u.parent.kind===192}e.isObjectLiteralMethod=bt;function Ke(u){return u.kind===160&&(u.parent.kind===192||u.parent.kind===213)}e.isObjectLiteralOrClassExpressionMethod=Ke;function Pn(u){return u&&u.kind===1}e.isIdentifierTypePredicate=Pn;function $n(u){return u&&u.kind===0}e.isThisTypePredicate=$n;function rr(u,xe,An){return u.properties.filter(function(nt){if(nt.kind===279){var Jn=nn(nt.name);return xe===Jn||!!An&&An===Jn}return!1})}e.getPropertyAssignment=rr;function xa(u){if(u&&u.statements.length){var xe=u.statements[0].expression;return e.tryCast(xe,e.isObjectLiteralExpression)}}e.getTsConfigObjectLiteralExpression=xa;function Fa(u,xe,An){return e.firstDefined(ri(u,xe),function(nt){return e.isArrayLiteralExpression(nt.initializer)?e.find(nt.initializer.elements,function(Jn){return e.isStringLiteral(Jn)&&Jn.text===An}):void 0})}e.getTsConfigPropArrayElementValue=Fa;function ri(u,xe){var An=xa(u);return An?rr(An,xe):e.emptyArray}e.getTsConfigPropArray=ri;function Si(u){return f(u.parent,e.isFunctionLike)}e.getContainingFunction=Si;function xi(u){return f(u.parent,e.isFunctionLikeDeclaration)}e.getContainingFunctionDeclaration=xi;function vi(u){return f(u.parent,e.isClassLike)}e.getContainingClass=vi;function Oi(u,xe){for(e.Debug.assert(u.kind!==288);;){if(u=u.parent,!u)return e.Debug.fail();switch(u.kind){case 153:if(e.isClassLike(u.parent.parent))return u;u=u.parent;break;case 156:u.parent.kind===155&&e.isClassElement(u.parent.parent)?u=u.parent.parent:e.isClassElement(u.parent)&&(u=u.parent);break;case 201:if(!xe)continue;case 243:case 200:case 248:case 158:case 157:case 160:case 159:case 161:case 162:case 163:case 164:case 165:case 166:case 247:case 288:return u}}}e.getThisContainer=Oi;function Ja(u){var xe=Oi(u,!1);if(xe)switch(xe.kind){case 161:case 243:case 200:return xe}return}e.getNewTargetContainer=Ja;function Ka(u,xe){for(;;){if(u=u.parent,!u)return u;switch(u.kind){case 153:u=u.parent;break;case 243:case 200:case 201:if(!xe)continue;case 158:case 157:case 160:case 159:case 161:case 162:case 163:return u;case 156:u.parent.kind===155&&e.isClassElement(u.parent.parent)?u=u.parent.parent:e.isClassElement(u.parent)&&(u=u.parent);break}}}e.getSuperContainer=Ka;function ua(u){if(u.kind===200||u.kind===201){for(var xe=u,An=u.parent;An.kind===199;)xe=An,An=An.parent;if(An.kind===195&&An.expression===xe)return An}}e.getImmediatelyInvokedFunctionExpression=ua;function bi(u){return u.kind===101||Vo(u)}e.isSuperOrSuperProperty=bi;function Vo(u){var xe=u.kind;return(xe===193||xe===194)&&u.expression.kind===101}e.isSuperProperty=Vo;function wo(u){var xe=u.kind;return(xe===193||xe===194)&&u.expression.kind===103}e.isThisProperty=wo;function Mo(u){switch(u.kind){case 168:return u.typeName;case 215:return Ys(u.expression)?u.expression:void 0;case 75:case 152:return u}return}e.getEntityNameFromTypeNode=Mo;function uo(u){switch(u.kind){case 197:return u.tag;case 266:case 265:return u.tagName;default:return u.expression}}e.getInvokedExpression=uo;function ci(u,xe,An){switch(u.kind){case 244:return!0;case 158:return xe.kind===244;case 162:case 163:case 160:return u.body!==void 0&&xe.kind===244;case 155:return xe.body!==void 0&&(xe.kind===161||xe.kind===160||xe.kind===163)&&An.kind===244}return!1}e.nodeCanBeDecorated=ci;function Gi(u,xe,An){return u.decorators!==void 0&&ci(u,xe,An)}e.nodeIsDecorated=Gi;function ji(u,xe,An){return Gi(u,xe,An)||Ro(u,xe)}e.nodeOrChildIsDecorated=ji;function Ro(u,xe){switch(u.kind){case 244:return e.some(u.members,function(An){return ji(An,u,xe)});case 160:case 163:return e.some(u.parameters,function(An){return Gi(An,u,xe)});default:return!1}}e.childIsDecorated=Ro;function Ao(u){var xe=u.parent;return xe.kind===266||xe.kind===265||xe.kind===267?xe.tagName===u:!1}e.isJSXTagName=Ao;function _o(u){switch(u.kind){case 101:case 99:case 105:case 90:case 13:case 191:case 192:case 193:case 194:case 195:case 196:case 197:case 216:case 198:case 217:case 199:case 200:case 213:case 201:case 204:case 202:case 203:case 206:case 207:case 208:case 209:case 212:case 210:case 214:case 264:case 265:case 268:case 211:case 205:case 218:return!0;case 152:for(;u.parent.kind===152;)u=u.parent;return u.parent.kind===171||Ao(u);case 75:if(u.parent.kind===171||Ao(u))return!0;case 8:case 9:case 10:case 14:case 103:return Ri(u);default:return!1}}e.isExpressionNode=_o;function Ri(u){var xe=u.parent;switch(xe.kind){case 241:case 155:case 158:case 157:case 282:case 279:case 190:return xe.initializer===u;case 225:case 226:case 227:case 228:case 234:case 235:case 236:case 275:case 238:return xe.expression===u;case 229:var An=xe;return An.initializer===u&&An.initializer.kind!==242||An.condition===u||An.incrementor===u;case 230:case 231:var nt=xe;return nt.initializer===u&&nt.initializer.kind!==242||nt.expression===u;case 198:case 216:return u===xe.expression;case 220:return u===xe.expression;case 153:return u===xe.expression;case 156:case 274:case 273:case 281:return!0;case 215:return xe.expression===u&&vl(xe);case 280:return xe.objectAssignmentInitializer===u;default:return _o(xe)}}e.isInExpressionContext=Ri;function xt(u){return u.kind===252&&u.moduleReference.kind===263}e.isExternalModuleImportEqualsDeclaration=xt;function Kt(u){return e.Debug.assert(xt(u)),u.moduleReference.expression}e.getExternalModuleImportEqualsDeclarationExpression=Kt;function yr(u){return u.kind===252&&u.moduleReference.kind!==263}e.isInternalModuleImportEqualsDeclaration=yr;function Jr(u){return La(u)}e.isSourceFileJS=Jr;function _a(u){return!La(u)}e.isSourceFileNotJS=_a;function La(u){return!!u&&!!(u.flags&131072)}e.isInJSFile=La;function qr(u){return!!u&&!!(u.flags&33554432)}e.isInJsonFile=qr;function pi(u){return!at(u)}e.isSourceFileNotJson=pi;function Li(u){return!!u&&!!(u.flags&4194304)}e.isInJSDoc=Li;function mi(u){return e.isTypeReferenceNode(u)&&e.isIdentifier(u.typeName)&&u.typeName.escapedText==="Object"&&u.typeArguments&&u.typeArguments.length===2&&(u.typeArguments[0].kind===142||u.typeArguments[0].kind===139)}e.isJSDocIndexSignature=mi;function da(u,xe){if(u.kind!==195)return!1;var An=u,nt=An.expression,Jn=An.arguments;if(nt.kind!==75||nt.escapedText!=="require")return!1;if(Jn.length!==1)return!1;var ma=Jn[0];return!xe||e.isStringLiteralLike(ma)}e.isRequireCall=da;function en(u){return u===39||u===34}e.isSingleOrDoubleQuote=en;function vn(u,xe){return Z(xe,u).charCodeAt(0)===34}e.isStringDoubleQuoted=vn;function Ln(u){if(!u.parent)return;var xe,An;if(e.isVariableDeclaration(u.parent)&&u.parent.initializer===u){if(!La(u)&&!ct(u.parent))return;xe=u.parent.name,An=u.parent}else if(e.isBinaryExpression(u.parent)){var nt=u.parent,Jn=u.parent.operatorToken.kind;if(Jn===62&&nt.right===u)xe=nt.left,An=xe;else if((Jn===56||Jn===60)&&(e.isVariableDeclaration(nt.parent)&&nt.parent.initializer===nt?(xe=nt.parent.name,An=nt.parent):e.isBinaryExpression(nt.parent)&&nt.parent.operatorToken.kind===62&&nt.parent.right===nt&&(xe=nt.parent.left,An=xe),!xe||!lt(xe)||!hi(xe,nt.left)))return}return!xe||!za(u,bl(xe))?void 0:An}e.getDeclarationOfExpando=Ln;function Vn(u){return e.isBinaryExpression(u)||Xr(u)||e.isIdentifier(u)||e.isCallExpression(u)}e.isAssignmentDeclaration=Vn;function Mt(u){return La(u)&&u.initializer&&e.isBinaryExpression(u.initializer)&&(u.initializer.operatorToken.kind===56||u.initializer.operatorToken.kind===60)&&u.name&&Ys(u.name)&&hi(u.name,u.initializer.left)?u.initializer.right:u.initializer}e.getEffectiveInitializer=Mt;function tr(u){var xe=Mt(u);return xe&&za(xe,bl(u.name))}e.getDeclaredExpandoInitializer=tr;function dr(u,xe){return e.forEach(u.properties,function(An){return e.isPropertyAssignment(An)&&e.isIdentifier(An.name)&&An.name.escapedText==="value"&&An.initializer&&za(An.initializer,xe)})}function Pr(u){if(u&&u.parent&&e.isBinaryExpression(u.parent)&&u.parent.operatorToken.kind===62){var xe=bl(u.parent.left);return za(u.parent.right,xe)||Ia(u.parent.left,u.parent.right,xe)}if(u&&e.isCallExpression(u)&&Hn(u)){var An=dr(u.arguments[2],u.arguments[1].text==="prototype");if(An)return An}}e.getAssignedExpandoInitializer=Pr;function za(u,xe){if(e.isCallExpression(u)){var An=Ca(u.expression);return An.kind===200||An.kind===201?u:void 0}if(u.kind===200||u.kind===213||u.kind===201)return u;if(e.isObjectLiteralExpression(u)&&(u.properties.length===0||xe))return u}e.getExpandoInitializer=za;function Ia(u,xe,An){var nt=e.isBinaryExpression(xe)&&(xe.operatorToken.kind===56||xe.operatorToken.kind===60)&&za(xe.right,An);if(nt&&hi(u,xe.left))return nt}function Ii(u){var xe=e.isVariableDeclaration(u.parent)?u.parent.name:e.isBinaryExpression(u.parent)&&u.parent.operatorToken.kind===62?u.parent.left:void 0;return xe&&za(u.right,bl(xe))&&Ys(xe)&&hi(xe,u.left)}e.isDefaultedExpandoInitializer=Ii;function ai(u){if(e.isBinaryExpression(u.parent)){var xe=(u.parent.operatorToken.kind===56||u.parent.operatorToken.kind===60)&&e.isBinaryExpression(u.parent.parent)?u.parent.parent:u.parent;if(xe.operatorToken.kind===62&&e.isIdentifier(xe.left))return xe.left}else if(e.isVariableDeclaration(u.parent))return u.parent.name}e.getNameOfExpando=ai;function hi(u,xe){return Js(u)&&Js(xe)?Oc(u)===Oc(u):e.isIdentifier(u)&&de(xe)?(xe.expression.kind===103||e.isIdentifier(xe.expression)&&(xe.expression.escapedText==="window"||xe.expression.escapedText==="self"||xe.expression.escapedText==="global"))&&hi(u,Ft(xe)):de(u)&&de(xe)?fa(u)===fa(xe)&&hi(u.expression,xe.expression):!1}function Xe(u){for(;rc(u,!0);)u=u.right;return u}e.getRightMostAssignedExpression=Xe;function qn(u){return e.isIdentifier(u)&&u.escapedText==="exports"}e.isExportsIdentifier=qn;function ge(u){return(e.isPropertyAccessExpression(u)||rn(u))&&e.isIdentifier(u.expression)&&u.expression.escapedText==="module"&&fa(u)==="exports"}e.isModuleExportsAccessExpression=ge;function hn(u){var xe=on(u);return xe===5||La(u)?xe:0}e.getAssignmentDeclarationKind=hn;function Hn(u){return e.length(u.arguments)===3&&e.isPropertyAccessExpression(u.expression)&&e.isIdentifier(u.expression.expression)&&e.idText(u.expression.expression)==="Object"&&e.idText(u.expression.name)==="defineProperty"&&Gs(u.arguments[1])&<(u.arguments[0],!0)}e.isBindableObjectDefinePropertyCall=Hn;function de(u){return e.isPropertyAccessExpression(u)||rn(u)}e.isLiteralLikeAccess=de;function rn(u){return e.isElementAccessExpression(u)&&(Gs(u.argumentExpression)||Ql(u.argumentExpression))}e.isLiteralLikeElementAccess=rn;function kn(u,xe){return e.isPropertyAccessExpression(u)&&(!xe&&u.expression.kind===103||lt(u.expression,!0))||Qn(u,xe)}e.isBindableStaticAccessExpression=kn;function Qn(u,xe){return rn(u)&&(!xe&&u.expression.kind===103||Ys(u.expression)||kn(u.expression,!0))}e.isBindableStaticElementAccessExpression=Qn;function lt(u,xe){return Ys(u)||kn(u,xe)}e.isBindableStaticNameExpression=lt;function Ft(u){return e.isPropertyAccessExpression(u)?u.name:u.argumentExpression}e.getNameOrArgument=Ft;function on(u){if(e.isCallExpression(u)){if(!Hn(u))return 0;var xe=u.arguments[0];return qn(xe)||ge(xe)?8:kn(xe)&&fa(xe)==="prototype"?9:7}return u.operatorToken.kind!==62||!Xr(u.left)?0:lt(u.left.expression,!0)&&fa(u.left)==="prototype"&&e.isObjectLiteralExpression(to(u))?6:Wa(u.left)}function kr(u){if(e.isPropertyAccessExpression(u))return u.name;var xe=Ca(u.argumentExpression);return e.isNumericLiteral(xe)||e.isStringLiteralLike(xe)?xe:u}e.getElementOrPropertyAccessArgumentExpressionOrName=kr;function fa(u){var xe=kr(u);if(xe){if(e.isIdentifier(xe))return xe.escapedText;if(e.isStringLiteralLike(xe)||e.isNumericLiteral(xe))return e.escapeLeadingUnderscores(xe.text)}return e.isElementAccessExpression(u)&&Ql(u.argumentExpression)?Pc(e.idText(u.argumentExpression.name)):void 0}e.getElementOrPropertyAccessName=fa;function Wa(u){if(u.expression.kind===103)return 4;if(ge(u))return 2;if(lt(u.expression,!0)){if(bl(u.expression))return 3;for(var xe=u;!e.isIdentifier(xe.expression);)xe=xe.expression;var An=xe.expression;if((An.escapedText==="exports"||An.escapedText==="module"&&fa(xe)==="exports")&&kn(u))return 1;if(lt(u,!0)||e.isElementAccessExpression(u)&&gc(u)&&u.expression.kind!==103)return 5}return 0}e.getAssignmentDeclarationPropertyAccessKind=Wa;function to(u){for(;e.isBinaryExpression(u.right);)u=u.right;return u.right}e.getInitializerOfBinaryExpression=to;function ha(u){return e.isBinaryExpression(u)&&hn(u)===3}e.isPrototypePropertyAssignment=ha;function Yo(u){return La(u)&&u.parent&&u.parent.kind===225&&(!e.isElementAccessExpression(u)||rn(u))&&!!e.getJSDocTypeTag(u.parent)}e.isSpecialPropertyDeclaration=Yo;function ko(u){if(!u||!u.valueDeclaration)return!1;var xe=u.valueDeclaration;return xe.kind===243||e.isVariableDeclaration(xe)&&xe.initializer&&e.isFunctionLike(xe.initializer)}e.isFunctionSymbol=ko;function ks(u){return Rs(u)||e.Debug.failBadSyntaxKind(u.parent)}e.importFromModuleSpecifier=ks;function Rs(u){switch(u.parent.kind){case 253:case 259:return u.parent;case 263:return u.parent.parent;case 195:return Ct(u.parent)||da(u.parent,!1)?u.parent:void 0;case 186:return e.Debug.assert(e.isStringLiteral(u)),e.tryCast(u.parent.parent,e.isImportTypeNode);default:return}}e.tryGetImportFromModuleSpecifier=Rs;function ml(u){switch(u.kind){case 253:case 259:return u.moduleSpecifier;case 252:return u.moduleReference.kind===263?u.moduleReference.expression:void 0;case 187:return Kn(u)?u.argument.literal:void 0;default:return e.Debug.assertNever(u)}}e.getExternalModuleName=ml;function Fs(u){switch(u.kind){case 253:return u.importClause&&e.tryCast(u.importClause.namedBindings,e.isNamespaceImport);case 252:return u;case 259:return;default:return e.Debug.assertNever(u)}}e.getNamespaceDeclarationNode=Fs;function Il(u){return u.kind===253&&!!u.importClause&&!!u.importClause.name}e.isDefaultImport=Il;function $o(u){if(u)switch(u.kind){case 155:case 160:case 159:case 280:case 279:case 158:case 157:return u.questionToken!==void 0}return!1}e.hasQuestionToken=$o;function hl(u){var xe=e.isJSDocFunctionType(u)?e.firstOrUndefined(u.parameters):void 0,An=e.tryCast(xe&&xe.name,e.isIdentifier);return!!An&&An.escapedText==="new"}e.isJSDocConstructSignature=hl;function Ul(u){return u.kind===315||u.kind===308||u.kind===309}e.isJSDocTypeAlias=Ul;function gl(u){return Ul(u)||e.isTypeAliasDeclaration(u)}e.isTypeAlias=gl;function po(u){return e.isExpressionStatement(u)&&u.expression&&e.isBinaryExpression(u.expression)&&u.expression.operatorToken.kind===62?u.expression.right:void 0}function Cs(u){return e.isExpressionStatement(u)&&e.isBinaryExpression(u.expression)&&hn(u.expression)!==0&&e.isBinaryExpression(u.expression.right)&&(u.expression.right.operatorToken.kind===56||u.expression.right.operatorToken.kind===60)?u.expression.right.right:void 0}function Ds(u){switch(u.kind){case 224:var xe=_s(u);return xe&&xe.initializer;case 158:return u.initializer;case 279:return u.initializer}}e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Ds;function _s(u){return e.isVariableStatement(u)?e.firstOrUndefined(u.declarationList.declarations):void 0}function yl(u){return e.isModuleDeclaration(u)&&u.body&&u.body.kind===248?u.body:void 0}function Ks(u){var xe;va(u)&&e.hasInitializer(u)&&e.hasJSDocNodes(u.initializer)&&(xe=e.append(xe,e.last(u.initializer.jsDoc)));for(var An=u;An&&An.parent;){if(e.hasJSDocNodes(An)&&(xe=e.append(xe,e.last(An.jsDoc))),An.kind===155){xe=e.addRange(xe,e.getJSDocParameterTags(An));break}if(An.kind===154){xe=e.addRange(xe,e.getJSDocTypeParameterTags(An));break}An=qs(An)}return xe||e.emptyArray}e.getJSDocCommentsAndTags=Ks;function qs(u){var xe=u.parent;if(xe.kind===279||xe.kind===258||xe.kind===158||xe.kind===225&&u.kind===193||yl(xe)||e.isBinaryExpression(u)&&u.operatorToken.kind===62)return xe;if(xe.parent&&(_s(xe.parent)===u||e.isBinaryExpression(xe)&&xe.operatorToken.kind===62))return xe.parent;if(xe.parent&&xe.parent.parent&&(_s(xe.parent.parent)||Ds(xe.parent.parent)===u||Cs(xe.parent.parent)))return xe.parent.parent}function $s(u){if(u.symbol)return u.symbol;if(!e.isIdentifier(u.name))return;var xe=u.name.escapedText,An=el(u);if(!An)return;var nt=e.find(An.parameters,function(Jn){return Jn.name.kind===75&&Jn.name.escapedText===xe});return nt&&nt.symbol}e.getParameterSymbolFromJSDoc=$s;function el(u){return nl(Fn(u))}e.getHostSignatureFromJSDoc=el;function nl(u){var xe=Cs(u)||po(u)||Ds(u)||_s(u)||yl(u)||u;return xe&&e.isFunctionLike(xe)?xe:void 0}e.getHostSignatureFromJSDocHost=nl;function Fn(u){return e.Debug.assertDefined(f(u.parent,e.isJSDoc)).parent}e.getJSDocHost=Fn;function Yn(u){var xe=u.name.escapedText,An=u.parent.parent.parent.typeParameters;return An&&e.find(An,function(nt){return nt.name.escapedText===xe})}e.getTypeParameterFromJsDoc=Yn;function gt(u){var xe=e.lastOrUndefined(u.parameters);return!!xe&&tt(xe)}e.hasRestParameter=gt;function tt(u){var xe=e.isJSDocParameterTag(u)?u.typeExpression&&u.typeExpression.type:u.type;return u.dotDotDotToken!==void 0||!!xe&&xe.kind===299}e.isRestParameter=tt;var Xt;(function(u){u[u.None=0]="None",u[u.Definite=1]="Definite",u[u.Compound=2]="Compound"})(Xt=e.AssignmentKind||(e.AssignmentKind={}));function _r(u){for(var xe=u.parent;;){switch(xe.kind){case 208:var An=xe.operatorToken.kind;return Ec(An)&&xe.left===u?An===62?1:2:0;case 206:case 207:var nt=xe.operator;return nt===45||nt===46?2:0;case 230:case 231:return xe.initializer===u?1:0;case 199:case 191:case 212:case 217:u=xe;break;case 280:if(xe.name!==u)return 0;u=xe.parent;break;case 279:if(xe.name===u)return 0;u=xe.parent;break;default:return 0}xe=u.parent}}e.getAssignmentTargetKind=_r;function Kr(u){return _r(u)!==0}e.isAssignmentTarget=Kr;function Dr(u){switch(u.kind){case 222:case 224:case 235:case 226:case 236:case 250:case 275:case 276:case 237:case 229:case 230:case 231:case 227:case 228:case 239:case 278:return!0}return!1}e.isNodeWithPossibleHoistedDeclaration=Dr;function Ir(u){return e.isFunctionExpression(u)||e.isArrowFunction(u)||e.isMethodOrAccessor(u)||e.isFunctionDeclaration(u)||e.isConstructorDeclaration(u)}e.isValueSignatureDeclaration=Ir;function Mr(u,xe){for(;u&&u.kind===xe;)u=u.parent;return u}function Er(u){return Mr(u,181)}e.walkUpParenthesizedTypes=Er;function pa(u){return Mr(u,199)}e.walkUpParenthesizedExpressions=pa;function Ca(u){for(;u.kind===199;)u=u.expression;return u}e.skipParentheses=Ca;function Ma(u){for(;u.kind===199;)u=u.parent;return u}function gi(u){return u.kind!==193&&u.kind!==194?!1:(u=pa(u.parent),u&&u.kind===202)}e.isDeleteTarget=gi;function vo(u,xe){for(;u;){if(u===xe)return!0;u=u.parent}return!1}e.isNodeDescendantOf=vo;function di(u){return!e.isSourceFile(u)&&!e.isBindingPattern(u)&&e.isDeclaration(u.parent)&&u.parent.name===u}e.isDeclarationName=di;function Lo(u){var xe=u.parent;switch(u.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(xe))return xe.parent;case 75:if(e.isDeclaration(xe))return xe.name===u?xe:void 0;if(e.isQualifiedName(xe)){var An=xe.parent;return e.isJSDocParameterTag(An)&&An.name===xe?An:void 0}else{var nt=xe.parent;return e.isBinaryExpression(nt)&&hn(nt)!==0&&(nt.left.symbol||nt.symbol)&&e.getNameOfDeclaration(nt)===u?nt:void 0}default:return}}e.getDeclarationFromName=Lo;function Ki(u){return Gs(u)&&u.parent.kind===153&&e.isDeclaration(u.parent.parent)}e.isLiteralComputedPropertyDeclarationName=Ki;function xn(u){var xe=u.parent;switch(xe.kind){case 158:case 157:case 160:case 159:case 162:case 163:case 282:case 279:case 193:return xe.name===u;case 152:if(xe.right===u){for(;xe.kind===152;)xe=xe.parent;return xe.kind===171||xe.kind===168}return!1;case 190:case 257:return xe.propertyName===u;case 261:case 271:return!0}return!1}e.isIdentifierName=xn;function bo(u){return u.kind===252||u.kind===251||u.kind===254&&!!u.name||u.kind===255||u.kind===257||u.kind===261||u.kind===258&&Ho(u)||e.isBinaryExpression(u)&&hn(u)===2&&Ho(u)||e.isPropertyAccessExpression(u)&&e.isBinaryExpression(u.parent)&&u.parent.left===u&&u.parent.operatorToken.kind===62&&Fo(u.parent.right)||u.kind===280||u.kind===279&&Fo(u.initializer)}e.isAliasSymbolDeclaration=bo;function Fo(u){return Ys(u)||e.isClassExpression(u)}function Ho(u){var xe=Ga(u);return Fo(xe)}e.exportAssignmentIsAlias=Ho;function Ga(u){return e.isExportAssignment(u)?u.expression:u.right}e.getExportAssignmentExpression=Ga;function vs(u){return u.kind===280?u.name:u.kind===279?u.initializer:u.parent.right}e.getPropertyAssignmentAliasLikeExpression=vs;function me(u){var xe=En(u);if(xe&&La(u)){var An=e.getJSDocAugmentsTag(u);if(An)return An.class}return xe}e.getEffectiveBaseTypeNode=me;function En(u){var xe=ga(u.heritageClauses,89);return xe&&xe.types.length>0?xe.types[0]:void 0}e.getClassExtendsHeritageElement=En;function Zn(u){var xe=ga(u.heritageClauses,112);return xe?xe.types:void 0}e.getClassImplementsHeritageClauseElements=Zn;function Gt(u){return e.isInterfaceDeclaration(u)?vr(u)||e.emptyArray:e.isClassLike(u)&&e.concatenate(e.singleElementArray(me(u)),Zn(u))||e.emptyArray}e.getAllSuperTypeNodes=Gt;function vr(u){var xe=ga(u.heritageClauses,89);return xe?xe.types:void 0}e.getInterfaceBaseTypeNodes=vr;function ga(u,xe){if(u)for(var An=0,nt=u;An<nt.length;An++){var Jn=nt[An];if(Jn.token===xe)return Jn}return}e.getHeritageClause=ga;function ii(u,xe){for(;u;){if(u.kind===xe)return u;u=u.parent}return}e.getAncestor=ii;function qa(u){return 76<=u&&u<=151}e.isKeyword=qa;function wi(u){return 121<=u&&u<=151}e.isContextualKeyword=wi;function eo(u){return qa(u)&&!wi(u)}e.isNonContextualKeyword=eo;function na(u){return 112<=u&&u<=120}e.isFutureReservedKeyword=na;function Lr(u){var xe=e.stringToToken(u);return xe!==void 0&&eo(xe)}e.isStringANonContextualKeyword=Lr;function Eo(u){var xe=e.stringToToken(u);return xe!==void 0&&qa(xe)}e.isStringAKeyword=Eo;function Uo(u){var xe=u.originalKeywordKind;return!!xe&&!wi(xe)}e.isIdentifierANonContextualKeyword=Uo;function tl(u){return 2<=u&&u<=7}e.isTrivia=tl;var Qo;(function(u){u[u.Normal=0]="Normal",u[u.Generator=1]="Generator",u[u.Async=2]="Async",u[u.Invalid=4]="Invalid",u[u.AsyncGenerator=3]="AsyncGenerator"})(Qo=e.FunctionFlags||(e.FunctionFlags={}));function lo(u){if(!u)return 4;var xe=0;switch(u.kind){case 243:case 200:case 160:u.asteriskToken&&(xe|=1);case 201:mo(u,256)&&(xe|=2);break}return u.body||(xe|=4),xe}e.getFunctionFlags=lo;function Os(u){switch(u.kind){case 243:case 200:case 201:case 160:return u.body!==void 0&&u.asteriskToken===void 0&&mo(u,256)}return!1}e.isAsyncFunction=Os;function Gs(u){return e.isStringLiteralLike(u)||e.isNumericLiteral(u)}e.isStringOrNumericLiteralLike=Gs;function Nc(u){return e.isPrefixUnaryExpression(u)&&(u.operator===39||u.operator===40)&&e.isNumericLiteral(u.operand)}e.isSignedNumericLiteral=Nc;function _l(u){var xe=e.getNameOfDeclaration(u);return!!xe&&gc(xe)}e.hasDynamicName=_l;function gc(u){if(!(u.kind===153||u.kind===194))return!1;var xe=e.isElementAccessExpression(u)?u.argumentExpression:u.expression;return!Gs(xe)&&!Nc(xe)&&!Ql(xe)}e.isDynamicName=gc;function Ql(u){return e.isPropertyAccessExpression(u)&&Zl(u.expression)}e.isWellKnownSymbolSyntactically=Ql;function rl(u){switch(u.kind){case 75:return u.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(u.text);case 153:var xe=u.expression;return Ql(xe)?Pc(e.idText(xe.name)):Gs(xe)?e.escapeLeadingUnderscores(xe.text):void 0;default:return e.Debug.assertNever(u)}}e.getPropertyNameForPropertyNameNode=rl;function Js(u){switch(u.kind){case 75:case 10:case 14:case 8:return!0;default:return!1}}e.isPropertyNameLiteral=Js;function Oc(u){return u.kind===75?e.idText(u):u.text}e.getTextOfIdentifierOrLiteral=Oc;function au(u){return u.kind===75?u.escapedText:e.escapeLeadingUnderscores(u.text)}e.getEscapedTextOfIdentifierOrLiteral=au;function Pc(u){return"__@"+u}e.getPropertyNameForKnownSymbolName=Pc;function iu(u){return e.startsWith(u.escapedName,"__@")}e.isKnownSymbol=iu;function Zl(u){return u.kind===75&&u.escapedText==="Symbol"}e.isESSymbolIdentifier=Zl;function zs(u){return u.escapedText==="push"||u.escapedText==="unshift"}e.isPushOrUnshiftIdentifier=zs;function Mc(u){var xe=Nl(u);return xe.kind===155}e.isParameterDeclaration=Mc;function Nl(u){for(;u.kind===190;)u=u.parent.parent;return u}e.getRootDeclaration=Nl;function bs(u){var xe=u.kind;return xe===161||xe===200||xe===243||xe===201||xe===160||xe===162||xe===163||xe===248||xe===288}e.nodeStartsNewLexicalEnvironment=bs;function Rc(u){return e.positionIsSynthesized(u.pos)||e.positionIsSynthesized(u.end)}e.nodeIsSynthesized=Rc;function $l(u){return e.getParseTreeNode(u,e.isSourceFile)||u}e.getOriginalSourceFile=$l;var yc;(function(u){u[u.Left=0]="Left",u[u.Right=1]="Right"})(yc=e.Associativity||(e.Associativity={}));function ou(u){var xe=lu(u),An=u.kind===196&&u.arguments!==void 0;return Lu(u.kind,xe,An)}e.getExpressionAssociativity=ou;function Lu(u,xe,An){switch(u){case 196:return An?0:1;case 206:case 203:case 204:case 202:case 205:case 209:case 211:return 1;case 208:switch(xe){case 42:case 62:case 63:case 64:case 66:case 65:case 67:case 68:case 69:case 70:case 71:case 72:case 74:case 73:return 1}}return 0}e.getOperatorAssociativity=Lu;function su(u){var xe=lu(u),An=u.kind===196&&u.arguments!==void 0;return cu(u.kind,xe,An)}e.getExpressionPrecedence=su;function lu(u){return u.kind===208?u.operatorToken.kind:u.kind===206||u.kind===207?u.operator:u.kind}e.getOperator=lu;function cu(u,xe,An){switch(u){case 320:return 0;case 212:return 1;case 211:return 2;case 209:return 4;case 208:switch(xe){case 27:return 0;case 62:case 63:case 64:case 66:case 65:case 67:case 68:case 69:case 70:case 71:case 72:case 74:case 73:return 3;default:return Fc(xe)}case 206:case 203:case 204:case 202:case 205:return 16;case 207:return 17;case 195:return 18;case 196:return An?19:18;case 197:case 193:case 194:return 19;case 103:case 101:case 75:case 99:case 105:case 90:case 8:case 9:case 10:case 191:case 192:case 200:case 201:case 213:case 264:case 265:case 268:case 13:case 14:case 210:case 199:case 214:return 20;default:return-1}}e.getOperatorPrecedence=cu;function Fc(u){switch(u){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 97:case 96:case 122:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}e.getBinaryOperatorPrecedence=Fc;function Gc(){var u=[],xe=[],An=e.createMap(),nt=!1;return{add:Ta,lookup:ma,getGlobalDiagnostics:Ra,getDiagnostics:Jo,reattachFileDiagnostics:Jn};function Jn(Pi){e.forEach(An.get(Pi.fileName),function(To){return To.file=Pi})}function ma(Pi){var To;if(Pi.file?To=An.get(Pi.file.fileName):To=u,!To)return;var Ko=e.binarySearch(To,Pi,e.identity,e.compareDiagnosticsSkipRelatedInformation);return Ko>=0?To[Ko]:void 0}function Ta(Pi){var To;Pi.file?(To=An.get(Pi.file.fileName),To||(To=[],An.set(Pi.file.fileName,To),e.insertSorted(xe,Pi.file.fileName,e.compareStringsCaseSensitive))):(nt&&(nt=!1,u=u.slice()),To=u),e.insertSorted(To,Pi,e.compareDiagnostics)}function Ra(){return nt=!0,u}function Jo(Pi){if(Pi)return An.get(Pi)||[];var To=e.flatMapToMutable(xe,function(Ko){return An.get(Ko)});return u.length&&To.unshift.apply(To,u),To}}e.createDiagnosticCollection=Gc;var _c=/\$\{/g;function Bc(u){return u.replace(_c,"\\${")}var uu=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,du=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ec=/[\\\`]/g,Vc=e.createMapFromTemplate({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085"});function al(u,xe){var An=xe===96?ec:xe===39?du:uu;return u.replace(An,b)}e.escapeString=al;function Xs(u){var xe=u.length;return xe>=2&&u.charCodeAt(0)===u.charCodeAt(xe-1)&&s(u.charCodeAt(0))?u.substring(1,xe-1):u}e.stripQuotes=Xs;function s(u){return u===39||u===34||u===96}function b(u,xe,An){if(u.charCodeAt(0)===0){var nt=An.charCodeAt(xe+u.length);return nt>=48&&nt<=57?"\\x00":"\\0"}return Vc.get(u)||Me(u.charCodeAt(0))}function V(u){var xe=u.charCodeAt(0);return xe>=97&&xe<=122||e.stringContains(u,"-")}e.isIntrinsicJsxName=V;function Me(u){var xe=u.toString(16).toUpperCase(),An=("0000"+xe).slice(-4);return"\\u"+An}var an=/[^\u0000-\u007F]/g;function mn(u,xe){return u=al(u,xe),an.test(u)?u.replace(an,function(An){return Me(An.charCodeAt(0))}):u}e.escapeNonAsciiString=mn;var zn=[""," "];function kt(u){return zn[u]===void 0&&(zn[u]=kt(u-1)+zn[1]),zn[u]}e.getIndentString=kt;function Pt(){return zn[1].length}e.getIndentSize=Pt;function It(u){var xe,An,nt,Jn,ma,Ta=!1;function Ra(ns){var Mu=e.computeLineStarts(ns);Mu.length>1?(Jn=Jn+Mu.length-1,ma=xe.length-ns.length+e.last(Mu),nt=ma-xe.length===0):nt=!1}function Jo(ns){ns&&ns.length&&(nt&&(ns=kt(An)+ns,nt=!1),xe+=ns,Ra(ns))}function Pi(ns){ns&&(Ta=!1),Jo(ns)}function To(ns){ns&&(Ta=!0),Jo(ns)}function Ko(){xe="",An=0,nt=!0,Jn=0,ma=0,Ta=!1}function El(ns){ns!==void 0&&(xe+=ns,Ra(ns),Ta=!1)}function Rl(ns){ns&&ns.length&&Pi(ns)}function wc(){nt||(xe+=u,Jn++,ma=xe.length,nt=!0,Ta=!1)}function Ac(){return nt?xe.length:xe.length+u.length}return Ko(),{write:Pi,rawWrite:El,writeLiteral:Rl,writeLine:wc,increaseIndent:function(){An++},decreaseIndent:function(){An--},getIndent:function(){return An},getTextPos:function(){return xe.length},getLine:function(){return Jn},getColumn:function(){return nt?An*Pt():xe.length-ma},getText:function(){return xe},isAtStartOfLine:function(){return nt},hasTrailingComment:function(){return Ta},hasTrailingWhitespace:function(){return!!xe.length&&e.isWhiteSpaceLike(xe.charCodeAt(xe.length-1))},clear:Ko,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:Pi,writeOperator:Pi,writeParameter:Pi,writeProperty:Pi,writePunctuation:Pi,writeSpace:Pi,writeStringLiteral:Pi,writeSymbol:function(ns,Mu){return Pi(ns)},writeTrailingSemicolon:Pi,writeComment:To,getTextPosWithWriteLine:Ac}}e.createTextWriter=It;function fr(u){var xe=!1;function An(){xe&&(u.writeTrailingSemicolon(";"),xe=!1)}return Rr(Rr({},u),{writeTrailingSemicolon:function(){xe=!0},writeLiteral:function(nt){An(),u.writeLiteral(nt)},writeStringLiteral:function(nt){An(),u.writeStringLiteral(nt)},writeSymbol:function(nt,Jn){An(),u.writeSymbol(nt,Jn)},writePunctuation:function(nt){An(),u.writePunctuation(nt)},writeKeyword:function(nt){An(),u.writeKeyword(nt)},writeOperator:function(nt){An(),u.writeOperator(nt)},writeParameter:function(nt){An(),u.writeParameter(nt)},writeSpace:function(nt){An(),u.writeSpace(nt)},writeProperty:function(nt){An(),u.writeProperty(nt)},writeComment:function(nt){An(),u.writeComment(nt)},writeLine:function(){An(),u.writeLine()},increaseIndent:function(){An(),u.increaseIndent()},decreaseIndent:function(){An(),u.decreaseIndent()}})}e.getTrailingSemicolonDeferringWriter=fr;function hr(u,xe,An){return xe.moduleName||ba(u,xe.fileName,An&&An.fileName)}e.getResolvedExternalModuleName=hr;function $r(u,xe,An){var nt=xe.getExternalModuleFileFromDeclaration(An);return!nt||nt.isDeclarationFile?void 0:hr(u,nt)}e.getExternalModuleNameFromDeclaration=$r;function ba(u,xe,An){var nt=function(Jo){return u.getCanonicalFileName(Jo)},Jn=e.toPath(An?e.getDirectoryPath(An):u.getCommonSourceDirectory(),u.getCurrentDirectory(),nt),ma=e.getNormalizedAbsolutePath(xe,u.getCurrentDirectory()),Ta=e.getRelativePathToDirectoryOrUrl(Jn,ma,Jn,nt,!1),Ra=e.removeFileExtension(Ta);return An?e.ensurePathIsNonModuleName(Ra):Ra}e.getExternalModuleNameFromPath=ba;function ra(u,xe,An){var nt=xe.getCompilerOptions(),Jn;return nt.outDir?Jn=e.removeFileExtension(Qr(u,xe,nt.outDir)):Jn=e.removeFileExtension(u),Jn+An}e.getOwnEmitOutputFilePath=ra;function Ba(u,xe){return Ai(u,xe.getCompilerOptions(),xe.getCurrentDirectory(),xe.getCommonSourceDirectory(),function(An){return xe.getCanonicalFileName(An)})}e.getDeclarationEmitOutputFilePath=Ba;function Ai(u,xe,An,nt,Jn){var ma=xe.declarationDir||xe.outDir,Ta=ma?ia(u,ma,An,nt,Jn):u;return e.removeFileExtension(Ta)+".d.ts"}e.getDeclarationEmitOutputFilePathWorker=Ai;function $a(u,xe,An){var nt=u.getCompilerOptions();if(nt.outFile||nt.out){var Jn=e.getEmitModuleKind(nt),ma=nt.emitDeclarationOnly||Jn===e.ModuleKind.AMD||Jn===e.ModuleKind.System;return e.filter(u.getSourceFiles(),function(Ra){return(ma||!e.isExternalModule(Ra))&&ki(Ra,u,An)})}else{var Ta=xe===void 0?u.getSourceFiles():[xe];return e.filter(Ta,function(Ra){return ki(Ra,u,An)})}}e.getSourceFilesToEmit=$a;function ki(u,xe,An){var nt=xe.getCompilerOptions();return!(nt.noEmitForJsFiles&&Jr(u))&&!u.isDeclarationFile&&!xe.isSourceFileFromExternalLibrary(u)&&!(at(u)&&xe.getResolvedProjectReferenceToRedirect(u.fileName))&&(An||!xe.isSourceOfProjectReferenceRedirect(u.fileName))}e.sourceFileMayBeEmitted=ki;function Qr(u,xe,An){return ia(u,An,xe.getCurrentDirectory(),xe.getCommonSourceDirectory(),function(nt){return xe.getCanonicalFileName(nt)})}e.getSourceFilePathInNewDir=Qr;function ia(u,xe,An,nt,Jn){var ma=e.getNormalizedAbsolutePath(u,An),Ta=Jn(ma).indexOf(Jn(nt))===0;return ma=Ta?ma.substring(nt.length):ma,e.combinePaths(xe,ma)}e.getSourceFilePathInNewDirWorker=ia;function oa(u,xe,An,nt,Jn,ma){u.writeFile(An,nt,Jn,function(Ta){xe.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,An,Ta))},ma)}e.writeFile=oa;function sa(u,xe){return e.getLineAndCharacterOfPosition(u,xe).line}e.getLineOfLocalPosition=sa;function Da(u,xe){return e.computeLineAndCharacterOfPosition(u,xe).line}e.getLineOfLocalPositionFromLineMap=Da;function Ha(u){return e.find(u.members,function(xe){return e.isConstructorDeclaration(xe)&&E(xe.body)})}e.getFirstConstructorWithBody=Ha;function ti(u){if(u&&u.parameters.length>0){var xe=u.parameters.length===2&&Ls(u.parameters[0]);return u.parameters[xe?1:0]}}e.getSetAccessorValueParameter=ti;function Qi(u){var xe=ti(u);return xe&&xe.type}e.getSetAccessorTypeAnnotationNode=Qi;function Za(u){if(u.parameters.length&&!e.isJSDocSignature(u)){var xe=u.parameters[0];if(Ls(xe))return xe}}e.getThisParameter=Za;function Ls(u){return zr(u.name)}e.parameterIsThisKeyword=Ls;function zr(u){return!!u&&u.kind===75&&Zt(u)}e.isThisIdentifier=zr;function Zt(u){return u.originalKeywordKind===103}e.identifierIsThisKeyword=Zt;function Ps(u,xe){var An,nt,Jn,ma;return _l(xe)?(An=xe,xe.kind===162?Jn=xe:xe.kind===163?ma=xe:e.Debug.fail("Accessor has wrong kind")):e.forEach(u,function(Ta){if(e.isAccessor(Ta)&&mo(Ta,32)===mo(xe,32)){var Ra=rl(Ta.name),Jo=rl(xe.name);Ra===Jo&&(An?nt||(nt=Ta):An=Ta,Ta.kind===162&&!Jn&&(Jn=Ta),Ta.kind===163&&!ma&&(ma=Ta))}}),{firstAccessor:An,secondAccessor:nt,getAccessor:Jn,setAccessor:ma}}e.getAllAccessorDeclarations=Ps;function zu(u){var xe=u.type;return xe||!La(u)?xe:e.isJSDocPropertyLikeTag(u)?u.typeExpression&&u.typeExpression.type:e.getJSDocType(u)}e.getEffectiveTypeAnnotationNode=zu;function fd(u){return u.type}e.getTypeAnnotationNode=fd;function Iu(u){return e.isJSDocSignature(u)?u.type&&u.type.typeExpression&&u.type.typeExpression.type:u.type||(La(u)?e.getJSDocReturnType(u):void 0)}e.getEffectiveReturnTypeNode=Iu;function vc(u){return e.flatMap(e.getJSDocTags(u),function(xe){return nc(xe)?xe.typeParameters:void 0})}e.getJSDocTypeParameterDeclarations=vc;function nc(u){return e.isJSDocTemplateTag(u)&&!(u.parent.kind===301&&u.parent.tags.some(Ul))}function cr(u){var xe=ti(u);return xe&&zu(xe)}e.getEffectiveSetAccessorTypeAnnotationNode=cr;function jo(u,xe,An,nt){ya(u,xe,An.pos,nt)}e.emitNewLineBeforeLeadingComments=jo;function ya(u,xe,An,nt){nt&&nt.length&&An!==nt[0].pos&&Da(u,An)!==Da(u,nt[0].pos)&&xe.writeLine()}e.emitNewLineBeforeLeadingCommentsOfPosition=ya;function Io(u,xe,An,nt){An!==nt&&Da(u,An)!==Da(u,nt)&&xe.writeLine()}e.emitNewLineBeforeLeadingCommentOfPosition=Io;function tc(u,xe,An,nt,Jn,ma,Ta,Ra){if(nt&&nt.length>0){Jn&&An.writeSpace(" ");for(var Jo=!1,Pi=0,To=nt;Pi<To.length;Pi++){var Ko=To[Pi];Jo&&(An.writeSpace(" "),Jo=!1),Ra(u,xe,An,Ko.pos,Ko.end,Ta),Ko.hasTrailingNewLine?An.writeLine():Jo=!0}Jo&&ma&&An.writeSpace(" ")}}e.emitComments=tc;function os(u,xe,An,nt,Jn,ma,Ta){var Ra,Jo;if(Ta?Jn.pos===0&&(Ra=e.filter(e.getLeadingCommentRanges(u,Jn.pos),Mu)):Ra=e.getLeadingCommentRanges(u,Jn.pos),Ra){for(var Pi=[],To=void 0,Ko=0,El=Ra;Ko<El.length;Ko++){var Rl=El[Ko];if(To){var wc=Da(xe,To.end),Ac=Da(xe,Rl.pos);if(Ac>=wc+2)break}Pi.push(Rl),To=Rl}if(Pi.length){var wc=Da(xe,e.last(Pi).end),ns=Da(xe,e.skipTrivia(u,Jn.pos));ns>=wc+2&&(jo(xe,An,Jn,Ra),tc(u,xe,An,Pi,!1,!0,ma,nt),Jo={nodePos:Jn.pos,detachedCommentEndPos:e.last(Pi).end})}}return Jo;function Mu(kc){return U(u,kc.pos)}}e.emitDetachedComments=os;function ar(u,xe,An,nt,Jn,ma){if(u.charCodeAt(nt+1)===42)for(var Ta=e.computeLineAndCharacterOfPosition(xe,nt),Ra=xe.length,Jo=void 0,Pi=nt,To=Ta.line;Pi<Jn;To++){var Ko=To+1===Ra?u.length+1:xe[To+1];if(Pi!==nt){Jo===void 0&&(Jo=Go(u,xe[Ta.line],nt));var El=An.getIndent()*Pt(),Rl=El-Jo+Go(u,Pi,Ko);if(Rl>0){var wc=Rl%Pt(),Ac=kt((Rl-wc)/Pt());for(An.rawWrite(Ac);wc;)An.rawWrite(" "),wc--}else An.rawWrite("")}il(u,Jn,An,ma,Pi,Ko),Pi=Ko}else An.writeComment(u.substring(nt,Jn))}e.writeCommentRange=ar;function il(u,xe,An,nt,Jn,ma){var Ta=Math.min(xe,ma-1),Ra=u.substring(Jn,Ta).replace(/^\s+|\s+$/g,"");Ra?(An.writeComment(Ra),Ta!==xe&&An.writeLine()):An.rawWrite(nt)}function Go(u,xe,An){for(var nt=0;xe<An&&e.isWhiteSpaceSingleLine(u.charCodeAt(xe));xe++)u.charCodeAt(xe)===9?nt+=Pt()-nt%Pt():nt++;return nt}function Es(u){return Ts(u)!==0}e.hasModifiers=Es;function mo(u,xe){return!!ts(u,xe)}e.hasModifier=mo;function No(u){return mo(u,32)}e.hasStaticModifier=No;function bc(u){return mo(u,64)}e.hasReadonlyModifier=bc;function ts(u,xe){return Ts(u)&xe}e.getSelectedModifierFlags=ts;function Ts(u){if(u.modifierFlagsCache&536870912)return u.modifierFlagsCache&~536870912;var xe=fu(u);return u.modifierFlagsCache=xe|536870912,xe}e.getModifierFlags=Ts;function fu(u){var xe=0;if(u.modifiers)for(var An=0,nt=u.modifiers;An<nt.length;An++){var Jn=nt[An];xe|=jl(Jn.kind)}return(u.flags&4||u.kind===75&&u.isInJSDocNamespace)&&(xe|=1),xe}e.getModifierFlagsNoCache=fu;function jl(u){switch(u){case 119:return 32;case 118:return 4;case 117:return 16;case 116:return 8;case 121:return 128;case 88:return 1;case 129:return 2;case 80:return 2048;case 83:return 512;case 125:return 256;case 137:return 64}return 0}e.modifierToFlag=jl;function Uc(u){return u===56||u===55||u===53}e.isLogicalOperator=Uc;function Ec(u){return u>=62&&u<=74}e.isAssignmentOperator=Ec;function Tc(u){var xe=Sc(u);return xe&&!xe.isImplements?xe.class:void 0}e.tryGetClassExtendingExpressionWithTypeArguments=Tc;function Sc(u){return e.isExpressionWithTypeArguments(u)&&e.isHeritageClause(u.parent)&&e.isClassLike(u.parent.parent)?{class:u.parent.parent,isImplements:u.parent.token===112}:void 0}e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Sc;function rc(u,xe){return e.isBinaryExpression(u)&&(xe?u.operatorToken.kind===62:Ec(u.operatorToken.kind))&&e.isLeftHandSideExpression(u.left)}e.isAssignmentExpression=rc;function ac(u){if(rc(u,!0)){var xe=u.left.kind;return xe===192||xe===191}return!1}e.isDestructuringAssignment=ac;function vl(u){return Tc(u)!==void 0}e.isExpressionWithTypeArgumentsInClassExtendsClause=vl;function Ys(u){return u.kind===75||Bs(u)}e.isEntityNameExpression=Ys;function Ol(u){switch(u.kind){case 75:return u;case 152:do u=u.left;while(u.kind!==75);return u;case 193:do u=u.expression;while(u.kind!==75);return u}}e.getFirstIdentifier=Ol;function wa(u){return u.kind===75||u.kind===103||u.kind===193&&wa(u.expression)||u.kind===199&&wa(u.expression)}e.isDottedName=wa;function Bs(u){return e.isPropertyAccessExpression(u)&&Ys(u.expression)}e.isPropertyAccessEntityNameExpression=Bs;function qt(u){return e.isPropertyAccessExpression(u)?qt(u.expression)+"."+u.name:e.isIdentifier(u)?e.unescapeLeadingUnderscores(u.escapedText):void 0}e.tryGetPropertyAccessOrIdentifierToString=qt;function bl(u){return kn(u)&&fa(u)==="prototype"}e.isPrototypeAccess=bl;function Co(u){return u.parent.kind===152&&u.parent.right===u||u.parent.kind===193&&u.parent.name===u}e.isRightSideOfQualifiedNameOrPropertyAccess=Co;function pu(u){return u.kind===192&&u.properties.length===0}e.isEmptyObjectLiteral=pu;function ic(u){return u.kind===191&&u.elements.length===0}e.isEmptyArrayLiteral=ic;function Wl(u){return Xu(u)?u.declarations[0].localSymbol:void 0}e.getLocalSymbolForExportDefault=Wl;function Xu(u){return u&&e.length(u.declarations)>0&&mo(u.declarations[0],512)}function zi(u){return e.find(e.supportedTSExtensionsForExtractExtension,function(xe){return e.fileExtensionIs(u,xe)})}e.tryExtractTSExtension=zi;function Hl(u){for(var xe=[],An=u.length,nt=0;nt<An;nt++){var Jn=u.charCodeAt(nt);Jn<128?xe.push(Jn):Jn<2048?(xe.push(Jn>>6|192),xe.push(Jn&63|128)):Jn<65536?(xe.push(Jn>>12|224),xe.push(Jn>>6&63|128),xe.push(Jn&63|128)):Jn<131072?(xe.push(Jn>>18|240),xe.push(Jn>>12&63|128),xe.push(Jn>>6&63|128),xe.push(Jn&63|128)):e.Debug.assert(!1,"Unexpected code point")}return xe}var Pa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function xc(u){for(var xe="",An=Hl(u),nt=0,Jn=An.length,ma,Ta,Ra,Jo;nt<Jn;)ma=An[nt]>>2,Ta=(An[nt]&3)<<4|An[nt+1]>>4,Ra=(An[nt+1]&15)<<2|An[nt+2]>>6,Jo=An[nt+2]&63,nt+1>=Jn?Ra=Jo=64:nt+2>=Jn&&(Jo=64),xe+=Pa.charAt(ma)+Pa.charAt(Ta)+Pa.charAt(Ra)+Pa.charAt(Jo),nt+=3;return xe}e.convertToBase64=xc;function cs(u){for(var xe="",An=0,nt=u.length;An<nt;){var Jn=u[An];if(Jn<128)xe+=String.fromCharCode(Jn),An++;else if((Jn&192)===192){var ma=Jn&63;An++;for(var Ta=u[An];(Ta&192)===128;)ma=ma<<6|Ta&63,An++,Ta=u[An];xe+=String.fromCharCode(ma)}else xe+=String.fromCharCode(Jn),An++}return xe}function Vs(u,xe){return u&&u.base64encode?u.base64encode(xe):xc(xe)}e.base64encode=Vs;function es(u,xe){if(u&&u.base64decode)return u.base64decode(xe);for(var An=xe.length,nt=[],Jn=0;Jn<An&&!(xe.charCodeAt(Jn)===Pa.charCodeAt(64));){var ma=Pa.indexOf(xe[Jn]),Ta=Pa.indexOf(xe[Jn+1]),Ra=Pa.indexOf(xe[Jn+2]),Jo=Pa.indexOf(xe[Jn+3]),Pi=(ma&63)<<2|Ta>>4&3,To=(Ta&15)<<4|Ra>>2&15,Ko=(Ra&3)<<6|Jo&63;To===0&&Ra!==0?nt.push(Pi):Ko===0&&Jo!==0?nt.push(Pi,To):nt.push(Pi,To,Ko),Jn+=4}return cs(nt)}e.base64decode=es;function Yu(u,xe){try{var An=xe.readFile(u);if(!An)return{};var nt=e.parseConfigFileTextToJson(u,An);return nt.error?{}:nt.config}catch(Jn){return{}}}e.readJson=Yu;function Qs(u,xe){return!xe.directoryExists||xe.directoryExists(u)}e.directoryProbablyExists=Qs;var oc=`\r
|
|
|
`,pd=`
|
|
|
`;function Kl(u,xe){switch(u.newLine){case 0:return oc;case 1:return pd}return xe?xe():e.sys?e.sys.newLine:oc}e.getNewLineCharacter=Kl;function sc(u,xe){return xe===void 0&&(xe=u),e.Debug.assert(xe>=u||xe===-1),{pos:u,end:xe}}e.createRange=sc;function Qu(u,xe){return sc(u.pos,xe)}e.moveRangeEnd=Qu;function Zo(u,xe){return sc(xe,u.end)}e.moveRangePos=Zo;function md(u){return u.decorators&&u.decorators.length>0?Zo(u,u.decorators.end):u}e.moveRangePastDecorators=md;function Bi(u){return u.modifiers&&u.modifiers.length>0?Zo(u,u.modifiers.end):md(u)}e.moveRangePastModifiers=Bi;function Nu(u){return u.pos===u.end}e.isCollapsedRange=Nu;function Zu(u,xe){return sc(u,u+e.tokenToString(xe).length)}e.createTokenRange=Zu;function jc(u,xe){return Hc(u,u,xe)}e.rangeIsOnSingleLine=jc;function Wc(u,xe,An){return Ml(ql(u,An),ql(xe,An),An)}e.rangeStartPositionsAreOnSameLine=Wc;function mu(u,xe,An){return Ml(u.end,xe.end,An)}e.rangeEndPositionsAreOnSameLine=mu;function Hc(u,xe,An){return Ml(ql(u,An),xe.end,An)}e.rangeStartIsOnSameLineAsRangeEnd=Hc;function $u(u,xe,An){return Ml(u.end,ql(xe,An),An)}e.rangeEndIsOnSameLineAsRangeStart=$u;function Pl(u,xe){return!Ml(u.pos,u.end,xe)}e.isNodeArrayMultiLine=Pl;function Ml(u,xe,An){return u===xe||sa(An,u)===sa(An,xe)}e.positionsAreOnSameLine=Ml;function ql(u,xe){return e.positionIsSynthesized(u.pos)?-1:e.skipTrivia(xe.text,u.pos)}e.getStartPositionOfRange=ql;function lc(u){var xe=e.getParseTreeNode(u);if(xe)switch(xe.parent.kind){case 247:case 248:return xe===xe.parent.name}return!1}e.isDeclarationNameOfEnumOrNamespace=lc;function Ou(u){return e.filter(u.declarations,ol)}e.getInitializedVariables=Ou;function ol(u){return u.initializer!==void 0}function ed(u){return u.watch&&u.hasOwnProperty("watch")}e.isWatchSet=ed;function nd(u){u.close()}e.closeFileWatcher=nd;function hu(u){return u.flags&33554432?u.checkFlags:0}e.getCheckFlags=hu;function hd(u){if(u.valueDeclaration){var xe=e.getCombinedModifierFlags(u.valueDeclaration);return u.parent&&u.parent.flags&32?xe:xe&~28}if(hu(u)&6){var An=u.checkFlags,nt=An&1024?8:An&256?4:16,Jn=An&2048?32:0;return nt|Jn}return u.flags&4194304?4|32:0}e.getDeclarationModifierFlagsFromSymbol=hd;function Pd(u,xe){return u.flags&2097152?xe.getAliasedSymbol(u):u}e.skipAlias=Pd;function Md(u){return u.exportSymbol?u.exportSymbol.flags|u.flags:u.flags}e.getCombinedLocalAndExportSymbolFlags=Md;function cc(u){return g(u)===1}e.isWriteOnlyAccess=cc;function Rd(u){return g(u)!==0}e.isWriteAccess=Rd;var Pu;(function(u){u[u.Read=0]="Read",u[u.Write=1]="Write",u[u.ReadWrite=2]="ReadWrite"})(Pu||(Pu={}));function g(u){var xe=u.parent;if(!xe)return 0;switch(xe.kind){case 199:return g(xe);case 207:case 206:var An=xe.operator;return An===45||An===46?Ra():0;case 208:var nt=xe,Jn=nt.left,ma=nt.operatorToken;return Jn===u&&Ec(ma.kind)?ma.kind===62?1:Ra():0;case 193:return xe.name!==u?0:g(xe);case 279:{var Ta=g(xe.parent);return u===xe.name?re(Ta):Ta}case 280:return u===xe.objectAssignmentInitializer?0:g(xe.parent);case 191:return g(xe);default:return 0}function Ra(){return xe.parent&&Ma(xe.parent).kind===225?1:2}}function re(u){switch(u){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(u)}}function Ve(u,xe){if(!u||!xe||Object.keys(u).length!==Object.keys(xe).length)return!1;for(var An in u)if(typeof u[An]=="object"){if(!Ve(u[An],xe[An]))return!1}else if(typeof u[An]!="function"&&u[An]!==xe[An])return!1;return!0}e.compareDataObjects=Ve;function Dn(u,xe){u.forEach(xe),u.clear()}e.clearMap=Dn;function rt(u,xe,An){var nt=An.onDeleteValue,Jn=An.onExistingValue;u.forEach(function(ma,Ta){var Ra=xe.get(Ta);Ra===void 0?(u.delete(Ta),nt(ma,Ta)):Jn&&Jn(ma,Ra,Ta)})}e.mutateMapSkippingNewValues=rt;function p(u,xe,An){rt(u,xe,An);var nt=An.createNewValue;xe.forEach(function(Jn,ma){u.has(ma)||u.set(ma,nt(ma,Jn))})}e.mutateMap=p;function Ue(u){return!!(Sr(u)&16)&&!!u.symbol&&Nn(u.symbol)}e.isAbstractConstructorType=Ue;function Nn(u){if(u.flags&32){var xe=vt(u);return!!xe&&mo(xe,128)}return!1}e.isAbstractConstructorSymbol=Nn;function vt(u){return e.find(u.declarations,e.isClassLike)}e.getClassLikeDeclarationOfSymbol=vt;function Sr(u){return u.flags&3899392?u.objectFlags:0}e.getObjectFlags=Sr;function Zr(u,xe){return xe.getSignaturesOfType(u,0).length!==0||xe.getSignaturesOfType(u,1).length!==0}e.typeHasCallOrConstructSignatures=Zr;function aa(u,xe){return!!e.forEachAncestorDirectory(u,function(An){return xe(An)?!0:void 0})}e.forSomeAncestorDirectory=aa;function fi(u){return!!u&&!!u.declarations&&!!u.declarations[0]&&e.isNamespaceExportDeclaration(u.declarations[0])}e.isUMDExportSymbol=fi;function W(u){var xe=u.moduleSpecifier;return e.isStringLiteral(xe)?xe.text:He(xe)}e.showModuleSpecifier=W;function fn(u){var xe;return e.forEachChild(u,function(An){E(An)&&(xe=An)},function(An){for(var nt=An.length-1;nt>=0;nt--)if(E(An[nt])){xe=An[nt];break}}),xe}e.getLastChild=fn;function Un(u,xe,An){return An===void 0&&(An=!0),xe=String(xe),u.has(xe)?!1:(u.set(xe,An),!0)}e.addToSeen=Un;function Et(u){return e.isClassLike(u)||e.isInterfaceDeclaration(u)||e.isTypeLiteralNode(u)}e.isObjectTypeDeclaration=Et;function pr(u){return u>=167&&u<=187||u===124||u===147||u===139||u===150||u===140||u===127||u===142||u===143||u===103||u===109||u===145||u===99||u===136||u===215||u===293||u===294||u===295||u===296||u===297||u===298||u===299}e.isTypeNodeKind=pr;function Xr(u){return u.kind===193||u.kind===194}e.isAccessExpression=Xr;function ei(u){switch(u.kind){case"text":case"internal":return!0;default:return!1}}e.isBundleFileTextLike=ei;function ps(u){return u.questionDotToken||e.createNode(24,u.expression.end,u.name.pos)}e.getDotOrQuestionDotToken=ps}(sn||(sn={})),function(e){function o(ae){switch(ae.target){case 99:return"lib.esnext.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=o;function M(ae){return ae.start+ae.length}e.textSpanEnd=M;function qe(ae){return ae.length===0}e.textSpanIsEmpty=qe;function Ee(ae,fe){return fe>=ae.start&&fe<M(ae)}e.textSpanContainsPosition=Ee;function Ge(ae,fe){return fe>=ae.pos&&fe<=ae.end}e.textRangeContainsPositionInclusive=Ge;function Be(ae,fe){return fe.start>=ae.start&&M(fe)<=M(ae)}e.textSpanContainsTextSpan=Be;function he(ae,fe){return ee(ae,fe)!==void 0}e.textSpanOverlapsWith=he;function ee(ae,fe){var Le=Te(ae,fe);return Le&&Le.length===0?void 0:Le}e.textSpanOverlap=ee;function f(ae,fe){return Oe(ae.start,ae.length,fe.start,fe.length)}e.textSpanIntersectsWithTextSpan=f;function J(ae,fe,Le){return Oe(ae.start,ae.length,fe,Le)}e.textSpanIntersectsWith=J;function Oe(ae,fe,Le,Je){var $e=ae+fe,Fe=Le+Je;return Le<=$e&&Fe>=ae}e.decodedTextSpanIntersectsWith=Oe;function N(ae,fe){return fe<=M(ae)&&fe>=ae.start}e.textSpanIntersectsWithPosition=N;function Te(ae,fe){var Le=Math.max(ae.start,fe.start),Je=Math.min(M(ae),M(fe));return Le<=Je?ce(Le,Je):void 0}e.textSpanIntersection=Te;function ie(ae,fe){if(ae<0)throw new Error("start < 0");if(fe<0)throw new Error("length < 0");return{start:ae,length:fe}}e.createTextSpan=ie;function ce(ae,fe){return ie(ae,fe-ae)}e.createTextSpanFromBounds=ce;function x(ae){return ie(ae.span.start,ae.newLength)}e.textChangeRangeNewSpan=x;function C(ae){return qe(ae.span)&&ae.newLength===0}e.textChangeRangeIsUnchanged=C;function P(ae,fe){if(fe<0)throw new Error("newLength < 0");return{span:ae,newLength:fe}}e.createTextChangeRange=P,e.unchangedTextChangeRange=P(ie(0,0),0);function h(ae){if(ae.length===0)return e.unchangedTextChangeRange;if(ae.length===1)return ae[0];for(var fe=ae[0],Le=fe.span.start,Je=M(fe.span),$e=Le+fe.newLength,Fe=1;Fe<ae.length;Fe++){var cn=ae[Fe],Qe=Le,ln=Je,ye=$e,ke=cn.span.start,F=M(cn.span),c=ke+cn.newLength;Le=Math.min(Qe,ke),Je=Math.max(ln,ln+(F-ye)),$e=Math.max(c,c+(ye-F))}return P(ce(Le,Je),$e-Le)}e.collapseTextChangeRangesAcrossMultipleVersions=h;function X(ae){if(ae&&ae.kind===154){for(var fe=ae;fe;fe=fe.parent)if(e.isFunctionLike(fe)||e.isClassLike(fe)||fe.kind===245)return fe}}e.getTypeParameterOwner=X;function $(ae,fe){return e.hasModifier(ae,92)&&fe.kind===161}e.isParameterPropertyDeclaration=$;function Q(ae){return e.isBindingPattern(ae)?e.every(ae.elements,z):!1}e.isEmptyBindingPattern=Q;function z(ae){return e.isOmittedExpression(ae)?!0:Q(ae.name)}e.isEmptyBindingElement=z;function se(ae){for(var fe=ae.parent;e.isBindingElement(fe.parent);)fe=fe.parent.parent;return fe.parent}e.walkUpBindingElementsAndPatterns=se;function G(ae,fe){e.isBindingElement(ae)&&(ae=se(ae));var Le=fe(ae);return ae.kind===241&&(ae=ae.parent),ae&&ae.kind===242&&(Le|=fe(ae),ae=ae.parent),ae&&ae.kind===224&&(Le|=fe(ae)),Le}function H(ae){return G(ae,e.getModifierFlags)}e.getCombinedModifierFlags=H;function q(ae){return G(ae,function(fe){return fe.flags})}e.getCombinedNodeFlags=q;function be(ae,fe,Le){var Je=/^([a-z]+)([_\-]([a-z]+))?$/.exec(ae.toLowerCase());if(!Je){Le&&Le.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}var $e=Je[1],Fe=Je[3];cn($e,Fe,Le)||cn($e,void 0,Le),e.setUILocale(ae);function cn(Qe,ln,ye){var ke=e.normalizePath(fe.getExecutingFilePath()),F=e.getDirectoryPath(ke),c=e.combinePaths(F,Qe);if(ln&&(c=c+"-"+ln),c=fe.resolvePath(e.combinePaths(c,"diagnosticMessages.generated.json")),!fe.fileExists(c))return!1;var L="";try{L=fe.readFile(c)}catch(te){return ye&&ye.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,c)),!1}try{e.localizedDiagnosticMessages=JSON.parse(L)}catch(te){return ye&&ye.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,c)),!1}return!0}}e.validateLocaleAndSetLanguage=be;function R(ae,fe){if(ae)for(;ae.original!==void 0;)ae=ae.original;return!fe||fe(ae)?ae:void 0}e.getOriginalNode=R;function K(ae){return(ae.flags&8)===0}e.isParseTreeNode=K;function m(ae,fe){return ae===void 0||K(ae)?ae:(ae=R(ae),K(ae)&&(!fe||fe(ae))?ae:void 0)}e.getParseTreeNode=m;function _(ae){return ae.length>=2&&ae.charCodeAt(0)===95&&ae.charCodeAt(1)===95?"_"+ae:ae}e.escapeLeadingUnderscores=_;function I(ae){var fe=ae;return fe.length>=3&&fe.charCodeAt(0)===95&&fe.charCodeAt(1)===95&&fe.charCodeAt(2)===95?fe.substr(1):fe}e.unescapeLeadingUnderscores=I;function D(ae){return I(ae.escapedText)}e.idText=D;function y(ae){return I(ae.escapedName)}e.symbolName=y;function E(ae){var fe=ae.parent.parent;if(!fe)return;if(e.isDeclaration(fe))return k(fe);switch(fe.kind){case 224:if(fe.declarationList&&fe.declarationList.declarations[0])return k(fe.declarationList.declarations[0]);break;case 225:var Le=fe.expression;Le.kind===208&&Le.operatorToken.kind===62&&(Le=Le.left);switch(Le.kind){case 193:return Le.name;case 194:var Je=Le.argumentExpression;if(e.isIdentifier(Je))return Je}break;case 199:return k(fe.expression);case 237:{if(e.isDeclaration(fe.statement)||e.isExpression(fe.statement))return k(fe.statement);break}}}function k(ae){var fe=pe(ae);return fe&&e.isIdentifier(fe)?fe:void 0}function T(ae,fe){return O(ae)&&e.isIdentifier(ae.name)&&D(ae.name)===D(fe)?!0:!!(e.isVariableStatement(ae)&&e.some(ae.declarationList.declarations,function(Le){return T(Le,fe)}))}e.nodeHasName=T;function ne(ae){return ae.name||E(ae)}e.getNameOfJSDocTypedef=ne;function O(ae){return!!ae.name}e.isNamedDeclaration=O;function Y(ae){switch(ae.kind){case 75:return ae;case 316:case 310:{var fe=ae.name;if(fe.kind===152)return fe.right;break}case 195:case 208:{var Le=ae;switch(e.getAssignmentDeclarationKind(Le)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(Le.left);case 7:case 8:case 9:return Le.arguments[1];default:return}}case 315:return ne(ae);case 309:return E(ae);case 258:{var Je=ae.expression;return e.isIdentifier(Je)?Je:void 0}case 194:var $e=ae;if(e.isBindableStaticElementAccessExpression($e))return $e.argumentExpression}return ae.name}e.getNonAssignedNameOfDeclaration=Y;function pe(ae){return ae===void 0?void 0:Y(ae)||(e.isFunctionExpression(ae)||e.isClassExpression(ae)?S(ae):void 0)}e.getNameOfDeclaration=pe;function S(ae){if(ae.parent){if(e.isPropertyAssignment(ae.parent)||e.isBindingElement(ae.parent))return ae.parent.name;if(e.isBinaryExpression(ae.parent)&&ae===ae.parent.right){if(e.isIdentifier(ae.parent.left))return ae.parent.left;if(e.isAccessExpression(ae.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(ae.parent.left)}else if(e.isVariableDeclaration(ae.parent)&&e.isIdentifier(ae.parent.name))return ae.parent.name}else return}function v(ae){if(ae.name)if(e.isIdentifier(ae.name)){var fe=ae.name.escapedText;return Pe(ae.parent).filter(function($e){return e.isJSDocParameterTag($e)&&e.isIdentifier($e.name)&&$e.name.escapedText===fe})}else{var Le=ae.parent.parameters.indexOf(ae);e.Debug.assert(Le>-1,"Parameters should always be in their parents' parameter list");var Je=Pe(ae.parent).filter(e.isJSDocParameterTag);if(Le<Je.length)return[Je[Le]]}return e.emptyArray}e.getJSDocParameterTags=v;function U(ae){var fe=ae.name.escapedText;return Pe(ae.parent).filter(function(Le){return e.isJSDocTemplateTag(Le)&&Le.typeParameters.some(function(Je){return Je.name.escapedText===fe})})}e.getJSDocTypeParameterTags=U;function ue(ae){return!!a(ae,e.isJSDocParameterTag)}e.hasJSDocParameterTags=ue;function De(ae){return a(ae,e.isJSDocAugmentsTag)}e.getJSDocAugmentsTag=De;function Z(ae){return a(ae,e.isJSDocClassTag)}e.getJSDocClassTag=Z;function Re(ae){return a(ae,e.isJSDocEnumTag)}e.getJSDocEnumTag=Re;function we(ae){return a(ae,e.isJSDocThisTag)}e.getJSDocThisTag=we;function He(ae){return a(ae,e.isJSDocReturnTag)}e.getJSDocReturnTag=He;function ve(ae){return a(ae,e.isJSDocTemplateTag)}e.getJSDocTemplateTag=ve;function je(ae){var fe=a(ae,e.isJSDocTypeTag);return fe&&fe.typeExpression&&fe.typeExpression.type?fe:void 0}e.getJSDocTypeTag=je;function w(ae){var fe=a(ae,e.isJSDocTypeTag);return!fe&&e.isParameter(ae)&&(fe=e.find(v(ae),function(Le){return!!Le.typeExpression})),fe&&fe.typeExpression&&fe.typeExpression.type}e.getJSDocType=w;function j(ae){var fe=He(ae);if(fe&&fe.typeExpression)return fe.typeExpression.type;var Le=je(ae);if(Le&&Le.typeExpression){var Je=Le.typeExpression.type;if(e.isTypeLiteralNode(Je)){var $e=e.find(Je.members,e.isCallSignatureDeclaration);return $e&&$e.type}if(e.isFunctionTypeNode(Je))return Je.type}}e.getJSDocReturnType=j;function Pe(ae){var fe=ae.jsDocCache;if(fe===void 0){var Le=e.getJSDocCommentsAndTags(ae);e.Debug.assert(Le.length<2||Le[0]!==Le[1]),ae.jsDocCache=fe=e.flatMap(Le,function(Je){return e.isJSDoc(Je)?Je.tags:Je})}return fe}e.getJSDocTags=Pe;function a(ae,fe){return e.find(Pe(ae),fe)}function Ze(ae,fe){return Pe(ae).filter(function(Le){return Le.kind===fe})}e.getAllJSDocTagsOfKind=Ze;function In(ae){if(e.isJSDocSignature(ae))return e.emptyArray;if(e.isJSDocTypeAlias(ae))return e.Debug.assert(ae.parent.kind===301),e.flatMap(ae.parent.tags,function(Je){return e.isJSDocTemplateTag(Je)?Je.typeParameters:void 0});if(ae.typeParameters)return ae.typeParameters;if(e.isInJSFile(ae)){var fe=e.getJSDocTypeParameterDeclarations(ae);if(fe.length)return fe;var Le=w(ae);if(Le&&e.isFunctionTypeNode(Le)&&Le.typeParameters)return Le.typeParameters}return e.emptyArray}e.getEffectiveTypeParameterDeclarations=In;function et(ae){return ae.constraint?ae.constraint:e.isJSDocTemplateTag(ae.parent)&&ae===ae.parent.typeParameters[0]?ae.parent.constraint:void 0}e.getEffectiveConstraintOfTypeParameter=et}(sn||(sn={})),function(e){function o(on){return on.kind===8}e.isNumericLiteral=o;function M(on){return on.kind===9}e.isBigIntLiteral=M;function qe(on){return on.kind===10}e.isStringLiteral=qe;function Ee(on){return on.kind===11}e.isJsxText=Ee;function Ge(on){return on.kind===13}e.isRegularExpressionLiteral=Ge;function Be(on){return on.kind===14}e.isNoSubstitutionTemplateLiteral=Be;function he(on){return on.kind===15}e.isTemplateHead=he;function ee(on){return on.kind===16}e.isTemplateMiddle=ee;function f(on){return on.kind===17}e.isTemplateTail=f;function J(on){return on.kind===75}e.isIdentifier=J;function Oe(on){return on.kind===152}e.isQualifiedName=Oe;function N(on){return on.kind===153}e.isComputedPropertyName=N;function Te(on){return on.kind===154}e.isTypeParameterDeclaration=Te;function ie(on){return on.kind===155}e.isParameter=ie;function ce(on){return on.kind===156}e.isDecorator=ce;function x(on){return on.kind===157}e.isPropertySignature=x;function C(on){return on.kind===158}e.isPropertyDeclaration=C;function P(on){return on.kind===159}e.isMethodSignature=P;function h(on){return on.kind===160}e.isMethodDeclaration=h;function X(on){return on.kind===161}e.isConstructorDeclaration=X;function $(on){return on.kind===162}e.isGetAccessorDeclaration=$;function Q(on){return on.kind===163}e.isSetAccessorDeclaration=Q;function z(on){return on.kind===164}e.isCallSignatureDeclaration=z;function se(on){return on.kind===165}e.isConstructSignatureDeclaration=se;function G(on){return on.kind===166}e.isIndexSignatureDeclaration=G;function H(on){return on.kind===163||on.kind===162}e.isGetOrSetAccessorDeclaration=H;function q(on){return on.kind===167}e.isTypePredicateNode=q;function be(on){return on.kind===168}e.isTypeReferenceNode=be;function R(on){return on.kind===169}e.isFunctionTypeNode=R;function K(on){return on.kind===170}e.isConstructorTypeNode=K;function m(on){return on.kind===171}e.isTypeQueryNode=m;function _(on){return on.kind===172}e.isTypeLiteralNode=_;function I(on){return on.kind===173}e.isArrayTypeNode=I;function D(on){return on.kind===174}e.isTupleTypeNode=D;function y(on){return on.kind===177}e.isUnionTypeNode=y;function E(on){return on.kind===178}e.isIntersectionTypeNode=E;function k(on){return on.kind===179}e.isConditionalTypeNode=k;function T(on){return on.kind===180}e.isInferTypeNode=T;function ne(on){return on.kind===181}e.isParenthesizedTypeNode=ne;function O(on){return on.kind===182}e.isThisTypeNode=O;function Y(on){return on.kind===183}e.isTypeOperatorNode=Y;function pe(on){return on.kind===184}e.isIndexedAccessTypeNode=pe;function S(on){return on.kind===185}e.isMappedTypeNode=S;function v(on){return on.kind===186}e.isLiteralTypeNode=v;function U(on){return on.kind===187}e.isImportTypeNode=U;function ue(on){return on.kind===188}e.isObjectBindingPattern=ue;function De(on){return on.kind===189}e.isArrayBindingPattern=De;function Z(on){return on.kind===190}e.isBindingElement=Z;function Re(on){return on.kind===191}e.isArrayLiteralExpression=Re;function we(on){return on.kind===192}e.isObjectLiteralExpression=we;function He(on){return on.kind===193}e.isPropertyAccessExpression=He;function ve(on){return He(on)&&!!(on.flags&32)}e.isPropertyAccessChain=ve;function je(on){return on.kind===194}e.isElementAccessExpression=je;function w(on){return je(on)&&!!(on.flags&32)}e.isElementAccessChain=w;function j(on){return on.kind===195}e.isCallExpression=j;function Pe(on){return j(on)&&!!(on.flags&32)}e.isCallChain=Pe;function a(on){var kr=on.kind;return!!(on.flags&32)&&(kr===193||kr===194||kr===195)}e.isOptionalChain=a;function Ze(on){return a(on)&&!!on.questionDotToken}e.isOptionalChainRoot=Ze;function In(on){return Ze(on.parent)&&on.parent.expression===on}e.isExpressionOfOptionalChainRoot=In;function et(on){return!a(on.parent)||Ze(on.parent)||on!==on.parent.expression}e.isOutermostOptionalChain=et;function ae(on){return on.kind===208&&on.operatorToken.kind===60}e.isNullishCoalesce=ae;function fe(on){return on.kind===196}e.isNewExpression=fe;function Le(on){return on.kind===197}e.isTaggedTemplateExpression=Le;function Je(on){return on.kind===198}e.isTypeAssertion=Je;function $e(on){return be(on)&&J(on.typeName)&&on.typeName.escapedText==="const"&&!on.typeArguments}e.isConstTypeReference=$e;function Fe(on){return on.kind===199}e.isParenthesizedExpression=Fe;function cn(on){for(;on.kind===319;)on=on.expression;return on}e.skipPartiallyEmittedExpressions=cn;function Qe(on){return on.kind===200}e.isFunctionExpression=Qe;function ln(on){return on.kind===201}e.isArrowFunction=ln;function ye(on){return on.kind===202}e.isDeleteExpression=ye;function ke(on){return on.kind===203}e.isTypeOfExpression=ke;function F(on){return on.kind===204}e.isVoidExpression=F;function c(on){return on.kind===205}e.isAwaitExpression=c;function L(on){return on.kind===206}e.isPrefixUnaryExpression=L;function te(on){return on.kind===207}e.isPostfixUnaryExpression=te;function Se(on){return on.kind===208}e.isBinaryExpression=Se;function Ne(on){return on.kind===209}e.isConditionalExpression=Ne;function ze(on){return on.kind===210}e.isTemplateExpression=ze;function Tn(on){return on.kind===211}e.isYieldExpression=Tn;function wn(on){return on.kind===212}e.isSpreadElement=wn;function jn(on){return on.kind===213}e.isClassExpression=jn;function nn(on){return on.kind===214}e.isOmittedExpression=nn;function pn(on){return on.kind===215}e.isExpressionWithTypeArguments=pn;function le(on){return on.kind===216}e.isAsExpression=le;function oe(on){return on.kind===217}e.isNonNullExpression=oe;function Cn(on){return on.kind===218}e.isMetaProperty=Cn;function yn(on){return on.kind===220}e.isTemplateSpan=yn;function _e(on){return on.kind===221}e.isSemicolonClassElement=_e;function dn(on){return on.kind===222}e.isBlock=dn;function un(on){return on.kind===224}e.isVariableStatement=un;function Rn(on){return on.kind===223}e.isEmptyStatement=Rn;function at(on){return on.kind===225}e.isExpressionStatement=at;function Bn(on){return on.kind===226}e.isIfStatement=Bn;function ut(on){return on.kind===227}e.isDoStatement=ut;function ct(on){return on.kind===228}e.isWhileStatement=ct;function ot(on){return on.kind===229}e.isForStatement=ot;function dt(on){return on.kind===230}e.isForInStatement=dt;function Ct(on){return on.kind===231}e.isForOfStatement=Ct;function st(on){return on.kind===232}e.isContinueStatement=st;function Kn(on){return on.kind===233}e.isBreakStatement=Kn;function Ie(on){return on.kind===233||on.kind===232}e.isBreakOrContinueStatement=Ie;function Ce(on){return on.kind===234}e.isReturnStatement=Ce;function _n(on){return on.kind===235}e.isWithStatement=_n;function yt(on){return on.kind===236}e.isSwitchStatement=yt;function Dt(on){return on.kind===237}e.isLabeledStatement=Dt;function Ht(on){return on.kind===238}e.isThrowStatement=Ht;function $t(on){return on.kind===239}e.isTryStatement=$t;function wr(on){return on.kind===240}e.isDebuggerStatement=wr;function Yr(on){return on.kind===241}e.isVariableDeclaration=Yr;function Hr(on){return on.kind===242}e.isVariableDeclarationList=Hr;function mt(on){return on.kind===243}e.isFunctionDeclaration=mt;function va(on){return on.kind===244}e.isClassDeclaration=va;function Lt(on){return on.kind===245}e.isInterfaceDeclaration=Lt;function Wn(on){return on.kind===246}e.isTypeAliasDeclaration=Wn;function Vt(on){return on.kind===247}e.isEnumDeclaration=Vt;function pt(on){return on.kind===248}e.isModuleDeclaration=pt;function Tt(on){return on.kind===249}e.isModuleBlock=Tt;function ht(on){return on.kind===250}e.isCaseBlock=ht;function bt(on){return on.kind===251}e.isNamespaceExportDeclaration=bt;function Ke(on){return on.kind===252}e.isImportEqualsDeclaration=Ke;function Pn(on){return on.kind===253}e.isImportDeclaration=Pn;function $n(on){return on.kind===254}e.isImportClause=$n;function rr(on){return on.kind===255}e.isNamespaceImport=rr;function xa(on){return on.kind===256}e.isNamedImports=xa;function Fa(on){return on.kind===257}e.isImportSpecifier=Fa;function ri(on){return on.kind===258}e.isExportAssignment=ri;function Si(on){return on.kind===259}e.isExportDeclaration=Si;function xi(on){return on.kind===260}e.isNamedExports=xi;function vi(on){return on.kind===261}e.isExportSpecifier=vi;function Oi(on){return on.kind===262}e.isMissingDeclaration=Oi;function Ja(on){return on.kind===263}e.isExternalModuleReference=Ja;function Ka(on){return on.kind===264}e.isJsxElement=Ka;function ua(on){return on.kind===265}e.isJsxSelfClosingElement=ua;function bi(on){return on.kind===266}e.isJsxOpeningElement=bi;function Vo(on){return on.kind===267}e.isJsxClosingElement=Vo;function wo(on){return on.kind===268}e.isJsxFragment=wo;function Mo(on){return on.kind===269}e.isJsxOpeningFragment=Mo;function uo(on){return on.kind===270}e.isJsxClosingFragment=uo;function ci(on){return on.kind===271}e.isJsxAttribute=ci;function Gi(on){return on.kind===272}e.isJsxAttributes=Gi;function ji(on){return on.kind===273}e.isJsxSpreadAttribute=ji;function Ro(on){return on.kind===274}e.isJsxExpression=Ro;function Ao(on){return on.kind===275}e.isCaseClause=Ao;function _o(on){return on.kind===276}e.isDefaultClause=_o;function Ri(on){return on.kind===277}e.isHeritageClause=Ri;function xt(on){return on.kind===278}e.isCatchClause=xt;function Kt(on){return on.kind===279}e.isPropertyAssignment=Kt;function yr(on){return on.kind===280}e.isShorthandPropertyAssignment=yr;function Jr(on){return on.kind===281}e.isSpreadAssignment=Jr;function _a(on){return on.kind===282}e.isEnumMember=_a;function La(on){return on.kind===288}e.isSourceFile=La;function qr(on){return on.kind===289}e.isBundle=qr;function pi(on){return on.kind===290}e.isUnparsedSource=pi;function Li(on){return on.kind===284}e.isUnparsedPrepend=Li;function mi(on){switch(on.kind){case 285:case 286:return!0;default:return!1}}e.isUnparsedTextLike=mi;function da(on){return mi(on)||on.kind===283||on.kind===287}e.isUnparsedNode=da;function en(on){return on.kind===292}e.isJSDocTypeExpression=en;function vn(on){return on.kind===293}e.isJSDocAllType=vn;function Ln(on){return on.kind===294}e.isJSDocUnknownType=Ln;function Vn(on){return on.kind===295}e.isJSDocNullableType=Vn;function Mt(on){return on.kind===296}e.isJSDocNonNullableType=Mt;function tr(on){return on.kind===297}e.isJSDocOptionalType=tr;function dr(on){return on.kind===298}e.isJSDocFunctionType=dr;function Pr(on){return on.kind===299}e.isJSDocVariadicType=Pr;function za(on){return on.kind===301}e.isJSDoc=za;function Ia(on){return on.kind===306}e.isJSDocAuthorTag=Ia;function Ii(on){return on.kind===305}e.isJSDocAugmentsTag=Ii;function ai(on){return on.kind===307}e.isJSDocClassTag=ai;function hi(on){return on.kind===309}e.isJSDocEnumTag=hi;function Xe(on){return on.kind===312}e.isJSDocThisTag=Xe;function qn(on){return on.kind===310}e.isJSDocParameterTag=qn;function ge(on){return on.kind===311}e.isJSDocReturnTag=ge;function hn(on){return on.kind===313}e.isJSDocTypeTag=hn;function Hn(on){return on.kind===314}e.isJSDocTemplateTag=Hn;function de(on){return on.kind===315}e.isJSDocTypedefTag=de;function rn(on){return on.kind===316}e.isJSDocPropertyTag=rn;function kn(on){return on.kind===316||on.kind===310}e.isJSDocPropertyLikeTag=kn;function Qn(on){return on.kind===302}e.isJSDocTypeLiteral=Qn;function lt(on){return on.kind===308}e.isJSDocCallbackTag=lt;function Ft(on){return on.kind===303}e.isJSDocSignature=Ft}(sn||(sn={})),function(e){function o(Ce){return Ce.kind===317}e.isSyntaxList=o;function M(Ce){return qe(Ce.kind)}e.isNode=M;function qe(Ce){return Ce>=152}e.isNodeKind=qe;function Ee(Ce){return Ce.kind>=0&&Ce.kind<=151}e.isToken=Ee;function Ge(Ce){return Ce.hasOwnProperty("pos")&&Ce.hasOwnProperty("end")}e.isNodeArray=Ge;function Be(Ce){return 8<=Ce&&Ce<=14}e.isLiteralKind=Be;function he(Ce){return Be(Ce.kind)}e.isLiteralExpression=he;function ee(Ce){return 14<=Ce&&Ce<=17}e.isTemplateLiteralKind=ee;function f(Ce){return ee(Ce.kind)}e.isTemplateLiteralToken=f;function J(Ce){var _n=Ce.kind;return _n===16||_n===17}e.isTemplateMiddleOrTemplateTail=J;function Oe(Ce){return e.isImportSpecifier(Ce)||e.isExportSpecifier(Ce)}e.isImportOrExportSpecifier=Oe;function N(Ce){return Ce.kind===10||ee(Ce.kind)}e.isStringTextContainingNode=N;function Te(Ce){return e.isIdentifier(Ce)&&(Ce.autoGenerateFlags&7)>0}e.isGeneratedIdentifier=Te;function ie(Ce){switch(Ce){case 121:case 125:case 80:case 129:case 83:case 88:case 118:case 116:case 117:case 137:case 119:return!0}return!1}e.isModifierKind=ie;function ce(Ce){return!!(e.modifierToFlag(Ce)&92)}e.isParameterPropertyModifier=ce;function x(Ce){return ce(Ce)||Ce===119}e.isClassMemberModifier=x;function C(Ce){return ie(Ce.kind)}e.isModifier=C;function P(Ce){var _n=Ce.kind;return _n===152||_n===75}e.isEntityName=P;function h(Ce){var _n=Ce.kind;return _n===75||_n===10||_n===8||_n===153}e.isPropertyName=h;function X(Ce){var _n=Ce.kind;return _n===75||_n===188||_n===189}e.isBindingName=X;function $(Ce){return Ce&&se(Ce.kind)}e.isFunctionLike=$;function Q(Ce){return Ce&&z(Ce.kind)}e.isFunctionLikeDeclaration=Q;function z(Ce){switch(Ce){case 243:case 160:case 161:case 162:case 163:case 200:case 201:return!0;default:return!1}}function se(Ce){switch(Ce){case 159:case 164:case 303:case 165:case 166:case 169:case 298:case 170:return!0;default:return z(Ce)}}e.isFunctionLikeKind=se;function G(Ce){return e.isSourceFile(Ce)||e.isModuleBlock(Ce)||e.isBlock(Ce)&&$(Ce.parent)}e.isFunctionOrModuleBlock=G;function H(Ce){var _n=Ce.kind;return _n===161||_n===158||_n===160||_n===162||_n===163||_n===166||_n===221}e.isClassElement=H;function q(Ce){return Ce&&(Ce.kind===244||Ce.kind===213)}e.isClassLike=q;function be(Ce){return Ce&&(Ce.kind===162||Ce.kind===163)}e.isAccessor=be;function R(Ce){switch(Ce.kind){case 160:case 162:case 163:return!0;default:return!1}}e.isMethodOrAccessor=R;function K(Ce){var _n=Ce.kind;return _n===165||_n===164||_n===157||_n===159||_n===166}e.isTypeElement=K;function m(Ce){return K(Ce)||H(Ce)}e.isClassOrTypeElement=m;function _(Ce){var _n=Ce.kind;return _n===279||_n===280||_n===281||_n===160||_n===162||_n===163}e.isObjectLiteralElementLike=_;function I(Ce){return e.isTypeNodeKind(Ce.kind)}e.isTypeNode=I;function D(Ce){switch(Ce.kind){case 169:case 170:return!0}return!1}e.isFunctionOrConstructorTypeNode=D;function y(Ce){if(Ce){var _n=Ce.kind;return _n===189||_n===188}return!1}e.isBindingPattern=y;function E(Ce){var _n=Ce.kind;return _n===191||_n===192}e.isAssignmentPattern=E;function k(Ce){var _n=Ce.kind;return _n===190||_n===214}e.isArrayBindingElement=k;function T(Ce){switch(Ce.kind){case 241:case 155:case 190:return!0}return!1}e.isDeclarationBindingElement=T;function ne(Ce){return O(Ce)||Y(Ce)}e.isBindingOrAssignmentPattern=ne;function O(Ce){switch(Ce.kind){case 188:case 192:return!0}return!1}e.isObjectBindingOrAssignmentPattern=O;function Y(Ce){switch(Ce.kind){case 189:case 191:return!0}return!1}e.isArrayBindingOrAssignmentPattern=Y;function pe(Ce){var _n=Ce.kind;return _n===193||_n===152||_n===187}e.isPropertyAccessOrQualifiedNameOrImportTypeNode=pe;function S(Ce){var _n=Ce.kind;return _n===193||_n===152}e.isPropertyAccessOrQualifiedName=S;function v(Ce){switch(Ce.kind){case 266:case 265:case 195:case 196:case 197:case 156:return!0;default:return!1}}e.isCallLikeExpression=v;function U(Ce){return Ce.kind===195||Ce.kind===196}e.isCallOrNewExpression=U;function ue(Ce){var _n=Ce.kind;return _n===210||_n===14}e.isTemplateLiteral=ue;function De(Ce){return Z(e.skipPartiallyEmittedExpressions(Ce).kind)}e.isLeftHandSideExpression=De;function Z(Ce){switch(Ce){case 193:case 194:case 196:case 195:case 264:case 265:case 268:case 197:case 191:case 199:case 192:case 213:case 200:case 75:case 13:case 8:case 9:case 10:case 14:case 210:case 90:case 99:case 103:case 105:case 101:case 217:case 218:case 95:return!0;default:return!1}}function Re(Ce){return we(e.skipPartiallyEmittedExpressions(Ce).kind)}e.isUnaryExpression=Re;function we(Ce){switch(Ce){case 206:case 207:case 202:case 203:case 204:case 205:case 198:return!0;default:return Z(Ce)}}function He(Ce){switch(Ce.kind){case 207:return!0;case 206:return Ce.operator===45||Ce.operator===46;default:return!1}}e.isUnaryExpressionWithWrite=He;function ve(Ce){return je(e.skipPartiallyEmittedExpressions(Ce).kind)}e.isExpression=ve;function je(Ce){switch(Ce){case 209:case 211:case 201:case 208:case 212:case 216:case 214:case 320:case 319:return!0;default:return we(Ce)}}function w(Ce){var _n=Ce.kind;return _n===198||_n===216}e.isAssertionExpression=w;function j(Ce){return Ce.kind===319}e.isPartiallyEmittedExpression=j;function Pe(Ce){return Ce.kind===318}e.isNotEmittedStatement=Pe;function a(Ce){return Ce.kind===323}e.isSyntheticReference=a;function Ze(Ce){return Pe(Ce)||j(Ce)}e.isNotEmittedOrPartiallyEmittedNode=Ze;function In(Ce,_n){switch(Ce.kind){case 229:case 230:case 231:case 227:case 228:return!0;case 237:return _n&&In(Ce.statement,_n)}return!1}e.isIterationStatement=In;function et(Ce){return e.isExportAssignment(Ce)||e.isExportDeclaration(Ce)}e.isScopeMarker=et;function ae(Ce){return e.some(Ce,et)}e.hasScopeMarker=ae;function fe(Ce){return!e.isAnyImportOrReExport(Ce)&&!e.isExportAssignment(Ce)&&!e.hasModifier(Ce,1)&&!e.isAmbientModule(Ce)}e.needsScopeMarker=fe;function Le(Ce){return e.isAnyImportOrReExport(Ce)||e.isExportAssignment(Ce)||e.hasModifier(Ce,1)}e.isExternalModuleIndicator=Le;function Je(Ce){return Ce.kind===230||Ce.kind===231}e.isForInOrOfStatement=Je;function $e(Ce){return e.isBlock(Ce)||ve(Ce)}e.isConciseBody=$e;function Fe(Ce){return e.isBlock(Ce)}e.isFunctionBody=Fe;function cn(Ce){return e.isVariableDeclarationList(Ce)||ve(Ce)}e.isForInitializer=cn;function Qe(Ce){var _n=Ce.kind;return _n===249||_n===248||_n===75}e.isModuleBody=Qe;function ln(Ce){var _n=Ce.kind;return _n===249||_n===248}e.isNamespaceBody=ln;function ye(Ce){var _n=Ce.kind;return _n===75||_n===248}e.isJSDocNamespaceBody=ye;function ke(Ce){var _n=Ce.kind;return _n===256||_n===255}e.isNamedImportBindings=ke;function F(Ce){return Ce.kind===248||Ce.kind===247}e.isModuleOrEnumDeclaration=F;function c(Ce){return Ce===201||Ce===190||Ce===244||Ce===213||Ce===161||Ce===247||Ce===282||Ce===261||Ce===243||Ce===200||Ce===162||Ce===254||Ce===252||Ce===257||Ce===245||Ce===271||Ce===160||Ce===159||Ce===248||Ce===251||Ce===255||Ce===155||Ce===279||Ce===158||Ce===157||Ce===163||Ce===280||Ce===246||Ce===154||Ce===241||Ce===315||Ce===308||Ce===316}function L(Ce){return Ce===243||Ce===262||Ce===244||Ce===245||Ce===246||Ce===247||Ce===248||Ce===253||Ce===252||Ce===259||Ce===258||Ce===251}function te(Ce){return Ce===233||Ce===232||Ce===240||Ce===227||Ce===225||Ce===223||Ce===230||Ce===231||Ce===229||Ce===226||Ce===237||Ce===234||Ce===236||Ce===238||Ce===239||Ce===224||Ce===228||Ce===235||Ce===318||Ce===322||Ce===321}function Se(Ce){return Ce.kind===154?Ce.parent&&Ce.parent.kind!==314||e.isInJSFile(Ce):c(Ce.kind)}e.isDeclaration=Se;function Ne(Ce){return L(Ce.kind)}e.isDeclarationStatement=Ne;function ze(Ce){return te(Ce.kind)}e.isStatementButNotDeclaration=ze;function Tn(Ce){var _n=Ce.kind;return te(_n)||L(_n)||wn(Ce)}e.isStatement=Tn;function wn(Ce){return Ce.kind!==222||Ce.parent!==void 0&&(Ce.parent.kind===239||Ce.parent.kind===278)?!1:!e.isFunctionBlock(Ce)}function jn(Ce){var _n=Ce.kind;return _n===263||_n===152||_n===75}e.isModuleReference=jn;function nn(Ce){var _n=Ce.kind;return _n===103||_n===75||_n===193}e.isJsxTagNameExpression=nn;function pn(Ce){var _n=Ce.kind;return _n===264||_n===274||_n===265||_n===11||_n===268}e.isJsxChild=pn;function le(Ce){var _n=Ce.kind;return _n===271||_n===273}e.isJsxAttributeLike=le;function oe(Ce){var _n=Ce.kind;return _n===10||_n===274}e.isStringLiteralOrJsxExpression=oe;function Cn(Ce){var _n=Ce.kind;return _n===266||_n===265}e.isJsxOpeningLikeElement=Cn;function yn(Ce){var _n=Ce.kind;return _n===275||_n===276}e.isCaseOrDefaultClause=yn;function _e(Ce){return Ce.kind>=292&&Ce.kind<=316}e.isJSDocNode=_e;function dn(Ce){return Ce.kind===301||un(Ce)||e.isJSDocTypeLiteral(Ce)||e.isJSDocSignature(Ce)}e.isJSDocCommentContainingNode=dn;function un(Ce){return Ce.kind>=304&&Ce.kind<=316}e.isJSDocTag=un;function Rn(Ce){return Ce.kind===163}e.isSetAccessor=Rn;function at(Ce){return Ce.kind===162}e.isGetAccessor=at;function Bn(Ce){var _n=Ce.jsDoc;return!!_n&&_n.length>0}e.hasJSDocNodes=Bn;function ut(Ce){return!!Ce.type}e.hasType=ut;function ct(Ce){return!!Ce.initializer}e.hasInitializer=ct;function ot(Ce){return ct(Ce)&&!e.isForStatement(Ce)&&!e.isForInStatement(Ce)&&!e.isForOfStatement(Ce)&&!e.isJsxAttribute(Ce)}e.hasOnlyExpressionInitializer=ot;function dt(Ce){return Ce.kind===271||Ce.kind===273||_(Ce)}e.isObjectLiteralElement=dt;function Ct(Ce){return Ce.kind===168||Ce.kind===215}e.isTypeReferenceType=Ct;var st=1073741823;function Kn(Ce){for(var _n=st,yt=0,Dt=Ce;yt<Dt.length;yt++){var Ht=Dt[yt];if(!Ht.length)continue;for(var $t=0;$t<Ht.length&&$t<_n&&e.isWhiteSpaceLike(Ht.charCodeAt($t));$t++);if($t<_n&&(_n=$t),_n===0)return 0}return _n===st?void 0:_n}e.guessIndentation=Kn;function Ie(Ce){return Ce.kind===10||Ce.kind===14}e.isStringLiteralLike=Ie}(sn||(sn={})),function(e){function o(T){return T.kind===256||T.kind===260}e.isNamedImportsOrExports=o;function M(T,ne){this.flags=T,this.escapedName=ne,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function qe(T,ne){this.flags=ne,e.Debug.isDebugging&&(this.checker=T)}function Ee(T,ne){this.flags=ne,e.Debug.isDebugging&&(this.checker=T)}function Ge(T,ne,O){this.pos=ne,this.end=O,this.kind=T,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function Be(T,ne,O){this.fileName=T,this.text=ne,this.skipTrivia=O||function(Y){return Y}}e.objectAllocator={getNodeConstructor:function(){return Ge},getTokenConstructor:function(){return Ge},getIdentifierConstructor:function(){return Ge},getSourceFileConstructor:function(){return Ge},getSymbolConstructor:function(){return M},getTypeConstructor:function(){return qe},getSignatureConstructor:function(){return Ee},getSourceMapSourceConstructor:function(){return Be}};function he(T,ne,O){return O===void 0&&(O=0),T.replace(/{(\d+)}/g,function(Y,pe){return""+e.Debug.assertDefined(ne[+pe+O])})}e.formatStringFromArgs=he;function ee(T){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[T.key]||T.message}e.getLocaleSpecificMessage=ee;function f(T,ne,O,Y){e.Debug.assertGreaterThanOrEqual(ne,0),e.Debug.assertGreaterThanOrEqual(O,0),T&&(e.Debug.assertLessThanOrEqual(ne,T.text.length),e.Debug.assertLessThanOrEqual(ne+O,T.text.length));var pe=ee(Y);return arguments.length>4&&(pe=he(pe,arguments,4)),{file:T,start:ne,length:O,messageText:pe,category:Y.category,code:Y.code,reportsUnnecessary:Y.reportsUnnecessary}}e.createFileDiagnostic=f;function J(T,ne){var O=ee(ne);return arguments.length>2&&(O=he(O,arguments,2)),O}e.formatMessage=J;function Oe(T){var ne=ee(T);return arguments.length>1&&(ne=he(ne,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:ne,category:T.category,code:T.code,reportsUnnecessary:T.reportsUnnecessary}}e.createCompilerDiagnostic=Oe;function N(T){return{file:void 0,start:void 0,length:void 0,code:T.code,category:T.category,messageText:T.next?T:T.messageText}}e.createCompilerDiagnosticFromMessageChain=N;function Te(T,ne){var O=ee(ne);return arguments.length>2&&(O=he(O,arguments,2)),{messageText:O,category:ne.category,code:ne.code,next:T===void 0||Array.isArray(T)?T:[T]}}e.chainDiagnosticMessages=Te;function ie(T,ne){for(var O=T;O.next;)O=O.next[0];O.next=[ne]}e.concatenateDiagnosticMessageChains=ie;function ce(T){return T.file?T.file.path:void 0}function x(T,ne){return C(T,ne)||P(T,ne)||0}e.compareDiagnostics=x;function C(T,ne){return e.compareStringsCaseSensitive(ce(T),ce(ne))||e.compareValues(T.start,ne.start)||e.compareValues(T.length,ne.length)||e.compareValues(T.code,ne.code)||h(T.messageText,ne.messageText)||0}e.compareDiagnosticsSkipRelatedInformation=C;function P(T,ne){return!T.relatedInformation&&!ne.relatedInformation?0:T.relatedInformation&&ne.relatedInformation?e.compareValues(T.relatedInformation.length,ne.relatedInformation.length)||e.forEach(T.relatedInformation,function(O,Y){var pe=ne.relatedInformation[Y];return x(O,pe)})||0:T.relatedInformation?-1:1}function h(T,ne){if(typeof T=="string"&&typeof ne=="string")return e.compareStringsCaseSensitive(T,ne);if(typeof T=="string")return-1;if(typeof ne=="string")return 1;var O=e.compareStringsCaseSensitive(T.messageText,ne.messageText);if(O)return O;if(!T.next&&!ne.next)return 0;if(!T.next)return-1;if(!ne.next)return 1;for(var Y=Math.min(T.next.length,ne.next.length),pe=0;pe<Y;pe++)if(O=h(T.next[pe],ne.next[pe]),O)return O;return T.next.length<ne.next.length?-1:T.next.length>ne.next.length?1:0}function X(T){return T.target||0}e.getEmitScriptTarget=X;function $(T){return typeof T.module=="number"?T.module:X(T)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}e.getEmitModuleKind=$;function Q(T){var ne=T.moduleResolution;return ne===void 0&&(ne=$(T)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),ne}e.getEmitModuleResolutionKind=Q;function z(T){switch($(T)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:return!0;default:return!1}}e.hasJsonModuleEmitEnabled=z;function se(T){return T.allowUnreachableCode===!1}e.unreachableCodeIsError=se;function G(T){return T.allowUnusedLabels===!1}e.unusedLabelIsError=G;function H(T){return!!(be(T)&&T.declarationMap)}e.getAreDeclarationMapsEnabled=H;function q(T){var ne=$(T);return T.allowSyntheticDefaultImports!==void 0?T.allowSyntheticDefaultImports:T.esModuleInterop||ne===e.ModuleKind.System}e.getAllowSyntheticDefaultImports=q;function be(T){return!!(T.declaration||T.composite)}e.getEmitDeclarations=be;function R(T){return!!(T.incremental||T.composite)}e.isIncrementalCompilation=R;function K(T,ne){return T[ne]===void 0?!!T.strict:!!T[ne]}e.getStrictOptionValue=K;function m(T,ne){return ne!==T&&e.semanticDiagnosticsOptionDeclarations.some(function(O){return!e.isJsonEqual(I(ne,O),I(T,O))})}e.compilerOptionsAffectSemanticDiagnostics=m;function _(T,ne){return ne!==T&&e.affectsEmitOptionDeclarations.some(function(O){return!e.isJsonEqual(I(ne,O),I(T,O))})}e.compilerOptionsAffectEmit=_;function I(T,ne){return ne.strictFlag?K(T,ne.name):T[ne.name]}e.getCompilerOptionValue=I;function D(T){for(var ne=!1,O=0;O<T.length;O++)if(T.charCodeAt(O)===42)if(!ne)ne=!0;else return!1;return!0}e.hasZeroOrOneAsteriskCharacter=D;function y(T,ne,O){for(var Y=e.createMap(),pe=e.flatten(e.mapDefined(T,function(He){return He.resolvedModules&&e.compact(e.arrayFrom(e.mapIterator(He.resolvedModules.values(),function(ve){return ve&&ve.originalPath&&ve.resolvedFileName!==ve.originalPath?[ve.resolvedFileName,ve.originalPath]:void 0})))})),S=0,v=pe;S<v.length;S++){var U=v[S],ue=U[0],De=U[1],Z=E(ue,De,O,ne),Re=Z[0],we=Z[1];Y.set(we,Re)}return Y}e.discoverProbableSymlinks=y;function E(T,ne,O,Y){for(var pe=e.getPathComponents(e.toPath(T,O,Y)),S=e.getPathComponents(e.toPath(ne,O,Y));!k(pe[pe.length-2],Y)&&!k(S[S.length-2],Y)&&Y(pe[pe.length-1])===Y(S[S.length-1]);)pe.pop(),S.pop();return[e.getPathFromPathComponents(pe),e.getPathFromPathComponents(S)]}function k(T,ne){return ne(T)==="node_modules"||e.startsWith(T,"@")}}(sn||(sn={})),function(e){function o(Le){return e.isAnyDirectorySeparator(Le.charCodeAt(0))?Le.slice(1):void 0}function M(Le,Je,$e){var Fe=e.tryRemovePrefix(Le,Je,$e);return Fe===void 0?void 0:o(Fe)}e.tryRemoveDirectoryPrefix=M;var qe=/[^\w\s\/]/g;function Ee(Le){return Le.replace(qe,Ge)}e.regExpEscape=Ee;function Ge(Le){return"\\"+Le}var Be=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var he="(?!("+e.commonPackageFolders.join("|")+")(/|$))",ee={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+he+"[^/.][^/]*)*?",replaceWildcardCharacter:function(Le){return x(Le,ee.singleAsteriskRegexFragment)}},f={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+he+"[^/.][^/]*)*?",replaceWildcardCharacter:function(Le){return x(Le,f.singleAsteriskRegexFragment)}},J={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(Le){return x(Le,J.singleAsteriskRegexFragment)}},Oe={files:ee,directories:f,exclude:J};function N(Le,Je,$e){var Fe=Te(Le,Je,$e);if(!Fe||!Fe.length)return;var cn=Fe.map(function(ln){return"("+ln+")"}).join("|"),Qe=$e==="exclude"?"($|/)":"$";return"^("+cn+")"+Qe}e.getRegularExpressionForWildcard=N;function Te(Le,Je,$e){return Le===void 0||Le.length===0?void 0:e.flatMap(Le,function(Fe){return Fe&&ce(Fe,Je,$e,Oe[$e])})}e.getRegularExpressionsForWildcards=Te;function ie(Le){return!/[.*?]/.test(Le)}e.isImplicitGlob=ie;function ce(Le,Je,$e,Fe){var cn=Fe.singleAsteriskRegexFragment,Qe=Fe.doubleAsteriskRegexFragment,ln=Fe.replaceWildcardCharacter,ye="",ke=!1,F=e.getNormalizedPathComponents(Le,Je),c=e.last(F);if($e!=="exclude"&&c==="**")return;F[0]=e.removeTrailingDirectorySeparator(F[0]),ie(c)&&F.push("**","*");for(var L=0,te=0,Se=F;te<Se.length;te++){var Ne=Se[te];if(Ne==="**")ye+=Qe;else if($e==="directories"&&(ye+="(",L++),ke&&(ye+=e.directorySeparator),$e!=="exclude"){var ze="";Ne.charCodeAt(0)===42?(ze+="([^./]"+cn+")?",Ne=Ne.substr(1)):Ne.charCodeAt(0)===63&&(ze+="[^./]",Ne=Ne.substr(1)),ze+=Ne.replace(qe,ln),ze!==Ne&&(ye+=he),ye+=ze}else ye+=Ne.replace(qe,ln);ke=!0}for(;L>0;)ye+=")?",L--;return ye}function x(Le,Je){return Le==="*"?Je:Le==="?"?"[^/]":"\\"+Le}function C(Le,Je,$e,Fe,cn){Le=e.normalizePath(Le),cn=e.normalizePath(cn);var Qe=e.combinePaths(cn,Le);return{includeFilePatterns:e.map(Te($e,Qe,"files"),function(ln){return"^"+ln+"$"}),includeFilePattern:N($e,Qe,"files"),includeDirectoryPattern:N($e,Qe,"directories"),excludePattern:N(Je,Qe,"exclude"),basePaths:X(Le,$e,Fe)}}e.getFileMatcherPatterns=C;function P(Le,Je){return new RegExp(Le,Je?"":"i")}e.getRegexFromPattern=P;function h(Le,Je,$e,Fe,cn,Qe,ln,ye,ke){Le=e.normalizePath(Le),Qe=e.normalizePath(Qe);for(var F=C(Le,$e,Fe,cn,Qe),c=F.includeFilePatterns&&F.includeFilePatterns.map(function(pn){return P(pn,cn)}),L=F.includeDirectoryPattern&&P(F.includeDirectoryPattern,cn),te=F.excludePattern&&P(F.excludePattern,cn),Se=c?c.map(function(){return[]}):[[]],Ne=e.createMap(),ze=e.createGetCanonicalFileName(cn),Tn=0,wn=F.basePaths;Tn<wn.length;Tn++){var jn=wn[Tn];nn(jn,e.combinePaths(Qe,jn),ln)}return e.flatten(Se);function nn(pn,le,oe){var Cn=ze(ke(le));if(Ne.has(Cn))return;Ne.set(Cn,!0);for(var yn=ye(pn),_e=yn.files,dn=yn.directories,un=function(Ct){var st=e.combinePaths(pn,Ct),Kn=e.combinePaths(le,Ct);if(Je&&!e.fileExtensionIsOneOf(st,Je))return"continue";if(te&&te.test(Kn))return"continue";if(!c)Se[0].push(st);else{var Ie=e.findIndex(c,function(Ce){return Ce.test(Kn)});Ie!==-1&&Se[Ie].push(st)}},Rn=0,at=e.sort(_e,e.compareStringsCaseSensitive);Rn<at.length;Rn++){var Bn=at[Rn];un(Bn)}if(oe!==void 0&&(oe--,oe===0))return;for(var ut=0,ct=e.sort(dn,e.compareStringsCaseSensitive);ut<ct.length;ut++){var Bn=ct[ut],ot=e.combinePaths(pn,Bn),dt=e.combinePaths(le,Bn);(!L||L.test(dt))&&(!te||!te.test(dt))&&nn(ot,dt,oe)}}}e.matchFiles=h;function X(Le,Je,$e){var Fe=[Le];if(Je){for(var cn=[],Qe=0,ln=Je;Qe<ln.length;Qe++){var ye=ln[Qe],ke=e.isRootedDiskPath(ye)?ye:e.normalizePath(e.combinePaths(Le,ye));cn.push($(ke))}cn.sort(e.getStringComparer(!$e));for(var F=function(Se){e.every(Fe,function(Ne){return!e.containsPath(Ne,Se,Le,!$e)})&&Fe.push(Se)},c=0,L=cn;c<L.length;c++){var te=L[c];F(te)}}return Fe}function $(Le){var Je=e.indexOfAnyCharCode(Le,Be);return Je<0?e.hasExtension(Le)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(Le)):Le:Le.substring(0,Le.lastIndexOf(e.directorySeparator,Je))}function Q(Le,Je){return Je||z(Le)||3}e.ensureScriptKind=Q;function z(Le){var Je=Le.substr(Le.lastIndexOf("."));switch(Je.toLowerCase()){case".js":return 1;case".jsx":return 2;case".ts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getScriptKindFromFileName=z,e.supportedTSExtensions=[".ts",".tsx",".d.ts"],e.supportedTSExtensionsWithJson=[".ts",".tsx",".d.ts",".json"],e.supportedTSExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],e.supportedJSExtensions=[".js",".jsx"],e.supportedJSAndJsonExtensions=[".js",".jsx",".json"];var se=Tr(e.supportedTSExtensions,e.supportedJSExtensions),G=Tr(e.supportedTSExtensions,e.supportedJSExtensions,[".json"]);function H(Le,Je){var $e=Le&&Le.allowJs;if(!Je||Je.length===0)return $e?se:e.supportedTSExtensions;var Fe=Tr($e?se:e.supportedTSExtensions,e.mapDefined(Je,function(cn){return cn.scriptKind===7||$e&&be(cn.scriptKind)?cn.extension:void 0}));return e.deduplicate(Fe,e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}e.getSupportedExtensions=H;function q(Le,Je){return!Le||!Le.resolveJsonModule?Je:Je===se?G:Je===e.supportedTSExtensions?e.supportedTSExtensionsWithJson:Tr(Je,[".json"])}e.getSuppoertedExtensionsWithJsonIfResolveJsonModule=q;function be(Le){return Le===1||Le===2}function R(Le){return e.some(e.supportedJSExtensions,function(Je){return e.fileExtensionIs(Le,Je)})}e.hasJSFileExtension=R;function K(Le){return e.supportedJSAndJsonExtensions.some(function(Je){return e.fileExtensionIs(Le,Je)})}e.hasJSOrJsonFileExtension=K;function m(Le){return e.some(e.supportedTSExtensions,function(Je){return e.fileExtensionIs(Le,Je)})}e.hasTSFileExtension=m;function _(Le,Je,$e){if(!Le)return!1;for(var Fe=H(Je,$e),cn=0,Qe=q(Je,Fe);cn<Qe.length;cn++){var ln=Qe[cn];if(e.fileExtensionIs(Le,ln))return!0}return!1}e.isSupportedSourceFileName=_;var I;(function(Le){Le[Le.TypeScriptFiles=0]="TypeScriptFiles",Le[Le.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",Le[Le.Highest=0]="Highest",Le[Le.Lowest=2]="Lowest"})(I=e.ExtensionPriority||(e.ExtensionPriority={}));function D(Le,Je){for(var $e=Je.length-1;$e>=0;$e--)if(e.fileExtensionIs(Le,Je[$e]))return y($e,Je);return 0}e.getExtensionPriority=D;function y(Le,Je){return Le<2?0:Le<Je.length?2:Je.length}e.adjustExtensionPriority=y;function E(Le,Je){return Le<2?2:Je.length}e.getNextLowestExtensionPriority=E;var k=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function T(Le){for(var Je=0,$e=k;Je<$e.length;Je++){var Fe=$e[Je],cn=ne(Le,Fe);if(cn!==void 0)return cn}return Le}e.removeFileExtension=T;function ne(Le,Je){return e.fileExtensionIs(Le,Je)?O(Le,Je):void 0}e.tryRemoveExtension=ne;function O(Le,Je){return Le.substring(0,Le.length-Je.length)}e.removeExtension=O;function Y(Le,Je){return e.changeAnyExtension(Le,Je,k,!1)}e.changeExtension=Y;function pe(Le){e.Debug.assert(e.hasZeroOrOneAsteriskCharacter(Le));var Je=Le.indexOf("*");return Je===-1?void 0:{prefix:Le.substr(0,Je),suffix:Le.substr(Je+1)}}e.tryParsePattern=pe;function S(Le){return!(Le>=0)}e.positionIsSynthesized=S;function v(Le){return Le===".ts"||Le===".tsx"||Le===".d.ts"}e.extensionIsTS=v;function U(Le){return v(Le)||Le===".json"}e.resolutionExtensionIsTSOrJson=U;function ue(Le){var Je=Z(Le);return Je!==void 0?Je:e.Debug.fail("File "+Le+" has unknown extension.")}e.extensionFromPath=ue;function De(Le){return Z(Le)!==void 0}e.isAnySupportedFileExtension=De;function Z(Le){return e.find(k,function(Je){return e.fileExtensionIs(Le,Je)})}e.tryGetExtensionFromPath=Z;function Re(Le,Je){return Le.checkJsDirective?Le.checkJsDirective.enabled:Je.checkJs}e.isCheckJsEnabledForFile=Re,e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray};function we(Le,Je){for(var $e=[],Fe=0,cn=Le;Fe<cn.length;Fe++){var Qe=cn[Fe];if(!e.hasZeroOrOneAsteriskCharacter(Qe))continue;var ln=pe(Qe);if(ln)$e.push(ln);else if(Qe===Je)return Qe}return e.findBestPatternMatch($e,function(ye){return ye},Je)}e.matchPatternOrExact=we;function He(Le,Je){var $e=Le.indexOf(Je);return e.Debug.assert($e!==-1),Le.slice($e)}e.sliceAfter=He;function ve(Le){for(var Je,$e=[],Fe=1;Fe<arguments.length;Fe++)$e[Fe-1]=arguments[Fe];return Le.relatedInformation||(Le.relatedInformation=[]),(Je=Le.relatedInformation).push.apply(Je,$e),Le}e.addRelatedInfo=ve;function je(Le,Je){e.Debug.assert(Le.length!==0);for(var $e=Je(Le[0]),Fe=$e,cn=1;cn<Le.length;cn++){var Qe=Je(Le[cn]);Qe<$e?$e=Qe:Qe>Fe&&(Fe=Qe)}return{min:$e,max:Fe}}e.minAndMax=je;var w=function(){function Le(){this.map=e.createMap()}return Le.prototype.add=function(Je){this.map.set(String(e.getNodeId(Je)),Je)},Le.prototype.tryAdd=function(Je){return this.has(Je)?!1:(this.add(Je),!0)},Le.prototype.has=function(Je){return this.map.has(String(e.getNodeId(Je)))},Le.prototype.forEach=function(Je){this.map.forEach(Je)},Le.prototype.some=function(Je){return e.forEachEntry(this.map,Je)||!1},Le}();e.NodeSet=w;var j=function(){function Le(){this.map=e.createMap()}return Le.prototype.get=function(Je){var $e=this.map.get(String(e.getNodeId(Je)));return $e&&$e.value},Le.prototype.getOrUpdate=function(Je,$e){var Fe=this.get(Je);if(Fe)return Fe;var cn=$e();return this.set(Je,cn),cn},Le.prototype.set=function(Je,$e){this.map.set(String(e.getNodeId(Je)),{node:Je,value:$e})},Le.prototype.has=function(Je){return this.map.has(String(e.getNodeId(Je)))},Le.prototype.forEach=function(Je){this.map.forEach(function($e){var Fe=$e.node,cn=$e.value;return Je(cn,Fe)})},Le}();e.NodeMap=j;function Pe(Le){return{pos:e.getTokenPosOfNode(Le),end:Le.end}}e.rangeOfNode=Pe;function a(Le){return{pos:Le.pos-1,end:Le.end+1}}e.rangeOfTypeParameters=a;function Ze(Le,Je,$e){return Je.skipLibCheck&&Le.isDeclarationFile||Je.skipDefaultLibCheck&&Le.hasNoDefaultLib||$e.isSourceOfProjectReferenceRedirect(Le.fileName)}e.skipTypeChecking=Ze;function In(Le,Je){return Le===Je||typeof Le=="object"&&Le!==null&&typeof Je=="object"&&Je!==null&&e.equalOwnProperties(Le,Je,In)}e.isJsonEqual=In;function et(Le,Je,$e){var Fe=Le.get(Je);if(Fe===void 0){var cn=$e();return Le.set(Je,cn),cn}else return Fe}e.getOrUpdate=et;function ae(Le){var Je;switch(Le.charCodeAt(1)){case 98:case 66:Je=1;break;case 111:case 79:Je=3;break;case 120:case 88:Je=4;break;default:for(var $e=Le.length-1,Fe=0;Le.charCodeAt(Fe)===48;)Fe++;return Le.slice(Fe,$e)||"0"}for(var cn=2,Qe=Le.length-1,ln=(Qe-cn)*Je,ye=new Uint16Array((ln>>>4)+(ln&15?1:0)),ke=Qe-1,F=0;ke>=cn;ke--,F+=Je){var c=F>>>4,L=Le.charCodeAt(ke),te=L<=57?L-48:10+L-(L<=70?65:97),Se=te<<(F&15);ye[c]|=Se;var Ne=Se>>>16;Ne&&(ye[c+1]|=Ne)}for(var ze="",Tn=ye.length-1,wn=!0;wn;){var jn=0;wn=!1;for(var c=Tn;c>=0;c--){var nn=jn<<16|ye[c],pn=nn/10|0;ye[c]=pn,jn=nn-pn*10,pn&&!wn&&(Tn=c,wn=!0)}ze=jn+ze}return ze}e.parsePseudoBigInt=ae;function fe(Le){var Je=Le.negative,$e=Le.base10Value;return(Je&&$e!=="0"?"-":"")+$e}e.pseudoBigIntToString=fe}(sn||(sn={}));var sn;(function(e){var o;(function(m){m[m.None=0]="None",m[m.Yield=1]="Yield",m[m.Await=2]="Await",m[m.Type=4]="Type",m[m.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",m[m.JSDoc=32]="JSDoc"})(o||(o={}));var M,qe,Ee,Ge;function Be(m,_,I){return m===288?new(Ge||(Ge=e.objectAllocator.getSourceFileConstructor()))(m,_,I):m===75?new(Ee||(Ee=e.objectAllocator.getIdentifierConstructor()))(m,_,I):e.isNodeKind(m)?new(M||(M=e.objectAllocator.getNodeConstructor()))(m,_,I):new(qe||(qe=e.objectAllocator.getTokenConstructor()))(m,_,I)}e.createNode=Be;function he(m,_){return _&&m(_)}function ee(m,_,I){if(I){if(_)return _(I);for(var D=0,y=I;D<y.length;D++){var E=y[D],k=m(E);if(k)return k}}}function f(m,_){return m.charCodeAt(_+1)===42&&m.charCodeAt(_+2)===42&&m.charCodeAt(_+3)!==47}e.isJSDocLikeText=f;function J(m,_,I){if(!m||m.kind<=151)return;switch(m.kind){case 152:return he(_,m.left)||he(_,m.right);case 154:return he(_,m.name)||he(_,m.constraint)||he(_,m.default)||he(_,m.expression);case 280:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.name)||he(_,m.questionToken)||he(_,m.exclamationToken)||he(_,m.equalsToken)||he(_,m.objectAssignmentInitializer);case 281:return he(_,m.expression);case 155:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.dotDotDotToken)||he(_,m.name)||he(_,m.questionToken)||he(_,m.type)||he(_,m.initializer);case 158:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.name)||he(_,m.questionToken)||he(_,m.exclamationToken)||he(_,m.type)||he(_,m.initializer);case 157:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.name)||he(_,m.questionToken)||he(_,m.type)||he(_,m.initializer);case 279:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.name)||he(_,m.questionToken)||he(_,m.initializer);case 241:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.name)||he(_,m.exclamationToken)||he(_,m.type)||he(_,m.initializer);case 190:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.dotDotDotToken)||he(_,m.propertyName)||he(_,m.name)||he(_,m.initializer);case 169:case 170:case 164:case 165:case 166:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||ee(_,I,m.typeParameters)||ee(_,I,m.parameters)||he(_,m.type);case 160:case 159:case 161:case 162:case 163:case 200:case 243:case 201:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.asteriskToken)||he(_,m.name)||he(_,m.questionToken)||he(_,m.exclamationToken)||ee(_,I,m.typeParameters)||ee(_,I,m.parameters)||he(_,m.type)||he(_,m.equalsGreaterThanToken)||he(_,m.body);case 168:return he(_,m.typeName)||ee(_,I,m.typeArguments);case 167:return he(_,m.assertsModifier)||he(_,m.parameterName)||he(_,m.type);case 171:return he(_,m.exprName);case 172:return ee(_,I,m.members);case 173:return he(_,m.elementType);case 174:return ee(_,I,m.elementTypes);case 177:case 178:return ee(_,I,m.types);case 179:return he(_,m.checkType)||he(_,m.extendsType)||he(_,m.trueType)||he(_,m.falseType);case 180:return he(_,m.typeParameter);case 187:return he(_,m.argument)||he(_,m.qualifier)||ee(_,I,m.typeArguments);case 181:case 183:return he(_,m.type);case 184:return he(_,m.objectType)||he(_,m.indexType);case 185:return he(_,m.readonlyToken)||he(_,m.typeParameter)||he(_,m.questionToken)||he(_,m.type);case 186:return he(_,m.literal);case 188:case 189:return ee(_,I,m.elements);case 191:return ee(_,I,m.elements);case 192:return ee(_,I,m.properties);case 193:return he(_,m.expression)||he(_,m.questionDotToken)||he(_,m.name);case 194:return he(_,m.expression)||he(_,m.questionDotToken)||he(_,m.argumentExpression);case 195:case 196:return he(_,m.expression)||he(_,m.questionDotToken)||ee(_,I,m.typeArguments)||ee(_,I,m.arguments);case 197:return he(_,m.tag)||he(_,m.questionDotToken)||ee(_,I,m.typeArguments)||he(_,m.template);case 198:return he(_,m.type)||he(_,m.expression);case 199:return he(_,m.expression);case 202:return he(_,m.expression);case 203:return he(_,m.expression);case 204:return he(_,m.expression);case 206:return he(_,m.operand);case 211:return he(_,m.asteriskToken)||he(_,m.expression);case 205:return he(_,m.expression);case 207:return he(_,m.operand);case 208:return he(_,m.left)||he(_,m.operatorToken)||he(_,m.right);case 216:return he(_,m.expression)||he(_,m.type);case 217:return he(_,m.expression);case 218:return he(_,m.name);case 209:return he(_,m.condition)||he(_,m.questionToken)||he(_,m.whenTrue)||he(_,m.colonToken)||he(_,m.whenFalse);case 212:return he(_,m.expression);case 222:case 249:return ee(_,I,m.statements);case 288:return ee(_,I,m.statements)||he(_,m.endOfFileToken);case 224:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.declarationList);case 242:return ee(_,I,m.declarations);case 225:return he(_,m.expression);case 226:return he(_,m.expression)||he(_,m.thenStatement)||he(_,m.elseStatement);case 227:return he(_,m.statement)||he(_,m.expression);case 228:return he(_,m.expression)||he(_,m.statement);case 229:return he(_,m.initializer)||he(_,m.condition)||he(_,m.incrementor)||he(_,m.statement);case 230:return he(_,m.initializer)||he(_,m.expression)||he(_,m.statement);case 231:return he(_,m.awaitModifier)||he(_,m.initializer)||he(_,m.expression)||he(_,m.statement);case 232:case 233:return he(_,m.label);case 234:return he(_,m.expression);case 235:return he(_,m.expression)||he(_,m.statement);case 236:return he(_,m.expression)||he(_,m.caseBlock);case 250:return ee(_,I,m.clauses);case 275:return he(_,m.expression)||ee(_,I,m.statements);case 276:return ee(_,I,m.statements);case 237:return he(_,m.label)||he(_,m.statement);case 238:return he(_,m.expression);case 239:return he(_,m.tryBlock)||he(_,m.catchClause)||he(_,m.finallyBlock);case 278:return he(_,m.variableDeclaration)||he(_,m.block);case 156:return he(_,m.expression);case 244:case 213:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.name)||ee(_,I,m.typeParameters)||ee(_,I,m.heritageClauses)||ee(_,I,m.members);case 245:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.name)||ee(_,I,m.typeParameters)||ee(_,I,m.heritageClauses)||ee(_,I,m.members);case 246:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.name)||ee(_,I,m.typeParameters)||he(_,m.type);case 247:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.name)||ee(_,I,m.members);case 282:return he(_,m.name)||he(_,m.initializer);case 248:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.name)||he(_,m.body);case 252:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.name)||he(_,m.moduleReference);case 253:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.importClause)||he(_,m.moduleSpecifier);case 254:return he(_,m.name)||he(_,m.namedBindings);case 251:return he(_,m.name);case 255:return he(_,m.name);case 256:case 260:return ee(_,I,m.elements);case 259:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.exportClause)||he(_,m.moduleSpecifier);case 257:case 261:return he(_,m.propertyName)||he(_,m.name);case 258:return ee(_,I,m.decorators)||ee(_,I,m.modifiers)||he(_,m.expression);case 210:return he(_,m.head)||ee(_,I,m.templateSpans);case 220:return he(_,m.expression)||he(_,m.literal);case 153:return he(_,m.expression);case 277:return ee(_,I,m.types);case 215:return he(_,m.expression)||ee(_,I,m.typeArguments);case 263:return he(_,m.expression);case 262:return ee(_,I,m.decorators);case 320:return ee(_,I,m.elements);case 264:return he(_,m.openingElement)||ee(_,I,m.children)||he(_,m.closingElement);case 268:return he(_,m.openingFragment)||ee(_,I,m.children)||he(_,m.closingFragment);case 265:case 266:return he(_,m.tagName)||ee(_,I,m.typeArguments)||he(_,m.attributes);case 272:return ee(_,I,m.properties);case 271:return he(_,m.name)||he(_,m.initializer);case 273:return he(_,m.expression);case 274:return he(_,m.dotDotDotToken)||he(_,m.expression);case 267:return he(_,m.tagName);case 175:case 176:case 292:case 296:case 295:case 297:case 299:return he(_,m.type);case 298:return ee(_,I,m.parameters)||he(_,m.type);case 301:return ee(_,I,m.tags);case 310:case 316:return he(_,m.tagName)||(m.isNameFirst?he(_,m.name)||he(_,m.typeExpression):he(_,m.typeExpression)||he(_,m.name));case 306:return he(_,m.tagName);case 305:return he(_,m.tagName)||he(_,m.class);case 314:return he(_,m.tagName)||he(_,m.constraint)||ee(_,I,m.typeParameters);case 315:return he(_,m.tagName)||(m.typeExpression&&m.typeExpression.kind===292?he(_,m.typeExpression)||he(_,m.fullName):he(_,m.fullName)||he(_,m.typeExpression));case 308:return he(_,m.tagName)||he(_,m.fullName)||he(_,m.typeExpression);case 311:case 313:case 312:case 309:return he(_,m.tagName)||he(_,m.typeExpression);case 303:return e.forEach(m.typeParameters,_)||e.forEach(m.parameters,_)||he(_,m.type);case 302:return e.forEach(m.jsDocPropertyTags,_);case 304:case 307:return he(_,m.tagName);case 319:return he(_,m.expression)}}e.forEachChild=J;function Oe(m,_,I,D,y){D===void 0&&(D=!1),e.performance.mark("beforeParse");var E;return e.perfLogger.logStartParseSourceFile(m),I===100?E=P.parseSourceFile(m,_,I,void 0,D,6):E=P.parseSourceFile(m,_,I,void 0,D,y),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),E}e.createSourceFile=Oe;function N(m,_){return P.parseIsolatedEntityName(m,_)}e.parseIsolatedEntityName=N;function Te(m,_){return P.parseJsonText(m,_)}e.parseJsonText=Te;function ie(m){return m.externalModuleIndicator!==void 0}e.isExternalModule=ie;function ce(m,_,I,D){D===void 0&&(D=!1);var y=h.updateSourceFile(m,_,I,D);return y.flags|=m.flags&3145728,y}e.updateSourceFile=ce;function x(m,_,I){var D=P.JSDocParser.parseIsolatedJSDocComment(m,_,I);return D&&D.jsDoc&&P.fixupParentReferences(D.jsDoc),D}e.parseIsolatedJSDocComment=x;function C(m,_,I){return P.JSDocParser.parseJSDocTypeExpressionForTests(m,_,I)}e.parseJSDocTypeExpressionForTests=C;var P;(function(m){var _=e.createScanner(99,!0),I=4096|16384,D,y,E,k,T,ne,O,Y,pe,S,v,U,ue,De,Z,Re=!1;function we(W,fn,Un,Et,pr,Xr){if(pr===void 0&&(pr=!1),Xr=e.ensureScriptKind(W,Xr),Xr===6){var ei=ve(W,fn,Un,Et,pr);return e.convertToObjectWorker(ei,ei.parseDiagnostics,!1,void 0,void 0),ei.referencedFiles=e.emptyArray,ei.typeReferenceDirectives=e.emptyArray,ei.libReferenceDirectives=e.emptyArray,ei.amdDependencies=e.emptyArray,ei.hasNoDefaultLib=!1,ei.pragmas=e.emptyMap,ei}w(fn,Un,Et,Xr);var ps=Pe(W,Un,pr,Xr);return j(),ps}m.parseSourceFile=we;function He(W,fn){w(W,fn,void 0,1),yn();var Un=Mt(!0),Et=oe()===1&&!ne.length;return j(),Et?Un:void 0}m.parseIsolatedEntityName=He;function ve(W,fn,Un,Et,pr){Un===void 0&&(Un=2),w(fn,Un,Et,6),T=In(W,2,6,!1),T.flags=Z,yn();var Xr=le();if(oe()===1)T.statements=Lt([],Xr,Xr),T.endOfFileToken=$t();else{var ei=mt(225);switch(oe()){case 22:ei.expression=Ai();break;case 105:case 90:case 99:ei.expression=$t();break;case 40:dt(function(){return yn()===8&&yn()!==58})?ei.expression=au():ei.expression=ki();break;case 8:case 10:if(dt(function(){return yn()!==58})){ei.expression=Ia();break}default:ei.expression=ki();break}Wn(ei),T.statements=Lt([ei],Xr),T.endOfFileToken=Dt(1,e.Diagnostics.Unexpected_token)}pr&&Ze(T),T.nodeCount=S,T.identifierCount=U,T.identifiers=v,T.parseDiagnostics=ne;var ps=T;return j(),ps}m.parseJsonText=ve;function je(W){return W===4||W===2||W===1||W===6?1:0}function w(W,fn,Un,Et){D=e.objectAllocator.getNodeConstructor(),y=e.objectAllocator.getTokenConstructor(),E=e.objectAllocator.getIdentifierConstructor(),k=e.objectAllocator.getSourceFileConstructor(),pe=W,O=Un,ne=[],ue=0,v=e.createMap(),U=0,S=0;switch(Et){case 1:case 2:Z=131072;break;case 6:Z=131072|33554432;break;default:Z=0;break}Re=!1,_.setText(pe),_.setOnError(pn),_.setScriptTarget(fn),_.setLanguageVariant(je(Et))}function j(){_.setText(""),_.setOnError(void 0),ne=void 0,T=void 0,v=void 0,O=void 0,pe=void 0,De=void 0}function Pe(W,fn,Un,Et){var pr=X(W);return pr&&(Z|=8388608),T=In(W,fn,Et,pr),T.flags=Z,yn(),$(T,pe),Q(T,Xr),T.statements=ji(0,ts),e.Debug.assert(oe()===1),T.endOfFileToken=a($t()),p(T),T.nodeCount=S,T.identifierCount=U,T.identifiers=v,T.parseDiagnostics=ne,Un&&Ze(T),T;function Xr(ei,ps,u){ne.push(e.createFileDiagnostic(T,ei,ps,u))}}function a(W){e.Debug.assert(!W.jsDoc);var fn=e.mapDefined(e.getJSDocCommentRanges(W,T.text),function(Un){return fi.parseJSDocComment(W,Un.pos,Un.end-Un.pos)});return fn.length&&(W.jsDoc=fn),W}function Ze(W){var fn=W;J(W,Un);return;function Un(Et){if(Et.parent!==fn){Et.parent=fn;var pr=fn;if(fn=Et,J(Et,Un),e.hasJSDocNodes(Et))for(var Xr=0,ei=Et.jsDoc;Xr<ei.length;Xr++){var ps=ei[Xr];ps.parent=Et,fn=ps,J(ps,Un)}fn=pr}}}m.fixupParentReferences=Ze;function In(W,fn,Un,Et){var pr=new k(288,0,pe.length);return S++,pr.text=pe,pr.bindDiagnostics=[],pr.bindSuggestionDiagnostics=void 0,pr.languageVersion=fn,pr.fileName=e.normalizePath(W),pr.languageVariant=je(Un),pr.isDeclarationFile=Et,pr.scriptKind=Un,pr}function et(W,fn){W?Z|=fn:Z&=~fn}function ae(W){et(W,4096)}function fe(W){et(W,8192)}function Le(W){et(W,16384)}function Je(W){et(W,32768)}function $e(W,fn){var Un=W&Z;if(Un){et(!1,Un);var Et=fn();return et(!0,Un),Et}return fn()}function Fe(W,fn){var Un=W&~Z;if(Un){et(!0,Un);var Et=fn();return et(!1,Un),Et}return fn()}function cn(W){return $e(4096,W)}function Qe(W){return Fe(4096,W)}function ln(W){return Fe(8192,W)}function ye(W){return Fe(16384,W)}function ke(W){return Fe(32768,W)}function F(W){return $e(32768,W)}function c(W){return Fe(8192|32768,W)}function L(W){return(Z&W)!==0}function te(){return L(8192)}function Se(){return L(4096)}function Ne(){return L(16384)}function ze(){return L(32768)}function Tn(W,fn){jn(_.getTokenPos(),_.getTextPos(),W,fn)}function wn(W,fn,Un,Et){var pr=e.lastOrUndefined(ne);(!pr||W!==pr.start)&&ne.push(e.createFileDiagnostic(T,W,fn,Un,Et)),Re=!0}function jn(W,fn,Un,Et){wn(W,fn-W,Un,Et)}function nn(W,fn,Un){jn(W.pos,W.end,fn,Un)}function pn(W,fn){wn(_.getTextPos(),fn,W)}function le(){return _.getStartPos()}function oe(){return Y}function Cn(){return Y=_.scan()}function yn(){return e.isKeyword(Y)&&(_.hasUnicodeEscape()||_.hasExtendedUnicodeEscape())&&jn(_.getTokenPos(),_.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),Cn()}function _e(){return Y=_.scanJsDocToken()}function dn(){return Y=_.reScanGreaterToken()}function un(){return Y=_.reScanSlashToken()}function Rn(){return Y=_.reScanTemplateToken()}function at(){return Y=_.reScanLessThanToken()}function Bn(){return Y=_.scanJsxIdentifier()}function ut(){return Y=_.scanJsxToken()}function ct(){return Y=_.scanJsxAttributeValue()}function ot(W,fn){var Un=Y,Et=ne.length,pr=Re,Xr=Z,ei=fn?_.lookAhead(W):_.tryScan(W);return e.Debug.assert(Xr===Z),(!ei||fn)&&(Y=Un,ne.length=Et,Re=pr),ei}function dt(W){return ot(W,!0)}function Ct(W){return ot(W,!1)}function st(){return oe()===75?!0:oe()===120&&te()||oe()===126&&ze()?!1:oe()>111}function Kn(W,fn,Un){return Un===void 0&&(Un=!0),oe()===W?(Un&&yn(),!0):(fn?Tn(fn):Tn(e.Diagnostics._0_expected,e.tokenToString(W)),!1)}function Ie(W){return oe()===W?(_e(),!0):(Tn(e.Diagnostics._0_expected,e.tokenToString(W)),!1)}function Ce(W){return oe()===W?(yn(),!0):!1}function _n(W){return oe()===W?$t():void 0}function yt(W){return oe()===W?wr():void 0}function Dt(W,fn,Un){return _n(W)||Vt(W,!1,fn||e.Diagnostics._0_expected,Un||e.tokenToString(W))}function Ht(W){return yt(W)||Vt(W,!1,e.Diagnostics._0_expected,e.tokenToString(W))}function $t(){var W=mt(oe());return yn(),Wn(W)}function wr(){var W=mt(oe());return _e(),Wn(W)}function Yr(){return oe()===26?!0:oe()===19||oe()===1||_.hasPrecedingLineBreak()}function Hr(){return Yr()?(oe()===26&&yn(),!0):Kn(26)}function mt(W,fn){S++;var Un=fn>=0?fn:_.getStartPos();return e.isNodeKind(W)||W===0?new D(W,Un,Un):W===75?new E(W,Un,Un):new y(W,Un,Un)}function va(W,fn){var Un=mt(W,fn);return _.getTokenFlags()&2&&a(Un),Un}function Lt(W,fn,Un){var Et=W.length,pr=Et>=1&&Et<=4?W.slice():W;return pr.pos=fn,pr.end=Un===void 0?_.getStartPos():Un,pr}function Wn(W,fn){return W.end=fn===void 0?_.getStartPos():fn,Z&&(W.flags|=Z),Re&&(Re=!1,W.flags|=65536),W}function Vt(W,fn,Un,Et){fn?wn(_.getStartPos(),0,Un,Et):Un&&Tn(Un,Et);var pr=mt(W);return W===75?pr.escapedText="":(e.isLiteralKind(W)||e.isTemplateLiteralKind(W))&&(pr.text=""),Wn(pr)}function pt(W){var fn=v.get(W);return fn===void 0&&v.set(W,fn=W),fn}function Tt(W,fn){if(U++,W){var Un=mt(75);return oe()!==75&&(Un.originalKeywordKind=oe()),Un.escapedText=e.escapeLeadingUnderscores(pt(_.getTokenValue())),Cn(),Wn(Un)}var Et=oe()===1,pr=_.isReservedWord(),Xr=_.getTokenText(),ei=pr?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Vt(75,Et,fn||ei,Xr)}function ht(W){return Tt(st(),W)}function bt(W){return Tt(e.tokenIsIdentifierOrKeyword(oe()),W)}function Ke(){return e.tokenIsIdentifierOrKeyword(oe())||oe()===10||oe()===8}function Pn(W){if(oe()===10||oe()===8){var fn=Ia();return fn.text=pt(fn.text),fn}return W&&oe()===22?rr():bt()}function $n(){return Pn(!0)}function rr(){var W=mt(153);return Kn(22),W.expression=cn(vr),Kn(23),Wn(W)}function xa(W){return oe()===W&&Ct(ri)}function Fa(){return yn(),_.hasPrecedingLineBreak()?!1:xi()}function ri(){switch(oe()){case 80:return yn()===87;case 88:return yn(),oe()===83?dt(vi):oe()!==41&&oe()!==122&&oe()!==18&&xi();case 83:return vi();case 119:case 130:case 141:return yn(),xi();default:return Fa()}}function Si(){return e.isModifierKind(oe())&&Ct(ri)}function xi(){return oe()===22||oe()===18||oe()===41||oe()===25||Ke()}function vi(){return yn(),oe()===79||oe()===93||oe()===113||oe()===121&&dt(os)||oe()===125&&dt(ar)}function Oi(W,fn){var Un=Ao(W);if(Un)return!0;switch(W){case 0:case 1:case 3:return!(oe()===26&&fn)&&mo();case 2:return oe()===77||oe()===83;case 4:return dt(hl);case 5:return dt(xc)||oe()===26&&!fn;case 6:return oe()===22||Ke();case 12:switch(oe()){case 22:case 41:case 25:case 24:return!0;default:return Ke()}case 18:return Ke();case 9:return oe()===22||oe()===25||Ke();case 7:return oe()===18?dt(Ja):fn?st()&&!Vo():En()&&!Vo();case 8:return Ys();case 10:return oe()===27||oe()===25||Ys();case 19:return st();case 15:switch(oe()){case 27:case 24:return!0}case 11:return oe()===25||Zn();case 16:return Wa(!1);case 17:return Wa(!0);case 20:case 21:return oe()===27||Dr();case 22:return Nu();case 23:return e.tokenIsIdentifierOrKeyword(oe());case 13:return e.tokenIsIdentifierOrKeyword(oe())||oe()===18;case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Ja(){if(e.Debug.assert(oe()===18),yn()===19){var W=yn();return W===27||W===18||W===89||W===112}return!0}function Ka(){return yn(),st()}function ua(){return yn(),e.tokenIsIdentifierOrKeyword(oe())}function bi(){return yn(),e.tokenIsIdentifierOrKeywordOrGreaterThan(oe())}function Vo(){return oe()===112||oe()===89?dt(wo):!1}function wo(){return yn(),Zn()}function Mo(){return yn(),Dr()}function uo(W){if(oe()===1)return!0;switch(W){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return oe()===19;case 3:return oe()===19||oe()===77||oe()===83;case 7:return oe()===18||oe()===89||oe()===112;case 8:return ci();case 19:return oe()===31||oe()===20||oe()===18||oe()===89||oe()===112;case 11:return oe()===21||oe()===26;case 15:case 21:case 10:return oe()===23;case 17:case 16:case 18:return oe()===21||oe()===23;case 20:return oe()!==27;case 22:return oe()===18||oe()===19;case 13:return oe()===31||oe()===43;case 14:return oe()===29&&dt(ol);default:return!1}}function ci(){return Yr()||gc(oe())?!0:oe()===38}function Gi(){for(var W=0;W<24;W++)if(ue&1<<W&&(Oi(W,!0)||uo(W)))return!0;return!1}function ji(W,fn){var Un=ue;ue|=1<<W;for(var Et=[],pr=le();!uo(W);){if(Oi(W,!1)){var Xr=Ro(W,fn);Et.push(Xr);continue}if(Li(W))break}return ue=Un,Lt(Et,pr)}function Ro(W,fn){var Un=Ao(W);return Un?_o(Un):fn()}function Ao(W){if(!O||!Ri(W)||Re)return;var fn=O.currentNode(_.getStartPos());if(e.nodeIsMissing(fn)||fn.intersectsChange||e.containsParseError(fn))return;var Un=fn.flags&25358336;return Un!==Z?void 0:xt(fn,W)?(fn.jsDocCache&&(fn.jsDocCache=void 0),fn):void 0}function _o(W){return _.setTextPos(W.end),yn(),W}function Ri(W){switch(W){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function xt(W,fn){switch(fn){case 5:return Kt(W);case 2:return yr(W);case 0:case 1:case 3:return Jr(W);case 6:return _a(W);case 4:return La(W);case 8:return qr(W);case 17:case 16:return pi(W)}return!1}function Kt(W){if(W)switch(W.kind){case 161:case 166:case 162:case 163:case 158:case 221:return!0;case 160:var fn=W,Un=fn.name.kind===75&&fn.name.originalKeywordKind===128;return!Un}return!1}function yr(W){if(W)switch(W.kind){case 275:case 276:return!0}return!1}function Jr(W){if(W)switch(W.kind){case 243:case 224:case 222:case 226:case 225:case 238:case 234:case 236:case 233:case 232:case 230:case 231:case 229:case 228:case 235:case 223:case 239:case 237:case 227:case 240:case 253:case 252:case 259:case 258:case 248:case 244:case 245:case 247:case 246:return!0}return!1}function _a(W){return W.kind===282}function La(W){if(W)switch(W.kind){case 165:case 159:case 166:case 157:case 164:return!0}return!1}function qr(W){if(W.kind!==241)return!1;var fn=W;return fn.initializer===void 0}function pi(W){if(W.kind!==155)return!1;var fn=W;return fn.initializer===void 0}function Li(W){return Tn(mi(W)),Gi()?!0:(yn(),!1)}function mi(W){switch(W){case 0:return e.Diagnostics.Declaration_or_statement_expected;case 1:return e.Diagnostics.Declaration_or_statement_expected;case 2:return e.Diagnostics.case_or_default_expected;case 3:return e.Diagnostics.Statement_expected;case 18:case 4:return e.Diagnostics.Property_or_signature_expected;case 5:return e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected;case 6:return e.Diagnostics.Enum_member_expected;case 7:return e.Diagnostics.Expression_expected;case 8:return e.Diagnostics.Variable_declaration_expected;case 9:return e.Diagnostics.Property_destructuring_pattern_expected;case 10:return e.Diagnostics.Array_element_destructuring_pattern_expected;case 11:return e.Diagnostics.Argument_expression_expected;case 12:return e.Diagnostics.Property_assignment_expected;case 15:return e.Diagnostics.Expression_or_comma_expected;case 17:return e.Diagnostics.Parameter_declaration_expected;case 16:return e.Diagnostics.Parameter_declaration_expected;case 19:return e.Diagnostics.Type_parameter_declaration_expected;case 20:return e.Diagnostics.Type_argument_expected;case 21:return e.Diagnostics.Type_expected;case 22:return e.Diagnostics.Unexpected_token_expected;case 23:return e.Diagnostics.Identifier_expected;case 13:return e.Diagnostics.Identifier_expected;case 14:return e.Diagnostics.Identifier_expected;default:return}}function da(W,fn,Un){var Et=ue;ue|=1<<W;for(var pr=[],Xr=le(),ei=-1;;){if(Oi(W,!1)){var ps=_.getStartPos();if(pr.push(Ro(W,fn)),ei=_.getTokenPos(),Ce(27))continue;if(ei=-1,uo(W))break;Kn(27,en(W)),Un&&oe()===26&&!_.hasPrecedingLineBreak()&&yn(),ps===_.getStartPos()&&yn();continue}if(uo(W))break;if(Li(W))break}ue=Et;var u=Lt(pr,Xr);return ei>=0&&(u.hasTrailingComma=!0),u}function en(W){return W===6?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function vn(){var W=Lt([],le());return W.isMissingList=!0,W}function Ln(W){return!!W.isMissingList}function Vn(W,fn,Un,Et){if(Kn(Un)){var pr=da(W,fn);return Kn(Et),pr}return vn()}function Mt(W,fn){for(var Un=W?bt(fn):ht(fn),Et=_.getStartPos();Ce(24);){if(oe()===29){Un.jsdocDotPos=Et;break}Et=_.getStartPos(),Un=tr(Un,dr(W))}return Un}function tr(W,fn){var Un=mt(152,W.pos);return Un.left=W,Un.right=fn,Wn(Un)}function dr(W){if(_.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(oe())){var fn=dt(tc);if(fn)return Vt(75,!0,e.Diagnostics.Identifier_expected)}return W?bt():ht()}function Pr(){var W=mt(210);W.head=Ii(),e.Debug.assert(W.head.kind===15,"Template head has wrong token kind");var fn=[],Un=le();do fn.push(za());while(e.last(fn).literal.kind===16);return W.templateSpans=Lt(fn,Un),Wn(W)}function za(){var W=mt(220);W.expression=cn(vr);var fn;return oe()===19?(Rn(),fn=ai()):fn=Dt(17,e.Diagnostics._0_expected,e.tokenToString(19)),W.literal=fn,Wn(W)}function Ia(){return hi(oe())}function Ii(){var W=hi(oe());return e.Debug.assert(W.kind===15,"Template head has wrong token kind"),W}function ai(){var W=hi(oe());return e.Debug.assert(W.kind===16||W.kind===17,"Template fragment has wrong token kind"),W}function hi(W){var fn=mt(W);fn.text=_.getTokenValue();switch(W){case 14:case 15:case 16:case 17:var Un=W===14||W===17,Et=_.getTokenText();fn.rawText=Et.substring(1,Et.length-(_.isUnterminated()?0:Un?1:2));break}return _.hasExtendedUnicodeEscape()&&(fn.hasExtendedUnicodeEscape=!0),_.isUnterminated()&&(fn.isUnterminated=!0),fn.kind===8&&(fn.numericLiteralFlags=_.getTokenFlags()&1008),yn(),Wn(fn),fn}function Xe(){var W=mt(168);return W.typeName=Mt(!0,e.Diagnostics.Type_expected),!_.hasPrecedingLineBreak()&&at()===29&&(W.typeArguments=Vn(20,Ga,29,31)),Wn(W)}function qn(W){switch(W.kind){case 168:return e.nodeIsMissing(W.typeName);case 169:case 170:{var fn=W,Un=fn.parameters,Et=fn.type;return Ln(Un)||qn(Et)}case 181:return qn(W.type);default:return!1}}function ge(W){yn();var fn=mt(167,W.pos);return fn.parameterName=W,fn.type=Ga(),Wn(fn)}function hn(){var W=mt(182);return yn(),Wn(W)}function Hn(W){var fn=mt(293);return W?Er(297,fn):(yn(),Wn(fn))}function de(){var W=mt(296);return yn(),W.type=Kr(),Wn(W)}function rn(){var W=_.getStartPos();if(yn(),oe()===27||oe()===19||oe()===21||oe()===31||oe()===62||oe()===51){var fn=mt(294,W);return Wn(fn)}else{var fn=mt(295,W);return fn.type=Ga(),Wn(fn)}}function kn(){if(dt(Ou)){var W=va(298);return yn(),ha(58,4|32,W),Wn(W)}var fn=mt(168);return fn.typeName=bt(),Wn(fn)}function Qn(){var W=mt(155);return(oe()===103||oe()===98)&&(W.name=bt(),Kn(58)),W.type=lt(),Wn(W)}function lt(){_.setInJSDocType(!0);var W=_n(134);if(W){var fn=mt(300,W.pos);e:for(;;)switch(oe()){case 19:case 1:case 27:case 5:break e;default:_e()}return _.setInJSDocType(!1),Wn(fn)}var Un=_n(25),Et=bo();if(_.setInJSDocType(!1),Un){var pr=mt(299,Un.pos);pr.type=Et,Et=Wn(pr)}return oe()===62?Er(297,Et):Et}function Ft(){var W=mt(171);return Kn(107),W.exprName=Mt(!0),Wn(W)}function on(){var W=mt(154);return W.name=ht(),Ce(89)&&(Dr()||!Zn()?W.constraint=Ga():W.expression=Nl()),Ce(62)&&(W.default=Ga()),Wn(W)}function kr(){if(oe()===29)return Vn(19,on,29,31)}function fa(){return Ce(58)?Ga():void 0}function Wa(W){return oe()===25||Ys()||e.isModifierKind(oe())||oe()===59||Dr(!W)}function to(){var W=va(155);return oe()===103?(W.name=Tt(!0),W.type=fa(),Wn(W)):(W.decorators=cs(),W.modifiers=Vs(),W.dotDotDotToken=_n(25),W.name=Ol(),e.getFullWidth(W.name)===0&&!e.hasModifiers(W)&&e.isModifierKind(oe())&&yn(),W.questionToken=_n(57),W.type=fa(),W.initializer=ga(),Wn(W))}function ha(W,fn,Un){fn&32||(Un.typeParameters=kr());var Et=ko(Un,fn);return Yo(W,!!(fn&4))&&(Un.type=bo(),qn(Un.type))?!1:Et}function Yo(W,fn){return W===38?(Kn(W),!0):Ce(58)?!0:fn&&oe()===38?(Tn(e.Diagnostics._0_expected,e.tokenToString(58)),yn(),!0):!1}function ko(W,fn){if(!Kn(20))return W.parameters=vn(),!1;var Un=te(),Et=ze();return fe(!!(fn&1)),Je(!!(fn&2)),W.parameters=fn&32?da(17,Qn):da(16,to),fe(Un),Je(Et),Kn(21)}function ks(){if(Ce(27))return;Hr()}function Rs(W){var fn=va(W);return W===165&&Kn(98),ha(58,4,fn),ks(),Wn(fn)}function ml(){return oe()===22&&dt(Fs)}function Fs(){if(yn(),oe()===25||oe()===23)return!0;if(e.isModifierKind(oe())){if(yn(),st())return!0}else if(st())yn();else return!1;return oe()===58||oe()===27?!0:oe()!==57?!1:(yn(),oe()===58||oe()===27||oe()===23)}function Il(W){return W.kind=166,W.parameters=Vn(16,to,22,23),W.type=me(),ks(),Wn(W)}function $o(W){return W.name=$n(),W.questionToken=_n(57),oe()===20||oe()===29?(W.kind=159,ha(58,4,W)):(W.kind=157,W.type=me(),oe()===62&&(W.initializer=ga())),ks(),Wn(W)}function hl(){if(oe()===20||oe()===29)return!0;for(var W=!1;e.isModifierKind(oe());)W=!0,yn();return oe()===22?!0:(Ke()&&(W=!0,yn()),W?oe()===20||oe()===29||oe()===57||oe()===58||oe()===27||Yr():!1)}function Ul(){if(oe()===20||oe()===29)return Rs(164);if(oe()===98&&dt(gl))return Rs(165);var W=va(0);return W.modifiers=Vs(),ml()?Il(W):$o(W)}function gl(){return yn(),oe()===20||oe()===29}function po(){return yn()===24}function Cs(){switch(yn()){case 20:case 29:case 24:return!0}return!1}function Ds(){var W=mt(172);return W.members=_s(),Wn(W)}function _s(){var W;return Kn(18)?(W=ji(4,Ul),Kn(19)):W=vn(),W}function yl(){return yn(),oe()===39||oe()===40?yn()===137:(oe()===137&&yn(),oe()===22&&Ka()&&yn()===96)}function Ks(){var W=mt(154);return W.name=ht(),Kn(96),W.constraint=Ga(),Wn(W)}function qs(){var W=mt(185);return Kn(18),(oe()===137||oe()===39||oe()===40)&&(W.readonlyToken=$t(),W.readonlyToken.kind!==137&&Dt(137)),Kn(22),W.typeParameter=Ks(),Kn(23),(oe()===57||oe()===39||oe()===40)&&(W.questionToken=$t(),W.questionToken.kind!==57&&Dt(57)),W.type=me(),Hr(),Kn(19),Wn(W)}function $s(){var W=le();if(Ce(25)){var fn=mt(176,W);return fn.type=Ga(),Wn(fn)}var Un=Ga();return!(Z&4194304)&&Un.kind===295&&Un.pos===Un.type.pos&&(Un.kind=175),Un}function el(){var W=mt(174);return W.elementTypes=Vn(21,$s,22,23),Wn(W)}function nl(){var W=mt(181);return Kn(20),W.type=Ga(),Kn(21),Wn(W)}function Fn(){var W=le(),fn=Ce(98)?170:169,Un=va(fn,W);return ha(38,4,Un),Wn(Un)}function Yn(){var W=$t();return oe()===24?void 0:W}function gt(W){var fn=mt(186),Un;W&&(Un=mt(206),Un.operator=40,yn());var Et=oe()===105||oe()===90?$t():hi(oe());return W&&(Un.operand=Et,Wn(Un),Et=Un),fn.literal=Et,Wn(fn)}function tt(){return yn(),oe()===95}function Xt(){T.flags|=1048576;var W=mt(187);return Ce(107)&&(W.isTypeOf=!0),Kn(95),Kn(20),W.argument=Ga(),Kn(21),Ce(24)&&(W.qualifier=Mt(!0,e.Diagnostics.Type_expected)),!_.hasPrecedingLineBreak()&&at()===29&&(W.typeArguments=Vn(20,Ga,29,31)),Wn(W)}function _r(){return yn(),oe()===8||oe()===9}function Kr(){switch(oe()){case 124:case 147:case 142:case 139:case 150:case 143:case 127:case 145:case 136:case 140:return Ct(Yn)||Xe();case 41:return Hn(!1);case 65:return Hn(!0);case 60:_.reScanQuestionToken();case 57:return rn();case 93:return kn();case 53:return de();case 14:case 10:case 8:case 9:case 105:case 90:return gt();case 40:return dt(_r)?gt(!0):Xe();case 109:case 99:return $t();case 103:{var W=hn();return oe()===132&&!_.hasPrecedingLineBreak()?ge(W):W}case 107:return dt(tt)?Xt():Ft();case 18:return dt(yl)?qs():Ds();case 22:return el();case 20:return nl();case 95:return Xt();case 123:return dt(tc)?Ho():Xe();default:return Xe()}}function Dr(W){switch(oe()){case 124:case 147:case 142:case 139:case 150:case 127:case 137:case 143:case 146:case 109:case 145:case 99:case 103:case 107:case 136:case 18:case 22:case 29:case 51:case 50:case 98:case 10:case 8:case 9:case 105:case 90:case 140:case 41:case 57:case 53:case 25:case 131:case 95:case 123:return!0;case 93:return!W;case 40:return!W&&dt(_r);case 20:return!W&&dt(Ir);default:return st()}}function Ir(){return yn(),oe()===21||Wa(!1)||Dr()}function Mr(){for(var W=Kr();!_.hasPrecedingLineBreak();)switch(oe()){case 53:W=Er(296,W);break;case 57:if(!(Z&4194304)&&dt(Mo))return W;W=Er(295,W);break;case 22:if(Kn(22),Dr()){var fn=mt(184,W.pos);fn.objectType=W,fn.indexType=Ga(),Kn(23),W=Wn(fn)}else{var fn=mt(173,W.pos);fn.elementType=W,Kn(23),W=Wn(fn)}break;default:return W}return W}function Er(W,fn){yn();var Un=mt(W,fn.pos);return Un.type=fn,Wn(Un)}function pa(W){var fn=mt(183);return Kn(W),fn.operator=W,fn.type=Ma(),Wn(fn)}function Ca(){var W=mt(180);Kn(131);var fn=mt(154);return fn.name=ht(),W.typeParameter=Wn(fn),Wn(W)}function Ma(){var W=oe();switch(W){case 133:case 146:case 137:return pa(W);case 131:return Ca()}return Mr()}function gi(W,fn,Un){var Et=_.getStartPos(),pr=Ce(Un),Xr=fn();if(oe()===Un||pr){for(var ei=[Xr];Ce(Un);)ei.push(fn());var ps=mt(W,Et);ps.types=Lt(ei,Et),Xr=Wn(ps)}return Xr}function vo(){return gi(178,Ma,50)}function di(){return gi(177,vo,51)}function Lo(){return oe()===29?!0:oe()===20&&dt(xn)}function Ki(){if(e.isModifierKind(oe())&&Vs(),st()||oe()===103)return yn(),!0;if(oe()===22||oe()===18){var W=ne.length;return Ol(),W===ne.length}return!1}function xn(){if(yn(),oe()===21||oe()===25)return!0;if(Ki()){if(oe()===58||oe()===27||oe()===57||oe()===62)return!0;if(oe()===21&&(yn(),oe()===38))return!0}return!1}function bo(){var W=st()&&Ct(Fo),fn=Ga();if(W){var Un=mt(167,W.pos);return Un.assertsModifier=void 0,Un.parameterName=W,Un.type=fn,Wn(Un)}else return fn}function Fo(){var W=ht();if(oe()===132&&!_.hasPrecedingLineBreak())return yn(),W}function Ho(){var W=mt(167);return W.assertsModifier=Dt(123),W.parameterName=oe()===103?hn():ht(),W.type=Ce(132)?Ga():void 0,Wn(W)}function Ga(){return $e(40960,vs)}function vs(W){if(Lo()||oe()===98)return Fn();var fn=di();if(!W&&!_.hasPrecedingLineBreak()&&Ce(89)){var Un=mt(179,fn.pos);return Un.checkType=fn,Un.extendsType=vs(!0),Kn(57),Un.trueType=vs(),Kn(58),Un.falseType=vs(),Wn(Un)}return fn}function me(){return Ce(58)?Ga():void 0}function En(){switch(oe()){case 103:case 101:case 99:case 105:case 90:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 93:case 79:case 98:case 43:case 67:case 75:return!0;case 95:return dt(Cs);default:return st()}}function Zn(){if(En())return!0;switch(oe()){case 39:case 40:case 54:case 53:case 84:case 107:case 109:case 45:case 46:case 29:case 126:case 120:return!0;default:return rl()?!0:st()}}function Gt(){return oe()!==18&&oe()!==93&&oe()!==79&&oe()!==59&&Zn()}function vr(){var W=Ne();W&&Le(!1);for(var fn=ii(),Un;Un=_n(27);)fn=Js(fn,Un,ii());return W&&Le(!0),fn}function ga(){return Ce(62)?ii():void 0}function ii(){if(qa())return eo();var W=Lr()||Qo();if(W)return W;var fn=_l(0);return fn.kind===75&&oe()===38?na(fn):e.isLeftHandSideExpression(fn)&&e.isAssignmentOperator(dn())?Js(fn,$t(),ii()):Nc(fn)}function qa(){return oe()===120?te()?!0:dt(il):!1}function wi(){return yn(),!_.hasPrecedingLineBreak()&&st()}function eo(){var W=mt(211);return yn(),!_.hasPrecedingLineBreak()&&(oe()===41||Zn())&&(W.asteriskToken=_n(41),W.expression=ii()),Wn(W)}function na(W,fn){e.Debug.assert(oe()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var Un;fn?(Un=mt(201,fn.pos),Un.modifiers=fn):Un=mt(201,W.pos);var Et=mt(155,W.pos);return Et.name=W,Wn(Et),Un.parameters=Lt([Et],Et.pos,Et.end),Un.equalsGreaterThanToken=Dt(38),Un.body=Gs(!!fn),a(Wn(Un))}function Lr(){var W=Eo();if(W===0)return;var fn=W===1?Os(!0):Ct(tl);if(!fn)return;var Un=e.hasModifier(fn,256),Et=oe();return fn.equalsGreaterThanToken=Dt(38),fn.body=Et===38||Et===18?Gs(Un):ht(),Wn(fn)}function Eo(){return oe()===20||oe()===29||oe()===125?dt(Uo):oe()===38?1:0}function Uo(){if(oe()===125){if(yn(),_.hasPrecedingLineBreak())return 0;if(oe()!==20&&oe()!==29)return 0}var W=oe(),fn=yn();if(W===20){if(fn===21){var Un=yn();switch(Un){case 38:case 58:case 18:return 1;default:return 0}}if(fn===22||fn===18)return 2;if(fn===25)return 1;if(e.isModifierKind(fn)&&fn!==125&&dt(Ka))return 1;if(!st()&&fn!==103)return 0;switch(yn()){case 58:return 1;case 57:return yn(),oe()===58||oe()===27||oe()===62||oe()===21?1:0;case 27:case 62:case 21:return 2}return 0}else{if(e.Debug.assert(W===29),!st())return 0;if(T.languageVariant===1){var Et=dt(function(){var pr=yn();if(pr===89){var Xr=yn();switch(Xr){case 62:case 31:return!1;default:return!0}}else if(pr===27)return!0;return!1});return Et?1:0}return 2}}function tl(){var W=_.getTokenPos();if(De&&De.has(W.toString()))return;var fn=Os(!1);return fn||(De||(De=e.createMap())).set(W.toString(),!0),fn}function Qo(){if(oe()===125&&dt(lo)===1){var W=es(),fn=_l(0);return na(fn,W)}return}function lo(){if(oe()===125){if(yn(),_.hasPrecedingLineBreak()||oe()===38)return 0;var W=_l(0);if(!_.hasPrecedingLineBreak()&&W.kind===75&&oe()===38)return 1}return 0}function Os(W){var fn=va(201);fn.modifiers=es();var Un=e.hasModifier(fn,256)?2:0;if(!ha(58,Un,fn)&&!W)return;var Et=fn.type&&e.isJSDocFunctionType(fn.type);return!W&&oe()!==38&&(Et||oe()!==18)?void 0:fn}function Gs(W){return oe()===18?Da(W?2:0):oe()!==26&&oe()!==93&&oe()!==79&&mo()&&!Gt()?Da(16|(W?2:0)):W?ke(ii):F(ii)}function Nc(W){var fn=_n(57);if(!fn)return W;var Un=mt(209,W.pos);return Un.condition=W,Un.questionToken=fn,Un.whenTrue=$e(I,ii),Un.colonToken=Dt(58),Un.whenFalse=e.nodeIsPresent(Un.colonToken)?ii():Vt(75,!1,e.Diagnostics._0_expected,e.tokenToString(58)),Wn(Un)}function _l(W){var fn=Nl();return Ql(W,fn)}function gc(W){return W===96||W===151}function Ql(W,fn){for(;;){dn();var Un=e.getBinaryOperatorPrecedence(oe()),Et=oe()===42?Un>=W:Un>W;if(!Et)break;if(oe()===96&&Se())break;if(oe()===122){if(_.hasPrecedingLineBreak())break;yn(),fn=Oc(fn,Ga())}else fn=Js(fn,$t(),_l(Un))}return fn}function rl(){return Se()&&oe()===96?!1:e.getBinaryOperatorPrecedence(oe())>0}function Js(W,fn,Un){var Et=mt(208,W.pos);return Et.left=W,Et.operatorToken=fn,Et.right=Un,Wn(Et)}function Oc(W,fn){var Un=mt(216,W.pos);return Un.expression=W,Un.type=fn,Wn(Un)}function au(){var W=mt(206);return W.operator=oe(),yn(),W.operand=bs(),Wn(W)}function Pc(){var W=mt(202);return yn(),W.expression=bs(),Wn(W)}function iu(){var W=mt(203);return yn(),W.expression=bs(),Wn(W)}function Zl(){var W=mt(204);return yn(),W.expression=bs(),Wn(W)}function zs(){return oe()===126?ze()?!0:dt(il):!1}function Mc(){var W=mt(205);return yn(),W.expression=bs(),Wn(W)}function Nl(){if(Rc()){var W=$l();return oe()===42?Ql(e.getBinaryOperatorPrecedence(oe()),W):W}var fn=oe(),Un=bs();if(oe()===42){var Et=e.skipTrivia(pe,Un.pos),pr=Un.end;Un.kind===198?jn(Et,pr,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):jn(Et,pr,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 Un}function bs(){switch(oe()){case 39:case 40:case 54:case 53:return au();case 84:return Pc();case 107:return iu();case 109:return Zl();case 29:return Xs();case 126:if(zs())return Mc();default:return $l()}}function Rc(){switch(oe()){case 39:case 40:case 54:case 53:case 84:case 107:case 109:case 126:return!1;case 29:if(T.languageVariant!==1)return!1;default:return!0}}function $l(){if(oe()===45||oe()===46){var W=mt(206);return W.operator=oe(),yn(),W.operand=yc(),Wn(W)}else if(T.languageVariant===1&&oe()===29&&dt(bi))return su(!0);var fn=yc();if(e.Debug.assert(e.isLeftHandSideExpression(fn)),(oe()===45||oe()===46)&&!_.hasPrecedingLineBreak()){var W=mt(207,fn.pos);return W.operand=fn,W.operator=oe(),yn(),Wn(W)}return fn}function yc(){var W;if(oe()===95)if(dt(gl))T.flags|=1048576,W=$t();else if(dt(po)){var fn=_.getStartPos();yn(),yn();var Un=mt(218,fn);Un.keywordToken=95,Un.name=bt(),W=Wn(Un),T.flags|=2097152}else W=ou();else W=oe()===101?Lu():ou();return kt(W)}function ou(){var W=hr();return an(W,!0)}function Lu(){var W=$t();if(oe()===29){var fn=le(),Un=Ct(It);Un!==void 0&&jn(fn,le(),e.Diagnostics.super_may_not_use_type_arguments)}if(oe()===20||oe()===24||oe()===22)return W;var Et=mt(193,W.pos);return Et.expression=W,Dt(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Et.name=dr(!0),Wn(Et)}function su(W){var fn=_c(W),Un;if(fn.kind===266){var Et=mt(264,fn.pos);Et.openingElement=fn,Et.children=Fc(Et.openingElement),Et.closingElement=Vc(W),K(Et.openingElement.tagName,Et.closingElement.tagName)||nn(Et.closingElement,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(pe,Et.openingElement.tagName)),Un=Wn(Et)}else if(fn.kind===269){var Et=mt(268,fn.pos);Et.openingFragment=fn,Et.children=Fc(Et.openingFragment),Et.closingFragment=al(W),Un=Wn(Et)}else e.Debug.assert(fn.kind===265),Un=fn;if(W&&oe()===29){var pr=Ct(function(){return su(!0)});if(pr){Tn(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var Xr=mt(208,Un.pos);return Xr.end=pr.end,Xr.left=Un,Xr.right=pr,Xr.operatorToken=Vt(27,!1),Xr.operatorToken.pos=Xr.operatorToken.end=Xr.right.pos,Xr}}return Un}function lu(){var W=mt(11);return W.text=_.getTokenValue(),W.containsOnlyTriviaWhiteSpaces=Y===12,Y=_.scanJsxToken(),Wn(W)}function cu(W,fn){switch(fn){case 1:e.isJsxOpeningFragment(W)?nn(W,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag):nn(W.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(pe,W.tagName));return;case 30:case 7:return;case 11:case 12:return lu();case 18:return uu(!1);case 29:return su(!1);default:return e.Debug.assertNever(fn)}}function Fc(W){var fn=[],Un=le(),Et=ue;for(ue|=1<<14;;){var pr=cu(W,Y=_.reScanJsxToken());if(!pr)break;fn.push(pr)}return ue=Et,Lt(fn,Un)}function Gc(){var W=mt(272);return W.properties=ji(13,du),Wn(W)}function _c(W){var fn=_.getStartPos();if(Kn(29),oe()===31){var Un=mt(269,fn);return ut(),Wn(Un)}var Et=Bc(),pr=Bi(),Xr=Gc(),ei;return oe()===31?(ei=mt(266,fn),ut()):(Kn(43),W?Kn(31):(Kn(31,void 0,!1),ut()),ei=mt(265,fn)),ei.tagName=Et,ei.typeArguments=pr,ei.attributes=Xr,Wn(ei)}function Bc(){Bn();for(var W=oe()===103?$t():bt();Ce(24);){var fn=mt(193,W.pos);fn.expression=W,fn.name=dr(!0),W=Wn(fn)}return W}function uu(W){var fn=mt(274);return Kn(18)?(oe()!==19&&(fn.dotDotDotToken=_n(25),fn.expression=vr()),W?Kn(19):Kn(19,void 0,!1)&&ut(),Wn(fn)):void 0}function du(){if(oe()===18)return ec();Bn();var W=mt(271);if(W.name=bt(),oe()===62)switch(ct()){case 10:W.initializer=Ia();break;default:W.initializer=uu(!0);break}return Wn(W)}function ec(){var W=mt(273);return Kn(18),Kn(25),W.expression=vr(),Kn(19),Wn(W)}function Vc(W){var fn=mt(267);return Kn(30),fn.tagName=Bc(),W?Kn(31):(Kn(31,void 0,!1),ut()),Wn(fn)}function al(W){var fn=mt(270);return Kn(30),e.tokenIsIdentifierOrKeyword(oe())&&nn(Bc(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),W?Kn(31):(Kn(31,void 0,!1),ut()),Wn(fn)}function Xs(){var W=mt(198);return Kn(29),W.type=Ga(),Kn(31),W.expression=bs(),Wn(W)}function s(){return yn(),e.tokenIsIdentifierOrKeyword(oe())||oe()===22||mn()}function b(){return oe()===28&&dt(s)}function V(W,fn){var Un=mt(193,W.pos);return Un.expression=W,Un.questionDotToken=fn,Un.name=dr(!0),(fn||W.flags&32)&&(Un.flags|=32),Wn(Un)}function Me(W,fn){var Un=mt(194,W.pos);if(Un.expression=W,Un.questionDotToken=fn,oe()===23)Un.argumentExpression=Vt(75,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var Et=cn(vr);e.isStringOrNumericLiteralLike(Et)&&(Et.text=pt(Et.text)),Un.argumentExpression=Et}return Kn(23),(fn||W.flags&32)&&(Un.flags|=32),Wn(Un)}function an(W,fn){for(;;){var Un=void 0,Et=!1;if(fn&&b()?(Un=Dt(28),Et=e.tokenIsIdentifierOrKeyword(oe())):Et=Ce(24),Et){W=V(W,Un);continue}if(!Un&&oe()===53&&!_.hasPrecedingLineBreak()){yn();var pr=mt(217,W.pos);pr.expression=W,W=Wn(pr);continue}if((Un||!Ne())&&Ce(22)){W=Me(W,Un);continue}if(mn()){W=zn(W,Un,void 0);continue}return W}}function mn(){return oe()===14||oe()===15}function zn(W,fn,Un){var Et=mt(197,W.pos);return Et.tag=W,Et.questionDotToken=fn,Et.typeArguments=Un,Et.template=oe()===14?Ia():Pr(),(fn||W.flags&32)&&(Et.flags|=32),Wn(Et)}function kt(W){for(;;){W=an(W,!0);var fn=_n(28);if(oe()===29||oe()===47){var Un=Ct(It);if(Un){if(mn()){W=zn(W,fn,Un);continue}var Et=mt(195,W.pos);Et.expression=W,Et.questionDotToken=fn,Et.typeArguments=Un,Et.arguments=Pt(),(fn||W.flags&32)&&(Et.flags|=32),W=Wn(Et);continue}}else if(oe()===20){var Et=mt(195,W.pos);Et.expression=W,Et.questionDotToken=fn,Et.arguments=Pt(),(fn||W.flags&32)&&(Et.flags|=32),W=Wn(Et);continue}if(fn){var pr=mt(193,W.pos);pr.expression=W,pr.questionDotToken=fn,pr.name=Vt(75,!1,e.Diagnostics.Identifier_expected),pr.flags|=32,W=Wn(pr)}break}return W}function Pt(){Kn(20);var W=da(11,Ba);return Kn(21),W}function It(){if(at()!==29)return;yn();var W=da(20,Ga);return Kn(31)&&(W&&fr())?W:void 0}function fr(){switch(oe()){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 hr(){switch(oe()){case 8:case 9:case 10:case 14:return Ia();case 103:case 101:case 99:case 105:case 90:return $t();case 20:return $r();case 22:return Ai();case 18:return ki();case 125:if(!dt(ar))break;return Qr();case 79:return Qs();case 93:return Qr();case 98:return oa();case 43:case 67:if(un()===13)return Ia();break;case 15:return Pr()}return ht(e.Diagnostics.Expression_expected)}function $r(){var W=va(199);return Kn(20),W.expression=cn(vr),Kn(21),Wn(W)}function ba(){var W=mt(212);return Kn(25),W.expression=ii(),Wn(W)}function ra(){return oe()===25?ba():oe()===27?mt(214):ii()}function Ba(){return $e(I,ra)}function Ai(){var W=mt(191);return Kn(22),_.hasPrecedingLineBreak()&&(W.multiLine=!0),W.elements=da(15,ra),Kn(23),Wn(W)}function $a(){var W=va(0);if(_n(25))return W.kind=281,W.expression=ii(),Wn(W);if(W.decorators=cs(),W.modifiers=Vs(),xa(130))return Pa(W,162);if(xa(141))return Pa(W,163);var fn=_n(41),Un=st();if(W.name=$n(),W.questionToken=_n(57),W.exclamationToken=_n(53),fn||oe()===20||oe()===29)return Xu(W,fn);var Et=Un&&oe()!==58;if(Et){W.kind=280;var pr=_n(62);pr&&(W.equalsToken=pr,W.objectAssignmentInitializer=cn(ii))}else W.kind=279,Kn(58),W.initializer=cn(ii);return Wn(W)}function ki(){var W=mt(192);return Kn(18),_.hasPrecedingLineBreak()&&(W.multiLine=!0),W.properties=da(12,$a,!0),Kn(19),Wn(W)}function Qr(){var W=Ne();W&&Le(!1);var fn=va(200);fn.modifiers=Vs(),Kn(93),fn.asteriskToken=_n(41);var Un=fn.asteriskToken?1:0,Et=e.hasModifier(fn,256)?2:0;return fn.name=Un&&Et?c(ia):Un?ln(ia):Et?ke(ia):ia(),ha(58,Un|Et,fn),fn.body=Da(Un|Et),W&&Le(!0),Wn(fn)}function ia(){return st()?ht():void 0}function oa(){var W=_.getStartPos();if(Kn(98),Ce(24)){var fn=mt(218,W);return fn.keywordToken=98,fn.name=bt(),Wn(fn)}for(var Un=hr(),Et;;){Un=an(Un,!1),Et=Ct(It),mn()&&(e.Debug.assert(!!Et,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),Un=zn(Un,void 0,Et),Et=void 0);break}var pr=mt(196,W);return pr.expression=Un,pr.typeArguments=Et,(pr.typeArguments||oe()===20)&&(pr.arguments=Pt()),Wn(pr)}function sa(W,fn){var Un=mt(222);return Kn(18,fn)||W?(_.hasPrecedingLineBreak()&&(Un.multiLine=!0),Un.statements=ji(1,ts),Kn(19)):Un.statements=vn(),Wn(Un)}function Da(W,fn){var Un=te();fe(!!(W&1));var Et=ze();Je(!!(W&2));var pr=Ne();pr&&Le(!1);var Xr=sa(!!(W&16),fn);return pr&&Le(!0),fe(Un),Je(Et),Xr}function Ha(){var W=mt(223);return Kn(26),Wn(W)}function ti(){var W=mt(226);return Kn(94),Kn(20),W.expression=cn(vr),Kn(21),W.thenStatement=ts(),W.elseStatement=Ce(86)?ts():void 0,Wn(W)}function Qi(){var W=mt(227);return Kn(85),W.statement=ts(),Kn(110),Kn(20),W.expression=cn(vr),Kn(21),Ce(26),Wn(W)}function Za(){var W=mt(228);return Kn(110),Kn(20),W.expression=cn(vr),Kn(21),W.statement=ts(),Wn(W)}function Ls(){var W=le();Kn(92);var fn=_n(126);Kn(20);var Un;oe()!==26&&(oe()===108||oe()===114||oe()===80?Un=qt(!0):Un=Qe(vr));var Et;if(fn?Kn(151):Ce(151)){var pr=mt(231,W);pr.awaitModifier=fn,pr.initializer=Un,pr.expression=cn(ii),Kn(21),Et=pr}else if(Ce(96)){var Xr=mt(230,W);Xr.initializer=Un,Xr.expression=cn(vr),Kn(21),Et=Xr}else{var ei=mt(229,W);ei.initializer=Un,Kn(26),oe()!==26&&oe()!==21&&(ei.condition=cn(vr)),Kn(26),oe()!==21&&(ei.incrementor=cn(vr)),Kn(21),Et=ei}return Et.statement=ts(),Wn(Et)}function zr(W){var fn=mt(W);return Kn(W===233?76:81),Yr()||(fn.label=ht()),Hr(),Wn(fn)}function Zt(){var W=mt(234);return Kn(100),Yr()||(W.expression=cn(vr)),Hr(),Wn(W)}function Ps(){var W=mt(235);return Kn(111),Kn(20),W.expression=cn(vr),Kn(21),W.statement=Fe(16777216,ts),Wn(W)}function zu(){var W=mt(275);return Kn(77),W.expression=cn(vr),Kn(58),W.statements=ji(3,ts),Wn(W)}function fd(){var W=mt(276);return Kn(83),Kn(58),W.statements=ji(3,ts),Wn(W)}function Iu(){return oe()===77?zu():fd()}function vc(){var W=mt(236);Kn(102),Kn(20),W.expression=cn(vr),Kn(21);var fn=mt(250);return Kn(18),fn.clauses=ji(2,Iu),Kn(19),W.caseBlock=Wn(fn),Wn(W)}function nc(){var W=mt(238);return Kn(104),W.expression=_.hasPrecedingLineBreak()?void 0:cn(vr),Hr(),Wn(W)}function cr(){var W=mt(239);return Kn(106),W.tryBlock=sa(!1),W.catchClause=oe()===78?jo():void 0,(!W.catchClause||oe()===91)&&(Kn(91),W.finallyBlock=sa(!1)),Wn(W)}function jo(){var W=mt(278);return Kn(78),Ce(20)?(W.variableDeclaration=Bs(),Kn(21)):W.variableDeclaration=void 0,W.block=sa(!1),Wn(W)}function ya(){var W=mt(240);return Kn(82),Hr(),Wn(W)}function Io(){var W=va(0),fn=cn(vr);return fn.kind===75&&Ce(58)?(W.kind=237,W.label=fn,W.statement=ts()):(W.kind=225,W.expression=fn,Hr()),Wn(W)}function tc(){return yn(),e.tokenIsIdentifierOrKeyword(oe())&&!_.hasPrecedingLineBreak()}function os(){return yn(),oe()===79&&!_.hasPrecedingLineBreak()}function ar(){return yn(),oe()===93&&!_.hasPrecedingLineBreak()}function il(){return yn(),(e.tokenIsIdentifierOrKeyword(oe())||oe()===8||oe()===9||oe()===10)&&!_.hasPrecedingLineBreak()}function Go(){for(;;)switch(oe()){case 108:case 114:case 80:case 93:case 79:case 87:return!0;case 113:case 144:return wi();case 134:case 135:return Ec();case 121:case 125:case 129:case 116:case 117:case 118:case 137:if(yn(),_.hasPrecedingLineBreak())return!1;continue;case 149:return yn(),oe()===18||oe()===75||oe()===88;case 95:return yn(),oe()===10||oe()===41||oe()===18||e.tokenIsIdentifierOrKeyword(oe());case 88:if(yn(),oe()===62||oe()===41||oe()===18||oe()===83||oe()===122)return!0;continue;case 119:yn();continue;default:return!1}}function Es(){return dt(Go)}function mo(){switch(oe()){case 59:case 26:case 18:case 108:case 114:case 93:case 79:case 87:case 94:case 85:case 110:case 92:case 81:case 76:case 100:case 111:case 102:case 104:case 106:case 82:case 78:case 91:return!0;case 95:return Es()||dt(Cs);case 80:case 88:return Es();case 125:case 129:case 113:case 134:case 135:case 144:case 149:return!0;case 118:case 116:case 117:case 119:case 137:return Es()||!dt(tc);default:return Zn()}}function No(){return yn(),st()||oe()===18||oe()===22}function bc(){return dt(No)}function ts(){switch(oe()){case 26:return Ha();case 18:return sa(!1);case 108:return Co(va(241));case 114:if(bc())return Co(va(241));break;case 93:return pu(va(243));case 79:return oc(va(244));case 94:return ti();case 85:return Qi();case 110:return Za();case 92:return Ls();case 81:return zr(232);case 76:return zr(233);case 100:return Zt();case 111:return Ps();case 102:return vc();case 104:return nc();case 106:case 78:case 91:return cr();case 82:return ya();case 59:return fu();case 125:case 113:case 144:case 134:case 135:case 129:case 80:case 87:case 88:case 95:case 116:case 117:case 118:case 121:case 119:case 137:case 149:if(Es())return fu();break}return Io()}function Ts(W){return W.kind===129}function fu(){var W=dt(function(){return cs(),Vs()}),fn=e.some(W,Ts);if(fn){var Un=jl();if(Un)return Un}var Et=va(0);if(Et.decorators=cs(),Et.modifiers=Vs(),fn){for(var pr=0,Xr=Et.modifiers;pr<Xr.length;pr++){var ei=Xr[pr];ei.flags|=8388608}return Fe(8388608,function(){return Uc(Et)})}else return Uc(Et)}function jl(){return Fe(8388608,function(){var W=Ao(ue);if(W)return _o(W)})}function Uc(W){switch(oe()){case 108:case 114:case 80:return Co(W);case 93:return pu(W);case 79:return oc(W);case 113:return jc(W);case 144:return Wc(W);case 87:return Hc(W);case 149:case 134:case 135:return ql(W);case 95:return nd(W);case 88:yn();switch(oe()){case 83:case 62:return rt(W);case 122:return ed(W);default:return Dn(W)}default:if(W.decorators||W.modifiers){var fn=Vt(262,!0,e.Diagnostics.Declaration_expected);return fn.pos=W.pos,fn.decorators=W.decorators,fn.modifiers=W.modifiers,Wn(fn)}return}}function Ec(){return yn(),!_.hasPrecedingLineBreak()&&(st()||oe()===10)}function Tc(W,fn){if(oe()!==18&&Yr()){Hr();return}return Da(W,fn)}function Sc(){if(oe()===27)return mt(214);var W=mt(190);return W.dotDotDotToken=_n(25),W.name=Ol(),W.initializer=ga(),Wn(W)}function rc(){var W=mt(190);W.dotDotDotToken=_n(25);var fn=st(),Un=$n();return fn&&oe()!==58?W.name=Un:(Kn(58),W.propertyName=Un,W.name=Ol()),W.initializer=ga(),Wn(W)}function ac(){var W=mt(188);return Kn(18),W.elements=da(9,rc),Kn(19),Wn(W)}function vl(){var W=mt(189);return Kn(22),W.elements=da(10,Sc),Kn(23),Wn(W)}function Ys(){return oe()===18||oe()===22||st()}function Ol(){return oe()===22?vl():oe()===18?ac():ht()}function wa(){return Bs(!0)}function Bs(W){var fn=mt(241);return fn.name=Ol(),W&&fn.name.kind===75&&oe()===53&&!_.hasPrecedingLineBreak()&&(fn.exclamationToken=$t()),fn.type=me(),gc(oe())||(fn.initializer=ga()),Wn(fn)}function qt(W){var fn=mt(242);switch(oe()){case 108:break;case 114:fn.flags|=1;break;case 80:fn.flags|=2;break;default:e.Debug.fail()}if(yn(),oe()===151&&dt(bl))fn.declarations=vn();else{var Un=Se();ae(W),fn.declarations=da(8,W?Bs:wa),ae(Un)}return Wn(fn)}function bl(){return Ka()&&yn()===21}function Co(W){return W.kind=224,W.declarationList=qt(!1),Hr(),Wn(W)}function pu(W){W.kind=243,Kn(93),W.asteriskToken=_n(41),W.name=e.hasModifier(W,512)?ia():ht();var fn=W.asteriskToken?1:0,Un=e.hasModifier(W,256)?2:0;return ha(58,fn|Un,W),W.body=Tc(fn|Un,e.Diagnostics.or_expected),Wn(W)}function ic(){if(oe()===128)return Kn(128);if(oe()===10&&dt(yn)===20)return Ct(function(){var W=Ia();return W.text==="constructor"?W:void 0})}function Wl(W){return Ct(function(){if(ic())return W.kind=161,ha(58,0,W),W.body=Tc(0,e.Diagnostics.or_expected),Wn(W)})}function Xu(W,fn,Un){W.kind=160,W.asteriskToken=fn;var Et=fn?1:0,pr=e.hasModifier(W,256)?2:0;return ha(58,Et|pr,W),W.body=Tc(Et|pr,Un),Wn(W)}function zi(W){return W.kind=158,!W.questionToken&&oe()===53&&!_.hasPrecedingLineBreak()&&(W.exclamationToken=$t()),W.type=me(),W.initializer=e.hasModifier(W,32)?cn(ga):$e(8192|4096,ga),Hr(),Wn(W)}function Hl(W){var fn=_n(41);return W.name=$n(),W.questionToken=_n(57),fn||oe()===20||oe()===29?Xu(W,fn,e.Diagnostics.or_expected):zi(W)}function Pa(W,fn){return W.kind=fn,W.name=$n(),ha(58,0,W),W.body=Tc(0),Wn(W)}function xc(){var W;if(oe()===59)return!0;for(;e.isModifierKind(oe());){if(W=oe(),e.isClassMemberModifier(W))return!0;yn()}if(oe()===41)return!0;if(Ke()&&(W=oe(),yn()),oe()===22)return!0;if(W!==void 0){if(!e.isKeyword(W)||W===141||W===130)return!0;switch(oe()){case 20:case 29:case 53:case 58:case 62:case 57:return!0;default:return Yr()}}return!1}function cs(){for(var W,fn=le();;){var Un=le();if(!Ce(59))break;var Et=mt(156,Un);Et.expression=ye(yc),Wn(Et),(W||(W=[])).push(Et)}return W&&Lt(W,fn)}function Vs(W){for(var fn,Un=le();;){var Et=_.getStartPos(),pr=oe();if(oe()===80&&W){if(!Ct(Fa))break}else if(!Si())break;var Xr=Wn(mt(pr,Et));(fn||(fn=[])).push(Xr)}return fn&&Lt(fn,Un)}function es(){var W;if(oe()===125){var fn=_.getStartPos(),Un=oe();yn();var Et=Wn(mt(Un,fn));W=Lt([Et],fn)}return W}function Yu(){if(oe()===26){var W=mt(221);return yn(),Wn(W)}var fn=va(0);if(fn.decorators=cs(),fn.modifiers=Vs(!0),xa(130))return Pa(fn,162);if(xa(141))return Pa(fn,163);if(oe()===128||oe()===10){var Un=Wl(fn);if(Un)return Un}if(ml())return Il(fn);if(e.tokenIsIdentifierOrKeyword(oe())||oe()===10||oe()===8||oe()===41||oe()===22){var Et=fn.modifiers&&e.some(fn.modifiers,Ts);if(Et){for(var pr=0,Xr=fn.modifiers;pr<Xr.length;pr++){var ei=Xr[pr];ei.flags|=8388608}return Fe(8388608,function(){return Hl(fn)})}else return Hl(fn)}return fn.decorators||fn.modifiers?(fn.name=Vt(75,!0,e.Diagnostics.Declaration_expected),zi(fn)):e.Debug.fail("Should not have attempted to parse class member declaration.")}function Qs(){return pd(va(0),213)}function oc(W){return pd(W,244)}function pd(W,fn){return W.kind=fn,Kn(79),W.name=Kl(),W.typeParameters=kr(),W.heritageClauses=Qu(),Kn(18)?(W.members=Zu(),Kn(19)):W.members=vn(),Wn(W)}function Kl(){return st()&&!sc()?ht():void 0}function sc(){return oe()===112&&dt(ua)}function Qu(){return Nu()?ji(22,Zo):void 0}function Zo(){var W=oe();e.Debug.assert(W===89||W===112);var fn=mt(277);return fn.token=W,yn(),fn.types=da(7,md),Wn(fn)}function md(){var W=mt(215);return W.expression=yc(),W.typeArguments=Bi(),Wn(W)}function Bi(){return oe()===29?Vn(20,Ga,29,31):void 0}function Nu(){return oe()===89||oe()===112}function Zu(){return ji(5,Yu)}function jc(W){return W.kind=245,Kn(113),W.name=ht(),W.typeParameters=kr(),W.heritageClauses=Qu(),W.members=_s(),Wn(W)}function Wc(W){return W.kind=246,Kn(144),W.name=ht(),W.typeParameters=kr(),Kn(62),W.type=Ga(),Hr(),Wn(W)}function mu(){var W=va(282);return W.name=$n(),W.initializer=cn(ga),Wn(W)}function Hc(W){return W.kind=247,Kn(87),W.name=ht(),Kn(18)?(W.members=da(6,mu),Kn(19)):W.members=vn(),Wn(W)}function $u(){var W=mt(249);return Kn(18)?(W.statements=ji(1,ts),Kn(19)):W.statements=vn(),Wn(W)}function Pl(W,fn){W.kind=248;var Un=fn&16;return W.flags|=fn,W.name=ht(),W.body=Ce(24)?Pl(mt(0),4|Un):$u(),Wn(W)}function Ml(W){return W.kind=248,oe()===149?(W.name=ht(),W.flags|=1024):(W.name=Ia(),W.name.text=pt(W.name.text)),oe()===18?W.body=$u():Hr(),Wn(W)}function ql(W){var fn=0;if(oe()===149)return Ml(W);if(Ce(135))fn|=16;else if(Kn(134),oe()===10)return Ml(W);return Pl(W,fn)}function lc(){return oe()===138&&dt(Ou)}function Ou(){return yn()===20}function ol(){return yn()===43}function ed(W){return W.kind=251,Kn(122),Kn(135),W.name=ht(),Hr(),Wn(W)}function nd(W){Kn(95);var fn=_.getStartPos(),Un;return st()&&(Un=ht(),oe()!==27&&oe()!==148)?hu(W,Un):(W.kind=253,(Un||oe()===41||oe()===18)&&(W.importClause=hd(Un,fn),Kn(148)),W.moduleSpecifier=cc(),Hr(),Wn(W))}function hu(W,fn){return W.kind=252,W.name=fn,Kn(62),W.moduleReference=Pd(),Hr(),Wn(W)}function hd(W,fn){var Un=mt(254,fn);return W&&(Un.name=W),(!Un.name||Ce(27))&&(Un.namedBindings=oe()===41?Rd():Pu(256)),Wn(Un)}function Pd(){return lc()?Md():Mt(!1)}function Md(){var W=mt(263);return Kn(138),Kn(20),W.expression=cc(),Kn(21),Wn(W)}function cc(){if(oe()===10){var W=Ia();return W.text=pt(W.text),W}else return vr()}function Rd(){var W=mt(255);return Kn(41),Kn(122),W.name=ht(),Wn(W)}function Pu(W){var fn=mt(W);return fn.elements=Vn(23,W===256?re:g,18,19),Wn(fn)}function g(){return Ve(261)}function re(){return Ve(257)}function Ve(W){var fn=mt(W),Un=e.isKeyword(oe())&&!st(),Et=_.getTokenPos(),pr=_.getTextPos(),Xr=bt();return oe()===122?(fn.propertyName=Xr,Kn(122),Un=e.isKeyword(oe())&&!st(),Et=_.getTokenPos(),pr=_.getTextPos(),fn.name=bt()):fn.name=Xr,W===257&&Un&&jn(Et,pr,e.Diagnostics.Identifier_expected),Wn(fn)}function Dn(W){return W.kind=259,Ce(41)?(Kn(148),W.moduleSpecifier=cc()):(W.exportClause=Pu(260),(oe()===148||oe()===10&&!_.hasPrecedingLineBreak())&&(Kn(148),W.moduleSpecifier=cc())),Hr(),Wn(W)}function rt(W){return W.kind=258,Ce(62)?W.isExportEquals=!0:Kn(83),W.expression=ii(),Hr(),Wn(W)}function p(W){W.externalModuleIndicator=e.forEach(W.statements,Ue)||Nn(W)}function Ue(W){return e.hasModifier(W,1)||W.kind===252&&W.moduleReference.kind===263||W.kind===253||W.kind===258||W.kind===259?W:void 0}function Nn(W){return W.flags&2097152?vt(W):void 0}function vt(W){return Sr(W)?W:J(W,vt)}function Sr(W){return e.isMetaProperty(W)&&W.keywordToken===95&&W.name.escapedText==="meta"}var Zr;(function(W){W[W.SourceElements=0]="SourceElements",W[W.BlockStatements=1]="BlockStatements",W[W.SwitchClauses=2]="SwitchClauses",W[W.SwitchClauseStatements=3]="SwitchClauseStatements",W[W.TypeMembers=4]="TypeMembers",W[W.ClassMembers=5]="ClassMembers",W[W.EnumMembers=6]="EnumMembers",W[W.HeritageClauseElement=7]="HeritageClauseElement",W[W.VariableDeclarations=8]="VariableDeclarations",W[W.ObjectBindingElements=9]="ObjectBindingElements",W[W.ArrayBindingElements=10]="ArrayBindingElements",W[W.ArgumentExpressions=11]="ArgumentExpressions",W[W.ObjectLiteralMembers=12]="ObjectLiteralMembers",W[W.JsxAttributes=13]="JsxAttributes",W[W.JsxChildren=14]="JsxChildren",W[W.ArrayLiteralMembers=15]="ArrayLiteralMembers",W[W.Parameters=16]="Parameters",W[W.JSDocParameters=17]="JSDocParameters",W[W.RestProperties=18]="RestProperties",W[W.TypeParameters=19]="TypeParameters",W[W.TypeArguments=20]="TypeArguments",W[W.TupleElementTypes=21]="TupleElementTypes",W[W.HeritageClauses=22]="HeritageClauses",W[W.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",W[W.Count=24]="Count"})(Zr||(Zr={}));var aa;(function(W){W[W.False=0]="False",W[W.True=1]="True",W[W.Unknown=2]="Unknown"})(aa||(aa={}));var fi;(function(W){function fn(u,xe,An){w(u,99,void 0,1),T=In("file.js",99,1,!1),_.setText(u,xe,An),Y=_.scan();var nt=Un(),Jn=ne;return j(),nt?{jsDocTypeExpression:nt,diagnostics:Jn}:void 0}W.parseJSDocTypeExpressionForTests=fn;function Un(u){var xe=mt(292),An=(u?Ce:Kn)(18);return xe.type=Fe(4194304,lt),(!u||An)&&Ie(19),Ze(xe),Wn(xe)}W.parseJSDocTypeExpression=Un;function Et(u,xe,An){w(u,99,void 0,1),T={languageVariant:0,text:u};var nt=Fe(4194304,function(){return ps(xe,An)}),Jn=ne;return j(),nt?{jsDoc:nt,diagnostics:Jn}:void 0}W.parseIsolatedJSDocComment=Et;function pr(u,xe,An){var nt,Jn=Y,ma=ne.length,Ta=Re,Ra=Fe(4194304,function(){return ps(xe,An)});return Ra&&(Ra.parent=u),Z&131072&&(T.jsDocDiagnostics||(T.jsDocDiagnostics=[]),(nt=T.jsDocDiagnostics).push.apply(nt,ne)),Y=Jn,ne.length=ma,Re=Ta,Ra}W.parseJSDocComment=pr;var Xr;(function(u){u[u.BeginningOfLine=0]="BeginningOfLine",u[u.SawAsterisk=1]="SawAsterisk",u[u.SavingComments=2]="SavingComments",u[u.SavingBackticks=3]="SavingBackticks"})(Xr||(Xr={}));var ei;(function(u){u[u.Property=1]="Property",u[u.Parameter=2]="Parameter",u[u.CallbackParameter=4]="CallbackParameter"})(ei||(ei={}));function ps(u,xe){u===void 0&&(u=0);var An=pe,nt=xe===void 0?An.length:u+xe;if(xe=nt-u,e.Debug.assert(u>=0),e.Debug.assert(u<=nt),e.Debug.assert(nt<=An.length),!f(An,u))return;var Jn,ma,Ta,Ra=[];return _.scanRange(u+3,xe-5,function(){var nr=1,ea,jr=u-Math.max(An.lastIndexOf(`
|
|
|
`,u),0)+4;function Va(Oo){ea||(ea=jr),Ra.push(Oo),jr+=Oo.length}for(_e();Gd(5););Gd(4)&&(nr=0,jr=0);e:for(;;){switch(oe()){case 59:nr===0||nr===1?(Pi(Ra),Mu(wc(jr)),nr=0,ea=void 0):Va(_.getTokenText());break;case 4:Ra.push(_.getTokenText()),nr=0,jr=0;break;case 41:var Ya=_.getTokenText();nr===1||nr===2?(nr=2,Va(Ya)):(nr=1,jr+=Ya.length);break;case 5:var ro=_.getTokenText();nr===2?Ra.push(ro):ea!==void 0&&jr+ro.length>ea&&Ra.push(ro.slice(ea-jr-1)),jr+=ro.length;break;case 1:break e;default:nr=2,Va(_.getTokenText());break}_e()}return Jo(Ra),Pi(Ra),To()});function Jo(nr){for(;nr.length&&(nr[0]===`
|
|
|
`||nr[0]==="\r");)nr.shift()}function Pi(nr){for(;nr.length&&nr[nr.length-1].trim()==="";)nr.pop()}function To(){var nr=mt(301,u);return nr.tags=Jn&&Lt(Jn,ma,Ta),nr.comment=Ra.length?Ra.join(""):void 0,Wn(nr,nt)}function Ko(){for(;;){if(_e(),oe()===1)return!0;if(!(oe()===5||oe()===4))return!1}}function El(){if((oe()===5||oe()===4)&&dt(Ko))return;for(;oe()===5||oe()===4;)_e()}function Rl(){if((oe()===5||oe()===4)&&dt(Ko))return"";for(var nr=_.hasPrecedingLineBreak(),ea=!1,jr="";nr&&oe()===41||oe()===5||oe()===4;)jr+=_.getTokenText(),oe()===4?(nr=!0,ea=!0,jr=""):oe()===41&&(nr=!1),_e();return ea?jr:""}function wc(nr){e.Debug.assert(oe()===59);var ea=_.getTokenPos();_e();var jr=Ru(void 0),Va=Rl(),Ya;switch(jr.escapedText){case"author":Ya=sl(ea,jr,nr);break;case"augments":case"extends":Ya=Mp(ea,jr);break;case"class":case"constructor":Ya=Hf(ea,jr);break;case"this":Ya=km(ea,jr);break;case"enum":Ya=Cm(ea,jr);break;case"arg":case"argument":case"param":return Sm(ea,jr,2,nr);case"return":case"returns":Ya=Gh(ea,jr);break;case"template":Ya=Uh(ea,jr);break;case"type":Ya=xm(ea,jr);break;case"typedef":Ya=Fd(ea,jr,nr);break;case"callback":Ya=ho(ea,jr,nr);break;default:Ya=ns(ea,jr);break}return Ya.comment||(Va||(nr+=Ya.end-Ya.pos),Ya.comment=Ac(nr,Va.slice(nr))),Ya}function Ac(nr,ea){var jr=[],Va=0,Ya;function ro(Sl){Ya||(Ya=nr),jr.push(Sl),nr+=Sl.length}ea&&(ro(ea),Va=2);var Oo=oe();e:for(;;){switch(Oo){case 4:Va>=1&&(Va=0,jr.push(_.getTokenText())),nr=0;break;case 59:if(Va===3){jr.push(_.getTokenText());break}_.setTextPos(_.getTextPos()-1);case 1:break e;case 5:if(Va===2||Va===3)ro(_.getTokenText());else{var Us=_.getTokenText();Ya!==void 0&&nr+Us.length>Ya&&jr.push(Us.slice(Ya-nr)),nr+=Us.length}break;case 18:Va=2,dt(function(){return _e()===59&&e.tokenIsIdentifierOrKeyword(_e())&&_.getTokenText()==="link"})&&(ro(_.getTokenText()),_e(),ro(_.getTokenText()),_e()),ro(_.getTokenText());break;case 61:Va===3?Va=2:Va=3,ro(_.getTokenText());break;case 41:if(Va===0){Va=1,nr+=1;break}default:Va!==3&&(Va=2),ro(_.getTokenText());break}Oo=_e()}return Jo(jr),Pi(jr),jr.length===0?void 0:jr.join("")}function ns(nr,ea){var jr=mt(304,nr);return jr.tagName=ea,Wn(jr)}function Mu(nr){if(!nr)return;Jn?Jn.push(nr):(Jn=[nr],ma=nr.pos),Ta=nr.end}function kc(){return Rl(),oe()===18?Un():void 0}function Tl(){var nr=Gd(22);nr&&El();var ea=Gd(61),jr=Dm();return ea&&Ht(61),nr&&(El(),_n(62)&&vr(),Kn(23)),{name:jr,isBracketed:nr}}function jf(nr){switch(nr.kind){case 140:return!0;case 173:return jf(nr.elementType);default:return e.isTypeReferenceNode(nr)&&e.isIdentifier(nr.typeName)&&nr.typeName.escapedText==="Object"}}function Sm(nr,ea,jr,Va){var Ya=kc(),ro=!Ya;Rl();var Oo=Tl(),Us=Oo.name,Sl=Oo.isBracketed;El(),ro&&(Ya=kc());var gd=jr===1?mt(316,nr):mt(310,nr),gu=Ac(Va+_.getStartPos()-nr),hf=jr!==4&&pf(Ya,Us,jr,Va);return hf&&(Ya=hf,ro=!0),gd.tagName=ea,gd.typeExpression=Ya,gd.name=Us,gd.isNameFirst=ro,gd.isBracketed=Sl,gd.comment=gu,Wn(gd)}function pf(nr,ea,jr,Va){if(nr&&jf(nr.type)){for(var Ya=mt(292,_.getTokenPos()),ro=void 0,Oo=void 0,Us=_.getStartPos(),Sl=void 0;ro=Ct(function(){return Kf(jr,Va,ea)});)(ro.kind===310||ro.kind===316)&&(Sl=e.append(Sl,ro));if(Sl)return Oo=mt(302,Us),Oo.jsDocPropertyTags=Sl,nr.type.kind===173&&(Oo.isArrayType=!0),Ya.type=Wn(Oo),Wn(Ya)}}function Gh(nr,ea){e.some(Jn,e.isJSDocReturnTag)&&jn(ea.pos,_.getTokenPos(),e.Diagnostics._0_tag_already_specified,ea.escapedText);var jr=mt(311,nr);return jr.tagName=ea,jr.typeExpression=kc(),Wn(jr)}function xm(nr,ea){e.some(Jn,e.isJSDocTypeTag)&&jn(ea.pos,_.getTokenPos(),e.Diagnostics._0_tag_already_specified,ea.escapedText);var jr=mt(313,nr);return jr.tagName=ea,jr.typeExpression=Un(!0),Wn(jr)}function sl(nr,ea,jr){var Va=mt(306,nr);Va.tagName=ea;var Ya=Ct(function(){return wm()});if(!Ya)return Wn(Va);if(Va.comment=Ya,dt(function(){return yn()!==4})){var ro=Ac(jr);ro&&(Va.comment+=ro)}return Wn(Va)}function wm(){var nr=[],ea=!1,jr=!1,Va=_.getToken();e:for(;;){switch(Va){case 75:case 5:case 24:case 59:nr.push(_.getTokenText());break;case 29:if(ea||jr)return;ea=!0,nr.push(_.getTokenText());break;case 31:if(!ea||jr)return;jr=!0,nr.push(_.getTokenText()),_.setTextPos(_.getTokenPos()+1);break e;case 4:case 1:break e}Va=_e()}if(ea&&jr)return nr.length===0?void 0:nr.join("")}function Mp(nr,ea){var jr=mt(305,nr);return jr.tagName=ea,jr.class=Am(),Wn(jr)}function Am(){var nr=Ce(18),ea=mt(215);ea.expression=Wf(),ea.typeArguments=Bi();var jr=Wn(ea);return nr&&Kn(19),jr}function Wf(){for(var nr=Ru();Ce(24);){var ea=mt(193,nr.pos);ea.expression=nr,ea.name=Ru(),nr=Wn(ea)}return nr}function Hf(nr,ea){var jr=mt(307,nr);return jr.tagName=ea,Wn(jr)}function km(nr,ea){var jr=mt(312,nr);return jr.tagName=ea,jr.typeExpression=Un(!0),El(),Wn(jr)}function Cm(nr,ea){var jr=mt(309,nr);return jr.tagName=ea,jr.typeExpression=Un(!0),El(),Wn(jr)}function Fd(nr,ea,jr){var Va=kc();Rl();var Ya=mt(315,nr);Ya.tagName=ea,Ya.fullName=Rp(),Ya.name=Fp(Ya.fullName),El(),Ya.comment=Ac(jr),Ya.typeExpression=Va;var ro;if(!Va||jf(Va.type)){for(var Oo=void 0,Us=void 0,Sl=void 0;Oo=Ct(function(){return Bh(jr)});)if(Us||(Us=mt(302,nr)),Oo.kind===313){if(Sl)break;Sl=Oo}else Us.jsDocPropertyTags=e.append(Us.jsDocPropertyTags,Oo);Us&&(Va&&Va.type.kind===173&&(Us.isArrayType=!0),Ya.typeExpression=Sl&&Sl.typeExpression&&!jf(Sl.typeExpression.type)?Sl.typeExpression:Wn(Us),ro=Ya.typeExpression.end)}return Wn(Ya,ro||Ya.comment!==void 0?_.getStartPos():(Ya.fullName||Ya.typeExpression||Ya.tagName).end)}function Rp(nr){var ea=_.getTokenPos();if(!e.tokenIsIdentifierOrKeyword(oe()))return;var jr=Ru();if(Ce(24)){var Va=mt(248,ea);return nr&&(Va.flags|=4),Va.name=jr,Va.body=Rp(!0),Wn(Va)}return nr&&(jr.isInJSDocNamespace=!0),jr}function ho(nr,ea,jr){var Va=mt(308,nr);Va.tagName=ea,Va.fullName=Rp(),Va.name=Fp(Va.fullName),El(),Va.comment=Ac(jr);var Ya,ro=mt(303,nr);for(ro.parameters=[];Ya=Ct(function(){return Kf(4,jr)});)ro.parameters=e.append(ro.parameters,Ya);var Oo=Ct(function(){if(Gd(59)){var Us=wc(jr);if(Us&&Us.kind===311)return Us}});return Oo&&(ro.type=Oo),Va.typeExpression=Wn(ro),Wn(Va)}function Fp(nr){if(nr)for(var ea=nr;;){if(e.isIdentifier(ea)||!ea.body)return e.isIdentifier(ea)?ea:ea.name;ea=ea.body}}function mf(nr,ea){for(;!e.isIdentifier(nr)||!e.isIdentifier(ea);)if(!e.isIdentifier(nr)&&!e.isIdentifier(ea)&&nr.right.escapedText===ea.right.escapedText)nr=nr.left,ea=ea.left;else return!1;return nr.escapedText===ea.escapedText}function Bh(nr){return Kf(1,nr)}function Kf(nr,ea,jr){for(var Va=!0,Ya=!1;;)switch(_e()){case 59:if(Va){var ro=Vh(nr,ea);return ro&&(ro.kind===310||ro.kind===316)&&nr!==4&&jr&&(e.isIdentifier(ro.name)||!mf(jr,ro.name.left))?!1:ro}Ya=!1;break;case 4:Va=!0,Ya=!1;break;case 41:Ya&&(Va=!1),Ya=!0;break;case 75:Va=!1;break;case 1:return!1}}function Vh(nr,ea){e.Debug.assert(oe()===59);var jr=_.getStartPos();_e();var Va=Ru();El();var Ya;switch(Va.escapedText){case"type":return nr===1&&xm(jr,Va);case"prop":case"property":Ya=1;break;case"arg":case"argument":case"param":Ya=2|4;break;default:return!1}return nr&Ya?Sm(jr,Va,nr,ea):!1}function Uh(nr,ea){var jr;oe()===18&&(jr=Un());var Va=[],Ya=le();do{El();var ro=mt(154);ro.name=Ru(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Wn(ro),El(),Va.push(ro)}while(Gd(27));var Oo=mt(314,nr);return Oo.tagName=ea,Oo.constraint=jr,Oo.typeParameters=Lt(Va,Ya),Wn(Oo),Oo}function Gd(nr){return oe()===nr?(_e(),!0):!1}function Dm(){var nr=Ru();for(Ce(22)&&Kn(23);Ce(24);){var ea=Ru();Ce(22)&&Kn(23),nr=tr(nr,ea)}return nr}function Ru(nr){if(!e.tokenIsIdentifierOrKeyword(oe()))return Vt(75,!nr,nr||e.Diagnostics.Identifier_expected);U++;var ea=_.getTokenPos(),jr=_.getTextPos(),Va=mt(75,ea);return oe()!==75&&(Va.originalKeywordKind=oe()),Va.escapedText=e.escapeLeadingUnderscores(pt(_.getTokenValue())),Wn(Va,jr),_e(),Va}}})(fi=m.JSDocParser||(m.JSDocParser={}))})(P||(P={}));var h;(function(m){function _(S,v,U,ue){if(ue=ue||e.Debug.shouldAssert(2),O(S,v,U,ue),e.textChangeRangeIsUnchanged(U))return S;if(S.statements.length===0)return P.parseSourceFile(S.fileName,v,S.languageVersion,void 0,!0,S.scriptKind);var De=S;e.Debug.assert(!De.hasBeenIncrementallyParsed),De.hasBeenIncrementallyParsed=!0;var Z=S.text,Re=Y(S),we=T(S,U);O(S,v,we,ue),e.Debug.assert(we.span.start<=U.span.start),e.Debug.assert(e.textSpanEnd(we.span)===e.textSpanEnd(U.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(we))===e.textSpanEnd(e.textChangeRangeNewSpan(U)));var He=e.textChangeRangeNewSpan(we).length-we.span.length;k(De,we.span.start,e.textSpanEnd(we.span),e.textSpanEnd(e.textChangeRangeNewSpan(we)),He,Z,v,ue);var ve=P.parseSourceFile(S.fileName,v,S.languageVersion,Re,!0,S.scriptKind);return ve}m.updateSourceFile=_;function I(S,v,U,ue,De,Z){v?we(S):Re(S);return;function Re(He){var ve="";if(Z&&D(He)&&(ve=ue.substring(He.pos,He.end)),He._children&&(He._children=void 0),He.pos+=U,He.end+=U,Z&&D(He)&&e.Debug.assert(ve===De.substring(He.pos,He.end)),J(He,Re,we),e.hasJSDocNodes(He))for(var je=0,w=He.jsDoc;je<w.length;je++){var j=w[je];Re(j)}E(He,Z)}function we(He){He._children=void 0,He.pos+=U,He.end+=U;for(var ve=0,je=He;ve<je.length;ve++){var w=je[ve];Re(w)}}}function D(S){switch(S.kind){case 10:case 8:case 75:return!0}return!1}function y(S,v,U,ue,De){e.Debug.assert(S.end>=v,"Adjusting an element that was entirely before the change range"),e.Debug.assert(S.pos<=U,"Adjusting an element that was entirely after the change range"),e.Debug.assert(S.pos<=S.end),S.pos=Math.min(S.pos,ue),S.end>=U?S.end+=De:S.end=Math.min(S.end,ue),e.Debug.assert(S.pos<=S.end),S.parent&&(e.Debug.assert(S.pos>=S.parent.pos),e.Debug.assert(S.end<=S.parent.end))}function E(S,v){if(v){var U=S.pos,ue=function(we){e.Debug.assert(we.pos>=U),U=we.end};if(e.hasJSDocNodes(S))for(var De=0,Z=S.jsDoc;De<Z.length;De++){var Re=Z[De];ue(Re)}J(S,ue),e.Debug.assert(U<=S.end)}}function k(S,v,U,ue,De,Z,Re,we){He(S);return;function He(je){if(e.Debug.assert(je.pos<=je.end),je.pos>U){I(je,!1,De,Z,Re,we);return}var w=je.end;if(w>=v){if(je.intersectsChange=!0,je._children=void 0,y(je,v,U,ue,De),J(je,He,ve),e.hasJSDocNodes(je))for(var j=0,Pe=je.jsDoc;j<Pe.length;j++){var a=Pe[j];He(a)}E(je,we);return}e.Debug.assert(w<v)}function ve(je){if(e.Debug.assert(je.pos<=je.end),je.pos>U){I(je,!0,De,Z,Re,we);return}var w=je.end;if(w>=v){je.intersectsChange=!0,je._children=void 0,y(je,v,U,ue,De);for(var j=0,Pe=je;j<Pe.length;j++){var a=Pe[j];He(a)}return}e.Debug.assert(w<v)}}function T(S,v){for(var U=1,ue=v.span.start,De=0;ue>0&&De<=U;De++){var Z=ne(S,ue);e.Debug.assert(Z.pos<=ue);var Re=Z.pos;ue=Math.max(0,Re-1)}var we=e.createTextSpanFromBounds(ue,e.textSpanEnd(v.span)),He=v.newLength+(v.span.start-ue);return e.createTextChangeRange(we,He)}function ne(S,v){var U=S,ue;if(J(S,Re),ue){var De=Z(ue);De.pos>U.pos&&(U=De)}return U;function Z(we){for(;;){var He=e.getLastChild(we);if(He)we=He;else return we}}function Re(we){if(e.nodeIsMissing(we))return;if(we.pos<=v){if(we.pos>=U.pos&&(U=we),v<we.end)return J(we,Re),!0;e.Debug.assert(we.end<=v),ue=we}else return e.Debug.assert(we.pos>v),!0}}function O(S,v,U,ue){var De=S.text;if(U&&(e.Debug.assert(De.length-U.span.length+U.newLength===v.length),ue||e.Debug.shouldAssert(3))){var Z=De.substr(0,U.span.start),Re=v.substr(0,U.span.start);e.Debug.assert(Z===Re);var we=De.substring(e.textSpanEnd(U.span),De.length),He=v.substring(e.textSpanEnd(e.textChangeRangeNewSpan(U)),v.length);e.Debug.assert(we===He)}}function Y(S){var v=S.statements,U=0;e.Debug.assert(U<v.length);var ue=v[U],De=-1;return{currentNode:function(Re){return Re!==De&&(ue&&ue.end===Re&&U<v.length-1&&(U++,ue=v[U]),(!ue||ue.pos!==Re)&&Z(Re)),De=Re,e.Debug.assert(!ue||ue.pos===Re),ue}};function Z(Re){v=void 0,U=-1,ue=void 0,J(S,we,He);return;function we(ve){return Re>=ve.pos&&Re<ve.end?(J(ve,we,He),!0):!1}function He(ve){if(Re>=ve.pos&&Re<ve.end)for(var je=0;je<ve.length;je++){var w=ve[je];if(w){if(w.pos===Re)return v=ve,U=je,ue=w,!0;if(w.pos<Re&&Re<w.end)return J(w,we,He),!0}}return!1}}}var pe;(function(S){S[S.Value=-1]="Value"})(pe||(pe={}))})(h||(h={}));function X(m){return e.fileExtensionIs(m,".d.ts")}e.isDeclarationFileName=X;function $(m,_){for(var I=[],D=0,y=e.getLeadingCommentRanges(_,0)||e.emptyArray;D<y.length;D++){var E=y[D],k=_.substring(E.pos,E.end);q(I,E,k)}m.pragmas=e.createMap();for(var T=0,ne=I;T<ne.length;T++){var O=ne[T];if(m.pragmas.has(O.name)){var Y=m.pragmas.get(O.name);Y instanceof Array?Y.push(O.args):m.pragmas.set(O.name,[Y,O.args]);continue}m.pragmas.set(O.name,O.args)}}e.processCommentPragmas=$;function Q(m,_){m.checkJsDirective=void 0,m.referencedFiles=[],m.typeReferenceDirectives=[],m.libReferenceDirectives=[],m.amdDependencies=[],m.hasNoDefaultLib=!1,m.pragmas.forEach(function(I,D){switch(D){case"reference":{var y=m.referencedFiles,E=m.typeReferenceDirectives,k=m.libReferenceDirectives;e.forEach(e.toArray(I),function(Y){var pe=Y.arguments,S=pe.types,v=pe.lib,U=pe.path;Y.arguments["no-default-lib"]?m.hasNoDefaultLib=!0:S?E.push({pos:S.pos,end:S.end,fileName:S.value}):v?k.push({pos:v.pos,end:v.end,fileName:v.value}):U?y.push({pos:U.pos,end:U.end,fileName:U.value}):_(Y.range.pos,Y.range.end-Y.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)});break}case"amd-dependency":{m.amdDependencies=e.map(e.toArray(I),function(Y){return{name:Y.arguments.name,path:Y.arguments.path}});break}case"amd-module":{if(I instanceof Array)for(var T=0,ne=I;T<ne.length;T++){var O=ne[T];m.moduleName&&_(O.range.pos,O.range.end-O.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),m.moduleName=O.arguments.name}else m.moduleName=I.arguments.name;break}case"ts-nocheck":case"ts-check":{e.forEach(e.toArray(I),function(Y){(!m.checkJsDirective||Y.range.pos>m.checkJsDirective.pos)&&(m.checkJsDirective={enabled:D==="ts-check",end:Y.range.end,pos:Y.range.pos})});break}case"jsx":return;default:e.Debug.fail("Unhandled pragma kind")}})}e.processPragmasIntoFields=Q;var z=e.createMap();function se(m){if(z.has(m))return z.get(m);var _=new RegExp("(\\s"+m+`\\s*=\\s*)('|")(.+?)\\2`,"im");return z.set(m,_),_}var G=/^\/\/\/\s*<(\S+)\s.*?\/>/im,H=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function q(m,_,I){var D=_.kind===2&&G.exec(I);if(D){var y=D[1].toLowerCase(),E=e.commentPragmas[y];if(!E||!(E.kind&1))return;if(E.args){for(var k={},T=0,ne=E.args;T<ne.length;T++){var O=ne[T],Y=se(O.name),pe=Y.exec(I);if(!pe&&!O.optional)return;if(pe)if(O.captureSpan){var S=_.pos+pe.index+pe[1].length+pe[2].length;k[O.name]={value:pe[3],pos:S,end:S+pe[3].length}}else k[O.name]=pe[3]}m.push({name:y,args:{arguments:k,range:_}})}else m.push({name:y,args:{arguments:{},range:_}});return}var v=_.kind===2&&H.exec(I);if(v)return be(m,_,2,v);if(_.kind===3)for(var U=/\s*@(\S+)\s*(.*)\s*$/gim,ue=void 0;ue=U.exec(I);)be(m,_,4,ue)}function be(m,_,I,D){if(!D)return;var y=D[1].toLowerCase(),E=e.commentPragmas[y];if(!E||!(E.kind&I))return;var k=D[2],T=R(E,k);if(T==="fail")return;m.push({name:y,args:{arguments:T,range:_}});return}function R(m,_){if(!_)return{};if(!m.args)return{};for(var I=_.split(/\s+/),D={},y=0;y<m.args.length;y++){var E=m.args[y];if(!I[y]&&!E.optional)return"fail";if(E.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");D[E.name]=I[y]}return D}function K(m,_){return m.kind!==_.kind?!1:m.kind===75?m.escapedText===_.escapedText:m.kind===103?!0:m.name.escapedText===_.name.escapedText&&K(m.expression,_.expression)}e.tagNamesAreEquivalent=K})(sn||(sn={}));var sn;(function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var o=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["esnext.array","lib.es2019.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.esnext.bigint.d.ts"]];e.libs=o.map(function(nn){return nn[0]}),e.libMap=e.createMapFromEntries(o),e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Generates_a_CPU_profile},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us}],e.optionDeclarations=Tr(e.commonOptionsWithBuild,[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing},{name:"target",shortName:"t",type:e.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,esnext:99}),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT},{name:"module",shortName:"m",type:e.createMapFromTemplate({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,esnext:e.ModuleKind.ESNext}),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:e.createMapFromTemplate({preserve:1,"react-native":3,react:2}),affectsSourceFile:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files,transpileOptionValue:void 0},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_project_compilation,transpileOptionValue:void 0},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_file_to_store_incremental_compilation_information,transpileOptionValue:void 0},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs,transpileOptionValue:void 0},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule,transpileOptionValue:!0},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:e.createMapFromTemplate({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic}),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime,transpileOptionValue:void 0},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"resolveJsonModule",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"newLine",type:e.createMapFromTemplate({crlf:0,lf:1}),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts,transpileOptionValue:!0},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files,transpileOptionValue:!0},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported,transpileOptionValue:void 0},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files,transpileOptionValue:void 0},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_class_fields_with_Define_instead_of_Set},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}]),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(nn){return!!nn.affectsSemanticDiagnostics}),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter(function(nn){return!!nn.affectsEmit}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(nn){return!!nn.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(nn){return!!nn.affectsSourceFile||!!nn.affectsModuleResolution||!!nn.affectsBindDiagnostics}),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter(function(nn){return e.hasProperty(nn,"transpileOptionValue")}),e.buildOpts=Tr(e.commonOptionsWithBuild,[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}}],e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0};var M;function qe(nn){return nn&&nn.enableAutoDiscovery!==void 0&&nn.enable===void 0?{enable:nn.enableAutoDiscovery,include:nn.include||[],exclude:nn.exclude||[]}:nn}e.convertEnableAutoDiscoveryToEnable=qe;function Ee(){return M||(M=Ge(e.optionDeclarations))}e.getOptionNameMap=Ee;function Ge(nn){var pn=e.createMap(),le=e.createMap();return e.forEach(nn,function(oe){pn.set(oe.name.toLowerCase(),oe),oe.shortName&&le.set(oe.shortName,oe.name)}),{optionNameMap:pn,shortOptionNames:le}}e.createOptionNameMap=Ge;function Be(nn){return he(nn,e.createCompilerDiagnostic)}e.createCompilerDiagnosticForInvalidCustomType=Be;function he(nn,pn){var le=e.arrayFrom(nn.type.keys()).map(function(oe){return"'"+oe+"'"}).join(", ");return pn(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+nn.name,le)}function ee(nn,pn,le){return $e(nn,cn(pn||""),le)}e.parseCustomTypeOption=ee;function f(nn,pn,le){if(pn===void 0&&(pn=""),pn=cn(pn),e.startsWith(pn,"-"))return;if(pn==="")return[];var oe=pn.split(",");switch(nn.element.type){case"number":return e.map(oe,parseInt);case"string":return e.map(oe,function(Cn){return Cn||""});default:return e.mapDefined(oe,function(Cn){return ee(nn.element,Cn,le)})}}e.parseListTypeOption=f;function J(nn,pn,le,oe){var Cn=pn[0],yn=pn[1],_e={},dn=[],un=[];return Rn(le),{options:_e,fileNames:dn,errors:un};function Rn(Bn){for(var ut=0;ut<Bn.length;){var ct=Bn[ut];if(ut++,ct.charCodeAt(0)===64)at(ct.slice(1));else if(ct.charCodeAt(0)===45){var ot=Te(nn,ct.slice(ct.charCodeAt(1)===45?2:1),!0);if(ot)if(ot.isTSConfigOnly)un.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file,ot.name));else{!Bn[ut]&&ot.type!=="boolean"&&un.push(e.createCompilerDiagnostic(yn,ot.name));switch(ot.type){case"number":_e[ot.name]=parseInt(Bn[ut]),ut++;break;case"boolean":var dt=Bn[ut];_e[ot.name]=dt!=="false",(dt==="false"||dt==="true")&&ut++;break;case"string":_e[ot.name]=Bn[ut]||"",ut++;break;case"list":var Ct=f(ot,Bn[ut],un);_e[ot.name]=Ct||[],Ct&&ut++;break;default:_e[ot.name]=ee(ot,Bn[ut],un),ut++;break}}else un.push(e.createCompilerDiagnostic(Cn,ct))}else dn.push(ct)}}function at(Bn){var ut=oe?oe(Bn):e.sys.readFile(Bn);if(!ut){un.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,Bn));return}for(var ct=[],ot=0;;){for(;ot<ut.length&&ut.charCodeAt(ot)<=32;)ot++;if(ot>=ut.length)break;var dt=ot;if(ut.charCodeAt(dt)===34){for(ot++;ot<ut.length&&ut.charCodeAt(ot)!==34;)ot++;ot<ut.length?(ct.push(ut.substring(dt+1,ot)),ot++):un.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,Bn))}else{for(;ut.charCodeAt(ot)>32;)ot++;ct.push(ut.substring(dt,ot))}}Rn(ct)}}function Oe(nn,pn){return J(Ee,[e.Diagnostics.Unknown_compiler_option_0,e.Diagnostics.Compiler_option_0_expects_an_argument],nn,pn)}e.parseCommandLine=Oe;function N(nn,pn){return Te(Ee,nn,pn)}e.getOptionFromName=N;function Te(nn,pn,le){le===void 0&&(le=!1),pn=pn.toLowerCase();var oe=nn(),Cn=oe.optionNameMap,yn=oe.shortOptionNames;if(le){var _e=yn.get(pn);_e!==void 0&&(pn=_e)}return Cn.get(pn)}function ie(nn){var pn,le=function(){return pn||(pn=Ge(e.buildOpts))},oe=J(le,[e.Diagnostics.Unknown_build_option_0,e.Diagnostics.Build_option_0_requires_a_value_of_type_1],nn),Cn=oe.options,yn=oe.fileNames,_e=oe.errors,dn=Cn;return yn.length===0&&yn.push("."),dn.clean&&dn.force&&_e.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),dn.clean&&dn.verbose&&_e.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),dn.clean&&dn.watch&&_e.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),dn.watch&&dn.dry&&_e.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:dn,projects:yn,errors:_e}}e.parseBuildCommand=ie;function ce(nn){for(var pn=[],le=1;le<arguments.length;le++)pn[le-1]=arguments[le];var oe=e.createCompilerDiagnostic.apply(void 0,arguments);return oe.messageText}e.getDiagnosticText=ce;function x(nn,pn,le,oe){var Cn;try{Cn=le.readFile(nn)}catch(un){var yn=e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,nn,un.message);le.onUnRecoverableConfigFileDiagnostic(yn);return}if(!Cn){var yn=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,nn);le.onUnRecoverableConfigFileDiagnostic(yn);return}var _e=e.parseJsonText(nn,Cn),dn=le.getCurrentDirectory();return _e.path=e.toPath(nn,dn,e.createGetCanonicalFileName(le.useCaseSensitiveFileNames)),_e.resolvedPath=_e.path,_e.originalFileName=_e.fileName,T(_e,le,e.getNormalizedAbsolutePath(e.getDirectoryPath(nn),dn),pn,e.getNormalizedAbsolutePath(nn,dn),void 0,void 0,oe)}e.getParsedCommandLineOfConfigFile=x;function C(nn,pn){var le=X(nn,pn);return e.isString(le)?P(nn,le):{config:{},error:le}}e.readConfigFile=C;function P(nn,pn){var le=e.parseJsonText(nn,pn);return{config:se(le,le.parseDiagnostics),error:le.parseDiagnostics.length?le.parseDiagnostics[0]:void 0}}e.parseConfigFileTextToJson=P;function h(nn,pn){var le=X(nn,pn);return e.isString(le)?e.parseJsonText(nn,le):{parseDiagnostics:[le]}}e.readJsonConfigFile=h;function X(nn,pn){var le;try{le=pn(nn)}catch(oe){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,nn,oe.message)}return le===void 0?e.createCompilerDiagnostic(e.Diagnostics.The_specified_path_does_not_exist_Colon_0,nn):le}function $(nn){return e.arrayToMap(nn,function(pn){return pn.name})}var Q;function z(){return Q===void 0&&(Q={name:void 0,type:"object",elementOptions:$([{name:"compilerOptions",type:"object",elementOptions:$(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:$(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:$(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{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])}),Q}function se(nn,pn){return G(nn,pn,!0,void 0,void 0)}e.convertToObject=se;function G(nn,pn,le,oe,Cn){if(!nn.statements.length)return le?{}:void 0;return un(nn.statements[0].expression,oe);function yn(at){return oe&&oe.elementOptions===at}function _e(at,Bn,ut,ct){for(var ot=le?{}:void 0,dt=0,Ct=at.properties;dt<Ct.length;dt++){var st=Ct[dt];if(st.kind!==279){pn.push(e.createDiagnosticForNodeInSourceFile(nn,st,e.Diagnostics.Property_assignment_expected));continue}st.questionToken&&pn.push(e.createDiagnosticForNodeInSourceFile(nn,st.questionToken,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?")),Rn(st.name)||pn.push(e.createDiagnosticForNodeInSourceFile(nn,st.name,e.Diagnostics.String_literal_with_double_quotes_expected));var Kn=e.getTextOfPropertyName(st.name),Ie=Kn&&e.unescapeLeadingUnderscores(Kn),Ce=Ie&&Bn?Bn.get(Ie):void 0;Ie&&ut&&!Ce&&pn.push(e.createDiagnosticForNodeInSourceFile(nn,st.name,ut,Ie));var _n=un(st.initializer,Ce);if(typeof Ie!="undefined"&&(le&&(ot[Ie]=_n),Cn&&(ct||yn(Bn)))){var yt=q(Ce,_n);ct?yt&&Cn.onSetValidOptionKeyValueInParent(ct,Ce,_n):yn(Bn)&&(yt?Cn.onSetValidOptionKeyValueInRoot(Ie,st.name,_n,st.initializer):Ce||Cn.onSetUnknownOptionKeyValueInRoot(Ie,st.name,_n,st.initializer))}}return ot}function dn(at,Bn){return le?e.filter(at.map(function(ut){return un(ut,Bn)}),function(ut){return ut!==void 0}):at.forEach(function(ut){return un(ut,Bn)})}function un(at,Bn){switch(at.kind){case 105:return Ie(Bn&&Bn.type!=="boolean"),!0;case 90:return Ie(Bn&&Bn.type!=="boolean"),!1;case 99:return Ie(Bn&&Bn.name==="extends"),null;case 10:Rn(at)||pn.push(e.createDiagnosticForNodeInSourceFile(nn,at,e.Diagnostics.String_literal_with_double_quotes_expected)),Ie(Bn&&e.isString(Bn.type)&&Bn.type!=="string");var ut=at.text;if(Bn&&!e.isString(Bn.type)){var ct=Bn;ct.type.has(ut.toLowerCase())||pn.push(he(ct,function(Ce,_n,yt){return e.createDiagnosticForNodeInSourceFile(nn,at,Ce,_n,yt)}))}return ut;case 8:return Ie(Bn&&Bn.type!=="number"),Number(at.text);case 206:if(at.operator!==40||at.operand.kind!==8)break;return Ie(Bn&&Bn.type!=="number"),-Number(at.operand.text);case 192:Ie(Bn&&Bn.type!=="object");var ot=at;if(Bn){var dt=Bn,Ct=dt.elementOptions,st=dt.extraKeyDiagnosticMessage,Kn=dt.name;return _e(ot,Ct,st,Kn)}else return _e(ot,void 0,void 0,void 0);case 191:return Ie(Bn&&Bn.type!=="list"),dn(at.elements,Bn&&Bn.element)}Bn?Ie(!0):pn.push(e.createDiagnosticForNodeInSourceFile(nn,at,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));return;function Ie(Ce){Ce&&pn.push(e.createDiagnosticForNodeInSourceFile(nn,at,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Bn.name,H(Bn)))}}function Rn(at){return e.isStringLiteral(at)&&e.isStringDoubleQuoted(at,nn)}}e.convertToObjectWorker=G;function H(nn){return nn.type==="list"?"Array":e.isString(nn.type)?nn.type:"string"}function q(nn,pn){if(nn){if(O(pn))return!0;if(nn.type==="list")return e.isArray(pn);var le=e.isString(nn.type)?nn.type:"string";return typeof pn===le}return!1}function be(nn,pn,le){var oe=e.createGetCanonicalFileName(le.useCaseSensitiveFileNames),Cn=e.map(e.filter(nn.fileNames,!nn.configFileSpecs||!nn.configFileSpecs.validatedIncludeSpecs?function(dn){return!0}:K(pn,nn.configFileSpecs.validatedIncludeSpecs,nn.configFileSpecs.validatedExcludeSpecs,le)),function(dn){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(pn,le.getCurrentDirectory()),e.getNormalizedAbsolutePath(dn,le.getCurrentDirectory()),oe)}),yn=I(nn.options,{configFilePath:e.getNormalizedAbsolutePath(pn,le.getCurrentDirectory()),useCaseSensitiveFileNames:le.useCaseSensitiveFileNames}),_e=Rr(Rr({compilerOptions:Rr(Rr({},e.arrayFrom(yn.entries()).reduce(function(dn,un){var Rn;return Rr(Rr({},dn),(Rn={},Rn[un[0]]=un[1],Rn))},{})),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),references:e.map(nn.projectReferences,function(dn){return Rr(Rr({},dn),{path:dn.originalPath?dn.originalPath:"",originalPath:void 0})}),files:e.length(Cn)?Cn:void 0},nn.configFileSpecs?{include:R(nn.configFileSpecs.validatedIncludeSpecs),exclude:nn.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:nn.compileOnSave?!0:void 0});return _e}e.convertToTSConfig=be;function R(nn){return e.length(nn)?e.length(nn)!==1?nn:nn[0]==="**/*"?void 0:nn:void 0}function K(nn,pn,le,oe){if(!pn)return function(dn){return!0};var Cn=e.getFileMatcherPatterns(nn,le,pn,oe.useCaseSensitiveFileNames,oe.getCurrentDirectory()),yn=Cn.excludePattern&&e.getRegexFromPattern(Cn.excludePattern,oe.useCaseSensitiveFileNames),_e=Cn.includeFilePattern&&e.getRegexFromPattern(Cn.includeFilePattern,oe.useCaseSensitiveFileNames);return _e?yn?function(dn){return!(_e.test(dn)&&!yn.test(dn))}:function(dn){return!_e.test(dn)}:yn?function(dn){return yn.test(dn)}:function(dn){return!0}}function m(nn){return nn.type==="string"||nn.type==="number"||nn.type==="boolean"||nn.type==="object"?void 0:nn.type==="list"?m(nn.element):nn.type}function _(nn,pn){return e.forEachEntry(pn,function(le,oe){if(le===nn)return oe})}function I(nn,pn){var le=e.createMap(),oe=Ee().optionNameMap,Cn=pn&&e.createGetCanonicalFileName(pn.useCaseSensitiveFileNames),yn=function(dn){if(e.hasProperty(nn,dn)){if(oe.has(dn)&&oe.get(dn).category===e.Diagnostics.Command_line_Options)return"continue";var un=nn[dn],Rn=oe.get(dn.toLowerCase());if(Rn){var at=m(Rn);at?Rn.type==="list"?le.set(dn,un.map(function(Bn){return _(Bn,at)})):le.set(dn,_(un,at)):pn&&Rn.isFilePath?le.set(dn,e.getRelativePathFromFile(pn.configFilePath,e.getNormalizedAbsolutePath(un,e.getDirectoryPath(pn.configFilePath)),Cn)):le.set(dn,un)}}};for(var _e in nn)yn(_e);return le}function D(nn,pn,le){var oe=e.extend(nn,e.defaultInitCompilerOptions),Cn=I(oe);return un();function yn(Rn){switch(Rn.type){case"number":return 1;case"boolean":return!0;case"string":return Rn.isFilePath?"./":"";case"list":return[];case"object":return{};default:var at=Rn.type.keys().next();return at.done?e.Debug.fail("Expected 'option.type' to have entries."):at.value}}function _e(Rn){return Array(Rn+1).join(" ")}function dn(Rn){var at=Rn.category,Bn=Rn.name;return at!==void 0&&at!==e.Diagnostics.Command_line_Options&&(at!==e.Diagnostics.Advanced_Options||Cn.has(Bn))}function un(){for(var Rn=e.createMultiMap(),at=0,Bn=e.optionDeclarations;at<Bn.length;at++){var ut=Bn[at],ct=ut.category;dn(ut)&&Rn.add(e.getLocaleSpecificMessage(ct),ut)}var ot=0,dt=0,Ct=[],st=[];Rn.forEach(function(Dt,Ht){Ct.length!==0&&(Ct.push(""),st.push("")),Ct.push("/* "+Ht+" */"),st.push("");for(var $t=0,wr=Dt;$t<wr.length;$t++){var Yr=wr[$t],Hr=void 0;Cn.has(Yr.name)?Hr='"'+Yr.name+'": '+JSON.stringify(Cn.get(Yr.name))+((dt+=1)===Cn.size?"":","):Hr='// "'+Yr.name+'": '+JSON.stringify(yn(Yr))+",",Ct.push(Hr),st.push("/* "+(Yr.description&&e.getLocaleSpecificMessage(Yr.description)||Yr.name)+" */"),ot=Math.max(Hr.length,ot)}});var Kn=_e(2),Ie=[];Ie.push("{"),Ie.push(Kn+'"compilerOptions": {');for(var Ce=0;Ce<Ct.length;Ce++){var _n=Ct[Ce],yt=st[Ce];Ie.push(_n&&""+Kn+Kn+_n+(yt&&_e(ot-_n.length+2)+yt))}if(pn.length){Ie.push(Kn+"},"),Ie.push(Kn+'"files": [');for(var Ce=0;Ce<pn.length;Ce++)Ie.push(""+Kn+Kn+JSON.stringify(pn[Ce])+(Ce===pn.length-1?"":","));Ie.push(Kn+"]")}else Ie.push(Kn+"}");return Ie.push("}"),Ie.join(le)+le}}e.generateTSConfig=D;function y(nn,pn){var le={},oe=Ee().optionNameMap;for(var Cn in nn)e.hasProperty(nn,Cn)&&(le[Cn]=E(oe.get(Cn.toLowerCase()),nn[Cn],pn));return le.configFilePath&&(le.configFilePath=pn(le.configFilePath)),le}e.convertToOptionsWithAbsolutePaths=y;function E(nn,pn,le){if(nn){if(nn.type==="list"){var oe=pn;if(nn.element.isFilePath&&oe.length)return oe.map(le)}else if(nn.isFilePath)return le(pn)}return pn}function k(nn,pn,le,oe,Cn,yn,_e,dn){return pe(nn,void 0,pn,le,oe,Cn,yn,_e,dn)}e.parseJsonConfigFileContent=k;function T(nn,pn,le,oe,Cn,yn,_e,dn){return pe(void 0,nn,pn,le,oe,Cn,yn,_e,dn)}e.parseJsonSourceFileConfigFileContent=T;function ne(nn,pn){pn&&Object.defineProperty(nn,"configFile",{enumerable:!1,writable:!1,value:pn})}e.setConfigFileInOptions=ne;function O(nn){return nn==null}function Y(nn,pn){return e.getDirectoryPath(e.getNormalizedAbsolutePath(nn,pn))}function pe(nn,pn,le,oe,Cn,yn,_e,dn,un){Cn===void 0&&(Cn={}),_e===void 0&&(_e=[]),dn===void 0&&(dn=[]),e.Debug.assert(nn===void 0&&pn!==void 0||nn!==void 0&&pn===void 0);var Rn=[],at=Re(nn,pn,le,oe,yn,_e,Rn,un),Bn=at.raw,ut=e.extend(Cn,at.options||{});ut.configFilePath=yn&&e.normalizeSlashes(yn),ne(ut,pn);var ct,ot=Kn(),dt=ot.fileNames,Ct=ot.wildcardDirectories,st=ot.spec;return{options:ut,fileNames:dt,projectReferences:ct,typeAcquisition:at.typeAcquisition||In(),raw:Bn,errors:Rn,wildcardDirectories:Ct,compileOnSave:!!Bn.compileOnSave,configFileSpecs:st};function Kn(){var Ce;if(e.hasProperty(Bn,"files")&&!O(Bn.files))if(e.isArray(Bn.files)){Ce=Bn.files;var _n=e.hasProperty(Bn,"references")&&!O(Bn.references),yt=!_n||Bn.references.length===0,Dt=e.hasProperty(Bn,"extends");if(Ce.length===0&&yt&&!Dt)if(pn){var Ht=yn||"tsconfig.json",$t=e.Diagnostics.The_files_list_in_config_file_0_is_empty,wr=e.firstDefined(e.getTsConfigPropArray(pn,"files"),function(ht){return ht.initializer}),Yr=wr?e.createDiagnosticForNodeInSourceFile(pn,wr,$t,Ht):e.createCompilerDiagnostic($t,Ht);Rn.push(Yr)}else Ie(e.Diagnostics.The_files_list_in_config_file_0_is_empty,yn||"tsconfig.json")}else Ie(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array");var Hr;e.hasProperty(Bn,"include")&&!O(Bn.include)&&(e.isArray(Bn.include)?Hr=Bn.include:Ie(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array"));var mt;if(e.hasProperty(Bn,"exclude")&&!O(Bn.exclude))e.isArray(Bn.exclude)?mt=Bn.exclude:Ie(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array");else if(Bn.compilerOptions){var va=Bn.compilerOptions.outDir,Lt=Bn.compilerOptions.declarationDir;(va||Lt)&&(mt=[va,Lt].filter(function(ht){return!!ht}))}Ce===void 0&&Hr===void 0&&(Hr=["**/*"]);var Wn=F(Ce,Hr,mt,yn?Y(yn,oe):oe,ut,le,Rn,dn,pn);if(U(Wn,ue(Bn),_e)&&Rn.push(v(Wn.spec,yn)),e.hasProperty(Bn,"references")&&!O(Bn.references))if(e.isArray(Bn.references))for(var Vt=0,pt=Bn.references;Vt<pt.length;Vt++){var Tt=pt[Vt];typeof Tt.path!="string"?Ie(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(ct||(ct=[])).push({path:e.getNormalizedAbsolutePath(Tt.path,oe),originalPath:Tt.path,prepend:Tt.prepend,circular:Tt.circular})}else Ie(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"references","Array");return Wn}function Ie(Ce,_n,yt){pn||Rn.push(e.createCompilerDiagnostic(Ce,_n,yt))}}function S(nn){return nn.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function v(nn,pn){var le=nn.includeSpecs,oe=nn.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,pn||"tsconfig.json",JSON.stringify(le||[]),JSON.stringify(oe||[]))}function U(nn,pn,le){return nn.fileNames.length===0&&pn&&(!le||le.length===0)}function ue(nn){return!e.hasProperty(nn,"files")&&!e.hasProperty(nn,"references")}e.canJsonReportNoInutFiles=ue;function De(nn,pn,le,oe,Cn){var yn=oe.length;return U(nn,Cn)?oe.push(v(le,pn)):e.filterMutate(oe,function(_e){return!S(_e)}),yn!==oe.length}e.updateErrorForNoInputFiles=De;function Z(nn){return!!nn.options}function Re(nn,pn,le,oe,Cn,yn,_e,dn){oe=e.normalizeSlashes(oe);var un=e.getNormalizedAbsolutePath(Cn||"",oe);if(yn.indexOf(un)>=0)return _e.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,Tr(yn,[un]).join(" -> "))),{raw:nn||se(pn,_e)};var Rn=nn?we(nn,le,oe,Cn,_e):He(pn,le,oe,Cn,_e);if(Rn.extendedConfigPath){yn=yn.concat([un]);var at=je(pn,Rn.extendedConfigPath,le,oe,yn,_e,dn);if(at&&Z(at)){var Bn=at.raw,ut=Rn.raw,ct=function(ot){var dt=ut[ot]||Bn[ot];dt&&(ut[ot]=dt)};ct("include"),ct("exclude"),ct("files"),ut.compileOnSave===void 0&&(ut.compileOnSave=Bn.compileOnSave),Rn.options=e.assign({},at.options,Rn.options)}}return Rn}function we(nn,pn,le,oe,Cn){e.hasProperty(nn,"excludes")&&Cn.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var yn=Ze(nn.compilerOptions,le,Cn,oe),_e=et(nn.typeAcquisition||nn.typingOptions,le,Cn,oe);nn.compileOnSave=w(nn,le,Cn);var dn;if(nn.extends)if(!e.isString(nn.extends))Cn.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));else{var un=oe?Y(oe,le):le;dn=ve(nn.extends,pn,un,Cn,e.createCompilerDiagnostic)}return{raw:nn,options:yn,typeAcquisition:_e,extendedConfigPath:dn}}function He(nn,pn,le,oe,Cn){var yn=a(oe),_e,dn,un,Rn={onSetValidOptionKeyValueInParent:function(Bn,ut,ct){e.Debug.assert(Bn==="compilerOptions"||Bn==="typeAcquisition"||Bn==="typingOptions");var ot=Bn==="compilerOptions"?yn:Bn==="typeAcquisition"?_e||(_e=In(oe)):dn||(dn=In(oe));ot[ut.name]=Le(ut,le,ct)},onSetValidOptionKeyValueInRoot:function(Bn,ut,ct,ot){switch(Bn){case"extends":var dt=oe?Y(oe,le):le;un=ve(ct,pn,dt,Cn,function(Ct,st){return e.createDiagnosticForNodeInSourceFile(nn,ot,Ct,st)});return}},onSetUnknownOptionKeyValueInRoot:function(Bn,ut,ct,ot){Bn==="excludes"&&Cn.push(e.createDiagnosticForNodeInSourceFile(nn,ut,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},at=G(nn,Cn,!0,z(),Rn);return _e||(dn?_e=dn.enableAutoDiscovery!==void 0?{enable:dn.enableAutoDiscovery,include:dn.include,exclude:dn.exclude}:dn:_e=In(oe)),{raw:at,options:yn,typeAcquisition:_e,extendedConfigPath:un}}function ve(nn,pn,le,oe,Cn){if(nn=e.normalizeSlashes(nn),e.isRootedDiskPath(nn)||e.startsWith(nn,"./")||e.startsWith(nn,"../")){var yn=e.getNormalizedAbsolutePath(nn,le);if(!pn.fileExists(yn)&&!e.endsWith(yn,".json")&&(yn=yn+".json",!pn.fileExists(yn))){oe.push(Cn(e.Diagnostics.File_0_not_found,nn));return}return yn}var _e=e.nodeModuleNameResolver(nn,e.combinePaths(le,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},pn,void 0,void 0,!0);if(_e.resolvedModule)return _e.resolvedModule.resolvedFileName;oe.push(Cn(e.Diagnostics.File_0_not_found,nn));return}function je(nn,pn,le,oe,Cn,yn,_e){var dn,un=le.useCaseSensitiveFileNames?pn:e.toLowerCase(pn),Rn,at,Bn;if(_e&&(Rn=_e.get(un)))at=Rn.extendedResult,Bn=Rn.extendedConfig;else{if(at=h(pn,function(st){return le.readFile(st)}),!at.parseDiagnostics.length){var ut=e.getDirectoryPath(pn);if(Bn=Re(void 0,at,le,ut,e.getBaseFileName(pn),Cn,yn,_e),Z(Bn)){var ct=e.convertToRelativePath(ut,oe,e.identity),ot=function(st){return e.isRootedDiskPath(st)?st:e.combinePaths(ct,st)},dt=function(st){Ct[st]&&(Ct[st]=e.map(Ct[st],ot))},Ct=Bn.raw;dt("include"),dt("exclude"),dt("files")}}_e&&_e.set(un,{extendedResult:at,extendedConfig:Bn})}if(nn&&(nn.extendedSourceFiles=[at.fileName],at.extendedSourceFiles&&(dn=nn.extendedSourceFiles).push.apply(dn,at.extendedSourceFiles)),at.parseDiagnostics.length){yn.push.apply(yn,at.parseDiagnostics);return}return Bn}function w(nn,pn,le){if(!e.hasProperty(nn,e.compileOnSaveCommandLineOption.name))return!1;var oe=fe(e.compileOnSaveCommandLineOption,nn.compileOnSave,pn,le);return typeof oe=="boolean"&&oe}function j(nn,pn,le){var oe=[],Cn=Ze(nn,pn,oe,le);return{options:Cn,errors:oe}}e.convertCompilerOptionsFromJson=j;function Pe(nn,pn,le){var oe=[],Cn=et(nn,pn,oe,le);return{options:Cn,errors:oe}}e.convertTypeAcquisitionFromJson=Pe;function a(nn){var pn=nn&&e.getBaseFileName(nn)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{};return pn}function Ze(nn,pn,le,oe){var Cn=a(oe);return ae(e.optionDeclarations,nn,pn,Cn,e.Diagnostics.Unknown_compiler_option_0,le),oe&&(Cn.configFilePath=e.normalizeSlashes(oe)),Cn}function In(nn){return{enable:!!nn&&e.getBaseFileName(nn)==="jsconfig.json",include:[],exclude:[]}}function et(nn,pn,le,oe){var Cn=In(oe),yn=qe(nn);return ae(e.typeAcquisitionDeclarations,yn,pn,Cn,e.Diagnostics.Unknown_type_acquisition_option_0,le),Cn}function ae(nn,pn,le,oe,Cn,yn){if(!pn)return;var _e=$(nn);for(var dn in pn){var un=_e.get(dn);un?oe[un.name]=fe(un,pn[dn],le,yn):yn.push(e.createCompilerDiagnostic(Cn,dn))}}function fe(nn,pn,le,oe){if(q(nn,pn)){var Cn=nn.type;return Cn==="list"&&e.isArray(pn)?Fe(nn,pn,le,oe):e.isString(Cn)?Je(nn,le,pn):$e(nn,pn,oe)}else oe.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,nn.name,H(nn)))}function Le(nn,pn,le){if(O(le))return;if(nn.type==="list"){var oe=nn;return oe.element.isFilePath||!e.isString(oe.element.type)?e.filter(e.map(le,function(Cn){return Le(oe.element,pn,Cn)}),function(Cn){return!!Cn}):le}else if(!e.isString(nn.type))return nn.type.get(e.isString(le)?le.toLowerCase():le);return Je(nn,pn,le)}function Je(nn,pn,le){return nn.isFilePath&&(le=e.getNormalizedAbsolutePath(le,pn),le===""&&(le=".")),le}function $e(nn,pn,le){if(O(pn))return;var oe=pn.toLowerCase(),Cn=nn.type.get(oe);if(Cn!==void 0)return Cn;le.push(Be(nn))}function Fe(nn,pn,le,oe){return e.filter(e.map(pn,function(Cn){return fe(nn.element,Cn,le,oe)}),function(Cn){return!!Cn})}function cn(nn){return typeof nn.trim=="function"?nn.trim():nn.replace(/^[\s]+|[\s]+$/g,"")}var Qe=/(^|\/)\*\*\/?$/,ln=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,ye=/\/[^/]*?[*?][^/]*\//,ke=/^[^*?]*(?=\/[^/]*[*?])/;function F(nn,pn,le,oe,Cn,yn,_e,dn,un){oe=e.normalizePath(oe);var Rn,at;pn&&(Rn=L(pn,_e,!1,un,"include")),le&&(at=L(le,_e,!0,un,"exclude"));var Bn=Se(Rn,at,oe,yn.useCaseSensitiveFileNames),ut={filesSpecs:nn,includeSpecs:pn,excludeSpecs:le,validatedIncludeSpecs:Rn,validatedExcludeSpecs:at,wildcardDirectories:Bn};return c(ut,oe,Cn,yn,dn)}function c(nn,pn,le,oe,Cn){Cn===void 0&&(Cn=[]),pn=e.normalizePath(pn);var yn=oe.useCaseSensitiveFileNames?e.identity:e.toLowerCase,_e=e.createMap(),dn=e.createMap(),un=e.createMap(),Rn=nn.filesSpecs,at=nn.validatedIncludeSpecs,Bn=nn.validatedExcludeSpecs,ut=nn.wildcardDirectories,ct=e.getSupportedExtensions(le,Cn),ot=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(le,ct);if(Rn)for(var dt=0,Ct=Rn;dt<Ct.length;dt++){var st=Ct[dt],Kn=e.getNormalizedAbsolutePath(st,pn);_e.set(yn(Kn),Kn)}var Ie;if(at&&at.length>0)for(var Ce=function($t){if(e.fileExtensionIs($t,".json")){if(!Ie){var wr=at.filter(function(Lt){return e.endsWith(Lt,".json")}),Yr=e.map(e.getRegularExpressionsForWildcards(wr,pn,"files"),function(Lt){return"^"+Lt+"$"});Ie=Yr?Yr.map(function(Lt){return e.getRegexFromPattern(Lt,oe.useCaseSensitiveFileNames)}):e.emptyArray}var Hr=e.findIndex(Ie,function(Lt){return Lt.test($t)});if(Hr!==-1){var mt=yn($t);!_e.has(mt)&&!un.has(mt)&&un.set(mt,$t)}return"continue"}if(ze($t,_e,dn,ct,yn))return"continue";Tn($t,dn,ct,yn);var va=yn($t);!_e.has(va)&&!dn.has(va)&&dn.set(va,$t)},_n=0,yt=oe.readDirectory(pn,ot,Bn,at,void 0);_n<yt.length;_n++){var Kn=yt[_n];Ce(Kn)}var Dt=e.arrayFrom(_e.values()),Ht=e.arrayFrom(dn.values());return{fileNames:Dt.concat(Ht,e.arrayFrom(un.values())),wildcardDirectories:ut,spec:nn}}e.getFileNamesFromConfigSpecs=c;function L(nn,pn,le,oe,Cn){return nn.filter(function(_e){var dn=te(_e,le);return dn!==void 0&&pn.push(yn(dn,_e)),dn===void 0});function yn(_e,dn){var un=e.getTsConfigPropArrayElementValue(oe,Cn,dn);return un?e.createDiagnosticForNodeInSourceFile(oe,un,_e,dn):e.createCompilerDiagnostic(_e,dn)}}function te(nn,pn){if(!pn&&Qe.test(nn))return e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0;if(ln.test(nn))return e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0}function Se(nn,pn,le,oe){var Cn=e.getRegularExpressionForWildcard(pn,le,"exclude"),yn=Cn&&new RegExp(Cn,oe?"":"i"),_e={};if(nn!==void 0){for(var dn=[],un=0,Rn=nn;un<Rn.length;un++){var at=Rn[un],Bn=e.normalizePath(e.combinePaths(le,at));if(yn&&yn.test(Bn))continue;var ut=Ne(Bn,oe);if(ut){var ct=ut.key,ot=ut.flags,dt=_e[ct];(dt===void 0||dt<ot)&&(_e[ct]=ot,ot===1&&dn.push(ct))}}for(var ct in _e)if(e.hasProperty(_e,ct))for(var Ct=0,st=dn;Ct<st.length;Ct++){var Kn=st[Ct];ct!==Kn&&e.containsPath(Kn,ct,le,!oe)&&delete _e[ct]}}return _e}function Ne(nn,pn){var le=ke.exec(nn);return le?{key:pn?le[0]:le[0].toLowerCase(),flags:ye.test(nn)?1:0}:e.isImplicitGlob(nn)?{key:nn,flags:1}:void 0}function ze(nn,pn,le,oe,Cn){for(var yn=e.getExtensionPriority(nn,oe),_e=e.adjustExtensionPriority(yn,oe),dn=0;dn<_e;dn++){var un=oe[dn],Rn=Cn(e.changeExtension(nn,un));if(pn.has(Rn)||le.has(Rn))return!0}return!1}function Tn(nn,pn,le,oe){for(var Cn=e.getExtensionPriority(nn,le),yn=e.getNextLowestExtensionPriority(Cn,le),_e=yn;_e<le.length;_e++){var dn=le[_e],un=oe(e.changeExtension(nn,dn));pn.delete(un)}}function wn(nn){var pn={};for(var le in nn)if(nn.hasOwnProperty(le)){var oe=N(le);oe!==void 0&&(pn[le]=jn(nn[le],oe))}return pn}e.convertCompilerOptionsForTelemetry=wn;function jn(nn,pn){switch(pn.type){case"object":return"";case"string":return"";case"number":return typeof nn=="number"?nn:"";case"boolean":return typeof nn=="boolean"?nn:"";case"list":var le=pn.element;return e.isArray(nn)?nn.map(function(oe){return jn(oe,le)}):"";default:return e.forEachEntry(pn.type,function(oe,Cn){if(oe===nn)return Cn})}}})(sn||(sn={}));var sn;(function(e){function o(F){F.trace(e.formatMessage.apply(void 0,arguments))}e.trace=o;function M(F,c){return!!F.traceResolution&&c.trace!==void 0}e.isTraceEnabled=M;function qe(F,c){var L;if(c&&F){var te=F.packageJsonContent;typeof te.name=="string"&&typeof te.version=="string"&&(L={name:te.name,subModuleName:c.path.slice(F.packageDirectory.length+e.directorySeparator.length),version:te.version})}return c&&{path:c.path,extension:c.ext,packageId:L}}function Ee(F){return qe(void 0,F)}function Ge(F){if(F)return e.Debug.assert(F.packageId===void 0),{path:F.path,ext:F.extension}}var Be;(function(F){F[F.TypeScript=0]="TypeScript",F[F.JavaScript=1]="JavaScript",F[F.Json=2]="Json",F[F.TSConfig=3]="TSConfig",F[F.DtsOnly=4]="DtsOnly"})(Be||(Be={}));function he(F){return F?(e.Debug.assert(e.extensionIsTS(F.extension)),{fileName:F.path,packageId:F.packageId}):void 0}function ee(F,c,L){return{resolvedModule:F&&{resolvedFileName:F.path,originalPath:F.originalPath===!0?void 0:F.originalPath,extension:F.extension,isExternalLibraryImport:c,packageId:F.packageId},failedLookupLocations:L}}function f(F,c,L,te){if(!e.hasProperty(F,c)){te.traceEnabled&&o(te.host,e.Diagnostics.package_json_does_not_have_a_0_field,c);return}var Se=F[c];if(typeof Se!==L||Se===null){te.traceEnabled&&o(te.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,c,L,Se===null?"null":typeof Se);return}return Se}function J(F,c,L,te){var Se=f(F,c,"string",te);if(Se===void 0)return;if(!Se){te.traceEnabled&&o(te.host,e.Diagnostics.package_json_had_a_falsy_0_field,c);return}var Ne=e.normalizePath(e.combinePaths(L,Se));return te.traceEnabled&&o(te.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,c,Se,Ne),Ne}function Oe(F,c,L){return J(F,"typings",c,L)||J(F,"types",c,L)}function N(F,c,L){return J(F,"tsconfig",c,L)}function Te(F,c,L){return J(F,"main",c,L)}function ie(F,c){var L=f(F,"typesVersions","object",c);return L===void 0?void 0:(c.traceEnabled&&o(c.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),L)}function ce(F,c){var L=ie(F,c);if(L===void 0)return;if(c.traceEnabled)for(var te in L)e.hasProperty(L,te)&&!e.VersionRange.tryParse(te)&&o(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,te);var Se=C(L);if(!Se){c.traceEnabled&&o(c.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor);return}var Ne=Se.version,ze=Se.paths;if(typeof ze!="object"){c.traceEnabled&&o(c.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['"+Ne+"']","object",typeof ze);return}return Se}var x;function C(F){x||(x=new e.Version(e.version));for(var c in F){if(!e.hasProperty(F,c))continue;var L=e.VersionRange.tryParse(c);if(L===void 0)continue;if(L.test(x))return{version:c,paths:F[c]}}}e.getPackageJsonTypesVersionsPaths=C;function P(F,c){if(F.typeRoots)return F.typeRoots;var L;if(F.configFilePath?L=e.getDirectoryPath(F.configFilePath):c.getCurrentDirectory&&(L=c.getCurrentDirectory()),L!==void 0)return h(L,c)}e.getEffectiveTypeRoots=P;function h(F,c){if(!c.directoryExists)return[e.combinePaths(F,X)];var L;return e.forEachAncestorDirectory(e.normalizePath(F),function(te){var Se=e.combinePaths(te,X);c.directoryExists(Se)&&(L||(L=[])).push(Se);return}),L}var X=e.combinePaths("node_modules","@types");function $(F,c,L,te,Se){var Ne=M(L,te);Se&&(L=Se.commandLine.options);var ze=[],Tn={compilerOptions:L,host:te,traceEnabled:Ne,failedLookupLocations:ze},wn=P(L,te);Ne&&(c===void 0?wn===void 0?o(te,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,F):o(te,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,F,wn):wn===void 0?o(te,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,F,c):o(te,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,F,c,wn),Se&&o(te,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Se.sourceFile.fileName));var jn=yn(),nn=!0;jn||(jn=_e(),nn=!1);var pn;if(jn){var le=jn.fileName,oe=jn.packageId,Cn=L.preserveSymlinks?le:Y(le,te,Ne);Ne&&(oe?o(te,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,F,Cn,e.packageIdToString(oe),nn):o(te,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,F,Cn,nn)),pn={primary:nn,resolvedFileName:Cn,packageId:oe,isExternalLibraryImport:S(le)}}return{resolvedTypeReferenceDirective:pn,failedLookupLocations:ze};function yn(){if(wn&&wn.length)return Ne&&o(te,e.Diagnostics.Resolving_with_primary_search_path_0,wn.join(", ")),e.firstDefined(wn,function(dn){var un=e.combinePaths(dn,F),Rn=e.getDirectoryPath(un),at=e.directoryProbablyExists(Rn,te);return!at&&Ne&&o(te,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Rn),he(we(Be.DtsOnly,un,!at,Tn))});Ne&&o(te,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function _e(){var dn=c&&e.getDirectoryPath(c);if(dn!==void 0){Ne&&o(te,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,dn);var un=void 0;if(e.isExternalModuleNameRelative(F)){var at=e.normalizePathAndParts(e.combinePaths(dn,F)).path;un=pe(Be.DtsOnly,at,!1,Tn,!0)}else{var Rn=Pe(Be.DtsOnly,F,dn,Tn,void 0,void 0);un=Rn&&Rn.value}var Bn=he(un);return!Bn&&Ne&&o(te,e.Diagnostics.Type_reference_directive_0_was_not_resolved,F),Bn}else Ne&&o(te,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}e.resolveTypeReferenceDirective=$;function Q(F,c){if(F.types)return F.types;var L=[];if(c.directoryExists&&c.getDirectories){var te=P(F,c);if(te)for(var Se=0,Ne=te;Se<Ne.length;Se++){var ze=Ne[Se];if(c.directoryExists(ze))for(var Tn=0,wn=c.getDirectories(ze);Tn<wn.length;Tn++){var jn=wn[Tn],nn=e.normalizePath(jn),pn=e.combinePaths(ze,nn,"package.json"),le=c.fileExists(pn)&&e.readJson(pn,c).typings===null;if(!le){var oe=e.getBaseFileName(nn);oe.charCodeAt(0)!==46&&L.push(oe)}}}}return L}e.getAutomaticTypeDirectiveNames=Q;function z(F,c,L){return G(se(L),se(L),F,c)}e.createModuleResolutionCache=z;function se(F){var c=e.createMap(),L=e.createMap();return{ownMap:c,redirectsMap:L,getOrCreateMapOfCacheRedirects:Ne,clear:ze,setOwnOptions:te,setOwnMap:Se};function te(Tn){F=Tn}function Se(Tn){c=Tn}function Ne(Tn){if(!Tn)return c;var wn=Tn.sourceFile.path,jn=L.get(wn);return jn||(jn=!F||e.optionsHaveModuleResolutionChanges(F,Tn.commandLine.options)?e.createMap():c,L.set(wn,jn)),jn}function ze(){c.clear(),L.clear()}}e.createCacheWithRedirects=se;function G(F,c,L,te){return{getOrCreateCacheForDirectory:Se,getOrCreateCacheForModuleName:Ne,directoryToModuleNameMap:F,moduleNameToDirectoryMap:c};function Se(wn,jn){var nn=e.toPath(wn,L,te);return ze(F,jn,nn,e.createMap)}function Ne(wn,jn){return e.Debug.assert(!e.isExternalModuleNameRelative(wn)),ze(c,jn,wn,Tn)}function ze(wn,jn,nn,pn){var le=wn.getOrCreateMapOfCacheRedirects(jn),oe=le.get(nn);return oe||(oe=pn(),le.set(nn,oe)),oe}function Tn(){var wn=e.createMap();return{get:jn,set:nn};function jn(le){return wn.get(e.toPath(le,L,te))}function nn(le,oe){var Cn=e.toPath(le,L,te);if(wn.has(Cn))return;wn.set(Cn,oe);for(var yn=oe.resolvedModule&&(oe.resolvedModule.originalPath||oe.resolvedModule.resolvedFileName),_e=yn&&pn(Cn,yn),dn=Cn;dn!==_e;){var un=e.getDirectoryPath(dn);if(un===dn||wn.has(un))break;wn.set(un,oe),dn=un}}function pn(le,oe){for(var Cn=e.toPath(e.getDirectoryPath(oe),L,te),yn=0,_e=Math.min(le.length,Cn.length);yn<_e&&le.charCodeAt(yn)===Cn.charCodeAt(yn);)yn++;if(yn===le.length&&(Cn.length===yn||Cn[yn]===e.directorySeparator))return le;var dn=e.getRootLength(le);if(yn<dn)return;var un=le.lastIndexOf(e.directorySeparator,yn-1);return un===-1?void 0:le.substr(0,Math.max(un,dn))}}}e.createModuleResolutionCacheWithMaps=G;function H(F,c,L){var te=e.getDirectoryPath(c),Se=L&&L.getOrCreateCacheForDirectory(te);return Se&&Se.get(F)}e.resolveModuleNameFromCache=H;function q(F,c,L,te,Se,Ne){var ze=M(L,te);Ne&&(L=Ne.commandLine.options),ze&&(o(te,e.Diagnostics.Resolving_module_0_from_1,F,c),Ne&&o(te,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Ne.sourceFile.fileName));var Tn=e.getDirectoryPath(c),wn=Se&&Se.getOrCreateCacheForDirectory(Tn,Ne),jn=wn&&wn.get(F);if(jn)ze&&o(te,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,F,Tn);else{var nn=L.moduleResolution;nn===void 0?(nn=e.getEmitModuleKind(L)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic,ze&&o(te,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[nn])):ze&&o(te,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[nn]),e.perfLogger.logStartResolveModule(F);switch(nn){case e.ModuleResolutionKind.NodeJs:jn=ne(F,c,L,te,Se,Ne);break;case e.ModuleResolutionKind.Classic:jn=ln(F,c,L,te,Se,Ne);break;default:return e.Debug.fail("Unexpected moduleResolution: "+nn)}jn&&jn.resolvedModule&&e.perfLogger.logInfoEvent('Module "'+F+'" resolved to "'+jn.resolvedModule.resolvedFileName+'"'),e.perfLogger.logStopResolveModule(jn&&jn.resolvedModule?""+jn.resolvedModule.resolvedFileName:"null"),wn&&(wn.set(F,jn),e.isExternalModuleNameRelative(F)||Se.getOrCreateCacheForModuleName(F,Ne).set(Tn,jn))}return ze&&(jn.resolvedModule?jn.resolvedModule.packageId?o(te,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,F,jn.resolvedModule.resolvedFileName,e.packageIdToString(jn.resolvedModule.packageId)):o(te,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,F,jn.resolvedModule.resolvedFileName):o(te,e.Diagnostics.Module_name_0_was_not_resolved,F)),jn}e.resolveModuleName=q;function be(F,c,L,te,Se){var Ne=R(F,c,te,Se);return Ne?Ne.value:e.isExternalModuleNameRelative(c)?K(F,c,L,te,Se):m(F,c,te,Se)}function R(F,c,L,te){var Se=te.compilerOptions,Ne=Se.baseUrl,ze=Se.paths;if(Ne&&ze&&!e.pathIsRelative(c))return te.traceEnabled&&(o(te.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,Ne,c),o(te.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,c)),ae(F,c,Ne,ze,L,!1,te)}function K(F,c,L,te,Se){if(!Se.compilerOptions.rootDirs)return;Se.traceEnabled&&o(Se.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,c);for(var Ne=e.normalizePath(e.combinePaths(L,c)),ze,Tn,wn=0,jn=Se.compilerOptions.rootDirs;wn<jn.length;wn++){var nn=jn[wn],pn=e.normalizePath(nn);e.endsWith(pn,e.directorySeparator)||(pn+=e.directorySeparator);var le=e.startsWith(Ne,pn)&&(Tn===void 0||Tn.length<pn.length);Se.traceEnabled&&o(Se.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,pn,Ne,le),le&&(Tn=pn,ze=nn)}if(Tn){Se.traceEnabled&&o(Se.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,Ne,Tn);var oe=Ne.substr(Tn.length);Se.traceEnabled&&o(Se.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,oe,Tn,Ne);var Cn=te(F,Ne,!e.directoryProbablyExists(L,Se.host),Se);if(Cn)return Cn;Se.traceEnabled&&o(Se.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var yn=0,_e=Se.compilerOptions.rootDirs;yn<_e.length;yn++){var nn=_e[yn];if(nn===ze)continue;var dn=e.combinePaths(e.normalizePath(nn),oe);Se.traceEnabled&&o(Se.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,oe,nn,dn);var un=e.getDirectoryPath(dn),Rn=te(F,dn,!e.directoryProbablyExists(un,Se.host),Se);if(Rn)return Rn}Se.traceEnabled&&o(Se.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}return}function m(F,c,L,te){var Se=te.compilerOptions.baseUrl;if(!Se)return;te.traceEnabled&&o(te.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,Se,c);var Ne=e.normalizePath(e.combinePaths(Se,c));return te.traceEnabled&&o(te.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,c,Se,Ne),L(F,Ne,!e.directoryProbablyExists(e.getDirectoryPath(Ne),te.host),te)}function _(F,c,L){var te=T(F,c,L),Se=te.resolvedModule,Ne=te.failedLookupLocations;if(!Se)throw new Error("Could not resolve JS module '"+F+"' starting at '"+c+"'. Looked in: "+Ne.join(", "));return Se.resolvedFileName}e.resolveJSModule=_;function I(F,c,L){var te=T(F,c,L).resolvedModule;return te&&te.resolvedFileName}e.tryResolveJSModule=I;var D=[Be.JavaScript],y=[Be.TypeScript,Be.JavaScript],E=Tr(y,[Be.Json]),k=[Be.TSConfig];function T(F,c,L){return O(F,c,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},L,void 0,D,void 0)}function ne(F,c,L,te,Se,Ne,ze){return O(F,e.getDirectoryPath(c),L,te,Se,ze?k:L.resolveJsonModule?E:y,Ne)}e.nodeModuleNameResolver=ne;function O(F,c,L,te,Se,Ne,ze){var Tn=M(L,te),wn=[],jn={compilerOptions:L,host:te,traceEnabled:Tn,failedLookupLocations:wn},nn=e.forEach(Ne,function(yn){return Cn(yn)});if(nn&&nn.value){var pn=nn.value,le=pn.resolved,oe=pn.isExternalLibraryImport;return ee(le,oe,wn)}return{resolvedModule:void 0,failedLookupLocations:wn};function Cn(yn){var _e=function(Ct,st,Kn,Ie){return pe(Ct,st,Kn,Ie,!0)},dn=be(yn,F,c,_e,jn);if(dn)return ke({resolved:dn,isExternalLibraryImport:S(dn.path)});if(e.isExternalModuleNameRelative(F)){var ut=e.normalizePathAndParts(e.combinePaths(c,F)),ct=ut.path,ot=ut.parts,dt=pe(yn,ct,!1,jn,!0);return dt&&ke({resolved:dt,isExternalLibraryImport:e.contains(ot,"node_modules")})}else{Tn&&o(te,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,F,Be[yn]);var un=Pe(yn,F,c,jn,Se,ze);if(!un)return;var Rn=un.value;if(!L.preserveSymlinks&&Rn&&!Rn.originalPath){var at=Y(Rn.path,te,Tn),Bn=at===Rn.path?void 0:Rn.path;Rn=Rr(Rr({},Rn),{path:at,originalPath:Bn})}return{value:Rn&&{resolved:Rn,isExternalLibraryImport:!0}}}}}function Y(F,c,L){if(!c.realpath)return F;var te=e.normalizePath(c.realpath(F));return L&&o(c,e.Diagnostics.Resolving_real_path_for_0_result_1,F,te),e.Debug.assert(c.fileExists(te),F+" linked to nonexistent file "+te),te}function pe(F,c,L,te,Se){if(te.traceEnabled&&o(te.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,c,Be[F]),!e.hasTrailingDirectorySeparator(c)){if(!L){var Ne=e.getDirectoryPath(c);e.directoryProbablyExists(Ne,te.host)||(te.traceEnabled&&o(te.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Ne),L=!0)}var ze=De(F,c,L,te);if(ze){var Tn=Se?v(ze):void 0,wn=Tn?He(Tn,!1,te):void 0;return qe(wn,ze)}}if(!L){var jn=e.directoryProbablyExists(c,te.host);jn||(te.traceEnabled&&o(te.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,c),L=!0)}return we(F,c,L,te,Se)}e.nodeModulesPathPart="/node_modules/";function S(F){return e.stringContains(F,e.nodeModulesPathPart)}e.pathContainsNodeModules=S;function v(F){var c=e.normalizePath(F.path),L=c.lastIndexOf(e.nodeModulesPathPart);if(L===-1)return;var te=L+e.nodeModulesPathPart.length,Se=U(c,te);return c.charCodeAt(te)===64&&(Se=U(c,Se)),c.slice(0,Se)}function U(F,c){var L=F.indexOf(e.directorySeparator,c+1);return L===-1?c:L}function ue(F,c,L,te){return Ee(De(F,c,L,te))}function De(F,c,L,te){if(F===Be.Json||F===Be.TSConfig){var Se=e.tryRemoveExtension(c,".json");return Se===void 0&&F===Be.Json?void 0:Z(Se||c,F,L,te)}var Ne=Z(c,F,L,te);if(Ne)return Ne;if(e.hasJSFileExtension(c)){var ze=e.removeFileExtension(c);if(te.traceEnabled){var Tn=c.substring(ze.length);o(te.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,c,Tn)}return Z(ze,F,L,te)}}function Z(F,c,L,te){if(!L){var Se=e.getDirectoryPath(F);Se&&(L=!e.directoryProbablyExists(Se,te.host))}switch(c){case Be.DtsOnly:return Ne(".d.ts");case Be.TypeScript:return Ne(".ts")||Ne(".tsx")||Ne(".d.ts");case Be.JavaScript:return Ne(".js")||Ne(".jsx");case Be.TSConfig:case Be.Json:return Ne(".json")}function Ne(ze){var Tn=Re(F+ze,L,te);return Tn===void 0?void 0:{path:Tn,ext:ze}}}function Re(F,c,L){if(!c){if(L.host.fileExists(F))return L.traceEnabled&&o(L.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,F),F;L.traceEnabled&&o(L.host,e.Diagnostics.File_0_does_not_exist,F)}L.failedLookupLocations.push(F);return}function we(F,c,L,te,Se){Se===void 0&&(Se=!0);var Ne=Se?He(c,L,te):void 0,ze=Ne&&Ne.packageJsonContent,Tn=Ne&&Ne.versionPaths;return qe(Ne,ve(F,c,L,te,ze,Tn))}function He(F,c,L){var te=L.host,Se=L.traceEnabled,Ne=!c&&e.directoryProbablyExists(F,te),ze=e.combinePaths(F,"package.json");if(Ne&&te.fileExists(ze)){var Tn=e.readJson(ze,te);Se&&o(te,e.Diagnostics.Found_package_json_at_0,ze);var wn=ce(Tn,L);return{packageDirectory:F,packageJsonContent:Tn,versionPaths:wn}}else Ne&&Se&&o(te,e.Diagnostics.File_0_does_not_exist,ze),L.failedLookupLocations.push(ze)}function ve(F,c,L,te,Se,Ne){var ze;if(Se)switch(F){case Be.JavaScript:case Be.Json:ze=Te(Se,c,te);break;case Be.TypeScript:ze=Oe(Se,c,te)||Te(Se,c,te);break;case Be.DtsOnly:ze=Oe(Se,c,te);break;case Be.TSConfig:ze=N(Se,c,te);break;default:return e.Debug.assertNever(F)}var Tn=function(Cn,yn,_e,dn){var un=Re(yn,_e,dn);if(un){var Rn=je(Cn,un);if(Rn)return Ee(Rn);dn.traceEnabled&&o(dn.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,un)}var at=Cn===Be.DtsOnly?Be.TypeScript:Cn;return pe(at,yn,_e,dn,!1)},wn=ze?!e.directoryProbablyExists(e.getDirectoryPath(ze),te.host):void 0,jn=L||!e.directoryProbablyExists(c,te.host),nn=e.combinePaths(c,F===Be.TSConfig?"tsconfig":"index");if(Ne&&(!ze||e.containsPath(c,ze))){var pn=e.getRelativePathFromDirectory(c,ze||nn,!1);te.traceEnabled&&o(te.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,Ne.version,e.version,pn);var le=ae(F,pn,c,Ne.paths,Tn,wn||jn,te);if(le)return Ge(le.value)}var oe=ze&&Ge(Tn(F,ze,wn,te));return oe||De(F,nn,jn,te)}function je(F,c){var L=e.tryGetExtensionFromPath(c);return L!==void 0&&w(F,L)?{path:c,ext:L}:void 0}function w(F,c){switch(F){case Be.JavaScript:return c===".js"||c===".jsx";case Be.TSConfig:case Be.Json:return c===".json";case Be.TypeScript:return c===".ts"||c===".tsx"||c===".d.ts";case Be.DtsOnly:return c===".d.ts"}}function j(F){var c=F.indexOf(e.directorySeparator);return F[0]==="@"&&(c=F.indexOf(e.directorySeparator,c+1)),c===-1?{packageName:F,rest:""}:{packageName:F.slice(0,c),rest:F.slice(c+1)}}e.parsePackageName=j;function Pe(F,c,L,te,Se,Ne){return Ze(F,c,L,te,!1,Se,Ne)}function a(F,c,L){return Ze(Be.DtsOnly,F,c,L,!0,void 0,void 0)}function Ze(F,c,L,te,Se,Ne,ze){var Tn=Ne&&Ne.getOrCreateCacheForModuleName(c,ze);return e.forEachAncestorDirectory(e.normalizeSlashes(L),function(wn){if(e.getBaseFileName(wn)!=="node_modules"){var jn=Qe(Tn,c,wn,te);return jn||ke(In(F,c,wn,te,Se))}})}function In(F,c,L,te,Se){var Ne=e.combinePaths(L,"node_modules"),ze=e.directoryProbablyExists(Ne,te.host);!ze&&te.traceEnabled&&o(te.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Ne);var Tn=Se?void 0:et(F,c,Ne,ze,te);if(Tn)return Tn;if(F===Be.TypeScript||F===Be.DtsOnly){var wn=e.combinePaths(Ne,"@types"),jn=ze;return ze&&!e.directoryProbablyExists(wn,te.host)&&(te.traceEnabled&&o(te.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,wn),jn=!1),et(Be.DtsOnly,Le(c,te),wn,jn,te)}}function et(F,c,L,te,Se){var Ne=e.normalizePath(e.combinePaths(L,c)),ze=He(Ne,!te,Se);if(ze){var Tn=De(F,Ne,!te,Se);if(Tn)return Ee(Tn);var wn=ve(F,Ne,!te,Se,ze.packageJsonContent,ze.versionPaths);return qe(ze,wn)}var jn=function(_e,dn,un,Rn){var at=De(_e,dn,un,Rn)||ve(_e,dn,un,Rn,ze&&ze.packageJsonContent,ze&&ze.versionPaths);return qe(ze,at)},nn=j(c),pn=nn.packageName,le=nn.rest;if(le!==""){var oe=e.combinePaths(L,pn);if(ze=He(oe,!te,Se),ze&&ze.versionPaths){Se.traceEnabled&&o(Se.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,ze.versionPaths.version,e.version,le);var Cn=te&&e.directoryProbablyExists(oe,Se.host),yn=ae(F,le,oe,ze.versionPaths.paths,jn,!Cn,Se);if(yn)return yn.value}}return jn(F,Ne,!te,Se)}function ae(F,c,L,te,Se,Ne,ze){var Tn=e.matchPatternOrExact(e.getOwnKeys(te),c);if(Tn){var wn=e.isString(Tn)?void 0:e.matchedText(Tn,c),jn=e.isString(Tn)?Tn:e.patternText(Tn);ze.traceEnabled&&o(ze.host,e.Diagnostics.Module_name_0_matched_pattern_1,c,jn);var nn=e.forEach(te[jn],function(pn){var le=wn?pn.replace("*",wn):pn,oe=e.normalizePath(e.combinePaths(L,le));ze.traceEnabled&&o(ze.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,pn,le);var Cn=e.tryGetExtensionFromPath(oe);if(Cn!==void 0){var yn=Re(oe,Ne,ze);if(yn!==void 0)return Ee({path:yn,ext:Cn})}return Se(F,oe,Ne||!e.directoryProbablyExists(e.getDirectoryPath(oe),ze.host),ze)});return{value:nn}}}var fe="__";function Le(F,c){var L=$e(F);return c.traceEnabled&&L!==F&&o(c.host,e.Diagnostics.Scoped_package_detected_looking_in_0,L),L}function Je(F){return"@types/"+$e(F)}e.getTypesPackageName=Je;function $e(F){if(e.startsWith(F,"@")){var c=F.replace(e.directorySeparator,fe);if(c!==F)return c.slice(1)}return F}e.mangleScopedPackageName=$e;function Fe(F){var c=e.removePrefix(F,"@types/");return c!==F?cn(c):F}e.getPackageNameFromTypesPackageName=Fe;function cn(F){return e.stringContains(F,fe)?"@"+F.replace(fe,e.directorySeparator):F}e.unmangleScopedPackageName=cn;function Qe(F,c,L,te){var Se,Ne=F&&F.get(L);if(Ne)return te.traceEnabled&&o(te.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,c,L),(Se=te.failedLookupLocations).push.apply(Se,Ne.failedLookupLocations),{value:Ne.resolvedModule&&{path:Ne.resolvedModule.resolvedFileName,originalPath:Ne.resolvedModule.originalPath||!0,extension:Ne.resolvedModule.extension,packageId:Ne.resolvedModule.packageId}}}function ln(F,c,L,te,Se,Ne){var ze=M(L,te),Tn=[],wn={compilerOptions:L,host:te,traceEnabled:ze,failedLookupLocations:Tn},jn=e.getDirectoryPath(c),nn=pn(Be.TypeScript)||pn(Be.JavaScript);return ee(nn&&nn.value,!1,Tn);function pn(le){var oe=be(le,F,jn,ue,wn);if(oe)return{value:oe};if(e.isExternalModuleNameRelative(F)){var _e=e.normalizePath(e.combinePaths(jn,F));return ke(ue(le,_e,!1,wn))}else{var Cn=Se&&Se.getOrCreateCacheForModuleName(F,Ne),yn=e.forEachAncestorDirectory(jn,function(dn){var un=Qe(Cn,F,dn,wn);if(un)return un;var Rn=e.normalizePath(e.combinePaths(dn,F));return ke(ue(le,Rn,!1,wn))});if(yn)return yn;if(le===Be.TypeScript)return a(F,jn,wn)}}}e.classicNameResolver=ln;function ye(F,c,L,te,Se){var Ne=M(L,te);Ne&&o(te,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,c,F,Se);var ze=[],Tn={compilerOptions:L,host:te,traceEnabled:Ne,failedLookupLocations:ze},wn=In(Be.DtsOnly,F,Se,Tn,!1);return ee(wn,!0,ze)}e.loadModuleFromGlobalCache=ye;function ke(F){return F!==void 0?{value:F}:void 0}})(sn||(sn={}));var sn;(function(e){var o;(function(Z){Z[Z.NonInstantiated=0]="NonInstantiated",Z[Z.Instantiated=1]="Instantiated",Z[Z.ConstEnumOnly=2]="ConstEnumOnly"})(o=e.ModuleInstanceState||(e.ModuleInstanceState={}));function M(Z,Re){return Z.body&&!Z.body.parent&&De(Z,Z.body),Z.body?qe(Z.body,Re):1}e.getModuleInstanceState=M;function qe(Z,Re){Re===void 0&&(Re=e.createMap());var we=""+e.getNodeId(Z);if(Re.has(we))return Re.get(we)||0;Re.set(we,void 0);var He=Ee(Z,Re);return Re.set(we,He),He}function Ee(Z,Re){switch(Z.kind){case 245:case 246:return 0;case 247:if(e.isEnumConst(Z))return 2;break;case 253:case 252:if(!e.hasModifier(Z,1))return 0;break;case 259:if(!Z.moduleSpecifier&&!!Z.exportClause){for(var we=0,He=0,ve=Z.exportClause.elements;He<ve.length;He++){var je=ve[He],w=Ge(je,Re);if(w>we&&(we=w),we===1)return we}return we}break;case 249:{var j=0;return e.forEachChild(Z,function(Pe){var a=qe(Pe,Re);switch(a){case 0:return;case 2:j=2;return;case 1:return j=1,!0;default:e.Debug.assertNever(a)}}),j}case 248:return M(Z,Re);case 75:if(Z.isInJSDocNamespace)return 0}return 1}function Ge(Z,Re){for(var we=Z.propertyName||Z.name,He=Z.parent;He;){if(e.isBlock(He)||e.isModuleBlock(He)||e.isSourceFile(He)){for(var ve=He.statements,je=void 0,w=0,j=ve;w<j.length;w++){var Pe=j[w];if(e.nodeHasName(Pe,we)){Pe.parent||De(He,Pe);var a=qe(Pe,Re);if((je===void 0||a>je)&&(je=a),je===1)return je}}if(je!==void 0)return je}He=He.parent}return 1}var Be;(function(Z){Z[Z.None=0]="None",Z[Z.IsContainer=1]="IsContainer",Z[Z.IsBlockScopedContainer=2]="IsBlockScopedContainer",Z[Z.IsControlFlowContainer=4]="IsControlFlowContainer",Z[Z.IsFunctionLike=8]="IsFunctionLike",Z[Z.IsFunctionExpression=16]="IsFunctionExpression",Z[Z.HasLocals=32]="HasLocals",Z[Z.IsInterface=64]="IsInterface",Z[Z.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"})(Be||(Be={}));function he(Z){return e.Debug.attachFlowNodeDebugInfo(Z),Z}var ee=he,f=Oe();function J(Z,Re){e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+Z.fileName),f(Z,Re),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")}e.bindSourceFile=J;function Oe(){var Z,Re,we,He,ve,je,w,j,Pe,a,Ze,In,et,ae,fe,Le,Je,$e,Fe,cn,Qe,ln=0,ye,ke,F={flags:1},c={flags:1},L=0,te;function Se(me,En,Zn,Gt,vr){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(me)||Z,me,En,Zn,Gt,vr)}function Ne(me,En){Z=me,Re=En,we=e.getEmitScriptTarget(Re),Qe=ze(Z,En),ke=e.createUnderscoreEscapedMap(),ln=0,te=Z.isDeclarationFile,ye=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(F),e.Debug.attachFlowNodeDebugInfo(c),Z.locals||(ha(Z),Z.symbolCount=ln,Z.classifiableNames=ke,za()),Z=void 0,Re=void 0,we=void 0,He=void 0,ve=void 0,je=void 0,w=void 0,j=void 0,Pe=void 0,a=!1,Ze=void 0,In=void 0,et=void 0,ae=void 0,fe=void 0,Le=void 0,$e=void 0,Fe=!1,cn=0,L=0}return Ne;function ze(me,En){return e.getStrictOptionValue(En,"alwaysStrict")&&!me.isDeclarationFile?!0:!!me.externalModuleIndicator}function Tn(me,En){return ln++,new ye(me,En)}function wn(me,En,Zn){me.flags|=Zn,En.symbol=me,me.declarations=e.appendIfUnique(me.declarations,En),Zn&(32|384|1536|3)&&!me.exports&&(me.exports=e.createSymbolTable()),Zn&(32|64|2048|4096)&&!me.members&&(me.members=e.createSymbolTable()),me.constEnumOnlyModule&&me.flags&(16|32|256)&&(me.constEnumOnlyModule=!1),Zn&111551&&jn(me,En)}function jn(me,En){var Zn=me.valueDeclaration;(!Zn||e.isAssignmentDeclaration(Zn)&&!e.isAssignmentDeclaration(En)||Zn.kind!==En.kind&&e.isEffectiveModuleDeclaration(Zn))&&(me.valueDeclaration=En)}function nn(me){if(me.kind===258)return me.isExportEquals?"export=":"default";var En=e.getNameOfDeclaration(me);if(En){if(e.isAmbientModule(me)){var Zn=e.getTextOfIdentifierOrLiteral(En);return e.isGlobalScopeAugmentation(me)?"__global":'"'+Zn+'"'}if(En.kind===153){var Gt=En.expression;return e.isStringOrNumericLiteralLike(Gt)?e.escapeLeadingUnderscores(Gt.text):e.isSignedNumericLiteral(Gt)?e.tokenToString(Gt.operator)+Gt.operand.text:(e.Debug.assert(e.isWellKnownSymbolSyntactically(Gt)),e.getPropertyNameForKnownSymbolName(e.idText(Gt.name)))}return e.isWellKnownSymbolSyntactically(En)?e.getPropertyNameForKnownSymbolName(e.idText(En.name)):e.isPropertyNameLiteral(En)?e.getEscapedTextOfIdentifierOrLiteral(En):void 0}switch(me.kind){case 161:return"__constructor";case 169:case 164:case 303:return"__call";case 170:case 165:return"__new";case 166:return"__index";case 259:return"__export";case 288:return"export=";case 208:if(e.getAssignmentDeclarationKind(me)===2)return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 298:return e.isJSDocConstructSignature(me)?"__new":"__call";case 155:e.Debug.assert(me.parent.kind===298,"Impossible parameter parent kind",function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[me.parent.kind]:me.parent.kind)+", expected JSDocFunctionType"});var vr=me.parent,ga=vr.parameters.indexOf(me);return"arg"+ga}}function pn(me){return e.isNamedDeclaration(me)?e.declarationNameToString(me.name):e.unescapeLeadingUnderscores(e.Debug.assertDefined(nn(me)))}function le(me,En,Zn,Gt,vr,ga){e.Debug.assert(!e.hasDynamicName(Zn));var ii=e.hasModifier(Zn,512),qa=ii&&En?"default":nn(Zn),wi;if(qa===void 0)wi=Tn(0,"__missing");else if(wi=me.get(qa),Gt&2885600&&ke.set(qa,!0),!wi)me.set(qa,wi=Tn(0,qa)),ga&&(wi.isReplaceableByMethod=!0);else{if(ga&&!wi.isReplaceableByMethod)return wi;if(wi.flags&vr){if(wi.isReplaceableByMethod)me.set(qa,wi=Tn(0,qa));else if(!(Gt&3&&wi.flags&67108864)){e.isNamedDeclaration(Zn)&&(Zn.name.parent=Zn);var eo=wi.flags&2?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,na=!0;(wi.flags&384||Gt&384)&&(eo=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,na=!1);var Lr=!1;e.length(wi.declarations)&&((ii||wi.declarations&&wi.declarations.length&&Zn.kind===258&&!Zn.isExportEquals)&&(eo=e.Diagnostics.A_module_cannot_have_multiple_default_exports,na=!1,Lr=!0));var Eo=e.getNameOfDeclaration(Zn)||Zn,Uo=[];e.forEach(wi.declarations,function(Qo,lo){var Os=e.getNameOfDeclaration(Qo)||Qo,Gs=Se(Os,eo,na?pn(Qo):void 0);Z.bindDiagnostics.push(Lr?e.addRelatedInfo(Gs,Se(Eo,lo===0?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):Gs),Lr&&Uo.push(Se(Os,e.Diagnostics.The_first_export_default_is_here))});var tl=Se(Eo,eo,na?pn(Zn):void 0);Z.bindDiagnostics.push(Lr?e.addRelatedInfo.apply(void 0,Tr([tl],Uo)):tl),wi=Tn(0,qa)}}}return wn(wi,Zn,Gt),wi.parent?e.Debug.assert(wi.parent===En,"Existing symbol parent should match new one"):wi.parent=En,wi}function oe(me,En,Zn){var Gt=e.getCombinedModifierFlags(me)&1;if(En&2097152)return me.kind===261||me.kind===252&&Gt?le(ve.symbol.exports,ve.symbol,me,En,Zn):le(ve.locals,void 0,me,En,Zn);if(e.isJSDocTypeAlias(me)&&e.Debug.assert(e.isInJSFile(me)),!e.isAmbientModule(me)&&(Gt||ve.flags&64)||e.isJSDocTypeAlias(me)){if(!ve.locals||e.hasModifier(me,512)&&!nn(me))return le(ve.symbol.exports,ve.symbol,me,En,Zn);var vr=En&111551?1048576:0,ga=le(ve.locals,void 0,me,vr,Zn);return ga.exportSymbol=le(ve.symbol.exports,ve.symbol,me,En,Zn),me.localSymbol=ga,ga}else return le(ve.locals,void 0,me,En,Zn)}function Cn(me,En){var Zn=ve,Gt=je,vr=w;if(En&1?(me.kind!==201&&(je=ve),ve=w=me,En&32&&(ve.locals=e.createSymbolTable()),La(ve)):En&2&&(w=me,w.locals=void 0),En&4){var ga=ee,ii=Ze,qa=In,wi=et,eo=ae,na=$e,Lr=Fe,Eo=En&16&&!e.hasModifier(me,256)&&!me.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(me);Eo||(Ze=he({flags:2}),En&(16|128)&&(Ze.node=me)),ae=Eo||me.kind===161?st():void 0,In=void 0,et=void 0,$e=void 0,Fe=!1,ee=he,yn(me),me.flags&=~2816,!(Ze.flags&1)&&En&8&&e.nodeIsPresent(me.body)&&(me.flags|=256,Fe&&(me.flags|=512),me.endFlowNode=Ze),me.kind===288&&(me.flags|=cn),ae&&(Ce(ae,Ze),Ze=wr(ae),me.kind===161&&(me.returnFlowNode=Ze)),Eo||(Ze=ii),In=qa,et=wi,ae=eo,$e=na,Fe=Lr,ee=ga}else En&64?(a=!1,yn(me),me.flags=a?me.flags|128:me.flags&~128):yn(me);ve=Zn,je=Gt,w=vr}function yn(me){if(te)Rn(me);else if(me.transformFlags&536870912)te=!0,Rn(me),te=!1,L|=me.transformFlags&~ue(me.kind);else{var En=L;L=0,Rn(me),L=En|C(me,L)}}function _e(me){dn(me,function(En){return En.kind===243?ha(En):void 0}),dn(me,function(En){return En.kind!==243?ha(En):void 0})}function dn(me,En){if(En===void 0&&(En=ha),me===void 0)return;if(te)e.forEach(me,En);else{var Zn=L;L=0;for(var Gt=0,vr=0,ga=me;vr<ga.length;vr++){var ii=ga[vr];En(ii),Gt|=ii.transformFlags&~536870912}me.transformFlags=Gt|536870912,L|=Zn}}function un(me){e.forEachChild(me,ha,dn)}function Rn(me){if(vs(me)){un(me),Yo(me);return}me.kind>=224&&me.kind<=240&&!Re.allowUnreachableCode&&(me.flowNode=Ze);switch(me.kind){case 228:Vt(me);break;case 227:pt(me);break;case 229:Tt(me);break;case 230:case 231:ht(me);break;case 226:bt(me);break;case 234:case 238:Ke(me);break;case 233:case 232:rr(me);break;case 239:xa(me);break;case 236:Fa(me);break;case 250:ri(me);break;case 275:Si(me);break;case 225:Oi(me);break;case 237:Ja(me);break;case 206:Vo(me);break;case 207:wo(me);break;case 208:Mo(me);break;case 202:uo(me);break;case 209:ci(me);break;case 241:ji(me);break;case 193:case 194:yr(me);break;case 195:Jr(me);break;case 315:case 308:case 309:Ro(me);break;case 288:{_e(me.statements),ha(me.endOfFileToken);break}case 222:case 249:_e(me.statements);break;default:un(me);break}Yo(me)}function at(me){switch(me.kind){case 75:case 103:case 193:case 194:return Bn(me);case 195:return ut(me);case 199:return at(me.expression);case 208:return dt(me);case 206:return me.operator===53&&at(me.operand);case 203:return at(me.expression)}return!1}function Bn(me){return me.kind===75||me.kind===103||me.kind===101||(e.isPropertyAccessExpression(me)||e.isNonNullExpression(me)||e.isParenthesizedExpression(me))&&Bn(me.expression)||e.isElementAccessExpression(me)&&e.isStringOrNumericLiteralLike(me.argumentExpression)&&Bn(me.expression)||e.isOptionalChain(me)}function ut(me){if(me.arguments)for(var En=0,Zn=me.arguments;En<Zn.length;En++){var Gt=Zn[En];if(Bn(Gt))return!0}return!!(me.expression.kind===193&&Bn(me.expression.expression))}function ct(me,En){return e.isTypeOfExpression(me)&&Ct(me.expression)&&e.isStringLiteralLike(En)}function ot(me,En){return e.isStringLiteralLike(me)&&at(En)}function dt(me){switch(me.operatorToken.kind){case 62:return Bn(me.left);case 34:case 35:case 36:case 37:return Ct(me.left)||Ct(me.right)||ct(me.right,me.left)||ct(me.left,me.right);case 97:return Ct(me.left);case 96:return ot(me.left,me.right);case 27:return at(me.right)}return!1}function Ct(me){switch(me.kind){case 199:return Ct(me.expression);case 208:switch(me.operatorToken.kind){case 62:return Ct(me.left);case 27:return Ct(me.right)}}return Bn(me)}function st(){return he({flags:4,antecedents:void 0})}function Kn(){return he({flags:8,antecedents:void 0})}function Ie(me){me.flags|=me.flags&1024?2048:1024}function Ce(me,En){!(En.flags&1)&&!e.contains(me.antecedents,En)&&((me.antecedents||(me.antecedents=[])).push(En),Ie(En))}function _n(me,En,Zn){return En.flags&1?En:Zn?(Zn.kind===105&&me&64||Zn.kind===90&&me&32)&&!e.isExpressionOfOptionalChainRoot(Zn)&&!e.isNullishCoalesce(Zn.parent)?F:at(Zn)?(Ie(En),ee({flags:me,antecedent:En,node:Zn})):En:me&32?En:F}function yt(me,En,Zn,Gt){return at(En.expression)?(Ie(me),ee({flags:128,antecedent:me,switchStatement:En,clauseStart:Zn,clauseEnd:Gt})):me}function Dt(me,En){return Ie(me),ee({flags:16,antecedent:me,node:En})}function Ht(me,En){return Ie(me),ee({flags:512,antecedent:me,node:En})}function $t(me,En){return Ie(me),ee({flags:256,antecedent:me,node:En})}function wr(me){var En=me.antecedents;return En?En.length===1?En[0]:me:F}function Yr(me){var En=me.parent;switch(En.kind){case 226:case 228:case 227:return En.expression===me;case 229:case 209:return En.condition===me}return!1}function Hr(me){for(;;)if(me.kind===199)me=me.expression;else if(me.kind===206&&me.operator===53)me=me.operand;else return me.kind===208&&(me.operatorToken.kind===55||me.operatorToken.kind===56||me.operatorToken.kind===60)}function mt(me){for(;e.isParenthesizedExpression(me.parent)||e.isPrefixUnaryExpression(me.parent)&&me.parent.operator===53;)me=me.parent;return!Yr(me)&&!Hr(me.parent)&&!(e.isOptionalChain(me.parent)&&me.parent.expression===me)}function va(me,En,Zn,Gt){var vr=fe,ga=Le;fe=Zn,Le=Gt,me(En),fe=vr,Le=ga}function Lt(me,En,Zn){va(ha,me,En,Zn),(!me||!Hr(me)&&!(e.isOptionalChain(me)&&e.isOutermostOptionalChain(me)))&&(Ce(En,_n(32,Ze,me)),Ce(Zn,_n(64,Ze,me)))}function Wn(me,En,Zn){var Gt=In,vr=et;In=En,et=Zn,ha(me),In=Gt,et=vr}function Vt(me){var En=Kn(),Zn=st(),Gt=st();Ce(En,Ze),Ze=En,Lt(me.expression,Zn,Gt),Ze=wr(Zn),Wn(me.statement,Gt,En),Ce(En,Ze),Ze=wr(Gt)}function pt(me){var En=Kn(),Zn=me.parent.kind===237?e.lastOrUndefined($e):void 0,Gt=Zn?Zn.continueTarget:st(),vr=Zn?Zn.breakTarget:st();Ce(En,Ze),Ze=En,Wn(me.statement,vr,Gt),Ce(Gt,Ze),Ze=wr(Gt),Lt(me.expression,En,vr),Ze=wr(vr)}function Tt(me){var En=Kn(),Zn=st(),Gt=st();ha(me.initializer),Ce(En,Ze),Ze=En,Lt(me.condition,Zn,Gt),Ze=wr(Zn),Wn(me.statement,Gt,En),ha(me.incrementor),Ce(En,Ze),Ze=wr(Gt)}function ht(me){var En=Kn(),Zn=st();ha(me.expression),Ce(En,Ze),Ze=En,me.kind===231&&ha(me.awaitModifier),Ce(Zn,Ze),ha(me.initializer),me.initializer.kind!==242&&ua(me.initializer),Wn(me.statement,Zn,En),Ce(En,Ze),Ze=wr(Zn)}function bt(me){var En=st(),Zn=st(),Gt=st();Lt(me.expression,En,Zn),Ze=wr(En),ha(me.thenStatement),Ce(Gt,Ze),Ze=wr(Zn),ha(me.elseStatement),Ce(Gt,Ze),Ze=wr(Gt)}function Ke(me){ha(me.expression),me.kind===234&&(Fe=!0,ae&&Ce(ae,Ze)),Ze=F}function Pn(me){if($e)for(var En=0,Zn=$e;En<Zn.length;En++){var Gt=Zn[En];if(Gt.name===me)return Gt}return}function $n(me,En,Zn){var Gt=me.kind===233?En:Zn;Gt&&(Ce(Gt,Ze),Ze=F)}function rr(me){if(ha(me.label),me.label){var En=Pn(me.label.escapedText);En&&(En.referenced=!0,$n(me,En.breakTarget,En.continueTarget))}else $n(me,In,et)}function xa(me){var En=st(),Zn=Ze,Gt=[],vr=ee;(me.catchClause||me.finallyBlock)&&(ee=function(Os){return Gt.push(Os),he(Os)}),ha(me.tryBlock),ee=vr,Ce(En,Ze);var ga=Ze,ii=F;if(me.catchClause){if(Ze=Zn,Gt.length){var qa=st();Ce(qa,Ze);for(var wi=0,eo=Gt;wi<eo.length;wi++){var na=eo[wi];Ce(qa,na)}Ze=wr(qa)}ha(me.catchClause),Ce(En,Ze),ii=Ze}if(me.finallyBlock){var Lr=Zn;if(!me.catchClause&&Gt.length){var Eo=st();Ce(Eo,Zn);for(var Uo=0,tl=Gt;Uo<tl.length;Uo++){var na=tl[Uo];Ce(Eo,na)}Lr=wr(Eo)}var Qo=he({flags:4096,antecedent:Lr,lock:{}});if(Ce(En,Qo),Ze=wr(En),ha(me.finallyBlock),Ze.flags&1||ga.flags&1&&ii.flags&1&&(Ze=ga===c||ii===c?c:F),!(Ze.flags&1)){var lo=ee({flags:8192,antecedent:Ze});Qo.lock=lo,Ze=lo}}else Ze=wr(En)}function Fa(me){var En=st();ha(me.expression);var Zn=In,Gt=Je;In=En,Je=Ze,ha(me.caseBlock),Ce(En,Ze);var vr=e.forEach(me.caseBlock.clauses,function(ga){return ga.kind===276});me.possiblyExhaustive=!vr&&!En.antecedents,vr||Ce(En,yt(Je,me,0,0)),In=Zn,Je=Gt,Ze=wr(En)}function ri(me){var En=L;L=0;for(var Zn=me.clauses,Gt=F,vr=0;vr<Zn.length;vr++){for(var ga=vr;!Zn[vr].statements.length&&vr+1<Zn.length;)ha(Zn[vr]),vr++;var ii=st();Ce(ii,yt(Je,me.parent,ga,vr+1)),Ce(ii,Gt),Ze=wr(ii);var qa=Zn[vr];ha(qa),Gt=Ze,!(Ze.flags&1)&&vr!==Zn.length-1&&Re.noFallthroughCasesInSwitch&&(qa.fallthroughFlowNode=Ze)}Zn.transformFlags=L|536870912,L|=En}function Si(me){var En=Ze;Ze=Je,ha(me.expression),Ze=En,dn(me.statements)}function xi(me,En,Zn){var Gt={name:me,breakTarget:En,continueTarget:Zn,referenced:!1};return($e||($e=[])).push(Gt),Gt}function vi(){$e.pop()}function Oi(me){if(ha(me.expression),me.expression.kind===195){var En=me.expression;e.isDottedName(En.expression)&&(Ze=Ht(Ze,En))}}function Ja(me){var En=Kn(),Zn=st();ha(me.label),Ce(En,Ze);var Gt=xi(me.label.escapedText,Zn,En);ha(me.statement),vi(),!Gt.referenced&&!Re.allowUnusedLabels&&fa(e.unusedLabelIsError(Re),me.label,e.Diagnostics.Unused_label),(!me.statement||me.statement.kind!==227)&&(Ce(Zn,Ze),Ze=wr(Zn))}function Ka(me){me.kind===208&&me.operatorToken.kind===62?ua(me.left):ua(me)}function ua(me){if(Bn(me))Ze=Dt(Ze,me);else if(me.kind===191)for(var En=0,Zn=me.elements;En<Zn.length;En++){var Gt=Zn[En];Gt.kind===212?ua(Gt.expression):Ka(Gt)}else if(me.kind===192)for(var vr=0,ga=me.properties;vr<ga.length;vr++){var ii=ga[vr];ii.kind===279?Ka(ii.initializer):ii.kind===280?ua(ii.name):ii.kind===281&&ua(ii.expression)}}function bi(me,En,Zn){var Gt=st();me.operatorToken.kind===55?Lt(me.left,Gt,Zn):Lt(me.left,En,Gt),Ze=wr(Gt),ha(me.operatorToken),Lt(me.right,En,Zn)}function Vo(me){if(me.operator===53){var En=fe;fe=Le,Le=En,un(me),Le=fe,fe=En}else un(me),(me.operator===45||me.operator===46)&&ua(me.operand)}function wo(me){un(me),(me.operator===45||me.operator===46)&&ua(me.operand)}function Mo(me){var En=me.operatorToken.kind;if(En===55||En===56||En===60)if(mt(me)){var Zn=st();bi(me,Zn,Zn),Ze=wr(Zn)}else bi(me,fe,Le);else if(un(me),e.isAssignmentOperator(En)&&!e.isAssignmentTarget(me)&&(ua(me.left),En===62&&me.left.kind===194)){var Gt=me.left;Ct(Gt.expression)&&(Ze=$t(Ze,me))}}function uo(me){un(me),me.expression.kind===193&&ua(me.expression)}function ci(me){var En=st(),Zn=st(),Gt=st();Lt(me.condition,En,Zn),Ze=wr(En),ha(me.questionToken),ha(me.whenTrue),Ce(Gt,Ze),Ze=wr(Zn),ha(me.colonToken),ha(me.whenFalse),Ce(Gt,Ze),Ze=wr(Gt)}function Gi(me){var En=e.isOmittedExpression(me)?void 0:me.name;if(e.isBindingPattern(En))for(var Zn=0,Gt=En.elements;Zn<Gt.length;Zn++){var vr=Gt[Zn];Gi(vr)}else Ze=Dt(Ze,me)}function ji(me){un(me),(me.initializer||e.isForInOrOfStatement(me.parent.parent))&&Gi(me)}function Ro(me){me.tagName.parent=me,me.kind!==309&&me.fullName&&De(me,me.fullName)}function Ao(me){un(me);var En=e.getHostSignatureFromJSDoc(me);En&&En.kind!==160&&wn(En.symbol,En,32)}function _o(me,En,Zn){va(ha,me,En,Zn),(!e.isOptionalChain(me)||e.isOutermostOptionalChain(me))&&(Ce(En,_n(32,Ze,me)),Ce(Zn,_n(64,Ze,me)))}function Ri(me){ha(me.questionDotToken);switch(me.kind){case 193:ha(me.name);break;case 194:ha(me.argumentExpression);break;case 195:dn(me.typeArguments),dn(me.arguments);break}}function xt(me,En,Zn){var Gt=me.questionDotToken?st():void 0;_o(me.expression,Gt||En,Zn),Gt&&(Ze=wr(Gt)),va(Ri,me,En,Zn),e.isOutermostOptionalChain(me)&&(Ce(En,_n(32,Ze,me)),Ce(Zn,_n(64,Ze,me)))}function Kt(me){if(mt(me)){var En=st();xt(me,En,En),Ze=wr(En)}else xt(me,fe,Le)}function yr(me){e.isOptionalChain(me)?Kt(me):un(me)}function Jr(me){if(e.isOptionalChain(me))Kt(me);else{var En=e.skipParentheses(me.expression);En.kind===200||En.kind===201?(dn(me.typeArguments),dn(me.arguments),ha(me.expression)):un(me)}if(me.expression.kind===193){var Zn=me.expression;Ct(Zn.expression)&&e.isPushOrUnshiftIdentifier(Zn.name)&&(Ze=$t(Ze,me))}}function _a(me){switch(me.kind){case 213:case 244:case 247:case 192:case 172:case 302:case 272:return 1;case 245:return 1|64;case 248:case 246:case 185:return 1|32;case 288:return 1|4|32;case 160:if(e.isObjectLiteralOrClassExpressionMethod(me))return 1|4|32|8|128;case 161:case 243:case 159:case 162:case 163:case 164:case 303:case 298:case 169:case 165:case 166:case 170:return 1|4|32|8;case 200:case 201:return 1|4|32|8|16;case 249:return 4;case 158:return me.initializer?4:0;case 278:case 229:case 230:case 231:case 250:return 2;case 222:return e.isFunctionLike(me.parent)?0:2}return 0}function La(me){j&&(j.nextContainer=me),j=me}function qr(me,En,Zn){switch(ve.kind){case 248:return oe(me,En,Zn);case 288:return Li(me,En,Zn);case 213:case 244:return pi(me,En,Zn);case 247:return le(ve.symbol.exports,ve.symbol,me,En,Zn);case 172:case 302:case 192:case 245:case 272:return le(ve.symbol.members,ve.symbol,me,En,Zn);case 169:case 170:case 164:case 165:case 303:case 166:case 160:case 159:case 161:case 162:case 163:case 243:case 200:case 201:case 298:case 315:case 308:case 246:case 185:return le(ve.locals,void 0,me,En,Zn)}}function pi(me,En,Zn){return e.hasModifier(me,32)?le(ve.symbol.exports,ve.symbol,me,En,Zn):le(ve.symbol.members,ve.symbol,me,En,Zn)}function Li(me,En,Zn){return e.isExternalModule(Z)?oe(me,En,Zn):le(Z.locals,void 0,me,En,Zn)}function mi(me){var En=e.isSourceFile(me)?me:e.tryCast(me.body,e.isModuleBlock);return!!En&&En.statements.some(function(Zn){return e.isExportDeclaration(Zn)||e.isExportAssignment(Zn)})}function da(me){me.flags&8388608&&!mi(me)?me.flags|=64:me.flags&=~64}function en(me){if(da(me),e.isAmbientModule(me))if(e.hasModifier(me,1)&&kr(me,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(me))vn(me);else{var En=void 0;if(me.name.kind===10){var Zn=me.name.text;e.hasZeroOrOneAsteriskCharacter(Zn)?En=e.tryParsePattern(Zn):kr(me.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,Zn)}var Gt=qr(me,512,110735);Z.patternAmbientModules=e.append(Z.patternAmbientModules,En&&{pattern:En,symbol:Gt})}else{var vr=vn(me);if(vr!==0){var Gt=me.symbol;Gt.constEnumOnlyModule=!(Gt.flags&(16|32|256))&&vr===2&&Gt.constEnumOnlyModule!==!1}}}function vn(me){var En=M(me),Zn=En!==0;return qr(me,Zn?512:1024,Zn?110735:0),En}function Ln(me){var En=Tn(131072,nn(me));wn(En,me,131072);var Zn=Tn(2048,"__type");wn(Zn,me,2048),Zn.members=e.createSymbolTable(),Zn.members.set(En.escapedName,En)}function Vn(me){var En;if(function(na){na[na.Property=1]="Property",na[na.Accessor=2]="Accessor"}(En||(En={})),Qe)for(var Zn=e.createUnderscoreEscapedMap(),Gt=0,vr=me.properties;Gt<vr.length;Gt++){var ga=vr[Gt];if(ga.kind===281||ga.name.kind!==75)continue;var ii=ga.name,qa=ga.kind===279||ga.kind===280||ga.kind===160?1:2,wi=Zn.get(ii.escapedText);if(!wi){Zn.set(ii.escapedText,qa);continue}if(qa===1&&wi===1){var eo=e.getErrorSpanForNode(Z,ii);Z.bindDiagnostics.push(e.createFileDiagnostic(Z,eo.start,eo.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}return dr(me,4096,"__object")}function Mt(me){return dr(me,4096,"__jsxAttributes")}function tr(me,En,Zn){return qr(me,En,Zn)}function dr(me,En,Zn){var Gt=Tn(En,Zn);return En&(8|106500)&&(Gt.parent=ve.symbol),wn(Gt,me,En),Gt}function Pr(me,En,Zn){switch(w.kind){case 248:oe(me,En,Zn);break;case 288:if(e.isExternalOrCommonJsModule(ve)){oe(me,En,Zn);break}default:w.locals||(w.locals=e.createSymbolTable(),La(w)),le(w.locals,void 0,me,En,Zn)}}function za(){if(!Pe)return;for(var me=ve,En=j,Zn=w,Gt=He,vr=Ze,ga=0,ii=Pe;ga<ii.length;ga++){var qa=ii[ga],wi=e.getJSDocHost(qa);ve=e.findAncestor(wi.parent,function(Eo){return!!(_a(Eo)&1)})||Z,w=e.getEnclosingBlockScopeContainer(wi)||Z,Ze=he({flags:2}),He=qa,ha(qa.typeExpression);var eo=e.getNameOfDeclaration(qa);if((e.isJSDocEnumTag(qa)||!qa.fullName)&&eo&&e.isPropertyAccessEntityNameExpression(eo.parent)){var na=Dr(eo.parent);if(na){_r(Z.symbol,eo.parent,na,!!e.findAncestor(eo,function(Eo){return e.isPropertyAccessExpression(Eo)&&Eo.name.escapedText==="prototype"}),!1);var Lr=ve;switch(e.getAssignmentDeclarationPropertyAccessKind(eo.parent)){case 1:case 2:e.isExternalOrCommonJsModule(Z)?ve=Z:ve=void 0;break;case 4:ve=eo.parent.expression;break;case 3:ve=eo.parent.expression.name;break;case 5:ve=e.isPropertyAccessExpression(eo.parent.expression)?eo.parent.expression.name:eo.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}ve&&oe(qa,524288,788968),ve=Lr}}else e.isJSDocEnumTag(qa)||!qa.fullName||qa.fullName.kind===75?(He=qa.parent,Pr(qa,524288,788968)):ha(qa.fullName)}ve=me,j=En,w=Zn,He=Gt,Ze=vr}function Ia(me){Qe&&me.originalKeywordKind>=112&&me.originalKeywordKind<=120&&!e.isIdentifierName(me)&&!(me.flags&8388608)&&!(me.flags&4194304)&&(Z.parseDiagnostics.length||Z.bindDiagnostics.push(Se(me,Ii(me),e.declarationNameToString(me))))}function Ii(me){return e.getContainingClass(me)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Z.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 ai(me){Qe&&e.isLeftHandSideExpression(me.left)&&e.isAssignmentOperator(me.operatorToken.kind)&&ge(me,me.left)}function hi(me){Qe&&me.variableDeclaration&&ge(me,me.variableDeclaration.name)}function Xe(me){if(Qe&&me.expression.kind===75){var En=e.getErrorSpanForNode(Z,me.expression);Z.bindDiagnostics.push(e.createFileDiagnostic(Z,En.start,En.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function qn(me){return e.isIdentifier(me)&&(me.escapedText==="eval"||me.escapedText==="arguments")}function ge(me,En){if(En&&En.kind===75){var Zn=En;if(qn(Zn)){var Gt=e.getErrorSpanForNode(Z,En);Z.bindDiagnostics.push(e.createFileDiagnostic(Z,Gt.start,Gt.length,hn(me),e.idText(Zn)))}}}function hn(me){return e.getContainingClass(me)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:Z.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Hn(me){Qe&&ge(me,me.name)}function de(me){return e.getContainingClass(me)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:Z.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 rn(me){if(we<2&&(w.kind!==288&&w.kind!==248&&!e.isFunctionLike(w))){var En=e.getErrorSpanForNode(Z,me);Z.bindDiagnostics.push(e.createFileDiagnostic(Z,En.start,En.length,de(me)))}}function kn(me){Qe&&me.numericLiteralFlags&32&&Z.bindDiagnostics.push(Se(me,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function Qn(me){Qe&&ge(me,me.operand)}function lt(me){Qe&&((me.operator===45||me.operator===46)&&ge(me,me.operand))}function Ft(me){Qe&&kr(me,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function on(me){Qe&&Re.target>=2&&((e.isDeclarationStatement(me.statement)||e.isVariableStatement(me.statement))&&kr(me.label,e.Diagnostics.A_label_is_not_allowed_here))}function kr(me,En,Zn,Gt,vr){var ga=e.getSpanOfTokenAtPosition(Z,me.pos);Z.bindDiagnostics.push(e.createFileDiagnostic(Z,ga.start,ga.length,En,Zn,Gt,vr))}function fa(me,En,Zn){Wa(me,En,En,Zn)}function Wa(me,En,Zn,Gt){to(me,{pos:e.getTokenPosOfNode(En,Z),end:Zn.end},Gt)}function to(me,En,Zn){var Gt=e.createFileDiagnostic(Z,En.pos,En.end-En.pos,Zn);me?Z.bindDiagnostics.push(Gt):Z.bindSuggestionDiagnostics=e.append(Z.bindSuggestionDiagnostics,Rr(Rr({},Gt),{category:e.DiagnosticCategory.Suggestion}))}function ha(me){if(!me)return;me.parent=He;var En=Qe;if(Rs(me),me.kind>151){var Zn=He;He=me;var Gt=_a(me);Gt===0?yn(me):Cn(me,Gt),He=Zn}else if(!te&&(me.transformFlags&536870912)===0){L|=C(me,0);var Zn=He;me.kind===1&&(He=me),Yo(me),He=Zn}Qe=En}function Yo(me){if(e.hasJSDocNodes(me))if(e.isInJSFile(me))for(var En=0,Zn=me.jsDoc;En<Zn.length;En++){var Gt=Zn[En];ha(Gt)}else for(var vr=0,ga=me.jsDoc;vr<ga.length;vr++){var Gt=ga[vr];De(me,Gt)}}function ko(me){if(!Qe)for(var En=0,Zn=me;En<Zn.length;En++){var Gt=Zn[En];if(!e.isPrologueDirective(Gt))return;if(ks(Gt)){Qe=!0;return}}}function ks(me){var En=e.getSourceTextOfNodeFromSourceFile(Z,me.expression);return En==='"use strict"'||En==="'use strict'"}function Rs(me){switch(me.kind){case 75:if(me.isInJSDocNamespace){for(var En=me.parent;En&&!e.isJSDocTypeAlias(En);)En=En.parent;Pr(En,524288,788968);break}case 103:return Ze&&(e.isExpression(me)||He.kind===280)&&(me.flowNode=Ze),Ia(me);case 193:case 194:var Zn=me;Ze&&Bn(Zn)&&(Zn.flowNode=Ze),e.isSpecialPropertyDeclaration(Zn)&&el(Zn),e.isInJSFile(Zn)&&Z.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(Zn)&&!x(w,"module")&&le(Z.locals,void 0,Zn.expression,1|134217728,111550);break;case 208:var Gt=e.getAssignmentDeclarationKind(me);switch(Gt){case 1:_s(me);break;case 2:yl(me);break;case 3:Yn(me.left,me);break;case 6:nl(me);break;case 4:Ks(me);break;case 5:tt(me);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return ai(me);case 278:return hi(me);case 202:return Xe(me);case 8:return kn(me);case 207:return Qn(me);case 206:return lt(me);case 235:return Ft(me);case 237:return on(me);case 182:a=!0;return;case 167:break;case 154:return Ho(me);case 155:return Lo(me);case 241:return di(me);case 190:return me.flowNode=Ze,di(me);case 158:case 157:return ml(me);case 279:case 280:return bo(me,4,0);case 282:return bo(me,8,900095);case 164:case 165:case 166:return qr(me,131072,0);case 160:case 159:return bo(me,8192|(me.questionToken?16777216:0),e.isObjectLiteralMethod(me)?0:103359);case 243:return Ki(me);case 161:return qr(me,16384,0);case 162:return bo(me,32768,46015);case 163:return bo(me,65536,78783);case 169:case 298:case 303:case 170:return Ln(me);case 172:case 302:case 185:return Fs(me);case 307:return Ao(me);case 192:return Vn(me);case 200:case 201:return xn(me);case 195:var vr=e.getAssignmentDeclarationKind(me);switch(vr){case 7:return gt(me);case 8:return Ds(me);case 9:return Fn(me);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(me)&&Ma(me);break;case 213:case 244:return Qe=!0,gi(me);case 245:return Pr(me,64,788872);case 246:return Pr(me,524288,788968);case 247:return vo(me);case 248:return en(me);case 272:return Mt(me);case 271:return tr(me,4,0);case 252:case 255:case 257:case 261:return qr(me,2097152,2097152);case 251:return Ul(me);case 254:return po(me);case 259:return gl(me);case 258:return hl(me);case 288:return ko(me.statements),Il();case 222:if(!e.isFunctionLike(me.parent))return;case 249:return ko(me.statements);case 310:if(me.parent.kind===303)return Lo(me);if(me.parent.kind!==302)break;case 316:var ga=me,ii=ga.isBracketed||ga.typeExpression&&ga.typeExpression.type.kind===297?4|16777216:4;return qr(ga,ii,0);case 315:case 308:case 309:return(Pe||(Pe=[])).push(me)}}function ml(me){return bo(me,4|(me.questionToken?16777216:0),0)}function Fs(me){return dr(me,2048,"__type")}function Il(){if(da(Z),e.isExternalModule(Z))$o();else if(e.isJsonSourceFile(Z)){$o();var me=Z.symbol;le(Z.symbol.exports,Z.symbol,Z,4,67108863),Z.symbol=me}}function $o(){dr(Z,512,'"'+e.removeFileExtension(Z.fileName)+'"')}function hl(me){if(!ve.symbol||!ve.symbol.exports)dr(me,2097152,nn(me));else{var En=e.exportAssignmentIsAlias(me)?2097152:4,Zn=le(ve.symbol.exports,ve.symbol,me,En,67108863);me.isExportEquals&&jn(Zn,me)}}function Ul(me){me.modifiers&&me.modifiers.length&&Z.bindDiagnostics.push(Se(me,e.Diagnostics.Modifiers_cannot_appear_here));var En=e.isSourceFile(me.parent)?e.isExternalModule(me.parent)?me.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;En?Z.bindDiagnostics.push(Se(me,En)):(Z.symbol.globalExports=Z.symbol.globalExports||e.createSymbolTable(),le(Z.symbol.globalExports,Z.symbol,me,2097152,2097152))}function gl(me){!ve.symbol||!ve.symbol.exports?dr(me,8388608,nn(me)):me.exportClause||le(ve.symbol.exports,ve.symbol,me,8388608,0)}function po(me){me.name&&qr(me,2097152,2097152)}function Cs(me){return Z.externalModuleIndicator?!1:(Z.commonJsModuleIndicator||(Z.commonJsModuleIndicator=me,$o()),!0)}function Ds(me){if(!Cs(me))return;var En=Ca(me.arguments[0],void 0,function(Gt,vr){return vr&&wn(vr,Gt,1536|67108864),vr});if(En){var Zn=4|1048576;le(En.exports,En,me,Zn,0)}}function _s(me){if(!Cs(me))return;var En=Ca(me.left.expression,void 0,function(Gt,vr){return vr&&wn(vr,Gt,1536|67108864),vr});if(En){var Zn=e.isClassExpression(me.right)?4|1048576|32:4|1048576;le(En.exports,En,me.left,Zn,0)}}function yl(me){if(!Cs(me))return;var En=e.getRightMostAssignedExpression(me.right);if(e.isEmptyObjectLiteral(En)||ve===Z&&ce(Z,En))return;var Zn=e.exportAssignmentIsAlias(me)?2097152:4|1048576|512,Gt=le(Z.symbol.exports,Z.symbol,me,Zn|67108864,0);jn(Gt,me)}function Ks(me){e.Debug.assert(e.isInJSFile(me));var En=e.getThisContainer(me,!1);switch(En.kind){case 243:case 200:var Zn=En.symbol;if(e.isBinaryExpression(En.parent)&&En.parent.operatorToken.kind===62){var Gt=En.parent.left;e.isBindableStaticAccessExpression(Gt)&&e.isPrototypeAccess(Gt.expression)&&(Zn=pa(Gt.expression.expression,je))}Zn&&Zn.valueDeclaration&&(Zn.members=Zn.members||e.createSymbolTable(),e.hasDynamicName(me)?qs(me,Zn):le(Zn.members,Zn,me,4|67108864,0&~4),wn(Zn,Zn.valueDeclaration,32));break;case 161:case 158:case 160:case 162:case 163:var vr=En.parent,ga=e.hasModifier(En,32)?vr.symbol.exports:vr.symbol.members;e.hasDynamicName(me)?qs(me,vr.symbol):le(ga,vr.symbol,me,4|67108864,0,!0);break;case 288:if(e.hasDynamicName(me))break;En.commonJsModuleIndicator?le(En.symbol.exports,En.symbol,me,4|1048576,0):qr(me,1,111550);break;default:e.Debug.failBadSyntaxKind(En)}}function qs(me,En){dr(me,4,"__computed"),$s(me,En)}function $s(me,En){if(En){var Zn=En.assignmentDeclarationMembers||(En.assignmentDeclarationMembers=e.createMap());Zn.set(""+e.getNodeId(me),me)}}function el(me){me.expression.kind===103?Ks(me):e.isBindableStaticAccessExpression(me)&&me.parent.parent.kind===288&&(e.isPrototypeAccess(me.expression)?Yn(me,me.parent):Xt(me))}function nl(me){me.left.parent=me,me.right.parent=me,Ir(me.left.expression,me.left,!1,!0)}function Fn(me){var En=pa(me.arguments[0].expression);En&&En.valueDeclaration&&wn(En,En.valueDeclaration,32),Kr(me,En,!0)}function Yn(me,En){var Zn=me.expression,Gt=Zn.expression;me.parent=En,Gt.parent=Zn,Zn.parent=me,Ir(Gt,me,!0,!0)}function gt(me){var En=pa(me.arguments[0]),Zn=me.parent.parent.kind===288;En=_r(En,me.arguments[0],Zn,!1,!1),Kr(me,En,!1)}function tt(me){var En=pa(me.left.expression);if(!e.isInJSFile(me)&&!e.isFunctionSymbol(En))return;if(me.left.parent=me,me.right.parent=me,e.isIdentifier(me.left.expression)&&ve===Z&&ce(Z,me.left.expression))_s(me);else if(e.hasDynamicName(me)){dr(me,4|67108864,"__computed");var Zn=_r(En,me.left.expression,Dr(me.left),!1,!1);$s(me,Zn)}else Xt(e.cast(me.left,e.isBindableStaticAccessExpression))}function Xt(me){me.expression.parent=me,Ir(me.expression,me,!1,!1)}function _r(me,En,Zn,Gt,vr){if(Zn&&!Gt){var ga=1536|67108864,ii=110735&~67108864;me=Ca(En,me,function(qa,wi,eo){if(wi)return wn(wi,qa,ga),wi;var na=eo?eo.exports:Z.jsGlobalAugmentations||(Z.jsGlobalAugmentations=e.createSymbolTable());return le(na,eo,qa,ga,ii)})}return vr&&me&&me.valueDeclaration&&wn(me,me.valueDeclaration,32),me}function Kr(me,En,Zn){if(!En||!Mr(En))return;var Gt=Zn?En.members||(En.members=e.createSymbolTable()):En.exports||(En.exports=e.createSymbolTable()),vr=0,ga=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(me))?(vr=8192,ga=103359):e.isCallExpression(me)&&e.isBindableObjectDefinePropertyCall(me)&&(e.some(me.arguments[2].properties,function(ii){var qa=e.getNameOfDeclaration(ii);return!!qa&&e.isIdentifier(qa)&&e.idText(qa)==="set"})&&(vr|=65536|4,ga|=78783),e.some(me.arguments[2].properties,function(ii){var qa=e.getNameOfDeclaration(ii);return!!qa&&e.isIdentifier(qa)&&e.idText(qa)==="get"})&&(vr|=32768|4,ga|=46015)),vr===0&&(vr=4,ga=0),le(Gt,En,me,vr|67108864,ga&~67108864)}function Dr(me){return e.isBinaryExpression(me.parent)?Er(me.parent).parent.kind===288:me.parent.parent.kind===288}function Ir(me,En,Zn,Gt){var vr=pa(me),ga=Dr(En);vr=_r(vr,En.expression,ga,Zn,Gt),Kr(En,vr,Zn)}function Mr(me){if(me.flags&(16|32|1024))return!0;var En=me.valueDeclaration;if(En&&e.isCallExpression(En))return!!e.getAssignedExpandoInitializer(En);var Zn=En?e.isVariableDeclaration(En)?En.initializer:e.isBinaryExpression(En)?En.right:e.isPropertyAccessExpression(En)&&e.isBinaryExpression(En.parent)?En.parent.right:void 0:void 0;if(Zn=Zn&&e.getRightMostAssignedExpression(Zn),Zn){var Gt=e.isPrototypeAccess(e.isVariableDeclaration(En)?En.name:e.isBinaryExpression(En)?En.left:En);return!!e.getExpandoInitializer(e.isBinaryExpression(Zn)&&(Zn.operatorToken.kind===56||Zn.operatorToken.kind===60)?Zn.right:Zn,Gt)}return!1}function Er(me){for(;e.isBinaryExpression(me.parent);)me=me.parent;return me.parent}function pa(me,En){if(En===void 0&&(En=ve),e.isIdentifier(me))return x(En,me.escapedText);var Zn=pa(me.expression);return Zn&&Zn.exports&&Zn.exports.get(e.getElementOrPropertyAccessName(me))}function Ca(me,En,Zn){if(ce(Z,me))return Z.symbol;if(e.isIdentifier(me))return Zn(me,pa(me),En);var Gt=Ca(me.expression,En,Zn);return Zn(e.getNameOrArgument(me),Gt&&Gt.exports&&Gt.exports.get(e.getElementOrPropertyAccessName(me)),Gt)}function Ma(me){!Z.commonJsModuleIndicator&&e.isRequireCall(me,!1)&&Cs(me)}function gi(me){if(me.kind===244)Pr(me,32,899503);else{var En=me.name?me.name.escapedText:"__class";dr(me,32,En),me.name&&ke.set(me.name.escapedText,!0)}var Zn=me.symbol,Gt=Tn(4|4194304,"prototype"),vr=Zn.exports.get(Gt.escapedName);vr&&(me.name&&(me.name.parent=me),Z.bindDiagnostics.push(Se(vr.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(Gt)))),Zn.exports.set(Gt.escapedName,Gt),Gt.parent=Zn}function vo(me){return e.isEnumConst(me)?Pr(me,128,899967):Pr(me,256,899327)}function di(me){Qe&&ge(me,me.name),e.isBindingPattern(me.name)||(e.isBlockOrCatchScoped(me)?Pr(me,2,111551):e.isParameterDeclaration(me)?qr(me,1,111551):qr(me,1,111550))}function Lo(me){if(me.kind===310&&ve.kind!==303)return;if(Qe&&!(me.flags&8388608)&&ge(me,me.name),e.isBindingPattern(me.name)?dr(me,1,"__"+me.parent.parameters.indexOf(me)):qr(me,1,111551),e.isParameterPropertyDeclaration(me,me.parent)){var En=me.parent.parent;le(En.symbol.members,En.symbol,me,4|(me.questionToken?16777216:0),0)}}function Ki(me){!Z.isDeclarationFile&&!(me.flags&8388608)&&(e.isAsyncFunction(me)&&(cn|=2048)),Hn(me),Qe?(rn(me),Pr(me,16,110991)):qr(me,16,110991)}function xn(me){!Z.isDeclarationFile&&!(me.flags&8388608)&&(e.isAsyncFunction(me)&&(cn|=2048)),Ze&&(me.flowNode=Ze),Hn(me);var En=me.name?me.name.escapedText:"__function";return dr(me,16,En)}function bo(me,En,Zn){return!Z.isDeclarationFile&&!(me.flags&8388608)&&e.isAsyncFunction(me)&&(cn|=2048),Ze&&e.isObjectLiteralOrClassExpressionMethod(me)&&(me.flowNode=Ze),e.hasDynamicName(me)?dr(me,En,"__computed"):qr(me,En,Zn)}function Fo(me){var En=e.findAncestor(me,function(Zn){return Zn.parent&&e.isConditionalTypeNode(Zn.parent)&&Zn.parent.extendsType===Zn});return En&&En.parent}function Ho(me){if(e.isJSDocTemplateTag(me.parent)){var En=e.find(me.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(me.parent);En?(En.locals||(En.locals=e.createSymbolTable()),le(En.locals,void 0,me,262144,526824)):qr(me,262144,526824)}else if(me.parent.kind===180){var Zn=Fo(me.parent);Zn?(Zn.locals||(Zn.locals=e.createSymbolTable()),le(Zn.locals,void 0,me,262144,526824)):dr(me,262144,nn(me))}else qr(me,262144,526824)}function Ga(me){var En=M(me);return En===1||En===2&&!!Re.preserveConstEnums}function vs(me){if(!(Ze.flags&1))return!1;if(Ze===F){var En=e.isStatementButNotDeclaration(me)&&me.kind!==223||me.kind===244||me.kind===248&&Ga(me);if(En&&(Ze=c,!Re.allowUnreachableCode)){var Zn=e.unreachableCodeIsError(Re)&&!(me.flags&8388608)&&(!e.isVariableStatement(me)||!!(e.getCombinedNodeFlags(me.declarationList)&3)||me.declarationList.declarations.some(function(Gt){return!!Gt.initializer}));N(me,function(Gt,vr){return Wa(Zn,Gt,vr,e.Diagnostics.Unreachable_code_detected)})}}return!0}}function N(Z,Re){if(e.isStatement(Z)&&Te(Z)&&e.isBlock(Z.parent)){var we=Z.parent.statements,He=e.sliceAfter(we,Z);e.getRangesWhere(He,Te,function(ve,je){return Re(He[ve],He[je-1])})}else Re(Z,Z)}function Te(Z){return!e.isFunctionDeclaration(Z)&&!ie(Z)&&!e.isEnumDeclaration(Z)&&!(e.isVariableStatement(Z)&&!(e.getCombinedNodeFlags(Z)&(1|2))&&Z.declarationList.declarations.some(function(Re){return!Re.initializer}))}function ie(Z){switch(Z.kind){case 245:case 246:return!0;case 248:return M(Z)!==1;case 247:return e.hasModifier(Z,2048);default:return!1}}function ce(Z,Re){for(var we=0,He=[Re];He.length&&we<100;){if(we++,Re=He.shift(),e.isExportsIdentifier(Re)||e.isModuleExportsAccessExpression(Re))return!0;if(e.isIdentifier(Re)){var ve=x(Z,Re.escapedText);if(!!ve&&!!ve.valueDeclaration&&e.isVariableDeclaration(ve.valueDeclaration)&&!!ve.valueDeclaration.initializer){var je=ve.valueDeclaration.initializer;He.push(je),e.isAssignmentExpression(je,!0)&&(He.push(je.left),He.push(je.right))}}}return!1}e.isExportsOrModuleExportsOrAlias=ce;function x(Z,Re){var we=Z.locals&&Z.locals.get(Re);return we?we.exportSymbol||we:e.isSourceFile(Z)&&Z.jsGlobalAugmentations&&Z.jsGlobalAugmentations.has(Re)?Z.jsGlobalAugmentations.get(Re):Z.symbol&&Z.symbol.exports&&Z.symbol.exports.get(Re)}function C(Z,Re){var we=Z.kind;switch(we){case 195:return P(Z,Re);case 196:return h(Z,Re);case 248:return pe(Z,Re);case 199:return Q(Z,Re);case 208:return X(Z,Re);case 225:return Y(Z,Re);case 155:return $(Z,Re);case 201:return D(Z,Re);case 200:return I(Z,Re);case 243:return _(Z,Re);case 241:return k(Z,Re);case 242:return S(Z,Re);case 224:return T(Z,Re);case 237:return ne(Z,Re);case 244:return z(Z,Re);case 213:return se(Z,Re);case 277:return G(Z,Re);case 278:return H(Z,Re);case 215:return q(Z,Re);case 161:return be(Z,Re);case 158:return m(Z,Re);case 160:return R(Z,Re);case 162:case 163:return K(Z,Re);case 252:return O(Z,Re);case 193:return y(Z,Re);case 194:return E(Z,Re);default:return v(Z,we,Re)}}e.computeTransformFlagsForNode=C;function P(Z,Re){var we=Re,He=e.skipOuterExpressions(Z.expression),ve=Z.expression;return Z.flags&32&&(we|=4),Z.typeArguments&&(we|=1),(Re&4096||e.isSuperOrSuperProperty(He))&&(we|=128,e.isSuperProperty(He)&&(we|=2048)),ve.kind===95&&(we|=524288),Z.transformFlags=we|536870912,we&~536875008}function h(Z,Re){var we=Re;return Z.typeArguments&&(we|=1),Re&4096&&(we|=128),Z.transformFlags=we|536870912,we&~536875008}function X(Z,Re){var we=Re,He=Z.operatorToken.kind,ve=Z.left.kind;return He===60?we|=4:He===62&&ve===192?we|=16|128|512:He===62&&ve===191?we|=128|512:(He===42||He===66)&&(we|=64),Z.transformFlags=we|536870912,we&~536870912}function $(Z,Re){var we=Re,He=Z.name,ve=Z.initializer,je=Z.dotDotDotToken;return(Z.questionToken||Z.type||Re&1024&&e.some(Z.decorators)||e.isThisIdentifier(He))&&(we|=1),e.hasModifier(Z,92)&&(we|=1|1024),Re&8192&&(we|=16),(Re&65536||ve||je)&&(we|=128),Z.transformFlags=we|536870912,we&~536870912}function Q(Z,Re){var we=Re,He=Z.expression,ve=He.kind;return(ve===216||ve===198)&&(we|=1),Z.transformFlags=we|536870912,we&~536870912}function z(Z,Re){var we;return e.hasModifier(Z,2)?we=1:(we=Re|128,(Re&1024||Z.typeParameters)&&(we|=1)),Z.transformFlags=we|536870912,we&~536888320}function se(Z,Re){var we=Re|128;return(Re&1024||Z.typeParameters)&&(we|=1),Z.transformFlags=we|536870912,we&~536888320}function G(Z,Re){var we=Re;switch(Z.token){case 89:we|=128;break;case 112:we|=1;break;default:e.Debug.fail("Unexpected token for heritage clause");break}return Z.transformFlags=we|536870912,we&~536870912}function H(Z,Re){var we=Re;return Z.variableDeclaration?e.isBindingPattern(Z.variableDeclaration.name)&&(we|=128):we|=8,Z.transformFlags=we|536870912,we&~536879104}function q(Z,Re){var we=Re|128;return Z.typeArguments&&(we|=1),Z.transformFlags=we|536870912,we&~536870912}function be(Z,Re){var we=Re;return(e.hasModifier(Z,2270)||!Z.body)&&(we|=1),Re&8192&&(we|=16),Z.transformFlags=we|536870912,we&~537372672}function R(Z,Re){var we=Re|128;return(Z.decorators||e.hasModifier(Z,2270)||Z.typeParameters||Z.type||!Z.body||Z.questionToken)&&(we|=1),Re&8192&&(we|=16),e.hasModifier(Z,256)&&(we|=Z.asteriskToken?16:32),Z.asteriskToken&&(we|=256),Z.transformFlags=we|536870912,U(Z.name,we&~537372672)}function K(Z,Re){var we=Re;return(Z.decorators||e.hasModifier(Z,2270)||Z.type||!Z.body)&&(we|=1),Re&8192&&(we|=16),Z.transformFlags=we|536870912,U(Z.name,we&~537372672)}function m(Z,Re){var we=Re|1048576;return(e.some(Z.decorators)||e.hasModifier(Z,2270)||Z.type||Z.questionToken)&&(we|=1),(e.isComputedPropertyName(Z.name)||e.hasStaticModifier(Z)&&Z.initializer)&&(we|=1024),Z.transformFlags=we|536870912,U(Z.name,we&~536872960)}function _(Z,Re){var we,He=e.getModifierFlags(Z),ve=Z.body;return!ve||He&2?we=1:(we=Re|262144,(He&2270||Z.typeParameters||Z.type)&&(we|=1),He&256&&(we|=Z.asteriskToken?16:32),Re&8192&&(we|=16),Z.asteriskToken&&(we|=256)),Z.transformFlags=we|536870912,we&~537373696}function I(Z,Re){var we=Re;return(e.hasModifier(Z,2270)||Z.typeParameters||Z.type)&&(we|=1),e.hasModifier(Z,256)&&(we|=Z.asteriskToken?16:32),Re&8192&&(we|=16),Z.asteriskToken&&(we|=256),Z.transformFlags=we|536870912,we&~537373696}function D(Z,Re){var we=Re|128;return(e.hasModifier(Z,2270)||Z.typeParameters||Z.type)&&(we|=1),e.hasModifier(Z,256)&&(we|=32),Re&8192&&(we|=16),Z.transformFlags=we|536870912,we&~537371648}function y(Z,Re){var we=Re;return Z.flags&32&&(we|=4),Z.expression.kind===101&&(we|=32|16),Z.transformFlags=we|536870912,we&~536870912}function E(Z,Re){var we=Re;return Z.flags&32&&(we|=4),Z.expression.kind===101&&(we|=32|16),Z.transformFlags=we|536870912,we&~536870912}function k(Z,Re){var we=Re;return we|=128|65536,Re&8192&&(we|=16),Z.type&&(we|=1),Z.transformFlags=we|536870912,we&~536870912}function T(Z,Re){var we,He=Z.declarationList.transformFlags;return e.hasModifier(Z,2)?we=1:(we=Re,He&65536&&(we|=128)),Z.transformFlags=we|536870912,we&~536870912}function ne(Z,Re){var we=Re;return Re&32768&&e.isIterationStatement(Z,!0)&&(we|=128),Z.transformFlags=we|536870912,we&~536870912}function O(Z,Re){var we=Re;return e.isExternalModuleImportEqualsDeclaration(Z)||(we|=1),Z.transformFlags=we|536870912,we&~536870912}function Y(Z,Re){var we=Re;return Z.transformFlags=we|536870912,we&~536870912}function pe(Z,Re){var we=1,He=e.getModifierFlags(Z);return(He&2)===0&&(we|=Re),Z.transformFlags=we|536870912,we&~537168896}function S(Z,Re){var we=Re|262144;return Re&65536&&(we|=128),Z.flags&3&&(we|=128|32768),Z.transformFlags=we|536870912,we&~536944640}function v(Z,Re,we){var He=we,ve=536870912;switch(Re){case 125:case 205:He|=16|32;break;case 198:case 216:case 319:He|=1,ve=536870912;break;case 118:case 116:case 117:case 121:case 129:case 80:case 247:case 282:case 217:case 137:He|=1;break;case 264:case 265:case 266:case 11:case 267:case 268:case 269:case 270:case 271:case 272:case 273:case 274:He|=2;break;case 14:case 15:case 16:case 17:case 210:case 197:case 280:case 119:case 218:He|=128;break;case 10:Z.hasExtendedUnicodeEscape&&(He|=128);break;case 8:Z.numericLiteralFlags&384&&(He|=128);break;case 9:He|=4;break;case 231:Z.awaitModifier&&(He|=16),He|=128;break;case 211:He|=16|128|131072;break;case 124:case 139:case 150:case 136:case 140:case 142:case 127:case 143:case 109:case 154:case 157:case 159:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 178:case 179:case 180:case 181:case 245:case 246:case 182:case 183:case 184:case 185:case 186:case 251:He=1,ve=-2;break;case 153:He|=16384;break;case 212:He|=128|4096;break;case 281:He|=16|8192;break;case 101:He|=128,ve=536870912;break;case 103:He|=2048;break;case 188:He|=128|65536,we&4096&&(He|=16|8192),ve=536875008;break;case 189:He|=128|65536,ve=536875008;break;case 190:He|=128,Z.dotDotDotToken&&(He|=4096);break;case 156:He|=1|1024;break;case 192:ve=536896512,we&16384&&(He|=128),we&8192&&(He|=16);break;case 191:ve=536875008;break;case 227:case 228:case 229:case 230:we&32768&&(He|=128);break;case 288:break;case 234:He|=262144|16;break;case 232:case 233:He|=262144;break}return Z.transformFlags=He|536870912,He&~ve}function U(Z,Re){return Re|Z.transformFlags&2048}function ue(Z){if(Z>=167&&Z<=187)return-2;switch(Z){case 195:case 196:case 191:return 536875008;case 248:return 537168896;case 155:return 536870912;case 201:return 537371648;case 200:case 243:return 537373696;case 242:return 536944640;case 244:case 213:return 536888320;case 161:return 537372672;case 160:case 162:case 163:return 537372672;case 124:case 139:case 150:case 136:case 142:case 140:case 127:case 143:case 109:case 154:case 157:case 159:case 164:case 165:case 166:case 245:case 246:return-2;case 192:return 536896512;case 278:return 536879104;case 188:case 189:return 536875008;case 198:case 216:case 319:case 199:case 101:return 536870912;case 193:case 194:return 536870912;default:return 536870912}}e.getTransformFlagsSubtreeExclusions=ue;function De(Z,Re){Re.parent=Z,e.forEachChild(Re,function(we){return De(Re,we)})}})(sn||(sn={}));var sn;(function(e){function o(M,qe,Ee,Ge,Be,he,ee,f,J,Oe,N){return Te;function Te(ie){ie===void 0&&(ie=function(){return!0});var ce=[],x=[];return{walkType:function(be){try{return C(be),{visitedTypes:e.getOwnValues(ce),visitedSymbols:e.getOwnValues(x)}}finally{e.clear(ce),e.clear(x)}},walkSymbol:function(be){try{return q(be),{visitedTypes:e.getOwnValues(ce),visitedSymbols:e.getOwnValues(x)}}finally{e.clear(ce),e.clear(x)}}};function C(be){if(!be)return;if(ce[be.id])return;ce[be.id]=be;var R=q(be.symbol);if(R)return;if(be.flags&524288){var K=be,m=K.objectFlags;m&4&&P(be),m&32&&z(be),m&(1|2)&&G(be),m&(8|16)&&H(K)}be.flags&262144&&h(be),be.flags&3145728&&X(be),be.flags&4194304&&$(be),be.flags&8388608&&Q(be)}function P(be){C(be.target),e.forEach(N(be),C)}function h(be){C(J(be))}function X(be){e.forEach(be.types,C)}function $(be){C(be.type)}function Q(be){C(be.objectType),C(be.indexType),C(be.constraint)}function z(be){C(be.typeParameter),C(be.constraintType),C(be.templateType),C(be.modifiersType)}function se(be){var R=qe(be);R&&C(R.type),e.forEach(be.typeParameters,C);for(var K=0,m=be.parameters;K<m.length;K++){var _=m[K];q(_)}C(M(be)),C(Ee(be))}function G(be){H(be),e.forEach(be.typeParameters,C),e.forEach(Ge(be),C),C(be.thisType)}function H(be){var R=f(be,0);C(R);var K=f(be,1);C(K);for(var m=Be(be),_=0,I=m.callSignatures;_<I.length;_++){var D=I[_];se(D)}for(var y=0,E=m.constructSignatures;y<E.length;y++){var D=E[y];se(D)}for(var k=0,T=m.properties;k<T.length;k++){var ne=T[k];q(ne)}}function q(be){if(!be)return!1;var R=e.getSymbolId(be);if(x[R])return!1;if(x[R]=be,!ie(be))return!0;var K=he(be);return C(K),be.exports&&be.exports.forEach(q),e.forEach(be.declarations,function(m){if(m.type&&m.type.kind===171){var _=m.type,I=ee(Oe(_.exprName));q(I)}}),!1}}}e.createGetSymbolWalker=o})(sn||(sn={}));var sn;(function(e){var o=/^".+"$/,M=1,qe=1,Ee=1,Ge=1,Be;(function(y){y[y.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",y[y.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",y[y.AllowsStringInputFlag=4]="AllowsStringInputFlag",y[y.ForOfFlag=8]="ForOfFlag",y[y.YieldStarFlag=16]="YieldStarFlag",y[y.SpreadFlag=32]="SpreadFlag",y[y.DestructuringFlag=64]="DestructuringFlag",y[y.Element=1]="Element",y[y.Spread=33]="Spread",y[y.Destructuring=65]="Destructuring",y[y.ForOf=13]="ForOf",y[y.ForAwaitOf=15]="ForAwaitOf",y[y.YieldStar=17]="YieldStar",y[y.AsyncYieldStar=19]="AsyncYieldStar",y[y.GeneratorReturnType=1]="GeneratorReturnType",y[y.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"})(Be||(Be={}));var he;(function(y){y[y.Yield=0]="Yield",y[y.Return=1]="Return",y[y.Next=2]="Next"})(he||(he={}));var ee;(function(y){y[y.Normal=0]="Normal",y[y.GeneratorYield=1]="GeneratorYield"})(ee||(ee={}));var f;(function(y){y[y.None=0]="None",y[y.TypeofEQString=1]="TypeofEQString",y[y.TypeofEQNumber=2]="TypeofEQNumber",y[y.TypeofEQBigInt=4]="TypeofEQBigInt",y[y.TypeofEQBoolean=8]="TypeofEQBoolean",y[y.TypeofEQSymbol=16]="TypeofEQSymbol",y[y.TypeofEQObject=32]="TypeofEQObject",y[y.TypeofEQFunction=64]="TypeofEQFunction",y[y.TypeofEQHostObject=128]="TypeofEQHostObject",y[y.TypeofNEString=256]="TypeofNEString",y[y.TypeofNENumber=512]="TypeofNENumber",y[y.TypeofNEBigInt=1024]="TypeofNEBigInt",y[y.TypeofNEBoolean=2048]="TypeofNEBoolean",y[y.TypeofNESymbol=4096]="TypeofNESymbol",y[y.TypeofNEObject=8192]="TypeofNEObject",y[y.TypeofNEFunction=16384]="TypeofNEFunction",y[y.TypeofNEHostObject=32768]="TypeofNEHostObject",y[y.EQUndefined=65536]="EQUndefined",y[y.EQNull=131072]="EQNull",y[y.EQUndefinedOrNull=262144]="EQUndefinedOrNull",y[y.NEUndefined=524288]="NEUndefined",y[y.NENull=1048576]="NENull",y[y.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",y[y.Truthy=4194304]="Truthy",y[y.Falsy=8388608]="Falsy",y[y.All=16777215]="All",y[y.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",y[y.BaseStringFacts=12582401]="BaseStringFacts",y[y.StringStrictFacts=16317953]="StringStrictFacts",y[y.StringFacts=16776705]="StringFacts",y[y.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",y[y.EmptyStringFacts=12582401]="EmptyStringFacts",y[y.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",y[y.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",y[y.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",y[y.BaseNumberFacts=12582146]="BaseNumberFacts",y[y.NumberStrictFacts=16317698]="NumberStrictFacts",y[y.NumberFacts=16776450]="NumberFacts",y[y.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",y[y.ZeroNumberFacts=12582146]="ZeroNumberFacts",y[y.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",y[y.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",y[y.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",y[y.BaseBigIntFacts=12581636]="BaseBigIntFacts",y[y.BigIntStrictFacts=16317188]="BigIntStrictFacts",y[y.BigIntFacts=16775940]="BigIntFacts",y[y.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",y[y.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",y[y.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",y[y.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",y[y.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",y[y.BaseBooleanFacts=12580616]="BaseBooleanFacts",y[y.BooleanStrictFacts=16316168]="BooleanStrictFacts",y[y.BooleanFacts=16774920]="BooleanFacts",y[y.FalseStrictFacts=12121864]="FalseStrictFacts",y[y.FalseFacts=12580616]="FalseFacts",y[y.TrueStrictFacts=7927560]="TrueStrictFacts",y[y.TrueFacts=16774920]="TrueFacts",y[y.SymbolStrictFacts=7925520]="SymbolStrictFacts",y[y.SymbolFacts=16772880]="SymbolFacts",y[y.ObjectStrictFacts=7888800]="ObjectStrictFacts",y[y.ObjectFacts=16736160]="ObjectFacts",y[y.FunctionStrictFacts=7880640]="FunctionStrictFacts",y[y.FunctionFacts=16728e3]="FunctionFacts",y[y.UndefinedFacts=9830144]="UndefinedFacts",y[y.NullFacts=9363232]="NullFacts",y[y.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",y[y.EmptyObjectFacts=16777215]="EmptyObjectFacts"})(f||(f={}));var J=e.createMapFromTemplate({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64}),Oe=e.createMapFromTemplate({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384}),N;(function(y){y[y.Type=0]="Type",y[y.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",y[y.DeclaredType=2]="DeclaredType",y[y.ResolvedReturnType=3]="ResolvedReturnType",y[y.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",y[y.EnumTagType=5]="EnumTagType",y[y.JSDocTypeReference=6]="JSDocTypeReference",y[y.ResolvedTypeArguments=7]="ResolvedTypeArguments"})(N||(N={}));var Te;(function(y){y[y.Normal=0]="Normal",y[y.Contextual=1]="Contextual",y[y.Inferential=2]="Inferential",y[y.SkipContextSensitive=4]="SkipContextSensitive",y[y.SkipGenericFunctions=8]="SkipGenericFunctions",y[y.IsForSignatureHelp=16]="IsForSignatureHelp"})(Te||(Te={}));var ie;(function(y){y[y.None=0]="None",y[y.NoIndexSignatures=1]="NoIndexSignatures",y[y.Writing=2]="Writing",y[y.CacheSymbol=4]="CacheSymbol",y[y.NoTupleBoundsCheck=8]="NoTupleBoundsCheck"})(ie||(ie={}));var ce;(function(y){y[y.None=0]="None",y[y.Bivariant=1]="Bivariant",y[y.Strict=2]="Strict"})(ce||(ce={}));var x;(function(y){y[y.IncludeReadonly=1]="IncludeReadonly",y[y.ExcludeReadonly=2]="ExcludeReadonly",y[y.IncludeOptional=4]="IncludeOptional",y[y.ExcludeOptional=8]="ExcludeOptional"})(x||(x={}));var C;(function(y){y[y.None=0]="None",y[y.Source=1]="Source",y[y.Target=2]="Target",y[y.Both=3]="Both"})(C||(C={}));var P;(function(y){y.resolvedExports="resolvedExports",y.resolvedMembers="resolvedMembers"})(P||(P={}));var h;(function(y){y[y.Local=0]="Local",y[y.Parameter=1]="Parameter"})(h||(h={}));var X=e.and(be,q),$;(function(y){y[y.GetAccessor=1]="GetAccessor",y[y.SetAccessor=2]="SetAccessor",y[y.PropertyAssignment=4]="PropertyAssignment",y[y.Method=8]="Method",y[y.GetOrSetAccessor=3]="GetOrSetAccessor",y[y.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"})($||($={}));var Q;(function(y){y[y.None=0]="None",y[y.ExportValue=1]="ExportValue",y[y.ExportType=2]="ExportType",y[y.ExportNamespace=4]="ExportNamespace"})(Q||(Q={}));function z(y){return y.id||(y.id=qe,qe++),y.id}e.getNodeId=z;function se(y){return y.id||(y.id=M,M++),y.id}e.getSymbolId=se;function G(y,E){var k=e.getModuleInstanceState(y);return k===1||E&&k===2}e.isInstantiatedModule=G;function H(y,E){var k=e.memoize(function(){var n=e.createMap();return y.getSourceFiles().forEach(function(t){if(!t.resolvedModules)return;e.forEachEntry(t.resolvedModules,function(r){r&&r.packageId&&n.set(r.packageId.name,!0)})}),n}),T,ne,O,Y=e.objectAllocator.getSymbolConstructor(),pe=e.objectAllocator.getTypeConstructor(),S=e.objectAllocator.getSignatureConstructor(),v=0,U=0,ue=0,De=0,Z=0,Re=0,we,He=e.createSymbolTable(),ve=e.identity,je=y.getCompilerOptions(),w=e.getEmitScriptTarget(je),j=e.getEmitModuleKind(je),Pe=e.getAllowSyntheticDefaultImports(je),a=e.getStrictOptionValue(je,"strictNullChecks"),Ze=e.getStrictOptionValue(je,"strictFunctionTypes"),In=e.getStrictOptionValue(je,"strictBindCallApply"),et=e.getStrictOptionValue(je,"strictPropertyInitialization"),ae=e.getStrictOptionValue(je,"noImplicitAny"),fe=e.getStrictOptionValue(je,"noImplicitThis"),Le=!!je.keyofStringsOnly,Je=je.suppressExcessPropertyErrors?0:32768,$e=iD(),Fe=ic(),cn=e.createSymbolTable(),Qe=Ga(4,"undefined");Qe.declarations=[];var ln=Ga(1536,"globalThis",8);ln.exports=cn,cn.set(ln.escapedName,ln);var ye=Ga(4,"arguments"),ke=Ga(4,"require"),F,c={getNodeCount:function(){return e.sum(y.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(y.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(y.getSourceFiles(),"symbolCount")+U},getTypeCount:function(){return v},getRelationCacheSizes:function(){return{assignable:pa.size,identity:Ma.size,subtype:Er.size}},isUndefinedSymbol:function(n){return n===Qe},isArgumentsSymbol:function(n){return n===ye},isUnknownSymbol:function(n){return n===pn},getMergedSymbol:zr,getDiagnostics:iS,getGlobalDiagnostics:S0,getTypeOfSymbolAtLocation:function(n,t){return t=e.getParseTreeNode(t),t?cA(n,t):_e},getSymbolsOfParameterPropertyDeclaration:function(n,t){var r=e.getParseTreeNode(n,e.isParameter);return r===void 0?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):tl(r,e.escapeLeadingUnderscores(t))},getDeclaredTypeOfSymbol:ho,getPropertiesOfType:io,getPropertyOfType:function(n,t){return Ji(n,e.escapeLeadingUnderscores(t))},getTypeOfPropertyOfType:function(n,t){return Zo(n,e.escapeLeadingUnderscores(t))},getIndexInfoOfType:Xi,getSignaturesOfType:oi,getIndexTypeOfType:ms,getBaseTypes:Tl,getBaseTypeOfLiteralType:Bl,getWidenedType:Ns,getTypeFromTypeNode:function(n){var t=e.getParseTreeNode(n,e.isTypeNode);return t?Ua(t):_e},getParameterType:Zs,getPromisedTypeOfPromise:xp,getReturnTypeOfSignature:Fi,isNullableType:fE,getNullableType:Fg,getNonNullableType:Wu,getNonOptionalType:Gg,getTypeArguments:go,typeToTypeNode:Fe.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Fe.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Fe.signatureToSignatureDeclaration,symbolToEntityName:Fe.symbolToEntityName,symbolToExpression:Fe.symbolToExpression,symbolToTypeParameterDeclarations:Fe.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Fe.symbolToParameterDeclaration,typeParameterToDeclaration:Fe.typeParameterToDeclaration,getSymbolsInScope:function(n,t){return n=e.getParseTreeNode(n),n?x0(n,t):[]},getSymbolAtLocation:function(n){return n=e.getParseTreeNode(n),n?ud(n):void 0},getShorthandAssignmentValueSymbol:function(n){return n=e.getParseTreeNode(n),n?I0(n):void 0},getExportSpecifierLocalTargetSymbol:function(n){var t=e.getParseTreeNode(n,e.isExportSpecifier);return t?N0(t):void 0},getExportSymbolOfSymbol:function(n){return zr(n.exportSymbol||n)},getTypeAtLocation:function(n){return n=e.getParseTreeNode(n),n?Gf(n):_e},getTypeOfAssignmentPattern:function(n){var t=e.getParseTreeNode(n,e.isAssignmentPattern);return t&&Oh(t)||_e},getPropertySymbolOfDestructuringAssignment:function(n){var t=e.getParseTreeNode(n,e.isIdentifier);return t?O0(t):void 0},signatureToString:function(n,t,r,i){return Bs(n,e.getParseTreeNode(t),r,i)},typeToString:function(n,t,r){return qt(n,e.getParseTreeNode(t),r)},symbolToString:function(n,t,r,i){return wa(n,e.getParseTreeNode(t),r,i)},typePredicateToString:function(n,t,r){return Wl(n,e.getParseTreeNode(t),r)},writeSignature:function(n,t,r,i,l){return Bs(n,e.getParseTreeNode(t),r,i,l)},writeType:function(n,t,r,i){return qt(n,e.getParseTreeNode(t),r,i)},writeSymbol:function(n,t,r,i,l){return wa(n,e.getParseTreeNode(t),r,i,l)},writeTypePredicate:function(n,t,r,i){return Wl(n,e.getParseTreeNode(t),r,i)},getAugmentedPropertiesOfType:i_,getRootSymbols:dS,getContextualType:function(n,t){var r=e.getParseTreeNode(n,e.isExpression);return r?Qc(r,t):void 0},getContextualTypeForObjectLiteralElement:function(n){var t=e.getParseTreeNode(n,e.isObjectLiteralElementLike);return t?uy(t):void 0},getContextualTypeForArgumentAtIndex:function(n,t){var r=e.getParseTreeNode(n,e.isCallLikeExpression);return r&&cy(r,t)},getContextualTypeForJsxAttribute:function(n){var t=e.getParseTreeNode(n,e.isJsxAttributeLike);return t&&zb(t)},isContextSensitive:Gl,getFullyQualifiedName:zn,getResolvedSignature:function(n,t,r){return L(n,t,r,0)},getResolvedSignatureForSignatureHelp:function(n,t,r){return L(n,t,r,16)},getExpandedParameters:v_,hasEffectiveRestParameter:qu,getConstantValue:function(n){var t=e.getParseTreeNode(n,yS);return t?c_(t):void 0},isValidPropertyAccess:function(n,t){var r=e.getParseTreeNode(n,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!r&&b2(r,e.escapeLeadingUnderscores(t))},isValidPropertyAccessForCompletions:function(n,t,r){var i=e.getParseTreeNode(n,e.isPropertyAccessExpression);return!!i&&E2(i,t,r)},getSignatureFromDeclaration:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?fc(t):void 0},isImplementationOfOverload:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?hS(t):void 0},getImmediateAliasedSymbol:tE,getAliasedSymbol:V,getEmitResolver:Lo,getExportsOfModule:oa,getExportsAndPropertiesOfModule:sa,getSymbolWalker:e.createGetSymbolWalker(m1,ul,Fi,Tl,dc,Jn,Yc,eg,ll,e.getFirstIdentifier,go),getAmbientModules:XD,getJsxIntrinsicTagNamesAt:i2,isOptionalParameter:function(n){var t=e.getParseTreeNode(n,e.isParameter);return t?Gp(t):!1},tryGetMemberInModuleExports:function(n,t){return Da(e.escapeLeadingUnderscores(n),t)},tryGetMemberInModuleExportsAndProperties:function(n,t){return Ha(e.escapeLeadingUnderscores(n),t)},tryFindAmbientModuleWithoutAugmentations:function(n){return F_(n,!1)},getApparentType:us,getUnionType:Wr,isTypeAssignableTo:function(n,t){return Wi(n,t)},createAnonymousType:No,createSignature:Kc,createSymbol:Ga,createIndexInfo:dl,getAnyType:function(){return oe},getStringType:function(){return ct},getNumberType:function(){return ot},createPromiseType:mh,createArrayType:Is,getElementTypeOfArrayType:jm,getBooleanType:function(){return Ce},getFalseType:function(n){return n?Ct:st},getTrueType:function(n){return n?Kn:Ie},getVoidType:function(){return yt},getUndefinedType:function(){return un},getNullType:function(){return Bn},getESSymbolType:function(){return _n},getNeverType:function(){return Dt},getOptionalType:function(){return at},isSymbolAccessible:Sc,getObjectFlags:e.getObjectFlags,isArrayType:Ms,isTupleType:Do,isArrayLikeType:Sd,isTypeInvalidDueToUnionDiscriminant:$S,getAllPossiblePropertiesOfTypes:e1,getSuggestionForNonexistentProperty:function(n,t){return Ey(n,t)},getSuggestionForNonexistentSymbol:function(n,t,r){return y2(n,e.escapeLeadingUnderscores(t),r)},getSuggestionForNonexistentExport:function(n,t){return _2(n,t)},getBaseConstraintOfType:cl,getDefaultFromTypeParameter:function(n){return n&&n.flags&262144?zd(n):void 0},resolveName:function(n,t,r,i){return lo(t,e.escapeLeadingUnderscores(n),r,void 0,void 0,!1,i)},getJsxNamespace:function(n){return e.unescapeLeadingUnderscores(di(n))},getAccessibleSymbolChain:Ts,getTypePredicateOfSignature:ul,resolveExternalModuleSymbol:$a,tryGetThisTypeAt:function(n,t){return n=e.getParseTreeNode(n),n&&oy(n,t)},getTypeArgumentConstraint:function(n){var t=e.getParseTreeNode(n,e.isTypeNode);return t&&Jk(t)},getSuggestionDiagnostics:function(n,t){if(e.skipTypeChecking(n,je,y))return e.emptyArray;var r;try{return T=t,r_(n),e.Debug.assert(!!(Lr(n).flags&1)),r=e.addRange(r,Xt.getDiagnostics(n.fileName)),!n.isDeclarationFile&&(!Lh(0)||!Lh(1))&&i(),r||e.emptyArray}finally{T=void 0}function i(){CT(aS(n),function(l,d,A){!e.containsParseError(l)&&!Lh(d)&&(r||(r=[])).push(Rr(Rr({},A),{category:e.DiagnosticCategory.Suggestion}))})}},runWithCancellationToken:function(n,t){try{return T=n,t(c)}finally{T=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Ko};function L(n,t,r,i){var l=e.getParseTreeNode(n,e.isCallLikeExpression);F=r;var d=l?If(l,t,i):void 0;return F=void 0,d}var te=e.createMap(),Se=e.createMap(),Ne=e.createMap(),ze=e.createMap(),Tn=e.createMap(),wn=e.createMap(),jn=[],nn=e.createMap(),pn=Ga(4,"unknown"),le=Ga(0,"__resolving__"),oe=Io(1,"any"),Cn=Io(1,"any"),yn=Io(1,"any"),_e=Io(1,"error"),dn=Io(2,"unknown"),un=Io(32768,"undefined"),Rn=a?un:Io(32768,"undefined",262144),at=Io(32768,"undefined"),Bn=Io(65536,"null"),ut=a?Bn:Io(65536,"null",262144),ct=Io(4,"string"),ot=Io(8,"number"),dt=Io(64,"bigint"),Ct=Io(512,"false"),st=Io(512,"false"),Kn=Io(512,"true"),Ie=Io(512,"true");Kn.regularType=Ie,Kn.freshType=Kn,Ie.regularType=Ie,Ie.freshType=Kn,Ct.regularType=st,Ct.freshType=Ct,st.regularType=st,st.freshType=Ct;var Ce=tc([st,Ie]);tc([st,Kn]),tc([Ct,Ie]),tc([Ct,Kn]);var _n=Io(4096,"symbol"),yt=Io(16384,"void"),Dt=Io(131072,"never"),Ht=Io(131072,"never"),$t=Io(131072,"never",1048576),wr=Io(131072,"never"),Yr=Io(131072,"never"),Hr=Io(67108864,"object"),mt=Wr([ct,ot,_n]),va=Le?ct:mt,Lt=Wr([ot,dt]),Wn=No(void 0,He,e.emptyArray,e.emptyArray,void 0,void 0),Vt=No(void 0,He,e.emptyArray,e.emptyArray,void 0,void 0);Vt.objectFlags|=4096;var pt=Ga(2048,"__type");pt.members=e.createSymbolTable();var Tt=No(pt,He,e.emptyArray,e.emptyArray,void 0,void 0),ht=No(void 0,He,e.emptyArray,e.emptyArray,void 0,void 0);ht.instantiations=e.createMap();var bt=No(void 0,He,e.emptyArray,e.emptyArray,void 0,void 0);bt.objectFlags|=1048576;var Ke=No(void 0,He,e.emptyArray,e.emptyArray,void 0,void 0),Pn=No(void 0,He,e.emptyArray,e.emptyArray,void 0,void 0),$n=No(void 0,He,e.emptyArray,e.emptyArray,void 0,void 0),rr=il(),xa=il();xa.constraint=rr;var Fa=il(),ri=Bp(1,"<<unresolved>>",0,oe),Si=Kc(void 0,void 0,void 0,e.emptyArray,oe,void 0,0,0),xi=Kc(void 0,void 0,void 0,e.emptyArray,_e,void 0,0,0),vi=Kc(void 0,void 0,void 0,e.emptyArray,oe,void 0,0,0),Oi=Kc(void 0,void 0,void 0,e.emptyArray,Ht,void 0,0,0),Ja=dl(ct,!0),Ka=e.createMap(),ua={get yieldType(){throw new Error("Not supported")},get returnType(){throw new Error("Not supported")},get nextType(){throw new Error("Not supported")}},bi=ku(oe,oe,oe),Vo=ku(oe,oe,dn),wo=ku(Dt,oe,un),Mo={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:I1,getGlobalIterableType:L1,getGlobalIterableIteratorType:N1,getGlobalGeneratorType:O1,resolveIterationType:mc,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},uo={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:P1,getGlobalIterableType:nv,getGlobalIterableIteratorType:M1,getGlobalGeneratorType:R1,resolveIterationType:function(n,t){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},ci,Gi=e.createMap(),ji,Ro,Ao,_o,Ri,xt,Kt,yr,Jr,_a,La,qr,pi,Li,mi,da,en,vn,Ln,Vn,Mt,tr,dr,Pr,za,Ia,Ii,ai,hi,Xe,qn,ge,hn,Hn,de,rn,kn,Qn,lt,Ft,on=e.createMap(),kr=0,fa=0,Wa=0,to=!1,ha=0,Yo,ko,ks=rs(""),Rs=rs(0),ml=rs({negative:!1,base10Value:"0"}),Fs=[],Il=[],$o=[],hl=0,Ul=10,gl=[],po=[],Cs=[],Ds=[],_s=[],yl=[],Ks=[],qs=[],$s=[],el=[],nl=[],Fn=[],Yn=[],gt=[],tt=e.createDiagnosticCollection(),Xt=e.createDiagnosticCollection(),_r=e.createMapFromTemplate({string:ct,number:ot,bigint:dt,boolean:Ce,symbol:_n,undefined:un}),Kr=ar(),Dr,Ir,Mr,Er=e.createMap(),pa=e.createMap(),Ca=e.createMap(),Ma=e.createMap(),gi=e.createMap(),vo=e.createSymbolTable();return vo.set(Qe.escapedName,Qe),oD(),c;function di(n){if(n){var t=e.getSourceFileOfNode(n);if(t){if(t.localJsxNamespace)return t.localJsxNamespace;var r=t.pragmas.get("jsx");if(r){var i=e.isArray(r)?r[0]:r;if(t.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,w),t.localJsxFactory)return t.localJsxNamespace=e.getFirstIdentifier(t.localJsxFactory).escapedText}}}return Dr||(Dr="React",je.jsxFactory?(Ir=e.parseIsolatedEntityName(je.jsxFactory,w),Ir&&(Dr=e.getFirstIdentifier(Ir).escapedText)):je.reactNamespace&&(Dr=e.escapeLeadingUnderscores(je.reactNamespace))),Dr}function Lo(n,t){return iS(n,t),$e}function Ki(n,t,r,i,l,d){var A=n?e.createDiagnosticForNode(n,t,r,i,l,d):e.createCompilerDiagnostic(t,r,i,l,d),B=tt.lookup(A);return B||(tt.add(A),A)}function xn(n,t,r,i,l,d){var A=n?e.createDiagnosticForNode(n,t,r,i,l,d):e.createCompilerDiagnostic(t,r,i,l,d);return tt.add(A),A}function bo(n,t){n?tt.add(t):Xt.add(Rr(Rr({},t),{category:e.DiagnosticCategory.Suggestion}))}function Fo(n,t,r,i,l,d,A){bo(n,"message"in r?e.createDiagnosticForNode(t,r,i,l,d,A):e.createDiagnosticForNodeFromMessageChain(t,r))}function Ho(n,t,r,i,l,d,A){var B=xn(n,r,i,l,d,A);if(t){var Ae=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(B,Ae)}return B}function Ga(n,t,r){U++;var i=new Y(n|33554432,t);return i.checkFlags=r||0,i}function vs(n){return(n.flags&33554432)!==0}function me(n){var t=0;return n&2&&(t|=111551),n&1&&(t|=111550),n&4&&(t|=0),n&8&&(t|=900095),n&16&&(t|=110991),n&32&&(t|=899503),n&64&&(t|=788872),n&256&&(t|=899327),n&128&&(t|=899967),n&512&&(t|=110735),n&8192&&(t|=103359),n&32768&&(t|=46015),n&65536&&(t|=78783),n&262144&&(t|=526824),n&524288&&(t|=788968),n&2097152&&(t|=2097152),t}function En(n,t){t.mergeId||(t.mergeId=Ee,Ee++),gl[t.mergeId]=n}function Zn(n){var t=Ga(n.flags,n.escapedName);return t.declarations=n.declarations?n.declarations.slice():[],t.parent=n.parent,n.valueDeclaration&&(t.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),n.members&&(t.members=e.cloneMap(n.members)),n.exports&&(t.exports=e.cloneMap(n.exports)),En(t,n),t}function Gt(n,t,r){if(r===void 0&&(r=!1),!(n.flags&me(t.flags))||(t.flags|n.flags)&67108864){if(t===n)return n;if(!(n.flags&33554432)){var i=b(n);if(i===pn)return t;n=Zn(i)}t.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!t.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=t.flags,t.valueDeclaration&&(!n.valueDeclaration||e.isAssignmentDeclaration(n.valueDeclaration)&&!e.isAssignmentDeclaration(t.valueDeclaration)||e.isEffectiveModuleDeclaration(n.valueDeclaration)&&!e.isEffectiveModuleDeclaration(t.valueDeclaration))&&(n.valueDeclaration=t.valueDeclaration),e.addRange(n.declarations,t.declarations),t.members&&(n.members||(n.members=e.createSymbolTable()),qa(n.members,t.members,r)),t.exports&&(n.exports||(n.exports=e.createSymbolTable()),qa(n.exports,t.exports,r)),r||En(n,t)}else if(n.flags&1024)n!==ln&&xn(e.getNameOfDeclaration(t.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,wa(n));else{var l=!!(n.flags&384||t.flags&384),d=!!(n.flags&2||t.flags&2),A=l?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:d?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,B=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),Ae=n.declarations&&e.getSourceFileOfNode(n.declarations[0]),We=wa(t);if(B&&Ae&&ci&&!l&&B!==Ae){var Ye=e.comparePaths(B.path,Ae.path)===-1?B:Ae,tn=Ye===B?Ae:B,bn=e.getOrUpdate(ci,Ye.path+"|"+tn.path,function(){return{firstFile:Ye,secondFile:tn,conflictingSymbols:e.createMap()}}),Mn=e.getOrUpdate(bn.conflictingSymbols,We,function(){return{isBlockScoped:d,firstFileLocations:[],secondFileLocations:[]}});it(Mn.firstFileLocations,t),it(Mn.secondFileLocations,n)}else vr(t,A,We,n),vr(n,A,We,t)}return n;function it(_t,St){for(var Yt=0,mr=St.declarations;Yt<mr.length;Yt++){var or=mr[Yt];e.pushIfUnique(_t,(e.getExpandoInitializer(or,!1)?e.getNameOfExpando(or):e.getNameOfDeclaration(or))||or)}}}function vr(n,t,r,i){e.forEach(n.declarations,function(l){var d=(e.getExpandoInitializer(l,!1)?e.getNameOfExpando(l):e.getNameOfDeclaration(l))||l;ga(d,t,r,i.declarations)})}function ga(n,t,r,i){for(var l=Ki(n,t,r),d=0,A=i||e.emptyArray;d<A.length;d++){var B=A[d];if(l.relatedInformation=l.relatedInformation||[],e.length(l.relatedInformation)>=5)continue;e.addRelatedInfo(l,e.length(l.relatedInformation)?e.createDiagnosticForNode(B,e.Diagnostics.and_here):e.createDiagnosticForNode(B,e.Diagnostics._0_was_also_declared_here,r))}}function ii(n,t){if(!e.hasEntries(n))return t;if(!e.hasEntries(t))return n;var r=e.createSymbolTable();return qa(r,n),qa(r,t),r}function qa(n,t,r){r===void 0&&(r=!1),t.forEach(function(i,l){var d=n.get(l);n.set(l,d?Gt(d,i,r):i)})}function wi(n){var t=n.parent;if(t.symbol.declarations[0]!==t){e.Debug.assert(t.symbol.declarations.length>1);return}if(e.isGlobalScopeAugmentation(t))qa(cn,t.symbol.exports);else{var r=n.parent.parent.flags&8388608?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,i=ba(n,n,r,!0);if(!i)return;if(i=$a(i),i.flags&1920)if(e.some(Ro,function(d){return i===d.symbol})){var l=Gt(t.symbol,i,!0);Ao||(Ao=e.createMap()),Ao.set(n.text,l)}else Gt(i,t.symbol);else xn(n,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function eo(n,t,r){t.forEach(function(l,d){var A=n.get(d);A?e.forEach(A.declarations,i(e.unescapeLeadingUnderscores(d),r)):n.set(d,l)});function i(l,d){return function(A){return tt.add(e.createDiagnosticForNode(A,d,l))}}}function na(n){if(n.flags&33554432)return n;var t=se(n);return po[t]||(po[t]={})}function Lr(n){var t=z(n);return Cs[t]||(Cs[t]={flags:0})}function Eo(n){return n.kind===288&&!e.isExternalOrCommonJsModule(n)}function Uo(n,t,r){if(r){var i=n.get(t);if(i){if(e.Debug.assert((e.getCheckFlags(i)&1)===0,"Should never get an instantiated symbol here."),i.flags&r)return i;if(i.flags&2097152){var l=V(i);if(l===pn||l.flags&r)return i}}}}function tl(n,t){var r=n.parent,i=n.parent.parent,l=Uo(r.locals,t,111551),d=Uo(gu(i.symbol),t,111551);return l&&d?[l,d]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Qo(n,t){var r=e.getSourceFileOfNode(n),i=e.getSourceFileOfNode(t);if(r!==i){if(j&&(r.externalModuleIndicator||i.externalModuleIndicator)||!je.outFile&&!je.out||lp(t)||n.flags&8388608)return!0;if(Ae(t,n))return!0;var l=y.getSourceFiles();return l.indexOf(r)<=l.indexOf(i)}if(n.pos<=t.pos){if(n.kind===190){var d=e.getAncestor(t,190);return d?e.findAncestor(d,e.isBindingElement)!==e.findAncestor(n,e.isBindingElement)||n.pos<d.pos:Qo(e.getAncestor(n,241),t)}else{if(n.kind===241)return!B(n,t);if(e.isClassDeclaration(n))return!e.findAncestor(t,function(Ye){return e.isComputedPropertyName(Ye)&&Ye.parent.parent===n});if(e.isPropertyDeclaration(n))return!We(n,t)}return!0}if(t.parent.kind===261||t.parent.kind===258&&t.parent.isExportEquals)return!0;if(t.kind===258&&t.isExportEquals)return!0;var A=e.getEnclosingBlockScopeContainer(n);return!!(t.flags&4194304)||lp(t)||Ae(t,n,A);function B(Ye,tn){var bn=e.getEnclosingBlockScopeContainer(Ye);switch(Ye.parent.parent.kind){case 224:case 229:case 231:if(Mc(tn,Ye,bn))return!0;break}var Mn=Ye.parent.parent;return e.isForInOrOfStatement(Mn)&&Mc(tn,Mn.expression,bn)}function Ae(Ye,tn,bn){return!!e.findAncestor(Ye,function(Mn){if(Mn===bn)return"quit";if(e.isFunctionLike(Mn))return!0;var it=Mn.parent&&Mn.parent.kind===158&&Mn.parent.initializer===Mn;if(it)if(e.hasModifier(Mn.parent,32)){if(tn.kind===160)return!0}else{var _t=tn.kind===158&&!e.hasModifier(tn,32);if(!_t||e.getContainingClass(Ye)!==e.getContainingClass(tn))return!0}return!1})}function We(Ye,tn){if(tn.end>Ye.end)return!1;var bn=e.findAncestor(tn,function(Mn){if(Mn===Ye)return"quit";switch(Mn.kind){case 201:case 158:return!0;case 222:switch(Mn.parent.kind){case 162:case 160:case 163:return!0;default:return!1}default:return!1}});return bn===void 0}}function lo(n,t,r,i,l,d,A,B){return A===void 0&&(A=!1),Os(n,t,r,i,l,d,A,Uo,B)}function Os(n,t,r,i,l,d,A,B,Ae){var We=n,Ye,tn,bn,Mn,it,_t=!1,St=n,Yt,mr=!1;e:for(;n;){if(n.locals&&!Eo(n)&&(Ye=B(n.locals,t,r))){var or=!0;if(e.isFunctionLike(n)&&tn&&tn!==n.body){if(r&Ye.flags&788968&&tn.kind!==301&&(or=Ye.flags&262144?tn===n.type||tn.kind===155||tn.kind===154:!1),r&Ye.flags&3){var br=n;je.target&&je.target>=2&&e.isParameter(tn)&&br.body&&Ye.valueDeclaration.pos>=br.body.pos&&Ye.valueDeclaration.end<=br.body.end?or=!1:Ye.flags&1&&(or=tn.kind===155||tn===n.type&&!!e.findAncestor(Ye.valueDeclaration,e.isParameter))}}else n.kind===179&&(or=tn===n.trueType);if(or)break e;Ye=void 0}_t=_t||Gs(n,tn);switch(n.kind){case 288:if(!e.isExternalOrCommonJsModule(n))break;mr=!0;case 248:var ta=Zt(n).exports||He;if(n.kind===288||e.isModuleDeclaration(n)&&n.flags&8388608&&!e.isGlobalScopeAugmentation(n)){if(Ye=ta.get("default")){var Ur=e.getLocalSymbolForExportDefault(Ye);if(Ur&&Ye.flags&r&&Ur.escapedName===t)break e;Ye=void 0}var ja=ta.get(t);if(ja&&ja.flags===2097152&&e.getDeclarationOfKind(ja,261))break}if(t!=="default"&&(Ye=B(ta,t,r&2623475)))if(e.isSourceFile(n)&&n.commonJsModuleIndicator&&!Ye.declarations.some(e.isJSDocTypeAlias))Ye=void 0;else break e;break;case 247:if(Ye=B(Zt(n).exports,t,r&8))break e;break;case 158:if(!e.hasModifier(n,32)){var $i=jo(n.parent);$i&&$i.locals&&(B($i.locals,t,r&111551)&&(Mn=n))}break;case 244:case 213:case 245:if(Ye=B(Zt(n).members||He,t,r&788968)){if(!gc(Ye,n)){Ye=void 0;break}if(tn&&e.hasModifier(tn,32)){xn(St,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);return}break e}if(n.kind===213&&r&32){var Sa=n.name;if(Sa&&t===Sa.escapedText){Ye=n.symbol;break e}}break;case 215:if(tn===n.expression&&n.parent.token===89){var ka=n.parent.parent;if(e.isClassLike(ka)&&(Ye=B(Zt(ka).members,t,r&788968))){i&&xn(St,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 153:if(Yt=n.parent.parent,(e.isClassLike(Yt)||Yt.kind===245)&&(Ye=B(Zt(Yt).members,t,r&788968))){xn(St,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 201:if(je.target>=2)break;case 160:case 161:case 162:case 163:case 243:if(r&3&&t==="arguments"){Ye=ye;break e}break;case 200:if(r&3&&t==="arguments"){Ye=ye;break e}if(r&16){var Bt=n.name;if(Bt&&t===Bt.escapedText){Ye=n.symbol;break e}}break;case 156:n.parent&&n.parent.kind===155&&(n=n.parent),n.parent&&(e.isClassElement(n.parent)||n.parent.kind===244)&&(n=n.parent);break;case 315:case 308:case 309:n=e.getJSDocHost(n);break;case 155:tn&&tn===n.initializer&&(it=n);break;case 190:if(tn&&tn===n.initializer){var Sn=e.getRootDeclaration(n);Sn.kind===155&&(it=n)}break}Nc(n)&&(bn=n),tn=n,n=n.parent}if(d&&Ye&&(!bn||Ye!==bn.symbol)&&(Ye.isReferenced|=r),!Ye){if(tn&&(e.Debug.assert(tn.kind===288),tn.commonJsModuleIndicator&&t==="exports"&&r&tn.symbol.flags))return tn.symbol;A||(Ye=B(cn,t,r))}if(!Ye&&(We&&e.isInJSFile(We)&&We.parent&&e.isRequireCall(We.parent,!1)))return ke;if(!Ye){if(i&&(!St||!Ql(St,t,l)&&!rl(St)&&!Oc(St,t,r)&&!Pc(St,t,r)&&!Zl(St,t,r)&&!au(St,t,r))){var gn=void 0;if(Ae&&hl<Ul&&(gn=EE(We,t,r),gn)){var wt=wa(gn),At=xn(St,Ae,_l(l),wt);gn.valueDeclaration&&e.addRelatedInfo(At,e.createDiagnosticForNode(gn.valueDeclaration,e.Diagnostics._0_is_declared_here,wt))}gn||xn(St,i,_l(l)),hl++}return}if(i){if(Mn){var er=Mn.name;xn(St,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(er),_l(l));return}if(St&&(r&2||(r&32||r&384)&&(r&111551)===111551)){var gr=nc(Ye);(gr.flags&2||gr.flags&32||gr.flags&384)&&zs(gr,St)}if(Ye&&mr&&(r&111551)===111551&&!(We.flags&4194304)){var Cr=zr(Ye);e.length(Cr.declarations)&&e.every(Cr.declarations,function(la){return e.isNamespaceExportDeclaration(la)||e.isSourceFile(la)&&!!la.symbol.globalExports})&&Fo(!je.allowUmdGlobalAccess,St,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(t))}if(Ye&&it&&!_t&&(r&111551)===111551){var jt=zr(hf(Ye)),Sn=e.getRootDeclaration(it);jt===Zt(it)?xn(St,e.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,e.declarationNameToString(it.name)):jt.valueDeclaration&&jt.valueDeclaration.pos>it.pos&&Sn.parent.locals&&B(Sn.parent.locals,jt.escapedName,r)===jt&&xn(St,e.Diagnostics.Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(it.name),e.declarationNameToString(St))}}return Ye}function Gs(n,t){return n.kind!==201&&n.kind!==200?e.isTypeQueryNode(n)||(e.isFunctionLikeDeclaration(n)||n.kind===158&&!e.hasModifier(n,32))&&(!t||t!==n.name):t&&t===n.name?!1:n.asteriskToken||e.hasModifier(n,256)?!0:!e.getImmediatelyInvokedFunctionExpression(n)}function Nc(n){switch(n.kind){case 243:case 244:case 245:case 247:case 246:case 248:return!0;default:return!1}}function _l(n){return e.isString(n)?e.unescapeLeadingUnderscores(n):e.declarationNameToString(n)}function gc(n,t){for(var r=0,i=n.declarations;r<i.length;r++){var l=i[r];if(l.kind===154){var d=e.isJSDocTemplateTag(l.parent)?e.getJSDocHost(l.parent):l.parent;if(d===t)return!(e.isJSDocTemplateTag(l.parent)&&e.find(l.parent.parent.tags,e.isJSDocTypeAlias))}}return!1}function Ql(n,t,r){if(!e.isIdentifier(n)||n.escapedText!==t||sS(n)||lp(n))return!1;for(var i=e.getThisContainer(n,!1),l=i;l;){if(e.isClassLike(l.parent)){var d=Zt(l.parent);if(!d)break;var A=Jn(d);if(Ji(A,t))return xn(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,_l(r),wa(d)),!0;if(l===i&&!e.hasModifier(l,32)){var B=ho(d).thisType;if(Ji(B,t))return xn(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,_l(r)),!0}}l=l.parent}return!1}function rl(n){var t=Js(n);return t&&kt(t,64,!0)?(xn(n,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(t)),!0):!1}function Js(n){switch(n.kind){case 75:case 193:return n.parent?Js(n.parent):void 0;case 215:if(e.isEntityNameExpression(n.expression))return n.expression;default:return}}function Oc(n,t,r){var i=1920|(e.isInJSFile(n)?111551:0);if(r===i){var l=b(lo(n,t,788968&~i,void 0,void 0,!1)),d=n.parent;if(l){if(e.isQualifiedName(d)){e.Debug.assert(d.left===n,"Should only be resolving left side of qualified name as a namespace");var A=d.right.escapedText,B=Ji(ho(l),A);if(B)return xn(d,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(t),e.unescapeLeadingUnderscores(A)),!0}return xn(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(t)),!0}}return!1}function au(n,t,r){if(r&(788968&~1920)){var i=b(lo(n,t,~788968&111551,void 0,void 0,!1));if(i&&!(i.flags&1920))return xn(n,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here,e.unescapeLeadingUnderscores(t)),!0}return!1}function Pc(n,t,r){if(r&(111551&~1024)){if(t==="any"||t==="string"||t==="number"||t==="boolean"||t==="never")return xn(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(t)),!0;var i=b(lo(n,t,788968&~111551,void 0,void 0,!1));if(i&&!(i.flags&1024)){var l=iu(t)?e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here;return xn(n,l,e.unescapeLeadingUnderscores(t)),!0}}return!1}function iu(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Zl(n,t,r){if(r&(111551&~1024&~788968)){var i=b(lo(n,t,1024&~111551,void 0,void 0,!1));if(i)return xn(n,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(t)),!0}else if(r&(788968&~1024&~111551)){var i=b(lo(n,t,(512|1024)&~788968,void 0,void 0,!1));if(i)return xn(n,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(t)),!0}return!1}function zs(n,t){if(e.Debug.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&(16|1|67108864)&&n.flags&32)return;var r=e.find(n.declarations,function(d){return e.isBlockOrCatchScoped(d)||e.isClassLike(d)||d.kind===247});if(r===void 0)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(r.flags&8388608)&&!Qo(r,t)){var i=void 0,l=e.declarationNameToString(e.getNameOfDeclaration(r));n.flags&2?i=xn(t,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,l):n.flags&32?i=xn(t,e.Diagnostics.Class_0_used_before_its_declaration,l):n.flags&256?i=xn(t,e.Diagnostics.Enum_0_used_before_its_declaration,l):(e.Debug.assert(!!(n.flags&128)),je.preserveConstEnums&&(i=xn(t,e.Diagnostics.Class_0_used_before_its_declaration,l))),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_here,l))}}function Mc(n,t,r){return!!t&&!!e.findAncestor(n,function(i){return i===r||e.isFunctionLike(i)?"quit":i===t})}function Nl(n){switch(n.kind){case 252:return n;case 254:return n.parent;case 255:return n.parent.parent;case 257:return n.parent.parent.parent;default:return}}function bs(n){return e.find(n.declarations,e.isAliasSymbolDeclaration)}function Rc(n,t){return n.moduleReference.kind===263?$a($r(n,e.getExternalModuleImportEqualsDeclarationExpression(n))):mn(n.moduleReference,t)}function $l(n,t,r){var i=n.exports.get("export=");return i?Ji(Jn(i),t):b(n.exports.get(t),r)}function yc(n){return e.isExportAssignment(n)&&!n.isExportEquals||e.hasModifier(n,512)||e.isExportSpecifier(n)}function ou(n,t,r){if(!Pe)return!1;if(!n||n.isDeclarationFile){var i=$l(t,"default",!0);return i&&e.some(i.declarations,yc)?!1:!$l(t,e.escapeLeadingUnderscores("__esModule"),r)}return e.isSourceFileJS(n)?!n.externalModuleIndicator&&!$l(t,e.escapeLeadingUnderscores("__esModule"),r):ia(t)}function Lu(n,t){var r=$r(n,n.parent.moduleSpecifier);if(r){var i=void 0;e.isShorthandAmbientModuleSymbol(r)?i=r:i=$l(r,"default",t);var l=e.find(r.declarations,e.isSourceFile),d=ou(l,r,t);if(!i&&!d)if(ia(r)){var A=j>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",B=r.exports.get("export="),Ae=B.valueDeclaration,We=xn(n.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,wa(r),A);e.addRelatedInfo(We,e.createDiagnosticForNode(Ae,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,A))}else r.exports&&r.exports.has(n.symbol.escapedName)?xn(n.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,wa(r),wa(n.symbol)):xn(n.name,e.Diagnostics.Module_0_has_no_default_export,wa(r));else if(d)return $a(r,t)||b(r,t);return i}}function su(n,t){var r=n.parent.parent.moduleSpecifier;return Qr($r(n,r),r,t,!1)}function lu(n,t){if(n===pn&&t===pn)return pn;if(n.flags&(788968|1920))return n;var r=Ga(n.flags|t.flags,n.escapedName);return r.declarations=e.deduplicate(e.concatenate(n.declarations,t.declarations),e.equateValues),r.parent=n.parent||t.parent,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration),t.members&&(r.members=t.members),n.exports&&(r.exports=n.exports),r}function cu(n,t,r){if(n.flags&1536)return b(ti(n).get(t),r)}function Fc(n,t){if(n.flags&3){var r=n.valueDeclaration.type;if(r)return b(Ji(Ua(r),t))}}function Gc(n,t,r){r===void 0&&(r=!1);var i=$r(n,n.moduleSpecifier),l=t.propertyName||t.name,d=l.escapedText==="default"&&!!(je.allowSyntheticDefaultImports||je.esModuleInterop),A=Qr(i,n.moduleSpecifier,r,d);if(A&&l.escapedText){if(e.isShorthandAmbientModuleSymbol(i))return i;var B=void 0;i&&i.exports&&i.exports.get("export=")?B=Ji(Jn(A),l.escapedText):B=Fc(A,l.escapedText),B=b(B,r);var Ae=cu(A,l.escapedText,r);!Ae&&Pe&&l.escapedText==="default"&&(Ae=$a(i,r)||b(i,r));var We=Ae&&B&&Ae!==B?lu(B,Ae):Ae||B;if(!We){var Ye=zn(i,n),tn=e.declarationNameToString(l),bn=TE(l,A);if(bn!==void 0){var Mn=wa(bn),it=xn(l,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2,Ye,tn,Mn);bn.valueDeclaration&&e.addRelatedInfo(it,e.createDiagnosticForNode(bn.valueDeclaration,e.Diagnostics._0_is_declared_here,Mn))}else i.exports&&i.exports.has("default")?xn(l,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,Ye,tn):xn(l,e.Diagnostics.Module_0_has_no_exported_member_1,Ye,tn)}return We}}function _c(n,t){return Gc(n.parent.parent.parent,n,t)}function Bc(n,t){return $a(n.parent.symbol,t)}function uu(n,t,r){return n.parent.parent.moduleSpecifier?Gc(n.parent.parent,n,r):kt(n.propertyName||n.name,t,!1,r)}function du(n,t){var r=e.isExportAssignment(n)?n.expression:n.right;return ec(r,t)}function ec(n,t){if(e.isClassExpression(n))return as(n).symbol;if(!e.isEntityName(n)&&!e.isEntityNameExpression(n))return;var r=kt(n,111551|788968|1920,!0,t);return r||(as(n),Lr(n).resolvedSymbol)}function Vc(n,t){var r=n.initializer;return ec(r,t)}function al(n,t){return e.isBinaryExpression(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===62?ec(n.parent.right,t):void 0}function Xs(n,t){t===void 0&&(t=!1);switch(n.kind){case 252:return Rc(n,t);case 254:return Lu(n,t);case 255:return su(n,t);case 257:return _c(n,t);case 261:return uu(n,111551|788968|1920,t);case 258:case 208:return du(n,t);case 251:return Bc(n,t);case 280:return kt(n.name,111551|788968|1920,!0,t);case 279:return Vc(n,t);case 193:return al(n,t);default:return e.Debug.fail()}}function s(n,t){return t===void 0&&(t=111551|788968|1920),n?(n.flags&(2097152|t))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function b(n,t){return!t&&s(n)?V(n):n}function V(n){e.Debug.assert((n.flags&2097152)!==0,"Should only get Alias here.");var t=na(n);if(t.target)t.target===le&&(t.target=pn);else{t.target=le;var r=bs(n);if(!r)return e.Debug.fail();var i=Xs(r);t.target===le?t.target=i||pn:xn(r,e.Diagnostics.Circular_definition_of_import_alias_0,wa(n))}return t.target}function Me(n){var t=Zt(n),r=V(t);if(r){var i=r===pn||r.flags&111551&&!Dp(r);i&&an(t)}}function an(n){var t=na(n);if(!t.referenced){t.referenced=!0;var r=bs(n);if(!r)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(r)){var i=b(n);(i===pn||i.flags&111551)&&as(r.moduleReference)}}}function mn(n,t){return n.kind===75&&e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),n.kind===75||n.parent.kind===152?kt(n,1920,!1,t):(e.Debug.assert(n.parent.kind===252),kt(n,111551|788968|1920,!1,t))}function zn(n,t){return n.parent?zn(n.parent,t)+"."+wa(n):wa(n,t,void 0,16|4)}function kt(n,t,r,i,l){if(e.nodeIsMissing(n))return;var d=1920|(e.isInJSFile(n)?t&111551:0),A;if(n.kind===75){var B=t===d?e.Diagnostics.Cannot_find_namespace_0:mb(e.getFirstIdentifier(n)),Ae=e.isInJSFile(n)?Pt(n,t):void 0;if(A=lo(l||n,n.escapedText,t,r||Ae?void 0:B,n,!0),!A)return Ae}else if(n.kind===152||n.kind===193){var We=n.kind===152?n.left:n.expression,Ye=n.kind===152?n.right:n.name,tn=kt(We,d,r,!1,l);if(!tn||e.nodeIsMissing(Ye))return;if(tn===pn)return tn;if(e.isInJSFile(n)&&(tn.valueDeclaration&&e.isVariableDeclaration(tn.valueDeclaration)&&tn.valueDeclaration.initializer&&WE(tn.valueDeclaration.initializer))){var bn=tn.valueDeclaration.initializer.arguments[0],Mn=$r(bn,bn);if(Mn){var it=$a(Mn);it&&(tn=it)}}if(A=Uo(ti(tn),Ye.escapedText,t),!A){r||xn(Ye,e.Diagnostics.Namespace_0_has_no_exported_member_1,zn(tn),e.declarationNameToString(Ye));return}}else throw e.Debug.assertNever(n,"Unknown entity name kind.");return e.Debug.assert((e.getCheckFlags(A)&1)===0,"Should never get an instantiated symbol here."),A.flags&t||i?A:V(A)}function Pt(n,t){if(cg(n.parent)){var r=It(n.parent);if(r)return lo(r,n.escapedText,t,void 0,n,!0)}}function It(n){var t=e.findAncestor(n,function(d){return e.isJSDocNode(d)||d.flags&4194304?e.isJSDocTypeAlias(d):"quit"});if(t)return;var r=e.getJSDocHost(n);if(e.isExpressionStatement(r)&&e.isBinaryExpression(r.expression)&&e.getAssignmentDeclarationKind(r.expression)===3){var i=Zt(r.expression.left);if(i)return fr(i)}if((e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent)===6){var i=Zt(r.parent.parent.left);if(i)return fr(i)}var l=e.getHostSignatureFromJSDocHost(r);if(l){var i=Zt(l);return i&&i.valueDeclaration}}function fr(n){var t=n.parent.valueDeclaration;if(!t)return;var r=e.isAssignmentDeclaration(t)?e.getAssignedExpandoInitializer(t):e.hasOnlyExpressionInitializer(t)?e.getDeclaredExpandoInitializer(t):void 0;return r||t}function hr(n){var t=n.valueDeclaration;if(!t||!e.isInJSFile(t)||n.flags&524288)return;var r=e.isVariableDeclaration(t)?e.getDeclaredExpandoInitializer(t):e.getAssignedExpandoInitializer(t);return r&&Zt(r)||void 0}function $r(n,t,r){return ba(n,t,r?void 0:e.Diagnostics.Cannot_find_module_0)}function ba(n,t,r,i){return i===void 0&&(i=!1),e.isStringLiteralLike(t)?ra(n,t.text,r,t,i):void 0}function ra(n,t,r,i,l){if(l===void 0&&(l=!1),e.startsWith(t,"@types/")){var d=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,A=e.removePrefix(t,"@types/");xn(i,d,A,t)}var B=F_(t,!0);if(B)return B;var Ae=e.getSourceFileOfNode(n),We=e.getResolvedModule(Ae,t),Ye=We&&e.getResolutionDiagnostic(je,We),tn=We&&!Ye&&y.getSourceFile(We.resolvedFileName);if(tn){if(tn.symbol)return We.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(We.extension)&&Ba(!1,i,We,t),zr(tn.symbol);r&&xn(i,e.Diagnostics.File_0_is_not_a_module,tn.fileName);return}if(Ro){var bn=e.findBestPatternMatch(Ro,function(St){return St.pattern},t);if(bn){var Mn=Ao&&Ao.get(t);return zr(Mn||bn.symbol)}}if(We&&!e.resolutionExtensionIsTSOrJson(We.extension)&&Ye===void 0||Ye===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(l){var d=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;xn(i,d,t,We.resolvedFileName)}else Ba(ae&&!!r,i,We,t);return}if(r){if(We){var it=y.getProjectReferenceRedirect(We.resolvedFileName);if(it){xn(i,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,it,We.resolvedFileName);return}}if(Ye)xn(i,Ye,t,We.resolvedFileName);else{var _t=e.tryExtractTSExtension(t);if(_t){var d=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead;xn(i,d,_t,e.removeExtension(t,_t))}else!je.resolveJsonModule&&e.fileExtensionIs(t,".json")&&e.getEmitModuleResolutionKind(je)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(je)?xn(i,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,t):xn(i,r,t)}}return}function Ba(n,t,r,i){var l=r.packageId,d=r.resolvedFileName,A=!e.isExternalModuleNameRelative(i)&&l?Ai(l.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,l.name,e.mangleScopedPackageName(l.name)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(l.name)):void 0;Fo(n,t,e.chainDiagnosticMessages(A,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,d))}function Ai(n){return k().has(e.getTypesPackageName(n))}function $a(n,t){if(n){var r=b(n.exports.get("export="),t),i=ki(zr(r),zr(n));return zr(i)||n}return}function ki(n,t){if(!n||n===pn||n===t||t.exports.size===1||n.flags&2097152)return n;var r=na(n);if(r.cjsExportMerged)return r.cjsExportMerged;var i=n.flags&33554432?n:Zn(n);return i.flags=i.flags|512,i.exports===void 0&&(i.exports=e.createSymbolTable()),t.exports.forEach(function(l,d){if(d==="export=")return;i.exports.set(d,i.exports.has(d)?Gt(i.exports.get(d),l):l)}),na(i).cjsExportMerged=i,r.cjsExportMerged=i}function Qr(n,t,r,i){var l=$a(n,r);if(!r&&l){if(!i&&!(l.flags&(1536|3))&&!e.getDeclarationOfKind(l,288)){var d=j>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return xn(t,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,d),l}if(je.esModuleInterop){var A=t.parent;if(e.isImportDeclaration(A)&&e.getNamespaceDeclarationNode(A)||e.isImportCall(A)){var B=Jn(l),Ae=$h(B,0);if((!Ae||!Ae.length)&&(Ae=$h(B,1)),Ae&&Ae.length){var We=jE(B,l,n),Ye=Ga(l.flags,l.escapedName);Ye.declarations=l.declarations?l.declarations.slice():[],Ye.parent=l.parent,Ye.target=l,Ye.originatingImport=A,l.valueDeclaration&&(Ye.valueDeclaration=l.valueDeclaration),l.constEnumOnlyModule&&(Ye.constEnumOnlyModule=!0),l.members&&(Ye.members=e.cloneMap(l.members)),l.exports&&(Ye.exports=e.cloneMap(l.exports));var tn=dc(We);return Ye.type=No(Ye,tn.members,e.emptyArray,e.emptyArray,tn.stringIndexInfo,tn.numberIndexInfo),Ye}}}}return l}function ia(n){return n.exports.get("export=")!==void 0}function oa(n){return R_(Qi(n))}function sa(n){var t=oa(n),r=$a(n);return r!==n&&e.addRange(t,io(Jn(r))),t}function Da(n,t){var r=Qi(t);if(r)return r.get(n)}function Ha(n,t){var r=Da(n,t);if(r)return r;var i=$a(t);if(i===t)return;var l=Jn(i);return l.flags&131068?void 0:Ji(l,n)}function ti(n){return n.flags&6256?gd(n,"resolvedExports"):n.flags&1536?Qi(n):n.exports||He}function Qi(n){var t=na(n);return t.resolvedExports||(t.resolvedExports=Ls(n))}function Za(n,t,r,i){if(!t)return;t.forEach(function(l,d){if(d==="default")return;var A=n.get(d);if(!A)n.set(d,l),r&&i&&r.set(d,{specifierText:e.getTextOfNode(i.moduleSpecifier)});else if(r&&i&&A&&b(A)!==b(l)){var B=r.get(d);B.exportsWithDuplicate?B.exportsWithDuplicate.push(i):B.exportsWithDuplicate=[i]}})}function Ls(n){var t=[];return n=$a(n),r(n)||He;function r(i){if(!(i&&i.exports&&e.pushIfUnique(t,i)))return;var l=e.cloneMap(i.exports),d=i.exports.get("__export");if(d){for(var A=e.createSymbolTable(),B=e.createMap(),Ae=0,We=d.declarations;Ae<We.length;Ae++){var Ye=We[Ae],tn=$r(Ye,Ye.moduleSpecifier),bn=r(tn);Za(A,bn,B,Ye)}B.forEach(function(Mn,it){var _t=Mn.exportsWithDuplicate;if(it==="export="||!(_t&&_t.length)||l.has(it))return;for(var St=0,Yt=_t;St<Yt.length;St++){var mr=Yt[St];tt.add(e.createDiagnosticForNode(mr,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,B.get(it).specifierText,e.unescapeLeadingUnderscores(it)))}}),Za(l,A)}return l}}function zr(n){var t;return n&&n.mergeId&&(t=gl[n.mergeId])?t:n}function Zt(n){return zr(n.symbol&&hf(n.symbol))}function Ps(n){return zr(n.parent&&hf(n.parent))}function zu(n,t){var r=e.getSourceFileOfNode(t),i=""+z(r),l=na(n),d;if(l.extendedContainersByFile&&(d=l.extendedContainersByFile.get(i)))return d;if(r&&r.imports){for(var A=0,B=r.imports;A<B.length;A++){var Ae=B[A];if(e.nodeIsSynthesized(Ae))continue;var We=$r(t,Ae,!0);if(!We)continue;var Ye=Iu(We,n);if(!Ye)continue;d=e.append(d,We)}if(e.length(d))return(l.extendedContainersByFile||(l.extendedContainersByFile=e.createMap())).set(i,d),d}if(l.extendedContainers)return l.extendedContainers;for(var tn=y.getSourceFiles(),bn=0,Mn=tn;bn<Mn.length;bn++){var it=Mn[bn];if(!e.isExternalModule(it))continue;var _t=Zt(it),Ye=Iu(_t,n);if(!Ye)continue;d=e.append(d,_t)}return l.extendedContainers=d||e.emptyArray}function fd(n,t){var r=Ps(n);if(r&&!(n.flags&262144)){var i=e.mapDefined(r.declarations,B),l=t&&zu(n,t);if(t&&Ts(r,t,1920,!1))return e.concatenate(e.concatenate([r],i),l);var d=e.append(i,r);return e.concatenate(d,l)}var A=e.mapDefined(n.declarations,function(Ae){if(!e.isAmbientModule(Ae)&&Ae.parent&&vl(Ae.parent))return Zt(Ae.parent);if(e.isClassExpression(Ae)&&e.isBinaryExpression(Ae.parent)&&Ae.parent.operatorToken.kind===62&&e.isAccessExpression(Ae.parent.left)&&e.isEntityNameExpression(Ae.parent.left.expression))return e.isModuleExportsAccessExpression(Ae.parent.left)||e.isExportsIdentifier(Ae.parent.left.expression)?Zt(e.getSourceFileOfNode(Ae)):(as(Ae.parent.left.expression),Lr(Ae.parent.left.expression).resolvedSymbol)});if(!e.length(A))return;return e.mapDefined(A,function(Ae){return Iu(Ae,n)?Ae:void 0});function B(Ae){var We=rc(Ae),Ye=We&&We.exports&&We.exports.get("export=");return Ye&&r&&vc(Ye,r)?We:void 0}}function Iu(n,t){if(n===Ps(t))return t;var r=n.exports&&n.exports.get("export=");if(r&&vc(r,t))return n;var i=ti(n),l=i.get(t.escapedName);return l&&vc(l,t)?l:e.forEachEntry(i,function(d){if(vc(d,t))return d})}function vc(n,t){if(zr(b(zr(n)))===zr(b(zr(t))))return n}function nc(n){return zr(n&&(n.flags&1048576)!==0?n.exportSymbol:n)}function cr(n){return!!(n.flags&111551||n.flags&2097152&&V(n).flags&111551)}function jo(n){for(var t=n.members,r=0,i=t;r<i.length;r++){var l=i[r];if(l.kind===161&&e.nodeIsPresent(l.body))return l}}function ya(n){var t=new pe(c,n);return v++,t.id=v,t}function Io(n,t,r){r===void 0&&(r=0);var i=ya(n);return i.intrinsicName=t,i.objectFlags=r,i}function tc(n){var t=Wr(n);return t.flags|=16,t.intrinsicName="boolean",t}function os(n,t){var r=ya(524288);return r.objectFlags=n,r.symbol=t,r.members=void 0,r.properties=void 0,r.callSignatures=void 0,r.constructSignatures=void 0,r.stringIndexInfo=void 0,r.numberIndexInfo=void 0,r}function ar(){return Wr(e.arrayFrom(J.keys(),rs))}function il(n){var t=ya(262144);return n&&(t.symbol=n),t}function Go(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64}function Es(n){var t;return n.forEach(function(r,i){!Go(i)&&cr(r)&&(t||(t=[])).push(r)}),t||e.emptyArray}function mo(n,t,r,i,l,d){return n.members=t,n.properties=t===He?e.emptyArray:Es(t),n.callSignatures=r,n.constructSignatures=i,n.stringIndexInfo=l,n.numberIndexInfo=d,n}function No(n,t,r,i,l,d){return mo(os(16,n),t,r,i,l,d)}function bc(n,t){for(var r,i=function(A){if(A.locals&&!Eo(A)&&(r=t(A.locals)))return{value:r};switch(A.kind){case 288:if(!e.isExternalOrCommonJsModule(A))break;case 248:var B=Zt(A);if(r=t(B.exports||He))return{value:r};break;case 244:case 213:case 245:var Ae;if((Zt(A).members||He).forEach(function(We,Ye){We.flags&(788968&~67108864)&&(Ae||(Ae=e.createSymbolTable())).set(Ye,We)}),Ae&&(r=t(Ae)))return{value:r};break}},l=n;l;l=l.parent){var d=i(l);if(typeof d=="object")return d.value}return t(cn)}function ts(n){return n===111551?111551:1920}function Ts(n,t,r,i,l){if(l===void 0&&(l=e.createMap()),!(n&&!jl(n)))return;var d=""+se(n),A=l.get(d);return A||l.set(d,A=[]),bc(t,B);function B(tn,bn){if(!e.pushIfUnique(A,tn))return;var Mn=Ye(tn,bn);return A.pop(),Mn}function Ae(tn,bn){return!fu(tn,t,bn)||!!Ts(tn.parent,t,ts(bn),i,l)}function We(tn,bn,Mn){return(n===(bn||tn)||zr(n)===zr(bn||tn))&&!e.some(tn.declarations,vl)&&(Mn||Ae(zr(tn),r))}function Ye(tn,bn){return We(tn.get(n.escapedName),void 0,bn)?[n]:e.forEachEntry(tn,function(Mn){if(Mn.flags&2097152&&Mn.escapedName!=="export="&&Mn.escapedName!=="default"&&!(e.isUMDExportSymbol(Mn)&&t&&e.isExternalModule(e.getSourceFileOfNode(t)))&&(!i||e.some(Mn.declarations,e.isExternalModuleImportEqualsDeclaration))&&(bn||!e.getDeclarationOfKind(Mn,261))){var it=V(Mn);if(We(Mn,it,bn))return[Mn];var _t=ti(it),St=_t&&B(_t,!0);if(St&&Ae(Mn,ts(r)))return[Mn].concat(St)}if(Mn.escapedName===n.escapedName&&Mn.exportSymbol&&We(zr(Mn.exportSymbol),void 0,bn))return[n]})}}function fu(n,t,r){var i=!1;return bc(t,function(l){var d=zr(l.get(n.escapedName));return d?d===n?!0:(d=d.flags&2097152&&!e.getDeclarationOfKind(d,261)?V(d):d,d.flags&r?(i=!0,!0):!1):!1}),i}function jl(n){if(n.declarations&&n.declarations.length){for(var t=0,r=n.declarations;t<r.length;t++){var i=r[t];switch(i.kind){case 158:case 160:case 162:case 163:continue;default:return!1}}return!0}return!1}function Uc(n,t){var r=Sc(n,t,788968,!1);return r.accessibility===0}function Ec(n,t){var r=Sc(n,t,111551,!1);return r.accessibility===0}function Tc(n,t,r,i,l){if(!e.length(n))return;for(var d,A=0,B=n;A<B.length;A++){var Ae=B[A],We=Ts(Ae,t,i,!1);if(We){d=Ae;var Ye=Ys(We[0],l);if(Ye)return Ye}else if(e.some(Ae.declarations,vl))return{accessibility:0};var tn=fd(Ae,t),bn=e.first(Ae.declarations);!e.length(tn)&&i&111551&&bn&&e.isObjectLiteralExpression(bn)&&(bn.parent&&e.isVariableDeclaration(bn.parent)&&bn===bn.parent.initializer&&(tn=[Zt(bn.parent)]));var Mn=Tc(tn,t,r,r===Ae?ts(i):i,l);if(Mn)return Mn}if(d)return{accessibility:1,errorSymbolName:wa(r,t,i),errorModuleName:d!==r?wa(d,t,1920):void 0}}function Sc(n,t,r,i){if(n&&t){var l=Tc([n],t,n,r,i);if(l)return l;var d=e.forEach(n.declarations,rc);if(d){var A=rc(t);if(d!==A)return{accessibility:2,errorSymbolName:wa(n,t,r),errorModuleName:wa(d)}}return{accessibility:1,errorSymbolName:wa(n,t,r)}}return{accessibility:0}}function rc(n){var t=e.findAncestor(n,ac);return t&&Zt(t)}function ac(n){return e.isAmbientModule(n)||n.kind===288&&e.isExternalOrCommonJsModule(n)}function vl(n){return e.isModuleWithStringLiteralName(n)||n.kind===288&&e.isExternalOrCommonJsModule(n)}function Ys(n,t){var r;if(!e.every(e.filter(n.declarations,function(d){return d.kind!==75}),i))return;return{accessibility:0,aliasesToMakeVisible:r};function i(d){if(!es(d)){var A=Nl(d);return A&&!e.hasModifier(A,1)&&es(A.parent)?l(d,A):e.isVariableDeclaration(d)&&e.isVariableStatement(d.parent.parent)&&!e.hasModifier(d.parent.parent,1)&&es(d.parent.parent.parent)?l(d,d.parent.parent):e.isLateVisibilityPaintedStatement(d)&&!e.hasModifier(d,1)&&es(d.parent)?l(d,d):!1}return!0}function l(d,A){return t&&(Lr(d).isVisible=!0,r=e.appendIfUnique(r,A)),!0}}function Ol(n,t){var r;n.parent.kind===171||e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)||n.parent.kind===153?r=111551|1048576:n.kind===152||n.kind===193||n.parent.kind===252?r=1920:r=788968;var i=e.getFirstIdentifier(n),l=lo(t,i.escapedText,r,void 0,void 0,!1);return l&&Ys(l,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function wa(n,t,r,i,l){i===void 0&&(i=4);var d=70221824;i&2&&(d|=128),i&1&&(d|=512),i&8&&(d|=16384),i&16&&(d|=134217728);var A=i&4?Fe.symbolToExpression:Fe.symbolToEntityName;return l?B(l).getText():e.usingSingleLineStringWriter(B);function B(Ae){var We=A(n,r,t,d),Ye=e.createPrinter({removeComments:!0}),tn=t&&e.getSourceFileOfNode(t);return Ye.writeNode(4,We,tn,Ae),Ae}}function Bs(n,t,r,i,l){return r===void 0&&(r=0),l?d(l).getText():e.usingSingleLineStringWriter(d);function d(A){var B;r&262144?B=i===1?170:169:B=i===1?165:164;var Ae=Fe.signatureToSignatureDeclaration(n,B,t,pu(r)|70221824|512),We=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),Ye=t&&e.getSourceFileOfNode(t);return We.writeNode(4,Ae,Ye,e.getTrailingSemicolonDeferringWriter(A)),A}}function qt(n,t,r,i){r===void 0&&(r=1048576|16384),i===void 0&&(i=e.createTextWriter(""));var l=je.noErrorTruncation||r&1,d=Fe.typeToTypeNode(n,t,pu(r)|70221824|(l?1:0),i);if(d===void 0)return e.Debug.fail("should always get typenode");var A={removeComments:!0},B=e.createPrinter(A),Ae=t&&e.getSourceFileOfNode(t);B.writeNode(4,d,Ae,i);var We=i.getText(),Ye=l?void 0:e.defaultMaximumTruncationLength*2;return Ye&&We&&We.length>=Ye?We.substr(0,Ye-"...".length)+"...":We}function bl(n,t){var r=Co(n.symbol)?qt(n,n.symbol.valueDeclaration):qt(n),i=Co(t.symbol)?qt(t,t.symbol.valueDeclaration):qt(t);return r===i&&(r=qt(n,void 0,64),i=qt(t,void 0,64)),[r,i]}function Co(n){return n&&n.valueDeclaration&&e.isExpression(n.valueDeclaration)&&!Gl(n.valueDeclaration)}function pu(n){return n===void 0&&(n=0),n&9469291}function ic(){return{typeToTypeNode:function(Sn,gn,wt,At){return n(gn,wt,At,function(er){return r(Sn,er)})},indexInfoToIndexSignatureDeclaration:function(Sn,gn,wt,At,er){return n(wt,At,er,function(gr){return A(Sn,gn,gr)})},signatureToSignatureDeclaration:function(Sn,gn,wt,At,er){return n(wt,At,er,function(gr){return B(Sn,gn,gr)})},symbolToEntityName:function(Sn,gn,wt,At,er){return n(wt,At,er,function(gr){return ta(Sn,gr,gn,!1)})},symbolToExpression:function(Sn,gn,wt,At,er){return n(wt,At,er,function(gr){return Ur(Sn,gr,gn)})},symbolToTypeParameterDeclarations:function(Sn,gn,wt,At){return n(gn,wt,At,function(er){return it(Sn,er)})},symbolToParameterDeclaration:function(Sn,gn,wt,At){return n(gn,wt,At,function(er){return Ye(Sn,er)})},typeParameterToDeclaration:function(Sn,gn,wt,At){return n(gn,wt,At,function(er){return We(Sn,er)})},symbolTableToDeclarationStatements:function(Sn,gn,wt,At,er){return n(gn,wt,At,function(gr){return Bt(Sn,gr,er)})}};function n(Sn,gn,wt,At){e.Debug.assert(Sn===void 0||(Sn.flags&8)===0);var er={enclosingDeclaration:Sn,flags:gn||0,tracker:wt&&wt.trackSymbol?wt:{trackSymbol:e.noop,moduleResolverHost:gn&134217728?{getCommonSourceDirectory:y.getCommonSourceDirectory?function(){return y.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return y.getSourceFiles()},getCurrentDirectory:e.maybeBind(y,y.getCurrentDirectory),getProbableSymlinks:e.maybeBind(y,y.getProbableSymlinks)}:void 0},encounteredError:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},gr=At(er);return er.encounteredError?void 0:gr}function t(Sn){return Sn.truncating?Sn.truncating:Sn.truncating=!(Sn.flags&1)&&Sn.approximateLength>e.defaultMaximumTruncationLength}function r(Sn,gn){T&&T.throwIfCancellationRequested&&T.throwIfCancellationRequested();var wt=gn.flags&8388608;if(gn.flags&=~8388608,!Sn){gn.encounteredError=!0;return}if(Sn.flags&1)return gn.approximateLength+=3,e.createKeywordTypeNode(124);if(Sn.flags&2)return e.createKeywordTypeNode(147);if(Sn.flags&4)return gn.approximateLength+=6,e.createKeywordTypeNode(142);if(Sn.flags&8)return gn.approximateLength+=6,e.createKeywordTypeNode(139);if(Sn.flags&64)return gn.approximateLength+=6,e.createKeywordTypeNode(150);if(Sn.flags&16)return gn.approximateLength+=7,e.createKeywordTypeNode(127);if(Sn.flags&1024&&!(Sn.flags&1048576)){var At=Ps(Sn.symbol),er=mr(At,gn,788968),gr=ho(At)===Sn?er:Hs(er,e.createTypeReferenceNode(e.symbolName(Sn.symbol),void 0));return gr}if(Sn.flags&1056)return mr(Sn.symbol,gn,788968);if(Sn.flags&128)return gn.approximateLength+=Sn.value.length+2,e.createLiteralTypeNode(e.setEmitFlags(e.createLiteral(Sn.value),16777216));if(Sn.flags&256){var Cr=Sn.value;return gn.approximateLength+=(""+Cr).length,e.createLiteralTypeNode(Cr<0?e.createPrefix(40,e.createLiteral(-Cr)):e.createLiteral(Cr))}if(Sn.flags&2048)return gn.approximateLength+=e.pseudoBigIntToString(Sn.value).length+1,e.createLiteralTypeNode(e.createLiteral(Sn.value));if(Sn.flags&512)return gn.approximateLength+=Sn.intrinsicName.length,Sn.intrinsicName==="true"?e.createTrue():e.createFalse();if(Sn.flags&8192){if(!(gn.flags&1048576)){if(Ec(Sn.symbol,gn.enclosingDeclaration))return gn.approximateLength+=6,mr(Sn.symbol,gn,111551);gn.tracker.reportInaccessibleUniqueSymbolError&&gn.tracker.reportInaccessibleUniqueSymbolError()}return gn.approximateLength+=13,e.createTypeOperatorNode(146,e.createKeywordTypeNode(143))}if(Sn.flags&16384)return gn.approximateLength+=4,e.createKeywordTypeNode(109);if(Sn.flags&32768)return gn.approximateLength+=9,e.createKeywordTypeNode(145);if(Sn.flags&65536)return gn.approximateLength+=4,e.createKeywordTypeNode(99);if(Sn.flags&131072)return gn.approximateLength+=5,e.createKeywordTypeNode(136);if(Sn.flags&4096)return gn.approximateLength+=6,e.createKeywordTypeNode(143);if(Sn.flags&67108864)return gn.approximateLength+=6,e.createKeywordTypeNode(140);if(Jp(Sn))return gn.flags&4194304&&(!gn.encounteredError&&!(gn.flags&32768)&&(gn.encounteredError=!0),gn.tracker.reportInaccessibleThisError&&gn.tracker.reportInaccessibleThisError()),gn.approximateLength+=4,e.createThis();if(!wt&&Sn.aliasSymbol&&(gn.flags&16384||Uc(Sn.aliasSymbol,gn.enclosingDeclaration))){var jt=d(Sn.aliasTypeArguments,gn);return Go(Sn.aliasSymbol.escapedName)&&!(Sn.aliasSymbol.flags&32)?e.createTypeReferenceNode(e.createIdentifier(""),jt):mr(Sn.aliasSymbol,gn,788968,jt)}var la=e.getObjectFlags(Sn);if(la&4)return e.Debug.assert(!!(Sn.flags&524288)),Sn.node?Ni(Sn,xo):xo(Sn);if(Sn.flags&262144||la&3){if(Sn.flags&262144&&e.contains(gn.inferTypeParameters,Sn))return gn.approximateLength+=e.symbolName(Sn.symbol).length+6,e.createInferTypeNode(Ae(Sn,gn,void 0));if(gn.flags&4&&Sn.flags&262144&&!Uc(Sn.symbol,gn.enclosingDeclaration)){var Ea=br(Sn,gn);return gn.approximateLength+=e.idText(Ea).length,e.createTypeReferenceNode(e.createIdentifier(e.idText(Ea)),void 0)}return Sn.symbol?mr(Sn.symbol,gn,788968):e.createTypeReferenceNode(e.createIdentifier("?"),void 0)}if(Sn.flags&(1048576|2097152)){var Oa=Sn.flags&1048576?Xu(Sn.types):Sn.types;if(e.length(Oa)===1)return r(Oa[0],gn);var Di=d(Oa,gn,!0);if(Di&&Di.length>0){var ui=e.createUnionOrIntersectionTypeNode(Sn.flags&1048576?177:178,Di);return ui}else{!gn.encounteredError&&!(gn.flags&262144)&&(gn.encounteredError=!0);return}}if(la&(16|32))return e.Debug.assert(!!(Sn.flags&524288)),Xa(Sn);if(Sn.flags&4194304){var ao=Sn.type;gn.approximateLength+=6;var ft=r(ao,gn);return e.createTypeOperatorNode(ft)}if(Sn.flags&8388608){var Nt=r(Sn.objectType,gn),ft=r(Sn.indexType,gn);return gn.approximateLength+=2,e.createIndexedAccessTypeNode(Nt,ft)}if(Sn.flags&16777216){var Ut=r(Sn.checkType,gn),Jt=gn.inferTypeParameters;gn.inferTypeParameters=Sn.root.inferTypeParameters;var ir=r(Sn.extendsType,gn);gn.inferTypeParameters=Jt;var Nr=r(ad(Sn),gn),Qa=r(id(Sn),gn);return gn.approximateLength+=15,e.createConditionalTypeNode(Ut,ir,Nr,Qa)}if(Sn.flags&33554432)return r(Sn.typeVariable,gn);return e.Debug.fail("Should be unreachable.");function ni(ca){e.Debug.assert(!!(ca.flags&524288));var Vi=ca.declaration.readonlyToken?e.createToken(ca.declaration.readonlyToken.kind):void 0,fo=ca.declaration.questionToken?e.createToken(ca.declaration.questionToken.kind):void 0,ys;Hh(ca)?ys=e.createTypeOperatorNode(r(Kh(ca),gn)):ys=r(uc(ca),gn);var is=Ae(Fu(ca),gn,ys),ls=r(qc(ca),gn),xs=e.createMappedTypeNode(Vi,is,fo,ls);return gn.approximateLength+=10,e.setEmitFlags(xs,1)}function Xa(ca){var Vi=""+ca.id,fo=ca.symbol;if(fo)if(Zc(fo.valueDeclaration)){var ys=ca===sl(fo)?788968:111551;return mr(fo,gn,ys)}else{if(fo.flags&32&&!pr(fo)&&!(fo.valueDeclaration.kind===213&&gn.flags&2048)||fo.flags&(384|512)||ls())return mr(fo,gn,111551);if(gn.visitedTypes&&gn.visitedTypes.has(Vi)){var is=Hl(ca);return is?mr(is,gn,788968):i(gn)}else return Ni(ca,Po)}else return Po(ca);function ls(){var xs=!!(fo.flags&8192)&&e.some(fo.declarations,function(yo){return e.hasModifier(yo,32)}),Yl=!!(fo.flags&16)&&(fo.parent||e.forEach(fo.declarations,function(yo){return yo.parent.kind===288||yo.parent.kind===249}));if(xs||Yl)return(!!(gn.flags&4096)||gn.visitedTypes&&gn.visitedTypes.has(Vi))&&(!(gn.flags&8)||Ec(fo,gn.enclosingDeclaration))}}function Ni(ca,Vi){var fo=""+ca.id,ys=e.getObjectFlags(ca)&16&&ca.symbol&&ca.symbol.flags&32,is=e.getObjectFlags(ca)&4&&ca.node?"N"+z(ca.node):ca.symbol?(ys?"+":"")+se(ca.symbol):void 0;gn.visitedTypes||(gn.visitedTypes=e.createMap()),is&&!gn.symbolDepth&&(gn.symbolDepth=e.createMap());var ls;if(is){if(ls=gn.symbolDepth.get(is)||0,ls>10)return i(gn);gn.symbolDepth.set(is,ls+1)}gn.visitedTypes.set(fo,!0);var xs=Vi(ca);return gn.visitedTypes.delete(fo),is&&gn.symbolDepth.set(is,ls),xs}function Po(ca){if(Fl(ca))return ni(ca);var Vi=dc(ca);if(!Vi.properties.length&&!Vi.stringIndexInfo&&!Vi.numberIndexInfo){if(!Vi.callSignatures.length&&!Vi.constructSignatures.length)return gn.approximateLength+=2,e.setEmitFlags(e.createTypeLiteralNode(void 0),1);if(Vi.callSignatures.length===1&&!Vi.constructSignatures.length){var fo=Vi.callSignatures[0],ys=B(fo,169,gn);return ys}if(Vi.constructSignatures.length===1&&!Vi.callSignatures.length){var fo=Vi.constructSignatures[0],ys=B(fo,170,gn);return ys}}var is=gn.flags;gn.flags|=4194304;var ls=Dd(Vi);gn.flags=is;var xs=e.createTypeLiteralNode(ls);return gn.approximateLength+=2,e.setEmitFlags(xs,gn.flags&1024?0:1)}function xo(ca){var Vi=go(ca);if(ca.target===yr||ca.target===Jr){if(gn.flags&2){var fo=r(Vi[0],gn);return e.createTypeReferenceNode(ca.target===yr?"Array":"ReadonlyArray",[fo])}var ys=r(Vi[0],gn),is=e.createArrayTypeNode(ys);return ca.target===yr?is:e.createTypeOperatorNode(137,is)}else if(ca.target.objectFlags&8){if(Vi.length>0){var ls=_d(ca),xs=d(Vi.slice(0,ls),gn),Yl=ca.target.hasRestElement;if(xs){for(var yo=ca.target.minLength;yo<Math.min(ls,xs.length);yo++)xs[yo]=Yl&&yo===ls-1?e.createRestTypeNode(e.createArrayTypeNode(xs[yo])):e.createOptionalTypeNode(xs[yo]);var hc=e.createTupleTypeNode(xs);return ca.target.readonly?e.createTypeOperatorNode(137,hc):hc}}if(gn.encounteredError||gn.flags&524288){var hc=e.createTupleTypeNode([]);return ca.target.readonly?e.createTypeOperatorNode(137,hc):hc}gn.encounteredError=!0;return}else{if(gn.flags&2048&&ca.symbol.valueDeclaration&&e.isClassLike(ca.symbol.valueDeclaration)&&!Ec(ca.symbol,gn.enclosingDeclaration))return Xa(ca);var Ic=ca.target.outerTypeParameters,yo=0,nu=void 0;if(Ic)for(var tu=Ic.length;yo<tu;){var Uf=yo,Ld=W_(Ic[yo]);do yo++;while(yo<tu&&W_(Ic[yo])===Ld);if(!e.rangeEquals(Ic,Vi,Uf,yo)){var Gn=d(Vi.slice(Uf,yo),gn),Xn=gn.flags;gn.flags|=16;var Rt=mr(Ld,gn,788968,Gn);gn.flags=Xn,nu=nu?Hs(nu,Rt):Rt}}var zt=void 0;if(Vi.length>0){var Fr=(ca.target.typeParameters||e.emptyArray).length;zt=d(Vi.slice(yo,Fr),gn)}var Br=gn.flags;gn.flags|=16;var lr=mr(ca.symbol,gn,788968,zt);return gn.flags=Br,nu?Hs(nu,lr):lr}}function Hs(ca,Vi){if(e.isImportTypeNode(ca)){var fo=ca.typeArguments;ca.qualifier&&((e.isIdentifier(ca.qualifier)?ca.qualifier:ca.qualifier.right).typeArguments=fo),ca.typeArguments=Vi.typeArguments;for(var ys=Ss(Vi),is=0,ls=ys;is<ls.length;is++){var xs=ls[is];ca.qualifier=ca.qualifier?e.createQualifiedName(ca.qualifier,xs):xs}return ca}else{var fo=ca.typeArguments;(e.isIdentifier(ca.typeName)?ca.typeName:ca.typeName.right).typeArguments=fo,ca.typeArguments=Vi.typeArguments;for(var ys=Ss(Vi),Yl=0,yo=ys;Yl<yo.length;Yl++){var xs=yo[Yl];ca.typeName=e.createQualifiedName(ca.typeName,xs)}return ca}}function Ss(ca){for(var Vi=ca.typeName,fo=[];!e.isIdentifier(Vi);)fo.unshift(Vi.right),Vi=Vi.left;return fo.unshift(Vi),fo}function Dd(ca){if(t(gn))return[e.createPropertySignature(void 0,"...",void 0,void 0,void 0)];for(var Vi=[],fo=0,ys=ca.callSignatures;fo<ys.length;fo++){var is=ys[fo];Vi.push(B(is,164,gn))}for(var ls=0,xs=ca.constructSignatures;ls<xs.length;ls++){var is=xs[ls];Vi.push(B(is,165,gn))}if(ca.stringIndexInfo){var Yl=void 0;ca.objectFlags&2048?(Yl=A(dl(oe,ca.stringIndexInfo.isReadonly,ca.stringIndexInfo.declaration),0,gn),Yl.type=i(gn)):Yl=A(ca.stringIndexInfo,0,gn),Vi.push(Yl)}ca.numberIndexInfo&&Vi.push(A(ca.numberIndexInfo,1,gn));var yo=ca.properties;if(!yo)return Vi;for(var hc=0,Ic=0,nu=yo;Ic<nu.length;Ic++){var tu=nu[Ic];if(hc++,gn.flags&2048){if(tu.flags&4194304)continue;e.getDeclarationModifierFlagsFromSymbol(tu)&(8|16)&&gn.tracker.reportPrivateInBaseOfClassExpression&&gn.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(tu.escapedName))}if(t(gn)&&hc+2<yo.length-1){Vi.push(e.createPropertySignature(void 0,"... "+(yo.length-hc)+" more ...",void 0,void 0,void 0)),l(yo[yo.length-1],gn,Vi);break}l(tu,gn,Vi)}return Vi.length?Vi:void 0}}function i(Sn){return Sn.approximateLength+=3,Sn.flags&1?e.createKeywordTypeNode(124):e.createTypeReferenceNode(e.createIdentifier("..."),void 0)}function l(Sn,gn,wt){var At=!!(e.getCheckFlags(Sn)&8192),er=At&&gn.flags&33554432?oe:Jn(Sn),gr=gn.enclosingDeclaration;if(gn.enclosingDeclaration=void 0,gn.tracker.trackSymbol&&e.getCheckFlags(Sn)&4096){var Cr=e.first(Sn.declarations);if(Va(Cr))if(e.isBinaryExpression(Cr)){var jt=e.getNameOfDeclaration(Cr);jt&&e.isElementAccessExpression(jt)&&e.isPropertyAccessEntityNameExpression(jt.argumentExpression)&&tn(jt.argumentExpression,gr,gn)}else tn(Cr.name.expression,gr,gn)}var la=ta(Sn,gn,111551,!0);gn.approximateLength+=e.symbolName(Sn).length+1,gn.enclosingDeclaration=gr;var Ea=Sn.flags&16777216?e.createToken(57):void 0;if(Sn.flags&(16|8192)&&!yu(er).length&&!$c(Sn))for(var Oa=oi(gs(er,function(Qa){return!(Qa.flags&32768)}),0),Di=0,ui=Oa;Di<ui.length;Di++){var ao=ui[Di],ft=B(ao,159,gn);ft.name=la,ft.questionToken=Ea,wt.push(Nr(ft))}else{var Nt=gn.flags;gn.flags|=At?33554432:0;var Ut=void 0;At&&!!(Nt&33554432)?Ut=i(gn):Ut=er?r(er,gn):e.createKeywordTypeNode(124),gn.flags=Nt;var Jt=$c(Sn)?[e.createToken(137)]:void 0;Jt&&(gn.approximateLength+=9);var ir=e.createPropertySignature(Jt,la,Ea,Ut,void 0);wt.push(Nr(ir))}function Nr(Qa){if(e.some(Sn.declarations,function(Ni){return Ni.kind===316})){var ni=e.find(Sn.declarations,function(Ni){return Ni.kind===316}),Xa=ni.comment;Xa&&e.setSyntheticLeadingComments(Qa,[{kind:3,text:`*
|
|
|
* `+Xa.replace(/\n/g,`
|
|
|
* `)+`
|
|
|
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else Sn.valueDeclaration&&e.setCommentRange(Qa,Sn.valueDeclaration);return Qa}}function d(Sn,gn,wt){if(e.some(Sn)){if(t(gn))if(wt){if(Sn.length>2)return[r(Sn[0],gn),e.createTypeReferenceNode("... "+(Sn.length-2)+" more ...",void 0),r(Sn[Sn.length-1],gn)]}else return[e.createTypeReferenceNode("...",void 0)];for(var At=[],er=0,gr=0,Cr=Sn;gr<Cr.length;gr++){var jt=Cr[gr];if(er++,t(gn)&&er+2<Sn.length-1){At.push(e.createTypeReferenceNode("... "+(Sn.length-er)+" more ...",void 0));var la=r(Sn[Sn.length-1],gn);la&&At.push(la);break}gn.approximateLength+=2;var Ea=r(jt,gn);Ea&&At.push(Ea)}return At}}function A(Sn,gn,wt){var At=e.getNameFromIndexInfo(Sn)||"x",er=e.createKeywordTypeNode(gn===0?142:139),gr=e.createParameter(void 0,void 0,void 0,At,void 0,er,void 0),Cr=r(Sn.type||oe,wt);return!Sn.type&&!(wt.flags&2097152)&&(wt.encounteredError=!0),wt.approximateLength+=At.length+4,e.createIndexSignature(void 0,Sn.isReadonly?[e.createToken(137)]:void 0,[gr],Cr)}function B(Sn,gn,wt){var At,er;wt.flags&32&&Sn.target&&Sn.mapper&&Sn.target.typeParameters?er=Sn.target.typeParameters.map(function(ao){return r(Ei(ao,Sn.mapper),wt)}):At=Sn.typeParameters&&Sn.typeParameters.map(function(ao){return We(ao,wt)});var gr=v_(Sn).map(function(ao){return Ye(ao,wt,gn===161)});if(Sn.thisParameter){var Cr=Ye(Sn.thisParameter,wt);gr.unshift(Cr)}var jt,la=ul(Sn);if(la){var Ea=la.kind===2||la.kind===3?e.createToken(123):void 0,Oa=la.kind===1||la.kind===3?e.setEmitFlags(e.createIdentifier(la.parameterName),16777216):e.createThisTypeNode(),Di=la.type&&r(la.type,wt);jt=e.createTypePredicateNodeWithModifier(Ea,Oa,Di)}else{var ui=Fi(Sn);jt=ui&&r(ui,wt)}return wt.flags&256?jt&&jt.kind===124&&(jt=void 0):jt||(jt=e.createKeywordTypeNode(124)),wt.approximateLength+=3,e.createSignatureDeclaration(gn,At,gr,jt,er)}function Ae(Sn,gn,wt){var At=gn.flags;gn.flags&=~512;var er=br(Sn,gn),gr=zd(Sn),Cr=gr&&r(gr,gn);return gn.flags=At,e.createTypeParameterDeclaration(er,wt,Cr)}function We(Sn,gn,wt){wt===void 0&&(wt=ll(Sn));var At=wt&&r(wt,gn);return Ae(Sn,gn,At)}function Ye(Sn,gn,wt){var At=e.getDeclarationOfKind(Sn,155);!At&&!vs(Sn)&&(At=e.getDeclarationOfKind(Sn,310));var er=Jn(Sn);At&&gS(At)&&(er=xu(er));var gr=r(er,gn),Cr=!(gn.flags&8192)&&wt&&At&&At.modifiers?At.modifiers.map(e.getSynthesizedClone):void 0,jt=At&&e.isRestParameter(At)||e.getCheckFlags(Sn)&32768,la=jt?e.createToken(25):void 0,Ea=At&&At.name?At.name.kind===75?e.setEmitFlags(e.getSynthesizedClone(At.name),16777216):At.name.kind===152?e.setEmitFlags(e.getSynthesizedClone(At.name.right),16777216):ao(At.name):e.symbolName(Sn),Oa=At&&Gp(At)||e.getCheckFlags(Sn)&16384,Di=Oa?e.createToken(57):void 0,ui=e.createParameter(void 0,Cr,la,Ea,Di,gr,void 0);return gn.approximateLength+=e.symbolName(Sn).length+3,ui;function ao(ft){return Nt(ft);function Nt(Ut){gn.tracker.trackSymbol&&e.isComputedPropertyName(Ut)&&ea(Ut)&&tn(Ut.expression,gn.enclosingDeclaration,gn);var Jt=e.visitEachChild(Ut,Nt,e.nullTransformationContext,void 0,Nt),ir=e.nodeIsSynthesized(Jt)?Jt:e.getSynthesizedClone(Jt);return ir.kind===190&&(ir.initializer=void 0),e.setEmitFlags(ir,1|16777216)}}}function tn(Sn,gn,wt){if(!wt.tracker.trackSymbol)return;var At=e.getFirstIdentifier(Sn),er=lo(At,At.escapedText,111551|1048576,void 0,void 0,!0);er&&wt.tracker.trackSymbol(er,gn,111551)}function bn(Sn,gn,wt,At){return gn.tracker.trackSymbol(Sn,gn.enclosingDeclaration,wt),Mn(Sn,gn,wt,At)}function Mn(Sn,gn,wt,At){var er,gr=Sn.flags&262144;return!gr&&(gn.enclosingDeclaration||gn.flags&64)&&!(gn.flags&134217728)?(er=e.Debug.assertDefined(Cr(Sn,wt,!0)),e.Debug.assert(er&&er.length>0)):er=[Sn],er;function Cr(jt,la,Ea){var Oa=Ts(jt,gn.enclosingDeclaration,la,!!(gn.flags&128)),Di;if(!Oa||fu(Oa[0],gn.enclosingDeclaration,Oa.length===1?la:ts(la))){var ui=fd(Oa?Oa[0]:jt,gn.enclosingDeclaration);if(e.length(ui)){Di=ui.map(function(Qa){return e.some(Qa.declarations,vl)?Yt(Qa,gn):void 0});var ao=ui.map(function(Qa,ni){return ni});ao.sort(Nr);for(var ft=ao.map(function(Qa){return ui[Qa]}),Nt=0,Ut=ft;Nt<Ut.length;Nt++){var Jt=Ut[Nt],ir=Cr(Jt,ts(la),!1);if(ir){if(Jt.exports&&Jt.exports.get("export=")&&vc(Jt.exports.get("export="),jt)){Oa=ir;break}Oa=ir.concat(Oa||[Iu(Jt,jt)||jt]);break}}}}if(Oa)return Oa;if(Ea||!(jt.flags&(2048|4096)))return!Ea&&!At&&!!e.forEach(jt.declarations,vl)?void 0:[jt];function Nr(Qa,ni){var Xa=Di[Qa],Ni=Di[ni];if(Xa&&Ni){var Po=e.pathIsRelative(Ni);return e.pathIsRelative(Xa)===Po?e.moduleSpecifiers.countPathComponents(Xa)-e.moduleSpecifiers.countPathComponents(Ni):Po?-1:1}return 0}}}function it(Sn,gn){var wt,At=Cp(Sn);return At.flags&(32|64|524288)&&(wt=e.createNodeArray(e.map(Ko(Sn),function(er){return We(er,gn)}))),wt}function _t(Sn,gn,wt){e.Debug.assert(Sn&&0<=gn&&gn<Sn.length);var At=Sn[gn],er=""+se(At);if(wt.typeParameterSymbolList&&wt.typeParameterSymbolList.get(er))return;(wt.typeParameterSymbolList||(wt.typeParameterSymbolList=e.createMap())).set(er,!0);var gr;if(wt.flags&512&&gn<Sn.length-1){var Cr=At,jt=Sn[gn+1];if(e.getCheckFlags(jt)&1){var la=El(Cr.flags&2097152?V(Cr):Cr);gr=d(e.map(la,jt.mapper),wt)}else gr=it(At,wt)}return gr}function St(Sn){return e.isIndexedAccessTypeNode(Sn.objectType)?St(Sn.objectType):Sn}function Yt(Sn,gn){var wt=e.getDeclarationOfKind(Sn,288);if(wt&&wt.moduleName!==void 0)return wt.moduleName;if(!wt){if(gn.tracker.trackReferencedAmbientModule){var At=e.filter(Sn.declarations,e.isAmbientModule);if(e.length(At))for(var er=0,gr=At;er<gr.length;er++){var Cr=gr[er];gn.tracker.trackReferencedAmbientModule(Cr,Sn)}}if(o.test(Sn.escapedName))return Sn.escapedName.substring(1,Sn.escapedName.length-1)}if(!gn.enclosingDeclaration||!gn.tracker.moduleResolverHost)return o.test(Sn.escapedName)?Sn.escapedName.substring(1,Sn.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(Sn)).fileName;var jt=e.getSourceFileOfNode(e.getOriginalNode(gn.enclosingDeclaration)),la=na(Sn),Ea=la.specifierCache&&la.specifierCache.get(jt.path);if(!Ea){var Oa=je.out||je.outFile,Di=gn.tracker.moduleResolverHost,ui=Oa?Rr(Rr({},je),{baseUrl:Di.getCommonSourceDirectory()}):je;Ea=e.first(e.moduleSpecifiers.getModuleSpecifiers(Sn,ui,jt,Di,y.getSourceFiles(),{importModuleSpecifierPreference:Oa?"non-relative":"relative"},y.redirectTargetsMap)),la.specifierCache=la.specifierCache||e.createMap(),la.specifierCache.set(jt.path,Ea)}return Ea}function mr(Sn,gn,wt,At){var er=bn(Sn,gn,wt,!(gn.flags&16384)),gr=wt===111551;if(e.some(er[0].declarations,vl)){var Cr=er.length>1?Nt(er,er.length-1,1):void 0,jt=At||_t(er,0,gn),la=Yt(er[0],gn);!(gn.flags&67108864)&&e.getEmitModuleResolutionKind(je)===e.ModuleResolutionKind.NodeJs&&la.indexOf("/node_modules/")>=0&&(gn.encounteredError=!0,gn.tracker.reportLikelyUnsafeImportRequiredError&&gn.tracker.reportLikelyUnsafeImportRequiredError(la));var Ea=e.createLiteralTypeNode(e.createLiteral(la));if(gn.tracker.trackExternalModuleSymbolOfImportTypeNode&&gn.tracker.trackExternalModuleSymbolOfImportTypeNode(er[0]),gn.approximateLength+=la.length+10,!Cr||e.isEntityName(Cr)){if(Cr){var Oa=e.isIdentifier(Cr)?Cr:Cr.right;Oa.typeArguments=void 0}return e.createImportTypeNode(Ea,Cr,jt,gr)}else{var Di=St(Cr),ui=Di.objectType.typeName;return e.createIndexedAccessTypeNode(e.createImportTypeNode(Ea,ui,jt,gr),Di.indexType)}}var ao=Nt(er,er.length-1,0);if(e.isIndexedAccessTypeNode(ao))return ao;if(gr)return e.createTypeQueryNode(ao);var Oa=e.isIdentifier(ao)?ao:ao.right,ft=Oa.typeArguments;return Oa.typeArguments=void 0,e.createTypeReferenceNode(ao,ft);function Nt(Ut,Jt,ir){var Nr=Jt===Ut.length-1?At:_t(Ut,Jt,gn),Qa=Ut[Jt],ni=Ut[Jt-1],Xa;if(Jt===0)gn.flags|=16777216,Xa=Vs(Qa,gn),gn.approximateLength+=(Xa?Xa.length:0)+1,gn.flags^=16777216;else if(ni&&ti(ni)){var Ni=ti(ni);e.forEachEntry(Ni,function(Hs,Ss){if(vc(Hs,Qa)&&!jr(Ss)&&Ss!=="export=")return Xa=e.unescapeLeadingUnderscores(Ss),!0})}if(Xa||(Xa=Vs(Qa,gn)),gn.approximateLength+=Xa.length+1,!(gn.flags&16)&&ni&&gu(ni)&&gu(ni).get(Qa.escapedName)&&vc(gu(ni).get(Qa.escapedName),Qa)){var Po=Nt(Ut,Jt-1,ir);return e.isIndexedAccessTypeNode(Po)?e.createIndexedAccessTypeNode(Po,e.createLiteralTypeNode(e.createLiteral(Xa))):e.createIndexedAccessTypeNode(e.createTypeReferenceNode(Po,Nr),e.createLiteralTypeNode(e.createLiteral(Xa)))}var xo=e.setEmitFlags(e.createIdentifier(Xa,Nr),16777216);if(xo.symbol=Qa,Jt>ir){var Po=Nt(Ut,Jt-1,ir);return e.isEntityName(Po)?e.createQualifiedName(Po,xo):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return xo}}function or(Sn,gn){return!!lo(gn.enclosingDeclaration,Sn,788968,void 0,Sn,!1)}function br(Sn,gn){if(gn.flags&4&&gn.typeParameterNames){var wt=gn.typeParameterNames.get(""+Vd(Sn));if(wt)return wt}var At=ta(Sn.symbol,gn,788968,!0);if(!(At.kind&75))return e.createIdentifier("(Missing type parameter)");if(gn.flags&4){for(var er=At.escapedText,gr=0,Cr=er;gn.typeParameterNamesByText&&gn.typeParameterNamesByText.get(Cr)||or(Cr,gn);)gr++,Cr=er+"_"+gr;Cr!==er&&(At=e.createIdentifier(Cr,At.typeArguments)),(gn.typeParameterNames||(gn.typeParameterNames=e.createMap())).set(""+Vd(Sn),At),(gn.typeParameterNamesByText||(gn.typeParameterNamesByText=e.createMap())).set(At.escapedText,!0)}return At}function ta(Sn,gn,wt,At){var er=bn(Sn,gn,wt);return At&&er.length!==1&&!gn.encounteredError&&!(gn.flags&65536)&&(gn.encounteredError=!0),gr(er,er.length-1);function gr(Cr,jt){var la=_t(Cr,jt,gn),Ea=Cr[jt];jt===0&&(gn.flags|=16777216);var Oa=Vs(Ea,gn);jt===0&&(gn.flags^=16777216);var Di=e.setEmitFlags(e.createIdentifier(Oa,la),16777216);return Di.symbol=Ea,jt>0?e.createQualifiedName(gr(Cr,jt-1),Di):Di}}function Ur(Sn,gn,wt){var At=bn(Sn,gn,wt);return er(At,At.length-1);function er(gr,Cr){var jt=_t(gr,Cr,gn),la=gr[Cr];Cr===0&&(gn.flags|=16777216);var Ea=Vs(la,gn);Cr===0&&(gn.flags^=16777216);var Oa=Ea.charCodeAt(0);if(e.isSingleOrDoubleQuote(Oa)&&e.some(la.declarations,vl))return e.createLiteral(Yt(la,gn));var Di=e.isIdentifierStart(Oa,w);if(Cr===0||Di){var ui=e.setEmitFlags(e.createIdentifier(Ea,jt),16777216);return ui.symbol=la,Cr>0?e.createPropertyAccess(er(gr,Cr-1),ui):ui}else{Oa===91&&(Ea=Ea.substring(1,Ea.length-1),Oa=Ea.charCodeAt(0));var ao=void 0;return e.isSingleOrDoubleQuote(Oa)?(ao=e.createLiteral(Ea.substring(1,Ea.length-1).replace(/\\./g,function(ft){return ft.substring(1)})),ao.singleQuote=Oa===39):""+ +Ea===Ea&&(ao=e.createLiteral(+Ea)),ao||(ao=e.setEmitFlags(e.createIdentifier(Ea,jt),16777216),ao.symbol=la),e.createElementAccess(er(gr,Cr-1),ao)}}}function ja(Sn,gn){var wt=$i(Sn,gn);if(wt)return wt;var At=e.unescapeLeadingUnderscores(Sn.escapedName);return Sa(At)}function $i(Sn,gn){var wt=Sn.nameType;if(wt){if(wt.flags&384){var At=""+wt.value;return!e.isIdentifierText(At,je.target)&&!Cl(At)?e.createLiteral(At):Cl(At)&&e.startsWith(At,"-")?e.createComputedPropertyName(e.createLiteral(+At)):Sa(At)}if(wt.flags&8192)return e.createComputedPropertyName(Ur(wt.symbol,gn,111551))}}function Sa(Sn){return e.isIdentifierText(Sn,je.target)?e.createIdentifier(Sn):e.createLiteral(Cl(Sn)?+Sn:Sn)}function ka(Sn){var gn=Rr({},Sn);return gn.typeParameterNames&&(gn.typeParameterNames=e.cloneMap(gn.typeParameterNames)),gn.typeParameterNamesByText&&(gn.typeParameterNamesByText=e.cloneMap(gn.typeParameterNamesByText)),gn.typeParameterSymbolList&&(gn.typeParameterSymbolList=e.cloneMap(gn.typeParameterSymbolList)),gn}function Bt(Sn,gn,wt){var At=nu(e.createProperty,160,!0),er=nu(function(On,Ot,sr,Qt,Wt,Ar){return e.createPropertySignature(Ot,sr,Qt,Wt,Ar)},159,!1),gr=gn.enclosingDeclaration,Cr=[],jt=e.createMap(),la,Ea=gn;gn=Rr(Rr({},Ea),{usedSymbolNames:e.createMap(),remappedSymbolNames:e.createMap(),tracker:Rr(Rr({},Ea.tracker),{trackSymbol:function(On,Ot,sr){var Qt=Sc(On,Ot,sr,!1);if(Qt.accessibility===0){var Wt=Mn(On,gn,sr);On.flags&4||Ni(Wt[0])}else Ea.tracker&&Ea.tracker.trackSymbol&&Ea.tracker.trackSymbol(On,Ot,sr)}})}),Ea.usedSymbolNames&&Ea.usedSymbolNames.forEach(function(On,Ot){gn.usedSymbolNames.set(Ot,!0)}),e.forEachEntry(Sn,function(On,Ot){var sr=e.unescapeLeadingUnderscores(Ot);void lr(On,sr)});var Oa=!wt,Di=Sn.get("export=");return Di&&Sn.size>1&&Di.flags&2097152&&(Sn=e.createSymbolTable(),Sn.set("export=",Di)),Qa(Sn),Jt(Cr);function ui(On){return!!On&&On.kind===75}function ao(On){return e.isVariableStatement(On)?e.filter(e.map(On.declarationList.declarations,e.getNameOfDeclaration),ui):e.filter([e.getNameOfDeclaration(On)],ui)}function ft(On){var Ot=e.find(On,e.isExportAssignment),sr=e.find(On,e.isModuleDeclaration);if(sr&&Ot&&Ot.isExportEquals&&e.isIdentifier(Ot.expression)&&e.isIdentifier(sr.name)&&e.idText(sr.name)===e.idText(Ot.expression)&&sr.body&&e.isModuleBlock(sr.body)){var Qt=e.filter(On,function(Wt){return!!(e.getModifierFlags(Wt)&1)});e.length(Qt)&&(sr.body.statements=e.createNodeArray(Tr(sr.body.statements,[e.createExportDeclaration(void 0,void 0,e.createNamedExports(e.map(e.flatMap(Qt,function(Wt){return ao(Wt)}),function(Wt){return e.createExportSpecifier(void 0,Wt)})),void 0)]))),e.find(On,function(Wt){return Wt!==sr&&e.nodeHasName(Wt,sr.name)})||(Cr=[],e.forEach(sr.body.statements,function(Wt){xo(Wt,0)}),On=Tr(e.filter(On,function(Wt){return Wt!==sr&&Wt!==Ot}),Cr))}return On}function Nt(On){var Ot=e.filter(On,function(Or){return e.isExportDeclaration(Or)&&!Or.moduleSpecifier&&!!Or.exportClause});if(e.length(Ot)>1){var sr=e.filter(On,function(Or){return!e.isExportDeclaration(Or)||!!Or.moduleSpecifier||!Or.exportClause});On=Tr(sr,[e.createExportDeclaration(void 0,void 0,e.createNamedExports(e.flatMap(Ot,function(Or){return Or.exportClause.elements})),void 0)])}var Qt=e.filter(On,function(Or){return e.isExportDeclaration(Or)&&!!Or.moduleSpecifier&&!!Or.exportClause});if(e.length(Qt)>1){var Wt=e.group(Qt,function(Or){return e.isStringLiteral(Or.moduleSpecifier)?">"+Or.moduleSpecifier.text:">"});if(Wt.length!==Qt.length)for(var Ar=function(Or){Or.length>1&&(On=Tr(e.filter(On,function(yi){return Or.indexOf(yi)===-1}),[e.createExportDeclaration(void 0,void 0,e.createNamedExports(e.flatMap(Or,function(yi){return yi.exportClause.elements})),Or[0].moduleSpecifier)]))},Vr=0,Gr=Wt;Vr<Gr.length;Vr++){var si=Gr[Vr];Ar(si)}}return On}function Ut(On){var Ot=e.find(On,function(Qt){return e.isExportDeclaration(Qt)&&!Qt.moduleSpecifier&&!!Qt.exportClause});if(Ot){var sr=e.mapDefined(Ot.exportClause.elements,function(Qt){if(!Qt.propertyName){var Wt=e.filter(On,function(Ar){return e.nodeHasName(Ar,Qt.name)});if(e.length(Wt)&&e.every(Wt,ir)){e.forEach(Wt,Nr);return}}return Qt});e.length(sr)?Ot.exportClause.elements=e.createNodeArray(sr):On=e.filter(On,function(Qt){return Qt!==Ot})}return On}function Jt(On){return On=ft(On),On=Nt(On),On=Ut(On),gr&&(e.isSourceFile(gr)&&e.isExternalOrCommonJsModule(gr)||e.isModuleDeclaration(gr))&&(!e.some(On,e.isExternalModuleIndicator)||!e.hasScopeMarker(On)&&e.some(On,e.needsScopeMarker))&&On.push(e.createEmptyExports()),On}function ir(On){return e.isEnumDeclaration(On)||e.isVariableStatement(On)||e.isFunctionDeclaration(On)||e.isClassDeclaration(On)||e.isModuleDeclaration(On)&&!e.isExternalModuleAugmentation(On)&&!e.isGlobalScopeAugmentation(On)||e.isInterfaceDeclaration(On)||Ih(On)}function Nr(On){var Ot=(e.getModifierFlags(On)|1)&~2;On.modifiers=e.createNodeArray(e.createModifiersFromModifierFlags(Ot)),On.modifierFlagsCache=0}function Qa(On,Ot,sr){var Qt=la;Ot||(la=e.createMap()),On.forEach(function(Wt){ni(Wt,!1,!!sr)}),Ot||la.forEach(function(Wt){ni(Wt,!0,!!sr)}),la=Qt}function ni(On,Ot,sr){var Qt=zr(On);if(jt.has(""+se(Qt)))return;jt.set(""+se(Qt),!0);var Wt=!Ot;if(Wt||!!e.length(On.declarations)&&e.some(On.declarations,function(Gr){return!!e.findAncestor(Gr,function(si){return si===gr})})){var Ar=gn;gn=ka(gn);var Vr=Xa(On,Ot,sr);return gn=Ar,Vr}}function Xa(On,Ot,sr){var Qt=e.unescapeLeadingUnderscores(On.escapedName),Wt=On.escapedName==="default";if(e.isStringANonContextualKeyword(Qt)&&!Wt){gn.encounteredError=!0;return}var Ar=Wt&&!!(On.flags&-113||On.flags&16&&e.length(io(Jn(On))))&&!(On.flags&2097152);Ar&&(Ot=!0);var Vr=(Ot?0:1)|(Wt&&!Ar?512:0),Gr=On.flags&1536&&On.flags&(2|1|4)&&On.escapedName!=="export=",si=Gr&&Ic(Jn(On),On);if((On.flags&16||si)&&is(Jn(On),On,lr(On,Qt),Vr),On.flags&524288&&Hs(On,Qt,Vr),On.flags&(2|1|4)&&On.escapedName!=="export="&&!(On.flags&4194304)&&!(On.flags&32)&&!si&&ys(On,Qt,Ot,Ar,sr,Vr),On.flags&384&&fo(On,Qt,Vr),On.flags&32&&(On.flags&4?Yl(On,lr(On,Qt),Vr):xs(On,lr(On,Qt),Vr)),(On.flags&(512|1024)&&(!Gr||ca(On))||si)&&Vi(On,Qt,Vr),On.flags&64&&Ss(On,Qt,Vr),On.flags&2097152&&Yl(On,lr(On,Qt),Vr),On.flags&4&&On.escapedName==="export="&&hc(On),On.flags&8388608)for(var Or=0,yi=On.declarations;Or<yi.length;Or++){var Yi=yi[Or],Hi=$r(Yi,Yi.moduleSpecifier);if(!Hi)continue;xo(e.createExportDeclaration(void 0,void 0,void 0,e.createLiteral(Yt(Hi,gn))),0)}Ar&&xo(e.createExportAssignment(void 0,void 0,!1,e.createIdentifier(lr(On,Qt))),0)}function Ni(On){if(e.some(On.declarations,e.isParameterDeclaration))return;e.Debug.assertDefined(la),Fr(e.unescapeLeadingUnderscores(On.escapedName),On),la.set(""+se(On),On)}function Po(On){return e.isSourceFile(On)&&(e.isExternalOrCommonJsModule(On)||e.isJsonSourceFile(On))||e.isAmbientModule(On)&&!e.isGlobalScopeAugmentation(On)}function xo(On,Ot){var sr=0;Ot&1&&gr&&Po(gr)&&ir(On)&&(sr|=1),Oa&&!(sr&1)&&(!gr||!(gr.flags&8388608))&&(e.isEnumDeclaration(On)||e.isVariableStatement(On)||e.isFunctionDeclaration(On)||e.isClassDeclaration(On)||e.isModuleDeclaration(On))&&(sr|=2),Ot&512&&(e.isClassDeclaration(On)||e.isInterfaceDeclaration(On)||e.isFunctionDeclaration(On))&&(sr|=512),sr&&(On.modifiers=e.createNodeArray(e.createModifiersFromModifierFlags(sr|e.getModifierFlags(On))),On.modifierFlagsCache=0),Cr.push(On)}function Hs(On,Ot,sr){var Qt=wm(On),Wt=na(On).typeParameters,Ar=e.map(Wt,function(Or){return We(Or,gn)}),Vr=e.find(On.declarations,e.isJSDocTypeAlias),Gr=Vr?Vr.comment||Vr.parent.comment:void 0,si=gn.flags;gn.flags|=8388608,xo(e.setSyntheticLeadingComments(e.createTypeAliasDeclaration(void 0,void 0,lr(On,Ot),Ar,r(Qt,gn)),Gr?[{kind:3,text:`*
|
|
|
* `+Gr.replace(/\n/g,`
|
|
|
* `)+`
|
|
|
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),sr),gn.flags=si}function Ss(On,Ot,sr){var Qt=sl(On),Wt=Ko(On),Ar=e.map(Wt,function(no){return We(no,gn)}),Vr=Tl(Qt),Gr=e.length(Vr)?Zi(Vr):void 0,si=e.flatMap(io(Qt),function(no){return tu(no,Gr)}),Or=Gn(0,Qt,Gr,164),yi=Gn(1,Qt,Gr,165),Yi=Xn(Qt,Gr),Hi=e.length(Vr)?[e.createHeritageClause(89,e.mapDefined(Vr,function(no){return zt(no)}))]:void 0;xo(e.createInterfaceDeclaration(void 0,void 0,lr(On,Ot),Ar,Hi,Tr(Yi,yi,Or,si)),sr)}function Dd(On){return On.exports?e.filter(e.arrayFrom(On.exports.values()),function(Ot){return!(Ot.flags&4194304||Ot.escapedName==="prototype")}):[]}function ca(On){return e.every(Dd(On),function(Ot){return!(b(Ot).flags&111551)})}function Vi(On,Ot,sr){var Qt=Dd(On),Wt=e.arrayToMultiMap(Qt,function(Or){return Or.parent&&Or.parent===On?"real":"merged"}),Ar=Wt.get("real")||e.emptyArray,Vr=Wt.get("merged")||e.emptyArray;if(e.length(Ar)){var Gr=lr(On,Ot);ls(Ar,Gr,sr,!!(On.flags&(16|67108864)))}if(e.length(Vr)){var Gr=lr(On,Ot),si=e.createModuleBlock([e.createExportDeclaration(void 0,void 0,e.createNamedExports(e.map(e.filter(Vr,function(yi){return yi.escapedName!=="export="}),function(yi){var Yi=e.unescapeLeadingUnderscores(yi.escapedName),Hi=lr(yi,Yi),no=yi.declarations&&bs(yi),oo=no&&Xs(no,!0);Ni(oo||yi);var ws=oo?lr(oo,e.unescapeLeadingUnderscores(oo.escapedName)):Hi;return e.createExportSpecifier(Yi===ws?void 0:ws,Yi)})))]);xo(e.createModuleDeclaration(void 0,void 0,e.createIdentifier(Gr),si,16),0)}}function fo(On,Ot,sr){xo(e.createEnumDeclaration(void 0,e.createModifiersFromModifierFlags(My(On)?2048:0),lr(On,Ot),e.map(e.filter(io(Jn(On)),function(Qt){return!!(Qt.flags&8)}),function(Qt){var Wt=Qt.declarations&&Qt.declarations[0]&&e.isEnumMember(Qt.declarations[0])&&c_(Qt.declarations[0]);return e.createEnumMember(e.unescapeLeadingUnderscores(Qt.escapedName),Wt===void 0?void 0:e.createLiteral(Wt))})),sr)}function ys(On,Ot,sr,Qt,Wt,Ar){if(Wt)hc(On);else{var Vr=Jn(On),Gr=lr(On,Ot);if(!(On.flags&16)&&Ic(Vr,On))is(Vr,On,Gr,Ar);else{var si=On.flags&2?Nb(On)?2:1:void 0,Or=Qt||!(On.flags&4)?Gr:Fr(Gr,On),yi=On.declarations&&e.find(On.declarations,function(Hi){return e.isVariableDeclaration(Hi)});yi&&e.isVariableDeclarationList(yi.parent)&&yi.parent.declarations.length===1&&(yi=yi.parent.parent);var Yi=e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(Or,Ld(Vr,On))],si)),yi);xo(Yi,Or!==Gr?Ar&~1:Ar),Or!==Gr&&!sr&&xo(e.createExportDeclaration(void 0,void 0,e.createNamedExports([e.createExportSpecifier(Or,Gr)])),0)}}}function is(On,Ot,sr,Qt){for(var Wt=oi(On,0),Ar=0,Vr=Wt;Ar<Vr.length;Ar++){var Gr=Vr[Ar],si=B(Gr,243,gn);si.name=e.createIdentifier(sr),xo(e.setTextRange(si,Gr.declaration),Qt)}if(!(Ot.flags&(512|1024)&&!!Ot.exports&&!!Ot.exports.size)){var Or=e.filter(io(On),function(yi){return!(yi.flags&4194304||yi.escapedName==="prototype")});ls(Or,sr,Qt,!0)}}function ls(On,Ot,sr,Qt){if(e.length(On)){var Wt=e.arrayToMultiMap(On,function(Hi){return!e.length(Hi.declarations)||e.some(Hi.declarations,function(no){return e.getSourceFileOfNode(no)===e.getSourceFileOfNode(gn.enclosingDeclaration)})?"local":"remote"}),Ar=Wt.get("local")||e.emptyArray,Vr=e.createModuleDeclaration(void 0,void 0,e.createIdentifier(Ot),e.createModuleBlock([]),16);Vr.flags^=8,Vr.parent=gr,Vr.locals=e.createSymbolTable(On),Vr.symbol=On[0].parent;var Gr=Cr;Cr=[];var si=Oa;Oa=!1;var Or=Rr(Rr({},gn),{enclosingDeclaration:Vr}),yi=gn;gn=Or,Qa(e.createSymbolTable(Ar),Qt,!0),gn=yi,Oa=si;var Yi=Cr;Cr=Gr,Vr.flags^=8,Vr.parent=void 0,Vr.locals=void 0,Vr.symbol=void 0,Vr.body=e.createModuleBlock(Yi),xo(Vr,sr)}}function xs(On,Ot,sr){for(var Qt=Ko(On),Wt=e.map(Qt,function(fs){return We(fs,gn)}),Ar=sl(On),Vr=Tl(Ar),Gr=Jn(On),si=kc(Gr),Or=e.length(Vr)?[e.createHeritageClause(89,e.map(Vr,function(fs){return Rt(fs,si,Ot)}))]:void 0,yi=e.flatMap(io(Ar),function(fs){return At(fs,!1,Vr[0])}),Yi=On.flags&(16|512)?[]:e.flatMap(e.filter(io(Gr),function(fs){return!(fs.flags&4194304)&&fs.escapedName!=="prototype"}),function(fs){return At(fs,!0,si)}),Hi=Gn(1,Gr,Vr[0],161),no=0,oo=Hi;no<oo.length;no++){var ws=oo[no];ws.type=void 0,ws.typeParameters=void 0}var dd=Xn(Ar,Vr[0]);xo(e.setTextRange(e.createClassDeclaration(void 0,void 0,Ot,Wt,Or,Tr(dd,Yi,Hi,yi)),On.declarations&&e.filter(On.declarations,function(fs){return e.isClassDeclaration(fs)||e.isClassExpression(fs)})[0]),sr)}function Yl(On,Ot,sr){var Qt=bs(On);if(!Qt)return e.Debug.fail();var Wt=zr(Xs(Qt,!0));if(!Wt)return;var Ar=e.unescapeLeadingUnderscores(Wt.escapedName);Ar==="export="&&(je.esModuleInterop||je.allowSyntheticDefaultImports)&&(Ar="default");var Vr=lr(Wt,Ar);Ni(Wt);switch(Qt.kind){case 252:var Gr=!(Wt.flags&512);xo(e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(Ot),Gr?ta(Wt,gn,67108863,!1):e.createExternalModuleReference(e.createLiteral(Yt(On,gn)))),Gr?sr:0);break;case 251:xo(e.createNamespaceExportDeclaration(e.idText(Qt.name)),0);break;case 254:xo(e.createImportDeclaration(void 0,void 0,e.createImportClause(e.createIdentifier(Ot),void 0),e.createLiteral(Yt(Wt.parent||Wt,gn))),0);break;case 255:xo(e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(Ot))),e.createLiteral(Yt(Wt,gn))),0);break;case 257:xo(e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(Ot!==Ar?e.createIdentifier(Ar):void 0,e.createIdentifier(Ot))])),e.createLiteral(Yt(Wt.parent||Wt,gn))),0);break;case 261:var si=Qt.parent.parent.moduleSpecifier;yo(e.unescapeLeadingUnderscores(On.escapedName),si?Ar:Vr,si&&e.isStringLiteralLike(si)?e.createLiteral(si.text):void 0);break;case 258:hc(On);break;case 208:case 193:On.escapedName==="default"||On.escapedName==="export="?hc(On):yo(Ot,Vr);break;default:return e.Debug.failBadSyntaxKind(Qt,"Unhandled alias declaration kind in symbol serializer!")}}function yo(On,Ot,sr){xo(e.createExportDeclaration(void 0,void 0,e.createNamedExports([e.createExportSpecifier(On!==Ot?Ot:void 0,On)]),sr),0)}function hc(On){if(On.flags&4194304)return;var Ot=e.unescapeLeadingUnderscores(On.escapedName),sr=Ot==="export=",Qt=Ot==="default",Wt=sr||Qt,Ar=On.declarations&&bs(On),Vr=Ar&&Xs(Ar,!0);if(Vr&&e.length(Vr.declarations)&&e.some(Vr.declarations,function(oo){return e.getSourceFileOfNode(oo)===e.getSourceFileOfNode(gr)})){var Gr=Wt?e.getExportAssignmentExpression(Ar):e.getPropertyAssignmentAliasLikeExpression(Ar),si=e.isEntityNameExpression(Gr)?c0(Gr):void 0,Or=si&&kt(si,67108863,!0,!0,gr);(Or||Vr)&&Ni(Or||Vr);var yi=gn.tracker.trackSymbol;if(gn.tracker.trackSymbol=e.noop,Wt)Cr.push(e.createExportAssignment(void 0,void 0,sr,Ur(Vr,gn,67108863)));else if(si===Gr)yo(Ot,e.idText(si));else if(e.isClassExpression(Gr))yo(Ot,lr(Vr,e.symbolName(Vr)));else{var Yi=Fr(Ot,On);xo(e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(Yi),ta(Vr,gn,67108863,!1)),0),yo(Ot,Yi)}gn.tracker.trackSymbol=yi}else{var Yi=Fr(Ot,On),Hi=Ns(Jn(On));if(Ic(Hi,On))is(Hi,On,Yi,Wt?0:1);else{var no=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(Yi,Ld(Hi,On))],2));xo(no,Ot===Yi?1:0)}Wt?Cr.push(e.createExportAssignment(void 0,void 0,sr,e.createIdentifier(Yi))):Ot!==Yi&&yo(Ot,Yi)}}function Ic(On,Ot){var sr=e.getSourceFileOfNode(gn.enclosingDeclaration);return e.getObjectFlags(On)&(16|32)&&!Xi(On,0)&&!Xi(On,1)&&!!(e.length(io(On))||e.length(oi(On,0)))&&!e.length(oi(On,1))&&!Uf(Ot)&&!(On.symbol&&e.some(On.symbol.declarations,function(Qt){return e.getSourceFileOfNode(Qt)!==sr}))&&!e.some(io(On),function(Qt){return jr(Qt.escapedName)})&&!e.some(io(On),function(Qt){return e.some(Qt.declarations,function(Wt){return e.getSourceFileOfNode(Wt)!==sr})})&&e.every(io(On),function(Qt){return e.isIdentifierText(e.symbolName(Qt),w)&&!e.isStringAKeyword(e.symbolName(Qt))})}function nu(On,Ot,sr){return function(Wt,Ar,Vr){if(Ar&&Wt.flags&(788968|1920|2097152))return[];if(Wt.flags&4194304||Vr&&Ji(Vr,Wt.escapedName)&&$c(Ji(Vr,Wt.escapedName))===$c(Wt)&&(Wt.flags&16777216)===(Ji(Vr,Wt.escapedName).flags&16777216)&&Xc(Jn(Wt),Zo(Vr,Wt.escapedName)))return[];var Gr=Ar?32:0,si=ja(Wt,gn),Or=e.find(Wt.declarations,e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(Wt.flags&98304&&sr){var yi=[];return Wt.flags&65536&&yi.push(e.setTextRange(e.createSetAccessor(void 0,e.createModifiersFromModifierFlags(Gr),si,[e.createParameter(void 0,void 0,void 0,"arg",void 0,Ld(Jn(Wt),Wt))],void 0),e.find(Wt.declarations,e.isSetAccessor)||Or)),Wt.flags&32768&&yi.push(e.setTextRange(e.createGetAccessor(void 0,e.createModifiersFromModifierFlags(Gr),si,[],Ld(Jn(Wt),Wt),void 0),e.find(Wt.declarations,e.isGetAccessor)||Or)),yi}else if(Wt.flags&(4|3))return e.setTextRange(On(void 0,e.createModifiersFromModifierFlags(($c(Wt)?64:0)|Gr),si,Wt.flags&16777216?e.createToken(57):void 0,Ld(Jn(Wt),Wt),void 0),e.find(Wt.declarations,e.or(e.isPropertyDeclaration,e.isVariableDeclaration))||Or);if(Wt.flags&(8192|16)){for(var Yi=Jn(Wt),Hi=oi(Yi,0),no=[],oo=0,ws=Hi;oo<ws.length;oo++){var dd=ws[oo],fs=B(dd,Ot,gn);fs.name=si,Gr&&(fs.modifiers=e.createNodeArray(e.createModifiersFromModifierFlags(Gr))),Wt.flags&16777216&&(fs.questionToken=e.createToken(57)),no.push(e.setTextRange(fs,dd.declaration))}return no}return e.Debug.fail("Unhandled class member kind! "+(Wt.__debugFlags||Wt.flags))}}function tu(On,Ot){return er(On,!1,Ot)}function Uf(On){return e.find(On.declarations,function(Ot){return!!e.getEffectiveTypeAnnotationNode(Ot)&&!!e.findAncestor(Ot,function(sr){return sr===gr})})}function Ld(On,Ot){var sr=Uf(Ot);if(sr&&!e.isFunctionLikeDeclaration(sr)){var Qt=e.getEffectiveTypeAnnotationNode(sr),Wt=e.visitNode(Qt,Gr);return Wt===Qt?e.getMutableClone(Qt):Wt}var Ar=gn.flags;On.flags&8192&&On.symbol===Ot&&(gn.flags|=1048576);var Vr=r(On,gn);return gn.flags=Ar,Vr;function Gr(Or){if(e.isJSDocAllType(Or))return e.createKeywordTypeNode(124);if(e.isJSDocUnknownType(Or))return e.createKeywordTypeNode(147);if(e.isJSDocNullableType(Or))return e.createUnionTypeNode([e.visitNode(Or.type,Gr),e.createKeywordTypeNode(99)]);if(e.isJSDocOptionalType(Or))return e.createUnionTypeNode([e.visitNode(Or.type,Gr),e.createKeywordTypeNode(145)]);if(e.isJSDocNonNullableType(Or))return e.visitNode(Or.type,Gr);if((e.isExpressionWithTypeArguments(Or)||e.isTypeReferenceNode(Or))&&e.isJSDocIndexSignature(Or))return e.createTypeLiteralNode([e.createIndexSignature(void 0,void 0,[e.createParameter(void 0,void 0,void 0,"x",void 0,e.visitNode(Or.typeArguments[0],Gr))],e.visitNode(Or.typeArguments[1],Gr))]);if(e.isJSDocFunctionType(Or))if(e.isJSDocConstructSignature(Or)){var yi;return e.createConstructorTypeNode(e.visitNodes(Or.typeParameters,Gr),e.mapDefined(Or.parameters,function(oo,ws){return oo.name&&e.isIdentifier(oo.name)&&oo.name.escapedText==="new"?(yi=oo.type,void 0):e.createParameter(void 0,void 0,oo.dotDotDotToken,oo.name||oo.dotDotDotToken?"args":"arg"+ws,oo.questionToken,e.visitNode(oo.type,Gr),void 0)}),e.visitNode(yi||Or.type,Gr))}else return e.createFunctionTypeNode(e.visitNodes(Or.typeParameters,Gr),e.map(Or.parameters,function(oo,ws){return e.createParameter(void 0,void 0,oo.dotDotDotToken,oo.name||oo.dotDotDotToken?"args":"arg"+ws,oo.questionToken,e.visitNode(oo.type,Gr),void 0)}),e.visitNode(Or.type,Gr));if(e.isLiteralImportTypeNode(Or))return e.updateImportTypeNode(Or,e.updateLiteralTypeNode(Or.argument,si(Or,Or.argument.literal)),Or.qualifier,e.visitNodes(Or.typeArguments,Gr,e.isTypeNode),Or.isTypeOf);if(e.isEntityName(Or)||e.isEntityNameExpression(Or)){var Yi=e.getFirstIdentifier(Or),Hi=kt(Yi,67108863,!0,!0);if(Hi&&(Ni(Hi),e.isIdentifier(Or)&&Hi.flags&262144)){var no=br(ho(Hi),gn);return e.idText(no)!==e.idText(Or)?no:Or}}return e.visitEachChild(Or,Gr,e.nullTransformationContext)}function si(Or,yi){if(wt){if(gn.tracker&&gn.tracker.moduleResolverHost){var Yi=vS(Or);if(Yi){var Hi=e.createGetCanonicalFileName(!!y.useCaseSensitiveFileNames),no={getCanonicalFileName:Hi,getCurrentDirectory:gn.tracker.moduleResolverHost.getCurrentDirectory?function(){return gn.tracker.moduleResolverHost.getCurrentDirectory()}:function(){return""},getCommonSourceDirectory:function(){return gn.tracker.moduleResolverHost.getCommonSourceDirectory()}},oo=e.getResolvedExternalModuleName(no,Yi);return e.createLiteral(oo)}}}else if(gn.tracker&&gn.tracker.trackExternalModuleSymbolOfImportTypeNode){var ws=ba(yi,yi,void 0);ws&&gn.tracker.trackExternalModuleSymbolOfImportTypeNode(ws)}return yi}}function Gn(On,Ot,sr,Qt){var Wt=oi(Ot,On);if(On===1){if(!sr&&e.every(Wt,function(no){return e.length(no.parameters)===0}))return[];if(sr){var Ar=oi(sr,1);if(!e.length(Ar)&&e.every(Wt,function(no){return e.length(no.parameters)===0}))return[];if(Ar.length===Wt.length){for(var Vr=!1,Gr=0;Gr<Ar.length;Gr++)if(!Yp(Wt[Gr],Ar[Gr],!1,!1,!0,tp)){Vr=!0;break}if(!Vr)return[]}}}for(var si=[],Or=0,yi=Wt;Or<yi.length;Or++){var Yi=yi[Or],Hi=B(Yi,Qt,gn);si.push(e.setTextRange(Hi,Yi.declaration))}return si}function Xn(On,Ot){for(var sr=[],Qt=0,Wt=[0,1];Qt<Wt.length;Qt++){var Ar=Wt[Qt],Vr=Xi(On,Ar);if(Vr){if(Ot){var Gr=Xi(Ot,Ar);if(Gr&&Xc(Vr.type,Gr.type))continue}sr.push(A(Vr,Ar,gn))}}return sr}function Rt(On,Ot,sr){var Qt=zt(On);if(Qt)return Qt;var Wt=Fr(sr+"_base"),Ar=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(Wt,r(Ot,gn))],2));return xo(Ar,0),e.createExpressionWithTypeArguments(void 0,e.createIdentifier(Wt))}function zt(On){var Ot,sr;if(On.target&&Ts(On.target.symbol,gr,111551,!1)?(Ot=e.map(go(On),function(Qt){return r(Qt,gn)}),sr=Ur(On.target.symbol,gn,788968)):On.symbol&&Ts(On.symbol,gr,111551,!1)&&(sr=Ur(On.symbol,gn,788968)),sr)return e.createExpressionWithTypeArguments(Ot,sr)}function Fr(On,Ot){if(Ot&&gn.remappedSymbolNames.has(""+se(Ot)))return gn.remappedSymbolNames.get(""+se(Ot));Ot&&(On=Br(Ot,On));for(var sr=0,Qt=On;gn.usedSymbolNames.has(On);)sr++,On=Qt+"_"+sr;return gn.usedSymbolNames.set(On,!0),Ot&&gn.remappedSymbolNames.set(""+se(Ot),On),On}function Br(On,Ot){if(Ot==="default"||Ot==="__class"||Ot==="__function"){var sr=gn.flags;gn.flags|=16777216;var Qt=Vs(On,gn);gn.flags=sr,Ot=Qt.length>0&&e.isSingleOrDoubleQuote(Qt.charCodeAt(0))?e.stripQuotes(Qt):Qt}return Ot==="default"?Ot="_default":Ot==="export="&&(Ot="_exports"),Ot=e.isIdentifierText(Ot,w)&&!e.isStringANonContextualKeyword(Ot)?Ot:"_"+Ot.replace(/[^a-zA-Z0-9]/g,"_"),Ot}function lr(On,Ot){return gn.remappedSymbolNames.has(""+se(On))?gn.remappedSymbolNames.get(""+se(On)):(Ot=Br(On,Ot),gn.remappedSymbolNames.set(""+se(On),Ot),Ot)}}}function Wl(n,t,r,i){return r===void 0&&(r=16384),i?l(i).getText():e.usingSingleLineStringWriter(l);function l(d){var A=e.createTypePredicateNodeWithModifier(n.kind===2||n.kind===3?e.createToken(123):void 0,n.kind===1||n.kind===3?e.createIdentifier(n.parameterName):e.createThisTypeNode(),n.type&&Fe.typeToTypeNode(n.type,t,pu(r)|70221824|512)),B=e.createPrinter({removeComments:!0}),Ae=t&&e.getSourceFileOfNode(t);return B.writeNode(4,A,Ae,d),d}}function Xu(n){for(var t=[],r=0,i=0;i<n.length;i++){var l=n[i];if(r|=l.flags,!(l.flags&98304)){if(l.flags&(512|1024)){var d=l.flags&512?Ce:Hf(l);if(d.flags&1048576){var A=d.types.length;if(i+A<=n.length&&js(n[i+A-1])===js(d.types[A-1])){t.push(d),i+=A-1;continue}}}t.push(l)}}return r&65536&&t.push(Bn),r&32768&&t.push(un),t||n}function zi(n){return n===8?"private":n===16?"protected":"public"}function Hl(n){if(n.symbol&&n.symbol.flags&2048){var t=e.findAncestor(n.symbol.declarations[0].parent,function(r){return r.kind!==181});if(t.kind===246)return Zt(t)}return}function Pa(n){return n&&n.parent&&n.parent.kind===249&&e.isExternalModuleAugmentation(n.parent.parent)}function xc(n){return n.kind===288||e.isAmbientModule(n)}function cs(n,t){var r=n.nameType;if(r){if(r.flags&384){var i=""+r.value;return!e.isIdentifierText(i,je.target)&&!Cl(i)?'"'+e.escapeString(i,34)+'"':Cl(i)&&e.startsWith(i,"-")?"["+i+"]":i}if(r.flags&8192)return"["+Vs(r.symbol,t)+"]"}}function Vs(n,t){if(t&&n.escapedName==="default"&&!(t.flags&16384)&&(!(t.flags&16777216)||!n.declarations||t.enclosingDeclaration&&e.findAncestor(n.declarations[0],xc)!==e.findAncestor(t.enclosingDeclaration,xc)))return"default";if(n.declarations&&n.declarations.length){var r=e.firstDefined(n.declarations,function(A){return e.getNameOfDeclaration(A)?A:void 0}),i=r&&e.getNameOfDeclaration(r);if(r&&i){if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r))return e.symbolName(n);if(e.isComputedPropertyName(i)&&!(e.getCheckFlags(n)&4096)&&n.nameType&&n.nameType.flags&384){var l=cs(n,t);if(l!==void 0)return l}return e.declarationNameToString(i)}if(r||(r=n.declarations[0]),r.parent&&r.parent.kind===241)return e.declarationNameToString(r.parent.name);switch(r.kind){case 213:case 200:case 201:return t&&!t.encounteredError&&!(t.flags&131072)&&(t.encounteredError=!0),r.kind===213?"(Anonymous class)":"(Anonymous function)"}}var d=cs(n,t);return d!==void 0?d:e.symbolName(n)}function es(n){if(n){var t=Lr(n);return t.isVisible===void 0&&(t.isVisible=!!r()),t.isVisible}return!1;function r(){switch(n.kind){case 308:case 315:case 309:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&e.isSourceFile(n.parent.parent.parent));case 190:return es(n.parent.parent);case 241:if(e.isBindingPattern(n.name)&&!n.name.elements.length)return!1;case 248:case 244:case 245:case 246:case 243:case 247:case 252:if(e.isExternalModuleAugmentation(n))return!0;var i=sc(n);return!(e.getCombinedModifierFlags(n)&1)&&!(n.kind!==252&&i.kind!==288&&i.flags&8388608)?Eo(i):es(i);case 158:case 157:case 162:case 163:case 160:case 159:if(e.hasModifier(n,8|16))return!1;case 161:case 165:case 164:case 166:case 155:case 249:case 169:case 170:case 172:case 168:case 173:case 174:case 177:case 178:case 181:return es(n.parent);case 254:case 255:case 257:return!1;case 154:case 288:case 251:return!0;case 258:return!1;default:return!1}}}function Yu(n,t){var r;n.parent&&n.parent.kind===258?r=lo(n,n.escapedText,111551|788968|1920|2097152,void 0,n,!1):n.parent.kind===261&&(r=uu(n.parent,111551|788968|1920|2097152));var i,l;return r&&(l=e.createMap(),l.set(""+se(r),!0),d(r.declarations)),i;function d(A){e.forEach(A,function(B){var Ae=Nl(B)||B;if(t?Lr(B).isVisible=!0:(i=i||[],e.pushIfUnique(i,Ae)),e.isInternalModuleImportEqualsDeclaration(B)){var We=B.moduleReference,Ye=e.getFirstIdentifier(We),tn=lo(B,Ye.escapedText,111551|788968|1920,void 0,void 0,!1),bn=tn&&""+se(tn);tn&&!l.has(bn)&&(l.set(bn,!0),d(tn.declarations))}})}}function Qs(n,t){var r=oc(n,t);if(r>=0){for(var i=Fs.length,l=r;l<i;l++)Il[l]=!1;return!1}return Fs.push(n),Il.push(!0),$o.push(t),!0}function oc(n,t){for(var r=Fs.length-1;r>=0;r--){if(pd(Fs[r],$o[r]))return-1;if(Fs[r]===n&&$o[r]===t)return r}return-1}function pd(n,t){switch(t){case 0:return!!na(n).type;case 5:return!!Lr(n).resolvedEnumType;case 2:return!!na(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!na(n).resolvedJSDocType;case 7:return!!n.resolvedTypeArguments}return e.Debug.assertNever(t)}function Kl(){return Fs.pop(),$o.pop(),Il.pop()}function sc(n){return e.findAncestor(e.getRootDeclaration(n),function(t){switch(t.kind){case 241:case 242:case 257:case 256:case 255:case 254:return!1;default:return!0}}).parent}function Qu(n){var t=ho(Ps(n));return t.typeParameters?bu(t,e.map(t.typeParameters,function(r){return oe})):t}function Zo(n,t){var r=Ji(n,t);return r?Jn(r):void 0}function md(n,t){return Zo(n,t)||Cl(t)&&ms(n,1)||ms(n,0)||dn}function Bi(n){return n&&(n.flags&1)!==0}function Nu(n){var t=Zt(n);return t&&na(t).type||nd(n,!1)}function Zu(n){return n.kind===153&&!e.isStringOrNumericLiteralLike(n.expression)}function jc(n,t,r){if(n=gs(n,function(tn){return!(tn.flags&98304)}),n.flags&131072)return Wn;if(n.flags&1048576)return Ws(n,function(tn){return jc(tn,t,r)});var i=Wr(e.map(t,vd));if(Qd(n)||qp(i)){if(i.flags&131072)return n;var l=V1();return l?Qf(l,[n,i]):_e}for(var d=e.createSymbolTable(),A=0,B=io(n);A<B.length;A++){var Ae=B[A];!Wi(Mm(Ae,8576),i)&&!(e.getDeclarationModifierFlagsFromSymbol(Ae)&(8|16))&&yg(Ae)&&d.set(Ae.escapedName,_g(Ae,!1))}var We=Xi(n,0),Ye=Xi(n,1);return No(r,d,e.emptyArray,e.emptyArray,We,Ye)}function Wc(n,t){var r=mu(n);return r?Ad(r,t):t}function mu(n){var t=Hc(n);if(t&&t.flowNode){var r=$u(n);if(r){var i=e.createNode(194,n.pos,n.end);i.parent=n,i.expression=t;var l=e.createNode(10,n.pos,n.end);return l.parent=i,l.text=r,i.argumentExpression=l,i.flowNode=t.flowNode,i}}}function Hc(n){var t=n.parent.parent;switch(t.kind){case 190:case 279:return mu(t);case 191:return mu(n.parent);case 241:return t.initializer;case 208:return t.right}}function $u(n){var t=n.parent;return n.kind===190&&t.kind===188?Pl(n.propertyName||n.name):n.kind===279||n.kind===280?Pl(n.name):""+t.elements.indexOf(n)}function Pl(n){var t=vd(n);return t.flags&(128|256)?""+t.value:void 0}function Ml(n){var t=n.parent,r=Nu(t.parent);if(!r||Bi(r))return r;a&&n.flags&8388608&&e.isParameterDeclaration(n)&&(r=Wu(r));var i;if(t.kind===188)if(n.dotDotDotToken){if(r.flags&2||!kf(r))return xn(n,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),_e;for(var l=[],d=0,A=t.elements;d<A.length;d++){var B=A[d];B.dotDotDotToken||l.push(B.propertyName||B.name)}i=jc(r,l,n.symbol)}else{var Ae=n.propertyName||n.name,We=vd(Ae),Ye=fp(xl(r,We,Ae),n.name);i=Wc(n,Ye)}else{var tn=qd(65,r,un,t),bn=t.elements.indexOf(n);if(n.dotDotDotToken)i=Sf(r,Do)?Ws(r,function(it){return iv(it,bn)}):Is(tn);else if(Sd(r)){var We=rs(bn),Mn=Af(n)?8:0,Ye=fp(bd(r,We,n.name,Mn)||_e,n.name);i=Wc(n,Ye)}else i=tn}return n.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(n))?a&&!(kl(_h(n))&32768)?hs(i,524288):i:Wr([hs(i,524288),_h(n)],2):i}function ql(n){var t=e.getJSDocType(n);return t?Ua(t):void 0}function lc(n){var t=e.skipParentheses(n);return t.kind===99||t.kind===75&&Yc(t)===Qe}function Ou(n){var t=e.skipParentheses(n);return t.kind===191&&t.elements.length===0}function ol(n,t){return t===void 0&&(t=!0),a&&t?xu(n):n}function ed(n){return n.kind===155&&(n.parent.kind===200||n.parent.kind===201)&&!!Qc(n.parent)}function nd(n,t){if(e.isVariableDeclaration(n)&&n.parent.parent.kind===230){var r=zc(vy(Na(n.parent.parent.expression)));return r.flags&(262144|4194304)?fv(r):ct}if(e.isVariableDeclaration(n)&&n.parent.parent.kind===231){var i=n.parent.parent;return gm(i.expression,i.awaitModifier)||oe}if(e.isBindingPattern(n.parent))return Ml(n);var l=t&&(e.isParameter(n)&&Im(n)||!e.isBindingElement(n)&&!e.isVariableDeclaration(n)&&!!n.questionToken),d=Nn(n);if(d)return ol(d,l);if((ae||e.isInJSFile(n))&&n.kind===241&&!e.isBindingPattern(n.name)&&!(e.getCombinedModifierFlags(n)&1)&&!(n.flags&8388608)){if(!(e.getCombinedNodeFlags(n)&2)&&(!n.initializer||lc(n.initializer)))return Cn;if(n.initializer&&Ou(n.initializer))return da}if(n.kind===155){var A=n.parent;if(A.kind===163&&!Ya(A)){var B=e.getDeclarationOfKind(Zt(n.parent),162);if(B){var Ae=fc(B),We=f_(A);return We&&n===We?(e.Debug.assert(!We.type),Jn(Ae.thisParameter)):Fi(Ae)}}if(e.isInJSFile(n)){var Ye=e.getJSDocType(A);if(Ye&&e.isFunctionTypeNode(Ye))return Zs(fc(Ye),A.parameters.indexOf(n))}var tn=n.symbol.escapedName==="this"?jb(A):Wb(n,!0);if(tn)return ol(tn,l)}else if(e.isInJSFile(n)){var bn=hd(n,Zt(n),e.getDeclaredExpandoInitializer(n));if(bn)return bn}if(n.initializer&&!ed(n)){var tn=_h(n);return ol(tn,l)}return e.isJsxAttribute(n)?Kn:e.isBindingPattern(n.name)&&!ed(n)?Dn(n.name,!1,!0):void 0}function hu(n,t){var r=e.getAssignedExpandoInitializer(n.valueDeclaration);if(r){var i=e.getJSDocTypeTag(r);if(i&&i.typeExpression)return Ua(i.typeExpression);var l=hd(n.valueDeclaration,n,r);return l||xd(as(r))}for(var d=!1,A=!1,B,Ae,We=0,Ye=n.declarations;We<Ye.length;We++){var tn=Ye[We],bn=e.isBinaryExpression(tn)||e.isCallExpression(tn)?tn:e.isAccessExpression(tn)?e.isBinaryExpression(tn.parent)?tn.parent:tn:void 0;if(!bn)continue;var Mn=e.isAccessExpression(bn)?e.getAssignmentDeclarationPropertyAccessKind(bn):e.getAssignmentDeclarationKind(bn);Mn===4&&(cc(bn)?d=!0:A=!0),e.isCallExpression(bn)||(B=Pd(B,bn,n,tn)),B||(Ae||(Ae=[])).push(e.isBinaryExpression(bn)||e.isCallExpression(bn)?Md(n,t,bn,Mn):Dt)}var it=B;if(!it){if(!e.length(Ae))return _e;var _t=d?Rd(Ae,n.declarations):void 0;if(A){var St=Pu(n);St&&((_t||(_t=[])).push(St),d=!0)}var Yt=e.some(_t,function(or){return!!(or.flags&~98304)})?_t:Ae;it=Wr(Yt,2)}var mr=Ns(ol(it,A&&!d));return gs(mr,function(or){return!!(or.flags&~98304)})===Dt?(ld(n.valueDeclaration,oe),oe):mr}function hd(n,t,r){if(!e.isInJSFile(n)||!r||!e.isObjectLiteralExpression(r)||r.properties.length)return;for(var i=e.createSymbolTable();e.isBinaryExpression(n)||e.isPropertyAccessExpression(n);){var l=Zt(n);l&&e.hasEntries(l.exports)&&qa(i,l.exports),n=e.isBinaryExpression(n)?n.parent:n.parent.parent}var d=Zt(n);d&&e.hasEntries(d.exports)&&qa(i,d.exports);var A=No(t,i,e.emptyArray,e.emptyArray,void 0,void 0);return A.objectFlags|=16384,A}function Pd(n,t,r,i){var l=e.getEffectiveTypeAnnotationNode(t.parent);if(l){var d=Ns(Ua(l));if(n)n!==_e&&d!==_e&&!Xc(n,d)&&OT(void 0,n,i,d);else return d}if(r.parent){var A=e.getEffectiveTypeAnnotationNode(r.parent.valueDeclaration);if(A)return Zo(Ua(A),r.escapedName)}return n}function Md(n,t,r,i){if(e.isCallExpression(r)){if(t)return Jn(t);var l=as(r.arguments[2]),d=Zo(l,"value");if(d)return d;var A=Zo(l,"get");if(A){var B=Wd(A);if(B)return Fi(B)}var Ae=Zo(l,"set");if(Ae){var We=Wd(Ae);if(We)return Cy(We)}return oe}var Ye=t?Jn(t):xd(as(r.right));if(Ye.flags&524288&&i===2&&n.escapedName==="export="){var tn=dc(Ye),bn=e.createSymbolTable();e.copyEntries(tn.members,bn),t&&!t.exports&&(t.exports=e.createSymbolTable()),(t||n).exports.forEach(function(it,_t){if(bn.has(_t)){var St=tn.members.get(_t),Yt=Ga(it.flags|St.flags,_t);Yt.type=Wr([Jn(it),Jn(St)]),bn.set(_t,Yt)}else bn.set(_t,it)});var Mn=No(tn.symbol,bn,tn.callSignatures,tn.constructSignatures,tn.stringIndexInfo,tn.numberIndexInfo);return Mn.objectFlags|=e.getObjectFlags(Ye)&16384,Mn}return Ng(Ye)?(ld(r,mi),mi):Ye}function cc(n){var t=e.getThisContainer(n,!1);return t.kind===161||t.kind===243||t.kind===200&&!e.isPrototypePropertyAssignment(t.parent)}function Rd(n,t){return e.Debug.assert(n.length===t.length),n.filter(function(r,i){var l=t[i],d=e.isBinaryExpression(l)?l:e.isBinaryExpression(l.parent)?l.parent:void 0;return d&&cc(d)})}function Pu(n){var t=e.forEach(n.declarations,function(l){var d=e.getThisContainer(l,!1).parent;return e.isClassLike(d)&&d});if(t){var r=ho(Zt(t)),i=r&&Tl(r)[0];if(i)return Zo(i,n.escapedName)}}function g(n,t,r){return n.initializer?ol(_h(n)):e.isBindingPattern(n.name)?Dn(n.name,t,r):(r&&!Ue(n)&&ld(n,oe),oe)}function re(n,t,r){var i=e.createSymbolTable(),l,d=128|524288;e.forEach(n.elements,function(B){var Ae=B.propertyName||B.name;if(B.dotDotDotToken){l=dl(oe,!1);return}var We=vd(Ae);if(!nr(We)){d|=512;return}var Ye=Oo(We),tn=4|(B.initializer?16777216:0),bn=Ga(tn,Ye);bn.type=g(B,t,r),bn.bindingElement=B,i.set(bn.escapedName,bn)});var A=No(void 0,i,e.emptyArray,e.emptyArray,l,void 0);return A.objectFlags|=d,t&&(A.pattern=n),A}function Ve(n,t,r){var i=n.elements,l=e.lastOrUndefined(i),d=!!(l&&l.kind===190&&l.dotDotDotToken);if(i.length===0||i.length===1&&d)return w>=2?j1(oe):mi;var A=e.map(i,function(We){return e.isOmittedExpression(We)?oe:g(We,t,r)}),B=e.findLastIndex(i,function(We){return!e.isOmittedExpression(We)&&!Af(We)},i.length-(d?2:1))+1,Ae=Gu(A,B,d);return t&&(Ae=sg(Ae),Ae.pattern=n),Ae}function Dn(n,t,r){return t===void 0&&(t=!1),r===void 0&&(r=!1),n.kind===188?re(n,t,r):Ve(n,t,r)}function rt(n,t){return p(nd(n,!0),n,t)}function p(n,t,r){return n?(r&&Km(t,n),n.flags&8192&&(e.isBindingElement(t)||!t.type)&&n.symbol!==Zt(t)&&(n=_n),Ns(n)):(n=e.isParameter(t)&&t.dotDotDotToken?mi:oe,r&&(Ue(t)||ld(t,n)),n)}function Ue(n){var t=e.getRootDeclaration(n),r=t.kind===155?t.parent:t;return bh(r)}function Nn(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return Ua(t)}function vt(n){var t=na(n);if(!t.type){var r=Sr(n);t.type||(t.type=r)}return t.type}function Sr(n){if(n.flags&4194304)return Qu(n);if(n===ke)return oe;if(n.flags&134217728){var t=Zt(e.getSourceFileOfNode(n.valueDeclaration)),r=e.createSymbolTable();return r.set("exports",t),No(n,r,e.emptyArray,e.emptyArray,void 0,void 0)}var i=n.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(i))return oe;if(e.isSourceFile(i)&&e.isJsonSourceFile(i)){if(!i.statements.length)return Wn;var l=xd(Na(i.statements[0].expression));return l.flags&524288?bf(l):l}if(!Qs(n,0))return n.flags&512&&!(n.flags&67108864)?Xr(n):An(n);var d;if(i.kind===258)d=p(as(i.expression),i);else if(e.isBinaryExpression(i)||e.isInJSFile(i)&&(e.isCallExpression(i)||(e.isPropertyAccessExpression(i)||e.isBindableStaticElementAccessExpression(i))&&e.isBinaryExpression(i.parent)))d=hu(n);else if(e.isJSDocPropertyLikeTag(i)||e.isPropertyAccessExpression(i)||e.isElementAccessExpression(i)||e.isIdentifier(i)||e.isStringLiteralLike(i)||e.isNumericLiteral(i)||e.isClassDeclaration(i)||e.isFunctionDeclaration(i)||e.isMethodDeclaration(i)&&!e.isObjectLiteralMethod(i)||e.isMethodSignature(i)||e.isSourceFile(i)){if(n.flags&(16|8192|32|384|512))return Xr(n);d=e.isBinaryExpression(i.parent)?hu(n):Nn(i)||oe}else if(e.isPropertyAssignment(i))d=Nn(i)||uT(i);else if(e.isJsxAttribute(i))d=Nn(i)||aE(i);else if(e.isShorthandPropertyAssignment(i))d=Nn(i)||Pf(i.name,0);else if(e.isObjectLiteralMethod(i))d=Nn(i)||dT(i,0);else if(e.isParameter(i)||e.isPropertyDeclaration(i)||e.isPropertySignature(i)||e.isVariableDeclaration(i)||e.isBindingElement(i))d=rt(i,!0);else if(e.isEnumDeclaration(i))d=Xr(n);else if(e.isEnumMember(i))d=ps(n);else if(e.isAccessor(i))d=Et(n);else return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(i.kind)+" for "+e.Debug.formatSymbol(n));return Kl()?d:n.flags&512&&!(n.flags&67108864)?Xr(n):An(n)}function Zr(n){if(n)if(n.kind===162){var t=e.getEffectiveReturnTypeNode(n);return t}else{var r=e.getEffectiveSetAccessorTypeAnnotationNode(n);return r}return}function aa(n){var t=Zr(n);return t&&Ua(t)}function fi(n){var t=f_(n);return t&&t.symbol}function W(n){return yd(fc(n))}function fn(n){var t=na(n);return t.type||(t.type=Un(n))}function Un(n){if(!Qs(n,0))return _e;var t=Et(n);if(!Kl()&&(t=oe,ae)){var r=e.getDeclarationOfKind(n,162);xn(r,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,wa(n))}return t}function Et(n){var t=e.getDeclarationOfKind(n,162),r=e.getDeclarationOfKind(n,163);if(t&&e.isInJSFile(t)){var i=ql(t);if(i)return i}var l=aa(t);if(l)return l;var d=aa(r);return d||(t&&t.body?hh(t):(r?bh(r)||Fo(ae,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,wa(n)):(e.Debug.assert(!!t,"there must exist a getter as we are current checking either setter or getter in this function"),bh(t)||Fo(ae,t,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,wa(n))),oe))}function pr(n){var t=kc(sl(n));return t.flags&8650752?t:t.flags&2097152?e.find(t.types,function(r){return!!(r.flags&8650752)}):void 0}function Xr(n){var t=na(n),r=t;if(!t.type){var i=e.getDeclarationOfExpando(n.valueDeclaration);if(i){var l=VE(n,Zt(i));l&&(n=t=l)}r.type=t.type=ei(n)}return t.type}function ei(n){var t=n.valueDeclaration;if(n.flags&1536&&e.isShorthandAmbientModuleSymbol(n))return oe;if(t.kind===208||(t.kind===193||t.kind===194)&&t.parent.kind===208)return hu(n);if(n.flags&512&&t&&e.isSourceFile(t)&&t.commonJsModuleIndicator){var r=$a(n);if(r!==n){if(!Qs(n,0))return _e;var i=zr(n.exports.get("export=")),l=hu(i,i===r?void 0:r);return Kl()?l:An(n)}}var d=os(16,n);if(n.flags&32){var A=pr(n);return A?Zi([d,A]):d}else return a&&n.flags&16777216?xu(d):d}function ps(n){var t=na(n);return t.type||(t.type=Cm(n))}function u(n){var t=na(n);if(!t.type){var r=V(n);t.type=r.flags&111551?Jn(r):_e}return t.type}function xe(n){var t=na(n);if(!t.type){if(!Qs(n,0))return t.type=_e;var r=Ei(Jn(t.target),t.mapper);Kl()||(r=An(n)),t.type=r}return t.type}function An(n){var t=n.valueDeclaration;return e.getEffectiveTypeAnnotationNode(t)?(xn(n.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,wa(n)),_e):(ae&&(t.kind!==155||t.initializer)&&xn(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,wa(n)),oe)}function nt(n){var t=na(n);return t.type||(e.Debug.assertDefined(t.deferralParent),e.Debug.assertDefined(t.deferralConstituents),t.type=t.deferralParent.flags&1048576?Wr(t.deferralConstituents):Zi(t.deferralConstituents)),t.type}function Jn(n){return e.getCheckFlags(n)&65536?nt(n):e.getCheckFlags(n)&1?xe(n):e.getCheckFlags(n)&8192?Cw(n):n.flags&(3|4)?vt(n):n.flags&(16|8192|32|384|512)?Xr(n):n.flags&8?ps(n):n.flags&98304?fn(n):n.flags&2097152?u(n):_e}function ma(n,t){return n!==void 0&&t!==void 0&&(e.getObjectFlags(n)&4)!==0&&n.target===t}function Ta(n){return e.getObjectFlags(n)&4?n.target:n}function Ra(n,t){return r(n);function r(i){if(e.getObjectFlags(i)&(3|4)){var l=Ta(i);return l===t||e.some(Tl(l),r)}else if(i.flags&2097152)return e.some(i.types,r);return!1}}function Jo(n,t){for(var r=0,i=t;r<i.length;r++){var l=i[r];n=e.appendIfUnique(n,Fd(Zt(l)))}return n}function Pi(n,t){for(;;){if(n=n.parent,n&&e.isBinaryExpression(n)){var r=e.getAssignmentDeclarationKind(n);if(r===6||r===3){var i=Zt(n.left);i&&i.parent&&!e.findAncestor(i.parent.valueDeclaration,function(B){return n===B})&&(n=i.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 244:case 213:case 245:case 164:case 165:case 159:case 169:case 170:case 298:case 243:case 160:case 200:case 201:case 246:case 314:case 315:case 309:case 308:case 185:case 179:var l=Pi(n,t);if(n.kind===185)return e.append(l,Fd(Zt(n.typeParameter)));if(n.kind===179)return e.concatenate(l,vv(n));var d=Jo(l,e.getEffectiveTypeParameterDeclarations(n)),A=t&&(n.kind===244||n.kind===213||n.kind===245||Zc(n))&&sl(Zt(n)).thisType;return A?e.append(d,A):d}}}function To(n){var t=n.flags&32?n.valueDeclaration:e.getDeclarationOfKind(n,245);return e.Debug.assert(!!t,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Pi(t)}function Ko(n){for(var t,r=0,i=n.declarations;r<i.length;r++){var l=i[r];if(l.kind===245||l.kind===244||l.kind===213||Zc(l)||e.isTypeAlias(l)){var d=l;t=Jo(t,e.getEffectiveTypeParameterDeclarations(d))}}return t}function El(n){return e.concatenate(To(n),Ko(n))}function Rl(n){var t=oi(n,1);if(t.length===1){var r=t[0];return!r.typeParameters&&r.parameters.length===1&&I(r)&&jm(gp(r.parameters[0]))===oe}return!1}function wc(n){if(oi(n,1).length>0)return!0;if(n.flags&8650752){var t=cl(n);return!!t&&Rl(t)}return!1}function Ac(n){return e.getEffectiveBaseTypeNode(n.symbol.valueDeclaration)}function ns(n,t,r){var i=e.length(t),l=e.isInJSFile(r);return e.filter(oi(n,1),function(d){return(l||i>=_u(d.typeParameters))&&i<=e.length(d.typeParameters)})}function Mu(n,t,r){var i=ns(n,t,r),l=e.map(t,Ua);return e.sameMap(i,function(d){return e.some(d.typeParameters)?Vp(d,l,e.isInJSFile(r)):d})}function kc(n){if(!n.resolvedBaseConstructorType){var t=n.symbol.valueDeclaration,r=e.getEffectiveBaseTypeNode(t),i=Ac(n);if(!i)return n.resolvedBaseConstructorType=un;if(!Qs(n,1))return _e;var l=Na(i.expression);if(r&&i!==r&&(e.Debug.assert(!r.typeArguments),Na(r.expression)),l.flags&(524288|2097152)&&dc(l),!Kl())return xn(n.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,wa(n.symbol)),n.resolvedBaseConstructorType=_e;if(!(l.flags&1)&&l!==ut&&!wc(l)){var d=xn(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,qt(l));if(l.flags&262144){var A=jp(l),B=dn;if(A){var Ae=oi(A,1);Ae[0]&&(B=Fi(Ae[0]))}e.addRelatedInfo(d,e.createDiagnosticForNode(l.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,wa(l.symbol),qt(B)))}return n.resolvedBaseConstructorType=_e}n.resolvedBaseConstructorType=l}return n.resolvedBaseConstructorType}function Tl(n){return n.resolvedBaseTypes||(n.objectFlags&8?n.resolvedBaseTypes=[Is(Wr(n.typeParameters||e.emptyArray),n.readonly)]:n.symbol.flags&(32|64)?(n.symbol.flags&32&&jf(n),n.symbol.flags&64&&Gh(n)):e.Debug.fail("type must be class or interface")),n.resolvedBaseTypes}function jf(n){n.resolvedBaseTypes=e.resolvingEmptyArray;var t=us(kc(n));if(!(t.flags&(524288|2097152|1)))return n.resolvedBaseTypes=e.emptyArray;var r=Ac(n),i,l=t.symbol?ho(t.symbol):void 0;if(t.symbol&&t.symbol.flags&32&&Sm(l))i=H_(r,t.symbol);else if(t.flags&1)i=t;else{var d=Mu(t,r.typeArguments,r);if(!d.length)return xn(r.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=e.emptyArray;i=Fi(d[0])}return i===_e?n.resolvedBaseTypes=e.emptyArray:pf(i)?n===i||Ra(i,n)?(xn(n.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,qt(n,void 0,2)),n.resolvedBaseTypes=e.emptyArray):(n.resolvedBaseTypes===e.resolvingEmptyArray&&(n.members=void 0),n.resolvedBaseTypes=[i]):(xn(r.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,qt(i)),n.resolvedBaseTypes=e.emptyArray)}function Sm(n){var t=n.outerTypeParameters;if(t){var r=t.length-1,i=go(n);return t[r].symbol!==i[r].symbol}return!0}function pf(n){if(n.flags&262144){var t=cl(n);if(t)return pf(t)}return!!(n.flags&(524288|67108864|1))&&!Fl(n)||!!(n.flags&2097152)&&e.every(n.types,pf)}function Gh(n){n.resolvedBaseTypes=n.resolvedBaseTypes||e.emptyArray;for(var t=0,r=n.symbol.declarations;t<r.length;t++){var i=r[t];if(i.kind===245&&e.getInterfaceBaseTypeNodes(i))for(var l=0,d=e.getInterfaceBaseTypeNodes(i);l<d.length;l++){var A=d[l],B=Ua(A);B!==_e&&(pf(B)?n!==B&&!Ra(B,n)?n.resolvedBaseTypes===e.emptyArray?n.resolvedBaseTypes=[B]:n.resolvedBaseTypes.push(B):xn(i,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,qt(n,void 0,2)):xn(A,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function xm(n){for(var t=0,r=n.declarations;t<r.length;t++){var i=r[t];if(i.kind===245){if(i.flags&128)return!1;var l=e.getInterfaceBaseTypeNodes(i);if(l)for(var d=0,A=l;d<A.length;d++){var B=A[d];if(e.isEntityNameExpression(B.expression)){var Ae=kt(B.expression,788968,!0);if(!Ae||!(Ae.flags&64)||sl(Ae).thisType)return!1}}}}return!0}function sl(n){var t=na(n),r=t;if(!t.declaredType){var i=n.flags&32?1:2,l=VE(n,Y2(n.valueDeclaration));l&&(n=t=l);var d=r.declaredType=t.declaredType=os(i,n),A=To(n),B=Ko(n);(A||B||i===1||!xm(n))&&(d.objectFlags|=4,d.typeParameters=e.concatenate(A,B),d.outerTypeParameters=A,d.localTypeParameters=B,d.instantiations=e.createMap(),d.instantiations.set(vu(d.typeParameters),d),d.target=d,d.resolvedTypeArguments=d.typeParameters,d.thisType=il(n),d.thisType.isThisType=!0,d.thisType.constraint=d)}return t.declaredType}function wm(n){var t=na(n);if(!t.declaredType){if(!Qs(n,2))return _e;var r=e.find(n.declarations,e.isTypeAlias);if(!r)return e.Debug.fail("Type alias symbol with no valid declaration found");var i=e.isJSDocTypeAlias(r)?r.typeExpression:r.type,l=i?Ua(i):_e;if(Kl()){var d=Ko(n);d&&(t.typeParameters=d,t.instantiations=e.createMap(),t.instantiations.set(vu(d),l))}else l=_e,xn(e.isJSDocEnumTag(r)?r:r.name||r,e.Diagnostics.Type_alias_0_circularly_references_itself,wa(n));t.declaredType=l}return t.declaredType}function Mp(n){return e.isStringLiteralLike(n)?!0:n.kind===208?Mp(n.left)&&Mp(n.right):!1}function Am(n){var t=n.initializer;if(!t)return!(n.flags&8388608);switch(t.kind){case 10:case 8:case 14:return!0;case 206:return t.operator===40&&t.operand.kind===8;case 75:return e.nodeIsMissing(t)||!!Zt(n.parent).exports.get(t.escapedText);case 208:return Mp(t);default:return!1}}function Wf(n){var t=na(n);if(t.enumKind!==void 0)return t.enumKind;for(var r=!1,i=0,l=n.declarations;i<l.length;i++){var d=l[i];if(d.kind===247)for(var A=0,B=d.members;A<B.length;A++){var Ae=B[A];if(Ae.initializer&&e.isStringLiteralLike(Ae.initializer))return t.enumKind=1;Am(Ae)||(r=!0)}}return t.enumKind=r?0:1}function Hf(n){return n.flags&1024&&!(n.flags&1048576)?ho(Ps(n.symbol)):n}function km(n){var t=na(n);if(t.declaredType)return t.declaredType;if(Wf(n)===1){ue++;for(var r=[],i=0,l=n.declarations;i<l.length;i++){var d=l[i];if(d.kind===247)for(var A=0,B=d.members;A<B.length;A++){var Ae=B[A],We=Ph(Ae),Ye=Zd(rs(We!==void 0?We:0,ue,Zt(Ae)));na(Zt(Ae)).declaredType=Ye,r.push(js(Ye))}}if(r.length){var tn=Wr(r,1,n,void 0);return tn.flags&1048576&&(tn.flags|=1024,tn.symbol=n),t.declaredType=tn}}var bn=ya(32);return bn.symbol=n,t.declaredType=bn}function Cm(n){var t=na(n);if(!t.declaredType){var r=km(Ps(n));t.declaredType||(t.declaredType=r)}return t.declaredType}function Fd(n){var t=na(n);return t.declaredType||(t.declaredType=il(n))}function Rp(n){var t=na(n);return t.declaredType||(t.declaredType=ho(V(n)))}function ho(n){return Fp(n)||_e}function Fp(n){return n.flags&(32|64)?sl(n):n.flags&524288?wm(n):n.flags&262144?Fd(n):n.flags&384?km(n):n.flags&8?Cm(n):n.flags&2097152?Rp(n):void 0}function mf(n){switch(n.kind){case 124:case 147:case 142:case 139:case 150:case 127:case 143:case 140:case 109:case 145:case 99:case 136:case 186:return!0;case 173:return mf(n.elementType);case 168:return!n.typeArguments||n.typeArguments.every(mf)}return!1}function Bh(n){var t=e.getEffectiveConstraintOfTypeParameter(n);return!t||mf(t)}function Kf(n){var t=e.getEffectiveTypeAnnotationNode(n);return t?mf(t):!e.hasInitializer(n)}function Vh(n){var t=e.getEffectiveReturnTypeNode(n),r=e.getEffectiveTypeParameterDeclarations(n);return(n.kind===161||!!t&&mf(t))&&n.parameters.every(Kf)&&r.every(Bh)}function Uh(n){if(n.declarations&&n.declarations.length===1){var t=n.declarations[0];if(t)switch(t.kind){case 158:case 157:return Kf(t);case 160:case 159:case 161:case 162:case 163:return Vh(t)}}return!1}function Gd(n,t,r){for(var i=e.createSymbolTable(),l=0,d=n;l<d.length;l++){var A=d[l];i.set(A.escapedName,r&&Uh(A)?A:bg(A,t))}return i}function Dm(n,t){for(var r=0,i=t;r<i.length;r++){var l=i[r];n.has(l.escapedName)||n.set(l.escapedName,l)}}function Ru(n){if(!n.declaredProperties){var t=n.symbol,r=gu(t);n.declaredProperties=Es(r),n.declaredCallSignatures=e.emptyArray,n.declaredConstructSignatures=e.emptyArray,n.declaredCallSignatures=Xd(r.get("__call")),n.declaredConstructSignatures=Xd(r.get("__new")),n.declaredStringIndexInfo=Up(t,0),n.declaredNumberIndexInfo=Up(t,1)}return n}function nr(n){return!!(n.flags&8576)}function ea(n){if(!e.isComputedPropertyName(n)&&!e.isElementAccessExpression(n))return!1;var t=e.isComputedPropertyName(n)?n.expression:n.argumentExpression;return e.isEntityNameExpression(t)&&nr(e.isComputedPropertyName(n)?Ku(n):as(t))}function jr(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function Va(n){var t=e.getNameOfDeclaration(n);return!!t&&ea(t)}function Ya(n){return e.hasDynamicName(n)&&!Va(n)}function ro(n){return e.isDynamicName(n)&&!ea(n)}function Oo(n){return n.flags&8192?n.escapedName:n.flags&(128|256)?e.escapeLeadingUnderscores(""+n.value):e.Debug.fail()}function Us(n,t,r){e.Debug.assert(!!(e.getCheckFlags(n)&4096),"Expected a late-bound symbol."),n.flags|=r,na(t.symbol).lateSymbol=n,n.declarations?n.declarations.push(t):n.declarations=[t],r&111551&&((!n.valueDeclaration||n.valueDeclaration.kind!==t.kind)&&(n.valueDeclaration=t))}function Sl(n,t,r,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var l=Lr(i);if(!l.resolvedSymbol){l.resolvedSymbol=i.symbol;var d=e.isBinaryExpression(i)?i.left:i.name,A=e.isElementAccessExpression(d)?as(d.argumentExpression):Ku(d);if(nr(A)){var B=Oo(A),Ae=i.symbol.flags,We=r.get(B);We||r.set(B,We=Ga(0,B,4096));var Ye=t&&t.get(B);if(We.flags&me(Ae)||Ye){var tn=Ye?e.concatenate(Ye.declarations,We.declarations):We.declarations,bn=!(A.flags&8192)&&e.unescapeLeadingUnderscores(B)||e.declarationNameToString(d);e.forEach(tn,function(Mn){return xn(e.getNameOfDeclaration(Mn)||Mn,e.Diagnostics.Property_0_was_also_declared_here,bn)}),xn(d||i,e.Diagnostics.Duplicate_property_0,bn),We=Ga(0,B,4096)}return We.nameType=A,Us(We,i,Ae),We.parent?e.Debug.assert(We.parent===n,"Existing symbol parent should match new one"):We.parent=n,l.resolvedSymbol=We}}return l.resolvedSymbol}function gd(n,t){var r=na(n);if(!r[t]){var i=t==="resolvedExports",l=i?n.flags&1536?Ls(n):n.exports:n.members;r[t]=l||He;for(var d=e.createSymbolTable(),A=0,B=n.declarations;A<B.length;A++){var Ae=B[A],We=e.getMembersOfDeclaration(Ae);if(We)for(var Ye=0,tn=We;Ye<tn.length;Ye++){var bn=tn[Ye];i===e.hasStaticModifier(bn)&&Va(bn)&&Sl(n,l,d,bn)}}var Mn=n.assignmentDeclarationMembers;if(Mn)for(var it=e.arrayFrom(Mn.values()),_t=0,St=it;_t<St.length;_t++){var bn=St[_t],Yt=e.getAssignmentDeclarationKind(bn),mr=Yt===3||Yt===4||Yt===9||Yt===6;i===!mr&&Va(bn)&&Sl(n,l,d,bn)}r[t]=ii(l,d)||He}return r[t]}function gu(n){return n.flags&6256?gd(n,"resolvedMembers"):n.members||He}function hf(n){if(n.flags&106500&&n.escapedName==="__computed"){var t=na(n);if(!t.lateSymbol&&e.some(n.declarations,Va)){var r=zr(n.parent);e.some(n.declarations,e.hasStaticModifier)?ti(r):gu(r)}return t.lateSymbol||(t.lateSymbol=n)}return n}function Jl(n,t,r){if(e.getObjectFlags(n)&4){var i=n.target,l=go(n);if(e.length(i.typeParameters)===e.length(l)){var d=bu(i,e.concatenate(l,[t||i.thisType]));return r?us(d):d}}else if(n.flags&2097152)return Zi(e.map(n.types,function(A){return Jl(A,t,r)}));return r?us(n):n}function y_(n,t,r,i){var l,d,A,B,Ae,We;e.rangeEquals(r,i,0,r.length)?(l=ve,d=t.symbol?gu(t.symbol):e.createSymbolTable(t.declaredProperties),A=t.declaredCallSignatures,B=t.declaredConstructSignatures,Ae=t.declaredStringIndexInfo,We=t.declaredNumberIndexInfo):(l=wl(r,i),d=Gd(t.declaredProperties,l,r.length===1),A=Gm(t.declaredCallSignatures,l),B=Gm(t.declaredConstructSignatures,l),Ae=Bm(t.declaredStringIndexInfo,l),We=Bm(t.declaredNumberIndexInfo,l));var Ye=Tl(t);if(Ye.length){t.symbol&&d===gu(t.symbol)&&(d=e.createSymbolTable(t.declaredProperties)),mo(n,d,A,B,Ae,We);for(var tn=e.lastOrUndefined(i),bn=0,Mn=Ye;bn<Mn.length;bn++){var it=Mn[bn],_t=tn?Jl(Ei(it,l),tn):it;Dm(d,io(_t)),A=e.concatenate(A,oi(_t,0)),B=e.concatenate(B,oi(_t,1)),Ae||(Ae=_t===oe?dl(oe,!1):Xi(_t,0)),We=We||Xi(_t,1)}}mo(n,d,A,B,Ae,We)}function RS(n){y_(n,Ru(n),e.emptyArray,e.emptyArray)}function FS(n){var t=Ru(n.target),r=e.concatenate(t.typeParameters,[t.thisType]),i=go(n),l=i.length===r.length?i:e.concatenate(i,[n]);y_(n,t,r,l)}function Kc(n,t,r,i,l,d,A,B){var Ae=new S(c,B);return Ae.declaration=n,Ae.typeParameters=t,Ae.parameters=i,Ae.thisParameter=r,Ae.resolvedReturnType=l,Ae.resolvedTypePredicate=d,Ae.minArgumentCount=A,Ae.target=void 0,Ae.mapper=void 0,Ae}function qf(n){var t=Kc(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&3);return t.target=n.target,t.mapper=n.mapper,t}function __(n,t){var r=qf(n);return r.unionSignatures=t,r.target=void 0,r.mapper=void 0,r}function GS(n,t){if((n.flags&12)===t)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});var r=t===4?"inner":"outer";return n.optionalCallSignatureCache[r]||(n.optionalCallSignatureCache[r]=BS(n,t))}function BS(n,t){e.Debug.assert(t===4||t===8,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var r=qf(n);return r.flags|=t,r}function v_(n){if(I(n)){var t=n.parameters.length-1,r=n.parameters[t],i=Jn(r);if(Do(i)){var l=go(i),d=i.target.minLength,A=i.target.hasRestElement?l.length-1:-1,B=e.map(l,function(Ae,We){var Ye=Nf(n,t+We),tn=We===A?32768:We>=d?16384:0,bn=Ga(1,Ye,tn);return bn.type=We===A?Is(Ae):Ae,bn});return e.concatenate(n.parameters.slice(0,t),B)}}return n.parameters}function VS(n){var t=kc(n),r=oi(t,1);if(r.length===0)return[Kc(void 0,n.localTypeParameters,void 0,e.emptyArray,n,void 0,0,0)];for(var i=Ac(n),l=e.isInJSFile(i),d=ug(i),A=e.length(d),B=[],Ae=0,We=r;Ae<We.length;Ae++){var Ye=We[Ae],tn=_u(Ye.typeParameters),bn=e.length(Ye.typeParameters);if(l||A>=tn&&A<=bn){var Mn=bn?Nm(Ye,Bd(d,Ye.typeParameters,tn,l)):qf(Ye);Mn.typeParameters=n.localTypeParameters,Mn.resolvedReturnType=n,B.push(Mn)}}return B}function jh(n,t,r,i,l){for(var d=0,A=n;d<A.length;d++){var B=A[d];if(Yp(B,t,r,i,l,r?Px:tp))return B}}function US(n,t,r){if(t.typeParameters){if(r>0)return;for(var i=1;i<n.length;i++)if(!jh(n[i],t,!1,!1,!1))return;return[t]}for(var l,i=0;i<n.length;i++){var d=i===r?t:jh(n[i],t,!0,!1,!0);if(!d)return;l=e.appendIfUnique(l,d)}return l}function Wh(n){for(var t,r,i=0;i<n.length;i++){if(n[i].length===0)return e.emptyArray;n[i].length>1&&(r=r===void 0?i:-1);for(var l=0,d=n[i];l<d.length;l++){var A=d[l];if(!t||!jh(t,A,!1,!1,!0)){var B=US(n,A,i);if(B){var Ae=A;if(B.length>1){var We=A.thisParameter,Ye=e.forEach(B,function(or){return or.thisParameter});if(Ye){var tn=Zi(e.mapDefined(B,function(or){return or.thisParameter&&Jn(or.thisParameter)}));We=vf(Ye,tn)}Ae=__(A,B),Ae.thisParameter=We}(t||(t=[])).push(Ae)}}}}if(!e.length(t)&&r!==-1){for(var bn=n[r!==void 0?r:0],Mn=bn.slice(),it=function(or){if(or!==bn){var br=or[0];if(e.Debug.assert(!!br,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),Mn=br.typeParameters&&e.some(Mn,function(ta){return!!ta.typeParameters})?void 0:e.map(Mn,function(ta){return HS(ta,br)}),!Mn)return"break"}},_t=0,St=n;_t<St.length;_t++){var Yt=St[_t],mr=it(Yt);if(mr==="break")break}t=Mn}return t||e.emptyArray}function jS(n,t){if(!n||!t)return n||t;var r=Zi([Jn(n),Jn(t)]);return vf(n,r)}function WS(n,t){for(var r=Vl(n),i=Vl(t),l=r>=i?n:t,d=l===n?t:n,A=l===n?r:i,B=qu(n)||qu(t),Ae=B&&!qu(l),We=new Array(A+(Ae?1:0)),Ye=0;Ye<A;Ye++){var tn=cm(l,Ye),bn=cm(d,Ye)||dn,Mn=Zi([tn,bn]),it=B&&!Ae&&Ye===A-1,_t=Ye>=wu(l)&&Ye>=wu(d),St=Ye>=r?void 0:Nf(n,Ye),Yt=Ye>=i?void 0:Nf(t,Ye),mr=St===Yt?St:St?Yt?void 0:St:Yt,or=Ga(1|(_t&&!it?16777216:0),mr||"arg"+Ye);or.type=it?Is(Mn):Mn,We[Ye]=or}if(Ae){var br=Ga(1,"args");br.type=Is(Zs(d,A)),We[A]=br}return We}function HS(n,t){var r=n.declaration,i=WS(n,t),l=jS(n.thisParameter,t.thisParameter),d=Math.max(n.minArgumentCount,t.minArgumentCount),A=Kc(r,n.typeParameters||t.typeParameters,l,i,void 0,void 0,d,(n.flags|t.flags)&3);return A.unionSignatures=e.concatenate(n.unionSignatures||[n],[t]),A}function b_(n,t){for(var r=[],i=!1,l=0,d=n;l<d.length;l++){var A=d[l],B=Xi(A,t);if(!B)return;r.push(B.type),i=i||B.isReadonly}return dl(Wr(r,2),i)}function KS(n){var t=Wh(e.map(n.types,function(d){return d===Ri?[xi]:oi(d,0)})),r=Wh(e.map(n.types,function(d){return oi(d,1)})),i=b_(n.types,0),l=b_(n.types,1);mo(n,He,t,r,i,l)}function Jf(n,t){return n?t?Zi([n,t]):n:t}function E_(n,t){return n?t?dl(Zi([n.type,t.type]),n.isReadonly&&t.isReadonly):n:t}function T_(n,t){return n&&t&&dl(Wr([n.type,t.type]),n.isReadonly||t.isReadonly)}function S_(n){var t=e.countWhere(n,function(l){return oi(l,1).length>0}),r=e.map(n,Rl);if(t>0&&t===e.countWhere(r,function(l){return l})){var i=r.indexOf(!0);r[i]=!1}return r}function qS(n,t,r,i){for(var l=[],d=0;d<t.length;d++)d===i?l.push(n):r[d]&&l.push(Fi(oi(t[d],1)[0]));return Zi(l)}function JS(n){for(var t,r,i,l,d=n.types,A=S_(d),B=e.countWhere(A,function(Ye){return Ye}),Ae=function(Ye){var tn=n.types[Ye];if(!A[Ye]){var bn=oi(tn,1);bn.length&&B>0&&(bn=e.map(bn,function(Mn){var it=qf(Mn);return it.resolvedReturnType=qS(Fi(Mn),d,A,Ye),it})),r=x_(r,bn)}t=x_(t,oi(tn,0)),i=E_(i,Xi(tn,0)),l=E_(l,Xi(tn,1))},We=0;We<d.length;We++)Ae(We);mo(n,He,t||e.emptyArray,r||e.emptyArray,i,l)}function x_(n,t){for(var r=function(A){(!n||e.every(n,function(B){return!Yp(B,A,!1,!1,!1,tp)}))&&(n=e.append(n,A))},i=0,l=t;i<l.length;i++){var d=l[i];r(d)}return n}function zS(n){var t=zr(n.symbol);if(n.target){mo(n,He,e.emptyArray,e.emptyArray,void 0,void 0);var r=Gd(yu(n.target),n.mapper,!1),i=Gm(oi(n.target,0),n.mapper),l=Gm(oi(n.target,1),n.mapper),d=Bm(Xi(n.target,0),n.mapper),A=Bm(Xi(n.target,1),n.mapper);mo(n,r,i,l,d,A)}else if(t.flags&2048){mo(n,He,e.emptyArray,e.emptyArray,void 0,void 0);var r=gu(t),i=Xd(r.get("__call")),l=Xd(r.get("__new")),d=Up(t,0),A=Up(t,1);mo(n,r,i,l,d,A)}else{var r=He,d=void 0;if(t.exports&&(r=ti(t),t===ln)){var B=e.createMap();r.forEach(function(it){it.flags&418||B.set(it.escapedName,it)}),r=B}if(mo(n,r,e.emptyArray,e.emptyArray,void 0,void 0),t.flags&32){var Ae=sl(t),We=kc(Ae);We.flags&(524288|2097152|8650752)?(r=e.createSymbolTable(Es(r)),Dm(r,io(We))):We===oe&&(d=dl(oe,!1))}var A=t.flags&384&&(ho(t).flags&32||e.some(n.properties,function(it){return!!(Jn(it).flags&296)}))?Ja:void 0;if(mo(n,r,e.emptyArray,e.emptyArray,d,A),t.flags&(16|8192)&&(n.callSignatures=Xd(t)),t.flags&32){var Ye=sl(t),l=t.members?Xd(t.members.get("__constructor")):e.emptyArray;t.flags&16&&(l=e.addRange(l.slice(),e.mapDefined(n.callSignatures,function(_t){return Zc(_t.declaration)?Kc(_t.declaration,_t.typeParameters,_t.thisParameter,_t.parameters,Ye,void 0,_t.minArgumentCount,_t.flags&3):void 0}))),l.length||(l=VS(Ye)),n.constructSignatures=l}}}function XS(n){for(var t=Xi(n.source,0),r=Jc(n.mappedType),i=!(r&1),l=r&4?0:16777216,d=t&&dl(zm(t.type,n.mappedType,n.constraintType),i&&t.isReadonly),A=e.createSymbolTable(),B=0,Ae=io(n.source);B<Ae.length;B++){var We=Ae[B],Ye=8192|(i&&$c(We)?8:0),tn=Ga(4|We.flags&l,We.escapedName,Ye);tn.declarations=We.declarations,tn.nameType=We.nameType,tn.propertyType=Jn(We),tn.mappedType=n.mappedType,tn.constraintType=n.constraintType,A.set(We.escapedName,tn)}mo(n,A,e.emptyArray,e.emptyArray,d,void 0)}function Lm(n){if(n.flags&(1|131068))return n;if(n.flags&4194304)return zc(us(n.type));if(n.flags&16777216){if(n.root.isDistributive){var t=n.checkType,r=Lm(t);if(r!==t){var i=_f(n.root.checkType,r);return xg(n,Eu(i,n.mapper))}}return n}return n.flags&1048576?Wr(e.sameMap(n.types,Lm)):n.flags&2097152?Zi(e.sameMap(n.types,Lm)):Dt}function YS(n){var t=e.createSymbolTable(),r,i;mo(n,He,e.emptyArray,e.emptyArray,void 0,void 0);var l=Fu(n),d=uc(n),A=qc(n.target||n),B=us(Kh(n)),Ae=Jc(n),We=Le?128:8576;if(Hh(n)){for(var Ye=0,tn=io(B);Ye<tn.length;Ye++){var bn=tn[Ye];Mn(Mm(bn,We))}(B.flags&1||Xi(B,0))&&Mn(ct),!Le&&Xi(B,1)&&Mn(ot)}else of(Lm(d),Mn);mo(n,t,e.emptyArray,e.emptyArray,r,i);function Mn(it){var _t=Eu(n.mapper,wl([l],[it])),St=Ei(A,_t);if(nr(it)){var Yt=Oo(it),mr=Ji(B,Yt),or=!!(Ae&4||!(Ae&8)&&mr&&mr.flags&16777216),br=!!(Ae&1||!(Ae&2)&&mr&&$c(mr)),ta=Ga(4|(or?16777216:0),Yt,br?8:0);ta.type=a&&or&&!Wi(un,St)?xu(St):a&&!or&&mr&&mr.flags&16777216?hs(St,524288):St,mr&&(ta.syntheticOrigin=mr,ta.declarations=mr.declarations),ta.nameType=it,t.set(Yt,ta)}else it.flags&(1|4)?r=dl(St,!!(Ae&1)):it.flags&(8|32)&&(i=dl(i?Wr([i.type,St]):St,!!(Ae&1)))}}function Fu(n){return n.typeParameter||(n.typeParameter=Fd(Zt(n.declaration.typeParameter)))}function uc(n){return n.constraintType||(n.constraintType=ll(Fu(n))||_e)}function qc(n){return n.templateType||(n.templateType=n.declaration.type?Ei(ol(Ua(n.declaration.type),!!(Jc(n)&4)),n.mapper||ve):_e)}function w_(n){return e.getEffectiveConstraintOfTypeParameter(n.declaration.typeParameter)}function Hh(n){var t=w_(n);return t.kind===183&&t.operator===133}function Kh(n){if(!n.modifiersType)if(Hh(n))n.modifiersType=Ei(Ua(w_(n).type),n.mapper||ve);else{var t=hg(n.declaration),r=uc(t),i=r&&r.flags&262144?ll(r):r;n.modifiersType=i&&i.flags&4194304?Ei(i.type,n.mapper||ve):dn}return n.modifiersType}function Jc(n){var t=n.declaration;return(t.readonlyToken?t.readonlyToken.kind===40?2:1:0)|(t.questionToken?t.questionToken.kind===40?8:4:0)}function A_(n){var t=Jc(n);return t&8?-1:t&4?1:0}function qh(n){var t=A_(n),r=Kh(n);return t||(Fl(r)?A_(r):0)}function QS(n){return!!(e.getObjectFlags(n)&32&&Jc(n)&4)}function Fl(n){return!!(e.getObjectFlags(n)&32)&&qp(uc(n))}function dc(n){return n.members||(n.flags&524288?n.objectFlags&4?FS(n):n.objectFlags&3?RS(n):n.objectFlags&2048?XS(n):n.objectFlags&16?zS(n):n.objectFlags&32&&YS(n):n.flags&1048576?KS(n):n.flags&2097152&&JS(n)),n}function yu(n){return n.flags&524288?dc(n).properties:e.emptyArray}function td(n,t){if(n.flags&524288){var r=dc(n),i=r.members.get(t);if(i&&cr(i))return i}}function ZS(n){if(!n.resolvedProperties){for(var t=e.createSymbolTable(),r=0,i=n.types;r<i.length;r++){for(var l=i[r],d=0,A=io(l);d<A.length;d++){var B=A[d];if(!t.has(B.escapedName)){var Ae=N_(n,B.escapedName);Ae&&t.set(B.escapedName,Ae)}}if(n.flags&1048576)break}n.resolvedProperties=Es(t)}return n.resolvedProperties}function k_(n){if(n.possiblePropertyCache)return n.possiblePropertyCache.size?e.arrayFrom(n.possiblePropertyCache.values()):e.emptyArray;n.possiblePropertyCache=e.createSymbolTable();for(var t=0,r=n.types;t<r.length;t++)for(var i=r[t],l=0,d=io(i);l<d.length;l++){var A=d[l];if(!n.possiblePropertyCache.has(A.escapedName)){var B=Zh(n,A.escapedName);B&&n.possiblePropertyCache.set(A.escapedName,B)}}return n.possiblePropertyCache.size?e.arrayFrom(n.possiblePropertyCache.values()):e.emptyArray}function io(n){return n=us(n),n.flags&3145728?ZS(n):yu(n)}function $S(n,t){var r=t.properties;return r.some(function(i){var l=i.name&&vd(i.name),d=l&&nr(l)?Oo(l):void 0,A=d===void 0?void 0:Zo(n,d);return!!A&&op(A)&&!Wi(Gf(i),A)})}function e1(n){var t=Wr(n);if(!(t.flags&1048576))return i_(t);for(var r=e.createSymbolTable(),i=0,l=n;i<l.length;i++)for(var d=l[i],A=0,B=i_(d);A<B.length;A++){var Ae=B[A].escapedName;if(!r.has(Ae)){var We=I_(t,Ae);We&&r.set(Ae,We)}}return e.arrayFrom(r.values())}function zf(n){return n.flags&262144?ll(n):n.flags&8388608?n1(n):n.flags&16777216?r1(n):cl(n)}function ll(n){return Xh(n)?jp(n):void 0}function n1(n){return Xh(n)?t1(n):void 0}function Jh(n){var t=Cc(n,!1);return t!==n?t:zf(n)}function t1(n){var t=Jh(n.indexType);if(t&&t!==n.indexType){var r=bd(n.objectType,t);if(r)return r}var i=Jh(n.objectType);return i&&i!==n.objectType?bd(i,n.indexType):void 0}function zh(n){if(!n.resolvedDefaultConstraint){var t=mx(n),r=id(n);n.resolvedDefaultConstraint=Bi(t)?r:Bi(r)?t:Wr([t,r])}return n.resolvedDefaultConstraint}function C_(n){if(n.root.isDistributive&&n.restrictiveInstantiation!==n){var t=Cc(n.checkType,!1),r=t===n.checkType?zf(t):t;if(r&&r!==n.checkType){var i=_f(n.root.checkType,r),l=xg(n,Eu(i,n.mapper));if(!(l.flags&131072))return l}}return}function D_(n){return C_(n)||zh(n)}function r1(n){return Xh(n)?D_(n):void 0}function a1(n,t){for(var r,i=!1,l=0,d=n;l<d.length;l++){var A=d[l];if(A.flags&63176704){for(var B=zf(A);B&&B.flags&(262144|4194304|16777216);)B=zf(B);B&&(r=e.append(r,B),t&&(r=e.append(r,A)))}else A.flags&67238908&&(i=!0)}if(r&&(t||i)){if(i)for(var Ae=0,We=n;Ae<We.length;Ae++){var A=We[Ae];A.flags&67238908&&(r=e.append(r,A))}return Zi(r)}return}function cl(n){if(n.flags&(58982400|3145728)){var t=Yh(n);return t!==Ke&&t!==Pn?t:void 0}return n.flags&4194304?va:void 0}function L_(n){return cl(n)||n}function Xh(n){return Yh(n)!==Pn}function Yh(n){var t=!1;return n.resolvedBaseConstraint||(n.resolvedBaseConstraint=Jl(r(n),n));function r(d){if(!d.immediateBaseConstraint){if(!Qs(d,4))return Pn;if(Re>=50)return xn(we,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),t=!0,d.immediateBaseConstraint=Ke;Re++;var A=l(Cc(d,!1));if(Re--,!Kl()){if(d.flags&262144){var B=j_(d);if(B){var Ae=xn(B,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,qt(d));we&&!e.isNodeDescendantOf(B,we)&&!e.isNodeDescendantOf(we,B)&&e.addRelatedInfo(Ae,e.createDiagnosticForNode(we,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}A=Pn}t&&(A=Pn),d.immediateBaseConstraint=A||Ke}return d.immediateBaseConstraint}function i(d){var A=r(d);return A!==Ke&&A!==Pn?A:void 0}function l(d){if(d.flags&262144){var A=jp(d);return d.isThisType||!A?A:i(A)}if(d.flags&3145728){for(var B=d.types,Ae=[],We=0,Ye=B;We<Ye.length;We++){var tn=Ye[We],bn=i(tn);bn&&Ae.push(bn)}return d.flags&1048576&&Ae.length===B.length?Wr(Ae):d.flags&2097152&&Ae.length?Zi(Ae):void 0}if(d.flags&4194304)return va;if(d.flags&8388608){var Mn=i(d.objectType),it=i(d.indexType),_t=Mn&&it&&bd(Mn,it);return _t&&i(_t)}if(d.flags&16777216){var A=D_(d);Re++;var St=A&&i(A);return Re--,St}return d.flags&33554432?i(d.substitute):d}}function i1(n){return n.resolvedApparentType||(n.resolvedApparentType=Jl(n,n,!0))}function Qh(n){if(n.default)n.default===$n&&(n.default=Pn);else if(n.target){var t=Qh(n.target);n.default=t?Ei(t,n.mapper):Ke}else{n.default=$n;var r=n.symbol&&e.forEach(n.symbol.declarations,function(l){return e.isTypeParameterDeclaration(l)&&l.default}),i=r?Ua(r):Ke;n.default===$n&&(n.default=i)}return n.default}function zd(n){var t=Qh(n);return t!==Ke&&t!==Pn?t:void 0}function o1(n){return Qh(n)!==Pn}function s1(n){return!!(n.symbol&&e.forEach(n.symbol.declarations,function(t){return e.isTypeParameterDeclaration(t)&&t.default}))}function l1(n){return n.resolvedApparentType||(n.resolvedApparentType=c1(n))}function c1(n){var t=Tg(n);if(t){var r=ll(t);if(r&&(Ms(r)||Do(r))){var i=_f(t,r);return Ei(n,Eu(i,n.mapper))}}return n}function us(n){var t=n.flags&63176704?cl(n)||dn:n;return e.getObjectFlags(t)&32?l1(t):t.flags&2097152?i1(t):t.flags&132?_a:t.flags&296?La:t.flags&2112?U1(w>=99):t.flags&528?qr:t.flags&12288?$_(w>=2):t.flags&67108864?Wn:t.flags&4194304?va:t.flags&2&&!a?Wn:t}function I_(n,t){for(var r=e.createMap(),i,l=n.flags&1048576,d=l?24:0,A=l?0:16777216,B=4,Ae=0,We=0,Ye=n.types;We<Ye.length;We++){var tn=Ye[We],bn=us(tn);if(bn!==_e){var Mn=Ji(bn,t),it=Mn?e.getDeclarationModifierFlagsFromSymbol(Mn):0;if(Mn&&!(it&d)){l?A|=Mn.flags&16777216:A&=Mn.flags;var _t=""+se(Mn);r.has(_t)||r.set(_t,Mn),Ae|=($c(Mn)?8:0)|(it&24?0:256)|(it&16?512:0)|(it&8?1024:0)|(it&32?2048:0),_y(Mn)||(B=2)}else if(l){var St=!jr(t)&&(Cl(t)&&Xi(bn,1)||Xi(bn,0));St?(Ae|=32|(St.isReadonly?8:0),i=e.append(i,Do(bn)?ju(bn)||un:St.type)):wd(bn)?(Ae|=32,i=e.append(i,un)):Ae|=16}}}if(!r.size)return;var Yt=e.arrayFrom(r.values());if(Yt.length===1&&!(Ae&16)&&!i)return Yt[0];for(var mr,or,br,ta=[],Ur,ja=!1,$i=0,Sa=Yt;$i<Sa.length;$i++){var Mn=Sa[$i];Ur?Mn.valueDeclaration!==Ur&&(ja=!0):Ur=Mn.valueDeclaration,mr=e.addRange(mr,Mn.declarations);var bn=Jn(Mn);or?bn!==or&&(Ae|=64):(or=bn,br=Mn.nameType),op(bn)&&(Ae|=128),ta.push(bn)}e.addRange(ta,i);var ka=Ga(4|A,t,B|Ae);return ka.containingType=n,!ja&&Ur&&(ka.valueDeclaration=Ur,Ur.symbol.parent&&(ka.parent=Ur.symbol.parent)),ka.declarations=mr,ka.nameType=br,ta.length>2?(ka.checkFlags|=65536,ka.deferralParent=n,ka.deferralConstituents=ta):ka.type=l?Wr(ta):Zi(ta),ka}function Zh(n,t){var r=n.propertyCache||(n.propertyCache=e.createSymbolTable()),i=r.get(t);return i||(i=I_(n,t),i&&r.set(t,i)),i}function N_(n,t){var r=Zh(n,t);return r&&!(e.getCheckFlags(r)&16)?r:void 0}function Ji(n,t){if(n=us(n),n.flags&524288){var r=dc(n),i=r.members.get(t);if(i&&cr(i))return i;var l=r===bt?Ri:r.callSignatures.length?xt:r.constructSignatures.length?Kt:void 0;if(l){var d=td(l,t);if(d)return d}return td(_o,t)}return n.flags&3145728?N_(n,t):void 0}function $h(n,t){if(n.flags&3670016){var r=dc(n);return t===0?r.callSignatures:r.constructSignatures}return e.emptyArray}function oi(n,t){return $h(us(n),t)}function O_(n,t){if(n.flags&3670016){var r=dc(n);return t===0?r.stringIndexInfo:r.numberIndexInfo}}function eg(n,t){var r=O_(n,t);return r&&r.type}function Xi(n,t){return O_(us(n),t)}function ms(n,t){return eg(us(n),t)}function P_(n,t){if(Vg(n)){for(var r=[],i=0,l=io(n);i<l.length;i++){var d=l[i];(t===0||Cl(d.escapedName))&&r.push(Jn(d))}if(t===0&&e.append(r,ms(n,1)),r.length)return Wr(r,2)}return}function M_(n){for(var t,r=0,i=e.getEffectiveTypeParameterDeclarations(n);r<i.length;r++){var l=i[r];t=e.appendIfUnique(t,Fd(l.symbol))}return t}function R_(n){var t=[];return n.forEach(function(r,i){Go(i)||t.push(r)}),t}function Im(n){return e.isInJSFile(n)&&(n.type&&n.type.kind===297||e.getJSDocParameterTags(n).some(function(t){var r=t.isBracketed,i=t.typeExpression;return r||!!i&&i.type.kind===297}))}function F_(n,t){if(e.isExternalModuleNameRelative(n))return;var r=Uo(cn,'"'+n+'"',512);return r&&t?zr(r):r}function Gp(n){if(e.hasQuestionToken(n)||G_(n)||Im(n))return!0;if(n.initializer){var t=fc(n.parent),r=n.parent.parameters.indexOf(n);return e.Debug.assert(r>=0),r>=wu(t)}var i=e.getImmediatelyInvokedFunctionExpression(n.parent);return i?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=i.arguments.length:!1}function G_(n){if(!e.isJSDocParameterTag(n))return!1;var t=n.isBracketed,r=n.typeExpression;return t||!!r&&r.type.kind===297}function Bp(n,t,r,i){return{kind:n,parameterName:t,parameterIndex:r,type:i}}function _u(n){var t=0;if(n)for(var r=0;r<n.length;r++)s1(n[r])||(t=r+1);return t}function Bd(n,t,r,i){var l=e.length(t);if(!l)return[];var d=e.length(n);if(i||d>=r&&d<=l){for(var A=n?n.slice():[],B=d;B<l;B++)A[B]=_e;for(var Ae=zg(i),B=d;B<l;B++){var We=zd(t[B]);i&&We&&(Xc(We,dn)||Xc(We,Wn))&&(We=oe),A[B]=We?Ei(We,wl(t,A)):Ae}return A.length=t.length,A}return n&&n.slice()}function fc(n){var t=Lr(n);if(!t.resolvedSignature){for(var r=[],i=0,l=0,d=void 0,A=!1,B=e.getImmediatelyInvokedFunctionExpression(n),Ae=e.isJSDocConstructSignature(n),We=!B&&e.isInJSFile(n)&&e.isValueSignatureDeclaration(n)&&!e.hasJSDocParameterTags(n)&&!e.getJSDocType(n),Ye=Ae?1:0;Ye<n.parameters.length;Ye++){var tn=n.parameters[Ye],bn=tn.symbol,Mn=e.isJSDocParameterTag(tn)?tn.typeExpression&&tn.typeExpression.type:tn.type;if(bn&&!!(bn.flags&4)&&!e.isBindingPattern(tn.name)){var it=lo(tn,bn.escapedName,111551,void 0,void 0,!1);bn=it}Ye===0&&bn.escapedName==="this"?(A=!0,d=tn.symbol):r.push(bn),Mn&&Mn.kind===186&&(i|=2);var _t=G_(tn)||tn.initializer||tn.questionToken||tn.dotDotDotToken||B&&r.length>B.arguments.length&&!Mn||We||Im(tn);_t||(l=r.length)}if((n.kind===162||n.kind===163)&&!Ya(n)&&(!A||!d)){var St=n.kind===162?163:162,Yt=e.getDeclarationOfKind(Zt(n),St);Yt&&(d=fi(Yt))}var mr=n.kind===161?sl(zr(n.parent.symbol)):void 0,or=mr?mr.localTypeParameters:M_(n);(e.hasRestParameter(n)||e.isInJSFile(n)&&u1(n,r))&&(i|=1),t.resolvedSignature=Kc(n,or,d,r,void 0,void 0,l,i)}return t.resolvedSignature}function u1(n,t){if(e.isJSDocSignature(n)||!B_(n))return!1;var r=e.lastOrUndefined(n.parameters),i=r?e.getJSDocParameterTags(r):e.getJSDocTags(n).filter(e.isJSDocParameterTag),l=e.firstDefined(i,function(A){return A.typeExpression&&e.isJSDocVariadicType(A.typeExpression.type)?A.typeExpression.type:void 0}),d=Ga(3,"args",32768);return d.type=l?Is(Ua(l.type)):mi,l&&t.pop(),t.push(d),!0}function ng(n){var t=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0,r=t&&t.typeExpression&&Wd(Ua(t.typeExpression));return r&&Xf(r)}function d1(n){var t=ng(n);return t&&Fi(t)}function B_(n){var t=Lr(n);return t.containsArgumentsReference===void 0&&(t.flags&8192?t.containsArgumentsReference=!0:t.containsArgumentsReference=r(n.body)),t.containsArgumentsReference;function r(i){if(!i)return!1;switch(i.kind){case 75:return i.escapedText==="arguments"&&e.isExpressionNode(i);case 158:case 160:case 162:case 163:return i.name.kind===153&&r(i.name);default:return!e.nodeStartsNewLexicalEnvironment(i)&&!e.isPartOfTypeNode(i)&&!!e.forEachChild(i,r)}}}function Xd(n){if(!n)return e.emptyArray;for(var t=[],r=0;r<n.declarations.length;r++){var i=n.declarations[r];if(!e.isFunctionLike(i))continue;if(r>0&&i.body){var l=n.declarations[r-1];if(i.parent===l.parent&&i.kind===l.kind&&i.pos===l.end)continue}t.push(fc(i))}return t}function f1(n){var t=$r(n,n);if(t){var r=$a(t);if(r)return Jn(r)}return oe}function yd(n){if(n.thisParameter)return Jn(n.thisParameter)}function ul(n){if(!n.resolvedTypePredicate){if(n.target){var t=ul(n.target);n.resolvedTypePredicate=t?kx(t,n.mapper):ri}else if(n.unionSignatures)n.resolvedTypePredicate=Z1(n.unionSignatures)||ri;else{var r=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration),i=void 0;if(!r&&e.isInJSFile(n.declaration)){var l=ng(n.declaration);l&&n!==l&&(i=ul(l))}n.resolvedTypePredicate=r&&e.isTypePredicateNode(r)?p1(r,n):i||ri}e.Debug.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===ri?void 0:n.resolvedTypePredicate}function p1(n,t){var r=n.parameterName,i=n.type&&Ua(n.type);return r.kind===182?Bp(n.assertsModifier?2:0,void 0,void 0,i):Bp(n.assertsModifier?3:1,r.escapedText,e.findIndex(t.parameters,function(l){return l.escapedName===r.escapedText}),i)}function Fi(n){if(!n.resolvedReturnType){if(!Qs(n,3))return _e;var t=n.target?Ei(Fi(n.target),n.mapper):n.unionSignatures?Wr(e.map(n.unionSignatures,Fi),2):Yd(n.declaration)||(e.nodeIsMissing(n.declaration.body)?oe:hh(n.declaration));if(n.flags&4?t=ab(t):n.flags&8&&(t=xu(t)),!Kl()){if(n.declaration){var r=e.getEffectiveReturnTypeNode(n.declaration);if(r)xn(r,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(ae){var i=n.declaration,l=e.getNameOfDeclaration(i);l?xn(l,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(l)):xn(i,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}t=oe}n.resolvedReturnType=t}return n.resolvedReturnType}function Yd(n){if(n.kind===161)return sl(zr(n.parent.symbol));if(e.isJSDocConstructSignature(n))return Ua(n.parameters[0].type);var t=e.getEffectiveReturnTypeNode(n);if(t)return Ua(t);if(n.kind===162&&!Ya(n)){var r=e.isInJSFile(n)&&ql(n);if(r)return r;var i=e.getDeclarationOfKind(Zt(n),163),l=aa(i);if(l)return l}return d1(n)}function tg(n){return!n.resolvedReturnType&&oc(n,3)>=0}function m1(n){return V_(n)||oe}function V_(n){if(I(n)){var t=Jn(n.parameters[n.parameters.length-1]),r=Do(t)?ju(t):t;return r&&ms(r,1)}return}function Vp(n,t,r,i){var l=rg(n,Bd(t,n.typeParameters,_u(n.typeParameters),r));if(i){var d=kE(Fi(l));if(d){var A=qf(d);A.typeParameters=i;var B=qf(l);return B.resolvedReturnType=Yf(A),B}}return l}function rg(n,t){var r=n.instantiations||(n.instantiations=e.createMap()),i=vu(t),l=r.get(i);return l||r.set(i,l=Nm(n,t)),l}function Nm(n,t){return $d(n,h1(n,t),!0)}function h1(n,t){return wl(n.typeParameters,t)}function Xf(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=g1(n)):n}function g1(n){return $d(n,kv(n.typeParameters),!0)}function y1(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=_1(n)):n}function _1(n){return Vp(n,e.map(n.typeParameters,function(t){return t.target&&!ll(t.target)?t.target:t}),e.isInJSFile(n.declaration))}function ag(n){var t=n.typeParameters;if(t){var r=kv(t),i=e.map(t,function(l){return Ei(cl(l),r)||dn});return $d(n,wl(t,i),!0)}return n}function Yf(n){if(!n.isolatedSignatureType){var t=n.declaration?n.declaration.kind:0,r=t===161||t===165||t===170,i=os(16);i.members=He,i.properties=e.emptyArray,i.callSignatures=r?e.emptyArray:[n],i.constructSignatures=r?[n]:e.emptyArray,n.isolatedSignatureType=i}return n.isolatedSignatureType}function U_(n){return n.members.get("__index")}function ig(n,t){var r=t===1?139:142,i=U_(n);if(i)for(var l=0,d=i.declarations;l<d.length;l++){var A=d[l],B=e.cast(A,e.isIndexSignatureDeclaration);if(B.parameters.length===1){var Ae=B.parameters[0];if(Ae.type&&Ae.type.kind===r)return B}}return}function dl(n,t,r){return{type:n,isReadonly:t,declaration:r}}function Up(n,t){var r=ig(n,t);return r?dl(r.type?Ua(r.type):oe,e.hasModifier(r,64),r):void 0}function j_(n){return e.mapDefined(e.filter(n.symbol&&n.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function v1(n){var t;if(n.symbol)for(var r=0,i=n.symbol.declarations;r<i.length;r++){var l=i[r];if(l.parent.kind===180){var d=l.parent.parent;if(d.kind===168){var A=d,B=By(A);if(B){var Ae=A.typeArguments.indexOf(l.parent);if(Ae<B.length){var We=ll(B[Ae]);if(We){var Ye=wl(B,vh(A,B)),tn=Ei(We,Ye);tn!==n&&(t=e.append(t,tn))}}}}else d.kind===155&&d.dotDotDotToken&&(t=e.append(t,Is(dn)))}}return t&&Zi(t)}function jp(n){if(!n.constraint)if(n.target){var t=ll(n.target);n.constraint=t?Ei(t,n.mapper):Ke}else{var r=j_(n);n.constraint=r?Ua(r):v1(n)||Ke}return n.constraint===Ke?void 0:n.constraint}function W_(n){var t=e.getDeclarationOfKind(n.symbol,154),r=e.isJSDocTemplateTag(t.parent)?e.getHostSignatureFromJSDoc(t.parent):t.parent;return r&&Zt(r)}function vu(n){var t="";if(n)for(var r=n.length,i=0;i<r;){for(var l=n[i].id,d=1;i+d<r&&n[i+d].id===l+d;)d++;t.length&&(t+=","),t+=l,d>1&&(t+=":"+d),i+=d}return t}function og(n,t){for(var r=0,i=0,l=n;i<l.length;i++){var d=l[i];d.flags&t||(r|=e.getObjectFlags(d))}return r&1835008}function bu(n,t){var r=vu(t),i=n.instantiations.get(r);return i||(i=os(4,n.symbol),n.instantiations.set(r,i),i.objectFlags|=t?og(t,0):0,i.target=n,i.resolvedTypeArguments=t),i}function sg(n){var t=ya(n.flags);return t.symbol=n.symbol,t.objectFlags=n.objectFlags,t.target=n.target,t.resolvedTypeArguments=n.resolvedTypeArguments,t}function lg(n,t,r){var i=ep(t),l=np(i),d=os(4,n.symbol);return d.target=n,d.node=t,d.mapper=r,d.aliasSymbol=i,d.aliasTypeArguments=r?Td(l,r):l,d}function go(n){var t,r;if(!n.resolvedTypeArguments){if(!Qs(n,7))return((t=n.target.localTypeParameters)===null||t===void 0?void 0:t.map(function(){return _e}))||e.emptyArray;var i=n.node,l=i?i.kind===168?e.concatenate(n.target.outerTypeParameters,vh(i,n.target.localTypeParameters)):i.kind===173?[Ua(i.elementType)]:e.map(i.elementTypes,Ua):e.emptyArray;Kl()?n.resolvedTypeArguments=n.mapper?Td(l,n.mapper):l:(n.resolvedTypeArguments=((r=n.target.localTypeParameters)===null||r===void 0?void 0:r.map(function(){return _e}))||e.emptyArray,xn(n.node||we,n.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&wa(n.target.symbol)))}return n.resolvedTypeArguments}function _d(n){return e.length(n.target.typeParameters)}function H_(n,t){var r=ho(zr(t)),i=r.localTypeParameters;if(i){var l=e.length(n.typeArguments),d=_u(i),A=e.isInJSFile(n),B=!ae&&A;if(!B&&(l<d||l>i.length)){var Ae=A&&e.isExpressionWithTypeArguments(n)&&!e.isJSDocAugmentsTag(n.parent),We=d===i.length?Ae?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:Ae?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,Ye=qt(r,void 0,2);if(xn(n,We,Ye,d,i.length),!A)return _e}if(n.kind===168&&dg(n))return lg(r,n,void 0);var tn=e.concatenate(r.outerTypeParameters,Bd(ug(n),i,d,A));return bu(r,tn)}return rd(n,t)?r:_e}function Qf(n,t){var r=ho(n),i=na(n),l=i.typeParameters,d=vu(t),A=i.instantiations.get(d);return A||i.instantiations.set(d,A=Ei(r,wl(l,Bd(t,l,_u(l),e.isInJSFile(n.valueDeclaration))))),A}function b1(n,t){var r=ho(t),i=na(t).typeParameters;if(i){var l=e.length(n.typeArguments),d=_u(i);return l<d||l>i.length?(xn(n,d===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,wa(t),d,i.length),_e):Qf(t,ug(n))}return rd(n,t)?r:_e}function Wp(n){switch(n.kind){case 168:return n.typeName;case 215:var t=n.expression;if(e.isEntityNameExpression(t))return t}return}function Hp(n,t,r){return n&&kt(n,t,r)||pn}function Om(n,t){if(t===pn)return _e;if(t=hr(t)||t,t.flags&(32|64))return H_(n,t);if(t.flags&524288)return b1(n,t);var r=Fp(t);if(r)return rd(n,t)?r.flags&262144?z_(r,n):js(r):_e;if(t.flags&111551&&cg(n)){var i=E1(n,t);return i||(Hp(Wp(n),788968),Jn(t))}return _e}function E1(n,t){var r=Jn(t),i=r;if(t.valueDeclaration){var l=e.getRootDeclaration(t.valueDeclaration),d=!1;if(e.isVariableDeclaration(l)&&l.initializer){for(var A=l.initializer;e.isPropertyAccessExpression(A);)A=A.expression;d=e.isCallExpression(A)&&e.isRequireCall(A,!0)&&!!r.symbol}var B=t!==r.symbol&&zr(t)===r.symbol,Ae=n.kind===187&&n.qualifier;r.symbol&&(d||Ae||B)&&(i=Om(n,r.symbol))}return na(t).resolvedJSDocType=i}function K_(n,t){if(t.flags&3||t===n)return n;var r=Vd(n)+">"+Vd(t),i=wn.get(r);if(i)return i;var l=ya(33554432);return l.typeVariable=n,l.substitute=t,wn.set(r,l),l}function q_(n){return n.kind===174&&n.elementTypes.length===1}function J_(n,t,r){return q_(t)&&q_(r)?J_(n,t.elementTypes[0],r.elementTypes[0]):Ed(Ua(t))===n?Ua(r):void 0}function z_(n,t){for(var r;t&&!e.isStatement(t)&&t.kind!==301;){var i=t.parent;if(i.kind===179&&t===i.trueType){var l=J_(n,i.checkType,i.extendsType);l&&(r=e.append(r,l))}t=i}return r?K_(n,Zi(e.append(r,n))):n}function cg(n){return!!(n.flags&4194304)&&(n.kind===168||n.kind===187)}function rd(n,t){return n.typeArguments?(xn(n,e.Diagnostics.Type_0_is_not_generic,t?wa(t):n.typeName?e.declarationNameToString(n.typeName):"(anonymous)"),!1):!0}function T1(n){if(e.isIdentifier(n.typeName)){var t=n.typeArguments;switch(n.typeName.escapedText){case"String":return rd(n),ct;case"Number":return rd(n),ot;case"Boolean":return rd(n),Ce;case"Void":return rd(n),yt;case"Undefined":return rd(n),un;case"Null":return rd(n),Bn;case"Function":case"function":return rd(n),Ri;case"Array":case"array":return(!t||!t.length)&&!ae?mi:void 0;case"Promise":case"promise":return(!t||!t.length)&&!ae?mh(oe):void 0;case"Object":if(t&&t.length===2){if(e.isJSDocIndexSignature(n)){var r=Ua(t[0]),i=Ua(t[1]),l=dl(i,!1);return No(void 0,He,e.emptyArray,e.emptyArray,r===ct?l:void 0,r===ot?l:void 0)}return oe}return rd(n),ae?void 0:oe}}}function S1(n){var t=Ua(n.type);return a?Fg(t,65536):t}function Kp(n){var t=Lr(n);if(!t.resolvedType){var r=void 0,i=void 0,l=788968;cg(n)&&(i=T1(n),i||(r=Hp(Wp(n),l,!0),r===pn?r=Hp(Wp(n),l|111551):Hp(Wp(n),l),i=Om(n,r))),i||(r=Hp(Wp(n),l),i=Om(n,r)),t.resolvedSymbol=r,t.resolvedType=i}return t.resolvedType}function ug(n){return e.map(n.typeArguments,Ua)}function X_(n){var t=Lr(n);return t.resolvedType||(t.resolvedType=js(Ns(Na(n.exprName)))),t.resolvedType}function Y_(n,t){function r(l){for(var d=l.declarations,A=0,B=d;A<B.length;A++){var Ae=B[A];switch(Ae.kind){case 244:case 245:case 247:return Ae}}}if(!n)return t?ht:Wn;var i=ho(n);return i.flags&524288?e.length(i.typeParameters)!==t?(xn(r(n),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(n),t),t?ht:Wn):i:(xn(r(n),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(n)),t?ht:Wn)}function Q_(n,t){return gf(n,111551,t?e.Diagnostics.Cannot_find_global_value_0:void 0)}function x1(n,t){return gf(n,788968,t?e.Diagnostics.Cannot_find_global_type_0:void 0)}function gf(n,t,r){return lo(void 0,n,t,r,n,!1)}function ds(n,t,r){var i=x1(n,r);return i||r?Y_(i,t):void 0}function w1(){return Mt||(Mt=ds("TypedPropertyDescriptor",1,!0))||ht}function A1(){return rn||(rn=ds("TemplateStringsArray",0,!0))||Wn}function k1(){return kn||(kn=ds("ImportMeta",0,!0))||Wn}function Z_(n){return Ln||(Ln=Q_("Symbol",n))}function $_(n){return Vn||(Vn=ds("Symbol",0,n))||Wn}function Pm(n){return tr||(tr=ds("Promise",1,n))||ht}function C1(n){return dr||(dr=ds("PromiseLike",1,n))||ht}function ev(n){return Pr||(Pr=Q_("Promise",n))}function D1(n){return za||(za=ds("PromiseConstructorLike",0,n))||Wn}function L1(n){return ge||(ge=ds("AsyncIterable",1,n))||ht}function I1(n){return hn||(hn=ds("AsyncIterator",3,n))||ht}function N1(n){return Hn||(Hn=ds("AsyncIterableIterator",1,n))||ht}function O1(n){return de||(de=ds("AsyncGenerator",3,n))||ht}function nv(n){return Ia||(Ia=ds("Iterable",1,n))||ht}function P1(n){return Ii||(Ii=ds("Iterator",3,n))||ht}function M1(n){return ai||(ai=ds("IterableIterator",1,n))||ht}function R1(n){return hi||(hi=ds("Generator",3,n))||ht}function F1(n){return Xe||(Xe=ds("IteratorYieldResult",1,n))||ht}function G1(n){return qn||(qn=ds("IteratorReturnResult",1,n))||ht}function tv(n,t){t===void 0&&(t=0);var r=gf(n,788968,void 0);return r&&Y_(r,t)}function B1(){return Qn||(Qn=gf("Extract",524288,e.Diagnostics.Cannot_find_global_type_0))}function V1(){return lt||(lt=gf("Omit",524288,e.Diagnostics.Cannot_find_global_type_0))}function U1(n){return Ft||(Ft=ds("BigInt",0,n))||Wn}function Zf(n,t){return n!==ht?bu(n,t):Wn}function rv(n){return Zf(w1(),[n])}function j1(n){return Zf(nv(!0),[n])}function Is(n,t){return Zf(t?Jr:yr,[n])}function W1(n){var t=K1(n.parent);if(n.kind===173||n.elementTypes.length===1&&n.elementTypes[0].kind===176)return t?Jr:yr;var r=e.lastOrUndefined(n.elementTypes),i=r&&r.kind===176?r:void 0,l=e.findLastIndex(n.elementTypes,function(d){return d.kind!==175&&d!==i})+1;return av(n.elementTypes.length,l,!!i,t,void 0)}function dg(n){var t=n.parent;switch(t.kind){case 181:case 168:case 177:case 178:case 184:case 179:case 183:return dg(t);case 246:return!0}return!1}function H1(n){var t=Lr(n);if(!t.resolvedType){var r=W1(n);if(r===ht)t.resolvedType=Wn;else if(dg(n))t.resolvedType=n.kind===174&&n.elementTypes.length===0?r:lg(r,n,void 0);else{var i=n.kind===173?[Ua(n.elementType)]:e.map(n.elementTypes,Ua);t.resolvedType=bu(r,i)}}return t.resolvedType}function K1(n){return e.isTypeOperatorNode(n)&&n.operator===137}function q1(n,t,r,i,l){var d,A=[],B=r?n-1:n;if(n){d=new Array(n);for(var Ae=0;Ae<n;Ae++){var We=d[Ae]=il();if(Ae<B){var Ye=Ga(4|(Ae>=t?16777216:0),""+Ae,i?8:0);Ye.type=We,A.push(Ye)}}}for(var tn=[],Ae=t;Ae<=B;Ae++)tn.push(rs(Ae));var bn=Ga(4,"length");bn.type=r?ot:Wr(tn),A.push(bn);var Mn=os(8|4);return Mn.typeParameters=d,Mn.outerTypeParameters=void 0,Mn.localTypeParameters=d,Mn.instantiations=e.createMap(),Mn.instantiations.set(vu(Mn.typeParameters),Mn),Mn.target=Mn,Mn.resolvedTypeArguments=Mn.typeParameters,Mn.thisType=il(),Mn.thisType.isThisType=!0,Mn.thisType.constraint=Mn,Mn.declaredProperties=A,Mn.declaredCallSignatures=e.emptyArray,Mn.declaredConstructSignatures=e.emptyArray,Mn.declaredStringIndexInfo=void 0,Mn.declaredNumberIndexInfo=void 0,Mn.minLength=t,Mn.hasRestElement=r,Mn.readonly=i,Mn.associatedNames=l,Mn}function av(n,t,r,i,l){var d=n+(r?"+":",")+t+(i?"R":"")+(l&&l.length?","+l.join(","):""),A=te.get(d);return A||te.set(d,A=q1(n,t,r,i,l)),A}function Gu(n,t,r,i,l){t===void 0&&(t=n.length),r===void 0&&(r=!1),i===void 0&&(i=!1);var d=n.length;if(d===1&&r)return Is(n[0],i);var A=av(d,t,d>0&&r,i,l);return n.length?bu(A,n):A}function iv(n,t){var r=n.target;return r.hasRestElement&&(t=Math.min(t,_d(n)-1)),Gu(go(n).slice(t),Math.max(0,r.minLength-t),r.hasRestElement,r.readonly,r.associatedNames&&r.associatedNames.slice(t))}function J1(n){var t=Ua(n.type);return a?xu(t):t}function Vd(n){return n.id}function yf(n,t){return e.binarySearch(n,t,Vd,e.compareValues)>=0}function ov(n,t){var r=e.binarySearch(n,t,Vd,e.compareValues);return r<0?(n.splice(~r,0,t),!0):!1}function z1(n,t,r){var i=r.flags;if(i&1048576)return sv(n,t,r.types);if(!(i&131072))if(t|=i&68943871,i&66846720&&(t|=262144),r===yn&&(t|=4194304),!a&&i&98304)e.getObjectFlags(r)&262144||(t|=2097152);else{var l=n.length,d=l&&r.id>n[l-1].id?~l:e.binarySearch(n,r,Vd,e.compareValues);d<0&&n.splice(~d,0,r)}return t}function sv(n,t,r){for(var i=0,l=r;i<l.length;i++){var d=l[i];t=z1(n,t,d)}return t}function X1(n){var t=n[0];if(t.flags&1024){for(var r=Ps(t.symbol),i=1;i<n.length;i++){var l=n[i];if(!(l.flags&1024)||r!==Ps(l.symbol))return!1}return!0}return!1}function Y1(n,t){var r=n.length;if(r===0||X1(n))return!0;for(var i=r,l=0;i>0;){i--;for(var d=n[i],A=0,B=n;A<B.length;A++){var Ae=B[A];if(d!==Ae){if(l===1e5){var We=l/(r-i)*r;if(We>(t?25e6:1e6))return xn(we,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1}if(l++,Tu(d,Ae)&&(!(e.getObjectFlags(Ta(d))&1)||!(e.getObjectFlags(Ta(Ae))&1)||rp(d,Ae))){e.orderedRemoveItemAt(n,i);break}}}}return!0}function Q1(n,t){for(var r=n.length;r>0;){r--;var i=n[r],l=i.flags&128&&t&4||i.flags&256&&t&8||i.flags&2048&&t&64||i.flags&8192&&t&4096||Bu(i)&&yf(n,i.regularType);l&&e.orderedRemoveItemAt(n,r)}}function Wr(n,t,r,i){if(t===void 0&&(t=1),n.length===0)return Dt;if(n.length===1)return n[0];var l=[],d=sv(l,0,n);if(t!==0){if(d&3)return d&1?d&4194304?yn:oe:dn;switch(t){case 1:d&(2944|8192)&&Q1(l,d);break;case 2:if(!Y1(l,!(d&262144)))return _e;break}if(l.length===0)return d&65536?d&2097152?Bn:ut:d&32768?d&2097152?un:Rn:Dt}return pg(l,d&66994211?0:131072,r,i)}function Z1(n){for(var t,r=[],i=0,l=n;i<l.length;i++){var d=l[i],A=ul(d);if(!A||A.kind===2||A.kind===3)continue;if(t){if(!fg(t,A))return}else t=A;r.push(A.type)}if(!t)return;var B=Wr(r);return Bp(t.kind,t.parameterName,t.parameterIndex,B)}function fg(n,t){return n.kind===t.kind&&n.parameterIndex===t.parameterIndex}function pg(n,t,r,i){if(n.length===0)return Dt;if(n.length===1)return n[0];var l=vu(n),d=Se.get(l);return d||(d=ya(1048576),Se.set(l,d),d.objectFlags=t|og(n,98304),d.types=n,d.aliasSymbol=r,d.aliasTypeArguments=i),d}function $1(n){var t=Lr(n);if(!t.resolvedType){var r=ep(n);t.resolvedType=Wr(e.map(n.types,Ua),1,r,np(r))}return t.resolvedType}function ex(n,t,r){var i=r.flags;return i&2097152?lv(n,t,r.types):(Hv(r)?t&8388608||(t|=8388608,n.set(r.id.toString(),r)):(i&3?r===yn&&(t|=4194304):(a||!(i&98304))&&!n.has(r.id.toString())&&(r.flags&109440&&t&109440&&(t|=67108864),n.set(r.id.toString(),r)),t|=i&68943871),t)}function lv(n,t,r){for(var i=0,l=r;i<l.length;i++){var d=l[i];t=ex(n,t,js(d))}return t}function nx(n,t){for(var r=n.length;r>0;){r--;var i=n[r],l=i.flags&4&&t&128||i.flags&8&&t&256||i.flags&64&&t&2048||i.flags&4096&&t&8192;l&&e.orderedRemoveItemAt(n,r)}}function tx(n,t){for(var r=0,i=n;r<i.length;r++){var l=i[r];if(!yf(l.types,t)){var d=t.flags&128?ct:t.flags&256?ot:t.flags&2048?dt:t.flags&8192?_n:void 0;if(!d||!yf(l.types,d))return!1}}return!0}function cv(n,t){if(e.every(n,function(i){return!!(i.flags&1048576)&&e.some(i.types,function(l){return!!(l.flags&t)})})){for(var r=0;r<n.length;r++)n[r]=gs(n[r],function(i){return!(i.flags&t)});return!0}return!1}function rx(n){var t,r=e.findIndex(n,function(bn){return!!(e.getObjectFlags(bn)&131072)});if(r<0)return!1;for(var i=r+1;i<n.length;){var l=n[i];e.getObjectFlags(l)&131072?((t||(t=[n[r]])).push(l),e.orderedRemoveItemAt(n,i)):i++}if(!t)return!1;for(var d=[],A=[],B=0,Ae=t;B<Ae.length;B++)for(var We=Ae[B],Ye=0,tn=We.types;Ye<tn.length;Ye++){var l=tn[Ye];ov(d,l)&&(tx(t,l)&&ov(A,l))}return n[r]=pg(A,131072),!0}function ax(n,t,r){var i=ya(2097152);return i.objectFlags=og(n,98304),i.types=n,i.aliasSymbol=t,i.aliasTypeArguments=r,i}function Zi(n,t,r){var i=e.createMap(),l=lv(i,0,n),d=e.arrayFrom(i.values());if(l&131072||a&&l&98304&&l&(524288|67108864|8388608)||l&67108864&&l&(67238908&~67108864)||l&132&&l&(67238908&~132)||l&296&&l&(67238908&~296)||l&2112&&l&(67238908&~2112)||l&12288&&l&(67238908&~12288)||l&49152&&l&(67238908&~49152))return Dt;if(l&1)return l&4194304?yn:oe;if(!a&&l&98304)return l&32768?un:Bn;if((l&4&&l&128||l&8&&l&256||l&64&&l&2048||l&4096&&l&8192)&&nx(d,l),l&8388608&&l&524288&&e.orderedRemoveItemAt(d,e.findIndex(d,Hv)),d.length===0)return dn;if(d.length===1)return d[0];var A=vu(d),B=Ne.get(A);if(!B){if(l&1048576)if(rx(d))B=Zi(d,t,r);else if(cv(d,32768))B=Wr([Zi(d),un],1,t,r);else if(cv(d,65536))B=Wr([Zi(d),Bn],1,t,r);else{var Ae=e.reduceLeft(d,function(tn,bn){return tn*(bn.flags&1048576?bn.types.length:1)},1);if(Ae>=1e5)return xn(we,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),_e;var We=e.findIndex(d,function(tn){return(tn.flags&1048576)!==0}),Ye=d[We];B=Wr(e.map(Ye.types,function(tn){return Zi(e.replaceElement(d,We,tn))}),1,t,r)}else B=ax(d,t,r);Ne.set(A,B)}return B}function ix(n){var t=Lr(n);if(!t.resolvedType){var r=ep(n);t.resolvedType=Zi(e.map(n.types,Ua),r,np(r))}return t.resolvedType}function uv(n,t){var r=ya(4194304);return r.type=n,r.stringsOnly=t,r}function ox(n,t){return t?n.resolvedStringIndexType||(n.resolvedStringIndexType=uv(n,!0)):n.resolvedIndexType||(n.resolvedIndexType=uv(n,!1))}function vd(n){return e.isIdentifier(n)?rs(e.unescapeLeadingUnderscores(n.escapedText)):js(e.isComputedPropertyName(n)?Ku(n):Na(n))}function sx(n){return rs({negative:!1,base10Value:e.parsePseudoBigInt(n.text)})}function Mm(n,t){if(!(e.getDeclarationModifierFlagsFromSymbol(n)&24)){var r=hf(n).nameType;if(!r&&!e.isKnownSymbol(n))if(n.escapedName==="default")r=rs("default");else{var i=n.valueDeclaration&&e.getNameOfDeclaration(n.valueDeclaration);r=i&&vd(i)||rs(e.symbolName(n))}if(r&&r.flags&t)return r}return Dt}function Rm(n,t){return Wr(e.map(io(n),function(r){return Mm(r,t)}))}function dv(n){var t=Xi(n,1);return t!==Ja?t:void 0}function zc(n,t,r){return t===void 0&&(t=Le),n.flags&1048576?Zi(e.map(n.types,function(i){return zc(i,t,r)})):n.flags&2097152?Wr(e.map(n.types,function(i){return zc(i,t,r)})):So(n,58982400)?ox(n,t):e.getObjectFlags(n)&32?gs(uc(n),function(i){return!(r&&i.flags&(1|4))}):n===yn?yn:n.flags&2?Dt:n.flags&(1|131072)?va:t?!r&&Xi(n,0)?ct:Rm(n,128):!r&&Xi(n,0)?Wr([ct,ot,Rm(n,8192)]):dv(n)?Wr([ot,Rm(n,128|8192)]):Rm(n,8576)}function fv(n){if(Le)return n;var t=B1();return t?Qf(t,[n,ct]):ct}function lx(n){var t=fv(zc(n));return t.flags&131072?ct:t}function cx(n){var t=Lr(n);if(!t.resolvedType)switch(n.operator){case 133:t.resolvedType=zc(Ua(n.type));break;case 146:t.resolvedType=n.type.kind===143?Av(e.walkUpParenthesizedTypes(n.parent)):_e;break;case 137:t.resolvedType=Ua(n.type);break;default:throw e.Debug.assertNever(n.operator)}return t.resolvedType}function ux(n,t){var r=ya(8388608);return r.objectType=n,r.indexType=t,r}function $f(n){return ae?!1:e.getObjectFlags(n)&16384?!0:n.flags&1048576?e.every(n.types,$f):n.flags&2097152?e.some(n.types,$f):n.flags&63176704?$f(Yh(n)):!1}function pv(n,t){var r=t&&t.kind===194?t:void 0;return nr(n)?Oo(n):r&&xE(r.argumentExpression,n,!1)?e.getPropertyNameForKnownSymbolName(e.idText(r.argumentExpression.name)):t&&e.isPropertyName(t)?e.getPropertyNameForPropertyNameNode(t):void 0}function mv(n,t,r,i,l,d,A){var B=d&&d.kind===194?d:void 0,Ae=pv(r,d);if(Ae!==void 0){var We=Ji(t,Ae);if(We){if(B){if(lh(We,B,B.expression.kind===103),e.isAssignmentTarget(B)&&(rT(B,We)||aT(B))){xn(B.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,wa(We));return}A&4&&(Lr(d).resolvedSymbol=We)}var Ye=Jn(We);return B&&e.getAssignmentTargetKind(B)!==1?Ad(B,Ye):Ye}if(Sf(t,Do)&&Cl(Ae)&&+Ae>=0){if(d&&Sf(t,function(or){return!or.target.hasRestElement})&&!(A&8)){var tn=mg(d);Do(t)?xn(tn,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,qt(t),_d(t),e.unescapeLeadingUnderscores(Ae)):xn(tn,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(Ae),qt(t))}return mr(Xi(t,1)),Ws(t,function(or){return ju(or)||un})}}if(!(r.flags&98304)&&qo(r,132|296|12288)){if(t.flags&(1|131072))return t;var bn=Xi(t,0),Mn=qo(r,296)&&Xi(t,1)||bn;if(Mn){if(A&1&&Mn===bn){B&&xn(B,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,qt(r),qt(n));return}if(d&&!qo(r,4|8)){var tn=mg(d);return xn(tn,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,qt(r)),Mn.type}return mr(Mn),Mn.type}if(r.flags&131072)return Dt;if($f(t))return oe;if(B&&!Py(t)){if(t.symbol===ln&&Ae!==void 0&&ln.exports.has(Ae)&&ln.exports.get(Ae).flags&418)xn(B,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(Ae),qt(t));else if(ae&&!je.suppressImplicitAnyIndexErrors&&!l)if(Ae!==void 0&&vE(Ae,t))xn(B,e.Diagnostics.Property_0_is_a_static_member_of_type_1,Ae,qt(t));else if(ms(t,1))xn(B.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var it=void 0;if(Ae!==void 0&&(it=Ey(Ae,t)))it!==void 0&&xn(B.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Ae,qt(t),it);else{var _t=v2(t,B);if(_t!==void 0)xn(B,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,qt(t),_t);else{var St=void 0;if(r.flags&1024)St=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+qt(r)+"]",qt(t));else if(r.flags&8192){var Yt=zn(r.symbol,B);St=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Yt+"]",qt(t))}else r.flags&128||r.flags&256?St=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,qt(t)):r.flags&(8|4)&&(St=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,qt(r),qt(t)));St=e.chainDiagnosticMessages(St,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,qt(i),qt(t)),tt.add(e.createDiagnosticForNodeFromMessageChain(B,St))}}}return}}if($f(t))return oe;if(d){var tn=mg(d);r.flags&(128|256)?xn(tn,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,qt(t)):r.flags&(4|8)?xn(tn,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,qt(t),qt(r)):xn(tn,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,qt(r))}if(Bi(r))return r;return;function mr(or){or&&or.isReadonly&&B&&(e.isAssignmentTarget(B)||e.isDeleteTarget(B))&&xn(B,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,qt(t))}}function mg(n){return n.kind===194?n.argumentExpression:n.kind===184?n.indexType:n.kind===153?n.expression:n}function Qd(n){return So(n,58982400|131072)}function qp(n){return So(n,58982400|4194304)}function Jp(n){return!!(n.flags&262144&&n.isThisType)}function Cc(n,t){return n.flags&8388608?fx(n,t):n.flags&16777216?px(n,t):n}function hv(n,t,r){if(n.flags&3145728){var i=e.map(n.types,function(l){return Cc(xl(l,t),r)});return n.flags&2097152||r?Zi(i):Wr(i)}}function dx(n,t,r){if(t.flags&1048576){var i=e.map(t.types,function(l){return Cc(xl(n,l),r)});return r?Zi(i):Wr(i)}}function fx(n,t){var r=t?"simplifiedForWriting":"simplifiedForReading";if(n[r])return n[r]===Pn?n:n[r];n[r]=Pn;var i=Cc(n.objectType,t),l=Cc(n.indexType,t),d=dx(i,l,t);if(d)return n[r]=d;if(!(l.flags&63176704)){var A=hv(i,l,t);if(A)return n[r]=A}return Fl(i)?n[r]=Ws(yv(i,n.indexType),function(B){return Cc(B,t)}):n[r]=n}function px(n,t){var r=n.checkType,i=n.extendsType,l=ad(n),d=id(n);if(d.flags&131072&&Ed(l)===Ed(r)){if(r.flags&1||Wi(ef(r),ef(i)))return Cc(l,t);if(gv(r,i))return Dt}else if(l.flags&131072&&Ed(d)===Ed(r)){if(!(r.flags&1)&&Wi(ef(r),ef(i)))return Dt;if(r.flags&1||gv(r,i))return Cc(d,t)}return n}function gv(n,t){return!!(Wr([Jf(n,t),Dt]).flags&131072)}function yv(n,t){var r=wl([Fu(n)],[t]),i=Eu(n.mapper,r);return Ei(qc(n),i)}function xl(n,t,r){return bd(n,t,r,0)||(r?_e:dn)}function bd(n,t,r,i){if(i===void 0&&(i=0),n===yn||t===yn)return yn;if(Kv(n)&&!(t.flags&98304)&&qo(t,4|8)&&(t=ct),qp(t)||!(r&&r.kind!==184)&&Qd(n)){if(n.flags&3)return n;var l=n.id+","+t.id,d=Tn.get(l);return d||Tn.set(l,d=ux(n,t)),d}var A=us(n);if(t.flags&1048576&&!(t.flags&16)){for(var B=[],Ae=!1,We=0,Ye=t.types;We<Ye.length;We++){var tn=Ye[We],bn=mv(n,A,tn,t,Ae,r,i);if(bn)B.push(bn);else if(r)Ae=!0;else return}return Ae?void 0:i&2?Zi(B):Wr(B)}return mv(n,A,t,t,!1,r,i|4)}function _v(n){var t=Lr(n);if(!t.resolvedType){var r=Ua(n.objectType),i=Ua(n.indexType),l=xl(r,i,n);t.resolvedType=l.flags&8388608&&l.objectType===r&&l.indexType===i?z_(l,n):l}return t.resolvedType}function hg(n){var t=Lr(n);if(!t.resolvedType){var r=os(32,n.symbol);r.declaration=n,r.aliasSymbol=ep(n),r.aliasTypeArguments=np(r.aliasSymbol),t.resolvedType=r,uc(r)}return t.resolvedType}function Ed(n){return n.flags&33554432?n.typeVariable:n.flags&8388608&&(n.objectType.flags&33554432||n.indexType.flags&33554432)?xl(Ed(n.objectType),Ed(n.indexType)):n}function gg(n,t){var r=Ei(n.checkType,t),i=Ei(n.extendsType,t);if(r===yn||i===yn)return yn;var l=So(r,63176704|131072),d;if(n.inferTypeParameters){var A=sp(n.inferTypeParameters,void 0,0);l||Dc(A.inferences,r,i,64|128),d=Eu(t,A.mapper)}var B=d?Ei(n.extendsType,d):i;if(!l&&!So(B,63176704|131072)){if(B.flags&3)return Ei(n.trueType,d||t);if(r.flags&1)return Wr([Ei(n.trueType,d||t),Ei(n.falseType,t)]);if(!Wi(Ov(r),Ov(B)))return Ei(n.falseType,t);if(Wi(ef(r),ef(B)))return Ei(n.trueType,d||t)}var Ae=Ed(r),We=ya(16777216);return We.root=n,We.checkType=Ae,We.extendsType=i,We.mapper=t,We.combinedMapper=d,We.aliasSymbol=n.aliasSymbol,We.aliasTypeArguments=Td(n.aliasTypeArguments,t),We}function ad(n){return n.resolvedTrueType||(n.resolvedTrueType=Ei(n.root.trueType,n.mapper))}function id(n){return n.resolvedFalseType||(n.resolvedFalseType=Ei(n.root.falseType,n.mapper))}function mx(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?Ei(n.root.trueType,n.combinedMapper):ad(n))}function vv(n){var t;return n.locals&&n.locals.forEach(function(r){r.flags&262144&&(t=e.append(t,ho(r)))}),t}function hx(n){var t=Lr(n);if(!t.resolvedType){var r=Ua(n.checkType),i=ep(n),l=np(i),d=Pi(n,!0),A=l?d:e.filter(d,function(Ae){return Lv(Ae,n)}),B={node:n,checkType:r,extendsType:Ua(n.extendsType),trueType:Ua(n.trueType),falseType:Ua(n.falseType),isDistributive:!!(r.flags&262144),inferTypeParameters:vv(n),outerTypeParameters:A,instantiations:void 0,aliasSymbol:i,aliasTypeArguments:l};t.resolvedType=gg(B,void 0),A&&(B.instantiations=e.createMap(),B.instantiations.set(vu(A),t.resolvedType))}return t.resolvedType}function gx(n){var t=Lr(n);return t.resolvedType||(t.resolvedType=Fd(Zt(n.typeParameter))),t.resolvedType}function bv(n){return e.isIdentifier(n)?[n]:e.append(bv(n.left),n.right)}function yx(n){var t=Lr(n);if(!t.resolvedType){if(n.isTypeOf&&n.typeArguments)return xn(n,e.Diagnostics.Type_arguments_cannot_be_used_here),t.resolvedSymbol=pn,t.resolvedType=_e;if(!e.isLiteralImportTypeNode(n))return xn(n.argument,e.Diagnostics.String_literal_expected),t.resolvedSymbol=pn,t.resolvedType=_e;var r=n.isTypeOf?111551:n.flags&4194304?111551|788968:788968,i=$r(n,n.argument.literal);if(!i)return t.resolvedSymbol=pn,t.resolvedType=_e;var l=$a(i,!1);if(e.nodeIsMissing(n.qualifier))if(l.flags&r)t.resolvedType=Ev(n,t,l,r);else{var Ye=r===111551?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;xn(n,Ye,n.argument.literal.text),t.resolvedSymbol=pn,t.resolvedType=_e}else{for(var d=bv(n.qualifier),A=l,B=void 0;B=d.shift();){var Ae=d.length?1920:r,We=Uo(ti(zr(b(A))),B.escapedText,Ae);if(!We)return xn(B,e.Diagnostics.Namespace_0_has_no_exported_member_1,zn(A),e.declarationNameToString(B)),t.resolvedType=_e;Lr(B).resolvedSymbol=We,Lr(B.parent).resolvedSymbol=We,A=We}t.resolvedType=Ev(n,t,A,r)}}return t.resolvedType}function Ev(n,t,r,i){var l=b(r);return t.resolvedSymbol=l,i===111551?Jn(r):Om(n,l)}function Tv(n){var t=Lr(n);if(!t.resolvedType){var r=ep(n);if(gu(n.symbol).size===0&&!r)t.resolvedType=Tt;else{var i=os(16,n.symbol);i.aliasSymbol=r,i.aliasTypeArguments=np(r),e.isJSDocTypeLiteral(n)&&n.isArrayType&&(i=Is(i)),t.resolvedType=i}}return t.resolvedType}function ep(n){for(var t=n.parent;e.isParenthesizedTypeNode(t)||e.isTypeOperatorNode(t)&&t.operator===137;)t=t.parent;return e.isTypeAlias(t)?Zt(t):void 0}function np(n){return n?Ko(n):void 0}function Sv(n){return!!(n.flags&524288)&&!Fl(n)}function od(n,t,r,i,l){if(n.flags&1||t.flags&1)return oe;if(n.flags&2||t.flags&2)return dn;if(n.flags&131072)return t;if(t.flags&131072)return n;if(n.flags&1048576)return Ws(n,function(Ur){return od(Ur,t,r,i,l)});if(t.flags&1048576)return Ws(t,function(Ur){return od(n,Ur,r,i,l)});if(t.flags&(528|296|2112|132|1056|67108864|4194304))return n;if(Qd(n)||Qd(t)){if(Uu(n))return t;if(n.flags&2097152){var d=n.types,A=d[d.length-1];if(Sv(A)&&Sv(t))return Zi(e.concatenate(d.slice(0,d.length-1),[od(A,t,r,i,l)]))}return Zi([n,t])}var B=e.createSymbolTable(),Ae=e.createUnderscoreEscapedMap(),We,Ye;n===Wn?(We=Xi(t,0),Ye=Xi(t,1)):(We=T_(Xi(n,0),Xi(t,0)),Ye=T_(Xi(n,1),Xi(t,1)));for(var tn=0,bn=io(t);tn<bn.length;tn++){var Mn=bn[tn];e.getDeclarationModifierFlagsFromSymbol(Mn)&(8|16)?Ae.set(Mn.escapedName,!0):yg(Mn)&&B.set(Mn.escapedName,_g(Mn,l))}for(var it=0,_t=io(n);it<_t.length;it++){var St=_t[it];if(Ae.has(St.escapedName)||!yg(St))continue;if(B.has(St.escapedName)){var Mn=B.get(St.escapedName),Yt=Jn(Mn);if(Mn.flags&16777216){var mr=e.concatenate(St.declarations,Mn.declarations),or=4|St.flags&16777216,br=Ga(or,St.escapedName);br.type=Wr([Jn(St),hs(Yt,524288)]),br.leftSpread=St,br.rightSpread=Mn,br.declarations=mr,br.nameType=St.nameType,B.set(St.escapedName,br)}}else B.set(St.escapedName,_g(St,l))}var ta=No(r,B,e.emptyArray,e.emptyArray,xv(We,l),xv(Ye,l));return ta.objectFlags|=128|524288|1024|i,ta}function yg(n){return!(n.flags&(8192|32768|65536))||!n.declarations.some(function(t){return e.isClassLike(t.parent)})}function _g(n,t){var r=n.flags&65536&&!(n.flags&32768);if(!r&&t===$c(n))return n;var i=4|n.flags&16777216,l=Ga(i,n.escapedName,t?8:0);return l.type=r?un:Jn(n),l.declarations=n.declarations,l.nameType=n.nameType,l.syntheticOrigin=n,l}function xv(n,t){return n&&n.isReadonly!==t?dl(n.type,t,n.declaration):n}function wv(n,t,r){var i=ya(n);return i.symbol=r,i.value=t,i}function Zd(n){if(n.flags&2944){if(!n.freshType){var t=wv(n.flags,n.value,n.symbol);t.regularType=n,t.freshType=t,n.freshType=t}return n.freshType}return n}function js(n){return n.flags&2944?n.regularType:n.flags&1048576?Wr(e.sameMap(n.types,js)):n}function Bu(n){return!!(n.flags&2944)&&n.freshType===n}function rs(n,t,r){var i=typeof n=="number"?"#":typeof n=="string"?"@":"n",l=(t||"")+i+(typeof n=="object"?e.pseudoBigIntToString(n):n),d=ze.get(l);if(!d){var A=(typeof n=="number"?256:typeof n=="string"?128:2048)|(t?1024:0);ze.set(l,d=wv(A,n,r)),d.regularType=d}return d}function _x(n){var t=Lr(n);return t.resolvedType||(t.resolvedType=js(Na(n.literal))),t.resolvedType}function vx(n){var t=ya(8192);return t.symbol=n,t.escapedName="__@"+t.symbol.escapedName+"@"+se(t.symbol),t}function Av(n){if(e.isValidESSymbolDeclaration(n)){var t=Zt(n),r=na(t);return r.uniqueESSymbolType||(r.uniqueESSymbolType=vx(t))}return _n}function bx(n){var t=e.getThisContainer(n,!1),r=t&&t.parent;if(r&&(e.isClassLike(r)||r.kind===245)&&(!e.hasModifier(t,32)&&(!e.isConstructorDeclaration(t)||e.isNodeDescendantOf(n,t.body))))return sl(Zt(r)).thisType;if(r&&e.isObjectLiteralExpression(r)&&e.isBinaryExpression(r.parent)&&e.getAssignmentDeclarationKind(r.parent)===6)return sl(Zt(r.parent.left).parent).thisType;var i=n.flags&4194304?e.getHostSignatureFromJSDoc(n):void 0;return i&&e.isFunctionExpression(i)&&e.isBinaryExpression(i.parent)&&e.getAssignmentDeclarationKind(i.parent)===3?sl(Zt(i.parent.left).parent).thisType:Zc(t)&&e.isNodeDescendantOf(n,t.body)?sl(Zt(t)).thisType:(xn(n,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),_e)}function Fm(n){var t=Lr(n);return t.resolvedType||(t.resolvedType=bx(n)),t.resolvedType}function Ua(n){switch(n.kind){case 124:case 293:case 294:return oe;case 147:return dn;case 142:return ct;case 139:return ot;case 150:return dt;case 127:return Ce;case 143:return _n;case 109:return yt;case 145:return un;case 99:return Bn;case 136:return Dt;case 140:return n.flags&131072?oe:Hr;case 182:case 103:return Fm(n);case 186:return _x(n);case 168:return Kp(n);case 167:return n.assertsModifier?yt:Ce;case 215:return Kp(n);case 171:return X_(n);case 173:case 174:return H1(n);case 175:return J1(n);case 177:return $1(n);case 178:return ix(n);case 295:return S1(n);case 297:return ol(Ua(n.type));case 181:case 296:case 292:return Ua(n.type);case 176:return jm(Ua(n.type))||_e;case 299:return _0(n);case 169:case 170:case 172:case 302:case 298:case 303:return Tv(n);case 183:return cx(n);case 184:return _v(n);case 185:return hg(n);case 179:return hx(n);case 180:return gx(n);case 187:return yx(n);case 75:case 152:var t=ud(n);return t?ho(t):_e;default:return _e}}function vg(n,t,r){if(n&&n.length)for(var i=0;i<n.length;i++){var l=n[i],d=r(l,t);if(l!==d){var A=i===0?[]:n.slice(0,i);for(A.push(d),i++;i<n.length;i++)A.push(r(n[i],t));return A}}return n}function Td(n,t){return vg(n,t,Ei)}function Gm(n,t){return vg(n,t,$d)}function _f(n,t){return function(r){return r===n?t:r}}function Ex(n,t,r,i){return function(l){return l===n?t:l===r?i:l}}function Tx(n,t){return function(r){for(var i=0;i<n.length;i++)if(r===n[i])return t?t[i]:oe;return r}}function wl(n,t){return e.Debug.assert(t===void 0||n.length===t.length),n.length===1?_f(n[0],t?t[0]:oe):n.length===2?Ex(n[0],t?t[0]:oe,n[1],t?t[1]:oe):Tx(n,t)}function kv(n){return wl(n,void 0)}function Sx(n,t){return function(r){return e.findIndex(n.inferences,function(i){return i.typeParameter===r})>=t?dn:r}}function Eu(n,t){return n?t?function(r){return Ei(n(r),t)}:n:t}function Cv(n,t,r){return function(i){return i===n?t:r(i)}}function xx(n){return n.flags&262144?yn:n}function wx(n){return n.constraint===dn?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=il(n.symbol),n.restrictiveInstantiation.constraint=dn,n.restrictiveInstantiation)}function Ax(n){return n.flags&262144?wx(n):n}function Dv(n){var t=il(n.symbol);return t.target=n,t}function kx(n,t){return Bp(n.kind,n.parameterName,n.parameterIndex,Ei(n.type,t))}function $d(n,t,r){var i;if(n.typeParameters&&!r){i=e.map(n.typeParameters,Dv),t=Eu(wl(n.typeParameters,i),t);for(var l=0,d=i;l<d.length;l++){var A=d[l];A.mapper=t}}var B=Kc(n.declaration,i,n.thisParameter&&bg(n.thisParameter,t),vg(n.parameters,t,bg),void 0,void 0,n.minArgumentCount,n.flags&3);return B.target=n,B.mapper=t,B}function bg(n,t){var r=na(n);if(r.type&&!So(r.type,524288|63176704))return n;e.getCheckFlags(n)&1&&(n=r.target,t=Eu(r.mapper,t));var i=Ga(n.flags,n.escapedName,1|e.getCheckFlags(n)&(8|4096|16384|32768));return i.declarations=n.declarations,i.parent=n.parent,i.target=n,i.mapper=t,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),n.nameType&&(i.nameType=n.nameType),i}function Eg(n,t){var r=n.objectFlags&64?n.target:n,i=n.objectFlags&4?n.node:n.symbol.declarations[0],l=Lr(i),d=l.outerTypeParameters;if(!d){var A=i;if(e.isInJSFile(A)){var B=e.findAncestor(A,e.isJSDocParameterTag);if(B){var Ae=e.getParameterSymbolFromJSDoc(B);Ae&&(A=Ae.valueDeclaration)}}var We=Pi(A,!0);if(Zc(A)){var Ye=M_(A);We=e.addRange(We,Ye)}d=We||e.emptyArray,d=(r.objectFlags&4||r.symbol.flags&2048)&&!r.aliasTypeArguments?e.filter(d,function(_t){return Lv(_t,A)}):d,l.outerTypeParameters=d,d.length&&(l.instantiations=e.createMap(),l.instantiations.set(vu(d),r))}if(d.length){var tn=e.map(d,Eu(n.mapper,t)),bn=vu(tn),Mn=l.instantiations.get(bn);if(!Mn){var it=wl(d,tn);Mn=r.objectFlags&4?lg(n.target,n.node,it):r.objectFlags&32?Dx(r,it):Sg(r,it),l.instantiations.set(bn,Mn)}return Mn}return n}function Cx(n){return!(n.kind===152||n.parent.kind===168&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===187&&n.parent.typeArguments&&n===n.parent.qualifier)}function Lv(n,t){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){for(var r=n.symbol.declarations[0].parent,i=t;i!==r;i=i.parent)if(!i||i.kind===222||i.kind===179&&e.forEachChild(i.extendsType,l))return!0;return!!e.forEachChild(t,l)}return!0;function l(d){switch(d.kind){case 182:return!!n.isThisType;case 75:return!n.isThisType&&e.isPartOfTypeNode(d)&&Cx(d)&&Ua(d)===n;case 171:return!0}return!!e.forEachChild(d,l)}}function Tg(n){var t=uc(n);if(t.flags&4194304){var r=Ed(t.type);if(r.flags&262144)return r}return}function Dx(n,t){var r=Tg(n);if(r){var i=Ei(r,t);if(r!==i)return Ws(i,function(l){if(l.flags&(3|58982400|524288|2097152)&&l!==yn&&l!==_e){var d=Cv(r,l,t);return Ms(l)?Lx(l,n,d):Do(l)?Ix(l,n,d):Sg(n,d)}return l})}return Sg(n,t)}function Iv(n,t){return t&1?!0:t&2?!1:n}function Lx(n,t,r){var i=Nv(t,ot,!0,r);return i===_e?_e:Is(i,Iv(ip(n),Jc(t)))}function Ix(n,t,r){var i=n.target.minLength,l=e.map(go(n),function(Ae,We){return Nv(t,rs(""+We),We>=i,r)}),d=Jc(t),A=d&4?0:d&8?_d(n)-(n.target.hasRestElement?1:0):i,B=Iv(n.target.readonly,d);return e.contains(l,_e)?_e:Gu(l,A,n.target.hasRestElement,B,n.target.associatedNames)}function Nv(n,t,r,i){var l=Eu(i,wl([Fu(n)],[t])),d=Ei(qc(n.target||n),l),A=Jc(n);return a&&A&4&&!Wi(un,d)?xu(d):a&&A&8&&r?hs(d,524288):d}function Sg(n,t){var r=os(n.objectFlags|64,n.symbol);if(n.objectFlags&32){r.declaration=n.declaration;var i=Fu(n),l=Dv(i);r.typeParameter=l,t=Eu(_f(i,l),t),l.mapper=t}return r.target=n,r.mapper=t,r.aliasSymbol=n.aliasSymbol,r.aliasTypeArguments=Td(n.aliasTypeArguments,t),r}function xg(n,t){var r=n.root;if(r.outerTypeParameters){var i=e.map(r.outerTypeParameters,t),l=vu(i),d=r.instantiations.get(l);if(!d){var A=wl(r.outerTypeParameters,i);d=Nx(r,A),r.instantiations.set(l,d)}return d}return n}function Nx(n,t){if(n.isDistributive){var r=n.checkType,i=t(r);if(r!==i&&i.flags&(1048576|131072))return Ws(i,function(l){return gg(n,Cv(r,l,t))})}return gg(n,t)}function Ei(n,t){if(!n||!t||t===ve)return n;if(Z===50||De>=5e6)return xn(we,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),_e;De++,Z++;var r=Ox(n,t);return Z--,r}function Ox(n,t){var r=n.flags;if(r&262144)return t(n);if(r&524288){var i=n.objectFlags;if(i&16)return Jm(n)?Eg(n,t):n;if(i&32)return Eg(n,t);if(i&4){if(n.node)return Eg(n,t);var l=n.resolvedTypeArguments,d=Td(l,t);return d!==l?bu(n.target,d):n}return n}if(r&1048576&&!(r&131068)){var A=n.types,B=Td(A,t);return B!==A?Wr(B,1,n.aliasSymbol,Td(n.aliasTypeArguments,t)):n}if(r&2097152){var A=n.types,B=Td(A,t);return B!==A?Zi(B,n.aliasSymbol,Td(n.aliasTypeArguments,t)):n}if(r&4194304)return zc(Ei(n.type,t));if(r&8388608)return xl(Ei(n.objectType,t),Ei(n.indexType,t));if(r&16777216)return xg(n,Eu(n.mapper,t));if(r&33554432){var Ae=Ei(n.typeVariable,t);if(Ae.flags&8650752)return K_(Ae,Ei(n.substitute,t));var We=Ei(n.substitute,t);return We.flags&3||Wi(ef(Ae),ef(We))?Ae:We}return n}function Ov(n){return n.flags&(131068|3|131072)?n:n.permissiveInstantiation||(n.permissiveInstantiation=Ei(n,xx))}function ef(n){return n.flags&(131068|3|131072)?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=Ei(n,Ax),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function Bm(n,t){return n&&dl(Ei(n.type,t),n.isReadonly,n.declaration)}function Gl(n){e.Debug.assert(n.kind!==160||e.isObjectLiteralMethod(n));switch(n.kind){case 200:case 201:case 160:case 243:return Pv(n);case 192:return e.some(n.properties,Gl);case 191:return e.some(n.elements,Gl);case 209:return Gl(n.whenTrue)||Gl(n.whenFalse);case 208:return(n.operatorToken.kind===56||n.operatorToken.kind===60)&&(Gl(n.left)||Gl(n.right));case 279:return Gl(n.initializer);case 199:return Gl(n.expression);case 272:return e.some(n.properties,Gl)||e.isJsxOpeningElement(n.parent)&&e.some(n.parent.parent.children,Gl);case 271:{var t=n.initializer;return!!t&&Gl(t)}case 274:{var r=n.expression;return!!r&&Gl(r)}}return!1}function Pv(n){if(e.isFunctionDeclaration(n)&&(!e.isInJSFile(n)||!ql(n)))return!1;if(n.typeParameters)return!1;if(e.some(n.parameters,function(r){return!e.getEffectiveTypeAnnotationNode(r)}))return!0;if(n.kind!==201){var t=e.firstOrUndefined(n.parameters);if(!(t&&e.parameterIsThisKeyword(t)))return!0}return Mv(n)}function Mv(n){return!!n.body&&n.body.kind!==222&&Gl(n.body)}function Rv(n){return(e.isInJSFile(n)&&e.isFunctionDeclaration(n)||Yb(n)||e.isObjectLiteralMethod(n))&&Pv(n)}function Fv(n){if(n.flags&524288){var t=dc(n);if(t.constructSignatures.length||t.callSignatures.length){var r=os(16,n.symbol);return r.members=t.members,r.properties=t.properties,r.callSignatures=e.emptyArray,r.constructSignatures=e.emptyArray,r}}else if(n.flags&2097152)return Zi(e.map(n.types,Fv));return n}function Xc(n,t){return Su(n,t,Ma)}function tp(n,t){return Su(n,t,Ma)?-1:0}function Gv(n,t){return Su(n,t,pa)?-1:0}function Px(n,t){return Su(n,t,Er)?-1:0}function Tu(n,t){return Su(n,t,Er)}function Wi(n,t){return Su(n,t,pa)}function rp(n,t){return n.flags&1048576?e.every(n.types,function(r){return rp(r,t)}):t.flags&1048576?e.some(t.types,function(r){return rp(n,r)}):n.flags&58982400?rp(cl(n)||dn,t):t===_o?!!(n.flags&(524288|67108864)):t===Ri?!!(n.flags&524288)&&Qg(n):Ra(n,Ta(t))}function nf(n,t){return Su(n,t,Ca)}function wg(n,t){return nf(n,t)||nf(t,n)}function Al(n,t,r,i,l,d){return zl(n,t,pa,r,i,l,d)}function Vu(n,t,r,i,l,d){return Ag(n,t,pa,r,i,l,d,void 0)}function Ag(n,t,r,i,l,d,A,B){return Su(n,t,r)?!0:!i||!zp(l,n,t,r,d,A,B)?zl(n,t,r,i,d,A,B):!1}function Bv(n){return!!(n.flags&16777216||n.flags&2097152&&e.some(n.types,Bv))}function zp(n,t,r,i,l,d,A){if(!n||Bv(r))return!1;if(!zl(t,r,i,void 0)&&Mx(n,t,r,i,l,d,A))return!0;switch(n.kind){case 274:case 199:return zp(n.expression,t,r,i,l,d,A);case 208:switch(n.operatorToken.kind){case 62:case 27:return zp(n.right,t,r,i,l,d,A)}break;case 192:return jx(n,t,r,i,d,A);case 191:return Vx(n,t,r,i,d,A);case 272:return Bx(n,t,r,i,d,A);case 201:return Rx(n,t,r,i,d,A)}return!1}function Mx(n,t,r,i,l,d,A){for(var B=oi(t,0),Ae=oi(t,1),We=0,Ye=[Ae,B];We<Ye.length;We++){var tn=Ye[We];if(e.some(tn,function(it){var _t=Fi(it);return!(_t.flags&(1|131072))&&zl(_t,r,i,void 0)})){var bn=A||{};Al(t,r,n,l,d,bn);var Mn=bn.errors[bn.errors.length-1];return e.addRelatedInfo(Mn,e.createDiagnosticForNode(n,tn===Ae?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}function Rx(n,t,r,i,l,d){if(e.isBlock(n.body))return!1;if(e.some(n.parameters,e.hasType))return!1;var A=Wd(t);if(!A)return!1;var B=oi(r,0);if(!e.length(B))return!1;var Ae=n.body,We=Fi(A),Ye=Wr(e.map(B,Fi));if(!zl(We,Ye,i,void 0)){var tn=Ae&&zp(Ae,We,Ye,i,void 0,l,d);if(tn)return tn;var bn=d||{};if(zl(We,Ye,i,Ae,void 0,l,bn),bn.errors)return r.symbol&&e.length(r.symbol.declarations)&&e.addRelatedInfo(bn.errors[bn.errors.length-1],e.createDiagnosticForNode(r.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),!0}return!1}function ap(n,t,r,i,l,d){for(var A=!1,B=n.next();!B.done;B=n.next()){var Ae=B.value,We=Ae.errorNode,Ye=Ae.innerExpression,tn=Ae.nameType,bn=Ae.errorMessage,Mn=bd(r,tn);if(!Mn||Mn.flags&8388608)continue;var it=bd(t,tn);if(it&&!zl(it,Mn,i,void 0)){var _t=Ye&&zp(Ye,it,Mn,i,void 0,l,d);if(_t)A=!0;else{var St=d||{},Yt=Ye?Pf(Ye,0,it):it,mr=zl(Yt,Mn,i,We,bn,l,St);if(mr&&Yt!==it&&zl(it,Mn,i,We,bn,l,St),St.errors){var or=St.errors[St.errors.length-1],br=nr(tn)?Oo(tn):void 0,ta=br!==void 0?Ji(r,br):void 0,Ur=!1;if(!ta){var ja=qo(tn,296)&&Xi(r,1)||Xi(r,0)||void 0;ja&&ja.declaration&&!e.getSourceFileOfNode(ja.declaration).hasNoDefaultLib&&(Ur=!0,e.addRelatedInfo(or,e.createDiagnosticForNode(ja.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!Ur&&(ta&&e.length(ta.declarations)||r.symbol&&e.length(r.symbol.declarations))){var $i=ta&&e.length(ta.declarations)?ta.declarations[0]:r.symbol.declarations[0];e.getSourceFileOfNode($i).hasNoDefaultLib||e.addRelatedInfo(or,e.createDiagnosticForNode($i,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,br&&!(tn.flags&8192)?e.unescapeLeadingUnderscores(br):qt(tn),qt(r)))}}A=!0}}}return A}function Fx(n){var t,r,i;return xr(this,function(l){switch(l.label){case 0:if(!e.length(n.properties))return[2];t=0,r=n.properties,l.label=1;case 1:return t<r.length?(i=r[t],e.isJsxSpreadAttribute(i)?[3,3]:[4,{errorNode:i.name,innerExpression:i.initializer,nameType:rs(e.idText(i.name))}]):[3,4];case 2:l.sent(),l.label=3;case 3:return t++,[3,1];case 4:return[2]}})}function Gx(n,t){var r,i,l,d,A;return xr(this,function(B){switch(B.label){case 0:if(!e.length(n.children))return[2];r=0,i=0,B.label=1;case 1:return i<n.children.length?(l=n.children[i],d=rs(i-r),A=Vv(l,d,t),A?[4,A]:[3,3]):[3,5];case 2:return B.sent(),[3,4];case 3:r++,B.label=4;case 4:return i++,[3,1];case 5:return[2]}})}function Vv(n,t,r){switch(n.kind){case 274:return{errorNode:n,innerExpression:n.expression,nameType:t};case 11:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:t,errorMessage:r()};case 264:case 265:case 268:return{errorNode:n,innerExpression:n,nameType:t};default:return e.Debug.assertNever(n,"Found invalid jsx child")}}function Uv(n){return e.filter(n,function(t){return!e.isJsxText(t)||!t.containsOnlyTriviaWhiteSpaces})}function Bx(n,t,r,i,l,d){var A=ap(Fx(n),t,r,i,l,d),B;if(e.isJsxOpeningElement(n.parent)&&e.isJsxElement(n.parent.parent)){var Ae=n.parent.parent,We=oh(lf(n)),Ye=We===void 0?"children":e.unescapeLeadingUnderscores(We),tn=rs(Ye),bn=xl(r,tn),Mn=Uv(Ae.children);if(!e.length(Mn))return A;var it=e.length(Mn)>1,_t=gs(bn,Og),St=gs(bn,function(ja){return!Og(ja)});if(it){if(_t!==Dt){var Yt=Gu(ih(Ae,0)),mr=Gx(Ae,Ur);A=ap(mr,Yt,_t,i,l,d)||A}else if(!Su(xl(t,tn),bn,i)){A=!0;var or=xn(Ae.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Ye,qt(bn));d&&d.skipLogging&&(d.errors||(d.errors=[])).push(or)}}else if(St!==Dt){var br=Mn[0],ta=Vv(br,tn,Ur);ta&&(A=ap(function(){return xr(this,function(ja){switch(ja.label){case 0:return[4,ta];case 1:return ja.sent(),[2]}})}(),t,r,i,l,d)||A)}else if(!Su(xl(t,tn),bn,i)){A=!0;var or=xn(Ae.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Ye,qt(bn));d&&d.skipLogging&&(d.errors||(d.errors=[])).push(or)}}return A;function Ur(){if(!B){var ja=e.getTextOfNode(n.parent.tagName),$i=oh(lf(n)),Sa=$i===void 0?"children":e.unescapeLeadingUnderscores($i),ka=xl(r,rs(Sa)),Bt=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;B=Rr(Rr({},Bt),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,Bt,ja,Sa,qt(ka))})}return B}}function jv(n,t){var r,i,l,d;return xr(this,function(A){switch(A.label){case 0:if(r=e.length(n.elements),!r)return[2];i=0,A.label=1;case 1:return i<r?rf(t)&&!Ji(t,""+i)?[3,3]:(l=n.elements[i],e.isOmittedExpression(l)?[3,3]:(d=rs(i),[4,{errorNode:l,innerExpression:l,nameType:d}])):[3,4];case 2:A.sent(),A.label=3;case 3:return i++,[3,1];case 4:return[2]}})}function Vx(n,t,r,i,l,d){if(r.flags&131068)return!1;if(rf(t))return ap(jv(n,r),t,r,i,l,d);var A=Zb(n,1,!0);return rf(A)?ap(jv(n,r),A,r,i,l,d):!1}function Ux(n){var t,r,i,l,d;return xr(this,function(A){switch(A.label){case 0:if(!e.length(n.properties))return[2];t=0,r=n.properties,A.label=1;case 1:if(!(t<r.length))return[3,8];if(i=r[t],e.isSpreadAssignment(i))return[3,7];if(l=Mm(Zt(i),8576),!l||l.flags&131072)return[3,7];d=i.kind;switch(d){case 163:return[3,2];case 162:return[3,2];case 160:return[3,2];case 280:return[3,2];case 279:return[3,4]}return[3,6];case 2:return[4,{errorNode:i.name,innerExpression:void 0,nameType:l}];case 3:return A.sent(),[3,7];case 4:return[4,{errorNode:i.name,innerExpression:i.initializer,nameType:l,errorMessage:Zu(i.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return A.sent(),[3,7];case 6:e.Debug.assertNever(i),A.label=7;case 7:return t++,[3,1];case 8:return[2]}})}function jx(n,t,r,i,l,d){return r.flags&131068?!1:ap(Ux(n),t,r,i,l,d)}function Wv(n,t,r,i,l){return zl(n,t,Ca,r,i,l)}function Wx(n,t,r){return kg(n,t,0,r,!1,void 0,void 0,Gv)!==0}function Hx(n){return!n.typeParameters&&(!n.thisParameter||Bi(gp(n.thisParameter)))&&n.parameters.length===1&&I(n)&&(gp(n.parameters[0])===mi||Bi(gp(n.parameters[0])))&&Bi(Fi(n))}function kg(n,t,r,i,l,d,A,B){if(n===t)return-1;if(Hx(t))return-1;var Ae=Vl(t);if(!qu(t)&&wu(n)>Ae)return 0;n.typeParameters&&n.typeParameters!==t.typeParameters&&(t=y1(t),n=CE(n,t,void 0,B));var We=Vl(n),Ye=vp(n),tn=vp(t);if(Ye&&tn&&We!==Ae)return 0;var bn=t.declaration?t.declaration.kind:0,Mn=!r&&Ze&&bn!==160&&bn!==159&&bn!==161,it=-1,_t=yd(n);if(_t&&_t!==yt){var St=yd(t);if(St){var Yt=!Mn&&B(_t,St,!1)||B(St,_t,l);if(!Yt)return l&&d(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;it&=Yt}}for(var mr=Ye||tn?Math.min(We,Ae):Math.max(We,Ae),or=Ye||tn?mr-1:-1,br=0;br<mr;br++){var ta=br===or?yp(n,br):Zs(n,br),Ur=br===or?yp(t,br):Zs(t,br),ja=r?void 0:Wd(Wu(ta)),$i=r?void 0:Wd(Wu(Ur)),Sa=ja&&$i&&!ul(ja)&&!ul($i)&&(kl(ta)&98304)===(kl(Ur)&98304),Yt=Sa?kg($i,ja,Mn?2:1,!1,l,d,A,B):!r&&!Mn&&B(ta,Ur,!1)||B(Ur,ta,l);if(!Yt)return l&&d(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(Nf(n,br)),e.unescapeLeadingUnderscores(Nf(t,br))),0;it&=Yt}if(!i){var ka=tg(t)?oe:t.declaration&&Zc(t.declaration)?sl(zr(t.declaration.symbol)):Fi(t);if(ka===yt)return it;var Bt=tg(n)?oe:n.declaration&&Zc(n.declaration)?sl(zr(n.declaration.symbol)):Fi(n),Sn=ul(t);if(Sn){var gn=ul(n);if(gn)it&=Kx(gn,Sn,l,d,B);else if(e.isIdentifierTypePredicate(Sn))return l&&d(e.Diagnostics.Signature_0_must_be_a_type_predicate,Bs(n)),0}else it&=r===1&&B(ka,Bt,!1)||B(Bt,ka,l),!it&&l&&A&&A(Bt,ka)}return it}function Kx(n,t,r,i,l){if(n.kind!==t.kind)return r&&(i(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Wl(n),Wl(t))),0;if((n.kind===1||n.kind===3)&&n.parameterIndex!==t.parameterIndex)return r&&(i(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,t.parameterName),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Wl(n),Wl(t))),0;var d=n.type===t.type?-1:n.type&&t.type?l(n.type,t.type,r):0;return d===0&&r&&i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Wl(n),Wl(t)),d}function qx(n,t){var r=Xf(n),i=Xf(t),l=Fi(r),d=Fi(i);return d===yt||Su(d,l,pa)||Su(l,d,pa)?Wx(r,i,!0):!1}function Jx(n){return n.properties.length===0&&n.callSignatures.length===0&&n.constructSignatures.length===0&&!n.stringIndexInfo&&!n.numberIndexInfo}function Uu(n){return n.flags&524288?!Fl(n)&&Jx(dc(n)):n.flags&67108864?!0:n.flags&1048576?e.some(n.types,Uu):n.flags&2097152?e.every(n.types,Uu):!1}function Hv(n){return!!(e.getObjectFlags(n)&16)&&Uu(n)}function Kv(n){return n.flags&524288&&!Fl(n)&&io(n).length===0&&Xi(n,0)&&!Xi(n,1)||n.flags&3145728&&e.every(n.types,Kv)||!1}function Cg(n,t,r){if(n===t)return!0;var i=se(n)+","+se(t),l=gi.get(i);if(l!==void 0&&!(!(l&4)&&l&2&&r))return!!(l&1);if(n.escapedName!==t.escapedName||!(n.flags&256)||!(t.flags&256))return gi.set(i,2|4),!1;for(var d=Jn(t),A=0,B=io(Jn(n));A<B.length;A++){var Ae=B[A];if(Ae.flags&8){var We=Ji(d,Ae.escapedName);if(!We||!(We.flags&8))return r?(r(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(Ae),qt(ho(t),void 0,64)),gi.set(i,2|4)):gi.set(i,2),!1}}return gi.set(i,1),!0}function Vm(n,t,r,i){var l=n.flags,d=t.flags;if(d&3||l&131072||n===yn)return!0;if(d&131072)return!1;if(l&132&&d&4)return!0;if(l&128&&l&1024&&d&128&&!(d&1024)&&n.value===t.value)return!0;if(l&296&&d&8)return!0;if(l&256&&l&1024&&d&256&&!(d&1024)&&n.value===t.value)return!0;if(l&2112&&d&64)return!0;if(l&528&&d&16)return!0;if(l&12288&&d&4096)return!0;if(l&32&&d&32&&Cg(n.symbol,t.symbol,i))return!0;if(l&1024&&d&1024){if(l&1048576&&d&1048576&&Cg(n.symbol,t.symbol,i))return!0;if(l&2944&&d&2944&&n.value===t.value&&Cg(Ps(n.symbol),Ps(t.symbol),i))return!0}if(l&32768&&(!a||d&(32768|16384)))return!0;if(l&65536&&(!a||d&65536))return!0;if(l&524288&&d&67108864)return!0;if(r===pa||r===Ca){if(l&1)return!0;if(l&(8|256)&&!(l&1024)&&(d&32||d&256&&d&1024))return!0}return!1}function Su(n,t,r){if(Bu(n)&&(n=n.regularType),Bu(t)&&(t=t.regularType),n===t||r===Ca&&!(t.flags&131072)&&Vm(t,n,r)||r!==Ma&&Vm(n,t,r))return!0;if(n.flags&524288&&t.flags&524288){var i=r.get(Yv(n,t,!1,r));if(i!==void 0)return!!(i&1)}return n.flags&66846720||t.flags&66846720?zl(n,t,r,void 0):!1}function zx(n,t){return e.getObjectFlags(n)&4096&&!rE(t.escapedName)}function zl(n,t,r,i,l,d,A){var B,Ae,We,Ye,tn,bn=0,Mn=0,it=0,_t=!1,St=0,Yt,mr=[];e.Debug.assert(r!==Ma||!i,"no error reporting in identity checking");var or=jt(n,t,!!i,l);if(mr.length&&gn(),_t){var br=xn(i,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,qt(n),qt(t));A&&(A.errors||(A.errors=[])).push(br)}else if(B){if(d){var ta=d();ta&&(e.concatenateDiagnosticMessageChains(ta,B),B=ta)}var Ur=void 0;if(l&&i&&!or&&n.symbol){var ja=na(n.symbol);if(ja.originatingImport&&!e.isImportCall(ja.originatingImport)){var $i=zl(Jn(ja.target),t,r,void 0);if($i){var Sa=e.createDiagnosticForNode(ja.originatingImport,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);Ur=e.append(Ur,Sa)}}}var br=e.createDiagnosticForNodeFromMessageChain(i,B,Ur);Ae&&e.addRelatedInfo.apply(void 0,Tr([br],Ae)),A&&(A.errors||(A.errors=[])).push(br),(!A||!A.skipLogging)&&tt.add(br)}return i&&A&&A.skipLogging&&or===0&&e.Debug.assert(!!A.errors,"missed opportunity to interact with error."),or!==0;function ka(Gn){B=Gn.errorInfo,Yt=Gn.lastSkippedInfo,mr=Gn.incompatibleStack,St=Gn.overrideNextErrorInfo,Ae=Gn.relatedInfo}function Bt(){return{errorInfo:B,lastSkippedInfo:Yt,incompatibleStack:mr.slice(),overrideNextErrorInfo:St,relatedInfo:Ae?Ae.slice():void 0}}function Sn(Gn,Xn,Rt,zt,Fr){St++,Yt=void 0,mr.push([Gn,Xn,Rt,zt,Fr])}function gn(){var Gn=mr;mr=[];var Xn=Yt;if(Yt=void 0,Gn.length===1){wt.apply(void 0,Gn[0]),Xn&&er.apply(void 0,Tr([void 0],Xn));return}for(var Rt="",zt=[];Gn.length;){var Fr=Gn.pop(),Br=Fr[0],lr=Fr.slice(1);switch(Br.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:{Rt.indexOf("new ")===0&&(Rt="("+Rt+")");var On=""+lr[0];Rt.length===0?Rt=""+On:e.isIdentifierText(On,je.target)?Rt=Rt+"."+On:On[0]==="["&&On[On.length-1]==="]"?Rt=""+Rt+On:Rt=Rt+"["+On+"]";break}case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Rt.length===0){var Ot=Br;Br.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?Ot=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:Br.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(Ot=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),zt.unshift([Ot,lr[0],lr[1]])}else{var sr=Br.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||Br.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Qt=Br.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Br.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Rt=""+sr+Rt+"("+Qt+")"}break}default:return e.Debug.fail("Unhandled Diagnostic: "+Br.code)}}Rt?wt(Rt[Rt.length-1]===")"?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,Rt):zt.shift();for(var Wt=0,Ar=zt;Wt<Ar.length;Wt++){var Vr=Ar[Wt],Br=Vr[0],lr=Vr.slice(1),Gr=Br.elidedInCompatabilityPyramid;Br.elidedInCompatabilityPyramid=!1,wt.apply(void 0,Tr([Br],lr)),Br.elidedInCompatabilityPyramid=Gr}Xn&&er.apply(void 0,Tr([void 0],Xn))}function wt(Gn,Xn,Rt,zt,Fr){if(e.Debug.assert(!!i),mr.length&&gn(),Gn.elidedInCompatabilityPyramid)return;B=e.chainDiagnosticMessages(B,Gn,Xn,Rt,zt,Fr)}function At(Gn){e.Debug.assert(!!B),Ae?Ae.push(Gn):Ae=[Gn]}function er(Gn,Xn,Rt){mr.length&&gn();var zt=bl(Xn,Rt),Fr=zt[0],Br=zt[1];Rt.flags&262144&&Rt.immediateBaseConstraint!==void 0&&Wi(Xn,Rt.immediateBaseConstraint)&&wt(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Fr,Br,qt(Rt.immediateBaseConstraint)),Gn||(r===Ca?Gn=e.Diagnostics.Type_0_is_not_comparable_to_type_1:Fr===Br?Gn=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:Gn=e.Diagnostics.Type_0_is_not_assignable_to_type_1),wt(Gn,Fr,Br)}function gr(Gn,Xn){var Rt=Co(Gn.symbol)?qt(Gn,Gn.symbol.valueDeclaration):qt(Gn),zt=Co(Xn.symbol)?qt(Xn,Xn.symbol.valueDeclaration):qt(Xn);(_a===Gn&&ct===Xn||La===Gn&&ot===Xn||qr===Gn&&Ce===Xn||$_(!1)===Gn&&_n===Xn)&&wt(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,zt,Rt)}function Cr(Gn,Xn,Rt){if(rf(Gn)){var zt=Gn.target;return zt&&zt.readonly&&Og(Xn)&&(!ip(Xn)||Do(Xn)&&!Xn.target.readonly)?(Rt&&wt(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,qt(Gn),qt(Xn)),!1):Sd(Xn)}return rf(Xn)?Sd(Gn):ip(Gn)&&Ms(Xn)&&!ip(Xn)?(Rt&&wt(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,qt(Gn),qt(Xn)),!1):!0}function jt(Gn,Xn,Rt,zt,Fr){if(Rt===void 0&&(Rt=!1),Bu(Gn)&&(Gn=Gn.regularType),Bu(Xn)&&(Xn=Xn.regularType),Gn.flags&33554432&&(Gn=Gn.substitute),Xn.flags&33554432&&(Xn=Xn.typeVariable),Gn.flags&25165824&&(Gn=Cc(Gn,!1)),Xn.flags&25165824&&(Xn=Cc(Xn,!0)),Xn.flags&1048576&&Gn.flags&524288&&Xn.types.length<=3&&So(Xn,98304)){var Br=up(Xn,~98304);Br.flags&(1048576|131072)||(Xn=Br)}if(Gn===Xn)return-1;if(r===Ma)return la(Gn,Xn);if(r===Ca&&!(Xn.flags&131072)&&Vm(Xn,Gn,r)||Vm(Gn,Xn,r,Rt?wt:void 0))return-1;var lr=!!(e.getObjectFlags(Gn)&4096),On=!Fr&&wd(Gn)&&e.getObjectFlags(Gn)&32768;if(On){var Ot=Xn.flags&1048576?ir(Gn,Xn):void 0;if(Ea(Gn,Xn,Ot,Rt))return Rt&&er(zt,Gn,Xn),0}var sr=r!==Ca&&!Fr&&Gn.flags&(131068|524288|2097152)&&Gn!==_o&&Xn.flags&(524288|2097152)&&qv(Xn)&&(io(Gn).length>0||o_(Gn));if(sr&&!Xx(Gn,Xn,lr)){if(Rt){var Qt=oi(Gn,0),Wt=oi(Gn,1);Qt.length>0&&jt(Fi(Qt[0]),Xn,!1)||Wt.length>0&&jt(Fi(Wt[0]),Xn,!1)?wt(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,qt(Gn),qt(Xn)):wt(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,qt(Gn),qt(Xn))}return 0}var Ar=0,Vr=Bt(),Gr=!!Fr;if(Gn.flags&1048576)Ar=r===Ca?Qa(Gn,Xn,Rt&&!(Gn.flags&131068)):ni(Gn,Xn,Rt&&!(Gn.flags&131068));else{if(Xn.flags&1048576){if(Ar=ui(bf(Gn),Xn,Rt&&!(Gn.flags&131068)&&!(Xn.flags&131068)),Ar&&(On||sr)){var Ot=ir(Gn,Xn)||Jt(Xn);if(!ys(Gn,Ot,Rt,void 0,Gr))return 0}}else if(Xn.flags&2097152){if(Gr=!0,Ar=Nr(bf(Gn),Xn,Rt),Ar&&(On||sr)&&!ys(Gn,Xn,Rt,void 0,!1))return 0}else Gn.flags&2097152&&(Ar=Qa(Gn,Xn,!1));!Ar&&(Gn.flags&66846720||Xn.flags&66846720)&&((Ar=Ni(Gn,Xn,Rt,Gr))&&ka(Vr))}if(!Ar&&Gn.flags&(2097152|262144)){var si=a1(Gn.flags&2097152?Gn.types:[Gn],!!(Xn.flags&1048576));si&&(Gn.flags&2097152||Xn.flags&1048576)&&(Sf(si,function(oo){return oo!==Gn})&&((Ar=jt(si,Xn,!1,void 0,Gr))&&ka(Vr)))}if(!Ar&&Rt){var Or=St>0;if(Or&&St--,Gn.flags&524288&&Xn.flags&524288){var yi=B;Cr(Gn,Xn,Rt),B!==yi&&(Or=!!B)}if(Gn.flags&524288&&Xn.flags&131068)gr(Gn,Xn);else if(Gn.symbol&&Gn.flags&524288&&_o===Gn)wt(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(lr&&Xn.flags&2097152){var Yi=Xn.types,Hi=kd(m.IntrinsicAttributes,i),no=kd(m.IntrinsicClassAttributes,i);if(Hi!==_e&&no!==_e&&(e.contains(Yi,Hi)||e.contains(Yi,no)))return Ar}if(!zt&&Or)return Yt=[Gn,Xn],Ar;er(zt,Gn,Xn)}return Ar}function la(Gn,Xn){var Rt,zt=Gn.flags&Xn.flags;return zt&524288||zt&8388608||zt&16777216||zt&4194304||zt&33554432?Ni(Gn,Xn,!1,!1):zt&(1048576|2097152)&&((Rt=Di(Gn,Xn))&&(Rt&=Di(Xn,Gn)))?Rt:0}function Ea(Gn,Xn,Rt,zt){if(!ae&&e.getObjectFlags(Xn)&16384)return!1;if(im(Xn)){var Fr=!!(e.getObjectFlags(Gn)&4096);if((r===pa||r===Ca)&&(Tf(_o,Xn)||!Fr&&Uu(Xn)))return!1;if(Rt)return Ea(Gn,Rt,void 0,zt);for(var Br=function(Qt){if(Oa(Qt,Gn.symbol)&&!gy(Xn,Qt.escapedName,Fr)){if(zt){var Wt=gs(Xn,im);if(!i)return{value:e.Debug.fail()};if(e.isJsxAttributes(i)||e.isJsxOpeningLikeElement(i)||e.isJsxOpeningLikeElement(i.parent))Qt.valueDeclaration&&e.isJsxAttribute(Qt.valueDeclaration)&&(i=Qt.valueDeclaration.name),wt(e.Diagnostics.Property_0_does_not_exist_on_type_1,wa(Qt),qt(Wt));else{var Ar=Gn.symbol&&e.firstOrUndefined(Gn.symbol.declarations),Vr=void 0;if(Qt.valueDeclaration&&e.findAncestor(Qt.valueDeclaration,function(Or){return Or===Ar})){var Gr=Qt.valueDeclaration;e.Debug.assertNode(Gr,e.isObjectLiteralElementLike),i=Gr;var si=Gr.name;e.isIdentifier(si)&&(Vr=Ey(si,Wt))}Vr!==void 0?wt(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,wa(Qt),qt(Wt),Vr):wt(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,wa(Qt),qt(Wt))}}return{value:!0}}},lr=0,On=io(Gn);lr<On.length;lr++){var Ot=On[lr],sr=Br(Ot);if(typeof sr=="object")return sr.value}}return!1}function Oa(Gn,Xn){return Gn.valueDeclaration&&Xn.valueDeclaration&&Gn.valueDeclaration.parent===Xn.valueDeclaration}function Di(Gn,Xn){for(var Rt=-1,zt=Gn.types,Fr=0,Br=zt;Fr<Br.length;Fr++){var lr=Br[Fr],On=ui(lr,Xn,!1);if(!On)return 0;Rt&=On}return Rt}function ui(Gn,Xn,Rt){var zt=Xn.types;if(Xn.flags&1048576&&yf(zt,Gn))return-1;for(var Fr=0,Br=zt;Fr<Br.length;Fr++){var lr=Br[Fr],On=jt(Gn,lr,!1);if(On)return On}if(Rt){var Ot=ir(Gn,Xn)||ao(Gn,Xn)||ft(Gn,Xn)||Nt(Gn,Xn)||Ut(Gn,Xn);jt(Gn,Ot||zt[zt.length-1],!0)}return 0}function ao(Gn,Xn){var Rt=e.getObjectFlags(Gn);if(Rt&(4|16)&&Xn.flags&1048576)return e.find(Xn.types,function(zt){if(zt.flags&524288){var Fr=Rt&e.getObjectFlags(zt);if(Fr&4)return Gn.target===zt.target;if(Fr&16)return!!Gn.aliasSymbol&&Gn.aliasSymbol===zt.aliasSymbol}return!1})}function ft(Gn,Xn){if(e.getObjectFlags(Gn)&128&&of(Xn,Sd))return e.find(Xn.types,function(Rt){return!Sd(Rt)})}function Nt(Gn,Xn){var Rt=0,zt=oi(Gn,Rt).length>0||(Rt=1,oi(Gn,Rt).length>0);if(zt)return e.find(Xn.types,function(Fr){return oi(Fr,Rt).length>0})}function Ut(Gn,Xn){for(var Rt,zt=0,Fr=0,Br=Xn.types;Fr<Br.length;Fr++){var lr=Br[Fr],On=Zi([zc(Gn),zc(lr)]);if(On.flags&4194304)Rt=lr,zt=Infinity;else if(On.flags&1048576){var Ot=e.length(e.filter(On.types,sd));Ot>=zt&&(Rt=lr,zt=Ot)}else sd(On)&&1>=zt&&(Rt=lr,zt=1)}return Rt}function Jt(Gn){if(So(Gn,67108864)){var Xn=gs(Gn,function(Rt){return!(Rt.flags&131068)});if(!(Xn.flags&131072))return Xn}return Gn}function ir(Gn,Xn){if(Xn.flags&1048576&&Gn.flags&(2097152|524288)){var Rt=io(Gn);if(Rt){var zt=gb(Rt,Xn);if(zt)return Dg(Xn,e.map(zt,function(Fr){return[function(){return Jn(Fr)},Fr.escapedName]}),jt)}}return}function Nr(Gn,Xn,Rt){for(var zt=-1,Fr=Xn.types,Br=0,lr=Fr;Br<lr.length;Br++){var On=lr[Br],Ot=jt(Gn,On,Rt,void 0,!0);if(!Ot)return 0;zt&=Ot}return zt}function Qa(Gn,Xn,Rt){var zt=Gn.types;if(Gn.flags&1048576&&yf(zt,Xn))return-1;for(var Fr=zt.length,Br=0;Br<Fr;Br++){var lr=jt(zt[Br],Xn,Rt&&Br===Fr-1);if(lr)return lr}return 0}function ni(Gn,Xn,Rt){for(var zt=-1,Fr=Gn.types,Br=0,lr=Fr;Br<lr.length;Br++){var On=lr[Br],Ot=jt(On,Xn,Rt);if(!Ot)return 0;zt&=Ot}return zt}function Xa(Gn,Xn,Rt,zt,Fr){if(Gn===void 0&&(Gn=e.emptyArray),Xn===void 0&&(Xn=e.emptyArray),Rt===void 0&&(Rt=e.emptyArray),Gn.length!==Xn.length&&r===Ma)return 0;for(var Br=Gn.length<=Xn.length?Gn.length:Xn.length,lr=-1,On=0;On<Br;On++){var Ot=On<Rt.length?Rt[On]:1,sr=Ot&7;if(sr!==4){var Qt=Gn[On],Wt=Xn[On],Ar=-1;if(Ot&8?Ar=r===Ma?jt(Qt,Wt,!1):tp(Qt,Wt):sr===1?Ar=jt(Qt,Wt,zt,void 0,Fr):sr===2?Ar=jt(Wt,Qt,zt,void 0,Fr):sr===3?(Ar=jt(Wt,Qt,!1),Ar||(Ar=jt(Qt,Wt,zt,void 0,Fr))):(Ar=jt(Qt,Wt,zt,void 0,Fr),Ar&&(Ar&=jt(Wt,Qt,zt,void 0,Fr))),!Ar)return 0;lr&=Ar}}return lr}function Ni(Gn,Xn,Rt,zt){if(_t)return 0;var Fr=Yv(Gn,Xn,zt,r),Br=r.get(Fr);if(Br!==void 0&&!(Rt&&Br&2&&!(Br&4))){if(Mr){var lr=Br&24;lr&8&&Ei(Gn,xo),lr&16&&Ei(Gn,Hs)}return Br&1?-1:0}if(!We)We=[],Ye=[],tn=[];else{for(var On=0;On<bn;On++)if(Fr===We[On])return 1;if(Mn===100)return _t=!0,0}var Ot=bn;We[bn]=Fr,bn++,Ye[Mn]=Gn,tn[Mn]=Xn,Mn++;var sr=it;!(it&1)&&Qv(Gn,Ye,Mn)&&(it|=1),!(it&2)&&Qv(Xn,tn,Mn)&&(it|=2);var Qt,Wt=0;Mr&&(Qt=Mr,Mr=function(Vr){return Wt|=Vr?16:8,Qt(Vr)});var Ar=it!==3?Po(Gn,Xn,Rt,zt):1;if(Mr&&(Mr=Qt),it=sr,Mn--,Ar){if(Ar===-1||Mn===0){for(var On=Ot;On<bn;On++)r.set(We[On],1|Wt);bn=Ot}}else r.set(Fr,(Rt?4:0)|2|Wt),bn=Ot;return Ar}function Po(Gn,Xn,Rt,zt){var Fr=Gn.flags&Xn.flags;if(r===Ma&&!(Fr&524288)){if(Fr&4194304)return jt(Gn.type,Xn.type,!1);var Br=0;return Fr&8388608&&((Br=jt(Gn.objectType,Xn.objectType,!1))&&(Br&=jt(Gn.indexType,Xn.indexType,!1)))||Fr&16777216&&(Gn.root.isDistributive===Xn.root.isDistributive&&((Br=jt(Gn.checkType,Xn.checkType,!1))&&((Br&=jt(Gn.extendsType,Xn.extendsType,!1))&&((Br&=jt(ad(Gn),ad(Xn),!1))&&(Br&=jt(id(Gn),id(Xn),!1))))))?Br:Fr&33554432?jt(Gn.substitute,Xn.substitute,!1):0}var lr,On,Ot=!1,sr=Bt();if(Gn.flags&(524288|16777216)&&Gn.aliasSymbol&&Gn.aliasTypeArguments&&Gn.aliasSymbol===Xn.aliasSymbol&&!(Gn.aliasTypeArgumentsContainsMarker||Xn.aliasTypeArgumentsContainsMarker)){var Qt=Jv(Gn.aliasSymbol),Wt=PS(Gn.aliasTypeArguments,Xn.aliasTypeArguments,Qt,zt);if(Wt!==void 0)return Wt}if(Xn.flags&262144){if(e.getObjectFlags(Gn)&32&&jt(zc(Xn),uc(Gn))&&!(Jc(Gn)&4)){var Ar=qc(Gn),Vr=xl(Xn,Fu(Gn));if(lr=jt(Ar,Vr,Rt))return lr}}else if(Xn.flags&4194304){if(Gn.flags&4194304&&(lr=jt(Xn.type,Gn.type,!1)))return lr;var Gr=Jh(Xn.type);if(Gr&&jt(Gn,zc(Gr,Xn.stringsOnly),Rt)===-1)return-1}else if(Xn.flags&8388608){if(r!==Ma){var si=Xn.objectType,Or=Xn.indexType,yi=cl(si)||si,Yi=cl(Or)||Or;if(!Qd(yi)&&!qp(Yi)){var Hi=2|(yi!==si?1:0),Gr=bd(yi,Yi,void 0,Hi);if(Gr&&(lr=jt(Gn,Gr,Rt)))return lr}}}else if(Fl(Xn)){var no=qc(Xn),oo=Jc(Xn);if(!(oo&8)){if(no.flags&8388608&&no.objectType===Gn&&no.indexType===Fu(Xn))return-1;if(!Fl(Gn)){var ws=uc(Xn),dd=zc(Gn,void 0,!0),fs=oo&4,Id=fs?Jf(ws,dd):void 0;if(fs?!(Id.flags&131072):jt(ws,dd)){var Nd=Fu(Xn),uf=Id?Zi([Id,Nd]):Nd,Vr=xl(Gn,uf),Ar=qc(Xn);if(lr=jt(Vr,Ar,Rt))return lr}On=B,ka(sr)}}}if(Gn.flags&8650752)if(Gn.flags&8388608&&Xn.flags&8388608){if((lr=jt(Gn.objectType,Xn.objectType,Rt))&&(lr&=jt(Gn.indexType,Xn.indexType,Rt)),lr)return ka(sr),lr}else{var Gr=zf(Gn);if(!Gr||Gn.flags&262144&&Gr.flags&1){if(lr=jt(Wn,up(Xn,~67108864)))return ka(sr),lr}else{if(lr=jt(Gr,Xn,!1,void 0,zt))return ka(sr),lr;if(lr=jt(Jl(Gr,Gn),Xn,Rt,void 0,zt))return ka(sr),lr}}else if(Gn.flags&4194304){if(lr=jt(va,Xn,Rt))return ka(sr),lr}else if(Gn.flags&16777216)if(Xn.flags&16777216){var df=Gn.root.inferTypeParameters,ff=Gn.extendsType,Fh=void 0;if(df){var Lp=sp(df,void 0,0,jt);Dc(Lp.inferences,Xn.extendsType,ff,64|128),ff=Ei(ff,Lp.mapper),Fh=Lp.mapper}if(Xc(ff,Xn.extendsType)&&(jt(Gn.checkType,Xn.checkType)||jt(Xn.checkType,Gn.checkType))&&((lr=jt(Ei(ad(Gn),Fh),ad(Xn),Rt))&&(lr&=jt(id(Gn),id(Xn),Rt)),lr))return ka(sr),lr}else{var Ip=C_(Gn);if(Ip&&(lr=jt(Ip,Xn,Rt)))return ka(sr),lr;var Np=zh(Gn);if(Np&&(lr=jt(Np,Xn,Rt)))return ka(sr),lr}else{if(r!==Er&&QS(Xn)&&Uu(Gn))return-1;if(Fl(Xn))return Fl(Gn)&&(lr=Ss(Gn,Xn,Rt))?(ka(sr),lr):0;var Em=!!(Gn.flags&131068);if(r!==Ma)Gn=us(Gn);else if(Fl(Gn))return 0;if(e.getObjectFlags(Gn)&4&&e.getObjectFlags(Xn)&4&&Gn.target===Xn.target&&!(e.getObjectFlags(Gn)&8192||e.getObjectFlags(Xn)&8192)){var Qt=Lg(Gn.target),Wt=PS(go(Gn),go(Xn),Qt,zt);if(Wt!==void 0)return Wt}else{if(ip(Xn)?Ms(Gn)||Do(Gn):Ms(Xn)&&Do(Gn)&&!Gn.target.readonly)return r!==Ma?jt(ms(Gn,1)||oe,ms(Xn,1)||oe,Rt):0;if(r===Er&&Uu(Xn)&&e.getObjectFlags(Xn)&32768&&!Uu(Gn))return 0}if(Gn.flags&(524288|2097152)&&Xn.flags&524288){var Op=Rt&&B===sr.errorInfo&&!Em;if(lr=ys(Gn,Xn,Op,void 0,zt),lr&&(lr&=ls(Gn,Xn,0,Op),lr&&(lr&=ls(Gn,Xn,1,Op),lr&&(lr&=tu(Gn,Xn,0,Em,Op),lr&&(lr&=tu(Gn,Xn,1,Em,Op))))),Ot&&lr)B=On||B||sr.errorInfo;else if(lr)return lr}if(Gn.flags&(524288|2097152)&&Xn.flags&1048576){var NS=up(Xn,524288);if(NS.flags&1048576){var OS=Dd(Gn,NS);if(OS)return OS}}}return 0;function PS(QD,h_,Tm,ZD){if(lr=Xa(QD,h_,Tm,Rt,ZD))return lr;if(e.some(Tm,function(g_){return!!(g_&24)})){On=void 0,ka(sr);return}var MS=h_&&Qx(h_,Tm);if(Ot=!MS,Tm!==e.emptyArray&&!MS){if(Ot&&!(Rt&&e.some(Tm,function(g_){return(g_&7)===0})))return 0;On=B,ka(sr)}}}function xo(Gn){return Mr&&(Gn===rr||Gn===xa||Gn===Fa)&&Mr(!1),Gn}function Hs(Gn){return Mr&&(Gn===rr||Gn===xa||Gn===Fa)&&Mr(!0),Gn}function Ss(Gn,Xn,Rt){var zt=r===Ca||(r===Ma?Jc(Gn)===Jc(Xn):qh(Gn)<=qh(Xn));if(zt){var Fr,Br=uc(Xn),lr=Ei(uc(Gn),qh(Gn)<0?xo:Hs);if(Fr=jt(Br,lr,Rt)){var On=wl([Fu(Gn)],[Fu(Xn)]);return Fr&jt(Ei(qc(Gn),On),qc(Xn),Rt)}}return 0}function Dd(Gn,Xn){var Rt=yu(Gn),zt=gb(Rt,Xn);if(!zt)return 0;for(var Fr=1,Br=0,lr=zt;Br<lr.length;Br++){var On=lr[Br];if(Fr*=$w(Jn(On)),Fr>25)return 0}for(var Ot=new Array(zt.length),sr=e.createUnderscoreEscapedMap(),Qt=0;Qt<zt.length;Qt++){var On=zt[Qt],Wt=Jn(On);Ot[Qt]=Wt.flags&1048576?Wt.types:[Wt],sr.set(On.escapedName,!0)}for(var Ar=e.cartesianProduct(Ot),Vr=[],Gr=function(dd){var fs=!1;e:for(var Id=0,Nd=Xn.types;Id<Nd.length;Id++){for(var uf=Nd[Id],df=function(Lp){var Ip=zt[Lp],Np=td(uf,Ip.escapedName);if(!Np)return"continue-outer";if(Ip===Np)return"continue";var Em=fo(Gn,Xn,Ip,Np,function(Op){return dd[Lp]},!1,!1);if(!Em)return"continue-outer"},ff=0;ff<zt.length;ff++){var Fh=df(ff);switch(Fh){case"continue-outer":continue e}}e.pushIfUnique(Vr,uf,e.equateValues),fs=!0}if(!fs)return{value:0}},si=0,Or=Ar;si<Or.length;si++){var yi=Or[si],Yi=Gr(yi);if(typeof Yi=="object")return Yi.value}for(var Hi=-1,no=0,oo=Vr;no<oo.length;no++){var ws=oo[no];if(Hi&=ys(Gn,ws,!1,sr,!1),Hi&&(Hi&=ls(Gn,ws,0,!1),Hi&&(Hi&=ls(Gn,ws,1,!1),Hi&&(Hi&=tu(Gn,ws,0,!1,!1),Hi&&(Hi&=tu(Gn,ws,1,!1,!1))))),!Hi)return Hi}return Hi}function ca(Gn,Xn){if(!Xn||Gn.length===0)return Gn;for(var Rt,zt=0;zt<Gn.length;zt++)Xn.has(Gn[zt].escapedName)?Rt||(Rt=Gn.slice(0,zt)):Rt&&Rt.push(Gn[zt]);return Rt||Gn}function Vi(Gn,Xn,Rt,zt,Fr){var Br=a&&!!(e.getCheckFlags(Xn)&48),lr=Rt(Gn);if(e.getCheckFlags(Xn)&65536&&!na(Xn).type){var On=na(Xn);e.Debug.assertDefined(On.deferralParent),e.Debug.assertDefined(On.deferralConstituents);for(var Ot=!!(On.deferralParent.flags&1048576),sr=Ot?0:-1,Qt=On.deferralConstituents,Wt=0,Ar=Qt;Wt<Ar.length;Wt++){var Vr=Ar[Wt],Gr=jt(lr,Vr,!1,void 0,!Ot);if(Ot){if(Gr)return Gr}else{if(!Gr)return jt(lr,ol(Jn(Xn),Br),zt);sr&=Gr}}return Ot&&!sr&&Br&&(sr=jt(lr,un)),Ot&&!sr&&zt?jt(lr,ol(Jn(Xn),Br),zt):sr}else return jt(lr,ol(Jn(Xn),Br),zt,void 0,Fr)}function fo(Gn,Xn,Rt,zt,Fr,Br,lr){var On=e.getDeclarationModifierFlagsFromSymbol(Rt),Ot=e.getDeclarationModifierFlagsFromSymbol(zt);if(On&8||Ot&8){var sr=Rt.valueDeclaration!==zt.valueDeclaration;if(e.getCheckFlags(Rt)&1024&&sr)return Br&&wt(e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,wa(Rt),qt(Gn)),0;if(sr)return Br&&(On&8&&Ot&8?wt(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,wa(zt)):wt(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,wa(zt),qt(On&8?Gn:Xn),qt(On&8?Xn:Gn))),0}else if(Ot&16){if(!ew(Rt,zt))return Br&&wt(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,wa(zt),qt(tf(Rt)||Gn),qt(tf(zt)||Xn)),0}else if(On&16)return Br&&wt(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,wa(zt),qt(Gn),qt(Xn)),0;var Qt=Vi(Rt,zt,Fr,Br,lr);return Qt?r!==Ca&&Rt.flags&16777216&&!(zt.flags&16777216)?(Br&&wt(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,wa(zt),qt(Gn),qt(Xn)),0):Qt:(Br&&Sn(e.Diagnostics.Types_of_property_0_are_incompatible,wa(zt)),0)}function ys(Gn,Xn,Rt,zt,Fr){if(r===Ma)return is(Gn,Xn,zt);var Br=r===Er&&!wd(Gn)&&!Ng(Gn)&&!Do(Gn),lr=Jg(Gn,Xn,Br,!1);if(lr){if(Rt){var On=e.arrayFrom(ub(Gn,Xn,Br,!1)),Ot=!1;if((!l||l.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&l.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(Ot=!0),On.length===1){var sr=wa(lr);wt.apply(void 0,Tr([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,sr],bl(Gn,Xn))),e.length(lr.declarations)&&At(e.createDiagnosticForNode(lr.declarations[0],e.Diagnostics._0_is_declared_here,sr)),Ot&&B&&St++}else Cr(Gn,Xn,!1)&&(On.length>5?wt(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,qt(Gn),qt(Xn),e.map(On.slice(0,4),function(df){return wa(df)}).join(", "),On.length-4):wt(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,qt(Gn),qt(Xn),e.map(On,function(df){return wa(df)}).join(", ")),Ot&&B&&St++)}return 0}if(wd(Xn))for(var Qt=0,Wt=ca(io(Gn),zt);Qt<Wt.length;Qt++){var Ar=Wt[Qt];if(!td(Xn,Ar.escapedName)){var Vr=Jn(Ar);if(!(Vr===un||Vr===Rn||Vr===at))return Rt&&wt(e.Diagnostics.Property_0_does_not_exist_on_type_1,wa(Ar),qt(Xn)),0}}var Gr=-1;if(Do(Xn)){var si=ju(Xn);if(si){if(!Do(Gn))return 0;var Or=ju(Gn);if(Or&&!jt(Or,si,Rt))return Rt&&wt(e.Diagnostics.Rest_signatures_are_incompatible),0;for(var yi=_d(Xn)-1,Yi=_d(Gn)-(Or?1:0),Hi=go(Gn),no=yi;no<Yi;no++){var oo=jt(Hi[no],si,Rt);if(!oo)return Rt&&wt(e.Diagnostics.Property_0_is_incompatible_with_rest_element_type,""+no),0;Gr&=oo}}}for(var ws=Xn.flags&1048576?k_(Xn):io(Xn),dd=Do(Gn)&&Do(Xn),fs=0,Id=ca(ws,zt);fs<Id.length;fs++){var Nd=Id[fs],uf=Nd.escapedName;if(!(Nd.flags&4194304)&&(!dd||Cl(uf)||uf==="length")){var Ar=Ji(Gn,uf);if(Ar&&Ar!==Nd){var oo=fo(Gn,Xn,Ar,Nd,Jn,Rt,Fr);if(!oo)return 0;Gr&=oo}}}return Gr}function is(Gn,Xn,Rt){if(!(Gn.flags&524288&&Xn.flags&524288))return 0;var zt=ca(yu(Gn),Rt),Fr=ca(yu(Xn),Rt);if(zt.length!==Fr.length)return 0;for(var Br=-1,lr=0,On=zt;lr<On.length;lr++){var Ot=On[lr],sr=td(Xn,Ot.escapedName);if(!sr)return 0;var Qt=$v(Ot,sr,jt);if(!Qt)return 0;Br&=Qt}return Br}function ls(Gn,Xn,Rt,zt){if(r===Ma)return hc(Gn,Xn,Rt);if(Xn===bt||Gn===bt)return-1;var Fr=Gn.symbol&&Zc(Gn.symbol.valueDeclaration),Br=Xn.symbol&&Zc(Xn.symbol.valueDeclaration),lr=oi(Gn,Fr&&Rt===1?0:Rt),On=oi(Xn,Br&&Rt===1?0:Rt);if(Rt===1&&lr.length&&On.length){if(e.isAbstractConstructorType(Gn)&&!e.isAbstractConstructorType(Xn))return zt&&wt(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Ld(lr[0],On[0],zt))return 0}var Ot=-1,sr=Bt(),Qt=Rt===1?Yl:xs;if(e.getObjectFlags(Gn)&64&&e.getObjectFlags(Xn)&64&&Gn.symbol===Xn.symbol)for(var Wt=0;Wt<On.length;Wt++){var Ar=yo(lr[Wt],On[Wt],!0,zt,Qt(lr[Wt],On[Wt]));if(!Ar)return 0;Ot&=Ar}else if(lr.length===1&&On.length===1){var Vr=r===Ca||!!je.noStrictGenericChecks;Ot=yo(lr[0],On[0],Vr,zt,Qt(lr[0],On[0]))}else{e:for(var Gr=0,si=On;Gr<si.length;Gr++){for(var Or=si[Gr],yi=zt,Yi=0,Hi=lr;Yi<Hi.length;Yi++){var no=Hi[Yi],Ar=yo(no,Or,!0,yi,Qt(no,Or));if(Ar){Ot&=Ar,ka(sr);continue e}yi=!1}return yi&&wt(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,qt(Gn),Bs(Or,void 0,void 0,Rt)),0}}return Ot}function xs(Gn,Xn){return Gn.parameters.length===0&&Xn.parameters.length===0?function(Rt,zt){return Sn(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,qt(Rt),qt(zt))}:function(Rt,zt){return Sn(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,qt(Rt),qt(zt))}}function Yl(Gn,Xn){return Gn.parameters.length===0&&Xn.parameters.length===0?function(Rt,zt){return Sn(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,qt(Rt),qt(zt))}:function(Rt,zt){return Sn(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,qt(Rt),qt(zt))}}function yo(Gn,Xn,Rt,zt,Fr){return kg(Rt?Xf(Gn):Gn,Rt?Xf(Xn):Xn,0,!1,zt,wt,Fr,jt)}function hc(Gn,Xn,Rt){var zt=oi(Gn,Rt),Fr=oi(Xn,Rt);if(zt.length!==Fr.length)return 0;for(var Br=-1,lr=0;lr<zt.length;lr++){var On=Yp(zt[lr],Fr[lr],!1,!1,!1,jt);if(!On)return 0;Br&=On}return Br}function Ic(Gn,Xn,Rt,zt){for(var Fr=-1,Br=0,lr=yu(Gn);Br<lr.length;Br++){var On=lr[Br];if(zx(Gn,On))continue;if(On.nameType&&On.nameType.flags&8192)continue;if(Rt===0||Cl(On.escapedName)){var Ot=jt(Jn(On),Xn,zt);if(!Ot)return zt&&wt(e.Diagnostics.Property_0_is_incompatible_with_index_signature,wa(On)),0;Fr&=Ot}}return Fr}function nu(Gn,Xn,Rt){var zt=jt(Gn.type,Xn.type,Rt);return!zt&&Rt&&wt(e.Diagnostics.Index_signatures_are_incompatible),zt}function tu(Gn,Xn,Rt,zt,Fr){if(r===Ma)return Uf(Gn,Xn,Rt);var Br=Xi(Xn,Rt);if(!Br||Br.type.flags&1&&!zt)return-1;var lr=Xi(Gn,Rt)||Rt===1&&Xi(Gn,0);if(lr)return nu(lr,Br,Fr);if(Fl(Gn))return Rt===0?jt(qc(Gn),Br.type,Fr):0;if(Vg(Gn)){var On=-1;if(Rt===0){var Ot=Xi(Gn,1);Ot&&(On=nu(Ot,Br,Fr))}return On&&(On&=Ic(Gn,Br.type,Rt,Fr)),On}return Fr&&wt(e.Diagnostics.Index_signature_is_missing_in_type_0,qt(Gn)),0}function Uf(Gn,Xn,Rt){var zt=Xi(Xn,Rt),Fr=Xi(Gn,Rt);return!Fr&&!zt?-1:Fr&&zt&&Fr.isReadonly===zt.isReadonly?jt(Fr.type,zt.type):0}function Ld(Gn,Xn,Rt){if(!Gn.declaration||!Xn.declaration)return!0;var zt=e.getSelectedModifierFlags(Gn.declaration,24),Fr=e.getSelectedModifierFlags(Xn.declaration,24);return Fr===8||(Fr===16&&zt!==8||Fr!==16&&!zt)?!0:(Rt&&wt(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,zi(zt),zi(Fr)),!1)}}function Dg(n,t,r,i){for(var l=n.types.map(function(St){return}),d=0,A=t;d<A.length;d++)for(var B=A[d],Ae=B[0],We=B[1],Ye=0,tn=0,bn=n.types;tn<bn.length;tn++){var Mn=bn[tn],it=Zo(Mn,We);it&&r(Ae(),it)?l[Ye]=l[Ye]===void 0?!0:l[Ye]:l[Ye]=!1,Ye++}var _t=l.indexOf(!0);return _t===-1||l.indexOf(!0,_t+1)!==-1?i:n.types[_t]}function qv(n){if(n.flags&524288){var t=dc(n);return t.callSignatures.length===0&&t.constructSignatures.length===0&&!t.stringIndexInfo&&!t.numberIndexInfo&&t.properties.length>0&&e.every(t.properties,function(r){return!!(r.flags&16777216)})}return n.flags&2097152?e.every(n.types,qv):!1}function Xx(n,t,r){for(var i=0,l=io(n);i<l.length;i++){var d=l[i];if(gy(t,d.escapedName,r))return!0}return!1}function Yx(n,t,r){var i=bu(n,e.map(n.typeParameters,function(l){return l===t?r:l}));return i.objectFlags|=8192,i}function Jv(n){var t=na(n);return zv(t.typeParameters,t,function(r,i,l){var d=Qf(n,Td(t.typeParameters,_f(i,l)));return d.aliasTypeArgumentsContainsMarker=!0,d})}function zv(n,t,r){n===void 0&&(n=e.emptyArray);var i=t.variances;if(!i){t.variances=e.emptyArray,i=[];for(var l=function(Ae){var We=!1,Ye=!1,tn=Mr;Mr=function(_t){return _t?Ye=!0:We=!0};var bn=r(t,Ae,rr),Mn=r(t,Ae,xa),it=(Wi(Mn,bn)?1:0)|(Wi(bn,Mn)?2:0);it===3&&Wi(r(t,Ae,Fa),bn)&&(it=4),Mr=tn,(We||Ye)&&(We&&(it|=8),Ye&&(it|=16)),i.push(it)},d=0,A=n;d<A.length;d++){var B=A[d];l(B)}t.variances=i}return i}function Lg(n){return n===yr||n===Jr||n.objectFlags&8?e.emptyArray:zv(n.typeParameters,n,Yx)}function Qx(n,t){for(var r=0;r<t.length;r++)if((t[r]&7)===1&&n[r].flags&16384)return!0;return!1}function Xv(n){return n.flags&262144&&!ll(n)}function Zx(n){return!!(e.getObjectFlags(n)&4)&&!n.node}function Um(n){return Zx(n)&&e.some(go(n),function(t){return Xv(t)||Um(t)})}function Ig(n,t,r){r===void 0&&(r=0);for(var i=""+n.target.id,l=0,d=go(n);l<d.length;l++){var A=d[l];if(Xv(A)){var B=t.indexOf(A);B<0&&(B=t.length,t.push(A)),i+="="+B}else r<4&&Um(A)?i+="<"+Ig(A,t,r+1)+">":i+="-"+A.id}return i}function Yv(n,t,r,i){if(i===Ma&&n.id>t.id){var l=n;n=t,t=l}var d=r?"&":"";if(Um(n)&&Um(t)){var A=[];return Ig(n,A)+","+Ig(t,A)+d}return n.id+","+t.id+d}function Xp(n,t){if(e.getCheckFlags(n)&6){for(var r=0,i=n.containingType.types;r<i.length;r++){var l=i[r],d=Ji(l,n.escapedName),A=d&&Xp(d,t);if(A)return A}return}return t(n)}function tf(n){return n.parent&&n.parent.flags&32?ho(Ps(n)):void 0}function $x(n,t){return Xp(n,function(r){var i=tf(r);return i?Ra(i,t):!1})}function ew(n,t){return!Xp(t,function(r){return e.getDeclarationModifierFlagsFromSymbol(r)&16?!$x(n,tf(r)):!1})}function nw(n,t){return Xp(t,function(r){return e.getDeclarationModifierFlagsFromSymbol(r)&16?!Ra(n,tf(r)):!1})?void 0:n}function Qv(n,t,r){if(r>=5&&n.flags&524288){var i=n.symbol;if(i)for(var l=0,d=0;d<r;d++){var A=t[d];if(A.flags&524288&&A.symbol===i&&(l++,l>=5))return!0}}if(r>=5&&n.flags&8388608)for(var B=Zv(n),l=0,d=0;d<r;d++){var A=t[d];if(Zv(A)===B&&(l++,l>=5))return!0}return!1}function Zv(n){for(var t=n;t.flags&8388608;)t=t.objectType;return t}function tw(n,t){return $v(n,t,tp)!==0}function $v(n,t,r){if(n===t)return-1;var i=e.getDeclarationModifierFlagsFromSymbol(n)&24,l=e.getDeclarationModifierFlagsFromSymbol(t)&24;if(i!==l)return 0;if(i){if(Cp(n)!==Cp(t))return 0}else if((n.flags&16777216)!==(t.flags&16777216))return 0;return $c(n)!==$c(t)?0:r(Jn(n),Jn(t))}function rw(n,t,r){var i=Vl(n),l=Vl(t),d=wu(n),A=wu(t),B=qu(n),Ae=qu(t);return i===l&&d===A&&B===Ae?!0:!!(r&&d<=A)}function Yp(n,t,r,i,l,d){if(n===t)return-1;if(!rw(n,t,r))return 0;if(e.length(n.typeParameters)!==e.length(t.typeParameters))return 0;if(t.typeParameters){for(var A=wl(n.typeParameters,t.typeParameters),B=0;B<t.typeParameters.length;B++){var Ae=n.typeParameters[B],We=t.typeParameters[B];if(!(Ae===We||d(Ei(jp(Ae),A)||dn,jp(We)||dn)&&d(Ei(zd(Ae),A)||dn,zd(We)||dn)))return 0}n=$d(n,A,!0)}var Ye=-1;if(!i){var tn=yd(n);if(tn){var bn=yd(t);if(bn){var Mn=d(tn,bn);if(!Mn)return 0;Ye&=Mn}}}for(var it=Vl(t),B=0;B<it;B++){var Ae=Zs(n,B),We=Zs(t,B),Mn=d(We,Ae);if(!Mn)return 0;Ye&=Mn}if(!l){var _t=ul(n),St=ul(t);Ye&=_t||St?aw(_t,St,d):d(Fi(n),Fi(t))}return Ye}function aw(n,t,r){return n&&t&&fg(n,t)?n.type===t.type?-1:n.type&&t.type?r(n.type,t.type):0:0}function iw(n){for(var t,r=0,i=n;r<i.length;r++){var l=i[r],d=Bl(l);if(t||(t=d),d===l||d!==t)return!1}return!0}function eb(n){return iw(n)?Wr(n):e.reduceLeft(n,function(t,r){return Tu(t,r)?r:t})}function ow(n){if(!a)return eb(n);var t=e.filter(n,function(r){return!(r.flags&98304)});return t.length?Fg(eb(t),tb(n)&98304):Wr(n,2)}function sw(n){return e.reduceLeft(n,function(t,r){return Tu(r,t)?r:t})}function Ms(n){return!!(e.getObjectFlags(n)&4)&&(n.target===yr||n.target===Jr)}function ip(n){return!!(e.getObjectFlags(n)&4)&&n.target===Jr}function jm(n){return Ms(n)?go(n)[0]:void 0}function Sd(n){return Ms(n)||!(n.flags&98304)&&Wi(n,en)}function Ng(n){var t=Ms(n)?go(n)[0]:void 0;return t===Rn||t===wr}function rf(n){return Do(n)||!!Ji(n,"0")}function Og(n){return Sd(n)||rf(n)}function lw(n,t){var r=Zo(n,""+t);return r||(Sf(n,Do)?Ws(n,function(i){return ju(i)||un}):void 0)}function cw(n){return!(n.flags&(109440|131072))}function sd(n){return!!(n.flags&109440)}function op(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:e.every(n.types,sd):sd(n)}function Bl(n){return n.flags&1024?Hf(n):n.flags&128?ct:n.flags&256?ot:n.flags&2048?dt:n.flags&512?Ce:n.flags&1048576?Wr(e.sameMap(n.types,Bl)):n}function xd(n){return n.flags&1024&&Bu(n)?Hf(n):n.flags&128&&Bu(n)?ct:n.flags&256&&Bu(n)?ot:n.flags&2048&&Bu(n)?dt:n.flags&512&&Bu(n)?Ce:n.flags&1048576?Wr(e.sameMap(n.types,xd)):n}function nb(n){return n.flags&8192?_n:n.flags&1048576?Wr(e.sameMap(n.types,nb)):n}function Pg(n,t){return fm(n,t)||(n=nb(xd(n))),n}function uw(n,t,r){if(n&&sd(n)){var i=t?r?xp(t):t:void 0;n=Pg(n,i)}return n}function Mg(n,t,r,i){if(n&&sd(n)){var l=t?Jd(r,t,i):void 0;n=Pg(n,l)}return n}function Do(n){return!!(e.getObjectFlags(n)&4&&n.target.objectFlags&8)}function ju(n){return n.target.hasRestElement?go(n)[n.target.typeParameters.length-1]:void 0}function dw(n){var t=ju(n);return t&&Is(t)}function Wm(n){return _d(n)-(n.target.hasRestElement?1:0)}function Rg(n){var t=n.value;return t.base10Value==="0"}function tb(n){for(var t=0,r=0,i=n;r<i.length;r++){var l=i[r];t|=kl(l)}return t}function kl(n){return n.flags&1048576?tb(n.types):n.flags&128?n.value===""?128:0:n.flags&256?n.value===0?256:0:n.flags&2048?Rg(n)?2048:0:n.flags&512?n===Ct||n===st?512:0:n.flags&117724}function rb(n){return kl(n)&117632?gs(n,function(t){return!(kl(t)&117632)}):n}function fw(n){return Ws(n,pw)}function pw(n){return n.flags&4?ks:n.flags&8?Rs:n.flags&64?ml:n===st||n===Ct||n.flags&(16384|32768|65536)||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&Rg(n)?n:Dt}function Fg(n,t){var r=t&~n.flags&(32768|65536);return r===0?n:r===32768?Wr([n,un]):r===65536?Wr([n,Bn]):Wr([n,un,Bn])}function xu(n){return e.Debug.assert(a),n.flags&32768?n:Wr([n,un])}function mw(n){return vn||(vn=gf("NonNullable",524288,void 0)||pn),vn!==pn?Qf(vn,[n]):hs(n,2097152)}function Wu(n){return a?mw(n):n}function ab(n){return a?Wr([n,at]):n}function hw(n){return n!==at}function Gg(n){return a?gs(n,hw):n}function Bg(n,t,r){return r?e.isOutermostOptionalChain(t)?xu(n):ab(n):n}function Qp(n,t){return e.isExpressionOfOptionalChainRoot(t)?Wu(n):e.isOptionalChain(t)?Gg(n):n}function gw(n,t){return(n.flags&(8|4|512))!==0&&(t.flags&(8|4|16))!==0}function Vg(n){return!!(n.symbol&&(n.symbol.flags&(4096|2048|384|512))!==0&&!o_(n))||!!(e.getObjectFlags(n)&2048&&Vg(n.source))}function vf(n,t){var r=Ga(n.flags,n.escapedName,e.getCheckFlags(n)&8);return r.declarations=n.declarations,r.parent=n.parent,r.type=t,r.target=n,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration),n.nameType&&(r.nameType=n.nameType),r}function yw(n,t){for(var r=e.createSymbolTable(),i=0,l=yu(n);i<l.length;i++){var d=l[i],A=Jn(d),B=t(A);r.set(d.escapedName,B===A?d:vf(d,B))}return r}function bf(n){if(!(wd(n)&&e.getObjectFlags(n)&32768))return n;var t=n.regularType;if(t)return t;var r=n,i=yw(n,bf),l=No(r.symbol,i,r.callSignatures,r.constructSignatures,r.stringIndexInfo,r.numberIndexInfo);return l.flags=r.flags,l.objectFlags|=r.objectFlags&~32768,n.regularType=l,l}function ib(n,t,r){return{parent:n,propertyName:t,siblings:r,resolvedProperties:void 0}}function ob(n){if(!n.siblings){for(var t=[],r=0,i=ob(n.parent);r<i.length;r++){var l=i[r];if(wd(l)){var d=td(l,n.propertyName);d&&of(Jn(d),function(A){t.push(A)})}}n.siblings=t}return n.siblings}function _w(n){if(!n.resolvedProperties){for(var t=e.createMap(),r=0,i=ob(n);r<i.length;r++){var l=i[r];if(wd(l)&&!(e.getObjectFlags(l)&1024))for(var d=0,A=io(l);d<A.length;d++){var B=A[d];t.set(B.escapedName,B)}}n.resolvedProperties=e.arrayFrom(t.values())}return n.resolvedProperties}function vw(n,t){if(!(n.flags&4))return n;var r=Jn(n),i=t&&ib(t,n.escapedName,void 0),l=Ug(r,i);return l===r?n:vf(n,l)}function bw(n){var t=nn.get(n.escapedName);if(t)return t;var r=vf(n,un);return r.flags|=16777216,nn.set(n.escapedName,r),r}function Ew(n,t){for(var r=e.createSymbolTable(),i=0,l=yu(n);i<l.length;i++){var d=l[i];r.set(d.escapedName,vw(d,t))}if(t)for(var A=0,B=_w(t);A<B.length;A++){var d=B[A];r.has(d.escapedName)||r.set(d.escapedName,bw(d))}var Ae=Xi(n,0),We=Xi(n,1),Ye=No(n.symbol,r,e.emptyArray,e.emptyArray,Ae&&dl(Ns(Ae.type),Ae.isReadonly),We&&dl(Ns(We.type),We.isReadonly));return Ye.objectFlags|=e.getObjectFlags(n)&(16384|1048576),Ye}function Ns(n){return Ug(n,void 0)}function Ug(n,t){if(e.getObjectFlags(n)&786432){if(t===void 0&&n.widened)return n.widened;var r=void 0;if(n.flags&98304)r=oe;else if(wd(n))r=Ew(n,t);else if(n.flags&1048576){var i=t||ib(void 0,void 0,n.types),l=e.sameMap(n.types,function(d){return d.flags&98304?d:Ug(d,i)});r=Wr(l,e.some(l,Uu)?2:1)}else n.flags&2097152?r=Zi(e.sameMap(n.types,Ns)):(Ms(n)||Do(n))&&(r=bu(n.target,e.sameMap(go(n),Ns)));return r&&t===void 0&&(n.widened=r),r||n}return n}function Hm(n){var t=!1;if(e.getObjectFlags(n)&262144){if(n.flags&1048576)if(e.some(n.types,Uu))t=!0;else for(var r=0,i=n.types;r<i.length;r++){var l=i[r];Hm(l)&&(t=!0)}if(Ms(n)||Do(n))for(var d=0,A=go(n);d<A.length;d++){var l=A[d];Hm(l)&&(t=!0)}if(wd(n))for(var B=0,Ae=yu(n);B<Ae.length;B++){var We=Ae[B],l=Jn(We);e.getObjectFlags(l)&262144&&(Hm(l)||xn(We.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,wa(We),qt(Ns(l))),t=!0)}}return t}function ld(n,t,r){var i=qt(Ns(t));if(e.isInJSFile(n)&&!e.isCheckJsEnabledForFile(e.getSourceFileOfNode(n),je))return;var l;switch(n.kind){case 208:case 158:case 157:l=ae?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 155:var d=n;if(e.isIdentifier(d.name)&&(e.isCallSignatureDeclaration(d.parent)||e.isMethodSignature(d.parent)||e.isFunctionTypeNode(d.parent))&&d.parent.parameters.indexOf(d)>-1&&(lo(d,d.name.escapedText,788968,void 0,d.name.escapedText,!0)||d.name.originalKeywordKind&&e.isTypeNodeKind(d.name.originalKeywordKind))){var A="arg"+d.parent.parameters.indexOf(d);Fo(ae,n,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,A,e.declarationNameToString(d.name));return}l=n.dotDotDotToken?ae?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:ae?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 190:if(l=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!ae)return;break;case 298:xn(n,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);return;case 243:case 160:case 159:case 162:case 163:case 200:case 201:if(ae&&!n.name){r===1?xn(n,e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,i):xn(n,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);return}l=ae?r===1?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 185:ae&&xn(n,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);return;default:l=ae?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}Fo(ae,n,l,e.declarationNameToString(e.getNameOfDeclaration(n)),i)}function Km(n,t,r){E&&ae&&e.getObjectFlags(t)&262144&&(Hm(t)||ld(n,t,r))}function jg(n,t,r){var i=Vl(n),l=Vl(t),d=_p(n),A=_p(t),B=A?l-1:l,Ae=d?B:Math.min(i,B),We=yd(n);if(We){var Ye=yd(t);Ye&&r(We,Ye)}for(var tn=0;tn<Ae;tn++)r(Zs(n,tn),Zs(t,tn));A&&r(yp(n,Ae),A)}function Wg(n,t,r){var i=ul(n),l=ul(t);i&&l&&fg(i,l)&&i.type&&l.type?r(i.type,l.type):r(Fi(n),Fi(t))}function sp(n,t,r,i){return Hg(n.map(Kg),t,r,i||Gv)}function Tw(n,t){return t===void 0&&(t=0),n&&Hg(e.map(n.inferences,lb),n.signature,n.flags|t,n.compareTypes)}function Hg(n,t,r,i){var l={inferences:n,signature:t,flags:r,compareTypes:i,mapper:function(d){return sb(l,d,!0)},nonFixingMapper:function(d){return sb(l,d,!1)}};return l}function sb(n,t,r){for(var i=n.inferences,l=0;l<i.length;l++){var d=i[l];if(t===d.typeParameter)return r&&!d.isFixed&&(qm(i),d.isFixed=!0),pb(n,l)}return t}function qm(n){for(var t=0,r=n;t<r.length;t++){var i=r[t];i.isFixed||(i.inferredType=void 0)}}function Kg(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1}}function lb(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed}}function Sw(n){var t=e.filter(n.inferences,Kd);return t.length?Hg(e.map(t,lb),n.signature,n.flags,n.compareTypes):void 0}function qg(n){return n&&n.mapper}function Jm(n){var t=e.getObjectFlags(n);return!!(n.flags&63176704||t&4&&(n.node||e.forEach(go(n),Jm))||t&16&&n.symbol&&n.symbol.flags&(16|8192|32|2048|4096)&&n.symbol.declarations||t&32||n.flags&3145728&&!(n.flags&1024)&&xw(n))}function xw(n){return n.couldContainTypeVariables===void 0&&(n.couldContainTypeVariables=e.some(n.types,Jm)),n.couldContainTypeVariables}function Zp(n,t){return!!(n===t||n.flags&3145728&&e.some(n.types,function(r){return Zp(r,t)})||n.flags&16777216&&(Zp(ad(n),t)||Zp(id(n),t)))}function ww(n){var t=e.createSymbolTable();of(n,function(i){if(!(i.flags&128))return;var l=e.escapeLeadingUnderscores(i.value),d=Ga(4,l);d.type=oe,i.symbol&&(d.declarations=i.symbol.declarations,d.valueDeclaration=i.symbol.valueDeclaration),t.set(l,d)});var r=n.flags&4?dl(Wn,!1):void 0;return No(void 0,t,e.emptyArray,e.emptyArray,r,void 0)}function Aw(n,t,r){var i=n.id+","+t.id+","+r.id;if(Gi.has(i))return Gi.get(i);Gi.set(i,void 0);var l=kw(n,t,r);return Gi.set(i,l),l}function cb(n){return!(e.getObjectFlags(n)&1048576)||wd(n)&&e.some(io(n),function(t){return cb(Jn(t))})}function kw(n,t,r){if(!(Xi(n,0)||io(n).length!==0&&cb(n)))return;if(Ms(n))return Is(zm(go(n)[0],t,r),ip(n));if(Do(n)){var i=e.map(go(n),function(A){return zm(A,t,r)}),l=Jc(t)&4?_d(n)-(n.target.hasRestElement?1:0):n.target.minLength;return Gu(i,l,n.target.hasRestElement,n.target.readonly,n.target.associatedNames)}var d=os(2048|16,void 0);return d.source=n,d.mappedType=t,d.constraintType=r,d}function Cw(n){return zm(n.propertyType,n.mappedType,n.constraintType)}function zm(n,t,r){var i=xl(r.type,Fu(t)),l=qc(t),d=Kg(i);return Dc([d],n,l),db(d)||dn}function ub(n,t,r,i){var l,d,A,B,Ae,We,Ye;return xr(this,function(tn){switch(tn.label){case 0:l=t.flags&1048576?k_(t):io(t),d=0,A=l,tn.label=1;case 1:return d<A.length?(B=A[d],r||!(B.flags&16777216||e.getCheckFlags(B)&48)?(Ae=Ji(n,B.escapedName),Ae?[3,3]:[4,B]):[3,5]):[3,6];case 2:return tn.sent(),[3,5];case 3:return i?(We=Jn(B),We.flags&109440?(Ye=Jn(Ae),Ye.flags&1||js(Ye)===js(We)?[3,5]:[4,B]):[3,5]):[3,5];case 4:tn.sent(),tn.label=5;case 5:return d++,[3,1];case 6:return[2]}})}function Jg(n,t,r,i){var l=ub(n,t,r,i).next();if(!l.done)return l.value}function Dw(n,t){return t.target.minLength>n.target.minLength||!ju(t)&&(!!ju(n)||Wm(t)<Wm(n))}function Lw(n,t){return Do(n)&&Do(t)&&Dw(n,t)||!!Jg(n,t,!1,!0)&&!!Jg(t,n,!1,!0)}function db(n){return n.candidates?Wr(n.candidates,2):n.contraCandidates?Zi(n.contraCandidates):void 0}function Dc(n,t,r,i,l){i===void 0&&(i=0),l===void 0&&(l=!1);var d,A,B=!1,Ae,We=256,Ye=!0;tn(t,r);function tn(Bt,Sn){if(!Jm(Sn))return;if(Bt===yn){var gn=Ae;Ae=Bt,tn(Sn,Sn),Ae=gn;return}if(Bt.aliasSymbol&&Bt.aliasTypeArguments&&Bt.aliasSymbol===Sn.aliasSymbol){_t(Bt.aliasTypeArguments,Sn.aliasTypeArguments,Jv(Bt.aliasSymbol));return}if(Bt===Sn&&Bt.flags&3145728){for(var wt=0,At=Bt.types;wt<At.length;wt++){var er=At[wt];tn(er,er)}return}if(Sn.flags&1048576){var gr=it(Bt.flags&1048576?Bt.types:[Bt],Sn.types,Iw),Cr=gr[0],jt=gr[1],la=it(Cr,jt,Nw),Ea=la[0],Oa=la[1];if(Oa.length===0)return;if(Sn=Wr(Oa),Ea.length===0){bn(Bt,Sn,1);return}Bt=Wr(Ea)}else if(Sn.flags&2097152&&e.some(Sn.types,function(Po){return!!Yt(Po)||Fl(Po)&&!!Yt(Tg(Po)||Dt)})){if(!(Bt.flags&1048576)){var Di=it(Bt.flags&2097152?Bt.types:[Bt],Sn.types,Xc),Ea=Di[0],Oa=Di[1];if(Ea.length===0||Oa.length===0)return;Bt=Zi(Ea),Sn=Zi(Oa)}}else Sn.flags&(8388608|33554432)&&(Sn=Ed(Sn));if(Sn.flags&8650752){if(e.getObjectFlags(Bt)&1048576||Bt===Ht||i&16&&(Bt===Cn||Bt===da))return;var ui=Yt(Sn);if(ui){if(!ui.isFixed){if((ui.priority===void 0||i<ui.priority)&&(ui.candidates=void 0,ui.contraCandidates=void 0,ui.topLevel=!0,ui.priority=i),i===ui.priority){var ao=Ae||Bt;l&&!B?e.contains(ui.contraCandidates,ao)||(ui.contraCandidates=e.append(ui.contraCandidates,ao),qm(n)):e.contains(ui.candidates,ao)||(ui.candidates=e.append(ui.candidates,ao),qm(n))}!(i&16)&&Sn.flags&262144&&ui.topLevel&&!Zp(r,Sn)&&(ui.topLevel=!1,qm(n))}We=Math.min(We,i);return}else{var ft=Cc(Sn,!1);if(ft!==Sn)Mn(Bt,ft,tn);else if(Sn.flags&8388608){var Nt=Cc(Sn.indexType,!1);if(Nt.flags&63176704){var Ut=hv(Cc(Sn.objectType,!1),Nt,!1);Ut&&Ut!==Sn&&Mn(Bt,Ut,tn)}}}}if(e.getObjectFlags(Bt)&4&&e.getObjectFlags(Sn)&4&&(Bt.target===Sn.target||Ms(Bt)&&Ms(Sn))&&!(Bt.node&&Sn.node))_t(go(Bt),go(Sn),Lg(Bt.target));else if(Bt.flags&4194304&&Sn.flags&4194304)l=!l,tn(Bt.type,Sn.type),l=!l;else if((op(Bt)||Bt.flags&4)&&Sn.flags&4194304){var Jt=ww(Bt);l=!l,bn(Jt,Sn.type,32),l=!l}else if(Bt.flags&8388608&&Sn.flags&8388608)tn(Bt.objectType,Sn.objectType),tn(Bt.indexType,Sn.indexType);else if(Bt.flags&16777216&&Sn.flags&16777216)tn(Bt.checkType,Sn.checkType),tn(Bt.extendsType,Sn.extendsType),tn(ad(Bt),ad(Sn)),tn(id(Bt),id(Sn));else if(Sn.flags&16777216&&!l){var ir=[ad(Sn),id(Sn)];or(Bt,ir,Sn.flags)}else if(Sn.flags&3145728)or(Bt,Sn.types,Sn.flags);else if(Bt.flags&1048576)for(var Nr=Bt.types,Qa=0,ni=Nr;Qa<ni.length;Qa++){var Xa=ni[Qa];tn(Xa,Sn)}else{if(!(i&64&&Bt.flags&(2097152|63176704))){var Ni=us(Bt);if(Ni!==Bt&&Ye&&!(Ni.flags&(524288|2097152)))return Ye=!1,tn(Ni,Sn);Bt=Ni}Bt.flags&(524288|2097152)&&Mn(Bt,Sn,ta)}}function bn(Bt,Sn,gn){var wt=i;i|=gn,tn(Bt,Sn),i=wt}function Mn(Bt,Sn,gn){var wt=Bt.id+","+Sn.id,At=A&&A.get(wt);if(At!==void 0){We=Math.min(We,At);return}(A||(A=e.createMap())).set(wt,-1);var er=We;We=256,gn(Bt,Sn),A.set(wt,We),We=Math.min(We,er)}function it(Bt,Sn,gn){for(var wt,At,er=0,gr=Sn;er<gr.length;er++)for(var Cr=gr[er],jt=0,la=Bt;jt<la.length;jt++){var Ea=la[jt];gn(Ea,Cr)&&(tn(Ea,Cr),wt=e.appendIfUnique(wt,Ea),At=e.appendIfUnique(At,Cr))}return[wt?e.filter(Bt,function(Oa){return!e.contains(wt,Oa)}):Bt,At?e.filter(Sn,function(Oa){return!e.contains(At,Oa)}):Sn]}function _t(Bt,Sn,gn){for(var wt=Bt.length<Sn.length?Bt.length:Sn.length,At=0;At<wt;At++)At<gn.length&&(gn[At]&7)===2?St(Bt[At],Sn[At]):tn(Bt[At],Sn[At])}function St(Bt,Sn){Ze||i&128?(l=!l,tn(Bt,Sn),l=!l):tn(Bt,Sn)}function Yt(Bt){if(Bt.flags&8650752)for(var Sn=0,gn=n;Sn<gn.length;Sn++){var wt=gn[Sn];if(Bt===wt.typeParameter)return wt}return}function mr(Bt){for(var Sn,gn=0,wt=Bt;gn<wt.length;gn++){var At=wt[gn],er=At.flags&2097152&&e.find(At.types,function(gr){return!!Yt(gr)});if(!er||Sn&&er!==Sn)return;Sn=er}return Sn}function or(Bt,Sn,gn){var wt=0;if(gn&1048576){for(var At=void 0,er=Bt.flags&1048576?Bt.types:[Bt],gr=new Array(er.length),Cr=!1,jt=0,la=Sn;jt<la.length;jt++){var Ea=la[jt];if(Yt(Ea))At=Ea,wt++;else for(var Oa=0;Oa<er.length;Oa++){var Di=We;We=256,tn(er[Oa],Ea),We===i&&(gr[Oa]=!0),Cr=Cr||We===-1,We=Math.min(We,Di)}}if(wt===0){var ui=mr(Sn);ui&&bn(Bt,ui,1);return}if(wt===1&&!Cr){var ao=e.flatMap(er,function(ir,Nr){return gr[Nr]?void 0:ir});if(ao.length){tn(Wr(ao),At);return}}}else for(var ft=0,Nt=Sn;ft<Nt.length;ft++){var Ea=Nt[ft];Yt(Ea)?wt++:tn(Bt,Ea)}if(gn&2097152?wt===1:wt>0)for(var Ut=0,Jt=Sn;Ut<Jt.length;Ut++){var Ea=Jt[Ut];Yt(Ea)&&bn(Bt,Ea,1)}}function br(Bt,Sn,gn){if(gn.flags&1048576){for(var wt=!1,At=0,er=gn.types;At<er.length;At++){var gr=er[At];wt=br(Bt,Sn,gr)||wt}return wt}if(gn.flags&4194304){var Cr=Yt(gn.type);if(Cr&&!Cr.isFixed){var jt=Aw(Bt,Sn,gn);jt&&bn(jt,Cr.typeParameter,e.getObjectFlags(Bt)&1048576?4:2)}return!0}if(gn.flags&262144){bn(zc(Bt),gn,8);var la=zf(gn);if(la&&br(Bt,Sn,la))return!0;var Ea=e.map(io(Bt),Jn),Oa=ms(Bt,0),Di=dv(Bt),ui=Di&&Di.type;return tn(Wr(e.append(e.append(Ea,Oa),ui)),qc(Sn)),!0}return!1}function ta(Bt,Sn){var gn=Sn.flags&524288&&!(e.getObjectFlags(Sn)&16&&Sn.symbol&&Sn.symbol.flags&32),wt=gn?Sn.symbol:void 0;if(wt){if(e.contains(d,wt)){We=-1;return}(d||(d=[])).push(wt),Ur(Bt,Sn),d.pop()}else Ur(Bt,Sn)}function Ur(Bt,Sn){if(e.getObjectFlags(Bt)&4&&e.getObjectFlags(Sn)&4&&(Bt.target===Sn.target||Ms(Bt)&&Ms(Sn))){_t(go(Bt),go(Sn),Lg(Bt.target));return}if(Fl(Bt)&&Fl(Sn)&&(tn(uc(Bt),uc(Sn)),tn(qc(Bt),qc(Sn))),e.getObjectFlags(Sn)&32){var gn=uc(Sn);if(br(Bt,Sn,gn))return}Lw(Bt,Sn)||(ja(Bt,Sn),$i(Bt,Sn,0),$i(Bt,Sn,1),ka(Bt,Sn))}function ja(Bt,Sn){if(Ms(Bt)||Do(Bt)){if(Do(Sn)){for(var gn=Do(Bt)?Wm(Bt):0,wt=Wm(Sn),At=Do(Bt)?ju(Bt):jm(Bt),er=ju(Sn),gr=wt<gn||At?wt:gn,Cr=0;Cr<gr;Cr++)tn(Cr<gn?go(Bt)[Cr]:At,go(Sn)[Cr]);if(er){var jt=gr<gn?go(Bt).slice(gr,gn):[];At&&jt.push(At),jt.length&&tn(Wr(jt),er)}return}if(Ms(Sn)){ka(Bt,Sn);return}}for(var la=yu(Sn),Ea=0,Oa=la;Ea<Oa.length;Ea++){var Di=Oa[Ea],ui=Ji(Bt,Di.escapedName);ui&&tn(Jn(ui),Jn(Di))}}function $i(Bt,Sn,gn){for(var wt=oi(Bt,gn),At=oi(Sn,gn),er=wt.length,gr=At.length,Cr=er<gr?er:gr,jt=!!(e.getObjectFlags(Bt)&1048576),la=0;la<Cr;la++)Sa(ag(wt[er-Cr+la]),ag(At[gr-Cr+la]),jt)}function Sa(Bt,Sn,gn){if(!gn){var wt=B,At=Sn.declaration?Sn.declaration.kind:0;B=B||At===160||At===159||At===161,jg(Bt,Sn,St),B=wt}Wg(Bt,Sn,tn)}function ka(Bt,Sn){var gn=ms(Sn,0);if(gn){var wt=ms(Bt,0)||P_(Bt,0);wt&&tn(wt,gn)}var At=ms(Sn,1);if(At){var wt=ms(Bt,1)||ms(Bt,0)||P_(Bt,1);wt&&tn(wt,At)}}}function Iw(n,t){return Xc(n,t)||!!(n.flags&(128|256))&&Xc(Bl(n),t)}function Nw(n,t){return!!(n.flags&524288&&t.flags&524288&&n.symbol&&n.symbol===t.symbol||n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===t.aliasSymbol)}function Ow(n){var t=ll(n);return!!t&&So(t.flags&16777216?zh(t):t,131068|4194304)}function wd(n){return!!(e.getObjectFlags(n)&128)}function fb(n){return!!(e.getObjectFlags(n)&(128|65536))}function Pw(n){if(n.length>1){var t=e.filter(n,fb);if(t.length){var r=Wr(t,2);return e.concatenate(e.filter(n,function(i){return!fb(i)}),[r])}}return n}function Mw(n){return n.priority&56?Zi(n.contraCandidates):sw(n.contraCandidates)}function Rw(n,t){var r=Pw(n.candidates),i=Ow(n.typeParameter),l=!i&&n.topLevel&&(n.isFixed||!Zp(Fi(t),n.typeParameter)),d=i?e.sameMap(r,js):l?e.sameMap(r,xd):r,A=n.priority&56?Wr(d,2):ow(d);return Ns(A)}function pb(n,t){var r=n.inferences[t];if(!r.inferredType){var i=void 0,l=n.signature;if(l){var d=r.candidates?Rw(r,l):void 0;if(r.contraCandidates){var A=Mw(r);i=d&&!(d.flags&131072)&&Tu(d,A)?d:A}else if(d)i=d;else if(n.flags&1)i=Ht;else{var B=zd(r.typeParameter);B&&(i=Ei(B,Eu(Sx(n,t),n.nonFixingMapper)))}}else i=db(r);r.inferredType=i||zg(!!(n.flags&2));var Ae=ll(r.typeParameter);if(Ae){var We=Ei(Ae,n.nonFixingMapper);(!i||!n.compareTypes(i,Jl(We,i)))&&(r.inferredType=i=We)}}return r.inferredType}function zg(n){return n?oe:dn}function Xg(n){for(var t=[],r=0;r<n.inferences.length;r++)t.push(pb(n,r));return t}function mb(n){switch(n.escapedText){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return je.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery;case"describe":case"suite":case"it":case"test":return je.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return je.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later;default:return n.parent.kind===280?e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:e.Diagnostics.Cannot_find_name_0}}function Yc(n){var t=Lr(n);return t.resolvedSymbol||(t.resolvedSymbol=!e.nodeIsMissing(n)&&lo(n,n.escapedText,111551|1048576,mb(n),n,!e.isWriteOnlyAccess(n),!1,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||pn),t.resolvedSymbol}function lp(n){return!!e.findAncestor(n,function(t){return t.kind===171?!0:t.kind===75||t.kind===152?!1:"quit"})}function Yg(n,t,r,i){switch(n.kind){case 75:var l=Yc(n);return l!==pn?(i?z(i):"-1")+"|"+Vd(t)+"|"+Vd(r)+"|"+(Ob(n)?"@":"")+se(l):void 0;case 103:return"0";case 217:case 199:return Yg(n.expression,t,r,i);case 193:case 194:var d=Ef(n);if(d!==void 0){var A=Yg(n.expression,t,r,i);return A&&A+"."+d}}return}function fl(n,t){switch(t.kind){case 199:case 217:return fl(n,t.expression)}switch(n.kind){case 75:return t.kind===75&&Yc(n)===Yc(t)||(t.kind===241||t.kind===190)&&nc(Yc(n))===Zt(t);case 103:return t.kind===103;case 101:return t.kind===101;case 217:case 199:return fl(n.expression,t);case 193:case 194:return e.isAccessExpression(t)&&Ef(n)===Ef(t)&&fl(n.expression,t.expression)}return!1}function Ef(n){return n.kind===193?n.name.escapedText:e.isStringOrNumericLiteralLike(n.argumentExpression)?e.escapeLeadingUnderscores(n.argumentExpression.text):void 0}function cp(n,t){for(;e.isAccessExpression(n);)if(n=n.expression,fl(n,t))return!0;return!1}function af(n,t){for(;e.isOptionalChain(n);)if(n=n.expression,fl(n,t))return!0;return!1}function $p(n,t){var r;return e.isAccessExpression(t)&&cp(n,t.expression)&&(r=Ef(t))!==void 0&&em(hb(t.expression),r)}function hb(n){if(n.kind===75)return Jn(Yc(n));if(e.isAccessExpression(n)){var t=hb(n.expression);if(t){var r=Ef(n);return r!==void 0?Zo(t,r):void 0}}return}function Fw(n){return!!(n.flags&1048576&&(n.flags&(16|1024)||!qp(n)))}function em(n,t){if(n&&n.flags&1048576){var r=Zh(n,t);if(r&&e.getCheckFlags(r)&2)return r.isDiscriminantProperty===void 0&&(r.isDiscriminantProperty=(r.checkFlags&192)===192&&Fw(Jn(r))),!!r.isDiscriminantProperty}return!1}function Gw(n){return e.isAccessExpression(n)&&n.expression.kind===103&&!!(n.expression.flags&8)}function gb(n,t){for(var r,i=0,l=n;i<l.length;i++){var d=l[i];if(em(t,d.escapedName)){if(r){r.push(d);continue}r=[d]}}return r}function yb(n,t){return fl(n,t)||cp(n,t)}function Bw(n,t){if(n.arguments)for(var r=0,i=n.arguments;r<i.length;r++){var l=i[r];if(yb(t,l))return!0}return!!(n.expression.kind===193&&yb(t,n.expression.expression))}function _b(n){return(!n.id||n.id<0)&&(n.id=Ge,Ge++),n.id}function Vw(n,t){if(!(n.flags&1048576))return Wi(n,t);for(var r=0,i=n.types;r<i.length;r++){var l=i[r];if(Wi(l,t))return!0}return!1}function vb(n,t){if(n!==t){if(t.flags&131072)return t;var r=gs(n,function(i){return Vw(t,i)});if(t.flags&512&&Bu(t)&&(r=Ws(r,Zd)),Wi(t,r))return r}return n}function Uw(n){for(var t=0,r=0,i=n;r<i.length;r++){var l=i[r];t|=cd(l)}return t}function Qg(n){var t=dc(n);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&Tu(n,Ri))}function cd(n){var t=n.flags;if(t&4)return a?16317953:16776705;if(t&128){var r=n.value==="";return a?r?12123649:7929345:r?12582401:16776705}if(t&(8|32))return a?16317698:16776450;if(t&256){var i=n.value===0;return a?i?12123394:7929090:i?12582146:16776450}if(t&64)return a?16317188:16775940;if(t&2048){var i=Rg(n);return a?i?12122884:7928580:i?12581636:16775940}return t&16?a?16316168:16774920:t&528?a?n===Ct||n===st?12121864:7927560:n===Ct||n===st?12580616:16774920:t&524288?e.getObjectFlags(n)&16&&Uu(n)?a?16318463:16777215:Qg(n)?a?7880640:16728e3:a?7888800:16736160:t&(16384|32768)?9830144:t&65536?9363232:t&12288?a?7925520:16772880:t&67108864?a?7888800:16736160:t&63176704?cd(cl(n)||dn):t&3145728?Uw(n.types):16777215}function hs(n,t){return gs(n,function(r){return(cd(r)&t)!==0})}function Zg(n,t){if(t){var r=Dl(t);return Wr([hs(n,524288),r])}return n}function bb(n,t){var r=vd(t);if(!nr(r))return _e;var i=Oo(r);return fp(Zo(n,i),t)||Cl(i)&&ms(n,1)||ms(n,0)||_e}function Eb(n,t){return Sf(n,rf)&&lw(n,t)||qd(65,n,un,void 0)||_e}function Tb(n){return Is(qd(65,n,un,void 0)||_e)}function jw(n){var t=n.parent.kind===191&&$g(n.parent)||n.parent.kind===279&&$g(n.parent.parent);return t?Zg(nm(n),n.right):Dl(n.right)}function $g(n){return n.parent.kind===208&&n.parent.left===n||n.parent.kind===231&&n.parent.initializer===n}function Ww(n,t){return Eb(nm(n),n.elements.indexOf(t))}function Hw(n){return Tb(nm(n.parent))}function Sb(n){return bb(nm(n.parent),n.name)}function Kw(n){return Zg(Sb(n),n.objectAssignmentInitializer)}function nm(n){var t=n.parent;switch(t.kind){case 230:return ct;case 231:return gm(t.expression,t.awaitModifier)||_e;case 208:return jw(t);case 202:return un;case 191:return Ww(t,n);case 212:return Hw(t);case 279:return Sb(t);case 280:return Kw(t)}return _e}function qw(n){var t=n.parent,r=xb(t.parent),i=t.kind===188?bb(r,n.propertyName||n.name):n.dotDotDotToken?Tb(r):Eb(r,t.elements.indexOf(n));return Zg(i,n.initializer)}function Jw(n){var t=Lr(n);return t.resolvedType||Dl(n)}function zw(n){return n.initializer?Jw(n.initializer):n.parent.parent.kind===230?ct:n.parent.parent.kind===231&&gm(n.parent.parent.expression,n.parent.parent.awaitModifier)||_e}function xb(n){return n.kind===241?zw(n):qw(n)}function Xw(n){return n.kind===241&&n.initializer&&Ou(n.initializer)||n.kind!==190&&n.parent.kind===208&&Ou(n.parent.right)}function Ud(n){switch(n.kind){case 199:return Ud(n.expression);case 208:switch(n.operatorToken.kind){case 62:return Ud(n.left);case 27:return Ud(n.right)}}return n}function wb(n){var t=n.parent;return t.kind===199||t.kind===208&&t.operatorToken.kind===62&&t.left===n||t.kind===208&&t.operatorToken.kind===27&&t.right===n?wb(t):n}function Yw(n){return n.kind===275?js(Dl(n.expression)):Dt}function ey(n){var t=Lr(n);if(!t.switchTypes){t.switchTypes=[];for(var r=0,i=n.caseBlock.clauses;r<i.length;r++){var l=i[r];t.switchTypes.push(Yw(l))}}return t.switchTypes}function Ab(n){for(var t=[],r=0,i=n.caseBlock.clauses;r<i.length;r++){var l=i[r];if(l.kind===275){if(e.isStringLiteralLike(l.expression)){t.push(l.expression.text);continue}return e.emptyArray}t.push(void 0)}return t}function Qw(n,t){return n.flags&1048576?!e.forEach(n.types,function(r){return!e.contains(t,r)}):e.contains(t,n)}function Tf(n,t){return n===t||t.flags&1048576&&Zw(n,t)}function Zw(n,t){if(n.flags&1048576){for(var r=0,i=n.types;r<i.length;r++){var l=i[r];if(!yf(t.types,l))return!1}return!0}return n.flags&1024&&Hf(n)===t?!0:yf(t.types,n)}function of(n,t){return n.flags&1048576?e.forEach(n.types,t):t(n)}function Sf(n,t){return n.flags&1048576?e.every(n.types,t):t(n)}function gs(n,t){if(n.flags&1048576){var r=n.types,i=e.filter(r,t);return i===r?n:pg(i,n.objectFlags)}return t(n)?n:Dt}function $w(n){return n.flags&1048576?n.types.length:1}function Ws(n,t,r){if(n.flags&131072)return n;if(!(n.flags&1048576))return t(n);for(var i,l=0,d=n.types;l<d.length;l++){var A=d[l],B=t(A);B&&(i?i.push(B):i=[B])}return i&&Wr(i,r?0:1)}function up(n,t){return gs(n,function(r){return(r.flags&t)!==0})}function kb(n,t){return Tf(ct,n)&&So(t,128)||Tf(ot,n)&&So(t,256)||Tf(dt,n)&&So(t,2048)?Ws(n,function(r){return r.flags&4?up(t,4|128):r.flags&8?up(t,8|256):r.flags&64?up(t,64|2048):r}):n}function xf(n){return n.flags===0}function jd(n){return n.flags===0?n.type:n}function sf(n,t){return t?{flags:0,type:n}:n}function eA(n){var t=os(256);return t.elementType=n,t}function ny(n){return jn[n.id]||(jn[n.id]=eA(n))}function Cb(n,t){var r=Bl(hT(t));return Tf(r,n.elementType)?n:ny(Wr([n.elementType,r]))}function nA(n){return n.flags&131072?da:Is(n.flags&1048576?Wr(n.types,2):n)}function tA(n){return n.finalArrayType||(n.finalArrayType=nA(n.elementType))}function ty(n){return e.getObjectFlags(n)&256?tA(n):n}function rA(n){return e.getObjectFlags(n)&256?n.elementType:Dt}function aA(n){for(var t=!1,r=0,i=n;r<i.length;r++){var l=i[r];if(!(l.flags&131072)){if(!(e.getObjectFlags(l)&256))return!1;t=!0}}return t}function ry(n,t){return aA(n)?ny(Wr(e.map(n,rA))):Wr(e.sameMap(n,ty),t)}function Db(n){var t=wb(n),r=t.parent,i=r.kind===193&&(r.name.escapedText==="length"||r.parent.kind===195&&e.isPushOrUnshiftIdentifier(r.name)),l=r.kind===194&&r.expression===t&&r.parent.kind===208&&r.parent.operatorToken.kind===62&&r.parent.left===r&&!e.isAssignmentTarget(r.parent)&&qo(Dl(r.argumentExpression),296);return i||l}function iA(n){return!!(n&&(n.kind===241||n.kind===155||n.kind===158||n.kind===157)&&e.getEffectiveTypeAnnotationNode(n))}function ay(n,t){if(n.flags&(16|8192|32|512))return Jn(n);if(n.flags&(3|4)){if(iA(n.valueDeclaration))return Jn(n);t&&n.valueDeclaration&&e.addRelatedInfo(t,e.createDiagnosticForNode(n.valueDeclaration,e.Diagnostics._0_is_declared_here,wa(n)))}}function Xm(n,t){if(!(n.flags&16777216))switch(n.kind){case 75:var r=nc(Yc(n));return ay(r.flags&2097152?V(r):r,t);case 103:return EA(n);case 193:var i=Xm(n.expression,t),l=i&&Ji(i,n.name.escapedText);return l&&ay(l,t);case 199:return Xm(n.expression,t)}}function Ym(n){var t=Lr(n),r=t.effectsSignature;if(r===void 0){var i=void 0;n.parent.kind===225?i=Xm(n.expression,void 0):n.expression.kind!==101&&(e.isOptionalChain(n)?i=Xl(Qp(Na(n.expression),n.expression),n.expression):i=Cf(n.expression));var l=oi(i&&us(i)||dn,0),d=l.length===1&&!l[0].typeParameters?l[0]:e.some(l,Lb)?If(n):void 0;r=t.effectsSignature=d&&Lb(d)?d:xi}return r===xi?void 0:r}function Lb(n){return!!(ul(n)||n.declaration&&(Yd(n.declaration)||dn).flags&131072)}function oA(n,t){if(n.kind===1||n.kind===3)return t.arguments[n.parameterIndex];var r=e.skipParentheses(t.expression);return e.isAccessExpression(r)?e.skipParentheses(r.expression):void 0}function sA(n){var t=e.findAncestor(n,e.isFunctionOrModuleBlock),r=e.getSourceFileOfNode(n),i=e.getSpanOfTokenAtPosition(r,t.statements.pos);tt.add(e.createFileDiagnostic(r,i.start,i.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function tm(n){var t=Qm(n,!1);return Yo=n,ko=t,t}function lA(n){return!(n.flags&4096&&n.lock.locked)&&Qm(n,!1)}function rm(n){var t=e.skipParentheses(n);return t.kind===90||t.kind===208&&(t.operatorToken.kind===55&&(rm(t.left)||rm(t.right))||t.operatorToken.kind===56&&rm(t.left)&&rm(t.right))}function Qm(n,t){for(;;){if(n===Yo)return ko;var r=n.flags;if(r&2048){if(!t){var i=_b(n),l=nl[i];return l!==void 0?l:nl[i]=Qm(n,!0)}t=!1}if(r&(16|96|256|4096))n=n.antecedent;else if(r&512){var d=Ym(n.node);if(d){var A=ul(d);if(A&&A.kind===3){var B=n.node.arguments[A.parameterIndex];if(B&&rm(B))return!1}if(Fi(d).flags&131072)return!1}n=n.antecedent}else{if(r&4)return e.some(n.antecedents,lA);if(r&8)n=n.antecedents[0];else if(r&128){if(n.clauseStart===n.clauseEnd&&QE(n.switchStatement))return!1;n=n.antecedent}else if(r&8192){Yo=void 0,n.locked=!0;var Ae=Qm(n.antecedent,!1);return n.locked=!1,Ae}else return!(r&1)}}}function Ad(n,t,r,i,l){r===void 0&&(r=t);var d,A=!1,B=0;if(to)return _e;if(!n.flowNode||!l&&!(t.flags&133970943))return t;ha++;var Ae=Wa,We=jd(bn(n.flowNode));Wa=Ae;var Ye=e.getObjectFlags(We)&256&&Db(n)?da:ty(We);if(Ye===Yr||n.parent&&n.parent.kind===217&&hs(Ye,2097152).flags&131072)return t;return Ye;function tn(){return A?d:(A=!0,d=Yg(n,t,r,i))}function bn(ft){if(B===2e3)return to=!0,sA(n),_e;for(B++;;){var Nt=ft.flags;if(Nt&2048){for(var Ut=Ae;Ut<Wa;Ut++)if($s[Ut]===ft)return B--,el[Ut]}var Jt=void 0;if(Nt&8192)ft.locked=!0,Jt=bn(ft.antecedent),ft.locked=!1;else if(Nt&4096){ft=ft.antecedent;continue}else if(Nt&16){if(Jt=it(ft),!Jt){ft=ft.antecedent;continue}}else if(Nt&512){if(Jt=St(ft),!Jt){ft=ft.antecedent;continue}}else if(Nt&96)Jt=mr(ft);else if(Nt&128)Jt=or(ft);else if(Nt&12){if(ft.antecedents.length===1){ft=ft.antecedents[0];continue}Jt=Nt&4?br(ft):ta(ft)}else if(Nt&256){if(Jt=Yt(ft),!Jt){ft=ft.antecedent;continue}}else if(Nt&2){var ir=ft.node;if(ir&&ir!==i&&n.kind!==193&&n.kind!==194&&n.kind!==103){ft=ir.flowNode;continue}Jt=r}else Jt=wh(t);return Nt&2048&&($s[Wa]=ft,el[Wa]=Jt,Wa++),B--,Jt}}function Mn(ft){var Nt=ft.node;if(ft.flags&16384){var Ut=_s[z(Nt)];if(Ut)return Ut}var Jt=ha,ir=fp(Nt.kind===241||Nt.kind===190?xb(Nt):nm(Nt),n);return ha!==Jt&&fa===kr&&(ft.flags|=16384,_s[z(Nt)]=ir),ir}function it(ft){var Nt=ft.node;if(fl(n,Nt)){if(!tm(ft))return Yr;if(e.getAssignmentTargetKind(Nt)===2){var Ut=bn(ft.antecedent);return sf(Bl(jd(Ut)),xf(Ut))}if(t===Cn||t===da){if(Xw(Nt))return ny(Dt);var Jt=Bl(Mn(ft));return Wi(Jt,t)?Jt:mi}return t.flags&1048576?vb(t,Mn(ft)):t}if(cp(n,Nt)){if(!tm(ft))return Yr;if(e.isVariableDeclaration(Nt)&&(e.isInJSFile(Nt)||e.isVarConst(Nt))){var ir=e.getDeclaredExpandoInitializer(Nt);if(ir&&(ir.kind===200||ir.kind===201))return bn(ft.antecedent)}return t}return e.isVariableDeclaration(Nt)&&Nt.parent.parent.kind===230&&fl(n,Nt.parent.parent.expression)?vy(jd(bn(ft.antecedent))):void 0}function _t(ft,Nt){var Ut=e.skipParentheses(Nt);if(Ut.kind===90)return Yr;if(Ut.kind===208){if(Ut.operatorToken.kind===55)return _t(_t(ft,Ut.left),Ut.right);if(Ut.operatorToken.kind===56)return Wr([_t(ft,Ut.left),_t(ft,Ut.right)])}return ui(ft,Ut,!0)}function St(ft){var Nt=Ym(ft.node);if(Nt){var Ut=ul(Nt);if(Ut&&(Ut.kind===2||Ut.kind===3)){var Jt=bn(ft.antecedent),ir=jd(Jt),Nr=Ut.type?Di(ir,Ut,ft.node,!0):Ut.kind===3&&Ut.parameterIndex>=0&&Ut.parameterIndex<ft.node.arguments.length?_t(ir,ft.node.arguments[Ut.parameterIndex]):ir;return Nr===ir?Jt:sf(Nr,xf(Jt))}if(Fi(Nt).flags&131072)return Yr}return}function Yt(ft){if(t===Cn||t===da){var Nt=ft.node,Ut=Nt.kind===195?Nt.expression.expression:Nt.left.expression;if(fl(n,Ud(Ut))){var Jt=bn(ft.antecedent),ir=jd(Jt);if(e.getObjectFlags(ir)&256){var Nr=ir;if(Nt.kind===195)for(var Qa=0,ni=Nt.arguments;Qa<ni.length;Qa++){var Xa=ni[Qa];Nr=Cb(Nr,Xa)}else{var Ni=hT(Nt.left.argumentExpression);qo(Ni,296)&&(Nr=Cb(Nr,Nt.right))}return Nr===ir?Jt:sf(Nr,xf(Jt))}return Jt}}return}function mr(ft){var Nt=bn(ft.antecedent),Ut=jd(Nt);if(Ut.flags&131072)return Nt;var Jt=(ft.flags&32)!==0,ir=ty(Ut),Nr=ui(ir,ft.node,Jt);if(Nr===ir)return Nt;var Qa=xf(Nt),ni=Qa&&Nr.flags&131072?Ht:Nr;return sf(ni,Qa)}function or(ft){var Nt=ft.switchStatement.expression,Ut=bn(ft.antecedent),Jt=jd(Ut);if(fl(n,Nt))Jt=er(Jt,ft.switchStatement,ft.clauseStart,ft.clauseEnd);else if(Nt.kind===203&&fl(n,Nt.expression))Jt=jt(Jt,ft.switchStatement,ft.clauseStart,ft.clauseEnd);else if(a&&(af(Nt,n)?Jt=At(Jt,ft.switchStatement,ft.clauseStart,ft.clauseEnd,function(ir){return!(ir.flags&(32768|131072))}):Nt.kind===203&&af(Nt.expression,n)&&(Jt=At(Jt,ft.switchStatement,ft.clauseStart,ft.clauseEnd,function(ir){return!(ir.flags&131072||ir.flags&128&&ir.value==="undefined")}))),Ur(Nt,Jt))Jt=ja(Jt,Nt,function(ir){return er(ir,ft.switchStatement,ft.clauseStart,ft.clauseEnd)});else if($p(n,Nt))Jt=t;else if(ft.clauseStart===ft.clauseEnd&&QE(ft.switchStatement))return Yr;return sf(Jt,xf(Ut))}function br(ft){for(var Nt=[],Ut=!1,Jt=!1,ir=0,Nr=ft.antecedents;ir<Nr.length;ir++){var Qa=Nr[ir];if(Qa.flags&4096&&Qa.lock.locked)continue;var ni=bn(Qa),Xa=jd(ni);if(Xa===t&&t===r)return Xa;e.pushIfUnique(Nt,Xa),Tf(Xa,t)||(Ut=!0),xf(ni)&&(Jt=!0)}return sf(ry(Nt,Ut?2:1),Jt)}function ta(ft){var Nt=_b(ft),Ut=Ds[Nt]||(Ds[Nt]=e.createMap()),Jt=tn();if(!Jt)return t;var ir=Ut.get(Jt);if(ir)return ir;for(var Nr=kr;Nr<fa;Nr++)if(yl[Nr]===ft&&Ks[Nr]===Jt&&qs[Nr].length)return sf(ry(qs[Nr],1),!0);for(var Qa=[],ni=!1,Xa,Ni=0,Po=ft.antecedents;Ni<Po.length;Ni++){var xo=Po[Ni],Hs=void 0;if(!Xa)Hs=Xa=bn(xo);else{yl[fa]=ft,Ks[fa]=Jt,qs[fa]=Qa,fa++,Hs=bn(xo),fa--;var Ss=Ut.get(Jt);if(Ss)return Ss}var Dd=jd(Hs);if(e.pushIfUnique(Qa,Dd),Tf(Dd,t)||(ni=!0),Dd===t)break}var ca=ry(Qa,ni?2:1);return xf(Xa)?sf(ca,!0):(Ut.set(Jt,ca),ca)}function Ur(ft,Nt){if(!(Nt.flags&1048576)||!e.isAccessExpression(ft))return!1;var Ut=Ef(ft);return Ut===void 0?!1:fl(n,ft.expression)&&em(Nt,Ut)}function ja(ft,Nt,Ut){var Jt=Ef(Nt);if(Jt===void 0)return ft;var ir=Zo(ft,Jt),Nr=ir&&Ut(ir);return ir===Nr?ft:gs(ft,function(Qa){return nf(md(Qa,Jt),Nr)})}function $i(ft,Nt,Ut){return fl(n,Nt)?hs(ft,Ut?4194304:8388608):(a&&Ut&&af(Nt,n)&&(ft=hs(ft,2097152)),Ur(Nt,t)?ja(ft,Nt,function(Jt){return hs(Jt,Ut?4194304:8388608)}):$p(n,Nt)?t:ft)}function Sa(ft,Nt,Ut){if(Xi(ft,0))return!0;var Jt=Ji(ft,Nt);return Jt?Jt.flags&16777216?!0:Ut:!Ut}function ka(ft,Nt,Ut){if(ft.flags&(1048576|524288)||Jp(ft)){var Jt=e.escapeLeadingUnderscores(Nt.text);return gs(ft,function(ir){return Sa(ir,Jt,Ut)})}return ft}function Bt(ft,Nt,Ut){switch(Nt.operatorToken.kind){case 62:return $i(ui(ft,Nt.right,Ut),Nt.left,Ut);case 34:case 35:case 36:case 37:var Jt=Nt.operatorToken.kind,ir=Ud(Nt.left),Nr=Ud(Nt.right);if(ir.kind===203&&e.isStringLiteralLike(Nr))return wt(ft,ir,Jt,Nr,Ut);if(Nr.kind===203&&e.isStringLiteralLike(ir))return wt(ft,Nr,Jt,ir,Ut);if(fl(n,ir))return gn(ft,Jt,Nr,Ut);if(fl(n,Nr))return gn(ft,Jt,ir,Ut);if(a&&(af(ir,n)?ft=Sn(ft,Jt,Nr,Ut):af(Nr,n)&&(ft=Sn(ft,Jt,ir,Ut))),Ur(ir,t))return ja(ft,ir,function(ni){return gn(ni,Jt,Nr,Ut)});if(Ur(Nr,t))return ja(ft,Nr,function(ni){return gn(ni,Jt,ir,Ut)});if($p(n,ir)||$p(n,Nr))return t;break;case 97:return la(ft,Nt,Ut);case 96:var Qa=Ud(Nt.right);if(e.isStringLiteralLike(Nt.left)&&fl(n,Qa))return ka(ft,Nt.left,Ut);break;case 27:return ui(ft,Nt.right,Ut)}return ft}function Sn(ft,Nt,Ut,Jt){var ir=Nt===34||Nt===36?Jt:!Jt,Nr=Nt===34||Nt===35,Qa=!(cd(Dl(Ut))&(Nr?262144:65536));return ir===Qa?hs(ft,2097152):ft}function gn(ft,Nt,Ut,Jt){if(ft.flags&1)return ft;(Nt===35||Nt===37)&&(Jt=!Jt);var ir=Dl(Ut);if(ft.flags&2&&Jt&&(Nt===36||Nt===37))return ir.flags&(131068|67108864)?ir:ir.flags&524288?Hr:ft;if(ir.flags&98304){if(!a)return ft;var Nr=Nt===34||Nt===35,Qa=Nr?Jt?262144:2097152:ir.flags&65536?Jt?131072:1048576:Jt?65536:524288;return hs(ft,Qa)}if(ft.flags&67637251)return ft;if(Jt){var ni=Nt===34?function(Po){return wg(Po,ir)||gw(Po,ir)}:function(Po){return wg(Po,ir)},Xa=gs(ft,ni);return Xa.flags&131072?ft:kb(Xa,ir)}if(sd(ir)){var Ni=js(ir);return gs(ft,function(Po){return js(Po)!==Ni})}return ft}function wt(ft,Nt,Ut,Jt,ir){(Ut===35||Ut===37)&&(ir=!ir);var Nr=Ud(Nt.expression);if(!fl(n,Nr))return a&&af(Nr,n)&&ir===(Jt.text!=="undefined")?hs(ft,2097152):cp(n,Nr)?t:ft;if(ft.flags&1&&Jt.text==="function")return ft;var Qa=ir?J.get(Jt.text)||128:Oe.get(Jt.text)||32768;return hs(ir?Ws(ft,ni):ft,Qa);function ni(Xa){if(Xa.flags&2&&Jt.text==="object")return Wr([Hr,Bn]);var Ni=Jt.text==="function"?Ri:_r.get(Jt.text);if(Ni){if(Tu(Xa,Ni))return Xa;if(Tu(Ni,Xa))return Ni;if(Xa.flags&63176704){var Po=cl(Xa)||oe;if(Tu(Ni,Po))return Zi([Xa,Ni])}}return Xa}}function At(ft,Nt,Ut,Jt,ir){var Nr=Ut!==Jt&&e.every(ey(Nt).slice(Ut,Jt),ir);return Nr?hs(ft,2097152):ft}function er(ft,Nt,Ut,Jt){var ir=ey(Nt);if(!ir.length)return ft;var Nr=ir.slice(Ut,Jt),Qa=Ut===Jt||e.contains(Nr,Dt);if(ft.flags&2&&!Qa){for(var ni=void 0,Xa=0;Xa<Nr.length;Xa+=1){var Ni=Nr[Xa];if(Ni.flags&(131068|67108864))ni!==void 0&&ni.push(Ni);else if(Ni.flags&524288)ni===void 0&&(ni=Nr.slice(0,Xa)),ni.push(Hr);else return ft}return Wr(ni===void 0?Nr:ni)}var Po=Wr(Nr),xo=Po.flags&131072?Dt:kb(gs(ft,function(Ss){return wg(Po,Ss)}),Po);if(!Qa)return xo;var Hs=gs(ft,function(Ss){return!(sd(Ss)&&e.contains(ir,js(Ss)))});return xo.flags&131072?Hs:Wr([xo,Hs])}function gr(ft,Nt){switch(Nt){case"function":return ft.flags&1?ft:Ri;case"object":return ft.flags&2?Wr([Hr,Bn]):ft;default:return _r.get(Nt)||ft}}function Cr(ft){return function(Nt){if(Tu(ft,Nt))return ft;if(Nt.flags&63176704){var Ut=cl(Nt)||oe;if(Tu(ft,Ut))return Zi([Nt,ft])}return Nt}}function jt(ft,Nt,Ut,Jt){var ir=Ab(Nt);if(!ir.length)return ft;var Nr=e.findIndex(ir,function(Ss){return Ss===void 0}),Qa=Ut===Jt||Nr>=Ut&&Nr<Jt,ni,Xa;if(Nr>-1){var Ni=ir.filter(function(Ss){return Ss!==void 0}),Po=Nr<Ut?Ut-1:Ut,xo=Nr<Jt?Jt-1:Jt;ni=Ni.slice(Po,xo),Xa=Iy(Po,xo,Ni,Qa)}else ni=ir.slice(Ut,Jt),Xa=Iy(Ut,Jt,ir,Qa);if(Qa)return gs(ft,function(Ss){return(cd(Ss)&Xa)===Xa});var Hs=hs(Wr(ni.map(function(Ss){return gr(ft,Ss)})),Xa);return Hs.flags&1048576&&(Hs=vb(Hs,L_(ft))),hs(Ws(ft,Cr(Hs)),Xa)}function la(ft,Nt,Ut){var Jt=Ud(Nt.left);if(!fl(n,Jt))return Ut&&a&&af(Jt,n)?hs(ft,2097152):cp(n,Jt)&&!Gw(n)?t:ft;var ir=Dl(Nt.right);if(!rp(ir,Ri))return ft;var Nr,Qa=Ji(ir,"prototype");if(Qa){var ni=Jn(Qa);Bi(ni)||(Nr=ni)}if(Bi(ft)&&(Nr===_o||Nr===Ri))return ft;if(!Nr){var Xa=oi(ir,1);Nr=Xa.length?Wr(e.map(Xa,function(Ni){return Fi(Xf(Ni))})):Wn}return Ea(ft,Nr,Ut,rp)}function Ea(ft,Nt,Ut,Jt){if(!Ut)return gs(ft,function(Nr){return!Jt(Nr,Nt)});if(ft.flags&1048576){var ir=gs(ft,function(Nr){return Jt(Nr,Nt)});if(!(ir.flags&131072))return ir}return Tu(Nt,ft)?Nt:Wi(ft,Nt)?ft:Wi(Nt,ft)?Nt:Zi([ft,Nt])}function Oa(ft,Nt,Ut){if(Bw(Nt,n)){var Jt=Ut||!e.isCallChain(Nt)?Ym(Nt):void 0,ir=Jt&&ul(Jt);if(ir&&(ir.kind===0||ir.kind===1))return Di(ft,ir,Nt,Ut)}return ft}function Di(ft,Nt,Ut,Jt){if(Nt.type&&!(Bi(ft)&&(Nt.type===_o||Nt.type===Ri))){var ir=oA(Nt,Ut);if(ir){if(fl(n,ir))return Ea(ft,Nt.type,Jt,Tu);if(a&&Jt&&af(ir,n)&&!(cd(Nt.type)&65536))return hs(ft,2097152);if(cp(n,ir))return t}}return ft}function ui(ft,Nt,Ut){if(e.isExpressionOfOptionalChainRoot(Nt)||e.isBinaryExpression(Nt.parent)&&Nt.parent.operatorToken.kind===60&&Nt.parent.left===Nt)return ao(ft,Nt,Ut);switch(Nt.kind){case 75:case 103:case 101:case 193:case 194:return $i(ft,Nt,Ut);case 195:return Oa(ft,Nt,Ut);case 199:return ui(ft,Nt.expression,Ut);case 208:return Bt(ft,Nt,Ut);case 206:if(Nt.operator===53)return ui(ft,Nt.operand,!Ut);break}return ft}function ao(ft,Nt,Ut){return fl(n,Nt)?hs(ft,Ut?2097152:262144):Ur(Nt,t)?ja(ft,Nt,function(Jt){return hs(Jt,Ut?2097152:262144)}):$p(n,Nt)?t:ft}}function cA(n,t){if(n=n.exportSymbol||n,t.kind===75&&(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),e.isExpressionNode(t)&&!e.isAssignmentTarget(t))){var r=Dl(t);if(nc(Lr(t).resolvedSymbol)===n)return r}return Jn(n)}function dp(n){return e.findAncestor(n.parent,function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||t.kind===249||t.kind===288||t.kind===158})}function uA(n){var t=e.getRootDeclaration(n.valueDeclaration).parent,r=Lr(t);return r.flags&8388608||(r.flags|=8388608,dA(t)||Ib(t)),n.isAssigned||!1}function dA(n){return!!e.findAncestor(n.parent,function(t){return e.isFunctionLike(t)&&!!(Lr(t).flags&8388608)})}function Ib(n){if(n.kind===75){if(e.isAssignmentTarget(n)){var t=Yc(n);t.valueDeclaration&&e.getRootDeclaration(t.valueDeclaration).kind===155&&(t.isAssigned=!0)}}else e.forEachChild(n,Ib)}function Nb(n){return n.flags&3&&(yy(n)&2)!==0&&Jn(n)!==da}function fA(n,t){var r=a&&t.kind===155&&t.initializer&&kl(n)&32768&&!(kl(Na(t.initializer))&32768);return r?hs(n,524288):n}function Ob(n){var t=n.parent;return t.kind===193||t.kind===195&&t.expression===n||t.kind===194&&t.expression===n||t.kind===190&&t.name===n&&!!t.initializer}function pA(n){return n.flags&58982400&&So(cl(n)||dn,98304)}function fp(n,t){return n&&Ob(t)&&of(n,pA)?Ws(Ns(n),L_):n}function mA(n){return!!e.findAncestor(n,function(t){return t.parent&&e.isExportAssignment(t.parent)&&t.parent.expression===t&&e.isEntityNameExpression(t)})}function Zm(n,t){s(n,111551)&&!lp(t)&&(je.preserveConstEnums&&mA(t)||!Dp(V(n)))&&an(n)}function hA(n){var t=Yc(n);if(t===pn)return _e;if(t===ye){var r=e.getContainingFunction(n);return w<2&&(r.kind===201?xn(n,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasModifier(r,256)&&xn(n,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Lr(r).flags|=8192,Jn(t)}n.parent&&e.isPropertyAccessExpression(n.parent)&&n.parent.expression===n||Zm(t,n);var i=nc(t),l=i.valueDeclaration;if(i.flags&32){if(l.kind===244&&e.nodeIsDecorated(l))for(var r=e.getContainingClass(n);r!==void 0;){if(r===l&&r.name!==n){Lr(l).flags|=16777216,Lr(n).flags|=33554432;break}r=e.getContainingClass(r)}else if(l.kind===213)for(var r=e.getThisContainer(n,!1);r.kind!==288;){if(r.parent===l){r.kind===158&&e.hasModifier(r,32)&&(Lr(l).flags|=16777216,Lr(n).flags|=33554432);break}r=e.getThisContainer(r,!1)}}_A(n,t);var d=fp(Jn(i),n),A=e.getAssignmentTargetKind(n);if(A){if(!(i.flags&3)&&!(e.isInJSFile(n)&&i.flags&512))return xn(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,wa(t)),_e;if($c(i))return i.flags&3?xn(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,wa(t)):xn(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,wa(t)),_e}var B=i.flags&2097152;if(i.flags&3){if(A===1)return d}else if(B)l=e.find(t.declarations,K);else return d;if(!l)return d;for(var Ae=e.getRootDeclaration(l).kind===155,We=dp(l),Ye=dp(n),tn=Ye!==We,bn=n.parent&&n.parent.parent&&e.isSpreadAssignment(n.parent)&&$g(n.parent.parent),Mn=t.flags&134217728;Ye!==We&&(Ye.kind===200||Ye.kind===201||e.isObjectLiteralOrClassExpressionMethod(Ye))&&(Nb(i)||Ae&&!uA(i));)Ye=dp(Ye);var it=Ae||B||tn||bn||Mn||e.isBindingElement(l)||d!==Cn&&d!==da&&(!a||(d.flags&(3|16384))!==0||lp(n)||n.parent.kind===261)||n.parent.kind===217||l.kind===241&&l.exclamationToken||l.flags&8388608,_t=it?Ae?fA(d,l):d:d===Cn||d===da?un:xu(d),St=Ad(n,d,_t,Ye,!it);if(!Db(n)&&(d===Cn||d===da)){if(St===Cn||St===da)return ae&&(xn(e.getNameOfDeclaration(l),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,wa(t),qt(St)),xn(n,e.Diagnostics.Variable_0_implicitly_has_an_1_type,wa(t),qt(St))),wh(St)}else if(!it&&!(kl(d)&32768)&&kl(St)&32768)return xn(n,e.Diagnostics.Variable_0_is_used_before_being_assigned,wa(t)),d;return A?Bl(St):St}function gA(n,t){return!!e.findAncestor(n,function(r){return r===t?"quit":e.isFunctionLike(r)})}function yA(n,t){return e.findAncestor(n,function(r){return r===t?"quit":r===t.initializer||r===t.condition||r===t.incrementor||r===t.statement})}function _A(n,t){if(w>=2||(t.flags&(2|32))===0||e.isSourceFile(t.valueDeclaration)||t.valueDeclaration.parent.kind===278)return;for(var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration),i=gA(n.parent,r),l=r,d=!1;l&&!e.nodeStartsNewLexicalEnvironment(l);){if(e.isIterationStatement(l,!1)){d=!0;break}l=l.parent}if(d){if(i){var A=!0;if(e.isForStatement(r)&&e.getAncestor(t.valueDeclaration,242).parent===r){var B=yA(n.parent,r);if(B){var Ae=Lr(B);Ae.flags|=131072;var We=Ae.capturedBlockScopeBindings||(Ae.capturedBlockScopeBindings=[]);e.pushIfUnique(We,t),B===r.initializer&&(A=!1)}}A&&(Lr(l).flags|=65536)}r.kind===229&&e.getAncestor(t.valueDeclaration,242).parent===r&&bA(n,r)&&(Lr(t.valueDeclaration).flags|=4194304),Lr(t.valueDeclaration).flags|=524288}i&&(Lr(t.valueDeclaration).flags|=262144)}function vA(n,t){var r=Lr(n);return!!r&&e.contains(r.capturedBlockScopeBindings,Zt(t))}function bA(n,t){for(var r=n;r.parent.kind===199;)r=r.parent;var i=!1;if(e.isAssignmentTarget(r))i=!0;else if(r.parent.kind===206||r.parent.kind===207){var l=r.parent;i=l.operator===45||l.operator===46}return i?!!e.findAncestor(r,function(d){return d===t?"quit":d===t.statement}):!1}function iy(n,t){if(Lr(n).flags|=2,t.kind===158||t.kind===161){var r=t.parent;Lr(r).flags|=4}else Lr(t).flags|=4}function Pb(n){return e.isSuperCall(n)?n:e.isFunctionLike(n)?void 0:e.forEachChild(n,Pb)}function Mb(n){var t=Lr(n);return t.hasSuperCall===void 0&&(t.superCall=Pb(n.body),t.hasSuperCall=!!t.superCall),t.superCall}function Rb(n){var t=Zt(n),r=ho(t),i=kc(r);return i===ut}function Fb(n,t,r){var i=t.parent,l=e.getClassExtendsHeritageElement(i);if(l&&!Rb(i)){var d=Mb(t);(!d||d.end>n.pos)&&xn(n,r)}}function Gb(n){var t=e.getThisContainer(n,!0),r=!1;t.kind===161&&Fb(n,t,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),t.kind===201&&(t=e.getThisContainer(t,!1),r=!0);switch(t.kind){case 248:xn(n,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 247:xn(n,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 161:Bb(n,t)&&xn(n,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 158:case 157:e.hasModifier(t,32)&&xn(n,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 153:xn(n,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);break}r&&w<2&&iy(n,t);var i=oy(n,!0,t);if(fe){var l=Jn(ln);if(i===l&&r)xn(n,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!i){var d=xn(n,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(t)){var A=oy(t);A&&A!==l&&e.addRelatedInfo(d,e.createDiagnosticForNode(t,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return i||oe}function oy(n,t,r){t===void 0&&(t=!0),r===void 0&&(r=e.getThisContainer(n,!1));var i=e.isInJSFile(n);if(e.isFunctionLike(r)&&(!sy(n)||e.getThisParameter(r))){var l=TA(r);if(i&&l){var d=Na(l).symbol;if(d&&d.members&&d.flags&16){var A=ho(d).thisType;return Ad(n,A)}}else if(i&&(r.kind===200||r.kind===243)&&e.getJSDocClassTag(r)){var A=ho(zr(r.symbol)).thisType;return Ad(n,A)}var B=W(r)||jb(r);if(B)return Ad(n,B)}if(e.isClassLike(r.parent)){var Ae=Zt(r.parent),We=e.hasModifier(r,32)?Jn(Ae):ho(Ae).thisType;return Ad(n,We)}if(i){var We=SA(r);if(We&&We!==_e)return Ad(n,We)}if(e.isSourceFile(r)){if(r.commonJsModuleIndicator){var Ye=Zt(r);return Ye&&Jn(Ye)}else if(t)return Jn(ln)}}function EA(n){var t=e.getThisContainer(n,!1);if(e.isFunctionLike(t)){var r=fc(t);if(r.thisParameter)return ay(r.thisParameter)}if(e.isClassLike(t.parent)){var i=Zt(t.parent);return e.hasModifier(t,32)?Jn(i):ho(i).thisType}}function TA(n){if(n.kind===200&&e.isBinaryExpression(n.parent)&&e.getAssignmentDeclarationKind(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===160&&n.parent.kind===192&&e.isBinaryExpression(n.parent.parent)&&e.getAssignmentDeclarationKind(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===200&&n.parent.kind===279&&n.parent.parent.kind===192&&e.isBinaryExpression(n.parent.parent.parent)&&e.getAssignmentDeclarationKind(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===200&&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 SA(n){var t=e.getJSDocType(n);if(t&&t.kind===298){var r=t;if(r.parameters.length>0&&r.parameters[0].name&&r.parameters[0].name.escapedText==="this")return Ua(r.parameters[0].type)}var i=e.getJSDocThisTag(n);if(i&&i.typeExpression)return Ua(i.typeExpression)}function Bb(n,t){return!!e.findAncestor(n,function(r){return e.isFunctionLikeDeclaration(r)?"quit":r.kind===155&&r.parent===t})}function Vb(n){var t=n.parent.kind===195&&n.parent.expression===n,r=e.getSuperContainer(n,!0),i=!1;if(!t)for(;r&&r.kind===201;)r=e.getSuperContainer(r,!0),i=w<2;var l=Ye(r),d=0;if(!l){var A=e.findAncestor(n,function(tn){return tn===r?"quit":tn.kind===153});return A&&A.kind===153?xn(n,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?xn(n,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!r||!r.parent||!(e.isClassLike(r.parent)||r.parent.kind===192)?xn(n,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):xn(n,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),_e}if(!t&&r.kind===161&&Fb(n,r,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.hasModifier(r,32)||t?d=512:d=256,Lr(n).flags|=d,r.kind===160&&e.hasModifier(r,256)&&(e.isSuperProperty(n.parent)&&e.isAssignmentTarget(n.parent)?Lr(r).flags|=4096:Lr(r).flags|=2048),i&&iy(n.parent,r),r.parent.kind===192)return w<2?(xn(n,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),_e):oe;var B=r.parent;if(!e.getClassExtendsHeritageElement(B))return xn(n,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),_e;var Ae=ho(Zt(B)),We=Ae&&Tl(Ae)[0];if(!We)return _e;if(r.kind===161&&Bb(n,r))return xn(n,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),_e;return d===512?kc(Ae):Jl(We,Ae.thisType);function Ye(tn){return tn?t?tn.kind===161:e.isClassLike(tn.parent)||tn.parent.kind===192?e.hasModifier(tn,32)?tn.kind===160||tn.kind===159||tn.kind===162||tn.kind===163:tn.kind===160||tn.kind===159||tn.kind===162||tn.kind===163||tn.kind===158||tn.kind===157||tn.kind===161:!1:!1}}function xA(n){return(n.kind===160||n.kind===162||n.kind===163)&&n.parent.kind===192?n.parent:n.kind===200&&n.parent.kind===279?n.parent.parent:void 0}function Ub(n){return e.getObjectFlags(n)&4&&n.target===Li?go(n)[0]:void 0}function wA(n){return Ws(n,function(t){return t.flags&2097152?e.forEach(t.types,Ub):Ub(t)})}function jb(n){if(n.kind===201)return;if(Rv(n)){var t=ah(n);if(t){var r=t.thisParameter;if(r)return Jn(r)}}var i=e.isInJSFile(n);if(fe||i){var l=xA(n);if(l){for(var d=Hu(l),A=l,B=d;B;){var Ae=wA(B);if(Ae)return Ei(Ae,qg(pp(l)));if(A.parent.kind!==279)break;A=A.parent.parent,B=Hu(A)}return Ns(d?Wu(d):as(l))}var We=n.parent;if(We.kind===208&&We.operatorToken.kind===62){var Ye=We.left;if(Ye.kind===193||Ye.kind===194){var tn=Ye.expression;if(i&&e.isIdentifier(tn)){var bn=e.getSourceFileOfNode(We);if(bn.commonJsModuleIndicator&&Yc(tn)===bn.symbol)return}return Ns(as(tn))}}}return}function Wb(n,t){var r=n.parent;if(!Rv(r))return;var i=e.getImmediatelyInvokedFunctionExpression(r);if(i&&i.arguments){var l=wy(i),d=r.parameters.indexOf(n);if(n.dotDotDotToken)return xy(l,d,l.length,oe,void 0);var A=Lr(i),B=A.resolvedSignature;A.resolvedSignature=Si;var Ae=d<l.length?xd(Na(l[d])):n.initializer?void 0:Rn;return A.resolvedSignature=B,Ae}var We=ah(r);if(We){if(t){nT(r);var Ae=Jn(zr(r.symbol));if(Bi(Ae))return Ae;We=oi(Ae,0)[0]}var Ye=r.parameters.indexOf(n)-(e.getThisParameter(r)?1:0);return n.dotDotDotToken&&e.lastOrUndefined(r.parameters)===n?yp(We,Ye):cm(We,Ye)}}function Hb(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return Ua(t);switch(n.kind){case 155:return Wb(n,!1);case 190:return AA(n)}}function AA(n){var t=n.parent.parent,r=n.propertyName||n.name,i=Hb(t);if(i&&!e.isBindingPattern(r)&&!Zu(r)){var l=vd(r);if(nr(l)){var d=Oo(l);return Zo(i,d)}}}function kA(n){var t=n.parent;if(e.hasInitializer(t)&&n===t.initializer){var r=Hb(t);if(r)return r;if(e.isBindingPattern(t.name))return Dn(t.name,!0,!1)}return}function CA(n){var t=e.getContainingFunction(n);if(t){var r=e.getFunctionFlags(t);if(r&1)return;var i=ly(t);if(i){if(r&2){var l=Sp(i);return l&&Wr([l,zE(l)])}return i}}return}function DA(n){var t=Qc(n);if(t){var r=mc(t);return r&&Wr([r,zE(r)])}return}function LA(n){var t=e.getContainingFunction(n);if(t){var r=e.getFunctionFlags(t),i=ly(t);if(i)return n.asteriskToken?i:Jd(0,i,(r&2)!==0)}return}function sy(n){for(var t=!1;n.parent&&!e.isFunctionLike(n.parent);){if(e.isParameter(n.parent)&&(t||n.parent.initializer===n))return!0;e.isBindingElement(n.parent)&&n.parent.initializer===n&&(t=!0),n=n.parent}return!1}function Kb(n,t){var r=!!(e.getFunctionFlags(t)&2),i=ly(t);return i&&Jd(n,i,r)||void 0}function ly(n){var t=Yd(n);if(t)return t;var r=Qb(n);return r&&!tg(r)?Fi(r):void 0}function qb(n,t,r){var i=wy(n),l=i.indexOf(t);return l===-1?void 0:cy(n,l,r)}function cy(n,t,r){var i=Lr(n).resolvedSignature===vi?vi:If(n);if(e.isJsxOpeningLikeElement(n)&&t===0)return rh(i,n);if(r&&r&4&&i.target){var l=ag(i.target);return Jf(Zs(i,t),Zs(l,t))}return Zs(i,t)}function IA(n,t){return n.parent.kind===197?qb(n.parent,t):void 0}function NA(n,t){var r=n.parent,i=r.left,l=r.operatorToken,d=r.right;switch(l.kind){case 62:if(n!==d)return;var A=OA(r);return A?A===!0?Dl(i):A:void 0;case 56:case 60:var B=Qc(r,t);return n===d&&(B&&B.pattern||!B&&!e.isDefaultedExpandoInitializer(r))?Dl(i):B;case 55:case 27:return n===d?Qc(r,t):void 0;default:return}}function OA(n){var t=e.getAssignmentDeclarationKind(n);switch(t){case 0:return!0;case 5:case 1:case 6:case 3:if(n.left.symbol){var r=n.left.symbol.valueDeclaration;if(!r)return!1;var i=e.cast(n.left,e.isAccessExpression),l=e.getEffectiveTypeAnnotationNode(r);if(l)return Ua(l);if(e.isIdentifier(i.expression)){var d=i.expression,A=lo(d,d.escapedText,111551,void 0,d.escapedText,!0);if(A){var B=e.getEffectiveTypeAnnotationNode(A.valueDeclaration);if(B){var Ae=e.getElementOrPropertyAccessName(i);if(Ae!==void 0){var We=wf(Ua(B),Ae);return We||!1}}return!1}}return!e.isInJSFile(r)}else return!0;case 2:case 4:if(!n.symbol)return!0;if(n.symbol.valueDeclaration){var B=e.getEffectiveTypeAnnotationNode(n.symbol.valueDeclaration);if(B){var We=Ua(B);if(We)return We}}if(t===2)return!1;var Ye=e.cast(n.left,e.isAccessExpression);if(!e.isObjectLiteralMethod(e.getThisContainer(Ye.expression,!1)))return!1;var tn=Gb(Ye.expression),bn=e.getElementOrPropertyAccessName(Ye);return bn!==void 0&&tn&&wf(tn,bn)||!1;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(t)}}function wf(n,t){return Ws(n,function(r){if(Fl(r)){var i=uc(r),l=cl(i)||i,d=rs(e.unescapeLeadingUnderscores(t));if(Wi(d,l))return yv(r,d)}else if(r.flags&3670016){var A=Ji(r,t);if(A)return Jn(A);if(Do(r)){var B=ju(r);if(B&&Cl(t)&&+t>=0)return B}return Cl(t)&&$m(r,1)||$m(r,0)}return},!0)}function $m(n,t){return Ws(n,function(r){return eg(r,t)},!0)}function PA(n,t){return e.Debug.assert(e.isObjectLiteralMethod(n)),n.flags&16777216?void 0:uy(n,t)}function uy(n,t){var r=n.parent,i=Hu(r,t);if(i){if(!Ya(n)){var l=Zt(n).escapedName,d=wf(i,l);if(d)return d}return py(n.name)&&$m(i,1)||$m(i,0)}return}function Jb(n,t){return n&&(wf(n,""+t)||zy(1,n,un,void 0,!1))}function MA(n,t){var r=n.parent;return n===r.whenTrue||n===r.whenFalse?Qc(r,t):void 0}function RA(n,t){var r=Hu(n.openingElement.tagName),i=oh(lf(n));if(!(r&&!Bi(r)&&i&&i!==""))return;var l=Uv(n.children),d=l.indexOf(t),A=wf(r,i);return A&&(l.length===1?A:Ws(A,function(B){return Sd(B)?xl(B,rs(d)):B},!0))}function FA(n){var t=n.parent;return e.isJsxAttributeLike(t)?Qc(n):e.isJsxElement(t)?RA(t,n):void 0}function zb(n){if(e.isJsxAttribute(n)){var t=Hu(n.parent);return!t||Bi(t)?void 0:wf(t,n.name.escapedText)}else return Qc(n.parent)}function eh(n){switch(n.kind){case 10:case 8:case 9:case 14:case 105:case 90:case 99:case 75:case 145:return!0;case 193:case 199:return eh(n.expression);case 274:return!n.expression||eh(n.expression)}return!1}function GA(n,t){return Dg(t,e.map(e.filter(n.properties,function(r){return!!r.symbol&&r.kind===279&&eh(r.initializer)&&em(t,r.symbol.escapedName)}),function(r){return[function(){return Na(r.initializer)},r.symbol.escapedName]}),Wi,t)}function BA(n,t){return Dg(t,e.map(e.filter(n.properties,function(r){return!!r.symbol&&r.kind===271&&em(t,r.symbol.escapedName)&&(!r.initializer||eh(r.initializer))}),function(r){return[r.initializer?function(){return Na(r.initializer)}:function(){return Kn},r.symbol.escapedName]}),Wi,t)}function Hu(n,t){var r=e.isObjectLiteralMethod(n)?PA(n,t):Qc(n,t),i=nh(r,n,t);if(i&&!(t&&t&2&&i.flags&8650752)){var l=Ws(i,us,!0);if(l.flags&1048576){if(e.isObjectLiteralExpression(n))return GA(n,l);if(e.isJsxAttributes(n))return BA(n,l)}return l}}function nh(n,t,r){if(n&&So(n,63176704)){var i=pp(t);if(i&&e.some(i.inferences,Kd)){if(r&&r&1)return th(n,i.nonFixingMapper);if(i.returnMapper)return th(n,i.returnMapper)}}return n}function th(n,t){return n.flags&63176704?Ei(n,t):n.flags&1048576?Wr(e.map(n.types,function(r){return th(r,t)}),0):n.flags&2097152?Zi(e.map(n.types,function(r){return th(r,t)})):n}function Qc(n,t){if(n.flags&16777216)return;if(n.contextualType)return n.contextualType;var r=n.parent;switch(r.kind){case 241:case 155:case 158:case 157:case 190:return kA(n);case 201:case 234:return CA(n);case 211:return LA(r);case 205:return DA(r);case 195:if(r.expression.kind===95)return ct;case 196:return qb(r,n,t);case 198:case 216:return e.isConstTypeReference(r.type)?void 0:Ua(r.type);case 208:return NA(n,t);case 279:case 280:return uy(r,t);case 281:return Hu(r.parent,t);case 191:{var i=r,l=Hu(i,t);return Jb(l,e.indexOfNode(i.elements,n))}case 209:return MA(n,t);case 220:return e.Debug.assert(r.parent.kind===210),IA(r.parent,n);case 199:{var d=e.isInJSFile(r)?e.getJSDocTypeTag(r):void 0;return d?Ua(d.typeExpression.type):Qc(r,t)}case 274:return FA(r);case 271:case 273:return zb(r);case 266:case 265:return VA(r)}return}function pp(n){var t=e.findAncestor(n,function(r){return!!r.inferenceContext});return t&&t.inferenceContext}function VA(n){return e.isJsxOpeningElement(n)&&n.parent.contextualType?n.parent.contextualType:cy(n,0)}function rh(n,t){return LE(t)!==0?UA(n,t):HA(n,t)}function UA(n,t){var r=Dy(n,dn);r=Xb(t,lf(t),r);var i=kd(m.IntrinsicAttributes,t);return i!==_e&&(r=Jf(i,r)),r}function jA(n,t){if(n.unionSignatures){for(var r=[],i=0,l=n.unionSignatures;i<l.length;i++){var d=l[i],A=Fi(d);if(Bi(A))return A;var B=Zo(A,t);if(!B)return;r.push(B)}return Zi(r)}var Ae=Fi(n);return Bi(Ae)?Ae:Zo(Ae,t)}function WA(n){if(mp(n.tagName)){var t=lE(n),r=ph(n,t);return Yf(r)}var i=as(n.tagName);if(i.flags&128){var t=sE(i,n);if(!t)return _e;var r=ph(n,t);return Yf(r)}return i}function Xb(n,t,r){var i=t2(t);if(i){var l=ho(i),d=WA(n);if(e.length(l.typeParameters)>=2){var A=Bd([d,r],l.typeParameters,2,e.isInJSFile(n));return bu(l,A)}else if(e.length(l.aliasTypeArguments)>=2){var A=Bd([d,r],l.aliasTypeArguments,2,e.isInJSFile(n));return Qf(l.aliasSymbol,A)}}return r}function HA(n,t){var r=lf(t),i=r2(r),l=i===void 0?Dy(n,dn):i===""?Fi(n):jA(n,i);if(!l)return!!i&&!!e.length(t.attributes.properties)&&xn(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(i)),dn;if(l=Xb(t,r,l),Bi(l))return l;var d=l,A=kd(m.IntrinsicClassAttributes,t);if(A!==_e){var B=Ko(A.symbol),Ae=Fi(n);d=Jf(B?bu(A,Bd([Ae],B,_u(B),e.isInJSFile(t))):A,d)}var We=kd(m.IntrinsicAttributes,t);return We!==_e&&(d=Jf(We,d)),d}function dy(n,t){var r=oi(n,0);if(r.length===1){var i=r[0];if(!KA(i,t))return i}}function KA(n,t){for(var r=0;r<t.parameters.length;r++){var i=t.parameters[r];if(i.initializer||i.questionToken||i.dotDotDotToken||Im(i))break}return t.parameters.length&&e.parameterIsThisKeyword(t.parameters[0])&&r--,!qu(n)&&Vl(n)<r}function Yb(n){return n.kind===200||n.kind===201}function Qb(n){return Yb(n)||e.isObjectLiteralMethod(n)?ah(n):void 0}function ah(n){e.Debug.assert(n.kind!==160||e.isObjectLiteralMethod(n));var t=ng(n);if(t)return t;var r=Hu(n,1);if(!r)return;if(!(r.flags&1048576))return dy(r,n);for(var i,l=r.types,d=0,A=l;d<A.length;d++){var B=A[d],Ae=dy(B,n);if(Ae)if(!i)i=[Ae];else if(Yp(i[0],Ae,!1,!0,!0,tp))i.push(Ae);else return}if(i)return i.length===1?i[0]:__(i[0],i)}function qA(n,t){w<2&&Ll(n,je.downlevelIteration?1536:2048);var r=Na(n.expression,t);return qd(33,r,un,n.expression)}function Af(n){return n.kind===190&&!!n.initializer||n.kind===208&&n.operatorToken.kind===62}function Zb(n,t,r){for(var i=n.elements,l=i.length,d=!1,A=[],B=e.isAssignmentTarget(n),Ae=Hu(n),We=Ep(n),Ye=0;Ye<l;Ye++){var tn=i[Ye];if(B&&tn.kind===212){var bn=Na(tn.expression,t,r),Mn=ms(bn,1)||zy(65,bn,un,void 0,!1);Mn&&A.push(Mn)}else{var it=Jb(Ae,Ye),_t=Pf(tn,t,it,r);A.push(_t)}Ye<l-1&&tn.kind===212&&(d=!0)}if(!d){var St=l>0&&i[l-1].kind===212,Yt=l-(St?1:0),mr=void 0;if(B&&Yt>0){var _t=sg(Gu(A,Yt,St));return _t.pattern=n,_t}else{if(mr=$b(A,Ae,St,l,We))return fy(mr);if(r)return fy(Gu(A,Yt,St))}}return fy(Is(A.length?Wr(A,2):a?wr:Rn,We))}function fy(n){if(!(e.getObjectFlags(n)&4))return n;var t=n.literalType;return t||(t=n.literalType=sg(n),t.objectFlags|=65536|524288),t}function $b(n,t,r,i,l){if(i===void 0&&(i=n.length),l===void 0&&(l=!1),l||t&&of(t,rf))return Gu(n,i-(r?1:0),r,l)}function py(n){switch(n.kind){case 153:return JA(n);case 75:return Cl(n.escapedText);case 8:case 10:return Cl(n.text);default:return!1}}function JA(n){return qo(Ku(n),296)}function eE(n){return n==="Infinity"||n==="-Infinity"||n==="NaN"}function Cl(n){return(+n).toString()===n}function Ku(n){var t=Lr(n.expression);return t.resolvedType||(t.resolvedType=Na(n.expression),t.resolvedType.flags&98304||!qo(t.resolvedType,132|296|12288)&&!Wi(t.resolvedType,mt)?xn(n,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):xE(n.expression,t.resolvedType,!0)),t.resolvedType}function nE(n,t,r,i){for(var l=[],d=0;d<r.length;d++)(i===0||py(n.properties[d+t].name))&&l.push(Jn(r[d]));var A=l.length?Wr(l,2):un;return dl(A,Ep(n))}function tE(n){e.Debug.assert((n.flags&2097152)!==0,"Should only get Alias here.");var t=na(n);if(!t.immediateTarget){var r=bs(n);if(!r)return e.Debug.fail();t.immediateTarget=Xs(r,!0)}return t.immediateTarget}function zA(n,t){var r=e.isAssignmentTarget(n);kD(n,r);var i,l=[],d=Wn,A=Hu(n),B=A&&A.pattern&&(A.pattern.kind===188||A.pattern.kind===192),Ae=Ep(n),We=Ae?8:0,Ye=e.isInJSFile(n)&&!e.isInJsonFile(n),tn=e.getJSDocEnumTag(n),bn=!A&&Ye&&!tn,Mn=Je,it=!1,_t=!1,St=!1;i=e.createSymbolTable();for(var Yt=0,mr=0;mr<n.properties.length;mr++){var or=n.properties[mr],br=Zt(or),ta=or.name&&or.name.kind===153&&!e.isWellKnownSymbolSyntactically(or.name.expression)?Ku(or.name):void 0;if(or.kind===279||or.kind===280||e.isObjectLiteralMethod(or)){var Ur=or.kind===279?uT(or,t):or.kind===280?Pf(or.name,t):dT(or,t);if(Ye){var ja=ql(or);ja?(Al(Ur,ja,or),Ur=ja):tn&&tn.typeExpression&&Al(Ur,Ua(tn.typeExpression),or)}Mn|=e.getObjectFlags(Ur)&1835008;var $i=ta&&nr(ta)?ta:void 0,Sa=$i?Ga(4|br.flags,Oo($i),We|4096):Ga(4|br.flags,br.escapedName,We);if($i&&(Sa.nameType=$i),r){var ka=or.kind===279&&Af(or.initializer)||or.kind===280&&or.objectAssignmentInitializer;ka&&(Sa.flags|=16777216)}else if(B&&!(e.getObjectFlags(A)&512)){var Bt=Ji(A,br.escapedName);Bt?Sa.flags|=Bt.flags&16777216:!je.suppressExcessPropertyErrors&&!Xi(A,0)&&xn(or.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,wa(br),qt(A))}Sa.declarations=br.declarations,Sa.parent=br.parent,br.valueDeclaration&&(Sa.valueDeclaration=br.valueDeclaration),Sa.type=Ur,Sa.target=br,br=Sa}else if(or.kind===281){w<2&&Ll(or,2),l.length>0&&(d=od(d,wt(),n.symbol,Mn,Ae),l=[],i=e.createSymbolTable(),_t=!1,St=!1);var Ur=Na(or.expression);if(!kf(Ur))return xn(or,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),_e;d=od(d,Ur,n.symbol,Mn,Ae),Yt=mr+1;continue}else e.Debug.assert(or.kind===162||or.kind===163),_m(or);ta&&!(ta.flags&8576)?Wi(ta,mt)&&(Wi(ta,ot)?St=!0:_t=!0,r&&(it=!0)):i.set(br.escapedName,br),l.push(br)}if(B)for(var Sn=0,gn=io(A);Sn<gn.length;Sn++){var Sa=gn[Sn];!i.get(Sa.escapedName)&&!(d&&Ji(d,Sa.escapedName))&&(Sa.flags&16777216||xn(Sa.valueDeclaration||Sa.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),i.set(Sa.escapedName,Sa),l.push(Sa))}if(d!==Wn)return l.length>0&&(d=od(d,wt(),n.symbol,Mn,Ae)),d;return wt();function wt(){var At=_t?nE(n,Yt,l,0):void 0,er=St?nE(n,Yt,l,1):void 0,gr=No(n.symbol,i,e.emptyArray,e.emptyArray,At,er);return gr.objectFlags|=Mn|128|524288,bn&&(gr.objectFlags|=16384),it&&(gr.objectFlags|=512),r&&(gr.pattern=n),gr}}function kf(n){if(n.flags&63176704){var t=cl(n);if(t!==void 0)return kf(t)}return!!(n.flags&(1|67108864|524288|58982400)||kl(n)&117632&&kf(rb(n))||n.flags&3145728&&e.every(n.types,kf))}function XA(n){hy(n)}function YA(n,t){return _m(n),am(n)||oe}function QA(n){hy(n.openingElement),mp(n.closingElement.tagName)?my(n.closingElement):Na(n.closingElement.tagName),ih(n)}function ZA(n,t){return _m(n),am(n)||oe}function $A(n){return hy(n.openingFragment),je.jsx===2&&(je.jsxFactory||e.getSourceFileOfNode(n).pragmas.has("jsx"))&&xn(n,je.jsxFactory?e.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:e.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma),ih(n),am(n)||oe}function rE(n){return!e.stringContains(n,"-")}function mp(n){return n.kind===75&&e.isIntrinsicJsxName(n.escapedText)}function aE(n,t){return n.initializer?Pf(n.initializer,t):Kn}function e2(n,t){for(var r=n.attributes,i=e.createSymbolTable(),l=Vt,d=!1,A,B=!1,Ae=4096,We=oh(lf(n)),Ye=0,tn=r.properties;Ye<tn.length;Ye++){var bn=tn[Ye],Mn=bn.symbol;if(e.isJsxAttribute(bn)){var it=aE(bn,t);Ae|=e.getObjectFlags(it)&1835008;var _t=Ga(4|33554432|Mn.flags,Mn.escapedName);_t.declarations=Mn.declarations,_t.parent=Mn.parent,Mn.valueDeclaration&&(_t.valueDeclaration=Mn.valueDeclaration),_t.type=it,_t.target=Mn,i.set(_t.escapedName,_t),bn.name.escapedText===We&&(B=!0)}else{e.Debug.assert(bn.kind===273),i.size>0&&(l=od(l,Ur(),r.symbol,Ae,!1),i=e.createSymbolTable());var it=as(bn.expression,t);Bi(it)&&(d=!0),kf(it)?l=od(l,it,r.symbol,Ae,!1):A=A?Zi([A,it]):it}}d||i.size>0&&(l=od(l,Ur(),r.symbol,Ae,!1));var St=n.parent.kind===264?n.parent:void 0;if(St&&St.openingElement===n&&St.children.length>0){var Yt=ih(St,t);if(!d&&We&&We!==""){B&&xn(r,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(We));var mr=Hu(n.attributes),or=mr&&wf(mr,We),br=Ga(4|33554432,We);br.type=Yt.length===1?Yt[0]:$b(Yt,or,!1)||Is(Wr(Yt)),br.valueDeclaration=e.createPropertySignature(void 0,e.unescapeLeadingUnderscores(We),void 0,void 0,void 0),br.valueDeclaration.parent=r,br.valueDeclaration.symbol=br;var ta=e.createSymbolTable();ta.set(We,br),l=od(l,No(r.symbol,ta,e.emptyArray,e.emptyArray,void 0,void 0),r.symbol,Ae,!1)}}if(d)return oe;if(A&&l!==Vt)return Zi([A,l]);return A||(l===Vt?Ur():l);function Ur(){Ae|=Je;var ja=No(r.symbol,i,e.emptyArray,e.emptyArray,void 0,void 0);return ja.objectFlags|=Ae|128|524288,ja}}function ih(n,t){for(var r=[],i=0,l=n.children;i<l.length;i++){var d=l[i];d.kind===11?d.containsOnlyTriviaWhiteSpaces||r.push(ct):r.push(Pf(d,t))}return r}function n2(n,t){return e2(n.parent,t)}function kd(n,t){var r=lf(t),i=r&&ti(r),l=i&&Uo(i,n,788968);return l?ho(l):_e}function my(n){var t=Lr(n);if(!t.resolvedSymbol){var r=kd(m.IntrinsicElements,n);if(r!==_e){if(!e.isIdentifier(n.tagName))return e.Debug.fail();var i=Ji(r,n.tagName.escapedText);if(i)return t.jsxFlags|=1,t.resolvedSymbol=i;var l=ms(r,0);return l?(t.jsxFlags|=2,t.resolvedSymbol=r.symbol):(xn(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(n.tagName),"JSX."+m.IntrinsicElements),t.resolvedSymbol=pn)}else return ae&&xn(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(m.IntrinsicElements)),t.resolvedSymbol=pn}return t.resolvedSymbol}function lf(n){var t=n&&Lr(n);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||t.jsxNamespace!==!1){var r=di(n),i=lo(n,r,1920,void 0,r,!1);if(i){var l=b(Uo(ti(b(i)),m.JSX,1920));if(l)return t&&(t.jsxNamespace=l),l;t&&(t.jsxNamespace=!1)}}return gf(m.JSX,1920,void 0)}function iE(n,t){var r=t&&Uo(t.exports,n,788968),i=r&&ho(r),l=i&&io(i);if(l){if(l.length===0)return"";if(l.length===1)return l[0].escapedName;l.length>1&&xn(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(n))}return}function t2(n){return n&&Uo(n.exports,m.LibraryManagedAttributes,788968)}function r2(n){return iE(m.ElementAttributesPropertyNameContainer,n)}function oh(n){return iE(m.ElementChildrenAttributeNameContainer,n)}function oE(n,t){if(n.flags&4)return[Si];if(n.flags&128){var r=sE(n,t);if(r){var i=ph(t,r);return[i]}else return xn(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,"JSX."+m.IntrinsicElements),e.emptyArray}var l=us(n),d=oi(l,1);return d.length===0&&(d=oi(l,0)),d.length===0&&l.flags&1048576&&(d=Wh(e.map(l.types,function(A){return oE(A,t)}))),d}function sE(n,t){var r=kd(m.IntrinsicElements,t);if(r!==_e){var i=n.value,l=Ji(r,e.escapeLeadingUnderscores(i));if(l)return Jn(l);var d=ms(r,0);return d||void 0}return oe}function a2(n,t,r){if(n===1){var i=uE(r);i&&zl(t,i,pa,r,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements)}else if(n===0){var l=cE(r);l&&zl(t,l,pa,r,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements)}else{var i=uE(r),l=cE(r);if(!i||!l)return;var d=Wr([i,l]);zl(t,d,pa,r,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements)}}function lE(n){e.Debug.assert(mp(n.tagName));var t=Lr(n);if(!t.resolvedJsxElementAttributesType){var r=my(n);return t.jsxFlags&1?t.resolvedJsxElementAttributesType=Jn(r):t.jsxFlags&2?t.resolvedJsxElementAttributesType=Up(r,0).type:t.resolvedJsxElementAttributesType=_e}return t.resolvedJsxElementAttributesType}function cE(n){var t=kd(m.ElementClass,n);return t===_e?void 0:t}function am(n){return kd(m.Element,n)}function uE(n){var t=am(n);if(t)return Wr([t,Bn])}function i2(n){var t=kd(m.IntrinsicElements,n);return t?io(t):e.emptyArray}function o2(n){(je.jsx||0)===0&&xn(n,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),am(n)===void 0&&(ae&&xn(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist))}function hy(n){var t=e.isJsxOpeningLikeElement(n);t&&CD(n),o2(n);var r=tt&&je.jsx===2?e.Diagnostics.Cannot_find_name_0:void 0,i=di(n),l=t?n.tagName:n,d=lo(l,i,111551,r,i,!0);if(d&&(d.isReferenced=67108863,d.flags&2097152&&an(d)),t){var A=If(n);a2(LE(n),Fi(A),n)}}function gy(n,t,r){if(n.flags&524288){var i=dc(n);if(i.stringIndexInfo||i.numberIndexInfo&&Cl(t)||td(n,t)||r&&!rE(t))return!0}else if(n.flags&3145728&&im(n))for(var l=0,d=n.types;l<d.length;l++){var A=d[l];if(gy(A,t,r))return!0}return!1}function im(n){return!!(n.flags&524288&&!(e.getObjectFlags(n)&512)||n.flags&67108864||n.flags&1048576&&e.some(n.types,im)||n.flags&2097152&&e.every(n.types,im))}function s2(n,t){if(DD(n),n.expression){var r=Na(n.expression,t);return n.dotDotDotToken&&r!==oe&&!Ms(r)&&xn(n,e.Diagnostics.JSX_spread_child_must_be_an_array_type),r}else return _e}function yy(n){return n.valueDeclaration?e.getCombinedNodeFlags(n.valueDeclaration):0}function _y(n){if(n.flags&8192||e.getCheckFlags(n)&4)return!0;if(e.isInJSFile(n.valueDeclaration)){var t=n.valueDeclaration.parent;return t&&e.isBinaryExpression(t)&&e.getAssignmentDeclarationKind(t)===3}}function sh(n,t,r,i){var l=e.getDeclarationModifierFlagsFromSymbol(i),d=n.kind===152?n.right:n.kind===187?n:n.name;if(e.getCheckFlags(i)&1024)return xn(d,e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,wa(i),qt(r)),!1;if(t){if(w<2&&dE(i))return xn(d,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(l&128)return xn(d,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,wa(i),qt(tf(i))),!1}if(l&128&&e.isThisProperty(n)&&dE(i)){var A=e.getClassLikeDeclarationOfSymbol(Ps(i));if(A&&k0(n))return xn(d,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,wa(i),e.getTextOfIdentifierOrLiteral(A.name)),!1}if(!(l&24))return!0;if(l&8){var A=e.getClassLikeDeclarationOfSymbol(Ps(i));return a_(n,A)?!0:(xn(d,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,wa(i),qt(tf(i))),!1)}if(t)return!0;var B=lS(n,function(Ye){var tn=ho(Zt(Ye));return nw(tn,i)?tn:void 0});if(!B){var Ae=void 0;if(l&32||!(Ae=l2(n))||!Ae.type)return xn(d,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,wa(i),qt(tf(i)||r)),!1;var We=Ua(Ae.type);B=We.flags&262144?ll(We):We}return l&32?!0:(r.flags&262144&&(r=r.isThisType?ll(r):cl(r)),!r||!Ra(r,B)?(xn(d,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,wa(i),qt(B)),!1):!0)}function l2(n){var t=e.getThisContainer(n,!1);return t&&e.isFunctionLike(t)?e.getThisParameter(t):void 0}function dE(n){return!!Xp(n,function(t){return!(t.flags&8192)})}function Cf(n){return Xl(Na(n),n)}function fE(n){return!!((a?kl(n):n.flags)&98304)}function vy(n){return fE(n)?Wu(n):n}function c2(n,t){xn(n,t&32768?t&65536?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function u2(n,t){xn(n,t&32768?t&65536?e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function pE(n,t,r){if(a&&n.flags&2)return xn(t,e.Diagnostics.Object_is_of_type_unknown),_e;var i=(a?kl(n):n.flags)&98304;if(i){r(t,i);var l=Wu(n);return l.flags&(98304|131072)?_e:l}return n}function Xl(n,t){return pE(n,t,c2)}function mE(n,t){var r=Xl(n,t);return r!==_e&&r.flags&16384&&xn(t,e.Diagnostics.Object_is_possibly_undefined),r}function hE(n){return n.flags&32?d2(n):by(n,n.expression,Cf(n.expression),n.name)}function d2(n){var t=Na(n.expression),r=Qp(t,n.expression);return Bg(by(n,n.expression,Xl(r,n.expression),n.name),n,r!==t)}function gE(n){return by(n,n.left,Cf(n.left),n.right)}function yE(n){for(;n.parent.kind===199;)n=n.parent;return e.isCallOrNewExpression(n.parent)&&n.parent.expression===n}function by(n,t,r,i){var l=Lr(t).resolvedSymbol,d=e.getAssignmentTargetKind(n),A=us(d!==0||yE(n)?Ns(r):r);if(Bi(A)||A===Ht)return e.isIdentifier(t)&&l&&Zm(l,n),A;var B=Ji(A,i.escapedText);e.isIdentifier(t)&&l&&!(B&&Dp(B))&&Zm(l,n);var Ae;if(B){if(f2(B,n,i),lh(B,n,t.kind===103),Lr(n).resolvedSymbol=B,sh(n,t.kind===101,A,B),d&&(rT(n,B)||aT(n)))return xn(i,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(i)),_e;Ae=fp(Jn(B),n)}else{var We=d===0||!Qd(r)||Jp(r)?Xi(A,0):void 0;if(!(We&&We.type))return $f(r)?oe:r.symbol===ln?(ln.exports.has(i.escapedText)&&ln.exports.get(i.escapedText).flags&418?xn(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(i.escapedText),qt(r)):ae&&xn(i,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,qt(r)),oe):(i.escapedText&&!rl(n)&&g2(i,Jp(r)?A:r),_e);We.isReadonly&&(e.isAssignmentTarget(n)||e.isDeleteTarget(n))&&xn(n,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,qt(A)),Ae=We.type}return _E(n,B,Ae,i)}function _E(n,t,r,i){var l=e.getAssignmentTargetKind(n);if(n.kind!==194&&n.kind!==193||l===1||t&&!(t.flags&(3|4|98304))&&!(t.flags&8192&&r.flags&1048576))return r;var d=!1;if(a&&et&&n.expression.kind===103){var A=t&&t.valueDeclaration;if(A&&ZT(A)){var B=dp(n);B.kind===161&&B.parent===A.parent&&(d=!0)}}else a&&t&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(t.valueDeclaration)&&dp(n)===dp(t.valueDeclaration)&&(d=!0);var Ae=Ad(n,r,d?xu(r):r);return d&&!(kl(r)&32768)&&kl(Ae)&32768?(xn(i,e.Diagnostics.Property_0_is_used_before_being_assigned,wa(t)),r):l?Bl(Ae):Ae}function f2(n,t,r){var i=n.valueDeclaration;if(!i||e.getSourceFileOfNode(t).isDeclarationFile)return;var l,d=e.idText(r);p2(t)&&!Qo(i,r)&&!m2(n)?l=xn(r,e.Diagnostics.Property_0_is_used_before_its_initialization,d):i.kind===244&&t.parent.kind!==168&&!(i.flags&8388608)&&!Qo(i,r)&&(l=xn(r,e.Diagnostics.Class_0_used_before_its_declaration,d)),l&&e.addRelatedInfo(l,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,d))}function p2(n){return!!e.findAncestor(n,function(t){switch(t.kind){case 158:return!0;case 279:case 160:case 162:case 163:case 281:case 153:case 220:case 274:case 271:case 272:case 273:case 266:case 215:case 277:return!1;default:return e.isExpressionNode(t)?!1:"quit"}})}function m2(n){if(!(n.parent.flags&32))return!1;for(var t=Jn(n.parent);;){if(t=t.symbol&&h2(t),!t)return!1;var r=Ji(t,n.escapedName);if(r&&r.valueDeclaration)return!0}}function h2(n){var t=Tl(n);return t.length===0?void 0:Zi(t)}function g2(n,t){var r,i;if(t.flags&1048576&&!(t.flags&131068))for(var l=0,d=t.types;l<d.length;l++){var A=d[l];if(!Ji(A,n.escapedText)&&!Xi(A,0)){r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),qt(A));break}}if(vE(n.escapedText,t))r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_is_a_static_member_of_type_1,e.declarationNameToString(n),qt(t));else{var B=xp(t);if(B&&Ji(B,n.escapedText))r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),qt(t)),i=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await);else{var Ae=bE(n,t);if(Ae!==void 0){var We=e.symbolName(Ae);r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e.declarationNameToString(n),qt(t),We),i=Ae.valueDeclaration&&e.createDiagnosticForNode(Ae.valueDeclaration,e.Diagnostics._0_is_declared_here,We)}else r=e.chainDiagnosticMessages(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),qt(t))}}var Ye=e.createDiagnosticForNodeFromMessageChain(n,r);i&&e.addRelatedInfo(Ye,i),tt.add(Ye)}function vE(n,t){var r=t.symbol&&Ji(Jn(t.symbol),n);return r!==void 0&&r.valueDeclaration&&e.hasModifier(r.valueDeclaration,32)}function bE(n,t){return Ty(e.isString(n)?n:e.idText(n),io(t),111551)}function Ey(n,t){var r=bE(n,t);return r&&e.symbolName(r)}function EE(n,t,r){e.Debug.assert(t!==void 0,"outername should always be defined");var i=Os(n,t,r,void 0,t,!1,!1,function(l,d,A){e.Debug.assertEqual(t,d,"name should equal outerName");var B=Uo(l,d,A);return B||Ty(e.unescapeLeadingUnderscores(d),e.arrayFrom(l.values()),A)});return i}function y2(n,t,r){var i=EE(n,t,r);return i&&e.symbolName(i)}function TE(n,t){return t.exports&&Ty(e.idText(n),oa(t),2623475)}function _2(n,t){var r=TE(n,t);return r&&e.symbolName(r)}function v2(n,t){var r=function(d,A){A===void 0&&(A=1);var B=td(n,d);if(B){var Ae=Wd(Jn(B));if(Ae&&wu(Ae)===A&&qt(Zs(Ae,0))==="string")return!0}return!1},i=e.isAssignmentTarget(t)?"set":"get";if(!r(i))return;var l=e.tryGetPropertyAccessOrIdentifierToString(t);return l===void 0?l=i:l+="."+i,l}function Ty(n,t,r){return e.getSpellingSuggestion(n,t,i);function i(l){var d=e.symbolName(l);return!e.startsWith(d,'"')&&l.flags&r?d:void 0}}function lh(n,t,r){if(!n||!(n.flags&106500)||!n.valueDeclaration||!e.hasModifier(n.valueDeclaration,8))return;if(t&&e.isWriteOnlyAccess(t)&&!(n.flags&65536&&!(n.flags&32768)))return;if(r){var i=e.findAncestor(t,e.isFunctionLikeDeclaration);if(i&&i.symbol===n)return}(e.getCheckFlags(n)&1?na(n).target:n).isReferenced=67108863}function b2(n,t){switch(n.kind){case 193:return om(n,n.expression.kind===101,t,Ns(Na(n.expression)));case 152:return om(n,!1,t,Ns(Na(n.left)));case 187:return om(n,!1,t,Ua(n))}}function E2(n,t,r){return om(n,n.kind===193&&n.expression.kind===101,r.escapedName,t)}function om(n,t,r,i){if(i===_e||Bi(i))return!0;var l=Ji(i,r);return l?sh(n,t,i,l):e.isInJSFile(n)&&(i.flags&1048576)!==0&&i.types.some(function(d){return om(n,t,r,d)})}function T2(n){var t=n.initializer;if(t.kind===242){var r=t.declarations[0];if(r&&!e.isBindingPattern(r.name))return Zt(r)}else if(t.kind===75)return Yc(t);return}function S2(n){return ms(n,1)&&!ms(n,0)}function x2(n){var t=e.skipParentheses(n);if(t.kind===75){var r=Yc(t);if(r.flags&3)for(var i=n,l=n.parent;l;){if(l.kind===230&&i===l.statement&&T2(l)===r&&S2(Dl(l.expression)))return!0;i=l,l=l.parent}}return!1}function w2(n){return n.flags&32?A2(n):SE(n,Cf(n.expression))}function A2(n){var t=Na(n.expression),r=Qp(t,n.expression);return Bg(SE(n,Xl(r,n.expression)),n,r!==t)}function SE(n,t){var r=e.getAssignmentTargetKind(n)!==0||yE(n)?Ns(t):t,i=n.argumentExpression,l=Na(i);if(r===_e||r===Ht)return r;if(Py(r)&&!e.isStringLiteralLike(i))return xn(i,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),_e;var d=x2(i)?ot:l,A=e.isAssignmentTarget(n)?2|(Qd(r)&&!Jp(r)?1:0):0,B=bd(r,d,n,A)||_e;return ST(_E(n,B.symbol,B,i),n)}function xE(n,t,r){if(t===_e)return!1;if(!e.isWellKnownSymbolSyntactically(n))return!1;if((t.flags&12288)===0)return r&&xn(n,e.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,e.getTextOfNode(n)),!1;var i=n.expression,l=Yc(i);if(!l)return!1;var d=Z_(!0);return d?l!==d?(r&&xn(i,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),!1):!0:!1}function wE(n){return e.isCallOrNewExpression(n)||e.isTaggedTemplateExpression(n)||e.isJsxOpeningLikeElement(n)}function Df(n){return wE(n)&&e.forEach(n.typeArguments,Ci),n.kind===197?Na(n.template):e.isJsxOpeningLikeElement(n)?Na(n.attributes):n.kind!==156&&e.forEach(n.arguments,function(t){Na(t)}),Si}function pc(n){return Df(n),xi}function k2(n,t,r){var i,l,d=0,A,B=-1,Ae;e.Debug.assert(!t.length);for(var We=0,Ye=n;We<Ye.length;We++){var tn=Ye[We],bn=tn.declaration&&Zt(tn.declaration),Mn=tn.declaration&&tn.declaration.parent;!l||bn===l?i&&Mn===i?A=A+1:(i=Mn,A=d):(A=d=t.length,i=Mn),l=bn,D(tn)?(B++,Ae=B,d++):Ae=A,t.splice(Ae,0,r?GS(tn,r):tn)}}function ch(n){return!!n&&(n.kind===212||n.kind===219&&n.isSpread)}function sm(n){return e.findIndex(n,ch)}function C2(n){return!!(n.flags&16384)}function uh(n,t,r,i){i===void 0&&(i=!1);var l,d=!1,A=Vl(r),B=wu(r);if(n.kind===197)if(l=t.length,n.template.kind===210){var Ae=e.last(n.template.templateSpans);d=e.nodeIsMissing(Ae.literal)||!!Ae.literal.isUnterminated}else{var We=n.template;e.Debug.assert(We.kind===14),d=!!We.isUnterminated}else if(n.kind===156)l=NE(n,r);else if(e.isJsxOpeningLikeElement(n)){if(d=n.attributes.end===n.end,d)return!0;l=B===0?t.length:1,A=t.length===0?A:1,B=Math.min(B,1)}else{if(!n.arguments)return e.Debug.assert(n.kind===196),wu(r)===0;l=i?t.length+1:t.length,d=n.arguments.end===n.end;var Ye=sm(t);if(Ye>=0)return Ye>=wu(r)&&(qu(r)||Ye<Vl(r))}if(!qu(r)&&l>A)return!1;if(d||l>=B)return!0;for(var tn=l;tn<B;tn++){var bn=Zs(r,tn);if(gs(bn,C2).flags&131072)return!1}return!0}function AE(n,t){var r=e.length(n.typeParameters),i=_u(n.typeParameters);return!t||t.length>=i&&t.length<=r}function Wd(n){return hp(n,0,!1)}function kE(n){return hp(n,0,!1)||hp(n,1,!1)}function hp(n,t,r){if(n.flags&524288){var i=dc(n);if(r||i.properties.length===0&&!i.stringIndexInfo&&!i.numberIndexInfo){if(t===0&&i.callSignatures.length===1&&i.constructSignatures.length===0)return i.callSignatures[0];if(t===1&&i.constructSignatures.length===1&&i.callSignatures.length===0)return i.constructSignatures[0]}}return}function CE(n,t,r,i){var l=sp(n.typeParameters,n,0,i),d=_p(t),A=r&&(d&&d.flags&262144?r.nonFixingMapper:r.mapper),B=A?$d(t,A):t;return jg(B,n,function(Ae,We){Dc(l.inferences,Ae,We)}),r||Wg(t,n,function(Ae,We){Dc(l.inferences,Ae,We,16)}),Vp(n,Xg(l),e.isInJSFile(t.declaration))}function D2(n,t,r,i){var l=rh(t,n),d=Of(n.attributes,l,i,r);return Dc(i.inferences,d,l),Xg(i)}function Sy(n,t,r,i,l){if(e.isJsxOpeningLikeElement(n))return D2(n,t,i,l);if(n.kind!==156){var d=Qc(n);if(d){var A=pp(n),B=qg(Tw(A,1)),Ae=Ei(d,B),We=Wd(Ae),Ye=We&&We.typeParameters?Yf(rg(We,We.typeParameters)):Ae,tn=Fi(t);Dc(l.inferences,Ye,tn,16);var bn=sp(t.typeParameters,t,l.flags),Mn=Ei(d,A&&A.returnMapper);Dc(bn.inferences,Mn,tn),l.returnMapper=e.some(bn.inferences,Kd)?qg(Sw(bn)):void 0}}var it=yd(t);if(it){var _t=IE(n),St=_t?Na(_t):yt;Dc(l.inferences,St,it)}for(var Yt=vp(t),mr=Yt?Math.min(Vl(t)-1,r.length):r.length,or=0;or<mr;or++){var br=r[or];if(br.kind!==214){var ta=Zs(t,or),Ur=Of(br,ta,l,i);Dc(l.inferences,Ur,ta)}}if(Yt){var ja=xy(r,mr,r.length,Yt,l);Dc(l.inferences,ja,Yt)}return Xg(l)}function L2(n){return of(n,function(t){return!(t.flags&(1|63176704)||Ms(t)||Do(t))})?Is(xl(n,ot)):n}function xy(n,t,r,i,l){if(t>=r-1){var d=n[r-1];if(ch(d))return d.kind===219?Is(d.type):L2(Of(d.expression,i,l,0))}for(var A=[],B=-1,Ae=t;Ae<r;Ae++){var We=xl(i,rs(Ae-t)),Ye=Of(n[Ae],We,l,0);B<0&&ch(n[Ae])&&(B=Ae-t);var tn=So(We,131068|4194304);A.push(tn?js(Ye):xd(Ye))}return B<0?Gu(A):Gu(e.append(A.slice(0,B),Wr(A.slice(B))),B,!0)}function DE(n,t,r,i){for(var l=e.isInJSFile(n.declaration),d=n.typeParameters,A=Bd(e.map(t,Ua),d,_u(d),l),B,Ae=0;Ae<t.length;Ae++){e.Debug.assert(d[Ae]!==void 0,"Should not call checkTypeArguments with too many type arguments");var We=ll(d[Ae]);if(We){var Ye=r&&i?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,tn=i||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;B||(B=wl(d,A));var bn=A[Ae];if(!Al(bn,Jl(Ei(We,B),bn),r?t[Ae]:void 0,tn,Ye))return}}return A}function LE(n){if(mp(n.tagName))return 2;var t=us(Na(n.tagName));return e.length(oi(t,1))?0:e.length(oi(t,0))?1:2}function I2(n,t,r,i,l,d,A){var B=rh(t,n),Ae=Of(n.attributes,B,void 0,i);return Ag(Ae,B,r,l?n.tagName:void 0,n.attributes,void 0,d,A)}function lm(n,t,r,i,l,d,A){var B={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(n))return I2(n,r,i,l,d,A,B)?void 0:(e.Debug.assert(!d||!!B.errors,"jsx should have errors when reporting errors"),B.errors||e.emptyArray);var Ae=yd(r);if(Ae&&Ae!==yt&&n.kind!==196){var We=IE(n),Ye=void 0;We?(Ye=Na(We),e.isOptionalChainRoot(We.parent)?Ye=Wu(Ye):e.isOptionalChain(We.parent)&&(Ye=Gg(Ye))):Ye=yt;var tn=d?We||n:void 0,bn=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!zl(Ye,Ae,i,tn,bn,A,B))return e.Debug.assert(!d||!!B.errors,"this parameter should have errors when reporting errors"),B.errors||e.emptyArray}for(var Mn=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,it=vp(r),_t=it?Math.min(Vl(r)-1,t.length):t.length,St=0;St<_t;St++){var Yt=t[St];if(Yt.kind!==214){var mr=Zs(r,St),or=Of(Yt,mr,void 0,l),br=l&4?bf(or):or;if(!Ag(br,mr,i,d?Yt:void 0,Yt,Mn,A,B))return e.Debug.assert(!d||!!B.errors,"parameter should have errors when reporting errors"),Ur(Yt,br,mr),B.errors||e.emptyArray}}if(it){var ta=xy(t,_t,t.length,it,void 0),tn=d?_t<t.length?t[_t]:n:void 0;if(!zl(ta,it,i,tn,Mn,void 0,B))return e.Debug.assert(!d||!!B.errors,"rest parameter should have errors when reporting errors"),Ur(tn,ta,it),B.errors||e.emptyArray}return;function Ur(ja,$i,Sa){if(ja&&d&&B.errors&&B.errors.length){if(Sp(Sa))return;var ka=Sp($i);ka&&Su(ka,Sa,i)&&e.addRelatedInfo(B.errors[0],e.createDiagnosticForNode(ja,e.Diagnostics.Did_you_forget_to_use_await))}}}function IE(n){if(n.kind===195){var t=e.skipOuterExpressions(n.expression);if(t.kind===193||t.kind===194)return t.expression}}function Cd(n,t,r){var i=e.createNode(219,n.pos,n.end);return i.parent=n,i.type=t,i.isSpread=r||!1,i}function wy(n){if(n.kind===197){var t=n.template,r=[Cd(t,A1())];return t.kind===210&&e.forEach(t.templateSpans,function(Ye){r.push(Ye.expression)}),r}if(n.kind===156)return N2(n);if(e.isJsxOpeningLikeElement(n))return n.attributes.properties.length>0||e.isJsxOpeningElement(n)&&n.parent.children.length>0?[n.attributes]:e.emptyArray;var i=n.arguments||e.emptyArray,l=i.length;if(l&&ch(i[l-1])&&sm(i)===l-1){var d=i[l-1],A=fa?Na(d.expression):as(d.expression);if(Do(A)){var B=go(A),Ae=A.target.hasRestElement?B.length-1:-1,We=e.map(B,function(Ye,tn){return Cd(d,Ye,tn===Ae)});return e.concatenate(i.slice(0,l-1),We)}}return i}function N2(n){var t=n.parent,r=n.expression;switch(t.kind){case 244:case 213:return[Cd(r,Jn(Zt(t)))];case 155:var i=t.parent;return[Cd(r,t.parent.kind===161?Jn(Zt(i)):_e),Cd(r,oe),Cd(r,ot)];case 158:case 160:case 162:case 163:var l=t.kind!==158&&w!==0;return[Cd(r,P0(t)),Cd(r,M0(t)),Cd(r,l?rv(Gf(t)):oe)]}return e.Debug.fail()}function NE(n,t){switch(n.parent.kind){case 244:case 213:return 1;case 158:return 2;case 160:case 162:case 163:return w===0||t.parameters.length<=2?2:3;case 155:return 3;default:return e.Debug.fail()}}function OE(n,t){var r,i,l=e.getSourceFileOfNode(n);if(e.isPropertyAccessExpression(n.expression)){var d=e.getErrorSpanForNode(l,n.expression.name);r=d.start,i=t?d.length:n.end-r}else{var A=e.getErrorSpanForNode(l,n.expression);r=A.start,i=t?A.length:n.end-r}return{start:r,length:i,sourceFile:l}}function dh(n,t,r,i,l,d){if(e.isCallExpression(n)){var A=OE(n),B=A.sourceFile,Ae=A.start,We=A.length;return e.createFileDiagnostic(B,Ae,We,t,r,i,l,d)}else return e.createDiagnosticForNode(n,t,r,i,l,d)}function PE(n,t,r){for(var i=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,d=Number.NEGATIVE_INFINITY,A=Number.POSITIVE_INFINITY,B=r.length,Ae,We=0,Ye=t;We<Ye.length;We++){var tn=Ye[We],bn=wu(tn),Mn=Vl(tn);bn<B&&bn>d&&(d=bn),B<Mn&&Mn<A&&(A=Mn),bn<i&&(i=bn,Ae=tn),l=Math.max(l,Mn)}var it=e.some(t,qu),_t=it?i:i<l?i+"-"+l:i,St=sm(r)>-1;B<=l&&St&&B--;var Yt,mr,or=it||St?it&&St?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:it?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:e.Diagnostics.Expected_0_arguments_but_got_1_or_more:e.Diagnostics.Expected_0_arguments_but_got_1;if(Ae&&wu(Ae)>B&&Ae.declaration){var br=Ae.declaration.parameters[Ae.thisParameter?B+1:B];br&&(mr=e.createDiagnosticForNode(br,e.isBindingPattern(br.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,br.name?e.isBindingPattern(br.name)?void 0:e.idText(e.getFirstIdentifier(br.name)):B))}if(i<B&&B<l)return dh(n,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,B,d,A);if(!St&&B<i){var ta=dh(n,or,_t,B);return mr?e.addRelatedInfo(ta,mr):ta}if(it||St){if(Yt=e.createNodeArray(r),St&&B){var Ur=e.elementAt(r,sm(r)+1)||void 0;Yt=e.createNodeArray(r.slice(l>B&&Ur?r.indexOf(Ur):Math.min(l,r.length-1)))}}else Yt=e.createNodeArray(r.slice(l));Yt.pos=e.first(Yt).pos,Yt.end=e.last(Yt).end,Yt.end===Yt.pos&&Yt.end++;var ja=e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),Yt,or,_t,B);return mr?e.addRelatedInfo(ja,mr):ja}function O2(n,t,r){var i=r.length;if(t.length===1){var l=t[0],d=_u(l.typeParameters),A=e.length(l.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.Expected_0_type_arguments_but_got_1,d<A?d+"-"+A:d,i)}for(var B=-Infinity,Ae=Infinity,We=0,Ye=t;We<Ye.length;We++){var l=Ye[We],tn=_u(l.typeParameters),A=e.length(l.typeParameters);tn>i?Ae=Math.min(Ae,tn):A<i&&(B=Math.max(B,A))}return B!==-Infinity&&Ae!==Infinity?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,B,Ae):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.Expected_0_type_arguments_but_got_1,B===-Infinity?Ae:B,i)}function Lf(n,t,r,i,l,d){var A=n.kind===197,B=n.kind===156,Ae=e.isJsxOpeningLikeElement(n),We=!r,Ye;B||(Ye=n.typeArguments,(A||Ae||n.expression.kind!==101)&&e.forEach(Ye,Ci));var tn=r||[];if(k2(t,tn,l),!tn.length)return We&&tt.add(dh(n,e.Diagnostics.Call_target_does_not_contain_any_signatures)),pc(n);var bn=wy(n),Mn=tn.length===1&&!tn[0].typeParameters,it=!B&&!Mn&&e.some(bn,Gl)?4:0,_t,St,Yt,mr,or=!!(i&16)&&n.kind===195&&n.arguments.hasTrailingComma;if(tn.length>1&&(mr=Nt(tn,Er,or)),mr||(mr=Nt(tn,pa,or)),mr)return mr;if(We)if(_t)if(_t.length===1||_t.length>3){var br=_t[_t.length-1],ta;_t.length>3&&(ta=e.chainDiagnosticMessages(ta,e.Diagnostics.The_last_overload_gave_the_following_error),ta=e.chainDiagnosticMessages(ta,e.Diagnostics.No_overload_matches_this_call));var Ur=lm(n,bn,br,pa,0,!0,function(){return ta});if(Ur)for(var ja=0,$i=Ur;ja<$i.length;ja++){var Sa=$i[ja];br.declaration&&_t.length>3&&e.addRelatedInfo(Sa,e.createDiagnosticForNode(br.declaration,e.Diagnostics.The_last_overload_is_declared_here)),tt.add(Sa)}else e.Debug.fail("No error for last overload signature")}else{for(var ka=[],Bt=0,Sn=Number.MAX_VALUE,gn=0,wt=0,At=function(Ut){var Jt=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,wt+1,tn.length,Bs(Ut))},ir=lm(n,bn,Ut,pa,0,!0,Jt);ir?(ir.length<=Sn&&(Sn=ir.length,gn=wt),Bt=Math.max(Bt,ir.length),ka.push(ir)):e.Debug.fail("No error for 3 or fewer overload signatures"),wt++},er=0,gr=_t;er<gr.length;er++){var Cr=gr[er];At(Cr)}var jt=Bt>1?ka[gn]:e.flatten(ka);e.Debug.assert(jt.length>0,"No errors reported for 3 or fewer overload signatures");var la=e.chainDiagnosticMessages(e.map(jt,function(Ut){return typeof Ut.messageText=="string"?Ut:Ut.messageText}),e.Diagnostics.No_overload_matches_this_call),Ea=e.flatMap(jt,function(Ut){return Ut.relatedInformation});if(e.every(jt,function(Ut){return Ut.start===jt[0].start&&Ut.length===jt[0].length&&Ut.file===jt[0].file})){var Oa=jt[0],Di=Oa.file,ui=Oa.start,ao=Oa.length;tt.add({file:Di,start:ui,length:ao,code:la.code,category:la.category,messageText:la,relatedInformation:Ea})}else tt.add(e.createDiagnosticForNodeFromMessageChain(n,la,Ea))}else if(St)tt.add(PE(n,[St],bn));else if(Yt)DE(Yt,n.typeArguments,!0,d);else{var ft=e.filter(t,function(Ut){return AE(Ut,Ye)});ft.length===0?tt.add(O2(n,t,Ye)):B?d&&tt.add(dh(n,d)):tt.add(PE(n,ft,bn))}return E||!bn?pc(n):P2(n,tn,bn,!!r);function Nt(Ut,Jt,ir){if(ir===void 0&&(ir=!1),_t=void 0,St=void 0,Yt=void 0,Mn){var Nr=Ut[0];if(Ye||!uh(n,bn,Nr,ir))return;if(lm(n,bn,Nr,Jt,0,!1,void 0)){_t=[Nr];return}return Nr}for(var Qa=0;Qa<Ut.length;Qa++){var Nr=Ut[Qa];if(!AE(Nr,Ye)||!uh(n,bn,Nr,ir))continue;var ni=void 0,Xa=void 0;if(Nr.typeParameters){var Ni=void 0;if(Ye){if(Ni=DE(Nr,Ye,!1),!Ni){Yt=Nr;continue}}else Xa=sp(Nr.typeParameters,Nr,e.isInJSFile(n)?2:0),Ni=Sy(n,Nr,bn,it|8,Xa),it|=Xa.flags&4?8:0;if(ni=Vp(Nr,Ni,e.isInJSFile(Nr.declaration),Xa&&Xa.inferredTypeParameters),vp(Nr)&&!uh(n,bn,ni,ir)){St=ni;continue}}else ni=Nr;if(lm(n,bn,ni,Jt,it,!1,void 0)){(_t||(_t=[])).push(ni);continue}if(it){if(it=0,Xa){var Ni=Sy(n,Nr,bn,it,Xa);if(ni=Vp(Nr,Ni,e.isInJSFile(Nr.declaration),Xa&&Xa.inferredTypeParameters),vp(Nr)&&!uh(n,bn,ni,ir)){St=ni;continue}}if(lm(n,bn,ni,Jt,it,!1,void 0)){(_t||(_t=[])).push(ni);continue}}return Ut[Qa]=ni,ni}return}}function P2(n,t,r,i){return e.Debug.assert(t.length>0),i||t.length===1||t.some(function(l){return!!l.typeParameters})?F2(n,t,r):M2(t)}function M2(n){var t=e.mapDefined(n,function(bn){return bn.thisParameter}),r;t.length&&(r=ME(t,t.map(gp)));for(var i=e.minAndMax(n,R2),l=i.min,d=i.max,A=[],B=function(bn){var Mn=e.mapDefined(n,function(it){return I(it)?bn<it.parameters.length-1?it.parameters[bn]:e.last(it.parameters):bn<it.parameters.length?it.parameters[bn]:void 0});e.Debug.assert(Mn.length!==0),A.push(ME(Mn,e.mapDefined(n,function(it){return cm(it,bn)})))},Ae=0;Ae<d;Ae++)B(Ae);var We=e.mapDefined(n,function(bn){return I(bn)?e.last(bn.parameters):void 0}),Ye=0;if(We.length!==0){var tn=Is(Wr(e.mapDefined(n,V_),2));A.push(RE(We,tn)),Ye|=1}return n.some(D)&&(Ye|=2),Kc(n[0].declaration,void 0,r,A,Zi(n.map(Fi)),void 0,l,Ye)}function R2(n){var t=n.parameters.length;return I(n)?t-1:t}function ME(n,t){return RE(n,Wr(t,2))}function RE(n,t){return vf(e.first(n),t)}function F2(n,t,r){var i=V2(t,F===void 0?r.length:F),l=t[i],d=l.typeParameters;if(!d)return l;var A=wE(n)?n.typeArguments:void 0,B=A?Nm(l,G2(A,d,e.isInJSFile(n))):B2(n,d,l,r);return t[i]=B,B}function G2(n,t,r){for(var i=n.map(Gf);i.length>t.length;)i.pop();for(;i.length<t.length;)i.push(ll(t[i.length])||zg(r));return i}function B2(n,t,r,i){var l=sp(t,r,e.isInJSFile(n)?2:0),d=Sy(n,r,i,4|8,l);return Nm(r,d)}function V2(n,t){for(var r=-1,i=-1,l=0;l<n.length;l++){var d=n[l],A=Vl(d);if(qu(d)||A>=t)return l;A>i&&(i=A,r=l)}return r}function U2(n,t,r){if(n.expression.kind===101){var i=Vb(n.expression);if(Bi(i)){for(var l=0,d=n.arguments;l<d.length;l++){var A=d[l];Na(A)}return Si}if(i!==_e){var B=e.getEffectiveBaseTypeNode(e.getContainingClass(n));if(B){var Ae=Mu(i,B.typeArguments,B);return Lf(n,Ae,t,r,0)}}return Df(n)}var We,Ye=Na(n.expression);if(e.isCallChain(n)){var tn=Qp(Ye,n.expression);We=tn===Ye?0:e.isOutermostOptionalChain(n)?8:4,Ye=tn}else We=0;if(Ye=pE(Ye,n.expression,u2),Ye===Ht)return Oi;var bn=us(Ye);if(bn===_e)return pc(n);var Mn=oi(bn,0),it=oi(bn,1).length;if(fh(Ye,bn,Mn.length,it))return Ye!==_e&&n.typeArguments&&xn(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Df(n);if(!Mn.length){if(it)xn(n,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,qt(Ye));else{var _t=void 0;if(n.arguments.length===1){var St=e.getSourceFileOfNode(n).text;e.isLineBreak(St.charCodeAt(e.skipTrivia(St,n.expression.end,!0)-1))&&(_t=e.createDiagnosticForNode(n.expression,e.Diagnostics.It_is_highly_likely_that_you_are_missing_a_semicolon))}ky(n.expression,bn,0,_t)}return pc(n)}return r&8&&!n.typeArguments&&Mn.some(j2)?(pT(n,r),vi):Mn.some(function(Yt){return e.isInJSFile(Yt.declaration)&&!!e.getJSDocClassTag(Yt.declaration)})?(xn(n,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,qt(Ye)),pc(n)):Lf(n,Mn,t,r,We)}function j2(n){return!!(n.typeParameters&&_S(Fi(n)))}function fh(n,t,r,i){return Bi(n)||Bi(t)&&!!(n.flags&262144)||!r&&!i&&!(t.flags&(1048576|131072))&&Wi(n,Ri)}function W2(n,t,r){if(n.arguments&&w<1){var i=sm(n.arguments);i>=0&&xn(n.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var l=Cf(n.expression);if(l===Ht)return Oi;if(l=us(l),l===_e)return pc(n);if(Bi(l))return n.typeArguments&&xn(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Df(n);var d=oi(l,1);if(d.length){if(!H2(n,d[0]))return pc(n);var A=l.symbol&&e.getClassLikeDeclarationOfSymbol(l.symbol);return A&&e.hasModifier(A,128)?(xn(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),pc(n)):Lf(n,d,t,r,0)}var B=oi(l,0);if(B.length){var Ae=Lf(n,B,t,r,0);return ae||(Ae.declaration&&!Zc(Ae.declaration)&&Fi(Ae)!==yt&&xn(n,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),yd(Ae)===yt&&xn(n,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),Ae}return ky(n.expression,l,1),pc(n)}function Ay(n,t){var r=Tl(t);if(!e.length(r))return!1;var i=r[0];if(i.flags&2097152){for(var l=i.types,d=S_(l),A=0,B=0,Ae=i.types;B<Ae.length;B++){var We=Ae[B];if(!d[A]&&e.getObjectFlags(We)&(1|2)){if(We.symbol===n)return!0;if(Ay(n,We))return!0}A++}return!1}return i.symbol===n?!0:Ay(n,i)}function H2(n,t){if(!t||!t.declaration)return!0;var r=t.declaration,i=e.getSelectedModifierFlags(r,24);if(!i)return!0;var l=e.getClassLikeDeclarationOfSymbol(r.parent.symbol),d=ho(r.parent.symbol);if(!a_(n,l)){var A=e.getContainingClass(n);if(A&&i&16){var B=Gf(A);if(Ay(r.parent.symbol,B))return!0}return i&8&&xn(n,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,qt(d)),i&16&&xn(n,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,qt(d)),!1}return!0}function FE(n,t){var r,i=t===0,l=mc(n),d=l&&oi(l,t).length>0;if(n.flags&1048576){for(var A=n.types,B=!1,Ae=0,We=A;Ae<We.length;Ae++){var Ye=We[Ae],tn=oi(Ye,t);if(tn.length!==0){if(B=!0,r)break}else if(r||(r=e.chainDiagnosticMessages(r,i?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,qt(Ye)),r=e.chainDiagnosticMessages(r,i?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,qt(n))),B)break}B||(r=e.chainDiagnosticMessages(void 0,i?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,qt(n))),r||(r=e.chainDiagnosticMessages(r,i?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,qt(n)))}else r=e.chainDiagnosticMessages(r,i?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,qt(n));return{messageChain:e.chainDiagnosticMessages(r,i?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable),relatedMessage:d?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function ky(n,t,r,i){var l=FE(t,r),d=l.messageChain,A=l.relatedMessage,B=e.createDiagnosticForNodeFromMessageChain(n,d);if(A&&e.addRelatedInfo(B,e.createDiagnosticForNode(n,A)),e.isCallExpression(n.parent)){var Ae=OE(n.parent,!0),We=Ae.start,Ye=Ae.length;B.start=We,B.length=Ye}tt.add(B),GE(t,r,i?e.addRelatedInfo(B,i):B)}function GE(n,t,r){if(!n.symbol)return;var i=na(n.symbol).originatingImport;if(i&&!e.isImportCall(i)){var l=oi(Jn(na(n.symbol).target),t);if(!l||!l.length)return;e.addRelatedInfo(r,e.createDiagnosticForNode(i,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function K2(n,t,r){var i=Na(n.tag),l=us(i);if(l===_e)return pc(n);var d=oi(l,0),A=oi(l,1).length;return fh(i,l,d.length,A)?Df(n):d.length?Lf(n,d,t,r,0):(ky(n.tag,l,0),pc(n))}function BE(n){switch(n.parent.kind){case 244:case 213:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 155:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 158:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 160:case 162:case 163:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function q2(n,t,r){var i=Na(n.expression),l=us(i);if(l===_e)return pc(n);var d=oi(l,0),A=oi(l,1).length;if(fh(i,l,d.length,A))return Df(n);if(z2(n,d)){var B=e.getTextOfNode(n.expression,!1);return xn(n,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,B),pc(n)}var Ae=BE(n);if(!d.length){var We=FE(l,0),Ye=e.chainDiagnosticMessages(We.messageChain,Ae),tn=e.createDiagnosticForNodeFromMessageChain(n.expression,Ye);return We.relatedMessage&&e.addRelatedInfo(tn,e.createDiagnosticForNode(n.expression,We.relatedMessage)),tt.add(tn),GE(l,0,tn),pc(n)}return Lf(n,d,t,r,0,Ae)}function ph(n,t){var r=lf(n),i=r&&ti(r),l=i&&Uo(i,m.Element,788968),d=l&&Fe.symbolToEntityName(l,788968,n),A=e.createFunctionTypeNode(void 0,[e.createParameter(void 0,void 0,void 0,"props",void 0,Fe.typeToTypeNode(t,n))],d?e.createTypeReferenceNode(d,void 0):e.createKeywordTypeNode(124)),B=Ga(1,"props");return B.type=t,Kc(A,void 0,void 0,[B],l?ho(l):_e,void 0,1,0)}function J2(n,t,r){if(mp(n.tagName)){var i=lE(n),l=ph(n,i);return Vu(Of(n.attributes,rh(l,n),void 0,0),i,n.tagName,n.attributes),l}var d=Na(n.tagName),A=us(d);if(A===_e)return pc(n);var B=oE(d,n);return fh(d,A,B.length,0)?Df(n):B.length===0?(xn(n.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(n.tagName)),pc(n)):Lf(n,B,t,r,0)}function z2(n,t){return t.length&&e.every(t,function(r){return r.minArgumentCount===0&&!I(r)&&r.parameters.length<NE(n,r)})}function X2(n,t,r){switch(n.kind){case 195:return U2(n,t,r);case 196:return W2(n,t,r);case 197:return K2(n,t,r);case 156:return q2(n,t,r);case 266:case 265:return J2(n,t,r)}throw e.Debug.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function If(n,t,r){var i=Lr(n),l=i.resolvedSignature;if(l&&l!==vi&&!t)return l;i.resolvedSignature=vi;var d=X2(n,t,r||0);return d!==vi&&(i.resolvedSignature=kr===fa?d:l),d}function Zc(n){if(!n||!e.isInJSFile(n))return!1;var t=e.isFunctionDeclaration(n)||e.isFunctionExpression(n)?n:e.isVariableDeclaration(n)&&n.initializer&&e.isFunctionExpression(n.initializer)?n.initializer:void 0;if(t){if(e.getJSDocClassTag(n))return!0;var r=Zt(t);return!!r&&e.hasEntries(r.members)}return!1}function VE(n,t){if(t&&(e.hasEntries(t.exports)||e.hasEntries(t.members))){var r=na(t);if(!r.inferredClassSymbol||!r.inferredClassSymbol.has(""+se(n))){var i=vs(n)?n:Zn(n);return i.exports=i.exports||e.createSymbolTable(),i.members=i.members||e.createSymbolTable(),i.flags|=t.flags&32,e.hasEntries(t.exports)&&qa(i.exports,t.exports),e.hasEntries(t.members)&&qa(i.members,t.members),(r.inferredClassSymbol||(r.inferredClassSymbol=e.createMap())).set(""+se(i),i),i}return r.inferredClassSymbol.get(""+se(n))}}function Y2(n){var t=n&&n.parent&&(e.isFunctionDeclaration(n)&&Zt(n)||e.isBinaryExpression(n.parent)&&Zt(n.parent.left)||e.isVariableDeclaration(n.parent)&&Zt(n.parent)),r=t&&t.exports&&t.exports.get("prototype"),i=r&&r.valueDeclaration&&Q2(r.valueDeclaration);return i?Zt(i):void 0}function Q2(n){if(!n.parent)return!1;for(var t=n.parent;t&&t.kind===193;)t=t.parent;if(t&&e.isBinaryExpression(t)&&e.isPrototypeAccess(t.left)&&t.operatorToken.kind===62){var r=e.getInitializerOfBinaryExpression(t);return e.isObjectLiteralExpression(r)&&r}}function Z2(n,t){bm(n,n.typeArguments)||ES(n.arguments);var r=If(n,void 0,t);if(r===vi)return $t;if(n.expression.kind===101)return yt;if(n.kind===196){var i=r.declaration;if(i&&i.kind!==161&&i.kind!==165&&i.kind!==170&&!e.isJSDocConstructSignature(i)&&!Zc(i))return ae&&xn(n,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),oe}if(e.isInJSFile(n)&&WE(n))return f1(n.arguments[0]);var l=Fi(r);if(l.flags&12288&&UE(n))return Av(e.walkUpParenthesizedExpressions(n.parent));if(n.kind===195&&n.parent.kind===225&&l.flags&16384&&ul(r)){if(!e.isDottedName(n.expression))xn(n.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!Ym(n)){var d=xn(n.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);Xm(n.expression,d)}}if(e.isInJSFile(n)){var A=e.getDeclarationOfExpando(n);if(A){var B=Zt(A);if(B&&e.hasEntries(B.exports)){var Ae=No(B,B.exports,e.emptyArray,e.emptyArray,void 0,void 0);return Ae.objectFlags|=16384,Zi([l,Ae])}}}return l}function UE(n){if(!e.isCallExpression(n))return!1;var t=n.expression;if(e.isPropertyAccessExpression(t)&&t.name.escapedText==="for"&&(t=t.expression),!e.isIdentifier(t)||t.escapedText!=="Symbol")return!1;var r=Z_(!1);return r?r===lo(t,"Symbol",111551,void 0,void 0,!1):!1}function $2(n){if(ES(n.arguments)||YD(n),n.arguments.length===0)return um(n,oe);for(var t=n.arguments[0],r=as(t),i=1;i<n.arguments.length;++i)as(n.arguments[i]);(r.flags&32768||r.flags&65536||!Wi(r,ct))&&xn(t,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,qt(r));var l=$r(n,t);if(l){var d=Qr(l,t,!0,!1);if(d)return um(n,jE(Jn(d),d,l))}return um(n,oe)}function jE(n,t,r){if(Pe&&n&&n!==_e){var i=n;if(!i.syntheticType){var l=e.find(r.declarations,e.isSourceFile),d=ou(l,r,!1);if(d){var A=e.createSymbolTable(),B=Ga(2097152,"default");B.nameType=rs("default"),B.target=b(t),A.set("default",B);var Ae=Ga(2048,"__type"),We=No(Ae,A,e.emptyArray,e.emptyArray,void 0,void 0);Ae.type=We,i.syntheticType=kf(n)?od(n,We,Ae,0,!1):We}else i.syntheticType=n}return i.syntheticType}return n}function WE(n){if(!e.isRequireCall(n,!0))return!1;if(!e.isIdentifier(n.expression))return e.Debug.fail();var t=lo(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(t===ke)return!0;if(t.flags&2097152)return!1;var r=t.flags&16?243:t.flags&3?241:0;if(r!==0){var i=e.getDeclarationOfKind(t,r);return!!i&&!!(i.flags&8388608)}return!1}function ek(n){return TD(n)||bm(n,n.typeArguments),w<2&&Ll(n,131072),Fi(If(n))}function nk(n){return KE(n,n.type,n.expression)}function HE(n){switch(n.kind){case 10:case 14:case 8:case 9:case 105:case 90:case 191:case 192:return!0;case 199:return HE(n.expression);case 206:var t=n.operator,r=n.operand;return t===40&&(r.kind===8||r.kind===9)||t===39&&r.kind===8;case 193:case 194:var i=n.expression;if(e.isIdentifier(i)){var l=ud(i);return l&&l.flags&2097152&&(l=V(l)),!!(l&&l.flags&384&&Wf(l)===1)}}return!1}function KE(n,t,r,i){var l=Na(r,i);if(e.isConstTypeReference(t))return HE(r)||xn(r,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),js(l);Ci(t),l=bf(Bl(l));var d=Ua(t);if(E&&d!==_e){var A=Ns(l);nf(d,A)||Wv(l,d,n,e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)}return d}function tk(n){return Wu(Na(n.expression))}function rk(n){return BD(n),n.keywordToken===98?ak(n):n.keywordToken===95?ik(n):e.Debug.assertNever(n.keywordToken)}function ak(n){var t=e.getNewTargetContainer(n);if(t)if(t.kind===161){var r=Zt(t.parent);return Jn(r)}else{var r=Zt(t);return Jn(r)}else return xn(n,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),_e}function ik(n){j!==e.ModuleKind.ESNext&&j!==e.ModuleKind.System&&xn(n,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system);var t=e.getSourceFileOfNode(n);return e.Debug.assert(!!(t.flags&2097152),"Containing file is missing import meta node flag."),e.Debug.assert(!!t.externalModuleIndicator,"Containing file should be a module."),n.name.escapedText==="meta"?k1():_e}function gp(n){var t=Jn(n);if(a){var r=n.valueDeclaration;if(r&&e.hasInitializer(r))return xu(t)}return t}function Nf(n,t){var r=n.parameters.length-(I(n)?1:0);if(t<r)return n.parameters[t].escapedName;var i=n.parameters[r]||pn,l=Jn(i);if(Do(l)){var d=l.target.associatedNames,A=t-r;return d&&d[A]||i.escapedName+"_"+A}return i.escapedName}function Zs(n,t){return cm(n,t)||oe}function cm(n,t){var r=n.parameters.length-(I(n)?1:0);if(t<r)return gp(n.parameters[t]);if(I(n)){var i=Jn(n.parameters[r]),l=t-r;if(!Do(i)||i.target.hasRestElement||l<go(i).length)return xl(i,rs(l))}return}function yp(n,t){var r=Vl(n),i=_p(n),l=r-(i?1:0);if(i&&t===l)return i;for(var d=[],A=[],B=t;B<l;B++)d.push(Zs(n,B)),A.push(Nf(n,B));i&&(d.push(xl(i,ot)),A.push(Nf(n,l)));var Ae=wu(n),We=Ae<t?0:Ae-t;return Gu(d,We,!!i,!1,A)}function Vl(n){var t=n.parameters.length;if(I(n)){var r=Jn(n.parameters[t-1]);if(Do(r))return t+go(r).length-1}return t}function wu(n){if(I(n)){var t=Jn(n.parameters[n.parameters.length-1]);if(Do(t)){var r=t.target.minLength;if(r>0)return n.parameters.length-1+r}}return n.minArgumentCount}function qu(n){if(I(n)){var t=Jn(n.parameters[n.parameters.length-1]);return!Do(t)||t.target.hasRestElement}return!1}function _p(n){if(I(n)){var t=Jn(n.parameters[n.parameters.length-1]);return Do(t)?dw(t):t}return}function vp(n){var t=_p(n);return t&&!Ms(t)&&!Bi(t)?t:void 0}function Cy(n){return Dy(n,Dt)}function Dy(n,t){return n.parameters.length>0?Zs(n,0):t}function ok(n,t,r){for(var i=n.parameters.length-(I(n)?1:0),l=0;l<i;l++){var d=n.parameters[l].valueDeclaration;if(d.type){var A=e.getEffectiveTypeAnnotationNode(d);A&&Dc(r.inferences,Ua(A),Zs(t,l))}}var B=_p(t);if(B&&B.flags&262144){var Ae=$d(t,r.nonFixingMapper);qE(n,Ae);var We=Vl(t)-1;Dc(r.inferences,yp(n,We),B)}}function qE(n,t){if(n.typeParameters=t.typeParameters,t.thisParameter){var r=n.thisParameter;(!r||r.valueDeclaration&&!r.valueDeclaration.type)&&(r||(n.thisParameter=vf(t.thisParameter,void 0)),Ly(n.thisParameter,Jn(t.thisParameter)))}for(var i=n.parameters.length-(I(n)?1:0),l=0;l<i;l++){var r=n.parameters[l];if(!e.getEffectiveTypeAnnotationNode(r.valueDeclaration)){var d=Zs(t,l);Ly(r,d)}}if(I(n)){var r=e.last(n.parameters);if(vs(r)||!e.getEffectiveTypeAnnotationNode(r.valueDeclaration)){var d=yp(t,i);Ly(r,d)}}}function JE(n){for(var t=0,r=n.elements;t<r.length;t++){var i=r[t];e.isOmittedExpression(i)||(i.name.kind===75?na(Zt(i)).type=Ml(i):JE(i.name))}}function Ly(n,t){var r=na(n);if(!r.type){r.type=t;var i=n.valueDeclaration;i.name.kind!==75&&(r.type===dn&&(r.type=Dn(i.name)),JE(i.name))}}function mh(n){var t=Pm(!0);return t!==ht?(n=mc(n)||dn,bu(t,[n])):dn}function zE(n){var t=C1(!0);return t!==ht?(n=mc(n)||dn,bu(t,[n])):dn}function um(n,t){var r=mh(t);return r===dn?(xn(n,e.isImportCall(n)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),_e):(ev(!0)||xn(n,e.isImportCall(n)?e.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),r)}function hh(n,t){if(!n.body)return _e;var r=e.getFunctionFlags(n),i=(r&2)!==0,l=(r&1)!==0,d,A,B,Ae=yt;if(n.body.kind!==222)d=as(n.body,t&&t&~8),i&&(d=wp(d,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member));else if(l){var We=$E(n,t);We?We.length>0&&(d=Wr(We,2)):Ae=Dt;var Ye=sk(n,t),tn=Ye.yieldTypes,bn=Ye.nextTypes;A=e.some(tn)?Wr(tn,2):void 0,B=e.some(bn)?Zi(bn):void 0}else{var Mn=$E(n,t);if(!Mn)return r&2?um(n,Dt):Dt;if(Mn.length===0)return r&2?um(n,yt):yt;d=Wr(Mn,2)}if(d||A||B){var it=Qb(n);if(it||(A&&Km(n,A,1),d&&Km(n,d),B&&Km(n,B)),d&&sd(d)||A&&sd(A)||B&&sd(B)){var _t=it?it===fc(n)?l?void 0:d:nh(Fi(it),n):void 0;l?(A=Mg(A,_t,0,i),d=Mg(d,_t,1,i),B=Mg(B,_t,2,i)):d=uw(d,_t,i)}A&&(A=Ns(A)),d&&(d=Ns(d)),B&&(B=Ns(B))}return l?XE(A||Dt,d||Ae,B||Kb(2,n)||dn,i):i?mh(d||Ae):d||Ae}function XE(n,t,r,i){var l=i?Mo:uo,d=l.getGlobalGeneratorType(!1);if(n=l.resolveIterationType(n,void 0)||dn,t=l.resolveIterationType(t,void 0)||dn,r=l.resolveIterationType(r,void 0)||dn,d===ht){var A=l.getGlobalIterableIteratorType(!1),B=A!==ht?VT(A,l):void 0,Ae=B?B.returnType:oe,We=B?B.nextType:un;return Wi(t,Ae)&&Wi(We,r)?A!==ht?Zf(A,[n]):(l.getGlobalIterableIteratorType(!0),Wn):(l.getGlobalGeneratorType(!0),Wn)}return Zf(d,[n,t,r])}function sk(n,t){var r=[],i=[],l=(e.getFunctionFlags(n)&2)!==0;return e.forEachYieldExpression(n.body,function(d){var A=d.expression?Na(d.expression,t):Rn;e.pushIfUnique(r,YE(d,A,oe,l));var B;if(d.asteriskToken){var Ae=kh(A,l?19:17,d.expression);B=Ae&&Ae.nextType}else B=Qc(d);B&&e.pushIfUnique(i,B)}),{yieldTypes:r,nextTypes:i}}function YE(n,t,r,i){var l=n.expression||n,d=n.asteriskToken?qd(i?19:17,t,r,l):t;return i?mc(d,l,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):d}function Iy(n,t,r,i){var l=0;if(i){for(var d=t;d<r.length;d++)l|=Oe.get(r[d])||32768;for(var d=n;d<t;d++)l&=~(Oe.get(r[d])||0);for(var d=0;d<n;d++)l|=Oe.get(r[d])||32768}else{for(var d=n;d<t;d++)l|=J.get(r[d])||128;for(var d=0;d<n;d++)l&=~(J.get(r[d])||0)}return l}function QE(n){var t=Lr(n);return t.isExhaustive!==void 0?t.isExhaustive:t.isExhaustive=lk(n)}function lk(n){if(n.expression.kind===203){var t=Dl(n.expression.expression),r=Ab(n),i=Iy(0,0,r,!0),l=cl(t)||t;return!!(gs(l,function(B){return(cd(B)&i)===i}).flags&131072)}var d=Dl(n.expression);if(!op(d))return!1;var A=ey(n);return!A.length||e.some(A,cw)?!1:Qw(Ws(d,js),A)}function ZE(n){return n.endFlowNode&&tm(n.endFlowNode)}function $E(n,t){var r=e.getFunctionFlags(n),i=[],l=ZE(n),d=!1;return e.forEachReturnStatement(n.body,function(A){var B=A.expression;if(B){var Ae=as(B,t&&t&~8);r&2&&(Ae=wp(Ae,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),Ae.flags&131072&&(d=!0),e.pushIfUnique(i,Ae)}else l=!0}),i.length===0&&!l&&(d||ck(n))?void 0:(a&&i.length&&l&&!(Zc(n)&&i.some(function(A){return A.symbol===n.symbol}))&&e.pushIfUnique(i,un),i)}function ck(n){switch(n.kind){case 200:case 201:return!0;case 160:return n.parent.kind===192;default:return!1}}function Ny(n,t){if(!E)return;var r=e.getFunctionFlags(n),i=t&&tT(t,r);if(i&&So(i,1|16384))return;if(n.kind===159||e.nodeIsMissing(n.body)||n.body.kind!==222||!ZE(n))return;var l=n.flags&512;if(i&&i.flags&131072)xn(e.getEffectiveReturnTypeNode(n),e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(i&&!l)xn(e.getEffectiveReturnTypeNode(n),e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(i&&a&&!Wi(un,i))xn(e.getEffectiveReturnTypeNode(n),e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(je.noImplicitReturns){if(!i){if(!l)return;var d=Fi(fc(n));if(zT(n,d))return}xn(e.getEffectiveReturnTypeNode(n)||n,e.Diagnostics.Not_all_code_paths_return_a_value)}}function eT(n,t){if(e.Debug.assert(n.kind!==160||e.isObjectLiteralMethod(n)),_m(n),t&&t&4&&Gl(n)){if(!e.getEffectiveReturnTypeNode(n)&&Mv(n)){var r=Lr(n);if(r.contextFreeType)return r.contextFreeType;var i=hh(n,t),l=Kc(void 0,void 0,void 0,e.emptyArray,i,void 0,0,0),d=No(n.symbol,He,[l],e.emptyArray,void 0,void 0);return d.objectFlags|=1048576,r.contextFreeType=d}return bt}var A=Mh(n);!A&&n.kind===200&&d_(n);var B=Jn(zr(n.symbol));return Bi(B)||nT(n,t),B}function nT(n,t){var r=Lr(n);if(!(r.flags&1024)){var i=ah(n);if(!(r.flags&1024)){if(r.flags|=1024,i){var l=Jn(zr(n.symbol));if(Bi(l))return;var d=oi(l,0)[0];if(Gl(n)){var A=pp(n);t&&t&2&&ok(d,i,A);var B=A?$d(i,A.mapper):i;qE(d,B)}if(!Yd(n)&&!d.resolvedReturnType){var Ae=hh(n,t);d.resolvedReturnType||(d.resolvedReturnType=Ae)}}Tp(n)}}}function tT(n,t){var r=!!(t&1),i=!!(t&2);return n&&r?Jd(1,n,i)||_e:n&&i?mc(n)||_e:n}function uk(n){e.Debug.assert(n.kind!==160||e.isObjectLiteralMethod(n));var t=e.getFunctionFlags(n),r=Yd(n);if(Ny(n,r),n.body)if(e.getEffectiveReturnTypeNode(n)||Fi(fc(n)),n.body.kind===222)Ci(n.body);else{var i=Na(n.body),l=tT(r,t);if(l)if((t&3)===2){var d=wp(i,n.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Vu(d,l,n.body,n.body)}else Vu(i,l,n.body,n.body)}}function gh(n,t,r,i){if(i===void 0&&(i=!1),!Wi(t,Lt)){var l=i&&Sp(t);return Ho(n,!!l&&Wi(l,Lt),r),!1}return!0}function dk(n){if(!e.isCallExpression(n))return!1;if(!e.isBindableObjectDefinePropertyCall(n))return!1;var t=as(n.arguments[2]),r=Zo(t,"value");if(r){var i=Ji(t,"writable"),l=i&&Jn(i);if(!l||l===Ct||l===st)return!0;if(i&&i.valueDeclaration&&e.isPropertyAssignment(i.valueDeclaration)){var d=i.valueDeclaration.initializer,A=Na(d);if(A===Ct||A===st)return!0}return!1}var B=Ji(t,"set");return!B}function $c(n){return!!(e.getCheckFlags(n)&8||n.flags&4&&e.getDeclarationModifierFlagsFromSymbol(n)&64||n.flags&3&&yy(n)&2||n.flags&98304&&!(n.flags&65536)||n.flags&8||e.some(n.declarations,dk))}function rT(n,t){if($c(t)){if(t.flags&4&&(n.kind===193||n.kind===194)&&n.expression.kind===103){var r=e.getContainingFunction(n);return r&&r.kind===161?!t.valueDeclaration||!(r.parent===t.valueDeclaration.parent||r===t.valueDeclaration.parent):!0}return!0}return!1}function aT(n){if(n.kind===193||n.kind===194){var t=e.skipParentheses(n.expression);if(t.kind===75){var r=Lr(t).resolvedSymbol;if(r.flags&2097152){var i=bs(r);return!!i&&i.kind===255}}}return!1}function bp(n,t,r){var i=e.skipOuterExpressions(n,2|1);return i.kind!==75&&i.kind!==193&&i.kind!==194?(xn(n,t),!1):i.flags&32?(xn(n,r),!1):!0}function fk(n){Na(n.expression);var t=e.skipParentheses(n.expression);if(t.kind!==193&&t.kind!==194)return xn(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Ce;var r=Lr(t),i=nc(r.resolvedSymbol);return i&&$c(i)&&xn(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),Ce}function pk(n){return Na(n.expression),Kr}function mk(n){return Na(n.expression),Rn}function hk(n){if(E){if(!(n.flags&32768)){var t=e.getSourceFileOfNode(n);if(!Vf(t)){var r=e.getSpanOfTokenAtPosition(t,n.pos),i=e.createFileDiagnostic(t,r.start,r.length,e.Diagnostics.await_expression_is_only_allowed_within_an_async_function),l=e.getContainingFunction(n);if(l&&l.kind!==161){e.Debug.assert((e.getFunctionFlags(l)&2)===0,"Enclosing function should never be an async function.");var d=e.createDiagnosticForNode(l,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(i,d)}tt.add(i)}}sy(n)&&xn(n,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var A=Na(n.expression),B=wp(A,n,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return B===A&&B!==_e&&!(A.flags&3)&&bo(!1,e.createDiagnosticForNode(n,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),B}function gk(n){var t=Na(n.operand);if(t===Ht)return Ht;switch(n.operand.kind){case 8:switch(n.operator){case 40:return Zd(rs(-n.operand.text));case 39:return Zd(rs(+n.operand.text))}break;case 9:if(n.operator===40)return Zd(rs({negative:!0,base10Value:e.parsePseudoBigInt(n.operand.text)}))}switch(n.operator){case 39:case 40:case 54:return Xl(t,n.operand),So(t,12288)&&xn(n.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(n.operator)),n.operator===39?(So(t,2112)&&xn(n.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(n.operator),qt(Bl(t))),ot):Oy(t);case 53:Rf(n.operand);var r=cd(t)&(4194304|8388608);return r===4194304?Ct:r===8388608?Kn:Ce;case 45:case 46:var i=gh(n.operand,Xl(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return i&&bp(n.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Oy(t)}return _e}function yk(n){var t=Na(n.operand);if(t===Ht)return Ht;var r=gh(n.operand,Xl(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return r&&bp(n.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Oy(t)}function Oy(n){return So(n,2112)?qo(n,3)||So(n,296)?Lt:dt:ot}function So(n,t){if(n.flags&t&~131072||t&131072&&Fl(n))return!0;if(n.flags&3145728)for(var r=n.types,i=0,l=r;i<l.length;i++){var d=l[i];if(So(d,t))return!0}return!1}function qo(n,t,r){return n.flags&t?!0:r&&n.flags&(3|16384|32768|65536)?!1:!!(t&296)&&Wi(n,ot)||!!(t&2112)&&Wi(n,dt)||!!(t&132)&&Wi(n,ct)||!!(t&528)&&Wi(n,Ce)||!!(t&16384)&&Wi(n,yt)||!!(t&131072)&&Wi(n,Dt)||!!(t&65536)&&Wi(n,Bn)||!!(t&32768)&&Wi(n,un)||!!(t&4096)&&Wi(n,_n)||!!(t&67108864)&&Wi(n,Hr)}function yh(n,t,r){return n.flags&1048576?e.every(n.types,function(i){return yh(i,t,r)}):qo(n,t,r)}function Py(n){return!!(e.getObjectFlags(n)&16)&&!!n.symbol&&My(n.symbol)}function My(n){return(n.flags&128)!==0}function _k(n,t,r,i){return r===Ht||i===Ht?Ht:(!Bi(r)&&yh(r,131068)&&xn(n,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Bi(i)||o_(i)||Tu(i,Ri)||xn(t,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Ce)}function vk(n,t,r,i){return r===Ht||i===Ht?Ht:(r=Xl(r,n),i=Xl(i,t),nf(r,ct)||qo(r,296|12288)||xn(n,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),yh(i,67108864|58982400)||xn(t,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Ce)}function bk(n,t,r){var i=n.properties;if(a&&i.length===0)return Xl(t,n);for(var l=0;l<i.length;l++)iT(n,t,l,i,r);return t}function iT(n,t,r,i,l){l===void 0&&(l=!1);var d=n.properties,A=d[r];if(A.kind===279||A.kind===280){var B=A.name,Ae=vd(B);if(nr(Ae)){var We=Oo(Ae),Ye=Ji(t,We);Ye&&(lh(Ye,A,l),sh(A,!1,t,Ye))}var tn=xl(t,Ae,B),bn=Wc(A,tn);return Hd(A.kind===280?A:A.initializer,bn)}else if(A.kind===281)if(r<d.length-1)xn(A,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{w<99&&Ll(A,4);var Mn=[];if(i)for(var it=0,_t=i;it<_t.length;it++){var St=_t[it];e.isSpreadAssignment(St)||Mn.push(St.name)}var bn=jc(t,Mn,t.symbol);return cf(i,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Hd(A.expression,bn)}else xn(A,e.Diagnostics.Property_assignment_expected)}function Ek(n,t,r){var i=n.elements;w<2&&je.downlevelIteration&&Ll(n,512);for(var l=qd(65,t,un,n)||_e,d=0;d<i.length;d++)oT(n,t,d,l,r);return t}function oT(n,t,r,i,l){var d=n.elements,A=d[r];if(A.kind!==214){if(A.kind!==212){var B=rs(r);if(Sd(t)){var Ae=Af(A)?8:0,We=bd(t,B,Cd(A,B),Ae)||_e,Ye=Af(A)?hs(We,524288):We,tn=Wc(A,Ye);return Hd(A,tn,l)}return Hd(A,i,l)}if(r<d.length-1)xn(A,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var bn=A.expression;if(bn.kind===208&&bn.operatorToken.kind===62)xn(bn.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer);else{cf(n.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);var tn=Sf(t,Do)?Ws(t,function(it){return iv(it,r)}):Is(i);return Hd(bn,tn,l)}}}return}function Hd(n,t,r,i){var l;if(n.kind===280){var d=n;d.objectAssignmentInitializer&&(a&&!(kl(Na(d.objectAssignmentInitializer))&32768)&&(t=hs(t,524288)),lT(d.name,d.equalsToken,d.objectAssignmentInitializer,r)),l=n.name}else l=n;return l.kind===208&&l.operatorToken.kind===62&&(sT(l,r),l=l.left),l.kind===192?bk(l,t,i):l.kind===191?Ek(l,t,r):Tk(l,t,r)}function Tk(n,t,r){var i=Na(n,r),l=n.parent.kind===281?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,d=n.parent.kind===281?e.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return bp(n,l,d)&&Vu(t,i,n,n),t}function dm(n){n=e.skipParentheses(n);switch(n.kind){case 75:case 10:case 13:case 197:case 210:case 14:case 8:case 9:case 105:case 90:case 99:case 145:case 200:case 213:case 201:case 191:case 192:case 203:case 217:case 265:case 264:return!0;case 209:return dm(n.whenTrue)&&dm(n.whenFalse);case 208:return e.isAssignmentOperator(n.operatorToken.kind)?!1:dm(n.left)&&dm(n.right);case 206:case 207:switch(n.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 204:case 198:case 216:default:return!1}}function Ry(n,t){return(t.flags&98304)!==0||nf(n,t)}function sT(n,t){return e.isInJSFile(n)&&e.getAssignedExpandoInitializer(n)?Na(n.right,t):(Sk(n),lT(n.left,n.operatorToken,n.right,t,n))}function Sk(n){var t=n.left,r=n.operatorToken,i=n.right;r.kind===60&&(e.isBinaryExpression(t)&&(t.operatorToken.kind===56||t.operatorToken.kind===55)&&ur(t,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(t.operatorToken.kind),e.tokenToString(r.kind)),e.isBinaryExpression(i)&&(i.operatorToken.kind===56||i.operatorToken.kind===55)&&ur(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(r.kind)))}function lT(n,t,r,i,l){var d=t.kind;if(d===62&&(n.kind===192||n.kind===191))return Hd(n,Na(r,i),i,r.kind===103);var A;d===55||d===56||d===60?A=Rf(n,i):A=Na(n,i);var B=Na(r,i);switch(d){case 41:case 42:case 65:case 66:case 43:case 67:case 44:case 68:case 40:case 64:case 47:case 69:case 48:case 70:case 49:case 71:case 51:case 73:case 52:case 74:case 50:case 72:if(A===Ht||B===Ht)return Ht;A=Xl(A,n),B=Xl(B,r);var Ae=void 0;if(A.flags&528&&B.flags&528&&(Ae=or(t.kind))!==void 0)return xn(l||t,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(t.kind),e.tokenToString(Ae)),ot;var We=gh(n,A,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Ye=gh(r,B,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),tn;if(qo(A,3)&&qo(B,3)||!(So(A,2112)||So(B,2112)))tn=ot;else if(_t(A,B)){switch(d){case 49:case 71:ja()}tn=dt}else ja(_t),tn=_e;return We&&Ye&&br(tn),tn;case 39:case 63:if(A===Ht||B===Ht)return Ht;!qo(A,132)&&!qo(B,132)&&(A=Xl(A,n),B=Xl(B,r));var bn=void 0;if(qo(A,296,!0)&&qo(B,296,!0)?bn=ot:qo(A,2112,!0)&&qo(B,2112,!0)?bn=dt:qo(A,132,!0)||qo(B,132,!0)?bn=ct:(Bi(A)||Bi(B))&&(bn=A===_e||B===_e?_e:oe),bn&&!mr(d))return bn;if(!bn){var Mn=296|2112|132|3;return ja(function(Sa,ka){return qo(Sa,Mn)&&qo(ka,Mn)}),oe}return d===63&&br(bn),bn;case 29:case 31:case 32:case 33:return mr(d)&&(A=Bl(Xl(A,n)),B=Bl(Xl(B,r)),Ur(function(Sa,ka){return nf(Sa,ka)||nf(ka,Sa)||Wi(Sa,Lt)&&Wi(ka,Lt)})),Ce;case 34:case 35:case 36:case 37:return Ur(function(Sa,ka){return Ry(Sa,ka)||Ry(ka,Sa)}),Ce;case 97:return _k(n,r,A,B);case 96:return vk(n,r,A,B);case 55:return cd(A)&4194304?Wr([fw(a?A:Bl(B)),B]):A;case 56:return cd(A)&8388608?Wr([rb(A),B],2):A;case 60:return cd(A)&262144?Wr([Wu(A),B],2):A;case 62:var it=e.isBinaryExpression(n.parent)?e.getAssignmentDeclarationKind(n.parent):0;return St(it,B),ta(it)?((!(B.flags&524288)||it!==2&&it!==6&&!Uu(B)&&!Qg(B)&&!(e.getObjectFlags(B)&1))&&br(B),A):(br(B),bf(B));case 27:return!je.allowUnreachableCode&&dm(n)&&!Yt(r)&&xn(n,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),B;default:return e.Debug.fail()}function _t(Sa,ka){return qo(Sa,2112)&&qo(ka,2112)}function St(Sa,ka){if(Sa===2)for(var Bt=0,Sn=yu(ka);Bt<Sn.length;Bt++){var gn=Sn[Bt],wt=Jn(gn);if(wt.symbol&&wt.symbol.flags&32){var At=gn.escapedName,er=lo(gn.valueDeclaration,At,788968,void 0,At,!1);if(er&&er.declarations.some(e.isJSDocTypedefTag))return ur(er.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(At)),ur(gn.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(At))}}}function Yt(Sa){return Sa.kind===75&&Sa.escapedText==="eval"}function mr(Sa){var ka=So(A,12288)?n:So(B,12288)?r:void 0;return ka?(xn(ka,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(Sa)),!1):!0}function or(Sa){switch(Sa){case 51:case 73:return 56;case 52:case 74:return 37;case 50:case 72:return 55;default:return}}function br(Sa){E&&e.isAssignmentOperator(d)&&(bp(n,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&(!e.isIdentifier(n)||e.unescapeLeadingUnderscores(n.escapedText)!=="exports")&&Vu(Sa,A,n,r))}function ta(Sa){switch(Sa){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var ka=Zt(n),Bt=e.getAssignedExpandoInitializer(r);return Bt&&e.isObjectLiteralExpression(Bt)&&ka&&e.hasEntries(ka.exports);default:return!1}}function Ur(Sa){return Sa(A,B)?!1:(ja(Sa),!0)}function ja(Sa){var ka,Bt=!1,Sn=l||t;if(Sa){var gn=mc(A),wt=mc(B);Bt=!(gn===A&&wt===B)&&!!(gn&&wt)&&Sa(gn,wt)}var At=A,er=B;!Bt&&Sa&&(ka=xk(A,B,Sa),At=ka[0],er=ka[1]);var gr=bl(At,er),Cr=gr[0],jt=gr[1];$i(Sn,Bt,Cr,jt)||Ho(Sn,Bt,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(t.kind),Cr,jt)}function $i(Sa,ka,Bt,Sn){var gn;switch(t.kind){case 36:case 34:gn="false";break;case 37:case 35:gn="true"}return gn?Ho(Sa,ka,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,gn,Bt,Sn):void 0}}function xk(n,t,r){var i=n,l=t,d=Bl(n),A=Bl(t);return r(d,A)||(i=d,l=A),[i,l]}function wk(n){for(var t=n,r=n.parent;r;){if(e.isFunctionLike(r)&&t===r.body)return!1;if(e.isClassLike(t))return!0;t=r,r=r.parent}return!1}function Ak(n){E&&((!(n.flags&8192)||wk(n))&&ss(n,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),sy(n)&&xn(n,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var t=e.getContainingFunction(n);if(!t)return oe;var r=e.getFunctionFlags(t);if(!(r&1))return oe;var i=(r&2)!==0;n.asteriskToken&&(i&&w<99&&Ll(n,53248),!i&&w<2&&je.downlevelIteration&&Ll(n,256));var l=Yd(t),d=l&&qT(l,i),A=d&&d.yieldType||oe,B=d&&d.nextType||oe,Ae=i?mc(B)||oe:B,We=n.expression?Na(n.expression):Rn,Ye=YE(n,We,Ae,i);if(l&&Ye&&Vu(Ye,A,n.expression||n,n.expression),n.asteriskToken){var tn=i?19:17;return RT(tn,1,We,n.expression)||oe}else if(l)return Jd(2,l,i)||oe;return Kb(2,t)||oe}function kk(n,t){Rf(n.condition);var r=Na(n.whenTrue,t),i=Na(n.whenFalse,t);return Wr([r,i],2)}function Ck(n){return e.forEach(n.templateSpans,function(t){So(Na(t.expression),12288)&&xn(t.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)}),ct}function Dk(n){return n.kind===272&&!e.isJsxSelfClosingElement(n.parent)?n.parent.parent:n}function Of(n,t,r,i){var l=Dk(n),d=l.contextualType,A=l.inferenceContext;l.contextualType=t,l.inferenceContext=r;var B=Na(n,i|1|(r?2:0)),Ae=So(B,2944)&&fm(B,nh(t,n))?js(B):B;return l.contextualType=d,l.inferenceContext=A,Ae}function as(n,t){var r=Lr(n);if(!r.resolvedType){if(t&&t!==0)return Na(n,t);var i=kr;kr=fa,r.resolvedType=Na(n,t),kr=i}return r.resolvedType}function cT(n){return n=e.skipParentheses(n),n.kind===198||n.kind===216}function _h(n){var t=e.getEffectiveInitializer(n),r=Dl(t,!0),i=e.isParameter(n)&&n.name.kind===189&&Do(r)&&!r.target.hasRestElement&&_d(r)<n.name.elements.length?Lk(r,n.name):r,l=e.getCombinedNodeFlags(n)&2||e.isDeclarationReadonly(n)||cT(t)||fm(i,Qc(t))?i:xd(i);if(e.isInJSFile(n)){if(l.flags&98304)return ld(n,oe),oe;if(Ng(l))return ld(n,mi),mi}return l}function Lk(n,t){for(var r=t.elements,i=_d(n),l=i?go(n).slice():[],d=i;d<r.length;d++){var A=r[d];(d<r.length-1||!(A.kind===190&&A.dotDotDotToken))&&(l.push(!e.isOmittedExpression(A)&&Af(A)?g(A,!1,!1):oe),!e.isOmittedExpression(A)&&!Af(A)&&ld(A,oe))}return Gu(l,n.target.minLength,!1,n.target.readonly)}function fm(n,t){if(t){if(t.flags&3145728){var r=t.types;return e.some(r,function(l){return fm(n,l)})}if(t.flags&58982400){var i=cl(t)||dn;return So(i,4)&&So(n,128)||So(i,8)&&So(n,256)||So(i,64)&&So(n,2048)||So(i,4096)&&So(n,8192)||fm(n,i)}return!!(t.flags&(128|4194304)&&So(n,128)||t.flags&256&&So(n,256)||t.flags&2048&&So(n,2048)||t.flags&512&&So(n,512)||t.flags&8192&&So(n,8192))}return!1}function Ep(n){var t=n.parent;return e.isAssertionExpression(t)&&e.isConstTypeReference(t.type)||(e.isParenthesizedExpression(t)||e.isArrayLiteralExpression(t)||e.isSpreadElement(t))&&Ep(t)||(e.isPropertyAssignment(t)||e.isShorthandPropertyAssignment(t))&&Ep(t.parent)}function Pf(n,t,r,i){var l=Na(n,t,i);return Ep(n)?js(l):cT(n)?l:Pg(l,nh(arguments.length===2?Qc(n):r,n))}function uT(n,t){return n.name.kind===153&&Ku(n.name),Pf(n.initializer,t)}function dT(n,t){AS(n),n.name.kind===153&&Ku(n.name);var r=eT(n,t);return fT(n,r,t)}function fT(n,t,r){if(r&&r&(2|8)){var i=hp(t,0,!0),l=hp(t,1,!0),d=i||l;if(d&&d.typeParameters){var A=Hu(n,2);if(A){var B=hp(Wu(A),i?0:1,!1);if(B&&!B.typeParameters){if(r&8)return pT(n,r),bt;var Ae=pp(n),We=Ae.signature&&Fi(Ae.signature),Ye=We&&kE(We);if(Ye&&!Ye.typeParameters&&!e.every(Ae.inferences,Kd)){var tn=Ok(Ae,d.typeParameters),bn=rg(d,tn),Mn=e.map(Ae.inferences,function(it){return Kg(it.typeParameter)});if(jg(bn,B,function(it,_t){Dc(Mn,it,_t,0,!0)}),e.some(Mn,Kd)&&(Wg(bn,B,function(it,_t){Dc(Mn,it,_t)}),!Ik(Ae.inferences,Mn)))return Nk(Ae.inferences,Mn),Ae.inferredTypeParameters=e.concatenate(Ae.inferredTypeParameters,tn),Yf(bn)}return Yf(CE(d,B,Ae))}}}}return t}function pT(n,t){if(t&2){var r=pp(n);r.flags|=4}}function Kd(n){return!!(n.candidates||n.contraCandidates)}function Ik(n,t){for(var r=0;r<n.length;r++)if(Kd(n[r])&&Kd(t[r]))return!0;return!1}function Nk(n,t){for(var r=0;r<n.length;r++)!Kd(n[r])&&Kd(t[r])&&(n[r]=t[r])}function Ok(n,t){for(var r=[],i,l,d=0,A=t;d<A.length;d++){var B=A[d],Ae=B.symbol.escapedName;if(Fy(n.inferredTypeParameters,Ae)||Fy(r,Ae)){var We=Pk(e.concatenate(n.inferredTypeParameters,r),Ae),Ye=Ga(262144,We),tn=il(Ye);tn.target=B,i=e.append(i,B),l=e.append(l,tn),r.push(tn)}else r.push(B)}if(l)for(var bn=wl(i,l),Mn=0,it=l;Mn<it.length;Mn++){var B=it[Mn];B.mapper=bn}return r}function Fy(n,t){return e.some(n,function(r){return r.symbol.escapedName===t})}function Pk(n,t){for(var r=t.length;r>1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var i=t.slice(0,r),l=1;;l++){var d=i+l;if(!Fy(n,d))return d}}function mT(n){var t=Wd(n);if(t&&!t.typeParameters)return Fi(t)}function Mk(n){var t=Na(n.expression),r=Qp(t,n.expression),i=mT(t);return i&&Bg(i,n,r!==t)}function Dl(n,t){var r=e.skipParentheses(n);if(e.isCallExpression(r)&&r.expression.kind!==101&&!e.isRequireCall(r,!0)&&!UE(r)){var i=e.isCallChain(r)?Mk(r):mT(Cf(r.expression));if(i)return i}else if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return Ua(r.type);return t?as(n):Na(n)}function hT(n){var t=Lr(n);if(t.contextFreeType)return t.contextFreeType;var r=n.contextualType;n.contextualType=oe;var i=t.contextFreeType=Na(n,4);return n.contextualType=r,i}function Na(n,t,r){var i=we;we=n,De=0;var l=Gk(n,t,r),d=fT(n,l,t);return Py(d)&&Rk(n,d),we=i,d}function Rk(n,t){var r=n.parent.kind===193&&n.parent.expression===n||n.parent.kind===194&&n.parent.expression===n||(n.kind===75||n.kind===152)&&Nh(n)||n.parent.kind===171&&n.parent.exprName===n||n.parent.kind===261;if(r||xn(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),je.isolatedModules){e.Debug.assert(!!(t.symbol.flags&128));var i=t.symbol.valueDeclaration;i.flags&8388608&&xn(n,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}function Fk(n,t){var r=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return r?KE(r,r.typeExpression.type,n.expression,t):Na(n.expression,t)}function Gk(n,t,r){var i=n.kind;if(T)switch(i){case 213:case 200:case 201:T.throwIfCancellationRequested()}switch(i){case 75:return hA(n);case 103:return Gb(n);case 101:return Vb(n);case 99:return ut;case 14:case 10:return Zd(rs(n.text));case 8:return m_(n),Zd(rs(+n.text));case 9:return JD(n),Zd(sx(n));case 105:return Kn;case 90:return Ct;case 210:return Ck(n);case 13:return pi;case 191:return Zb(n,t,r);case 192:return zA(n,t);case 193:return hE(n);case 152:return gE(n);case 194:return w2(n);case 195:if(n.expression.kind===95)return $2(n);case 196:return Z2(n,t);case 197:return ek(n);case 199:return Fk(n,t);case 213:return JC(n);case 200:case 201:return eT(n,t);case 203:return pk(n);case 198:case 216:return nk(n);case 217:return tk(n);case 218:return rk(n);case 202:return fk(n);case 204:return mk(n);case 205:return hk(n);case 206:return gk(n);case 207:return yk(n);case 208:return sT(n,t);case 209:return kk(n,t);case 212:return qA(n,t);case 214:return Rn;case 211:return Ak(n);case 219:return n.type;case 274:return s2(n,t);case 264:return ZA(n,t);case 265:return YA(n,t);case 268:return $A(n);case 272:return n2(n,t);case 266:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return _e}function gT(n){n.expression&&ss(n.expression,e.Diagnostics.Type_expected),Ci(n.constraint),Ci(n.default);var t=Fd(Zt(n));cl(t),o1(t)||xn(n.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,qt(t));var r=ll(t),i=zd(t);r&&i&&Al(i,Jl(Ei(r,_f(t,i)),i),n.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),E&&Ff(n.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function yT(n){eu(n),Ah(n);var t=e.getContainingFunction(n);e.hasModifier(n,92)&&(t.kind===161&&e.nodeIsPresent(t.body)||xn(n,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),n.questionToken&&e.isBindingPattern(n.name)&&t.body&&xn(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")&&(t.parameters.indexOf(n)!==0&&xn(n,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(t.kind===161||t.kind===165||t.kind===170)&&xn(n,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),t.kind===201&&xn(n,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter)),n.dotDotDotToken&&!e.isBindingPattern(n.name)&&!Wi(Jn(n.symbol),en)&&xn(n,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function Bk(n){var t=Vk(n);if(!t){xn(n,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}var r=fc(t),i=ul(r);if(!i)return;Ci(n.type);var l=n.parameterName;if(i.kind===0||i.kind===2)Fm(l);else if(i.parameterIndex>=0){if(I(r)&&i.parameterIndex===r.parameters.length-1)xn(l,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else if(i.type){var d=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)};Al(i.type,Jn(r.parameters[i.parameterIndex]),n.type,void 0,d)}}else if(l){for(var A=!1,B=0,Ae=t.parameters;B<Ae.length;B++){var We=Ae[B].name;if(e.isBindingPattern(We)&&_T(We,l,i.parameterName)){A=!0;break}}A||xn(n.parameterName,e.Diagnostics.Cannot_find_parameter_0,i.parameterName)}}function Vk(n){switch(n.parent.kind){case 201:case 164:case 243:case 200:case 169:case 160:case 159:var t=n.parent;if(n===t.type)return t}}function _T(n,t,r){for(var i=0,l=n.elements;i<l.length;i++){var d=l[i];if(e.isOmittedExpression(d))continue;var A=d.name;if(A.kind===75&&A.escapedText===r)return xn(t,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,r),!0;if((A.kind===189||A.kind===188)&&_T(A,t,r))return!0}}function Tp(n){n.kind===166?bD(n):(n.kind===169||n.kind===243||n.kind===170||n.kind===164||n.kind===161||n.kind===165)&&Mh(n);var t=e.getFunctionFlags(n);if(t&4||((t&3)===3&&w<99&&Ll(n,12288),(t&3)===2&&w<4&&Ll(n,64),(t&3)!==0&&w<2&&Ll(n,128)),Ch(n.typeParameters),e.forEach(n.parameters,yT),n.type&&Ci(n.type),E){vC(n);var r=e.getEffectiveReturnTypeNode(n);if(ae&&!r)switch(n.kind){case 165:xn(n,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 164:xn(n,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(r){var i=e.getFunctionFlags(n);if((i&(4|1))===1){var l=Ua(r);if(l===yt)xn(r,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var d=Jd(0,l,(i&2)!==0)||oe,A=Jd(1,l,(i&2)!==0)||d,B=Jd(2,l,(i&2)!==0)||dn,Ae=XE(d,A,B,!!(i&2));Al(Ae,l,r)}}else(i&3)===2&&oC(n,r)}n.kind!==166&&n.kind!==298&&Au(n)}}function Uk(n){for(var t=e.createUnderscoreEscapedMap(),r=e.createUnderscoreEscapedMap(),i=0,l=n.members;i<l.length;i++){var d=l[i];if(d.kind===161)for(var A=0,B=d.parameters;A<B.length;A++){var Ae=B[A];e.isParameterPropertyDeclaration(Ae,d)&&!e.isBindingPattern(Ae.name)&&Mn(t,Ae.name,Ae.name.escapedText,3)}else{var We=e.hasModifier(d,32),Ye=We?r:t,tn=d.name,bn=tn&&e.getPropertyNameForPropertyNameNode(tn);if(tn&&bn)switch(d.kind){case 162:Mn(Ye,tn,bn,1);break;case 163:Mn(Ye,tn,bn,2);break;case 158:Mn(Ye,tn,bn,3);break;case 160:Mn(Ye,tn,bn,8);break}}}function Mn(it,_t,St,Yt){var mr=it.get(St);mr?mr&8?Yt!==8&&xn(_t,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(_t)):mr&Yt?xn(_t,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(_t)):it.set(St,mr|Yt):it.set(St,Yt)}}function jk(n){for(var t=0,r=n.members;t<r.length;t++){var i=r[t],l=i.name,d=e.hasModifier(i,32);if(d&&l){var A=e.getPropertyNameForPropertyNameNode(l);switch(A){case"name":case"length":case"caller":case"arguments":case"prototype":var B=e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,Ae=Vs(Zt(n));xn(l,B,A,Ae);break}}}}function vT(n){for(var t=e.createMap(),r=0,i=n.members;r<i.length;r++){var l=i[r];if(l.kind===157){var d=void 0,A=l.name;switch(A.kind){case 10:case 8:d=A.text;break;case 75:d=e.idText(A);break;default:continue}t.get(d)?(xn(e.getNameOfDeclaration(l.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,d),xn(l.name,e.Diagnostics.Duplicate_identifier_0,d)):t.set(d,!0)}}}function Gy(n){if(n.kind===245){var t=Zt(n);if(t.declarations.length>0&&t.declarations[0]!==n)return}var r=U_(Zt(n));if(r)for(var i=!1,l=!1,d=0,A=r.declarations;d<A.length;d++){var B=A[d],Ae=B;if(Ae.parameters.length===1&&Ae.parameters[0].type)switch(Ae.parameters[0].type.kind){case 142:l?xn(Ae,e.Diagnostics.Duplicate_string_index_signature):l=!0;break;case 139:i?xn(Ae,e.Diagnostics.Duplicate_number_index_signature):i=!0;break}}}function Wk(n){!eu(n)&&!jD(n)&&Rh(n.name),Ah(n)}function Hk(n){AS(n)||Rh(n.name),kT(n),e.hasModifier(n,128)&&n.kind===160&&n.body&&xn(n,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(n.name))}function Kk(n){Tp(n),VD(n)||UD(n),Ci(n.body);var t=Zt(n),r=e.getDeclarationOfKind(t,n.kind);if(n===r&&Uy(t),e.nodeIsMissing(n.body))return;if(!E)return;function i(Mn){return Mn.kind===158&&!e.hasModifier(Mn,32)&&!!Mn.initializer}var l=n.parent;if(e.getClassExtendsHeritageElement(l)){iy(n.parent,l);var d=Rb(l),A=Mb(n);if(A){d&&xn(A,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);var B=e.some(n.parent.members,i)||e.some(n.parameters,function(Mn){return e.hasModifier(Mn,92)});if(B){for(var Ae=n.body.statements,We=void 0,Ye=0,tn=Ae;Ye<tn.length;Ye++){var bn=tn[Ye];if(bn.kind===225&&e.isSuperCall(bn.expression)){We=bn;break}if(!e.isPrologueDirective(bn))break}We||xn(n,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties)}}else d||xn(n,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}function bT(n){if(E){if(!Mh(n)&&!LD(n)&&Rh(n.name),mm(n),Tp(n),n.kind===162&&(!(n.flags&8388608)&&e.nodeIsPresent(n.body)&&n.flags&256&&(n.flags&512||xn(n.name,e.Diagnostics.A_get_accessor_must_return_a_value))),n.name.kind===153&&Ku(n.name),!Ya(n)){var t=n.kind===162?163:162,r=e.getDeclarationOfKind(Zt(n),t);if(r){var i=e.getModifierFlags(n),l=e.getModifierFlags(r);(i&28)!==(l&28)&&xn(n.name,e.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),(i&128)!==(l&128)&&xn(n.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),ET(n,r,aa,e.Diagnostics.get_and_set_accessor_must_have_the_same_type),ET(n,r,W,e.Diagnostics.get_and_set_accessor_must_have_the_same_this_type)}}var d=fn(Zt(n));n.kind===162&&Ny(n,d)}Ci(n.body)}function ET(n,t,r,i){var l=r(n),d=r(t);l&&d&&!Xc(l,d)&&xn(n,i)}function qk(n){mm(n)}function vh(n,t){return Bd(e.map(n.typeArguments,Ua),t,_u(t),e.isInJSFile(n))}function TT(n,t){for(var r,i,l=!0,d=0;d<t.length;d++){var A=ll(t[d]);A&&(r||(r=vh(n,t),i=wl(t,r)),l=l&&Al(r[d],Ei(A,i),n.typeArguments[d],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return l}function By(n){var t=Kp(n);if(t!==_e){var r=Lr(n).resolvedSymbol;if(r)return r.flags&524288&&na(r).typeParameters||(e.getObjectFlags(t)&4?t.target.localTypeParameters:void 0)}return}function Vy(n){bm(n,n.typeArguments),n.kind===168&&n.typeName.jsdocDotPos!==void 0&&!e.isInJSFile(n)&&!e.isInJSDoc(n)&&Ju(n,n.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(n.typeArguments,Ci);var t=Kp(n);if(t!==_e){if(n.typeArguments&&E){var r=By(n);r&&TT(n,r)}t.flags&32&&Lr(n).resolvedSymbol.flags&8&&xn(n,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,qt(t))}}function Jk(n){var t=e.tryCast(n.parent,e.isTypeReferenceType);if(!t)return;var r=By(t),i=ll(r[t.typeArguments.indexOf(n)]);return i&&Ei(i,wl(r,vh(t,r)))}function zk(n){X_(n)}function Xk(n){if(e.forEach(n.members,Ci),E){var t=Tv(n);$y(t),Gy(n),vT(n)}}function Yk(n){Ci(n.elementType)}function Qk(n){for(var t=n.elementTypes,r=!1,i=0;i<t.length;i++){var l=t[i];if(l.kind===176){if(i!==t.length-1){ur(l,e.Diagnostics.A_rest_element_must_be_last_in_a_tuple_type);break}Ms(Ua(l.type))||xn(l,e.Diagnostics.A_rest_element_type_must_be_an_array_type)}else if(l.kind===175)r=!0;else if(r){ur(l,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(n.elementTypes,Ci)}function Zk(n){e.forEach(n.types,Ci)}function ST(n,t){if(!(n.flags&8388608))return n;var r=n.objectType,i=n.indexType;if(Wi(i,zc(r,!1)))return t.kind===194&&e.isAssignmentTarget(t)&&e.getObjectFlags(r)&32&&Jc(r)&1&&xn(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,qt(r)),n;var l=us(r);if(Xi(l,1)&&qo(i,296))return n;if(Qd(r)){var d=pv(i,t);if(d){var A=of(l,function(B){return Ji(B,d)});if(A&&e.getDeclarationModifierFlagsFromSymbol(A)&24)return xn(t,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(d)),_e}}return xn(t,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,qt(i),qt(r)),_e}function $k(n){Ci(n.objectType),Ci(n.indexType),ST(_v(n),n)}function eC(n){Ci(n.typeParameter),Ci(n.type),n.type||ld(n,oe);var t=hg(n),r=uc(t);Al(r,va,e.getEffectiveConstraintOfTypeParameter(n.typeParameter))}function nC(n){Fm(n)}function tC(n){ND(n),Ci(n.type)}function rC(n){e.forEachChild(n,Ci)}function aC(n){e.findAncestor(n,function(t){return t.parent&&t.parent.kind===179&&t.parent.extendsType===t})||ur(n,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Ci(n.typeParameter),Au(n)}function iC(n){Ci(n.argument),Ua(n)}function bh(n){return e.hasModifier(n,8)&&!!(n.flags&8388608)}function Eh(n,t){var r=e.getCombinedModifierFlags(n);return n.parent.kind!==245&&n.parent.kind!==244&&n.parent.kind!==213&&n.flags&8388608&&(!(r&2)&&!(e.isModuleBlock(n.parent)&&e.isModuleDeclaration(n.parent.parent)&&e.isGlobalScopeAugmentation(n.parent.parent))&&(r|=1),r|=2),r&t}function Uy(n){if(!E)return;function t(At,er){var gr=er!==void 0&&er.parent===At[0].parent;return gr?er:At[0]}function r(At,er,gr,Cr,jt){var la=Cr^jt;if(la!==0){var Ea=Eh(t(At,er),gr);e.forEach(At,function(Oa){var Di=Eh(Oa,gr)^Ea;Di&1?xn(e.getNameOfDeclaration(Oa),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):Di&2?xn(e.getNameOfDeclaration(Oa),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):Di&(8|16)?xn(e.getNameOfDeclaration(Oa)||Oa,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):Di&128&&xn(e.getNameOfDeclaration(Oa),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function i(At,er,gr,Cr){if(gr!==Cr){var jt=e.hasQuestionToken(t(At,er));e.forEach(At,function(la){var Ea=e.hasQuestionToken(la)!==jt;Ea&&xn(e.getNameOfDeclaration(la),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}var l=1|2|8|16|128,d=0,A=l,B=!1,Ae=!0,We=!1,Ye,tn,bn,Mn=n.declarations,it=(n.flags&16384)!==0;function _t(At){if(At.name&&e.nodeIsMissing(At.name))return;var er=!1,gr=e.forEachChild(At.parent,function(Di){if(er)return Di;er=Di===At});if(gr&&gr.pos===At.end&&gr.kind===At.kind){var Cr=gr.name||gr,jt=gr.name;if(At.name&&jt&&(e.isComputedPropertyName(At.name)&&e.isComputedPropertyName(jt)||!e.isComputedPropertyName(At.name)&&!e.isComputedPropertyName(jt)&&e.getEscapedTextOfIdentifierOrLiteral(At.name)===e.getEscapedTextOfIdentifierOrLiteral(jt))){var la=(At.kind===160||At.kind===159)&&e.hasModifier(At,32)!==e.hasModifier(gr,32);if(la){var Ea=e.hasModifier(At,32)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static;xn(Cr,Ea)}return}else if(e.nodeIsPresent(gr.body)){xn(Cr,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(At.name));return}}var Oa=At.name||At;it?xn(Oa,e.Diagnostics.Constructor_implementation_is_missing):e.hasModifier(At,128)?xn(Oa,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):xn(Oa,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}for(var St=!1,Yt=!1,mr=!1,or=0,br=Mn;or<br.length;or++){var ta=br[or],Ur=ta,ja=Ur.flags&8388608,$i=Ur.parent.kind===245||Ur.parent.kind===172||ja;if($i&&(bn=void 0),(Ur.kind===244||Ur.kind===213)&&!ja&&(mr=!0),Ur.kind===243||Ur.kind===160||Ur.kind===159||Ur.kind===161){var Sa=Eh(Ur,l);d|=Sa,A&=Sa,B=B||e.hasQuestionToken(Ur),Ae=Ae&&e.hasQuestionToken(Ur),e.nodeIsPresent(Ur.body)&&Ye?it?Yt=!0:St=!0:bn&&bn.parent===Ur.parent&&bn.end!==Ur.pos&&_t(bn),e.nodeIsPresent(Ur.body)?Ye||(Ye=Ur):We=!0,bn=Ur,$i||(tn=Ur)}}if(Yt&&e.forEach(Mn,function(At){xn(At,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),St&&e.forEach(Mn,function(At){xn(e.getNameOfDeclaration(At),e.Diagnostics.Duplicate_function_implementation)}),mr&&!it&&n.flags&16&&e.forEach(Mn,function(At){ga(e.getNameOfDeclaration(At)||At,e.Diagnostics.Duplicate_identifier_0,e.symbolName(n),e.filter(Mn,function(er){return er!==At}))}),tn&&!tn.body&&!e.hasModifier(tn,128)&&!tn.questionToken&&_t(tn),We&&(r(Mn,Ye,l,d,A),i(Mn,Ye,B,Ae),Ye))for(var ka=Xd(n),Bt=fc(Ye),Sn=0,gn=ka;Sn<gn.length;Sn++){var wt=gn[Sn];if(!qx(Bt,wt)){e.addRelatedInfo(xn(wt.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(Ye,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}function pm(n){if(!E)return;var t=n.localSymbol;if(!t&&(t=Zt(n),!t.exportSymbol))return;if(e.getDeclarationOfKind(t,n.kind)!==n)return;for(var r=0,i=0,l=0,d=0,A=t.declarations;d<A.length;d++){var B=A[d],Ae=St(B),We=Eh(B,1|512);We&1?We&512?l|=Ae:r|=Ae:i|=Ae}var Ye=r|i,tn=r&i,bn=l&Ye;if(tn||bn)for(var Mn=0,it=t.declarations;Mn<it.length;Mn++){var B=it[Mn],Ae=St(B),_t=e.getNameOfDeclaration(B);Ae&bn?xn(_t,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(_t)):Ae&tn&&xn(_t,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(_t))}function St(Yt){var mr=Yt;switch(mr.kind){case 245:case 246:case 315:case 308:case 309:return 2;case 248:return e.isAmbientModule(mr)||e.getModuleInstanceState(mr)!==0?4|1:4;case 244:case 247:return 2|1;case 288:return 2|1|4;case 258:if(!e.isEntityNameExpression(mr.expression))return 1;mr=mr.expression;case 252:case 255:case 254:var or=0,br=V(Zt(mr));return e.forEach(br.declarations,function(ta){or|=St(ta)}),or;case 241:case 190:case 243:case 257:return 1;default:return e.Debug.failBadSyntaxKind(mr)}}}function Sp(n,t,r,i){var l=xp(n,t);return l&&mc(l,t,r,i)}function xp(n,t){if(Bi(n))return;var r=n;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(ma(n,Pm(!1)))return r.promisedTypeOfPromise=go(n)[0];var i=Zo(n,"then");if(Bi(i))return;var l=i?oi(i,0):e.emptyArray;if(l.length===0){t&&xn(t,e.Diagnostics.A_promise_must_have_a_then_method);return}var d=hs(Wr(e.map(l,Cy)),2097152);if(Bi(d))return;var A=oi(d,0);if(A.length===0){t&&xn(t,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return r.promisedTypeOfPromise=Wr(e.map(A,Cy),2)}function wp(n,t,r,i){var l=mc(n,t,r,i);return l||_e}function mc(n,t,r,i){var l=n;if(l.awaitedTypeOfType)return l.awaitedTypeOfType;if(Bi(n))return l.awaitedTypeOfType=n;if(n.flags&1048576){for(var d=void 0,A=0,B=n.types;A<B.length;A++){var Ae=B[A];d=e.append(d,mc(Ae,t,r,i))}return d?l.awaitedTypeOfType=Wr(d):void 0}var We=xp(n);if(We){if(n.id===We.id||gt.indexOf(We.id)>=0){t&&xn(t,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}gt.push(n.id);var Ye=mc(We,t,r,i);return gt.pop(),Ye?l.awaitedTypeOfType=Ye:void 0}var tn=Zo(n,"then");if(tn&&oi(tn,0).length>0){if(t){if(!r)return e.Debug.fail();xn(t,r,i)}return}return l.awaitedTypeOfType=n}function oC(n,t){var r=Ua(t);if(w>=2){if(r===_e)return;var i=Pm(!0);if(i!==ht&&!ma(r,i)){xn(t,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);return}}else{if(lC(t),r===_e)return;var l=e.getEntityNameFromTypeNode(t);if(l===void 0){xn(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,qt(r));return}var d=kt(l,111551,!0),A=d?Jn(d):_e;if(A===_e){l.kind===75&&l.escapedText==="Promise"&&Ta(r)===Pm(!1)?xn(t,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):xn(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(l));return}var B=D1(!0);if(B===Wn){xn(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(l));return}if(!Al(A,B,t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var Ae=l&&e.getFirstIdentifier(l),We=Uo(n.locals,Ae.escapedText,111551);if(We){xn(We.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(Ae),e.entityNameToString(l));return}}wp(r,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 sC(n){var t=If(n),r=Fi(t);if(r.flags&1)return;var i,l=BE(n),d;switch(n.parent.kind){case 244:var A=Zt(n.parent),B=Jn(A);i=Wr([B,yt]);break;case 155:i=yt,d=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 158:i=yt,d=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 160:case 162:case 163:var Ae=Gf(n.parent),We=rv(Ae);i=Wr([We,yt]);break;default:return e.Debug.fail()}Al(r,i,n,l,function(){return d})}function lC(n){xT(n&&e.getEntityNameFromTypeNode(n))}function xT(n){if(!n)return;var t=e.getFirstIdentifier(n),r=(n.kind===75?788968:1920)|2097152,i=lo(t,t.escapedText,r,void 0,void 0,!0);i&&i.flags&2097152&&cr(i)&&!Dp(V(i))&&an(i)}function Mf(n){var t=jy(n);t&&e.isEntityName(t)&&xT(t)}function jy(n){if(n)switch(n.kind){case 178:case 177:return wT(n.types);case 179:return wT([n.trueType,n.falseType]);case 181:return jy(n.type);case 168:return n.typeName}}function wT(n){for(var t,r=0,i=n;r<i.length;r++){for(var l=i[r];l.kind===181;)l=l.type;if(l.kind===136)continue;if(!a&&(l.kind===99||l.kind===145))continue;var d=jy(l);if(!d)return;if(t){if(!e.isIdentifier(t)||!e.isIdentifier(d)||t.escapedText!==d.escapedText)return}else t=d}return t}function Th(n){var t=e.getEffectiveTypeAnnotationNode(n);return e.isRestParameter(n)?e.getRestParameterElementType(t):t}function mm(n){if(!n.decorators)return;if(!e.nodeCanBeDecorated(n,n.parent,n.parent.parent))return;je.experimentalDecorators||xn(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var t=n.decorators[0];if(Ll(t,8),n.kind===155&&Ll(t,32),je.emitDecoratorMetadata){Ll(t,16);switch(n.kind){case 244:var r=e.getFirstConstructorWithBody(n);if(r)for(var i=0,l=r.parameters;i<l.length;i++){var d=l[i];Mf(Th(d))}break;case 162:case 163:var A=n.kind===162?163:162,B=e.getDeclarationOfKind(Zt(n),A);Mf(Zr(n)||B&&Zr(B));break;case 160:for(var Ae=0,We=n.parameters;Ae<We.length;Ae++){var d=We[Ae];Mf(Th(d))}Mf(e.getEffectiveReturnTypeNode(n));break;case 158:Mf(e.getEffectiveTypeAnnotationNode(n));break;case 155:Mf(Th(n));for(var Ye=n.parent,tn=0,bn=Ye.parameters;tn<bn.length;tn++){var d=bn[tn];Mf(Th(d))}break}}e.forEach(n.decorators,sC)}function cC(n){E&&(kT(n),d_(n),Ap(n,n.name),kp(n,n.name))}function uC(n){n.typeExpression||xn(n.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&Ff(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),Ci(n.typeExpression)}function dC(n){Ci(n.constraint);for(var t=0,r=n.typeParameters;t<r.length;t++){var i=r[t];Ci(i)}}function fC(n){Ci(n.typeExpression)}function pC(n){if(Ci(n.typeExpression),!e.getParameterSymbolFromJSDoc(n)){var t=e.getHostSignatureFromJSDoc(n);if(t){var r=e.getJSDocTags(t).filter(e.isJSDocParameterTag).indexOf(n);if(r>-1&&r<t.parameters.length&&e.isBindingPattern(t.parameters[r].name))return;B_(t)?e.findLast(e.getJSDocTags(t),e.isJSDocParameterTag)===n&&n.typeExpression&&n.typeExpression.type&&!Ms(Ua(n.typeExpression.type))&&xn(n.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(n.name.kind===152?n.name.right:n.name)):e.isQualifiedName(n.name)?xn(n.name,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(n.name),e.entityNameToString(n.name.left)):xn(n.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(n.name))}}}function mC(n){E&&!n.type&&!e.isJSDocConstructSignature(n)&&ld(n,oe),Tp(n)}function hC(n){var t=e.getJSDocHost(n);if(!e.isClassDeclaration(t)&&!e.isClassExpression(t)){xn(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName));return}var r=e.getJSDocTags(t).filter(e.isJSDocAugmentsTag);e.Debug.assert(r.length>0),r.length>1&&xn(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=AT(n.class.expression),l=e.getClassExtendsHeritageElement(t);if(l){var d=AT(l.expression);d&&i.escapedText!==d.escapedText&&xn(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(n.tagName),e.idText(i),e.idText(d))}}function AT(n){switch(n.kind){case 75:return n;case 193:return n.name;default:return}}function kT(n){mm(n),Tp(n);var t=e.getFunctionFlags(n);if(n.name&&n.name.kind===153&&Ku(n.name),!Ya(n)){var r=Zt(n),i=n.localSymbol||r,l=e.find(i.declarations,function(B){return B.kind===n.kind&&!(B.flags&131072)});n===l&&Uy(i),r.parent&&(e.getDeclarationOfKind(r,n.kind)===n&&Uy(r))}var d=n.kind===159?void 0:n.body;if(Ci(d),Ny(n,Yd(n)),E&&!e.getEffectiveReturnTypeNode(n)&&(e.nodeIsMissing(d)&&!bh(n)&&ld(n,oe),t&1&&e.nodeIsPresent(d)&&Fi(fc(n))),e.isInJSFile(n)){var A=e.getJSDocTypeTag(n);A&&A.typeExpression&&!dy(Ua(A.typeExpression),n)&&xn(A,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function Au(n){if(E&&!(n.flags&8388608)){var t=e.getSourceFileOfNode(n),r=on.get(t.path);r||(r=[],on.set(t.path,r)),r.push(n)}}function CT(n,t){for(var r=0,i=n;r<i.length;r++){var l=i[r];switch(l.kind){case 244:case 213:gC(l,t),Hy(l,t);break;case 288:case 248:case 222:case 250:case 229:case 230:case 231:IT(l,t);break;case 161:case 200:case 243:case 201:case 160:case 162:case 163:l.body&&IT(l,t),Hy(l,t);break;case 159:case 164:case 165:case 169:case 170:case 246:case 245:Hy(l,t);break;case 180:yC(l,t);break;default:e.Debug.assertNever(l,"Node should not have been registered for unused identifiers check")}}}function DT(n,t,r){var i=e.getNameOfDeclaration(n)||n,l=Ih(n)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;r(n,0,e.createDiagnosticForNode(i,l,t))}function Wy(n){return e.isIdentifier(n)&&e.idText(n).charCodeAt(0)===95}function gC(n,t){for(var r=0,i=n.members;r<i.length;r++){var l=i[r];switch(l.kind){case 160:case 158:case 162:case 163:if(l.kind===163&&l.symbol.flags&32768)break;var d=Zt(l);!d.isReferenced&&e.hasModifier(l,8)&&t(l,0,e.createDiagnosticForNode(l.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,wa(d)));break;case 161:for(var A=0,B=l.parameters;A<B.length;A++){var Ae=B[A];!Ae.symbol.isReferenced&&e.hasModifier(Ae,8)&&t(Ae,0,e.createDiagnosticForNode(Ae.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(Ae.symbol)))}break;case 166:case 221:break;default:e.Debug.fail()}}}function yC(n,t){var r=n.typeParameter;Ky(r)&&t(n,1,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(r.name)))}function Hy(n,t){if(e.last(Zt(n).declarations)!==n)return;for(var r=e.getEffectiveTypeParameterDeclarations(n),i=new e.NodeSet,l=0,d=r;l<d.length;l++){var A=d[l];if(!Ky(A))continue;var B=e.idText(A.name),Ae=A.parent;if(Ae.kind!==180&&Ae.typeParameters.every(Ky)){if(i.tryAdd(Ae)){var We=e.isJSDocTemplateTag(Ae)?e.rangeOfNode(Ae):e.rangeOfTypeParameters(Ae.typeParameters),Ye=r.length===1,tn=Ye?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,bn=Ye?B:void 0;t(A,1,e.createFileDiagnostic(e.getSourceFileOfNode(Ae),We.pos,We.end-We.pos,tn,bn))}}else t(A,1,e.createDiagnosticForNode(A,e.Diagnostics._0_is_declared_but_its_value_is_never_read,B))}}function Ky(n){return!(zr(n.symbol).isReferenced&262144)&&!Wy(n.name)}function Sh(n,t,r,i){var l=String(i(t)),d=n.get(l);d?d[1].push(r):n.set(l,[t,[r]])}function LT(n){return e.tryCast(e.getRootDeclaration(n),e.isParameter)}function IT(n,t){if(n.flags&8388608)return;var r=e.createMap(),i=e.createMap(),l=e.createMap();n.locals.forEach(function(d){if(d.flags&262144?!(d.flags&3&&!(d.isReferenced&3)):d.isReferenced||d.exportSymbol)return;for(var A=0,B=d.declarations;A<B.length;A++){var Ae=B[A];if(e.isAmbientModule(Ae)||(e.isVariableDeclaration(Ae)&&e.isForInOrOfStatement(Ae.parent.parent)||NT(Ae))&&Wy(Ae.name))continue;if(NT(Ae))Sh(r,_C(Ae),Ae,z);else if(e.isBindingElement(Ae)&&e.isObjectBindingPattern(Ae.parent)){var We=e.last(Ae.parent.elements);(Ae===We||!e.last(Ae.parent.elements).dotDotDotToken)&&Sh(i,Ae.parent,Ae,z)}else if(e.isVariableDeclaration(Ae))Sh(l,Ae.parent,Ae,z);else{var Ye=d.valueDeclaration&<(d.valueDeclaration),tn=d.valueDeclaration&&e.getNameOfDeclaration(d.valueDeclaration);Ye&&tn?!e.isParameterPropertyDeclaration(Ye,Ye.parent)&&!e.parameterIsThisKeyword(Ye)&&!Wy(tn)&&t(Ye,1,e.createDiagnosticForNode(tn,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(d))):DT(Ae,e.symbolName(d),t)}}}),r.forEach(function(d){var A=d[0],B=d[1],Ae=A.parent,We=(A.name?1:0)+(A.namedBindings?A.namedBindings.kind===255?1:A.namedBindings.elements.length:0);if(We===B.length)t(Ae,0,B.length===1?e.createDiagnosticForNode(Ae,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(B).name)):e.createDiagnosticForNode(Ae,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var Ye=0,tn=B;Ye<tn.length;Ye++){var bn=tn[Ye];DT(bn,e.idText(bn.name),t)}}),i.forEach(function(d){var A=d[0],B=d[1],Ae=LT(A.parent)?1:0;if(A.elements.length===B.length)B.length===1&&A.parent.kind===241&&A.parent.parent.kind===242?Sh(l,A.parent.parent,A.parent,z):t(A,Ae,B.length===1?e.createDiagnosticForNode(A,e.Diagnostics._0_is_declared_but_its_value_is_never_read,hm(e.first(B).name)):e.createDiagnosticForNode(A,e.Diagnostics.All_destructured_elements_are_unused));else for(var We=0,Ye=B;We<Ye.length;We++){var tn=Ye[We];t(tn,Ae,e.createDiagnosticForNode(tn,e.Diagnostics._0_is_declared_but_its_value_is_never_read,hm(tn.name)))}}),l.forEach(function(d){var A=d[0],B=d[1];if(A.declarations.length===B.length)t(A,0,B.length===1?e.createDiagnosticForNode(e.first(B).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,hm(e.first(B).name)):e.createDiagnosticForNode(A.parent.kind===224?A.parent:A,e.Diagnostics.All_variables_are_unused));else for(var Ae=0,We=B;Ae<We.length;Ae++){var Ye=We[Ae];t(Ye,0,e.createDiagnosticForNode(Ye,e.Diagnostics._0_is_declared_but_its_value_is_never_read,hm(Ye.name)))}})}function hm(n){switch(n.kind){case 75:return e.idText(n);case 189:case 188:return hm(e.cast(e.first(n.elements),e.isBindingElement).name);default:return e.Debug.assertNever(n)}}function NT(n){return n.kind===254||n.kind===257||n.kind===255}function _C(n){return n.kind===254?n:n.kind===255?n.parent:n.parent.parent}function xh(n){if(n.kind===222&&Lc(n),e.isFunctionOrModuleBlock(n)){var t=to;e.forEach(n.statements,Ci),to=t}else e.forEach(n.statements,Ci);n.locals&&Au(n)}function vC(n){if(w>=2||je.noEmit||!e.hasRestParameter(n)||n.flags&8388608||e.nodeIsMissing(n.body))return;e.forEach(n.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===ye.escapedName&&xn(t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function qy(n,t,r){if(!(t&&t.escapedText===r))return!1;if(n.kind===158||n.kind===157||n.kind===160||n.kind===159||n.kind===162||n.kind===163)return!1;if(n.flags&8388608)return!1;var i=e.getRootDeclaration(n);return!(i.kind===155&&e.nodeIsMissing(i.parent.body))}function bC(n){e.findAncestor(n,function(t){if(l_(t)&4){var r=n.kind!==75;return r?xn(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):xn(n,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1})}function EC(n){e.findAncestor(n,function(t){if(l_(t)&8){var r=n.kind!==75;return r?xn(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):xn(n,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1})}function Ap(n,t){if(j>=e.ModuleKind.ES2015||je.noEmit)return;if(!qy(n,t,"require")&&!qy(n,t,"exports"))return;if(e.isModuleDeclaration(n)&&e.getModuleInstanceState(n)!==1)return;var r=sc(n);r.kind===288&&e.isExternalOrCommonJsModule(r)&&xn(t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(t),e.declarationNameToString(t))}function kp(n,t){if(w>=4||je.noEmit||!qy(n,t,"Promise"))return;if(e.isModuleDeclaration(n)&&e.getModuleInstanceState(n)!==1)return;var r=sc(n);r.kind===288&&e.isExternalOrCommonJsModule(r)&&r.flags&2048&&xn(t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(t),e.declarationNameToString(t))}function TC(n){if((e.getCombinedNodeFlags(n)&3)!==0||e.isParameterDeclaration(n))return;if(n.kind===241&&!n.initializer)return;var t=Zt(n);if(t.flags&1){if(!e.isIdentifier(n.name))return e.Debug.fail();var r=lo(n,n.name.escapedText,3,void 0,void 0,!1);if(r&&r!==t&&r.flags&2&&yy(r)&3){var i=e.getAncestor(r.valueDeclaration,242),l=i.parent.kind===224&&i.parent.parent?i.parent.parent:void 0,d=l&&(l.kind===222&&e.isFunctionLike(l.parent)||l.kind===249||l.kind===248||l.kind===288);if(!d){var A=wa(r);xn(n,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,A,A)}}}}function wh(n){return n===Cn?oe:n===da?mi:n}function Ah(n){if(mm(n),e.isBindingElement(n)||Ci(n.type),!n.name)return;if(n.name.kind===153&&(Ku(n.name),n.initializer&&as(n.initializer)),n.kind===190){n.parent.kind===188&&w<99&&Ll(n,4),n.propertyName&&n.propertyName.kind===153&&Ku(n.propertyName);var t=n.parent.parent,r=Nu(t),i=n.propertyName||n.name;if(r&&!e.isBindingPattern(i)){var l=vd(i);if(nr(l)){var d=Oo(l),A=Ji(r,d);A&&(lh(A,void 0,!1),sh(t,!!t.initializer&&t.initializer.kind===101,r,A))}}}if(e.isBindingPattern(n.name)&&(n.name.kind===189&&w<2&&je.downlevelIteration&&Ll(n,512),e.forEach(n.name.elements,Ci)),n.initializer&&e.getRootDeclaration(n).kind===155&&e.nodeIsMissing(e.getContainingFunction(n).body)){xn(n,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(e.isBindingPattern(n.name)){var B=n.initializer&&n.parent.parent.kind!==230,Ae=n.name.elements.length===0;if(B||Ae){var We=rt(n);if(B){var Ye=as(n.initializer);a&&Ae?mE(Ye,n):Vu(Ye,rt(n),n,n.initializer)}Ae&&(e.isArrayBindingPattern(n.name)?qd(65,We,un,n):a&&mE(We,n))}return}var tn=Zt(n),bn=wh(Jn(tn));if(n===tn.valueDeclaration){var Mn=e.getEffectiveInitializer(n);if(Mn){var it=e.isInJSFile(n)&&e.isObjectLiteralExpression(Mn)&&(Mn.properties.length===0||e.isPrototypeAccess(n.name))&&e.hasEntries(tn.exports);!it&&n.parent.parent.kind!==230&&Vu(as(Mn),bn,n,Mn,void 0)}tn.declarations.length>1&&(e.some(tn.declarations,function(St){return St!==n&&e.isVariableLike(St)&&!PT(St,n)})&&xn(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name)))}else{var _t=wh(rt(n));bn!==_e&&_t!==_e&&!Xc(bn,_t)&&!(tn.flags&67108864)&&OT(tn.valueDeclaration,bn,n,_t),n.initializer&&Vu(as(n.initializer),_t,n,n.initializer,void 0),PT(n,tn.valueDeclaration)||xn(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}n.kind!==158&&n.kind!==157&&(pm(n),(n.kind===241||n.kind===190)&&TC(n),Ap(n,n.name),kp(n,n.name))}function OT(n,t,r,i){var l=e.getNameOfDeclaration(r),d=r.kind===158||r.kind===157?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,A=e.declarationNameToString(l),B=xn(l,d,A,qt(t),qt(i));n&&e.addRelatedInfo(B,e.createDiagnosticForNode(n,e.Diagnostics._0_was_also_declared_here,A))}function PT(n,t){if(n.kind===155&&t.kind===241||n.kind===241&&t.kind===155)return!0;if(e.hasQuestionToken(n)!==e.hasQuestionToken(t))return!1;var r=8|16|256|128|64|32;return e.getSelectedModifierFlags(n,r)===e.getSelectedModifierFlags(t,r)}function Jy(n){return FD(n),Ah(n)}function SC(n){return PD(n),Ah(n)}function xC(n){!eu(n)&&!p_(n.declarationList)&&GD(n),e.forEach(n.declarationList.declarations,Ci)}function wC(n){Lc(n),Na(n.expression)}function AC(n){Lc(n);var t=Rf(n.expression);kC(n,t),Ci(n.thenStatement),n.thenStatement.kind===223&&xn(n.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Ci(n.elseStatement)}function kC(n,t){if(!a)return;var r=e.isIdentifier(n.expression)?n.expression:e.isPropertyAccessExpression(n.expression)?n.expression.name:void 0;if(!r)return;var i=kl(t);if(i)return;var l=oi(t,0);if(l.length===0)return;var d=ud(r);if(!d)return;var A=e.forEachChild(n.thenStatement,function B(Ae){if(e.isIdentifier(Ae)){var We=ud(Ae);if(We&&We.id===d.id)return!0}return e.forEachChild(Ae,B)});A||xn(n.expression,e.Diagnostics.This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead)}function CC(n){Lc(n),Ci(n.statement),Rf(n.expression)}function DC(n){Lc(n),Rf(n.expression),Ci(n.statement)}function Rf(n,t){var r=Na(n,t);return r.flags&16384&&xn(n,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),r}function LC(n){Lc(n)||n.initializer&&n.initializer.kind===242&&p_(n.initializer),n.initializer&&(n.initializer.kind===242?e.forEach(n.initializer.declarations,Jy):Na(n.initializer)),n.condition&&Rf(n.condition),n.incrementor&&Na(n.incrementor),Ci(n.statement),n.locals&&Au(n)}function IC(n){if(wS(n),n.awaitModifier){var t=e.getFunctionFlags(e.getContainingFunction(n));(t&(4|2))===2&&w<99&&Ll(n,32768)}else je.downlevelIteration&&w<2&&Ll(n,256);if(n.initializer.kind===242)MT(n);else{var r=n.initializer,i=gm(n.expression,n.awaitModifier);if(r.kind===191||r.kind===192)Hd(r,i||_e);else{var l=Na(r);bp(r,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),i&&Vu(i,l,r,n.expression)}}Ci(n.statement),n.locals&&Au(n)}function NC(n){wS(n);var t=vy(Na(n.expression));if(n.initializer.kind===242){var r=n.initializer.declarations[0];r&&e.isBindingPattern(r.name)&&xn(r.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),MT(n)}else{var i=n.initializer,l=Na(i);i.kind===191||i.kind===192?xn(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Wi(lx(t),l)?bp(i,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):xn(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(t===Dt||!qo(t,67108864|58982400))&&xn(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,qt(t)),Ci(n.statement),n.locals&&Au(n)}function MT(n){var t=n.initializer;if(t.declarations.length>=1){var r=t.declarations[0];Jy(r)}}function gm(n,t){var r=Cf(n),i=t?15:13;return qd(i,r,un,n)}function qd(n,t,r,i){return Bi(t)?t:zy(n,t,r,i,!0)||oe}function zy(n,t,r,i,l){var d=(n&2)!==0;if(t===Dt){Qy(i,t,d);return}var A=w>=2,B=!A&&je.downlevelIteration;if(A||B||d){var Ae=kh(t,n,A?i:void 0);if(l&&Ae){var We=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;We&&Al(r,Ae.nextType,i,We)}if(Ae||A)return Ae&&Ae.yieldType}var Ye=t,tn=!1,bn=!1;if(n&4){if(Ye.flags&1048576){var Mn=t.types,it=e.filter(Mn,function(br){return!(br.flags&132)});it!==Mn&&(Ye=Wr(it,2))}else Ye.flags&132&&(Ye=Dt);if(bn=Ye!==t,bn&&(w<1&&(i&&(xn(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),tn=!0)),Ye.flags&131072))return ct}if(!Sd(Ye)){if(i&&!tn){var _t=RT(n,0,t,void 0),St=!(n&4)||bn?B?[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:_t?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]:B?[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]:_t?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0],Yt=St[0],mr=St[1];Ho(i,mr&&!!Sp(Ye),Yt,qt(Ye))}return bn?ct:void 0}var or=ms(Ye,1);return bn&&or?or.flags&132?ct:Wr([or,ct],2):or}function RT(n,t,r,i){if(Bi(r))return;var l=kh(r,n,i);return l&&l[_(t)]}function ku(n,t,r){if(n===void 0&&(n=Dt),t===void 0&&(t=Dt),r===void 0&&(r=dn),n.flags&67359327&&t.flags&(1|131072|2|16384|32768)&&r.flags&(1|131072|2|16384|32768)){var i=vu([n,t,r]),l=Ka.get(i);return l||(l={yieldType:n,returnType:t,nextType:r},Ka.set(i,l)),l}return{yieldType:n,returnType:t,nextType:r}}function FT(n){for(var t,r,i,l=0,d=n;l<d.length;l++){var A=d[l];if(A===void 0||A===ua)continue;if(A===bi)return bi;t=e.append(t,A.yieldType),r=e.append(r,A.returnType),i=e.append(i,A.nextType)}return t||r||i?ku(t&&Wr(t),r&&Wr(r),i&&Zi(i)):ua}function kh(n,t,r){if(Bi(n))return bi;if(!(n.flags&1048576)){var i=BT(n,t,r);if(i===ua){r&&Qy(r,n,!!(t&2));return}return i}var l=t&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",d=n[l];if(d)return d===ua?void 0:d;for(var A,B=0,Ae=n.types;B<Ae.length;B++){var We=Ae[B],Ye=BT(We,t,r);Ye===ua?r&&(Qy(r,n,!!(t&2)),r=void 0):A=e.append(A,Ye)}var tn=A?FT(A):ua;return n[l]=tn,tn===ua?void 0:tn}function GT(n,t){if(n===ua)return ua;if(n===bi)return bi;var r=n.yieldType,i=n.returnType,l=n.nextType;return ku(mc(r,t)||oe,mc(i,t)||oe,l)}function BT(n,t,r){if(Bi(n))return bi;if(t&2){var i=Xy(n,Mo)||UT(n,Mo);if(i)return i}if(t&1){var i=Xy(n,uo)||UT(n,uo);if(i)if(t&2){if(i!==ua)return n.iterationTypesOfAsyncIterable=GT(i,r)}else return i}if(t&2){var i=Yy(n,Mo,r);if(i!==ua)return i}if(t&1){var i=Yy(n,uo,r);if(i!==ua)return t&2?n.iterationTypesOfAsyncIterable=i?GT(i,r):ua:i}return ua}function Xy(n,t){return n[t.iterableCacheKey]}function VT(n,t){var r=Xy(n,t)||Yy(n,t,void 0);return r===ua?wo:r}function UT(n,t){var r;if(ma(n,r=t.getGlobalIterableType(!1))||ma(n,r=t.getGlobalIterableIteratorType(!1))){var i=go(n)[0],l=VT(r,t),d=l.returnType,A=l.nextType;return n[t.iterableCacheKey]=ku(i,d,A)}if(ma(n,t.getGlobalGeneratorType(!1))){var B=go(n),i=B[0],d=B[1],A=B[2];return n[t.iterableCacheKey]=ku(i,d,A)}}function Yy(n,t,r){var i=Ji(n,e.getPropertyNameForKnownSymbolName(t.iteratorSymbolName)),l=i&&!(i.flags&16777216)?Jn(i):void 0;if(Bi(l))return n[t.iterableCacheKey]=bi;var d=l?oi(l,0):void 0;if(!e.some(d))return n[t.iterableCacheKey]=ua;var A=Wr(e.map(d,Fi),2),B=jT(A,t,r)||ua;return n[t.iterableCacheKey]=B}function Qy(n,t,r){var i=r?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;Ho(n,!!Sp(t),i,qt(t))}function jT(n,t,r){if(Bi(n))return bi;var i=WT(n,t)||OC(n,t)||KT(n,t,r);return i===ua?void 0:i}function WT(n,t){return n[t.iteratorCacheKey]}function OC(n,t){var r=t.getGlobalIterableIteratorType(!1);if(ma(n,r)){var i=go(n)[0],l=WT(r,t)||KT(r,t,void 0),d=l===ua?wo:l,A=d.returnType,B=d.nextType;return n[t.iteratorCacheKey]=ku(i,A,B)}if(ma(n,t.getGlobalIteratorType(!1))||ma(n,t.getGlobalGeneratorType(!1))){var Ae=go(n),i=Ae[0],A=Ae[1],B=Ae[2];return n[t.iteratorCacheKey]=ku(i,A,B)}}function HT(n,t){var r=Zo(n,"done")||Ct;return Wi(t===0?Ct:Kn,r)}function PC(n){return HT(n,0)}function MC(n){return HT(n,1)}function RC(n){if(Bi(n))return bi;var t=n.iterationTypesOfIteratorResult;if(t)return t;if(ma(n,F1(!1))){var r=go(n)[0];return n.iterationTypesOfIteratorResult=ku(r,void 0,void 0)}if(ma(n,G1(!1))){var i=go(n)[0];return n.iterationTypesOfIteratorResult=ku(void 0,i,void 0)}var l=gs(n,PC),d=l!==Dt?Zo(l,"value"):void 0,A=gs(n,MC),B=A!==Dt?Zo(A,"value"):void 0;return!d&&!B?n.iterationTypesOfIteratorResult=ua:n.iterationTypesOfIteratorResult=ku(d,B||yt,void 0)}function Zy(n,t,r,i){var l=Ji(n,r);if(!l&&r!=="next")return;var d=l&&!(r==="next"&&l.flags&16777216)?r==="next"?Jn(l):hs(Jn(l),2097152):void 0;if(Bi(d))return r==="next"?bi:Vo;var A=d?oi(d,0):e.emptyArray;if(A.length===0){if(i){var B=r==="next"?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;xn(i,B,r)}return r==="next"?bi:void 0}for(var Ae,We,Ye=0,tn=A;Ye<tn.length;Ye++){var bn=tn[Ye];r!=="throw"&&e.some(bn.parameters)&&(Ae=e.append(Ae,Zs(bn,0))),We=e.append(We,Fi(bn))}var Mn,it;if(r!=="throw"){var _t=Ae?Wr(Ae):dn;if(r==="next")it=_t;else if(r==="return"){var St=t.resolveIterationType(_t,i)||oe;Mn=e.append(Mn,St)}}var Yt,mr=We?Wr(We,2):Dt,or=t.resolveIterationType(mr,i)||oe,br=RC(or);return br===ua?(i&&xn(i,t.mustHaveAValueDiagnostic,r),Yt=oe,Mn=e.append(Mn,oe)):(Yt=br.yieldType,Mn=e.append(Mn,br.returnType)),ku(Yt,Wr(Mn),it)}function KT(n,t,r){var i=FT([Zy(n,t,"next",r),Zy(n,t,"return",r),Zy(n,t,"throw",r)]);return n[t.iteratorCacheKey]=i}function Jd(n,t,r){if(Bi(t))return;var i=qT(t,r);return i&&i[_(n)]}function qT(n,t){if(Bi(n))return bi;var r=t?2:1,i=t?Mo:uo;return kh(n,r,void 0)||jT(n,i,void 0)}function FC(n){Lc(n)||OD(n)}function JT(n,t){var r=!!(t&1),i=!!(t&2);return r?Jd(1,n,i)||_e:i?xp(n)||_e:n}function zT(n,t){var r=JT(t,e.getFunctionFlags(n));return!!r&&So(r,16384|3)}function GC(n){if(Lc(n))return;var t=e.getContainingFunction(n);if(!t){ss(n,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);return}var r=fc(t),i=Fi(r),l=e.getFunctionFlags(t);if(a||n.expression||i.flags&131072){var d=n.expression?as(n.expression):un;if(t.kind===163)n.expression&&xn(n,e.Diagnostics.Setters_cannot_return_a_value);else if(t.kind===161)n.expression&&!Vu(d,i,n,n.expression)&&xn(n,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Yd(t)){var A=JT(i,l),B=l&2?wp(d,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):d;A&&Vu(B,A,n,n.expression)}}else t.kind!==161&&je.noImplicitReturns&&!zT(t,i)&&xn(n,e.Diagnostics.Not_all_code_paths_return_a_value)}function BC(n){Lc(n)||n.flags&32768&&ss(n,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),Na(n.expression);var t=e.getSourceFileOfNode(n);if(!Vf(t)){var r=e.getSpanOfTokenAtPosition(t,n.pos).start,i=n.statement.pos;Ju(t,r,i-r,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function VC(n){Lc(n);var t,r=!1,i=Na(n.expression),l=op(i);e.forEach(n.caseBlock.clauses,function(d){if(d.kind===276&&!r&&(t===void 0?t=d:(ur(d,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),r=!0)),E&&d.kind===275){var A=Na(d.expression),B=op(A),Ae=i;(!B||!l)&&(A=B?Bl(A):A,Ae=Bl(i)),Ry(Ae,A)||Wv(A,Ae,d.expression,void 0)}e.forEach(d.statements,Ci),je.noFallthroughCasesInSwitch&&d.fallthroughFlowNode&&tm(d.fallthroughFlowNode)&&xn(d,e.Diagnostics.Fallthrough_case_in_switch)}),n.caseBlock.locals&&Au(n.caseBlock)}function UC(n){Lc(n)||e.findAncestor(n.parent,function(t){return e.isFunctionLike(t)?"quit":t.kind===237&&t.label.escapedText===n.label.escapedText?(ur(n.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(n.label)),!0):!1}),Ci(n.statement)}function jC(n){Lc(n)||n.expression===void 0&&zD(n,e.Diagnostics.Line_break_not_permitted_here),n.expression&&Na(n.expression)}function WC(n){Lc(n),xh(n.tryBlock);var t=n.catchClause;if(t){if(t.variableDeclaration)if(t.variableDeclaration.type)ss(t.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(t.variableDeclaration.initializer)ss(t.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var r=t.block.locals;r&&e.forEachKey(t.locals,function(i){var l=r.get(i);l&&(l.flags&2)!==0&&ur(l.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,i)})}xh(t.block)}n.finallyBlock&&xh(n.finallyBlock)}function $y(n){var t=ig(n.symbol,1),r=ig(n.symbol,0),i=ms(n,0),l=ms(n,1);if(i||l){e.forEach(yu(n),function(it){var _t=Jn(it);Mn(it,_t,n,r,i,0),Mn(it,_t,n,t,l,1)});var d=n.symbol.valueDeclaration;if(e.getObjectFlags(n)&1&&e.isClassLike(d))for(var A=0,B=d.members;A<B.length;A++){var Ae=B[A];if(!e.hasModifier(Ae,32)&&Ya(Ae)){var We=Zt(Ae),Ye=Jn(We);Mn(We,Ye,n,r,i,0),Mn(We,Ye,n,t,l,1)}}}var tn;if(i&&l&&(tn=t||r,!tn&&e.getObjectFlags(n)&2)){var bn=e.forEach(Tl(n),function(it){return ms(it,0)&&ms(it,1)});tn=bn?void 0:n.symbol.declarations[0]}tn&&!Wi(l,i)&&xn(tn,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,qt(l),qt(i));function Mn(it,_t,St,Yt,mr,or){if(!mr||e.isKnownSymbol(it))return;var br=it.valueDeclaration,ta=br&&e.getNameOfDeclaration(br);if(or===1&&!(ta?py(ta):Cl(it.escapedName)))return;var Ur;if(br&&ta&&(br.kind===208||ta.kind===153||it.parent===St.symbol))Ur=br;else if(Yt)Ur=Yt;else if(e.getObjectFlags(St)&2){var ja=e.forEach(Tl(St),function(Sa){return td(Sa,it.escapedName)&&ms(Sa,or)});Ur=ja?void 0:St.symbol.declarations[0]}if(Ur&&!Wi(_t,mr)){var $i=or===0?e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2;xn(Ur,$i,wa(it),qt(_t),qt(mr))}}}function Ff(n,t){switch(n.escapedText){case"any":case"unknown":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":xn(n,t,n.escapedText)}}function HC(n){w===1&&n.escapedText==="Object"&&j!==e.ModuleKind.ES2015&&j!==e.ModuleKind.ESNext&&xn(n,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[j])}function Ch(n){if(n)for(var t=!1,r=0;r<n.length;r++){var i=n[r];if(gT(i),E){i.default?(t=!0,KC(i.default,n,r)):t&&xn(i,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var l=0;l<r;l++)n[l].symbol===i.symbol&&xn(i.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(i.name))}}}function KC(n,t,r){i(n);function i(l){if(l.kind===168){var d=Kp(l);if(d.flags&262144)for(var A=r;A<t.length;A++)d.symbol===Zt(t[A])&&xn(l,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(l,i)}}function XT(n){if(n.declarations.length===1)return;var t=na(n);if(!t.typeParametersChecked){t.typeParametersChecked=!0;var r=QC(n);if(r.length<=1)return;var i=ho(n);if(!qC(r,i.localTypeParameters))for(var l=wa(n),d=0,A=r;d<A.length;d++){var B=A[d];xn(B.name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,l)}}}function qC(n,t){for(var r=e.length(t),i=_u(t),l=0,d=n;l<d.length;l++){var A=d[l],B=e.getEffectiveTypeParameterDeclarations(A),Ae=B.length;if(Ae<i||Ae>r)return!1;for(var We=0;We<Ae;We++){var Ye=B[We],tn=t[We];if(Ye.name.escapedText!==tn.symbol.escapedName)return!1;var bn=e.getEffectiveConstraintOfTypeParameter(Ye),Mn=bn&&Ua(bn),it=ll(tn);if(Mn&&it&&!Xc(Mn,it))return!1;var _t=Ye.default&&Ua(Ye.default),St=zd(tn);if(_t&&St&&!Xc(_t,St))return!1}}return!0}function JC(n){return YT(n),_m(n),Jn(Zt(n))}function zC(n){e.forEach(n.members,Ci),Au(n)}function XC(n){!n.name&&!e.hasModifier(n,512)&&ss(n,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),YT(n),e.forEach(n.members,Ci),Au(n)}function YT(n){yD(n),mm(n),n.name&&(Ff(n.name,e.Diagnostics.Class_name_cannot_be_0),Ap(n,n.name),kp(n,n.name),n.flags&8388608||HC(n.name)),Ch(e.getEffectiveTypeParameterDeclarations(n)),pm(n);var t=Zt(n),r=ho(t),i=Jl(r),l=Jn(t);XT(t),Uk(n),n.flags&8388608||jk(n);var d=e.getEffectiveBaseTypeNode(n);if(d){e.forEach(d.typeArguments,Ci),w<2&&Ll(d.parent,1);var A=e.getClassExtendsHeritageElement(n);A&&A!==d&&Na(A.expression);var B=Tl(r);if(B.length&&E){var Ae=B[0],We=kc(r),Ye=us(We);if(YC(Ye,d),Ci(d.expression),e.some(d.typeArguments)){e.forEach(d.typeArguments,Ci);for(var tn=0,bn=ns(Ye,d.typeArguments,d);tn<bn.length;tn++){var Mn=bn[tn];if(!TT(d,Mn.typeParameters))break}}var it=Jl(Ae,r.thisType);if(Al(i,it,void 0)?Al(l,Fv(Ye),n.name||n,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):QT(n,i,it,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),We.flags&8650752&&!Rl(l)&&xn(n.name||n,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any),!(Ye.symbol&&Ye.symbol.flags&32)&&!(We.flags&8650752)){var _t=Mu(Ye,d.typeArguments,d);e.forEach(_t,function(Ur){return!Zc(Ur.declaration)&&!Xc(Fi(Ur),Ae)})&&xn(d.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}ZC(r,Ae)}}var St=e.getClassImplementsHeritageClauseElements(n);if(St)for(var Yt=0,mr=St;Yt<mr.length;Yt++){var or=mr[Yt];if(e.isEntityNameExpression(or.expression)||xn(or.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Vy(or),E){var br=Ua(or);if(br!==_e)if(pf(br)){var ta=br.symbol&&br.symbol.flags&32?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1,it=Jl(br,r.thisType);Al(i,it,void 0)||QT(n,i,it,ta)}else xn(or,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}E&&($y(r),Gy(n),e0(n))}function QT(n,t,r,i){for(var l=!1,d=function(We){if(e.hasStaticModifier(We))return"continue";var Ye=We.name&&ud(We.name)||ud(We);if(Ye){var tn=Ji(t,Ye.escapedName),bn=Ji(r,Ye.escapedName);if(tn&&bn){var Mn=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,wa(Ye),qt(t),qt(r))};Al(Jn(tn),Jn(bn),We.name||We,void 0,Mn)||(l=!0)}}},A=0,B=n.members;A<B.length;A++){var Ae=B[A];d(Ae)}l||Al(t,r,n.name||n,i)}function YC(n,t){var r=oi(n,1);if(r.length){var i=r[0].declaration;if(i&&e.hasModifier(i,8)){var l=e.getClassLikeDeclarationOfSymbol(n.symbol);a_(t,l)||xn(t,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,zn(n.symbol))}}}function Cp(n){return e.getCheckFlags(n)&1?n.target:n}function QC(n){return e.filter(n.declarations,function(t){return t.kind===244||t.kind===245})}function ZC(n,t){var r=io(t);e:for(var i=0,l=r;i<l.length;i++){var d=l[i],A=Cp(d);if(A.flags&4194304)continue;var B=Cp(td(n,A.escapedName)),Ae=e.getDeclarationModifierFlagsFromSymbol(A);if(e.Debug.assert(!!B,"derived should point to something, even if it is the base class' declaration."),B===A){var We=e.getClassLikeDeclarationOfSymbol(n.symbol);if(Ae&128&&(!We||!e.hasModifier(We,128))){for(var Ye=0,tn=Tl(n);Ye<tn.length;Ye++){var bn=tn[Ye];if(bn===t)continue;var Mn=td(bn,A.escapedName),it=Mn&&Cp(Mn);if(it&&it!==A)continue e}We.kind===213?xn(We,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,wa(d),qt(t)):xn(We,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,qt(n),wa(d),qt(t))}}else{var _t=e.getDeclarationModifierFlagsFromSymbol(B);if(Ae&8||_t&8)continue;var St=void 0,Yt=A.flags&98308,mr=B.flags&98308;if(Yt&&mr){if(!je.useDefineForClassFields||Ae&128&&!(A.valueDeclaration&&e.isPropertyDeclaration(A.valueDeclaration)&&A.valueDeclaration.initializer)||A.valueDeclaration&&A.valueDeclaration.parent.kind===245||B.valueDeclaration&&e.isBinaryExpression(B.valueDeclaration))continue;if(Yt!==4&&mr===4)St=e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_property;else if(Yt===4&&mr!==4)St=e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_accessor;else{var or=e.find(B.declarations,function(ja){return ja.kind===158&&!ja.initializer});if(or&&!(B.flags&33554432)&&!(Ae&128)&&!(_t&128)&&!B.declarations.some(function(ja){return ja.flags&8388608})){var br=jo(e.getClassLikeDeclarationOfSymbol(n.symbol)),ta=or.name;if(or.exclamationToken||!br||!e.isIdentifier(ta)||!a||!$T(ta,n,br)){var Ur=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;xn(e.getNameOfDeclaration(B.valueDeclaration)||B.valueDeclaration,Ur,wa(A),qt(t))}}continue}}else if(_y(A)){if(_y(B)||B.flags&4)continue;e.Debug.assert(!!(B.flags&98304)),St=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else A.flags&98304?St=e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:St=e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;xn(e.getNameOfDeclaration(B.valueDeclaration)||B.valueDeclaration,St,qt(t),wa(A),qt(n))}}}function $C(n,t){var r=Tl(n);if(r.length<2)return!0;var i=e.createUnderscoreEscapedMap();e.forEach(Ru(n).declaredProperties,function(Yt){i.set(Yt.escapedName,{prop:Yt,containingType:n})});for(var l=!0,d=0,A=r;d<A.length;d++)for(var B=A[d],Ae=io(Jl(B,n.thisType)),We=0,Ye=Ae;We<Ye.length;We++){var tn=Ye[We],bn=i.get(tn.escapedName);if(!bn)i.set(tn.escapedName,{prop:tn,containingType:B});else{var Mn=bn.containingType!==n;if(Mn&&!tw(bn.prop,tn)){l=!1;var it=qt(bn.containingType),_t=qt(B),St=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,wa(tn),it,_t);St=e.chainDiagnosticMessages(St,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,qt(n),it,_t),tt.add(e.createDiagnosticForNodeFromMessageChain(t,St))}}}return l}function e0(n){if(!a||!et||n.flags&8388608)return;for(var t=jo(n),r=0,i=n.members;r<i.length;r++){var l=i[r];if(e.getModifierFlags(l)&2)continue;if(ZT(l)){var d=l.name;if(e.isIdentifier(d)){var A=Jn(Zt(l));A.flags&3||kl(A)&32768||(!t||!$T(d,A,t))&&xn(l.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(d))}}}}function ZT(n){return n.kind===158&&!e.hasModifier(n,32|128)&&!n.exclamationToken&&!n.initializer}function $T(n,t,r){var i=e.createPropertyAccess(e.createThis(),n);i.expression.parent=i,i.parent=r,i.flowNode=r.returnFlowNode;var l=Ad(i,t,xu(t));return!(kl(l)&32768)}function n0(n){if(eu(n)||AD(n),Ch(n.typeParameters),E){Ff(n.name,e.Diagnostics.Interface_name_cannot_be_0),pm(n);var t=Zt(n);XT(t);var r=e.getDeclarationOfKind(t,245);if(n===r){var i=ho(t),l=Jl(i);if($C(i,n.name)){for(var d=0,A=Tl(i);d<A.length;d++){var B=A[d];Al(l,Jl(B,i.thisType),n.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}$y(i)}}vT(n)}e.forEach(e.getInterfaceBaseTypeNodes(n),function(Ae){e.isEntityNameExpression(Ae.expression)||xn(Ae.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Vy(Ae)}),e.forEach(n.members,Ci),E&&(Gy(n),Au(n))}function t0(n){eu(n),Ff(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),Ch(n.typeParameters),Ci(n.type),Au(n)}function eS(n){var t=Lr(n);if(!(t.flags&16384)){t.flags|=16384;for(var r=0,i=0,l=n.members;i<l.length;i++){var d=l[i],A=r0(d,r);Lr(d).enumMemberValue=A,r=typeof A=="number"?A+1:void 0}}}function r0(n,t){if(Zu(n.name))xn(n.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var r=e.getTextOfPropertyName(n.name);Cl(r)&&!eE(r)&&xn(n.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return a0(n);if(n.parent.flags&8388608&&!e.isEnumConst(n.parent)&&Wf(Zt(n.parent))===0)return;if(t!==void 0)return t;xn(n.name,e.Diagnostics.Enum_member_must_have_initializer);return}function a0(n){var t=Wf(Zt(n.parent)),r=e.isEnumConst(n.parent),i=n.initializer,l=t===1&&!Am(n)?void 0:d(i);if(l!==void 0)r&&typeof l=="number"&&!isFinite(l)&&xn(i,isNaN(l)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(t===1)return xn(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;r?xn(i,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values):n.parent.flags&8388608?xn(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Al(Na(i),ho(Zt(n.parent)),i,void 0)}return l;function d(B){switch(B.kind){case 206:var Ae=d(B.operand);if(typeof Ae=="number")switch(B.operator){case 39:return Ae;case 40:return-Ae;case 54:return~Ae}break;case 208:var We=d(B.left),Ye=d(B.right);if(typeof We=="number"&&typeof Ye=="number")switch(B.operatorToken.kind){case 51:return We|Ye;case 50:return We&Ye;case 48:return We>>Ye;case 49:return We>>>Ye;case 47:return We<<Ye;case 52:return We^Ye;case 41:return We*Ye;case 43:return We/Ye;case 39:return We+Ye;case 40:return We-Ye;case 44:return We%Ye;case 42:return Math.pow(We,Ye)}else if(typeof We=="string"&&typeof Ye=="string"&&B.operatorToken.kind===39)return We+Ye;break;case 10:case 14:return B.text;case 8:return m_(B),+B.text;case 199:return d(B.expression);case 75:var tn=B;return eE(tn.escapedText)?+tn.escapedText:e.nodeIsMissing(B)?0:A(B,Zt(n.parent),tn.escapedText);case 194:case 193:var bn=B;if(e_(bn)){var Mn=Dl(bn.expression);if(Mn.symbol&&Mn.symbol.flags&384){var it=void 0;return bn.kind===193?it=bn.name.escapedText:it=e.escapeLeadingUnderscores(e.cast(bn.argumentExpression,e.isLiteralExpression).text),A(B,Mn.symbol,it)}}break}return}function A(B,Ae,We){var Ye=Ae.exports.get(We);if(Ye){var tn=Ye.valueDeclaration;if(tn!==n)return Qo(tn,n)?Ph(tn):(xn(B,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}return}}function e_(n){return n.kind===75||n.kind===193&&e_(n.expression)||n.kind===194&&e_(n.expression)&&e.isStringLiteralLike(n.argumentExpression)}function i0(n){if(!E)return;eu(n),Ff(n.name,e.Diagnostics.Enum_name_cannot_be_0),Ap(n,n.name),kp(n,n.name),pm(n),eS(n);var t=Zt(n),r=e.getDeclarationOfKind(t,n.kind);if(n===r){if(t.declarations.length>1){var i=e.isEnumConst(n);e.forEach(t.declarations,function(d){e.isEnumDeclaration(d)&&e.isEnumConst(d)!==i&&xn(e.getNameOfDeclaration(d),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var l=!1;e.forEach(t.declarations,function(d){if(d.kind!==247)return!1;var A=d;if(!A.members.length)return!1;var B=A.members[0];B.initializer||(l?xn(B.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):l=!0)})}}function o0(n){for(var t=n.declarations,r=0,i=t;r<i.length;r++){var l=i[r];if((l.kind===244||l.kind===243&&e.nodeIsPresent(l.body))&&!(l.flags&8388608))return l}return}function s0(n,t){var r=e.getEnclosingBlockScopeContainer(n),i=e.getEnclosingBlockScopeContainer(t);return Eo(r)?Eo(i):Eo(i)?!1:r===i}function l0(n){if(E){var t=e.isGlobalScopeAugmentation(n),r=n.flags&8388608;t&&!r&&xn(n.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var i=e.isAmbientModule(n),l=i?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module;if(ym(n,l))return;eu(n)||!r&&n.name.kind===10&&ur(n.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(n.name)&&(Ap(n,n.name),kp(n,n.name)),pm(n);var d=Zt(n);if(d.flags&512&&!r&&d.declarations.length>1&&G(n,!!je.preserveConstEnums||!!je.isolatedModules)){var A=o0(d);A&&(e.getSourceFileOfNode(n)!==e.getSourceFileOfNode(A)?xn(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<A.pos&&xn(n.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var B=e.getDeclarationOfKind(d,244);B&&s0(n,B)&&(Lr(n).flags|=32768)}if(i)if(e.isExternalModuleAugmentation(n)){var Ae=t||Zt(n).flags&33554432;if(Ae&&n.body)for(var We=0,Ye=n.body.statements;We<Ye.length;We++){var tn=Ye[We];n_(tn,t)}}else Eo(n.parent)?t?xn(n.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(n.name))&&xn(n.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):t?xn(n.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):xn(n.name,e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}n.body&&(Ci(n.body),e.isGlobalScopeAugmentation(n)||Au(n))}function n_(n,t){switch(n.kind){case 224:for(var r=0,i=n.declarationList.declarations;r<i.length;r++){var l=i[r];n_(l,t)}break;case 258:case 259:ss(n,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 252:case 253:ss(n,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 190:case 241:var d=n.name;if(e.isBindingPattern(d)){for(var A=0,B=d.elements;A<B.length;A++){var Ae=B[A];n_(Ae,t)}break}case 244:case 247:case 243:case 245:case 248:case 246:if(t)return;var We=Zt(n);if(We){var Ye=!(We.flags&33554432);Ye||(Ye=!!We.parent&&e.isExternalModuleAugmentation(We.parent.declarations[0]))}break}}function c0(n){switch(n.kind){case 75:return n;case 152:do n=n.left;while(n.kind!==75);return n;case 193:do{if(e.isModuleExportsAccessExpression(n.expression))return n.name;n=n.expression}while(n.kind!==75);return n}}function t_(n){var t=e.getExternalModuleName(n);if(!t||e.nodeIsMissing(t))return!1;if(!e.isStringLiteral(t))return xn(t,e.Diagnostics.String_literal_expected),!1;var r=n.parent.kind===249&&e.isAmbientModule(n.parent.parent);return n.parent.kind!==288&&!r?(xn(t,n.kind===259?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1):r&&e.isExternalModuleNameRelative(t.text)&&!Pa(n)?(xn(n,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1):!0}function nS(n){var t=Zt(n),r=V(t),i=t.flags&67108864;if(!i&&r!==pn){t=zr(t.exportSymbol||t);var l=(t.flags&(111551|1048576)?111551:0)|(t.flags&788968?788968:0)|(t.flags&1920?1920:0);if(r.flags&l){var d=n.kind===261?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;xn(n,d,wa(t))}je.isolatedModules&&n.kind===261&&!(r.flags&111551)&&!(n.flags&8388608)&&xn(n,e.Diagnostics.Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided)}}function Dh(n){Ap(n,n.name),kp(n,n.name),nS(n)}function u0(n){if(ym(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module))return;if(!eu(n)&&e.hasModifiers(n)&&ss(n,e.Diagnostics.An_import_declaration_cannot_have_modifiers),t_(n)){var t=n.importClause;if(t&&(t.name&&Dh(t),t.namedBindings))if(t.namedBindings.kind===255)Dh(t.namedBindings);else{var r=$r(n,n.moduleSpecifier);r&&e.forEach(t.namedBindings.elements,Dh)}}}function d0(n){if(ym(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module))return;if(eu(n),e.isInternalModuleImportEqualsDeclaration(n)||t_(n))if(Dh(n),e.hasModifier(n,1)&&Me(n),n.moduleReference.kind!==263){var t=V(Zt(n));if(t!==pn){if(t.flags&111551){var r=e.getFirstIdentifier(n.moduleReference);kt(r,111551|1920).flags&1920||xn(r,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(r))}t.flags&788968&&Ff(n.name,e.Diagnostics.Import_name_cannot_be_0)}}else j>=e.ModuleKind.ES2015&&!(n.flags&8388608)&&ur(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 f0(n){if(ym(n,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module))return;if(!eu(n)&&e.hasModifiers(n)&&ss(n,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!n.moduleSpecifier||t_(n))if(n.exportClause){e.forEach(n.exportClause.elements,p0);var t=n.parent.kind===249&&e.isAmbientModule(n.parent.parent),r=!t&&n.parent.kind===249&&!n.moduleSpecifier&&n.flags&8388608;n.parent.kind!==288&&!t&&!r&&xn(n,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=$r(n,n.moduleSpecifier);i&&ia(i)&&xn(n.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,wa(i)),j!==e.ModuleKind.System&&j!==e.ModuleKind.ES2015&&j!==e.ModuleKind.ESNext&&Ll(n,65536)}}function ym(n,t){var r=n.parent.kind===288||n.parent.kind===249||n.parent.kind===248;return r||ss(n,t),!r}function p0(n){if(nS(n),e.getEmitDeclarations(je)&&Yu(n.propertyName||n.name,!0),!n.parent.parent.moduleSpecifier){var t=n.propertyName||n.name,r=lo(t,t.escapedText,111551|788968|1920|2097152,void 0,void 0,!0);if(r&&(r===Qe||r===ln||Eo(sc(r.declarations[0]))))xn(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(t));else{Me(n);var i=r&&(r.flags&2097152?V(r):r);(!i||i===pn||i.flags&111551)&&as(n.propertyName||n.name)}}}function m0(n){if(ym(n,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module))return;var t=n.parent.kind===288?n.parent:n.parent.parent;if(t.kind===248&&!e.isAmbientModule(t)){n.isExportEquals?xn(n,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):xn(n,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}if(!eu(n)&&e.hasModifiers(n)&&ss(n,e.Diagnostics.An_export_assignment_cannot_have_modifiers),n.expression.kind===75){var r=n.expression,i=kt(r,67108863,!0,!0,n);if(i){Zm(i,r);var l=i.flags&2097152?V(i):i;(l===pn||l.flags&111551)&&as(n.expression)}e.getEmitDeclarations(je)&&Yu(n.expression,!0)}else as(n.expression);tS(t),n.flags&8388608&&!e.isEntityNameExpression(n.expression)&&ur(n.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&!(n.flags&8388608)&&(j>=e.ModuleKind.ES2015?ur(n,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):j===e.ModuleKind.System&&ur(n,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}function h0(n){return e.forEachEntry(n.exports,function(t,r){return r!=="export="})}function tS(n){var t=Zt(n),r=na(t);if(!r.exportsChecked){var i=t.exports.get("export=");if(i&&h0(t)){var l=bs(i)||i.valueDeclaration;!Pa(l)&&!e.isInJSFile(l)&&xn(l,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var d=Qi(t);d&&d.forEach(function(A,B){var Ae=A.declarations,We=A.flags;if(B==="__export")return;if(We&(1920|64|384))return;var Ye=e.countWhere(Ae,X);if(We&524288&&Ye<=2)return;if(Ye>1)for(var tn=0,bn=Ae;tn<bn.length;tn++){var Mn=bn[tn];be(Mn)&&tt.add(e.createDiagnosticForNode(Mn,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(B)))}}),r.exportsChecked=!0}}function Ci(n){if(n){var t=we;we=n,De=0,g0(n),we=t}}function g0(n){e.isInJSFile(n)&&e.forEach(n.jsDoc,function(r){var i=r.tags;return e.forEach(i,Ci)});var t=n.kind;if(T)switch(t){case 248:case 244:case 245:case 243:T.throwIfCancellationRequested()}t>=224&&t<=240&&n.flowNode&&!tm(n.flowNode)&&Fo(je.allowUnreachableCode===!1,n,e.Diagnostics.Unreachable_code_detected);switch(t){case 154:return gT(n);case 155:return yT(n);case 158:case 157:return Wk(n);case 169:case 170:case 164:case 165:case 166:return Tp(n);case 160:case 159:return Hk(n);case 161:return Kk(n);case 162:case 163:return bT(n);case 168:return Vy(n);case 167:return Bk(n);case 171:return zk(n);case 172:return Xk(n);case 173:return Yk(n);case 174:return Qk(n);case 177:case 178:return Zk(n);case 181:case 175:case 176:return Ci(n.type);case 182:return nC(n);case 183:return tC(n);case 179:return rC(n);case 180:return aC(n);case 187:return iC(n);case 305:return hC(n);case 315:case 308:case 309:return uC(n);case 314:return dC(n);case 313:return fC(n);case 310:return pC(n);case 298:mC(n);case 296:case 295:case 293:case 294:case 302:rS(n),e.forEachChild(n,Ci);return;case 299:y0(n);return;case 292:return Ci(n.type);case 184:return $k(n);case 185:return eC(n);case 243:return cC(n);case 222:case 249:return xh(n);case 224:return xC(n);case 225:return wC(n);case 226:return AC(n);case 227:return CC(n);case 228:return DC(n);case 229:return LC(n);case 230:return NC(n);case 231:return IC(n);case 232:case 233:return FC(n);case 234:return GC(n);case 235:return BC(n);case 236:return VC(n);case 237:return UC(n);case 238:return jC(n);case 239:return WC(n);case 241:return Jy(n);case 190:return SC(n);case 244:return XC(n);case 245:return n0(n);case 246:return t0(n);case 247:return i0(n);case 248:return l0(n);case 253:return u0(n);case 252:return d0(n);case 259:return f0(n);case 258:return m0(n);case 223:case 240:Lc(n);return;case 262:return qk(n)}}function rS(n){e.isInJSFile(n)||ur(n,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function y0(n){rS(n),Ci(n.type);var t=n.parent;if(e.isParameter(t)&&e.isJSDocFunctionType(t.parent)){e.last(t.parent.parameters)!==t&&xn(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);return}e.isJSDocTypeExpression(t)||xn(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var r=n.parent.parent;if(!e.isJSDocParameterTag(r)){xn(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}var i=e.getParameterSymbolFromJSDoc(r);if(!i)return;var l=e.getHostSignatureFromJSDoc(r);(!l||e.last(l.parameters).symbol!==i)&&xn(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}function _0(n){var t=Ua(n.type),r=n.parent,i=n.parent.parent;if(e.isJSDocTypeExpression(n.parent)&&e.isJSDocParameterTag(i)){var l=e.getHostSignatureFromJSDoc(i);if(l){var d=e.lastOrUndefined(l.parameters),A=e.getParameterSymbolFromJSDoc(i);if(!d||A&&d.symbol===A&&e.isRestParameter(d))return Is(t)}}return e.isParameter(r)&&e.isJSDocFunctionType(r.parent)?Is(t):ol(t)}function _m(n){var t=e.getSourceFileOfNode(n),r=Lr(t);if(!(r.flags&1)){r.deferredNodes=r.deferredNodes||e.createMap();var i=""+z(n);r.deferredNodes.set(i,n)}}function v0(n){var t=Lr(n);t.deferredNodes&&t.deferredNodes.forEach(b0)}function b0(n){var t=we;we=n,De=0;switch(n.kind){case 200:case 201:case 160:case 159:uk(n);break;case 162:case 163:bT(n);break;case 213:zC(n);break;case 265:XA(n);break;case 264:QA(n);break}we=t}function r_(n){e.performance.mark("beforeCheck"),E0(n),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck")}function Lh(n){switch(n){case 0:return!!je.noUnusedLocals;case 1:return!!je.noUnusedParameters;default:return e.Debug.assertNever(n)}}function aS(n){return on.get(n.path)||e.emptyArray}function E0(n){var t=Lr(n);if(!(t.flags&1)){if(e.skipTypeChecking(n,je,y))return;KD(n),e.clear(Fn),e.clear(Yn),e.forEach(n.statements,Ci),Ci(n.endOfFileToken),v0(n),e.isExternalOrCommonJsModule(n)&&Au(n),!n.isDeclarationFile&&(je.noUnusedLocals||je.noUnusedParameters)&&CT(aS(n),function(r,i,l){!e.containsParseError(r)&&Lh(i)&&tt.add(l)}),e.isExternalOrCommonJsModule(n)&&tS(n),Fn.length&&(e.forEach(Fn,bC),e.clear(Fn)),Yn.length&&(e.forEach(Yn,EC),e.clear(Yn)),t.flags|=1}}function iS(n,t){try{return T=t,T0(n)}finally{T=void 0}}function T0(n){if(oS(),n){var t=tt.getGlobalDiagnostics(),r=t.length;r_(n);var i=tt.getDiagnostics(n.fileName),l=tt.getGlobalDiagnostics();if(l!==t){var d=e.relativeComplement(t,l,e.compareDiagnostics);return e.concatenate(d,i)}else if(r===0&&l.length>0)return e.concatenate(l,i);return i}return e.forEach(y.getSourceFiles(),r_),tt.getDiagnostics()}function S0(){return oS(),tt.getGlobalDiagnostics()}function oS(){if(!E)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function x0(n,t){if(n.flags&16777216)return[];var r=e.createSymbolTable(),i=!1;return l(),r.delete("this"),R_(r);function l(){for(;n;){n.locals&&!Eo(n)&&A(n.locals,t);switch(n.kind){case 288:if(!e.isExternalOrCommonJsModule(n))break;case 248:A(Zt(n).exports,t&2623475);break;case 247:A(Zt(n).exports,t&8);break;case 213:var B=n.name;B&&d(n.symbol,t);case 244:case 245:i||A(gu(Zt(n)),t&788968);break;case 200:var Ae=n.name;Ae&&d(n.symbol,t);break}e.introducesArgumentsExoticObject(n)&&d(ye,t),i=e.hasModifier(n,32),n=n.parent}A(cn,t)}function d(B,Ae){if(e.getCombinedLocalAndExportSymbolFlags(B)&Ae){var We=B.escapedName;r.has(We)||r.set(We,B)}}function A(B,Ae){Ae&&B.forEach(function(We){d(We,Ae)})}}function w0(n){return n.kind===75&&Ih(n.parent)&&n.parent.name===n}function Ih(n){switch(n.kind){case 154:case 244:case 245:case 246:case 247:return!0;default:return!1}}function sS(n){for(;n.parent.kind===152;)n=n.parent;return n.parent.kind===168}function A0(n){for(;n.parent.kind===193;)n=n.parent;return n.parent.kind===215}function lS(n,t){for(var r;!(n=e.getContainingClass(n),!n);)if(r=t(n))break;return r}function k0(n){return!!e.findAncestor(n,function(t){return e.isConstructorDeclaration(t)&&e.nodeIsPresent(t.body)||e.isPropertyDeclaration(t)?!0:e.isClassLike(t)||e.isFunctionLikeDeclaration(t)?"quit":!1})}function a_(n,t){return!!lS(n,function(r){return r===t})}function C0(n){for(;n.parent.kind===152;)n=n.parent;return n.parent.kind===252?n.parent.moduleReference===n?n.parent:void 0:n.parent.kind===258&&n.parent.expression===n?n.parent:void 0}function Nh(n){return C0(n)!==void 0}function D0(n){var t=e.getAssignmentDeclarationKind(n.parent.parent);switch(t){case 1:case 3:return Zt(n.parent);case 4:case 2:case 5:return Zt(n.parent.parent)}}function L0(n){for(var t=n.parent;e.isQualifiedName(t);)n=t,t=t.parent;return t&&t.kind===187&&t.qualifier===n?t:void 0}function cS(n){if(e.isDeclarationName(n))return Zt(n.parent);if(e.isInJSFile(n)&&n.parent.kind===193&&n.parent===n.parent.parent.left){var t=D0(n);if(t)return t}if(n.parent.kind===258&&e.isEntityNameExpression(n)){var r=kt(n,111551|788968|1920|2097152,!0);if(r&&r!==pn)return r}else if(!e.isPropertyAccessExpression(n)&&Nh(n)){var i=e.getAncestor(n,252);return e.Debug.assert(i!==void 0),mn(n,!0)}if(!e.isPropertyAccessExpression(n)){var l=L0(n);if(l){Ua(l);var d=Lr(n).resolvedSymbol;return d===pn?void 0:d}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(n);)n=n.parent;if(A0(n)){var A=0;n.parent.kind===215?(A=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)&&(A|=111551)):A=1920,A|=2097152;var B=e.isEntityNameExpression(n)?kt(n,A):void 0;if(B)return B}if(n.parent.kind===310)return e.getParameterSymbolFromJSDoc(n.parent);if(n.parent.kind===154&&n.parent.parent.kind===314){e.Debug.assert(!e.isInJSFile(n));var Ae=e.getTypeParameterFromJsDoc(n.parent);return Ae&&Ae.symbol}if(e.isExpressionNode(n)){if(e.nodeIsMissing(n))return;if(n.kind===75){if(e.isJSXTagName(n)&&mp(n)){var We=my(n.parent);return We===pn?void 0:We}return kt(n,111551,!1,!0)}else if(n.kind===193||n.kind===152){var Ye=Lr(n);return Ye.resolvedSymbol||(n.kind===193?hE(n):gE(n)),Ye.resolvedSymbol}}else if(sS(n)){var A=n.parent.kind===168?788968:1920;return kt(n,A,!1,!0)}return n.parent.kind===167?kt(n,1):void 0}function ud(n){if(n.kind===288)return e.isExternalModule(n)?zr(n.symbol):void 0;var t=n.parent,r=t.parent;if(n.flags&16777216)return;if(R(n)){var i=Zt(t);return e.isImportOrExportSpecifier(n.parent)&&n.parent.propertyName===n?tE(i):i}else if(e.isLiteralComputedPropertyDeclarationName(n))return Zt(t.parent);if(n.kind===75){if(Nh(n))return cS(n);if(t.kind===190&&r.kind===188&&n===t.propertyName){var l=Gf(r),d=Ji(l,n.escapedText);if(d)return d}}switch(n.kind){case 75:case 193:case 152:return cS(n);case 103:var A=e.getThisContainer(n,!1);if(e.isFunctionLike(A)){var B=fc(A);if(B.thisParameter)return B.thisParameter}if(e.isInExpressionContext(n))return Na(n).symbol;case 182:return Fm(n).symbol;case 101:return Na(n).symbol;case 128:var Ae=n.parent;return Ae&&Ae.kind===161?Ae.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n||(n.parent.kind===253||n.parent.kind===259)&&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 $r(n,n);if(e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&t.arguments[1]===n)return Zt(t);case 8:var We=e.isElementAccessExpression(t)?t.argumentExpression===n?Dl(t.expression):void 0:e.isLiteralTypeNode(t)&&e.isIndexedAccessTypeNode(r)?Ua(r.objectType):void 0;return We&&Ji(We,e.escapeLeadingUnderscores(n.text));case 83:case 93:case 38:case 79:return Zt(n.parent);case 187:return e.isLiteralImportTypeNode(n)?ud(n.argument.literal):void 0;case 88:return e.isExportAssignment(n.parent)?e.Debug.assertDefined(n.parent.symbol):void 0;default:return}}function I0(n){return n&&n.kind===280?kt(n.name,111551|2097152):void 0}function N0(n){return n.parent.parent.moduleSpecifier?Gc(n.parent.parent,n):kt(n.propertyName||n.name,111551|788968|1920|2097152)}function Gf(n){if(n.flags&16777216)return _e;var t=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(n),r=t&&sl(Zt(t.class));if(e.isPartOfTypeNode(n)){var i=Ua(n);return r?Jl(i,r.thisType):i}if(e.isExpressionNode(n))return uS(n);if(r&&!t.isImplements){var l=e.firstOrUndefined(Tl(r));return l?Jl(l,r.thisType):_e}if(Ih(n)){var d=Zt(n);return ho(d)}if(w0(n)){var d=ud(n);return d?ho(d):_e}if(e.isDeclaration(n)){var d=Zt(n);return Jn(d)}if(R(n)){var d=ud(n);return d?Jn(d):_e}if(e.isBindingPattern(n))return nd(n.parent,!0)||_e;if(Nh(n)){var d=ud(n);if(d){var A=ho(d);return A!==_e?A:Jn(d)}}return _e}function Oh(n){if(e.Debug.assert(n.kind===192||n.kind===191),n.parent.kind===231){var t=gm(n.parent.expression,n.parent.awaitModifier);return Hd(n,t||_e)}if(n.parent.kind===208){var t=Dl(n.parent.right);return Hd(n,t||_e)}if(n.parent.kind===279){var r=e.cast(n.parent.parent,e.isObjectLiteralExpression),i=Oh(r)||_e,l=e.indexOfNode(r.properties,n.parent);return iT(r,i,l)}var d=e.cast(n.parent,e.isArrayLiteralExpression),A=Oh(d)||_e,B=qd(65,A,un,n.parent)||_e;return oT(d,A,d.elements.indexOf(n),B)}function O0(n){var t=Oh(e.cast(n.parent.parent,e.isAssignmentPattern));return t&&Ji(t,n.escapedText)}function uS(n){return e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),js(Dl(n))}function P0(n){var t=Zt(n.parent);return e.hasModifier(n,32)?Jn(t):ho(t)}function M0(n){var t=n.name;switch(t.kind){case 75:return rs(e.idText(t));case 8:case 10:return rs(t.text);case 153:var r=Ku(t);return qo(r,12288)?r:ct;default:return e.Debug.fail("Unsupported property name.")}}function i_(n){n=us(n);var t=e.createSymbolTable(io(n)),r=oi(n,0).length?xt:oi(n,1).length?Kt:void 0;return r&&e.forEach(io(r),function(i){t.has(i.escapedName)||t.set(i.escapedName,i)}),Es(t)}function o_(n){return e.typeHasCallOrConstructSignatures(n,c)}function dS(n){var t=R0(n);return t?e.flatMap(t,dS):[n]}function R0(n){if(e.getCheckFlags(n)&6)return e.mapDefined(na(n).containingType.types,function(d){return Ji(d,n.escapedName)});if(n.flags&33554432){var t=n,r=t.leftSpread,i=t.rightSpread,l=t.syntheticOrigin;return r?[r,i]:l?[l]:e.singleElementArray(F0(n))}return}function F0(n){for(var t,r=n;r=na(r).target;)t=r;return t}function G0(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=t.parent.kind===193&&t.parent.name===t;return!r&&vm(t)===ye}}return!1}function B0(n){var t=$r(n.parent,n);if(!t||e.isShorthandAmbientModuleSymbol(t))return!0;var r=ia(t);t=$a(t);var i=na(t);return i.exportsSomeValue===void 0&&(i.exportsSomeValue=r?!!(t.flags&111551):e.forEachEntry(Qi(t),l)),i.exportsSomeValue;function l(d){return d=b(d),d&&!!(d.flags&111551)}}function V0(n){return e.isModuleOrEnumDeclaration(n.parent)&&n===n.parent.name}function U0(n,t){var r=e.getParseTreeNode(n,e.isIdentifier);if(r){var i=vm(r,V0(r));if(i){if(i.flags&1048576){var l=zr(i.exportSymbol);if(!t&&l.flags&944&&!(l.flags&3))return;i=l}var d=Ps(i);if(d){if(d.flags&512&&d.valueDeclaration.kind===288){var A=d.valueDeclaration,B=e.getSourceFileOfNode(r),Ae=A!==B;return Ae?void 0:A}return e.findAncestor(r.parent,function(We){return e.isModuleOrEnumDeclaration(We)&&Zt(We)===d})}}}}function j0(n){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=vm(t);if(s(r,111551))return bs(r)}return}function W0(n){return e.isBindingElement(n.valueDeclaration)&&e.walkUpBindingElementsAndPatterns(n.valueDeclaration).parent.kind===278}function fS(n){if(n.flags&418&&!e.isSourceFile(n.valueDeclaration)){var t=na(n);if(t.isDeclarationWithCollidingName===void 0){var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration);if(e.isStatementWithLocals(r)||W0(n)){var i=Lr(n.valueDeclaration);if(lo(r.parent,n.escapedName,111551,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(i.flags&262144){var l=i.flags&524288,d=e.isIterationStatement(r,!1),A=r.kind===222&&e.isIterationStatement(r.parent,!1);t.isDeclarationWithCollidingName=!e.isBlockScopedContainerTopLevel(r)&&(!l||!d&&!A)}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function H0(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=vm(t);if(r&&fS(r))return r.valueDeclaration}}return}function K0(n){var t=e.getParseTreeNode(n,e.isDeclaration);if(t){var r=Zt(t);if(r)return fS(r)}return!1}function pS(n){switch(n.kind){case 252:case 254:case 255:case 257:case 261:return s_(Zt(n)||pn);case 259:var t=n.exportClause;return!!t&&e.some(t.elements,pS);case 258:return n.expression&&n.expression.kind===75?s_(Zt(n)||pn):!0}return!1}function q0(n){var t=e.getParseTreeNode(n,e.isImportEqualsDeclaration);if(t===void 0||t.parent.kind!==288||!e.isInternalModuleImportEqualsDeclaration(t))return!1;var r=s_(Zt(t));return r&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function s_(n){var t=V(n);return t===pn?!0:!!(t.flags&111551)&&(je.preserveConstEnums||!Dp(t))}function Dp(n){return My(n)||!!n.constEnumOnlyModule}function mS(n,t){if(e.isAliasSymbolDeclaration(n)){var r=Zt(n);if(r&&na(r).referenced)return!0;var i=na(r).target;if(i&&e.getModifierFlags(n)&1&&i.flags&111551&&(je.preserveConstEnums||!Dp(i)))return!0}return t?!!e.forEachChild(n,function(l){return mS(l,t)}):!1}function hS(n){if(e.nodeIsPresent(n.body)){if(e.isGetAccessor(n)||e.isSetAccessor(n))return!1;var t=Zt(n),r=Xd(t);return r.length>1||r.length===1&&r[0].declaration!==n}return!1}function gS(n){return!!a&&!Gp(n)&&!e.isJSDocParameterTag(n)&&!!n.initializer&&!e.hasModifier(n,92)}function J0(n){return a&&Gp(n)&&!n.initializer&&e.hasModifier(n,92)}function z0(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return!1;var r=Zt(t);return!r||!(r.flags&16)?!1:!!e.forEachEntry(ti(r),function(i){return i.flags&111551&&i.valueDeclaration&&e.isPropertyAccessExpression(i.valueDeclaration)})}function X0(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return e.emptyArray;var r=Zt(t);return r&&io(Jn(r))||e.emptyArray}function l_(n){return Lr(n).flags||0}function Ph(n){return eS(n.parent),Lr(n).enumMemberValue}function yS(n){switch(n.kind){case 282:case 193:case 194:return!0}return!1}function c_(n){if(n.kind===282)return Ph(n);var t=Lr(n).resolvedSymbol;if(t&&t.flags&8){var r=t.valueDeclaration;if(e.isEnumConst(r.parent))return Ph(r)}return}function _S(n){return!!(n.flags&524288)&&oi(n,0).length>0}function Y0(n,t){var r=e.getParseTreeNode(n,e.isEntityName);if(!r)return e.TypeReferenceSerializationKind.Unknown;if(t&&(t=e.getParseTreeNode(t),!t))return e.TypeReferenceSerializationKind.Unknown;var i=kt(r,111551,!0,!1,t),l=kt(r,788968,!0,!1,t);if(i&&i===l){var d=ev(!1);if(d&&i===d)return e.TypeReferenceSerializationKind.Promise;var A=Jn(i);if(A&&wc(A))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!l)return e.TypeReferenceSerializationKind.Unknown;var B=ho(l);return B===_e?e.TypeReferenceSerializationKind.Unknown:B.flags&3?e.TypeReferenceSerializationKind.ObjectType:qo(B,16384|98304|131072)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:qo(B,528)?e.TypeReferenceSerializationKind.BooleanType:qo(B,296)?e.TypeReferenceSerializationKind.NumberLikeType:qo(B,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:qo(B,132)?e.TypeReferenceSerializationKind.StringLikeType:Do(B)?e.TypeReferenceSerializationKind.ArrayLikeType:qo(B,12288)?e.TypeReferenceSerializationKind.ESSymbolType:_S(B)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Ms(B)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function Q0(n,t,r,i,l){var d=e.getParseTreeNode(n,e.isVariableLikeOrAccessor);if(!d)return e.createToken(124);var A=Zt(d),B=A&&!(A.flags&(2048|131072))?xd(Jn(A)):_e;return B.flags&8192&&B.symbol===A&&(r|=1048576),l&&(B=xu(B)),Fe.typeToTypeNode(B,t,r|1024,i)}function Z0(n,t,r,i){var l=e.getParseTreeNode(n,e.isFunctionLike);if(!l)return e.createToken(124);var d=fc(l);return Fe.typeToTypeNode(Fi(d),t,r|1024,i)}function $0(n,t,r,i){var l=e.getParseTreeNode(n,e.isExpression);if(!l)return e.createToken(124);var d=Ns(uS(l));return Fe.typeToTypeNode(d,t,r|1024,i)}function eD(n){return cn.has(e.escapeLeadingUnderscores(n))}function vm(n,t){var r=Lr(n).resolvedSymbol;if(r)return r;var i=n;if(t){var l=n.parent;e.isDeclaration(l)&&n===l.name&&(i=sc(l))}return lo(i,n.escapedText,111551|1048576|2097152,void 0,void 0,!0)}function nD(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=vm(t);if(r)return nc(r).valueDeclaration}}return}function tD(n){return e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n)?Bu(Jn(Zt(n))):!1}function rD(n,t,r){var i=n.flags&1024?Fe.symbolToExpression(n.symbol,111551,t,void 0,r):n===Kn?e.createTrue():n===Ct&&e.createFalse();return i||e.createLiteral(n.value)}function aD(n,t){var r=Jn(Zt(n));return rD(r,n,t)}function iD(){var n=y.getResolvedTypeReferenceDirectives(),t;return n&&(t=e.createMap(),n.forEach(function(B,Ae){if(!B||!B.resolvedFileName)return;var We=y.getSourceFile(B.resolvedFileName);A(We,Ae)})),{getReferencedExportContainer:U0,getReferencedImportDeclaration:j0,getReferencedDeclarationWithCollidingName:H0,isDeclarationWithCollidingName:K0,isValueAliasDeclaration:function(B){return B=e.getParseTreeNode(B),B?pS(B):!0},hasGlobalName:eD,isReferencedAliasDeclaration:function(B,Ae){return B=e.getParseTreeNode(B),B?mS(B,Ae):!0},getNodeCheckFlags:function(B){return B=e.getParseTreeNode(B),B?l_(B):0},isTopLevelValueImportEqualsWithEntityName:q0,isDeclarationVisible:es,isImplementationOfOverload:hS,isRequiredInitializedParameter:gS,isOptionalUninitializedParameterProperty:J0,isExpandoFunctionDeclaration:z0,getPropertiesOfContainerFunction:X0,createTypeOfDeclaration:Q0,createReturnTypeOfSignatureDeclaration:Z0,createTypeOfExpression:$0,createLiteralConstValue:aD,isSymbolAccessible:Sc,isEntityNameVisible:Ol,getConstantValue:function(B){var Ae=e.getParseTreeNode(B,yS);return Ae?c_(Ae):void 0},collectLinkedAliases:Yu,getReferencedValueDeclaration:nD,getTypeReferenceSerializationKind:Y0,isOptionalParameter:Gp,moduleExportsSomeValue:B0,isArgumentsLocalBinding:G0,getExternalModuleFileFromDeclaration:vS,getTypeReferenceDirectivesForEntityName:i,getTypeReferenceDirectivesForSymbol:l,isLiteralConstDeclaration:tD,isLateBound:function(B){var Ae=e.getParseTreeNode(B,e.isDeclaration),We=Ae&&Zt(Ae);return!!(We&&e.getCheckFlags(We)&4096)},getJsxFactoryEntity:function(B){return B?(di(B),e.getSourceFileOfNode(B).localJsxFactory||Ir):Ir},getAllAccessorDeclarations:function(B){B=e.getParseTreeNode(B,e.isGetOrSetAccessorDeclaration);var Ae=B.kind===163?162:163,We=e.getDeclarationOfKind(Zt(B),Ae),Ye=We&&We.pos<B.pos?We:B,tn=We&&We.pos<B.pos?B:We,bn=B.kind===163?B:We,Mn=B.kind===162?B:We;return{firstAccessor:Ye,secondAccessor:tn,setAccessor:bn,getAccessor:Mn}},getSymbolOfExternalModuleSpecifier:function(B){return ba(B,B,void 0)},isBindingCapturedByNode:function(B,Ae){var We=e.getParseTreeNode(B),Ye=e.getParseTreeNode(Ae);return!!We&&!!Ye&&(e.isVariableDeclaration(Ye)||e.isBindingElement(Ye))&&vA(We,Ye)},getDeclarationStatementsForSourceFile:function(B,Ae,We,Ye){var tn=e.getParseTreeNode(B);e.Debug.assert(tn&&tn.kind===288,"Non-sourcefile node passed into getDeclarationsForSourceFile");var bn=Zt(B);return bn?bn.exports?Fe.symbolTableToDeclarationStatements(bn.exports,B,Ae,We,Ye):[]:B.locals?Fe.symbolTableToDeclarationStatements(B.locals,B,Ae,We,Ye):[]}};function r(B){return B.parent&&B.parent.kind===215&&B.parent.parent&&B.parent.parent.kind===277}function i(B){if(!t)return;var Ae=788968|1920;(B.kind===75&&lp(B)||B.kind===193&&!r(B))&&(Ae=111551|1048576);var We=kt(B,Ae,!0);return We&&We!==pn?l(We,Ae):void 0}function l(B,Ae){if(!t)return;if(!d(B))return;for(var We,Ye=0,tn=B.declarations;Ye<tn.length;Ye++){var bn=tn[Ye];if(bn.symbol&&bn.symbol.flags&Ae){var Mn=e.getSourceFileOfNode(bn),it=t.get(Mn.path);if(it)(We||(We=[])).push(it);else return}}return We}function d(B){if(!B.declarations)return!1;for(var Ae=B;;){var We=Ps(Ae);if(We)Ae=We;else break}if(Ae.valueDeclaration&&Ae.valueDeclaration.kind===288&&Ae.flags&512)return!1;for(var Ye=0,tn=B.declarations;Ye<tn.length;Ye++){var bn=tn[Ye],Mn=e.getSourceFileOfNode(bn);if(t.has(Mn.path))return!0}return!1}function A(B,Ae){if(t.has(B.path))return;t.set(B.path,Ae);for(var We=0,Ye=B.referencedFiles;We<Ye.length;We++){var tn=Ye[We].fileName,bn=e.resolveTripleslashReference(tn,B.originalFileName),Mn=y.getSourceFile(bn);Mn&&A(Mn,Ae)}}}function vS(n){var t=n.kind===248?e.tryCast(n.name,e.isStringLiteral):e.getExternalModuleName(n),r=ba(t,t,void 0);return r?e.getDeclarationOfKind(r,288):void 0}function oD(){for(var n=0,t=y.getSourceFiles();n<t.length;n++){var r=t[n];e.bindSourceFile(r,je)}ci=e.createMap();for(var i,l=0,d=y.getSourceFiles();l<d.length;l++){var r=d[l];if(r.redirectInfo)continue;if(!e.isExternalOrCommonJsModule(r)){var A=r.locals.get("globalThis");if(A)for(var B=0,Ae=A.declarations;B<Ae.length;B++){var We=Ae[B];tt.add(e.createDiagnosticForNode(We,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}qa(cn,r.locals)}if(r.jsGlobalAugmentations&&qa(cn,r.jsGlobalAugmentations),r.patternAmbientModules&&r.patternAmbientModules.length&&(Ro=e.concatenate(Ro,r.patternAmbientModules)),r.moduleAugmentations.length&&(i||(i=[])).push(r.moduleAugmentations),r.symbol&&r.symbol.globalExports){var Ye=r.symbol.globalExports;Ye.forEach(function(Ur,ja){cn.has(ja)||cn.set(ja,Ur)})}}if(i)for(var tn=0,bn=i;tn<bn.length;tn++)for(var Mn=bn[tn],it=0,_t=Mn;it<_t.length;it++){var St=_t[it];if(!e.isGlobalScopeAugmentation(St.parent))continue;wi(St)}if(eo(cn,vo,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),na(Qe).type=Rn,na(ye).type=ds("IArguments",0,!0),na(pn).type=_e,na(ln).type=os(16,ln),yr=ds("Array",1,!0),_o=ds("Object",0,!0),Ri=ds("Function",0,!0),xt=In&&ds("CallableFunction",0,!0)||Ri,Kt=In&&ds("NewableFunction",0,!0)||Ri,_a=ds("String",0,!0),La=ds("Number",0,!0),qr=ds("Boolean",0,!0),pi=ds("RegExp",0,!0),mi=Is(oe),da=Is(Cn),da===Wn&&(da=No(void 0,He,e.emptyArray,e.emptyArray,void 0,void 0)),Jr=tv("ReadonlyArray",1)||yr,en=Jr?Zf(Jr,[oe]):mi,Li=tv("ThisType",1),i)for(var Yt=0,mr=i;Yt<mr.length;Yt++)for(var Mn=mr[Yt],or=0,br=Mn;or<br.length;or++){var St=br[or];if(e.isGlobalScopeAugmentation(St.parent))continue;wi(St)}ci.forEach(function(ta){var Ur=ta.firstFile,ja=ta.secondFile,$i=ta.conflictingSymbols;if($i.size<8)$i.forEach(function(ka,Bt){for(var Sn=ka.isBlockScoped,gn=ka.firstFileLocations,wt=ka.secondFileLocations,At=Sn?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,er=0,gr=gn;er<gr.length;er++){var Cr=gr[er];ga(Cr,At,Bt,wt)}for(var jt=0,la=wt;jt<la.length;jt++){var Cr=la[jt];ga(Cr,At,Bt,gn)}});else{var Sa=e.arrayFrom($i.keys()).join(", ");tt.add(e.addRelatedInfo(e.createDiagnosticForNode(Ur,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,Sa),e.createDiagnosticForNode(ja,e.Diagnostics.Conflicts_are_in_this_file))),tt.add(e.addRelatedInfo(e.createDiagnosticForNode(ja,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,Sa),e.createDiagnosticForNode(Ur,e.Diagnostics.Conflicts_are_in_this_file)))}}),ci=void 0}function Ll(n,t){if((ne&t)!==t&&je.importHelpers){var r=e.getSourceFileOfNode(n);if(e.isEffectiveExternalModule(r,je)&&!(n.flags&8388608)){var i=lD(r,n);if(i!==pn){for(var l=t&~ne,d=1;d<=131072;d<<=1)if(l&d){var A=sD(d),B=Uo(i.exports,e.escapeLeadingUnderscores(A),111551);B||xn(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,A)}}ne|=t}}}function sD(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"__spread";case 2048:return"__spreadArrays";case 4096:return"__await";case 8192:return"__asyncGenerator";case 16384:return"__asyncDelegator";case 32768:return"__asyncValues";case 65536:return"__exportStar";case 131072:return"__makeTemplateObject";default:return e.Debug.fail("Unrecognized helper")}}function lD(n,t){return O||(O=ra(n,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||pn),O}function eu(n){return cD(n)||uD(n)}function cD(n){if(!n.decorators)return!1;if(e.nodeCanBeDecorated(n,n.parent,n.parent.parent)){if(n.kind===162||n.kind===163){var t=e.getAllAccessorDeclarations(n.parent.members,n);if(t.firstAccessor.decorators&&n===t.secondAccessor)return ss(n,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===160&&!e.nodeIsPresent(n.body)?ss(n,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):ss(n,e.Diagnostics.Decorators_are_not_valid_here);return!1}function uD(n){var t=dD(n);if(t!==void 0)return t;for(var r,i,l,d,A=0,B=0,Ae=n.modifiers;B<Ae.length;B++){var We=Ae[B];if(We.kind!==137){if(n.kind===157||n.kind===159)return ur(We,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(We.kind));if(n.kind===166)return ur(We,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(We.kind))}switch(We.kind){case 80:if(n.kind!==247)return ur(n,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(80));break;case 118:case 117:case 116:var Ye=zi(e.modifierToFlag(We.kind));if(A&28)return ur(We,e.Diagnostics.Accessibility_modifier_already_seen);if(A&32)return ur(We,e.Diagnostics._0_modifier_must_precede_1_modifier,Ye,"static");if(A&64)return ur(We,e.Diagnostics._0_modifier_must_precede_1_modifier,Ye,"readonly");if(A&256)return ur(We,e.Diagnostics._0_modifier_must_precede_1_modifier,Ye,"async");if(n.parent.kind===249||n.parent.kind===288)return ur(We,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,Ye);if(A&128)return We.kind===116?ur(We,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,Ye,"abstract"):ur(We,e.Diagnostics._0_modifier_must_precede_1_modifier,Ye,"abstract");A|=e.modifierToFlag(We.kind);break;case 119:if(A&32)return ur(We,e.Diagnostics._0_modifier_already_seen,"static");if(A&64)return ur(We,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(A&256)return ur(We,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(n.parent.kind===249||n.parent.kind===288)return ur(We,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===155)return ur(We,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(A&128)return ur(We,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");A|=32,r=We;break;case 137:if(A&64)return ur(We,e.Diagnostics._0_modifier_already_seen,"readonly");if(n.kind!==158&&n.kind!==157&&n.kind!==166&&n.kind!==155)return ur(We,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);A|=64,d=We;break;case 88:if(A&1)return ur(We,e.Diagnostics._0_modifier_already_seen,"export");if(A&2)return ur(We,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(A&128)return ur(We,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(A&256)return ur(We,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(n.parent))return ur(We,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export");if(n.kind===155)return ur(We,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");A|=1;break;case 83:var tn=n.parent.kind===288?n.parent:n.parent.parent;if(tn.kind===248&&!e.isAmbientModule(tn))return ur(We,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);A|=512;break;case 129:if(A&2)return ur(We,e.Diagnostics._0_modifier_already_seen,"declare");if(A&256)return ur(We,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(e.isClassLike(n.parent)&&!e.isPropertyDeclaration(n))return ur(We,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare");if(n.kind===155)return ur(We,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(n.parent.flags&8388608&&n.parent.kind===249)return ur(We,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);A|=2,i=We;break;case 121:if(A&128)return ur(We,e.Diagnostics._0_modifier_already_seen,"abstract");if(n.kind!==244){if(n.kind!==160&&n.kind!==158&&n.kind!==162&&n.kind!==163)return ur(We,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===244&&e.hasModifier(n.parent,128)))return ur(We,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(A&32)return ur(We,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(A&8)return ur(We,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}A|=128;break;case 125:if(A&256)return ur(We,e.Diagnostics._0_modifier_already_seen,"async");if(A&2||n.parent.flags&8388608)return ur(We,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===155)return ur(We,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");A|=256,l=We;break}}return n.kind===161?A&32?ur(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):A&128?ur(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):A&256?ur(l,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):A&64?ur(d,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):!1:(n.kind===253||n.kind===252)&&A&2?ur(i,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===155&&A&92&&e.isBindingPattern(n.name)?ur(n,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===155&&A&92&&n.dotDotDotToken?ur(n,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):A&256?pD(n,l):!1}function dD(n){return n.modifiers?fD(n)?ss(n,e.Diagnostics.Modifiers_cannot_appear_here):void 0:!1}function fD(n){switch(n.kind){case 162:case 163:case 161:case 158:case 157:case 160:case 159:case 166:case 248:case 253:case 252:case 259:case 258:case 200:case 201:case 155:return!1;default:if(n.parent.kind===249||n.parent.kind===288)return!1;switch(n.kind){case 243:return u_(n,125);case 244:return u_(n,121);case 245:case 224:case 246:return!0;case 247:return u_(n,80);default:return e.Debug.fail(),!1}}}function u_(n,t){return n.modifiers.length>1||n.modifiers[0].kind!==t}function pD(n,t){switch(n.kind){case 160:case 243:case 200:case 201:return!1}return ur(t,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function cf(n,t){return t===void 0&&(t=e.Diagnostics.Trailing_comma_not_allowed),n&&n.hasTrailingComma?Ju(n[0],n.end-",".length,",".length,t):!1}function bS(n,t){if(n&&n.length===0){var r=n.pos-"<".length,i=e.skipTrivia(t.text,n.end)+">".length;return Ju(t,r,i-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function mD(n){for(var t=!1,r=n.length,i=0;i<r;i++){var l=n[i];if(l.dotDotDotToken){if(i!==r-1)return ur(l.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(l.flags&8388608||cf(n,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),l.questionToken)return ur(l.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(l.initializer)return ur(l.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(l.questionToken){if(t=!0,l.initializer)return ur(l.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!l.initializer)return ur(l.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}function hD(n){return e.filter(n,function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)})}function gD(n){if(w>=3){var t=n.body&&e.isBlock(n.body)&&e.findUseStrictPrologue(n.body.statements);if(t){var r=hD(n.parameters);if(e.length(r)){e.forEach(r,function(l){e.addRelatedInfo(xn(l,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(t,e.Diagnostics.use_strict_directive_used_here))});var i=r.map(function(l,d){return d===0?e.createDiagnosticForNode(l,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(l,e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,Tr([xn(t,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],i)),!0}}}return!1}function Mh(n){var t=e.getSourceFileOfNode(n);return eu(n)||bS(n.typeParameters,t)||mD(n.parameters)||_D(n,t)||e.isFunctionLikeDeclaration(n)&&gD(n)}function yD(n){var t=e.getSourceFileOfNode(n);return wD(n)||bS(n.typeParameters,t)}function _D(n,t){if(!e.isArrowFunction(n))return!1;var r=n.equalsGreaterThanToken,i=e.getLineAndCharacterOfPosition(t,r.pos).line,l=e.getLineAndCharacterOfPosition(t,r.end).line;return i!==l&&ur(r,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}function vD(n){var t=n.parameters[0];if(n.parameters.length!==1)return ur(t?t.name:n,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(t.dotDotDotToken)return ur(t.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasModifiers(t))return ur(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return ur(t.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return ur(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return ur(t.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(t.type.kind!==142&&t.type.kind!==139){var r=Ua(t.type);return r.flags&4||r.flags&8?ur(t.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,e.getTextOfNode(t.name),qt(r),qt(n.type?Ua(n.type):oe)):r.flags&1048576&&yh(r,384,!0)?ur(t.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):ur(t.name,e.Diagnostics.An_index_signature_parameter_type_must_be_either_string_or_number)}return n.type?!1:ur(n,e.Diagnostics.An_index_signature_must_have_a_type_annotation)}function bD(n){return eu(n)||vD(n)}function ED(n,t){if(t&&t.length===0){var r=e.getSourceFileOfNode(n),i=t.pos-"<".length,l=e.skipTrivia(r.text,t.end)+">".length;return Ju(r,i,l-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}function bm(n,t){return cf(t)||ED(n,t)}function TD(n){return n.questionDotToken||n.flags&32?ur(n.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function SD(n){if(n)for(var t=0,r=n;t<r.length;t++){var i=r[t];if(i.kind===214)return Ju(i,i.pos,0,e.Diagnostics.Argument_expression_expected)}return!1}function ES(n){return SD(n)}function TS(n){var t=n.types;if(cf(t))return!0;if(t&&t.length===0){var r=e.tokenToString(n.token);return Ju(n,t.pos,0,e.Diagnostics._0_list_cannot_be_empty,r)}return e.some(t,xD)}function xD(n){return bm(n,n.typeArguments)}function wD(n){var t=!1,r=!1;if(!eu(n)&&n.heritageClauses)for(var i=0,l=n.heritageClauses;i<l.length;i++){var d=l[i];if(d.token===89){if(t)return ss(d,e.Diagnostics.extends_clause_already_seen);if(r)return ss(d,e.Diagnostics.extends_clause_must_precede_implements_clause);if(d.types.length>1)return ss(d.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(e.Debug.assert(d.token===112),r)return ss(d,e.Diagnostics.implements_clause_already_seen);r=!0}TS(d)}}function AD(n){var t=!1;if(n.heritageClauses)for(var r=0,i=n.heritageClauses;r<i.length;r++){var l=i[r];if(l.token===89){if(t)return ss(l,e.Diagnostics.extends_clause_already_seen);t=!0}else return e.Debug.assert(l.token===112),ss(l,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);TS(l)}return!1}function Rh(n){if(n.kind!==153)return!1;var t=n;return t.expression.kind===208&&t.expression.operatorToken.kind===27?ur(t.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function d_(n){if(n.asteriskToken){if(e.Debug.assert(n.kind===243||n.kind===200||n.kind===160),n.flags&8388608)return ur(n.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return ur(n.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function SS(n,t){return!!n&&ur(n,t)}function xS(n,t){return!!n&&ur(n,t)}function kD(n,t){for(var r=e.createUnderscoreEscapedMap(),i=0,l=n.properties;i<l.length;i++){var d=l[i];if(d.kind===281){if(t){var A=e.skipParentheses(d.expression);if(e.isArrayLiteralExpression(A)||e.isObjectLiteralExpression(A))return ur(d.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}continue}var B=d.name;if(B.kind===153&&Rh(B),d.kind===280&&!t&&d.objectAssignmentInitializer)return ur(d.equalsToken,e.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);if(d.modifiers)for(var Ae=0,We=d.modifiers;Ae<We.length;Ae++){var Ye=We[Ae];(Ye.kind!==125||d.kind!==160)&&ur(Ye,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(Ye))}var tn=void 0;switch(d.kind){case 280:xS(d.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 279:SS(d.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),B.kind===8&&m_(B),tn=4;break;case 160:tn=8;break;case 162:tn=1;break;case 163:tn=2;break;default:throw e.Debug.assertNever(d,"Unexpected syntax kind:"+d.kind)}var bn=e.getPropertyNameForPropertyNameNode(B);if(bn===void 0)continue;var Mn=r.get(bn);if(!Mn)r.set(bn,tn);else if(tn&12&&Mn&12)ur(B,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(B));else if(tn&3&&Mn&3)if(Mn!==3&&tn!==Mn)r.set(bn,tn|Mn);else return ur(B,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return ur(B,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}function CD(n){bm(n,n.typeArguments);for(var t=e.createUnderscoreEscapedMap(),r=0,i=n.attributes.properties;r<i.length;r++){var l=i[r];if(l.kind===273)continue;var d=l.name,A=l.initializer;if(!t.get(d.escapedText))t.set(d.escapedText,!0);else return ur(d,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(A&&A.kind===274&&!A.expression)return ur(A,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function DD(n){if(n.expression&&e.isCommaSequence(n.expression))return ur(n.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function wS(n){if(Lc(n))return!0;if(n.kind===231&&n.awaitModifier&&(n.flags&32768)===0){var t=e.getSourceFileOfNode(n);if(!Vf(t)){var r=e.createDiagnosticForNode(n.awaitModifier,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator),i=e.getContainingFunction(n);if(i&&i.kind!==161){e.Debug.assert((e.getFunctionFlags(i)&2)===0,"Enclosing function should never be an async function.");var l=e.createDiagnosticForNode(i,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(r,l)}return tt.add(r),!0}return!1}if(n.initializer.kind===242){var d=n.initializer;if(!p_(d)){var A=d.declarations;if(!A.length)return!1;if(A.length>1){var r=n.kind===230?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 ss(d.declarations[1],r)}var B=A[0];if(B.initializer){var r=n.kind===230?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 ur(B.name,r)}if(B.type){var r=n.kind===230?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 ur(B,r)}}}return!1}function LD(n){if(!(n.flags&8388608)){if(w<1)return ur(n.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(n.body===void 0&&!e.hasModifier(n,128))return Ju(n,n.end-1,";".length,e.Diagnostics._0_expected,"{")}if(n.body&&e.hasModifier(n,128))return ur(n,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(n.typeParameters)return ur(n.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!ID(n))return ur(n.name,n.kind===162?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===163){if(n.type)return ur(n.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var t=e.Debug.assertDefined(e.getSetAccessorValueParameter(n),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return ur(t.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return ur(t.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return ur(n.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function ID(n){return f_(n)||n.parameters.length===(n.kind===162?0:1)}function f_(n){if(n.parameters.length===(n.kind===162?1:2))return e.getThisParameter(n)}function ND(n){if(n.operator===146){if(n.type.kind!==143)return ur(n.type,e.Diagnostics._0_expected,e.tokenToString(143));var t=e.walkUpParenthesizedTypes(n.parent);switch(t.kind){case 241:var r=t;if(r.name.kind!==75)return ur(n,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(r))return ur(n,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(r.parent.flags&2))return ur(t.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 158:if(!e.hasModifier(t,32)||!e.hasModifier(t,64))return ur(t.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 157:if(!e.hasModifier(t,64))return ur(t.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return ur(n,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===137&&(n.type.kind!==173&&n.type.kind!==174))return ss(n,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(143))}function Bf(n,t){if(ro(n))return ur(n,t)}function AS(n){if(Mh(n))return!0;if(n.kind===160){if(n.parent.kind===192){if(n.modifiers&&!(n.modifiers.length===1&&e.first(n.modifiers).kind===125))return ss(n,e.Diagnostics.Modifiers_cannot_appear_here);if(SS(n.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(xS(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return Ju(n,n.end-1,";".length,e.Diagnostics._0_expected,"{")}if(d_(n))return!0}if(e.isClassLike(n.parent)){if(n.flags&8388608)return Bf(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===160&&!n.body)return Bf(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===245)return Bf(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===172)return Bf(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 OD(n){for(var t=n;t;){if(e.isFunctionLike(t))return ur(n,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 237:if(n.label&&t.label.escapedText===n.label.escapedText){var r=n.kind===232&&!e.isIterationStatement(t.statement,!0);return r?ur(n,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1}break;case 236:if(n.kind===233&&!n.label)return!1;break;default:if(e.isIterationStatement(t,!1)&&!n.label)return!1;break}t=t.parent}if(n.label){var i=n.kind===233?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 ur(n,i)}else{var i=n.kind===233?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 ur(n,i)}}function PD(n){if(n.dotDotDotToken){var t=n.parent.elements;if(n!==e.last(t))return ur(n,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(cf(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return ur(n.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name);if(n.initializer)return Ju(n,n.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function kS(n){return e.isStringOrNumericLiteralLike(n)||n.kind===206&&n.operator===40&&n.operand.kind===8}function MD(n){return n.kind===9||n.kind===206&&n.operator===40&&n.operand.kind===9}function RD(n){if((e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)&&kS(n.argumentExpression))&&e.isEntityNameExpression(n.expression))return!!(as(n).flags&1024)}function CS(n){var t=n.initializer;if(t){var r=!(kS(t)||RD(t)||t.kind===105||t.kind===90||MD(t)),i=e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n);if(i&&!n.type){if(r)return ur(t,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return ur(t,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(!i||r)return ur(t,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function FD(n){if(n.parent.parent.kind!==230&&n.parent.parent.kind!==231){if(n.flags&8388608)CS(n);else if(!n.initializer){if(e.isBindingPattern(n.name)&&!e.isBindingPattern(n.parent))return ur(n,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(n))return ur(n,e.Diagnostics.const_declarations_must_be_initialized)}}if(n.exclamationToken&&(n.parent.parent.kind!==224||!n.type||n.initializer||n.flags&8388608))return ur(n.exclamationToken,e.Diagnostics.Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation);je.module!==e.ModuleKind.ES2015&&je.module!==e.ModuleKind.ESNext&&je.module!==e.ModuleKind.System&&!je.noEmit&&!(n.parent.parent.flags&8388608)&&e.hasModifier(n.parent.parent,1)&&DS(n.name);var t=e.isLet(n)||e.isVarConst(n);return t&&LS(n.name)}function DS(n){if(n.kind===75){if(e.idText(n)==="__esModule")return ur(n,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var t=n.elements,r=0,i=t;r<i.length;r++){var l=i[r];if(!e.isOmittedExpression(l))return DS(l.name)}return!1}function LS(n){if(n.kind===75){if(n.originalKeywordKind===114)return ur(n,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var t=n.elements,r=0,i=t;r<i.length;r++){var l=i[r];e.isOmittedExpression(l)||LS(l.name)}return!1}function p_(n){var t=n.declarations;return cf(n.declarations)?!0:n.declarations.length?!1:Ju(n,t.pos,t.end-t.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function IS(n){switch(n.kind){case 226:case 227:case 228:case 235:case 229:case 230:case 231:return!1;case 237:return IS(n.parent)}return!0}function GD(n){if(!IS(n.parent)){if(e.isLet(n.declarationList))return ur(n,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isVarConst(n.declarationList))return ur(n,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}function BD(n){var t=n.name.escapedText;switch(n.keywordToken){case 98:if(t!=="target")return ur(n.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,e.tokenToString(n.keywordToken),"target");break;case 95:if(t!=="meta")return ur(n.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,e.tokenToString(n.keywordToken),"meta");break}}function Vf(n){return n.parseDiagnostics.length>0}function ss(n,t,r,i,l){var d=e.getSourceFileOfNode(n);if(!Vf(d)){var A=e.getSpanOfTokenAtPosition(d,n.pos);return tt.add(e.createFileDiagnostic(d,A.start,A.length,t,r,i,l)),!0}return!1}function Ju(n,t,r,i,l,d,A){var B=e.getSourceFileOfNode(n);return Vf(B)?!1:(tt.add(e.createFileDiagnostic(B,t,r,i,l,d,A)),!0)}function ur(n,t,r,i,l){var d=e.getSourceFileOfNode(n);return Vf(d)?!1:(tt.add(e.createDiagnosticForNode(n,t,r,i,l)),!0)}function VD(n){var t=e.isInJSFile(n)?e.getJSDocTypeParameterDeclarations(n):void 0,r=n.typeParameters||t&&e.firstOrUndefined(t);if(r){var i=r.pos===r.end?r.pos:e.skipTrivia(e.getSourceFileOfNode(n).text,r.pos);return Ju(n,i,r.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function UD(n){var t=e.getEffectiveReturnTypeNode(n);if(t)return ur(t,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function jD(n){if(e.isClassLike(n.parent)){if(e.isStringLiteral(n.name)&&n.name.text==="constructor")return ur(n.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(Bf(n.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0}else if(n.parent.kind===245){if(Bf(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 ur(n.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(n.parent.kind===172){if(Bf(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 ur(n.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&8388608&&CS(n),e.isPropertyDeclaration(n)&&n.exclamationToken&&(!e.isClassLike(n.parent)||!n.type||n.initializer||n.flags&8388608||e.hasModifier(n,32|128)))return ur(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)}function WD(n){return n.kind===245||n.kind===246||n.kind===253||n.kind===252||n.kind===259||n.kind===258||n.kind===251||e.hasModifier(n,2|1|512)?!1:ss(n,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function HD(n){for(var t=0,r=n.statements;t<r.length;t++){var i=r[t];if((e.isDeclaration(i)||i.kind===224)&&WD(i))return!0}return!1}function KD(n){return!!(n.flags&8388608)&&HD(n)}function Lc(n){if(n.flags&8388608){var t=Lr(n);if(!t.hasReportedStatementInAmbientContext&&(e.isFunctionLike(n.parent)||e.isAccessor(n.parent)))return Lr(n).hasReportedStatementInAmbientContext=ss(n,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===222||n.parent.kind===249||n.parent.kind===288){var r=Lr(n.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=ss(n,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function m_(n){if(n.numericLiteralFlags&32){var t=void 0;if(w>=1?t=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(n,186)?t=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(n,282)&&(t=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var r=e.isPrefixUnaryExpression(n.parent)&&n.parent.operator===40,i=(r?"-":"")+"0o"+n.text;return ur(r?n.parent:n,t,i)}}return qD(n),!1}function qD(n){if(n.numericLiteralFlags&16||n.text.length<=15||n.text.indexOf(".")!==-1)return;var t=+e.getTextOfNode(n);if(t<=Math.pow(2,53)-1&&t+1>t)return;bo(!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 JD(n){var t=e.isLiteralTypeNode(n.parent)||e.isPrefixUnaryExpression(n.parent)&&e.isLiteralTypeNode(n.parent.parent);return!!(!t&&(w<99&&ur(n,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ESNext)))}function zD(n,t,r,i,l){var d=e.getSourceFileOfNode(n);if(!Vf(d)){var A=e.getSpanOfTokenAtPosition(d,n.pos);return tt.add(e.createFileDiagnostic(d,e.textSpanEnd(A),0,t,r,i,l)),!0}return!1}function XD(){return ji||(ji=[],cn.forEach(function(n,t){o.test(t)&&ji.push(n)})),ji}function YD(n){if(j===e.ModuleKind.ES2015)return ur(n,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_commonjs_amd_system_or_umd);if(n.typeArguments)return ur(n,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var t=n.arguments;return t.length!==1?ur(n,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):(cf(t),e.isSpreadElement(t[0])?ur(t[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element):!1)}}e.createTypeChecker=H;function q(y){return!e.isAccessor(y)}function be(y){return y.kind!==243&&y.kind!==160||!!y.body}function R(y){switch(y.parent.kind){case 257:case 261:return e.isIdentifier(y);default:return e.isDeclarationName(y)}}function K(y){switch(y.kind){case 254:case 252:case 255:case 257:return!0;case 75:return y.parent.kind===257;default:return!1}}var m;(function(y){y.JSX="JSX",y.IntrinsicElements="IntrinsicElements",y.ElementClass="ElementClass",y.ElementAttributesPropertyNameContainer="ElementAttributesProperty",y.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",y.Element="Element",y.IntrinsicAttributes="IntrinsicAttributes",y.IntrinsicClassAttributes="IntrinsicClassAttributes",y.LibraryManagedAttributes="LibraryManagedAttributes"})(m||(m={}));function _(y){switch(y){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function I(y){return!!(y.flags&1)}e.signatureHasRestParameter=I;function D(y){return!!(y.flags&2)}e.signatureHasLiteralTypes=D})(sn||(sn={}));var sn;(function(e){function o(g){var re=e.createNode(g,-1,-1);return re.flags|=8,re}function M(g,re){return g!==re&&(cc(g,re),Qs(g,re),e.aggregateTransformFlags(g)),g}e.updateNode=M;function qe(g,re){if(!g||g===e.emptyArray)g=[];else if(e.isNodeArray(g))return g;var Ve=g;return Ve.pos=-1,Ve.end=-1,Ve.hasTrailingComma=re,Ve}e.createNodeArray=qe;function Ee(g){if(g===void 0)return g;var re=o(g.kind);re.flags|=g.flags,cc(re,g);for(var Ve in g){if(re.hasOwnProperty(Ve)||!g.hasOwnProperty(Ve))continue;re[Ve]=g[Ve]}return re}e.getSynthesizedClone=Ee;function Ge(g,re){if(typeof g=="number")return Be(g+"");if(typeof g=="object"&&"base10Value"in g)return he(e.pseudoBigIntToString(g)+"n");if(typeof g=="boolean")return g?se():G();if(e.isString(g)){var Ve=ee(g);return re&&(Ve.singleQuote=!0),Ve}return J(g)}e.createLiteral=Ge;function Be(g,re){re===void 0&&(re=0);var Ve=o(8);return Ve.text=g,Ve.numericLiteralFlags=re,Ve}e.createNumericLiteral=Be;function he(g){var re=o(9);return re.text=g,re}e.createBigIntLiteral=he;function ee(g){var re=o(10);return re.text=g,re}e.createStringLiteral=ee;function f(g){var re=o(13);return re.text=g,re}e.createRegularExpressionLiteral=f;function J(g){var re=ee(e.getTextOfIdentifierOrLiteral(g));return re.textSourceNode=g,re}function Oe(g,re){var Ve=o(75);return Ve.escapedText=e.escapeLeadingUnderscores(g),Ve.originalKeywordKind=g?e.stringToToken(g):0,Ve.autoGenerateFlags=0,Ve.autoGenerateId=0,re&&(Ve.typeArguments=qe(re)),Ve}e.createIdentifier=Oe;function N(g,re){return g.typeArguments!==re?M(Oe(e.idText(g),re),g):g}e.updateIdentifier=N;var Te=0;function ie(g,re){var Ve=Oe("");return Ve.autoGenerateFlags=1,Ve.autoGenerateId=Te,Te++,g&&g(Ve),re&&(Ve.autoGenerateFlags|=8),Ve}e.createTempVariable=ie;function ce(){var g=Oe("");return g.autoGenerateFlags=2,g.autoGenerateId=Te,Te++,g}e.createLoopVariable=ce;function x(g){var re=Oe(g);return re.autoGenerateFlags=3,re.autoGenerateId=Te,Te++,re}e.createUniqueName=x;function C(g){var re=Oe(g);return re.autoGenerateFlags=3|16,re.autoGenerateId=Te,Te++,re}e.createOptimisticUniqueName=C;function P(g){var re=C(g);return re.autoGenerateFlags|=32,re}e.createFileLevelUniqueName=P;function h(g,re){var Ve=Oe(g&&e.isIdentifier(g)?e.idText(g):"");return Ve.autoGenerateFlags=4|re,Ve.autoGenerateId=Te,Ve.original=g,Te++,Ve}e.getGeneratedNameForNode=h;function X(g){return o(g)}e.createToken=X;function $(){return o(101)}e.createSuper=$;function Q(){return o(103)}e.createThis=Q;function z(){return o(99)}e.createNull=z;function se(){return o(105)}e.createTrue=se;function G(){return o(90)}e.createFalse=G;function H(g){return X(g)}e.createModifier=H;function q(g){var re=[];return g&1&&re.push(H(88)),g&2&&re.push(H(129)),g&512&&re.push(H(83)),g&2048&&re.push(H(80)),g&4&&re.push(H(118)),g&8&&re.push(H(116)),g&16&&re.push(H(117)),g&128&&re.push(H(121)),g&32&&re.push(H(119)),g&64&&re.push(H(137)),g&256&&re.push(H(125)),re}e.createModifiersFromModifierFlags=q;function be(g,re){var Ve=o(152);return Ve.left=g,Ve.right=zi(re),Ve}e.createQualifiedName=be;function R(g,re,Ve){return g.left!==re||g.right!==Ve?M(be(re,Ve),g):g}e.updateQualifiedName=R;function K(g){return e.isCommaSequence(g)?Gi(g):g}function m(g){var re=o(153);return re.expression=K(g),re}e.createComputedPropertyName=m;function _(g,re){return g.expression!==re?M(m(re),g):g}e.updateComputedPropertyName=_;function I(g,re,Ve){var Dn=o(154);return Dn.name=zi(g),Dn.constraint=re,Dn.default=Ve,Dn}e.createTypeParameterDeclaration=I;function D(g,re,Ve,Dn){return g.name!==re||g.constraint!==Ve||g.default!==Dn?M(I(re,Ve,Dn),g):g}e.updateTypeParameterDeclaration=D;function y(g,re,Ve,Dn,rt,p,Ue){var Nn=o(155);return Nn.decorators=Pa(g),Nn.modifiers=Pa(re),Nn.dotDotDotToken=Ve,Nn.name=zi(Dn),Nn.questionToken=rt,Nn.type=p,Nn.initializer=Ue?e.parenthesizeExpressionForList(Ue):void 0,Nn}e.createParameter=y;function E(g,re,Ve,Dn,rt,p,Ue,Nn){return g.decorators!==re||g.modifiers!==Ve||g.dotDotDotToken!==Dn||g.name!==rt||g.questionToken!==p||g.type!==Ue||g.initializer!==Nn?M(y(re,Ve,Dn,rt,p,Ue,Nn),g):g}e.updateParameter=E;function k(g){var re=o(156);return re.expression=e.parenthesizeForAccess(g),re}e.createDecorator=k;function T(g,re){return g.expression!==re?M(k(re),g):g}e.updateDecorator=T;function ne(g,re,Ve,Dn,rt){var p=o(157);return p.modifiers=Pa(g),p.name=zi(re),p.questionToken=Ve,p.type=Dn,p.initializer=rt,p}e.createPropertySignature=ne;function O(g,re,Ve,Dn,rt,p){return g.modifiers!==re||g.name!==Ve||g.questionToken!==Dn||g.type!==rt||g.initializer!==p?M(ne(re,Ve,Dn,rt,p),g):g}e.updatePropertySignature=O;function Y(g,re,Ve,Dn,rt,p){var Ue=o(158);return Ue.decorators=Pa(g),Ue.modifiers=Pa(re),Ue.name=zi(Ve),Ue.questionToken=Dn!==void 0&&Dn.kind===57?Dn:void 0,Ue.exclamationToken=Dn!==void 0&&Dn.kind===53?Dn:void 0,Ue.type=rt,Ue.initializer=p,Ue}e.createProperty=Y;function pe(g,re,Ve,Dn,rt,p,Ue){return g.decorators!==re||g.modifiers!==Ve||g.name!==Dn||g.questionToken!==(rt!==void 0&&rt.kind===57?rt:void 0)||g.exclamationToken!==(rt!==void 0&&rt.kind===53?rt:void 0)||g.type!==p||g.initializer!==Ue?M(Y(re,Ve,Dn,rt,p,Ue),g):g}e.updateProperty=pe;function S(g,re,Ve,Dn,rt){var p=Je(159,g,re,Ve);return p.name=zi(Dn),p.questionToken=rt,p}e.createMethodSignature=S;function v(g,re,Ve,Dn,rt,p){return g.typeParameters!==re||g.parameters!==Ve||g.type!==Dn||g.name!==rt||g.questionToken!==p?M(S(re,Ve,Dn,rt,p),g):g}e.updateMethodSignature=v;function U(g,re,Ve,Dn,rt,p,Ue,Nn,vt){var Sr=o(160);return Sr.decorators=Pa(g),Sr.modifiers=Pa(re),Sr.asteriskToken=Ve,Sr.name=zi(Dn),Sr.questionToken=rt,Sr.typeParameters=Pa(p),Sr.parameters=qe(Ue),Sr.type=Nn,Sr.body=vt,Sr}e.createMethod=U;function ue(g,re,Ve){return Oi($n(g,zi(re)),void 0,Ve)}function De(g,re,Ve){return ue(Oe(g),re,Ve)}function Z(g,re,Ve){return De("Object","defineProperty",[g,Hl(re),Ve])}e.createObjectDefinePropertyCall=Z;function Re(g,re,Ve){return Ve?(g.push(Da(re,Ve)),!0):!1}function we(g,re){var Ve=[];Re(Ve,"enumerable",Hl(g.enumerable)),Re(Ve,"configurable",Hl(g.configurable));var Dn=Re(Ve,"writable",Hl(g.writable));Dn=Re(Ve,"value",g.value)||Dn;var rt=Re(Ve,"get",g.get);return rt=Re(Ve,"set",g.set)||rt,e.Debug.assert(!(Dn&&rt),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ke(Ve,!re)}e.createPropertyDescriptor=we;function He(g,re,Ve,Dn,rt,p,Ue,Nn,vt,Sr){return g.decorators!==re||g.modifiers!==Ve||g.asteriskToken!==Dn||g.name!==rt||g.questionToken!==p||g.typeParameters!==Ue||g.parameters!==Nn||g.type!==vt||g.body!==Sr?M(U(re,Ve,Dn,rt,p,Ue,Nn,vt,Sr),g):g}e.updateMethod=He;function ve(g,re,Ve,Dn){var rt=o(161);return rt.decorators=Pa(g),rt.modifiers=Pa(re),rt.typeParameters=void 0,rt.parameters=qe(Ve),rt.type=void 0,rt.body=Dn,rt}e.createConstructor=ve;function je(g,re,Ve,Dn,rt){return g.decorators!==re||g.modifiers!==Ve||g.parameters!==Dn||g.body!==rt?M(ve(re,Ve,Dn,rt),g):g}e.updateConstructor=je;function w(g,re,Ve,Dn,rt,p){var Ue=o(162);return Ue.decorators=Pa(g),Ue.modifiers=Pa(re),Ue.name=zi(Ve),Ue.typeParameters=void 0,Ue.parameters=qe(Dn),Ue.type=rt,Ue.body=p,Ue}e.createGetAccessor=w;function j(g,re,Ve,Dn,rt,p,Ue){return g.decorators!==re||g.modifiers!==Ve||g.name!==Dn||g.parameters!==rt||g.type!==p||g.body!==Ue?M(w(re,Ve,Dn,rt,p,Ue),g):g}e.updateGetAccessor=j;function Pe(g,re,Ve,Dn,rt){var p=o(163);return p.decorators=Pa(g),p.modifiers=Pa(re),p.name=zi(Ve),p.typeParameters=void 0,p.parameters=qe(Dn),p.body=rt,p}e.createSetAccessor=Pe;function a(g,re,Ve,Dn,rt,p){return g.decorators!==re||g.modifiers!==Ve||g.name!==Dn||g.parameters!==rt||g.body!==p?M(Pe(re,Ve,Dn,rt,p),g):g}e.updateSetAccessor=a;function Ze(g,re,Ve){return Je(164,g,re,Ve)}e.createCallSignature=Ze;function In(g,re,Ve,Dn){return $e(g,re,Ve,Dn)}e.updateCallSignature=In;function et(g,re,Ve){return Je(165,g,re,Ve)}e.createConstructSignature=et;function ae(g,re,Ve,Dn){return $e(g,re,Ve,Dn)}e.updateConstructSignature=ae;function fe(g,re,Ve,Dn){var rt=o(166);return rt.decorators=Pa(g),rt.modifiers=Pa(re),rt.parameters=qe(Ve),rt.type=Dn,rt}e.createIndexSignature=fe;function Le(g,re,Ve,Dn,rt){return g.parameters!==Dn||g.type!==rt||g.decorators!==re||g.modifiers!==Ve?M(fe(re,Ve,Dn,rt),g):g}e.updateIndexSignature=Le;function Je(g,re,Ve,Dn,rt){var p=o(g);return p.typeParameters=Pa(re),p.parameters=Pa(Ve),p.type=Dn,p.typeArguments=Pa(rt),p}e.createSignatureDeclaration=Je;function $e(g,re,Ve,Dn){return g.typeParameters!==re||g.parameters!==Ve||g.type!==Dn?M(Je(g.kind,re,Ve,Dn),g):g}function Fe(g){return o(g)}e.createKeywordTypeNode=Fe;function cn(g,re){return Qe(void 0,g,re)}e.createTypePredicateNode=cn;function Qe(g,re,Ve){var Dn=o(167);return Dn.assertsModifier=g,Dn.parameterName=zi(re),Dn.type=Ve,Dn}e.createTypePredicateNodeWithModifier=Qe;function ln(g,re,Ve){return ye(g,g.assertsModifier,re,Ve)}e.updateTypePredicateNode=ln;function ye(g,re,Ve,Dn){return g.assertsModifier!==re||g.parameterName!==Ve||g.type!==Dn?M(Qe(re,Ve,Dn),g):g}e.updateTypePredicateNodeWithModifier=ye;function ke(g,re){var Ve=o(168);return Ve.typeName=zi(g),Ve.typeArguments=re&&e.parenthesizeTypeParameters(re),Ve}e.createTypeReferenceNode=ke;function F(g,re,Ve){return g.typeName!==re||g.typeArguments!==Ve?M(ke(re,Ve),g):g}e.updateTypeReferenceNode=F;function c(g,re,Ve){return Je(169,g,re,Ve)}e.createFunctionTypeNode=c;function L(g,re,Ve,Dn){return $e(g,re,Ve,Dn)}e.updateFunctionTypeNode=L;function te(g,re,Ve){return Je(170,g,re,Ve)}e.createConstructorTypeNode=te;function Se(g,re,Ve,Dn){return $e(g,re,Ve,Dn)}e.updateConstructorTypeNode=Se;function Ne(g){var re=o(171);return re.exprName=g,re}e.createTypeQueryNode=Ne;function ze(g,re){return g.exprName!==re?M(Ne(re),g):g}e.updateTypeQueryNode=ze;function Tn(g){var re=o(172);return re.members=qe(g),re}e.createTypeLiteralNode=Tn;function wn(g,re){return g.members!==re?M(Tn(re),g):g}e.updateTypeLiteralNode=wn;function jn(g){var re=o(173);return re.elementType=e.parenthesizeArrayTypeMember(g),re}e.createArrayTypeNode=jn;function nn(g,re){return g.elementType!==re?M(jn(re),g):g}e.updateArrayTypeNode=nn;function pn(g){var re=o(174);return re.elementTypes=qe(g),re}e.createTupleTypeNode=pn;function le(g,re){return g.elementTypes!==re?M(pn(re),g):g}e.updateTupleTypeNode=le;function oe(g){var re=o(175);return re.type=e.parenthesizeArrayTypeMember(g),re}e.createOptionalTypeNode=oe;function Cn(g,re){return g.type!==re?M(oe(re),g):g}e.updateOptionalTypeNode=Cn;function yn(g){var re=o(176);return re.type=g,re}e.createRestTypeNode=yn;function _e(g,re){return g.type!==re?M(yn(re),g):g}e.updateRestTypeNode=_e;function dn(g){return Bn(177,g)}e.createUnionTypeNode=dn;function un(g,re){return ut(g,re)}e.updateUnionTypeNode=un;function Rn(g){return Bn(178,g)}e.createIntersectionTypeNode=Rn;function at(g,re){return ut(g,re)}e.updateIntersectionTypeNode=at;function Bn(g,re){var Ve=o(g);return Ve.types=e.parenthesizeElementTypeMembers(re),Ve}e.createUnionOrIntersectionTypeNode=Bn;function ut(g,re){return g.types!==re?M(Bn(g.kind,re),g):g}function ct(g,re,Ve,Dn){var rt=o(179);return rt.checkType=e.parenthesizeConditionalTypeMember(g),rt.extendsType=e.parenthesizeConditionalTypeMember(re),rt.trueType=Ve,rt.falseType=Dn,rt}e.createConditionalTypeNode=ct;function ot(g,re,Ve,Dn,rt){return g.checkType!==re||g.extendsType!==Ve||g.trueType!==Dn||g.falseType!==rt?M(ct(re,Ve,Dn,rt),g):g}e.updateConditionalTypeNode=ot;function dt(g){var re=o(180);return re.typeParameter=g,re}e.createInferTypeNode=dt;function Ct(g,re){return g.typeParameter!==re?M(dt(re),g):g}e.updateInferTypeNode=Ct;function st(g,re,Ve,Dn){var rt=o(187);return rt.argument=g,rt.qualifier=re,rt.typeArguments=e.parenthesizeTypeParameters(Ve),rt.isTypeOf=Dn,rt}e.createImportTypeNode=st;function Kn(g,re,Ve,Dn,rt){return g.argument!==re||g.qualifier!==Ve||g.typeArguments!==Dn||g.isTypeOf!==rt?M(st(re,Ve,Dn,rt),g):g}e.updateImportTypeNode=Kn;function Ie(g){var re=o(181);return re.type=g,re}e.createParenthesizedType=Ie;function Ce(g,re){return g.type!==re?M(Ie(re),g):g}e.updateParenthesizedType=Ce;function _n(){return o(182)}e.createThisTypeNode=_n;function yt(g,re){var Ve=o(183);return Ve.operator=typeof g=="number"?g:133,Ve.type=e.parenthesizeElementTypeMember(typeof g=="number"?re:g),Ve}e.createTypeOperatorNode=yt;function Dt(g,re){return g.type!==re?M(yt(g.operator,re),g):g}e.updateTypeOperatorNode=Dt;function Ht(g,re){var Ve=o(184);return Ve.objectType=e.parenthesizeElementTypeMember(g),Ve.indexType=re,Ve}e.createIndexedAccessTypeNode=Ht;function $t(g,re,Ve){return g.objectType!==re||g.indexType!==Ve?M(Ht(re,Ve),g):g}e.updateIndexedAccessTypeNode=$t;function wr(g,re,Ve,Dn){var rt=o(185);return rt.readonlyToken=g,rt.typeParameter=re,rt.questionToken=Ve,rt.type=Dn,rt}e.createMappedTypeNode=wr;function Yr(g,re,Ve,Dn,rt){return g.readonlyToken!==re||g.typeParameter!==Ve||g.questionToken!==Dn||g.type!==rt?M(wr(re,Ve,Dn,rt),g):g}e.updateMappedTypeNode=Yr;function Hr(g){var re=o(186);return re.literal=g,re}e.createLiteralTypeNode=Hr;function mt(g,re){return g.literal!==re?M(Hr(re),g):g}e.updateLiteralTypeNode=mt;function va(g){var re=o(188);return re.elements=qe(g),re}e.createObjectBindingPattern=va;function Lt(g,re){return g.elements!==re?M(va(re),g):g}e.updateObjectBindingPattern=Lt;function Wn(g){var re=o(189);return re.elements=qe(g),re}e.createArrayBindingPattern=Wn;function Vt(g,re){return g.elements!==re?M(Wn(re),g):g}e.updateArrayBindingPattern=Vt;function pt(g,re,Ve,Dn){var rt=o(190);return rt.dotDotDotToken=g,rt.propertyName=zi(re),rt.name=zi(Ve),rt.initializer=Dn,rt}e.createBindingElement=pt;function Tt(g,re,Ve,Dn,rt){return g.propertyName!==Ve||g.dotDotDotToken!==re||g.name!==Dn||g.initializer!==rt?M(pt(re,Ve,Dn,rt),g):g}e.updateBindingElement=Tt;function ht(g,re){var Ve=o(191);return Ve.elements=e.parenthesizeListElements(qe(g)),re&&(Ve.multiLine=!0),Ve}e.createArrayLiteral=ht;function bt(g,re){return g.elements!==re?M(ht(re,g.multiLine),g):g}e.updateArrayLiteral=bt;function Ke(g,re){var Ve=o(192);return Ve.properties=qe(g),re&&(Ve.multiLine=!0),Ve}e.createObjectLiteral=Ke;function Pn(g,re){return g.properties!==re?M(Ke(re,g.multiLine),g):g}e.updateObjectLiteral=Pn;function $n(g,re){var Ve=o(193);return Ve.expression=e.parenthesizeForAccess(g),Ve.name=zi(re),oc(Ve,131072),Ve}e.createPropertyAccess=$n;function rr(g,re,Ve){return e.isOptionalChain(g)?Fa(g,re,g.questionDotToken,Ve):g.expression!==re||g.name!==Ve?M(oc($n(re,Ve),e.getEmitFlags(g)),g):g}e.updatePropertyAccess=rr;function xa(g,re,Ve){var Dn=o(193);return Dn.flags|=32,Dn.expression=e.parenthesizeForAccess(g),Dn.questionDotToken=re,Dn.name=zi(Ve),oc(Dn,131072),Dn}e.createPropertyAccessChain=xa;function Fa(g,re,Ve,Dn){return e.Debug.assert(!!(g.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),g.expression!==re||g.questionDotToken!==Ve||g.name!==Dn?M(oc(xa(re,Ve,Dn),e.getEmitFlags(g)),g):g}e.updatePropertyAccessChain=Fa;function ri(g,re){var Ve=o(194);return Ve.expression=e.parenthesizeForAccess(g),Ve.argumentExpression=Hl(re),Ve}e.createElementAccess=ri;function Si(g,re,Ve){return e.isOptionalChain(g)?vi(g,re,g.questionDotToken,Ve):g.expression!==re||g.argumentExpression!==Ve?M(ri(re,Ve),g):g}e.updateElementAccess=Si;function xi(g,re,Ve){var Dn=o(194);return Dn.flags|=32,Dn.expression=e.parenthesizeForAccess(g),Dn.questionDotToken=re,Dn.argumentExpression=Hl(Ve),Dn}e.createElementAccessChain=xi;function vi(g,re,Ve,Dn){return e.Debug.assert(!!(g.flags&32),"Cannot update an ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),g.expression!==re||g.questionDotToken!==Ve||g.argumentExpression!==Dn?M(xi(re,Ve,Dn),g):g}e.updateElementAccessChain=vi;function Oi(g,re,Ve){var Dn=o(195);return Dn.expression=e.parenthesizeForAccess(g),Dn.typeArguments=Pa(re),Dn.arguments=e.parenthesizeListElements(qe(Ve)),Dn}e.createCall=Oi;function Ja(g,re,Ve,Dn){return e.isOptionalChain(g)?ua(g,re,g.questionDotToken,Ve,Dn):g.expression!==re||g.typeArguments!==Ve||g.arguments!==Dn?M(Oi(re,Ve,Dn),g):g}e.updateCall=Ja;function Ka(g,re,Ve,Dn){var rt=o(195);return rt.flags|=32,rt.expression=e.parenthesizeForAccess(g),rt.questionDotToken=re,rt.typeArguments=Pa(Ve),rt.arguments=e.parenthesizeListElements(qe(Dn)),rt}e.createCallChain=Ka;function ua(g,re,Ve,Dn,rt){return e.Debug.assert(!!(g.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),g.expression!==re||g.questionDotToken!==Ve||g.typeArguments!==Dn||g.arguments!==rt?M(Ka(re,Ve,Dn,rt),g):g}e.updateCallChain=ua;function bi(g,re,Ve){var Dn=o(196);return Dn.expression=e.parenthesizeForNew(g),Dn.typeArguments=Pa(re),Dn.arguments=Ve?e.parenthesizeListElements(qe(Ve)):void 0,Dn}e.createNew=bi;function Vo(g,re,Ve,Dn){return g.expression!==re||g.typeArguments!==Ve||g.arguments!==Dn?M(bi(re,Ve,Dn),g):g}e.updateNew=Vo;function wo(g,re,Ve){var Dn=o(197);return Dn.tag=e.parenthesizeForAccess(g),Ve?(Dn.typeArguments=Pa(re),Dn.template=Ve):(Dn.typeArguments=void 0,Dn.template=re),Dn}e.createTaggedTemplate=wo;function Mo(g,re,Ve,Dn){return g.tag!==re||(Dn?g.typeArguments!==Ve||g.template!==Dn:g.typeArguments!==void 0||g.template!==Ve)?M(wo(re,Ve,Dn),g):g}e.updateTaggedTemplate=Mo;function uo(g,re){var Ve=o(198);return Ve.type=g,Ve.expression=e.parenthesizePrefixOperand(re),Ve}e.createTypeAssertion=uo;function ci(g,re,Ve){return g.type!==re||g.expression!==Ve?M(uo(re,Ve),g):g}e.updateTypeAssertion=ci;function Gi(g){var re=o(199);return re.expression=g,re}e.createParen=Gi;function ji(g,re){return g.expression!==re?M(Gi(re),g):g}e.updateParen=ji;function Ro(g,re,Ve,Dn,rt,p,Ue){var Nn=o(200);return Nn.modifiers=Pa(g),Nn.asteriskToken=re,Nn.name=zi(Ve),Nn.typeParameters=Pa(Dn),Nn.parameters=qe(rt),Nn.type=p,Nn.body=Ue,Nn}e.createFunctionExpression=Ro;function Ao(g,re,Ve,Dn,rt,p,Ue,Nn){return g.name!==Dn||g.modifiers!==re||g.asteriskToken!==Ve||g.typeParameters!==rt||g.parameters!==p||g.type!==Ue||g.body!==Nn?M(Ro(re,Ve,Dn,rt,p,Ue,Nn),g):g}e.updateFunctionExpression=Ao;function _o(g,re,Ve,Dn,rt,p){var Ue=o(201);return Ue.modifiers=Pa(g),Ue.typeParameters=Pa(re),Ue.parameters=qe(Ve),Ue.type=Dn,Ue.equalsGreaterThanToken=rt||X(38),Ue.body=e.parenthesizeConciseBody(p),Ue}e.createArrowFunction=_o;function Ri(g,re,Ve,Dn,rt,p,Ue){return g.modifiers!==re||g.typeParameters!==Ve||g.parameters!==Dn||g.type!==rt||g.equalsGreaterThanToken!==p||g.body!==Ue?M(_o(re,Ve,Dn,rt,p,Ue),g):g}e.updateArrowFunction=Ri;function xt(g){var re=o(202);return re.expression=e.parenthesizePrefixOperand(g),re}e.createDelete=xt;function Kt(g,re){return g.expression!==re?M(xt(re),g):g}e.updateDelete=Kt;function yr(g){var re=o(203);return re.expression=e.parenthesizePrefixOperand(g),re}e.createTypeOf=yr;function Jr(g,re){return g.expression!==re?M(yr(re),g):g}e.updateTypeOf=Jr;function _a(g){var re=o(204);return re.expression=e.parenthesizePrefixOperand(g),re}e.createVoid=_a;function La(g,re){return g.expression!==re?M(_a(re),g):g}e.updateVoid=La;function qr(g){var re=o(205);return re.expression=e.parenthesizePrefixOperand(g),re}e.createAwait=qr;function pi(g,re){return g.expression!==re?M(qr(re),g):g}e.updateAwait=pi;function Li(g,re){var Ve=o(206);return Ve.operator=g,Ve.operand=e.parenthesizePrefixOperand(re),Ve}e.createPrefix=Li;function mi(g,re){return g.operand!==re?M(Li(g.operator,re),g):g}e.updatePrefix=mi;function da(g,re){var Ve=o(207);return Ve.operand=e.parenthesizePostfixOperand(g),Ve.operator=re,Ve}e.createPostfix=da;function en(g,re){return g.operand!==re?M(da(re,g.operator),g):g}e.updatePostfix=en;function vn(g,re,Ve){var Dn=o(208),rt=xc(re),p=rt.kind;return Dn.left=e.parenthesizeBinaryOperand(p,g,!0,void 0),Dn.operatorToken=rt,Dn.right=e.parenthesizeBinaryOperand(p,Ve,!1,Dn.left),Dn}e.createBinary=vn;function Ln(g,re,Ve,Dn){return g.left!==re||g.right!==Ve?M(vn(re,Dn||g.operatorToken,Ve),g):g}e.updateBinary=Ln;function Vn(g,re,Ve,Dn,rt){var p=o(209);return p.condition=e.parenthesizeForConditionalHead(g),p.questionToken=rt?re:X(57),p.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(rt?Ve:re),p.colonToken=rt?Dn:X(58),p.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(rt||Ve),p}e.createConditional=Vn;function Mt(g,re,Ve,Dn,rt,p){return g.condition!==re||g.questionToken!==Ve||g.whenTrue!==Dn||g.colonToken!==rt||g.whenFalse!==p?M(Vn(re,Ve,Dn,rt,p),g):g}e.updateConditional=Mt;function tr(g,re){var Ve=o(210);return Ve.head=g,Ve.templateSpans=qe(re),Ve}e.createTemplateExpression=tr;function dr(g,re,Ve){return g.head!==re||g.templateSpans!==Ve?M(tr(re,Ve),g):g}e.updateTemplateExpression=dr;var Pr,za={};function Ia(g,re){Pr||(Pr=e.createScanner(99,!1,0));switch(g){case 14:Pr.setText("`"+re+"`");break;case 15:Pr.setText("`"+re+"${");break;case 16:Pr.setText("}"+re+"${");break;case 17:Pr.setText("}"+re+"`");break}var Ve=Pr.scan();if(Ve===23&&(Ve=Pr.reScanTemplateToken()),Pr.isUnterminated())return Pr.setText(void 0),za;var Dn;switch(Ve){case 14:case 15:case 16:case 17:Dn=Pr.getTokenValue();break}return Pr.scan()!==1?(Pr.setText(void 0),za):(Pr.setText(void 0),Dn)}function Ii(g,re,Ve){var Dn=o(g);if(Dn.text=re,Ve===void 0||re===Ve)Dn.rawText=Ve;else{var rt=Ia(g,Ve);if(typeof rt=="object")return e.Debug.fail("Invalid raw text");e.Debug.assert(re===rt,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'."),Dn.rawText=Ve}return Dn}function ai(g,re){var Ve=Ii(15,g,re);return Ve.text=g,Ve}e.createTemplateHead=ai;function hi(g,re){var Ve=Ii(16,g,re);return Ve.text=g,Ve}e.createTemplateMiddle=hi;function Xe(g,re){var Ve=Ii(17,g,re);return Ve.text=g,Ve}e.createTemplateTail=Xe;function qn(g,re){var Ve=Ii(14,g,re);return Ve}e.createNoSubstitutionTemplateLiteral=qn;function ge(g,re){var Ve=o(211);return Ve.asteriskToken=g&&g.kind===41?g:void 0,Ve.expression=g&&g.kind!==41?g:re,Ve}e.createYield=ge;function hn(g,re,Ve){return g.expression!==Ve||g.asteriskToken!==re?M(ge(re,Ve),g):g}e.updateYield=hn;function Hn(g){var re=o(212);return re.expression=e.parenthesizeExpressionForList(g),re}e.createSpread=Hn;function de(g,re){return g.expression!==re?M(Hn(re),g):g}e.updateSpread=de;function rn(g,re,Ve,Dn,rt){var p=o(213);return p.decorators=void 0,p.modifiers=Pa(g),p.name=zi(re),p.typeParameters=Pa(Ve),p.heritageClauses=Pa(Dn),p.members=qe(rt),p}e.createClassExpression=rn;function kn(g,re,Ve,Dn,rt,p){return g.modifiers!==re||g.name!==Ve||g.typeParameters!==Dn||g.heritageClauses!==rt||g.members!==p?M(rn(re,Ve,Dn,rt,p),g):g}e.updateClassExpression=kn;function Qn(){return o(214)}e.createOmittedExpression=Qn;function lt(g,re){var Ve=o(215);return Ve.expression=e.parenthesizeForAccess(re),Ve.typeArguments=Pa(g),Ve}e.createExpressionWithTypeArguments=lt;function Ft(g,re,Ve){return g.typeArguments!==re||g.expression!==Ve?M(lt(re,Ve),g):g}e.updateExpressionWithTypeArguments=Ft;function on(g,re){var Ve=o(216);return Ve.expression=g,Ve.type=re,Ve}e.createAsExpression=on;function kr(g,re,Ve){return g.expression!==re||g.type!==Ve?M(on(re,Ve),g):g}e.updateAsExpression=kr;function fa(g){var re=o(217);return re.expression=e.parenthesizeForAccess(g),re}e.createNonNullExpression=fa;function Wa(g,re){return g.expression!==re?M(fa(re),g):g}e.updateNonNullExpression=Wa;function to(g,re){var Ve=o(218);return Ve.keywordToken=g,Ve.name=re,Ve}e.createMetaProperty=to;function ha(g,re){return g.name!==re?M(to(g.keywordToken,re),g):g}e.updateMetaProperty=ha;function Yo(g,re){var Ve=o(220);return Ve.expression=g,Ve.literal=re,Ve}e.createTemplateSpan=Yo;function ko(g,re,Ve){return g.expression!==re||g.literal!==Ve?M(Yo(re,Ve),g):g}e.updateTemplateSpan=ko;function ks(){return o(221)}e.createSemicolonClassElement=ks;function Rs(g,re){var Ve=o(222);return Ve.statements=qe(g),re&&(Ve.multiLine=re),Ve}e.createBlock=Rs;function ml(g,re){return g.statements!==re?M(Rs(re,g.multiLine),g):g}e.updateBlock=ml;function Fs(g,re){var Ve=o(224);return Ve.decorators=void 0,Ve.modifiers=Pa(g),Ve.declarationList=e.isArray(re)?bo(re):re,Ve}e.createVariableStatement=Fs;function Il(g,re,Ve){return g.modifiers!==re||g.declarationList!==Ve?M(Fs(re,Ve),g):g}e.updateVariableStatement=Il;function $o(){return o(223)}e.createEmptyStatement=$o;function hl(g){var re=o(225);return re.expression=e.parenthesizeExpressionForExpressionStatement(g),re}e.createExpressionStatement=hl;function Ul(g,re){return g.expression!==re?M(hl(re),g):g}e.updateExpressionStatement=Ul,e.createStatement=hl,e.updateStatement=Ul;function gl(g,re,Ve){var Dn=o(226);return Dn.expression=g,Dn.thenStatement=cs(re),Dn.elseStatement=cs(Ve),Dn}e.createIf=gl;function po(g,re,Ve,Dn){return g.expression!==re||g.thenStatement!==Ve||g.elseStatement!==Dn?M(gl(re,Ve,Dn),g):g}e.updateIf=po;function Cs(g,re){var Ve=o(227);return Ve.statement=cs(g),Ve.expression=re,Ve}e.createDo=Cs;function Ds(g,re,Ve){return g.statement!==re||g.expression!==Ve?M(Cs(re,Ve),g):g}e.updateDo=Ds;function _s(g,re){var Ve=o(228);return Ve.expression=g,Ve.statement=cs(re),Ve}e.createWhile=_s;function yl(g,re,Ve){return g.expression!==re||g.statement!==Ve?M(_s(re,Ve),g):g}e.updateWhile=yl;function Ks(g,re,Ve,Dn){var rt=o(229);return rt.initializer=g,rt.condition=re,rt.incrementor=Ve,rt.statement=cs(Dn),rt}e.createFor=Ks;function qs(g,re,Ve,Dn,rt){return g.initializer!==re||g.condition!==Ve||g.incrementor!==Dn||g.statement!==rt?M(Ks(re,Ve,Dn,rt),g):g}e.updateFor=qs;function $s(g,re,Ve){var Dn=o(230);return Dn.initializer=g,Dn.expression=re,Dn.statement=cs(Ve),Dn}e.createForIn=$s;function el(g,re,Ve,Dn){return g.initializer!==re||g.expression!==Ve||g.statement!==Dn?M($s(re,Ve,Dn),g):g}e.updateForIn=el;function nl(g,re,Ve,Dn){var rt=o(231);return rt.awaitModifier=g,rt.initializer=re,rt.expression=e.isCommaSequence(Ve)?Gi(Ve):Ve,rt.statement=cs(Dn),rt}e.createForOf=nl;function Fn(g,re,Ve,Dn,rt){return g.awaitModifier!==re||g.initializer!==Ve||g.expression!==Dn||g.statement!==rt?M(nl(re,Ve,Dn,rt),g):g}e.updateForOf=Fn;function Yn(g){var re=o(232);return re.label=zi(g),re}e.createContinue=Yn;function gt(g,re){return g.label!==re?M(Yn(re),g):g}e.updateContinue=gt;function tt(g){var re=o(233);return re.label=zi(g),re}e.createBreak=tt;function Xt(g,re){return g.label!==re?M(tt(re),g):g}e.updateBreak=Xt;function _r(g){var re=o(234);return re.expression=g,re}e.createReturn=_r;function Kr(g,re){return g.expression!==re?M(_r(re),g):g}e.updateReturn=Kr;function Dr(g,re){var Ve=o(235);return Ve.expression=g,Ve.statement=cs(re),Ve}e.createWith=Dr;function Ir(g,re,Ve){return g.expression!==re||g.statement!==Ve?M(Dr(re,Ve),g):g}e.updateWith=Ir;function Mr(g,re){var Ve=o(236);return Ve.expression=e.parenthesizeExpressionForList(g),Ve.caseBlock=re,Ve}e.createSwitch=Mr;function Er(g,re,Ve){return g.expression!==re||g.caseBlock!==Ve?M(Mr(re,Ve),g):g}e.updateSwitch=Er;function pa(g,re){var Ve=o(237);return Ve.label=zi(g),Ve.statement=cs(re),Ve}e.createLabel=pa;function Ca(g,re,Ve){return g.label!==re||g.statement!==Ve?M(pa(re,Ve),g):g}e.updateLabel=Ca;function Ma(g){var re=o(238);return re.expression=g,re}e.createThrow=Ma;function gi(g,re){return g.expression!==re?M(Ma(re),g):g}e.updateThrow=gi;function vo(g,re,Ve){var Dn=o(239);return Dn.tryBlock=g,Dn.catchClause=re,Dn.finallyBlock=Ve,Dn}e.createTry=vo;function di(g,re,Ve,Dn){return g.tryBlock!==re||g.catchClause!==Ve||g.finallyBlock!==Dn?M(vo(re,Ve,Dn),g):g}e.updateTry=di;function Lo(){return o(240)}e.createDebuggerStatement=Lo;function Ki(g,re,Ve){var Dn=o(241);return Dn.name=zi(g),Dn.type=re,Dn.initializer=Ve!==void 0?e.parenthesizeExpressionForList(Ve):void 0,Dn}e.createVariableDeclaration=Ki;function xn(g,re,Ve,Dn){return g.name!==re||g.type!==Ve||g.initializer!==Dn?M(Ki(re,Ve,Dn),g):g}e.updateVariableDeclaration=xn;function bo(g,re){re===void 0&&(re=0);var Ve=o(242);return Ve.flags|=re&3,Ve.declarations=qe(g),Ve}e.createVariableDeclarationList=bo;function Fo(g,re){return g.declarations!==re?M(bo(re,g.flags),g):g}e.updateVariableDeclarationList=Fo;function Ho(g,re,Ve,Dn,rt,p,Ue,Nn){var vt=o(243);return vt.decorators=Pa(g),vt.modifiers=Pa(re),vt.asteriskToken=Ve,vt.name=zi(Dn),vt.typeParameters=Pa(rt),vt.parameters=qe(p),vt.type=Ue,vt.body=Nn,vt}e.createFunctionDeclaration=Ho;function Ga(g,re,Ve,Dn,rt,p,Ue,Nn,vt){return g.decorators!==re||g.modifiers!==Ve||g.asteriskToken!==Dn||g.name!==rt||g.typeParameters!==p||g.parameters!==Ue||g.type!==Nn||g.body!==vt?M(Ho(re,Ve,Dn,rt,p,Ue,Nn,vt),g):g}e.updateFunctionDeclaration=Ga;function vs(g,re,Ve,Dn,rt,p){var Ue=o(244);return Ue.decorators=Pa(g),Ue.modifiers=Pa(re),Ue.name=zi(Ve),Ue.typeParameters=Pa(Dn),Ue.heritageClauses=Pa(rt),Ue.members=qe(p),Ue}e.createClassDeclaration=vs;function me(g,re,Ve,Dn,rt,p,Ue){return g.decorators!==re||g.modifiers!==Ve||g.name!==Dn||g.typeParameters!==rt||g.heritageClauses!==p||g.members!==Ue?M(vs(re,Ve,Dn,rt,p,Ue),g):g}e.updateClassDeclaration=me;function En(g,re,Ve,Dn,rt,p){var Ue=o(245);return Ue.decorators=Pa(g),Ue.modifiers=Pa(re),Ue.name=zi(Ve),Ue.typeParameters=Pa(Dn),Ue.heritageClauses=Pa(rt),Ue.members=qe(p),Ue}e.createInterfaceDeclaration=En;function Zn(g,re,Ve,Dn,rt,p,Ue){return g.decorators!==re||g.modifiers!==Ve||g.name!==Dn||g.typeParameters!==rt||g.heritageClauses!==p||g.members!==Ue?M(En(re,Ve,Dn,rt,p,Ue),g):g}e.updateInterfaceDeclaration=Zn;function Gt(g,re,Ve,Dn,rt){var p=o(246);return p.decorators=Pa(g),p.modifiers=Pa(re),p.name=zi(Ve),p.typeParameters=Pa(Dn),p.type=rt,p}e.createTypeAliasDeclaration=Gt;function vr(g,re,Ve,Dn,rt,p){return g.decorators!==re||g.modifiers!==Ve||g.name!==Dn||g.typeParameters!==rt||g.type!==p?M(Gt(re,Ve,Dn,rt,p),g):g}e.updateTypeAliasDeclaration=vr;function ga(g,re,Ve,Dn){var rt=o(247);return rt.decorators=Pa(g),rt.modifiers=Pa(re),rt.name=zi(Ve),rt.members=qe(Dn),rt}e.createEnumDeclaration=ga;function ii(g,re,Ve,Dn,rt){return g.decorators!==re||g.modifiers!==Ve||g.name!==Dn||g.members!==rt?M(ga(re,Ve,Dn,rt),g):g}e.updateEnumDeclaration=ii;function qa(g,re,Ve,Dn,rt){rt===void 0&&(rt=0);var p=o(248);return p.flags|=rt&(16|4|1024),p.decorators=Pa(g),p.modifiers=Pa(re),p.name=Ve,p.body=Dn,p}e.createModuleDeclaration=qa;function wi(g,re,Ve,Dn,rt){return g.decorators!==re||g.modifiers!==Ve||g.name!==Dn||g.body!==rt?M(qa(re,Ve,Dn,rt,g.flags),g):g}e.updateModuleDeclaration=wi;function eo(g){var re=o(249);return re.statements=qe(g),re}e.createModuleBlock=eo;function na(g,re){return g.statements!==re?M(eo(re),g):g}e.updateModuleBlock=na;function Lr(g){var re=o(250);return re.clauses=qe(g),re}e.createCaseBlock=Lr;function Eo(g,re){return g.clauses!==re?M(Lr(re),g):g}e.updateCaseBlock=Eo;function Uo(g){var re=o(251);return re.name=zi(g),re}e.createNamespaceExportDeclaration=Uo;function tl(g,re){return g.name!==re?M(Uo(re),g):g}e.updateNamespaceExportDeclaration=tl;function Qo(g,re,Ve,Dn){var rt=o(252);return rt.decorators=Pa(g),rt.modifiers=Pa(re),rt.name=zi(Ve),rt.moduleReference=Dn,rt}e.createImportEqualsDeclaration=Qo;function lo(g,re,Ve,Dn,rt){return g.decorators!==re||g.modifiers!==Ve||g.name!==Dn||g.moduleReference!==rt?M(Qo(re,Ve,Dn,rt),g):g}e.updateImportEqualsDeclaration=lo;function Os(g,re,Ve,Dn){var rt=o(253);return rt.decorators=Pa(g),rt.modifiers=Pa(re),rt.importClause=Ve,rt.moduleSpecifier=Dn,rt}e.createImportDeclaration=Os;function Gs(g,re,Ve,Dn,rt){return g.decorators!==re||g.modifiers!==Ve||g.importClause!==Dn||g.moduleSpecifier!==rt?M(Os(re,Ve,Dn,rt),g):g}e.updateImportDeclaration=Gs;function Nc(g,re){var Ve=o(254);return Ve.name=g,Ve.namedBindings=re,Ve}e.createImportClause=Nc;function _l(g,re,Ve){return g.name!==re||g.namedBindings!==Ve?M(Nc(re,Ve),g):g}e.updateImportClause=_l;function gc(g){var re=o(255);return re.name=g,re}e.createNamespaceImport=gc;function Ql(g,re){return g.name!==re?M(gc(re),g):g}e.updateNamespaceImport=Ql;function rl(g){var re=o(256);return re.elements=qe(g),re}e.createNamedImports=rl;function Js(g,re){return g.elements!==re?M(rl(re),g):g}e.updateNamedImports=Js;function Oc(g,re){var Ve=o(257);return Ve.propertyName=g,Ve.name=re,Ve}e.createImportSpecifier=Oc;function au(g,re,Ve){return g.propertyName!==re||g.name!==Ve?M(Oc(re,Ve),g):g}e.updateImportSpecifier=au;function Pc(g,re,Ve,Dn){var rt=o(258);return rt.decorators=Pa(g),rt.modifiers=Pa(re),rt.isExportEquals=Ve,rt.expression=Ve?e.parenthesizeBinaryOperand(62,Dn,!1,void 0):e.parenthesizeDefaultExpression(Dn),rt}e.createExportAssignment=Pc;function iu(g,re,Ve,Dn){return g.decorators!==re||g.modifiers!==Ve||g.expression!==Dn?M(Pc(re,Ve,g.isExportEquals,Dn),g):g}e.updateExportAssignment=iu;function Zl(g,re,Ve,Dn){var rt=o(259);return rt.decorators=Pa(g),rt.modifiers=Pa(re),rt.exportClause=Ve,rt.moduleSpecifier=Dn,rt}e.createExportDeclaration=Zl;function zs(g,re,Ve,Dn,rt){return g.decorators!==re||g.modifiers!==Ve||g.exportClause!==Dn||g.moduleSpecifier!==rt?M(Zl(re,Ve,Dn,rt),g):g}e.updateExportDeclaration=zs;function Mc(){return Zl(void 0,void 0,Nl([]),void 0)}e.createEmptyExports=Mc;function Nl(g){var re=o(260);return re.elements=qe(g),re}e.createNamedExports=Nl;function bs(g,re){return g.elements!==re?M(Nl(re),g):g}e.updateNamedExports=bs;function Rc(g,re){var Ve=o(261);return Ve.propertyName=zi(g),Ve.name=zi(re),Ve}e.createExportSpecifier=Rc;function $l(g,re,Ve){return g.propertyName!==re||g.name!==Ve?M(Rc(re,Ve),g):g}e.updateExportSpecifier=$l;function yc(g){var re=o(263);return re.expression=g,re}e.createExternalModuleReference=yc;function ou(g,re){return g.expression!==re?M(yc(re),g):g}e.updateExternalModuleReference=ou;function Lu(g){var re=o(292);return re.type=g,re}e.createJSDocTypeExpression=Lu;function su(g,re){var Ve=_c(313,"type");return Ve.typeExpression=g,Ve.comment=re,Ve}e.createJSDocTypeTag=su;function lu(g,re){var Ve=_c(311,"returns");return Ve.typeExpression=g,Ve.comment=re,Ve}e.createJSDocReturnTag=lu;function cu(g){var re=_c(312,"this");return re.typeExpression=g,re}e.createJSDocThisTag=cu;function Fc(g,re,Ve,Dn){var rt=_c(310,"param");return rt.typeExpression=Ve,rt.name=g,rt.isBracketed=re,rt.comment=Dn,rt}e.createJSDocParamTag=Fc;function Gc(g,re){var Ve=o(301);return Ve.comment=g,Ve.tags=re,Ve}e.createJSDocComment=Gc;function _c(g,re){var Ve=o(g);return Ve.tagName=Oe(re),Ve}function Bc(g,re,Ve){var Dn=o(264);return Dn.openingElement=g,Dn.children=qe(re),Dn.closingElement=Ve,Dn}e.createJsxElement=Bc;function uu(g,re,Ve,Dn){return g.openingElement!==re||g.children!==Ve||g.closingElement!==Dn?M(Bc(re,Ve,Dn),g):g}e.updateJsxElement=uu;function du(g,re,Ve){var Dn=o(265);return Dn.tagName=g,Dn.typeArguments=Pa(re),Dn.attributes=Ve,Dn}e.createJsxSelfClosingElement=du;function ec(g,re,Ve,Dn){return g.tagName!==re||g.typeArguments!==Ve||g.attributes!==Dn?M(du(re,Ve,Dn),g):g}e.updateJsxSelfClosingElement=ec;function Vc(g,re,Ve){var Dn=o(266);return Dn.tagName=g,Dn.typeArguments=Pa(re),Dn.attributes=Ve,Dn}e.createJsxOpeningElement=Vc;function al(g,re,Ve,Dn){return g.tagName!==re||g.typeArguments!==Ve||g.attributes!==Dn?M(Vc(re,Ve,Dn),g):g}e.updateJsxOpeningElement=al;function Xs(g){var re=o(267);return re.tagName=g,re}e.createJsxClosingElement=Xs;function s(g,re){return g.tagName!==re?M(Xs(re),g):g}e.updateJsxClosingElement=s;function b(g,re,Ve){var Dn=o(268);return Dn.openingFragment=g,Dn.children=qe(re),Dn.closingFragment=Ve,Dn}e.createJsxFragment=b;function V(g,re){var Ve=o(11);return Ve.text=g,Ve.containsOnlyTriviaWhiteSpaces=!!re,Ve}e.createJsxText=V;function Me(g,re,Ve){return g.text!==re||g.containsOnlyTriviaWhiteSpaces!==Ve?M(V(re,Ve),g):g}e.updateJsxText=Me;function an(){return o(269)}e.createJsxOpeningFragment=an;function mn(){return o(270)}e.createJsxJsxClosingFragment=mn;function zn(g,re,Ve,Dn){return g.openingFragment!==re||g.children!==Ve||g.closingFragment!==Dn?M(b(re,Ve,Dn),g):g}e.updateJsxFragment=zn;function kt(g,re){var Ve=o(271);return Ve.name=g,Ve.initializer=re,Ve}e.createJsxAttribute=kt;function Pt(g,re,Ve){return g.name!==re||g.initializer!==Ve?M(kt(re,Ve),g):g}e.updateJsxAttribute=Pt;function It(g){var re=o(272);return re.properties=qe(g),re}e.createJsxAttributes=It;function fr(g,re){return g.properties!==re?M(It(re),g):g}e.updateJsxAttributes=fr;function hr(g){var re=o(273);return re.expression=g,re}e.createJsxSpreadAttribute=hr;function $r(g,re){return g.expression!==re?M(hr(re),g):g}e.updateJsxSpreadAttribute=$r;function ba(g,re){var Ve=o(274);return Ve.dotDotDotToken=g,Ve.expression=re,Ve}e.createJsxExpression=ba;function ra(g,re){return g.expression!==re?M(ba(g.dotDotDotToken,re),g):g}e.updateJsxExpression=ra;function Ba(g,re){var Ve=o(275);return Ve.expression=e.parenthesizeExpressionForList(g),Ve.statements=qe(re),Ve}e.createCaseClause=Ba;function Ai(g,re,Ve){return g.expression!==re||g.statements!==Ve?M(Ba(re,Ve),g):g}e.updateCaseClause=Ai;function $a(g){var re=o(276);return re.statements=qe(g),re}e.createDefaultClause=$a;function ki(g,re){return g.statements!==re?M($a(re),g):g}e.updateDefaultClause=ki;function Qr(g,re){var Ve=o(277);return Ve.token=g,Ve.types=qe(re),Ve}e.createHeritageClause=Qr;function ia(g,re){return g.types!==re?M(Qr(g.token,re),g):g}e.updateHeritageClause=ia;function oa(g,re){var Ve=o(278);return Ve.variableDeclaration=e.isString(g)?Ki(g):g,Ve.block=re,Ve}e.createCatchClause=oa;function sa(g,re,Ve){return g.variableDeclaration!==re||g.block!==Ve?M(oa(re,Ve),g):g}e.updateCatchClause=sa;function Da(g,re){var Ve=o(279);return Ve.name=zi(g),Ve.questionToken=void 0,Ve.initializer=e.parenthesizeExpressionForList(re),Ve}e.createPropertyAssignment=Da;function Ha(g,re,Ve){return g.name!==re||g.initializer!==Ve?M(Da(re,Ve),g):g}e.updatePropertyAssignment=Ha;function ti(g,re){var Ve=o(280);return Ve.name=zi(g),Ve.objectAssignmentInitializer=re!==void 0?e.parenthesizeExpressionForList(re):void 0,Ve}e.createShorthandPropertyAssignment=ti;function Qi(g,re,Ve){return g.name!==re||g.objectAssignmentInitializer!==Ve?M(ti(re,Ve),g):g}e.updateShorthandPropertyAssignment=Qi;function Za(g){var re=o(281);return re.expression=e.parenthesizeExpressionForList(g),re}e.createSpreadAssignment=Za;function Ls(g,re){return g.expression!==re?M(Za(re),g):g}e.updateSpreadAssignment=Ls;function zr(g,re){var Ve=o(282);return Ve.name=zi(g),Ve.initializer=re&&e.parenthesizeExpressionForList(re),Ve}e.createEnumMember=zr;function Zt(g,re,Ve){return g.name!==re||g.initializer!==Ve?M(zr(re,Ve),g):g}e.updateEnumMember=Zt;function Ps(g,re,Ve,Dn,rt,p,Ue){if(g.statements!==re||Ve!==void 0&&g.isDeclarationFile!==Ve||Dn!==void 0&&g.referencedFiles!==Dn||rt!==void 0&&g.typeReferenceDirectives!==rt||Ue!==void 0&&g.libReferenceDirectives!==Ue||p!==void 0&&g.hasNoDefaultLib!==p){var Nn=o(288);return Nn.flags|=g.flags,Nn.statements=qe(re),Nn.endOfFileToken=g.endOfFileToken,Nn.fileName=g.fileName,Nn.path=g.path,Nn.text=g.text,Nn.isDeclarationFile=Ve===void 0?g.isDeclarationFile:Ve,Nn.referencedFiles=Dn===void 0?g.referencedFiles:Dn,Nn.typeReferenceDirectives=rt===void 0?g.typeReferenceDirectives:rt,Nn.hasNoDefaultLib=p===void 0?g.hasNoDefaultLib:p,Nn.libReferenceDirectives=Ue===void 0?g.libReferenceDirectives:Ue,g.amdDependencies!==void 0&&(Nn.amdDependencies=g.amdDependencies),g.moduleName!==void 0&&(Nn.moduleName=g.moduleName),g.languageVariant!==void 0&&(Nn.languageVariant=g.languageVariant),g.renamedDependencies!==void 0&&(Nn.renamedDependencies=g.renamedDependencies),g.languageVersion!==void 0&&(Nn.languageVersion=g.languageVersion),g.scriptKind!==void 0&&(Nn.scriptKind=g.scriptKind),g.externalModuleIndicator!==void 0&&(Nn.externalModuleIndicator=g.externalModuleIndicator),g.commonJsModuleIndicator!==void 0&&(Nn.commonJsModuleIndicator=g.commonJsModuleIndicator),g.identifiers!==void 0&&(Nn.identifiers=g.identifiers),g.nodeCount!==void 0&&(Nn.nodeCount=g.nodeCount),g.identifierCount!==void 0&&(Nn.identifierCount=g.identifierCount),g.symbolCount!==void 0&&(Nn.symbolCount=g.symbolCount),g.parseDiagnostics!==void 0&&(Nn.parseDiagnostics=g.parseDiagnostics),g.bindDiagnostics!==void 0&&(Nn.bindDiagnostics=g.bindDiagnostics),g.bindSuggestionDiagnostics!==void 0&&(Nn.bindSuggestionDiagnostics=g.bindSuggestionDiagnostics),g.lineMap!==void 0&&(Nn.lineMap=g.lineMap),g.classifiableNames!==void 0&&(Nn.classifiableNames=g.classifiableNames),g.resolvedModules!==void 0&&(Nn.resolvedModules=g.resolvedModules),g.resolvedTypeReferenceDirectiveNames!==void 0&&(Nn.resolvedTypeReferenceDirectiveNames=g.resolvedTypeReferenceDirectiveNames),g.imports!==void 0&&(Nn.imports=g.imports),g.moduleAugmentations!==void 0&&(Nn.moduleAugmentations=g.moduleAugmentations),g.pragmas!==void 0&&(Nn.pragmas=g.pragmas),g.localJsxFactory!==void 0&&(Nn.localJsxFactory=g.localJsxFactory),g.localJsxNamespace!==void 0&&(Nn.localJsxNamespace=g.localJsxNamespace),M(Nn,g)}return g}e.updateSourceFileNode=Ps;function zu(g){var re=Ee(g);return re.pos=g.pos,re.end=g.end,re.parent=g.parent,re}e.getMutableClone=zu;function fd(g){var re=o(318);return re.original=g,Qs(re,g),re}e.createNotEmittedStatement=fd;function Iu(g){var re=o(322);return re.emitNode={},re.original=g,re}e.createEndOfDeclarationMarker=Iu;function vc(g){var re=o(321);return re.emitNode={},re.original=g,re}e.createMergeDeclarationMarker=vc;function nc(g,re){var Ve=o(319);return Ve.expression=g,Ve.original=re,Qs(Ve,re),Ve}e.createPartiallyEmittedExpression=nc;function cr(g,re){return g.expression!==re?M(nc(re,g.original),g):g}e.updatePartiallyEmittedExpression=cr;function jo(g){if(e.nodeIsSynthesized(g)&&!e.isParseTreeNode(g)&&!g.original&&!g.emitNode&&!g.id){if(g.kind===320)return g.elements;if(e.isBinaryExpression(g)&&g.operatorToken.kind===27)return[g.left,g.right]}return g}function ya(g){var re=o(320);return re.elements=qe(e.sameFlatMap(g,jo)),re}e.createCommaList=ya;function Io(g,re){return g.elements!==re?M(ya(re),g):g}e.updateCommaList=Io;function tc(g,re){var Ve=o(323);return Ve.expression=g,Ve.thisArg=re,Ve}e.createSyntheticReferenceExpression=tc;function os(g,re,Ve){return g.expression!==re||g.thisArg!==Ve?M(tc(re,Ve),g):g}e.updateSyntheticReferenceExpression=os;function ar(g,re){re===void 0&&(re=e.emptyArray);var Ve=e.createNode(289);return Ve.prepends=re,Ve.sourceFiles=g,Ve}e.createBundle=ar;var il;function Go(){return il||(il=e.arrayToMap([e.valuesHelper,e.readHelper,e.spreadHelper,e.spreadArraysHelper,e.restHelper,e.decorateHelper,e.metadataHelper,e.paramHelper,e.awaiterHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.extendsHelper,e.templateObjectHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper],function(g){return g.name}))}function Es(){var g=e.createNode(290);return g.prologues=e.emptyArray,g.referencedFiles=e.emptyArray,g.libReferenceDirectives=e.emptyArray,g.getLineAndCharacterOfPosition=function(re){return e.getLineAndCharacterOfPosition(g,re)},g}function mo(g,re,Ve){var Dn=Es(),rt,p;if(e.isString(g))Dn.fileName="",Dn.text=g,Dn.sourceMapPath=re,Dn.sourceMapText=Ve;else if(e.Debug.assert(re==="js"||re==="dts"),Dn.fileName=(re==="js"?g.javascriptPath:g.declarationPath)||"",Dn.sourceMapPath=re==="js"?g.javascriptMapPath:g.declarationMapPath,Object.defineProperties(Dn,{text:{get:function(){return re==="js"?g.javascriptText:g.declarationText}},sourceMapText:{get:function(){return re==="js"?g.javascriptMapText:g.declarationMapText}}}),g.buildInfo&&g.buildInfo.bundle&&(Dn.oldFileOfCurrentEmit=g.oldFileOfCurrentEmit,e.Debug.assert(Ve===void 0||typeof Ve=="boolean"),rt=Ve,p=re==="js"?g.buildInfo.bundle.js:g.buildInfo.bundle.dts,Dn.oldFileOfCurrentEmit))return bc(Dn,e.Debug.assertDefined(p)),Dn;return e.Debug.assert(!Dn.oldFileOfCurrentEmit),No(Dn,p,rt),Dn}e.createUnparsedSourceFile=mo;function No(g,re,Ve){for(var Dn,rt,p,Ue,Nn,vt,Sr=0,Zr=re?re.sections:e.emptyArray;Sr<Zr.length;Sr++){var aa=Zr[Sr];switch(aa.kind){case"prologue":(Dn||(Dn=[])).push(Ts(aa,g));break;case"emitHelpers":(rt||(rt=[])).push(Go().get(aa.data));break;case"no-default-lib":g.hasNoDefaultLib=!0;break;case"reference":(p||(p=[])).push({pos:-1,end:-1,fileName:aa.data});break;case"type":(Ue||(Ue=[])).push(aa.data);break;case"lib":(Nn||(Nn=[])).push({pos:-1,end:-1,fileName:aa.data});break;case"prepend":for(var fi=Ts(aa,g),W=void 0,fn=0,Un=aa.texts;fn<Un.length;fn++){var Et=Un[fn];(!Ve||Et.kind!=="internal")&&(W||(W=[])).push(Ts(Et,g))}fi.texts=W||e.emptyArray,(vt||(vt=[])).push(fi);break;case"internal":if(Ve){vt||(vt=[]);break}case"text":(vt||(vt=[])).push(Ts(aa,g));break;default:e.Debug.assertNever(aa)}}g.prologues=Dn||e.emptyArray,g.helpers=rt,g.referencedFiles=p||e.emptyArray,g.typeReferenceDirectives=Ue,g.libReferenceDirectives=Nn||e.emptyArray,g.texts=vt||[Ts({kind:"text",pos:0,end:g.text.length},g)]}function bc(g,re){e.Debug.assert(!!g.oldFileOfCurrentEmit);for(var Ve,Dn,rt=0,p=re.sections;rt<p.length;rt++){var Ue=p[rt];switch(Ue.kind){case"internal":case"text":(Ve||(Ve=[])).push(Ts(Ue,g));break;case"no-default-lib":case"reference":case"type":case"lib":(Dn||(Dn=[])).push(fu(Ue,g));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(Ue)}}return g.texts=Ve||e.emptyArray,g.helpers=e.map(re.sources&&re.sources.helpers,function(Nn){return Go().get(Nn)}),g.syntheticReferences=Dn,g}function ts(g){switch(g){case"prologue":return 283;case"prepend":return 284;case"internal":return 286;case"text":return 285;case"emitHelpers":case"no-default-lib":case"reference":case"type":case"lib":return e.Debug.fail("BundleFileSectionKind: "+g+" not yet mapped to SyntaxKind");default:return e.Debug.assertNever(g)}}function Ts(g,re){var Ve=e.createNode(ts(g.kind),g.pos,g.end);return Ve.parent=re,Ve.data=g.data,Ve}function fu(g,re){var Ve=e.createNode(287,g.pos,g.end);return Ve.parent=re,Ve.data=g.data,Ve.section=g,Ve}function jl(g,re,Ve,Dn,rt,p,Ue,Nn,vt,Sr,Zr){var aa=e.createNode(291);if(e.isString(g))aa.javascriptText=g,aa.javascriptMapPath=Ve,aa.javascriptMapText=Dn,aa.declarationText=re,aa.declarationMapPath=rt,aa.declarationMapText=p,aa.javascriptPath=Ue,aa.declarationPath=Nn,aa.buildInfoPath=vt,aa.buildInfo=Sr,aa.oldFileOfCurrentEmit=Zr;else{var fi=e.createMap(),W=function(pr){if(pr===void 0)return;var Xr=fi.get(pr);return Xr===void 0&&(Xr=g(pr),fi.set(pr,Xr!==void 0?Xr:!1)),Xr!==!1?Xr:void 0},fn=function(pr){var Xr=W(pr);return Xr!==void 0?Xr:"/* Input file "+pr+` was missing */\r
|
|
|
`},Un,Et=function(pr){if(Un===void 0){var Xr=pr();Un=Xr!==void 0?e.getBuildInfo(Xr):!1}return Un||void 0};aa.javascriptPath=re,aa.javascriptMapPath=Ve,aa.declarationPath=e.Debug.assertDefined(Dn),aa.declarationMapPath=rt,aa.buildInfoPath=p,Object.defineProperties(aa,{javascriptText:{get:function(){return fn(re)}},javascriptMapText:{get:function(){return W(Ve)}},declarationText:{get:function(){return fn(e.Debug.assertDefined(Dn))}},declarationMapText:{get:function(){return W(rt)}},buildInfo:{get:function(){return Et(function(){return W(p)})}}})}return aa}e.createInputFiles=jl;function Uc(g,re,Ve){return Ve===void 0&&(Ve=e.emptyArray),g.sourceFiles!==re||g.prepends!==Ve?ar(re,Ve):g}e.updateBundle=Uc;function Ec(g,re,Ve){return Oi(Ro(void 0,void 0,void 0,void 0,re?[re]:[],void 0,Rs(g,!0)),void 0,Ve?[Ve]:[])}e.createImmediatelyInvokedFunctionExpression=Ec;function Tc(g,re,Ve){return Oi(_o(void 0,void 0,re?[re]:[],void 0,void 0,Rs(g,!0)),void 0,Ve?[Ve]:[])}e.createImmediatelyInvokedArrowFunction=Tc;function Sc(g,re){return vn(g,27,re)}e.createComma=Sc;function rc(g,re){return vn(g,29,re)}e.createLessThan=rc;function ac(g,re){return vn(g,62,re)}e.createAssignment=ac;function vl(g,re){return vn(g,36,re)}e.createStrictEquality=vl;function Ys(g,re){return vn(g,37,re)}e.createStrictInequality=Ys;function Ol(g,re){return vn(g,39,re)}e.createAdd=Ol;function wa(g,re){return vn(g,40,re)}e.createSubtract=wa;function Bs(g){return da(g,45)}e.createPostfixIncrement=Bs;function qt(g,re){return vn(g,55,re)}e.createLogicalAnd=qt;function bl(g,re){return vn(g,56,re)}e.createLogicalOr=bl;function Co(g,re){return vn(g,60,re)}e.createNullishCoalesce=Co;function pu(g){return Li(53,g)}e.createLogicalNot=pu;function ic(){return _a(Ge(0))}e.createVoidZero=ic;function Wl(g){return Pc(void 0,void 0,!1,g)}e.createExportDefault=Wl;function Xu(g){return Zl(void 0,void 0,Nl([Rc(void 0,g)]))}e.createExternalModuleExport=Xu;function zi(g){return e.isString(g)?Oe(g):g}function Hl(g){return typeof g=="string"?ee(g):typeof g=="number"?Be(""+g):typeof g=="boolean"?g?se():G():g}function Pa(g){return g?qe(g):void 0}function xc(g){return typeof g=="number"?X(g):g}function cs(g){return g&&e.isNotEmittedStatement(g)?Qs(cc($o(),g),g):g}function Vs(g){g=e.getSourceFileOfNode(e.getParseTreeNode(g));var re=g&&g.emitNode,Ve=re&&re.annotatedNodes;if(Ve)for(var Dn=0,rt=Ve;Dn<rt.length;Dn++){var p=rt[Dn];p.emitNode=void 0}}e.disposeEmitNodes=Vs;function es(g){if(!g.emitNode){if(e.isParseTreeNode(g)){if(g.kind===288)return g.emitNode={annotatedNodes:[g]};var re=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(g)));es(re).annotatedNodes.push(g)}g.emitNode={}}return g.emitNode}e.getOrCreateEmitNode=es;function Yu(g){var re=es(g);return re.flags|=1536,re.leadingComments=void 0,re.trailingComments=void 0,g}e.removeAllComments=Yu;function Qs(g,re){return re&&(g.pos=re.pos,g.end=re.end),g}e.setTextRange=Qs;function oc(g,re){return es(g).flags=re,g}e.setEmitFlags=oc;function pd(g,re){var Ve=es(g);return Ve.flags=Ve.flags|re,g}e.addEmitFlags=pd;function Kl(g){var re=g.emitNode;return re&&re.sourceMapRange||g}e.getSourceMapRange=Kl;function sc(g,re){return es(g).sourceMapRange=re,g}e.setSourceMapRange=sc;var Qu;function Zo(g,re,Ve){return new(Qu||(Qu=e.objectAllocator.getSourceMapSourceConstructor()))(g,re,Ve)}e.createSourceMapSource=Zo;function md(g,re){var Ve=g.emitNode,Dn=Ve&&Ve.tokenSourceMapRanges;return Dn&&Dn[re]}e.getTokenSourceMapRange=md;function Bi(g,re,Ve){var Dn=es(g),rt=Dn.tokenSourceMapRanges||(Dn.tokenSourceMapRanges=[]);return rt[re]=Ve,g}e.setTokenSourceMapRange=Bi;function Nu(g){var re=g.emitNode;return re&&re.startsOnNewLine}e.getStartsOnNewLine=Nu;function Zu(g,re){return es(g).startsOnNewLine=re,g}e.setStartsOnNewLine=Zu;function jc(g){var re=g.emitNode;return re&&re.commentRange||g}e.getCommentRange=jc;function Wc(g,re){return es(g).commentRange=re,g}e.setCommentRange=Wc;function mu(g){var re=g.emitNode;return re&&re.leadingComments}e.getSyntheticLeadingComments=mu;function Hc(g,re){return es(g).leadingComments=re,g}e.setSyntheticLeadingComments=Hc;function $u(g,re,Ve,Dn){return Hc(g,e.append(mu(g),{kind:re,pos:-1,end:-1,hasTrailingNewLine:Dn,text:Ve}))}e.addSyntheticLeadingComment=$u;function Pl(g){var re=g.emitNode;return re&&re.trailingComments}e.getSyntheticTrailingComments=Pl;function Ml(g,re){return es(g).trailingComments=re,g}e.setSyntheticTrailingComments=Ml;function ql(g,re,Ve,Dn){return Ml(g,e.append(Pl(g),{kind:re,pos:-1,end:-1,hasTrailingNewLine:Dn,text:Ve}))}e.addSyntheticTrailingComment=ql;function lc(g,re){Hc(g,mu(re)),Ml(g,Pl(re));var Ve=es(re);return Ve.leadingComments=void 0,Ve.trailingComments=void 0,g}e.moveSyntheticComments=lc;function Ou(g){var re=g.emitNode;return re&&re.constantValue}e.getConstantValue=Ou;function ol(g,re){var Ve=es(g);return Ve.constantValue=re,g}e.setConstantValue=ol;function ed(g,re){var Ve=es(g);return Ve.helpers=e.append(Ve.helpers,re),g}e.addEmitHelper=ed;function nd(g,re){if(e.some(re))for(var Ve=es(g),Dn=0,rt=re;Dn<rt.length;Dn++){var p=rt[Dn];Ve.helpers=e.appendIfUnique(Ve.helpers,p)}return g}e.addEmitHelpers=nd;function hu(g,re){var Ve=g.emitNode;if(Ve){var Dn=Ve.helpers;if(Dn)return e.orderedRemoveItem(Dn,re)}return!1}e.removeEmitHelper=hu;function hd(g){var re=g.emitNode;return re&&re.helpers}e.getEmitHelpers=hd;function Pd(g,re,Ve){var Dn=g.emitNode,rt=Dn&&Dn.helpers;if(!e.some(rt))return;for(var p=es(re),Ue=0,Nn=0;Nn<rt.length;Nn++){var vt=rt[Nn];Ve(vt)?(Ue++,p.helpers=e.appendIfUnique(p.helpers,vt)):Ue>0&&(rt[Nn-Ue]=vt)}Ue>0&&(rt.length-=Ue)}e.moveEmitHelpers=Pd;function Md(g,re){return g===re||g.priority===re.priority?0:g.priority===void 0?1:re.priority===void 0?-1:e.compareValues(g.priority,re.priority)}e.compareEmitHelpers=Md;function cc(g,re){if(g.original=re,re){var Ve=re.emitNode;Ve&&(g.emitNode=Rd(Ve,g.emitNode))}return g}e.setOriginalNode=cc;function Rd(g,re){var Ve=g.flags,Dn=g.leadingComments,rt=g.trailingComments,p=g.commentRange,Ue=g.sourceMapRange,Nn=g.tokenSourceMapRanges,vt=g.constantValue,Sr=g.helpers,Zr=g.startsOnNewLine;return re||(re={}),Dn&&(re.leadingComments=e.addRange(Dn.slice(),re.leadingComments)),rt&&(re.trailingComments=e.addRange(rt.slice(),re.trailingComments)),Ve&&(re.flags=Ve),p&&(re.commentRange=p),Ue&&(re.sourceMapRange=Ue),Nn&&(re.tokenSourceMapRanges=Pu(Nn,re.tokenSourceMapRanges)),vt!==void 0&&(re.constantValue=vt),Sr&&(re.helpers=e.addRange(re.helpers,Sr)),Zr!==void 0&&(re.startsOnNewLine=Zr),re}function Pu(g,re){re||(re=[]);for(var Ve in g)re[Ve]=g[Ve];return re}})(sn||(sn={})),function(e){e.nullTransformationContext={enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:e.returnUndefined,getCompilerOptions:e.notImplemented,getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,addDiagnostic:e.noop};function o(Ie,Ce){return Ce==="undefined"?e.createStrictEquality(Ie,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(Ie),e.createLiteral(Ce))}e.createTypeCheck=o;function M(Ie,Ce,_n){if(e.isComputedPropertyName(Ce))return e.setTextRange(e.createElementAccess(Ie,Ce.expression),_n);var yt=e.setTextRange(e.isIdentifier(Ce)?e.createPropertyAccess(Ie,Ce):e.createElementAccess(Ie,Ce),Ce);return e.getOrCreateEmitNode(yt).flags|=64,yt}e.createMemberAccessForPropertyName=M;function qe(Ie,Ce,_n,yt){return e.setTextRange(e.createCall(e.createPropertyAccess(Ie,"call"),void 0,Tr([Ce],_n)),yt)}e.createFunctionCall=qe;function Ee(Ie,Ce,_n,yt){return e.setTextRange(e.createCall(e.createPropertyAccess(Ie,"apply"),void 0,[Ce,_n]),yt)}e.createFunctionApply=Ee;function Ge(Ie,Ce){var _n=[];return Ce!==void 0&&_n.push(typeof Ce=="number"?e.createLiteral(Ce):Ce),e.createCall(e.createPropertyAccess(Ie,"slice"),void 0,_n)}e.createArraySlice=Ge;function Be(Ie,Ce){return e.createCall(e.createPropertyAccess(Ie,"concat"),void 0,Ce)}e.createArrayConcat=Be;function he(Ie,Ce,_n){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[Ie,Ce]),_n)}e.createMathPow=he;function ee(Ie,Ce){var _n=e.createIdentifier(Ie||"React");return _n.flags&=~8,_n.parent=e.getParseTreeNode(Ce),_n}function f(Ie,Ce){if(e.isQualifiedName(Ie)){var _n=f(Ie.left,Ce),yt=e.createIdentifier(e.idText(Ie.right));return yt.escapedText=Ie.right.escapedText,e.createPropertyAccess(_n,yt)}else return ee(e.idText(Ie),Ce)}function J(Ie,Ce,_n){return Ie?f(Ie,_n):e.createPropertyAccess(ee(Ce,_n),"createElement")}function Oe(Ie,Ce,_n,yt,Dt,Ht,$t){var wr=[_n];if(yt&&wr.push(yt),Dt&&Dt.length>0)if(yt||wr.push(e.createNull()),Dt.length>1)for(var Yr=0,Hr=Dt;Yr<Hr.length;Yr++){var mt=Hr[Yr];Tn(mt),wr.push(mt)}else wr.push(Dt[0]);return e.setTextRange(e.createCall(J(Ie,Ce,Ht),void 0,wr),$t)}e.createExpressionForJsxElement=Oe;function N(Ie,Ce,_n,yt,Dt){var Ht=e.createPropertyAccess(ee(Ce,yt),"Fragment"),$t=[Ht];if($t.push(e.createNull()),_n&&_n.length>0)if(_n.length>1)for(var wr=0,Yr=_n;wr<Yr.length;wr++){var Hr=Yr[wr];Tn(Hr),$t.push(Hr)}else $t.push(_n[0]);return e.setTextRange(e.createCall(J(Ie,Ce,yt),void 0,$t),Dt)}e.createExpressionForJsxFragment=N;function Te(Ie){return e.setEmitFlags(e.createIdentifier(Ie),4096|2)}e.getUnscopedHelperName=Te,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.");
|
|
|
};`};function ie(Ie,Ce,_n){return Ie.requestEmitHelper(e.valuesHelper),e.setTextRange(e.createCall(Te("__values"),void 0,[Ce]),_n)}e.createValuesHelper=ie,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;
|
|
|
};`};function ce(Ie,Ce,_n,yt){return Ie.requestEmitHelper(e.readHelper),e.setTextRange(e.createCall(Te("__read"),void 0,_n!==void 0?[Ce,e.createLiteral(_n)]:[Ce]),yt)}e.createReadHelper=ce,e.spreadHelper={name:"typescript:spread",importName:"__spread",scoped:!1,text:`
|
|
|
var __spread = (this && this.__spread) || function () {
|
|
|
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
|
return ar;
|
|
|
};`};function x(Ie,Ce,_n){return Ie.requestEmitHelper(e.readHelper),Ie.requestEmitHelper(e.spreadHelper),e.setTextRange(e.createCall(Te("__spread"),void 0,Ce),_n)}e.createSpreadHelper=x,e.spreadArraysHelper={name:"typescript:spreadArrays",importName:"__spreadArrays",scoped:!1,text:`
|
|
|
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
|
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
|
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
|
r[k] = a[j];
|
|
|
return r;
|
|
|
};`};function C(Ie,Ce,_n){return Ie.requestEmitHelper(e.spreadArraysHelper),e.setTextRange(e.createCall(Te("__spreadArrays"),void 0,Ce),_n)}e.createSpreadArraysHelper=C;function P(Ie,Ce){if(e.isVariableDeclarationList(Ie)){var _n=e.first(Ie.declarations),yt=e.updateVariableDeclaration(_n,_n.name,void 0,Ce);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(Ie,[yt])),Ie)}else{var Dt=e.setTextRange(e.createAssignment(Ie,Ce),Ie);return e.setTextRange(e.createStatement(Dt),Ie)}}e.createForOfBindingStatement=P;function h(Ie,Ce){return e.isBlock(Ie)?e.updateBlock(Ie,e.setTextRange(e.createNodeArray(Tr([Ce],Ie.statements)),Ie.statements)):e.createBlock(e.createNodeArray([Ie,Ce]),!0)}e.insertLeadingStatement=h;function X(Ie,Ce,_n){if(!Ce)return Ie;var yt=e.updateLabel(Ce,Ce.label,Ce.statement.kind===237?X(Ie,Ce.statement):Ie);return _n&&_n(Ce),yt}e.restoreEnclosingLabel=X;function $(Ie,Ce){var _n=e.skipParentheses(Ie);switch(_n.kind){case 75:return Ce;case 103:case 8:case 9:case 10:return!1;case 191:var yt=_n.elements;return!(yt.length===0);case 192:return _n.properties.length>0;default:return!0}}function Q(Ie,Ce,_n,yt){yt===void 0&&(yt=!1);var Dt=L(Ie,7),Ht,$t;if(e.isSuperProperty(Dt))Ht=e.createThis(),$t=Dt;else if(Dt.kind===101)Ht=e.createThis(),$t=_n<2?e.setTextRange(e.createIdentifier("_super"),Dt):Dt;else if(e.getEmitFlags(Dt)&4096)Ht=e.createVoidZero(),$t=Ze(Dt);else switch(Dt.kind){case 193:{$(Dt.expression,yt)?(Ht=e.createTempVariable(Ce),$t=e.createPropertyAccess(e.setTextRange(e.createAssignment(Ht,Dt.expression),Dt.expression),Dt.name),e.setTextRange($t,Dt)):(Ht=Dt.expression,$t=Dt);break}case 194:{$(Dt.expression,yt)?(Ht=e.createTempVariable(Ce),$t=e.createElementAccess(e.setTextRange(e.createAssignment(Ht,Dt.expression),Dt.expression),Dt.argumentExpression),e.setTextRange($t,Dt)):(Ht=Dt.expression,$t=Dt);break}default:{Ht=e.createVoidZero(),$t=Ze(Ie);break}}return{target:$t,thisArg:Ht}}e.createCallBinding=Q;function z(Ie){return Ie.length>10?e.createCommaList(Ie):e.reduceLeft(Ie,e.createComma)}e.inlineExpressions=z;function se(Ie){if(e.isQualifiedName(Ie)){var Ce=se(Ie.left),_n=e.getMutableClone(Ie.right);return e.setTextRange(e.createPropertyAccess(Ce,_n),Ie)}else return e.getMutableClone(Ie)}e.createExpressionFromEntityName=se;function G(Ie){return e.isIdentifier(Ie)?e.createLiteral(Ie):e.isComputedPropertyName(Ie)?e.getMutableClone(Ie.expression):e.getMutableClone(Ie)}e.createExpressionForPropertyName=G;function H(Ie,Ce,_n){switch(Ce.kind){case 162:case 163:return q(Ie.properties,Ce,_n,!!Ie.multiLine);case 279:return be(Ce,_n);case 280:return R(Ce,_n);case 160:return K(Ce,_n)}}e.createExpressionForObjectLiteralElementLike=H;function q(Ie,Ce,_n,yt){var Dt=e.getAllAccessorDeclarations(Ie,Ce),Ht=Dt.firstAccessor,$t=Dt.getAccessor,wr=Dt.setAccessor;if(Ce===Ht){var Yr=[];if($t){var Hr=e.createFunctionExpression($t.modifiers,void 0,void 0,void 0,$t.parameters,void 0,$t.body);e.setTextRange(Hr,$t),e.setOriginalNode(Hr,$t);var mt=e.createPropertyAssignment("get",Hr);Yr.push(mt)}if(wr){var va=e.createFunctionExpression(wr.modifiers,void 0,void 0,void 0,wr.parameters,void 0,wr.body);e.setTextRange(va,wr),e.setOriginalNode(va,wr);var Lt=e.createPropertyAssignment("set",va);Yr.push(Lt)}Yr.push(e.createPropertyAssignment("enumerable",e.createTrue())),Yr.push(e.createPropertyAssignment("configurable",e.createTrue()));var Wn=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[_n,G(Ce.name),e.createObjectLiteral(Yr,yt)]),Ht);return e.aggregateTransformFlags(Wn)}return}function be(Ie,Ce){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(M(Ce,Ie.name,Ie.name),Ie.initializer),Ie),Ie))}function R(Ie,Ce){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(M(Ce,Ie.name,Ie.name),e.getSynthesizedClone(Ie.name)),Ie),Ie))}function K(Ie,Ce){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(M(Ce,Ie.name,Ie.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(Ie.modifiers,Ie.asteriskToken,void 0,void 0,Ie.parameters,void 0,Ie.body),Ie),Ie)),Ie),Ie))}function m(Ie,Ce,_n){return T(Ie,Ce,_n,16384|32768)}e.getInternalName=m;function _(Ie){return(e.getEmitFlags(Ie)&32768)!==0}e.isInternalName=_;function I(Ie,Ce,_n){return T(Ie,Ce,_n,16384)}e.getLocalName=I;function D(Ie){return(e.getEmitFlags(Ie)&16384)!==0}e.isLocalName=D;function y(Ie,Ce,_n){return T(Ie,Ce,_n,8192)}e.getExportName=y;function E(Ie){return(e.getEmitFlags(Ie)&8192)!==0}e.isExportName=E;function k(Ie,Ce,_n){return T(Ie,Ce,_n)}e.getDeclarationName=k;function T(Ie,Ce,_n,yt){yt===void 0&&(yt=0);var Dt=e.getNameOfDeclaration(Ie);if(Dt&&e.isIdentifier(Dt)&&!e.isGeneratedIdentifier(Dt)){var Ht=e.getMutableClone(Dt);return yt|=e.getEmitFlags(Dt),_n||(yt|=48),Ce||(yt|=1536),yt&&e.setEmitFlags(Ht,yt),Ht}return e.getGeneratedNameForNode(Ie)}function ne(Ie,Ce,_n,yt){return Ie&&e.hasModifier(Ce,1)?O(Ie,T(Ce),_n,yt):y(Ce,_n,yt)}e.getExternalModuleOrNamespaceExportName=ne;function O(Ie,Ce,_n,yt){var Dt=e.createPropertyAccess(Ie,e.nodeIsSynthesized(Ce)?Ce:e.getSynthesizedClone(Ce));e.setTextRange(Dt,Ce);var Ht=0;return yt||(Ht|=48),_n||(Ht|=1536),Ht&&e.setEmitFlags(Dt,Ht),Dt}e.getNamespaceMemberName=O;function Y(Ie,Ce){return e.isBlock(Ie)?Ie:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(Ie),Ie)],Ce),Ie)}e.convertToFunctionBody=Y;function pe(Ie){if(!Ie.body)return e.Debug.fail();var Ce=e.createFunctionExpression(Ie.modifiers,Ie.asteriskToken,Ie.name,Ie.typeParameters,Ie.parameters,Ie.type,Ie.body);return e.setOriginalNode(Ce,Ie),e.setTextRange(Ce,Ie),e.getStartsOnNewLine(Ie)&&e.setStartsOnNewLine(Ce,!0),e.aggregateTransformFlags(Ce),Ce}e.convertFunctionDeclarationToExpression=pe;function S(Ie){return e.isStringLiteral(Ie.expression)&&Ie.expression.text==="use strict"}function v(Ie,Ce,_n,yt){var Dt=U(Ie,Ce,_n);return ue(Ie,Ce,Dt,yt)}e.addPrologue=v;function U(Ie,Ce,_n){e.Debug.assert(Ie.length===0,"Prologue directives should be at the first statement in the target statements array");for(var yt=!1,Dt=0,Ht=Ce.length;Dt<Ht;){var $t=Ce[Dt];if(e.isPrologueDirective($t))S($t)&&(yt=!0),Ie.push($t);else break;Dt++}return _n&&!yt&&Ie.push(Tn(e.createStatement(e.createLiteral("use strict")))),Dt}e.addStandardPrologue=U;function ue(Ie,Ce,_n,yt){for(var Dt=Ce.length;_n!==void 0&&_n<Dt;){var Ht=Ce[_n];if(e.getEmitFlags(Ht)&1048576)e.append(Ie,yt?e.visitNode(Ht,yt,e.isStatement):Ht);else break;_n++}return _n}e.addCustomPrologue=ue;function De(Ie){for(var Ce=0,_n=Ie;Ce<_n.length;Ce++){var yt=_n[Ce];if(e.isPrologueDirective(yt)){if(S(yt))return yt}else break}return}e.findUseStrictPrologue=De;function Z(Ie){var Ce=e.firstOrUndefined(Ie);return Ce!==void 0&&e.isPrologueDirective(Ce)&&S(Ce)}e.startsWithUseStrict=Z;function Re(Ie){var Ce=De(Ie);return Ce?Ie:e.setTextRange(e.createNodeArray(Tr([Tn(e.createStatement(e.createLiteral("use strict")))],Ie)),Ie)}e.ensureUseStrict=Re;function we(Ie,Ce,_n,yt){var Dt=e.skipPartiallyEmittedExpressions(Ce);return Dt.kind===199?Ce:He(Ie,Ce,_n,yt)?e.createParen(Ce):Ce}e.parenthesizeBinaryOperand=we;function He(Ie,Ce,_n,yt){var Dt=e.getOperatorPrecedence(208,Ie),Ht=e.getOperatorAssociativity(208,Ie),$t=e.skipPartiallyEmittedExpressions(Ce);if(!_n&&Ce.kind===201&&Dt>3)return!0;var wr=e.getExpressionPrecedence($t);switch(e.compareValues(wr,Dt)){case-1:return!(!_n&&Ht===1&&Ce.kind===211);case 1:return!1;case 0:if(_n)return Ht===1;if(e.isBinaryExpression($t)&&$t.operatorToken.kind===Ie){if(ve(Ie))return!1;if(Ie===39){var Yr=yt?je(yt):0;if(e.isLiteralKind(Yr)&&Yr===je($t))return!1}}var Hr=e.getExpressionAssociativity($t);return Hr===0}}function ve(Ie){return Ie===41||Ie===51||Ie===50||Ie===52}function je(Ie){if(Ie=e.skipPartiallyEmittedExpressions(Ie),e.isLiteralKind(Ie.kind))return Ie.kind;if(Ie.kind===208&&Ie.operatorToken.kind===39){if(Ie.cachedLiteralKind!==void 0)return Ie.cachedLiteralKind;var Ce=je(Ie.left),_n=e.isLiteralKind(Ce)&&Ce===je(Ie.right)?Ce:0;return Ie.cachedLiteralKind=_n,_n}return 0}function w(Ie){var Ce=e.getOperatorPrecedence(209,57),_n=e.skipPartiallyEmittedExpressions(Ie),yt=e.getExpressionPrecedence(_n);return e.compareValues(yt,Ce)!==1?e.createParen(Ie):Ie}e.parenthesizeForConditionalHead=w;function j(Ie){var Ce=e.skipPartiallyEmittedExpressions(Ie);return ke(Ce)?e.createParen(Ie):Ie}e.parenthesizeSubexpressionOfConditionalExpression=j;function Pe(Ie){var Ce=e.skipPartiallyEmittedExpressions(Ie),_n=ke(Ce);if(!_n)switch(ln(Ce,!1).kind){case 213:case 200:_n=!0}return _n?e.createParen(Ie):Ie}e.parenthesizeDefaultExpression=Pe;function a(Ie){var Ce=ln(Ie,!0);switch(Ce.kind){case 195:return e.createParen(Ie);case 196:return Ce.arguments?Ie:e.createParen(Ie)}return Ze(Ie)}e.parenthesizeForNew=a;function Ze(Ie){var Ce=e.skipPartiallyEmittedExpressions(Ie);return e.isLeftHandSideExpression(Ce)&&(Ce.kind!==196||Ce.arguments)?Ie:e.setTextRange(e.createParen(Ie),Ie)}e.parenthesizeForAccess=Ze;function In(Ie){return e.isLeftHandSideExpression(Ie)?Ie:e.setTextRange(e.createParen(Ie),Ie)}e.parenthesizePostfixOperand=In;function et(Ie){return e.isUnaryExpression(Ie)?Ie:e.setTextRange(e.createParen(Ie),Ie)}e.parenthesizePrefixOperand=et;function ae(Ie){for(var Ce,_n=0;_n<Ie.length;_n++){var yt=fe(Ie[_n]);(Ce!==void 0||yt!==Ie[_n])&&(Ce===void 0&&(Ce=Ie.slice(0,_n)),Ce.push(yt))}return Ce!==void 0?e.setTextRange(e.createNodeArray(Ce,Ie.hasTrailingComma),Ie):Ie}e.parenthesizeListElements=ae;function fe(Ie){var Ce=e.skipPartiallyEmittedExpressions(Ie),_n=e.getExpressionPrecedence(Ce),yt=e.getOperatorPrecedence(208,27);return _n>yt?Ie:e.setTextRange(e.createParen(Ie),Ie)}e.parenthesizeExpressionForList=fe;function Le(Ie){var Ce=e.skipPartiallyEmittedExpressions(Ie);if(e.isCallExpression(Ce)){var _n=Ce.expression,yt=e.skipPartiallyEmittedExpressions(_n).kind;if(yt===200||yt===201){var Dt=e.getMutableClone(Ce);return Dt.expression=e.setTextRange(e.createParen(_n),_n),ze(Ie,Dt,4)}}var Ht=ln(Ce,!1).kind;return Ht===192||Ht===200?e.setTextRange(e.createParen(Ie),Ie):Ie}e.parenthesizeExpressionForExpressionStatement=Le;function Je(Ie){return Ie.kind===179?e.createParenthesizedType(Ie):Ie}e.parenthesizeConditionalTypeMember=Je;function $e(Ie){switch(Ie.kind){case 177:case 178:case 169:case 170:return e.createParenthesizedType(Ie)}return Je(Ie)}e.parenthesizeElementTypeMember=$e;function Fe(Ie){switch(Ie.kind){case 171:case 183:case 180:return e.createParenthesizedType(Ie)}return $e(Ie)}e.parenthesizeArrayTypeMember=Fe;function cn(Ie){return e.createNodeArray(e.sameMap(Ie,$e))}e.parenthesizeElementTypeMembers=cn;function Qe(Ie){if(e.some(Ie)){for(var Ce=[],_n=0;_n<Ie.length;++_n){var yt=Ie[_n];Ce.push(_n===0&&e.isFunctionOrConstructorTypeNode(yt)&&yt.typeParameters?e.createParenthesizedType(yt):yt)}return e.createNodeArray(Ce)}}e.parenthesizeTypeParameters=Qe;function ln(Ie,Ce){for(;;){switch(Ie.kind){case 207:Ie=Ie.operand;continue;case 208:Ie=Ie.left;continue;case 209:Ie=Ie.condition;continue;case 197:Ie=Ie.tag;continue;case 195:if(Ce)return Ie;case 216:case 194:case 193:case 217:case 319:Ie=Ie.expression;continue}return Ie}}e.getLeftmostExpression=ln;function ye(Ie){return!e.isBlock(Ie)&&(ke(Ie)||ln(Ie,!1).kind===192)?e.setTextRange(e.createParen(Ie),Ie):Ie}e.parenthesizeConciseBody=ye;function ke(Ie){return Ie.kind===208&&Ie.operatorToken.kind===27||Ie.kind===320}e.isCommaSequence=ke;var F;(function(Ie){Ie[Ie.Parentheses=1]="Parentheses",Ie[Ie.Assertions=2]="Assertions",Ie[Ie.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",Ie[Ie.All=7]="All"})(F=e.OuterExpressionKinds||(e.OuterExpressionKinds={}));function c(Ie,Ce){Ce===void 0&&(Ce=7);switch(Ie.kind){case 199:return(Ce&1)!==0;case 198:case 216:case 217:return(Ce&2)!==0;case 319:return(Ce&4)!==0}return!1}e.isOuterExpression=c;function L(Ie,Ce){Ce===void 0&&(Ce=7);var _n;do _n=Ie,Ce&1&&(Ie=e.skipParentheses(Ie)),Ce&2&&(Ie=te(Ie)),Ce&4&&(Ie=e.skipPartiallyEmittedExpressions(Ie));while(_n!==Ie);return Ie}e.skipOuterExpressions=L;function te(Ie){for(;e.isAssertionExpression(Ie)||Ie.kind===217;)Ie=Ie.expression;return Ie}e.skipAssertions=te;function Se(Ie,Ce){switch(Ie.kind){case 199:return e.updateParen(Ie,Ce);case 198:return e.updateTypeAssertion(Ie,Ie.type,Ce);case 216:return e.updateAsExpression(Ie,Ce,Ie.type);case 217:return e.updateNonNullExpression(Ie,Ce);case 319:return e.updatePartiallyEmittedExpression(Ie,Ce)}}function Ne(Ie){return Ie.kind===199&&e.nodeIsSynthesized(Ie)&&e.nodeIsSynthesized(e.getSourceMapRange(Ie))&&e.nodeIsSynthesized(e.getCommentRange(Ie))&&!e.some(e.getSyntheticLeadingComments(Ie))&&!e.some(e.getSyntheticTrailingComments(Ie))}function ze(Ie,Ce,_n){return _n===void 0&&(_n=7),Ie&&c(Ie,_n)&&!Ne(Ie)?Se(Ie,ze(Ie.expression,Ce)):Ce}e.recreateOuterExpressions=ze;function Tn(Ie){return e.setStartsOnNewLine(Ie,!0)}e.startOnNewLine=Tn;function wn(Ie){var Ce=e.getOriginalNode(Ie,e.isSourceFile),_n=Ce&&Ce.emitNode;return _n&&_n.externalHelpersModuleName}e.getExternalHelpersModuleName=wn;function jn(Ie){var Ce=e.getOriginalNode(Ie,e.isSourceFile),_n=Ce&&Ce.emitNode;return!!_n&&(!!_n.externalHelpersModuleName||!!_n.externalHelpers)}e.hasRecordedExternalHelpers=jn;function nn(Ie,Ce,_n,yt,Dt){if(Ce.importHelpers&&e.isEffectiveExternalModule(Ie,Ce)){var Ht=void 0,$t=e.getEmitModuleKind(Ce);if($t>=e.ModuleKind.ES2015&&$t<=e.ModuleKind.ESNext){var wr=e.getEmitHelpers(Ie);if(wr){for(var Yr=[],Hr=0,mt=wr;Hr<mt.length;Hr++){var va=mt[Hr];if(!va.scoped){var Lt=va.importName;Lt&&e.pushIfUnique(Yr,Lt)}}if(e.some(Yr)){Yr.sort(e.compareStringsCaseSensitive),Ht=e.createNamedImports(e.map(Yr,function(ht){return e.isFileLevelUniqueName(Ie,ht)?e.createImportSpecifier(void 0,e.createIdentifier(ht)):e.createImportSpecifier(e.createIdentifier(ht),Te(ht))}));var Wn=e.getOriginalNode(Ie,e.isSourceFile),Vt=e.getOrCreateEmitNode(Wn);Vt.externalHelpers=!0}}}else{var pt=pn(Ie,Ce,_n,yt||Dt);pt&&(Ht=e.createNamespaceImport(pt))}if(Ht){var Tt=e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,Ht),e.createLiteral(e.externalHelpersModuleNameText));return e.addEmitFlags(Tt,67108864),Tt}}}e.createExternalHelpersImportDeclarationIfNeeded=nn;function pn(Ie,Ce,_n,yt){if(Ce.importHelpers&&e.isEffectiveExternalModule(Ie,Ce)){var Dt=wn(Ie);if(Dt)return Dt;var Ht=e.getEmitModuleKind(Ce),$t=(_n||Ce.esModuleInterop&&yt)&&Ht!==e.ModuleKind.System&&Ht!==e.ModuleKind.ES2015&&Ht!==e.ModuleKind.ESNext;if(!$t){var wr=e.getEmitHelpers(Ie);if(wr)for(var Yr=0,Hr=wr;Yr<Hr.length;Yr++){var mt=Hr[Yr];if(!mt.scoped){$t=!0;break}}}if($t){var va=e.getOriginalNode(Ie,e.isSourceFile),Lt=e.getOrCreateEmitNode(va);return Lt.externalHelpersModuleName||(Lt.externalHelpersModuleName=e.createUniqueName(e.externalHelpersModuleNameText))}}}e.getOrCreateExternalHelpersModuleNameIfNeeded=pn;function le(Ie,Ce){var _n=e.getNamespaceDeclarationNode(Ie);if(_n&&!e.isDefaultImport(Ie)){var yt=_n.name;return e.isGeneratedIdentifier(yt)?yt:e.createIdentifier(e.getSourceTextOfNodeFromSourceFile(Ce,yt)||e.idText(yt))}return Ie.kind===253&&Ie.importClause||Ie.kind===259&&Ie.moduleSpecifier?e.getGeneratedNameForNode(Ie):void 0}e.getLocalNameForExternalImport=le;function oe(Ie,Ce,_n,yt,Dt){var Ht=e.getExternalModuleName(Ie);return Ht.kind===10?_e(Ie,_n,yt,Dt)||Cn(Ht,Ce)||e.getSynthesizedClone(Ht):void 0}e.getExternalModuleNameLiteral=oe;function Cn(Ie,Ce){var _n=Ce.renamedDependencies&&Ce.renamedDependencies.get(Ie.text);return _n&&e.createLiteral(_n)}function yn(Ie,Ce,_n){return Ie?Ie.moduleName?e.createLiteral(Ie.moduleName):!Ie.isDeclarationFile&&(_n.out||_n.outFile)?e.createLiteral(e.getExternalModuleNameFromPath(Ce,Ie.fileName)):void 0:void 0}e.tryGetModuleNameFromFile=yn;function _e(Ie,Ce,_n,yt){return yn(_n.getExternalModuleFileFromDeclaration(Ie),Ce,yt)}function dn(Ie){if(e.isDeclarationBindingElement(Ie))return Ie.initializer;if(e.isPropertyAssignment(Ie)){var Ce=Ie.initializer;return e.isAssignmentExpression(Ce,!0)?Ce.right:void 0}if(e.isShorthandPropertyAssignment(Ie))return Ie.objectAssignmentInitializer;if(e.isAssignmentExpression(Ie,!0))return Ie.right;if(e.isSpreadElement(Ie))return dn(Ie.expression)}e.getInitializerOfBindingOrAssignmentElement=dn;function un(Ie){if(e.isDeclarationBindingElement(Ie))return Ie.name;if(e.isObjectLiteralElementLike(Ie)){switch(Ie.kind){case 279:return un(Ie.initializer);case 280:return Ie.name;case 281:return un(Ie.expression)}return}return e.isAssignmentExpression(Ie,!0)?un(Ie.left):e.isSpreadElement(Ie)?un(Ie.expression):Ie}e.getTargetOfBindingOrAssignmentElement=un;function Rn(Ie){switch(Ie.kind){case 155:case 190:return Ie.dotDotDotToken;case 212:case 281:return Ie}return}e.getRestIndicatorOfBindingOrAssignmentElement=Rn;function at(Ie){switch(Ie.kind){case 190:if(Ie.propertyName){var Ce=Ie.propertyName;return e.isComputedPropertyName(Ce)&&Bn(Ce.expression)?Ce.expression:Ce}break;case 279:if(Ie.name){var Ce=Ie.name;return e.isComputedPropertyName(Ce)&&Bn(Ce.expression)?Ce.expression:Ce}break;case 281:return Ie.name}var _n=un(Ie);if(_n&&e.isPropertyName(_n))return e.isComputedPropertyName(_n)&&Bn(_n.expression)?_n.expression:_n;e.Debug.fail("Invalid property name for binding element.")}e.getPropertyNameOfBindingOrAssignmentElement=at;function Bn(Ie){var Ce=Ie.kind;return Ce===10||Ce===8}function ut(Ie){switch(Ie.kind){case 188:case 189:case 191:return Ie.elements;case 192:return Ie.properties}}e.getElementsOfBindingOrAssignmentPattern=ut;function ct(Ie){if(e.isBindingElement(Ie)){if(Ie.dotDotDotToken)return e.Debug.assertNode(Ie.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpread(Ie.name),Ie),Ie);var Ce=Kn(Ie.name);return Ie.initializer?e.setOriginalNode(e.setTextRange(e.createAssignment(Ce,Ie.initializer),Ie),Ie):Ce}return e.Debug.assertNode(Ie,e.isExpression),Ie}e.convertToArrayAssignmentElement=ct;function ot(Ie){if(e.isBindingElement(Ie)){if(Ie.dotDotDotToken)return e.Debug.assertNode(Ie.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpreadAssignment(Ie.name),Ie),Ie);if(Ie.propertyName){var Ce=Kn(Ie.name);return e.setOriginalNode(e.setTextRange(e.createPropertyAssignment(Ie.propertyName,Ie.initializer?e.createAssignment(Ce,Ie.initializer):Ce),Ie),Ie)}return e.Debug.assertNode(Ie.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createShorthandPropertyAssignment(Ie.name,Ie.initializer),Ie),Ie)}return e.Debug.assertNode(Ie,e.isObjectLiteralElementLike),Ie}e.convertToObjectAssignmentElement=ot;function dt(Ie){switch(Ie.kind){case 189:case 191:return st(Ie);case 188:case 192:return Ct(Ie)}}e.convertToAssignmentPattern=dt;function Ct(Ie){return e.isObjectBindingPattern(Ie)?e.setOriginalNode(e.setTextRange(e.createObjectLiteral(e.map(Ie.elements,ot)),Ie),Ie):(e.Debug.assertNode(Ie,e.isObjectLiteralExpression),Ie)}e.convertToObjectAssignmentPattern=Ct;function st(Ie){return e.isArrayBindingPattern(Ie)?e.setOriginalNode(e.setTextRange(e.createArrayLiteral(e.map(Ie.elements,ct)),Ie),Ie):(e.Debug.assertNode(Ie,e.isArrayLiteralExpression),Ie)}e.convertToArrayAssignmentPattern=st;function Kn(Ie){return e.isBindingPattern(Ie)?dt(Ie):(e.Debug.assertNode(Ie,e.isExpression),Ie)}e.convertToAssignmentElementTarget=Kn}(sn||(sn={}));var sn;(function(e){var o=e.or(e.isTypeNode,e.isTypeParameterDeclaration);function M(f,J,Oe,N){if(f===void 0||J===void 0)return f;e.aggregateTransformFlags(f);var Te=J(f);if(Te===f)return f;var ie;return Te===void 0?void 0:(e.isArray(Te)?ie=(N||ee)(Te):ie=Te,e.Debug.assertNode(ie,Oe),e.aggregateTransformFlags(ie),ie)}e.visitNode=M;function qe(f,J,Oe,N,Te){if(f===void 0||J===void 0)return f;var ie,ce=f.length;(N===void 0||N<0)&&(N=0),(Te===void 0||Te>ce-N)&&(Te=ce-N),(N>0||Te<ce)&&(ie=e.createNodeArray([],f.hasTrailingComma&&N+Te===ce));for(var x=0;x<Te;x++){var C=f[x+N];e.aggregateTransformFlags(C);var P=C!==void 0?J(C):void 0;if((ie!==void 0||P===void 0||P!==C)&&(ie===void 0&&(ie=e.createNodeArray(f.slice(0,x),f.hasTrailingComma),e.setTextRange(ie,f)),P))if(e.isArray(P))for(var h=0,X=P;h<X.length;h++){var $=X[h];e.Debug.assertNode($,Oe),e.aggregateTransformFlags($),ie.push($)}else e.Debug.assertNode(P,Oe),e.aggregateTransformFlags(P),ie.push(P)}return ie||f}e.visitNodes=qe;function Ee(f,J,Oe,N,Te){return Oe.startLexicalEnvironment(),f=qe(f,J,e.isStatement,N),Te&&(f=e.ensureUseStrict(f)),e.mergeLexicalEnvironment(f,Oe.endLexicalEnvironment())}e.visitLexicalEnvironment=Ee;function Ge(f,J,Oe,N){N===void 0&&(N=qe),Oe.startLexicalEnvironment();var Te=N(f,J,e.isParameterDeclaration);return Oe.suspendLexicalEnvironment(),Te}e.visitParameterList=Ge;function Be(f,J,Oe){Oe.resumeLexicalEnvironment();var N=M(f,J,e.isConciseBody),Te=Oe.endLexicalEnvironment();if(e.some(Te)){var ie=e.convertToFunctionBody(N),ce=e.mergeLexicalEnvironment(ie.statements,Te);return e.updateBlock(ie,ce)}return N}e.visitFunctionBody=Be;function he(f,J,Oe,N,Te){if(N===void 0&&(N=qe),f===void 0)return;var ie=f.kind;if(ie>0&&ie<=151||ie===182)return f;switch(ie){case 75:return e.updateIdentifier(f,N(f.typeArguments,J,o));case 152:return e.updateQualifiedName(f,M(f.left,J,e.isEntityName),M(f.right,J,e.isIdentifier));case 153:return e.updateComputedPropertyName(f,M(f.expression,J,e.isExpression));case 154:return e.updateTypeParameterDeclaration(f,M(f.name,J,e.isIdentifier),M(f.constraint,J,e.isTypeNode),M(f.default,J,e.isTypeNode));case 155:return e.updateParameter(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),M(f.dotDotDotToken,Te,e.isToken),M(f.name,J,e.isBindingName),M(f.questionToken,Te,e.isToken),M(f.type,J,e.isTypeNode),M(f.initializer,J,e.isExpression));case 156:return e.updateDecorator(f,M(f.expression,J,e.isExpression));case 157:return e.updatePropertySignature(f,N(f.modifiers,J,e.isToken),M(f.name,J,e.isPropertyName),M(f.questionToken,Te,e.isToken),M(f.type,J,e.isTypeNode),M(f.initializer,J,e.isExpression));case 158:return e.updateProperty(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),M(f.name,J,e.isPropertyName),M(f.questionToken||f.exclamationToken,Te,e.isToken),M(f.type,J,e.isTypeNode),M(f.initializer,J,e.isExpression));case 159:return e.updateMethodSignature(f,N(f.typeParameters,J,e.isTypeParameterDeclaration),N(f.parameters,J,e.isParameterDeclaration),M(f.type,J,e.isTypeNode),M(f.name,J,e.isPropertyName),M(f.questionToken,Te,e.isToken));case 160:return e.updateMethod(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),M(f.asteriskToken,Te,e.isToken),M(f.name,J,e.isPropertyName),M(f.questionToken,Te,e.isToken),N(f.typeParameters,J,e.isTypeParameterDeclaration),Ge(f.parameters,J,Oe,N),M(f.type,J,e.isTypeNode),Be(f.body,J,Oe));case 161:return e.updateConstructor(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),Ge(f.parameters,J,Oe,N),Be(f.body,J,Oe));case 162:return e.updateGetAccessor(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),M(f.name,J,e.isPropertyName),Ge(f.parameters,J,Oe,N),M(f.type,J,e.isTypeNode),Be(f.body,J,Oe));case 163:return e.updateSetAccessor(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),M(f.name,J,e.isPropertyName),Ge(f.parameters,J,Oe,N),Be(f.body,J,Oe));case 164:return e.updateCallSignature(f,N(f.typeParameters,J,e.isTypeParameterDeclaration),N(f.parameters,J,e.isParameterDeclaration),M(f.type,J,e.isTypeNode));case 165:return e.updateConstructSignature(f,N(f.typeParameters,J,e.isTypeParameterDeclaration),N(f.parameters,J,e.isParameterDeclaration),M(f.type,J,e.isTypeNode));case 166:return e.updateIndexSignature(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),N(f.parameters,J,e.isParameterDeclaration),M(f.type,J,e.isTypeNode));case 167:return e.updateTypePredicateNodeWithModifier(f,M(f.assertsModifier,J),M(f.parameterName,J),M(f.type,J,e.isTypeNode));case 168:return e.updateTypeReferenceNode(f,M(f.typeName,J,e.isEntityName),N(f.typeArguments,J,e.isTypeNode));case 169:return e.updateFunctionTypeNode(f,N(f.typeParameters,J,e.isTypeParameterDeclaration),N(f.parameters,J,e.isParameterDeclaration),M(f.type,J,e.isTypeNode));case 170:return e.updateConstructorTypeNode(f,N(f.typeParameters,J,e.isTypeParameterDeclaration),N(f.parameters,J,e.isParameterDeclaration),M(f.type,J,e.isTypeNode));case 171:return e.updateTypeQueryNode(f,M(f.exprName,J,e.isEntityName));case 172:return e.updateTypeLiteralNode(f,N(f.members,J,e.isTypeElement));case 173:return e.updateArrayTypeNode(f,M(f.elementType,J,e.isTypeNode));case 174:return e.updateTupleTypeNode(f,N(f.elementTypes,J,e.isTypeNode));case 175:return e.updateOptionalTypeNode(f,M(f.type,J,e.isTypeNode));case 176:return e.updateRestTypeNode(f,M(f.type,J,e.isTypeNode));case 177:return e.updateUnionTypeNode(f,N(f.types,J,e.isTypeNode));case 178:return e.updateIntersectionTypeNode(f,N(f.types,J,e.isTypeNode));case 179:return e.updateConditionalTypeNode(f,M(f.checkType,J,e.isTypeNode),M(f.extendsType,J,e.isTypeNode),M(f.trueType,J,e.isTypeNode),M(f.falseType,J,e.isTypeNode));case 180:return e.updateInferTypeNode(f,M(f.typeParameter,J,e.isTypeParameterDeclaration));case 187:return e.updateImportTypeNode(f,M(f.argument,J,e.isTypeNode),M(f.qualifier,J,e.isEntityName),qe(f.typeArguments,J,e.isTypeNode),f.isTypeOf);case 181:return e.updateParenthesizedType(f,M(f.type,J,e.isTypeNode));case 183:return e.updateTypeOperatorNode(f,M(f.type,J,e.isTypeNode));case 184:return e.updateIndexedAccessTypeNode(f,M(f.objectType,J,e.isTypeNode),M(f.indexType,J,e.isTypeNode));case 185:return e.updateMappedTypeNode(f,M(f.readonlyToken,Te,e.isToken),M(f.typeParameter,J,e.isTypeParameterDeclaration),M(f.questionToken,Te,e.isToken),M(f.type,J,e.isTypeNode));case 186:return e.updateLiteralTypeNode(f,M(f.literal,J,e.isExpression));case 188:return e.updateObjectBindingPattern(f,N(f.elements,J,e.isBindingElement));case 189:return e.updateArrayBindingPattern(f,N(f.elements,J,e.isArrayBindingElement));case 190:return e.updateBindingElement(f,M(f.dotDotDotToken,Te,e.isToken),M(f.propertyName,J,e.isPropertyName),M(f.name,J,e.isBindingName),M(f.initializer,J,e.isExpression));case 191:return e.updateArrayLiteral(f,N(f.elements,J,e.isExpression));case 192:return e.updateObjectLiteral(f,N(f.properties,J,e.isObjectLiteralElementLike));case 193:return f.flags&32?e.updatePropertyAccessChain(f,M(f.expression,J,e.isExpression),M(f.questionDotToken,J,e.isToken),M(f.name,J,e.isIdentifier)):e.updatePropertyAccess(f,M(f.expression,J,e.isExpression),M(f.name,J,e.isIdentifier));case 194:return f.flags&32?e.updateElementAccessChain(f,M(f.expression,J,e.isExpression),M(f.questionDotToken,J,e.isToken),M(f.argumentExpression,J,e.isExpression)):e.updateElementAccess(f,M(f.expression,J,e.isExpression),M(f.argumentExpression,J,e.isExpression));case 195:return f.flags&32?e.updateCallChain(f,M(f.expression,J,e.isExpression),M(f.questionDotToken,J,e.isToken),N(f.typeArguments,J,e.isTypeNode),N(f.arguments,J,e.isExpression)):e.updateCall(f,M(f.expression,J,e.isExpression),N(f.typeArguments,J,e.isTypeNode),N(f.arguments,J,e.isExpression));case 196:return e.updateNew(f,M(f.expression,J,e.isExpression),N(f.typeArguments,J,e.isTypeNode),N(f.arguments,J,e.isExpression));case 197:return e.updateTaggedTemplate(f,M(f.tag,J,e.isExpression),qe(f.typeArguments,J,e.isExpression),M(f.template,J,e.isTemplateLiteral));case 198:return e.updateTypeAssertion(f,M(f.type,J,e.isTypeNode),M(f.expression,J,e.isExpression));case 199:return e.updateParen(f,M(f.expression,J,e.isExpression));case 200:return e.updateFunctionExpression(f,N(f.modifiers,J,e.isModifier),M(f.asteriskToken,Te,e.isToken),M(f.name,J,e.isIdentifier),N(f.typeParameters,J,e.isTypeParameterDeclaration),Ge(f.parameters,J,Oe,N),M(f.type,J,e.isTypeNode),Be(f.body,J,Oe));case 201:return e.updateArrowFunction(f,N(f.modifiers,J,e.isModifier),N(f.typeParameters,J,e.isTypeParameterDeclaration),Ge(f.parameters,J,Oe,N),M(f.type,J,e.isTypeNode),M(f.equalsGreaterThanToken,J,e.isToken),Be(f.body,J,Oe));case 202:return e.updateDelete(f,M(f.expression,J,e.isExpression));case 203:return e.updateTypeOf(f,M(f.expression,J,e.isExpression));case 204:return e.updateVoid(f,M(f.expression,J,e.isExpression));case 205:return e.updateAwait(f,M(f.expression,J,e.isExpression));case 206:return e.updatePrefix(f,M(f.operand,J,e.isExpression));case 207:return e.updatePostfix(f,M(f.operand,J,e.isExpression));case 208:return e.updateBinary(f,M(f.left,J,e.isExpression),M(f.right,J,e.isExpression),M(f.operatorToken,J,e.isToken));case 209:return e.updateConditional(f,M(f.condition,J,e.isExpression),M(f.questionToken,J,e.isToken),M(f.whenTrue,J,e.isExpression),M(f.colonToken,J,e.isToken),M(f.whenFalse,J,e.isExpression));case 210:return e.updateTemplateExpression(f,M(f.head,J,e.isTemplateHead),N(f.templateSpans,J,e.isTemplateSpan));case 211:return e.updateYield(f,M(f.asteriskToken,Te,e.isToken),M(f.expression,J,e.isExpression));case 212:return e.updateSpread(f,M(f.expression,J,e.isExpression));case 213:return e.updateClassExpression(f,N(f.modifiers,J,e.isModifier),M(f.name,J,e.isIdentifier),N(f.typeParameters,J,e.isTypeParameterDeclaration),N(f.heritageClauses,J,e.isHeritageClause),N(f.members,J,e.isClassElement));case 215:return e.updateExpressionWithTypeArguments(f,N(f.typeArguments,J,e.isTypeNode),M(f.expression,J,e.isExpression));case 216:return e.updateAsExpression(f,M(f.expression,J,e.isExpression),M(f.type,J,e.isTypeNode));case 217:return e.updateNonNullExpression(f,M(f.expression,J,e.isExpression));case 218:return e.updateMetaProperty(f,M(f.name,J,e.isIdentifier));case 220:return e.updateTemplateSpan(f,M(f.expression,J,e.isExpression),M(f.literal,J,e.isTemplateMiddleOrTemplateTail));case 222:return e.updateBlock(f,N(f.statements,J,e.isStatement));case 224:return e.updateVariableStatement(f,N(f.modifiers,J,e.isModifier),M(f.declarationList,J,e.isVariableDeclarationList));case 225:return e.updateExpressionStatement(f,M(f.expression,J,e.isExpression));case 226:return e.updateIf(f,M(f.expression,J,e.isExpression),M(f.thenStatement,J,e.isStatement,e.liftToBlock),M(f.elseStatement,J,e.isStatement,e.liftToBlock));case 227:return e.updateDo(f,M(f.statement,J,e.isStatement,e.liftToBlock),M(f.expression,J,e.isExpression));case 228:return e.updateWhile(f,M(f.expression,J,e.isExpression),M(f.statement,J,e.isStatement,e.liftToBlock));case 229:return e.updateFor(f,M(f.initializer,J,e.isForInitializer),M(f.condition,J,e.isExpression),M(f.incrementor,J,e.isExpression),M(f.statement,J,e.isStatement,e.liftToBlock));case 230:return e.updateForIn(f,M(f.initializer,J,e.isForInitializer),M(f.expression,J,e.isExpression),M(f.statement,J,e.isStatement,e.liftToBlock));case 231:return e.updateForOf(f,M(f.awaitModifier,J,e.isToken),M(f.initializer,J,e.isForInitializer),M(f.expression,J,e.isExpression),M(f.statement,J,e.isStatement,e.liftToBlock));case 232:return e.updateContinue(f,M(f.label,J,e.isIdentifier));case 233:return e.updateBreak(f,M(f.label,J,e.isIdentifier));case 234:return e.updateReturn(f,M(f.expression,J,e.isExpression));case 235:return e.updateWith(f,M(f.expression,J,e.isExpression),M(f.statement,J,e.isStatement,e.liftToBlock));case 236:return e.updateSwitch(f,M(f.expression,J,e.isExpression),M(f.caseBlock,J,e.isCaseBlock));case 237:return e.updateLabel(f,M(f.label,J,e.isIdentifier),M(f.statement,J,e.isStatement,e.liftToBlock));case 238:return e.updateThrow(f,M(f.expression,J,e.isExpression));case 239:return e.updateTry(f,M(f.tryBlock,J,e.isBlock),M(f.catchClause,J,e.isCatchClause),M(f.finallyBlock,J,e.isBlock));case 241:return e.updateVariableDeclaration(f,M(f.name,J,e.isBindingName),M(f.type,J,e.isTypeNode),M(f.initializer,J,e.isExpression));case 242:return e.updateVariableDeclarationList(f,N(f.declarations,J,e.isVariableDeclaration));case 243:return e.updateFunctionDeclaration(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),M(f.asteriskToken,Te,e.isToken),M(f.name,J,e.isIdentifier),N(f.typeParameters,J,e.isTypeParameterDeclaration),Ge(f.parameters,J,Oe,N),M(f.type,J,e.isTypeNode),Be(f.body,J,Oe));case 244:return e.updateClassDeclaration(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),M(f.name,J,e.isIdentifier),N(f.typeParameters,J,e.isTypeParameterDeclaration),N(f.heritageClauses,J,e.isHeritageClause),N(f.members,J,e.isClassElement));case 245:return e.updateInterfaceDeclaration(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),M(f.name,J,e.isIdentifier),N(f.typeParameters,J,e.isTypeParameterDeclaration),N(f.heritageClauses,J,e.isHeritageClause),N(f.members,J,e.isTypeElement));case 246:return e.updateTypeAliasDeclaration(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),M(f.name,J,e.isIdentifier),N(f.typeParameters,J,e.isTypeParameterDeclaration),M(f.type,J,e.isTypeNode));case 247:return e.updateEnumDeclaration(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),M(f.name,J,e.isIdentifier),N(f.members,J,e.isEnumMember));case 248:return e.updateModuleDeclaration(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),M(f.name,J,e.isIdentifier),M(f.body,J,e.isModuleBody));case 249:return e.updateModuleBlock(f,N(f.statements,J,e.isStatement));case 250:return e.updateCaseBlock(f,N(f.clauses,J,e.isCaseOrDefaultClause));case 251:return e.updateNamespaceExportDeclaration(f,M(f.name,J,e.isIdentifier));case 252:return e.updateImportEqualsDeclaration(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),M(f.name,J,e.isIdentifier),M(f.moduleReference,J,e.isModuleReference));case 253:return e.updateImportDeclaration(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),M(f.importClause,J,e.isImportClause),M(f.moduleSpecifier,J,e.isExpression));case 254:return e.updateImportClause(f,M(f.name,J,e.isIdentifier),M(f.namedBindings,J,e.isNamedImportBindings));case 255:return e.updateNamespaceImport(f,M(f.name,J,e.isIdentifier));case 256:return e.updateNamedImports(f,N(f.elements,J,e.isImportSpecifier));case 257:return e.updateImportSpecifier(f,M(f.propertyName,J,e.isIdentifier),M(f.name,J,e.isIdentifier));case 258:return e.updateExportAssignment(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),M(f.expression,J,e.isExpression));case 259:return e.updateExportDeclaration(f,N(f.decorators,J,e.isDecorator),N(f.modifiers,J,e.isModifier),M(f.exportClause,J,e.isNamedExports),M(f.moduleSpecifier,J,e.isExpression));case 260:return e.updateNamedExports(f,N(f.elements,J,e.isExportSpecifier));case 261:return e.updateExportSpecifier(f,M(f.propertyName,J,e.isIdentifier),M(f.name,J,e.isIdentifier));case 263:return e.updateExternalModuleReference(f,M(f.expression,J,e.isExpression));case 264:return e.updateJsxElement(f,M(f.openingElement,J,e.isJsxOpeningElement),N(f.children,J,e.isJsxChild),M(f.closingElement,J,e.isJsxClosingElement));case 265:return e.updateJsxSelfClosingElement(f,M(f.tagName,J,e.isJsxTagNameExpression),N(f.typeArguments,J,e.isTypeNode),M(f.attributes,J,e.isJsxAttributes));case 266:return e.updateJsxOpeningElement(f,M(f.tagName,J,e.isJsxTagNameExpression),N(f.typeArguments,J,e.isTypeNode),M(f.attributes,J,e.isJsxAttributes));case 267:return e.updateJsxClosingElement(f,M(f.tagName,J,e.isJsxTagNameExpression));case 268:return e.updateJsxFragment(f,M(f.openingFragment,J,e.isJsxOpeningFragment),N(f.children,J,e.isJsxChild),M(f.closingFragment,J,e.isJsxClosingFragment));case 271:return e.updateJsxAttribute(f,M(f.name,J,e.isIdentifier),M(f.initializer,J,e.isStringLiteralOrJsxExpression));case 272:return e.updateJsxAttributes(f,N(f.properties,J,e.isJsxAttributeLike));case 273:return e.updateJsxSpreadAttribute(f,M(f.expression,J,e.isExpression));case 274:return e.updateJsxExpression(f,M(f.expression,J,e.isExpression));case 275:return e.updateCaseClause(f,M(f.expression,J,e.isExpression),N(f.statements,J,e.isStatement));case 276:return e.updateDefaultClause(f,N(f.statements,J,e.isStatement));case 277:return e.updateHeritageClause(f,N(f.types,J,e.isExpressionWithTypeArguments));case 278:return e.updateCatchClause(f,M(f.variableDeclaration,J,e.isVariableDeclaration),M(f.block,J,e.isBlock));case 279:return e.updatePropertyAssignment(f,M(f.name,J,e.isPropertyName),M(f.initializer,J,e.isExpression));case 280:return e.updateShorthandPropertyAssignment(f,M(f.name,J,e.isIdentifier),M(f.objectAssignmentInitializer,J,e.isExpression));case 281:return e.updateSpreadAssignment(f,M(f.expression,J,e.isExpression));case 282:return e.updateEnumMember(f,M(f.name,J,e.isPropertyName),M(f.initializer,J,e.isExpression));case 288:return e.updateSourceFileNode(f,Ee(f.statements,J,Oe));case 319:return e.updatePartiallyEmittedExpression(f,M(f.expression,J,e.isExpression));case 320:return e.updateCommaList(f,N(f.elements,J,e.isExpression));default:return f}}e.visitEachChild=he;function ee(f){return e.Debug.assert(f.length<=1,"Too many nodes written to output."),e.singleOrUndefined(f)}})(sn||(sn={})),function(e){function o(N,Te,ie){return N?Te(ie,N):ie}function M(N,Te,ie){return N?Te(ie,N):ie}function qe(N,Te,ie,ce){if(N===void 0)return Te;var x=ce?M:e.reduceLeft,C=ce||ie,P=N.kind;if(P>0&&P<=151)return Te;if(P>=167&&P<=186)return Te;var h=Te;switch(N.kind){case 221:case 223:case 214:case 240:case 318:break;case 152:h=o(N.left,ie,h),h=o(N.right,ie,h);break;case 153:h=o(N.expression,ie,h);break;case 155:h=x(N.decorators,C,h),h=x(N.modifiers,C,h),h=o(N.name,ie,h),h=o(N.type,ie,h),h=o(N.initializer,ie,h);break;case 156:h=o(N.expression,ie,h);break;case 157:h=x(N.modifiers,C,h),h=o(N.name,ie,h),h=o(N.questionToken,ie,h),h=o(N.type,ie,h),h=o(N.initializer,ie,h);break;case 158:h=x(N.decorators,C,h),h=x(N.modifiers,C,h),h=o(N.name,ie,h),h=o(N.type,ie,h),h=o(N.initializer,ie,h);break;case 160:h=x(N.decorators,C,h),h=x(N.modifiers,C,h),h=o(N.name,ie,h),h=x(N.typeParameters,C,h),h=x(N.parameters,C,h),h=o(N.type,ie,h),h=o(N.body,ie,h);break;case 161:h=x(N.modifiers,C,h),h=x(N.parameters,C,h),h=o(N.body,ie,h);break;case 162:h=x(N.decorators,C,h),h=x(N.modifiers,C,h),h=o(N.name,ie,h),h=x(N.parameters,C,h),h=o(N.type,ie,h),h=o(N.body,ie,h);break;case 163:h=x(N.decorators,C,h),h=x(N.modifiers,C,h),h=o(N.name,ie,h),h=x(N.parameters,C,h),h=o(N.body,ie,h);break;case 188:case 189:h=x(N.elements,C,h);break;case 190:h=o(N.propertyName,ie,h),h=o(N.name,ie,h),h=o(N.initializer,ie,h);break;case 191:h=x(N.elements,C,h);break;case 192:h=x(N.properties,C,h);break;case 193:h=o(N.expression,ie,h),h=o(N.name,ie,h);break;case 194:h=o(N.expression,ie,h),h=o(N.argumentExpression,ie,h);break;case 195:h=o(N.expression,ie,h),h=x(N.typeArguments,C,h),h=x(N.arguments,C,h);break;case 196:h=o(N.expression,ie,h),h=x(N.typeArguments,C,h),h=x(N.arguments,C,h);break;case 197:h=o(N.tag,ie,h),h=x(N.typeArguments,C,h),h=o(N.template,ie,h);break;case 198:h=o(N.type,ie,h),h=o(N.expression,ie,h);break;case 200:h=x(N.modifiers,C,h),h=o(N.name,ie,h),h=x(N.typeParameters,C,h),h=x(N.parameters,C,h),h=o(N.type,ie,h),h=o(N.body,ie,h);break;case 201:h=x(N.modifiers,C,h),h=x(N.typeParameters,C,h),h=x(N.parameters,C,h),h=o(N.type,ie,h),h=o(N.body,ie,h);break;case 199:case 202:case 203:case 204:case 205:case 211:case 212:case 217:h=o(N.expression,ie,h);break;case 206:case 207:h=o(N.operand,ie,h);break;case 208:h=o(N.left,ie,h),h=o(N.right,ie,h);break;case 209:h=o(N.condition,ie,h),h=o(N.whenTrue,ie,h),h=o(N.whenFalse,ie,h);break;case 210:h=o(N.head,ie,h),h=x(N.templateSpans,C,h);break;case 213:h=x(N.modifiers,C,h),h=o(N.name,ie,h),h=x(N.typeParameters,C,h),h=x(N.heritageClauses,C,h),h=x(N.members,C,h);break;case 215:h=o(N.expression,ie,h),h=x(N.typeArguments,C,h);break;case 216:h=o(N.expression,ie,h),h=o(N.type,ie,h);break;case 220:h=o(N.expression,ie,h),h=o(N.literal,ie,h);break;case 222:h=x(N.statements,C,h);break;case 224:h=x(N.modifiers,C,h),h=o(N.declarationList,ie,h);break;case 225:h=o(N.expression,ie,h);break;case 226:h=o(N.expression,ie,h),h=o(N.thenStatement,ie,h),h=o(N.elseStatement,ie,h);break;case 227:h=o(N.statement,ie,h),h=o(N.expression,ie,h);break;case 228:case 235:h=o(N.expression,ie,h),h=o(N.statement,ie,h);break;case 229:h=o(N.initializer,ie,h),h=o(N.condition,ie,h),h=o(N.incrementor,ie,h),h=o(N.statement,ie,h);break;case 230:case 231:h=o(N.initializer,ie,h),h=o(N.expression,ie,h),h=o(N.statement,ie,h);break;case 234:case 238:h=o(N.expression,ie,h);break;case 236:h=o(N.expression,ie,h),h=o(N.caseBlock,ie,h);break;case 237:h=o(N.label,ie,h),h=o(N.statement,ie,h);break;case 239:h=o(N.tryBlock,ie,h),h=o(N.catchClause,ie,h),h=o(N.finallyBlock,ie,h);break;case 241:h=o(N.name,ie,h),h=o(N.type,ie,h),h=o(N.initializer,ie,h);break;case 242:h=x(N.declarations,C,h);break;case 243:h=x(N.decorators,C,h),h=x(N.modifiers,C,h),h=o(N.name,ie,h),h=x(N.typeParameters,C,h),h=x(N.parameters,C,h),h=o(N.type,ie,h),h=o(N.body,ie,h);break;case 244:h=x(N.decorators,C,h),h=x(N.modifiers,C,h),h=o(N.name,ie,h),h=x(N.typeParameters,C,h),h=x(N.heritageClauses,C,h),h=x(N.members,C,h);break;case 247:h=x(N.decorators,C,h),h=x(N.modifiers,C,h),h=o(N.name,ie,h),h=x(N.members,C,h);break;case 248:h=x(N.decorators,C,h),h=x(N.modifiers,C,h),h=o(N.name,ie,h),h=o(N.body,ie,h);break;case 249:h=x(N.statements,C,h);break;case 250:h=x(N.clauses,C,h);break;case 252:h=x(N.decorators,C,h),h=x(N.modifiers,C,h),h=o(N.name,ie,h),h=o(N.moduleReference,ie,h);break;case 253:h=x(N.decorators,C,h),h=x(N.modifiers,C,h),h=o(N.importClause,ie,h),h=o(N.moduleSpecifier,ie,h);break;case 254:h=o(N.name,ie,h),h=o(N.namedBindings,ie,h);break;case 255:h=o(N.name,ie,h);break;case 256:case 260:h=x(N.elements,C,h);break;case 257:case 261:h=o(N.propertyName,ie,h),h=o(N.name,ie,h);break;case 258:h=e.reduceLeft(N.decorators,ie,h),h=e.reduceLeft(N.modifiers,ie,h),h=o(N.expression,ie,h);break;case 259:h=e.reduceLeft(N.decorators,ie,h),h=e.reduceLeft(N.modifiers,ie,h),h=o(N.exportClause,ie,h),h=o(N.moduleSpecifier,ie,h);break;case 263:h=o(N.expression,ie,h);break;case 264:h=o(N.openingElement,ie,h),h=e.reduceLeft(N.children,ie,h),h=o(N.closingElement,ie,h);break;case 268:h=o(N.openingFragment,ie,h),h=e.reduceLeft(N.children,ie,h),h=o(N.closingFragment,ie,h);break;case 265:case 266:h=o(N.tagName,ie,h),h=x(N.typeArguments,ie,h),h=o(N.attributes,ie,h);break;case 272:h=x(N.properties,C,h);break;case 267:h=o(N.tagName,ie,h);break;case 271:h=o(N.name,ie,h),h=o(N.initializer,ie,h);break;case 273:h=o(N.expression,ie,h);break;case 274:h=o(N.expression,ie,h);break;case 275:h=o(N.expression,ie,h);case 276:h=x(N.statements,C,h);break;case 277:h=x(N.types,C,h);break;case 278:h=o(N.variableDeclaration,ie,h),h=o(N.block,ie,h);break;case 279:h=o(N.name,ie,h),h=o(N.initializer,ie,h);break;case 280:h=o(N.name,ie,h),h=o(N.objectAssignmentInitializer,ie,h);break;case 281:h=o(N.expression,ie,h);break;case 282:h=o(N.name,ie,h),h=o(N.initializer,ie,h);break;case 288:h=x(N.statements,C,h);break;case 319:h=o(N.expression,ie,h);break;case 320:h=x(N.elements,C,h);break;default:break}return h}e.reduceEachChild=qe;function Ee(N,Te){return e.some(Te)?e.isNodeArray(N)?e.setTextRange(e.createNodeArray(e.insertStatementsAfterStandardPrologue(N.slice(),Te)),N):e.insertStatementsAfterStandardPrologue(N,Te):N}e.mergeLexicalEnvironment=Ee;function Ge(N){return e.Debug.assert(e.every(N,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(N)||e.createBlock(N)}e.liftToBlock=Ge;function Be(N){return he(N),N}e.aggregateTransformFlags=Be;function he(N){if(N===void 0)return 0;if(N.transformFlags&536870912)return N.transformFlags&~e.getTransformFlagsSubtreeExclusions(N.kind);var Te=f(N);return e.computeTransformFlagsForNode(N,Te)}function ee(N){if(N===void 0)return 0;for(var Te=0,ie=0,ce=0,x=N;ce<x.length;ce++){var C=x[ce];Te|=he(C),ie|=C.transformFlags&~536870912}return N.transformFlags=ie|536870912,Te}function f(N){return e.hasModifier(N,2)||e.isTypeNode(N)&&N.kind!==215?0:qe(N,0,J,Oe)}function J(N,Te){return N|he(Te)}function Oe(N,Te){return N|ee(Te)}}(sn||(sn={}));var sn;(function(e){function o(Q,z,se,G,H){var q=H.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,be=q.enter,R=q.exit,K=[],m=[],_=e.createMap(),I,D=[],y,E="",k=0,T=0,ne=0,O=0,Y=0,pe=0,S=!1,v=0,U=0,ue=0,De=0,Z=0,Re=0,we=!1,He=!1,ve=!1;return{getSources:function(){return K},addSource:je,setSourceContent:w,addName:j,addMapping:Ze,appendSourceMap:In,toJSON:fe,toString:function(){return JSON.stringify(fe())}};function je(Le){be();var Je=e.getRelativePathToDirectoryOrUrl(G,Le,Q.getCurrentDirectory(),Q.getCanonicalFileName,!0),$e=_.get(Je);return $e===void 0&&($e=m.length,m.push(Je),K.push(Le),_.set(Je,$e)),R(),$e}function w(Le,Je){if(be(),Je!==null){for(I||(I=[]);I.length<Le;)I.push(null);I[Le]=Je}R()}function j(Le){be(),y||(y=e.createMap());var Je=y.get(Le);return Je===void 0&&(Je=D.length,D.push(Le),y.set(Le,Je)),R(),Je}function Pe(Le,Je){return!we||v!==Le||U!==Je}function a(Le,Je,$e){return Le!==void 0&&Je!==void 0&&$e!==void 0&&ue===Le&&(De>Je||De===Je&&Z>$e)}function Ze(Le,Je,$e,Fe,cn,Qe){e.Debug.assert(Le>=v,"generatedLine cannot backtrack"),e.Debug.assert(Je>=0,"generatedCharacter cannot be negative"),e.Debug.assert($e===void 0||$e>=0,"sourceIndex cannot be negative"),e.Debug.assert(Fe===void 0||Fe>=0,"sourceLine cannot be negative"),e.Debug.assert(cn===void 0||cn>=0,"sourceCharacter cannot be negative"),be(),(Pe(Le,Je)||a($e,Fe,cn))&&(ae(),v=Le,U=Je,He=!1,ve=!1,we=!0),$e!==void 0&&Fe!==void 0&&cn!==void 0&&(ue=$e,De=Fe,Z=cn,He=!0,Qe!==void 0&&(Re=Qe,ve=!0)),R()}function In(Le,Je,$e,Fe,cn,Qe){e.Debug.assert(Le>=v,"generatedLine cannot backtrack"),e.Debug.assert(Je>=0,"generatedCharacter cannot be negative"),be();for(var ln=[],ye,ke=f($e.mappings),F=ke.next();!F.done;F=ke.next()){var c=F.value;if(Qe&&(c.generatedLine>Qe.line||c.generatedLine===Qe.line&&c.generatedCharacter>Qe.character))break;if(cn&&(c.generatedLine<cn.line||cn.line===c.generatedLine&&c.generatedCharacter<cn.character))continue;var L=void 0,te=void 0,Se=void 0,Ne=void 0;if(c.sourceIndex!==void 0){if(L=ln[c.sourceIndex],L===void 0){var ze=$e.sources[c.sourceIndex],Tn=$e.sourceRoot?e.combinePaths($e.sourceRoot,ze):ze,wn=e.combinePaths(e.getDirectoryPath(Fe),Tn);ln[c.sourceIndex]=L=je(wn),$e.sourcesContent&&typeof $e.sourcesContent[c.sourceIndex]=="string"&&w(L,$e.sourcesContent[c.sourceIndex])}te=c.sourceLine,Se=c.sourceCharacter,$e.names&&c.nameIndex!==void 0&&(ye||(ye=[]),Ne=ye[c.nameIndex],Ne===void 0&&(ye[c.nameIndex]=Ne=j($e.names[c.nameIndex])))}var jn=c.generatedLine-(cn?cn.line:0),nn=jn+Le,pn=cn&&cn.line===c.generatedLine?c.generatedCharacter-cn.character:c.generatedCharacter,le=jn===0?pn+Je:pn;Ze(nn,le,L,te,Se,Ne)}R()}function et(){return!S||k!==v||T!==U||ne!==ue||O!==De||Y!==Z||pe!==Re}function ae(){if(!we||!et())return;if(be(),k<v)do E+=";",k++,T=0;while(k<v);else e.Debug.assertEqual(k,v,"generatedLine cannot backtrack"),S&&(E+=",");E+=ie(U-T),T=U,He&&(E+=ie(ue-ne),ne=ue,E+=ie(De-O),O=De,E+=ie(Z-Y),Y=Z,ve&&(E+=ie(Re-pe),pe=Re)),S=!0,R()}function fe(){return ae(),{version:3,file:z,sourceRoot:se,sources:m,names:D,mappings:E,sourcesContent:I}}}e.createSourceMapGenerator=o;var M=/^\/\/[@#] source[M]appingURL=(.+)\s*$/,qe=/^\s*(\/\/[@#] .*)?$/;function Ee(Q,z){return{getLineCount:function(){return z.length},getLineText:function(se){return Q.substring(z[se],z[se+1])}}}e.getLineInfo=Ee;function Ge(Q){for(var z=Q.getLineCount()-1;z>=0;z--){var se=Q.getLineText(z),G=M.exec(se);if(G)return G[1];if(!se.match(qe))break}}e.tryGetSourceMappingURL=Ge;function Be(Q){return typeof Q=="string"||Q===null}function he(Q){return Q!==null&&typeof Q=="object"&&Q.version===3&&typeof Q.file=="string"&&typeof Q.mappings=="string"&&e.isArray(Q.sources)&&e.every(Q.sources,e.isString)&&(Q.sourceRoot===void 0||Q.sourceRoot===null||typeof Q.sourceRoot=="string")&&(Q.sourcesContent===void 0||Q.sourcesContent===null||e.isArray(Q.sourcesContent)&&e.every(Q.sourcesContent,Be))&&(Q.names===void 0||Q.names===null||e.isArray(Q.names)&&e.every(Q.names,e.isString))}e.isRawSourceMap=he;function ee(Q){try{var z=JSON.parse(Q);if(he(z))return z}catch(se){}return}e.tryParseRawSourceMap=ee;function f(Q){var z=!1,se=0,G=0,H=0,q=0,be=0,R=0,K=0,m;return{get pos(){return se},get error(){return m},get state(){return _(!0,!0)},next:function(){for(;!z&&se<Q.length;){var ne=Q.charCodeAt(se);if(ne===59){G++,H=0,se++;continue}if(ne===44){se++;continue}var O=!1,Y=!1;if(H+=T(),E())return I();if(H<0)return y("Invalid generatedCharacter found");if(!k()){if(O=!0,q+=T(),E())return I();if(q<0)return y("Invalid sourceIndex found");if(k())return y("Unsupported Format: No entries after sourceIndex");if(be+=T(),E())return I();if(be<0)return y("Invalid sourceLine found");if(k())return y("Unsupported Format: No entries after sourceLine");if(R+=T(),E())return I();if(R<0)return y("Invalid sourceCharacter found");if(!k()){if(Y=!0,K+=T(),E())return I();if(K<0)return y("Invalid nameIndex found");if(!k())return y("Unsupported Error Format: Entries after nameIndex")}}return{value:_(O,Y),done:z}}return I()}};function _(ne,O){return{generatedLine:G,generatedCharacter:H,sourceIndex:ne?q:void 0,sourceLine:ne?be:void 0,sourceCharacter:ne?R:void 0,nameIndex:O?K:void 0}}function I(){return z=!0,{value:void 0,done:!0}}function D(ne){m===void 0&&(m=ne)}function y(ne){return D(ne),I()}function E(){return m!==void 0}function k(){return se===Q.length||Q.charCodeAt(se)===44||Q.charCodeAt(se)===59}function T(){for(var ne=!0,O=0,Y=0;ne;se++){if(se>=Q.length)return D("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var pe=Te(Q.charCodeAt(se));if(pe===-1)return D("Invalid character in VLQ"),-1;ne=(pe&32)!==0,Y=Y|(pe&31)<<O,O+=5}return(Y&1)===0?Y=Y>>1:(Y=Y>>1,Y=-Y),Y}}e.decodeMappings=f;function J(Q,z){return Q===z||Q.generatedLine===z.generatedLine&&Q.generatedCharacter===z.generatedCharacter&&Q.sourceIndex===z.sourceIndex&&Q.sourceLine===z.sourceLine&&Q.sourceCharacter===z.sourceCharacter&&Q.nameIndex===z.nameIndex}e.sameMapping=J;function Oe(Q){return Q.sourceIndex!==void 0&&Q.sourceLine!==void 0&&Q.sourceCharacter!==void 0}e.isSourceMapping=Oe;function N(Q){return Q>=0&&Q<26?65+Q:Q>=26&&Q<52?97+Q-26:Q>=52&&Q<62?48+Q-52:Q===62?43:Q===63?47:e.Debug.fail(Q+": not a base64 value")}function Te(Q){return Q>=65&&Q<=90?Q-65:Q>=97&&Q<=122?Q-97+26:Q>=48&&Q<=57?Q-48+52:Q===43?62:Q===47?63:-1}function ie(Q){Q<0?Q=(-Q<<1)+1:Q=Q<<1;var z="";do{var se=Q&31;Q=Q>>5,Q>0&&(se=se|32),z=z+String.fromCharCode(N(se))}while(Q>0);return z}function ce(Q){return Q.sourceIndex!==void 0&&Q.sourcePosition!==void 0}function x(Q,z){return Q.generatedPosition===z.generatedPosition&&Q.sourceIndex===z.sourceIndex&&Q.sourcePosition===z.sourcePosition}function C(Q,z){return e.Debug.assert(Q.sourceIndex===z.sourceIndex),e.compareValues(Q.sourcePosition,z.sourcePosition)}function P(Q,z){return e.compareValues(Q.generatedPosition,z.generatedPosition)}function h(Q){return Q.sourcePosition}function X(Q){return Q.generatedPosition}function $(Q,z,se){var G=e.getDirectoryPath(se),H=z.sourceRoot?e.getNormalizedAbsolutePath(z.sourceRoot,G):G,q=e.getNormalizedAbsolutePath(z.file,G),be=Q.getSourceFileLike(q),R=z.sources.map(function(O){return e.getNormalizedAbsolutePath(O,H)}),K=e.createMapFromEntries(R.map(function(O,Y){return[Q.getCanonicalFileName(O),Y]})),m,_,I;return{getSourcePosition:ne,getGeneratedPosition:T};function D(O){var Y=be!==void 0?e.getPositionOfLineAndCharacter(be,O.generatedLine,O.generatedCharacter,!0):-1,pe,S;if(Oe(O)){var v=Q.getSourceFileLike(R[O.sourceIndex]);pe=z.sources[O.sourceIndex],S=v!==void 0?e.getPositionOfLineAndCharacter(v,O.sourceLine,O.sourceCharacter,!0):-1}return{generatedPosition:Y,source:pe,sourceIndex:O.sourceIndex,sourcePosition:S,nameIndex:O.nameIndex}}function y(){if(m===void 0){var O=f(z.mappings),Y=e.arrayFrom(O,D);O.error!==void 0?(Q.log&&Q.log("Encountered error while decoding sourcemap: "+O.error),m=e.emptyArray):m=Y}return m}function E(O){if(I===void 0){for(var Y=[],pe=0,S=y();pe<S.length;pe++){var v=S[pe];if(!ce(v))continue;var U=Y[v.sourceIndex];U||(Y[v.sourceIndex]=U=[]),U.push(v)}I=Y.map(function(ue){return e.sortAndDeduplicate(ue,C,x)})}return I[O]}function k(){if(_===void 0){for(var O=[],Y=0,pe=y();Y<pe.length;Y++){var S=pe[Y];O.push(S)}_=e.sortAndDeduplicate(O,P,x)}return _}function T(O){var Y=K.get(Q.getCanonicalFileName(O.fileName));if(Y===void 0)return O;var pe=E(Y);if(!e.some(pe))return O;var S=e.binarySearchKey(pe,O.pos,h,e.compareValues);S<0&&(S=~S);var v=pe[S];return v===void 0||v.sourceIndex!==Y?O:{fileName:q,pos:v.generatedPosition}}function ne(O){var Y=k();if(!e.some(Y))return O;var pe=e.binarySearchKey(Y,O.pos,X,e.compareValues);pe<0&&(pe=~pe);var S=Y[pe];return S===void 0||!ce(S)?O:{fileName:R[S.sourceIndex],pos:S.sourcePosition}}}e.createDocumentPositionMapper=$,e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}})(sn||(sn={}));var sn;(function(e){function o(C){return C=e.getOriginalNode(C),C?e.getNodeId(C):0}e.getOriginalNodeId=o;function M(C){return C&&e.isNamedImports(C)?e.some(C.elements,qe):!1}function qe(C){return C.propertyName!==void 0&&C.propertyName.escapedText==="default"}function Ee(C){return P;function P(X){return X.kind===288?C(X):h(X)}function h(X){return e.createBundle(e.map(X.sourceFiles,C),X.prepends)}}e.chainBundle=Ee;function Ge(C){if(e.getNamespaceDeclarationNode(C))return!0;var P=C.importClause&&C.importClause.namedBindings;if(!P)return!1;if(!e.isNamedImports(P))return!1;for(var h=0,X=0,$=P.elements;X<$.length;X++){var Q=$[X];qe(Q)&&h++}return h>0&&h!==P.elements.length||!!(P.elements.length-h)&&e.isDefaultImport(C)}e.getImportNeedsImportStarHelper=Ge;function Be(C){return!Ge(C)&&(e.isDefaultImport(C)||!!C.importClause&&e.isNamedImports(C.importClause.namedBindings)&&M(C.importClause.namedBindings))}e.getImportNeedsImportDefaultHelper=Be;function he(C,P,h){for(var X=[],$=e.createMultiMap(),Q=[],z=e.createMap(),se,G=!1,H,q=!1,be=!1,R=!1,K=0,m=C.statements;K<m.length;K++){var _=m[K];switch(_.kind){case 253:X.push(_),!be&&Ge(_)&&(be=!0),!R&&Be(_)&&(R=!0);break;case 252:_.moduleReference.kind===263&&X.push(_);break;case 259:if(_.moduleSpecifier)_.exportClause?X.push(_):(X.push(_),q=!0);else for(var I=0,D=_.exportClause.elements;I<D.length;I++){var y=D[I];if(!z.get(e.idText(y.name))){var E=y.propertyName||y.name;$.add(e.idText(E),y);var k=P.getReferencedImportDeclaration(E)||P.getReferencedValueDeclaration(E);k&&f(Q,o(k),y.name),z.set(e.idText(y.name),!0),se=e.append(se,y.name)}}break;case 258:_.isExportEquals&&!H&&(H=_);break;case 224:if(e.hasModifier(_,1))for(var T=0,ne=_.declarationList.declarations;T<ne.length;T++){var k=ne[T];se=ee(k,z,se)}break;case 243:if(e.hasModifier(_,1))if(e.hasModifier(_,512))G||(f(Q,o(_),e.getDeclarationName(_)),G=!0);else{var E=_.name;z.get(e.idText(E))||(f(Q,o(_),E),z.set(e.idText(E),!0),se=e.append(se,E))}break;case 244:if(e.hasModifier(_,1))if(e.hasModifier(_,512))G||(f(Q,o(_),e.getDeclarationName(_)),G=!0);else{var E=_.name;E&&!z.get(e.idText(E))&&(f(Q,o(_),E),z.set(e.idText(E),!0),se=e.append(se,E))}break}}var O=e.createExternalHelpersImportDeclarationIfNeeded(C,h,q,be,R);return O&&X.unshift(O),{externalImports:X,exportSpecifiers:$,exportEquals:H,hasExportStarsToExportValues:q,exportedBindings:Q,exportedNames:se,externalHelpersImportDeclaration:O}}e.collectExternalModuleInfo=he;function ee(C,P,h){if(e.isBindingPattern(C.name))for(var X=0,$=C.name.elements;X<$.length;X++){var Q=$[X];e.isOmittedExpression(Q)||(h=ee(Q,P,h))}else if(!e.isGeneratedIdentifier(C.name)){var z=e.idText(C.name);P.get(z)||(P.set(z,!0),h=e.append(h,C.name))}return h}function f(C,P,h){var X=C[P];return X?X.push(h):C[P]=X=[h],X}function J(C){return e.isStringLiteralLike(C)||C.kind===8||e.isKeyword(C.kind)||e.isIdentifier(C)}e.isSimpleCopiableExpression=J;function Oe(C){return!e.isIdentifier(C)&&J(C)||e.isWellKnownSymbolSyntactically(C)}e.isSimpleInlineableExpression=Oe;function N(C,P,h){if(C.body){var X=C.body.statements,$=e.addPrologue(P,X,!1,h);if($===X.length)return $;var Q=X[$];return Q.kind===225&&e.isSuperCall(Q.expression)?(P.push(e.visitNode(Q,h,e.isStatement)),$+1):$}return 0}e.addPrologueDirectivesAndInitialSuperCall=N;function Te(C){for(var P=[],h=1;h<arguments.length;h++)P[h-1]=arguments[h];return function(X){for(var $="",Q=0;Q<P.length;Q++)$+=C[Q],$+=X(P[Q]);return $+=C[C.length-1],$}}e.helperString=Te;function ie(C,P,h){return e.filter(C.members,function(X){return ce(X,P,h)})}e.getProperties=ie;function ce(C,P,h){return e.isPropertyDeclaration(C)&&(!!C.initializer||!P)&&e.hasStaticModifier(C)===h}function x(C,P){return e.isPropertyDeclaration(C)&&(!!C.initializer||!P)}e.isInitializedProperty=x})(sn||(sn={}));var sn;(function(e){var o;(function(h){h[h.All=0]="All",h[h.ObjectRest=1]="ObjectRest"})(o=e.FlattenLevel||(e.FlattenLevel={}));function M(h,X,$,Q,z,se){var G=h,H;if(e.isDestructuringAssignment(h))for(H=h.right;e.isEmptyArrayLiteral(h.left)||e.isEmptyObjectLiteral(h.left);)if(e.isDestructuringAssignment(H))G=h=H,H=h.right;else return e.visitNode(H,X,e.isExpression);var q,be={context:$,level:Q,downlevelIteration:!!$.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:R,emitBindingOrAssignment:K,createArrayBindingOrAssignmentPattern:Te,createObjectBindingOrAssignmentPattern:ce,createArrayBindingOrAssignmentElement:C,visitor:X};if(H&&(H=e.visitNode(H,X,e.isExpression),e.isIdentifier(H)&&qe(h,H.escapedText)?H=Oe(be,H,!1,G):z?H=Oe(be,H,!0,G):e.nodeIsSynthesized(h)&&(G=H)),Be(be,h,H,G,e.isDestructuringAssignment(h)),H&&z){if(!e.some(q))return H;q.push(H)}return e.aggregateTransformFlags(e.inlineExpressions(q))||e.createOmittedExpression();function R(m){e.setEmitFlags(m,64),e.aggregateTransformFlags(m),q=e.append(q,m)}function K(m,_,I,D){e.Debug.assertNode(m,se?e.isIdentifier:e.isExpression);var y=se?se(m,_,I):e.setTextRange(e.createAssignment(e.visitNode(m,X,e.isExpression),_),I);y.original=D,R(y)}}e.flattenDestructuringAssignment=M;function qe(h,X){var $=e.getTargetOfBindingOrAssignmentElement(h);return e.isBindingOrAssignmentPattern($)?Ee($,X):e.isIdentifier($)?$.escapedText===X:!1}function Ee(h,X){for(var $=e.getElementsOfBindingOrAssignmentPattern(h),Q=0,z=$;Q<z.length;Q++){var se=z[Q];if(qe(se,X))return!0}return!1}function Ge(h,X,$,Q,z,se,G){se===void 0&&(se=!1);var H,q=[],be=[],R={context:$,level:Q,downlevelIteration:!!$.getCompilerOptions().downlevelIteration,hoistTempVariables:se,emitExpression:pe,emitBindingOrAssignment:S,createArrayBindingOrAssignmentPattern:N,createObjectBindingOrAssignmentPattern:ie,createArrayBindingOrAssignmentElement:x,visitor:X};if(e.isVariableDeclaration(h)){var K=e.getInitializerOfBindingOrAssignmentElement(h);K&&e.isIdentifier(K)&&qe(h,K.escapedText)&&(K=Oe(R,K,!1,K),h=e.updateVariableDeclaration(h,h.name,h.type,K))}if(Be(R,h,z,h,G),H){var m=e.createTempVariable(void 0);if(se){var _=e.inlineExpressions(H);H=void 0,S(m,_,void 0,void 0)}else{$.hoistVariableDeclaration(m);var I=e.last(q);I.pendingExpressions=e.append(I.pendingExpressions,e.createAssignment(m,I.value)),e.addRange(I.pendingExpressions,H),I.value=m}}for(var D=0,y=q;D<y.length;D++){var E=y[D],k=E.pendingExpressions,T=E.name,_=E.value,ne=E.location,O=E.original,Y=e.createVariableDeclaration(T,void 0,k?e.inlineExpressions(e.append(k,_)):_);Y.original=O,e.setTextRange(Y,ne),e.isIdentifier(T)&&e.setEmitFlags(Y,64),e.aggregateTransformFlags(Y),be.push(Y)}return be;function pe(v){H=e.append(H,v)}function S(v,U,ue,De){e.Debug.assertNode(v,e.isBindingName),H&&(U=e.inlineExpressions(e.append(H,U)),H=void 0),q.push({pendingExpressions:H,name:v,value:U,location:ue,original:De})}}e.flattenDestructuringBinding=Ge;function Be(h,X,$,Q,z){if(!z){var se=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(X),h.visitor,e.isExpression);se?$=$?f(h,$,se,Q):se:$||($=e.createVoidZero())}var G=e.getTargetOfBindingOrAssignmentElement(X);e.isObjectBindingOrAssignmentPattern(G)?he(h,X,G,$,Q):e.isArrayBindingOrAssignmentPattern(G)?ee(h,X,G,$,Q):h.emitBindingOrAssignment(G,$,Q,X)}function he(h,X,$,Q,z){var se=e.getElementsOfBindingOrAssignmentPattern($),G=se.length;if(G!==1){var H=!e.isDeclarationBindingElement(X)||G!==0;Q=Oe(h,Q,H,z)}for(var q,be,R=0;R<G;R++){var K=se[R];if(e.getRestIndicatorOfBindingOrAssignmentElement(K)){if(R===G-1){q&&(h.emitBindingOrAssignment(h.createObjectBindingOrAssignmentPattern(q),Q,z,$),q=void 0);var _=P(h.context,Q,se,be,$);Be(h,K,_,K)}}else{var m=e.getPropertyNameOfBindingOrAssignmentElement(K);if(h.level>=1&&!(K.transformFlags&(4096|8192))&&!(e.getTargetOfBindingOrAssignmentElement(K).transformFlags&(4096|8192))&&!e.isComputedPropertyName(m))q=e.append(q,K);else{q&&(h.emitBindingOrAssignment(h.createObjectBindingOrAssignmentPattern(q),Q,z,$),q=void 0);var _=J(h,Q,m);e.isComputedPropertyName(m)&&(be=e.append(be,_.argumentExpression)),Be(h,K,_,K)}}}q&&h.emitBindingOrAssignment(h.createObjectBindingOrAssignmentPattern(q),Q,z,$)}function ee(h,X,$,Q,z){var se=e.getElementsOfBindingOrAssignmentPattern($),G=se.length;if(h.level<1&&h.downlevelIteration)Q=Oe(h,e.createReadHelper(h.context,Q,G>0&&e.getRestIndicatorOfBindingOrAssignmentElement(se[G-1])?void 0:G,z),!1,z);else if(G!==1&&(h.level<1||G===0)||e.every(se,e.isOmittedExpression)){var H=!e.isDeclarationBindingElement(X)||G!==0;Q=Oe(h,Q,H,z)}for(var q,be,R=0;R<G;R++){var K=se[R];if(h.level>=1)if(K.transformFlags&8192){var m=e.createTempVariable(void 0);h.hoistTempVariables&&h.context.hoistVariableDeclaration(m),be=e.append(be,[m,K]),q=e.append(q,h.createArrayBindingOrAssignmentElement(m))}else q=e.append(q,K);else{if(e.isOmittedExpression(K))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(K)){if(R===G-1){var _=e.createArraySlice(Q,R);Be(h,K,_,K)}}else{var _=e.createElementAccess(Q,R);Be(h,K,_,K)}}}if(q&&h.emitBindingOrAssignment(h.createArrayBindingOrAssignmentPattern(q),Q,z,$),be)for(var I=0,D=be;I<D.length;I++){var y=D[I],E=y[0],K=y[1];Be(h,K,E,K)}}function f(h,X,$,Q){return X=Oe(h,X,!0,Q),e.createConditional(e.createTypeCheck(X,"undefined"),$,X)}function J(h,X,$){if(e.isComputedPropertyName($)){var Q=Oe(h,e.visitNode($.expression,h.visitor),!1,$);return e.createElementAccess(X,Q)}else if(e.isStringOrNumericLiteralLike($)){var Q=e.getSynthesizedClone($);return Q.text=Q.text,e.createElementAccess(X,Q)}else{var z=e.createIdentifier(e.idText($));return e.createPropertyAccess(X,z)}}function Oe(h,X,$,Q){if(e.isIdentifier(X)&&$)return X;var z=e.createTempVariable(void 0);return h.hoistTempVariables?(h.context.hoistVariableDeclaration(z),h.emitExpression(e.setTextRange(e.createAssignment(z,X),Q))):h.emitBindingOrAssignment(z,X,Q,void 0),z}function N(h){return e.Debug.assertEachNode(h,e.isArrayBindingElement),e.createArrayBindingPattern(h)}function Te(h){return e.createArrayLiteral(e.map(h,e.convertToArrayAssignmentElement))}function ie(h){return e.Debug.assertEachNode(h,e.isBindingElement),e.createObjectBindingPattern(h)}function ce(h){return e.createObjectLiteral(e.map(h,e.convertToObjectAssignmentElement))}function x(h){return e.createBindingElement(void 0,void 0,h)}function C(h){return h}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;
|
|
|
};`};function P(h,X,$,Q,z){h.requestEmitHelper(e.restHelper);for(var se=[],G=0,H=0;H<$.length-1;H++){var q=e.getPropertyNameOfBindingOrAssignmentElement($[H]);if(q)if(e.isComputedPropertyName(q)){var be=Q[G];G++,se.push(e.createConditional(e.createTypeCheck(be,"symbol"),be,e.createAdd(be,e.createLiteral(""))))}else se.push(e.createLiteral(q))}return e.createCall(e.getUnscopedHelperName("__rest"),void 0,[X,e.setTextRange(e.createArrayLiteral(se),z)])}})(sn||(sn={}));var sn;(function(e){var o=!1,M;(function(ee){ee[ee.ClassAliases=1]="ClassAliases",ee[ee.NamespaceExports=2]="NamespaceExports",ee[ee.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"})(M||(M={}));var qe;(function(ee){ee[ee.None=0]="None",ee[ee.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",ee[ee.HasConstructorDecorators=2]="HasConstructorDecorators",ee[ee.HasMemberDecorators=4]="HasMemberDecorators",ee[ee.IsExportOfNamespace=8]="IsExportOfNamespace",ee[ee.IsNamedExternalExport=16]="IsNamedExternalExport",ee[ee.IsDefaultExternalExport=32]="IsDefaultExternalExport",ee[ee.IsDerivedClass=64]="IsDerivedClass",ee[ee.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",ee[ee.HasAnyDecorators=6]="HasAnyDecorators",ee[ee.NeedsName=5]="NeedsName",ee[ee.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",ee[ee.IsExported=56]="IsExported"})(qe||(qe={}));function Ee(ee){var f=ee.startLexicalEnvironment,J=ee.resumeLexicalEnvironment,Oe=ee.endLexicalEnvironment,N=ee.hoistVariableDeclaration,Te=ee.getEmitResolver(),ie=ee.getCompilerOptions(),ce=e.getStrictOptionValue(ie,"strictNullChecks"),x=e.getEmitScriptTarget(ie),C=e.getEmitModuleKind(ie),P=ee.onEmitNode,h=ee.onSubstituteNode;ee.onEmitNode=Pr,ee.onSubstituteNode=za,ee.enableSubstitution(193),ee.enableSubstitution(194);var X,$,Q,z,se,G,H,q,be,R;return K;function K(de){return de.kind===289?m(de):_(de)}function m(de){return e.createBundle(de.sourceFiles.map(_),e.mapDefined(de.prepends,function(rn){return rn.kind===291?e.createUnparsedSourceFile(rn,"js"):rn}))}function _(de){if(de.isDeclarationFile)return de;X=de;var rn=I(de,ue);return e.addEmitHelpers(rn,ee.readEmitHelpers()),X=void 0,rn}function I(de,rn){var kn=z,Qn=se,lt=G,Ft=H;D(de);var on=rn(de);return z!==kn&&(G=lt),z=kn,se=Qn,H=Ft,on}function D(de){switch(de.kind){case 288:case 250:case 249:case 222:z=de,se=void 0,G=void 0;break;case 244:case 243:if(e.hasModifier(de,2))break;de.name?xi(de):e.Debug.assert(de.kind===244||e.hasModifier(de,512)),e.isClassDeclaration(de)&&(se=de);break}}function y(de){return I(de,E)}function E(de){return de.transformFlags&1?U(de):de}function k(de){return I(de,T)}function T(de){switch(de.kind){case 253:case 252:case 258:case 259:return ne(de);default:return E(de)}}function ne(de){var rn=e.getParseTreeNode(de);if(rn!==de)return de.transformFlags&1?e.visitEachChild(de,y,ee):de;switch(de.kind){case 253:return Vo(de);case 252:return _o(de);case 258:return ci(de);case 259:return Gi(de);default:e.Debug.fail("Unhandled ellided statement")}}function O(de){return I(de,Y)}function Y(de){return de.kind===259||de.kind===253||de.kind===254||de.kind===252&&de.moduleReference.kind===263?void 0:de.transformFlags&1||e.hasModifier(de,1)?U(de):de}function pe(de){return I(de,S)}function S(de){switch(de.kind){case 161:return Ie(de);case 158:return Kn(de);case 166:case 162:case 163:case 160:return E(de);case 221:return de;default:return e.Debug.failBadSyntaxKind(de)}}function v(de){return e.modifierToFlag(de.kind)&2270||$&&de.kind===88?void 0:de}function U(de){if(e.isStatement(de)&&e.hasModifier(de,2))return e.createNotEmittedStatement(de);switch(de.kind){case 88:case 83:return $?void 0:de;case 118:case 116:case 117:case 121:case 80:case 129:case 137:case 173:case 174:case 175:case 176:case 172:case 167:case 154:case 124:case 147:case 127:case 142:case 139:case 136:case 109:case 143:case 170:case 169:case 171:case 168:case 177:case 178:case 179:case 181:case 182:case 183:case 184:case 185:case 186:case 166:case 156:case 246:return;case 158:return Kn(de);case 251:return;case 161:return Ie(de);case 245:return e.createNotEmittedStatement(de);case 244:return ve(de);case 213:return j(de);case 277:return dt(de);case 215:return Ct(de);case 160:return yt(de);case 162:return Ht(de);case 163:return $t(de);case 243:return wr(de);case 200:return Yr(de);case 201:return Hr(de);case 155:return mt(de);case 199:return Vt(de);case 198:case 216:return pt(de);case 195:return ht(de);case 196:return bt(de);case 197:return Ke(de);case 217:return Tt(de);case 247:return $n(de);case 224:return va(de);case 241:return Wn(de);case 248:return Ka(de);case 252:return _o(de);default:return e.visitEachChild(de,y,ee)}}function ue(de){var rn=e.getStrictOptionValue(ie,"alwaysStrict")&&!(e.isExternalModule(de)&&C>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(de);return e.updateSourceFileNode(de,e.visitLexicalEnvironment(de.statements,k,ee,0,rn))}function De(de){if(de.decorators&&de.decorators.length>0)return!0;var rn=e.getFirstConstructorWithBody(de);return rn?e.forEach(rn.parameters,Z):!1}function Z(de){return de.decorators!==void 0&&de.decorators.length>0}function Re(de,rn){var kn=0;e.some(rn)&&(kn|=1);var Qn=e.getEffectiveBaseTypeNode(de);return Qn&&e.skipOuterExpressions(Qn.expression).kind!==99&&(kn|=64),De(de)&&(kn|=2),e.childIsDecorated(de)&&(kn|=4),Ri(de)?kn|=8:yr(de)?kn|=32:Kt(de)&&(kn|=16),x<=1&&kn&7&&(kn|=128),kn}function we(de){return!!(de.transformFlags&1024)}function He(de){return e.some(de.decorators)||e.some(de.typeParameters)||e.some(de.heritageClauses,we)||e.some(de.members,we)}function ve(de){if(!He(de)&&!($&&e.hasModifier(de,1)))return e.visitEachChild(de,y,ee);var rn=e.getProperties(de,!0,!0),kn=Re(de,rn);kn&128&&ee.startLexicalEnvironment();var Qn=de.name||(kn&5?e.getGeneratedNameForNode(de):void 0),lt=kn&2?w(de,Qn):je(de,Qn,kn),Ft=[lt];if(Qe(Ft,de,!1),Qe(Ft,de,!0),ke(Ft,de),kn&128){var on=e.createTokenRange(e.skipTrivia(X.text,de.members.end),19),kr=e.getInternalName(de),fa=e.createPartiallyEmittedExpression(kr);fa.end=on.end,e.setEmitFlags(fa,1536);var Wa=e.createReturn(fa);Wa.pos=on.pos,e.setEmitFlags(Wa,1536|384),Ft.push(Wa),e.insertStatementsAfterStandardPrologue(Ft,ee.endLexicalEnvironment());var to=e.createImmediatelyInvokedArrowFunction(Ft);e.setEmitFlags(to,33554432);var ha=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(de,!1,!1),void 0,to)]));e.setOriginalNode(ha,de),e.setCommentRange(ha,de),e.setSourceMapRange(ha,e.moveRangePastDecorators(de)),e.startOnNewLine(ha),Ft=[ha]}return kn&8?_a(Ft,de):(kn&128||kn&2)&&(kn&32?Ft.push(e.createExportDefault(e.getLocalName(de,!1,!0))):kn&16&&Ft.push(e.createExternalModuleExport(e.getLocalName(de,!1,!0)))),Ft.length>1&&(Ft.push(e.createEndOfDeclarationMarker(de)),e.setEmitFlags(lt,e.getEmitFlags(lt)|4194304)),e.singleOrMany(Ft)}function je(de,rn,kn){var Qn=kn&128?void 0:e.visitNodes(de.modifiers,v,e.isModifier),lt=e.createClassDeclaration(void 0,Qn,rn,void 0,e.visitNodes(de.heritageClauses,y,e.isHeritageClause),Pe(de)),Ft=e.getEmitFlags(de);return kn&1&&(Ft|=32),e.aggregateTransformFlags(lt),e.setTextRange(lt,de),e.setOriginalNode(lt,de),e.setEmitFlags(lt,Ft),lt}function w(de,rn){var kn=e.moveRangePastDecorators(de),Qn=da(de),lt=e.getLocalName(de,!1,!0),Ft=e.visitNodes(de.heritageClauses,y,e.isHeritageClause),on=Pe(de),kr=e.createClassExpression(void 0,rn,void 0,Ft,on);e.aggregateTransformFlags(kr),e.setOriginalNode(kr,de),e.setTextRange(kr,kn);var fa=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(lt,void 0,Qn?e.createAssignment(Qn,kr):kr)],1));return e.setOriginalNode(fa,de),e.setTextRange(fa,kn),e.setCommentRange(fa,de),fa}function j(de){if(!He(de))return e.visitEachChild(de,y,ee);var rn=e.createClassExpression(void 0,de.name,void 0,e.visitNodes(de.heritageClauses,y,e.isHeritageClause),Pe(de));return e.aggregateTransformFlags(rn),e.setOriginalNode(rn,de),e.setTextRange(rn,de),rn}function Pe(de){var rn=[],kn=e.getFirstConstructorWithBody(de),Qn=kn&&e.filter(kn.parameters,function(kr){return e.isParameterPropertyDeclaration(kr,kn)});if(Qn)for(var lt=0,Ft=Qn;lt<Ft.length;lt++){var on=Ft[lt];e.isIdentifier(on.name)&&rn.push(e.setOriginalNode(e.aggregateTransformFlags(e.createProperty(void 0,void 0,on.name,void 0,void 0,void 0)),on))}return e.addRange(rn,e.visitNodes(de.members,pe,e.isClassElement)),e.setTextRange(e.createNodeArray(rn),de.members)}function a(de,rn){return e.filter(de.members,rn?function(kn){return Ze(kn,de)}:function(kn){return In(kn,de)})}function Ze(de,rn){return et(de,!0,rn)}function In(de,rn){return et(de,!1,rn)}function et(de,rn,kn){return e.nodeOrChildIsDecorated(de,kn)&&rn===e.hasModifier(de,32)}function ae(de){var rn;if(de)for(var kn=de.parameters,Qn=kn.length>0&&e.parameterIsThisKeyword(kn[0]),lt=Qn?1:0,Ft=Qn?kn.length-1:kn.length,on=0;on<Ft;on++){var kr=kn[on+lt];(rn||kr.decorators)&&(rn||(rn=new Array(Ft)),rn[on]=kr.decorators)}return rn}function fe(de){var rn=de.decorators,kn=ae(e.getFirstConstructorWithBody(de));return!rn&&!kn?void 0:{decorators:rn,parameters:kn}}function Le(de,rn){switch(rn.kind){case 162:case 163:return Je(de,rn);case 160:return $e(rn);case 158:return Fe(rn);default:return}}function Je(de,rn){if(!rn.body)return;var kn=e.getAllAccessorDeclarations(de.members,rn),Qn=kn.firstAccessor,lt=kn.secondAccessor,Ft=kn.setAccessor,on=Qn.decorators?Qn:lt&<.decorators?lt:void 0;if(!on||rn!==on)return;var kr=on.decorators,fa=ae(Ft);return!kr&&!fa?void 0:{decorators:kr,parameters:fa}}function $e(de){if(!de.body)return;var rn=de.decorators,kn=ae(de);return!rn&&!kn?void 0:{decorators:rn,parameters:kn}}function Fe(de){var rn=de.decorators;return rn?{decorators:rn}:void 0}function cn(de,rn,kn){if(!kn)return;var Qn=[];return e.addRange(Qn,e.map(kn.decorators,c)),e.addRange(Qn,e.flatMap(kn.parameters,L)),te(de,rn,Qn),Qn}function Qe(de,rn,kn){e.addRange(de,e.map(ln(rn,kn),Jr))}function ln(de,rn){for(var kn=a(de,rn),Qn,lt=0,Ft=kn;lt<Ft.length;lt++){var on=Ft[lt],kr=ye(de,on);kr&&(Qn?Qn.push(kr):Qn=[kr])}return Qn}function ye(de,rn){var kn=Le(de,rn),Qn=cn(rn,de,kn);if(!Qn)return;var lt=vn(de,rn),Ft=ct(rn,!0),on=x>0?rn.kind===158?e.createVoidZero():e.createNull():void 0,kr=Ge(ee,Qn,lt,Ft,on,e.moveRangePastDecorators(rn));return e.setEmitFlags(kr,1536),kr}function ke(de,rn){var kn=F(rn);kn&&de.push(e.setOriginalNode(e.createExpressionStatement(kn),rn))}function F(de){var rn=fe(de),kn=cn(de,de,rn);if(!kn)return;var Qn=be&&be[e.getOriginalNodeId(de)],lt=e.getLocalName(de,!1,!0),Ft=Ge(ee,kn,lt),on=e.createAssignment(lt,Qn?e.createAssignment(Qn,Ft):Ft);return e.setEmitFlags(on,1536),e.setSourceMapRange(on,e.moveRangePastDecorators(de)),on}function c(de){return e.visitNode(de.expression,y,e.isExpression)}function L(de,rn){var kn;if(de){kn=[];for(var Qn=0,lt=de;Qn<lt.length;Qn++){var Ft=lt[Qn],on=he(ee,c(Ft),rn,Ft.expression);e.setEmitFlags(on,1536),kn.push(on)}}return kn}function te(de,rn,kn){o?Ne(de,rn,kn):Se(de,rn,kn)}function Se(de,rn,kn){ie.emitDecoratorMetadata&&(ze(de)&&kn.push(Be(ee,"design:type",nn(de))),wn(de)&&kn.push(Be(ee,"design:paramtypes",pn(de,rn))),Tn(de)&&kn.push(Be(ee,"design:returntype",oe(de))))}function Ne(de,rn,kn){if(ie.emitDecoratorMetadata){var Qn=void 0;ze(de)&&(Qn||(Qn=[])).push(e.createPropertyAssignment("type",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(38),nn(de)))),wn(de)&&(Qn||(Qn=[])).push(e.createPropertyAssignment("paramTypes",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(38),pn(de,rn)))),Tn(de)&&(Qn||(Qn=[])).push(e.createPropertyAssignment("returnType",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(38),oe(de)))),Qn&&kn.push(Be(ee,"design:typeinfo",e.createObjectLiteral(Qn,!0)))}}function ze(de){var rn=de.kind;return rn===160||rn===162||rn===163||rn===158}function Tn(de){return de.kind===160}function wn(de){switch(de.kind){case 244:case 213:return e.getFirstConstructorWithBody(de)!==void 0;case 160:case 162:case 163:return!0}return!1}function jn(de){var rn=Te.getAllAccessorDeclarations(de);return rn.setAccessor&&e.getSetAccessorTypeAnnotationNode(rn.setAccessor)||rn.getAccessor&&e.getEffectiveReturnTypeNode(rn.getAccessor)}function nn(de){switch(de.kind){case 158:case 155:return Cn(de.type);case 163:case 162:return Cn(jn(de));case 244:case 213:case 160:return e.createIdentifier("Function");default:return e.createVoidZero()}}function pn(de,rn){var kn=e.isClassLike(de)?e.getFirstConstructorWithBody(de):e.isFunctionLike(de)&&e.nodeIsPresent(de.body)?de:void 0,Qn=[];if(kn)for(var lt=le(kn,rn),Ft=lt.length,on=0;on<Ft;on++){var kr=lt[on];if(on===0&&e.isIdentifier(kr.name)&&kr.name.escapedText==="this")continue;kr.dotDotDotToken?Qn.push(Cn(e.getRestParameterElementType(kr.type))):Qn.push(nn(kr))}return e.createArrayLiteral(Qn)}function le(de,rn){if(rn&&de.kind===162){var kn=e.getAllAccessorDeclarations(rn.members,de).setAccessor;if(kn)return kn.parameters}return de.parameters}function oe(de){return e.isFunctionLike(de)&&de.type?Cn(de.type):e.isAsyncFunction(de)?e.createIdentifier("Promise"):e.createVoidZero()}function Cn(de){if(de===void 0)return e.createIdentifier("Object");switch(de.kind){case 109:case 145:case 99:case 136:return e.createVoidZero();case 181:return Cn(de.type);case 169:case 170:return e.createIdentifier("Function");case 173:case 174:return e.createIdentifier("Array");case 167:case 127:return e.createIdentifier("Boolean");case 142:return e.createIdentifier("String");case 140:return e.createIdentifier("Object");case 186:switch(de.literal.kind){case 10:return e.createIdentifier("String");case 206:case 8:return e.createIdentifier("Number");case 9:return ut();case 105:case 90:return e.createIdentifier("Boolean");default:return e.Debug.failBadSyntaxKind(de.literal)}case 139:return e.createIdentifier("Number");case 150:return ut();case 143:return x<2?Bn():e.createIdentifier("Symbol");case 168:return _e(de);case 178:case 177:return yn(de.types);case 179:return yn([de.trueType,de.falseType]);case 183:if(de.operator===137)return Cn(de.type);break;case 171:case 184:case 185:case 172:case 124:case 147:case 182:case 187:break;default:return e.Debug.failBadSyntaxKind(de)}return e.createIdentifier("Object")}function yn(de){for(var rn,kn=0,Qn=de;kn<Qn.length;kn++){for(var lt=Qn[kn];lt.kind===181;)lt=lt.type;if(lt.kind===136)continue;if(!ce&&(lt.kind===99||lt.kind===145))continue;var Ft=Cn(lt);if(e.isIdentifier(Ft)&&Ft.escapedText==="Object")return Ft;if(rn){if(!e.isIdentifier(rn)||!e.isIdentifier(Ft)||rn.escapedText!==Ft.escapedText)return e.createIdentifier("Object")}else rn=Ft}return rn||e.createVoidZero()}function _e(de){var rn=Te.getTypeReferenceSerializationKind(de.typeName,se||z);switch(rn){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(de,function(lt){return lt.parent&&e.isConditionalTypeNode(lt.parent)&&(lt.parent.trueType===lt||lt.parent.falseType===lt)}))return e.createIdentifier("Object");var kn=un(de.typeName),Qn=e.createTempVariable(N);return e.createConditional(e.createTypeCheck(e.createAssignment(Qn,kn),"function"),Qn,e.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return Rn(de.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return e.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return ut();case e.TypeReferenceSerializationKind.BooleanType:return e.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return e.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return e.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return e.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return x<2?Bn():e.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return e.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return e.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return e.createIdentifier("Object");default:return e.Debug.assertNever(rn)}}function dn(de,rn){return e.createLogicalAnd(e.createStrictInequality(e.createTypeOf(de),e.createLiteral("undefined")),rn)}function un(de){if(de.kind===75){var rn=Rn(de);return dn(rn,rn)}if(de.left.kind===75)return dn(Rn(de.left),Rn(de));var kn=un(de.left),Qn=e.createTempVariable(N);return e.createLogicalAnd(e.createLogicalAnd(kn.left,e.createStrictInequality(e.createAssignment(Qn,kn.right),e.createVoidZero())),e.createPropertyAccess(Qn,de.right))}function Rn(de){switch(de.kind){case 75:var rn=e.getMutableClone(de);return rn.flags&=~8,rn.original=void 0,rn.parent=e.getParseTreeNode(z),rn;case 152:return at(de)}}function at(de){return e.createPropertyAccess(Rn(de.left),de.right)}function Bn(){return e.createConditional(e.createTypeCheck(e.createIdentifier("Symbol"),"function"),e.createIdentifier("Symbol"),e.createIdentifier("Object"))}function ut(){return x<99?e.createConditional(e.createTypeCheck(e.createIdentifier("BigInt"),"function"),e.createIdentifier("BigInt"),e.createIdentifier("Object")):e.createIdentifier("BigInt")}function ct(de,rn){var kn=de.name;return e.isComputedPropertyName(kn)?rn&&!e.isSimpleInlineableExpression(kn.expression)?e.getGeneratedNameForNode(kn):kn.expression:e.isIdentifier(kn)?e.createLiteral(e.idText(kn)):e.getSynthesizedClone(kn)}function ot(de){var rn=de.name;if(e.isComputedPropertyName(rn)&&(!e.hasStaticModifier(de)&&H||e.some(de.decorators))){var kn=e.visitNode(rn.expression,y,e.isExpression),Qn=e.skipPartiallyEmittedExpressions(kn);if(!e.isSimpleInlineableExpression(Qn)){var lt=e.getGeneratedNameForNode(rn);return N(lt),e.updateComputedPropertyName(rn,e.createAssignment(lt,kn))}}return e.visitNode(rn,y,e.isPropertyName)}function dt(de){return de.token===112?void 0:e.visitEachChild(de,y,ee)}function Ct(de){return e.updateExpressionWithTypeArguments(de,void 0,e.visitNode(de.expression,y,e.isLeftHandSideExpression))}function st(de){return!e.nodeIsMissing(de.body)}function Kn(de){if(de.flags&8388608)return;var rn=e.updateProperty(de,void 0,e.visitNodes(de.modifiers,y,e.isModifier),ot(de),void 0,void 0,e.visitNode(de.initializer,y));return rn!==de&&(e.setCommentRange(rn,de),e.setSourceMapRange(rn,e.moveRangePastDecorators(de))),rn}function Ie(de){return st(de)?e.updateConstructor(de,void 0,void 0,e.visitParameterList(de.parameters,y,ee),Ce(de.body,de)):void 0}function Ce(de,rn){var kn=rn&&e.filter(rn.parameters,function(on){return e.isParameterPropertyDeclaration(on,rn)});if(!e.some(kn))return e.visitFunctionBody(de,y,ee);var Qn=[],lt=0;J(),lt=e.addPrologueDirectivesAndInitialSuperCall(rn,Qn,y),e.addRange(Qn,e.map(kn,_n)),e.addRange(Qn,e.visitNodes(de.statements,y,e.isStatement,lt)),Qn=e.mergeLexicalEnvironment(Qn,Oe());var Ft=e.createBlock(e.setTextRange(e.createNodeArray(Qn),de.statements),!0);return e.setTextRange(Ft,de),e.setOriginalNode(Ft,de),Ft}function _n(de){var rn=de.name;if(!e.isIdentifier(rn))return;var kn=e.getMutableClone(rn);e.setEmitFlags(kn,1536|48);var Qn=e.getMutableClone(rn);return e.setEmitFlags(Qn,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(e.createExpressionStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),kn),de.name),Qn)),de),e.moveRangePos(de,-1))))}function yt(de){if(!st(de))return;var rn=e.updateMethod(de,void 0,e.visitNodes(de.modifiers,v,e.isModifier),de.asteriskToken,ot(de),void 0,void 0,e.visitParameterList(de.parameters,y,ee),void 0,e.visitFunctionBody(de.body,y,ee));return rn!==de&&(e.setCommentRange(rn,de),e.setSourceMapRange(rn,e.moveRangePastDecorators(de))),rn}function Dt(de){return!(e.nodeIsMissing(de.body)&&e.hasModifier(de,128))}function Ht(de){if(!Dt(de))return;var rn=e.updateGetAccessor(de,void 0,e.visitNodes(de.modifiers,v,e.isModifier),ot(de),e.visitParameterList(de.parameters,y,ee),void 0,e.visitFunctionBody(de.body,y,ee)||e.createBlock([]));return rn!==de&&(e.setCommentRange(rn,de),e.setSourceMapRange(rn,e.moveRangePastDecorators(de))),rn}function $t(de){if(!Dt(de))return;var rn=e.updateSetAccessor(de,void 0,e.visitNodes(de.modifiers,v,e.isModifier),ot(de),e.visitParameterList(de.parameters,y,ee),e.visitFunctionBody(de.body,y,ee)||e.createBlock([]));return rn!==de&&(e.setCommentRange(rn,de),e.setSourceMapRange(rn,e.moveRangePastDecorators(de))),rn}function wr(de){if(!st(de))return e.createNotEmittedStatement(de);var rn=e.updateFunctionDeclaration(de,void 0,e.visitNodes(de.modifiers,v,e.isModifier),de.asteriskToken,de.name,void 0,e.visitParameterList(de.parameters,y,ee),void 0,e.visitFunctionBody(de.body,y,ee)||e.createBlock([]));if(Ri(de)){var kn=[rn];return _a(kn,de),kn}return rn}function Yr(de){if(!st(de))return e.createOmittedExpression();var rn=e.updateFunctionExpression(de,e.visitNodes(de.modifiers,v,e.isModifier),de.asteriskToken,de.name,void 0,e.visitParameterList(de.parameters,y,ee),void 0,e.visitFunctionBody(de.body,y,ee)||e.createBlock([]));return rn}function Hr(de){var rn=e.updateArrowFunction(de,e.visitNodes(de.modifiers,v,e.isModifier),void 0,e.visitParameterList(de.parameters,y,ee),void 0,de.equalsGreaterThanToken,e.visitFunctionBody(de.body,y,ee));return rn}function mt(de){if(e.parameterIsThisKeyword(de))return;var rn=e.updateParameter(de,void 0,void 0,de.dotDotDotToken,e.visitNode(de.name,y,e.isBindingName),void 0,void 0,e.visitNode(de.initializer,y,e.isExpression));return rn!==de&&(e.setCommentRange(rn,de),e.setTextRange(rn,e.moveRangePastModifiers(de)),e.setSourceMapRange(rn,e.moveRangePastModifiers(de)),e.setEmitFlags(rn.name,32)),rn}function va(de){if(Ri(de)){var rn=e.getInitializedVariables(de.declarationList);return rn.length===0?void 0:e.setTextRange(e.createExpressionStatement(e.inlineExpressions(e.map(rn,Lt))),de)}else return e.visitEachChild(de,y,ee)}function Lt(de){var rn=de.name;return e.isBindingPattern(rn)?e.flattenDestructuringAssignment(de,y,ee,0,!1,qr):e.setTextRange(e.createAssignment(pi(rn),e.visitNode(de.initializer,y,e.isExpression)),de)}function Wn(de){return e.updateVariableDeclaration(de,e.visitNode(de.name,y,e.isBindingName),void 0,e.visitNode(de.initializer,y,e.isExpression))}function Vt(de){var rn=e.skipOuterExpressions(de.expression,~2);if(e.isAssertionExpression(rn)){var kn=e.visitNode(de.expression,y,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(kn,X))?e.updateParen(de,kn):e.createPartiallyEmittedExpression(kn,de)}return e.visitEachChild(de,y,ee)}function pt(de){var rn=e.visitNode(de.expression,y,e.isExpression);return e.createPartiallyEmittedExpression(rn,de)}function Tt(de){var rn=e.visitNode(de.expression,y,e.isLeftHandSideExpression);return e.createPartiallyEmittedExpression(rn,de)}function ht(de){return e.updateCall(de,e.visitNode(de.expression,y,e.isExpression),void 0,e.visitNodes(de.arguments,y,e.isExpression))}function bt(de){return e.updateNew(de,e.visitNode(de.expression,y,e.isExpression),void 0,e.visitNodes(de.arguments,y,e.isExpression))}function Ke(de){return e.updateTaggedTemplate(de,e.visitNode(de.tag,y,e.isExpression),void 0,e.visitNode(de.template,y,e.isExpression))}function Pn(de){return!e.isEnumConst(de)||ie.preserveConstEnums||ie.isolatedModules}function $n(de){if(!Pn(de))return e.createNotEmittedStatement(de);var rn=[],kn=2,Qn=Ja(rn,de);Qn&&((C!==e.ModuleKind.System||z!==X)&&(kn|=512));var lt=Li(de),Ft=mi(de),on=e.hasModifier(de,1)?e.getExternalModuleOrNamespaceExportName(Q,de,!1,!0):e.getLocalName(de,!1,!0),kr=e.createLogicalOr(on,e.createAssignment(on,e.createObjectLiteral()));if(Si(de)){var fa=e.getLocalName(de,!1,!0);kr=e.createAssignment(fa,kr)}var Wa=e.createExpressionStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,lt)],void 0,rr(de,Ft)),void 0,[kr]));return e.setOriginalNode(Wa,de),Qn&&(e.setSyntheticLeadingComments(Wa,void 0),e.setSyntheticTrailingComments(Wa,void 0)),e.setTextRange(Wa,de),e.addEmitFlags(Wa,kn),rn.push(Wa),rn.push(e.createEndOfDeclarationMarker(de)),rn}function rr(de,rn){var kn=Q;Q=rn;var Qn=[];f();var lt=e.map(de.members,xa);return e.insertStatementsAfterStandardPrologue(Qn,Oe()),e.addRange(Qn,lt),Q=kn,e.createBlock(e.setTextRange(e.createNodeArray(Qn),de.members),!0)}function xa(de){var rn=ct(de,!1),kn=Fa(de),Qn=e.createAssignment(e.createElementAccess(Q,rn),kn),lt=kn.kind===10?Qn:e.createAssignment(e.createElementAccess(Q,Qn),rn);return e.setTextRange(e.createExpressionStatement(e.setTextRange(lt,de)),de)}function Fa(de){var rn=Te.getConstantValue(de);return rn!==void 0?e.createLiteral(rn):(Ln(),de.initializer?e.visitNode(de.initializer,y,e.isExpression):e.createVoidZero())}function ri(de){var rn=e.getParseTreeNode(de,e.isModuleDeclaration);return rn?e.isInstantiatedModule(rn,!!ie.preserveConstEnums||!!ie.isolatedModules):!0}function Si(de){return Ri(de)||xt(de)&&C!==e.ModuleKind.ES2015&&C!==e.ModuleKind.ESNext&&C!==e.ModuleKind.System}function xi(de){G||(G=e.createUnderscoreEscapedMap());var rn=Oi(de);G.has(rn)||G.set(rn,de)}function vi(de){if(G){var rn=Oi(de);return G.get(rn)===de}return!0}function Oi(de){return e.Debug.assertNode(de.name,e.isIdentifier),de.name.escapedText}function Ja(de,rn){var kn=e.createVariableStatement(e.visitNodes(rn.modifiers,v,e.isModifier),e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(rn,!1,!0))],z.kind===288?0:1));if(e.setOriginalNode(kn,rn),xi(rn),vi(rn))return rn.kind===247?e.setSourceMapRange(kn.declarationList,rn):e.setSourceMapRange(kn,rn),e.setCommentRange(kn,rn),e.addEmitFlags(kn,1024|4194304),de.push(kn),!0;var Qn=e.createMergeDeclarationMarker(kn);return e.setEmitFlags(Qn,1536|4194304),de.push(Qn),!1}function Ka(de){if(!ri(de))return e.createNotEmittedStatement(de);e.Debug.assertNode(de.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),Mt();var rn=[],kn=2,Qn=Ja(rn,de);Qn&&((C!==e.ModuleKind.System||z!==X)&&(kn|=512));var lt=Li(de),Ft=mi(de),on=e.hasModifier(de,1)?e.getExternalModuleOrNamespaceExportName(Q,de,!1,!0):e.getLocalName(de,!1,!0),kr=e.createLogicalOr(on,e.createAssignment(on,e.createObjectLiteral()));if(Si(de)){var fa=e.getLocalName(de,!1,!0);kr=e.createAssignment(fa,kr)}var Wa=e.createExpressionStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,lt)],void 0,ua(de,Ft)),void 0,[kr]));return e.setOriginalNode(Wa,de),Qn&&(e.setSyntheticLeadingComments(Wa,void 0),e.setSyntheticTrailingComments(Wa,void 0)),e.setTextRange(Wa,de),e.addEmitFlags(Wa,kn),rn.push(Wa),rn.push(e.createEndOfDeclarationMarker(de)),rn}function ua(de,rn){var kn=Q,Qn=$,lt=G;Q=rn,$=de,G=void 0;var Ft=[];f();var on,kr,fa=de.body;if(fa.kind===249)I(fa,function(Yo){return e.addRange(Ft,e.visitNodes(Yo.statements,O,e.isStatement))}),on=fa.statements,kr=fa;else{var Wa=Ka(fa);Wa&&(e.isArray(Wa)?e.addRange(Ft,Wa):Ft.push(Wa));var to=bi(de).body;on=e.moveRangePos(to.statements,-1)}e.insertStatementsAfterStandardPrologue(Ft,Oe()),Q=kn,$=Qn,G=lt;var ha=e.createBlock(e.setTextRange(e.createNodeArray(Ft),on),!0);return e.setTextRange(ha,kr),fa.kind!==249&&e.setEmitFlags(ha,e.getEmitFlags(ha)|1536),ha}function bi(de){if(de.body.kind===248){var rn=bi(de.body);return rn||de.body}}function Vo(de){if(!de.importClause)return de;var rn=e.visitNode(de.importClause,wo,e.isImportClause);return rn?e.updateImportDeclaration(de,void 0,void 0,rn,de.moduleSpecifier):void 0}function wo(de){var rn=Te.isReferencedAliasDeclaration(de)?de.name:void 0,kn=e.visitNode(de.namedBindings,Mo,e.isNamedImportBindings);return rn||kn?e.updateImportClause(de,rn,kn):void 0}function Mo(de){if(de.kind===255)return Te.isReferencedAliasDeclaration(de)?de:void 0;var rn=e.visitNodes(de.elements,uo,e.isImportSpecifier);return e.some(rn)?e.updateNamedImports(de,rn):void 0}function uo(de){return Te.isReferencedAliasDeclaration(de)?de:void 0}function ci(de){return Te.isValueAliasDeclaration(de)?e.visitEachChild(de,y,ee):void 0}function Gi(de){if(!de.exportClause)return ie.isolatedModules||Te.moduleExportsSomeValue(de.moduleSpecifier)?de:void 0;if(!Te.isValueAliasDeclaration(de))return;var rn=e.visitNode(de.exportClause,ji,e.isNamedExports);return rn?e.updateExportDeclaration(de,void 0,void 0,rn,de.moduleSpecifier):void 0}function ji(de){var rn=e.visitNodes(de.elements,Ro,e.isExportSpecifier);return e.some(rn)?e.updateNamedExports(de,rn):void 0}function Ro(de){return Te.isValueAliasDeclaration(de)?de:void 0}function Ao(de){return Te.isReferencedAliasDeclaration(de)||!e.isExternalModule(X)&&Te.isTopLevelValueImportEqualsWithEntityName(de)}function _o(de){if(e.isExternalModuleImportEqualsDeclaration(de))return Te.isReferencedAliasDeclaration(de)?e.visitEachChild(de,y,ee):void 0;if(!Ao(de))return;var rn=e.createExpressionFromEntityName(de.moduleReference);return e.setEmitFlags(rn,1536|2048),Kt(de)||!Ri(de)?e.setOriginalNode(e.setTextRange(e.createVariableStatement(e.visitNodes(de.modifiers,v,e.isModifier),e.createVariableDeclarationList([e.setOriginalNode(e.createVariableDeclaration(de.name,void 0,rn),de)])),de),de):e.setOriginalNode(La(de.name,rn,de),de)}function Ri(de){return $!==void 0&&e.hasModifier(de,1)}function xt(de){return $===void 0&&e.hasModifier(de,1)}function Kt(de){return xt(de)&&!e.hasModifier(de,512)}function yr(de){return xt(de)&&e.hasModifier(de,512)}function Jr(de){return e.createExpressionStatement(de)}function _a(de,rn){var kn=e.createAssignment(e.getExternalModuleOrNamespaceExportName(Q,rn,!1,!0),e.getLocalName(rn));e.setSourceMapRange(kn,e.createRange(rn.name?rn.name.pos:rn.pos,rn.end));var Qn=e.createExpressionStatement(kn);e.setSourceMapRange(Qn,e.createRange(-1,rn.end)),de.push(Qn)}function La(de,rn,kn){return e.setTextRange(e.createExpressionStatement(e.createAssignment(e.getNamespaceMemberName(Q,de,!1,!0),rn)),kn)}function qr(de,rn,kn){return e.setTextRange(e.createAssignment(pi(de),rn),kn)}function pi(de){return e.getNamespaceMemberName(Q,de,!1,!0)}function Li(de){var rn=e.getGeneratedNameForNode(de);return e.setSourceMapRange(rn,de.name),rn}function mi(de){return e.getGeneratedNameForNode(de)}function da(de){if(Te.getNodeCheckFlags(de)&16777216){Vn();var rn=e.createUniqueName(de.name&&!e.isGeneratedIdentifier(de.name)?e.idText(de.name):"default");return be[e.getOriginalNodeId(de)]=rn,N(rn),rn}}function en(de){return e.createPropertyAccess(e.getDeclarationName(de),"prototype")}function vn(de,rn){return e.hasModifier(rn,32)?e.getDeclarationName(de):en(de)}function Ln(){(q&8)===0&&(q|=8,ee.enableSubstitution(75))}function Vn(){(q&1)===0&&(q|=1,ee.enableSubstitution(75),be=[])}function Mt(){(q&2)===0&&(q|=2,ee.enableSubstitution(75),ee.enableSubstitution(280),ee.enableEmitNotification(248))}function tr(de){return e.getOriginalNode(de).kind===248}function dr(de){return e.getOriginalNode(de).kind===247}function Pr(de,rn,kn){var Qn=R,lt=X;e.isSourceFile(rn)&&(X=rn),q&2&&tr(rn)&&(R|=2),q&8&&dr(rn)&&(R|=8),P(de,rn,kn),R=Qn,X=lt}function za(de,rn){return rn=h(de,rn),de===1?Ii(rn):e.isShorthandPropertyAssignment(rn)?Ia(rn):rn}function Ia(de){if(q&2){var rn=de.name,kn=Xe(rn);if(kn){if(de.objectAssignmentInitializer){var Qn=e.createAssignment(kn,de.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(rn,Qn),de)}return e.setTextRange(e.createPropertyAssignment(rn,kn),de)}}return de}function Ii(de){switch(de.kind){case 75:return ai(de);case 193:return qn(de);case 194:return ge(de)}return de}function ai(de){return hi(de)||Xe(de)||de}function hi(de){if(q&1&&Te.getNodeCheckFlags(de)&33554432){var rn=Te.getReferencedValueDeclaration(de);if(rn){var kn=be[rn.id];if(kn){var Qn=e.getSynthesizedClone(kn);return e.setSourceMapRange(Qn,de),e.setCommentRange(Qn,de),Qn}}}return}function Xe(de){if(q&R&&!e.isGeneratedIdentifier(de)&&!e.isLocalName(de)){var rn=Te.getReferencedExportContainer(de,!1);if(rn&&rn.kind!==288){var kn=R&2&&rn.kind===248||R&8&&rn.kind===247;if(kn)return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(rn),de),de)}}return}function qn(de){return hn(de)}function ge(de){return hn(de)}function hn(de){var rn=Hn(de);if(rn!==void 0){e.setConstantValue(de,rn);var kn=e.createLiteral(rn);if(!ie.removeComments){var Qn=e.getOriginalNode(de,e.isAccessExpression),lt=e.isPropertyAccessExpression(Qn)?e.declarationNameToString(Qn.name):e.getTextOfNode(Qn.argumentExpression);e.addSyntheticTrailingComment(kn,3," "+lt+" ")}return kn}return de}function Hn(de){return ie.isolatedModules?void 0:e.isPropertyAccessExpression(de)||e.isElementAccessExpression(de)?Te.getConstantValue(de):void 0}}e.transformTypeScript=Ee;function Ge(ee,f,J,Oe,N,Te){var ie=[];return ie.push(e.createArrayLiteral(f,!0)),ie.push(J),Oe&&(ie.push(Oe),N&&ie.push(N)),ee.requestEmitHelper(e.decorateHelper),e.setTextRange(e.createCall(e.getUnscopedHelperName("__decorate"),void 0,ie),Te)}e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:`
|
|
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
|
};`};function Be(ee,f,J){return ee.requestEmitHelper(e.metadataHelper),e.createCall(e.getUnscopedHelperName("__metadata"),void 0,[e.createLiteral(f),J])}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);
|
|
|
};`};function he(ee,f,J,Oe){return ee.requestEmitHelper(e.paramHelper),e.setTextRange(e.createCall(e.getUnscopedHelperName("__param"),void 0,[e.createLiteral(J),f]),Oe)}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); }
|
|
|
};`}})(sn||(sn={}));var sn;(function(e){var o;(function(qe){qe[qe.ClassAliases=1]="ClassAliases"})(o||(o={}));function M(qe){var Ee=qe.hoistVariableDeclaration,Ge=qe.endLexicalEnvironment,Be=qe.resumeLexicalEnvironment,he=qe.getEmitResolver(),ee=qe.onSubstituteNode;qe.onSubstituteNode=be;var f,J,Oe,N;return e.chainBundle(Te);function Te(I){var D=qe.getCompilerOptions();if(I.isDeclarationFile||D.useDefineForClassFields&&D.target===99)return I;var y=e.visitEachChild(I,ie,qe);return e.addEmitHelpers(y,qe.readEmitHelpers()),y}function ie(I){if(!(I.transformFlags&1048576))return I;switch(I.kind){case 213:return X(I);case 244:return h(I);case 224:return x(I)}return e.visitEachChild(I,ie,qe)}function ce(I){switch(I.kind){case 161:return;case 162:case 163:case 160:return e.visitEachChild(I,ce,qe);case 158:return P(I);case 153:return C(I);case 221:return I;default:return ie(I)}}function x(I){var D=N;N=[];var y=e.visitEachChild(I,ie,qe),E=e.some(N)?Tr([y],N):y;return N=D,E}function C(I){var D=e.visitEachChild(I,ie,qe);if(e.some(Oe)){var y=Oe;y.push(I.expression),Oe=[],D=e.updateComputedPropertyName(D,e.inlineExpressions(y))}return D}function P(I){e.Debug.assert(!e.some(I.decorators));var D=_(I.name,!!I.initializer||!!qe.getCompilerOptions().useDefineForClassFields);D&&!e.isSimpleInlineableExpression(D)&&(Oe||(Oe=[])).push(D);return}function h(I){if(!e.forEach(I.members,e.isPropertyDeclaration))return e.visitEachChild(I,ie,qe);var D=Oe;Oe=void 0;var y=e.getEffectiveBaseTypeNode(I),E=!!(y&&e.skipOuterExpressions(y.expression).kind!==99),k=[e.updateClassDeclaration(I,void 0,I.modifiers,I.name,void 0,e.visitNodes(I.heritageClauses,ie,e.isHeritageClause),$(I,E))];e.some(Oe)&&k.push(e.createExpressionStatement(e.inlineExpressions(Oe))),Oe=D;var T=e.getProperties(I,!0,!0);return e.some(T)&&se(k,T,e.getInternalName(I)),k}function X(I){if(!e.forEach(I.members,e.isPropertyDeclaration))return e.visitEachChild(I,ie,qe);var D=Oe;Oe=void 0;var y=e.isClassDeclaration(e.getOriginalNode(I)),E=e.getProperties(I,!0,!0),k=e.getEffectiveBaseTypeNode(I),T=!!(k&&e.skipOuterExpressions(k.expression).kind!==99),ne=e.updateClassExpression(I,I.modifiers,I.name,void 0,e.visitNodes(I.heritageClauses,ie,e.isHeritageClause),$(I,T));if(e.some(E)||e.some(Oe)){if(y)return e.Debug.assertDefined(N,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),N&&Oe&&e.some(Oe)&&N.push(e.createExpressionStatement(e.inlineExpressions(Oe))),Oe=D,N&&e.some(E)&&se(N,E,e.getInternalName(I)),ne;var O=[],Y=he.getNodeCheckFlags(I)&16777216,pe=e.createTempVariable(Ee,!!Y);if(Y){q();var S=e.getSynthesizedClone(pe);S.autoGenerateFlags&=~8,J[e.getOriginalNodeId(I)]=S}return e.setEmitFlags(ne,65536|e.getEmitFlags(ne)),O.push(e.startOnNewLine(e.createAssignment(pe,ne))),e.addRange(O,e.map(Oe,e.startOnNewLine)),e.addRange(O,G(E,pe)),O.push(e.startOnNewLine(pe)),Oe=D,e.inlineExpressions(O)}return Oe=D,ne}function $(I,D){var y=[],E=Q(I,D);return E&&y.push(E),e.addRange(y,e.visitNodes(I.members,ce,e.isClassElement)),e.setTextRange(e.createNodeArray(y),I.members)}function Q(I,D){var y=e.visitNode(e.getFirstConstructorWithBody(I),ie,e.isConstructorDeclaration),E=e.forEach(I.members,function(ne){return e.isInitializedProperty(ne,!qe.getCompilerOptions().useDefineForClassFields)});if(!E)return y;var k=e.visitParameterList(y?y.parameters:void 0,ie,qe),T=z(I,y,D);return T?e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,k,T),y||I),y)):void 0}function z(I,D,y){var E,k=qe.getCompilerOptions().useDefineForClassFields,T=e.getProperties(I,!k,!1);if(!D&&!e.some(T))return e.visitFunctionBody(void 0,ie,qe);Be();var ne=0,O=[];if(!D&&y&&O.push(e.createExpressionStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))]))),D&&(ne=e.addPrologueDirectivesAndInitialSuperCall(D,O,ie)),(E=D)===null||E===void 0?void 0:E.body){var Y=e.findIndex(D.body.statements,function(pe){return!e.isParameterPropertyDeclaration(e.getOriginalNode(pe),D)},ne);Y===-1&&(Y=D.body.statements.length),Y>ne&&(k||e.addRange(O,e.visitNodes(D.body.statements,ie,e.isStatement,ne,Y-ne)),ne=Y)}return se(O,T,e.createThis()),D&&e.addRange(O,e.visitNodes(D.body.statements,ie,e.isStatement,ne)),O=e.mergeLexicalEnvironment(O,Ge()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(O),D?D.body.statements:I.members),!0),D?D.body:void 0)}function se(I,D,y){for(var E=0,k=D;E<k.length;E++){var T=k[E],ne=e.createExpressionStatement(H(T,y));e.setSourceMapRange(ne,e.moveRangePastModifiers(T)),e.setCommentRange(ne,T),e.setOriginalNode(ne,T),I.push(ne)}}function G(I,D){for(var y=[],E=0,k=I;E<k.length;E++){var T=k[E],ne=H(T,D);e.startOnNewLine(ne),e.setSourceMapRange(ne,e.moveRangePastModifiers(T)),e.setCommentRange(ne,T),e.setOriginalNode(ne,T),y.push(ne)}return y}function H(I,D){var y=!qe.getCompilerOptions().useDefineForClassFields,E=e.isComputedPropertyName(I.name)&&!e.isSimpleInlineableExpression(I.name.expression)?e.updateComputedPropertyName(I.name,e.getGeneratedNameForNode(I.name)):I.name,k=I.initializer||y?e.visitNode(I.initializer,ie,e.isExpression):e.hasModifier(e.getOriginalNode(I),92)&&e.isIdentifier(E)?E:e.createVoidZero();if(y){var T=e.createMemberAccessForPropertyName(D,E,E);return e.createAssignment(T,k)}else{var ne=e.isComputedPropertyName(E)?E.expression:e.isIdentifier(E)?e.createStringLiteral(e.unescapeLeadingUnderscores(E.escapedText)):E,O=e.createPropertyDescriptor({value:k,configurable:!0,writable:!0,enumerable:!0});return e.createObjectDefinePropertyCall(D,ne,O)}}function q(){(f&1)===0&&(f|=1,qe.enableSubstitution(75),J=[])}function be(I,D){return D=ee(I,D),I===1?R(D):D}function R(I){switch(I.kind){case 75:return K(I)}return I}function K(I){return m(I)||I}function m(I){if(f&1&&he.getNodeCheckFlags(I)&33554432){var D=he.getReferencedValueDeclaration(I);if(D){var y=J[D.id];if(y){var E=e.getSynthesizedClone(y);return e.setSourceMapRange(E,I),e.setCommentRange(E,I),E}}}return}function _(I,D){if(e.isComputedPropertyName(I)){var y=e.visitNode(I.expression,ie,e.isExpression),E=e.skipPartiallyEmittedExpressions(y),k=e.isSimpleInlineableExpression(E),T=e.isAssignmentExpression(E)&&e.isGeneratedIdentifier(E.left);if(!T&&!k&&D){var ne=e.getGeneratedNameForNode(I);return Ee(ne),e.createAssignment(ne,y)}return k||e.isIdentifier(E)?void 0:y}}}e.transformClassFields=M})(sn||(sn={}));var sn;(function(e){var o;(function(Ge){Ge[Ge.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(o||(o={}));function M(Ge){var Be=Ge.resumeLexicalEnvironment,he=Ge.endLexicalEnvironment,ee=Ge.hoistVariableDeclaration,f=Ge.getEmitResolver(),J=Ge.getCompilerOptions(),Oe=e.getEmitScriptTarget(J),N,Te=0,ie,ce,x,C=[],P,h=Ge.onEmitNode,X=Ge.onSubstituteNode;return Ge.onEmitNode=De,Ge.onSubstituteNode=Z,e.chainBundle($);function $(j){if(j.isDeclarationFile)return j;P=e.isEffectiveStrictModeSourceFile(j,J);var Pe=e.visitEachChild(j,se,Ge);return e.addEmitHelpers(Pe,Ge.readEmitHelpers()),Pe}function Q(j,Pe){if(P){P=!1;var a=j(Pe);return P=!0,a}return j(Pe)}function z(j){return e.visitEachChild(j,se,Ge)}function se(j){if((j.transformFlags&32)===0)return j;switch(j.kind){case 125:return;case 205:return m(j);case 160:return Q(_,j);case 243:return Q(I,j);case 200:return Q(D,j);case 201:return y(j);case 193:return ce&&e.isPropertyAccessExpression(j)&&j.expression.kind===101&&ce.set(j.name.escapedText,!0),e.visitEachChild(j,se,Ge);case 194:return ce&&j.expression.kind===101&&(x=!0),e.visitEachChild(j,se,Ge);case 162:case 163:case 161:case 244:case 213:return Q(z,j);default:return e.visitEachChild(j,se,Ge)}}function G(j){if(e.isNodeWithPossibleHoistedDeclaration(j))switch(j.kind){case 224:return q(j);case 229:return K(j);case 230:return be(j);case 231:return R(j);case 278:return H(j);case 222:case 236:case 250:case 275:case 276:case 239:case 227:case 228:case 226:case 235:case 237:return e.visitEachChild(j,G,Ge);default:return e.Debug.assertNever(j,"Unhandled node.")}return se(j)}function H(j){var Pe=e.createUnderscoreEscapedMap();E(j.variableDeclaration,Pe);var a;if(Pe.forEach(function(et,ae){ie.has(ae)&&(a||(a=e.cloneMap(ie)),a.delete(ae))}),a){var Ze=ie;ie=a;var In=e.visitEachChild(j,G,Ge);return ie=Ze,In}else return e.visitEachChild(j,G,Ge)}function q(j){if(k(j.declarationList)){var Pe=T(j.declarationList,!1);return Pe?e.createExpressionStatement(Pe):void 0}return e.visitEachChild(j,se,Ge)}function be(j){return e.updateForIn(j,k(j.initializer)?T(j.initializer,!0):e.visitNode(j.initializer,se,e.isForInitializer),e.visitNode(j.expression,se,e.isExpression),e.visitNode(j.statement,G,e.isStatement,e.liftToBlock))}function R(j){return e.updateForOf(j,e.visitNode(j.awaitModifier,se,e.isToken),k(j.initializer)?T(j.initializer,!0):e.visitNode(j.initializer,se,e.isForInitializer),e.visitNode(j.expression,se,e.isExpression),e.visitNode(j.statement,G,e.isStatement,e.liftToBlock))}function K(j){var Pe=j.initializer;return e.updateFor(j,k(Pe)?T(Pe,!1):e.visitNode(j.initializer,se,e.isForInitializer),e.visitNode(j.condition,se,e.isExpression),e.visitNode(j.incrementor,se,e.isExpression),e.visitNode(j.statement,G,e.isStatement,e.liftToBlock))}function m(j){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(j.expression,se,e.isExpression)),j),j)}function _(j){return e.updateMethod(j,void 0,e.visitNodes(j.modifiers,se,e.isModifier),j.asteriskToken,j.name,void 0,void 0,e.visitParameterList(j.parameters,se,Ge),void 0,e.getFunctionFlags(j)&2?S(j):e.visitFunctionBody(j.body,se,Ge))}function I(j){return e.updateFunctionDeclaration(j,void 0,e.visitNodes(j.modifiers,se,e.isModifier),j.asteriskToken,j.name,void 0,e.visitParameterList(j.parameters,se,Ge),void 0,e.getFunctionFlags(j)&2?S(j):e.visitFunctionBody(j.body,se,Ge))}function D(j){return e.updateFunctionExpression(j,e.visitNodes(j.modifiers,se,e.isModifier),j.asteriskToken,j.name,void 0,e.visitParameterList(j.parameters,se,Ge),void 0,e.getFunctionFlags(j)&2?S(j):e.visitFunctionBody(j.body,se,Ge))}function y(j){return e.updateArrowFunction(j,e.visitNodes(j.modifiers,se,e.isModifier),void 0,e.visitParameterList(j.parameters,se,Ge),void 0,j.equalsGreaterThanToken,e.getFunctionFlags(j)&2?S(j):e.visitFunctionBody(j.body,se,Ge))}function E(j,Pe){var a=j.name;if(e.isIdentifier(a))Pe.set(a.escapedText,!0);else for(var Ze=0,In=a.elements;Ze<In.length;Ze++){var et=In[Ze];e.isOmittedExpression(et)||E(et,Pe)}}function k(j){return!!j&&e.isVariableDeclarationList(j)&&!(j.flags&3)&&j.declarations.some(pe)}function T(j,Pe){ne(j);var a=e.getInitializedVariables(j);return a.length===0?Pe?e.visitNode(e.convertToAssignmentElementTarget(j.declarations[0].name),se,e.isExpression):void 0:e.inlineExpressions(e.map(a,Y))}function ne(j){e.forEach(j.declarations,O)}function O(j){var Pe=j.name;if(e.isIdentifier(Pe))ee(Pe);else for(var a=0,Ze=Pe.elements;a<Ze.length;a++){var In=Ze[a];e.isOmittedExpression(In)||O(In)}}function Y(j){var Pe=e.setSourceMapRange(e.createAssignment(e.convertToAssignmentElementTarget(j.name),j.initializer),j);return e.visitNode(Pe,se,e.isExpression)}function pe(j){var Pe=j.name;if(e.isIdentifier(Pe))return ie.has(Pe.escapedText);for(var a=0,Ze=Pe.elements;a<Ze.length;a++){var In=Ze[a];if(!e.isOmittedExpression(In)&&pe(In))return!0}return!1}function S(j){Be();var Pe=e.getOriginalNode(j,e.isFunctionLike),a=Pe.type,Ze=Oe<2?U(a):void 0,In=j.kind===201,et=(f.getNodeCheckFlags(j)&8192)!==0,ae=ie;ie=e.createUnderscoreEscapedMap();for(var fe=0,Le=j.parameters;fe<Le.length;fe++){var Je=Le[fe];E(Je,ie)}var $e=ce,Fe=x;In||(ce=e.createUnderscoreEscapedMap(),x=!1);var cn;if(In){var c=Ee(Ge,!P,et,Ze,v(j.body)),L=he();if(e.some(L)){var F=e.convertToFunctionBody(c);cn=e.updateBlock(F,e.setTextRange(e.createNodeArray(e.concatenate(L,F.statements)),F.statements))}else cn=c}else{var Qe=[],ln=e.addPrologue(Qe,j.body.statements,!1,se);Qe.push(e.createReturn(Ee(Ge,!P,et,Ze,v(j.body,ln)))),e.insertStatementsAfterStandardPrologue(Qe,he());var ye=Oe>=2&&f.getNodeCheckFlags(j)&(4096|2048);if(ye&&(ue(),e.hasEntries(ce))){var ke=qe(f,j,ce);C[e.getNodeId(ke)]=!0,e.insertStatementsAfterStandardPrologue(Qe,[ke])}var F=e.createBlock(Qe,!0);e.setTextRange(F,j.body),ye&&x&&(f.getNodeCheckFlags(j)&4096?e.addEmitHelper(F,e.advancedAsyncSuperHelper):f.getNodeCheckFlags(j)&2048&&e.addEmitHelper(F,e.asyncSuperHelper)),cn=F}return ie=ae,In||(ce=$e,x=Fe),cn}function v(j,Pe){return e.isBlock(j)?e.updateBlock(j,e.visitNodes(j.statements,G,e.isStatement,Pe)):e.convertToFunctionBody(e.visitNode(j,G,e.isConciseBody))}function U(j){var Pe=j&&e.getEntityNameFromTypeNode(j);if(Pe&&e.isEntityName(Pe)){var a=f.getTypeReferenceSerializationKind(Pe);if(a===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||a===e.TypeReferenceSerializationKind.Unknown)return Pe}return}function ue(){(N&1)===0&&(N|=1,Ge.enableSubstitution(195),Ge.enableSubstitution(193),Ge.enableSubstitution(194),Ge.enableEmitNotification(244),Ge.enableEmitNotification(160),Ge.enableEmitNotification(162),Ge.enableEmitNotification(163),Ge.enableEmitNotification(161),Ge.enableEmitNotification(224))}function De(j,Pe,a){if(N&1&&je(Pe)){var Ze=f.getNodeCheckFlags(Pe)&(2048|4096);if(Ze!==Te){var In=Te;Te=Ze,h(j,Pe,a),Te=In;return}}else if(N&&C[e.getNodeId(Pe)]){var In=Te;Te=0,h(j,Pe,a),Te=In;return}h(j,Pe,a)}function Z(j,Pe){return Pe=X(j,Pe),j===1&&Te?Re(Pe):Pe}function Re(j){switch(j.kind){case 193:return we(j);case 194:return He(j);case 195:return ve(j)}return j}function we(j){return j.expression.kind===101?e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),j.name),j):j}function He(j){return j.expression.kind===101?w(j.argumentExpression,j):j}function ve(j){var Pe=j.expression;if(e.isSuperProperty(Pe)){var a=e.isPropertyAccessExpression(Pe)?we(Pe):He(Pe);return e.createCall(e.createPropertyAccess(a,"call"),void 0,Tr([e.createThis()],j.arguments))}return j}function je(j){var Pe=j.kind;return Pe===244||Pe===161||Pe===160||Pe===162||Pe===163}function w(j,Pe){return Te&4096?e.setTextRange(e.createPropertyAccess(e.createCall(e.createFileLevelUniqueName("_superIndex"),void 0,[j]),"value"),Pe):e.setTextRange(e.createCall(e.createFileLevelUniqueName("_superIndex"),void 0,[j]),Pe)}}e.transformES2017=M;function qe(Ge,Be,he){var ee=(Ge.getNodeCheckFlags(Be)&4096)!==0,f=[];return he.forEach(function(J,Oe){var N=e.unescapeLeadingUnderscores(Oe),Te=[];Te.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(e.createPropertyAccess(e.setEmitFlags(e.createSuper(),4),N),4)))),ee&&Te.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameter(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(e.setEmitFlags(e.createPropertyAccess(e.setEmitFlags(e.createSuper(),4),N),4),e.createIdentifier("v"))))),f.push(e.createPropertyAssignment(N,e.createObjectLiteral(Te)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_super"),void 0,e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteral(f,!0)]))],2))}e.createSuperAccessVariableStatement=qe,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());
|
|
|
});
|
|
|
};`};function Ee(Ge,Be,he,ee,f){Ge.requestEmitHelper(e.awaiterHelper);var J=e.createFunctionExpression(void 0,e.createToken(41),void 0,void 0,[],void 0,f);return(J.emitNode||(J.emitNode={})).flags|=262144|524288,e.createCall(e.getUnscopedHelperName("__awaiter"),void 0,[Be?e.createThis():e.createVoidZero(),he?e.createIdentifier("arguments"):e.createVoidZero(),ee?e.createExpressionFromEntityName(ee):e.createVoidZero(),J])}e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:e.helperString(_i([`
|
|
|
const `," = name => super[name];"],[`
|
|
|
const `," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:e.helperString(_i([`
|
|
|
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")}})(sn||(sn={}));var sn;(function(e){var o;(function(ee){ee[ee.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(o||(o={}));function M(ee){var f=ee.resumeLexicalEnvironment,J=ee.endLexicalEnvironment,Oe=ee.hoistVariableDeclaration,N=ee.getEmitResolver(),Te=ee.getCompilerOptions(),ie=e.getEmitScriptTarget(Te),ce=ee.onEmitNode;ee.onEmitNode=Je;var x=ee.onSubstituteNode;ee.onSubstituteNode=$e;var C=!1,P,h,X=0,$,Q,z,se=[];return e.chainBundle(G);function G(F){if(F.isDeclarationFile)return F;C=!1,$=e.isEffectiveStrictModeSourceFile(F,Te);var c=e.visitEachChild(F,H,ee);return e.addEmitHelpers(c,ee.readEmitHelpers()),c}function H(F){return m(F,!1)}function q(F){return m(F,!0)}function be(F){return F.kind===125?void 0:F}function R(F,c){if($){$=!1;var L=F(c);return $=!0,L}return F(c)}function K(F){return e.visitEachChild(F,H,ee)}function m(F,c){if((F.transformFlags&16)===0)return F;switch(F.kind){case 205:return _(F);case 211:return I(F);case 234:return D(F);case 237:return y(F);case 192:return k(F);case 208:return O(F,c);case 278:return Y(F);case 224:return pe(F);case 241:return S(F);case 231:return De(F,void 0);case 229:return U(F);case 204:return ue(F);case 161:return R(je,F);case 160:return R(Pe,F);case 162:return R(w,F);case 163:return R(j,F);case 243:return R(a,F);case 200:return R(In,F);case 201:return Ze(F);case 155:return ve(F);case 225:return T(F);case 199:return ne(F,c);case 193:return Q&&e.isPropertyAccessExpression(F)&&F.expression.kind===101&&Q.set(F.name.escapedText,!0),e.visitEachChild(F,H,ee);case 194:return Q&&F.expression.kind===101&&(z=!0),e.visitEachChild(F,H,ee);case 244:case 213:return R(K,F);default:return e.visitEachChild(F,H,ee)}}function _(F){return h&2&&h&1?e.setOriginalNode(e.setTextRange(e.createYield(Ee(ee,e.visitNode(F.expression,H,e.isExpression))),F),F):e.visitEachChild(F,H,ee)}function I(F){if(h&2&&h&1){if(F.asteriskToken){var c=e.visitNode(F.expression,H,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(Ee(ee,e.updateYield(F,F.asteriskToken,Be(ee,he(ee,c,c),c)))),F),F)}return e.setOriginalNode(e.setTextRange(e.createYield(we(F.expression?e.visitNode(F.expression,H,e.isExpression):e.createVoidZero())),F),F)}return e.visitEachChild(F,H,ee)}function D(F){return h&2&&h&1?e.updateReturn(F,we(F.expression?e.visitNode(F.expression,H,e.isExpression):e.createVoidZero())):e.visitEachChild(F,H,ee)}function y(F){if(h&2){var c=e.unwrapInnermostStatementOfLabel(F);return c.kind===231&&c.awaitModifier?De(c,F):e.restoreEnclosingLabel(e.visitEachChild(c,H,ee),F)}return e.visitEachChild(F,H,ee)}function E(F){for(var c,L=[],te=0,Se=F;te<Se.length;te++){var Ne=Se[te];if(Ne.kind===281){c&&(L.push(e.createObjectLiteral(c)),c=void 0);var ze=Ne.expression;L.push(e.visitNode(ze,H,e.isExpression))}else c=e.append(c,Ne.kind===279?e.createPropertyAssignment(Ne.name,e.visitNode(Ne.initializer,H,e.isExpression)):e.visitNode(Ne,H,e.isObjectLiteralElementLike))}return c&&L.push(e.createObjectLiteral(c)),L}function k(F){if(F.transformFlags&8192){var c=E(F.properties);c.length&&c[0].kind!==192&&c.unshift(e.createObjectLiteral());var L=c[0];if(c.length>1){for(var te=1;te<c.length;te++)L=qe(ee,[L,c[te]]);return L}else return qe(ee,c)}return e.visitEachChild(F,H,ee)}function T(F){return e.visitEachChild(F,q,ee)}function ne(F,c){return e.visitEachChild(F,c?q:H,ee)}function O(F,c){return e.isDestructuringAssignment(F)&&F.left.transformFlags&8192?e.flattenDestructuringAssignment(F,H,ee,1,!c):F.operatorToken.kind===27?e.updateBinary(F,e.visitNode(F.left,q,e.isExpression),e.visitNode(F.right,c?q:H,e.isExpression)):e.visitEachChild(F,H,ee)}function Y(F){if(F.variableDeclaration&&e.isBindingPattern(F.variableDeclaration.name)&&F.variableDeclaration.name.transformFlags&8192){var c=e.getGeneratedNameForNode(F.variableDeclaration.name),L=e.updateVariableDeclaration(F.variableDeclaration,F.variableDeclaration.name,void 0,c),te=e.flattenDestructuringBinding(L,H,ee,1),Se=e.visitNode(F.block,H,e.isBlock);return e.some(te)&&(Se=e.updateBlock(Se,Tr([e.createVariableStatement(void 0,te)],Se.statements))),e.updateCatchClause(F,e.updateVariableDeclaration(F.variableDeclaration,c,void 0,void 0),Se)}return e.visitEachChild(F,H,ee)}function pe(F){if(e.hasModifier(F,1)){var c=C;C=!0;var L=e.visitEachChild(F,H,ee);return C=c,L}return e.visitEachChild(F,H,ee)}function S(F){if(C){var c=C;C=!1;var L=v(F,!0);return C=c,L}return v(F,!1)}function v(F,c){return e.isBindingPattern(F.name)&&F.name.transformFlags&8192?e.flattenDestructuringBinding(F,H,ee,1,void 0,c):e.visitEachChild(F,H,ee)}function U(F){return e.updateFor(F,e.visitNode(F.initializer,q,e.isForInitializer),e.visitNode(F.condition,H,e.isExpression),e.visitNode(F.incrementor,H,e.isExpression),e.visitNode(F.statement,H,e.isStatement))}function ue(F){return e.visitEachChild(F,q,ee)}function De(F,c){return F.initializer.transformFlags&8192&&(F=Z(F)),F.awaitModifier?He(F,c):e.restoreEnclosingLabel(e.visitEachChild(F,H,ee),c)}function Z(F){var c=e.skipParentheses(F.initializer);if(e.isVariableDeclarationList(c)||e.isAssignmentPattern(c)){var L=void 0,te=void 0,Se=e.createTempVariable(void 0),Ne=[e.createForOfBindingStatement(c,Se)];return e.isBlock(F.statement)?(e.addRange(Ne,F.statement.statements),L=F.statement,te=F.statement.statements):F.statement&&(e.append(Ne,F.statement),L=F.statement,te=F.statement),e.updateForOf(F,F.awaitModifier,e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(Se),F.initializer)],1),F.initializer),F.expression,e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(Ne),te),!0),L))}return F}function Re(F,c){var L=e.createForOfBindingStatement(F.initializer,c),te,Se,Ne=[e.visitNode(L,H,e.isStatement)],ze=e.visitNode(F.statement,H,e.isStatement);return e.isBlock(ze)?(e.addRange(Ne,ze.statements),te=ze,Se=ze.statements):Ne.push(ze),e.setEmitFlags(e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(Ne),Se),!0),te),48|384)}function we(F){return h&1?e.createYield(void 0,Ee(ee,F)):e.createAwait(F)}function He(F,c){var L=e.visitNode(F.expression,H,e.isExpression),te=e.isIdentifier(L)?e.getGeneratedNameForNode(L):e.createTempVariable(void 0),Se=e.isIdentifier(L)?e.getGeneratedNameForNode(te):e.createTempVariable(void 0),Ne=e.createUniqueName("e"),ze=e.getGeneratedNameForNode(Ne),Tn=e.createTempVariable(void 0),wn=he(ee,L,F.expression),jn=e.createCall(e.createPropertyAccess(te,"next"),void 0,[]),nn=e.createPropertyAccess(Se,"done"),pn=e.createPropertyAccess(Se,"value"),le=e.createFunctionCall(Tn,te,[]);Oe(Ne),Oe(Tn);var oe=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(te,void 0,wn),F.expression),e.createVariableDeclaration(Se)]),F.expression),2097152),e.createComma(e.createAssignment(Se,we(jn)),e.createLogicalNot(nn)),void 0,Re(F,pn)),F),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(oe,c)]),e.createCatchClause(e.createVariableDeclaration(ze),e.setEmitFlags(e.createBlock([e.createExpressionStatement(e.createAssignment(Ne,e.createObjectLiteral([e.createPropertyAssignment("error",ze)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(Se,e.createLogicalNot(nn)),e.createAssignment(Tn,e.createPropertyAccess(te,"return"))),e.createExpressionStatement(we(le))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(Ne,e.createThrow(e.createPropertyAccess(Ne,"error"))),1)]),1))]))}function ve(F){return F.transformFlags&8192?e.updateParameter(F,void 0,void 0,F.dotDotDotToken,e.getGeneratedNameForNode(F),void 0,void 0,e.visitNode(F.initializer,H,e.isExpression)):e.visitEachChild(F,H,ee)}function je(F){var c=h;h=0;var L=e.updateConstructor(F,void 0,F.modifiers,e.visitParameterList(F.parameters,H,ee),ae(F));return h=c,L}function w(F){var c=h;h=0;var L=e.updateGetAccessor(F,void 0,F.modifiers,e.visitNode(F.name,H,e.isPropertyName),e.visitParameterList(F.parameters,H,ee),void 0,ae(F));return h=c,L}function j(F){var c=h;h=0;var L=e.updateSetAccessor(F,void 0,F.modifiers,e.visitNode(F.name,H,e.isPropertyName),e.visitParameterList(F.parameters,H,ee),ae(F));return h=c,L}function Pe(F){var c=h;h=e.getFunctionFlags(F);var L=e.updateMethod(F,void 0,h&1?e.visitNodes(F.modifiers,be,e.isModifier):F.modifiers,h&2?void 0:F.asteriskToken,e.visitNode(F.name,H,e.isPropertyName),e.visitNode(void 0,H,e.isToken),void 0,e.visitParameterList(F.parameters,H,ee),void 0,h&2&&h&1?et(F):ae(F));return h=c,L}function a(F){var c=h;h=e.getFunctionFlags(F);var L=e.updateFunctionDeclaration(F,void 0,h&1?e.visitNodes(F.modifiers,be,e.isModifier):F.modifiers,h&2?void 0:F.asteriskToken,F.name,void 0,e.visitParameterList(F.parameters,H,ee),void 0,h&2&&h&1?et(F):ae(F));return h=c,L}function Ze(F){var c=h;h=e.getFunctionFlags(F);var L=e.updateArrowFunction(F,F.modifiers,void 0,e.visitParameterList(F.parameters,H,ee),void 0,F.equalsGreaterThanToken,ae(F));return h=c,L}function In(F){var c=h;h=e.getFunctionFlags(F);var L=e.updateFunctionExpression(F,h&1?e.visitNodes(F.modifiers,be,e.isModifier):F.modifiers,h&2?void 0:F.asteriskToken,F.name,void 0,e.visitParameterList(F.parameters,H,ee),void 0,h&2&&h&1?et(F):ae(F));return h=c,L}function et(F){f();var c=[],L=e.addPrologue(c,F.body.statements,!1,H);fe(c,F);var te=Q,Se=z;Q=e.createUnderscoreEscapedMap(),z=!1;var Ne=e.createReturn(Ge(ee,e.createFunctionExpression(void 0,e.createToken(41),F.name&&e.getGeneratedNameForNode(F.name),void 0,[],void 0,e.updateBlock(F.body,e.visitLexicalEnvironment(F.body.statements,H,ee,L))),!$)),ze=ie>=2&&N.getNodeCheckFlags(F)&(4096|2048);if(ze){Le();var Tn=e.createSuperAccessVariableStatement(N,F,Q);se[e.getNodeId(Tn)]=!0,e.insertStatementsAfterStandardPrologue(c,[Tn])}c.push(Ne),e.insertStatementsAfterStandardPrologue(c,J());var wn=e.updateBlock(F.body,c);return ze&&z&&(N.getNodeCheckFlags(F)&4096?e.addEmitHelper(wn,e.advancedAsyncSuperHelper):N.getNodeCheckFlags(F)&2048&&e.addEmitHelper(wn,e.asyncSuperHelper)),Q=te,z=Se,wn}function ae(F){f();var c=0,L=[],te=e.visitNode(F.body,H,e.isConciseBody);e.isBlock(te)&&(c=e.addPrologue(L,te.statements,!1,H)),e.addRange(L,fe(void 0,F));var Se=J();if(c>0||e.some(L)||e.some(Se)){var Ne=e.convertToFunctionBody(te,!0);return e.insertStatementsAfterStandardPrologue(L,Se),e.addRange(L,Ne.statements.slice(c)),e.updateBlock(Ne,e.setTextRange(e.createNodeArray(L),Ne.statements))}return te}function fe(F,c){for(var L=0,te=c.parameters;L<te.length;L++){var Se=te[L];if(Se.transformFlags&8192){var Ne=e.getGeneratedNameForNode(Se),ze=e.flattenDestructuringBinding(Se,H,ee,1,Ne,!1,!0);if(e.some(ze)){var Tn=e.createVariableStatement(void 0,e.createVariableDeclarationList(ze));e.setEmitFlags(Tn,1048576),F=e.append(F,Tn)}}}return F}function Le(){(P&1)===0&&(P|=1,ee.enableSubstitution(195),ee.enableSubstitution(193),ee.enableSubstitution(194),ee.enableEmitNotification(244),ee.enableEmitNotification(160),ee.enableEmitNotification(162),ee.enableEmitNotification(163),ee.enableEmitNotification(161),ee.enableEmitNotification(224))}function Je(F,c,L){if(P&1&&ye(c)){var te=N.getNodeCheckFlags(c)&(2048|4096);if(te!==X){var Se=X;X=te,ce(F,c,L),X=Se;return}}else if(P&&se[e.getNodeId(c)]){var Se=X;X=0,ce(F,c,L),X=Se;return}ce(F,c,L)}function $e(F,c){return c=x(F,c),F===1&&X?Fe(c):c}function Fe(F){switch(F.kind){case 193:return cn(F);case 194:return Qe(F);case 195:return ln(F)}return F}function cn(F){return F.expression.kind===101?e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),F.name),F):F}function Qe(F){return F.expression.kind===101?ke(F.argumentExpression,F):F}function ln(F){var c=F.expression;if(e.isSuperProperty(c)){var L=e.isPropertyAccessExpression(c)?cn(c):Qe(c);return e.createCall(e.createPropertyAccess(L,"call"),void 0,Tr([e.createThis()],F.arguments))}return F}function ye(F){var c=F.kind;return c===244||c===161||c===160||c===162||c===163}function ke(F,c){return X&4096?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_superIndex"),void 0,[F]),"value"),c):e.setTextRange(e.createCall(e.createIdentifier("_superIndex"),void 0,[F]),c)}}e.transformES2018=M,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);
|
|
|
};`};function qe(ee,f){return ee.getCompilerOptions().target>=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,f):(ee.requestEmitHelper(e.assignHelper),e.createCall(e.getUnscopedHelperName("__assign"),void 0,f))}e.createAssignHelper=qe,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); }`};function Ee(ee,f){return ee.requestEmitHelper(e.awaitHelper),e.createCall(e.getUnscopedHelperName("__await"),void 0,[f])}e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,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]); }
|
|
|
};`};function Ge(ee,f,J){return ee.requestEmitHelper(e.awaitHelper),ee.requestEmitHelper(e.asyncGeneratorHelper),(f.emitNode||(f.emitNode={})).flags|=262144,e.createCall(e.getUnscopedHelperName("__asyncGenerator"),void 0,[J?e.createThis():e.createVoidZero(),e.createIdentifier("arguments"),f])}e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,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; }
|
|
|
};`};function Be(ee,f,J){return ee.requestEmitHelper(e.awaitHelper),ee.requestEmitHelper(e.asyncDelegator),e.setTextRange(e.createCall(e.getUnscopedHelperName("__asyncDelegator"),void 0,[f]),J)}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); }
|
|
|
};`};function he(ee,f,J){return ee.requestEmitHelper(e.asyncValues),e.setTextRange(e.createCall(e.getUnscopedHelperName("__asyncValues"),void 0,[f]),J)}})(sn||(sn={}));var sn;(function(e){function o(M){return e.chainBundle(qe);function qe(Be){return Be.isDeclarationFile?Be:e.visitEachChild(Be,Ee,M)}function Ee(Be){if((Be.transformFlags&8)===0)return Be;switch(Be.kind){case 278:return Ge(Be);default:return e.visitEachChild(Be,Ee,M)}}function Ge(Be){return Be.variableDeclaration?e.visitEachChild(Be,Ee,M):e.updateCatchClause(Be,e.createVariableDeclaration(e.createTempVariable(void 0)),e.visitNode(Be.block,Ee,e.isBlock))}}e.transformES2019=o})(sn||(sn={}));var sn;(function(e){function o(M){var qe=M.hoistVariableDeclaration;return e.chainBundle(Ee);function Ee(ce){return ce.isDeclarationFile?ce:e.visitEachChild(ce,Ge,M)}function Ge(ce){if((ce.transformFlags&4)===0)return ce;switch(ce.kind){case 193:case 194:case 195:if(ce.flags&32){var x=N(ce,!1);return e.Debug.assertNotNode(x,e.isSyntheticReference),x}return e.visitEachChild(ce,Ge,M);case 208:return ce.operatorToken.kind===60?ie(ce):e.visitEachChild(ce,Ge,M);default:return e.visitEachChild(ce,Ge,M)}}function Be(ce){for(var x=[ce];!ce.questionDotToken&&!e.isTaggedTemplateExpression(ce);)ce=e.cast(ce.expression,e.isOptionalChain),x.unshift(ce);return{expression:ce.expression,chain:x}}function he(ce,x){var C=Oe(ce.expression,x);return e.isSyntheticReference(C)?e.createSyntheticReferenceExpression(e.updateParen(ce,C.expression),C.thisArg):e.updateParen(ce,C)}function ee(ce,x){if(e.isOptionalChain(ce))return N(ce,x);var C=e.visitNode(ce.expression,Ge,e.isExpression);e.Debug.assertNotNode(C,e.isSyntheticReference);var P;return x&&(P=e.createTempVariable(qe),C=e.createParen(e.createAssignment(P,C))),C=e.updatePropertyAccess(ce,C,e.visitNode(ce.name,Ge,e.isIdentifier)),P?e.createSyntheticReferenceExpression(C,P):C}function f(ce,x){if(e.isOptionalChain(ce))return N(ce,x);var C=e.visitNode(ce.expression,Ge,e.isExpression);e.Debug.assertNotNode(C,e.isSyntheticReference);var P;return x&&(P=e.createTempVariable(qe),C=e.createParen(e.createAssignment(P,C))),C=e.updateElementAccess(ce,C,e.visitNode(ce.argumentExpression,Ge,e.isExpression)),P?e.createSyntheticReferenceExpression(C,P):C}function J(ce,x){return e.isOptionalChain(ce)?N(ce,x):e.visitEachChild(ce,Ge,M)}function Oe(ce,x){switch(ce.kind){case 199:return he(ce,x);case 193:return ee(ce,x);case 194:return f(ce,x);case 195:return J(ce,x);default:return e.visitNode(ce,Ge,e.isExpression)}}function N(ce,x){for(var C=Be(ce),P=C.expression,h=C.chain,X=Oe(P,e.isCallChain(h[0])),$=e.createTempVariable(qe),Q=e.isSyntheticReference(X)?X.thisArg:void 0,z=e.isSyntheticReference(X)?X.expression:X,se=$,G,H=0;H<h.length;H++){var q=h[H];switch(q.kind){case 193:H===h.length-1&&x&&(G=e.createTempVariable(qe),se=e.createParen(e.createAssignment(G,se))),se=e.createPropertyAccess(se,e.visitNode(q.name,Ge,e.isIdentifier));break;case 194:H===h.length-1&&x&&(G=e.createTempVariable(qe),se=e.createParen(e.createAssignment(G,se))),se=e.createElementAccess(se,e.visitNode(q.argumentExpression,Ge,e.isExpression));break;case 195:H===0&&Q?se=e.createFunctionCall(se,Q,e.visitNodes(q.arguments,Ge,e.isExpression)):se=e.createCall(se,void 0,e.visitNodes(q.arguments,Ge,e.isExpression));break}e.setOriginalNode(se,q)}var be=e.createConditional(e.createLogicalOr(e.createStrictEquality(e.createAssignment($,z),e.createNull()),e.createStrictEquality($,e.createVoidZero())),e.createVoidZero(),se);return G?e.createSyntheticReferenceExpression(be,G):be}function Te(ce){return e.createBinary(e.createBinary(ce,e.createToken(37),e.createNull()),e.createToken(55),e.createBinary(ce,e.createToken(37),e.createVoidZero()))}function ie(ce){var x=[],C=e.visitNode(ce.left,Ge,e.isExpression);if(!e.isIdentifier(C)){var P=e.createTempVariable(qe);x.push(e.createAssignment(P,C)),C=P}return x.push(e.createParen(e.createConditional(Te(C),C,e.visitNode(ce.right,Ge,e.isExpression)))),e.inlineExpressions(x)}}e.transformESNext=o})(sn||(sn={}));var sn;(function(e){function o(qe){var Ee=qe.getCompilerOptions(),Ge;return e.chainBundle(Be);function Be(H){if(H.isDeclarationFile)return H;Ge=H;var q=e.visitEachChild(H,he,qe);return e.addEmitHelpers(q,qe.readEmitHelpers()),q}function he(H){return H.transformFlags&2?ee(H):H}function ee(H){switch(H.kind){case 264:return J(H,!1);case 265:return Oe(H,!1);case 268:return N(H,!1);case 274:return G(H);default:return e.visitEachChild(H,he,qe)}}function f(H){switch(H.kind){case 11:return P(H);case 274:return G(H);case 264:return J(H,!0);case 265:return Oe(H,!0);case 268:return N(H,!0);default:return e.Debug.failBadSyntaxKind(H)}}function J(H,q){return Te(H.openingElement,H.children,q,H)}function Oe(H,q){return Te(H,void 0,q,H)}function N(H,q){return ie(H.openingFragment,H.children,q,H)}function Te(H,q,be,R){var K=z(H),m,_=H.attributes.properties;if(_.length===0)m=e.createNull();else{var I=e.flatten(e.spanMap(_,e.isJsxSpreadAttribute,function(y,E){return E?e.map(y,ce):e.createObjectLiteral(e.map(y,x))}));e.isJsxSpreadAttribute(_[0])&&I.unshift(e.createObjectLiteral()),m=e.singleOrUndefined(I),m||(m=e.createAssignHelper(qe,I))}var D=e.createExpressionForJsxElement(qe.getEmitResolver().getJsxFactoryEntity(Ge),Ee.reactNamespace,K,m,e.mapDefined(q,f),H,R);return be&&e.startOnNewLine(D),D}function ie(H,q,be,R){var K=e.createExpressionForJsxFragment(qe.getEmitResolver().getJsxFactoryEntity(Ge),Ee.reactNamespace,e.mapDefined(q,f),H,R);return be&&e.startOnNewLine(K),K}function ce(H){return e.visitNode(H.expression,he,e.isExpression)}function x(H){var q=se(H),be=C(H.initializer);return e.createPropertyAssignment(q,be)}function C(H){if(H===void 0)return e.createTrue();if(H.kind===10){var q=e.createLiteral(Q(H.text)||H.text);return q.singleQuote=H.singleQuote!==void 0?H.singleQuote:!e.isStringDoubleQuoted(H,Ge),e.setTextRange(q,H)}else return H.kind===274?H.expression===void 0?e.createTrue():G(H):e.Debug.failBadSyntaxKind(H)}function P(H){var q=h(H.text);return q===void 0?void 0:e.createLiteral(q)}function h(H){for(var q,be=0,R=-1,K=0;K<H.length;K++){var m=H.charCodeAt(K);e.isLineBreak(m)?(be!==-1&&R!==-1&&(q=X(q,H.substr(be,R-be+1))),be=-1):e.isWhiteSpaceSingleLine(m)||(R=K,be===-1&&(be=K))}return be!==-1?X(q,H.substr(be)):q}function X(H,q){var be=$(q);return H===void 0?be:H+" "+be}function $(H){return H.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(q,be,R,K,m,_,I){if(m)return String.fromCharCode(parseInt(m,10));if(_)return String.fromCharCode(parseInt(_,16));var D=M.get(I);return D?String.fromCharCode(D):q})}function Q(H){var q=$(H);return q===H?void 0:q}function z(H){if(H.kind===264)return z(H.openingElement);var q=H.tagName;return e.isIdentifier(q)&&e.isIntrinsicJsxName(q.escapedText)?e.createLiteral(e.idText(q)):e.createExpressionFromEntityName(q)}function se(H){var q=H.name,be=e.idText(q);return/^[A-Za-z_]\w*$/.test(be)?q:e.createLiteral(be)}function G(H){return e.visitNode(H.expression,he,e.isExpression)}}e.transformJsx=o;var M=e.createMapFromTemplate({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830})})(sn||(sn={}));var sn;(function(e){function o(M){var qe=M.hoistVariableDeclaration;return e.chainBundle(Ee);function Ee(f){return f.isDeclarationFile?f:e.visitEachChild(f,Ge,M)}function Ge(f){if((f.transformFlags&64)===0)return f;switch(f.kind){case 208:return Be(f);default:return e.visitEachChild(f,Ge,M)}}function Be(f){switch(f.operatorToken.kind){case 66:return he(f);case 42:return ee(f);default:return e.visitEachChild(f,Ge,M)}}function he(f){var J,Oe,N=e.visitNode(f.left,Ge,e.isExpression),Te=e.visitNode(f.right,Ge,e.isExpression);if(e.isElementAccessExpression(N)){var ie=e.createTempVariable(qe),ce=e.createTempVariable(qe);J=e.setTextRange(e.createElementAccess(e.setTextRange(e.createAssignment(ie,N.expression),N.expression),e.setTextRange(e.createAssignment(ce,N.argumentExpression),N.argumentExpression)),N),Oe=e.setTextRange(e.createElementAccess(ie,ce),N)}else if(e.isPropertyAccessExpression(N)){var ie=e.createTempVariable(qe);J=e.setTextRange(e.createPropertyAccess(e.setTextRange(e.createAssignment(ie,N.expression),N.expression),N.name),N),Oe=e.setTextRange(e.createPropertyAccess(ie,N.name),N)}else J=N,Oe=N;return e.setTextRange(e.createAssignment(J,e.createMathPow(Oe,Te,f)),f)}function ee(f){var J=e.visitNode(f.left,Ge,e.isExpression),Oe=e.visitNode(f.right,Ge,e.isExpression);return e.createMathPow(J,Oe,f)}}e.transformES2016=o})(sn||(sn={}));var sn;(function(e){var o;(function(f){f[f.CapturedThis=1]="CapturedThis",f[f.BlockScopedBindings=2]="BlockScopedBindings"})(o||(o={}));var M;(function(f){f[f.Body=1]="Body",f[f.Initializer=2]="Initializer"})(M||(M={}));var qe;(function(f){f[f.ToOriginal=0]="ToOriginal",f[f.ToOutParameter=1]="ToOutParameter"})(qe||(qe={}));var Ee;(function(f){f[f.Break=2]="Break",f[f.Continue=4]="Continue",f[f.Return=8]="Return"})(Ee||(Ee={}));var Ge;(function(f){f[f.None=0]="None",f[f.Function=1]="Function",f[f.ArrowFunction=2]="ArrowFunction",f[f.AsyncFunctionBody=4]="AsyncFunctionBody",f[f.NonStaticClassElement=8]="NonStaticClassElement",f[f.CapturesThis=16]="CapturesThis",f[f.ExportedVariableStatement=32]="ExportedVariableStatement",f[f.TopLevel=64]="TopLevel",f[f.Block=128]="Block",f[f.IterationStatement=256]="IterationStatement",f[f.IterationStatementBlock=512]="IterationStatementBlock",f[f.IterationContainer=1024]="IterationContainer",f[f.ForStatement=2048]="ForStatement",f[f.ForInOrForOfStatement=4096]="ForInOrForOfStatement",f[f.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",f[f.AncestorFactsMask=16383]="AncestorFactsMask",f[f.BlockScopeIncludes=0]="BlockScopeIncludes",f[f.BlockScopeExcludes=7104]="BlockScopeExcludes",f[f.SourceFileIncludes=64]="SourceFileIncludes",f[f.SourceFileExcludes=8064]="SourceFileExcludes",f[f.FunctionIncludes=65]="FunctionIncludes",f[f.FunctionExcludes=16286]="FunctionExcludes",f[f.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",f[f.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",f[f.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",f[f.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",f[f.ConstructorIncludes=73]="ConstructorIncludes",f[f.ConstructorExcludes=16278]="ConstructorExcludes",f[f.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",f[f.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",f[f.ForStatementIncludes=3328]="ForStatementIncludes",f[f.ForStatementExcludes=5056]="ForStatementExcludes",f[f.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",f[f.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",f[f.BlockIncludes=128]="BlockIncludes",f[f.BlockExcludes=6976]="BlockExcludes",f[f.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",f[f.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",f[f.NewTarget=16384]="NewTarget",f[f.CapturedLexicalThis=32768]="CapturedLexicalThis",f[f.SubtreeFactsMask=-16384]="SubtreeFactsMask",f[f.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",f[f.FunctionSubtreeExcludes=49152]="FunctionSubtreeExcludes"})(Ge||(Ge={}));function Be(f){var J=f.startLexicalEnvironment,Oe=f.resumeLexicalEnvironment,N=f.endLexicalEnvironment,Te=f.hoistVariableDeclaration,ie=f.getCompilerOptions(),ce=f.getEmitResolver(),x=f.onSubstituteNode,C=f.onEmitNode;f.onEmitNode=Vn,f.onSubstituteNode=dr;var P,h,X,$;function Q(ge){$=e.append($,e.createVariableDeclaration(ge))}var z,se;return e.chainBundle(G);function G(ge){if(ge.isDeclarationFile)return ge;P=ge,h=ge.text;var hn=I(ge);return e.addEmitHelpers(hn,f.readEmitHelpers()),P=void 0,h=void 0,$=void 0,X=0,hn}function H(ge,hn){var Hn=X;return X=(X&~ge|hn)&16383,Hn}function q(ge,hn,Hn){X=(X&~hn|Hn)&-16384|ge}function be(ge){return(X&8192)!==0&&ge.kind===234&&!ge.expression}function R(ge){return(ge.transformFlags&128)!==0||z!==void 0||X&8192&&(e.isStatement(ge)||ge.kind===222)||e.isIterationStatement(ge,!1)&&Ie(ge)||(e.getEmitFlags(ge)&33554432)!==0}function K(ge){return R(ge)?_(ge):ge}function m(ge){return ge.kind===101?vn(!0):K(ge)}function _(ge){switch(ge.kind){case 119:return;case 244:return Y(ge);case 213:return pe(ge);case 155:return je(ge);case 243:return ye(ge);case 201:return Qe(ge);case 200:return ln(ge);case 241:return nn(ge);case 75:return ne(ge);case 242:return ze(ge);case 236:return D(ge);case 250:return y(ge);case 222:return c(ge,!1);case 233:case 232:return O(ge);case 237:return oe(ge);case 227:case 228:return _e(ge,void 0);case 229:return dn(ge,void 0);case 230:return un(ge,void 0);case 231:return Rn(ge,void 0);case 225:return L(ge);case 192:return ot(ge);case 278:return Si(ge);case 280:return Ja(ge);case 153:return Ka(ge);case 191:return bi(ge);case 195:return Vo(ge);case 196:return ci(ge);case 199:return te(ge,!0);case 208:return Se(ge,!0);case 14:case 15:case 16:case 17:return Jr(ge);case 10:return _a(ge);case 8:return La(ge);case 197:return qr(ge);case 210:return Li(ge);case 211:return ua(ge);case 212:return Kt(ge);case 101:return vn(!1);case 103:return T(ge);case 218:return Ln(ge);case 160:return vi(ge);case 162:case 163:return Oi(ge);case 224:return Ne(ge);case 234:return k(ge);default:return e.visitEachChild(ge,K,f)}}function I(ge){var hn=H(8064,64),Hn=[],de=[];J();var rn=e.addStandardPrologue(Hn,ge.statements,!1);return rn=e.addCustomPrologue(Hn,ge.statements,rn,K),e.addRange(de,e.visitNodes(ge.statements,K,e.isStatement,rn)),$&&de.push(e.createVariableStatement(void 0,e.createVariableDeclarationList($))),e.mergeLexicalEnvironment(Hn,N()),et(Hn,ge),q(hn,0,0),e.updateSourceFileNode(ge,e.setTextRange(e.createNodeArray(e.concatenate(Hn,de)),ge.statements))}function D(ge){if(z!==void 0){var hn=z.allowedNonLabeledJumps;z.allowedNonLabeledJumps|=2;var Hn=e.visitEachChild(ge,K,f);return z.allowedNonLabeledJumps=hn,Hn}return e.visitEachChild(ge,K,f)}function y(ge){var hn=H(7104,0),Hn=e.visitEachChild(ge,K,f);return q(hn,0,0),Hn}function E(ge){return e.setOriginalNode(e.createReturn(e.createFileLevelUniqueName("_this")),ge)}function k(ge){return z?(z.nonLocalJumps|=8,be(ge)&&(ge=E(ge)),e.createReturn(e.createObjectLiteral([e.createPropertyAssignment(e.createIdentifier("value"),ge.expression?e.visitNode(ge.expression,K,e.isExpression):e.createVoidZero())]))):be(ge)?E(ge):e.visitEachChild(ge,K,f)}function T(ge){return X&2&&(X|=32768),z?X&2?(z.containsLexicalThis=!0,ge):z.thisName||(z.thisName=e.createUniqueName("this")):ge}function ne(ge){return z?e.isGeneratedIdentifier(ge)||(ge.escapedText!=="arguments"||!ce.isArgumentsLocalBinding(ge))?ge:z.argumentsName||(z.argumentsName=e.createUniqueName("arguments")):ge}function O(ge){if(z){var hn=ge.kind===233?2:4,Hn=ge.label&&z.labels&&z.labels.get(e.idText(ge.label))||!ge.label&&z.allowedNonLabeledJumps&hn;if(!Hn){var de=void 0,rn=ge.label;rn?ge.kind===233?(de="break-"+rn.escapedText,Ke(z,!0,e.idText(rn),de)):(de="continue-"+rn.escapedText,Ke(z,!1,e.idText(rn),de)):ge.kind===233?(z.nonLocalJumps|=2,de="break"):(z.nonLocalJumps|=4,de="continue");var kn=e.createLiteral(de);if(z.loopOutParameters.length){for(var Qn=z.loopOutParameters,lt=void 0,Ft=0;Ft<Qn.length;Ft++){var on=pt(Qn[Ft],1);Ft===0?lt=on:lt=e.createBinary(lt,27,on)}kn=e.createBinary(lt,27,kn)}return e.createReturn(kn)}}return e.visitEachChild(ge,K,f)}function Y(ge){var hn=e.createVariableDeclaration(e.getLocalName(ge,!0),void 0,S(ge));e.setOriginalNode(hn,ge);var Hn=[],de=e.createVariableStatement(void 0,e.createVariableDeclarationList([hn]));if(e.setOriginalNode(de,ge),e.setTextRange(de,ge),e.startOnNewLine(de),Hn.push(de),e.hasModifier(ge,1)){var rn=e.hasModifier(ge,512)?e.createExportDefault(e.getLocalName(ge)):e.createExternalModuleExport(e.getLocalName(ge));e.setOriginalNode(rn,de),Hn.push(rn)}var kn=e.getEmitFlags(ge);return(kn&4194304)===0&&(Hn.push(e.createEndOfDeclarationMarker(ge)),e.setEmitFlags(de,kn|4194304)),e.singleOrMany(Hn)}function pe(ge){return S(ge)}function S(ge){ge.name&&Mt();var hn=e.getClassExtendsHeritageElement(ge),Hn=e.createFunctionExpression(void 0,void 0,void 0,void 0,hn?[e.createParameter(void 0,void 0,void 0,e.createFileLevelUniqueName("_super"))]:[],void 0,v(ge,hn));e.setEmitFlags(Hn,e.getEmitFlags(ge)&65536|524288);var de=e.createPartiallyEmittedExpression(Hn);de.end=ge.end,e.setEmitFlags(de,1536);var rn=e.createPartiallyEmittedExpression(de);rn.end=e.skipTrivia(h,ge.pos),e.setEmitFlags(rn,1536);var kn=e.createParen(e.createCall(rn,void 0,hn?[e.visitNode(hn.expression,K,e.isExpression)]:[]));return e.addSyntheticLeadingComment(kn,3,"* @class "),kn}function v(ge,hn){var Hn=[];J(),U(Hn,ge,hn),ue(Hn,ge,hn),Le(Hn,ge);var de=e.createTokenRange(e.skipTrivia(h,ge.members.end),19),rn=e.getInternalName(ge),kn=e.createPartiallyEmittedExpression(rn);kn.end=de.end,e.setEmitFlags(kn,1536);var Qn=e.createReturn(kn);Qn.pos=de.pos,e.setEmitFlags(Qn,1536|384),Hn.push(Qn),e.insertStatementsAfterStandardPrologue(Hn,N());var lt=e.createBlock(e.setTextRange(e.createNodeArray(Hn),ge.members),!0);return e.setEmitFlags(lt,1536),lt}function U(ge,hn,Hn){Hn&&ge.push(e.setTextRange(e.createExpressionStatement(he(f,e.getInternalName(hn))),Hn))}function ue(ge,hn,Hn){var de=z;z=void 0;var rn=H(16278,73),kn=e.getFirstConstructorWithBody(hn),Qn=qn(kn,Hn!==void 0),lt=e.createFunctionDeclaration(void 0,void 0,void 0,e.getInternalName(hn),void 0,De(kn,Qn),void 0,Re(kn,hn,Hn,Qn));e.setTextRange(lt,kn||hn),Hn&&e.setEmitFlags(lt,8),ge.push(lt),q(rn,49152,0),z=de}function De(ge,hn){return e.visitParameterList(ge&&!hn?ge.parameters:void 0,K,f)||[]}function Z(ge,hn){var Hn=[];Oe(),e.mergeLexicalEnvironment(Hn,N()),hn&&Hn.push(e.createReturn(ve()));var de=e.createNodeArray(Hn);e.setTextRange(de,ge.members);var rn=e.createBlock(de,!0);return e.setTextRange(rn,ge),e.setEmitFlags(rn,1536),rn}function Re(ge,hn,Hn,de){var rn=!!Hn&&e.skipOuterExpressions(Hn.expression).kind!==99;if(!ge)return Z(hn,rn);var kn=[],Qn=[];Oe();var lt=0;de||(lt=e.addStandardPrologue(kn,ge.body.statements,!1)),j(Qn,ge),In(Qn,ge,de),de||(lt=e.addCustomPrologue(Qn,ge.body.statements,lt,K));var Ft;if(de)Ft=ve();else if(rn&<<ge.body.statements.length){var on=ge.body.statements[lt];e.isExpressionStatement(on)&&e.isSuperCall(on.expression)&&(Ft=Mo(on.expression))}if(Ft&&(X|=8192,lt++),e.addRange(Qn,e.visitNodes(ge.body.statements,K,e.isStatement,lt)),e.mergeLexicalEnvironment(kn,N()),fe(kn,ge,!1),rn)if(Ft&<===ge.body.statements.length&&!(ge.body.transformFlags&2048)){var kr=e.cast(e.cast(Ft,e.isBinaryExpression).left,e.isCallExpression),fa=e.createReturn(Ft);e.setCommentRange(fa,e.getCommentRange(kr)),e.setEmitFlags(kr,1536),Qn.push(fa)}else ae(Qn,ge,Ft||He()),we(ge.body)||Qn.push(e.createReturn(e.createFileLevelUniqueName("_this")));else et(kn,ge);var Wa=e.createBlock(e.setTextRange(e.createNodeArray(e.concatenate(kn,Qn)),ge.body.statements),!0);return e.setTextRange(Wa,ge.body),Wa}function we(ge){if(ge.kind===234)return!0;if(ge.kind===226){var hn=ge;if(hn.elseStatement)return we(hn.thenStatement)&&we(hn.elseStatement)}else if(ge.kind===222){var Hn=e.lastOrUndefined(ge.statements);if(Hn&&we(Hn))return!0}return!1}function He(){return e.setEmitFlags(e.createThis(),4)}function ve(){return e.createLogicalOr(e.createLogicalAnd(e.createStrictInequality(e.createFileLevelUniqueName("_super"),e.createNull()),e.createFunctionApply(e.createFileLevelUniqueName("_super"),He(),e.createIdentifier("arguments"))),He())}function je(ge){return ge.dotDotDotToken?void 0:e.isBindingPattern(ge.name)?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,e.getGeneratedNameForNode(ge),void 0,void 0,void 0),ge),ge):ge.initializer?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,ge.name,void 0,void 0,void 0),ge),ge):ge}function w(ge){return ge.initializer!==void 0||e.isBindingPattern(ge.name)}function j(ge,hn){if(!e.some(hn.parameters,w))return!1;for(var Hn=!1,de=0,rn=hn.parameters;de<rn.length;de++){var kn=rn[de],Qn=kn.name,lt=kn.initializer,Ft=kn.dotDotDotToken;if(Ft)continue;e.isBindingPattern(Qn)?Hn=Pe(ge,kn,Qn,lt)||Hn:lt&&(a(ge,kn,Qn,lt),Hn=!0)}return Hn}function Pe(ge,hn,Hn,de){return Hn.elements.length>0?(e.insertStatementAfterCustomPrologue(ge,e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(hn,K,f,0,e.getGeneratedNameForNode(hn)))),1048576)),!0):de?(e.insertStatementAfterCustomPrologue(ge,e.setEmitFlags(e.createExpressionStatement(e.createAssignment(e.getGeneratedNameForNode(hn),e.visitNode(de,K,e.isExpression))),1048576)),!0):!1}function a(ge,hn,Hn,de){de=e.visitNode(de,K,e.isExpression);var rn=e.createIf(e.createTypeCheck(e.getSynthesizedClone(Hn),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createExpressionStatement(e.setEmitFlags(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(Hn),48),e.setEmitFlags(de,48|e.getEmitFlags(de)|1536)),hn),1536))]),hn),1|32|384|1536));e.startOnNewLine(rn),e.setTextRange(rn,hn),e.setEmitFlags(rn,384|32|1048576|1536),e.insertStatementAfterCustomPrologue(ge,rn)}function Ze(ge,hn){return!!(ge&&ge.dotDotDotToken&&!hn)}function In(ge,hn,Hn){var de=[],rn=e.lastOrUndefined(hn.parameters);if(!Ze(rn,Hn))return!1;var kn=rn.name.kind===75?e.getMutableClone(rn.name):e.createTempVariable(void 0);e.setEmitFlags(kn,48);var Qn=rn.name.kind===75?e.getSynthesizedClone(rn.name):kn,lt=hn.parameters.length-1,Ft=e.createLoopVariable();de.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(kn,void 0,e.createArrayLiteral([]))])),rn),1048576));var on=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(Ft,void 0,e.createLiteral(lt))]),rn),e.setTextRange(e.createLessThan(Ft,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),rn),e.setTextRange(e.createPostfixIncrement(Ft),rn),e.createBlock([e.startOnNewLine(e.setTextRange(e.createExpressionStatement(e.createAssignment(e.createElementAccess(Qn,lt===0?Ft:e.createSubtract(Ft,e.createLiteral(lt))),e.createElementAccess(e.createIdentifier("arguments"),Ft))),rn))]));return e.setEmitFlags(on,1048576),e.startOnNewLine(on),de.push(on),rn.name.kind!==75&&de.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(rn,K,f,0,Qn))),rn),1048576)),e.insertStatementsAfterCustomPrologue(ge,de),!0}function et(ge,hn){return X&32768&&hn.kind!==201?(ae(ge,hn,e.createThis()),!0):!1}function ae(ge,hn,Hn){tr();var de=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_this"),void 0,Hn)]));e.setEmitFlags(de,1536|1048576),e.setSourceMapRange(de,hn),e.insertStatementAfterCustomPrologue(ge,de)}function fe(ge,hn,Hn){if(X&16384){var de=void 0;switch(hn.kind){case 201:return ge;case 160:case 162:case 163:de=e.createVoidZero();break;case 161:de=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 243:case 200:de=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),97,e.getLocalName(hn))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(hn)}var rn=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_newTarget"),void 0,de)]));e.setEmitFlags(rn,1536|1048576),Hn&&(ge=ge.slice()),e.insertStatementAfterCustomPrologue(ge,rn)}return ge}function Le(ge,hn){for(var Hn=0,de=hn.members;Hn<de.length;Hn++){var rn=de[Hn];switch(rn.kind){case 221:ge.push(Je(rn));break;case 160:ge.push($e(Xe(hn,rn),rn,hn));break;case 162:case 163:var kn=e.getAllAccessorDeclarations(hn.members,rn);rn===kn.firstAccessor&&ge.push(Fe(Xe(hn,rn),kn,hn));break;case 161:break;default:e.Debug.failBadSyntaxKind(rn,P&&P.fileName);break}}}function Je(ge){return e.setTextRange(e.createEmptyStatement(),ge)}function $e(ge,hn,Hn){var de=e.getCommentRange(hn),rn=e.getSourceMapRange(hn),kn=ke(hn,hn,void 0,Hn),Qn;if(f.getCompilerOptions().useDefineForClassFields){var lt=e.visitNode(hn.name,K,e.isPropertyName),Ft=e.isComputedPropertyName(lt)?lt.expression:e.isIdentifier(lt)?e.createStringLiteral(e.unescapeLeadingUnderscores(lt.escapedText)):lt;Qn=e.createObjectDefinePropertyCall(ge,Ft,e.createPropertyDescriptor({value:kn,enumerable:!1,writable:!0,configurable:!0}))}else{var on=e.createMemberAccessForPropertyName(ge,e.visitNode(hn.name,K,e.isPropertyName),hn.name);Qn=e.createAssignment(on,kn)}e.setEmitFlags(kn,1536),e.setSourceMapRange(kn,rn);var kr=e.setTextRange(e.createExpressionStatement(Qn),hn);return e.setOriginalNode(kr,hn),e.setCommentRange(kr,de),e.setEmitFlags(kr,48),kr}function Fe(ge,hn,Hn){var de=e.createExpressionStatement(cn(ge,hn,Hn,!1));return e.setEmitFlags(de,1536),e.setSourceMapRange(de,e.getSourceMapRange(hn.firstAccessor)),de}function cn(ge,hn,Hn,de){var rn=hn.firstAccessor,kn=hn.getAccessor,Qn=hn.setAccessor,lt=e.getMutableClone(ge);e.setEmitFlags(lt,1536|32),e.setSourceMapRange(lt,rn.name);var Ft=e.createExpressionForPropertyName(e.visitNode(rn.name,K,e.isPropertyName));e.setEmitFlags(Ft,1536|16),e.setSourceMapRange(Ft,rn.name);var on=[];if(kn){var kr=ke(kn,void 0,void 0,Hn);e.setSourceMapRange(kr,e.getSourceMapRange(kn)),e.setEmitFlags(kr,512);var fa=e.createPropertyAssignment("get",kr);e.setCommentRange(fa,e.getCommentRange(kn)),on.push(fa)}if(Qn){var Wa=ke(Qn,void 0,void 0,Hn);e.setSourceMapRange(Wa,e.getSourceMapRange(Qn)),e.setEmitFlags(Wa,512);var to=e.createPropertyAssignment("set",Wa);e.setCommentRange(to,e.getCommentRange(Qn)),on.push(to)}on.push(e.createPropertyAssignment("enumerable",e.createTrue()),e.createPropertyAssignment("configurable",e.createTrue()));var ha=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[lt,Ft,e.createObjectLiteral(on,!0)]);return de&&e.startOnNewLine(ha),ha}function Qe(ge){ge.transformFlags&2048&&(X|=32768);var hn=z;z=void 0;var Hn=H(15232,66),de=e.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(ge.parameters,K,f),void 0,F(ge));return e.setTextRange(de,ge),e.setOriginalNode(de,ge),e.setEmitFlags(de,8),X&32768&&tr(),q(Hn,0,0),z=hn,de}function ln(ge){var hn=e.getEmitFlags(ge)&262144?H(16278,69):H(16286,65),Hn=z;z=void 0;var de=e.visitParameterList(ge.parameters,K,f),rn=F(ge),kn=X&16384?e.getLocalName(ge):ge.name;return q(hn,49152,0),z=Hn,e.updateFunctionExpression(ge,void 0,ge.asteriskToken,kn,void 0,de,void 0,rn)}function ye(ge){var hn=z;z=void 0;var Hn=H(16286,65),de=e.visitParameterList(ge.parameters,K,f),rn=F(ge),kn=X&16384?e.getLocalName(ge):ge.name;return q(Hn,49152,0),z=hn,e.updateFunctionDeclaration(ge,void 0,e.visitNodes(ge.modifiers,K,e.isModifier),ge.asteriskToken,kn,void 0,de,void 0,rn)}function ke(ge,hn,Hn,de){var rn=z;z=void 0;var kn=de&&e.isClassLike(de)&&!e.hasModifier(ge,32)?H(16286,65|8):H(16286,65),Qn=e.visitParameterList(ge.parameters,K,f),lt=F(ge);return X&16384&&!Hn&&(ge.kind===243||ge.kind===200)&&(Hn=e.getGeneratedNameForNode(ge)),q(kn,49152,0),z=rn,e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,ge.asteriskToken,Hn,void 0,Qn,void 0,lt),hn),ge)}function F(ge){var hn=!1,Hn=!1,de,rn,kn=[],Qn=[],lt=ge.body,Ft;if(Oe(),e.isBlock(lt)&&(Ft=e.addStandardPrologue(kn,lt.statements,!1)),hn=j(Qn,ge)||hn,hn=In(Qn,ge,!1)||hn,e.isBlock(lt))Ft=e.addCustomPrologue(Qn,lt.statements,Ft,K),de=lt.statements,e.addRange(Qn,e.visitNodes(lt.statements,K,e.isStatement,Ft)),!hn&<.multiLine&&(hn=!0);else{e.Debug.assert(ge.kind===201),de=e.moveRangeEnd(lt,-1);var on=ge.equalsGreaterThanToken;!e.nodeIsSynthesized(on)&&!e.nodeIsSynthesized(lt)&&(e.rangeEndIsOnSameLineAsRangeStart(on,lt,P)?Hn=!0:hn=!0);var kr=e.visitNode(lt,K,e.isExpression),fa=e.createReturn(kr);e.setTextRange(fa,lt),e.moveSyntheticComments(fa,lt),e.setEmitFlags(fa,384|32|1024),Qn.push(fa),rn=lt}if(e.mergeLexicalEnvironment(kn,N()),fe(kn,ge,!1),et(kn,ge),e.some(kn)&&(hn=!0),Qn.unshift.apply(Qn,kn),e.isBlock(lt)&&e.arrayIsEqualTo(Qn,lt.statements))return lt;var Wa=e.createBlock(e.setTextRange(e.createNodeArray(Qn),de),hn);return e.setTextRange(Wa,ge.body),!hn&&Hn&&e.setEmitFlags(Wa,1),rn&&e.setTokenSourceMapRange(Wa,19,rn),e.setOriginalNode(Wa,ge.body),Wa}function c(ge,hn){if(hn)return e.visitEachChild(ge,K,f);var Hn=X&256?H(7104,512):H(6976,128),de=e.visitEachChild(ge,K,f);return q(Hn,0,0),de}function L(ge){switch(ge.expression.kind){case 199:return e.updateExpressionStatement(ge,te(ge.expression,!1));case 208:return e.updateExpressionStatement(ge,Se(ge.expression,!1))}return e.visitEachChild(ge,K,f)}function te(ge,hn){if(!hn)switch(ge.expression.kind){case 199:return e.updateParen(ge,te(ge.expression,!1));case 208:return e.updateParen(ge,Se(ge.expression,!1))}return e.visitEachChild(ge,K,f)}function Se(ge,hn){return e.isDestructuringAssignment(ge)?e.flattenDestructuringAssignment(ge,K,f,0,hn):e.visitEachChild(ge,K,f)}function Ne(ge){var hn=H(0,e.hasModifier(ge,1)?32:0),Hn;if(z&&(ge.declarationList.flags&3)===0){for(var de=void 0,rn=0,kn=ge.declarationList.declarations;rn<kn.length;rn++){var Qn=kn[rn];if(_n(z,Qn),Qn.initializer){var lt=void 0;e.isBindingPattern(Qn.name)?lt=e.flattenDestructuringAssignment(Qn,K,f,0):(lt=e.createBinary(Qn.name,62,e.visitNode(Qn.initializer,K,e.isExpression)),e.setTextRange(lt,Qn)),de=e.append(de,lt)}}de?Hn=e.setTextRange(e.createExpressionStatement(e.inlineExpressions(de)),ge):Hn=void 0}else Hn=e.visitEachChild(ge,K,f);return q(hn,0,0),Hn}function ze(ge){if(ge.flags&3||ge.transformFlags&65536){ge.flags&3&&Mt();var hn=e.flatMap(ge.declarations,ge.flags&1?jn:nn),Hn=e.createVariableDeclarationList(hn);return e.setOriginalNode(Hn,ge),e.setTextRange(Hn,ge),e.setCommentRange(Hn,ge),ge.transformFlags&65536&&(e.isBindingPattern(ge.declarations[0].name)||e.isBindingPattern(e.last(ge.declarations).name))&&e.setSourceMapRange(Hn,Tn(hn)),Hn}return e.visitEachChild(ge,K,f)}function Tn(ge){for(var hn=-1,Hn=-1,de=0,rn=ge;de<rn.length;de++){var kn=rn[de];hn=hn===-1?kn.pos:kn.pos===-1?hn:Math.min(hn,kn.pos),Hn=Math.max(Hn,kn.end)}return e.createRange(hn,Hn)}function wn(ge){var hn=ce.getNodeCheckFlags(ge),Hn=hn&262144,de=hn&524288,rn=(X&64)!==0||Hn&&de&&(X&512)!==0,kn=!rn&&(X&4096)===0&&(!ce.isDeclarationWithCollidingName(ge)||de&&!Hn&&(X&(2048|4096))===0);return kn}function jn(ge){var hn=ge.name;if(e.isBindingPattern(hn))return nn(ge);if(!ge.initializer&&wn(ge)){var Hn=e.getMutableClone(ge);return Hn.initializer=e.createVoidZero(),Hn}return e.visitEachChild(ge,K,f)}function nn(ge){var hn=H(32,0),Hn;return e.isBindingPattern(ge.name)?Hn=e.flattenDestructuringBinding(ge,K,f,0,void 0,(hn&32)!==0):Hn=e.visitEachChild(ge,K,f),q(hn,0,0),Hn}function pn(ge){z.labels.set(e.idText(ge.label),!0)}function le(ge){z.labels.set(e.idText(ge.label),!1)}function oe(ge){z&&!z.labels&&(z.labels=e.createMap());var hn=e.unwrapInnermostStatementOfLabel(ge,z&&pn);return e.isIterationStatement(hn,!1)?Cn(hn,ge):e.restoreEnclosingLabel(e.visitNode(hn,K,e.isStatement,e.liftToBlock),ge,z&&le)}function Cn(ge,hn){switch(ge.kind){case 227:case 228:return _e(ge,hn);case 229:return dn(ge,hn);case 230:return un(ge,hn);case 231:return Rn(ge,hn)}}function yn(ge,hn,Hn,de,rn){var kn=H(ge,hn),Qn=yt(Hn,de,kn,rn);return q(kn,0,0),Qn}function _e(ge,hn){return yn(0,1280,ge,hn)}function dn(ge,hn){return yn(5056,3328,ge,hn)}function un(ge,hn){return yn(3008,5376,ge,hn)}function Rn(ge,hn){return yn(3008,5376,ge,hn,ie.downlevelIteration?ct:ut)}function at(ge,hn,Hn){var de=[],rn=ge.initializer;if(e.isVariableDeclarationList(rn)){ge.initializer.flags&3&&Mt();var kn=e.firstOrUndefined(rn.declarations);if(kn&&e.isBindingPattern(kn.name)){var Qn=e.flattenDestructuringBinding(kn,K,f,0,hn),lt=e.setTextRange(e.createVariableDeclarationList(Qn),ge.initializer);e.setOriginalNode(lt,ge.initializer),e.setSourceMapRange(lt,e.createRange(Qn[0].pos,e.last(Qn).end)),de.push(e.createVariableStatement(void 0,lt))}else de.push(e.setTextRange(e.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(kn?kn.name:e.createTempVariable(void 0),void 0,hn)]),e.moveRangePos(rn,-1)),rn)),e.moveRangeEnd(rn,-1)))}else{var Ft=e.createAssignment(rn,hn);e.isDestructuringAssignment(Ft)?(e.aggregateTransformFlags(Ft),de.push(e.createExpressionStatement(Se(Ft,!1)))):(Ft.end=rn.end,de.push(e.setTextRange(e.createExpressionStatement(e.visitNode(Ft,K,e.isExpression)),e.moveRangeEnd(rn,-1))))}if(Hn)return Bn(e.addRange(de,Hn));var on=e.visitNode(ge.statement,K,e.isStatement,e.liftToBlock);return e.isBlock(on)?e.updateBlock(on,e.setTextRange(e.createNodeArray(e.concatenate(de,on.statements)),on.statements)):(de.push(on),Bn(de))}function Bn(ge){return e.setEmitFlags(e.createBlock(e.createNodeArray(ge),!0),48|384)}function ut(ge,hn,Hn){var de=e.visitNode(ge.expression,K,e.isExpression),rn=e.createLoopVariable(),kn=e.isIdentifier(de)?e.getGeneratedNameForNode(de):e.createTempVariable(void 0);e.setEmitFlags(de,48|e.getEmitFlags(de));var Qn=e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(rn,void 0,e.createLiteral(0)),e.moveRangePos(ge.expression,-1)),e.setTextRange(e.createVariableDeclaration(kn,void 0,de),ge.expression)]),ge.expression),2097152),e.setTextRange(e.createLessThan(rn,e.createPropertyAccess(kn,"length")),ge.expression),e.setTextRange(e.createPostfixIncrement(rn),ge.expression),at(ge,e.createElementAccess(kn,rn),Hn)),ge);return e.setEmitFlags(Qn,256),e.setTextRange(Qn,ge),e.restoreEnclosingLabel(Qn,hn,z&&le)}function ct(ge,hn,Hn,de){var rn=e.visitNode(ge.expression,K,e.isExpression),kn=e.isIdentifier(rn)?e.getGeneratedNameForNode(rn):e.createTempVariable(void 0),Qn=e.isIdentifier(rn)?e.getGeneratedNameForNode(kn):e.createTempVariable(void 0),lt=e.createUniqueName("e"),Ft=e.getGeneratedNameForNode(lt),on=e.createTempVariable(void 0),kr=e.createValuesHelper(f,rn,ge.expression),fa=e.createCall(e.createPropertyAccess(kn,"next"),void 0,[]);Te(lt),Te(on);var Wa=de&1024?e.inlineExpressions([e.createAssignment(lt,e.createVoidZero()),kr]):kr,to=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(kn,void 0,Wa),ge.expression),e.createVariableDeclaration(Qn,void 0,fa)]),ge.expression),2097152),e.createLogicalNot(e.createPropertyAccess(Qn,"done")),e.createAssignment(Qn,fa),at(ge,e.createPropertyAccess(Qn,"value"),Hn)),ge),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(to,hn,z&&le)]),e.createCatchClause(e.createVariableDeclaration(Ft),e.setEmitFlags(e.createBlock([e.createExpressionStatement(e.createAssignment(lt,e.createObjectLiteral([e.createPropertyAssignment("error",Ft)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(Qn,e.createLogicalNot(e.createPropertyAccess(Qn,"done"))),e.createAssignment(on,e.createPropertyAccess(kn,"return"))),e.createExpressionStatement(e.createFunctionCall(on,kn,[]))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(lt,e.createThrow(e.createPropertyAccess(lt,"error"))),1)]),1))]))}function ot(ge){for(var hn=ge.properties,Hn=hn.length,de=Hn,rn=Hn,kn=0;kn<Hn;kn++){var Qn=hn[kn];if(Qn.transformFlags&131072&&X&4&&kn<rn&&(rn=kn),Qn.name.kind===153){de=kn;break}}if(de!==Hn){rn<de&&(de=rn);var lt=e.createTempVariable(Te),Ft=[],on=e.createAssignment(lt,e.setEmitFlags(e.createObjectLiteral(e.visitNodes(hn,K,e.isObjectLiteralElementLike,0,de),ge.multiLine),65536));return ge.multiLine&&e.startOnNewLine(on),Ft.push(on),rr(Ft,ge,lt,de),Ft.push(ge.multiLine?e.startOnNewLine(e.getMutableClone(lt)):lt),e.inlineExpressions(Ft)}return e.visitEachChild(ge,K,f)}function dt(ge){return(ce.getNodeCheckFlags(ge)&131072)!==0}function Ct(ge){return e.isForStatement(ge)&&!!ge.initializer&&dt(ge.initializer)}function st(ge){return e.isForStatement(ge)&&!!ge.condition&&dt(ge.condition)}function Kn(ge){return e.isForStatement(ge)&&!!ge.incrementor&&dt(ge.incrementor)}function Ie(ge){return Ce(ge)||Ct(ge)}function Ce(ge){return(ce.getNodeCheckFlags(ge)&65536)!==0}function _n(ge,hn){ge.hoistedLocalVariables||(ge.hoistedLocalVariables=[]),Hn(hn.name);function Hn(de){if(de.kind===75)ge.hoistedLocalVariables.push(de);else for(var rn=0,kn=de.elements;rn<kn.length;rn++){var Qn=kn[rn];e.isOmittedExpression(Qn)||Hn(Qn.name)}}}function yt(ge,hn,Hn,de){if(!Ie(ge)){var rn=void 0;z&&(rn=z.allowedNonLabeledJumps,z.allowedNonLabeledJumps=2|4);var kn=de?de(ge,hn,void 0,Hn):e.restoreEnclosingLabel(e.visitEachChild(ge,K,f),hn,z&&le);return z&&(z.allowedNonLabeledJumps=rn),kn}var Qn=mt(ge),lt=[],Ft=z;z=Qn;var on=Ct(ge)?Wn(ge,Qn):void 0,kr=Ce(ge)?Vt(ge,Qn,Ft):void 0;z=Ft,on&<.push(on.functionDeclaration),kr&<.push(kr.functionDeclaration),va(lt,Qn,Ft),on&<.push(ht(on.functionName,on.containsYield));var fa;if(kr)if(de)fa=de(ge,hn,kr.part,Hn);else{var Wa=Dt(ge,on,e.createBlock(kr.part,!0));e.aggregateTransformFlags(Wa),fa=e.restoreEnclosingLabel(Wa,hn,z&&le)}else{var to=Dt(ge,on,e.visitNode(ge.statement,K,e.isStatement,e.liftToBlock));e.aggregateTransformFlags(to),fa=e.restoreEnclosingLabel(to,hn,z&&le)}return lt.push(fa),lt}function Dt(ge,hn,Hn){switch(ge.kind){case 229:return Ht(ge,hn,Hn);case 230:return wr(ge,Hn);case 231:return $t(ge,Hn);case 227:return Yr(ge,Hn);case 228:return Hr(ge,Hn);default:return e.Debug.failBadSyntaxKind(ge,"IterationStatement expected")}}function Ht(ge,hn,Hn){var de=ge.condition&&dt(ge.condition),rn=de||ge.incrementor&&dt(ge.incrementor);return e.updateFor(ge,e.visitNode(hn?hn.part:ge.initializer,K,e.isForInitializer),e.visitNode(de?void 0:ge.condition,K,e.isExpression),e.visitNode(rn?void 0:ge.incrementor,K,e.isExpression),Hn)}function $t(ge,hn){return e.updateForOf(ge,void 0,e.visitNode(ge.initializer,K,e.isForInitializer),e.visitNode(ge.expression,K,e.isExpression),hn)}function wr(ge,hn){return e.updateForIn(ge,e.visitNode(ge.initializer,K,e.isForInitializer),e.visitNode(ge.expression,K,e.isExpression),hn)}function Yr(ge,hn){return e.updateDo(ge,hn,e.visitNode(ge.expression,K,e.isExpression))}function Hr(ge,hn){return e.updateWhile(ge,e.visitNode(ge.expression,K,e.isExpression),hn)}function mt(ge){var hn;switch(ge.kind){case 229:case 230:case 231:var Hn=ge.initializer;Hn&&Hn.kind===242&&(hn=Hn);break}var de=[],rn=[];if(hn&&e.getCombinedNodeFlags(hn)&3)for(var kn=Ct(ge),Qn=0,lt=hn.declarations;Qn<lt.length;Qn++){var Ft=lt[Qn];$n(ge,Ft,de,rn,kn)}var on={loopParameters:de,loopOutParameters:rn};return z&&(z.argumentsName&&(on.argumentsName=z.argumentsName),z.thisName&&(on.thisName=z.thisName),z.hoistedLocalVariables&&(on.hoistedLocalVariables=z.hoistedLocalVariables)),on}function va(ge,hn,Hn){var de;if(hn.argumentsName&&(Hn?Hn.argumentsName=hn.argumentsName:(de||(de=[])).push(e.createVariableDeclaration(hn.argumentsName,void 0,e.createIdentifier("arguments")))),hn.thisName&&(Hn?Hn.thisName=hn.thisName:(de||(de=[])).push(e.createVariableDeclaration(hn.thisName,void 0,e.createIdentifier("this")))),hn.hoistedLocalVariables)if(Hn)Hn.hoistedLocalVariables=hn.hoistedLocalVariables;else{de||(de=[]);for(var rn=0,kn=hn.hoistedLocalVariables;rn<kn.length;rn++){var Qn=kn[rn];de.push(e.createVariableDeclaration(Qn))}}if(hn.loopOutParameters.length){de||(de=[]);for(var lt=0,Ft=hn.loopOutParameters;lt<Ft.length;lt++){var on=Ft[lt];de.push(e.createVariableDeclaration(on.outParamName))}}hn.conditionVariable&&(de||(de=[]),de.push(e.createVariableDeclaration(hn.conditionVariable,void 0,e.createFalse()))),de&&ge.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(de)))}function Lt(ge){return e.createVariableDeclaration(ge.originalName,void 0,ge.outParamName)}function Wn(ge,hn){var Hn=e.createUniqueName("_loop_init"),de=(ge.initializer.transformFlags&131072)!==0,rn=0;hn.containsLexicalThis&&(rn|=8),de&&X&4&&(rn|=262144);var kn=[];kn.push(e.createVariableStatement(void 0,ge.initializer)),Tt(hn.loopOutParameters,2,1,kn);var Qn=e.createVariableStatement(void 0,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(Hn,void 0,e.setEmitFlags(e.createFunctionExpression(void 0,de?e.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(e.createBlock(kn,!0),K,e.isBlock)),rn))]),2097152)),lt=e.createVariableDeclarationList(e.map(hn.loopOutParameters,Lt));return{functionName:Hn,containsYield:de,functionDeclaration:Qn,part:lt}}function Vt(ge,hn,Hn){var de=e.createUniqueName("_loop");J();var rn=e.visitNode(ge.statement,K,e.isStatement,e.liftToBlock),kn=N(),Qn=[];(st(ge)||Kn(ge))&&(hn.conditionVariable=e.createUniqueName("inc"),Qn.push(e.createIf(hn.conditionVariable,e.createStatement(e.visitNode(ge.incrementor,K,e.isExpression)),e.createStatement(e.createAssignment(hn.conditionVariable,e.createTrue())))),st(ge)&&Qn.push(e.createIf(e.createPrefix(53,e.visitNode(ge.condition,K,e.isExpression)),e.visitNode(e.createBreak(),K,e.isStatement)))),e.isBlock(rn)?e.addRange(Qn,rn.statements):Qn.push(rn),Tt(hn.loopOutParameters,1,1,Qn),e.insertStatementsAfterStandardPrologue(Qn,kn);var lt=e.createBlock(Qn,!0);e.isBlock(rn)&&e.setOriginalNode(lt,rn);var Ft=(ge.statement.transformFlags&131072)!==0,on=0;hn.containsLexicalThis&&(on|=8),Ft&&(X&4)!==0&&(on|=262144);var kr=e.createVariableStatement(void 0,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(de,void 0,e.setEmitFlags(e.createFunctionExpression(void 0,Ft?e.createToken(41):void 0,void 0,void 0,hn.loopParameters,void 0,lt),on))]),2097152)),fa=bt(de,hn,Hn,Ft);return{functionName:de,containsYield:Ft,functionDeclaration:kr,part:fa}}function pt(ge,hn){var Hn=hn===0?ge.outParamName:ge.originalName,de=hn===0?ge.originalName:ge.outParamName;return e.createBinary(de,62,Hn)}function Tt(ge,hn,Hn,de){for(var rn=0,kn=ge;rn<kn.length;rn++){var Qn=kn[rn];Qn.flags&hn&&de.push(e.createExpressionStatement(pt(Qn,Hn)))}}function ht(ge,hn){var Hn=e.createCall(ge,void 0,[]),de=hn?e.createYield(e.createToken(41),e.setEmitFlags(Hn,8388608)):Hn;return e.createStatement(de)}function bt(ge,hn,Hn,de){var rn=[],kn=!(hn.nonLocalJumps&~4)&&!hn.labeledNonLocalBreaks&&!hn.labeledNonLocalContinues,Qn=e.createCall(ge,void 0,e.map(hn.loopParameters,function(Wa){return Wa.name})),lt=de?e.createYield(e.createToken(41),e.setEmitFlags(Qn,8388608)):Qn;if(kn)rn.push(e.createExpressionStatement(lt)),Tt(hn.loopOutParameters,1,0,rn);else{var Ft=e.createUniqueName("state"),on=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(Ft,void 0,lt)]));if(rn.push(on),Tt(hn.loopOutParameters,1,0,rn),hn.nonLocalJumps&8){var kr=void 0;Hn?(Hn.nonLocalJumps|=8,kr=e.createReturn(Ft)):kr=e.createReturn(e.createPropertyAccess(Ft,"value")),rn.push(e.createIf(e.createBinary(e.createTypeOf(Ft),36,e.createLiteral("object")),kr))}if(hn.nonLocalJumps&2&&rn.push(e.createIf(e.createBinary(Ft,36,e.createLiteral("break")),e.createBreak())),hn.labeledNonLocalBreaks||hn.labeledNonLocalContinues){var fa=[];Pn(hn.labeledNonLocalBreaks,!0,Ft,Hn,fa),Pn(hn.labeledNonLocalContinues,!1,Ft,Hn,fa),rn.push(e.createSwitch(Ft,e.createCaseBlock(fa)))}}return rn}function Ke(ge,hn,Hn,de){hn?(ge.labeledNonLocalBreaks||(ge.labeledNonLocalBreaks=e.createMap()),ge.labeledNonLocalBreaks.set(Hn,de)):(ge.labeledNonLocalContinues||(ge.labeledNonLocalContinues=e.createMap()),ge.labeledNonLocalContinues.set(Hn,de))}function Pn(ge,hn,Hn,de,rn){if(!ge)return;ge.forEach(function(kn,Qn){var lt=[];if(!de||de.labels&&de.labels.get(Qn)){var Ft=e.createIdentifier(Qn);lt.push(hn?e.createBreak(Ft):e.createContinue(Ft))}else Ke(de,hn,Qn,kn),lt.push(e.createReturn(Hn));rn.push(e.createCaseClause(e.createLiteral(kn),lt))})}function $n(ge,hn,Hn,de,rn){var kn=hn.name;if(e.isBindingPattern(kn))for(var Qn=0,lt=kn.elements;Qn<lt.length;Qn++){var Ft=lt[Qn];e.isOmittedExpression(Ft)||$n(ge,Ft,Hn,de,rn)}else{Hn.push(e.createParameter(void 0,void 0,void 0,kn));var on=ce.getNodeCheckFlags(hn);if(on&4194304||rn){var kr=e.createUniqueName("out_"+e.idText(kn)),fa=0;on&4194304&&(fa|=1),e.isForStatement(ge)&&ge.initializer&&ce.isBindingCapturedByNode(ge.initializer,hn)&&(fa|=2),de.push({flags:fa,originalName:kn,outParamName:kr})}}}function rr(ge,hn,Hn,de){for(var rn=hn.properties,kn=rn.length,Qn=de;Qn<kn;Qn++){var lt=rn[Qn];switch(lt.kind){case 162:case 163:var Ft=e.getAllAccessorDeclarations(hn.properties,lt);lt===Ft.firstAccessor&&ge.push(cn(Hn,Ft,hn,!!hn.multiLine));break;case 160:ge.push(ri(lt,Hn,hn,hn.multiLine));break;case 279:ge.push(xa(lt,Hn,hn.multiLine));break;case 280:ge.push(Fa(lt,Hn,hn.multiLine));break;default:e.Debug.failBadSyntaxKind(hn);break}}}function xa(ge,hn,Hn){var de=e.createAssignment(e.createMemberAccessForPropertyName(hn,e.visitNode(ge.name,K,e.isPropertyName)),e.visitNode(ge.initializer,K,e.isExpression));return e.setTextRange(de,ge),Hn&&e.startOnNewLine(de),de}function Fa(ge,hn,Hn){var de=e.createAssignment(e.createMemberAccessForPropertyName(hn,e.visitNode(ge.name,K,e.isPropertyName)),e.getSynthesizedClone(ge.name));return e.setTextRange(de,ge),Hn&&e.startOnNewLine(de),de}function ri(ge,hn,Hn,de){var rn=e.createAssignment(e.createMemberAccessForPropertyName(hn,e.visitNode(ge.name,K,e.isPropertyName)),ke(ge,ge,void 0,Hn));return e.setTextRange(rn,ge),de&&e.startOnNewLine(rn),rn}function Si(ge){var hn=H(7104,0),Hn;if(e.Debug.assert(!!ge.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(ge.variableDeclaration.name)){var de=e.createTempVariable(void 0),rn=e.createVariableDeclaration(de);e.setTextRange(rn,ge.variableDeclaration);var kn=e.flattenDestructuringBinding(ge.variableDeclaration,K,f,0,de),Qn=e.createVariableDeclarationList(kn);e.setTextRange(Qn,ge.variableDeclaration);var lt=e.createVariableStatement(void 0,Qn);Hn=e.updateCatchClause(ge,rn,xi(ge.block,lt))}else Hn=e.visitEachChild(ge,K,f);return q(hn,0,0),Hn}function xi(ge,hn){var Hn=e.visitNodes(ge.statements,K,e.isStatement);return e.updateBlock(ge,Tr([hn],Hn))}function vi(ge){e.Debug.assert(!e.isComputedPropertyName(ge.name));var hn=ke(ge,e.moveRangePos(ge,-1),void 0,void 0);return e.setEmitFlags(hn,512|e.getEmitFlags(hn)),e.setTextRange(e.createPropertyAssignment(ge.name,hn),ge)}function Oi(ge){e.Debug.assert(!e.isComputedPropertyName(ge.name));var hn=z;z=void 0;var Hn=H(16286,65),de,rn=e.visitParameterList(ge.parameters,K,f),kn=F(ge);return ge.kind===162?de=e.updateGetAccessor(ge,ge.decorators,ge.modifiers,ge.name,rn,ge.type,kn):de=e.updateSetAccessor(ge,ge.decorators,ge.modifiers,ge.name,rn,kn),q(Hn,49152,0),z=hn,de}function Ja(ge){return e.setTextRange(e.createPropertyAssignment(ge.name,e.getSynthesizedClone(ge.name)),ge)}function Ka(ge){return e.visitEachChild(ge,K,f)}function ua(ge){return e.visitEachChild(ge,K,f)}function bi(ge){return e.some(ge.elements,e.isSpreadElement)?Gi(ge.elements,!0,!!ge.multiLine,!!ge.elements.hasTrailingComma):e.visitEachChild(ge,K,f)}function Vo(ge){if(e.getEmitFlags(ge)&33554432)return wo(ge);var hn=e.skipOuterExpressions(ge.expression);return hn.kind===101||e.isSuperProperty(hn)||e.some(ge.arguments,e.isSpreadElement)?uo(ge,!0):e.updateCall(ge,e.visitNode(ge.expression,m,e.isExpression),void 0,e.visitNodes(ge.arguments,K,e.isExpression))}function wo(ge){var hn=e.cast(e.cast(e.skipOuterExpressions(ge.expression),e.isArrowFunction).body,e.isBlock),Hn=function(ks){return e.isVariableStatement(ks)&&!!e.first(ks.declarationList.declarations).initializer},de=e.visitNodes(hn.statements,K,e.isStatement),rn=e.filter(de,Hn),kn=e.filter(de,function(ks){return!Hn(ks)}),Qn=e.cast(e.first(rn),e.isVariableStatement),lt=Qn.declarationList.declarations[0],Ft=e.skipOuterExpressions(lt.initializer),on=e.tryCast(Ft,e.isAssignmentExpression),kr=e.cast(on?e.skipOuterExpressions(on.right):Ft,e.isCallExpression),fa=e.cast(e.skipOuterExpressions(kr.expression),e.isFunctionExpression),Wa=fa.body.statements,to=0,ha=-1,Yo=[];if(on){var ko=e.tryCast(Wa[to],e.isExpressionStatement);ko&&(Yo.push(ko),to++),Yo.push(Wa[to]),to++,Yo.push(e.createExpressionStatement(e.createAssignment(on.left,e.cast(lt.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(Wa,ha));)ha--;return e.addRange(Yo,Wa,to,ha),ha<-1&&e.addRange(Yo,Wa,ha+1),e.addRange(Yo,kn),e.addRange(Yo,rn,1),e.recreateOuterExpressions(ge.expression,e.recreateOuterExpressions(lt.initializer,e.recreateOuterExpressions(on&&on.right,e.updateCall(kr,e.recreateOuterExpressions(kr.expression,e.updateFunctionExpression(fa,void 0,void 0,void 0,void 0,fa.parameters,void 0,e.updateBlock(fa.body,Yo))),void 0,kr.arguments))))}function Mo(ge){return uo(ge,!1)}function uo(ge,hn){if(ge.transformFlags&4096||ge.expression.kind===101||e.isSuperProperty(e.skipOuterExpressions(ge.expression))){var Hn=e.createCallBinding(ge.expression,Te),de=Hn.target,rn=Hn.thisArg;ge.expression.kind===101&&e.setEmitFlags(rn,4);var kn=void 0;if(ge.transformFlags&4096?kn=e.createFunctionApply(e.visitNode(de,m,e.isExpression),ge.expression.kind===101?rn:e.visitNode(rn,K,e.isExpression),Gi(ge.arguments,!1,!1,!1)):kn=e.createFunctionCall(e.visitNode(de,m,e.isExpression),ge.expression.kind===101?rn:e.visitNode(rn,K,e.isExpression),e.visitNodes(ge.arguments,K,e.isExpression),ge),ge.expression.kind===101){var Qn=e.createLogicalOr(kn,He());kn=hn?e.createAssignment(e.createFileLevelUniqueName("_this"),Qn):Qn}return e.setOriginalNode(kn,ge)}return e.visitEachChild(ge,K,f)}function ci(ge){if(e.some(ge.arguments,e.isSpreadElement)){var hn=e.createCallBinding(e.createPropertyAccess(ge.expression,"bind"),Te),Hn=hn.target,de=hn.thisArg;return e.createNew(e.createFunctionApply(e.visitNode(Hn,K,e.isExpression),de,Gi(e.createNodeArray(Tr([e.createVoidZero()],ge.arguments)),!1,!1,!1)),void 0,[])}return e.visitEachChild(ge,K,f)}function Gi(ge,hn,Hn,de){var rn=ge.length,kn=e.flatten(e.spanMap(ge,_o,function(lt,Ft,on,kr){return Ft(lt,Hn,de&&kr===rn)}));if(ie.downlevelIteration){if(kn.length===1){var Qn=kn[0];if(Ao(Qn,"___spread"))return kn[0]}return e.createSpreadHelper(f,kn)}else{if(kn.length===1){var Qn=kn[0];if(!hn||Ro(Qn)||Ao(Qn,"___spreadArrays"))return kn[0]}return e.createSpreadArraysHelper(f,kn)}}function ji(ge){return!e.isOmittedExpression(ge)}function Ro(ge){return e.isArrayLiteralExpression(ge)&&e.every(ge.elements,ji)}function Ao(ge,hn){return e.isCallExpression(ge)&&e.isIdentifier(ge.expression)&&e.getEmitFlags(ge.expression)&4096&&ge.expression.escapedText===hn}function _o(ge){return e.isSpreadElement(ge)?Ri:xt}function Ri(ge){return e.map(ge,yr)}function xt(ge,hn,Hn){return e.createArrayLiteral(e.visitNodes(e.createNodeArray(ge,Hn),K,e.isExpression),hn)}function Kt(ge){return e.visitNode(ge.expression,K,e.isExpression)}function yr(ge){return e.visitNode(ge.expression,K,e.isExpression)}function Jr(ge){return e.setTextRange(e.createLiteral(ge.text),ge)}function _a(ge){return ge.hasExtendedUnicodeEscape?e.setTextRange(e.createLiteral(ge.text),ge):ge}function La(ge){return ge.numericLiteralFlags&384?e.setTextRange(e.createNumericLiteral(ge.text),ge):ge}function qr(ge){var hn=e.visitNode(ge.tag,K,e.isExpression),Hn=[void 0],de=[],rn=[],kn=ge.template;if(e.isNoSubstitutionTemplateLiteral(kn))de.push(e.createLiteral(kn.text)),rn.push(pi(kn));else{de.push(e.createLiteral(kn.head.text)),rn.push(pi(kn.head));for(var Qn=0,lt=kn.templateSpans;Qn<lt.length;Qn++){var Ft=lt[Qn];de.push(e.createLiteral(Ft.literal.text)),rn.push(pi(Ft.literal)),Hn.push(e.visitNode(Ft.expression,K,e.isExpression))}}var on=ee(f,e.createArrayLiteral(de),e.createArrayLiteral(rn));if(e.isExternalModule(P)){var kr=e.createUniqueName("templateObject");Q(kr),Hn[0]=e.createLogicalOr(kr,e.createAssignment(kr,on))}else Hn[0]=on;return e.createCall(hn,void 0,Hn)}function pi(ge){var hn=ge.rawText;if(hn===void 0){hn=e.getSourceTextOfNodeFromSourceFile(P,ge);var Hn=ge.kind===14||ge.kind===17;hn=hn.substring(1,hn.length-(Hn?1:2))}return hn=hn.replace(/\r\n?/g,`
|
|
|
`),e.setTextRange(e.createLiteral(hn),ge)}function Li(ge){var hn=[];da(hn,ge),en(hn,ge);var Hn=e.reduceLeft(hn,e.createAdd);return e.nodeIsSynthesized(Hn)&&(Hn.pos=ge.pos,Hn.end=ge.end),Hn}function mi(ge){return e.Debug.assert(ge.templateSpans.length!==0),ge.head.text.length!==0||ge.templateSpans[0].literal.text.length===0}function da(ge,hn){if(!mi(hn))return;ge.push(e.createLiteral(hn.head.text))}function en(ge,hn){for(var Hn=0,de=hn.templateSpans;Hn<de.length;Hn++){var rn=de[Hn];ge.push(e.visitNode(rn.expression,K,e.isExpression)),rn.literal.text.length!==0&&ge.push(e.createLiteral(rn.literal.text))}}function vn(ge){return X&8&&!ge?e.createPropertyAccess(e.createFileLevelUniqueName("_super"),"prototype"):e.createFileLevelUniqueName("_super")}function Ln(ge){return ge.keywordToken===98&&ge.name.escapedText==="target"?(X|=16384,e.createFileLevelUniqueName("_newTarget")):ge}function Vn(ge,hn,Hn){if(se&1&&e.isFunctionLike(hn)){var de=H(16286,e.getEmitFlags(hn)&8?65|16:65);C(ge,hn,Hn),q(de,0,0);return}C(ge,hn,Hn)}function Mt(){(se&2)===0&&(se|=2,f.enableSubstitution(75))}function tr(){(se&1)===0&&(se|=1,f.enableSubstitution(103),f.enableEmitNotification(161),f.enableEmitNotification(160),f.enableEmitNotification(162),f.enableEmitNotification(163),f.enableEmitNotification(201),f.enableEmitNotification(200),f.enableEmitNotification(243))}function dr(ge,hn){return hn=x(ge,hn),ge===1?Ia(hn):e.isIdentifier(hn)?Pr(hn):hn}function Pr(ge){if(se&2&&!e.isInternalName(ge)){var hn=e.getParseTreeNode(ge,e.isIdentifier);if(hn&&za(hn))return e.setTextRange(e.getGeneratedNameForNode(hn),ge)}return ge}function za(ge){switch(ge.parent.kind){case 190:case 244:case 247:case 241:return ge.parent.name===ge&&ce.isDeclarationWithCollidingName(ge.parent)}return!1}function Ia(ge){switch(ge.kind){case 75:return Ii(ge);case 103:return hi(ge)}return ge}function Ii(ge){if(se&2&&!e.isInternalName(ge)){var hn=ce.getReferencedDeclarationWithCollidingName(ge);if(hn&&!(e.isClassLike(hn)&&ai(hn,ge)))return e.setTextRange(e.getGeneratedNameForNode(e.getNameOfDeclaration(hn)),ge)}return ge}function ai(ge,hn){var Hn=e.getParseTreeNode(hn);if(!Hn||Hn===ge||Hn.end<=ge.pos||Hn.pos>=ge.end)return!1;for(var de=e.getEnclosingBlockScopeContainer(ge);Hn;){if(Hn===de||Hn===ge)return!1;if(e.isClassElement(Hn)&&Hn.parent===ge)return!0;Hn=Hn.parent}return!1}function hi(ge){return se&1&&X&16?e.setTextRange(e.createFileLevelUniqueName("_this"),ge):ge}function Xe(ge,hn){return e.hasModifier(hn,32)?e.getInternalName(ge):e.createPropertyAccess(e.getInternalName(ge),"prototype")}function qn(ge,hn){if(!ge||!hn)return!1;if(e.some(ge.parameters))return!1;var Hn=e.firstOrUndefined(ge.body.statements);if(!Hn||!e.nodeIsSynthesized(Hn)||Hn.kind!==225)return!1;var de=Hn.expression;if(!e.nodeIsSynthesized(de)||de.kind!==195)return!1;var rn=de.expression;if(!e.nodeIsSynthesized(rn)||rn.kind!==101)return!1;var kn=e.singleOrUndefined(de.arguments);if(!kn||!e.nodeIsSynthesized(kn)||kn.kind!==212)return!1;var Qn=kn.expression;return e.isIdentifier(Qn)&&Qn.escapedText==="arguments"}}e.transformES2015=Be;function he(f,J){return f.requestEmitHelper(e.extendsHelper),e.createCall(e.getUnscopedHelperName("__extends"),void 0,[J,e.createFileLevelUniqueName("_super")])}function ee(f,J,Oe){return f.requestEmitHelper(e.templateObjectHelper),e.createCall(e.getUnscopedHelperName("__makeTemplateObject"),void 0,[J,Oe])}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 (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
return extendStatics(d, b);
|
|
|
};
|
|
|
|
|
|
return function (d, b) {
|
|
|
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;
|
|
|
};`}})(sn||(sn={}));var sn;(function(e){function o(M){var qe=M.getCompilerOptions(),Ee,Ge;(qe.jsx===1||qe.jsx===3)&&(Ee=M.onEmitNode,M.onEmitNode=ee,M.enableEmitNotification(266),M.enableEmitNotification(267),M.enableEmitNotification(265),Ge=[]);var Be=M.onSubstituteNode;return M.onSubstituteNode=f,M.enableSubstitution(193),M.enableSubstitution(279),e.chainBundle(he);function he(Te){return Te}function ee(Te,ie,ce){switch(ie.kind){case 266:case 267:case 265:var x=ie.tagName;Ge[e.getOriginalNodeId(x)]=!0;break}Ee(Te,ie,ce)}function f(Te,ie){return ie.id&&Ge&&Ge[ie.id]?Be(Te,ie):(ie=Be(Te,ie),e.isPropertyAccessExpression(ie)?J(ie):e.isPropertyAssignment(ie)?Oe(ie):ie)}function J(Te){var ie=N(Te.name);return ie?e.setTextRange(e.createElementAccess(Te.expression,ie),Te):Te}function Oe(Te){var ie=e.isIdentifier(Te.name)&&N(Te.name);return ie?e.updatePropertyAssignment(Te,ie,Te.initializer):Te}function N(Te){var ie=Te.originalKeywordKind||(e.nodeIsSynthesized(Te)?e.stringToToken(e.idText(Te)):void 0);return ie!==void 0&&ie>=76&&ie<=111?e.setTextRange(e.createLiteral(Te),Te):void 0}}e.transformES5=o})(sn||(sn={}));var sn;(function(e){var o;(function(f){f[f.Nop=0]="Nop",f[f.Statement=1]="Statement",f[f.Assign=2]="Assign",f[f.Break=3]="Break",f[f.BreakWhenTrue=4]="BreakWhenTrue",f[f.BreakWhenFalse=5]="BreakWhenFalse",f[f.Yield=6]="Yield",f[f.YieldStar=7]="YieldStar",f[f.Return=8]="Return",f[f.Throw=9]="Throw",f[f.Endfinally=10]="Endfinally"})(o||(o={}));var M;(function(f){f[f.Open=0]="Open",f[f.Close=1]="Close"})(M||(M={}));var qe;(function(f){f[f.Exception=0]="Exception",f[f.With=1]="With",f[f.Switch=2]="Switch",f[f.Loop=3]="Loop",f[f.Labeled=4]="Labeled"})(qe||(qe={}));var Ee;(function(f){f[f.Try=0]="Try",f[f.Catch=1]="Catch",f[f.Finally=2]="Finally",f[f.Done=3]="Done"})(Ee||(Ee={}));var Ge;(function(f){f[f.Next=0]="Next",f[f.Throw=1]="Throw",f[f.Return=2]="Return",f[f.Break=3]="Break",f[f.Yield=4]="Yield",f[f.YieldStar=5]="YieldStar",f[f.Catch=6]="Catch",f[f.Endfinally=7]="Endfinally"})(Ge||(Ge={}));function Be(f){switch(f){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function he(f){var J=f.resumeLexicalEnvironment,Oe=f.endLexicalEnvironment,N=f.hoistFunctionDeclaration,Te=f.hoistVariableDeclaration,ie=f.getCompilerOptions(),ce=e.getEmitScriptTarget(ie),x=f.getEmitResolver(),C=f.onSubstituteNode;f.onSubstituteNode=Ie;var P,h,X,$,Q,z,se,G,H,q,be=1,R,K,m,_,I=0,D=0,y,E,k,T,ne,O,Y,pe;return e.chainBundle(S);function S(Xe){if(Xe.isDeclarationFile||(Xe.transformFlags&256)===0)return Xe;var qn=e.visitEachChild(Xe,v,f);return e.addEmitHelpers(qn,f.readEmitHelpers()),qn}function v(Xe){var qn=Xe.transformFlags;return $?U(Xe):X?ue(Xe):e.isFunctionLikeDeclaration(Xe)&&Xe.asteriskToken?Z(Xe):qn&256?e.visitEachChild(Xe,v,f):Xe}function U(Xe){switch(Xe.kind){case 227:return Tn(Xe);case 228:return jn(Xe);case 236:return ut(Xe);case 237:return ot(Xe);default:return ue(Xe)}}function ue(Xe){switch(Xe.kind){case 243:return Re(Xe);case 200:return we(Xe);case 162:case 163:return He(Xe);case 224:return je(Xe);case 229:return pn(Xe);case 230:return oe(Xe);case 233:return dn(Xe);case 232:return yn(Xe);case 234:return Rn(Xe);default:return Xe.transformFlags&131072?De(Xe):Xe.transformFlags&(256|262144)?e.visitEachChild(Xe,v,f):Xe}}function De(Xe){switch(Xe.kind){case 208:return w(Xe);case 209:return ae(Xe);case 211:return fe(Xe);case 191:return Le(Xe);case 192:return $e(Xe);case 194:return Fe(Xe);case 195:return cn(Xe);case 196:return Qe(Xe);default:return e.visitEachChild(Xe,v,f)}}function Z(Xe){switch(Xe.kind){case 243:return Re(Xe);case 200:return we(Xe);default:return e.Debug.failBadSyntaxKind(Xe)}}function Re(Xe){if(Xe.asteriskToken)Xe=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,Xe.modifiers,void 0,Xe.name,void 0,e.visitParameterList(Xe.parameters,v,f),void 0,ve(Xe.body)),Xe),Xe);else{var qn=X,ge=$;X=!1,$=!1,Xe=e.visitEachChild(Xe,v,f),X=qn,$=ge}if(X){N(Xe);return}else return Xe}function we(Xe){if(Xe.asteriskToken)Xe=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,Xe.name,void 0,e.visitParameterList(Xe.parameters,v,f),void 0,ve(Xe.body)),Xe),Xe);else{var qn=X,ge=$;X=!1,$=!1,Xe=e.visitEachChild(Xe,v,f),X=qn,$=ge}return Xe}function He(Xe){var qn=X,ge=$;return X=!1,$=!1,Xe=e.visitEachChild(Xe,v,f),X=qn,$=ge,Xe}function ve(Xe){var qn=[],ge=X,hn=$,Hn=Q,de=z,rn=se,kn=G,Qn=H,lt=q,Ft=be,on=R,kr=K,fa=m,Wa=_;X=!0,$=!1,Q=void 0,z=void 0,se=void 0,G=void 0,H=void 0,q=void 0,be=1,R=void 0,K=void 0,m=void 0,_=e.createTempVariable(void 0),J();var to=e.addPrologue(qn,Xe.statements,!1,v);ln(Xe.statements,to);var ha=_a();return e.insertStatementsAfterStandardPrologue(qn,Oe()),qn.push(e.createReturn(ha)),X=ge,$=hn,Q=Hn,z=de,se=rn,G=kn,H=Qn,q=lt,be=Ft,R=on,K=kr,m=fa,_=Wa,e.setTextRange(e.createBlock(qn,Xe.multiLine),Xe)}function je(Xe){if(Xe.transformFlags&131072){te(Xe.declarationList);return}else{if(e.getEmitFlags(Xe)&1048576)return Xe;for(var qn=0,ge=Xe.declarationList.declarations;qn<ge.length;qn++){var hn=ge[qn];Te(hn.name)}var Hn=e.getInitializedVariables(Xe.declarationList);return Hn.length===0?void 0:e.setSourceMapRange(e.createExpressionStatement(e.inlineExpressions(e.map(Hn,Se))),Xe)}}function w(Xe){var qn=e.getExpressionAssociativity(Xe);switch(qn){case 0:return Ze(Xe);case 1:return a(Xe);default:return e.Debug.assertNever(qn)}}function j(Xe){return Xe>=63&&Xe<=74}function Pe(Xe){switch(Xe){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 74:return 52}}function a(Xe){var qn=Xe.left,ge=Xe.right;if(st(ge)){var hn=void 0;switch(qn.kind){case 193:hn=e.updatePropertyAccess(qn,yt(e.visitNode(qn.expression,v,e.isLeftHandSideExpression)),qn.name);break;case 194:hn=e.updateElementAccess(qn,yt(e.visitNode(qn.expression,v,e.isLeftHandSideExpression)),yt(e.visitNode(qn.argumentExpression,v,e.isExpression)));break;default:hn=e.visitNode(qn,v,e.isExpression);break}var Hn=Xe.operatorToken.kind;return j(Hn)?e.setTextRange(e.createAssignment(hn,e.setTextRange(e.createBinary(yt(hn),Pe(Hn),e.visitNode(ge,v,e.isExpression)),Xe)),Xe):e.updateBinary(Xe,hn,e.visitNode(ge,v,e.isExpression))}return e.visitEachChild(Xe,v,f)}function Ze(Xe){if(st(Xe.right)){if(e.isLogicalOperator(Xe.operatorToken.kind))return In(Xe);if(Xe.operatorToken.kind===27)return et(Xe);var qn=e.getMutableClone(Xe);return qn.left=yt(e.visitNode(Xe.left,v,e.isExpression)),qn.right=e.visitNode(Xe.right,v,e.isExpression),qn}return e.visitEachChild(Xe,v,f)}function In(Xe){var qn=Ht(),ge=Dt();return Gi(ge,e.visitNode(Xe.left,v,e.isExpression),Xe.left),Xe.operatorToken.kind===55?Ao(qn,ge,Xe.left):Ro(qn,ge,Xe.left),Gi(ge,e.visitNode(Xe.right,v,e.isExpression),Xe.right),$t(qn),ge}function et(Xe){var qn=[];return ge(Xe.left),ge(Xe.right),e.inlineExpressions(qn);function ge(hn){e.isBinaryExpression(hn)&&hn.operatorToken.kind===27?(ge(hn.left),ge(hn.right)):(st(hn)&&qn.length>0&&(Jr(1,[e.createExpressionStatement(e.inlineExpressions(qn))]),qn=[]),qn.push(e.visitNode(hn,v,e.isExpression)))}}function ae(Xe){if(st(Xe.whenTrue)||st(Xe.whenFalse)){var qn=Ht(),ge=Ht(),hn=Dt();return Ao(qn,e.visitNode(Xe.condition,v,e.isExpression),Xe.condition),Gi(hn,e.visitNode(Xe.whenTrue,v,e.isExpression),Xe.whenTrue),ji(ge),$t(qn),Gi(hn,e.visitNode(Xe.whenFalse,v,e.isExpression),Xe.whenFalse),$t(ge),hn}return e.visitEachChild(Xe,v,f)}function fe(Xe){var qn=Ht(),ge=e.visitNode(Xe.expression,v,e.isExpression);if(Xe.asteriskToken){var hn=(e.getEmitFlags(Xe.expression)&8388608)===0?e.createValuesHelper(f,ge,Xe):ge;_o(hn,Xe)}else Ri(ge,Xe);return $t(qn),Mo(Xe)}function Le(Xe){return Je(Xe.elements,void 0,void 0,Xe.multiLine)}function Je(Xe,qn,ge,hn){var Hn=Kn(Xe),de;if(Hn>0){de=Dt();var rn=e.visitNodes(Xe,v,e.isExpression,0,Hn);Gi(de,e.createArrayLiteral(qn?Tr([qn],rn):rn)),qn=void 0}var kn=e.reduceLeft(Xe,Qn,[],Hn);return de?e.createArrayConcat(de,[e.createArrayLiteral(kn,hn)]):e.setTextRange(e.createArrayLiteral(qn?Tr([qn],kn):kn,hn),ge);function Qn(lt,Ft){if(st(Ft)&<.length>0){var on=de!==void 0;de||(de=Dt()),Gi(de,on?e.createArrayConcat(de,[e.createArrayLiteral(lt,hn)]):e.createArrayLiteral(qn?Tr([qn],lt):lt,hn)),qn=void 0,lt=[]}return lt.push(e.visitNode(Ft,v,e.isExpression)),lt}}function $e(Xe){var qn=Xe.properties,ge=Xe.multiLine,hn=Kn(qn),Hn=Dt();Gi(Hn,e.createObjectLiteral(e.visitNodes(qn,v,e.isObjectLiteralElementLike,0,hn),ge));var de=e.reduceLeft(qn,rn,[],hn);return de.push(ge?e.startOnNewLine(e.getMutableClone(Hn)):Hn),e.inlineExpressions(de);function rn(kn,Qn){st(Qn)&&kn.length>0&&(ci(e.createExpressionStatement(e.inlineExpressions(kn))),kn=[]);var lt=e.createExpressionForObjectLiteralElementLike(Xe,Qn,Hn),Ft=e.visitNode(lt,v,e.isExpression);return Ft&&(ge&&e.startOnNewLine(Ft),kn.push(Ft)),kn}}function Fe(Xe){if(st(Xe.argumentExpression)){var qn=e.getMutableClone(Xe);return qn.expression=yt(e.visitNode(Xe.expression,v,e.isLeftHandSideExpression)),qn.argumentExpression=e.visitNode(Xe.argumentExpression,v,e.isExpression),qn}return e.visitEachChild(Xe,v,f)}function cn(Xe){if(!e.isImportCall(Xe)&&e.forEach(Xe.arguments,st)){var qn=e.createCallBinding(Xe.expression,Te,ce,!0),ge=qn.target,hn=qn.thisArg;return e.setOriginalNode(e.createFunctionApply(yt(e.visitNode(ge,v,e.isLeftHandSideExpression)),hn,Je(Xe.arguments),Xe),Xe)}return e.visitEachChild(Xe,v,f)}function Qe(Xe){if(e.forEach(Xe.arguments,st)){var qn=e.createCallBinding(e.createPropertyAccess(Xe.expression,"bind"),Te),ge=qn.target,hn=qn.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(yt(e.visitNode(ge,v,e.isExpression)),hn,Je(Xe.arguments,e.createVoidZero())),void 0,[]),Xe),Xe)}return e.visitEachChild(Xe,v,f)}function ln(Xe,qn){qn===void 0&&(qn=0);for(var ge=Xe.length,hn=qn;hn<ge;hn++)ke(Xe[hn])}function ye(Xe){e.isBlock(Xe)?ln(Xe.statements):ke(Xe)}function ke(Xe){var qn=$;$||($=st(Xe)),F(Xe),$=qn}function F(Xe){switch(Xe.kind){case 222:return c(Xe);case 225:return L(Xe);case 226:return Ne(Xe);case 227:return ze(Xe);case 228:return wn(Xe);case 229:return nn(Xe);case 230:return le(Xe);case 232:return Cn(Xe);case 233:return _e(Xe);case 234:return un(Xe);case 235:return at(Xe);case 236:return Bn(Xe);case 237:return ct(Xe);case 238:return dt(Xe);case 239:return Ct(Xe);default:return ci(e.visitNode(Xe,v,e.isStatement))}}function c(Xe){st(Xe)?ln(Xe.statements):ci(e.visitNode(Xe,v,e.isStatement))}function L(Xe){ci(e.visitNode(Xe,v,e.isStatement))}function te(Xe){for(var qn=0,ge=Xe.declarations;qn<ge.length;qn++){var hn=ge[qn],Hn=e.getSynthesizedClone(hn.name);e.setCommentRange(Hn,hn.name),Te(Hn)}for(var de=e.getInitializedVariables(Xe),rn=de.length,kn=0,Qn=[];kn<rn;){for(var lt=kn;lt<rn;lt++){var hn=de[lt];if(st(hn.initializer)&&Qn.length>0)break;Qn.push(Se(hn))}Qn.length&&(ci(e.createExpressionStatement(e.inlineExpressions(Qn))),kn+=Qn.length,Qn=[])}return}function Se(Xe){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(Xe.name),Xe.name),e.visitNode(Xe.initializer,v,e.isExpression)),Xe)}function Ne(Xe){if(st(Xe))if(st(Xe.thenStatement)||st(Xe.elseStatement)){var qn=Ht(),ge=Xe.elseStatement?Ht():void 0;Ao(Xe.elseStatement?ge:qn,e.visitNode(Xe.expression,v,e.isExpression),Xe.expression),ye(Xe.thenStatement),Xe.elseStatement&&(ji(qn),$t(ge),ye(Xe.elseStatement)),$t(qn)}else ci(e.visitNode(Xe,v,e.isStatement));else ci(e.visitNode(Xe,v,e.isStatement))}function ze(Xe){if(st(Xe)){var qn=Ht(),ge=Ht();bt(qn),$t(ge),ye(Xe.statement),$t(qn),Ro(ge,e.visitNode(Xe.expression,v,e.isExpression)),Ke()}else ci(e.visitNode(Xe,v,e.isStatement))}function Tn(Xe){return $?(ht(),Xe=e.visitEachChild(Xe,v,f),Ke(),Xe):e.visitEachChild(Xe,v,f)}function wn(Xe){if(st(Xe)){var qn=Ht(),ge=bt(qn);$t(qn),Ao(ge,e.visitNode(Xe.expression,v,e.isExpression)),ye(Xe.statement),ji(qn),Ke()}else ci(e.visitNode(Xe,v,e.isStatement))}function jn(Xe){return $?(ht(),Xe=e.visitEachChild(Xe,v,f),Ke(),Xe):e.visitEachChild(Xe,v,f)}function nn(Xe){if(st(Xe)){var qn=Ht(),ge=Ht(),hn=bt(ge);if(Xe.initializer){var Hn=Xe.initializer;e.isVariableDeclarationList(Hn)?te(Hn):ci(e.setTextRange(e.createExpressionStatement(e.visitNode(Hn,v,e.isExpression)),Hn))}$t(qn),Xe.condition&&Ao(hn,e.visitNode(Xe.condition,v,e.isExpression)),ye(Xe.statement),$t(ge),Xe.incrementor&&ci(e.setTextRange(e.createExpressionStatement(e.visitNode(Xe.incrementor,v,e.isExpression)),Xe.incrementor)),ji(qn),Ke()}else ci(e.visitNode(Xe,v,e.isStatement))}function pn(Xe){$&&ht();var qn=Xe.initializer;if(qn&&e.isVariableDeclarationList(qn)){for(var ge=0,hn=qn.declarations;ge<hn.length;ge++){var Hn=hn[ge];Te(Hn.name)}var de=e.getInitializedVariables(qn);Xe=e.updateFor(Xe,de.length>0?e.inlineExpressions(e.map(de,Se)):void 0,e.visitNode(Xe.condition,v,e.isExpression),e.visitNode(Xe.incrementor,v,e.isExpression),e.visitNode(Xe.statement,v,e.isStatement,e.liftToBlock))}else Xe=e.visitEachChild(Xe,v,f);return $&&Ke(),Xe}function le(Xe){if(st(Xe)){var qn=Dt(),ge=Dt(),hn=e.createLoopVariable(),Hn=Xe.initializer;Te(hn),Gi(qn,e.createArrayLiteral()),ci(e.createForIn(ge,e.visitNode(Xe.expression,v,e.isExpression),e.createExpressionStatement(e.createCall(e.createPropertyAccess(qn,"push"),void 0,[ge])))),Gi(hn,e.createLiteral(0));var de=Ht(),rn=Ht(),kn=bt(rn);$t(de),Ao(kn,e.createLessThan(hn,e.createPropertyAccess(qn,"length")));var Qn=void 0;if(e.isVariableDeclarationList(Hn)){for(var lt=0,Ft=Hn.declarations;lt<Ft.length;lt++){var on=Ft[lt];Te(on.name)}Qn=e.getSynthesizedClone(Hn.declarations[0].name)}else Qn=e.visitNode(Hn,v,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(Qn));Gi(Qn,e.createElementAccess(qn,hn)),ye(Xe.statement),$t(rn),ci(e.createExpressionStatement(e.createPostfixIncrement(hn))),ji(de),Ke()}else ci(e.visitNode(Xe,v,e.isStatement))}function oe(Xe){$&&ht();var qn=Xe.initializer;if(e.isVariableDeclarationList(qn)){for(var ge=0,hn=qn.declarations;ge<hn.length;ge++){var Hn=hn[ge];Te(Hn.name)}Xe=e.updateForIn(Xe,qn.declarations[0].name,e.visitNode(Xe.expression,v,e.isExpression),e.visitNode(Xe.statement,v,e.isStatement,e.liftToBlock))}else Xe=e.visitEachChild(Xe,v,f);return $&&Ke(),Xe}function Cn(Xe){var qn=Ka(Xe.label?e.idText(Xe.label):void 0);qn>0?ji(qn,Xe):ci(Xe)}function yn(Xe){if($){var qn=Ka(Xe.label&&e.idText(Xe.label));if(qn>0)return Vo(qn,Xe)}return e.visitEachChild(Xe,v,f)}function _e(Xe){var qn=Ja(Xe.label?e.idText(Xe.label):void 0);qn>0?ji(qn,Xe):ci(Xe)}function dn(Xe){if($){var qn=Ja(Xe.label&&e.idText(Xe.label));if(qn>0)return Vo(qn,Xe)}return e.visitEachChild(Xe,v,f)}function un(Xe){xt(e.visitNode(Xe.expression,v,e.isExpression),Xe)}function Rn(Xe){return wo(e.visitNode(Xe.expression,v,e.isExpression),Xe)}function at(Xe){st(Xe)?(va(yt(e.visitNode(Xe.expression,v,e.isExpression))),ye(Xe.statement),Lt()):ci(e.visitNode(Xe,v,e.isStatement))}function Bn(Xe){if(st(Xe.caseBlock)){for(var qn=Xe.caseBlock,ge=qn.clauses.length,hn=$n(),Hn=yt(e.visitNode(Xe.expression,v,e.isExpression)),de=[],rn=-1,kn=0;kn<ge;kn++){var Qn=qn.clauses[kn];de.push(Ht()),Qn.kind===276&&rn===-1&&(rn=kn)}for(var lt=0,Ft=[];lt<ge;){for(var on=0,kn=lt;kn<ge;kn++){var Qn=qn.clauses[kn];if(Qn.kind===275){if(st(Qn.expression)&&Ft.length>0)break;Ft.push(e.createCaseClause(e.visitNode(Qn.expression,v,e.isExpression),[Vo(de[kn],Qn.expression)]))}else on++}Ft.length&&(ci(e.createSwitch(Hn,e.createCaseBlock(Ft))),lt+=Ft.length,Ft=[]),on>0&&(lt+=on,on=0)}rn>=0?ji(de[rn]):ji(hn);for(var kn=0;kn<ge;kn++)$t(de[kn]),ln(qn.clauses[kn].statements);rr()}else ci(e.visitNode(Xe,v,e.isStatement))}function ut(Xe){return $&&Pn(),Xe=e.visitEachChild(Xe,v,f),$&&rr(),Xe}function ct(Xe){st(Xe)?(Fa(e.idText(Xe.label)),ye(Xe.statement),ri()):ci(e.visitNode(Xe,v,e.isStatement))}function ot(Xe){return $&&xa(e.idText(Xe.label)),Xe=e.visitEachChild(Xe,v,f),$&&ri(),Xe}function dt(Xe){Kt(e.visitNode(Xe.expression,v,e.isExpression),Xe)}function Ct(Xe){st(Xe)?(Wn(),ye(Xe.tryBlock),Xe.catchClause&&(Vt(Xe.catchClause.variableDeclaration),ye(Xe.catchClause.block)),Xe.finallyBlock&&(pt(),ye(Xe.finallyBlock)),Tt()):ci(e.visitEachChild(Xe,v,f))}function st(Xe){return!!Xe&&(Xe.transformFlags&131072)!==0}function Kn(Xe){for(var qn=Xe.length,ge=0;ge<qn;ge++)if(st(Xe[ge]))return ge;return-1}function Ie(Xe,qn){return qn=C(Xe,qn),Xe===1?Ce(qn):qn}function Ce(Xe){return e.isIdentifier(Xe)?_n(Xe):Xe}function _n(Xe){if(!e.isGeneratedIdentifier(Xe)&&P&&P.has(e.idText(Xe))){var qn=e.getOriginalNode(Xe);if(e.isIdentifier(qn)&&qn.parent){var ge=x.getReferencedValueDeclaration(qn);if(ge){var hn=h[e.getOriginalNodeId(ge)];if(hn){var Hn=e.getMutableClone(hn);return e.setSourceMapRange(Hn,Xe),e.setCommentRange(Hn,Xe),Hn}}}}return Xe}function yt(Xe){if(e.isGeneratedIdentifier(Xe)||e.getEmitFlags(Xe)&4096)return Xe;var qn=e.createTempVariable(Te);return Gi(qn,Xe,Xe),qn}function Dt(Xe){var qn=Xe?e.createUniqueName(Xe):e.createTempVariable(void 0);return Te(qn),qn}function Ht(){H||(H=[]);var Xe=be;return be++,H[Xe]=-1,Xe}function $t(Xe){e.Debug.assert(H!==void 0,"No labels were defined."),H[Xe]=R?R.length:0}function wr(Xe){Q||(Q=[],se=[],z=[],G=[]);var qn=se.length;return se[qn]=0,z[qn]=R?R.length:0,Q[qn]=Xe,G.push(Xe),qn}function Yr(){var Xe=Hr();if(Xe===void 0)return e.Debug.fail("beginBlock was never called.");var qn=se.length;return se[qn]=1,z[qn]=R?R.length:0,Q[qn]=Xe,G.pop(),Xe}function Hr(){return e.lastOrUndefined(G)}function mt(){var Xe=Hr();return Xe&&Xe.kind}function va(Xe){var qn=Ht(),ge=Ht();$t(qn),wr({kind:1,expression:Xe,startLabel:qn,endLabel:ge})}function Lt(){e.Debug.assert(mt()===1);var Xe=Yr();$t(Xe.endLabel)}function Wn(){var Xe=Ht(),qn=Ht();return $t(Xe),wr({kind:0,state:0,startLabel:Xe,endLabel:qn}),uo(),qn}function Vt(Xe){e.Debug.assert(mt()===0);var qn;if(e.isGeneratedIdentifier(Xe.name))qn=Xe.name,Te(Xe.name);else{var ge=e.idText(Xe.name);qn=Dt(ge),P||(P=e.createMap(),h=[],f.enableSubstitution(75)),P.set(ge,!0),h[e.getOriginalNodeId(Xe)]=qn}var hn=Hr();e.Debug.assert(hn.state<1);var Hn=hn.endLabel;ji(Hn);var de=Ht();$t(de),hn.state=1,hn.catchVariable=qn,hn.catchLabel=de,Gi(qn,e.createCall(e.createPropertyAccess(_,"sent"),void 0,[])),uo()}function pt(){e.Debug.assert(mt()===0);var Xe=Hr();e.Debug.assert(Xe.state<2);var qn=Xe.endLabel;ji(qn);var ge=Ht();$t(ge),Xe.state=2,Xe.finallyLabel=ge}function Tt(){e.Debug.assert(mt()===0);var Xe=Yr(),qn=Xe.state;qn<2?ji(Xe.endLabel):yr(),$t(Xe.endLabel),uo(),Xe.state=3}function ht(){wr({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function bt(Xe){var qn=Ht();return wr({kind:3,isScript:!1,breakLabel:qn,continueLabel:Xe}),qn}function Ke(){e.Debug.assert(mt()===3);var Xe=Yr(),qn=Xe.breakLabel;Xe.isScript||$t(qn)}function Pn(){wr({kind:2,isScript:!0,breakLabel:-1})}function $n(){var Xe=Ht();return wr({kind:2,isScript:!1,breakLabel:Xe}),Xe}function rr(){e.Debug.assert(mt()===2);var Xe=Yr(),qn=Xe.breakLabel;Xe.isScript||$t(qn)}function xa(Xe){wr({kind:4,isScript:!0,labelText:Xe,breakLabel:-1})}function Fa(Xe){var qn=Ht();wr({kind:4,isScript:!1,labelText:Xe,breakLabel:qn})}function ri(){e.Debug.assert(mt()===4);var Xe=Yr();Xe.isScript||$t(Xe.breakLabel)}function Si(Xe){return Xe.kind===2||Xe.kind===3}function xi(Xe){return Xe.kind===4}function vi(Xe){return Xe.kind===3}function Oi(Xe,qn){for(var ge=qn;ge>=0;ge--){var hn=G[ge];if(xi(hn)){if(hn.labelText===Xe)return!0}else break}return!1}function Ja(Xe){if(G)if(Xe)for(var qn=G.length-1;qn>=0;qn--){var ge=G[qn];if(xi(ge)&&ge.labelText===Xe)return ge.breakLabel;if(Si(ge)&&Oi(Xe,qn-1))return ge.breakLabel}else for(var qn=G.length-1;qn>=0;qn--){var ge=G[qn];if(Si(ge))return ge.breakLabel}return 0}function Ka(Xe){if(G)if(Xe)for(var qn=G.length-1;qn>=0;qn--){var ge=G[qn];if(vi(ge)&&Oi(Xe,qn-1))return ge.continueLabel}else for(var qn=G.length-1;qn>=0;qn--){var ge=G[qn];if(vi(ge))return ge.continueLabel}return 0}function ua(Xe){if(Xe!==void 0&&Xe>0){q===void 0&&(q=[]);var qn=e.createLiteral(-1);return q[Xe]===void 0?q[Xe]=[qn]:q[Xe].push(qn),qn}return e.createOmittedExpression()}function bi(Xe){var qn=e.createLiteral(Xe);return e.addSyntheticTrailingComment(qn,3,Be(Xe)),qn}function Vo(Xe,qn){return e.Debug.assertLessThan(0,Xe,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([bi(3),ua(Xe)])),qn)}function wo(Xe,qn){return e.setTextRange(e.createReturn(e.createArrayLiteral(Xe?[bi(2),Xe]:[bi(2)])),qn)}function Mo(Xe){return e.setTextRange(e.createCall(e.createPropertyAccess(_,"sent"),void 0,[]),Xe)}function uo(){Jr(0)}function ci(Xe){Xe?Jr(1,[Xe]):uo()}function Gi(Xe,qn,ge){Jr(2,[Xe,qn],ge)}function ji(Xe,qn){Jr(3,[Xe],qn)}function Ro(Xe,qn,ge){Jr(4,[Xe,qn],ge)}function Ao(Xe,qn,ge){Jr(5,[Xe,qn],ge)}function _o(Xe,qn){Jr(7,[Xe],qn)}function Ri(Xe,qn){Jr(6,[Xe],qn)}function xt(Xe,qn){Jr(8,[Xe],qn)}function Kt(Xe,qn){Jr(9,[Xe],qn)}function yr(){Jr(10)}function Jr(Xe,qn,ge){R===void 0&&(R=[],K=[],m=[]),H===void 0&&$t(Ht());var hn=R.length;R[hn]=Xe,K[hn]=qn,m[hn]=ge}function _a(){I=0,D=0,y=void 0,E=!1,k=!1,T=void 0,ne=void 0,O=void 0,Y=void 0,pe=void 0;var Xe=La();return ee(f,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,_)],void 0,e.createBlock(Xe,Xe.length>0)),524288))}function La(){if(R){for(var Xe=0;Xe<R.length;Xe++)Ln(Xe);pi(R.length)}else pi(0);if(T){var qn=e.createPropertyAccess(_,"label"),ge=e.createSwitch(qn,e.createCaseBlock(T));return[e.startOnNewLine(ge)]}return ne||[]}function qr(){if(!ne)return;mi(!E),E=!1,k=!1,D++}function pi(Xe){Li(Xe)&&(da(Xe),pe=void 0,dr(void 0,void 0)),ne&&T&&mi(!1),en()}function Li(Xe){if(!k)return!0;if(!H||!q)return!1;for(var qn=0;qn<H.length;qn++)if(H[qn]===Xe&&q[qn])return!0;return!1}function mi(Xe){if(T||(T=[]),ne){if(pe)for(var qn=pe.length-1;qn>=0;qn--){var ge=pe[qn];ne=[e.createWith(ge.expression,e.createBlock(ne))]}if(Y){var hn=Y.startLabel,Hn=Y.catchLabel,de=Y.finallyLabel,rn=Y.endLabel;ne.unshift(e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(_,"trys"),"push"),void 0,[e.createArrayLiteral([ua(hn),ua(Hn),ua(de),ua(rn)])]))),Y=void 0}Xe&&ne.push(e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(_,"label"),e.createLiteral(D+1))))}T.push(e.createCaseClause(e.createLiteral(D),ne||[])),ne=void 0}function da(Xe){if(!H)return;for(var qn=0;qn<H.length;qn++)H[qn]===Xe&&(qr(),y===void 0&&(y=[]),y[D]===void 0?y[D]=[qn]:y[D].push(qn))}function en(){if(q!==void 0&&y!==void 0)for(var Xe=0;Xe<y.length;Xe++){var qn=y[Xe];if(qn!==void 0)for(var ge=0,hn=qn;ge<hn.length;ge++){var Hn=hn[ge],de=q[Hn];if(de!==void 0)for(var rn=0,kn=de;rn<kn.length;rn++){var Qn=kn[rn];Qn.text=String(Xe)}}}}function vn(Xe){if(Q)for(;I<se.length&&z[I]<=Xe;I++){var qn=Q[I],ge=se[I];switch(qn.kind){case 0:ge===0?(O||(O=[]),ne||(ne=[]),O.push(Y),Y=qn):ge===1&&(Y=O.pop());break;case 1:ge===0?(pe||(pe=[]),pe.push(qn)):ge===1&&pe.pop();break}}}function Ln(Xe){if(da(Xe),vn(Xe),E)return;E=!1,k=!1;var qn=R[Xe];if(qn===0)return;if(qn===10)return hi();var ge=K[Xe];if(qn===1)return Vn(ge[0]);var hn=m[Xe];switch(qn){case 2:return Mt(ge[0],ge[1],hn);case 3:return Pr(ge[0],hn);case 4:return za(ge[0],ge[1],hn);case 5:return Ia(ge[0],ge[1],hn);case 6:return Ii(ge[0],hn);case 7:return ai(ge[0],hn);case 8:return dr(ge[0],hn);case 9:return tr(ge[0],hn)}}function Vn(Xe){Xe&&(ne?ne.push(Xe):ne=[Xe])}function Mt(Xe,qn,ge){Vn(e.setTextRange(e.createExpressionStatement(e.createAssignment(Xe,qn)),ge))}function tr(Xe,qn){E=!0,k=!0,Vn(e.setTextRange(e.createThrow(Xe),qn))}function dr(Xe,qn){E=!0,k=!0,Vn(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(Xe?[bi(2),Xe]:[bi(2)])),qn),384))}function Pr(Xe,qn){E=!0,Vn(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([bi(3),ua(Xe)])),qn),384))}function za(Xe,qn,ge){Vn(e.setEmitFlags(e.createIf(qn,e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([bi(3),ua(Xe)])),ge),384)),1))}function Ia(Xe,qn,ge){Vn(e.setEmitFlags(e.createIf(e.createLogicalNot(qn),e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([bi(3),ua(Xe)])),ge),384)),1))}function Ii(Xe,qn){E=!0,Vn(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(Xe?[bi(4),Xe]:[bi(4)])),qn),384))}function ai(Xe,qn){E=!0,Vn(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([bi(5),Xe])),qn),384))}function hi(){E=!0,Vn(e.createReturn(e.createArrayLiteral([bi(7)])))}}e.transformGenerators=he;function ee(f,J){return f.requestEmitHelper(e.generatorHelper),e.createCall(e.getUnscopedHelperName("__generator"),void 0,[e.createThis(),J])}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 };
|
|
|
}
|
|
|
};`}})(sn||(sn={}));var sn;(function(e){function o(Ge){function Be(c){switch(c){case e.ModuleKind.AMD:return H;case e.ModuleKind.UMD:return q;default:return G}}var he=Ge.startLexicalEnvironment,ee=Ge.endLexicalEnvironment,f=Ge.hoistVariableDeclaration,J=Ge.getCompilerOptions(),Oe=Ge.getEmitResolver(),N=Ge.getEmitHost(),Te=e.getEmitScriptTarget(J),ie=e.getEmitModuleKind(J),ce=Ge.onSubstituteNode,x=Ge.onEmitNode;Ge.onSubstituteNode=Fe,Ge.onEmitNode=$e,Ge.enableSubstitution(75),Ge.enableSubstitution(208),Ge.enableSubstitution(206),Ge.enableSubstitution(207),Ge.enableSubstitution(280),Ge.enableEmitNotification(288);var C=[],P=[],h,X,$,Q;return e.chainBundle(z);function z(c){if(c.isDeclarationFile||!(e.isEffectiveExternalModule(c,J)||c.transformFlags&524288||e.isJsonSourceFile(c)&&e.hasJsonModuleEmitEnabled(J)&&(J.out||J.outFile)))return c;h=c,X=e.collectExternalModuleInfo(c,Oe,J),C[e.getOriginalNodeId(c)]=X;var L=Be(ie),te=L(c);return h=void 0,X=void 0,Q=!1,e.aggregateTransformFlags(te)}function se(){return!!(!X.exportEquals&&e.isExternalModule(h))}function G(c){he();var L=[],te=e.getStrictOptionValue(J,"alwaysStrict")||!J.noImplicitUseStrict&&e.isExternalModule(h),Se=e.addPrologue(L,c.statements,te,_);se()&&e.append(L,ae()),e.append(L,e.visitNode(X.externalHelpersImportDeclaration,_,e.isStatement)),e.addRange(L,e.visitNodes(c.statements,_,e.isStatement,Se)),m(L,!1),e.insertStatementsAfterStandardPrologue(L,ee());var Ne=e.updateSourceFileNode(c,e.setTextRange(e.createNodeArray(L),c.statements));return X.hasExportStarsToExportValues&&!J.importHelpers&&e.addEmitHelper(Ne,M),e.addEmitHelpers(Ne,Ge.readEmitHelpers()),Ne}function H(c){var L=e.createIdentifier("define"),te=e.tryGetModuleNameFromFile(c,N,J),Se=e.isJsonSourceFile(c)&&c,Ne=be(c,!0),ze=Ne.aliasedModuleNames,Tn=Ne.unaliasedModuleNames,wn=Ne.importAliasNames,jn=e.updateSourceFileNode(c,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(L,void 0,Tr(te?[te]:[],[e.createArrayLiteral(Se?e.emptyArray:Tr([e.createLiteral("require"),e.createLiteral("exports")],ze,Tn)),Se?Se.statements.length?Se.statements[0].expression:e.createObjectLiteral():e.createFunctionExpression(void 0,void 0,void 0,void 0,Tr([e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")],wn),void 0,K(c))])))]),c.statements));return e.addEmitHelpers(jn,Ge.readEmitHelpers()),jn}function q(c){var L=be(c,!1),te=L.aliasedModuleNames,Se=L.unaliasedModuleNames,Ne=L.importAliasNames,ze=e.tryGetModuleNameFromFile(c,N,J),Tn=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createExpressionStatement(e.createCall(e.createIdentifier("define"),void 0,Tr(ze?[ze]:[],[e.createArrayLiteral(Tr([e.createLiteral("require"),e.createLiteral("exports")],te,Se)),e.createIdentifier("factory")])))])))],!0),void 0)),wn=e.updateSourceFileNode(c,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(Tn,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,Tr([e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")],Ne),void 0,K(c))]))]),c.statements));return e.addEmitHelpers(wn,Ge.readEmitHelpers()),wn}function be(c,L){for(var te=[],Se=[],Ne=[],ze=0,Tn=c.amdDependencies;ze<Tn.length;ze++){var wn=Tn[ze];wn.name?(te.push(e.createLiteral(wn.path)),Ne.push(e.createParameter(void 0,void 0,void 0,wn.name))):Se.push(e.createLiteral(wn.path))}for(var jn=0,nn=X.externalImports;jn<nn.length;jn++){var pn=nn[jn],le=e.getExternalModuleNameLiteral(pn,h,N,Oe,J),oe=e.getLocalNameForExternalImport(pn,h);le&&(L&&oe?(e.setEmitFlags(oe,4),te.push(le),Ne.push(e.createParameter(void 0,void 0,void 0,oe))):Se.push(le))}return{aliasedModuleNames:te,unaliasedModuleNames:Se,importAliasNames:Ne}}function R(c){if(e.isImportEqualsDeclaration(c)||e.isExportDeclaration(c)||!e.getExternalModuleNameLiteral(c,h,N,Oe,J))return;var L=e.getLocalNameForExternalImport(c,h),te=O(c,L);return te===L?void 0:e.createExpressionStatement(e.createAssignment(L,te))}function K(c){he();var L=[],te=e.addPrologue(L,c.statements,!J.noImplicitUseStrict,_);se()&&e.append(L,ae()),e.append(L,e.visitNode(X.externalHelpersImportDeclaration,_,e.isStatement)),ie===e.ModuleKind.AMD&&e.addRange(L,e.mapDefined(X.externalImports,R)),e.addRange(L,e.visitNodes(c.statements,_,e.isStatement,te)),m(L,!0),e.insertStatementsAfterStandardPrologue(L,ee());var Se=e.createBlock(L,!0);return X.hasExportStarsToExportValues&&!J.importHelpers&&e.addEmitHelper(Se,M),Q&&e.addEmitHelper(Se,Ee),Se}function m(c,L){if(X.exportEquals){var te=e.visitNode(X.exportEquals.expression,I);if(te)if(L){var Se=e.createReturn(te);e.setTextRange(Se,X.exportEquals),e.setEmitFlags(Se,384|1536),c.push(Se)}else{var Se=e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),te));e.setTextRange(Se,X.exportEquals),e.setEmitFlags(Se,1536),c.push(Se)}}}function _(c){switch(c.kind){case 253:return Y(c);case 252:return S(c);case 259:return v(c);case 258:return U(c);case 224:return Z(c);case 243:return ue(c);case 244:return De(c);case 321:return He(c);case 322:return je(c);default:return e.visitEachChild(c,I,Ge)}}function I(c){return!(c.transformFlags&524288)&&!(c.transformFlags&512)?c:e.isImportCall(c)?E(c):e.isDestructuringAssignment(c)?y(c):e.visitEachChild(c,I,Ge)}function D(c){if(e.isObjectLiteralExpression(c))for(var L=0,te=c.properties;L<te.length;L++){var Se=te[L];switch(Se.kind){case 279:if(D(Se.initializer))return!0;break;case 280:if(D(Se.name))return!0;break;case 281:if(D(Se.expression))return!0;break;case 160:case 162:case 163:return!1;default:e.Debug.assertNever(Se,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(c))for(var Ne=0,ze=c.elements;Ne<ze.length;Ne++){var Se=ze[Ne];if(e.isSpreadElement(Se)){if(D(Se.expression))return!0}else if(D(Se))return!0}else if(e.isIdentifier(c))return e.length(F(c))>(e.isExportName(c)?1:0);return!1}function y(c){return D(c.left)?e.flattenDestructuringAssignment(c,I,Ge,0,!1,Re):e.visitEachChild(c,I,Ge)}function E(c){var L=e.visitNode(e.firstOrUndefined(c.arguments),I),te=!!(c.transformFlags&2048);switch(J.module){case e.ModuleKind.AMD:return T(L,te);case e.ModuleKind.UMD:return k(L,te);case e.ModuleKind.CommonJS:default:return ne(L,te)}}function k(c,L){if(Q=!0,e.isSimpleCopiableExpression(c)){var te=e.isGeneratedIdentifier(c)?c:e.isStringLiteral(c)?e.createLiteral(c):e.setEmitFlags(e.setTextRange(e.getSynthesizedClone(c),c),1536);return e.createConditional(e.createIdentifier("__syncRequire"),ne(c,L),T(te,L))}else{var Se=e.createTempVariable(f);return e.createComma(e.createAssignment(Se,c),e.createConditional(e.createIdentifier("__syncRequire"),ne(Se,L),T(Se,L)))}}function T(c,L){var te=e.createUniqueName("resolve"),Se=e.createUniqueName("reject"),Ne=[e.createParameter(void 0,void 0,void 0,te),e.createParameter(void 0,void 0,void 0,Se)],ze=e.createBlock([e.createExpressionStatement(e.createCall(e.createIdentifier("require"),void 0,[e.createArrayLiteral([c||e.createOmittedExpression()]),te,Se]))]),Tn;Te>=2?Tn=e.createArrowFunction(void 0,void 0,Ne,void 0,void 0,ze):(Tn=e.createFunctionExpression(void 0,void 0,void 0,void 0,Ne,void 0,ze),L&&e.setEmitFlags(Tn,8));var wn=e.createNew(e.createIdentifier("Promise"),void 0,[Tn]);return J.esModuleInterop?(Ge.requestEmitHelper(e.importStarHelper),e.createCall(e.createPropertyAccess(wn,e.createIdentifier("then")),void 0,[e.getUnscopedHelperName("__importStar")])):wn}function ne(c,L){var te=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),Se=e.createCall(e.createIdentifier("require"),void 0,c?[c]:[]);J.esModuleInterop&&(Ge.requestEmitHelper(e.importStarHelper),Se=e.createCall(e.getUnscopedHelperName("__importStar"),void 0,[Se]));var Ne;return Te>=2?Ne=e.createArrowFunction(void 0,void 0,[],void 0,void 0,Se):(Ne=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(Se)])),L&&e.setEmitFlags(Ne,8)),e.createCall(e.createPropertyAccess(te,"then"),void 0,[Ne])}function O(c,L){return!J.esModuleInterop||e.getEmitFlags(c)&67108864?L:e.getImportNeedsImportStarHelper(c)?(Ge.requestEmitHelper(e.importStarHelper),e.createCall(e.getUnscopedHelperName("__importStar"),void 0,[L])):e.getImportNeedsImportDefaultHelper(c)?(Ge.requestEmitHelper(e.importDefaultHelper),e.createCall(e.getUnscopedHelperName("__importDefault"),void 0,[L])):L}function Y(c){var L,te=e.getNamespaceDeclarationNode(c);if(ie!==e.ModuleKind.AMD)if(c.importClause){var Se=[];te&&!e.isDefaultImport(c)?Se.push(e.createVariableDeclaration(e.getSynthesizedClone(te.name),void 0,O(c,pe(c)))):(Se.push(e.createVariableDeclaration(e.getGeneratedNameForNode(c),void 0,O(c,pe(c)))),te&&e.isDefaultImport(c)&&Se.push(e.createVariableDeclaration(e.getSynthesizedClone(te.name),void 0,e.getGeneratedNameForNode(c)))),L=e.append(L,e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(Se,Te>=2?2:0)),c),c))}else return e.setOriginalNode(e.setTextRange(e.createExpressionStatement(pe(c)),c),c);else te&&e.isDefaultImport(c)&&(L=e.append(L,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(te.name),void 0,e.getGeneratedNameForNode(c)),c),c)],Te>=2?2:0))));if(ve(c)){var Ne=e.getOriginalNodeId(c);P[Ne]=w(P[Ne],c)}else L=w(L,c);return e.singleOrMany(L)}function pe(c){var L=e.getExternalModuleNameLiteral(c,h,N,Oe,J),te=[];return L&&te.push(L),e.createCall(e.createIdentifier("require"),void 0,te)}function S(c){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(c),"import= for internal module references should be handled in an earlier transformer.");var L;if(ie!==e.ModuleKind.AMD?e.hasModifier(c,1)?L=e.append(L,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(Le(c.name,pe(c))),c),c)):L=e.append(L,e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(c.name),void 0,pe(c))],Te>=2?2:0)),c),c)):e.hasModifier(c,1)&&(L=e.append(L,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(Le(e.getExportName(c),e.getLocalName(c))),c),c))),ve(c)){var te=e.getOriginalNodeId(c);P[te]=j(P[te],c)}else L=j(L,c);return e.singleOrMany(L)}function v(c){if(!c.moduleSpecifier)return;var L=e.getGeneratedNameForNode(c);if(c.exportClause){var te=[];ie!==e.ModuleKind.AMD&&te.push(e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(L,void 0,pe(c))])),c),c));for(var Se=0,Ne=c.exportClause.elements;Se<Ne.length;Se++){var ze=Ne[Se],Tn=e.createPropertyAccess(L,ze.propertyName||ze.name);te.push(e.setOriginalNode(e.setTextRange(e.createExpressionStatement(Le(e.getExportName(ze),Tn)),ze),ze))}return e.singleOrMany(te)}else return e.setOriginalNode(e.setTextRange(e.createExpressionStatement(qe(Ge,ie!==e.ModuleKind.AMD?pe(c):L)),c),c)}function U(c){if(c.isExportEquals)return;var L,te=c.original;if(te&&ve(te)){var Se=e.getOriginalNodeId(c);P[Se]=et(P[Se],e.createIdentifier("default"),e.visitNode(c.expression,I),c,!0)}else L=et(L,e.createIdentifier("default"),e.visitNode(c.expression,I),c,!0);return e.singleOrMany(L)}function ue(c){var L;if(e.hasModifier(c,1)?L=e.append(L,e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,e.visitNodes(c.modifiers,Je,e.isModifier),c.asteriskToken,e.getDeclarationName(c,!0,!0),void 0,e.visitNodes(c.parameters,I),void 0,e.visitEachChild(c.body,I,Ge)),c),c)):L=e.append(L,e.visitEachChild(c,I,Ge)),ve(c)){var te=e.getOriginalNodeId(c);P[te]=Ze(P[te],c)}else L=Ze(L,c);return e.singleOrMany(L)}function De(c){var L;if(e.hasModifier(c,1)?L=e.append(L,e.setOriginalNode(e.setTextRange(e.createClassDeclaration(void 0,e.visitNodes(c.modifiers,Je,e.isModifier),e.getDeclarationName(c,!0,!0),void 0,e.visitNodes(c.heritageClauses,I),e.visitNodes(c.members,I)),c),c)):L=e.append(L,e.visitEachChild(c,I,Ge)),ve(c)){var te=e.getOriginalNodeId(c);P[te]=Ze(P[te],c)}else L=Ze(L,c);return e.singleOrMany(L)}function Z(c){var L,te,Se;if(e.hasModifier(c,1)){for(var Ne=void 0,ze=0,Tn=c.declarationList.declarations;ze<Tn.length;ze++){var wn=Tn[ze];e.isIdentifier(wn.name)&&e.isLocalName(wn.name)?(Ne||(Ne=e.visitNodes(c.modifiers,Je,e.isModifier)),te=e.append(te,wn)):wn.initializer&&(Se=e.append(Se,we(wn)))}te&&(L=e.append(L,e.updateVariableStatement(c,Ne,e.updateVariableDeclarationList(c.declarationList,te)))),Se&&(L=e.append(L,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(e.inlineExpressions(Se)),c),c)))}else L=e.append(L,e.visitEachChild(c,I,Ge));if(ve(c)){var jn=e.getOriginalNodeId(c);P[jn]=Pe(P[jn],c)}else L=Pe(L,c);return e.singleOrMany(L)}function Re(c,L,te){var Se=F(c);if(Se){for(var Ne=e.isExportName(c)?L:e.createAssignment(c,L),ze=0,Tn=Se;ze<Tn.length;ze++){var wn=Tn[ze];e.setEmitFlags(Ne,4),Ne=Le(wn,Ne,te)}return Ne}return e.createAssignment(c,L)}function we(c){return e.isBindingPattern(c.name)?e.flattenDestructuringAssignment(e.visitNode(c,I),void 0,Ge,0,!1,Re):e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),c.name),c.name),e.visitNode(c.initializer,I))}function He(c){if(ve(c)&&c.original.kind===224){var L=e.getOriginalNodeId(c);P[L]=Pe(P[L],c.original)}return c}function ve(c){return(e.getEmitFlags(c)&4194304)!==0}function je(c){var L=e.getOriginalNodeId(c),te=P[L];return te?(delete P[L],e.append(te,c)):c}function w(c,L){if(X.exportEquals)return c;var te=L.importClause;if(!te)return c;te.name&&(c=In(c,te));var Se=te.namedBindings;if(Se)switch(Se.kind){case 255:c=In(c,Se);break;case 256:for(var Ne=0,ze=Se.elements;Ne<ze.length;Ne++){var Tn=ze[Ne];c=In(c,Tn)}break}return c}function j(c,L){return X.exportEquals?c:In(c,L)}function Pe(c,L){if(X.exportEquals)return c;for(var te=0,Se=L.declarationList.declarations;te<Se.length;te++){var Ne=Se[te];c=a(c,Ne)}return c}function a(c,L){if(X.exportEquals)return c;if(e.isBindingPattern(L.name))for(var te=0,Se=L.name.elements;te<Se.length;te++){var Ne=Se[te];e.isOmittedExpression(Ne)||(c=a(c,Ne))}else e.isGeneratedIdentifier(L.name)||(c=In(c,L));return c}function Ze(c,L){if(X.exportEquals)return c;if(e.hasModifier(L,1)){var te=e.hasModifier(L,512)?e.createIdentifier("default"):e.getDeclarationName(L);c=et(c,te,e.getLocalName(L),L)}return L.name&&(c=In(c,L)),c}function In(c,L){var te=e.getDeclarationName(L),Se=X.exportSpecifiers.get(e.idText(te));if(Se)for(var Ne=0,ze=Se;Ne<ze.length;Ne++){var Tn=ze[Ne];c=et(c,Tn.name,te,Tn.name)}return c}function et(c,L,te,Se,Ne){return c=e.append(c,fe(L,te,Se,Ne)),c}function ae(){var c;return Te===0?c=e.createExpressionStatement(Le(e.createIdentifier("__esModule"),e.createLiteral(!0))):c=e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[e.createIdentifier("exports"),e.createLiteral("__esModule"),e.createObjectLiteral([e.createPropertyAssignment("value",e.createLiteral(!0))])])),e.setEmitFlags(c,1048576),c}function fe(c,L,te,Se){var Ne=e.setTextRange(e.createExpressionStatement(Le(c,L)),te);return e.startOnNewLine(Ne),Se||e.setEmitFlags(Ne,1536),Ne}function Le(c,L,te){return e.setTextRange(e.createAssignment(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(c)),L),te)}function Je(c){switch(c.kind){case 88:case 83:return}return c}function $e(c,L,te){L.kind===288?(h=L,X=C[e.getOriginalNodeId(h)],$=[],x(c,L,te),h=void 0,X=void 0,$=void 0):x(c,L,te)}function Fe(c,L){return L=ce(c,L),L.id&&$[L.id]?L:c===1?Qe(L):e.isShorthandPropertyAssignment(L)?cn(L):L}function cn(c){var L=c.name,te=ln(L);if(te!==L){if(c.objectAssignmentInitializer){var Se=e.createAssignment(te,c.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(L,Se),c)}return e.setTextRange(e.createPropertyAssignment(L,te),c)}return c}function Qe(c){switch(c.kind){case 75:return ln(c);case 208:return ye(c);case 207:case 206:return ke(c)}return c}function ln(c){if(e.getEmitFlags(c)&4096){var L=e.getExternalHelpersModuleName(h);return L?e.createPropertyAccess(L,c):c}if(!e.isGeneratedIdentifier(c)&&!e.isLocalName(c)){var te=Oe.getReferencedExportContainer(c,e.isExportName(c));if(te&&te.kind===288)return e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(c)),c);var Se=Oe.getReferencedImportDeclaration(c);if(Se){if(e.isImportClause(Se))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(Se.parent),e.createIdentifier("default")),c);if(e.isImportSpecifier(Se)){var Ne=Se.propertyName||Se.name;return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(Se.parent.parent.parent),e.getSynthesizedClone(Ne)),c)}}}return c}function ye(c){if(e.isAssignmentOperator(c.operatorToken.kind)&&e.isIdentifier(c.left)&&!e.isGeneratedIdentifier(c.left)&&!e.isLocalName(c.left)&&!e.isDeclarationNameOfEnumOrNamespace(c.left)){var L=F(c.left);if(L){for(var te=c,Se=0,Ne=L;Se<Ne.length;Se++){var ze=Ne[Se];$[e.getNodeId(te)]=!0,te=Le(ze,te,c)}return te}}return c}function ke(c){if((c.operator===45||c.operator===46)&&e.isIdentifier(c.operand)&&!e.isGeneratedIdentifier(c.operand)&&!e.isLocalName(c.operand)&&!e.isDeclarationNameOfEnumOrNamespace(c.operand)){var L=F(c.operand);if(L){for(var te=c.kind===207?e.setTextRange(e.createBinary(c.operand,e.createToken(c.operator===45?63:64),e.createLiteral(1)),c):c,Se=0,Ne=L;Se<Ne.length;Se++){var ze=Ne[Se];$[e.getNodeId(te)]=!0,te=Le(ze,te)}return te}}return c}function F(c){if(!e.isGeneratedIdentifier(c)){var L=Oe.getReferencedImportDeclaration(c)||Oe.getReferencedValueDeclaration(c);if(L)return X&&X.exportedBindings[e.getOriginalNodeId(L)]}}}e.transformModule=o;var M={name:"typescript:export-star",scoped:!0,text:`
|
|
|
function __export(m) {
|
|
|
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
|
}`};function qe(Ge,Be){var he=Ge.getCompilerOptions();return he.importHelpers?e.createCall(e.getUnscopedHelperName("__exportStar"),void 0,[Be,e.createIdentifier("exports")]):e.createCall(e.createIdentifier("__export"),void 0,[Be])}var Ee={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
|
|
|
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,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 (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
|
result["default"] = 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 };
|
|
|
};`}})(sn||(sn={}));var sn;(function(e){function o(M){var qe=M.startLexicalEnvironment,Ee=M.endLexicalEnvironment,Ge=M.hoistVariableDeclaration,Be=M.getCompilerOptions(),he=M.getEmitResolver(),ee=M.getEmitHost(),f=M.onSubstituteNode,J=M.onEmitNode;M.onSubstituteNode=Ne,M.onEmitNode=Se,M.enableSubstitution(75),M.enableSubstitution(280),M.enableSubstitution(208),M.enableSubstitution(206),M.enableSubstitution(207),M.enableSubstitution(218),M.enableEmitNotification(288);var Oe=[],N=[],Te=[],ie=[],ce=[],x,C,P,h,X,$,Q;return e.chainBundle(z);function z(_e){if(_e.isDeclarationFile||!(e.isEffectiveExternalModule(_e,Be)||_e.transformFlags&524288))return _e;var dn=e.getOriginalNodeId(_e);x=_e,$=_e,C=Oe[dn]=e.collectExternalModuleInfo(_e,he,Be),P=e.createUniqueName("exports"),Te[dn]=P,h=ce[dn]=e.createUniqueName("context");var un=se(C.externalImports),Rn=G(_e,un),at=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,P),e.createParameter(void 0,void 0,void 0,h)],void 0,Rn),Bn=e.tryGetModuleNameFromFile(_e,ee,Be),ut=e.createArrayLiteral(e.map(un,function(ot){return ot.name})),ct=e.setEmitFlags(e.updateSourceFileNode(_e,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("System"),"register"),void 0,Bn?[Bn,ut,at]:[ut,at]))]),_e.statements)),1024);return Be.outFile||Be.out||e.moveEmitHelpers(ct,Rn,function(ot){return!ot.scoped}),Q&&(ie[dn]=Q,Q=void 0),x=void 0,C=void 0,P=void 0,h=void 0,X=void 0,$=void 0,e.aggregateTransformFlags(ct)}function se(_e){for(var dn=e.createMap(),un=[],Rn=0,at=_e;Rn<at.length;Rn++){var Bn=at[Rn],ut=e.getExternalModuleNameLiteral(Bn,x,ee,he,Be);if(ut){var ct=ut.text,ot=dn.get(ct);ot!==void 0?un[ot].externalImports.push(Bn):(dn.set(ct,un.length),un.push({name:ut,externalImports:[Bn]}))}}return un}function G(_e,dn){var un=[];qe();var Rn=e.getStrictOptionValue(Be,"alwaysStrict")||!Be.noImplicitUseStrict&&e.isExternalModule(x),at=e.addPrologue(un,_e.statements,Rn,R);un.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("__moduleName",void 0,e.createLogicalAnd(h,e.createPropertyAccess(h,"id")))]))),e.visitNode(C.externalHelpersImportDeclaration,R,e.isStatement);var Bn=e.visitNodes(_e.statements,R,e.isStatement,at);e.addRange(un,X),e.insertStatementsAfterStandardPrologue(un,Ee());var ut=H(un),ct=e.createObjectLiteral([e.createPropertyAssignment("setters",be(ut,dn)),e.createPropertyAssignment("execute",e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock(Bn,!0)))]);return ct.multiLine=!0,un.push(e.createReturn(ct)),e.createBlock(un,!0)}function H(_e){if(!C.hasExportStarsToExportValues)return;if(!C.exportedNames&&C.exportSpecifiers.size===0){for(var dn=!1,un=0,Rn=C.externalImports;un<Rn.length;un++){var at=Rn[un];if(at.kind===259&&at.exportClause){dn=!0;break}}if(!dn){var Bn=q(void 0);return _e.push(Bn),Bn.name}}var ut=[];if(C.exportedNames)for(var ct=0,ot=C.exportedNames;ct<ot.length;ct++){var dt=ot[ct];if(dt.escapedText==="default")continue;ut.push(e.createPropertyAssignment(e.createLiteral(dt),e.createTrue()))}for(var Ct=0,st=C.externalImports;Ct<st.length;Ct++){var at=st[Ct];if(at.kind!==259)continue;if(!at.exportClause)continue;for(var Kn=0,Ie=at.exportClause.elements;Kn<Ie.length;Kn++){var Ce=Ie[Kn];ut.push(e.createPropertyAssignment(e.createLiteral(e.idText(Ce.name||Ce.propertyName)),e.createTrue()))}}var _n=e.createUniqueName("exportedNames");_e.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(_n,void 0,e.createObjectLiteral(ut,!0))])));var yt=q(_n);return _e.push(yt),yt.name}function q(_e){var dn=e.createUniqueName("exportStar"),un=e.createIdentifier("m"),Rn=e.createIdentifier("n"),at=e.createIdentifier("exports"),Bn=e.createStrictInequality(Rn,e.createLiteral("default"));return _e&&(Bn=e.createLogicalAnd(Bn,e.createLogicalNot(e.createCall(e.createPropertyAccess(_e,"hasOwnProperty"),void 0,[Rn])))),e.createFunctionDeclaration(void 0,void 0,void 0,dn,void 0,[e.createParameter(void 0,void 0,void 0,un)],void 0,e.createBlock([e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(at,void 0,e.createObjectLiteral([]))])),e.createForIn(e.createVariableDeclarationList([e.createVariableDeclaration(Rn,void 0)]),un,e.createBlock([e.setEmitFlags(e.createIf(Bn,e.createExpressionStatement(e.createAssignment(e.createElementAccess(at,Rn),e.createElementAccess(un,Rn)))),1)])),e.createExpressionStatement(e.createCall(P,void 0,[at]))],!0))}function be(_e,dn){for(var un=[],Rn=0,at=dn;Rn<at.length;Rn++){for(var Bn=at[Rn],ut=e.forEach(Bn.externalImports,function(Dt){return e.getLocalNameForExternalImport(Dt,x)}),ct=ut?e.getGeneratedNameForNode(ut):e.createUniqueName(""),ot=[],dt=0,Ct=Bn.externalImports;dt<Ct.length;dt++){var st=Ct[dt],Kn=e.getLocalNameForExternalImport(st,x);switch(st.kind){case 253:if(!st.importClause)break;case 252:e.Debug.assert(Kn!==void 0),ot.push(e.createExpressionStatement(e.createAssignment(Kn,ct)));break;case 259:if(e.Debug.assert(Kn!==void 0),st.exportClause){for(var Ie=[],Ce=0,_n=st.exportClause.elements;Ce<_n.length;Ce++){var yt=_n[Ce];Ie.push(e.createPropertyAssignment(e.createLiteral(e.idText(yt.name)),e.createElementAccess(ct,e.createLiteral(e.idText(yt.propertyName||yt.name)))))}ot.push(e.createExpressionStatement(e.createCall(P,void 0,[e.createObjectLiteral(Ie,!0)])))}else ot.push(e.createExpressionStatement(e.createCall(_e,void 0,[ct])));break}}un.push(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,ct)],void 0,e.createBlock(ot,!0)))}return e.createArrayLiteral(un,!0)}function R(_e){switch(_e.kind){case 253:return K(_e);case 252:return m(_e);case 259:return;case 258:return _(_e);default:return w(_e)}}function K(_e){var dn;if(_e.importClause&&Ge(e.getLocalNameForExternalImport(_e,x)),S(_e)){var un=e.getOriginalNodeId(_e);N[un]=U(N[un],_e)}else dn=U(dn,_e);return e.singleOrMany(dn)}function m(_e){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(_e),"import= for internal module references should be handled in an earlier transformer.");var dn;if(Ge(e.getLocalNameForExternalImport(_e,x)),S(_e)){var un=e.getOriginalNodeId(_e);N[un]=ue(N[un],_e)}else dn=ue(dn,_e);return e.singleOrMany(dn)}function _(_e){if(_e.isExportEquals)return;var dn=e.visitNode(_e.expression,ke,e.isExpression),un=_e.original;if(un&&S(un)){var Rn=e.getOriginalNodeId(_e);N[Rn]=He(N[Rn],e.createIdentifier("default"),dn,!0)}else return ve(e.createIdentifier("default"),dn,!0)}function I(_e){if(e.hasModifier(_e,1)?X=e.append(X,e.updateFunctionDeclaration(_e,_e.decorators,e.visitNodes(_e.modifiers,te,e.isModifier),_e.asteriskToken,e.getDeclarationName(_e,!0,!0),void 0,e.visitNodes(_e.parameters,ke,e.isParameterDeclaration),void 0,e.visitNode(_e.body,ke,e.isBlock))):X=e.append(X,e.visitEachChild(_e,ke,M)),S(_e)){var dn=e.getOriginalNodeId(_e);N[dn]=Re(N[dn],_e)}else X=Re(X,_e);return}function D(_e){var dn,un=e.getLocalName(_e);if(Ge(un),dn=e.append(dn,e.setTextRange(e.createExpressionStatement(e.createAssignment(un,e.setTextRange(e.createClassExpression(void 0,_e.name,void 0,e.visitNodes(_e.heritageClauses,ke,e.isHeritageClause),e.visitNodes(_e.members,ke,e.isClassElement)),_e))),_e)),S(_e)){var Rn=e.getOriginalNodeId(_e);N[Rn]=Re(N[Rn],_e)}else dn=Re(dn,_e);return e.singleOrMany(dn)}function y(_e){if(!k(_e.declarationList))return e.visitNode(_e,ke,e.isStatement);for(var dn,un=e.hasModifier(_e,1),Rn=S(_e),at=0,Bn=_e.declarationList.declarations;at<Bn.length;at++){var ut=Bn[at];ut.initializer?dn=e.append(dn,T(ut,un&&!Rn)):E(ut)}var ct;if(dn&&(ct=e.append(ct,e.setTextRange(e.createExpressionStatement(e.inlineExpressions(dn)),_e))),Rn){var ot=e.getOriginalNodeId(_e);N[ot]=De(N[ot],_e,un)}else ct=De(ct,_e,!1);return e.singleOrMany(ct)}function E(_e){if(e.isBindingPattern(_e.name))for(var dn=0,un=_e.name.elements;dn<un.length;dn++){var Rn=un[dn];e.isOmittedExpression(Rn)||E(Rn)}else Ge(e.getSynthesizedClone(_e.name))}function k(_e){return(e.getEmitFlags(_e)&2097152)===0&&($.kind===288||(e.getOriginalNode(_e).flags&3)===0)}function T(_e,dn){var un=dn?ne:O;return e.isBindingPattern(_e.name)?e.flattenDestructuringAssignment(_e,ke,M,0,!1,un):_e.initializer?un(_e.name,e.visitNode(_e.initializer,ke,e.isExpression)):_e.name}function ne(_e,dn,un){return Y(_e,dn,un,!0)}function O(_e,dn,un){return Y(_e,dn,un,!1)}function Y(_e,dn,un,Rn){return Ge(e.getSynthesizedClone(_e)),Rn?je(_e,Cn(e.setTextRange(e.createAssignment(_e,dn),un))):Cn(e.setTextRange(e.createAssignment(_e,dn),un))}function pe(_e){if(S(_e)&&_e.original.kind===224){var dn=e.getOriginalNodeId(_e),un=e.hasModifier(_e.original,1);N[dn]=De(N[dn],_e.original,un)}return _e}function S(_e){return(e.getEmitFlags(_e)&4194304)!==0}function v(_e){var dn=e.getOriginalNodeId(_e),un=N[dn];if(un)return delete N[dn],e.append(un,_e);var Rn=e.getOriginalNode(_e);return e.isModuleOrEnumDeclaration(Rn)?e.append(we(un,Rn),_e):_e}function U(_e,dn){if(C.exportEquals)return _e;var un=dn.importClause;if(!un)return _e;un.name&&(_e=we(_e,un));var Rn=un.namedBindings;if(Rn)switch(Rn.kind){case 255:_e=we(_e,Rn);break;case 256:for(var at=0,Bn=Rn.elements;at<Bn.length;at++){var ut=Bn[at];_e=we(_e,ut)}break}return _e}function ue(_e,dn){return C.exportEquals?_e:we(_e,dn)}function De(_e,dn,un){if(C.exportEquals)return _e;for(var Rn=0,at=dn.declarationList.declarations;Rn<at.length;Rn++){var Bn=at[Rn];(Bn.initializer||un)&&(_e=Z(_e,Bn,un))}return _e}function Z(_e,dn,un){if(C.exportEquals)return _e;if(e.isBindingPattern(dn.name))for(var Rn=0,at=dn.name.elements;Rn<at.length;Rn++){var Bn=at[Rn];e.isOmittedExpression(Bn)||(_e=Z(_e,Bn,un))}else if(!e.isGeneratedIdentifier(dn.name)){var ut=void 0;un&&(_e=He(_e,dn.name,e.getLocalName(dn)),ut=e.idText(dn.name)),_e=we(_e,dn,ut)}return _e}function Re(_e,dn){if(C.exportEquals)return _e;var un;if(e.hasModifier(dn,1)){var Rn=e.hasModifier(dn,512)?e.createLiteral("default"):dn.name;_e=He(_e,Rn,e.getLocalName(dn)),un=e.getTextOfIdentifierOrLiteral(Rn)}return dn.name&&(_e=we(_e,dn,un)),_e}function we(_e,dn,un){if(C.exportEquals)return _e;var Rn=e.getDeclarationName(dn),at=C.exportSpecifiers.get(e.idText(Rn));if(at)for(var Bn=0,ut=at;Bn<ut.length;Bn++){var ct=ut[Bn];ct.name.escapedText!==un&&(_e=He(_e,ct.name,Rn))}return _e}function He(_e,dn,un,Rn){return _e=e.append(_e,ve(dn,un,Rn)),_e}function ve(_e,dn,un){var Rn=e.createExpressionStatement(je(_e,dn));return e.startOnNewLine(Rn),un||e.setEmitFlags(Rn,1536),Rn}function je(_e,dn){var un=e.isIdentifier(_e)?e.createLiteral(_e):_e;return e.setEmitFlags(dn,e.getEmitFlags(dn)|1536),e.setCommentRange(e.createCall(P,void 0,[un,dn]),dn)}function w(_e){switch(_e.kind){case 224:return y(_e);case 243:return I(_e);case 244:return D(_e);case 229:return j(_e);case 230:return Pe(_e);case 231:return a(_e);case 227:return et(_e);case 228:return ae(_e);case 237:return fe(_e);case 235:return Le(_e);case 236:return Je(_e);case 250:return $e(_e);case 275:return Fe(_e);case 276:return cn(_e);case 239:return Qe(_e);case 278:return ln(_e);case 222:return ye(_e);case 321:return pe(_e);case 322:return v(_e);default:return ke(_e)}}function j(_e){var dn=$;return $=_e,_e=e.updateFor(_e,_e.initializer&&In(_e.initializer),e.visitNode(_e.condition,ke,e.isExpression),e.visitNode(_e.incrementor,ke,e.isExpression),e.visitNode(_e.statement,w,e.isStatement)),$=dn,_e}function Pe(_e){var dn=$;return $=_e,_e=e.updateForIn(_e,In(_e.initializer),e.visitNode(_e.expression,ke,e.isExpression),e.visitNode(_e.statement,w,e.isStatement,e.liftToBlock)),$=dn,_e}function a(_e){var dn=$;return $=_e,_e=e.updateForOf(_e,_e.awaitModifier,In(_e.initializer),e.visitNode(_e.expression,ke,e.isExpression),e.visitNode(_e.statement,w,e.isStatement,e.liftToBlock)),$=dn,_e}function Ze(_e){return e.isVariableDeclarationList(_e)&&k(_e)}function In(_e){if(Ze(_e)){for(var dn=void 0,un=0,Rn=_e.declarations;un<Rn.length;un++){var at=Rn[un];dn=e.append(dn,T(at,!1)),at.initializer||E(at)}return dn?e.inlineExpressions(dn):e.createOmittedExpression()}else return e.visitEachChild(_e,w,M)}function et(_e){return e.updateDo(_e,e.visitNode(_e.statement,w,e.isStatement,e.liftToBlock),e.visitNode(_e.expression,ke,e.isExpression))}function ae(_e){return e.updateWhile(_e,e.visitNode(_e.expression,ke,e.isExpression),e.visitNode(_e.statement,w,e.isStatement,e.liftToBlock))}function fe(_e){return e.updateLabel(_e,_e.label,e.visitNode(_e.statement,w,e.isStatement,e.liftToBlock))}function Le(_e){return e.updateWith(_e,e.visitNode(_e.expression,ke,e.isExpression),e.visitNode(_e.statement,w,e.isStatement,e.liftToBlock))}function Je(_e){return e.updateSwitch(_e,e.visitNode(_e.expression,ke,e.isExpression),e.visitNode(_e.caseBlock,w,e.isCaseBlock))}function $e(_e){var dn=$;return $=_e,_e=e.updateCaseBlock(_e,e.visitNodes(_e.clauses,w,e.isCaseOrDefaultClause)),$=dn,_e}function Fe(_e){return e.updateCaseClause(_e,e.visitNode(_e.expression,ke,e.isExpression),e.visitNodes(_e.statements,w,e.isStatement))}function cn(_e){return e.visitEachChild(_e,w,M)}function Qe(_e){return e.visitEachChild(_e,w,M)}function ln(_e){var dn=$;return $=_e,_e=e.updateCatchClause(_e,_e.variableDeclaration,e.visitNode(_e.block,w,e.isBlock)),$=dn,_e}function ye(_e){var dn=$;return $=_e,_e=e.visitEachChild(_e,w,M),$=dn,_e}function ke(_e){return e.isDestructuringAssignment(_e)?c(_e):e.isImportCall(_e)?F(_e):_e.transformFlags&512||_e.transformFlags&524288?e.visitEachChild(_e,ke,M):_e}function F(_e){return e.createCall(e.createPropertyAccess(h,e.createIdentifier("import")),void 0,e.some(_e.arguments)?[e.visitNode(_e.arguments[0],ke)]:[])}function c(_e){return L(_e.left)?e.flattenDestructuringAssignment(_e,ke,M,0,!0):e.visitEachChild(_e,ke,M)}function L(_e){if(e.isAssignmentExpression(_e,!0))return L(_e.left);if(e.isSpreadElement(_e))return L(_e.expression);if(e.isObjectLiteralExpression(_e))return e.some(_e.properties,L);if(e.isArrayLiteralExpression(_e))return e.some(_e.elements,L);if(e.isShorthandPropertyAssignment(_e))return L(_e.name);if(e.isPropertyAssignment(_e))return L(_e.initializer);if(e.isIdentifier(_e)){var dn=he.getReferencedExportContainer(_e);return dn!==void 0&&dn.kind===288}else return!1}function te(_e){switch(_e.kind){case 88:case 83:return}return _e}function Se(_e,dn,un){if(dn.kind===288){var Rn=e.getOriginalNodeId(dn);x=dn,C=Oe[Rn],P=Te[Rn],Q=ie[Rn],h=ce[Rn],Q&&delete ie[Rn],J(_e,dn,un),x=void 0,C=void 0,P=void 0,h=void 0,Q=void 0}else J(_e,dn,un)}function Ne(_e,dn){return dn=f(_e,dn),yn(dn)?dn:_e===1?wn(dn):_e===4?ze(dn):dn}function ze(_e){switch(_e.kind){case 280:return Tn(_e)}return _e}function Tn(_e){var dn=_e.name;if(!e.isGeneratedIdentifier(dn)&&!e.isLocalName(dn)){var un=he.getReferencedImportDeclaration(dn);if(un){if(e.isImportClause(un))return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(dn),e.createPropertyAccess(e.getGeneratedNameForNode(un.parent),e.createIdentifier("default"))),_e);if(e.isImportSpecifier(un))return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(dn),e.createPropertyAccess(e.getGeneratedNameForNode(un.parent.parent.parent),e.getSynthesizedClone(un.propertyName||un.name))),_e)}}return _e}function wn(_e){switch(_e.kind){case 75:return jn(_e);case 208:return nn(_e);case 206:case 207:return pn(_e);case 218:return le(_e)}return _e}function jn(_e){if(e.getEmitFlags(_e)&4096){var dn=e.getExternalHelpersModuleName(x);return dn?e.createPropertyAccess(dn,_e):_e}if(!e.isGeneratedIdentifier(_e)&&!e.isLocalName(_e)){var un=he.getReferencedImportDeclaration(_e);if(un){if(e.isImportClause(un))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(un.parent),e.createIdentifier("default")),_e);if(e.isImportSpecifier(un))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(un.parent.parent.parent),e.getSynthesizedClone(un.propertyName||un.name)),_e)}}return _e}function nn(_e){if(e.isAssignmentOperator(_e.operatorToken.kind)&&e.isIdentifier(_e.left)&&!e.isGeneratedIdentifier(_e.left)&&!e.isLocalName(_e.left)&&!e.isDeclarationNameOfEnumOrNamespace(_e.left)){var dn=oe(_e.left);if(dn){for(var un=_e,Rn=0,at=dn;Rn<at.length;Rn++){var Bn=at[Rn];un=je(Bn,Cn(un))}return un}}return _e}function pn(_e){if((_e.operator===45||_e.operator===46)&&e.isIdentifier(_e.operand)&&!e.isGeneratedIdentifier(_e.operand)&&!e.isLocalName(_e.operand)&&!e.isDeclarationNameOfEnumOrNamespace(_e.operand)){var dn=oe(_e.operand);if(dn){for(var un=_e.kind===207?e.setTextRange(e.createPrefix(_e.operator,_e.operand),_e):_e,Rn=0,at=dn;Rn<at.length;Rn++){var Bn=at[Rn];un=je(Bn,Cn(un))}return _e.kind===207&&(un=_e.operator===45?e.createSubtract(Cn(un),e.createLiteral(1)):e.createAdd(Cn(un),e.createLiteral(1))),un}}return _e}function le(_e){return e.isImportMeta(_e)?e.createPropertyAccess(h,e.createIdentifier("meta")):_e}function oe(_e){var dn;if(!e.isGeneratedIdentifier(_e)){var un=he.getReferencedImportDeclaration(_e)||he.getReferencedValueDeclaration(_e);if(un){var Rn=he.getReferencedExportContainer(_e,!1);Rn&&Rn.kind===288&&(dn=e.append(dn,e.getDeclarationName(un))),dn=e.addRange(dn,C&&C.exportedBindings[e.getOriginalNodeId(un)])}}return dn}function Cn(_e){return Q===void 0&&(Q=[]),Q[e.getNodeId(_e)]=!0,_e}function yn(_e){return Q&&_e.id&&Q[_e.id]}}e.transformSystemModule=o})(sn||(sn={}));var sn;(function(e){function o(M){var qe=M.getCompilerOptions(),Ee=M.onEmitNode,Ge=M.onSubstituteNode;M.onEmitNode=J,M.onSubstituteNode=Oe,M.enableEmitNotification(288),M.enableSubstitution(75);var Be;return e.chainBundle(he);function he(Te){if(Te.isDeclarationFile)return Te;if(e.isExternalModule(Te)||qe.isolatedModules){var ie=e.createExternalHelpersImportDeclarationIfNeeded(Te,qe);if(ie){var ce=[],x=e.addPrologue(ce,Te.statements);return e.append(ce,ie),e.addRange(ce,e.visitNodes(Te.statements,ee,e.isStatement,x)),e.updateSourceFileNode(Te,e.setTextRange(e.createNodeArray(ce),Te.statements))}else return e.visitEachChild(Te,ee,M)}return Te}function ee(Te){switch(Te.kind){case 252:return;case 258:return f(Te)}return Te}function f(Te){return Te.isExportEquals?void 0:Te}function J(Te,ie,ce){e.isSourceFile(ie)?(Be=e.createMap(),Ee(Te,ie,ce),Be=void 0):Ee(Te,ie,ce)}function Oe(Te,ie){return ie=Ge(Te,ie),Be&&e.isIdentifier(ie)&&e.getEmitFlags(ie)&4096?N(ie):ie}function N(Te){var ie=e.idText(Te),ce=Be.get(ie);return ce||Be.set(ie,ce=e.createFileLevelUniqueName(ie)),ce}}e.transformES2015Module=o})(sn||(sn={}));var sn;(function(e){function o(Ee){return e.isVariableDeclaration(Ee)||e.isPropertyDeclaration(Ee)||e.isPropertySignature(Ee)||e.isBindingElement(Ee)||e.isSetAccessor(Ee)||e.isGetAccessor(Ee)||e.isConstructSignatureDeclaration(Ee)||e.isCallSignatureDeclaration(Ee)||e.isMethodDeclaration(Ee)||e.isMethodSignature(Ee)||e.isFunctionDeclaration(Ee)||e.isParameter(Ee)||e.isTypeParameterDeclaration(Ee)||e.isExpressionWithTypeArguments(Ee)||e.isImportEqualsDeclaration(Ee)||e.isTypeAliasDeclaration(Ee)||e.isConstructorDeclaration(Ee)||e.isIndexSignatureDeclaration(Ee)||e.isPropertyAccessExpression(Ee)}e.canProduceDiagnostics=o;function M(Ee){if(e.isSetAccessor(Ee)||e.isGetAccessor(Ee))return Ge;return e.isMethodSignature(Ee)||e.isMethodDeclaration(Ee)?he:qe(Ee);function Ge(f){var J=Be(f);return J!==void 0?{diagnosticMessage:J,errorNode:Ee,typeName:Ee.name}:void 0}function Be(f){return e.hasModifier(Ee,32)?f.errorModuleName?f.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:Ee.parent.kind===244?f.errorModuleName?f.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:f.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 he(f){var J=ee(f);return J!==void 0?{diagnosticMessage:J,errorNode:Ee,typeName:Ee.name}:void 0}function ee(f){return e.hasModifier(Ee,32)?f.errorModuleName?f.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:Ee.parent.kind===244?f.errorModuleName?f.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:f.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=M;function qe(Ee){if(e.isVariableDeclaration(Ee)||e.isPropertyDeclaration(Ee)||e.isPropertySignature(Ee)||e.isPropertyAccessExpression(Ee)||e.isBindingElement(Ee)||e.isConstructorDeclaration(Ee))return Be;return e.isSetAccessor(Ee)||e.isGetAccessor(Ee)?he:e.isConstructSignatureDeclaration(Ee)||e.isCallSignatureDeclaration(Ee)||e.isMethodDeclaration(Ee)||e.isMethodSignature(Ee)||e.isFunctionDeclaration(Ee)||e.isIndexSignatureDeclaration(Ee)?ee:e.isParameter(Ee)?e.isParameterPropertyDeclaration(Ee,Ee.parent)&&e.hasModifier(Ee.parent,8)?Be:f:e.isTypeParameterDeclaration(Ee)?Oe:e.isExpressionWithTypeArguments(Ee)?N:e.isImportEqualsDeclaration(Ee)?Te:e.isTypeAliasDeclaration(Ee)?ie:e.Debug.assertNever(Ee,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[Ee.kind]);function Ge(ce){if(Ee.kind===241||Ee.kind===190)return ce.errorModuleName?ce.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(Ee.kind===158||Ee.kind===193||Ee.kind===157||Ee.kind===155&&e.hasModifier(Ee.parent,8))return e.hasModifier(Ee,32)?ce.errorModuleName?ce.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:Ee.parent.kind===244||Ee.kind===155?ce.errorModuleName?ce.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:ce.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 Be(ce){var x=Ge(ce);return x!==void 0?{diagnosticMessage:x,errorNode:Ee,typeName:Ee.name}:void 0}function he(ce){var x;return Ee.kind===163?e.hasModifier(Ee,32)?x=ce.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:x=ce.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.hasModifier(Ee,32)?x=ce.errorModuleName?ce.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:x=ce.errorModuleName?ce.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:x,errorNode:Ee.name,typeName:Ee.name}}function ee(ce){var x;switch(Ee.kind){case 165:x=ce.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 164:x=ce.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 166:x=ce.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 160:case 159:e.hasModifier(Ee,32)?x=ce.errorModuleName?ce.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:Ee.parent.kind===244?x=ce.errorModuleName?ce.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:x=ce.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 243:x=ce.errorModuleName?ce.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: "+Ee.kind)}return{diagnosticMessage:x,errorNode:Ee.name||Ee}}function f(ce){var x=J(ce);return x!==void 0?{diagnosticMessage:x,errorNode:Ee,typeName:Ee.name}:void 0}function J(ce){switch(Ee.parent.kind){case 161:return ce.errorModuleName?ce.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 165:case 170:return ce.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 164:return ce.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 166:return ce.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 160:case 159:return e.hasModifier(Ee.parent,32)?ce.errorModuleName?ce.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:Ee.parent.parent.kind===244?ce.errorModuleName?ce.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:ce.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 243:case 169:return ce.errorModuleName?ce.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 163:case 162:return ce.errorModuleName?ce.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[Ee.parent.kind])}}function Oe(){var ce;switch(Ee.parent.kind){case 244:ce=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 245:ce=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 185:ce=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 170:case 165:ce=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 164:ce=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 160:case 159:e.hasModifier(Ee.parent,32)?ce=e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:Ee.parent.parent.kind===244?ce=e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:ce=e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 169:case 243:ce=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 246:ce=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: "+Ee.parent.kind)}return{diagnosticMessage:ce,errorNode:Ee,typeName:Ee.name}}function N(){var ce;return Ee.parent.parent.kind===244?ce=e.isHeritageClause(Ee.parent)&&Ee.parent.token===112?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:ce=e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:ce,errorNode:Ee,typeName:e.getNameOfDeclaration(Ee.parent.parent)}}function Te(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:Ee,typeName:Ee.name}}function ie(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Ee.type,typeName:Ee.name}}}e.createGetSymbolAccessibilityDiagnosticForNode=qe})(sn||(sn={}));var sn;(function(e){function o(Te,ie,ce){if(ce&&e.isJsonSourceFile(ce))return[];var x=Te.getCompilerOptions(),C=e.transformNodes(ie,Te,x,ce?[ce]:e.filter(Te.getSourceFiles(),e.isSourceFileNotJson),[Ge],!1);return C.diagnostics}e.getDeclarationDiagnostics=o;function M(Te,ie){var ce=ie.text.substring(Te.pos,Te.end);return e.stringContains(ce,"@internal")}function qe(Te,ie){var ce=e.getParseTreeNode(Te);if(ce&&ce.kind===155){var x=ce.parent.parameters.indexOf(ce),C=x>0?ce.parent.parameters[x-1]:void 0,P=ie.text,h=C?e.concatenate(e.getTrailingCommentRanges(P,e.skipTrivia(P,C.end+1,!1,!0)),e.getLeadingCommentRanges(P,Te.pos)):e.getTrailingCommentRanges(P,e.skipTrivia(P,Te.pos,!1,!0));return h&&h.length&&M(e.last(h),ie)}var X=ce&&e.getLeadingCommentRangesOfNode(ce,ie);return!!e.forEach(X,function($){return M($,ie)})}e.isInternalDeclaration=qe;var Ee=1024|2048|4096|8|524288|4|1;function Ge(Te){var ie=function(){return e.Debug.fail("Diagnostic emitted without context")},ce=ie,x=!0,C=!1,P=!1,h=!1,X=!1,$,Q,z,se,G,H,q=Te.getEmitHost(),be={trackSymbol:pe,reportInaccessibleThisError:U,reportInaccessibleUniqueSymbolError:v,reportPrivateInBaseOfClassExpression:S,reportLikelyUnsafeImportRequiredError:ue,moduleResolverHost:q,trackReferencedAmbientModule:ne,trackExternalModuleSymbolOfImportTypeNode:Y},R,K,m,_,I,D=Te.getEmitResolver(),y=Te.getCompilerOptions(),E=y.noResolve,k=y.stripInternal;return Z;function T(le){if(!le)return;Q=Q||e.createMap();for(var oe=0,Cn=le;oe<Cn.length;oe++){var yn=Cn[oe];Q.set(yn,!0)}}function ne(le,oe){var Cn=D.getTypeReferenceDirectivesForSymbol(oe,67108863);if(e.length(Cn))return T(Cn);var yn=e.getSourceFileOfNode(le);m.set(""+e.getOriginalNodeId(yn),yn)}function O(le){if(le.accessibility===0){if(le&&le.aliasesToMakeVisible)if(!z)z=le.aliasesToMakeVisible;else for(var oe=0,Cn=le.aliasesToMakeVisible;oe<Cn.length;oe++){var yn=Cn[oe];e.pushIfUnique(z,yn)}}else{var _e=ce(le);_e&&(_e.typeName?Te.addDiagnostic(e.createDiagnosticForNode(le.errorNode||_e.errorNode,_e.diagnosticMessage,e.getTextOfNode(_e.typeName),le.errorSymbolName,le.errorModuleName)):Te.addDiagnostic(e.createDiagnosticForNode(le.errorNode||_e.errorNode,_e.diagnosticMessage,le.errorSymbolName,le.errorModuleName)))}}function Y(le){C||(H||(H=[])).push(le)}function pe(le,oe,Cn){if(le.flags&262144)return;O(D.isSymbolAccessible(le,oe,Cn,!0)),T(D.getTypeReferenceDirectivesForSymbol(le,Cn))}function S(le){R&&Te.addDiagnostic(e.createDiagnosticForNode(R,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,le))}function v(){R&&Te.addDiagnostic(e.createDiagnosticForNode(R,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(R),"unique symbol"))}function U(){R&&Te.addDiagnostic(e.createDiagnosticForNode(R,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(R),"this"))}function ue(le){R&&Te.addDiagnostic(e.createDiagnosticForNode(R,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,e.declarationNameToString(R),le))}function De(le,oe){var Cn=ce;ce=function(_e){return{diagnosticMessage:_e.errorModuleName?e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:_e.errorNode||le}};var yn=D.getDeclarationStatementsForSourceFile(le,Ee,be,oe);return ce=Cn,yn}function Z(le){if(le.kind===288&&le.isDeclarationFile)return le;if(le.kind===289){C=!0,m=e.createMap(),_=e.createMap();var oe=!1,Cn=e.createBundle(e.map(le.sourceFiles,function(st){if(st.isDeclarationFile)return;if(oe=oe||st.hasNoDefaultLib,K=st,$=st,z=void 0,G=!1,se=e.createMap(),ce=ie,h=!1,X=!1,Re(st,m),we(st,_),e.isExternalOrCommonJsModule(st)||e.isJsonSourceFile(st)){P=!1,x=!1;var Kn=e.isSourceFileJS(st)?e.createNodeArray(De(st,!0)):e.visitNodes(st.statements,ye),Ie=e.updateSourceFileNode(st,[e.createModuleDeclaration([],[e.createModifier(129)],e.createLiteral(e.getResolvedExternalModuleName(Te.getEmitHost(),st)),e.createModuleBlock(e.setTextRange(e.createNodeArray(cn(Kn)),st.statements)))],!0,[],[],!1,[]);return Ie}x=!0;var Ce=e.isSourceFileJS(st)?e.createNodeArray(De(st)):e.visitNodes(st.statements,ye);return e.updateSourceFileNode(st,cn(Ce),!0,[],[],!1,[])}),e.mapDefined(le.prepends,function(st){if(st.kind===291){var Kn=e.createUnparsedSourceFile(st,"dts",k);return oe=oe||!!Kn.hasNoDefaultLib,Re(Kn,m),T(Kn.typeReferenceDirectives),we(Kn,_),Kn}return st}));Cn.syntheticFileReferences=[],Cn.syntheticTypeReferences=ot(),Cn.syntheticLibReferences=ct(),Cn.hasNoDefaultLib=oe;var yn=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(le,q,!0).declarationFilePath)),_e=Ct(Cn.syntheticFileReferences,yn);return m.forEach(_e),Cn}x=!0,h=!1,X=!1,$=le,K=le,ce=ie,C=!1,P=!1,G=!1,z=void 0,se=e.createMap(),Q=void 0,m=Re(K,e.createMap()),_=we(K,e.createMap());var dn=[],un=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(le,q,!0).declarationFilePath)),Rn=Ct(dn,un),at;if(e.isSourceFileJS(K))at=e.createNodeArray(De(le)),m.forEach(Rn),I=e.filter(at,e.isAnyImportSyntax);else{var Bn=e.visitNodes(le.statements,ye);at=e.setTextRange(e.createNodeArray(cn(Bn)),le.statements),m.forEach(Rn),I=e.filter(at,e.isAnyImportSyntax),e.isExternalModule(le)&&(!P||h&&!X)&&(at=e.setTextRange(e.createNodeArray(Tr(at,[e.createEmptyExports()])),at))}var ut=e.updateSourceFileNode(le,at,!0,dn,ot(),le.hasNoDefaultLib,ct());return ut.exportedModulesFromDeclarationEmit=H,ut;function ct(){return e.map(e.arrayFrom(_.keys()),function(st){return{fileName:st,pos:-1,end:-1}})}function ot(){return Q?e.mapDefined(e.arrayFrom(Q.keys()),dt):[]}function dt(st){if(I)for(var Kn=0,Ie=I;Kn<Ie.length;Kn++){var Ce=Ie[Kn];if(e.isImportEqualsDeclaration(Ce)&&e.isExternalModuleReference(Ce.moduleReference)){var _n=Ce.moduleReference.expression;if(e.isStringLiteralLike(_n)&&_n.text===st)return}else if(e.isImportDeclaration(Ce)&&e.isStringLiteral(Ce.moduleSpecifier)&&Ce.moduleSpecifier.text===st)return}return{fileName:st,pos:-1,end:-1}}function Ct(st,Kn){return function(Ie){var Ce;if(Ie.isDeclarationFile)Ce=Ie.fileName;else{if(C&&e.contains(le.sourceFiles,Ie))return;var _n=e.getOutputPathsFor(Ie,q,!0);Ce=_n.declarationFilePath||_n.jsFilePath||Ie.fileName}if(Ce){var yt=e.moduleSpecifiers.getModuleSpecifier(Rr(Rr({},y),{baseUrl:y.baseUrl&&e.toPath(y.baseUrl,q.getCurrentDirectory(),q.getCanonicalFileName)}),K,e.toPath(Kn,q.getCurrentDirectory(),q.getCanonicalFileName),e.toPath(Ce,q.getCurrentDirectory(),q.getCanonicalFileName),q,q.getSourceFiles(),void 0,q.redirectTargetsMap);if(!e.pathIsRelative(yt)){T([yt]);return}var Dt=e.getRelativePathToDirectoryOrUrl(Kn,Ce,q.getCurrentDirectory(),q.getCanonicalFileName,!1);if(e.startsWith(Dt,"./")&&e.hasExtension(Dt)&&(Dt=Dt.substring(2)),e.startsWith(Dt,"node_modules/")||Dt.indexOf("/node_modules/")!==-1)return;st.push({pos:-1,end:-1,fileName:Dt})}}}}function Re(le,oe){return E||!e.isUnparsedSource(le)&&e.isSourceFileJS(le)||e.forEach(le.referencedFiles,function(Cn){var yn=q.getSourceFileFromReference(le,Cn);yn&&oe.set(""+e.getOriginalNodeId(yn),yn)}),oe}function we(le,oe){return e.forEach(le.libReferenceDirectives,function(Cn){var yn=q.getLibFileFromReference(Cn);yn&&oe.set(Cn.fileName.toLocaleLowerCase(),!0)}),oe}function He(le){if(le.kind===75)return le;return le.kind===189?e.updateArrayBindingPattern(le,e.visitNodes(le.elements,oe)):e.updateObjectBindingPattern(le,e.visitNodes(le.elements,oe));function oe(Cn){return Cn.kind===214?Cn:e.updateBindingElement(Cn,Cn.dotDotDotToken,Cn.propertyName,He(Cn.name),je(Cn)?Cn.initializer:void 0)}}function ve(le,oe,Cn){var yn;G||(yn=ce,ce=e.createGetSymbolAccessibilityDiagnosticForNode(le));var _e=e.updateParameter(le,void 0,he(le,oe),le.dotDotDotToken,He(le.name),D.isOptionalParameter(le)?le.questionToken||e.createToken(57):void 0,j(le,Cn||le.type,!0),w(le));return G||(ce=yn),_e}function je(le){return J(le)&&D.isLiteralConstDeclaration(e.getParseTreeNode(le))}function w(le){return je(le)?D.createLiteralConstValue(e.getParseTreeNode(le),be):void 0}function j(le,oe,Cn){if(!Cn&&e.hasModifier(le,8))return;if(je(le))return;var yn=le.kind===155&&(D.isRequiredInitializedParameter(le)||D.isOptionalUninitializedParameterProperty(le));if(oe&&!yn)return e.visitNode(oe,Qe);if(!e.getParseTreeNode(le))return oe?e.visitNode(oe,Qe):e.createKeywordTypeNode(124);if(le.kind===163)return e.createKeywordTypeNode(124);R=le.name;var _e;if(G||(_e=ce,ce=e.createGetSymbolAccessibilityDiagnosticForNode(le)),le.kind===241||le.kind===190)return dn(D.createTypeOfDeclaration(le,$,Ee,be));if(le.kind===155||le.kind===158||le.kind===157)return le.initializer?dn(D.createTypeOfDeclaration(le,$,Ee,be,yn)||D.createTypeOfExpression(le.initializer,$,Ee,be)):dn(D.createTypeOfDeclaration(le,$,Ee,be,yn));return dn(D.createReturnTypeOfSignatureDeclaration(le,$,Ee,be));function dn(un){return R=void 0,G||(ce=_e),un||e.createKeywordTypeNode(124)}}function Pe(le){le=e.getParseTreeNode(le);switch(le.kind){case 243:case 248:case 245:case 244:case 246:case 247:return!D.isDeclarationVisible(le);case 241:return!a(le);case 252:case 253:case 259:case 258:return!1}return!1}function a(le){return e.isOmittedExpression(le)?!1:e.isBindingPattern(le.name)?e.some(le.name.elements,a):D.isDeclarationVisible(le)}function Ze(le,oe,Cn){if(e.hasModifier(le,8))return;var yn=e.map(oe,function(_e){return ve(_e,Cn)});return yn?e.createNodeArray(yn,oe.hasTrailingComma):void 0}function In(le,oe){var Cn;if(!oe){var yn=e.getThisParameter(le);yn&&(Cn=[ve(yn)])}if(e.isSetAccessorDeclaration(le)){var _e=void 0;if(!oe){var dn=e.getSetAccessorValueParameter(le);if(dn){var un=nn(le,D.getAllAccessorDeclarations(le));_e=ve(dn,void 0,un)}}_e||(_e=e.createParameter(void 0,void 0,void 0,"value")),Cn=e.append(Cn,_e)}return e.createNodeArray(Cn||e.emptyArray)}function et(le,oe){return e.hasModifier(le,8)?void 0:e.visitNodes(oe,Qe)}function ae(le){return e.isSourceFile(le)||e.isTypeAliasDeclaration(le)||e.isModuleDeclaration(le)||e.isClassDeclaration(le)||e.isInterfaceDeclaration(le)||e.isFunctionLike(le)||e.isIndexSignatureDeclaration(le)||e.isMappedTypeNode(le)}function fe(le,oe){var Cn=D.isEntityNameVisible(le,oe);O(Cn),T(D.getTypeReferenceDirectivesForEntityName(le))}function Le(le,oe){return e.hasJSDocNodes(le)&&e.hasJSDocNodes(oe)&&(le.jsDoc=oe.jsDoc),e.setCommentRange(le,e.getCommentRange(oe))}function Je(le,oe){if(!oe)return;if(P=P||le.kind!==248&&le.kind!==187,e.isStringLiteralLike(oe))if(C){var Cn=e.getExternalModuleNameFromDeclaration(Te.getEmitHost(),D,le);if(Cn)return e.createLiteral(Cn)}else{var yn=D.getSymbolOfExternalModuleSpecifier(oe);yn&&(H||(H=[])).push(yn)}return oe}function $e(le){if(!D.isDeclarationVisible(le))return;if(le.moduleReference.kind===263){var oe=e.getExternalModuleImportEqualsDeclarationExpression(le);return e.updateImportEqualsDeclaration(le,void 0,le.modifiers,le.name,e.updateExternalModuleReference(le.moduleReference,Je(le,oe)))}else{var Cn=ce;return ce=e.createGetSymbolAccessibilityDiagnosticForNode(le),fe(le.moduleReference,$),ce=Cn,le}}function Fe(le){if(!le.importClause)return e.updateImportDeclaration(le,void 0,le.modifiers,le.importClause,Je(le,le.moduleSpecifier));var oe=le.importClause&&le.importClause.name&&D.isDeclarationVisible(le.importClause)?le.importClause.name:void 0;if(!le.importClause.namedBindings)return oe&&e.updateImportDeclaration(le,void 0,le.modifiers,e.updateImportClause(le.importClause,oe,void 0),Je(le,le.moduleSpecifier));if(le.importClause.namedBindings.kind===255){var Cn=D.isDeclarationVisible(le.importClause.namedBindings)?le.importClause.namedBindings:void 0;return oe||Cn?e.updateImportDeclaration(le,void 0,le.modifiers,e.updateImportClause(le.importClause,oe,Cn),Je(le,le.moduleSpecifier)):void 0}var yn=e.mapDefined(le.importClause.namedBindings.elements,function(_e){return D.isDeclarationVisible(_e)?_e:void 0});if(yn&&yn.length||oe)return e.updateImportDeclaration(le,void 0,le.modifiers,e.updateImportClause(le.importClause,oe,yn&&yn.length?e.updateNamedImports(le.importClause.namedBindings,yn):void 0),Je(le,le.moduleSpecifier))}function cn(le){for(;e.length(z);){var oe=z.shift();if(!e.isLateVisibilityPaintedStatement(oe))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+(e.SyntaxKind?e.SyntaxKind[oe.kind]:oe.kind));var Cn=x;x=oe.parent&&e.isSourceFile(oe.parent)&&!(e.isExternalModule(oe.parent)&&C);var yn=F(oe);x=Cn,se.set(""+e.getOriginalNodeId(oe),yn)}return e.visitNodes(le,_e);function _e(dn){if(e.isLateVisibilityPaintedStatement(dn)){var un=""+e.getOriginalNodeId(dn);if(se.has(un)){var Rn=se.get(un);return se.delete(un),Rn&&((e.isArray(Rn)?e.some(Rn,e.needsScopeMarker):e.needsScopeMarker(Rn))&&(h=!0),e.isSourceFile(dn.parent)&&(e.isArray(Rn)?e.some(Rn,e.isExternalModuleIndicator):e.isExternalModuleIndicator(Rn))&&(P=!0)),Rn}}return dn}}function Qe(le){if(Ne(le))return;if(e.isDeclaration(le)){if(Pe(le))return;if(e.hasDynamicName(le)&&!D.isLateBound(e.getParseTreeNode(le)))return}if(e.isFunctionLike(le)&&D.isImplementationOfOverload(le))return;if(e.isSemicolonClassElement(le))return;var oe;ae(le)&&(oe=$,$=le);var Cn=ce,yn=e.canProduceDiagnostics(le),_e=G,dn=(le.kind===172||le.kind===185)&&le.parent.kind!==246;if((e.isMethodDeclaration(le)||e.isMethodSignature(le))&&e.hasModifier(le,8))return le.symbol&&le.symbol.declarations&&le.symbol.declarations[0]!==le?void 0:Kn(e.createProperty(void 0,wn(le),le.name,void 0,void 0,void 0));if(yn&&!G&&(ce=e.createGetSymbolAccessibilityDiagnosticForNode(le)),e.isTypeQueryNode(le)&&fe(le.exprName,$),dn&&(G=!0),N(le))switch(le.kind){case 215:{(e.isEntityName(le.expression)||e.isEntityNameExpression(le.expression))&&fe(le.expression,$);var un=e.visitEachChild(le,Qe,Te);return Kn(e.updateExpressionWithTypeArguments(un,e.parenthesizeTypeParameters(un.typeArguments),un.expression))}case 168:{fe(le.typeName,$);var un=e.visitEachChild(le,Qe,Te);return Kn(e.updateTypeReferenceNode(un,un.typeName,e.parenthesizeTypeParameters(un.typeArguments)))}case 165:return Kn(e.updateConstructSignature(le,et(le,le.typeParameters),Ze(le,le.parameters),j(le,le.type)));case 161:{var Rn=e.hasModifier(le,8),at=e.createSignatureDeclaration(161,Rn?void 0:et(le,le.typeParameters),Rn?void 0:Ze(le,le.parameters,0),void 0);return at.modifiers=e.createNodeArray(wn(le)),Kn(at)}case 160:{var Bn=e.createSignatureDeclaration(159,et(le,le.typeParameters),Ze(le,le.parameters),j(le,le.type));return Bn.name=le.name,Bn.modifiers=e.createNodeArray(wn(le)),Bn.questionToken=le.questionToken,Kn(Bn)}case 162:{var Rn=e.hasModifier(le,8),ut=nn(le,D.getAllAccessorDeclarations(le));return Kn(e.updateGetAccessor(le,void 0,wn(le),le.name,In(le,Rn),Rn?void 0:j(le,ut),void 0))}case 163:return Kn(e.updateSetAccessor(le,void 0,wn(le),le.name,In(le,e.hasModifier(le,8)),void 0));case 158:return Kn(e.updateProperty(le,void 0,wn(le),le.name,le.questionToken,e.hasModifier(le,8)?void 0:j(le,le.type),w(le)));case 157:return Kn(e.updatePropertySignature(le,wn(le),le.name,le.questionToken,e.hasModifier(le,8)?void 0:j(le,le.type),w(le)));case 159:return Kn(e.updateMethodSignature(le,et(le,le.typeParameters),Ze(le,le.parameters),j(le,le.type),le.name,le.questionToken));case 164:return Kn(e.updateCallSignature(le,et(le,le.typeParameters),Ze(le,le.parameters),j(le,le.type)));case 166:return Kn(e.updateIndexSignature(le,void 0,wn(le),Ze(le,le.parameters),e.visitNode(le.type,Qe)||e.createKeywordTypeNode(124)));case 241:return e.isBindingPattern(le.name)?L(le.name):(dn=!0,G=!0,Kn(e.updateVariableDeclaration(le,le.name,j(le,le.type),w(le))));case 154:return ln(le)&&(le.default||le.constraint)?Kn(e.updateTypeParameterDeclaration(le,le.name,void 0,void 0)):Kn(e.visitEachChild(le,Qe,Te));case 179:{var ct=e.visitNode(le.checkType,Qe),ot=e.visitNode(le.extendsType,Qe),dt=$;$=le.trueType;var Ct=e.visitNode(le.trueType,Qe);$=dt;var st=e.visitNode(le.falseType,Qe);return Kn(e.updateConditionalTypeNode(le,ct,ot,Ct,st))}case 169:return Kn(e.updateFunctionTypeNode(le,e.visitNodes(le.typeParameters,Qe),Ze(le,le.parameters),e.visitNode(le.type,Qe)));case 170:return Kn(e.updateConstructorTypeNode(le,e.visitNodes(le.typeParameters,Qe),Ze(le,le.parameters),e.visitNode(le.type,Qe)));case 187:return e.isLiteralImportTypeNode(le)?Kn(e.updateImportTypeNode(le,e.updateLiteralTypeNode(le.argument,Je(le,le.argument.literal)),le.qualifier,e.visitNodes(le.typeArguments,Qe,e.isTypeNode),le.isTypeOf)):Kn(le);default:e.Debug.assertNever(le,"Attempted to process unhandled node kind: "+e.SyntaxKind[le.kind])}return Kn(e.visitEachChild(le,Qe,Te));function Kn(Ie){return Ie&&yn&&e.hasDynamicName(le)&&Se(le),ae(le)&&($=oe),yn&&!G&&(ce=Cn),dn&&(G=_e),Ie===le?Ie:Ie&&e.setOriginalNode(Le(Ie,le),le)}}function ln(le){return le.parent.kind===160&&e.hasModifier(le.parent,8)}function ye(le){if(!Oe(le))return;if(Ne(le))return;switch(le.kind){case 259:return e.isSourceFile(le.parent)&&(P=!0),X=!0,e.updateExportDeclaration(le,void 0,le.modifiers,le.exportClause,Je(le,le.moduleSpecifier));case 258:{if(e.isSourceFile(le.parent)&&(P=!0),X=!0,le.expression.kind===75)return le;var oe=e.createOptimisticUniqueName("_default");ce=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:le}};var Cn=e.createVariableDeclaration(oe,D.createTypeOfExpression(le.expression,le,Ee,be),void 0),yn=e.createVariableStatement(x?[e.createModifier(129)]:[],e.createVariableDeclarationList([Cn],2));return[yn,e.updateExportAssignment(le,le.decorators,le.modifiers,oe)]}}var _e=F(le);return se.set(""+e.getOriginalNodeId(le),_e),le}function ke(le){if(e.isImportEqualsDeclaration(le)||e.hasModifier(le,512))return le;var oe=e.getMutableClone(le),Cn=e.createModifiersFromModifierFlags(e.getModifierFlags(le)&(3071^1));return oe.modifiers=Cn.length?e.createNodeArray(Cn):void 0,oe}function F(le){if(Ne(le))return;switch(le.kind){case 252:return $e(le);case 253:return Fe(le)}if(e.isDeclaration(le)&&Pe(le))return;if(e.isFunctionLike(le)&&D.isImplementationOfOverload(le))return;var oe;ae(le)&&(oe=$,$=le);var Cn=e.canProduceDiagnostics(le),yn=ce;Cn&&(ce=e.createGetSymbolAccessibilityDiagnosticForNode(le));var _e=x;switch(le.kind){case 246:return Tt(e.updateTypeAliasDeclaration(le,void 0,wn(le),le.name,e.visitNodes(le.typeParameters,Qe,e.isTypeParameterDeclaration),e.visitNode(le.type,Qe,e.isTypeNode)));case 245:return Tt(e.updateInterfaceDeclaration(le,void 0,wn(le),le.name,et(le,le.typeParameters),pn(le.heritageClauses),e.visitNodes(le.members,Qe)));case 243:{var dn=Tt(e.updateFunctionDeclaration(le,void 0,wn(le),void 0,le.name,et(le,le.typeParameters),Ze(le,le.parameters),j(le,le.type),void 0));if(dn&&D.isExpandoFunctionDeclaration(le)){var un=D.getPropertiesOfContainerFunction(le),Rn=e.createModuleDeclaration(void 0,void 0,dn.name||e.createIdentifier("_default"),e.createModuleBlock([]),16);Rn.flags^=8,Rn.parent=$,Rn.locals=e.createSymbolTable(un),Rn.symbol=un[0].parent;var at=e.mapDefined(un,function(ht){if(!e.isPropertyAccessExpression(ht.valueDeclaration))return;ce=e.createGetSymbolAccessibilityDiagnosticForNode(ht.valueDeclaration);var bt=D.createTypeOfDeclaration(ht.valueDeclaration,Rn,Ee,be);ce=yn;var Ke=e.createVariableDeclaration(e.unescapeLeadingUnderscores(ht.escapedName),bt,void 0);return e.createVariableStatement(void 0,e.createVariableDeclarationList([Ke]))}),Bn=e.createModuleDeclaration(void 0,wn(le),le.name,e.createModuleBlock(at),16);if(!e.hasModifier(dn,512))return[dn,Bn];var ut=e.createModifiersFromModifierFlags(e.getModifierFlags(dn)&~513|2),ct=e.updateFunctionDeclaration(dn,void 0,ut,void 0,dn.name,dn.typeParameters,dn.parameters,dn.type,void 0),ot=e.updateModuleDeclaration(Bn,void 0,ut,Bn.name,Bn.body),dt=e.createExportAssignment(void 0,void 0,!1,Bn.name);return e.isSourceFile(le.parent)&&(P=!0),X=!0,[ct,ot,dt]}else return dn}case 248:{x=!1;var Ct=le.body;if(Ct&&Ct.kind===249){var st=h,Kn=X;X=!1,h=!1;var Ie=e.visitNodes(Ct.statements,ye),Ce=cn(Ie);le.flags&8388608&&(h=!1),!e.isGlobalScopeAugmentation(le)&&!Tn(Ce)&&!X&&(h?Ce=e.createNodeArray(Tr(Ce,[e.createEmptyExports()])):Ce=e.visitNodes(Ce,ke));var _n=e.updateModuleBlock(Ct,Ce);x=_e,h=st,X=Kn;var yt=wn(le);return Tt(e.updateModuleDeclaration(le,void 0,yt,e.isExternalModuleAugmentation(le)?Je(le,le.name):le.name,_n))}else{x=_e;var yt=wn(le);x=!1,e.visitNode(Ct,ye);var Dt=""+e.getOriginalNodeId(Ct),_n=se.get(Dt);return se.delete(Dt),Tt(e.updateModuleDeclaration(le,void 0,yt,le.name,_n))}}case 244:{var ut=e.createNodeArray(wn(le)),Ht=et(le,le.typeParameters),$t=e.getFirstConstructorWithBody(le),wr=void 0;if($t){var Yr=ce;wr=e.compact(e.flatMap($t.parameters,function(bt){if(!e.hasModifier(bt,92)||Ne(bt))return;if(ce=e.createGetSymbolAccessibilityDiagnosticForNode(bt),bt.name.kind===75)return Le(e.createProperty(void 0,wn(bt),bt.name,bt.questionToken,j(bt,bt.type),w(bt)),bt);return Ke(bt.name);function Ke(Pn){for(var $n,rr=0,xa=Pn.elements;rr<xa.length;rr++){var Fa=xa[rr];if(e.isOmittedExpression(Fa))continue;e.isBindingPattern(Fa.name)&&($n=e.concatenate($n,Ke(Fa.name))),$n=$n||[],$n.push(e.createProperty(void 0,wn(bt),Fa.name,void 0,j(Fa,void 0),void 0))}return $n}})),ce=Yr}var Hr=e.createNodeArray(e.concatenate(wr,e.visitNodes(le.members,Qe))),mt=e.getEffectiveBaseTypeNode(le);if(mt&&!e.isEntityNameExpression(mt.expression)&&mt.expression.kind!==99){var va=le.name?e.unescapeLeadingUnderscores(le.name.escapedText):"default",Lt=e.createOptimisticUniqueName(va+"_base");ce=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:mt,typeName:le.name}};var Wn=e.createVariableDeclaration(Lt,D.createTypeOfExpression(mt.expression,le,Ee,be),void 0),Vt=e.createVariableStatement(x?[e.createModifier(129)]:[],e.createVariableDeclarationList([Wn],2)),pt=e.createNodeArray(e.map(le.heritageClauses,function(bt){if(bt.token===89){var Ke=ce;ce=e.createGetSymbolAccessibilityDiagnosticForNode(bt.types[0]);var Pn=e.updateHeritageClause(bt,e.map(bt.types,function($n){return e.updateExpressionWithTypeArguments($n,e.visitNodes($n.typeArguments,Qe),Lt)}));return ce=Ke,Pn}return e.updateHeritageClause(bt,e.visitNodes(e.createNodeArray(e.filter(bt.types,function($n){return e.isEntityNameExpression($n.expression)||$n.expression.kind===99})),Qe))}));return[Vt,Tt(e.updateClassDeclaration(le,void 0,ut,le.name,Ht,pt,Hr))]}else{var pt=pn(le.heritageClauses);return Tt(e.updateClassDeclaration(le,void 0,ut,le.name,Ht,pt,Hr))}}case 224:return Tt(c(le));case 247:return Tt(e.updateEnumDeclaration(le,void 0,e.createNodeArray(wn(le)),le.name,e.createNodeArray(e.mapDefined(le.members,function(ht){if(Ne(ht))return;var bt=D.getConstantValue(ht);return Le(e.updateEnumMember(ht,ht.name,bt!==void 0?e.createLiteral(bt):void 0),ht)}))))}return e.Debug.assertNever(le,"Unhandled top-level node in declaration emit: "+e.SyntaxKind[le.kind]);function Tt(ht){return ae(le)&&($=oe),Cn&&(ce=yn),le.kind===248&&(x=_e),ht===le?ht:ht&&e.setOriginalNode(Le(ht,le),le)}}function c(le){if(!e.forEach(le.declarationList.declarations,a))return;var oe=e.visitNodes(le.declarationList.declarations,Qe);return e.length(oe)?e.updateVariableStatement(le,e.createNodeArray(wn(le)),e.updateVariableDeclarationList(le.declarationList,oe)):void 0}function L(le){return e.flatten(e.mapDefined(le.elements,function(oe){return te(oe)}))}function te(le){if(le.kind===214)return;if(le.name)return a(le)?e.isBindingPattern(le.name)?L(le.name):e.createVariableDeclaration(le.name,j(le,void 0),void 0):void 0}function Se(le){var oe;G||(oe=ce,ce=e.createGetSymbolAccessibilityDiagnosticForNodeName(le)),R=le.name,e.Debug.assert(D.isLateBound(e.getParseTreeNode(le)));var Cn=le,yn=Cn.name.expression;fe(yn,$),G||(ce=oe),R=void 0}function Ne(le){return!!k&&!!le&&qe(le,K)}function ze(le){return e.isExportAssignment(le)||e.isExportDeclaration(le)}function Tn(le){return e.some(le,ze)}function wn(le){var oe=e.getModifierFlags(le),Cn=jn(le);return oe===Cn?le.modifiers:e.createModifiersFromModifierFlags(Cn)}function jn(le){var oe=3071^(4|256),Cn=x&&!Be(le)?2:0,yn=le.parent.kind===288;return(!yn||C&&yn&&e.isExternalModule(le.parent))&&(oe^=2,Cn=0),ee(le,oe,Cn)}function nn(le,oe){var Cn=f(le);return!Cn&&le!==oe.firstAccessor&&(Cn=f(oe.firstAccessor),ce=e.createGetSymbolAccessibilityDiagnosticForNode(oe.firstAccessor)),!Cn&&oe.secondAccessor&&le!==oe.secondAccessor&&(Cn=f(oe.secondAccessor),ce=e.createGetSymbolAccessibilityDiagnosticForNode(oe.secondAccessor)),Cn}function pn(le){return e.createNodeArray(e.filter(e.map(le,function(oe){return e.updateHeritageClause(oe,e.visitNodes(e.createNodeArray(e.filter(oe.types,function(Cn){return e.isEntityNameExpression(Cn.expression)||oe.token===89&&Cn.expression.kind===99})),Qe))}),function(oe){return oe.types&&!!oe.types.length}))}}e.transformDeclarations=Ge;function Be(Te){return Te.kind===245}function he(Te,ie,ce){return e.createModifiersFromModifierFlags(ee(Te,ie,ce))}function ee(Te,ie,ce){ie===void 0&&(ie=3071^4),ce===void 0&&(ce=0);var x=e.getModifierFlags(Te)&ie|ce;return x&512&&!(x&1)&&(x^=1),x&512&&x&2&&(x^=2),x}function f(Te){if(Te)return Te.kind===162?Te.type:Te.parameters.length>0?Te.parameters[0].type:void 0}function J(Te){switch(Te.kind){case 158:case 157:return!e.hasModifier(Te,8);case 155:case 241:return!0}return!1}function Oe(Te){switch(Te.kind){case 243:case 248:case 252:case 245:case 244:case 246:case 247:case 224:case 253:case 259:case 258:return!0}return!1}function N(Te){switch(Te.kind){case 165:case 161:case 160:case 162:case 163:case 158:case 157:case 159:case 164:case 166:case 241:case 154:case 215:case 168:case 179:case 169:case 170:case 187:return!0}return!1}})(sn||(sn={}));var sn;(function(e){function o(ie){switch(ie){case e.ModuleKind.ESNext:case e.ModuleKind.ES2015:return e.transformES2015Module;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}var M;(function(ie){ie[ie.Uninitialized=0]="Uninitialized",ie[ie.Initialized=1]="Initialized",ie[ie.Completed=2]="Completed",ie[ie.Disposed=3]="Disposed"})(M||(M={}));var qe;(function(ie){ie[ie.Substitution=1]="Substitution",ie[ie.EmitNotifications=2]="EmitNotifications"})(qe||(qe={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray};function Ee(ie,ce,x){return{scriptTransformers:Ge(ie,ce,x),declarationTransformers:Be(ce)}}e.getTransformers=Ee;function Ge(ie,ce,x){if(x)return e.emptyArray;var C=ie.jsx,P=e.getEmitScriptTarget(ie),h=e.getEmitModuleKind(ie),X=[];return e.addRange(X,ce&&e.map(ce.before,f)),X.push(e.transformTypeScript),X.push(e.transformClassFields),C===2&&X.push(e.transformJsx),P<99&&X.push(e.transformESNext),P<6&&X.push(e.transformES2019),P<5&&X.push(e.transformES2018),P<4&&X.push(e.transformES2017),P<3&&X.push(e.transformES2016),P<2&&(X.push(e.transformES2015),X.push(e.transformGenerators)),X.push(o(h)),P<1&&X.push(e.transformES5),e.addRange(X,ce&&e.map(ce.after,f)),X}function Be(ie){var ce=[];return ce.push(e.transformDeclarations),e.addRange(ce,ie&&e.map(ie.afterDeclarations,J)),ce}function he(ie){return function(ce){return e.isBundle(ce)?ie.transformBundle(ce):ie.transformSourceFile(ce)}}function ee(ie,ce){return function(x){var C=ie(x);return typeof C=="function"?ce(C):he(C)}}function f(ie){return ee(ie,e.chainBundle)}function J(ie){return ee(ie,e.identity)}function Oe(ie,ce){return ce}e.noEmitSubstitution=Oe;function N(ie,ce,x){x(ie,ce)}e.noEmitNotification=N;function Te(ie,ce,x,C,P,h){for(var X=new Array(324),$,Q,z=[],se=[],G=0,H=!1,q,be=Oe,R=N,K=0,m=[],_={getCompilerOptions:function(){return x},getEmitResolver:function(){return ie},getEmitHost:function(){return ce},startLexicalEnvironment:Z,suspendLexicalEnvironment:Re,resumeLexicalEnvironment:we,endLexicalEnvironment:He,hoistVariableDeclaration:ue,hoistFunctionDeclaration:De,requestEmitHelper:ve,readEmitHelpers:je,enableSubstitution:O,enableEmitNotification:S,isSubstitutionEnabled:Y,isEmitNotificationEnabled:v,get onSubstituteNode(){return be},set onSubstituteNode(j){e.Debug.assert(K<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(j!==void 0,"Value must not be 'undefined'"),be=j},get onEmitNode(){return R},set onEmitNode(j){e.Debug.assert(K<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(j!==void 0,"Value must not be 'undefined'"),R=j},addDiagnostic:function(j){m.push(j)}},I=0,D=C;I<D.length;I++){var y=D[I];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(y)))}e.performance.mark("beforeTransform");var E=P.map(function(j){return j(_)}),k=function(j){for(var Pe=0,a=E;Pe<a.length;Pe++){var Ze=a[Pe];j=Ze(j)}return j};K=1;var T=e.map(C,h?k:ne);return K=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:T,substituteNode:pe,emitNodeWithNotification:U,dispose:w,diagnostics:m};function ne(j){return j&&(!e.isSourceFile(j)||!j.isDeclarationFile)?k(j):j}function O(j){e.Debug.assert(K<2,"Cannot modify the transformation context after transformation has completed."),X[j]|=1}function Y(j){return(X[j.kind]&1)!==0&&(e.getEmitFlags(j)&4)===0}function pe(j,Pe){return e.Debug.assert(K<3,"Cannot substitute a node after the result is disposed."),Pe&&Y(Pe)&&be(j,Pe)||Pe}function S(j){e.Debug.assert(K<2,"Cannot modify the transformation context after transformation has completed."),X[j]|=2}function v(j){return(X[j.kind]&2)!==0||(e.getEmitFlags(j)&2)!==0}function U(j,Pe,a){e.Debug.assert(K<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Pe&&(v(Pe)?R(j,Pe,a):a(j,Pe))}function ue(j){e.Debug.assert(K>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(K<2,"Cannot modify the lexical environment after transformation has completed.");var Pe=e.setEmitFlags(e.createVariableDeclaration(j),64);$?$.push(Pe):$=[Pe]}function De(j){e.Debug.assert(K>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(K<2,"Cannot modify the lexical environment after transformation has completed."),Q?Q.push(j):Q=[j]}function Z(){e.Debug.assert(K>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(K<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!H,"Lexical environment is suspended."),z[G]=$,se[G]=Q,G++,$=void 0,Q=void 0}function Re(){e.Debug.assert(K>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(K<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!H,"Lexical environment is already suspended."),H=!0}function we(){e.Debug.assert(K>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(K<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(H,"Lexical environment is not suspended."),H=!1}function He(){e.Debug.assert(K>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(K<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!H,"Lexical environment is suspended.");var j;if(($||Q)&&(Q&&(j=Tr(Q)),$)){var Pe=e.createVariableStatement(void 0,e.createVariableDeclarationList($));e.setEmitFlags(Pe,1048576),j?j.push(Pe):j=[Pe]}return G--,$=z[G],Q=se[G],G===0&&(z=[],se=[]),j}function ve(j){e.Debug.assert(K>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(K<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!j.scoped,"Cannot request a scoped emit helper."),q=e.append(q,j)}function je(){e.Debug.assert(K>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(K<2,"Cannot modify the transformation context after transformation has completed.");var j=q;return q=void 0,j}function w(){if(K<3){for(var j=0,Pe=C;j<Pe.length;j++){var a=Pe[j];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(a)))}$=void 0,z=void 0,Q=void 0,se=void 0,be=void 0,R=void 0,q=void 0,K=3}}}e.transformNodes=Te})(sn||(sn={}));var sn;(function(e){var o=q(),M={pos:-1,end:-1};function qe(m){return e.fileExtensionIs(m,".tsbuildinfo")}e.isBuildInfoFile=qe;function Ee(m,_,I,D,y,E){D===void 0&&(D=!1);var k=e.isArray(I)?I:e.getSourceFilesToEmit(m,I,D),T=m.getCompilerOptions();if(T.outFile||T.out){var ne=m.getPrependNodes();if(k.length||ne.length){var O=e.createBundle(k,ne),Y=_(he(O,m,D),O);if(Y)return Y}}else{if(!y)for(var pe=0,S=k;pe<S.length;pe++){var v=S[pe],Y=_(he(v,m,D),v);if(Y)return Y}if(E){var U=Ge(m.getCompilerOptions());if(U)return _({buildInfoPath:U},void 0)}}}e.forEachEmittedFile=Ee;function Ge(m){var _=m.configFilePath;if(!e.isIncrementalCompilation(m))return;if(m.tsBuildInfoFile)return m.tsBuildInfoFile;var I=m.outFile||m.out,D;if(I)D=e.removeFileExtension(I);else{if(!_)return;var y=e.removeFileExtension(_);D=m.outDir?m.rootDir?e.resolvePath(m.outDir,e.getRelativePathFromDirectory(m.rootDir,y,!0)):e.combinePaths(m.outDir,e.getBaseFileName(y)):y}return D+".tsbuildinfo"}e.getTsBuildInfoEmitOutputFilePath=Ge;function Be(m,_){var I=m.outFile||m.out,D=m.emitDeclarationOnly?void 0:I,y=D&&ee(D,m),E=_||e.getEmitDeclarations(m)?e.removeFileExtension(I)+".d.ts":void 0,k=E&&e.getAreDeclarationMapsEnabled(m)?E+".map":void 0,T=Ge(m);return{jsFilePath:D,sourceMapFilePath:y,declarationFilePath:E,declarationMapPath:k,buildInfoPath:T}}e.getOutputPathsForBundle=Be;function he(m,_,I){var D=_.getCompilerOptions();if(m.kind===289)return Be(D,I);var y=e.getOwnEmitOutputFilePath(m.fileName,_,f(m,D)),E=e.isJsonSourceFile(m),k=E&&e.comparePaths(m.fileName,y,_.getCurrentDirectory(),!_.useCaseSensitiveFileNames())===0,T=D.emitDeclarationOnly||k?void 0:y,ne=!T||e.isJsonSourceFile(m)?void 0:ee(T,D),O=I||e.getEmitDeclarations(D)&&!E?e.getDeclarationEmitOutputFilePath(m.fileName,_):void 0,Y=O&&e.getAreDeclarationMapsEnabled(D)?O+".map":void 0;return{jsFilePath:T,sourceMapFilePath:ne,declarationFilePath:O,declarationMapPath:Y,buildInfoPath:void 0}}e.getOutputPathsFor=he;function ee(m,_){return _.sourceMap&&!_.inlineSourceMap?m+".map":void 0}function f(m,_){if(e.isJsonSourceFile(m))return".json";if(_.jsx===1){if(e.isSourceFileJS(m)){if(e.fileExtensionIs(m.fileName,".jsx"))return".jsx"}else if(m.languageVariant===1)return".jsx"}return".js"}e.getOutputExtension=f;function J(m){return m.options.rootDir||e.getDirectoryPath(e.Debug.assertDefined(m.options.configFilePath))}function Oe(m,_,I,D){return D?e.resolvePath(D,e.getRelativePathFromDirectory(J(_),m,I)):m}function N(m,_,I){return e.Debug.assert(!e.fileExtensionIs(m,".d.ts")&&!e.fileExtensionIs(m,".json")),e.changeExtension(Oe(m,_,I,_.options.declarationDir||_.options.outDir),".d.ts")}e.getOutputDeclarationFileName=N;function Te(m,_,I){if(_.options.emitDeclarationOnly)return;var D=e.fileExtensionIs(m,".json"),y=e.changeExtension(Oe(m,_,I,_.options.outDir),D?".json":e.fileExtensionIs(m,".tsx")&&_.options.jsx===1?".jsx":".js");return!D||e.comparePaths(m,y,e.Debug.assertDefined(_.options.configFilePath),I)!==0?y:void 0}function ie(){var m;return{addOutput:_,getOutputs:I};function _(D){D&&(m||(m=[])).push(D)}function I(){return m||e.emptyArray}}function ce(m,_){var I=Be(m.options,!1),D=I.jsFilePath,y=I.sourceMapFilePath,E=I.declarationFilePath,k=I.declarationMapPath,T=I.buildInfoPath;_(D),_(y),_(E),_(k),_(T)}function x(m,_,I,D){if(e.fileExtensionIs(_,".d.ts"))return;var y=Te(_,m,I);if(D(y),e.fileExtensionIs(_,".json"))return;if(y&&m.options.sourceMap&&D(y+".map"),e.getEmitDeclarations(m.options)){var E=N(_,m,I);D(E),m.options.declarationMap&&D(E+".map")}}function C(m,_){var I=ie(),D=I.addOutput,y=I.getOutputs;if(m.options.outFile||m.options.out)ce(m,D);else{for(var E=0,k=m.fileNames;E<k.length;E++){var T=k[E];x(m,T,_,D)}D(Ge(m.options))}return y()}e.getAllProjectOutputs=C;function P(m,_,I){_=e.normalizePath(_),e.Debug.assert(e.contains(m.fileNames,_),"Expected fileName to be present in command line");var D=ie(),y=D.addOutput,E=D.getOutputs;return m.options.outFile||m.options.out?ce(m,y):x(m,_,I,y),E()}e.getOutputFileNames=P;function h(m,_){if(m.options.outFile||m.options.out){var I=Be(m.options,!1).jsFilePath;return e.Debug.assertDefined(I,"project "+m.options.configFilePath+" expected to have at least one output")}for(var D=0,y=m.fileNames;D<y.length;D++){var E=y[D];if(e.fileExtensionIs(E,".d.ts"))continue;var I=Te(E,m,_);if(I)return I;if(e.fileExtensionIs(E,".json"))continue;if(e.getEmitDeclarations(m.options))return N(E,m,_)}var k=Ge(m.options);return k||e.Debug.fail("project "+m.options.configFilePath+" expected to have at least one output")}e.getFirstProjectOutput=h;function X(m,_,I,D,y,E,k){var T=D.scriptTransformers,ne=D.declarationTransformers,O=_.getCompilerOptions(),Y=O.sourceMap||O.inlineSourceMap||e.getAreDeclarationMapsEnabled(O)?[]:void 0,pe=O.listEmittedFiles?[]:void 0,S=e.createDiagnosticCollection(),v=e.getNewLineCharacter(O,function(){return _.getNewLine()}),U=e.createTextWriter(v),ue=e.performance.createTimer("printTime","beforePrint","afterPrint"),De=ue.enter,Z=ue.exit,Re,we=!1,He;return De(),Ee(_,ve,e.getSourceFilesToEmit(_,I,k),k,E,!I),Z(),{emitSkipped:we,diagnostics:S.getDiagnostics(),emittedFiles:pe,sourceMaps:Y,exportedModulesFromDeclarationEmit:He};function ve(fe,Le){var Je=fe.jsFilePath,$e=fe.sourceMapFilePath,Fe=fe.declarationFilePath,cn=fe.declarationMapPath,Qe=fe.buildInfoPath,ln;Qe&&Le&&e.isBundle(Le)&&(ln=e.getDirectoryPath(e.getNormalizedAbsolutePath(Qe,_.getCurrentDirectory())),Re={commonSourceDirectory:ye(_.getCommonSourceDirectory()),sourceFiles:Le.sourceFiles.map(function(ke){return ye(e.getNormalizedAbsolutePath(ke.fileName,_.getCurrentDirectory()))})}),w(Le,Je,$e,ye),j(Le,Fe,cn,ye),je(Re,Qe),!we&&pe&&(y||(Je&&pe.push(Je),$e&&pe.push($e),Qe&&pe.push(Qe)),Fe&&pe.push(Fe),cn&&pe.push(cn));function ye(ke){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(ln,ke,_.getCanonicalFileName))}}function je(fe,Le){if(!Le||I||we)return;var Je=_.getProgramBuildInfo();if(_.isEmitBlocked(Le)||O.noEmit){we=!0;return}e.writeFile(_,S,Le,$({bundle:fe,program:Je,version:e.version}),!1)}function w(fe,Le,Je,$e){if(!fe||y||!Le)return;if(Le&&_.isEmitBlocked(Le)||O.noEmit){we=!0;return}var Fe=e.transformNodes(m,_,O,[fe],T,!1),cn={removeComments:O.removeComments,newLine:O.newLine,noEmitHelpers:O.noEmitHelpers,module:O.module,target:O.target,sourceMap:O.sourceMap,inlineSourceMap:O.inlineSourceMap,inlineSources:O.inlineSources,extendedDiagnostics:O.extendedDiagnostics,writeBundleFileInfo:!!Re,relativeToBuildInfo:$e},Qe=H(cn,{hasGlobalName:m.hasGlobalName,onEmitNode:Fe.emitNodeWithNotification,substituteNode:Fe.substituteNode});e.Debug.assert(Fe.transformed.length===1,"Should only see one output from the transform"),a(Le,Je,Fe.transformed[0],Qe,O),Fe.dispose(),Re&&(Re.js=Qe.bundleFileInfo)}function j(fe,Le,Je,$e){if(!fe)return;if(!Le){(y||O.emitDeclarationOnly)&&(we=!0);return}var Fe=e.isSourceFile(fe)?[fe]:fe.sourceFiles,cn=k?Fe:e.filter(Fe,e.isSourceFileNotJson),Qe=O.outFile||O.out?[e.createBundle(cn,e.isSourceFile(fe)?void 0:fe.prepends)]:cn;y&&!e.getEmitDeclarations(O)&&cn.forEach(Pe);var ln=e.transformNodes(m,_,O,Qe,ne,!1);if(e.length(ln.diagnostics))for(var ye=0,ke=ln.diagnostics;ye<ke.length;ye++){var F=ke[ye];S.add(F)}var c={removeComments:O.removeComments,newLine:O.newLine,noEmitHelpers:!0,module:O.module,target:O.target,sourceMap:O.sourceMap,inlineSourceMap:O.inlineSourceMap,extendedDiagnostics:O.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!Re,recordInternalSection:!!Re,relativeToBuildInfo:$e},L=H(c,{hasGlobalName:m.hasGlobalName,onEmitNode:ln.emitNodeWithNotification,substituteNode:ln.substituteNode}),te=!!ln.diagnostics&&!!ln.diagnostics.length||!!_.isEmitBlocked(Le)||!!O.noEmit;if(we=we||te,(!te||k)&&(e.Debug.assert(ln.transformed.length===1,"Should only see one output from the decl transform"),a(Le,Je,ln.transformed[0],L,{sourceMap:O.declarationMap,sourceRoot:O.sourceRoot,mapRoot:O.mapRoot,extendedDiagnostics:O.extendedDiagnostics}),k&&ln.transformed[0].kind===288)){var Se=ln.transformed[0];He=Se.exportedModulesFromDeclarationEmit}ln.dispose(),Re&&(Re.dts=L.bundleFileInfo)}function Pe(fe){if(e.isExportAssignment(fe)){fe.expression.kind===75&&m.collectLinkedAliases(fe.expression,!0);return}else if(e.isExportSpecifier(fe)){m.collectLinkedAliases(fe.propertyName||fe.name,!0);return}e.forEachChild(fe,Pe)}function a(fe,Le,Je,$e,Fe){var cn=Je.kind===289?Je:void 0,Qe=Je.kind===288?Je:void 0,ln=cn?cn.sourceFiles:[Qe],ye;if(Ze(Fe,Je)&&(ye=e.createSourceMapGenerator(_,e.getBaseFileName(e.normalizeSlashes(fe)),In(Fe),et(Fe,fe,Qe),Fe)),cn?$e.writeBundle(cn,U,ye):$e.writeFile(Qe,U,ye),ye){Y&&Y.push({inputSourceFileNames:ye.getSources(),sourceMap:ye.toJSON()});var ke=ae(Fe,ye,fe,Le,Qe);if(ke&&(U.isAtStartOfLine()||U.rawWrite(v),U.writeComment("//# sourceMappingURL="+ke)),Le){var F=ye.toString();e.writeFile(_,S,Le,F,!1,ln)}}else U.writeLine();e.writeFile(_,S,fe,U.getText(),!!O.emitBOM,ln),U.clear()}function Ze(fe,Le){return(fe.sourceMap||fe.inlineSourceMap)&&(Le.kind!==288||!e.fileExtensionIs(Le.fileName,".json"))}function In(fe){var Le=e.normalizeSlashes(fe.sourceRoot||"");return Le&&e.ensureTrailingDirectorySeparator(Le)}function et(fe,Le,Je){if(fe.sourceRoot)return _.getCommonSourceDirectory();if(fe.mapRoot){var $e=e.normalizeSlashes(fe.mapRoot);return Je&&($e=e.getDirectoryPath(e.getSourceFilePathInNewDir(Je.fileName,_,$e))),e.getRootLength($e)===0&&($e=e.combinePaths(_.getCommonSourceDirectory(),$e)),$e}return e.getDirectoryPath(e.normalizePath(Le))}function ae(fe,Le,Je,$e,Fe){if(fe.inlineSourceMap){var cn=Le.toString(),Qe=e.base64encode(e.sys,cn);return"data:application/json;base64,"+Qe}var ln=e.getBaseFileName(e.normalizeSlashes(e.Debug.assertDefined($e)));if(fe.mapRoot){var ye=e.normalizeSlashes(fe.mapRoot);return Fe&&(ye=e.getDirectoryPath(e.getSourceFilePathInNewDir(Fe.fileName,_,ye))),e.getRootLength(ye)===0?(ye=e.combinePaths(_.getCommonSourceDirectory(),ye),e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(Je)),e.combinePaths(ye,ln),_.getCurrentDirectory(),_.getCanonicalFileName,!0)):e.combinePaths(ye,ln)}return ln}}e.emitFiles=X;function $(m){return JSON.stringify(m,void 0,2)}e.getBuildInfoText=$;function Q(m){return JSON.parse(m)}e.getBuildInfo=Q,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:function(m){return!1},collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented};function z(m,_,I){var D=m.sourceFiles.map(function(E){var k=e.createNode(288,0,0);return k.fileName=e.getRelativePathFromDirectory(I.getCurrentDirectory(),e.getNormalizedAbsolutePath(E,_),!I.useCaseSensitiveFileNames()),k.text="",k.statements=e.createNodeArray(),k}),y=e.Debug.assertDefined(m.js);return e.forEach(y.sources&&y.sources.prologues,function(E){var k=D[E.file];k.text=E.text,k.end=E.text.length,k.statements=e.createNodeArray(E.directives.map(function(T){var ne=e.createNode(225,T.pos,T.end);return ne.expression=e.createNode(10,T.expression.pos,T.expression.end),ne.expression.text=T.expression.text,ne}))}),D}function se(m,_,I,D){var y=Be(m.options,!1),E=y.buildInfoPath,k=y.jsFilePath,T=y.sourceMapFilePath,ne=y.declarationFilePath,O=y.declarationMapPath,Y=_.readFile(e.Debug.assertDefined(E));if(!Y)return E;var pe=_.readFile(e.Debug.assertDefined(k));if(!pe)return k;var S=T&&_.readFile(T);if(T&&!S||m.options.inlineSourceMap)return T||"inline sourcemap decoding";var v=ne&&_.readFile(ne);if(ne&&!v)return ne;var U=O&&_.readFile(O);if(O&&!U||m.options.inlineSourceMap)return O||"inline sourcemap decoding";var ue=Q(Y);if(!ue.bundle||!ue.bundle.js||v&&!ue.bundle.dts)return E;var De=e.getDirectoryPath(e.getNormalizedAbsolutePath(E,_.getCurrentDirectory())),Z=e.createInputFiles(pe,v,T,S,O,U,k,ne,E,ue,!0),Re=[],we=e.createPrependNodes(m.projectReferences,I,function(je){return _.readFile(je)}),He=z(ue.bundle,De,_),ve={getPrependNodes:e.memoize(function(){return Tr(we,[Z])}),getCanonicalFileName:_.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(ue.bundle.commonSourceDirectory,De)},getCompilerOptions:function(){return m.options},getCurrentDirectory:function(){return _.getCurrentDirectory()},getNewLine:function(){return _.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return He},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(je,w,j){switch(je){case k:if(pe===w)return;break;case T:if(S===w)return;break;case E:var Pe=Q(w);Pe.program=ue.program;var a=ue.bundle,Ze=a.js,In=a.dts,et=a.sourceFiles;Pe.bundle.js.sources=Ze.sources,In&&(Pe.bundle.dts.sources=In.sources),Pe.bundle.sourceFiles=et,Re.push({name:je,text:$(Pe),writeByteOrderMark:j});return;case ne:if(v===w)return;break;case O:if(U===w)return;break;default:e.Debug.fail("Unexpected path: "+je)}Re.push({name:je,text:w,writeByteOrderMark:j})},isEmitBlocked:e.returnFalse,readFile:function(je){return _.readFile(je)},fileExists:function(je){return _.fileExists(je)},directoryExists:_.directoryExists&&function(je){return _.directoryExists(je)},useCaseSensitiveFileNames:function(){return _.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap()};return X(e.notImplementedResolver,ve,void 0,e.getTransformers(m.options,D)),Re}e.emitUsingBuildInfo=se;var G;(function(m){m[m.Notification=0]="Notification",m[m.Substitution=1]="Substitution",m[m.Comments=2]="Comments",m[m.SourceMaps=3]="SourceMaps",m[m.Emit=4]="Emit"})(G||(G={}));function H(m,_){m===void 0&&(m={}),_===void 0&&(_={});var I=_.hasGlobalName,D=_.onEmitNode,y=D===void 0?e.noEmitNotification:D,E=_.substituteNode,k=E===void 0?e.noEmitSubstitution:E,T=_.onBeforeEmitNodeArray,ne=_.onAfterEmitNodeArray,O=_.onBeforeEmitToken,Y=_.onAfterEmitToken,pe=!!m.extendedDiagnostics,S=e.getNewLineCharacter(m),v=e.getEmitModuleKind(m),U=e.createMap(),ue,De,Z,Re,we,He,ve,je,w,j,Pe=vc,a,Ze=m.writeBundleFileInfo?{sections:[]}:void 0,In=Ze?e.Debug.assertDefined(m.relativeToBuildInfo):void 0,et=m.recordInternalSection,ae=0,fe="text",Le=!0,Je,$e,Fe=-1,cn=-1,Qe=-1,ln=-1,ye,ke,F=!1,c=!!m.removeComments,L,te,Se=e.performance.createTimerIf(pe,"commentTime","beforeComment","afterComment"),Ne=Se.enter,ze=Se.exit;return st(),{printNode:Tn,printList:wn,printFile:nn,printBundle:jn,writeNode:le,writeList:oe,writeFile:Bn,writeBundle:Rn,bundleFileInfo:Ze};function Tn(p,Ue,Nn){switch(p){case 0:e.Debug.assert(e.isSourceFile(Ue),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(Ue),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(Ue),"Expected an Expression node.");break}switch(Ue.kind){case 288:return nn(Ue);case 289:return jn(Ue);case 290:return pn(Ue)}return le(p,Ue,Nn,ut()),ct()}function wn(p,Ue,Nn){return oe(p,Ue,Nn,ut()),ct()}function jn(p){return Rn(p,ut(),void 0),ct()}function nn(p){return Bn(p,ut(),void 0),ct()}function pn(p){return at(p,ut()),ct()}function le(p,Ue,Nn,vt){var Sr=w;Ct(vt,void 0),ot(p,Ue,Nn),st(),w=Sr}function oe(p,Ue,Nn,vt){var Sr=w;Ct(vt,void 0),Nn&&dt(Nn),zr(M,Ue,p),st(),w=Sr}function Cn(){return w.getTextPosWithWriteLine?w.getTextPosWithWriteLine():w.getTextPos()}function yn(p,Ue,Nn){var vt=e.lastOrUndefined(Ze.sections);vt&&vt.kind===Nn?vt.end=Ue:Ze.sections.push({pos:p,end:Ue,kind:Nn})}function _e(p){if(et&&Ze&&ue&&(e.isDeclaration(p)||e.isVariableStatement(p))&&e.isInternalDeclaration(p,ue)&&fe!=="internal"){var Ue=fe;return un(w.getTextPos()),ae=Cn(),fe="internal",Ue}return}function dn(p){p&&(un(w.getTextPos()),ae=Cn(),fe=p)}function un(p){return ae<p?(yn(ae,p,fe),!0):!1}function Rn(p,Ue,Nn){var vt;a=!1;var Sr=w;Ct(Ue,Nn),$r(p),fr(p),va(p),V(p);for(var Zr=0,aa=p.prepends;Zr<aa.length;Zr++){var fi=aa[Zr];Go();var W=w.getTextPos(),fn=Ze&&Ze.sections;if(fn&&(Ze.sections=[]),ot(4,fi,void 0),Ze){var Un=Ze.sections;Ze.sections=fn,fi.oldFileOfCurrentEmit?(vt=Ze.sections).push.apply(vt,Un):(Un.forEach(function(xe){return e.Debug.assert(e.isBundleFileTextLike(xe))}),Ze.sections.push({pos:W,end:w.getTextPos(),kind:"prepend",data:In(fi.fileName),texts:Un}))}}ae=Cn();for(var Et=0,pr=p.sourceFiles;Et<pr.length;Et++){var Xr=pr[Et];ot(0,Xr,Xr)}if(Ze&&p.sourceFiles.length){var ei=w.getTextPos();if(un(ei)){var ps=hr(p);ps&&(Ze.sources||(Ze.sources={}),Ze.sources.prologues=ps);var u=mt(p);u&&(Ze.sources||(Ze.sources={}),Ze.sources.helpers=u)}}st(),w=Sr}function at(p,Ue){var Nn=w;Ct(Ue,void 0),ot(4,p,void 0),st(),w=Nn}function Bn(p,Ue,Nn){a=!0;var vt=w;Ct(Ue,Nn),$r(p),fr(p),ot(0,p,p),st(),w=vt}function ut(){return j||(j=e.createTextWriter(S))}function ct(){var p=j.getText();return j.clear(),p}function ot(p,Ue,Nn){Nn&&dt(Nn),yt(p,Ue)}function dt(p){ue=p,ye=void 0,ke=void 0,p&&Dn(p)}function Ct(p,Ue){p&&m.omitTrailingSemicolon&&(p=e.getTrailingSemicolonDeferringWriter(p)),w=p,Je=Ue,Le=!w||!Je}function st(){De=[],Z=[],Re=e.createMap(),we=[],He=0,ve=[],ue=void 0,ye=void 0,ke=void 0,L=void 0,te=void 0,Ct(void 0,void 0)}function Kn(){return ye||(ye=e.getLineStarts(ue))}function Ie(p){if(p===void 0)return;var Ue=_e(p),Nn=yt(4,p);return dn(Ue),Nn}function Ce(p){return p===void 0?void 0:yt(2,p)}function _n(p){return p===void 0?void 0:yt(1,p)}function yt(p,Ue){var Nn=L,vt=te;L=Ue,te=void 0;var Sr=Dt(0,Ue);Sr(p,Ue),e.Debug.assert(L===Ue);var Zr=te;return L=Nn,te=vt,Zr||Ue}function Dt(p,Ue){switch(p){case 0:if(y!==e.noEmitNotification)return $t;case 1:if(k!==e.noEmitSubstitution)return Hr;case 2:if(!c&&Ue.kind!==288)return Zo;case 3:if(!Le&&Ue.kind!==288&&!e.isInJsonFile(Ue))return Rd;case 4:return wr;default:return e.Debug.assertNever(p)}}function Ht(p,Ue){return Dt(p+1,Ue)}function $t(p,Ue){e.Debug.assert(L===Ue);var Nn=Ht(0,Ue);y(p,Ue,Nn),e.Debug.assert(L===Ue)}function wr(p,Ue){if(e.Debug.assert(L===Ue||te===Ue),p===0)return b(e.cast(Ue,e.isSourceFile));if(p===2)return Ke(e.cast(Ue,e.isIdentifier));if(p===3)return Yr(e.cast(Ue,e.isTypeParameterDeclaration));if(p===5)return e.Debug.assertNode(Ue,e.isEmptyStatement),Cs(!0);if(p===4){if(e.isKeyword(Ue.kind))return bc(Ue,ya);switch(Ue.kind){case 15:case 16:case 17:return Vt(Ue);case 290:case 284:return pt(Ue);case 283:return Tt(Ue);case 285:case 286:return ht(Ue);case 287:return bt(Ue);case 75:return Ke(Ue);case 152:return Pn(Ue);case 153:return rr(Ue);case 154:return xa(Ue);case 155:return Fa(Ue);case 156:return ri(Ue);case 157:return Si(Ue);case 158:return xi(Ue);case 159:return vi(Ue);case 160:return Oi(Ue);case 161:return Ja(Ue);case 162:case 163:return Ka(Ue);case 164:return ua(Ue);case 165:return bi(Ue);case 166:return Vo(Ue);case 167:return Mo(Ue);case 168:return uo(Ue);case 169:return ci(Ue);case 298:return Gi(Ue);case 170:return _o(Ue);case 171:return Ri(Ue);case 172:return xt(Ue);case 173:return Kt(Ue);case 174:return Jr(Ue);case 175:return _a(Ue);case 177:return La(Ue);case 178:return qr(Ue);case 179:return pi(Ue);case 180:return Li(Ue);case 181:return mi(Ue);case 215:return ml(Ue);case 182:return da();case 183:return en(Ue);case 184:return vn(Ue);case 185:return Ln(Ue);case 186:return Vn(Ue);case 187:return Mt(Ue);case 293:cr("*");return;case 294:cr("?");return;case 295:return ji(Ue);case 296:return Ro(Ue);case 297:return Ao(Ue);case 176:case 299:return yr(Ue);case 188:return tr(Ue);case 189:return dr(Ue);case 190:return Pr(Ue);case 220:return hl(Ue);case 221:return wo();case 222:return Ul(Ue);case 224:return po(Ue);case 223:return Cs(!1);case 225:return Ds(Ue);case 226:return _s(Ue);case 227:return Ks(Ue);case 228:return qs(Ue);case 229:return $s(Ue);case 230:return el(Ue);case 231:return nl(Ue);case 232:return Yn(Ue);case 233:return gt(Ue);case 234:return Xt(Ue);case 235:return _r(Ue);case 236:return Kr(Ue);case 237:return Dr(Ue);case 238:return Ir(Ue);case 239:return Mr(Ue);case 240:return Er(Ue);case 241:return pa(Ue);case 242:return Ca(Ue);case 243:return Ma(Ue);case 244:return Ho(Ue);case 245:return vs(Ue);case 246:return me(Ue);case 247:return En(Ue);case 248:return Zn(Ue);case 249:return Gt(Ue);case 250:return vr(Ue);case 251:return tl(Ue);case 252:return ga(Ue);case 253:return qa(Ue);case 254:return wi(Ue);case 255:return eo(Ue);case 256:return na(Ue);case 257:return Lr(Ue);case 258:return Eo(Ue);case 259:return Uo(Ue);case 260:return Qo(Ue);case 261:return lo(Ue);case 262:return;case 263:return Nc(Ue);case 11:return Js(Ue);case 266:case 269:return rl(Ue);case 267:case 270:return Oc(Ue);case 271:return Pc(Ue);case 272:return au(Ue);case 273:return iu(Ue);case 274:return Zl(Ue);case 275:return Mc(Ue);case 276:return Nl(Ue);case 277:return Rc(Ue);case 278:return $l(Ue);case 279:return yc(Ue);case 280:return ou(Ue);case 281:return Lu(Ue);case 282:return su(Ue);case 310:case 316:return Vc(Ue);case 311:case 313:case 312:case 309:return cu(Ue);case 305:return Fc(Ue);case 314:return Gc(Ue);case 315:return _c(Ue);case 308:return Bc(Ue);case 303:return ec(Ue);case 302:return du(Ue);case 307:case 304:return uu(Ue);case 301:return lu(Ue)}if(e.isExpression(Ue))p=1,k!==e.noEmitSubstitution&&(te=Ue=k(p,Ue));else if(e.isToken(Ue))return bc(Ue,cr)}if(p===1)switch(Ue.kind){case 8:case 9:return Wn(Ue);case 10:case 13:case 14:return Vt(Ue);case 75:return Ke(Ue);case 90:case 99:case 101:case 105:case 103:case 95:bc(Ue,ya);return;case 191:return za(Ue);case 192:return Ia(Ue);case 193:return Ii(Ue);case 194:return hi(Ue);case 195:return Xe(Ue);case 196:return qn(Ue);case 197:return ge(Ue);case 198:return hn(Ue);case 199:return Hn(Ue);case 200:return de(Ue);case 201:return rn(Ue);case 202:return Qn(Ue);case 203:return lt(Ue);case 204:return Ft(Ue);case 205:return on(Ue);case 206:return kr(Ue);case 207:return Wa(Ue);case 208:return to(Ue);case 209:return ha(Ue);case 210:return Yo(Ue);case 211:return ko(Ue);case 212:return ks(Ue);case 213:return Rs(Ue);case 214:return;case 216:return Fs(Ue);case 217:return Il(Ue);case 218:return $o(Ue);case 264:return _l(Ue);case 265:return gc(Ue);case 268:return Ql(Ue);case 319:return zn(Ue);case 320:return kt(Ue)}}function Yr(p){Ie(p.name),ar(),ya("in"),ar(),Ie(p.constraint)}function Hr(p,Ue){e.Debug.assert(L===Ue||te===Ue);var Nn=Ht(1,Ue);te=k(p,Ue),Nn(p,te),e.Debug.assert(L===Ue||te===Ue)}function mt(p){var Ue;if(v===e.ModuleKind.None||m.noEmitHelpers)return;for(var Nn=e.createMap(),vt=0,Sr=p.sourceFiles;vt<Sr.length;vt++){var Zr=Sr[vt],aa=e.getExternalHelpersModuleName(Zr)!==void 0,fi=Lt(Zr);if(!fi)continue;for(var W=0,fn=fi;W<fn.length;W++){var Un=fn[W];!Un.scoped&&!aa&&!Nn.get(Un.name)&&(Nn.set(Un.name,!0),(Ue||(Ue=[])).push(Un.name))}}return Ue}function va(p){var Ue=!1,Nn=p.kind===289?p:void 0;if(Nn&&v===e.ModuleKind.None)return;for(var vt=Nn?Nn.prepends.length:0,Sr=Nn?Nn.sourceFiles.length+vt:1,Zr=0;Zr<Sr;Zr++){var aa=Nn?Zr<vt?Nn.prepends[Zr]:Nn.sourceFiles[Zr-vt]:p,fi=e.isSourceFile(aa)?aa:e.isUnparsedSource(aa)?void 0:ue,W=m.noEmitHelpers||!!fi&&e.hasRecordedExternalHelpers(fi),fn=(e.isSourceFile(aa)||e.isUnparsedSource(aa))&&!a,Un=e.isUnparsedSource(aa)?aa.helpers:Lt(aa);if(Un)for(var Et=0,pr=Un;Et<pr.length;Et++){var Xr=pr[Et];if(Xr.scoped){if(Nn)continue}else{if(W)continue;if(fn){if(U.get(Xr.name))continue;U.set(Xr.name,!0)}}var ei=Cn();typeof Xr.text=="string"?fu(Xr.text):fu(Xr.text(Vs)),Ze&&Ze.sections.push({pos:ei,end:w.getTextPos(),kind:"emitHelpers",data:Xr.name}),Ue=!0}}return Ue}function Lt(p){var Ue=e.getEmitHelpers(p);return Ue&&e.stableSort(Ue,e.compareEmitHelpers)}function Wn(p){Vt(p)}function Vt(p){var Ue=wa(p,m.neverAsciiEscape);(m.sourceMap||m.inlineSourceMap)&&(p.kind===10||e.isTemplateLiteralKind(p.kind))?fd(Ue):Iu(Ue)}function pt(p){for(var Ue=0,Nn=p.texts;Ue<Nn.length;Ue++){var vt=Nn[Ue];Go(),Ie(vt)}}function Tt(p){w.rawWrite(p.parent.text.substring(p.pos,p.end))}function ht(p){var Ue=Cn();Tt(p),Ze&&yn(Ue,w.getTextPos(),p.kind===285?"text":"internal")}function bt(p){var Ue=Cn();if(Tt(p),Ze){var Nn=e.clone(p.section);Nn.pos=Ue,Nn.end=w.getTextPos(),Ze.sections.push(Nn)}}function Ke(p){var Ue=p.symbol?nc:Pe;Ue(Ol(p,!1),p.symbol),zr(p,p.typeArguments,53776)}function Pn(p){$n(p.left),cr("."),Ie(p.right)}function $n(p){p.kind===75?_n(p):Ie(p)}function rr(p){cr("["),_n(p.expression),cr("]")}function xa(p){Ie(p.name),p.constraint&&(ar(),ya("extends"),ar(),Ie(p.constraint)),p.default&&(ar(),Io("="),ar(),Ie(p.default))}function Fa(p){sa(p,p.decorators),ra(p,p.modifiers),Ie(p.dotDotDotToken),ba(p.name,tc),Ie(p.questionToken),p.parent&&p.parent.kind===298&&!p.name?Ie(p.type):Ba(p.type),Ai(p.initializer,p.type?p.type.end:p.questionToken?p.questionToken.end:p.name?p.name.end:p.modifiers?p.modifiers.end:p.decorators?p.decorators.end:p.pos,p)}function ri(p){cr("@"),_n(p.expression)}function Si(p){sa(p,p.decorators),ra(p,p.modifiers),ba(p.name,il),Ie(p.questionToken),Ba(p.type),jo()}function xi(p){sa(p,p.decorators),ra(p,p.modifiers),Ie(p.name),Ie(p.questionToken),Ie(p.exclamationToken),Ba(p.type),Ai(p.initializer,p.type?p.type.end:p.questionToken?p.questionToken.end:p.name.end,p),jo()}function vi(p){Bs(p),sa(p,p.decorators),ra(p,p.modifiers),Ie(p.name),Ie(p.questionToken),Ha(p,p.typeParameters),ti(p,p.parameters),Ba(p.type),jo(),qt(p)}function Oi(p){sa(p,p.decorators),ra(p,p.modifiers),Ie(p.asteriskToken),Ie(p.name),Ie(p.questionToken),di(p,Lo)}function Ja(p){ra(p,p.modifiers),ya("constructor"),di(p,Lo)}function Ka(p){sa(p,p.decorators),ra(p,p.modifiers),ya(p.kind===162?"get":"set"),ar(),Ie(p.name),di(p,Lo)}function ua(p){Bs(p),sa(p,p.decorators),ra(p,p.modifiers),Ha(p,p.typeParameters),ti(p,p.parameters),Ba(p.type),jo(),qt(p)}function bi(p){Bs(p),sa(p,p.decorators),ra(p,p.modifiers),ya("new"),ar(),Ha(p,p.typeParameters),ti(p,p.parameters),Ba(p.type),jo(),qt(p)}function Vo(p){sa(p,p.decorators),ra(p,p.modifiers),Ls(p,p.parameters),Ba(p.type),jo()}function wo(){jo()}function Mo(p){p.assertsModifier&&(Ie(p.assertsModifier),ar()),Ie(p.parameterName),p.type&&(ar(),ya("is"),ar(),Ie(p.type))}function uo(p){Ie(p.typeName),Da(p,p.typeArguments)}function ci(p){Bs(p),Ha(p,p.typeParameters),Za(p,p.parameters),ar(),cr("=>"),ar(),Ie(p.type),qt(p)}function Gi(p){ya("function"),ti(p,p.parameters),cr(":"),Ie(p.type)}function ji(p){cr("?"),Ie(p.type)}function Ro(p){cr("!"),Ie(p.type)}function Ao(p){Ie(p.type),cr("=")}function _o(p){Bs(p),ya("new"),ar(),Ha(p,p.typeParameters),ti(p,p.parameters),ar(),cr("=>"),ar(),Ie(p.type),qt(p)}function Ri(p){ya("typeof"),ar(),Ie(p.exprName)}function xt(p){cr("{");var Ue=e.getEmitFlags(p)&1?768:32897;zr(p,p.members,Ue|524288),cr("}")}function Kt(p){Ie(p.elementType),cr("["),cr("]")}function yr(p){cr("..."),Ie(p.type)}function Jr(p){cr("["),zr(p,p.elementTypes,528),cr("]")}function _a(p){Ie(p.type),cr("?")}function La(p){zr(p,p.types,516)}function qr(p){zr(p,p.types,520)}function pi(p){Ie(p.checkType),ar(),ya("extends"),ar(),Ie(p.extendsType),ar(),cr("?"),ar(),Ie(p.trueType),ar(),cr(":"),ar(),Ie(p.falseType)}function Li(p){ya("infer"),ar(),Ie(p.typeParameter)}function mi(p){cr("("),Ie(p.type),cr(")")}function da(){ya("this")}function en(p){ts(p.operator,ya),ar(),Ie(p.type)}function vn(p){Ie(p.objectType),cr("["),Ie(p.indexType),cr("]")}function Ln(p){var Ue=e.getEmitFlags(p);cr("{"),Ue&1?ar():(Go(),Es()),p.readonlyToken&&(Ie(p.readonlyToken),p.readonlyToken.kind!==137&&ya("readonly"),ar()),cr("["),yt(3,p.typeParameter),cr("]"),p.questionToken&&(Ie(p.questionToken),p.questionToken.kind!==57&&cr("?")),cr(":"),ar(),Ie(p.type),jo(),Ue&1?ar():(Go(),mo()),cr("}")}function Vn(p){_n(p.literal)}function Mt(p){p.isTypeOf&&(ya("typeof"),ar()),ya("import"),cr("("),Ie(p.argument),cr(")"),p.qualifier&&(cr("."),Ie(p.qualifier)),Da(p,p.typeArguments)}function tr(p){cr("{"),zr(p,p.elements,525136),cr("}")}function dr(p){cr("["),zr(p,p.elements,524880),cr("]")}function Pr(p){Ie(p.dotDotDotToken),p.propertyName&&(Ie(p.propertyName),cr(":"),ar()),Ie(p.name),Ai(p.initializer,p.name.end,p)}function za(p){var Ue=p.elements,Nn=p.multiLine?65536:0;Zt(p,Ue,8914|Nn)}function Ia(p){e.forEach(p.properties,pu);var Ue=e.getEmitFlags(p)&65536;Ue&&Es();var Nn=p.multiLine?65536:0,vt=ue.languageVersion>=1&&!e.isJsonSourceFile(ue)?64:0;zr(p,p.properties,526226|vt|Nn),Ue&&mo()}function Ii(p){var Ue=e.cast(_n(p.expression),e.isExpression),Nn=e.getDotOrQuestionDotToken(p),vt=ac(p,p.expression,Nn),Sr=ac(p,Nn,p.name);jl(vt,!1);var Zr=Nn.kind!==28&&ai(Ue)&&!w.hasTrailingComment()&&!w.hasTrailingWhitespace();Zr&&cr("."),tt(Nn.kind,p.expression.end,cr,p),jl(Sr,!1),Ie(p.name),Uc(vt,Sr)}function ai(p){if(p=e.skipPartiallyEmittedExpressions(p),e.isNumericLiteral(p)){var Ue=wa(p,!0);return!p.numericLiteralFlags&&!e.stringContains(Ue,e.tokenToString(24))}else if(e.isAccessExpression(p)){var Nn=e.getConstantValue(p);return typeof Nn=="number"&&isFinite(Nn)&&Math.floor(Nn)===Nn}}function hi(p){_n(p.expression),Ie(p.questionDotToken),tt(22,p.expression.end,cr,p),_n(p.argumentExpression),tt(23,p.argumentExpression.end,cr,p)}function Xe(p){_n(p.expression),Ie(p.questionDotToken),Da(p,p.typeArguments),Zt(p,p.arguments,2576)}function qn(p){tt(98,p.pos,ya,p),ar(),_n(p.expression),Da(p,p.typeArguments),Zt(p,p.arguments,18960)}function ge(p){_n(p.tag),Da(p,p.typeArguments),ar(),_n(p.template)}function hn(p){cr("<"),Ie(p.type),cr(">"),_n(p.expression)}function Hn(p){var Ue=tt(20,p.pos,cr,p);_n(p.expression),tt(21,p.expression?p.expression.end:Ue,cr,p)}function de(p){ic(p.name),gi(p)}function rn(p){sa(p,p.decorators),ra(p,p.modifiers),di(p,kn)}function kn(p){Ha(p,p.typeParameters),Za(p,p.parameters),Ba(p.type),ar(),Ie(p.equalsGreaterThanToken)}function Qn(p){tt(84,p.pos,ya,p),ar(),_n(p.expression)}function lt(p){tt(107,p.pos,ya,p),ar(),_n(p.expression)}function Ft(p){tt(109,p.pos,ya,p),ar(),_n(p.expression)}function on(p){tt(126,p.pos,ya,p),ar(),_n(p.expression)}function kr(p){ts(p.operator,Io),fa(p)&&ar(),_n(p.operand)}function fa(p){var Ue=p.operand;return Ue.kind===206&&(p.operator===39&&(Ue.operator===39||Ue.operator===45)||p.operator===40&&(Ue.operator===40||Ue.operator===46))}function Wa(p){_n(p.operand),ts(p.operator,Io)}function to(p){var Ue=p.operatorToken.kind!==27,Nn=ac(p,p.left,p.operatorToken),vt=ac(p,p.operatorToken,p.right);_n(p.left),jl(Nn,Ue),Pl(p.operatorToken.pos),bc(p.operatorToken,p.operatorToken.kind===96?ya:Io),lc(p.operatorToken.end,!0),jl(vt,!0),_n(p.right),Uc(Nn,vt)}function ha(p){var Ue=ac(p,p.condition,p.questionToken),Nn=ac(p,p.questionToken,p.whenTrue),vt=ac(p,p.whenTrue,p.colonToken),Sr=ac(p,p.colonToken,p.whenFalse);_n(p.condition),jl(Ue,!0),Ie(p.questionToken),jl(Nn,!0),_n(p.whenTrue),Uc(Ue,Nn),jl(vt,!0),Ie(p.colonToken),jl(Sr,!0),_n(p.whenFalse),Uc(vt,Sr)}function Yo(p){Ie(p.head),zr(p,p.templateSpans,262144)}function ko(p){tt(120,p.pos,ya,p),Ie(p.asteriskToken),Qr(p.expression)}function ks(p){tt(25,p.pos,cr,p),_n(p.expression)}function Rs(p){ic(p.name),Ga(p)}function ml(p){_n(p.expression),Da(p,p.typeArguments)}function Fs(p){_n(p.expression),p.type&&(ar(),ya("as"),ar(),Ie(p.type))}function Il(p){_n(p.expression),Io("!")}function $o(p){No(p.keywordToken,p.pos,cr),cr("."),Ie(p.name)}function hl(p){_n(p.expression),Ie(p.literal)}function Ul(p){gl(p,!p.multiLine&&vl(p))}function gl(p,Ue){tt(18,p.pos,cr,p);var Nn=Ue||e.getEmitFlags(p)&1?768:129;zr(p,p.statements,Nn),tt(19,p.statements.end,cr,p,!!(Nn&1))}function po(p){ra(p,p.modifiers),Ie(p.declarationList),jo()}function Cs(p){p?cr(";"):jo()}function Ds(p){_n(p.expression),(!e.isJsonSourceFile(ue)||e.nodeIsSynthesized(p.expression))&&jo()}function _s(p){var Ue=tt(94,p.pos,ya,p);ar(),tt(20,Ue,cr,p),_n(p.expression),tt(21,p.expression.end,cr,p),oa(p,p.thenStatement),p.elseStatement&&(Ts(p),tt(86,p.thenStatement.end,ya,p),p.elseStatement.kind===226?(ar(),Ie(p.elseStatement)):oa(p,p.elseStatement))}function yl(p,Ue){var Nn=tt(110,Ue,ya,p);ar(),tt(20,Nn,cr,p),_n(p.expression),tt(21,p.expression.end,cr,p)}function Ks(p){tt(85,p.pos,ya,p),oa(p,p.statement),e.isBlock(p.statement)?ar():Ts(p),yl(p,p.statement.end),jo()}function qs(p){yl(p,p.pos),oa(p,p.statement)}function $s(p){var Ue=tt(92,p.pos,ya,p);ar();var Nn=tt(20,Ue,cr,p);Fn(p.initializer),Nn=tt(26,p.initializer?p.initializer.end:Nn,cr,p),Qr(p.condition),Nn=tt(26,p.condition?p.condition.end:Nn,cr,p),Qr(p.incrementor),tt(21,p.incrementor?p.incrementor.end:Nn,cr,p),oa(p,p.statement)}function el(p){var Ue=tt(92,p.pos,ya,p);ar(),tt(20,Ue,cr,p),Fn(p.initializer),ar(),tt(96,p.initializer.end,ya,p),ar(),_n(p.expression),tt(21,p.expression.end,cr,p),oa(p,p.statement)}function nl(p){var Ue=tt(92,p.pos,ya,p);ar(),ia(p.awaitModifier),tt(20,Ue,cr,p),Fn(p.initializer),ar(),tt(151,p.initializer.end,ya,p),ar(),_n(p.expression),tt(21,p.expression.end,cr,p),oa(p,p.statement)}function Fn(p){p!==void 0&&(p.kind===242?Ie(p):_n(p))}function Yn(p){tt(81,p.pos,ya,p),ki(p.label),jo()}function gt(p){tt(76,p.pos,ya,p),ki(p.label),jo()}function tt(p,Ue,Nn,vt,Sr){var Zr=e.getParseTreeNode(vt),aa=Zr&&Zr.kind===vt.kind,fi=Ue;if(aa&&(Ue=e.skipTrivia(ue.text,Ue)),Pl&&aa&&vt.pos!==fi){var W=Sr&&!e.positionsAreOnSameLine(fi,Ue,ue);W&&Es(),Pl(fi),W&&mo()}return Ue=ts(p,Nn,Ue),lc&&aa&&vt.end!==Ue&&lc(Ue,!0),Ue}function Xt(p){tt(100,p.pos,ya,p),Qr(p.expression),jo()}function _r(p){var Ue=tt(111,p.pos,ya,p);ar(),tt(20,Ue,cr,p),_n(p.expression),tt(21,p.expression.end,cr,p),oa(p,p.statement)}function Kr(p){var Ue=tt(102,p.pos,ya,p);ar(),tt(20,Ue,cr,p),_n(p.expression),tt(21,p.expression.end,cr,p),ar(),Ie(p.caseBlock)}function Dr(p){Ie(p.label),tt(58,p.label.end,cr,p),ar(),Ie(p.statement)}function Ir(p){tt(104,p.pos,ya,p),Qr(p.expression),jo()}function Mr(p){tt(106,p.pos,ya,p),ar(),Ie(p.tryBlock),p.catchClause&&(Ts(p),Ie(p.catchClause)),p.finallyBlock&&(Ts(p),tt(91,(p.catchClause||p.tryBlock).end,ya,p),ar(),Ie(p.finallyBlock))}function Er(p){No(82,p.pos,ya),jo()}function pa(p){Ie(p.name),Ba(p.type),Ai(p.initializer,p.type?p.type.end:p.name.end,p)}function Ca(p){ya(e.isLet(p)?"let":e.isVarConst(p)?"const":"var"),ar(),zr(p,p.declarations,528)}function Ma(p){gi(p)}function gi(p){sa(p,p.decorators),ra(p,p.modifiers),ya("function"),Ie(p.asteriskToken),ar(),Ce(p.name),di(p,Lo)}function vo(p,Ue){xn(Ue)}function di(p,Ue){var Nn=p.body;if(Nn)if(e.isBlock(Nn)){var vt=e.getEmitFlags(p)&65536;vt&&Es(),Bs(p),e.forEach(p.parameters,Co),Co(p.body),Ue(p),y?y(4,Nn,vo):xn(Nn),qt(p),vt&&mo()}else Ue(p),ar(),_n(Nn);else Ue(p),jo()}function Lo(p){Ha(p,p.typeParameters),ti(p,p.parameters),Ba(p.type)}function Ki(p){if(e.getEmitFlags(p)&1)return!0;if(p.multiLine)return!1;if(!e.nodeIsSynthesized(p)&&!e.rangeIsOnSingleLine(p,ue))return!1;if(Ec(p,p.statements,2)||Sc(p,p.statements,2))return!1;for(var Ue,Nn=0,vt=p.statements;Nn<vt.length;Nn++){var Sr=vt[Nn];if(Tc(Ue,Sr,2))return!1;Ue=Sr}return!0}function xn(p){ar(),cr("{"),Es();var Ue=Ki(p)?bo:Fo;jc?jc(p,p.statements,Ue):Ue(p),mo(),No(19,p.statements.end,cr,p)}function bo(p){Fo(p,!0)}function Fo(p,Ue){var Nn=Pt(p.statements),vt=w.getTextPos();va(p),Nn===0&&vt===w.getTextPos()&&Ue?(mo(),zr(p,p.statements,768),Es()):zr(p,p.statements,1,Nn)}function Ho(p){Ga(p)}function Ga(p){e.forEach(p.members,pu),sa(p,p.decorators),ra(p,p.modifiers),ya("class"),p.name&&(ar(),Ce(p.name));var Ue=e.getEmitFlags(p)&65536;Ue&&Es(),Ha(p,p.typeParameters),zr(p,p.heritageClauses,0),ar(),cr("{"),zr(p,p.members,129),cr("}"),Ue&&mo()}function vs(p){sa(p,p.decorators),ra(p,p.modifiers),ya("interface"),ar(),Ie(p.name),Ha(p,p.typeParameters),zr(p,p.heritageClauses,512),ar(),cr("{"),zr(p,p.members,129),cr("}")}function me(p){sa(p,p.decorators),ra(p,p.modifiers),ya("type"),ar(),Ie(p.name),Ha(p,p.typeParameters),ar(),cr("="),ar(),Ie(p.type),jo()}function En(p){ra(p,p.modifiers),ya("enum"),ar(),Ie(p.name),ar(),cr("{"),zr(p,p.members,145),cr("}")}function Zn(p){ra(p,p.modifiers),~p.flags&1024&&(ya(p.flags&16?"namespace":"module"),ar()),Ie(p.name);var Ue=p.body;if(!Ue)return jo();for(;Ue.kind===248;)cr("."),Ie(Ue.name),Ue=Ue.body;ar(),Ie(Ue)}function Gt(p){Bs(p),e.forEach(p.statements,Co),gl(p,vl(p)),qt(p)}function vr(p){tt(18,p.pos,cr,p),zr(p,p.clauses,129),tt(19,p.clauses.end,cr,p,!0)}function ga(p){ra(p,p.modifiers),tt(95,p.modifiers?p.modifiers.end:p.pos,ya,p),ar(),Ie(p.name),ar(),tt(62,p.name.end,cr,p),ar(),ii(p.moduleReference),jo()}function ii(p){p.kind===75?_n(p):Ie(p)}function qa(p){ra(p,p.modifiers),tt(95,p.modifiers?p.modifiers.end:p.pos,ya,p),ar(),p.importClause&&(Ie(p.importClause),ar(),tt(148,p.importClause.end,ya,p),ar()),_n(p.moduleSpecifier),jo()}function wi(p){Ie(p.name),p.name&&p.namedBindings&&(tt(27,p.name.end,cr,p),ar()),Ie(p.namedBindings)}function eo(p){var Ue=tt(41,p.pos,cr,p);ar(),tt(122,Ue,ya,p),ar(),Ie(p.name)}function na(p){Os(p)}function Lr(p){Gs(p)}function Eo(p){var Ue=tt(88,p.pos,ya,p);ar(),p.isExportEquals?tt(62,Ue,Io,p):tt(83,Ue,ya,p),ar(),_n(p.expression),jo()}function Uo(p){var Ue=tt(88,p.pos,ya,p);if(ar(),p.exportClause?Ie(p.exportClause):Ue=tt(41,Ue,cr,p),p.moduleSpecifier){ar();var Nn=p.exportClause?p.exportClause.end:Ue;tt(148,Nn,ya,p),ar(),_n(p.moduleSpecifier)}jo()}function tl(p){var Ue=tt(88,p.pos,ya,p);ar(),Ue=tt(122,Ue,ya,p),ar(),Ue=tt(135,Ue,ya,p),ar(),Ie(p.name),jo()}function Qo(p){Os(p)}function lo(p){Gs(p)}function Os(p){cr("{"),zr(p,p.elements,525136),cr("}")}function Gs(p){p.propertyName&&(Ie(p.propertyName),ar(),tt(122,p.propertyName.end,ya,p),ar()),Ie(p.name)}function Nc(p){ya("require"),cr("("),_n(p.expression),cr(")")}function _l(p){Ie(p.openingElement),zr(p,p.children,262144),Ie(p.closingElement)}function gc(p){cr("<"),zs(p.tagName),Da(p,p.typeArguments),ar(),Ie(p.attributes),cr("/>")}function Ql(p){Ie(p.openingFragment),zr(p,p.children,262144),Ie(p.closingFragment)}function rl(p){cr("<"),e.isJsxOpeningElement(p)&&(zs(p.tagName),Da(p,p.typeArguments),p.attributes.properties&&p.attributes.properties.length>0&&ar(),Ie(p.attributes)),cr(">")}function Js(p){w.writeLiteral(p.text)}function Oc(p){cr("</"),e.isJsxClosingElement(p)&&zs(p.tagName),cr(">")}function au(p){zr(p,p.properties,262656)}function Pc(p){Ie(p.name),$a("=",cr,p.initializer,Ie)}function iu(p){cr("{..."),_n(p.expression),cr("}")}function Zl(p){p.expression&&(cr("{"),Ie(p.dotDotDotToken),_n(p.expression),cr("}"))}function zs(p){p.kind===75?_n(p):Ie(p)}function Mc(p){tt(77,p.pos,ya,p),ar(),_n(p.expression),bs(p,p.statements,p.expression.end)}function Nl(p){var Ue=tt(83,p.pos,ya,p);bs(p,p.statements,Ue)}function bs(p,Ue,Nn){var vt=Ue.length===1&&(e.nodeIsSynthesized(p)||e.nodeIsSynthesized(Ue[0])||e.rangeStartPositionsAreOnSameLine(p,Ue[0],ue)),Sr=163969;vt?(No(58,Nn,cr,p),ar(),Sr&=~(1|128)):tt(58,Nn,cr,p),zr(p,Ue,Sr)}function Rc(p){ar(),ts(p.token,ya),ar(),zr(p,p.types,528)}function $l(p){var Ue=tt(78,p.pos,ya,p);ar(),p.variableDeclaration&&(tt(20,Ue,cr,p),Ie(p.variableDeclaration),tt(21,p.variableDeclaration.end,cr,p),ar()),Ie(p.block)}function yc(p){Ie(p.name),cr(":"),ar();var Ue=p.initializer;if(lc&&(e.getEmitFlags(Ue)&512)===0){var Nn=e.getCommentRange(Ue);lc(Nn.pos)}_n(Ue)}function ou(p){Ie(p.name),p.objectAssignmentInitializer&&(ar(),cr("="),ar(),_n(p.objectAssignmentInitializer))}function Lu(p){p.expression&&(tt(25,p.pos,cr,p),_n(p.expression))}function su(p){Ie(p.name),Ai(p.initializer,p.name.end,p)}function lu(p){if(Pe("/**"),p.comment)for(var Ue=p.comment.split(/\r\n?|\n/g),Nn=0,vt=Ue;Nn<vt.length;Nn++){var Sr=vt[Nn];Go(),ar(),cr("*"),ar(),Pe(Sr)}p.tags&&(p.tags.length===1&&p.tags[0].kind===313&&!p.comment?(ar(),Ie(p.tags[0])):zr(p,p.tags,33)),ar(),Pe("*/")}function cu(p){al(p.tagName),s(p.typeExpression),Xs(p.comment)}function Fc(p){al(p.tagName),ar(),cr("{"),Ie(p.class),cr("}"),Xs(p.comment)}function Gc(p){al(p.tagName),s(p.constraint),ar(),zr(p,p.typeParameters,528),Xs(p.comment)}function _c(p){al(p.tagName),p.typeExpression&&(p.typeExpression.kind===292?s(p.typeExpression):(ar(),cr("{"),Pe("Object"),p.typeExpression.isArrayType&&(cr("["),cr("]")),cr("}"))),p.fullName&&(ar(),Ie(p.fullName)),Xs(p.comment),p.typeExpression&&p.typeExpression.kind===302&&du(p.typeExpression)}function Bc(p){al(p.tagName),p.name&&(ar(),Ie(p.name)),Xs(p.comment),ec(p.typeExpression)}function uu(p){al(p.tagName),Xs(p.comment)}function du(p){zr(p,e.createNodeArray(p.jsDocPropertyTags),33)}function ec(p){p.typeParameters&&zr(p,e.createNodeArray(p.typeParameters),33),p.parameters&&zr(p,e.createNodeArray(p.parameters),33),p.type&&(Go(),ar(),cr("*"),ar(),Ie(p.type))}function Vc(p){al(p.tagName),s(p.typeExpression),ar(),p.isBracketed&&cr("["),Ie(p.name),p.isBracketed&&cr("]"),Xs(p.comment)}function al(p){cr("@"),Ie(p)}function Xs(p){p&&(ar(),Pe(p))}function s(p){p&&(ar(),cr("{"),Ie(p.type),cr("}"))}function b(p){Go();var Ue=p.statements;if(jc){var Nn=Ue.length===0||!e.isPrologueDirective(Ue[0])||e.nodeIsSynthesized(Ue[0]);if(Nn){jc(p,Ue,mn);return}}mn(p)}function V(p){an(!!p.hasNoDefaultLib,p.syntheticFileReferences||[],p.syntheticTypeReferences||[],p.syntheticLibReferences||[]);for(var Ue=0,Nn=p.prepends;Ue<Nn.length;Ue++){var vt=Nn[Ue];if(e.isUnparsedSource(vt)&&vt.syntheticReferences)for(var Sr=0,Zr=vt.syntheticReferences;Sr<Zr.length;Sr++){var aa=Zr[Sr];Ie(aa),Go()}}}function Me(p){p.isDeclarationFile&&an(p.hasNoDefaultLib,p.referencedFiles,p.typeReferenceDirectives,p.libReferenceDirectives)}function an(p,Ue,Nn,vt){if(p){var Sr=w.getTextPos();os('/// <reference no-default-lib="true"/>'),Ze&&Ze.sections.push({pos:Sr,end:w.getTextPos(),kind:"no-default-lib"}),Go()}if(ue&&ue.moduleName&&(os('/// <amd-module name="'+ue.moduleName+'" />'),Go()),ue&&ue.amdDependencies)for(var Zr=0,aa=ue.amdDependencies;Zr<aa.length;Zr++){var fi=aa[Zr];fi.name?os('/// <amd-dependency name="'+fi.name+'" path="'+fi.path+'" />'):os('/// <amd-dependency path="'+fi.path+'" />'),Go()}for(var W=0,fn=Ue;W<fn.length;W++){var Un=fn[W],Sr=w.getTextPos();os('/// <reference path="'+Un.fileName+'" />'),Ze&&Ze.sections.push({pos:Sr,end:w.getTextPos(),kind:"reference",data:Un.fileName}),Go()}for(var Et=0,pr=Nn;Et<pr.length;Et++){var Un=pr[Et],Sr=w.getTextPos();os('/// <reference types="'+Un.fileName+'" />'),Ze&&Ze.sections.push({pos:Sr,end:w.getTextPos(),kind:"type",data:Un.fileName}),Go()}for(var Xr=0,ei=vt;Xr<ei.length;Xr++){var Un=ei[Xr],Sr=w.getTextPos();os('/// <reference lib="'+Un.fileName+'" />'),Ze&&Ze.sections.push({pos:Sr,end:w.getTextPos(),kind:"lib",data:Un.fileName}),Go()}}function mn(p){var Ue=p.statements;Bs(p),e.forEach(p.statements,Co),va(p);var Nn=e.findIndex(Ue,function(vt){return!e.isPrologueDirective(vt)});Me(p),zr(p,Ue,1,Nn===-1?Ue.length:Nn),qt(p)}function zn(p){_n(p.expression)}function kt(p){Zt(p,p.elements,528)}function Pt(p,Ue,Nn,vt){for(var Sr=!!Ue,Zr=0;Zr<p.length;Zr++){var aa=p[Zr];if(e.isPrologueDirective(aa)){var fi=Nn?!Nn.has(aa.expression.text):!0;if(fi){Sr&&(Sr=!1,dt(Ue)),Go();var W=w.getTextPos();Ie(aa),vt&&Ze&&Ze.sections.push({pos:W,end:w.getTextPos(),kind:"prologue",data:aa.expression.text}),Nn&&Nn.set(aa.expression.text,!0)}}else return Zr}return p.length}function It(p,Ue){for(var Nn=0,vt=p;Nn<vt.length;Nn++){var Sr=vt[Nn];if(!Ue.has(Sr.data)){Go();var Zr=w.getTextPos();Ie(Sr),Ze&&Ze.sections.push({pos:Zr,end:w.getTextPos(),kind:"prologue",data:Sr.data}),Ue&&Ue.set(Sr.data,!0)}}}function fr(p){if(e.isSourceFile(p))Pt(p.statements,p);else{for(var Ue=e.createMap(),Nn=0,vt=p.prepends;Nn<vt.length;Nn++){var Sr=vt[Nn];It(Sr.prologues,Ue)}for(var Zr=0,aa=p.sourceFiles;Zr<aa.length;Zr++){var fi=aa[Zr];Pt(fi.statements,fi,Ue,!0)}dt(void 0)}}function hr(p){for(var Ue=e.createMap(),Nn,vt=0;vt<p.sourceFiles.length;vt++){for(var Sr=p.sourceFiles[vt],Zr=void 0,aa=0,fi=0,W=Sr.statements;fi<W.length;fi++){var fn=W[fi];if(!e.isPrologueDirective(fn))break;if(Ue.has(fn.expression.text))continue;Ue.set(fn.expression.text,!0),(Zr||(Zr=[])).push({pos:fn.pos,end:fn.end,expression:{pos:fn.expression.pos,end:fn.expression.end,text:fn.expression.text}}),aa=aa<fn.end?fn.end:aa}Zr&&(Nn||(Nn=[])).push({file:vt,text:Sr.text.substring(0,aa),directives:Zr})}return Nn}function $r(p){if(e.isSourceFile(p)||e.isUnparsedSource(p)){var Ue=e.getShebang(p.text);if(Ue)return os(Ue),Go(),!0}else{for(var Nn=0,vt=p.prepends;Nn<vt.length;Nn++){var Sr=vt[Nn];if(e.Debug.assertNode(Sr,e.isUnparsedSource),$r(Sr))return!0}for(var Zr=0,aa=p.sourceFiles;Zr<aa.length;Zr++){var fi=aa[Zr];if($r(fi))return!0}}}function ba(p,Ue){if(!p)return;var Nn=Pe;Pe=Ue,Ie(p),Pe=Nn}function ra(p,Ue){Ue&&Ue.length&&(zr(p,Ue,262656),ar())}function Ba(p){p&&(cr(":"),ar(),Ie(p))}function Ai(p,Ue,Nn){p&&(ar(),tt(62,Ue,Io,Nn),ar(),_n(p))}function $a(p,Ue,Nn,vt){Nn&&(Ue(p),vt(Nn))}function ki(p){p&&(ar(),Ie(p))}function Qr(p){p&&(ar(),_n(p))}function ia(p){p&&(Ie(p),ar())}function oa(p,Ue){e.isBlock(Ue)||e.getEmitFlags(p)&1?(ar(),Ie(Ue)):(Go(),Es(),e.isEmptyStatement(Ue)?yt(5,Ue):Ie(Ue),mo())}function sa(p,Ue){zr(p,Ue,49153)}function Da(p,Ue){zr(p,Ue,53776)}function Ha(p,Ue){if(e.isFunctionLike(p)&&p.typeArguments)return Da(p,p.typeArguments);zr(p,Ue,53776)}function ti(p,Ue){zr(p,Ue,2576)}function Qi(p,Ue){var Nn=e.singleOrUndefined(Ue);return Nn&&Nn.pos===p.pos&&e.isArrowFunction(p)&&!p.type&&!e.some(p.decorators)&&!e.some(p.modifiers)&&!e.some(p.typeParameters)&&!e.some(Nn.decorators)&&!e.some(Nn.modifiers)&&!Nn.dotDotDotToken&&!Nn.questionToken&&!Nn.type&&!Nn.initializer&&e.isIdentifier(Nn.name)}function Za(p,Ue){Qi(p,Ue)?zr(p,Ue,2576&~2048):ti(p,Ue)}function Ls(p,Ue){zr(p,Ue,8848)}function zr(p,Ue,Nn,vt,Sr){zu(Ie,p,Ue,Nn,vt,Sr)}function Zt(p,Ue,Nn,vt,Sr){zu(_n,p,Ue,Nn,vt,Sr)}function Ps(p){switch(p&60){case 0:break;case 16:cr(",");break;case 4:ar(),cr("|");break;case 32:ar(),cr("*"),ar();break;case 8:ar(),cr("&");break}}function zu(p,Ue,Nn,vt,Sr,Zr){Sr===void 0&&(Sr=0),Zr===void 0&&(Zr=Nn?Nn.length-Sr:0);var aa=Nn===void 0;if(aa&&vt&16384)return;var fi=Nn===void 0||Sr>=Nn.length||Zr===0;if(fi&&vt&32768){T&&T(Nn),ne&&ne(Nn);return}if(vt&15360&&(cr(be(vt)),fi&&!aa&&lc(Nn.pos,!0)),T&&T(Nn),fi)vt&1?Go():vt&256&&!(vt&524288)&&ar();else{var W=(vt&262144)===0,fn=W;Ec(Ue,Nn,vt)?(Go(),fn=!1):vt&256&&ar(),vt&128&&Es();for(var Un=void 0,Et=void 0,pr=!1,Xr=0;Xr<Zr;Xr++){var ei=Nn[Sr+Xr];if(vt&32?(Go(),Ps(vt)):Un&&(vt&60&&Un.end!==Ue.end&&Pl(Un.end),Ps(vt),dn(Et),Tc(Un,ei,vt)?((vt&(3|128))===0&&(Es(),pr=!0),Go(),fn=!1):Un&&vt&512&&ar()),Et=_e(ei),fn){if(lc){var ps=e.getCommentRange(ei);lc(ps.pos)}}else fn=W;p(ei),pr&&(mo(),pr=!1),Un=ei}var u=vt&64&&Nn.hasTrailingComma;vt&16&&u&&cr(","),Un&&vt&60&&Un.end!==Ue.end&&!(e.getEmitFlags(Un)&1024)&&Pl(Un.end),vt&128&&mo(),dn(Et),Sc(Ue,Nn,vt)?Go():vt&256&&ar()}ne&&ne(Nn),vt&15360&&(fi&&!aa&&Pl(Nn.end),cr(R(vt)))}function fd(p){w.writeLiteral(p)}function Iu(p){w.writeStringLiteral(p)}function vc(p){w.write(p)}function nc(p,Ue){w.writeSymbol(p,Ue)}function cr(p){w.writePunctuation(p)}function jo(){w.writeTrailingSemicolon(";")}function ya(p){w.writeKeyword(p)}function Io(p){w.writeOperator(p)}function tc(p){w.writeParameter(p)}function os(p){w.writeComment(p)}function ar(){w.writeSpace(" ")}function il(p){w.writeProperty(p)}function Go(){w.writeLine()}function Es(){w.increaseIndent()}function mo(){w.decreaseIndent()}function No(p,Ue,Nn,vt){return Le?ts(p,Nn,Ue):Ve(vt,p,Nn,Ue,ts)}function bc(p,Ue){O&&O(p),Ue(e.tokenToString(p.kind)),Y&&Y(p)}function ts(p,Ue,Nn){var vt=e.tokenToString(p);return Ue(vt),Nn<0?Nn:Nn+vt.length}function Ts(p){e.getEmitFlags(p)&1?ar():Go()}function fu(p){for(var Ue=p.split(/\r\n?|\n/g),Nn=e.guessIndentation(Ue),vt=0,Sr=Ue;vt<Sr.length;vt++){var Zr=Sr[vt],aa=Nn?Zr.slice(Nn):Zr;aa.length&&(Go(),Pe(aa))}}function jl(p,Ue){p?(Es(),Go()):Ue&&ar()}function Uc(p,Ue){p&&mo(),Ue&&mo()}function Ec(p,Ue,Nn){if(Nn&1)return!0;if(Nn&2){if(Nn&65536)return!0;var vt=Ue[0];return vt===void 0?!e.rangeIsOnSingleLine(p,ue):e.positionIsSynthesized(p.pos)||e.nodeIsSynthesized(vt)?rc(vt,Nn):!e.rangeStartPositionsAreOnSameLine(p,vt,ue)}else return!1}function Tc(p,Ue,Nn){return Nn&1?!0:Nn&2?p===void 0||Ue===void 0?!1:e.nodeIsSynthesized(p)||e.nodeIsSynthesized(Ue)?rc(p,Nn)||rc(Ue,Nn):!e.rangeEndIsOnSameLineAsRangeStart(p,Ue,ue):e.getStartsOnNewLine(Ue)}function Sc(p,Ue,Nn){if(Nn&1)return(Nn&131072)===0;if(Nn&2){if(Nn&65536)return!0;var vt=e.lastOrUndefined(Ue);return vt===void 0?!e.rangeIsOnSingleLine(p,ue):e.positionIsSynthesized(p.pos)||e.nodeIsSynthesized(vt)?rc(vt,Nn):!e.rangeEndPositionsAreOnSameLine(p,vt,ue)}else return!1}function rc(p,Ue){if(e.nodeIsSynthesized(p)){var Nn=e.getStartsOnNewLine(p);return Nn===void 0?(Ue&65536)!==0:Nn}return(Ue&65536)!==0}function ac(p,Ue,Nn){return e.getEmitFlags(p)&131072?!1:(p=Ys(p),Ue=Ys(Ue),Nn=Ys(Nn),e.getStartsOnNewLine(Nn)?!0:!e.nodeIsSynthesized(p)&&!e.nodeIsSynthesized(Ue)&&!e.nodeIsSynthesized(Nn)&&!e.rangeEndIsOnSameLineAsRangeStart(Ue,Nn,ue))}function vl(p){return p.statements.length===0&&e.rangeEndIsOnSameLineAsRangeStart(p,p,ue)}function Ys(p){for(;p.kind===199&&e.nodeIsSynthesized(p);)p=p.expression;return p}function Ol(p,Ue){return e.isGeneratedIdentifier(p)?Wl(p):e.isIdentifier(p)&&(e.nodeIsSynthesized(p)||!p.parent||!ue||p.parent&&ue&&e.getSourceFileOfNode(p)!==e.getOriginalNode(ue))?e.idText(p):p.kind===10&&p.textSourceNode?Ol(p.textSourceNode,Ue):e.isLiteralExpression(p)&&(e.nodeIsSynthesized(p)||!p.parent)?p.text:e.getSourceTextOfNodeFromSourceFile(ue,p,Ue)}function wa(p,Ue){if(p.kind===10&&p.textSourceNode){var Nn=p.textSourceNode;return e.isIdentifier(Nn)?Ue||e.getEmitFlags(p)&16777216?'"'+e.escapeString(Ol(Nn))+'"':'"'+e.escapeNonAsciiString(Ol(Nn))+'"':wa(Nn,Ue)}return e.getLiteralText(p,ue,Ue)}function Bs(p){if(p&&e.getEmitFlags(p)&524288)return;we.push(He),He=0,ve.push(je)}function qt(p){if(p&&e.getEmitFlags(p)&524288)return;He=we.pop(),je=ve.pop()}function bl(p){(!je||je===e.lastOrUndefined(ve))&&(je=e.createMap()),je.set(p,!0)}function Co(p){if(!p)return;switch(p.kind){case 222:e.forEach(p.statements,Co);break;case 237:case 235:case 227:case 228:Co(p.statement);break;case 226:Co(p.thenStatement),Co(p.elseStatement);break;case 229:case 231:case 230:Co(p.initializer),Co(p.statement);break;case 236:Co(p.caseBlock);break;case 250:e.forEach(p.clauses,Co);break;case 275:case 276:e.forEach(p.statements,Co);break;case 239:Co(p.tryBlock),Co(p.catchClause),Co(p.finallyBlock);break;case 278:Co(p.variableDeclaration),Co(p.block);break;case 224:Co(p.declarationList);break;case 242:e.forEach(p.declarations,Co);break;case 241:case 155:case 190:case 244:ic(p.name);break;case 243:ic(p.name),e.getEmitFlags(p)&524288&&(e.forEach(p.parameters,Co),Co(p.body));break;case 188:case 189:e.forEach(p.elements,Co);break;case 253:Co(p.importClause);break;case 254:ic(p.name),Co(p.namedBindings);break;case 255:ic(p.name);break;case 256:e.forEach(p.elements,Co);break;case 257:ic(p.propertyName||p.name);break}}function pu(p){if(!p)return;switch(p.kind){case 279:case 280:case 158:case 160:case 162:case 163:ic(p.name);break}}function ic(p){p&&(e.isGeneratedIdentifier(p)?Wl(p):e.isBindingPattern(p)&&Co(p))}function Wl(p){if((p.autoGenerateFlags&7)===4)return Xu(Qu(p),p.autoGenerateFlags);var Ue=p.autoGenerateId;return Z[Ue]||(Z[Ue]=sc(p))}function Xu(p,Ue){var Nn=e.getNodeId(p);return De[Nn]||(De[Nn]=Kl(p,Ue))}function zi(p){return Hl(p)&&!Re.has(p)&&!(je&&je.has(p))}function Hl(p){return ue?e.isFileLevelUniqueName(ue,p,I):!0}function Pa(p,Ue){for(var Nn=Ue;e.isNodeDescendantOf(Nn,Ue);Nn=Nn.nextContainer)if(Nn.locals){var vt=Nn.locals.get(e.escapeLeadingUnderscores(p));if(vt&&vt.flags&(111551|1048576|2097152))return!1}return!0}function xc(p,Ue){if(p&&!(He&p)){var Nn=p===268435456?"_i":"_n";if(zi(Nn))return He|=p,Ue&&bl(Nn),Nn}for(;;){var vt=He&268435455;if(He++,vt!==8&&vt!==13){var Nn=vt<26?"_"+String.fromCharCode(97+vt):"_"+(vt-26);if(zi(Nn))return Ue&&bl(Nn),Nn}}}function cs(p,Ue,Nn,vt){if(Ue===void 0&&(Ue=zi),Nn&&Ue(p))return vt?bl(p):Re.set(p,!0),p;p.charCodeAt(p.length-1)!==95&&(p+="_");for(var Sr=1;;){var Zr=p+Sr;if(Ue(Zr))return vt?bl(Zr):Re.set(Zr,!0),Zr;Sr++}}function Vs(p){return cs(p,Hl,!0)}function es(p){var Ue=Ol(p.name);return Pa(Ue,p)?Ue:cs(Ue)}function Yu(p){var Ue=e.getExternalModuleName(p),Nn=e.isStringLiteral(Ue)?e.makeIdentifierFromModuleName(Ue.text):"module";return cs(Nn)}function Qs(){return cs("default")}function oc(){return cs("class")}function pd(p){return e.isIdentifier(p.name)?Xu(p.name):xc(0)}function Kl(p,Ue){switch(p.kind){case 75:return cs(Ol(p),zi,!!(Ue&16),!!(Ue&8));case 248:case 247:return es(p);case 253:case 259:return Yu(p);case 243:case 244:case 258:return Qs();case 213:return oc();case 160:case 162:case 163:return pd(p);case 153:return xc(0,!0);default:return xc(0)}}function sc(p){switch(p.autoGenerateFlags&7){case 1:return xc(0,!!(p.autoGenerateFlags&8));case 2:return xc(268435456,!!(p.autoGenerateFlags&8));case 3:return cs(e.idText(p),p.autoGenerateFlags&32?Hl:zi,!!(p.autoGenerateFlags&16),!!(p.autoGenerateFlags&8))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}function Qu(p){for(var Ue=p.autoGenerateId,Nn=p,vt=Nn.original;vt&&!(Nn=vt,e.isIdentifier(Nn)&&!!(Nn.autoGenerateFlags&4)&&Nn.autoGenerateId!==Ue);)vt=Nn.original;return Nn}function Zo(p,Ue){e.Debug.assert(L===Ue||te===Ue),Ne(),F=!1;var Nn=e.getEmitFlags(Ue),vt=e.getCommentRange(Ue),Sr=vt.pos,Zr=vt.end,aa=Ue.kind!==318,fi=Sr<0||(Nn&512)!==0||Ue.kind===11,W=Zr<0||(Nn&1024)!==0||Ue.kind===11,fn=cn,Un=Qe,Et=ln;(Sr>0||Zr>0)&&Sr!==Zr&&(fi||Wc(Sr,aa),(!fi||Sr>=0&&(Nn&512)!==0)&&(cn=Sr),(!W||Zr>=0&&(Nn&1024)!==0)&&(Qe=Zr,Ue.kind===242&&(ln=Zr))),e.forEach(e.getSyntheticLeadingComments(Ue),md),ze();var pr=Ht(2,Ue);Nn&2048?(c=!0,pr(p,Ue),c=!1):pr(p,Ue),Ne(),e.forEach(e.getSyntheticTrailingComments(Ue),Bi),(Sr>0||Zr>0)&&Sr!==Zr&&(cn=fn,Qe=Un,ln=Et,!W&&aa&&Ml(Zr)),ze(),e.Debug.assert(L===Ue||te===Ue)}function md(p){p.kind===2&&w.writeLine(),Nu(p),p.hasTrailingNewLine||p.kind===2?w.writeLine():w.writeSpace(" ")}function Bi(p){w.isAtStartOfLine()||w.writeSpace(" "),Nu(p),p.hasTrailingNewLine&&w.writeLine()}function Nu(p){var Ue=Zu(p),Nn=p.kind===3?e.computeLineStarts(Ue):void 0;e.writeCommentRange(Ue,Nn,w,0,Ue.length,S)}function Zu(p){return p.kind===3?"/*"+p.text+"*/":"//"+p.text}function jc(p,Ue,Nn){Ne();var vt=Ue.pos,Sr=Ue.end,Zr=e.getEmitFlags(p),aa=vt<0||(Zr&512)!==0,fi=c||Sr<0||(Zr&1024)!==0;aa||hd(Ue),ze(),Zr&2048&&!c?(c=!0,Nn(p),c=!1):Nn(p),Ne(),fi||(Wc(Ue.end,!0),F&&!w.isAtStartOfLine()&&w.writeLine()),ze()}function Wc(p,Ue){F=!1,Ue?ol(p,$u):p===0&&ol(p,mu)}function mu(p,Ue,Nn,vt,Sr){Md(p,Ue)&&$u(p,Ue,Nn,vt,Sr)}function Hc(p,Ue){return m.onlyPrintJsDocStyle?e.isJSDocLikeText(p,Ue)||e.isPinnedComment(p,Ue):!0}function $u(p,Ue,Nn,vt,Sr){if(!Hc(ue.text,p))return;F||(e.emitNewLineBeforeLeadingCommentOfPosition(Kn(),w,Sr,p),F=!0),g(p),e.writeCommentRange(ue.text,Kn(),w,p,Ue,S),g(Ue),vt?w.writeLine():Nn===3&&w.writeSpace(" ")}function Pl(p){if(c||p===-1)return;Wc(p,!0)}function Ml(p){ed(p,ql)}function ql(p,Ue,Nn,vt){if(!Hc(ue.text,p))return;w.isAtStartOfLine()||w.writeSpace(" "),g(p),e.writeCommentRange(ue.text,Kn(),w,p,Ue,S),g(Ue),vt&&w.writeLine()}function lc(p,Ue){if(c)return;Ne(),ed(p,Ue?ql:Ou),ze()}function Ou(p,Ue,Nn,vt){g(p),e.writeCommentRange(ue.text,Kn(),w,p,Ue,S),g(Ue),vt?w.writeLine():w.writeSpace(" ")}function ol(p,Ue){ue&&(cn===-1||p!==cn)&&(nd(p)?hu(Ue):e.forEachLeadingCommentRange(ue.text,p,Ue,p))}function ed(p,Ue){ue&&(Qe===-1||p!==Qe&&p!==ln)&&e.forEachTrailingCommentRange(ue.text,p,Ue)}function nd(p){return ke!==void 0&&e.last(ke).nodePos===p}function hu(p){var Ue=e.last(ke).detachedCommentEndPos;ke.length-1?ke.pop():ke=void 0,e.forEachLeadingCommentRange(ue.text,Ue,p,Ue)}function hd(p){var Ue=e.emitDetachedComments(ue.text,Kn(),w,Pd,p,S,c);Ue&&(ke?ke.push(Ue):ke=[Ue])}function Pd(p,Ue,Nn,vt,Sr,Zr){if(!Hc(ue.text,vt))return;g(vt),e.writeCommentRange(p,Ue,Nn,vt,Sr,Zr),g(Sr)}function Md(p,Ue){return e.isRecognizedTripleSlashComment(ue.text,p,Ue)}function cc(p){return p.parsedSourceMap===void 0&&p.sourceMapText!==void 0&&(p.parsedSourceMap=e.tryParseRawSourceMap(p.sourceMapText)||!1),p.parsedSourceMap||void 0}function Rd(p,Ue){e.Debug.assert(L===Ue||te===Ue);var Nn=Ht(3,Ue);if(e.isUnparsedSource(Ue)||e.isUnparsedPrepend(Ue))Nn(p,Ue);else if(e.isUnparsedNode(Ue)){var vt=cc(Ue.parent);vt&&Je&&Je.appendSourceMap(w.getLine(),w.getColumn(),vt,Ue.parent.sourceMapPath,Ue.parent.getLineAndCharacterOfPosition(Ue.pos),Ue.parent.getLineAndCharacterOfPosition(Ue.end)),Nn(p,Ue)}else{var Sr=e.getSourceMapRange(Ue),Zr=Sr.pos,aa=Sr.end,fi=Sr.source,W=fi===void 0?$e:fi,fn=e.getEmitFlags(Ue);Ue.kind!==318&&(fn&16)===0&&Zr>=0&&re(W,Pu(W,Zr)),fn&64?(Le=!0,Nn(p,Ue),Le=!1):Nn(p,Ue),Ue.kind!==318&&(fn&32)===0&&aa>=0&&re(W,aa)}e.Debug.assert(L===Ue||te===Ue)}function Pu(p,Ue){return p.skipTrivia?p.skipTrivia(Ue):e.skipTrivia(p.text,Ue)}function g(p){if(Le||e.positionIsSynthesized(p)||rt($e))return;var Ue=e.getLineAndCharacterOfPosition($e,p),Nn=Ue.line,vt=Ue.character;Je.addMapping(w.getLine(),w.getColumn(),Fe,Nn,vt,void 0)}function re(p,Ue){if(p!==$e){var Nn=$e;Dn(p),g(Ue),Dn(Nn)}else g(Ue)}function Ve(p,Ue,Nn,vt,Sr){if(Le||p&&e.isInJsonFile(p))return Sr(Ue,Nn,vt);var Zr=p&&p.emitNode,aa=Zr&&Zr.flags||0,fi=Zr&&Zr.tokenSourceMapRanges&&Zr.tokenSourceMapRanges[Ue],W=fi&&fi.source||$e;return vt=Pu(W,fi?fi.pos:vt),(aa&128)===0&&vt>=0&&re(W,vt),vt=Sr(Ue,Nn,vt),fi&&(vt=fi.end),(aa&256)===0&&vt>=0&&re(W,vt),vt}function Dn(p){if(Le)return;if($e=p,rt(p))return;Fe=Je.addSource(p.fileName),m.inlineSources&&Je.setSourceContent(Fe,p.text)}function rt(p){return e.fileExtensionIs(p.fileName,".json")}}e.createPrinter=H;function q(){var m=[];return m[1024]=["{","}"],m[2048]=["(",")"],m[4096]=["<",">"],m[8192]=["[","]"],m}function be(m){return o[m&15360][0]}function R(m){return o[m&15360][1]}var K;(function(m){m[m.Auto=0]="Auto",m[m.CountMask=268435455]="CountMask",m[m._i=268435456]="_i"})(K||(K={}))})(sn||(sn={}));var sn;(function(e){function o(C,P,h){if(!C.getDirectories||!C.readDirectory)return;var X=e.createMap(),$=e.createGetCanonicalFileName(h);return{useCaseSensitiveFileNames:h,fileExists:_,readFile:function(pe,S){return C.readFile(pe,S)},directoryExists:C.directoryExists&&I,getDirectories:y,readDirectory:E,createDirectory:C.createDirectory&&D,writeFile:C.writeFile&&m,addOrDeleteFileOrDirectory:T,addOrDeleteFile:ne,clearCache:Y,realpath:C.realpath&&k};function Q(pe){return e.toPath(pe,P,$)}function z(pe){return X.get(e.ensureTrailingDirectorySeparator(pe))}function se(pe){return z(e.getDirectoryPath(pe))}function G(pe){return e.getBaseFileName(e.normalizePath(pe))}function H(pe,S){var v={files:e.map(C.readDirectory(pe,void 0,void 0,["*.*"]),G)||[],directories:C.getDirectories(pe)||[]};return X.set(e.ensureTrailingDirectorySeparator(S),v),v}function q(pe,S){S=e.ensureTrailingDirectorySeparator(S);var v=z(S);if(v)return v;try{return H(pe,S)}catch(U){e.Debug.assert(!X.has(e.ensureTrailingDirectorySeparator(S)));return}}function be(pe,S){return $(pe)===$(S)}function R(pe,S){return e.some(pe,function(v){return be(v,S)})}function K(pe,S,v){if(R(pe,S)){if(!v)return e.filterMutate(pe,function(U){return!be(U,S)})}else if(v)return pe.push(S)}function m(pe,S,v){var U=Q(pe),ue=se(U);return ue&&O(ue,G(pe),!0),C.writeFile(pe,S,v)}function _(pe){var S=Q(pe),v=se(S);return v&&R(v.files,G(pe))||C.fileExists(pe)}function I(pe){var S=Q(pe);return X.has(e.ensureTrailingDirectorySeparator(S))||C.directoryExists(pe)}function D(pe){var S=Q(pe),v=se(S),U=G(pe);v&&K(v.directories,U,!0),C.createDirectory(pe)}function y(pe){var S=Q(pe),v=q(pe,S);return v?v.directories.slice():C.getDirectories(pe)}function E(pe,S,v,U,ue){var De=Q(pe),Z=q(pe,De);if(Z)return e.matchFiles(pe,S,v,U,h,P,ue,Re,k);return C.readDirectory(pe,S,v,U,ue);function Re(we){var He=Q(we);return He===De?Z:q(we,He)||e.emptyFileSystemEntries}}function k(pe){return C.realpath?C.realpath(pe):pe}function T(pe,S){var v=z(S);if(v){Y();return}var U=se(S);if(!U)return;if(!C.directoryExists){Y();return}var ue=G(pe),De={fileExists:C.fileExists(S),directoryExists:C.directoryExists(S)};return De.directoryExists||R(U.directories,ue)?Y():O(U,ue,De.fileExists),De}function ne(pe,S,v){if(v===e.FileWatcherEventKind.Changed)return;var U=se(S);U&&O(U,G(pe),v===e.FileWatcherEventKind.Created)}function O(pe,S,v){K(pe.files,S,v)}function Y(){X.clear()}}e.createCachedDirectoryStructureHost=o;var M;(function(C){C[C.None=0]="None",C[C.Partial=1]="Partial",C[C.Full=2]="Full"})(M=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}));function qe(C,P,h){var X=C.getMissingFilePaths(),$=e.arrayToSet(X);e.mutateMap(P,$,{createNewValue:h,onDeleteValue:e.closeFileWatcher})}e.updateMissingFilePathsWatch=qe;function Ee(C,P,h){e.mutateMap(C,P,{createNewValue:X,onDeleteValue:x,onExistingValue:$});function X(Q,z){return{watcher:h(Q,z),flags:z}}function $(Q,z,se){if(Q.flags===z)return;Q.watcher.close(),C.set(se,X(se,z))}}e.updateWatchingWildcardDirectories=Ee;function Ge(C,P){return C?C.isEmittedFile(P):!1}e.isEmittedFileOfProgram=Ge;var Be;(function(C){C[C.None=0]="None",C[C.TriggerOnly=1]="TriggerOnly",C[C.Verbose=2]="Verbose"})(Be=e.WatchLogLevel||(e.WatchLogLevel={}));function he(C,P,h){return ee(C,P,h,f,J)}e.getWatchFactory=he;function ee(C,P,h,X,$){var Q=Oe(C,X),z=C===Be.None?G:Q,se=Oe(C,$);return C===Be.Verbose&&e.sysLog===e.noop&&(e.sysLog=function(H){return P(H)}),{watchFile:function(H,q,be,R,K,m){return Q(H,q,be,R,void 0,K,m,X,P,"FileWatcher",h)},watchFilePath:function(H,q,be,R,K,m,_){return z(H,q,be,R,K,m,_,X,P,"FileWatcher",h)},watchDirectory:function(H,q,be,R,K,m){return se(H,q,be,R,void 0,K,m,$,P,"DirectoryWatcher",h)}};function G(H,q,be,R,K){return X(H,q,function(m,_){return be(m,_,K)},R)}}function f(C,P,h,X){return C.watchFile(P,h,X)}function J(C,P,h,X){return C.watchDirectory(P,h,(X&1)!==0)}function Oe(C,P){switch(C){case Be.None:return P;case Be.TriggerOnly:return ie;case Be.Verbose:return P===J?Te:N}}function N(C,P,h,X,$,Q,z,se,G,H,q){G(H+":: Added:: "+ce(P,X,Q,z,q));var be=ie(C,P,h,X,$,Q,z,se,G,H,q);return{close:function(){G(H+":: Close:: "+ce(P,X,Q,z,q)),be.close()}}}function Te(C,P,h,X,$,Q,z,se,G,H,q){var be=H+":: Added:: "+ce(P,X,Q,z,q);G(be);var R=e.timestamp(),K=ie(C,P,h,X,$,Q,z,se,G,H,q),m=e.timestamp()-R;return G("Elapsed:: "+m+"ms "+be),{close:function(){var _=H+":: Close:: "+ce(P,X,Q,z,q);G(_);var I=e.timestamp();K.close();var D=e.timestamp()-I;G("Elapsed:: "+D+"ms "+_)}}}function ie(C,P,h,X,$,Q,z,se,G,H,q){return se(C,P,function(be,R){var K=H+":: Triggered with "+be+" "+(R!==void 0?R:"")+":: "+ce(P,X,Q,z,q);G(K);var m=e.timestamp();h(be,R,$);var _=e.timestamp()-m;G("Elapsed:: "+_+"ms "+K)},X)}function ce(C,P,h,X,$){return"WatchInfo: "+C+" "+P+" "+($?$(h,X):X===void 0?h:h+" "+X)}function x(C){C.watcher.close()}e.closeFileWatcherOf=x})(sn||(sn={}));var sn;(function(e){var o=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;function M(E,k,T){return T===void 0&&(T="tsconfig.json"),e.forEachAncestorDirectory(E,function(ne){var O=e.combinePaths(ne,T);return k(O)?O:void 0})}e.findConfigFile=M;function qe(E,k){var T=e.getDirectoryPath(k),ne=e.isRootedDiskPath(E)?E:e.combinePaths(T,E);return e.normalizePath(ne)}e.resolveTripleslashReference=qe;function Ee(E,k,T){var ne,O=e.forEach(E,function(Y){var pe=e.getNormalizedPathComponents(Y,k);if(pe.pop(),!ne){ne=pe;return}for(var S=Math.min(ne.length,pe.length),v=0;v<S;v++)if(T(ne[v])!==T(pe[v])){if(v===0)return!0;ne.length=v;break}pe.length<ne.length&&(ne.length=pe.length)});return O?"":ne?e.getPathFromPathComponents(ne):k}e.computeCommonSourceDirectoryOfFilenames=Ee;function Ge(E,k){return Be(E,k)}e.createCompilerHost=Ge;function Be(E,k,T){T===void 0&&(T=e.sys);var ne=e.createMap(),O=e.createGetCanonicalFileName(T.useCaseSensitiveFileNames);function Y(He,ve,je){var w;try{e.performance.mark("beforeIORead"),w=we.readFile(He),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(j){je&&je(j.message),w=""}return w!==void 0?e.createSourceFile(He,w,ve,k):void 0}function pe(He){return ne.has(He)?!0:T.directoryExists(He)?(ne.set(He,!0),!0):!1}function S(He){if(He.length>e.getRootLength(He)&&!pe(He)){var ve=e.getDirectoryPath(He);S(ve),we.createDirectory?we.createDirectory(He):T.createDirectory(He)}}var v;function U(He,ve,je){v||(v=e.createMap());var w=T.createHash(ve),j=T.getModifiedTime(He);if(j){var Pe=v.get(He);if(Pe&&Pe.byteOrderMark===je&&Pe.hash===w&&Pe.mtime.getTime()===j.getTime())return}T.writeFile(He,ve,je);var a=T.getModifiedTime(He)||e.missingFileModifiedTime;v.set(He,{hash:w,byteOrderMark:je,mtime:a})}function ue(He,ve,je,w){try{e.performance.mark("beforeIOWrite"),S(e.getDirectoryPath(e.normalizePath(He))),e.isWatchSet(E)&&T.createHash&&T.getModifiedTime?U(He,ve,je):T.writeFile(He,ve,je),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(j){w&&w(j.message)}}function De(){return e.getDirectoryPath(e.normalizePath(T.getExecutingFilePath()))}var Z=e.getNewLineCharacter(E,function(){return T.newLine}),Re=T.realpath&&function(He){return T.realpath(He)},we={getSourceFile:Y,getDefaultLibLocation:De,getDefaultLibFileName:function(He){return e.combinePaths(De(),e.getDefaultLibFileName(He))},writeFile:ue,getCurrentDirectory:e.memoize(function(){return T.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return T.useCaseSensitiveFileNames},getCanonicalFileName:O,getNewLine:function(){return Z},fileExists:function(He){return T.fileExists(He)},readFile:function(He){return T.readFile(He)},trace:function(He){return T.write(He+Z)},directoryExists:function(He){return T.directoryExists(He)},getEnvironmentVariable:function(He){return T.getEnvironmentVariable?T.getEnvironmentVariable(He):""},getDirectories:function(He){return T.getDirectories(He)},realpath:Re,readDirectory:function(He,ve,je,w,j){return T.readDirectory(He,ve,je,w,j)},createDirectory:function(He){return T.createDirectory(He)},createHash:e.maybeBind(T,T.createHash)};return we}e.createCompilerHostWorker=Be;function he(E,k,T){var ne=E.readFile,O=E.fileExists,Y=E.directoryExists,pe=E.createDirectory,S=E.writeFile,v=e.createMap(),U=e.createMap(),ue=e.createMap(),De=e.createMap(),Z=function(He){var ve=k(He),je=v.get(ve);return je!==void 0?je!==!1?je:void 0:Re(ve,He)},Re=function(He,ve){var je=ne.call(E,ve);return v.set(He,je!==void 0?je:!1),je};E.readFile=function(He){var ve=k(He),je=v.get(ve);return je!==void 0?je!==!1?je:void 0:!e.fileExtensionIs(He,".json")&&!e.isBuildInfoFile(He)?ne.call(E,He):Re(ve,He)};var we=T?function(He,ve,je,w){var j=k(He),Pe=De.get(j);if(Pe)return Pe;var a=T(He,ve,je,w);return a&&(e.isDeclarationFileName(He)||e.fileExtensionIs(He,".json"))&&De.set(j,a),a}:void 0;return E.fileExists=function(He){var ve=k(He),je=U.get(ve);if(je!==void 0)return je;var w=O.call(E,He);return U.set(ve,!!w),w},S&&(E.writeFile=function(He,ve,je,w,j){var Pe=k(He);U.delete(Pe);var a=v.get(Pe);if(a!==void 0&&a!==ve)v.delete(Pe),De.delete(Pe);else if(we){var Ze=De.get(Pe);Ze&&Ze.text!==ve&&De.delete(Pe)}S.call(E,He,ve,je,w,j)}),Y&&pe&&(E.directoryExists=function(He){var ve=k(He),je=ue.get(ve);if(je!==void 0)return je;var w=Y.call(E,He);return ue.set(ve,!!w),w},E.createDirectory=function(He){var ve=k(He);ue.delete(ve),pe.call(E,He)}),{originalReadFile:ne,originalFileExists:O,originalDirectoryExists:Y,originalCreateDirectory:pe,originalWriteFile:S,getSourceFileWithCache:we,readFileWithCache:Z}}e.changeCompilerHostLikeToUseCache=he;function ee(E,k,T){var ne=Tr(E.getConfigFileParsingDiagnostics(),E.getOptionsDiagnostics(T),E.getSyntacticDiagnostics(k,T),E.getGlobalDiagnostics(T),E.getSemanticDiagnostics(k,T));return e.getEmitDeclarations(E.getCompilerOptions())&&e.addRange(ne,E.getDeclarationDiagnostics(k,T)),e.sortAndDeduplicateDiagnostics(ne)}e.getPreEmitDiagnostics=ee;function f(E,k){for(var T="",ne=0,O=E;ne<O.length;ne++){var Y=O[ne];T+=J(Y,k)}return T}e.formatDiagnostics=f;function J(E,k){var T=e.diagnosticCategoryName(E)+" TS"+E.code+": "+se(E.messageText,k.getNewLine())+k.getNewLine();if(E.file){var ne=e.getLineAndCharacterOfPosition(E.file,E.start),O=ne.line,Y=ne.character,pe=E.file.fileName,S=e.convertToRelativePath(pe,k.getCurrentDirectory(),function(v){return k.getCanonicalFileName(v)});return S+"("+(O+1)+","+(Y+1)+"): "+T}return T}e.formatDiagnostic=J;var Oe;(function(E){E.Grey="[90m",E.Red="[91m",E.Yellow="[93m",E.Blue="[94m",E.Cyan="[96m"})(Oe=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var N="[7m",Te=" ",ie="[0m",ce="...",x=" ",C=" ";function P(E){switch(E){case e.DiagnosticCategory.Error:return Oe.Red;case e.DiagnosticCategory.Warning:return Oe.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return Oe.Blue}}function h(E,k){return k+E+ie}e.formatColorAndReset=h;function X(E,k){for(;E.length<k;)E=" "+E;return E}function $(E,k,T,ne,O,Y){var pe=e.getLineAndCharacterOfPosition(E,k),S=pe.line,v=pe.character,U=e.getLineAndCharacterOfPosition(E,k+T),ue=U.line,De=U.character,Z=e.getLineAndCharacterOfPosition(E,E.text.length).line,Re=ue-S>=4,we=(ue+1+"").length;Re&&(we=Math.max(ce.length,we));for(var He="",ve=S;ve<=ue;ve++){He+=Y.getNewLine(),Re&&S+1<ve&&ve<ue-1&&(He+=ne+h(X(ce,we),N)+Te+Y.getNewLine(),ve=ue-1);var je=e.getPositionOfLineAndCharacter(E,ve,0),w=ve<Z?e.getPositionOfLineAndCharacter(E,ve+1,0):E.text.length,j=E.text.slice(je,w);if(j=j.replace(/\s+$/g,""),j=j.replace(" "," "),He+=ne+h(X(ve+1+"",we),N)+Te,He+=j+Y.getNewLine(),He+=ne+h(X("",we),N)+Te,He+=O,ve===S){var Pe=ve===ue?De:void 0;He+=j.slice(0,v).replace(/\S/g," "),He+=j.slice(v,Pe).replace(/./g,"~")}else ve===ue?He+=j.slice(0,De).replace(/./g,"~"):He+=j.replace(/./g,"~");He+=ie}return He}function Q(E,k,T,ne){ne===void 0&&(ne=h);var O=e.getLineAndCharacterOfPosition(E,k),Y=O.line,pe=O.character,S=T?e.convertToRelativePath(E.fileName,T.getCurrentDirectory(),function(U){return T.getCanonicalFileName(U)}):E.fileName,v="";return v+=ne(S,Oe.Cyan),v+=":",v+=ne(""+(Y+1),Oe.Yellow),v+=":",v+=ne(""+(pe+1),Oe.Yellow),v}e.formatLocation=Q;function z(E,k){for(var T="",ne=0,O=E;ne<O.length;ne++){var Y=O[ne];if(Y.file){var pe=Y.file,S=Y.start;T+=Q(pe,S,k),T+=" - "}if(T+=h(e.diagnosticCategoryName(Y),P(Y.category)),T+=h(" TS"+Y.code+": ",Oe.Grey),T+=se(Y.messageText,k.getNewLine()),Y.file&&(T+=k.getNewLine(),T+=$(Y.file,Y.start,Y.length,"",P(Y.category),k),Y.relatedInformation)){T+=k.getNewLine();for(var v=0,U=Y.relatedInformation;v<U.length;v++){var ue=U[v],pe=ue.file,S=ue.start,De=ue.length,Z=ue.messageText;pe&&(T+=k.getNewLine(),T+=x+Q(pe,S,k),T+=$(pe,S,De,C,Oe.Cyan,k)),T+=k.getNewLine(),T+=C+se(Z,k.getNewLine())}}T+=k.getNewLine()}return T}e.formatDiagnosticsWithColorAndContext=z;function se(E,k,T){if(T===void 0&&(T=0),e.isString(E))return E;if(E===void 0)return"";var ne="";if(T){ne+=k;for(var O=0;O<T;O++)ne+=" "}if(ne+=E.messageText,T++,E.next)for(var Y=0,pe=E.next;Y<pe.length;Y++){var S=pe[Y];ne+=se(S,k,T)}return ne}e.flattenDiagnosticMessageText=se;function G(E,k,T,ne){if(E.length===0)return[];for(var O=[],Y=e.createMap(),pe=0,S=E;pe<S.length;pe++){var v=S[pe],U=void 0;Y.has(v)?U=Y.get(v):Y.set(v,U=ne(v,k,T)),O.push(U)}return O}e.loadWithLocalCache=G,e.inferredTypesContainingFile="__inferred type names__.ts";function H(E,k,T,ne,O,Y,pe,S){if(!E||pe)return!1;if(E.getRootFileNames().length!==k.length)return!1;var v;if(!e.arrayIsEqualTo(E.getProjectReferences(),S,Z))return!1;if(E.getSourceFiles().some(ue))return!1;if(E.getMissingFilePaths().some(O))return!1;var U=E.getCompilerOptions();if(!e.compareDataObjects(U,T))return!1;if(U.configFile&&T.configFile)return U.configFile.text===T.configFile.text;return!0;function ue(we){return!De(we)||Y(we.path)}function De(we){return we.version===ne(we.resolvedPath)}function Z(we,He,ve){return e.projectReferenceIsEqualTo(we,He)?Re(E.getResolvedProjectReferences()[ve],we):!1}function Re(we,He){return we?e.contains(v,we)?!0:De(we.sourceFile)?((v||(v=[])).push(we),!e.forEach(we.references,function(ve,je){return!Re(ve,we.commandLine.projectReferences[je])})):!1:!O(I(He))}}e.isProgramUptoDate=H;function q(E){return E.options.configFile?Tr(E.options.configFile.parseDiagnostics,E.errors):E.errors}e.getConfigFileParsingDiagnostics=q;function be(E,k){if(!E)return!1;var T=E.getCompilerOptions();return!!e.sourceFileAffectingCompilerOptions.some(function(ne){return!e.isJsonEqual(e.getCompilerOptionValue(T,ne),e.getCompilerOptionValue(k,ne))})}function R(E,k,T,ne,O){return{rootNames:E,options:k,host:T,oldProgram:ne,configFileParsingDiagnostics:O}}function K(E,k,T,ne,O){var Y=e.isArray(E)?R(E,k,T,ne,O):E,pe=Y.rootNames,S=Y.options,v=Y.configFileParsingDiagnostics,U=Y.projectReferences,ue=Y.oldProgram,De,Z,Re,we,He,ve,je,w,j=e.createMap(),Pe,a={},Ze={},In=e.createMap(),et=e.createDiagnosticCollection(),ae=typeof S.maxNodeModuleJsDepth=="number"?S.maxNodeModuleJsDepth:0,fe=0,Le=e.createMap(),Je=e.createMap();e.performance.mark("beforeProgram");var $e=Y.host||Ge(S),Fe=m($e),cn=S.noLib,Qe=e.memoize(function(){return $e.getDefaultLibFileName(S)}),ln=$e.getDefaultLibLocation?$e.getDefaultLibLocation():e.getDirectoryPath(Qe()),ye=e.createDiagnosticCollection(),ke=$e.getCurrentDirectory(),F=e.getSupportedExtensions(S),c=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(S,F),L=e.createMap(),te,Se,Ne,ze=$e.hasInvalidatedResolution||e.returnFalse;if($e.resolveModuleNames)Ne=function(Fn,Yn,gt,tt){return $e.resolveModuleNames(e.Debug.assertEachDefined(Fn),Yn,gt,tt,S).map(function(Xt){if(!Xt||Xt.extension!==void 0)return Xt;var _r=e.clone(Xt);return _r.extension=e.extensionFromPath(Xt.resolvedFileName),_r})};else{Se=e.createModuleResolutionCache(ke,function(Fn){return $e.getCanonicalFileName(Fn)},S);var Tn=function(Fn,Yn,gt){return e.resolveModuleName(Fn,Yn,S,$e,Se,gt).resolvedModule};Ne=function(Fn,Yn,gt,tt){return G(e.Debug.assertEachDefined(Fn),Yn,tt,Tn)}}var wn;if($e.resolveTypeReferenceDirectives)wn=function(Fn,Yn,gt){return $e.resolveTypeReferenceDirectives(e.Debug.assertEachDefined(Fn),Yn,gt,S)};else{var jn=function(Fn,Yn,gt){return e.resolveTypeReferenceDirective(Fn,Yn,S,$e,gt).resolvedTypeReferenceDirective};wn=function(Fn,Yn,gt){return G(e.Debug.assertEachDefined(Fn),Yn,gt,jn)}}var nn=e.createMap(),pn=e.createMap(),le=e.createMultiMap(),oe=e.createMap(),Cn,yn=$e.useCaseSensitiveFileNames()?e.createMap():void 0,_e,dn,un,Rn,at=!!$e.useSourceOfProjectReferenceRedirect&&$e.useSourceOfProjectReferenceRedirect(),Bn=be(ue,S),ut;if(ut=xa(),ut!==2){if(De=[],Z=[],U&&(_e||(_e=U.map(Rs)),$e.setResolvedProjectReferenceCallbacks&&$e.setResolvedProjectReferenceCallbacks({getSourceOfProjectReferenceRedirect:kn,forEachResolvedProjectReference:rn}),pe.length))for(var ct=0,ot=_e;ct<ot.length;ct++){var dt=ot[ct];if(!dt)continue;var Ct=dt.commandLine.options.outFile||dt.commandLine.options.out;if(at){if(Ct||e.getEmitModuleKind(dt.commandLine.options)===e.ModuleKind.None)for(var st=0,Kn=dt.commandLine.fileNames;st<Kn.length;st++){var Ie=Kn[st];Ia(Ie,!1,!1,void 0)}}else if(Ct)Ia(e.changeExtension(Ct,".d.ts"),!1,!1,void 0);else if(e.getEmitModuleKind(dt.commandLine.options)===e.ModuleKind.None)for(var Ce=0,_n=dt.commandLine.fileNames;Ce<_n.length;Ce++){var Ie=_n[Ce];!e.fileExtensionIs(Ie,".d.ts")&&!e.fileExtensionIs(Ie,".json")&&Ia(e.getOutputDeclarationFileName(Ie,dt.commandLine,!$e.useCaseSensitiveFileNames()),!1,!1,void 0)}}e.forEach(pe,function(Fn){return Ln(Fn,!1,!1)});var yt=pe.length?e.getAutomaticTypeDirectiveNames(S,$e):e.emptyArray;if(yt.length)for(var Dt=S.configFilePath?e.getDirectoryPath(S.configFilePath):$e.getCurrentDirectory(),Ht=e.combinePaths(Dt,e.inferredTypesContainingFile),$t=wn(yt,Ht),wr=0;wr<yt.length;wr++)fa(yt[wr],$t[wr]);if(pe.length&&!cn){var Yr=Qe();!S.lib&&Yr?Ln(Yr,!0,!1):e.forEach(S.lib,function(Fn){Ln(e.combinePaths(ln,Fn),!0,!1)})}Cn=e.arrayFrom(e.mapDefinedIterator(oe.entries(),function(Fn){var Yn=Fn[0],gt=Fn[1];return gt===void 0?Yn:void 0})),Re=e.stableSort(De,pt).concat(Z),De=void 0,Z=void 0}if(e.Debug.assert(!!Cn),ue&&$e.onReleaseOldSourceFile){for(var Hr=ue.getSourceFiles(),mt=0,va=Hr;mt<va.length;mt++){var Lt=va[mt],Wn=ci(Lt.resolvedPath);(Bn||!Wn||Lt.resolvedPath===Lt.path&&Wn.resolvedPath!==Lt.path)&&$e.onReleaseOldSourceFile(Lt,ue.getCompilerOptions(),!!ci(Lt.path))}ue.forEachResolvedProjectReference(function(Fn,Yn){Fn&&!Ft(Yn)&&$e.onReleaseOldSourceFile(Fn.sourceFile,ue.getCompilerOptions(),!1)})}ue=void 0;var Vt={getRootFileNames:function(){return pe},getSourceFile:uo,getSourceFileByPath:ci,getSourceFiles:function(){return Re},getMissingFilePaths:function(){return Cn},getRefFileMap:function(){return Pe},getCompilerOptions:function(){return S},getSyntacticDiagnostics:ji,getOptionsDiagnostics:mi,getGlobalDiagnostics:en,getSemanticDiagnostics:Ro,getSuggestionDiagnostics:yr,getDeclarationDiagnostics:Ao,getTypeChecker:bi,getClassifiableNames:Pn,getDiagnosticsProducingTypeChecker:Ka,getCommonSourceDirectory:Ke,emit:Vo,getCurrentDirectory:function(){return ke},getNodeCount:function(){return Ka().getNodeCount()},getIdentifierCount:function(){return Ka().getIdentifierCount()},getSymbolCount:function(){return Ka().getSymbolCount()},getTypeCount:function(){return Ka().getTypeCount()},getRelationCacheSizes:function(){return Ka().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return et},getResolvedTypeReferenceDirectives:function(){return In},isSourceFileFromExternalLibrary:Oi,isSourceFileDefaultLibrary:Ja,dropDiagnosticsProducingTypeChecker:ua,getSourceFileFromReference:Pr,getLibFileFromReference:dr,sourceFileToPackageName:pn,redirectTargetsMap:le,isEmittedFile:$s,getConfigFileParsingDiagnostics:vn,getResolvedModuleWithFailedLookupLocationsFromCache:ht,getProjectReferences:xi,getResolvedProjectReferences:Si,getProjectReferenceRedirect:ge,getResolvedProjectReferenceToRedirect:de,getResolvedProjectReferenceByPath:Ft,forEachResolvedProjectReference:rn,isSourceOfProjectReferenceRedirect:Qn,emitBuildInfo:ri,getProbableSymlinks:nl};return ml(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),Vt;function pt(Fn,Yn){return e.compareValues(Tt(Fn),Tt(Yn))}function Tt(Fn){if(e.containsPath(ln,Fn.fileName,!1)){var Yn=e.getBaseFileName(Fn.fileName);if(Yn==="lib.d.ts"||Yn==="lib.es6.d.ts")return 0;var gt=e.removeSuffix(e.removePrefix(Yn,"lib."),".d.ts"),tt=e.libs.indexOf(gt);if(tt!==-1)return tt+1}return e.libs.length+2}function ht(Fn,Yn){return Se&&e.resolveModuleNameFromCache(Fn,Yn,Se)}function bt(Fn){return e.toPath(Fn,ke,ha)}function Ke(){if(He===void 0){var Fn=e.filter(Re,function(Yn){return e.sourceFileMayBeEmitted(Yn,Vt)});S.rootDir&&ks(Fn,S.rootDir)?He=e.getNormalizedAbsolutePath(S.rootDir,ke):S.composite&&S.configFilePath?(He=e.getDirectoryPath(e.normalizeSlashes(S.configFilePath)),ks(Fn,He)):He=ko(Fn),He&&He[He.length-1]!==e.directorySeparator&&(He+=e.directorySeparator)}return He}function Pn(){if(!w){bi(),w=e.createUnderscoreEscapedMap();for(var Fn=0,Yn=Re;Fn<Yn.length;Fn++){var gt=Yn[Fn];e.copyEntries(gt.classifiableNames,w)}}return w}function $n(Fn,Yn,gt){if(ut===0&&!gt.ambientModuleNames.length)return Ne(Fn,Yn,void 0,de(gt.originalFileName));var tt=ue&&ue.getSourceFile(Yn);if(tt!==gt&>.resolvedModules){for(var Xt=[],_r=0,Kr=Fn;_r<Kr.length;_r++){var Dr=Kr[_r],Ir=gt.resolvedModules.get(Dr);Xt.push(Ir)}return Xt}for(var Mr,Er,pa,Ca={},Ma=0;Ma<Fn.length;Ma++){var Dr=Fn[Ma];if(gt===tt&&!ze(tt.path)){var gi=tt&&tt.resolvedModules.get(Dr);if(gi){e.isTraceEnabled(S,$e)&&e.trace($e,e.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,Dr,Yn),(Er||(Er=new Array(Fn.length)))[Ma]=gi,(pa||(pa=[])).push(Dr);continue}}var vo=!1;e.contains(gt.ambientModuleNames,Dr)?(vo=!0,e.isTraceEnabled(S,$e)&&e.trace($e,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,Dr,Yn)):vo=Ki(Dr),vo?(Er||(Er=new Array(Fn.length)))[Ma]=Ca:(Mr||(Mr=[])).push(Dr)}var di=Mr&&Mr.length?Ne(Mr,Yn,pa,de(gt.originalFileName)):e.emptyArray;if(!Er)return e.Debug.assert(di.length===Fn.length),di;for(var Lo=0,Ma=0;Ma<Er.length;Ma++)Er[Ma]?Er[Ma]===Ca&&(Er[Ma]=void 0):(Er[Ma]=di[Lo],Lo++);return e.Debug.assert(Lo===di.length),Er;function Ki(xn){var bo=e.getResolvedModule(tt,xn),Fo=bo&&ue.getSourceFile(bo.resolvedFileName);if(bo&&Fo)return!1;var Ho=j.get(xn);return Ho?(e.isTraceEnabled(S,$e)&&e.trace($e,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,xn,Ho),!0):!1}}function rr(){return!lt(ue.getProjectReferences(),ue.getResolvedProjectReferences(),function(Fn,Yn,gt){var tt=(gt?gt.commandLine.projectReferences:U)[Yn],Xt=Rs(tt);return Fn?!Xt||Xt.sourceFile!==Fn.sourceFile:Xt!==void 0},function(Fn,Yn){var gt=Yn?Ft(Yn.sourceFile.path).commandLine.projectReferences:U;return!e.arrayIsEqualTo(Fn,gt,e.projectReferenceIsEqualTo)})}function xa(){if(!ue)return 0;var Fn=ue.getCompilerOptions();if(e.changesAffectModuleResolution(Fn,S))return ue.structureIsReused=0;e.Debug.assert(!(ue.structureIsReused&(2|1)));var Yn=ue.getRootFileNames();if(!e.arrayIsEqualTo(Yn,pe))return ue.structureIsReused=0;if(!e.arrayIsEqualTo(S.types,Fn.types))return ue.structureIsReused=0;if(!rr())return ue.structureIsReused=0;U&&(_e=U.map(Rs),$e.setResolvedProjectReferenceCallbacks&&$e.setResolvedProjectReferenceCallbacks({getSourceOfProjectReferenceRedirect:kn,forEachResolvedProjectReference:rn}));var gt=[],tt=[];if(ue.structureIsReused=2,ue.getMissingFilePaths().some(function(Qo){return $e.fileExists(Qo)}))return ue.structureIsReused=0;var Xt=ue.getSourceFiles(),_r;(function(Qo){Qo[Qo.Exists=0]="Exists",Qo[Qo.Modified=1]="Modified"})(_r||(_r={}));for(var Kr=e.createMap(),Dr=0,Ir=Xt;Dr<Ir.length;Dr++){var Mr=Ir[Dr],Er=$e.getSourceFileByPath?$e.getSourceFileByPath(Mr.fileName,Mr.resolvedPath,S.target,void 0,Bn):$e.getSourceFile(Mr.fileName,S.target,void 0,Bn);if(!Er)return ue.structureIsReused=0;e.Debug.assert(!Er.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var pa=void 0;if(Mr.redirectInfo){if(Er!==Mr.redirectInfo.unredirected)return ue.structureIsReused=0;pa=!1,Er=Mr}else if(ue.redirectTargetsMap.has(Mr.path)){if(Er!==Mr)return ue.structureIsReused=0;pa=!1}else pa=Er!==Mr;Er.path=Mr.path,Er.originalFileName=Mr.originalFileName,Er.resolvedPath=Mr.resolvedPath,Er.fileName=Mr.fileName;var Ca=ue.sourceFileToPackageName.get(Mr.path);if(Ca!==void 0){var Ma=Kr.get(Ca),gi=pa?1:0;if(Ma!==void 0&&gi===1||Ma===1)return ue.structureIsReused=0;Kr.set(Ca,gi)}if(pa){if(!e.arrayIsEqualTo(Mr.libReferenceDirectives,Er.libReferenceDirectives,Vn))return ue.structureIsReused=0;Mr.hasNoDefaultLib!==Er.hasNoDefaultLib&&(ue.structureIsReused=1),e.arrayIsEqualTo(Mr.referencedFiles,Er.referencedFiles,Vn)||(ue.structureIsReused=1),tr(Er),e.arrayIsEqualTo(Mr.imports,Er.imports,Mt)||(ue.structureIsReused=1),e.arrayIsEqualTo(Mr.moduleAugmentations,Er.moduleAugmentations,Mt)||(ue.structureIsReused=1),(Mr.flags&3145728)!==(Er.flags&3145728)&&(ue.structureIsReused=1),e.arrayIsEqualTo(Mr.typeReferenceDirectives,Er.typeReferenceDirectives,Vn)||(ue.structureIsReused=1),tt.push({oldFile:Mr,newFile:Er})}else ze(Mr.path)&&(ue.structureIsReused=1,tt.push({oldFile:Mr,newFile:Er}));gt.push(Er)}if(ue.structureIsReused!==2)return ue.structureIsReused;for(var vo=tt.map(function(Qo){return Qo.oldFile}),di=0,Lo=Xt;di<Lo.length;di++){var Ki=Lo[di];if(!e.contains(vo,Ki))for(var xn=0,bo=Ki.ambientModuleNames;xn<bo.length;xn++){var Fo=bo[xn];j.set(Fo,Ki.fileName)}}for(var Ho=0,Ga=tt;Ho<Ga.length;Ho++){var vs=Ga[Ho],Mr=vs.oldFile,Er=vs.newFile,me=e.getNormalizedAbsolutePath(Er.originalFileName,ke),En=y(Er),Zn=$n(En,me,Er),Gt=e.hasChangesInResolutions(En,Zn,Mr.resolvedModules,e.moduleResolutionIsEqualTo);if(Gt?(ue.structureIsReused=1,Er.resolvedModules=e.zipToMap(En,Zn)):Er.resolvedModules=Mr.resolvedModules,wn){var vr=e.map(Er.typeReferenceDirectives,function(Os){return Os.fileName.toLocaleLowerCase()}),ga=wn(vr,me,de(Er.originalFileName)),ii=e.hasChangesInResolutions(vr,ga,Mr.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo);ii?(ue.structureIsReused=1,Er.resolvedTypeReferenceDirectiveNames=e.zipToMap(vr,ga)):Er.resolvedTypeReferenceDirectiveNames=Mr.resolvedTypeReferenceDirectiveNames}}if(ue.structureIsReused!==2)return ue.structureIsReused;if($e.hasChangedAutomaticTypeDirectiveNames)return ue.structureIsReused=1;Cn=ue.getMissingFilePaths(),Pe=ue.getRefFileMap();for(var qa=0,wi=gt;qa<wi.length;qa++){var Er=wi[qa],eo=Er.path;if(qn(Er,eo,Er.resolvedPath),at){var na=hn(Er.fileName);if(na&&!(na.commandLine.options.outFile||na.commandLine.options.out)){var Lr=Hn(na,Er.fileName);qn(Er,bt(Lr),void 0)}}ue.isSourceFileFromExternalLibrary(ue.getSourceFileByPath(Er.resolvedPath))&&Je.set(eo,!0)}Re=gt,et=ue.getFileProcessingDiagnostics();for(var Eo=0,Uo=tt;Eo<Uo.length;Eo++){var tl=Uo[Eo];et.reattachFileDiagnostics(tl.newFile)}return In=ue.getResolvedTypeReferenceDirectives(),pn=ue.sourceFileToPackageName,le=ue.redirectTargetsMap,ue.structureIsReused=2}function Fa(Fn){return Rr(Rr({getPrependNodes:vi,getCanonicalFileName:ha,getCommonSourceDirectory:Vt.getCommonSourceDirectory,getCompilerOptions:Vt.getCompilerOptions,getCurrentDirectory:function(){return ke},getNewLine:function(){return $e.getNewLine()},getSourceFile:Vt.getSourceFile,getSourceFileByPath:Vt.getSourceFileByPath,getSourceFiles:Vt.getSourceFiles,getLibFileFromReference:Vt.getLibFileFromReference,isSourceFileFromExternalLibrary:Oi,getResolvedProjectReferenceToRedirect:de,isSourceOfProjectReferenceRedirect:Qn,getProbableSymlinks:nl,writeFile:Fn||function(Yn,gt,tt,Xt,_r){return $e.writeFile(Yn,gt,tt,Xt,_r)},isEmitBlocked:wo,readFile:function(Yn){return $e.readFile(Yn)},fileExists:function(Yn){var gt=bt(Yn);return ci(gt)?!0:e.contains(Cn,gt)?!1:$e.fileExists(Yn)}},$e.directoryExists?{directoryExists:function(Yn){return $e.directoryExists(Yn)}}:{}),{useCaseSensitiveFileNames:function(){return $e.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return Vt.getProgramBuildInfo&&Vt.getProgramBuildInfo()},getSourceFileFromReference:function(Yn,gt){return Vt.getSourceFileFromReference(Yn,gt)},redirectTargetsMap:le})}function ri(Fn){e.Debug.assert(!S.out&&!S.outFile),e.performance.mark("beforeEmit");var Yn=e.emitFiles(e.notImplementedResolver,Fa(Fn),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),Yn}function Si(){return _e}function xi(){return U}function vi(){return _(U,function(Fn,Yn){return _e[Yn].commandLine},function(Fn){var Yn=bt(Fn),gt=ci(Yn);return gt?gt.text:oe.has(Yn)?void 0:$e.readFile(Yn)})}function Oi(Fn){return!!Je.get(Fn.path)}function Ja(Fn){if(Fn.hasNoDefaultLib)return!0;if(!S.noLib)return!1;var Yn=$e.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return S.lib?e.some(S.lib,function(gt){return Yn(Fn.fileName,e.combinePaths(ln,gt))}):Yn(Fn.fileName,Qe())}function Ka(){return ve||(ve=e.createTypeChecker(Vt,!0))}function ua(){ve=void 0}function bi(){return je||(je=e.createTypeChecker(Vt,!1))}function Vo(Fn,Yn,gt,tt,Xt,_r){return Ri(function(){return Mo(Vt,Fn,Yn,gt,tt,Xt,_r)})}function wo(Fn){return L.has(bt(Fn))}function Mo(Fn,Yn,gt,tt,Xt,_r,Kr){var Dr=[];if(!Kr){if(S.noEmit)return{diagnostics:Dr,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};if(S.noEmitOnError){var Ir=Tr(Fn.getOptionsDiagnostics(tt),Fn.getSyntacticDiagnostics(Yn,tt),Fn.getGlobalDiagnostics(tt),Fn.getSemanticDiagnostics(Yn,tt));if(Ir.length===0&&e.getEmitDeclarations(Fn.getCompilerOptions())&&(Dr=Fn.getDeclarationDiagnostics(void 0,tt)),Ir.length>0||Dr.length>0)return{diagnostics:e.concatenate(Ir,Dr),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}var Mr=Ka().getEmitResolver(S.outFile||S.out?void 0:Yn,tt);e.performance.mark("beforeEmit");var Er=e.emitFiles(Mr,Fa(gt),Yn,e.getTransformers(S,_r,Xt),Xt,!1,Kr);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),Er}function uo(Fn){return ci(bt(Fn))}function ci(Fn){return oe.get(Fn)||void 0}function Gi(Fn,Yn,gt){return Fn?Yn(Fn,gt):e.sortAndDeduplicateDiagnostics(e.flatMap(Vt.getSourceFiles(),function(tt){return gt&>.throwIfCancellationRequested(),Yn(tt,gt)}))}function ji(Fn,Yn){return Gi(Fn,_o,Yn)}function Ro(Fn,Yn){return Gi(Fn,xt,Yn)}function Ao(Fn,Yn){var gt=Vt.getCompilerOptions();return!Fn||gt.out||gt.outFile?La(Fn,Yn):Gi(Fn,Li,Yn)}function _o(Fn){return e.isSourceFileJS(Fn)?(Fn.additionalSyntacticDiagnostics||(Fn.additionalSyntacticDiagnostics=_a(Fn)),e.concatenate(Fn.additionalSyntacticDiagnostics,Fn.parseDiagnostics)):Fn.parseDiagnostics}function Ri(Fn){try{return Fn()}catch(Yn){throw Yn instanceof e.OperationCanceledException&&(je=void 0,ve=void 0),Yn}}function xt(Fn,Yn){return pi(Fn,Yn,a,Kt)}function Kt(Fn,Yn){return Ri(function(){if(e.skipTypeChecking(Fn,S,Vt))return e.emptyArray;var gt=Ka();e.Debug.assert(!!Fn.bindDiagnostics);for(var tt=e.isCheckJsEnabledForFile(Fn,S),Xt=!!Fn.checkJsDirective&&Fn.checkJsDirective.enabled===!1,_r=!Xt&&(Fn.scriptKind===3||Fn.scriptKind===4||Fn.scriptKind===5||tt||Fn.scriptKind===7),Kr=_r?Fn.bindDiagnostics:e.emptyArray,Dr=_r?gt.getDiagnostics(Fn,Yn):e.emptyArray,Ir=et.getDiagnostics(Fn.fileName),Mr=ye.getDiagnostics(Fn.fileName),Er,pa=0,Ca=[Kr,Dr,Ir,Mr,tt?Fn.jsDocDiagnostics:void 0];pa<Ca.length;pa++){var Ma=Ca[pa];if(Ma)for(var gi=0,vo=Ma;gi<vo.length;gi++){var di=vo[gi];Jr(di)&&(Er=e.append(Er,di))}}return Er})}function yr(Fn,Yn){return Ri(function(){return Ka().getSuggestionDiagnostics(Fn,Yn)})}function Jr(Fn){var Yn=Fn.file,gt=Fn.start;if(Yn)for(var tt=e.getLineStarts(Yn),Xt=e.computeLineAndCharacterOfPosition(tt,gt).line;Xt>0;){var _r=Yn.text.slice(tt[Xt-1],tt[Xt]),Kr=o.exec(_r);if(!Kr)return!0;if(Kr[3])return!1;Xt--}return!0}function _a(Fn){return Ri(function(){var Yn=[],gt=Fn;return tt(Fn),Yn;function tt(Ir){switch(gt.kind){case 155:case 158:case 160:if(gt.questionToken===Ir){Yn.push(Dr(Ir,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));return}case 159:case 161:case 162:case 163:case 200:case 243:case 201:case 241:if(gt.type===Ir){Yn.push(Dr(Ir,e.Diagnostics.types_can_only_be_used_in_a_ts_file));return}}switch(Ir.kind){case 252:Yn.push(Dr(Ir,e.Diagnostics.import_can_only_be_used_in_a_ts_file));return;case 258:if(Ir.isExportEquals){Yn.push(Dr(Ir,e.Diagnostics.export_can_only_be_used_in_a_ts_file));return}break;case 277:var Mr=Ir;if(Mr.token===112){Yn.push(Dr(Ir,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));return}break;case 245:Yn.push(Dr(Ir,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));return;case 248:Yn.push(Dr(Ir,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));return;case 246:Yn.push(Dr(Ir,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));return;case 247:Yn.push(Dr(Ir,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));return;case 217:Yn.push(Dr(Ir,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));return;case 216:Yn.push(Dr(Ir.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));return;case 198:e.Debug.fail()}var Er=gt;gt=Ir,e.forEachChild(Ir,tt,Xt),gt=Er}function Xt(Ir){gt.decorators===Ir&&!S.experimentalDecorators&&Yn.push(Dr(gt,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));switch(gt.kind){case 244:case 213:case 160:case 161:case 162:case 163:case 200:case 243:case 201:if(Ir===gt.typeParameters){Yn.push(Kr(Ir,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));return}case 224:if(Ir===gt.modifiers)return _r(gt.modifiers,gt.kind===224);break;case 158:if(Ir===gt.modifiers){for(var Mr=0,Er=Ir;Mr<Er.length;Mr++){var pa=Er[Mr];pa.kind!==119&&Yn.push(Dr(pa,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(pa.kind)))}return}break;case 155:if(Ir===gt.modifiers){Yn.push(Kr(Ir,e.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file));return}break;case 195:case 196:case 215:case 265:case 266:case 197:if(Ir===gt.typeArguments){Yn.push(Kr(Ir,e.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file));return}break}for(var Ca=0,Ma=Ir;Ca<Ma.length;Ca++){var gi=Ma[Ca];tt(gi)}}function _r(Ir,Mr){for(var Er=0,pa=Ir;Er<pa.length;Er++){var Ca=pa[Er];switch(Ca.kind){case 80:if(Mr)continue;case 118:case 116:case 117:case 137:case 129:case 121:Yn.push(Dr(Ca,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(Ca.kind)));break;case 119:case 88:case 83:}}}function Kr(Ir,Mr,Er,pa,Ca){var Ma=Ir.pos;return e.createFileDiagnostic(Fn,Ma,Ir.end-Ma,Mr,Er,pa,Ca)}function Dr(Ir,Mr,Er,pa,Ca){return e.createDiagnosticForNodeInSourceFile(Fn,Ir,Mr,Er,pa,Ca)}})}function La(Fn,Yn){return pi(Fn,Yn,Ze,qr)}function qr(Fn,Yn){return Ri(function(){var gt=Ka().getEmitResolver(Fn,Yn);return e.getDeclarationDiagnostics(Fa(e.noop),gt,Fn)})}function pi(Fn,Yn,gt,tt){var Xt=Fn?gt.perFile&>.perFile.get(Fn.path):gt.allDiagnostics;if(Xt)return Xt;var _r=tt(Fn,Yn)||e.emptyArray;return Fn?(gt.perFile||(gt.perFile=e.createMap()),gt.perFile.set(Fn.path,_r)):gt.allDiagnostics=_r,_r}function Li(Fn,Yn){return Fn.isDeclarationFile?[]:La(Fn,Yn)}function mi(){return e.sortAndDeduplicateDiagnostics(e.concatenate(et.getGlobalDiagnostics(),e.concatenate(ye.getGlobalDiagnostics(),da())))}function da(){if(!S.configFile)return e.emptyArray;var Fn=ye.getDiagnostics(S.configFile.fileName);return rn(function(Yn){Yn&&(Fn=e.concatenate(Fn,ye.getDiagnostics(Yn.sourceFile.fileName)))}),Fn}function en(){return pe.length?e.sortAndDeduplicateDiagnostics(Ka().getGlobalDiagnostics().slice()):e.emptyArray}function vn(){return v||e.emptyArray}function Ln(Fn,Yn,gt){Ia(e.normalizePath(Fn),Yn,gt,void 0)}function Vn(Fn,Yn){return Fn.fileName===Yn.fileName}function Mt(Fn,Yn){return Fn.kind===75?Yn.kind===75&&Fn.escapedText===Yn.escapedText:Yn.kind===10&&Fn.text===Yn.text}function tr(Fn){if(Fn.imports)return;var Yn=e.isSourceFileJS(Fn),gt=e.isExternalModule(Fn),tt,Xt,_r;if(S.importHelpers&&(S.isolatedModules||gt)&&!Fn.isDeclarationFile){var Kr=e.createLiteral(e.externalHelpersModuleNameText),Dr=e.createImportDeclaration(void 0,void 0,void 0,Kr);e.addEmitFlags(Dr,67108864),Kr.parent=Dr,Dr.parent=Fn,tt=[Kr]}for(var Ir=0,Mr=Fn.statements;Ir<Mr.length;Ir++){var Er=Mr[Ir];pa(Er,!1)}(Fn.flags&1048576||Yn)&&Ca(Fn),Fn.imports=tt||e.emptyArray,Fn.moduleAugmentations=Xt||e.emptyArray,Fn.ambientModuleNames=_r||e.emptyArray;return;function pa(gi,vo){if(e.isAnyImportOrReExport(gi)){var di=e.getExternalModuleName(gi);di&&e.isStringLiteral(di)&&di.text&&(!vo||!e.isExternalModuleNameRelative(di.text))&&(tt=e.append(tt,di))}else if(e.isModuleDeclaration(gi)&&(e.isAmbientModule(gi)&&(vo||e.hasModifier(gi,2)||Fn.isDeclarationFile))){var Lo=e.getTextOfIdentifierOrLiteral(gi.name);if(gt||vo&&!e.isExternalModuleNameRelative(Lo))(Xt||(Xt=[])).push(gi.name);else if(!vo){Fn.isDeclarationFile&&(_r||(_r=[])).push(Lo);var Ki=gi.body;if(Ki)for(var xn=0,bo=Ki.statements;xn<bo.length;xn++){var Fo=bo[xn];pa(Fo,!0)}}}}function Ca(gi){for(var vo=/import|require/g;vo.exec(gi.text)!==null;){var di=Ma(gi,vo.lastIndex);e.isRequireCall(di,!0)||e.isImportCall(di)&&di.arguments.length===1&&e.isStringLiteralLike(di.arguments[0])?tt=e.append(tt,di.arguments[0]):e.isLiteralImportTypeNode(di)&&(tt=e.append(tt,di.argument.literal))}}function Ma(gi,vo){for(var di=gi,Lo=function(xn){if(xn.pos<=vo&&(vo<xn.end||vo===xn.end&&xn.kind===1))return xn};;){var Ki=Yn&&e.hasJSDocNodes(di)&&e.forEach(di.jsDoc,Lo)||e.forEachChild(di,Lo);if(!Ki)return di;di=Ki}}}function dr(Fn){var Yn=Fn.fileName.toLocaleLowerCase(),gt=e.libMap.get(Yn);if(gt)return uo(e.combinePaths(ln,gt))}function Pr(Fn,Yn){return za(qe(Yn.fileName,Fn.fileName),function(gt){return oe.get(bt(gt))||void 0})}function za(Fn,Yn,gt,tt){if(e.hasExtension(Fn)){if(!S.allowNonTsExtensions&&!e.forEach(c,function(Ir){return e.fileExtensionIs($e.getCanonicalFileName(Fn),Ir)})){gt&>(e.Diagnostics.File_0_has_unsupported_extension_The_only_supported_extensions_are_1,Fn,"'"+F.join("', '")+"'");return}var Xt=Yn(Fn);if(gt)if(Xt)tt&&$e.getCanonicalFileName(Fn)===$e.getCanonicalFileName(tt.fileName)&>(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var _r=ge(Fn);_r?gt(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,_r,Fn):gt(e.Diagnostics.File_0_not_found,Fn)}return Xt}else{var Kr=S.allowNonTsExtensions&&Yn(Fn);if(Kr)return Kr;if(gt&&S.allowNonTsExtensions){gt(e.Diagnostics.File_0_not_found,Fn);return}var Dr=e.forEach(F,function(Ir){return Yn(Fn+Ir)});return gt&&!Dr&>(e.Diagnostics.File_0_not_found,Fn+".ts"),Dr}}function Ia(Fn,Yn,gt,tt,Xt){za(Fn,function(_r){return hi(_r,bt(_r),Yn,gt,Xt,tt)},function(_r){for(var Kr=[],Dr=1;Dr<arguments.length;Dr++)Kr[Dr-1]=arguments[Dr];return et.add(to.apply(void 0,Tr([Xt,_r],Kr)))},Xt&&Xt.file)}function Ii(Fn,Yn,gt){et.add(to(gt,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,Fn,Yn))}function ai(Fn,Yn,gt,tt,Xt,_r){var Kr=Object.create(Fn);return Kr.fileName=gt,Kr.path=tt,Kr.resolvedPath=Xt,Kr.originalFileName=_r,Kr.redirectInfo={redirectTarget:Fn,unredirected:Yn},Je.set(tt,fe>0),Object.defineProperties(Kr,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(Dr){this.redirectInfo.redirectTarget.id=Dr}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(Dr){this.redirectInfo.redirectTarget.symbol=Dr}}}),Kr}function hi(Fn,Yn,gt,tt,Xt,_r){if(at){var Kr=kn(Fn);if(!Kr&&$e.realpath&&S.preserveSymlinks&&e.isDeclarationFileName(Fn)&&e.stringContains(Fn,e.nodeModulesPathPart)){var Dr=$e.realpath(Fn);Dr!==Fn&&(Kr=kn(Dr))}if(Kr){var Ir=e.isString(Kr)?hi(Kr,bt(Kr),gt,tt,Xt,_r):void 0;return Ir&&qn(Ir,Yn,void 0),Ir}}var Mr=Fn;if(oe.has(Yn)){var Er=oe.get(Yn);if(Er&&S.forceConsistentCasingInFileNames){var pa=Fn,Ca=Er.fileName,Ma=bt(Ca)!==bt(pa);Ma&&(pa=ge(Fn)||Fn);var gi=e.getNormalizedAbsolutePathWithoutRoot(Ca,ke),vo=e.getNormalizedAbsolutePathWithoutRoot(pa,ke);gi!==vo&&Ii(pa,Ca,Xt)}return Er&&Je.get(Er.path)&&fe===0?(Je.set(Er.path,!1),S.noResolve||(on(Er,gt),kr(Er)),S.noLib||Wa(Er),Le.set(Er.path,!1),Yo(Er)):Er&&Le.get(Er.path)&&(fe<ae&&(Le.set(Er.path,!1),Yo(Er))),Xe(Er||void 0,Xt),Er||void 0}var di;if(Xt&&!at){var Lo=hn(Fn);if(Lo){if(Lo.commandLine.options.outFile||Lo.commandLine.options.out)return;var Ki=Hn(Lo,Fn);Fn=Ki,di=bt(Ki)}}var xn=$e.getSourceFile(Fn,S.target,function(me){return et.add(to(Xt,e.Diagnostics.Cannot_read_file_0_Colon_1,Fn,me))},Bn);if(_r){var bo=e.packageIdToString(_r),Fo=nn.get(bo);if(Fo){var Ho=ai(Fo,xn,Fn,Yn,bt(Fn),Mr);return le.add(Fo.path,Fn),qn(Ho,Yn,di),pn.set(Yn,_r.name),Z.push(Ho),Ho}else xn&&(nn.set(bo,xn),pn.set(Yn,_r.name))}if(qn(xn,Yn,di),xn){if(Je.set(Yn,fe>0),xn.path=Yn,xn.resolvedPath=bt(Fn),xn.originalFileName=Mr,$e.useCaseSensitiveFileNames()){var Ga=Yn.toLowerCase(),vs=yn.get(Ga);vs?Ii(Fn,vs.fileName,Xt):yn.set(Ga,xn)}cn=cn||xn.hasNoDefaultLib&&!tt,S.noResolve||(on(xn,gt),kr(xn)),S.noLib||Wa(xn),Yo(xn),gt?De.push(xn):Z.push(xn)}return Xe(xn,Xt),xn}function Xe(Fn,Yn){Yn&&Fn&&(Pe||(Pe=e.createMultiMap())).add(Fn.path,{kind:Yn.kind,index:Yn.index,file:Yn.file.path})}function qn(Fn,Yn,gt){gt?(oe.set(gt,Fn),oe.set(Yn,Fn||!1)):oe.set(Yn,Fn)}function ge(Fn){var Yn=hn(Fn);return Yn&&Hn(Yn,Fn)}function hn(Fn){return!_e||!_e.length||e.fileExtensionIs(Fn,".d.ts")||e.fileExtensionIs(Fn,".json")?void 0:de(Fn)}function Hn(Fn,Yn){var gt=Fn.commandLine.options.outFile||Fn.commandLine.options.out;return gt?e.changeExtension(gt,".d.ts"):e.getOutputDeclarationFileName(Yn,Fn.commandLine,!$e.useCaseSensitiveFileNames())}function de(Fn){un===void 0&&(un=e.createMap(),rn(function(gt,tt){gt&&bt(S.configFilePath)!==tt&>.commandLine.fileNames.forEach(function(Xt){return un.set(bt(Xt),tt)})}));var Yn=un.get(bt(Fn));return Yn&&Ft(Yn)}function rn(Fn){return lt(U,_e,function(Yn,gt,tt){var Xt=(tt?tt.commandLine.projectReferences:U)[gt],_r=bt(I(Xt));return Fn(Yn,_r)})}function kn(Fn){return e.isDeclarationFileName(Fn)?(Rn===void 0&&(Rn=e.createMap(),rn(function(Yn){if(Yn){var gt=Yn.commandLine.options.outFile||Yn.commandLine.options.out;if(gt){var tt=e.changeExtension(gt,".d.ts");Rn.set(bt(tt),!0)}else e.forEach(Yn.commandLine.fileNames,function(Xt){if(!e.fileExtensionIs(Xt,".d.ts")&&!e.fileExtensionIs(Xt,".json")){var _r=e.getOutputDeclarationFileName(Xt,Yn.commandLine,$e.useCaseSensitiveFileNames());Rn.set(bt(_r),Xt)}})}})),Rn.get(bt(Fn))):void 0}function Qn(Fn){return at&&!!de(Fn)}function lt(Fn,Yn,gt,tt){var Xt;return _r(Fn,Yn,void 0,gt,tt);function _r(Kr,Dr,Ir,Mr,Er){if(Er){var pa=Er(Kr,Ir);if(pa)return pa}return e.forEach(Dr,function(Ca,Ma){if(e.contains(Xt,Ca))return;var gi=Mr(Ca,Ma,Ir);return gi||(Ca?((Xt||(Xt=[])).push(Ca),_r(Ca.commandLine.projectReferences,Ca.references,Ca,Mr,Er)):void 0)})}}function Ft(Fn){return dn&&dn.get(Fn)||void 0}function on(Fn,Yn){e.forEach(Fn.referencedFiles,function(gt,tt){var Xt=qe(gt.fileName,Fn.originalFileName);Ia(Xt,Yn,!1,void 0,{kind:e.RefFileKind.ReferenceFile,index:tt,file:Fn,pos:gt.pos,end:gt.end})})}function kr(Fn){var Yn=e.map(Fn.typeReferenceDirectives,function(Dr){return Dr.fileName.toLocaleLowerCase()});if(!Yn)return;for(var gt=wn(Yn,Fn.originalFileName,de(Fn.originalFileName)),tt=0;tt<Yn.length;tt++){var Xt=Fn.typeReferenceDirectives[tt],_r=gt[tt],Kr=Xt.fileName.toLocaleLowerCase();e.setResolvedTypeReferenceDirective(Fn,Kr,_r),fa(Kr,_r,{kind:e.RefFileKind.TypeReferenceDirective,index:tt,file:Fn,pos:Xt.pos,end:Xt.end})}}function fa(Fn,Yn,gt){var tt=In.get(Fn);if(tt&&tt.primary)return;var Xt=!0;if(Yn){if(Yn.isExternalLibraryImport&&fe++,Yn.primary)Ia(Yn.resolvedFileName,!1,!1,Yn.packageId,gt);else if(tt){if(Yn.resolvedFileName!==tt.resolvedFileName){var _r=$e.readFile(Yn.resolvedFileName);_r!==uo(tt.resolvedFileName).text&&et.add(to(gt,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,Fn,Yn.resolvedFileName,tt.resolvedFileName))}Xt=!1}else Ia(Yn.resolvedFileName,!1,!1,Yn.packageId,gt);Yn.isExternalLibraryImport&&fe--}else et.add(to(gt,e.Diagnostics.Cannot_find_type_definition_file_for_0,Fn));Xt&&In.set(Fn,Yn)}function Wa(Fn){e.forEach(Fn.libReferenceDirectives,function(Yn){var gt=Yn.fileName.toLocaleLowerCase(),tt=e.libMap.get(gt);if(tt)Ln(e.combinePaths(ln,tt),!0,!0);else{var Xt=e.removeSuffix(e.removePrefix(gt,"lib."),".d.ts"),_r=e.getSpellingSuggestion(Xt,e.libs,e.identity),Kr=_r?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;et.add(e.createFileDiagnostic(Fn,Yn.pos,Yn.end-Yn.pos,Kr,gt,_r))}})}function to(Fn,Yn){for(var gt=[],tt=2;tt<arguments.length;tt++)gt[tt-2]=arguments[tt];return Fn?e.createFileDiagnostic.apply(void 0,Tr([Fn.file,Fn.pos,Fn.end-Fn.pos,Yn],gt)):e.createCompilerDiagnostic.apply(void 0,Tr([Yn],gt))}function ha(Fn){return $e.getCanonicalFileName(Fn)}function Yo(Fn){if(tr(Fn),Fn.imports.length||Fn.moduleAugmentations.length){var Yn=y(Fn),gt=$n(Yn,e.getNormalizedAbsolutePath(Fn.originalFileName,ke),Fn);e.Debug.assert(gt.length===Yn.length);for(var tt=0;tt<Yn.length;tt++){var Xt=gt[tt];if(e.setResolvedModule(Fn,Yn[tt],Xt),!Xt)continue;var _r=Xt.isExternalLibraryImport,Kr=!e.resolutionExtensionIsTSOrJson(Xt.extension),Dr=_r&&Kr,Ir=Xt.resolvedFileName;_r&&fe++;var Mr=Dr&&fe>ae,Er=Ir&&!D(S,Xt)&&!S.noResolve&&tt<Fn.imports.length&&!Mr&&!(Kr&&!S.allowJs)&&(e.isInJSFile(Fn.imports[tt])||!(Fn.imports[tt].flags&4194304));if(Mr)Le.set(Fn.path,!0);else if(Er){var pa=bt(Ir),Ca=e.skipTrivia(Fn.text,Fn.imports[tt].pos);hi(Ir,pa,!1,!1,{kind:e.RefFileKind.Import,index:tt,file:Fn,pos:Ca,end:Fn.imports[tt].end},Xt.packageId)}_r&&fe--}}else Fn.resolvedModules=void 0}function ko(Fn){var Yn=e.mapDefined(Fn,function(gt){return gt.isDeclarationFile?void 0:gt.fileName});return Ee(Yn,ke,ha)}function ks(Fn,Yn){for(var gt=!0,tt=$e.getCanonicalFileName(e.getNormalizedAbsolutePath(Yn,ke)),Xt,_r=0,Kr=Fn;_r<Kr.length;_r++){var Dr=Kr[_r];if(!Dr.isDeclarationFile){var Ir=$e.getCanonicalFileName(e.getNormalizedAbsolutePath(Dr.fileName,ke));Ir.indexOf(tt)!==0&&(Xt||(Xt=e.arrayToSet(pe,bt)),Fs(Dr,Xt,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,Dr.fileName,Yn),gt=!1)}}return gt}function Rs(Fn){dn||(dn=e.createMap());var Yn=I(Fn),gt=bt(Yn),tt=dn.get(gt);if(tt!==void 0)return tt||void 0;var Xt,_r;if($e.getParsedCommandLine){if(Xt=$e.getParsedCommandLine(Yn),!Xt){qn(void 0,gt,void 0),dn.set(gt,!1);return}_r=e.Debug.assertDefined(Xt.options.configFile),e.Debug.assert(!_r.path||_r.path===gt),qn(_r,gt,void 0)}else{var Kr=e.getNormalizedAbsolutePath(e.getDirectoryPath(Yn),$e.getCurrentDirectory());if(_r=$e.getSourceFile(Yn,100),qn(_r,gt,void 0),_r===void 0){dn.set(gt,!1);return}Xt=e.parseJsonSourceFileConfigFileContent(_r,Fe,Kr,void 0,Yn)}_r.path=gt,_r.resolvedPath=gt,_r.originalFileName=Yn;var Dr={commandLine:Xt,sourceFile:_r};return dn.set(gt,Dr),Xt.projectReferences&&(Dr.references=Xt.projectReferences.map(Rs)),Dr}function ml(){if(S.strictPropertyInitialization&&!e.getStrictOptionValue(S,"strictNullChecks")&&po(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),S.isolatedModules&&(S.out&&po(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),S.outFile&&po(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),S.inlineSourceMap&&(S.sourceMap&&po(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),S.mapRoot&&po(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),S.paths&&S.baseUrl===void 0&&po(e.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths"),S.composite&&(S.declaration===!1&&po(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),S.incremental===!1&&po(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration")),S.tsBuildInfoFile?e.isIncrementalCompilation(S)||po(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):S.incremental&&!S.outFile&&!S.out&&!S.configFilePath&&ye.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),Il(),S.composite)for(var Fn=e.arrayToSet(pe,bt),Yn=0,gt=Re;Yn<gt.length;Yn++){var tt=gt[Yn];e.sourceFileMayBeEmitted(tt,Vt)&&!Fn.has(tt.path)&&Fs(tt,Fn,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,tt.fileName,S.configFilePath||"")}if(S.paths)for(var Xt in S.paths){if(!e.hasProperty(S.paths,Xt))continue;if(e.hasZeroOrOneAsteriskCharacter(Xt)||hl(!0,Xt,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,Xt),e.isArray(S.paths[Xt])){var _r=S.paths[Xt].length;_r===0&&hl(!1,Xt,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,Xt);for(var Kr=0;Kr<_r;Kr++){var Dr=S.paths[Xt][Kr],Ir=typeof Dr;Ir==="string"?e.hasZeroOrOneAsteriskCharacter(Dr)||$o(Xt,Kr,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,Dr,Xt):$o(Xt,Kr,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,Dr,Xt,Ir)}}else hl(!1,Xt,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,Xt)}!S.sourceMap&&!S.inlineSourceMap&&(S.inlineSources&&po(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),S.sourceRoot&&po(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),S.out&&S.outFile&&po(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),S.mapRoot&&!(S.sourceMap||S.declarationMap)&&po(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),S.declarationDir&&(e.getEmitDeclarations(S)||po(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),(S.out||S.outFile)&&po(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",S.out?"out":"outFile")),S.declarationMap&&!e.getEmitDeclarations(S)&&po(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),S.lib&&S.noLib&&po(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),S.noImplicitUseStrict&&e.getStrictOptionValue(S,"alwaysStrict")&&po(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var Mr=S.target||0,Er=S.outFile||S.out,pa=e.find(Re,function(Ki){return e.isExternalModule(Ki)&&!Ki.isDeclarationFile});if(S.isolatedModules){S.module===e.ModuleKind.None&&Mr<2&&po(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target");var Ca=e.find(Re,function(Ki){return!e.isExternalModule(Ki)&&!e.isSourceFileJS(Ki)&&!Ki.isDeclarationFile&&Ki.scriptKind!==6});if(Ca){var Ma=e.getErrorSpanForNode(Ca,Ca);ye.add(e.createFileDiagnostic(Ca,Ma.start,Ma.length,e.Diagnostics.All_files_must_be_modules_when_the_isolatedModules_flag_is_provided))}}else if(pa&&Mr<2&&S.module===e.ModuleKind.None){var Ma=e.getErrorSpanForNode(pa,pa.externalModuleIndicator);ye.add(e.createFileDiagnostic(pa,Ma.start,Ma.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Er&&!S.emitDeclarationOnly){if(S.module&&!(S.module===e.ModuleKind.AMD||S.module===e.ModuleKind.System))po(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,S.out?"out":"outFile","module");else if(S.module===void 0&&pa){var Ma=e.getErrorSpanForNode(pa,pa.externalModuleIndicator);ye.add(e.createFileDiagnostic(pa,Ma.start,Ma.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,S.out?"out":"outFile"))}}if(S.resolveJsonModule&&(e.getEmitModuleResolutionKind(S)!==e.ModuleResolutionKind.NodeJs?po(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(S)||po(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),S.outDir||S.sourceRoot||S.mapRoot){var gi=Ke();S.outDir&&gi===""&&Re.some(function(Ki){return e.getRootLength(Ki.fileName)>1})&&po(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(S.useDefineForClassFields&&Mr===0&&po(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),S.checkJs&&!S.allowJs&&ye.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),S.emitDeclarationOnly&&(e.getEmitDeclarations(S)||po(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),S.noEmit&&po(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),S.emitDecoratorMetadata&&!S.experimentalDecorators&&po(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),S.jsxFactory?(S.reactNamespace&&po(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(S.jsxFactory,Mr)||Cs("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,S.jsxFactory)):S.reactNamespace&&!e.isIdentifierText(S.reactNamespace,Mr)&&Cs("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,S.reactNamespace),!S.noEmit&&!S.suppressOutputPathCheck){var vo=Fa(),di=e.createMap();e.forEachEmittedFile(vo,function(Ki){S.emitDeclarationOnly||Lo(Ki.jsFilePath,di),Lo(Ki.declarationFilePath,di)})}function Lo(Ki,xn){if(Ki){var bo=bt(Ki);if(oe.has(bo)){var Fo=void 0;S.configFilePath||(Fo=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)),Fo=e.chainDiagnosticMessages(Fo,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,Ki),qs(Ki,e.createCompilerDiagnosticFromMessageChain(Fo))}var Ho=$e.useCaseSensitiveFileNames()?bo:bo.toLocaleLowerCase();xn.has(Ho)?qs(Ki,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Ki)):xn.set(Ho,!0)}}}function Fs(Fn,Yn,gt){for(var tt,Xt,_r=[],Kr=3;Kr<arguments.length;Kr++)_r[Kr-3]=arguments[Kr];var Dr=Pe&&Pe.get(Fn.path),Ir=e.forEach(Dr,function(gi){return Yn.has(gi.file)?gi:void 0})||e.elementAt(Dr,0);if(Ir){var Mr=e.Debug.assertDefined(ci(Ir.file)),Er=Ir.kind,pa=Ir.index,Ca=void 0,Ma=void 0;switch(Er){case e.RefFileKind.Import:Ca=e.skipTrivia(Mr.text,Mr.imports[pa].pos),Ma=Mr.imports[pa].end;break;case e.RefFileKind.ReferenceFile:tt=Mr.referencedFiles[pa],Ca=tt.pos,Ma=tt.end;break;case e.RefFileKind.TypeReferenceDirective:Xt=Mr.typeReferenceDirectives[pa],Ca=Xt.pos,Ma=Xt.end;break;default:return e.Debug.assertNever(Er)}ye.add(e.createFileDiagnostic.apply(void 0,Tr([Mr,Ca,Ma-Ca,gt],_r)))}else ye.add(e.createCompilerDiagnostic.apply(void 0,Tr([gt],_r)))}function Il(){var Fn=!S.noEmit&&!S.suppressOutputPathCheck?e.getTsBuildInfoEmitOutputFilePath(S):void 0;lt(U,_e,function(Yn,gt,tt){var Xt=(tt?tt.commandLine.projectReferences:U)[gt],_r=tt&&tt.sourceFile;if(!Yn){Ds(_r,gt,e.Diagnostics.File_0_not_found,Xt.path);return}var Kr=Yn.commandLine.options;if(!Kr.composite){var Dr=tt?tt.commandLine.fileNames:pe;Dr.length&&Ds(_r,gt,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,Xt.path)}if(Xt.prepend){var Ir=Kr.outFile||Kr.out;Ir?$e.fileExists(Ir)||Ds(_r,gt,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,Ir,Xt.path):Ds(_r,gt,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,Xt.path)}!tt&&Fn&&Fn===e.getTsBuildInfoEmitOutputFilePath(Kr)&&(Ds(_r,gt,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Fn,Xt.path),L.set(bt(Fn),!0))})}function $o(Fn,Yn,gt,tt,Xt,_r){for(var Kr=!0,Dr=gl(),Ir=0,Mr=Dr;Ir<Mr.length;Ir++){var Er=Mr[Ir];if(e.isObjectLiteralExpression(Er.initializer))for(var pa=0,Ca=e.getPropertyAssignment(Er.initializer,Fn);pa<Ca.length;pa++){var Ma=Ca[pa],gi=Ma.initializer;e.isArrayLiteralExpression(gi)&&gi.elements.length>Yn&&(ye.add(e.createDiagnosticForNodeInSourceFile(S.configFile,gi.elements[Yn],gt,tt,Xt,_r)),Kr=!1)}}Kr&&ye.add(e.createCompilerDiagnostic(gt,tt,Xt,_r))}function hl(Fn,Yn,gt,tt){for(var Xt=!0,_r=gl(),Kr=0,Dr=_r;Kr<Dr.length;Kr++){var Ir=Dr[Kr];e.isObjectLiteralExpression(Ir.initializer)&&Ks(Ir.initializer,Fn,Yn,void 0,gt,tt)&&(Xt=!1)}Xt&&ye.add(e.createCompilerDiagnostic(gt,tt))}function Ul(Fn){var Yn=yl();return Yn?e.getPropertyAssignment(Yn,Fn):void 0}function gl(){return Ul("paths")||e.emptyArray}function po(Fn,Yn,gt,tt){_s(!0,Yn,gt,Fn,Yn,gt,tt)}function Cs(Fn,Yn,gt){_s(!1,Fn,void 0,Yn,gt)}function Ds(Fn,Yn,gt,tt,Xt){var _r=e.firstDefined(e.getTsConfigPropArray(Fn||S.configFile,"references"),function(Kr){return e.isArrayLiteralExpression(Kr.initializer)?Kr.initializer:void 0});_r&&_r.elements.length>Yn?ye.add(e.createDiagnosticForNodeInSourceFile(Fn||S.configFile,_r.elements[Yn],gt,tt,Xt)):ye.add(e.createCompilerDiagnostic(gt,tt,Xt))}function _s(Fn,Yn,gt,tt,Xt,_r,Kr){var Dr=yl(),Ir=!Dr||!Ks(Dr,Fn,Yn,gt,tt,Xt,_r,Kr);Ir&&ye.add(e.createCompilerDiagnostic(tt,Xt,_r,Kr))}function yl(){if(te===void 0){te=null;var Fn=e.getTsConfigObjectLiteralExpression(S.configFile);if(Fn)for(var Yn=0,gt=e.getPropertyAssignment(Fn,"compilerOptions");Yn<gt.length;Yn++){var tt=gt[Yn];if(e.isObjectLiteralExpression(tt.initializer)){te=tt.initializer;break}}}return te}function Ks(Fn,Yn,gt,tt,Xt,_r,Kr,Dr){for(var Ir=e.getPropertyAssignment(Fn,gt,tt),Mr=0,Er=Ir;Mr<Er.length;Mr++){var pa=Er[Mr];ye.add(e.createDiagnosticForNodeInSourceFile(S.configFile,Yn?pa.name:pa.initializer,Xt,_r,Kr,Dr))}return!!Ir.length}function qs(Fn,Yn){L.set(bt(Fn),!0),ye.add(Yn)}function $s(Fn){if(S.noEmit)return!1;var Yn=bt(Fn);if(ci(Yn))return!1;var gt=S.outFile||S.out;if(gt)return el(Yn,gt)||el(Yn,e.removeFileExtension(gt)+".d.ts");if(S.declarationDir&&e.containsPath(S.declarationDir,Yn,ke,!$e.useCaseSensitiveFileNames()))return!0;if(S.outDir)return e.containsPath(S.outDir,Yn,ke,!$e.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(Yn,e.supportedJSExtensions)||e.fileExtensionIs(Yn,".d.ts")){var tt=e.removeFileExtension(Yn);return!!ci(tt+".ts")||!!ci(tt+".tsx")}return!1}function el(Fn,Yn){return e.comparePaths(Fn,Yn,ke,!$e.useCaseSensitiveFileNames())===0}function nl(){return $e.getSymlinks?$e.getSymlinks():we||(we=e.discoverProbableSymlinks(Re,ha,$e.getCurrentDirectory()))}}e.createProgram=K;function m(E,k){return k===void 0&&(k=E),{fileExists:function(T){return k.fileExists(T)},readDirectory:function(T,ne,O,Y,pe){return e.Debug.assertDefined(k.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),k.readDirectory(T,ne,O,Y,pe)},readFile:function(T){return k.readFile(T)},useCaseSensitiveFileNames:E.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return E.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:E.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:E.trace?function(T){return E.trace(T)}:void 0}}e.parseConfigHostFromCompilerHostLike=m;function _(E,k,T){if(!E)return e.emptyArray;for(var ne,O=0;O<E.length;O++){var Y=E[O],pe=k(Y,O);if(Y.prepend&&pe&&pe.options){var S=pe.options.outFile||pe.options.out;if(!S)continue;var v=e.getOutputPathsForBundle(pe.options,!0),U=v.jsFilePath,ue=v.sourceMapFilePath,De=v.declarationFilePath,Z=v.declarationMapPath,Re=v.buildInfoPath,we=e.createInputFiles(T,U,ue,De,Z,Re);(ne||(ne=[])).push(we)}}return ne||e.emptyArray}e.createPrependNodes=_;function I(E,k){var T=k||E;return e.resolveConfigFileProjectName(T.path)}e.resolveProjectReferencePath=I;function D(E,k){var T=k.extension;switch(T){case".ts":case".d.ts":return;case".tsx":return ne();case".jsx":return ne()||O();case".js":return O();case".json":return Y()}function ne(){return E.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function O(){return E.allowJs||!e.getStrictOptionValue(E,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function Y(){return E.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}}e.getResolutionDiagnostic=D;function y(E){for(var k=E.imports,T=E.moduleAugmentations,ne=k.map(function(S){return S.text}),O=0,Y=T;O<Y.length;O++){var pe=Y[O];pe.kind===10&&ne.push(pe.text)}return ne}})(sn||(sn={}));var sn;(function(e){function o(qe,Ee,Ge,Be,he,ee){var f=[],J=qe.emit(Ee,Oe,Be,Ge,he,ee);return{outputFiles:f,emitSkipped:J.emitSkipped,exportedModulesFromDeclarationEmit:J.exportedModulesFromDeclarationEmit};function Oe(N,Te,ie){f.push({name:N,writeByteOrderMark:ie,text:Te})}}e.getFileEmitOutput=o;function M(qe){return qe?e.cloneMap(qe):void 0}e.cloneMapOrUndefined=M})(sn||(sn={})),function(e){var o;(function(M){function qe(G){if(G.declarations&&G.declarations[0]){var H=e.getSourceFileOfNode(G.declarations[0]);return H&&H.resolvedPath}}function Ee(G,H){var q=G.getSymbolAtLocation(H);return q&&qe(q)}function Ge(G,H,q,be){return e.toPath(G.getProjectReferenceRedirect(H)||H,q,be)}function Be(G,H,q){var be;if(H.imports&&H.imports.length>0)for(var R=G.getTypeChecker(),K=0,m=H.imports;K<m.length;K++){var _=m[K],I=Ee(R,_);I&&De(I)}var D=e.getDirectoryPath(H.path);if(H.referencedFiles&&H.referencedFiles.length>0)for(var y=0,E=H.referencedFiles;y<E.length;y++){var k=E[y],T=Ge(G,k.fileName,D,q);De(T)}if(H.resolvedTypeReferenceDirectiveNames&&H.resolvedTypeReferenceDirectiveNames.forEach(function(Z){if(!Z)return;var Re=Z.resolvedFileName,we=Ge(G,Re,D,q);De(we)}),H.moduleAugmentations.length)for(var R=G.getTypeChecker(),ne=0,O=H.moduleAugmentations;ne<O.length;ne++){var Y=O[ne];if(!e.isStringLiteral(Y))continue;var pe=R.getSymbolAtLocation(Y);if(!pe)continue;ue(pe)}for(var S=0,v=G.getTypeChecker().getAmbientModules();S<v.length;S++){var U=v[S];U.declarations.length>1&&ue(U)}return be;function ue(Z){for(var Re=0,we=Z.declarations;Re<we.length;Re++){var He=we[Re],ve=e.getSourceFileOfNode(He);ve&&ve!==H&&De(ve.resolvedPath)}}function De(Z){be||(be=e.createMap()),be.set(Z,!0)}}function he(G,H){return H&&!H.referencedMap===!G}M.canReuseOldState=he;function ee(G,H,q){for(var be=e.createMap(),R=G.getCompilerOptions().module!==e.ModuleKind.None?e.createMap():void 0,K=R?e.createMap():void 0,m=e.createMap(),_=he(R,q),I=0,D=G.getSourceFiles();I<D.length;I++){var y=D[I],E=e.Debug.assertDefined(y.version,"Program intended to be used with Builder should have source files with versions set"),k=_?q.fileInfos.get(y.path):void 0;if(R){var T=Be(G,y,H);if(T&&R.set(y.path,T),_){var ne=q.exportedModulesMap.get(y.path);ne&&K.set(y.path,ne)}}be.set(y.path,{version:E,signature:k&&k.signature})}return{fileInfos:be,referencedMap:R,exportedModulesMap:K,hasCalledUpdateShapeSignature:m}}M.create=ee;function f(G){G.allFilesExcludingDefaultLibraryFile=void 0,G.allFileNames=void 0}M.releaseCache=f;function J(G){var H=e.createMap();return G.fileInfos.forEach(function(q,be){H.set(be,Rr({},q))}),{fileInfos:H,referencedMap:e.cloneMapOrUndefined(G.referencedMap),exportedModulesMap:e.cloneMapOrUndefined(G.exportedModulesMap),hasCalledUpdateShapeSignature:e.cloneMap(G.hasCalledUpdateShapeSignature)}}M.clone=J;function Oe(G,H,q,be,R,K,m){var _=K||e.createMap(),I=H.getSourceFileByPath(q);if(!I)return e.emptyArray;if(!Te(G,H,I,_,be,R,m))return[I];var D=(G.referencedMap?se:z)(G,H,I,_,be,R,m);return K||N(G,_),D}M.getFilesAffectedBy=Oe;function N(G,H){H.forEach(function(q,be){G.fileInfos.get(be).signature=q,G.hasCalledUpdateShapeSignature.set(be,!0)})}M.updateSignaturesFromCache=N;function Te(G,H,q,be,R,K,m){if(e.Debug.assert(!!q),e.Debug.assert(!m||!!G.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),G.hasCalledUpdateShapeSignature.has(q.path)||be.has(q.path))return!1;var _=G.fileInfos.get(q.path);if(!_)return e.Debug.fail();var I=_.signature,D;if(q.isDeclarationFile){if(D=q.version,m&&D!==I){var y=G.referencedMap?G.referencedMap.get(q.path):void 0;m.set(q.path,y||!1)}}else{var E=e.getFileEmitOutput(H,q,!0,R,void 0,!0),k=E.outputFiles&&H.getCompilerOptions().declarationMap?E.outputFiles.length>1?E.outputFiles[1]:void 0:E.outputFiles.length>0?E.outputFiles[0]:void 0;k?(e.Debug.assert(e.fileExtensionIs(k.name,".d.ts"),"File extension for signature expected to be dts",function(){return"Found: "+e.getAnyExtensionFromPath(k.name)+" for "+k.name+":: All output files: "+JSON.stringify(E.outputFiles.map(function(T){return T.name}))}),D=K(k.text),m&&D!==I&&ie(q,E.exportedModulesFromDeclarationEmit,m)):D=I}return be.set(q.path,D),!I||D!==I}M.updateShapeSignature=Te;function ie(G,H,q){if(!H){q.set(G.path,!1);return}var be;H.forEach(function(K){return R(qe(K))}),q.set(G.path,be||!1);function R(K){K&&(be||(be=e.createMap()),be.set(K,!0))}}function ce(G,H){H&&(e.Debug.assert(!!G.exportedModulesMap),H.forEach(function(q,be){q?G.exportedModulesMap.set(be,q):G.exportedModulesMap.delete(be)}))}M.updateExportedFilesMapFromCache=ce;function x(G,H,q){var be=H.getCompilerOptions();if(be.outFile||be.out)return C(G,H);if(!G.referencedMap||$(q))return C(G,H);for(var R=e.createMap(),K=[q.path];K.length;){var m=K.pop();if(!R.has(m)){R.set(m,!0);var _=G.referencedMap.get(m);if(_)for(var I=_.keys(),D=I.next();!D.done;D=I.next())K.push(D.value)}}return e.arrayFrom(e.mapDefinedIterator(R.keys(),function(y){var E=H.getSourceFileByPath(y);return E?E.fileName:y}))}M.getAllDependencies=x;function C(G,H){if(!G.allFileNames){var q=H.getSourceFiles();G.allFileNames=q===e.emptyArray?e.emptyArray:q.map(function(be){return be.fileName})}return G.allFileNames}function P(G,H){return e.arrayFrom(e.mapDefinedIterator(G.referencedMap.entries(),function(q){var be=q[0],R=q[1];return R.has(H)?be:void 0}))}M.getReferencedByPaths=P;function h(G){for(var H=0,q=G.statements;H<q.length;H++){var be=q[H];if(!e.isModuleWithStringLiteralName(be))return!1}return!0}function X(G){return e.some(G.moduleAugmentations,function(H){return e.isGlobalScopeAugmentation(H.parent)})}function $(G){return X(G)||!e.isExternalModule(G)&&!h(G)}function Q(G,H,q){if(G.allFilesExcludingDefaultLibraryFile)return G.allFilesExcludingDefaultLibraryFile;var be;_(q);for(var R=0,K=H.getSourceFiles();R<K.length;R++){var m=K[R];m!==q&&_(m)}return G.allFilesExcludingDefaultLibraryFile=be||e.emptyArray,G.allFilesExcludingDefaultLibraryFile;function _(I){H.isSourceFileDefaultLibrary(I)||(be||(be=[])).push(I)}}function z(G,H,q){var be=H.getCompilerOptions();return be&&(be.out||be.outFile)?[q]:Q(G,H,q)}function se(G,H,q,be,R,K,m){if($(q))return Q(G,H,q);var _=H.getCompilerOptions();if(_&&(_.isolatedModules||_.out||_.outFile))return[q];var I=e.createMap();I.set(q.path,q);for(var D=P(G,q.resolvedPath);D.length>0;){var y=D.pop();if(!I.has(y)){var E=H.getSourceFileByPath(y);I.set(y,E),E&&Te(G,H,E,be,R,K,m)&&D.push.apply(D,P(G,E.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(I.values(),function(k){return k}))}})(o=e.BuilderState||(e.BuilderState={}))}(sn||(sn={}));var sn;(function(e){var o;(function(D){D[D.DtsOnly=0]="DtsOnly",D[D.Full=1]="Full"})(o=e.BuilderFileEmit||(e.BuilderFileEmit={}));function M(D,y){return D===y||D!==void 0&&y!==void 0&&D.size===y.size&&!e.forEachKey(D,function(E){return!y.has(E)})}function qe(D,y,E){var k=e.BuilderState.create(D,y,E);k.program=D;var T=D.getCompilerOptions();k.compilerOptions=T,!T.outFile&&!T.out&&(k.semanticDiagnosticsPerFile=e.createMap()),k.changedFilesSet=e.createMap();var ne=e.BuilderState.canReuseOldState(k.referencedMap,E),O=ne?E.compilerOptions:void 0,Y=ne&&E.semanticDiagnosticsPerFile&&!!k.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(T,O);if(ne){if(!E.currentChangedFilePath){var pe=E.currentAffectedFilesSignatures;e.Debug.assert(!E.affectedFiles&&(!pe||!pe.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var S=E.changedFilesSet;Y&&e.Debug.assert(!S||!e.forEachKey(S,function(Z){return E.semanticDiagnosticsPerFile.has(Z)}),"Semantic diagnostics shouldnt be available for changed files"),S&&e.copyEntries(S,k.changedFilesSet),!T.outFile&&!T.out&&E.affectedFilesPendingEmit&&(k.affectedFilesPendingEmit=E.affectedFilesPendingEmit.slice(),k.affectedFilesPendingEmitKind=e.cloneMapOrUndefined(E.affectedFilesPendingEmitKind),k.affectedFilesPendingEmitIndex=E.affectedFilesPendingEmitIndex)}var v=k.referencedMap,U=ne?E.referencedMap:void 0,ue=Y&&!T.skipLibCheck===!O.skipLibCheck,De=ue&&!T.skipDefaultLibCheck===!O.skipDefaultLibCheck;return k.fileInfos.forEach(function(Z,Re){var we,He;if(!ne||!(we=E.fileInfos.get(Re))||we.version!==Z.version||!M(He=v&&v.get(Re),U&&U.get(Re))||He&&e.forEachKey(He,function(w){return!k.fileInfos.has(w)&&E.fileInfos.has(w)}))k.changedFilesSet.set(Re,!0);else if(Y){var ve=D.getSourceFileByPath(Re);if(ve.isDeclarationFile&&!ue)return;if(ve.hasNoDefaultLib&&!De)return;var je=E.semanticDiagnosticsPerFile.get(Re);je&&(k.semanticDiagnosticsPerFile.set(Re,E.hasReusableDiagnostic?Ee(je,D,y):je),k.semanticDiagnosticsFromOldState||(k.semanticDiagnosticsFromOldState=e.createMap()),k.semanticDiagnosticsFromOldState.set(Re,!0))}}),O&&e.compilerOptionsAffectEmit(T,O)&&(D.getSourceFiles().forEach(function(Z){return K(k,Z.path,1)}),e.Debug.assert(k.seenAffectedFiles===void 0),k.seenAffectedFiles=e.createMap()),k.emittedBuildInfo=!k.changedFilesSet.size&&!k.affectedFilesPendingEmit,k}function Ee(D,y,E){if(!D.length)return e.emptyArray;var k=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(y.getCompilerOptions()),y.getCurrentDirectory()));return D.map(function(ne){var O=Ge(ne,y,T);O.reportsUnnecessary=ne.reportsUnnecessary,O.source=ne.source;var Y=ne.relatedInformation;return O.relatedInformation=Y?Y.length?Y.map(function(pe){return Ge(pe,y,T)}):e.emptyArray:void 0,O});function T(ne){return e.toPath(ne,k,E)}}function Ge(D,y,E){var k=D.file;return Rr(Rr({},D),{file:k?y.getSourceFileByPath(E(k)):void 0})}function Be(D){e.BuilderState.releaseCache(D),D.program=void 0}function he(D){var y=e.BuilderState.clone(D);return y.semanticDiagnosticsPerFile=e.cloneMapOrUndefined(D.semanticDiagnosticsPerFile),y.changedFilesSet=e.cloneMap(D.changedFilesSet),y.affectedFiles=D.affectedFiles,y.affectedFilesIndex=D.affectedFilesIndex,y.currentChangedFilePath=D.currentChangedFilePath,y.currentAffectedFilesSignatures=e.cloneMapOrUndefined(D.currentAffectedFilesSignatures),y.currentAffectedFilesExportedModulesMap=e.cloneMapOrUndefined(D.currentAffectedFilesExportedModulesMap),y.seenAffectedFiles=e.cloneMapOrUndefined(D.seenAffectedFiles),y.cleanedDiagnosticsOfLibFiles=D.cleanedDiagnosticsOfLibFiles,y.semanticDiagnosticsFromOldState=e.cloneMapOrUndefined(D.semanticDiagnosticsFromOldState),y.program=D.program,y.compilerOptions=D.compilerOptions,y.affectedFilesPendingEmit=D.affectedFilesPendingEmit&&D.affectedFilesPendingEmit.slice(),y.affectedFilesPendingEmitKind=e.cloneMapOrUndefined(D.affectedFilesPendingEmitKind),y.affectedFilesPendingEmitIndex=D.affectedFilesPendingEmitIndex,y.seenEmittedFiles=e.cloneMapOrUndefined(D.seenEmittedFiles),y.programEmitComplete=D.programEmitComplete,y}function ee(D,y){e.Debug.assert(!y||!D.affectedFiles||D.affectedFiles[D.affectedFilesIndex-1]!==y||!D.semanticDiagnosticsPerFile.has(y.path))}function f(D,y,E){for(;;){var k=D.affectedFiles;if(k){for(var T=D.seenAffectedFiles,ne=D.affectedFilesIndex;ne<k.length;){var O=k[ne];if(!T.has(O.path))return D.affectedFilesIndex=ne,Oe(D,O,y,E),O;ne++}D.changedFilesSet.delete(D.currentChangedFilePath),D.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(D,D.currentAffectedFilesSignatures),D.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(D,D.currentAffectedFilesExportedModulesMap),D.affectedFiles=void 0}var Y=D.changedFilesSet.keys().next();if(Y.done)return;var pe=e.Debug.assertDefined(D.program),S=pe.getCompilerOptions();if(S.outFile||S.out)return e.Debug.assert(!D.semanticDiagnosticsPerFile),pe;D.currentAffectedFilesSignatures=D.currentAffectedFilesSignatures||e.createMap(),D.exportedModulesMap&&(D.currentAffectedFilesExportedModulesMap=D.currentAffectedFilesExportedModulesMap||e.createMap()),D.affectedFiles=e.BuilderState.getFilesAffectedBy(D,pe,Y.value,y,E,D.currentAffectedFilesSignatures,D.currentAffectedFilesExportedModulesMap),D.currentChangedFilePath=Y.value,D.affectedFilesIndex=0,D.seenAffectedFiles=D.seenAffectedFiles||e.createMap()}}function J(D){var y=D.affectedFilesPendingEmit;if(y){for(var E=D.seenEmittedFiles||(D.seenEmittedFiles=e.createMap()),k=D.affectedFilesPendingEmitIndex;k<y.length;k++){var T=e.Debug.assertDefined(D.program).getSourceFileByPath(y[k]);if(T){var ne=E.get(T.path),O=e.Debug.assertDefined(e.Debug.assertDefined(D.affectedFilesPendingEmitKind).get(T.path));if(ne===void 0||ne<O)return D.affectedFilesPendingEmitIndex=k,{affectedFile:T,emitKind:O}}}D.affectedFilesPendingEmit=void 0,D.affectedFilesPendingEmitKind=void 0,D.affectedFilesPendingEmitIndex=void 0}return}function Oe(D,y,E,k){if(Te(D,y.path),D.allFilesExcludingDefaultLibraryFile===D.affectedFiles){if(!D.cleanedDiagnosticsOfLibFiles){D.cleanedDiagnosticsOfLibFiles=!0;var T=e.Debug.assertDefined(D.program),ne=T.getCompilerOptions();e.forEach(T.getSourceFiles(),function(O){return T.isSourceFileDefaultLibrary(O)&&!e.skipTypeChecking(O,ne,T)&&Te(D,O.path)})}return}ce(D,y,function(O,Y){return N(O,Y,E,k)})}function N(D,y,E,k){if(Te(D,y),!D.changedFilesSet.has(y)){var T=e.Debug.assertDefined(D.program),ne=T.getSourceFileByPath(y);ne&&(e.BuilderState.updateShapeSignature(D,T,ne,e.Debug.assertDefined(D.currentAffectedFilesSignatures),E,k,D.currentAffectedFilesExportedModulesMap),e.getEmitDeclarations(D.compilerOptions)&&K(D,y,0))}return!1}function Te(D,y){return D.semanticDiagnosticsFromOldState?(D.semanticDiagnosticsFromOldState.delete(y),D.semanticDiagnosticsPerFile.delete(y),!D.semanticDiagnosticsFromOldState.size):!0}function ie(D,y){var E=e.Debug.assertDefined(D.currentAffectedFilesSignatures).get(y),k=e.Debug.assertDefined(D.fileInfos.get(y)).signature;return E!==k}function ce(D,y,E){if(!D.exportedModulesMap||!D.changedFilesSet.has(y.path))return;if(!ie(D,y.path))return;if(D.compilerOptions.isolatedModules){var k=e.createMap();k.set(y.path,!0);for(var T=e.BuilderState.getReferencedByPaths(D,y.resolvedPath);T.length>0;){var ne=T.pop();if(!k.has(ne)){k.set(ne,!0);var O=E(D,ne);if(O&&ie(D,ne)){var Y=e.Debug.assertDefined(D.program).getSourceFileByPath(ne);T.push.apply(T,e.BuilderState.getReferencedByPaths(D,Y.resolvedPath))}}}}e.Debug.assert(!!D.currentAffectedFilesExportedModulesMap);var pe=e.createMap();if(e.forEachEntry(D.currentAffectedFilesExportedModulesMap,function(S,v){return S&&S.has(y.path)&&x(D,v,pe,E)}))return;e.forEachEntry(D.exportedModulesMap,function(S,v){return!D.currentAffectedFilesExportedModulesMap.has(v)&&S.has(y.path)&&x(D,v,pe,E)})}function x(D,y,E,k){return e.forEachEntry(D.referencedMap,function(T,ne){return T.has(y)&&C(D,ne,E,k)})}function C(D,y,E,k){return e.addToSeen(E,y)?k(D,y)?!0:(e.Debug.assert(!!D.currentAffectedFilesExportedModulesMap),e.forEachEntry(D.currentAffectedFilesExportedModulesMap,function(T,ne){return T&&T.has(y)&&C(D,ne,E,k)})||e.forEachEntry(D.exportedModulesMap,function(T,ne){return!D.currentAffectedFilesExportedModulesMap.has(ne)&&T.has(y)&&C(D,ne,E,k)})?!0:!!e.forEachEntry(D.referencedMap,function(T,ne){return T.has(y)&&!E.has(ne)&&k(D,ne)})):!1}function P(D,y,E,k,T){T?D.emittedBuildInfo=!0:y===D.program?(D.changedFilesSet.clear(),D.programEmitComplete=!0):(D.seenAffectedFiles.set(y.path,!0),E!==void 0&&(D.seenEmittedFiles||(D.seenEmittedFiles=e.createMap())).set(y.path,E),k?D.affectedFilesPendingEmitIndex++:D.affectedFilesIndex++)}function h(D,y,E){return P(D,E),{result:y,affected:E}}function X(D,y,E,k,T,ne){return P(D,E,k,T,ne),{result:y,affected:E}}function $(D,y,E){var k=y.path;if(D.semanticDiagnosticsPerFile){var T=D.semanticDiagnosticsPerFile.get(k);if(T)return T}var ne=e.Debug.assertDefined(D.program).getSemanticDiagnostics(y,E);return D.semanticDiagnosticsPerFile&&D.semanticDiagnosticsPerFile.set(k,ne),ne}function Q(D,y){if(D.compilerOptions.outFile||D.compilerOptions.out)return;var E=e.Debug.assertDefined(D.program).getCurrentDirectory(),k=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(D.compilerOptions),E)),T={};D.fileInfos.forEach(function(U,ue){var De=D.currentAffectedFilesSignatures&&D.currentAffectedFilesSignatures.get(ue);T[v(ue)]=De===void 0?U:{version:U.version,signature:De}});var ne={fileInfos:T,options:z(D.compilerOptions,S)};if(D.referencedMap){var O={};D.referencedMap.forEach(function(U,ue){O[v(ue)]=e.arrayFrom(U.keys(),v)}),ne.referencedMap=O}if(D.exportedModulesMap){var Y={};D.exportedModulesMap.forEach(function(U,ue){var De=D.currentAffectedFilesExportedModulesMap&&D.currentAffectedFilesExportedModulesMap.get(ue);De===void 0?Y[v(ue)]=e.arrayFrom(U.keys(),v):De&&(Y[v(ue)]=e.arrayFrom(De.keys(),v))}),ne.exportedModulesMap=Y}if(D.semanticDiagnosticsPerFile){var pe=[];D.semanticDiagnosticsPerFile.forEach(function(U,ue){return pe.push(U.length?[v(ue),D.hasReusableDiagnostic?U:G(U,v)]:v(ue))}),ne.semanticDiagnosticsPerFile=pe}return ne;function S(U){return v(e.getNormalizedAbsolutePath(U,E))}function v(U){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(k,U,y))}}function z(D,y){var E={},k=e.getOptionNameMap().optionNameMap;for(var T in D)e.hasProperty(D,T)&&(E[T]=se(k.get(T.toLowerCase()),D[T],y));return E.configFilePath&&(E.configFilePath=y(E.configFilePath)),E}function se(D,y,E){if(D){if(D.type==="list"){var k=y;if(D.element.isFilePath&&k.length)return k.map(E)}else if(D.isFilePath)return E(y)}return y}function G(D,y){return e.Debug.assert(!!D.length),D.map(function(E){var k=H(E,y);k.reportsUnnecessary=E.reportsUnnecessary,k.source=E.source;var T=E.relatedInformation;return k.relatedInformation=T?T.length?T.map(function(ne){return H(ne,y)}):e.emptyArray:void 0,k})}function H(D,y){var E=D.file;return Rr(Rr({},D),{file:E?y(E.path):void 0})}var q;(function(D){D[D.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",D[D.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"})(q=e.BuilderProgramKind||(e.BuilderProgramKind={}));function be(D,y,E,k,T,ne){var O,Y,pe;return D===void 0?(e.Debug.assert(y===void 0),O=E,pe=k,e.Debug.assert(!!pe),Y=pe.getProgram()):e.isArray(D)?(pe=k,Y=e.createProgram({rootNames:D,options:y,host:E,oldProgram:pe&&pe.getProgramOrUndefined(),configFileParsingDiagnostics:T,projectReferences:ne}),O=E):(Y=D,O=y,pe=E,T=k),{host:O,newProgram:Y,oldProgram:pe,configFileParsingDiagnostics:T||e.emptyArray}}e.getBuilderCreationParameters=be;function R(D,y){var E=y.newProgram,k=y.host,T=y.oldProgram,ne=y.configFileParsingDiagnostics,O=T&&T.getState();if(O&&E===O.program&&ne===E.getConfigFileParsingDiagnostics())return E=void 0,O=void 0,T;var Y=e.createGetCanonicalFileName(k.useCaseSensitiveFileNames()),pe=k.createHash||e.generateDjb2Hash,S=qe(E,Y,O),v;E.getProgramBuildInfo=function(){return Q(S,Y)},E=void 0,T=void 0,O=void 0;var U=I(S,ne);return U.getState=function(){return S},U.backupState=function(){e.Debug.assert(v===void 0),v=he(S)},U.restoreState=function(){S=e.Debug.assertDefined(v),v=void 0},U.getAllDependencies=function(we){return e.BuilderState.getAllDependencies(S,e.Debug.assertDefined(S.program),we)},U.getSemanticDiagnostics=Re,U.emit=De,U.releaseProgram=function(){Be(S),v=void 0},D===q.SemanticDiagnosticsBuilderProgram?U.getSemanticDiagnosticsOfNextAffectedFile=Z:D===q.EmitAndSemanticDiagnosticsBuilderProgram?(U.getSemanticDiagnosticsOfNextAffectedFile=Z,U.emitNextAffectedFile=ue):e.notImplemented(),U;function ue(we,He,ve,je){var w=f(S,He,pe),j=1,Pe=!1;if(!w)if(!S.compilerOptions.out&&!S.compilerOptions.outFile){var a=J(S);if(!a){if(S.emittedBuildInfo)return;var Ze=e.Debug.assertDefined(S.program);return X(S,Ze.emitBuildInfo(we||e.maybeBind(k,k.writeFile),He),Ze,1,!1,!0)}w=a.affectedFile,j=a.emitKind,Pe=!0}else{var In=e.Debug.assertDefined(S.program);if(S.programEmitComplete||!e.some(In.getProjectReferences(),function(et){return!!et.prepend})){S.programEmitComplete=!0;return}w=In}return X(S,e.Debug.assertDefined(S.program).emit(w===S.program?void 0:w,we||e.maybeBind(k,k.writeFile),He,ve||j===0,je),w,j,Pe)}function De(we,He,ve,je,w){if(D===q.EmitAndSemanticDiagnosticsBuilderProgram&&(ee(S,we),!we)){for(var j=[],Pe=!1,a=void 0,Ze=[],In=void 0;In=ue(He,ve,je,w);)Pe=Pe||In.result.emitSkipped,a=e.addRange(a,In.result.diagnostics),Ze=e.addRange(Ze,In.result.emittedFiles),j=e.addRange(j,In.result.sourceMaps);return{emitSkipped:Pe,diagnostics:a||e.emptyArray,emittedFiles:Ze,sourceMaps:j}}return e.Debug.assertDefined(S.program).emit(we,He||e.maybeBind(k,k.writeFile),ve,je,w)}function Z(we,He){for(;;){var ve=f(S,we,pe);if(ve){if(ve===S.program)return h(S,S.program.getSemanticDiagnostics(void 0,we),ve)}else return;if(D===q.EmitAndSemanticDiagnosticsBuilderProgram&&K(S,ve.path,1),He&&He(ve)){P(S,ve);continue}return h(S,$(S,ve,we),ve)}}function Re(we,He){ee(S,we);var ve=e.Debug.assertDefined(S.program).getCompilerOptions();if(ve.outFile||ve.out)return e.Debug.assert(!S.semanticDiagnosticsPerFile),e.Debug.assertDefined(S.program).getSemanticDiagnostics(we,He);if(we)return $(S,we,He);for(;Z(He););for(var je,w=0,j=e.Debug.assertDefined(S.program).getSourceFiles();w<j.length;w++){var Pe=j[w];je=e.addRange(je,$(S,Pe,He))}return je||e.emptyArray}}e.createBuilderProgram=R;function K(D,y,E){D.affectedFilesPendingEmit||(D.affectedFilesPendingEmit=[]),D.affectedFilesPendingEmitKind||(D.affectedFilesPendingEmitKind=e.createMap());var k=D.affectedFilesPendingEmitKind.get(y);D.affectedFilesPendingEmit.push(y),D.affectedFilesPendingEmitKind.set(y,k||E),D.affectedFilesPendingEmitIndex===void 0&&(D.affectedFilesPendingEmitIndex=0)}function m(D,y){if(!D)return;var E=e.createMap();for(var k in D)e.hasProperty(D,k)&&E.set(y(k),e.arrayToSet(D[k],y));return E}function _(D,y,E){var k=e.getDirectoryPath(e.getNormalizedAbsolutePath(y,E.getCurrentDirectory())),T=e.createGetCanonicalFileName(E.useCaseSensitiveFileNames()),ne=e.createMap();for(var O in D.fileInfos)e.hasProperty(D.fileInfos,O)&&ne.set(pe(O),D.fileInfos[O]);var Y={fileInfos:ne,compilerOptions:e.convertToOptionsWithAbsolutePaths(D.options,S),referencedMap:m(D.referencedMap,pe),exportedModulesMap:m(D.exportedModulesMap,pe),semanticDiagnosticsPerFile:D.semanticDiagnosticsPerFile&&e.arrayToMap(D.semanticDiagnosticsPerFile,function(v){return pe(e.isString(v)?v:v[0])},function(v){return e.isString(v)?e.emptyArray:v[1]}),hasReusableDiagnostic:!0};return{getState:function(){return Y},backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return Y.compilerOptions},getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented};function pe(v){return e.toPath(v,k,T)}function S(v){return e.getNormalizedAbsolutePath(v,k)}}e.createBuildProgramUsingProgramBuildInfo=_;function I(D,y){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:E,getProgramOrUndefined:function(){return D.program},releaseProgram:function(){return D.program=void 0},getCompilerOptions:function(){return D.compilerOptions},getSourceFile:function(k){return E().getSourceFile(k)},getSourceFiles:function(){return E().getSourceFiles()},getOptionsDiagnostics:function(k){return E().getOptionsDiagnostics(k)},getGlobalDiagnostics:function(k){return E().getGlobalDiagnostics(k)},getConfigFileParsingDiagnostics:function(){return y},getSyntacticDiagnostics:function(k,T){return E().getSyntacticDiagnostics(k,T)},getDeclarationDiagnostics:function(k,T){return E().getDeclarationDiagnostics(k,T)},getSemanticDiagnostics:function(k,T){return E().getSemanticDiagnostics(k,T)},emit:function(k,T,ne,O,Y){return E().emit(k,T,ne,O,Y)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return E().getCurrentDirectory()}};function E(){return e.Debug.assertDefined(D.program)}}e.createRedirectedBuilderProgram=I})(sn||(sn={})),function(e){function o(Ee,Ge,Be,he,ee,f){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(Ee,Ge,Be,he,ee,f))}e.createSemanticDiagnosticsBuilderProgram=o;function M(Ee,Ge,Be,he,ee,f){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(Ee,Ge,Be,he,ee,f))}e.createEmitAndSemanticDiagnosticsBuilderProgram=M;function qe(Ee,Ge,Be,he,ee,f){var J=e.getBuilderCreationParameters(Ee,Ge,Be,he,ee,f),Oe=J.newProgram,N=J.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram({program:Oe,compilerOptions:Oe.getCompilerOptions()},N)}e.createAbstractBuilder=qe}(sn||(sn={}));var sn;(function(e){function o(Ee){return e.some(e.ignoredPaths,function(Ge){return e.stringContains(Ee,Ge)})}e.isPathIgnored=o;function M(Ee){var Ge=e.getRootLength(Ee);if(Ee.length===Ge)return!1;var Be=Ee.indexOf(e.directorySeparator,Ge);if(Be===-1)return!1;var he=Ee.substring(Ge,Be+1),ee=Ge>1||Ee.charCodeAt(0)!==47;if(ee&&Ee.search(/[a-zA-Z]:/)!==0&&he.search(/[a-zA-z]\$\//)===0){if(Be=Ee.indexOf(e.directorySeparator,Be+1),Be===-1)return!1;he=Ee.substring(Ge+he.length,Be+1)}if(ee&&he.search(/users\//i)!==0)return!0;for(var f=Be+1,J=2;J>0;J--)if(f=Ee.indexOf(e.directorySeparator,f)+1,f===0)return!1;return!0}e.canWatchDirectory=M,e.maxNumberOfFilesToIterateForInvalidation=256;function qe(Ee,Ge,Be){var he,ee,f,J=!1,Oe=e.createMultiMap(),N=e.memoize(function(){return Ee.getCurrentDirectory()}),Te=Ee.getCachedDirectoryStructureHost(),ie=e.createMap(),ce=e.createCacheWithRedirects(),x=e.createCacheWithRedirects(),C=e.createModuleResolutionCacheWithMaps(ce,x,N(),Ee.getCanonicalFileName),P=e.createMap(),h=e.createCacheWithRedirects(),X=[".ts",".tsx",".js",".jsx",".json"],$=e.createMap(),Q=e.createMap(),z=Ge&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(Ge,N())),se=z&&Ee.toPath(z),G=e.createMap();return{startRecordingFilesWithChangedResolutions:K,finishRecordingFilesWithChangedResolutions:m,startCachingPerDirectoryResolution:D,finishCachingPerDirectoryResolution:y,resolveModuleNames:ne,getResolvedModuleWithFailedLookupLocationsFromCache:O,resolveTypeReferenceDirectives:T,removeResolutionsFromProjectReferenceRedirects:j,removeResolutionsOfFile:Pe,invalidateResolutionOfFile:et,setFilesWithInvalidatedNonRelativeUnresolvedImports:ae,createHasInvalidatedResolution:I,updateTypeRootsWatch:Fe,closeTypeRootsWatch:Le,clear:R};function H(Qe){return Qe.resolvedModule}function q(Qe){return Qe.resolvedTypeReferenceDirective}function be(Qe,ln){return Qe===void 0||ln.length<=Qe.length?!1:e.startsWith(ln,Qe)&&ln[Qe.length]===e.directorySeparator}function R(){e.clearMap(Q,e.closeFileWatcherOf),$.clear(),Oe.clear(),Le(),ie.clear(),P.clear(),J=!1,D()}function K(){he=[]}function m(){var Qe=he;return he=void 0,Qe}function _(Qe){if(!f)return!1;var ln=f.get(Qe);return!!ln&&!!ln.length}function I(Qe){if(J||Qe)return ee=void 0,e.returnTrue;var ln=ee;return ee=void 0,function(ye){return!!ln&&ln.has(ye)||_(ye)}}function D(){ce.clear(),x.clear(),h.clear(),Oe.forEach(Re),Oe.clear()}function y(){J=!1,f=void 0,D(),Q.forEach(function(Qe,ln){Qe.refCount===0&&(Q.delete(ln),Qe.watcher.close())})}function E(Qe,ln,ye,ke,F){var c=e.resolveModuleName(Qe,ln,ye,ke,C,F);if(!Ee.getGlobalCache)return c;var L=Ee.getGlobalCache();if(L!==void 0&&!e.isExternalModuleNameRelative(Qe)&&!(c.resolvedModule&&e.extensionIsTS(c.resolvedModule.extension))){var te=e.loadModuleFromGlobalCache(e.Debug.assertDefined(Ee.globalCacheResolutionModuleName)(Qe),Ee.projectName,ye,ke,L),Se=te.resolvedModule,Ne=te.failedLookupLocations;if(Se)return{resolvedModule:Se,failedLookupLocations:e.addRange(c.failedLookupLocations,Ne)}}return c}function k(Qe,ln,ye,ke,F,c,L,te,Se,Ne){var ze=Ee.toPath(ln),Tn=ke.get(ze)||ke.set(ze,e.createMap()).get(ze),wn=e.getDirectoryPath(ze),jn=F.getOrCreateMapOfCacheRedirects(ye),nn=jn.get(wn);nn||(nn=e.createMap(),jn.set(wn,nn));for(var pn=[],le=Ee.getCompilationSettings(),oe=Ne&&_(ze),Cn=Ee.getCurrentProgram(),yn=Cn&&Cn.getResolvedProjectReferenceToRedirect(ln),_e=yn?!ye||ye.sourceFile.path!==yn.sourceFile.path:!!ye,dn=e.createMap(),un=0,Rn=Qe;un<Rn.length;un++){var at=Rn[un],Bn=Tn.get(at);if(!dn.has(at)&&J||_e||!Bn||Bn.isInvalidated||oe&&!e.isExternalModuleNameRelative(at)&&te(Bn)){var ut=Bn,ct=nn.get(at);ct?Bn=ct:(Bn=c(at,ln,le,Ee,ye),nn.set(at,Bn)),Tn.set(at,Bn),ue(at,Bn),ut&&He(ut),Ne&&he&&!ot(ut,Bn)&&(he.push(ze),Ne=!1)}e.Debug.assert(Bn!==void 0&&!Bn.isInvalidated),dn.set(at,!0),pn.push(L(Bn))}return Tn.forEach(function(dt,Ct){!dn.has(Ct)&&!e.contains(Se,Ct)&&(He(dt),Tn.delete(Ct))}),pn;function ot(dt,Ct){if(dt===Ct)return!0;if(!dt||!Ct)return!1;var st=L(dt),Kn=L(Ct);return st===Kn?!0:!st||!Kn?!1:st.resolvedFileName===Kn.resolvedFileName}}function T(Qe,ln,ye){return k(Qe,ln,ye,P,h,e.resolveTypeReferenceDirective,q,function(ke){return ke.resolvedTypeReferenceDirective===void 0},void 0,!1)}function ne(Qe,ln,ye,ke){return k(Qe,ln,ke,ie,ce,E,H,function(F){return!F.resolvedModule||!e.resolutionExtensionIsTSOrJson(F.resolvedModule.extension)},ye,Be)}function O(Qe,ln){var ye=ie.get(Ee.toPath(ln));return ye&&ye.get(Qe)}function Y(Qe){return e.endsWith(Qe,"/node_modules")}function pe(Qe){return e.endsWith(Qe,"/node_modules/@types")}function S(Qe,ln){if(be(se,ln)){Qe=e.isRootedDiskPath(Qe)?e.normalizePath(Qe):e.getNormalizedAbsolutePath(Qe,N()),e.Debug.assert(Qe.length===ln.length,"FailedLookup: "+Qe+" failedLookupLocationPath: "+ln);var ye=ln.indexOf(e.directorySeparator,se.length+1);return ye!==-1?{dir:Qe.substr(0,ye),dirPath:ln.substr(0,ye)}:{dir:z,dirPath:se,nonRecursive:!1}}return v(e.getDirectoryPath(e.getNormalizedAbsolutePath(Qe,N())),e.getDirectoryPath(ln))}function v(Qe,ln){for(;e.pathContainsNodeModules(ln);)Qe=e.getDirectoryPath(Qe),ln=e.getDirectoryPath(ln);if(Y(ln))return M(e.getDirectoryPath(ln))?{dir:Qe,dirPath:ln}:void 0;var ye=!0,ke,F;if(se!==void 0)for(;!be(ln,se);){var c=e.getDirectoryPath(ln);if(c===ln)break;ye=!1,ke=ln,F=Qe,ln=c,Qe=e.getDirectoryPath(Qe)}return M(ln)?{dir:F||Qe,dirPath:ke||ln,nonRecursive:ye}:void 0}function U(Qe){return e.fileExtensionIsOneOf(Qe,X)}function ue(Qe,ln){ln.failedLookupLocations&&ln.failedLookupLocations.length&&(ln.refCount?ln.refCount++:(ln.refCount=1,e.isExternalModuleNameRelative(Qe)?De(ln):Oe.add(Qe,ln)))}function De(Qe){e.Debug.assert(!!Qe.refCount);for(var ln=Qe.failedLookupLocations,ye=!1,ke=0,F=ln;ke<F.length;ke++){var c=F[ke],L=Ee.toPath(c),te=S(c,L);if(te){var Se=te.dir,Ne=te.dirPath,ze=te.nonRecursive;if(!U(L)){var Tn=$.get(L)||0;$.set(L,Tn+1)}Ne===se?(e.Debug.assert(!ze),ye=!0):we(Se,Ne,ze)}}ye&&we(z,se,!0)}function Z(Qe){Qe.refCount=void 0}function Re(Qe,ln){var ye=Ee.getCurrentProgram(),ke=ye&&ye.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(ln)?Z:De;Qe.forEach(ke)}function we(Qe,ln,ye){var ke=Q.get(ln);ke?(e.Debug.assert(!!ye===!!ke.nonRecursive),ke.refCount++):Q.set(ln,{watcher:je(Qe,ln,ye),refCount:1,nonRecursive:ye})}function He(Qe){if(!Qe.refCount)return;if(Qe.refCount--,Qe.refCount)return;for(var ln=Qe.failedLookupLocations,ye=!1,ke=0,F=ln;ke<F.length;ke++){var c=F[ke],L=Ee.toPath(c),te=S(c,L);if(te){var Se=te.dirPath,Ne=$.get(L);Ne&&(Ne===1?$.delete(L):(e.Debug.assert(Ne>1),$.set(L,Ne-1))),Se===se?ye=!0:ve(Se)}}ye&&ve(se)}function ve(Qe){var ln=Q.get(Qe);ln.refCount--}function je(Qe,ln,ye){return Ee.watchDirectoryOfFailedLookupLocation(Qe,function(ke){var F=Ee.toPath(ke);Te&&Te.addOrDeleteFileOrDirectory(ke,F),!J&&fe(F,ln===F)&&Ee.onInvalidatedResolution()},ye?0:1)}function w(Qe,ln){var ye=Qe.get(ln);ye&&(ye.forEach(He),Qe.delete(ln))}function j(Qe){if(!e.fileExtensionIs(Qe,".json"))return;var ln=Ee.getCurrentProgram();if(!ln)return;var ye=ln.getResolvedProjectReferenceByPath(Qe);if(!ye)return;ye.commandLine.fileNames.forEach(function(ke){return Pe(Ee.toPath(ke))})}function Pe(Qe){w(ie,Qe),w(P,Qe)}function a(Qe,ln,ye){var ke=e.createMap();Qe.forEach(function(F,c){var L=e.getDirectoryPath(c),te=ke.get(L);te||(te=e.createMap(),ke.set(L,te)),F.forEach(function(Se,Ne){if(te.has(Ne))return;te.set(Ne,!0),!Se.isInvalidated&&ln(Se,ye)&&(Se.isInvalidated=!0,(ee||(ee=e.createMap())).set(c,!0),c.endsWith(e.inferredTypesContainingFile)&&Ee.onChangedAutomaticTypeDirectiveNames())})})}function Ze(){var Qe=Ee.maxNumberOfFilesToIterateForInvalidation||e.maxNumberOfFilesToIterateForInvalidation;return ie.size>Qe||P.size>Qe}function In(Qe){if(Ze()){J=!0;return}a(ie,Qe,H),a(P,Qe,q)}function et(Qe){Pe(Qe),In(function(ln,ye){var ke=ye(ln);return!!ke&&Ee.toPath(ke.resolvedFileName)===Qe})}function ae(Qe){e.Debug.assert(f===Qe||f===void 0),f=Qe}function fe(Qe,ln){var ye;if(ln)ye=function(L){return be(Qe,Ee.toPath(L))};else{if(o(Qe))return!1;if(Ee.fileIsOpen(Qe))return!1;var ke=e.getDirectoryPath(Qe);if(pe(Qe)||Y(Qe)||pe(ke)||Y(ke))ye=function(L){var te=Ee.toPath(L);return te===Qe||e.startsWith(Ee.toPath(L),Qe)};else{if(!U(Qe)&&!$.has(Qe))return!1;if(e.isEmittedFileOfProgram(Ee.getCurrentProgram(),Qe))return!1;ye=function(L){return Ee.toPath(L)===Qe}}}var F=function(L){return e.some(L.failedLookupLocations,ye)},c=ee&&ee.size;return In(F),J||ee&&ee.size!==c}function Le(){e.clearMap(G,e.closeFileWatcher)}function Je(Qe,ln){if(J)return;if(be(se,ln))return se;var ye=v(Qe,ln);return ye&&Q.has(ye.dirPath)?ye.dirPath:void 0}function $e(Qe,ln){return Ee.watchTypeRootsDirectory(ln,function(ye){var ke=Ee.toPath(ye);Te&&Te.addOrDeleteFileOrDirectory(ye,ke),Ee.onChangedAutomaticTypeDirectiveNames();var F=Je(ln,Qe);F&&fe(ke,F===ke)&&Ee.onInvalidatedResolution()},1)}function Fe(){var Qe=Ee.getCompilationSettings();if(Qe.types){Le();return}var ln=e.getEffectiveTypeRoots(Qe,{directoryExists:cn,getCurrentDirectory:N});ln?e.mutateMap(G,e.arrayToMap(ln,function(ye){return Ee.toPath(ye)}),{createNewValue:$e,onDeleteValue:e.closeFileWatcher}):Le()}function cn(Qe){var ln=e.getDirectoryPath(e.getDirectoryPath(Qe)),ye=Ee.toPath(ln);return ye===se||M(ye)}}e.createResolutionCache=qe})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe;(function(K){K[K.Relative=0]="Relative",K[K.NonRelative=1]="NonRelative",K[K.Auto=2]="Auto"})(qe||(qe={}));var Ee;(function(K){K[K.Minimal=0]="Minimal",K[K.Index=1]="Index",K[K.JsExtension=2]="JsExtension"})(Ee||(Ee={}));function Ge(K,m,_){var I=K.importModuleSpecifierPreference,D=K.importModuleSpecifierEnding;return{relativePreference:I==="relative"?0:I==="non-relative"?1:2,ending:y()};function y(){switch(D){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return ce(_)?2:e.getEmitModuleResolutionKind(m)!==e.ModuleResolutionKind.NodeJs?1:0}}}function Be(K,m){return{relativePreference:e.isExternalModuleNameRelative(m)?0:1,ending:e.hasJSOrJsonFileExtension(m)?2:e.getEmitModuleResolutionKind(K)!==e.ModuleResolutionKind.NodeJs||e.endsWith(m,"index")?1:0}}function he(K,m,_,I,D,y,E){var k=J(K,m,_,I,D,y,Be(K,E));return k===E?void 0:k}M.updateModuleSpecifier=he;function ee(K,m,_,I,D,y,E,k){return E===void 0&&(E={}),J(K,_,I,D,y,k,Ge(E,K,m))}M.getModuleSpecifier=ee;function f(K,m,_,I,D,y){var E=N(m,I),k=P(D,m,_,E.getCanonicalFileName,I,y);return e.firstDefined(k,function(T){return Q(T,E,I,K,!0)})}M.getNodeModulesPackageName=f;function J(K,m,_,I,D,y,E){var k=N(m,I),T=P(D,m,_,k.getCanonicalFileName,I,y);return e.firstDefined(T,function(ne){return Q(ne,k,I,K)})||Te(_,k,K,E)}function Oe(K,m,_,I,D,y,E){var k=h(K);if(k)return[k];var T=N(_.path,I),ne=e.getSourceFileOfNode(K.valueDeclaration||e.getNonAugmentationDeclaration(K)),O=P(D,_.path,ne.originalFileName,T.getCanonicalFileName,I,E),Y=Ge(y,m,_),pe=e.mapDefined(O,function(S){return Q(S,T,I,m)});return pe.length?pe:O.map(function(S){return Te(S,T,m,Y)})}M.getModuleSpecifiers=Oe;function N(K,m){var _=e.createGetCanonicalFileName(m.useCaseSensitiveFileNames?m.useCaseSensitiveFileNames():!0),I=e.getDirectoryPath(K);return{getCanonicalFileName:_,sourceDirectory:I}}function Te(K,m,_,I){var D=m.getCanonicalFileName,y=m.sourceDirectory,E=I.ending,k=I.relativePreference,T=_.baseUrl,ne=_.paths,O=_.rootDirs,Y=O&&$(O,K,y,D,E,_)||H(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(y,K,D)),E,_);if(!T||k===0)return Y;var pe=be(K,T,D);if(!pe)return Y;var S=H(pe,E,_),v=ne&&X(e.removeFileExtension(pe),S,ne),U=v===void 0?S:v;return k===1?U:(k!==2&&e.Debug.assertNever(k),R(U)||ie(Y)<ie(U)?Y:U)}function ie(K){for(var m=0,_=e.startsWith(K,"./")?2:0;_<K.length;_++)K.charCodeAt(_)===47&&m++;return m}M.countPathComponents=ie;function ce(K){var m=K.imports;return e.firstDefined(m,function(_){var I=_.text;return e.pathIsRelative(I)?e.hasJSOrJsonFileExtension(I):void 0})||!1}function x(K){var m=K.match(/\//g);return m?m.length:0}function C(K,m){return e.compareValues(x(K),x(m))}function P(K,m,_,I,D,y){var E=y.get(_),k=E?Tr(E,[_]):[_],T=D.getCurrentDirectory?D.getCurrentDirectory():"",ne=k.map(function(we){return e.getNormalizedAbsolutePath(we,T)}),O=D.getProbableSymlinks?D.getProbableSymlinks(K):e.discoverProbableSymlinks(K,I,T),Y=[],pe=!D.useCaseSensitiveFileNames||D.useCaseSensitiveFileNames()?e.compareStringsCaseSensitive:e.compareStringsCaseInsensitive;if(O.forEach(function(we,He){if(e.startsWithDirectory(m,we,I))return;var ve=e.find(ne,function(j){return pe(j.slice(0,we.length+1),we+"/")===0});if(ve===void 0)return;var je=e.getRelativePathFromDirectory(we,ve,I),w=e.resolvePath(He,je);(!D.fileExists||D.fileExists(w))&&Y.push(w)}),Y.push.apply(Y,ne),Y.length<2)return Y;for(var S=e.arrayToMap(Y,e.identity,I),v=[],U=function(we){var He=e.ensureTrailingDirectorySeparator(we),ve;S.forEach(function(w,j){e.startsWith(w,He)&&((ve||(ve=[])).push(j),S.delete(j))}),ve&&(ve.length>1&&ve.sort(C),v.push.apply(v,ve));var je=e.getDirectoryPath(we);if(je===we)return ue=we,"break";we=je,ue=we},ue,De=e.getDirectoryPath(e.toPath(m,T,I));S.size!==0;){var Z=U(De);if(De=ue,Z==="break")break}if(S.size){var Re=e.arrayFrom(S.values());Re.length>1&&Re.sort(C),v.push.apply(v,Re)}return v}function h(K){var m=e.find(K.declarations,function(_){return e.isNonGlobalAmbientModule(_)&&(!e.isExternalModuleAugmentation(_)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(_.name)))});if(m)return m.name.text}function X(K,m,_){for(var I in _)for(var D=0,y=_[I];D<y.length;D++){var E=y[D],k=e.removeFileExtension(e.normalizePath(E)),T=k.indexOf("*");if(T!==-1){var ne=k.substr(0,T),O=k.substr(T+1);if(m.length>=ne.length+O.length&&e.startsWith(m,ne)&&e.endsWith(m,O)||!O&&m===e.removeTrailingDirectorySeparator(ne)){var Y=m.substr(ne.length,m.length-O.length);return I.replace("*",Y)}}else if(k===m||k===K)return I}}function $(K,m,_,I,D,y){var E=G(m,K,I);if(E===void 0)return;var k=G(_,K,I),T=k!==void 0?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(k,E,I)):E;return e.getEmitModuleResolutionKind(y)===e.ModuleResolutionKind.NodeJs?H(T,D,y):e.removeFileExtension(T)}function Q(K,m,_,I,D){var y=m.getCanonicalFileName,E=m.sourceDirectory;if(!_.fileExists||!_.readFile)return;var k=se(K);if(!k)return;var T,ne=K.substring(0,k.packageRootIndex);if(!D){var O=e.combinePaths(ne,"package.json");T=_.fileExists(O)?JSON.parse(_.readFile(O)):void 0;var Y=T&&T.typesVersions?e.getPackageJsonTypesVersionsPaths(T.typesVersions):void 0;if(Y){var pe=K.slice(k.packageRootIndex+1),S=X(e.removeFileExtension(pe),H(pe,0,I),Y.paths);S!==void 0&&(K=e.combinePaths(K.slice(0,k.packageRootIndex),S))}}var v=D?K:Re(K),U=_.getGlobalTypingsCacheLocation&&_.getGlobalTypingsCacheLocation(),ue=y(v.substring(0,k.topLevelNodeModulesIndex));if(!(e.startsWith(E,ue)||U&&e.startsWith(y(U),ue)))return;var De=v.substring(k.topLevelPackageNameIndex+1),Z=e.getPackageNameFromTypesPackageName(De);return e.getEmitModuleResolutionKind(I)!==e.ModuleResolutionKind.NodeJs&&Z===De?void 0:Z;function Re(we){if(T){var He=T.typings||T.types||T.main;if(He){var ve=e.toPath(He,ne,y);if(e.removeFileExtension(ve)===e.removeFileExtension(y(we)))return ne}}var je=e.removeFileExtension(we);return y(je.substring(k.fileNameIndex))==="/index"&&!z(_,je.substring(0,k.fileNameIndex))?je.substring(0,k.fileNameIndex):je}}function z(K,m){if(!K.fileExists)return;for(var _=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),I=0,D=_;I<D.length;I++){var y=D[I],E=m+y;if(K.fileExists(E))return E}}function se(K){var m=0,_=0,I=0,D=0,y;(function(ne){ne[ne.BeforeNodeModules=0]="BeforeNodeModules",ne[ne.NodeModules=1]="NodeModules",ne[ne.Scope=2]="Scope",ne[ne.PackageContent=3]="PackageContent"})(y||(y={}));for(var E=0,k=0,T=0;k>=0;){E=k,k=K.indexOf("/",E+1);switch(T){case 0:K.indexOf(e.nodeModulesPathPart,E)===E&&(m=E,_=k,T=1);break;case 1:case 2:T===1&&K.charAt(E+1)==="@"?T=2:(I=k,T=3);break;case 3:K.indexOf(e.nodeModulesPathPart,E)===E?T=1:T=3;break}}return D=E,T>1?{topLevelNodeModulesIndex:m,topLevelPackageNameIndex:_,packageRootIndex:I,fileNameIndex:D}:void 0}function G(K,m,_){return e.firstDefined(m,function(I){var D=be(K,I,_);return R(D)?void 0:D})}function H(K,m,_){if(e.fileExtensionIs(K,".json"))return K;var I=e.removeFileExtension(K);switch(m){case 0:return e.removeSuffix(I,"/index");case 1:return I;case 2:return I+q(K,_);default:return e.Debug.assertNever(m)}}function q(K,m){var _=e.extensionFromPath(K);switch(_){case".ts":case".d.ts":return".js";case".tsx":return m.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return _;case".tsbuildinfo":return e.Debug.fail("Extension .tsbuildinfo is unsupported:: FileName:: "+K);default:return e.Debug.assertNever(_)}}function be(K,m,_){var I=e.getRelativePathToDirectoryOrUrl(m,K,m,_,!1);return e.isRootedDiskPath(I)?void 0:I}function R(K){return e.startsWith(K,"..")}})(o=e.moduleSpecifiers||(e.moduleSpecifiers={}))})(sn||(sn={}));var sn;(function(e){var o=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function M(G,H){var q=G===e.sys?o:{getCurrentDirectory:function(){return G.getCurrentDirectory()},getNewLine:function(){return G.newLine},getCanonicalFileName:e.createGetCanonicalFileName(G.useCaseSensitiveFileNames)};if(!H)return function(R){return G.write(e.formatDiagnostic(R,q))};var be=new Array(1);return function(R){be[0]=R,G.write(e.formatDiagnosticsWithColorAndContext(be,q)+q.getNewLine()),be[0]=void 0}}e.createDiagnosticReporter=M;function qe(G,H,q){return G.clearScreen&&!q.preserveWatchOutput&&!q.extendedDiagnostics&&!q.diagnostics&&e.contains(e.screenStartingMessageCodes,H.code)?(G.clearScreen(),!0):!1}e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code];function Ee(G,H){return e.contains(e.screenStartingMessageCodes,G.code)?H+H:H}function Ge(G){return G.now?G.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):new Date().toLocaleTimeString()}e.getLocaleTimeString=Ge;function Be(G,H){return H?function(q,be,R){qe(G,q,R);var K="["+e.formatColorAndReset(Ge(G),e.ForegroundColorEscapeSequences.Grey)+"] ";K+=""+e.flattenDiagnosticMessageText(q.messageText,G.newLine)+(be+be),G.write(K)}:function(q,be,R){var K="";qe(G,q,R)||(K+=be),K+=Ge(G)+" - ",K+=""+e.flattenDiagnosticMessageText(q.messageText,G.newLine)+Ee(q,be),G.write(K)}}e.createWatchStatusReporter=Be;function he(G,H,q,be){var R=q;R.onUnRecoverableConfigFileDiagnostic=function(m){return $(q,be,m)};var K=e.getParsedCommandLineOfConfigFile(G,H,R);return R.onUnRecoverableConfigFileDiagnostic=void 0,K}e.parseConfigFileWithSystem=he;function ee(G){return e.countWhere(G,function(H){return H.category===e.DiagnosticCategory.Error})}e.getErrorCountForSummary=ee;function f(G){return G===1?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}e.getWatchErrorSummaryDiagnosticMessage=f;function J(G,H){if(G===0)return"";var q=e.createCompilerDiagnostic(G===1?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,G);return""+H+e.flattenDiagnosticMessageText(q.messageText,H)+H+H}e.getErrorSummaryText=J;function Oe(G,H){(G.getCompilerOptions().listFiles||G.getCompilerOptions().listFilesOnly)&&e.forEach(G.getSourceFiles(),function(q){H(q.fileName)})}e.listFiles=Oe;function N(G,H,q,be,R,K,m,_){var I=!!G.getCompilerOptions().listFilesOnly,D=G.getConfigFileParsingDiagnostics().slice(),y=D.length;e.addRange(D,G.getSyntacticDiagnostics(void 0,K)),D.length===y&&(e.addRange(D,G.getOptionsDiagnostics(K)),I||(e.addRange(D,G.getGlobalDiagnostics(K)),D.length===y&&e.addRange(D,G.getSemanticDiagnostics(void 0,K))));var E=I?{emitSkipped:!0,diagnostics:e.emptyArray}:G.emit(void 0,R,K,m,_),k=E.emittedFiles,T=E.diagnostics;if(e.addRange(D,T),e.sortAndDeduplicateDiagnostics(D).forEach(H),q){var ne=G.getCurrentDirectory();e.forEach(k,function(O){var Y=e.getNormalizedAbsolutePath(O,ne);q("TSFILE: "+Y)}),Oe(G,q)}return be&&be(ee(D)),{emitResult:E,diagnostics:D}}e.emitFilesAndReportErrors=N;function Te(G,H,q,be,R,K,m,_){var I=N(G,H,q,be,R,K,m,_),D=I.emitResult,y=I.diagnostics;return D.emitSkipped&&y.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:y.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.emitFilesAndReportErrorsAndGetExitStatus=Te,e.noopFileWatcher={close:e.noop};function ie(G,H){G===void 0&&(G=e.sys);var q=H||Be(G);return{onWatchStatusChange:q,watchFile:e.maybeBind(G,G.watchFile)||function(){return e.noopFileWatcher},watchDirectory:e.maybeBind(G,G.watchDirectory)||function(){return e.noopFileWatcher},setTimeout:e.maybeBind(G,G.setTimeout)||e.noop,clearTimeout:e.maybeBind(G,G.clearTimeout)||e.noop}}e.createWatchHost=ie;var ce;(function(G){G.ConfigFile="Config file",G.SourceFile="Source file",G.MissingFile="Missing file",G.WildcardDirectory="Wild card directory",G.FailedLookupLocations="Failed Lookup Locations",G.TypeRoots="Type roots"})(ce=e.WatchType||(e.WatchType={}));function x(G,H){var q=G.trace?H.extendedDiagnostics?e.WatchLogLevel.Verbose:H.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,be=q!==e.WatchLogLevel.None?function(K){return G.trace(K)}:e.noop,R=e.getWatchFactory(q,be);return R.writeLog=be,R}e.createWatchFactory=x;function C(G,H,q){q===void 0&&(q=G);var be=G.useCaseSensitiveFileNames(),R=e.memoize(function(){return G.getNewLine()});return{getSourceFile:function(_,I,D){var y;try{e.performance.mark("beforeIORead"),y=G.readFile(_,H().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(E){D&&D(E.message),y=""}return y!==void 0?e.createSourceFile(_,y,I):void 0},getDefaultLibLocation:e.maybeBind(G,G.getDefaultLibLocation),getDefaultLibFileName:function(_){return G.getDefaultLibFileName(_)},writeFile:m,getCurrentDirectory:e.memoize(function(){return G.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return be},getCanonicalFileName:e.createGetCanonicalFileName(be),getNewLine:function(){return e.getNewLineCharacter(H(),R)},fileExists:function(_){return G.fileExists(_)},readFile:function(_){return G.readFile(_)},trace:e.maybeBind(G,G.trace),directoryExists:e.maybeBind(q,q.directoryExists),getDirectories:e.maybeBind(q,q.getDirectories),realpath:e.maybeBind(G,G.realpath),getEnvironmentVariable:e.maybeBind(G,G.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(G,G.createHash),readDirectory:e.maybeBind(G,G.readDirectory)};function K(_){if(_.length>e.getRootLength(_)&&!G.directoryExists(_)){var I=e.getDirectoryPath(_);K(I),G.createDirectory&&G.createDirectory(_)}}function m(_,I,D,y){try{e.performance.mark("beforeIOWrite"),K(e.getDirectoryPath(e.normalizePath(_))),G.writeFile(_,I,D),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(E){y&&y(E.message)}}}e.createCompilerHostFromProgramHost=C;function P(G,H){var q=G.getSourceFile,be=H.createHash||e.generateDjb2Hash;G.getSourceFile=function(){for(var R=[],K=0;K<arguments.length;K++)R[K]=arguments[K];var m=q.call.apply(q,Tr([G],R));return m&&(m.version=be.call(H,m.text)),m}}e.setGetSourceFileAsHashVersioned=P;function h(G,H){var q=e.memoize(function(){return e.getDirectoryPath(e.normalizePath(G.getExecutingFilePath()))}),be=G;return{useCaseSensitiveFileNames:function(){return G.useCaseSensitiveFileNames},getNewLine:function(){return G.newLine},getCurrentDirectory:e.memoize(function(){return G.getCurrentDirectory()}),getDefaultLibLocation:q,getDefaultLibFileName:function(R){return e.combinePaths(q(),e.getDefaultLibFileName(R))},fileExists:function(R){return G.fileExists(R)},readFile:function(R,K){return G.readFile(R,K)},directoryExists:function(R){return G.directoryExists(R)},getDirectories:function(R){return G.getDirectories(R)},readDirectory:function(R,K,m,_,I){return G.readDirectory(R,K,m,_,I)},realpath:e.maybeBind(G,G.realpath),getEnvironmentVariable:e.maybeBind(G,G.getEnvironmentVariable),trace:function(R){return G.write(R+G.newLine)},createDirectory:function(R){return G.createDirectory(R)},writeFile:function(R,K,m){return G.writeFile(R,K,m)},onCachedDirectoryStructureHostCreate:function(R){return be=R||G},createHash:e.maybeBind(G,G.createHash),createProgram:H||e.createEmitAndSemanticDiagnosticsBuilderProgram}}e.createProgramHost=h;function X(G,H,q,be){G===void 0&&(G=e.sys);var R=function(m){return G.write(m+G.newLine)},K=h(G,H);return e.copyProperties(K,ie(G,be)),K.afterProgramCreate=function(m){var _=m.getCompilerOptions(),I=e.getNewLineCharacter(_,function(){return G.newLine});N(m,q,R,function(D){return K.onWatchStatusChange(e.createCompilerDiagnostic(f(D),D),I,_,D)})},K}function $(G,H,q){H(q),G.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}function Q(G,H,q,be,R,K){var m=R||M(q),_=X(q,be,m,K);return _.onUnRecoverableConfigFileDiagnostic=function(I){return $(q,m,I)},_.configFileName=G,_.optionsToExtend=H,_}e.createWatchCompilerHostOfConfigFile=Q;function z(G,H,q,be,R,K,m){var _=X(q,be,R||M(q),K);return _.rootFiles=G,_.options=H,_.projectReferences=m,_}e.createWatchCompilerHostOfFilesAndCompilerOptions=z;function se(G){var H=G.system||e.sys,q=G.host||(G.host=e.createIncrementalCompilerHost(G.options,H)),be=e.createIncrementalProgram(G),R=Te(be,G.reportDiagnostic||M(H),function(K){return q.trace&&q.trace(K)},G.reportErrorSummary||G.options.pretty?function(K){return H.write(J(K,H.newLine))}:void 0);return G.afterProgramEmitAndDiagnostics&&G.afterProgramEmitAndDiagnostics(be),R}e.performIncrementalCompilation=se})(sn||(sn={})),function(e){function o(Be,he){if(Be.out||Be.outFile)return;var ee=e.getTsBuildInfoEmitOutputFilePath(Be);if(!ee)return;var f=he.readFile(ee);if(!f)return;var J=e.getBuildInfo(f);return J.version!==e.version?void 0:J.program?e.createBuildProgramUsingProgramBuildInfo(J.program,ee,he):void 0}e.readBuilderProgram=o;function M(Be,he){he===void 0&&(he=e.sys);var ee=e.createCompilerHostWorker(Be,void 0,he);return ee.createHash=e.maybeBind(he,he.createHash),e.setGetSourceFileAsHashVersioned(ee,he),e.changeCompilerHostLikeToUseCache(ee,function(f){return e.toPath(f,ee.getCurrentDirectory(),ee.getCanonicalFileName)}),ee}e.createIncrementalCompilerHost=M;function qe(Be){var he=Be.rootNames,ee=Be.options,f=Be.configFileParsingDiagnostics,J=Be.projectReferences,Oe=Be.host,N=Be.createProgram;Oe=Oe||M(ee),N=N||e.createEmitAndSemanticDiagnosticsBuilderProgram;var Te=o(ee,Oe);return N(he,ee,Oe,Te,f,J)}e.createIncrementalProgram=qe;function Ee(Be,he,ee,f,J,Oe,N){return e.isArray(Be)?e.createWatchCompilerHostOfFilesAndCompilerOptions(Be,he,ee,f,J,Oe,N):e.createWatchCompilerHostOfConfigFile(Be,he,ee,f,J,Oe)}e.createWatchCompilerHost=Ee;function Ge(Be){var he,ee,f,J,Oe,N=e.createMap(),Te,ie=!1,ce=!1,x=Be.useCaseSensitiveFileNames(),C=Be.getCurrentDirectory(),P=Be.configFileName,h=Be.optionsToExtend,X=h===void 0?{}:h,$=Be.createProgram,Q=Be.rootFiles,z=Be.options,se=Be.projectReferences,G,H,q=!1,be=!1,R=P===void 0?void 0:e.createCachedDirectoryStructureHost(Be,C,x);R&&Be.onCachedDirectoryStructureHostCreate&&Be.onCachedDirectoryStructureHostCreate(R);var K=R||Be,m=e.parseConfigHostFromCompilerHostLike(Be,K),_=we();P&&Be.configFileParsingResult&&(Fe(Be.configFileParsingResult),_=we()),In(e.Diagnostics.Starting_compilation_in_watch_mode),P&&!Be.configFileParsingResult&&(_=e.getNewLineCharacter(X,function(){return Be.getNewLine()}),e.Debug.assert(!Q),$e(),_=we());var I=e.createWatchFactory(Be,z),D=I.watchFile,y=I.watchFilePath,E=I.watchDirectory,k=I.writeLog,T=e.createGetCanonicalFileName(x);k("Current directory: "+C+" CaseSensitiveFileNames: "+x);var ne;P&&(ne=D(Be,P,ae,e.PollingInterval.High,"Config file"));var O=e.createCompilerHostFromProgramHost(Be,function(){return z},K);e.setGetSourceFileAsHashVersioned(O,Be);var Y=O.getSourceFile;O.getSourceFile=function(c){for(var L=[],te=1;te<arguments.length;te++)L[te-1]=arguments[te];return j.apply(void 0,Tr([c,He(c)],L))},O.getSourceFileByPath=j,O.getNewLine=function(){return _},O.fileExists=w,O.onReleaseOldSourceFile=Ze,O.toPath=He,O.getCompilationSettings=function(){return z},O.watchDirectoryOfFailedLookupLocation=function(c,L,te){return E(Be,c,L,te,"Failed Lookup Locations")},O.watchTypeRootsDirectory=function(c,L,te){return E(Be,c,L,te,"Type roots")},O.getCachedDirectoryStructureHost=function(){return R},O.onInvalidatedResolution=et,O.onChangedAutomaticTypeDirectiveNames=function(){ce=!0,et()},O.fileIsOpen=e.returnFalse,O.maxNumberOfFilesToIterateForInvalidation=Be.maxNumberOfFilesToIterateForInvalidation,O.getCurrentProgram=ue,O.writeLog=k;var pe=e.createResolutionCache(O,P?e.getDirectoryPath(e.getNormalizedAbsolutePath(P,C)):C,!1);O.resolveModuleNames=Be.resolveModuleNames?function(){for(var c=[],L=0;L<arguments.length;L++)c[L]=arguments[L];return Be.resolveModuleNames.apply(Be,c)}:function(c,L,te,Se){return pe.resolveModuleNames(c,L,te,Se)},O.resolveTypeReferenceDirectives=Be.resolveTypeReferenceDirectives?function(){for(var c=[],L=0;L<arguments.length;L++)c[L]=arguments[L];return Be.resolveTypeReferenceDirectives.apply(Be,c)}:function(c,L,te){return pe.resolveTypeReferenceDirectives(c,L,te)};var S=!!Be.resolveModuleNames||!!Be.resolveTypeReferenceDirectives;return he=o(z,O),De(),ke(),P?{getCurrentProgram:U,getProgram:De,close:v}:{getCurrentProgram:U,getProgram:De,updateRootFileNames:Re,close:v};function v(){pe.clear(),e.clearMap(N,function(c){c&&c.fileWatcher&&(c.fileWatcher.close(),c.fileWatcher=void 0)}),ne&&(ne.close(),ne=void 0),J&&(e.clearMap(J,e.closeFileWatcherOf),J=void 0),f&&(e.clearMap(f,e.closeFileWatcher),f=void 0)}function U(){return he}function ue(){return he&&he.getProgramOrUndefined()}function De(){k("Synchronizing program");var c=U();ie&&(_=we(),c&&e.changesAffectModuleResolution(c.getCompilerOptions(),z)&&pe.clear());var L=pe.createHasInvalidatedResolution(S);return e.isProgramUptoDate(ue(),Q,z,a,w,L,ce,se)?be&&(he=$(void 0,void 0,O,he,H,se),be=!1):Z(L),Be.afterProgramCreate&&Be.afterProgramCreate(he),he}function Z(c){k("CreatingProgramWith::"),k(" roots: "+JSON.stringify(Q)),k(" options: "+JSON.stringify(z));var L=ie||!ue();if(ie=!1,be=!1,pe.startCachingPerDirectoryResolution(),O.hasInvalidatedResolution=c,O.hasChangedAutomaticTypeDirectiveNames=ce,he=$(Q,z,O,he,H,se),pe.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(he.getProgram(),f||(f=e.createMap()),ln),L&&pe.updateTypeRootsWatch(),Te){for(var te=0,Se=Te;te<Se.length;te++){var Ne=Se[te];f.has(Ne)||N.delete(Ne)}Te=void 0}}function Re(c){e.Debug.assert(!P,"Cannot update root file names with config file watch mode"),Q=c,et()}function we(){return e.getNewLineCharacter(z||X,function(){return Be.getNewLine()})}function He(c){return e.toPath(c,C,T)}function ve(c){return typeof c=="boolean"}function je(c){return typeof c.version=="boolean"}function w(c){var L=He(c);return ve(N.get(L))?!0:K.fileExists(c)}function j(c,L,te,Se,Ne){var ze=N.get(L);if(ve(ze))return;if(ze===void 0||Ne||je(ze)){var Tn=Y(c,te,Se);if(ze)Tn?(ze.sourceFile=Tn,ze.version=Tn.version,ze.fileWatcher||(ze.fileWatcher=y(Be,c,cn,e.PollingInterval.Low,L,"Source file"))):(ze.fileWatcher&&ze.fileWatcher.close(),N.set(L,!1));else if(Tn){var wn=y(Be,c,cn,e.PollingInterval.Low,L,"Source file");N.set(L,{sourceFile:Tn,version:Tn.version,fileWatcher:wn})}else N.set(L,!1);return Tn}return ze.sourceFile}function Pe(c){var L=N.get(c);L!==void 0&&(ve(L)?N.set(c,{version:!1}):L.version=!1)}function a(c){var L=N.get(c);return!L||!L.version?void 0:L.version}function Ze(c,L,te){var Se=N.get(c.resolvedPath);Se!==void 0&&(ve(Se)?(Te||(Te=[])).push(c.path):Se.sourceFile===c&&(Se.fileWatcher&&Se.fileWatcher.close(),N.delete(c.resolvedPath),te||pe.removeResolutionsOfFile(c.path)))}function In(c){Be.onWatchStatusChange&&Be.onWatchStatusChange(e.createCompilerDiagnostic(c),_,z||X)}function et(){if(!Be.setTimeout||!Be.clearTimeout)return;Oe&&Be.clearTimeout(Oe),k("Scheduling update"),Oe=Be.setTimeout(fe,250)}function ae(){e.Debug.assert(!!P),ee=e.ConfigFileProgramReloadLevel.Full,et()}function fe(){Oe=void 0,In(e.Diagnostics.File_change_detected_Starting_incremental_compilation);switch(ee){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),Le();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),Je();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),De();break}e.perfLogger.logStopUpdateProgram("Done")}function Le(){k("Reloading new file names and options");var c=e.getFileNamesFromConfigSpecs(G,e.getDirectoryPath(P),z,m);e.updateErrorForNoInputFiles(c,P,G,H,q)&&(be=!0),Q=c.fileNames,De()}function Je(){k("Reloading config file: "+P),ee=e.ConfigFileProgramReloadLevel.None,R&&R.clearCache(),$e(),ie=!0,De(),ke()}function $e(){Fe(e.getParsedCommandLineOfConfigFile(P,X,m))}function Fe(c){Q=c.fileNames,z=c.options,G=c.configFileSpecs,se=c.projectReferences,H=e.getConfigFileParsingDiagnostics(c).slice(),q=e.canJsonReportNoInutFiles(c.raw),be=!0}function cn(c,L,te){Qe(c,te,L),L===e.FileWatcherEventKind.Deleted&&N.has(te)&&pe.invalidateResolutionOfFile(te),pe.removeResolutionsFromProjectReferenceRedirects(te),Pe(te),et()}function Qe(c,L,te){R&&R.addOrDeleteFile(c,L,te)}function ln(c){return y(Be,c,ye,e.PollingInterval.Medium,c,"Missing file")}function ye(c,L,te){Qe(c,te,L),L===e.FileWatcherEventKind.Created&&f.has(te)&&(f.get(te).close(),f.delete(te),Pe(te),et())}function ke(){G?e.updateWatchingWildcardDirectories(J||(J=e.createMap()),e.createMapFromTemplate(G.wildcardDirectories),F):J&&e.clearMap(J,e.closeFileWatcherOf)}function F(c,L){return E(Be,c,function(te){e.Debug.assert(!!P);var Se=He(te);if(R&&R.addOrDeleteFileOrDirectory(te,Se),Pe(Se),e.isPathIgnored(Se))return;if(Se!==c&&e.hasExtension(Se)&&!e.isSupportedSourceFileName(te,z)){k("Project: "+P+" Detected file add/remove of non supported extension: "+te);return}ee!==e.ConfigFileProgramReloadLevel.Full&&(ee=e.ConfigFileProgramReloadLevel.Partial,et())},L,"Wild card directory")}}e.createWatchProgram=Ge}(sn||(sn={}));var sn;(function(e){var o;(function(qe){qe[qe.Unbuildable=0]="Unbuildable",qe[qe.UpToDate=1]="UpToDate",qe[qe.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",qe[qe.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",qe[qe.OutputMissing=4]="OutputMissing",qe[qe.OutOfDateWithSelf=5]="OutOfDateWithSelf",qe[qe.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",qe[qe.UpstreamOutOfDate=7]="UpstreamOutOfDate",qe[qe.UpstreamBlocked=8]="UpstreamBlocked",qe[qe.ComputingUpstream=9]="ComputingUpstream",qe[qe.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",qe[qe.ContainerOnly=11]="ContainerOnly"})(o=e.UpToDateStatusType||(e.UpToDateStatusType={}));function M(qe){return e.fileExtensionIs(qe,".json")?qe:e.combinePaths(qe,"tsconfig.json")}e.resolveConfigFileProjectName=M})(sn||(sn={})),function(e){var o=new Date(-864e13),M=new Date(864e13),qe;(function(c){c[c.None=0]="None",c[c.Success=1]="Success",c[c.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",c[c.ConfigFileErrors=4]="ConfigFileErrors",c[c.SyntaxErrors=8]="SyntaxErrors",c[c.TypeErrors=16]="TypeErrors",c[c.DeclarationEmitErrors=32]="DeclarationEmitErrors",c[c.EmitErrors=64]="EmitErrors",c[c.AnyErrors=124]="AnyErrors"})(qe||(qe={}));function Ee(){return e.createMap()}function Ge(c,L,te){var Se=c.get(L),Ne;return Se||(Ne=te(),c.set(L,Ne)),Se||Ne}function Be(c,L){return Ge(c,L,e.createMap)}function he(c,L){return L>c?L:c}function ee(c){return e.fileExtensionIs(c,".d.ts")}function f(c){return!!c&&!!c.buildOrder}e.isCircularBuildOrder=f;function J(c){return f(c)?c.buildOrder:c}e.getBuildOrderFromAnyBuildOrder=J;function Oe(c,L){return function(te){var Se=L?"["+e.formatColorAndReset(e.getLocaleTimeString(c),e.ForegroundColorEscapeSequences.Grey)+"] ":e.getLocaleTimeString(c)+" - ";Se+=""+e.flattenDiagnosticMessageText(te.messageText,c.newLine)+(c.newLine+c.newLine),c.write(Se)}}e.createBuilderStatusReporter=Oe;function N(c,L,te,Se){var Ne=e.createProgramHost(c,L);return Ne.getModifiedTime=c.getModifiedTime?function(ze){return c.getModifiedTime(ze)}:e.returnUndefined,Ne.setModifiedTime=c.setModifiedTime?function(ze,Tn){return c.setModifiedTime(ze,Tn)}:e.noop,Ne.deleteFile=c.deleteFile?function(ze){return c.deleteFile(ze)}:e.noop,Ne.reportDiagnostic=te||e.createDiagnosticReporter(c),Ne.reportSolutionBuilderStatus=Se||Oe(c),Ne}function Te(c,L,te,Se,Ne){c===void 0&&(c=e.sys);var ze=N(c,L,te,Se);return ze.reportErrorSummary=Ne,ze}e.createSolutionBuilderHost=Te;function ie(c,L,te,Se,Ne){c===void 0&&(c=e.sys);var ze=N(c,L,te,Se),Tn=e.createWatchHost(c,Ne);return e.copyProperties(ze,Tn),ze}e.createSolutionBuilderWithWatchHost=ie;function ce(c){var L={};return e.commonOptionsWithBuild.forEach(function(te){e.hasProperty(c,te.name)&&(L[te.name]=c[te.name])}),L}function x(c,L,te){return fe(!1,c,L,te)}e.createSolutionBuilder=x;function C(c,L,te){return fe(!0,c,L,te)}e.createSolutionBuilderWithWatch=C;function P(c,L,te,Se){var Ne=L,ze=L,Tn=Ne.getCurrentDirectory(),wn=e.createGetCanonicalFileName(Ne.useCaseSensitiveFileNames()),jn=ce(Se),nn=e.createCompilerHostFromProgramHost(Ne,function(){return un.projectCompilerOptions});e.setGetSourceFileAsHashVersioned(nn,Ne),nn.getParsedCommandLine=function(Rn){return Q(un,Rn,X(un,Rn))},nn.resolveModuleNames=e.maybeBind(Ne,Ne.resolveModuleNames),nn.resolveTypeReferenceDirectives=e.maybeBind(Ne,Ne.resolveTypeReferenceDirectives);var pn=nn.resolveModuleNames?void 0:e.createModuleResolutionCache(Tn,wn);if(!nn.resolveModuleNames){var le=function(Rn,at,Bn){return e.resolveModuleName(Rn,at,un.projectCompilerOptions,nn,pn,Bn).resolvedModule};nn.resolveModuleNames=function(Rn,at,Bn,ut){return e.loadWithLocalCache(e.Debug.assertEachDefined(Rn),at,ut,le)}}var oe=e.createWatchFactory(ze,Se),Cn=oe.watchFile,yn=oe.watchFilePath,_e=oe.watchDirectory,dn=oe.writeLog,un={host:Ne,hostWithWatch:ze,currentDirectory:Tn,getCanonicalFileName:wn,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(Ne),writeFileName:Ne.trace?function(Rn){return Ne.trace(Rn)}:void 0,options:Se,baseCompilerOptions:jn,rootNames:te,resolvedConfigFilePaths:e.createMap(),configFileCache:Ee(),projectStatus:Ee(),buildInfoChecked:Ee(),extendedConfigCache:e.createMap(),builderPrograms:Ee(),diagnostics:Ee(),projectPendingBuild:Ee(),projectErrorsReported:Ee(),compilerHost:nn,moduleResolutionCache:pn,buildOrder:void 0,readFileWithCache:function(Rn){return Ne.readFile(Rn)},projectCompilerOptions:jn,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:c,currentInvalidatedProject:void 0,watch:c,allWatchedWildcardDirectories:Ee(),allWatchedInputFiles:Ee(),allWatchedConfigFiles:Ee(),timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:Cn,watchFilePath:yn,watchDirectory:_e,writeLog:dn};return un}function h(c,L){return e.toPath(L,c.currentDirectory,c.getCanonicalFileName)}function X(c,L){var te=c.resolvedConfigFilePaths,Se=te.get(L);if(Se!==void 0)return Se;var Ne=h(c,L);return te.set(L,Ne),Ne}function $(c){return!!c.options}function Q(c,L,te){var Se=c.configFileCache,Ne=Se.get(te);if(Ne)return $(Ne)?Ne:void 0;var ze,Tn=c.parseConfigFileHost,wn=c.baseCompilerOptions,jn=c.extendedConfigCache,nn=c.host,pn;return nn.getParsedCommandLine?(pn=nn.getParsedCommandLine(L),pn||(ze=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,L))):(Tn.onUnRecoverableConfigFileDiagnostic=function(le){return ze=le},pn=e.getParsedCommandLineOfConfigFile(L,wn,Tn,jn),Tn.onUnRecoverableConfigFileDiagnostic=e.noop),Se.set(te,pn||ze),pn}function z(c,L){return e.resolveConfigFileProjectName(e.resolvePath(c.currentDirectory,L))}function se(c,L){for(var te=e.createMap(),Se=e.createMap(),Ne=[],ze,Tn,wn=0,jn=L;wn<jn.length;wn++){var nn=jn[wn];pn(nn)}return Tn?{buildOrder:ze||e.emptyArray,circularDiagnostics:Tn}:ze||e.emptyArray;function pn(le,oe){var Cn=X(c,le);if(Se.has(Cn))return;if(te.has(Cn)){oe||(Tn||(Tn=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,Ne.join(`\r
|
|
|
`)));return}te.set(Cn,!0),Ne.push(le);var yn=Q(c,le,Cn);if(yn&&yn.projectReferences)for(var _e=0,dn=yn.projectReferences;_e<dn.length;_e++){var un=dn[_e],Rn=z(c,un.path);pn(Rn,oe||un.circular)}Ne.pop(),Se.set(Cn,!0),(ze||(ze=[])).push(le)}}function G(c){return c.buildOrder||H(c)}function H(c){var L=se(c,c.rootNames.map(function(Ne){return z(c,Ne)}));c.resolvedConfigFilePaths.clear();var te=e.arrayToSet(J(L),function(Ne){return X(c,Ne)}),Se={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(c.configFileCache,te,Se),e.mutateMapSkippingNewValues(c.projectStatus,te,Se),e.mutateMapSkippingNewValues(c.buildInfoChecked,te,Se),e.mutateMapSkippingNewValues(c.builderPrograms,te,Se),e.mutateMapSkippingNewValues(c.diagnostics,te,Se),e.mutateMapSkippingNewValues(c.projectPendingBuild,te,Se),e.mutateMapSkippingNewValues(c.projectErrorsReported,te,Se),c.watch&&(e.mutateMapSkippingNewValues(c.allWatchedConfigFiles,te,{onDeleteValue:e.closeFileWatcher}),e.mutateMapSkippingNewValues(c.allWatchedWildcardDirectories,te,{onDeleteValue:function(Ne){return Ne.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(c.allWatchedInputFiles,te,{onDeleteValue:function(Ne){return Ne.forEach(e.closeFileWatcher)}})),c.buildOrder=L}function q(c,L,te){var Se=L&&z(c,L),Ne=G(c);if(f(Ne))return Ne;if(Se){var ze=X(c,Se),Tn=e.findIndex(Ne,function(jn){return X(c,jn)===ze});if(Tn===-1)return}var wn=Se?se(c,[Se]):Ne;return e.Debug.assert(!f(wn)),e.Debug.assert(!te||Se!==void 0),e.Debug.assert(!te||wn[wn.length-1]===Se),te?wn.slice(0,wn.length-1):wn}function be(c){c.cache&&R(c);var L=c.compilerHost,te=c.host,Se=c.readFileWithCache,Ne=L.getSourceFile,ze=e.changeCompilerHostLikeToUseCache(te,function(Cn){return h(c,Cn)},function(){for(var Cn=[],yn=0;yn<arguments.length;yn++)Cn[yn]=arguments[yn];return Ne.call.apply(Ne,Tr([L],Cn))}),Tn=ze.originalReadFile,wn=ze.originalFileExists,jn=ze.originalDirectoryExists,nn=ze.originalCreateDirectory,pn=ze.originalWriteFile,le=ze.getSourceFileWithCache,oe=ze.readFileWithCache;c.readFileWithCache=oe,L.getSourceFile=le,c.cache={originalReadFile:Tn,originalFileExists:wn,originalDirectoryExists:jn,originalCreateDirectory:nn,originalWriteFile:pn,originalReadFileWithCache:Se,originalGetSourceFile:Ne}}function R(c){if(!c.cache)return;var L=c.cache,te=c.host,Se=c.compilerHost,Ne=c.extendedConfigCache,ze=c.moduleResolutionCache;te.readFile=L.originalReadFile,te.fileExists=L.originalFileExists,te.directoryExists=L.originalDirectoryExists,te.createDirectory=L.originalCreateDirectory,te.writeFile=L.originalWriteFile,Se.getSourceFile=L.originalGetSourceFile,c.readFileWithCache=L.originalReadFileWithCache,Ne.clear(),ze&&(ze.directoryToModuleNameMap.clear(),ze.moduleNameToDirectoryMap.clear()),c.cache=void 0}function K(c,L){c.projectStatus.delete(L),c.diagnostics.delete(L)}function m(c,L,te){var Se=c.projectPendingBuild,Ne=Se.get(L);(Ne===void 0||Ne<te)&&Se.set(L,te)}function _(c,L){if(!c.allProjectBuildPending)return;c.allProjectBuildPending=!1,c.options.watch&&$e(c,e.Diagnostics.Starting_compilation_in_watch_mode),be(c);var te=J(G(c));te.forEach(function(Se){return c.projectPendingBuild.set(X(c,Se),e.ConfigFileProgramReloadLevel.None)}),L&&L.throwIfCancellationRequested()}var I;(function(c){c[c.Build=0]="Build",c[c.UpdateBundle=1]="UpdateBundle",c[c.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"})(I=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={}));function D(c,L){return c.projectPendingBuild.delete(L),c.currentInvalidatedProject=void 0,c.diagnostics.has(L)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function y(c,L,te,Se,Ne){var ze=!0;return{kind:I.UpdateOutputFileStamps,project:L,projectPath:te,buildOrder:Ne,getCompilerOptions:function(){return Se.options},getCurrentDirectory:function(){return c.currentDirectory},updateOutputFileStatmps:function(){Z(c,Se,te),ze=!1},done:function(){return ze&&Z(c,Se,te),D(c,te)}}}function E(c,L,te,Se,Ne,ze,Tn){var wn;(function(ot){ot[ot.CreateProgram=0]="CreateProgram",ot[ot.SyntaxDiagnostics=1]="SyntaxDiagnostics",ot[ot.SemanticDiagnostics=2]="SemanticDiagnostics",ot[ot.Emit=3]="Emit",ot[ot.EmitBundle=4]="EmitBundle",ot[ot.BuildInvalidatedProjectOfBundle=5]="BuildInvalidatedProjectOfBundle",ot[ot.QueueReferencingProjects=6]="QueueReferencingProjects",ot[ot.Done=7]="Done"})(wn||(wn={}));var jn=c===I.Build?wn.CreateProgram:wn.EmitBundle,nn,pn,le;return c===I.Build?{kind:c,project:te,projectPath:Se,buildOrder:Tn,getCompilerOptions:function(){return ze.options},getCurrentDirectory:function(){return L.currentDirectory},getBuilderProgram:function(){return Cn(e.identity)},getProgram:function(){return Cn(function(ot){return ot.getProgramOrUndefined()})},getSourceFile:function(ot){return Cn(function(dt){return dt.getSourceFile(ot)})},getSourceFiles:function(){return yn(function(ot){return ot.getSourceFiles()})},getOptionsDiagnostics:function(ot){return yn(function(dt){return dt.getOptionsDiagnostics(ot)})},getGlobalDiagnostics:function(ot){return yn(function(dt){return dt.getGlobalDiagnostics(ot)})},getConfigFileParsingDiagnostics:function(){return yn(function(ot){return ot.getConfigFileParsingDiagnostics()})},getSyntacticDiagnostics:function(ot,dt){return yn(function(Ct){return Ct.getSyntacticDiagnostics(ot,dt)})},getAllDependencies:function(ot){return yn(function(dt){return dt.getAllDependencies(ot)})},getSemanticDiagnostics:function(ot,dt){return yn(function(Ct){return Ct.getSemanticDiagnostics(ot,dt)})},getSemanticDiagnosticsOfNextAffectedFile:function(ot,dt){return Cn(function(Ct){return Ct.getSemanticDiagnosticsOfNextAffectedFile&&Ct.getSemanticDiagnosticsOfNextAffectedFile(ot,dt)})},emit:function(ot,dt,Ct,st,Kn){return ot||st?Cn(function(Ie){return Ie.emit(ot,dt,Ct,st,Kn)}):(ct(wn.SemanticDiagnostics,Ct),jn!==wn.Emit?void 0:at(dt,Ct,Kn))},done:oe}:{kind:c,project:te,projectPath:Se,buildOrder:Tn,getCompilerOptions:function(){return ze.options},getCurrentDirectory:function(){return L.currentDirectory},emit:function(ot,dt){return jn!==wn.EmitBundle?le:ut(ot,dt)},done:oe};function oe(ot,dt,Ct){return ct(wn.Done,ot,dt,Ct),D(L,Se)}function Cn(ot){return ct(wn.CreateProgram),nn&&ot(nn)}function yn(ot){return Cn(ot)||e.emptyArray}function _e(){if(e.Debug.assert(nn===void 0),L.options.dry){Je(L,e.Diagnostics.A_non_dry_build_would_build_project_0,te),pn=qe.Success,jn=wn.QueueReferencingProjects;return}if(L.options.verbose&&Je(L,e.Diagnostics.Building_project_0,te),ze.fileNames.length===0){cn(L,Se,ze.errors),pn=qe.None,jn=wn.QueueReferencingProjects;return}var ot=L.host,dt=L.compilerHost;L.projectCompilerOptions=ze.options,S(L,te,ze),nn=ot.createProgram(ze.fileNames,ze.options,dt,O(L,Se,ze),ze.errors,ze.projectReferences),jn++}function dn(ot,dt,Ct){ot.length?(pn=pe(L,Se,nn,ot,dt,Ct),jn=wn.QueueReferencingProjects):jn++}function un(ot){e.Debug.assertDefined(nn),dn(Tr(nn.getConfigFileParsingDiagnostics(),nn.getOptionsDiagnostics(ot),nn.getGlobalDiagnostics(ot),nn.getSyntacticDiagnostics(void 0,ot)),qe.SyntaxErrors,"Syntactic")}function Rn(ot){dn(e.Debug.assertDefined(nn).getSemanticDiagnostics(void 0,ot),qe.TypeErrors,"Semantic")}function at(ot,dt,Ct){e.Debug.assertDefined(nn),e.Debug.assert(jn===wn.Emit),nn.backupState();var st,Kn=function(Hr){return(st||(st=[])).push(Hr)},Ie=[],Ce=e.emitFilesAndReportErrors(nn,Kn,void 0,void 0,function(Hr,mt,va){return Ie.push({name:Hr,text:mt,writeByteOrderMark:va})},dt,!1,Ct).emitResult;if(st)return nn.restoreState(),pn=pe(L,Se,nn,st,qe.DeclarationEmitErrors,"Declaration file"),jn=wn.QueueReferencingProjects,{emitSkipped:!0,diagnostics:Ce.diagnostics};var _n=L.host,yt=L.compilerHost,Dt=qe.DeclarationOutputUnchanged,Ht=o,$t=!1,wr=e.createDiagnosticCollection(),Yr=e.createMap();return Ie.forEach(function(Hr){var mt=Hr.name,va=Hr.text,Lt=Hr.writeByteOrderMark,Wn;!$t&&ee(mt)&&(_n.fileExists(mt)&&L.readFileWithCache(mt)===va?Wn=_n.getModifiedTime(mt):(Dt&=~qe.DeclarationOutputUnchanged,$t=!0)),Yr.set(h(L,mt),mt),e.writeFile(ot?{writeFile:ot}:yt,wr,mt,va,Lt),Wn!==void 0&&(Ht=he(Wn,Ht))}),Bn(wr,Yr,Ht,$t,Ie.length?Ie[0].name:e.getFirstProjectOutput(ze,!_n.useCaseSensitiveFileNames()),Dt),Ce}function Bn(ot,dt,Ct,st,Kn,Ie){var Ce=ot.getDiagnostics();if(Ce.length)return pn=pe(L,Se,nn,Ce,qe.EmitErrors,"Emit"),jn=wn.QueueReferencingProjects,Ce;L.writeFileName&&(dt.forEach(function(yt){return ne(L,ze,yt)}),nn&&e.listFiles(nn,L.writeFileName));var _n=De(L,ze,Ct,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,dt);return L.diagnostics.delete(Se),L.projectStatus.set(Se,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:st?M:_n,oldestOutputFileName:Kn}),nn&&Y(L,Se,nn),L.projectCompilerOptions=L.baseCompilerOptions,jn=wn.QueueReferencingProjects,pn=Ie,Ce}function ut(ot,dt){if(e.Debug.assert(c===I.UpdateBundle),L.options.dry){Je(L,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,te),pn=qe.Success,jn=wn.QueueReferencingProjects;return}L.options.verbose&&Je(L,e.Diagnostics.Updating_output_of_project_0,te);var Ct=L.compilerHost;L.projectCompilerOptions=ze.options;var st=e.emitUsingBuildInfo(ze,Ct,function(_n){var yt=z(L,_n.path);return Q(L,yt,X(L,yt))},dt);if(e.isString(st))return Je(L,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,te,Le(L,st)),jn=wn.BuildInvalidatedProjectOfBundle,le=E(I.Build,L,te,Se,Ne,ze,Tn);e.Debug.assert(!!st.length);var Kn=e.createDiagnosticCollection(),Ie=e.createMap();st.forEach(function(_n){var yt=_n.name,Dt=_n.text,Ht=_n.writeByteOrderMark;Ie.set(h(L,yt),yt),e.writeFile(ot?{writeFile:ot}:Ct,Kn,yt,Dt,Ht)});var Ce=Bn(Kn,Ie,o,!1,st[0].name,qe.DeclarationOutputUnchanged);return{emitSkipped:!1,diagnostics:Ce}}function ct(ot,dt,Ct,st){for(;jn<=ot&&jn<wn.Done;){var Kn=jn;switch(jn){case wn.CreateProgram:_e();break;case wn.SyntaxDiagnostics:un(dt);break;case wn.SemanticDiagnostics:Rn(dt);break;case wn.Emit:at(Ct,dt,st);break;case wn.EmitBundle:ut(Ct,st);break;case wn.BuildInvalidatedProjectOfBundle:e.Debug.assertDefined(le).done(dt),jn=wn.Done;break;case wn.QueueReferencingProjects:Re(L,te,Se,Ne,ze,Tn,e.Debug.assertDefined(pn)),jn++;break;case wn.Done:default:e.assertType(jn)}e.Debug.assert(jn>Kn)}}}function k(c,L,te){var Se=c.options;return L.type!==e.UpToDateStatusType.OutOfDateWithPrepend||Se.force?!0:te.fileNames.length===0||!!te.errors.length||!e.isIncrementalCompilation(te.options)}function T(c,L,te){if(!c.projectPendingBuild.size)return;if(f(L))return;if(c.currentInvalidatedProject)return e.arrayIsEqualTo(c.currentInvalidatedProject.buildOrder,L)?c.currentInvalidatedProject:void 0;for(var Se=c.options,Ne=c.projectPendingBuild,ze=0;ze<L.length;ze++){var Tn=L[ze],wn=X(c,Tn),jn=c.projectPendingBuild.get(wn);if(jn===void 0)continue;te&&(te=!1,ye(c,L));var nn=Q(c,Tn,wn);if(!nn){Qe(c,wn),Ne.delete(wn);continue}if(jn===e.ConfigFileProgramReloadLevel.Full)Pe(c,Tn,wn),In(c,Tn,wn,nn),et(c,Tn,wn,nn);else if(jn===e.ConfigFileProgramReloadLevel.Partial){var pn=e.getFileNamesFromConfigSpecs(nn.configFileSpecs,e.getDirectoryPath(Tn),nn.options,c.parseConfigFileHost);e.updateErrorForNoInputFiles(pn,Tn,nn.configFileSpecs,nn.errors,e.canJsonReportNoInutFiles(nn.raw)),nn.fileNames=pn.fileNames,et(c,Tn,wn,nn)}var le=ue(c,nn,wn);if(F(c,Tn,le),!Se.force){if(le.type===e.UpToDateStatusType.UpToDate){cn(c,wn,nn.errors),Ne.delete(wn),Se.dry&&Je(c,e.Diagnostics.Project_0_is_up_to_date,Tn);continue}if(le.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return cn(c,wn,nn.errors),y(c,Tn,wn,nn,L)}if(le.type===e.UpToDateStatusType.UpstreamBlocked){cn(c,wn,nn.errors),Ne.delete(wn),Se.verbose&&Je(c,le.upstreamProjectBlocked?e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,Tn,le.upstreamProjectName);continue}if(le.type===e.UpToDateStatusType.ContainerOnly){cn(c,wn,nn.errors),Ne.delete(wn);continue}return E(k(c,le,nn)?I.Build:I.UpdateBundle,c,Tn,wn,ze,nn,L)}return}function ne(c,L,te){var Se=c.writeFileName;Se&&L.options.listEmittedFiles&&Se("TSFILE: "+te)}function O(c,L,te){var Se=c.options,Ne=c.builderPrograms,ze=c.compilerHost;if(Se.force)return;var Tn=Ne.get(L);return Tn||e.readBuilderProgram(te.options,ze)}function Y(c,L,te){var Se=c.host,Ne=c.watch,ze=c.builderPrograms;Se.afterProgramEmitAndDiagnostics&&Se.afterProgramEmitAndDiagnostics(te),Ne&&(te.releaseProgram(),ze.set(L,te))}function pe(c,L,te,Se,Ne,ze){return cn(c,L,Se),te&&c.writeFileName&&e.listFiles(te,c.writeFileName),c.projectStatus.set(L,{type:e.UpToDateStatusType.Unbuildable,reason:ze+" errors"}),te&&Y(c,L,te),c.projectCompilerOptions=c.baseCompilerOptions,Ne}function S(c,L,te){if(!c.moduleResolutionCache)return;var Se=c.moduleResolutionCache,Ne=h(c,L);if(Se.directoryToModuleNameMap.redirectsMap.size===0)e.Debug.assert(Se.moduleNameToDirectoryMap.redirectsMap.size===0),Se.directoryToModuleNameMap.redirectsMap.set(Ne,Se.directoryToModuleNameMap.ownMap),Se.moduleNameToDirectoryMap.redirectsMap.set(Ne,Se.moduleNameToDirectoryMap.ownMap);else{e.Debug.assert(Se.moduleNameToDirectoryMap.redirectsMap.size>0);var ze={sourceFile:te.options.configFile,commandLine:te};Se.directoryToModuleNameMap.setOwnMap(Se.directoryToModuleNameMap.getOrCreateMapOfCacheRedirects(ze)),Se.moduleNameToDirectoryMap.setOwnMap(Se.moduleNameToDirectoryMap.getOrCreateMapOfCacheRedirects(ze))}Se.directoryToModuleNameMap.setOwnOptions(te.options),Se.moduleNameToDirectoryMap.setOwnOptions(te.options)}function v(c,L,te,Se){var Ne=c.host.getModifiedTime(L)||e.missingFileModifiedTime;if(te<Ne)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:Se,newerInputFileName:L}}function U(c,L,te){for(var Se=void 0,Ne=o,ze=c.host,Tn=0,wn=L.fileNames;Tn<wn.length;Tn++){var jn=wn[Tn];if(!ze.fileExists(jn))return{type:e.UpToDateStatusType.Unbuildable,reason:jn+" does not exist"};var nn=ze.getModifiedTime(jn)||e.missingFileModifiedTime;nn>Ne&&(Se=jn,Ne=nn)}if(!L.fileNames.length&&!e.canJsonReportNoInutFiles(L.raw))return{type:e.UpToDateStatusType.ContainerOnly};for(var pn=e.getAllProjectOutputs(L,!ze.useCaseSensitiveFileNames()),le="(none)",oe=M,Cn="(none)",yn=o,_e,dn=o,un=!1,Rn=0,at=pn;Rn<at.length;Rn++){var Bn=at[Rn];if(!ze.fileExists(Bn)){_e=Bn;break}var ut=ze.getModifiedTime(Bn)||e.missingFileModifiedTime;if(ut<oe&&(oe=ut,le=Bn),ut<Ne){un=!0;break}if(ut>yn&&(yn=ut,Cn=Bn),ee(Bn)){var ct=ze.getModifiedTime(Bn)||e.missingFileModifiedTime;dn=he(dn,ct)}}var ot=!1,dt=!1,Ct;if(L.projectReferences){c.projectStatus.set(te,{type:e.UpToDateStatusType.ComputingUpstream});for(var st=0,Kn=L.projectReferences;st<Kn.length;st++){var Ie=Kn[st];dt=dt||!!Ie.prepend;var Ce=e.resolveProjectReferencePath(Ie),_n=X(c,Ce),yt=ue(c,Q(c,Ce,_n),_n);if(yt.type===e.UpToDateStatusType.ComputingUpstream||yt.type===e.UpToDateStatusType.ContainerOnly)continue;if(yt.type===e.UpToDateStatusType.Unbuildable||yt.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:Ie.path,upstreamProjectBlocked:yt.type===e.UpToDateStatusType.UpstreamBlocked};if(yt.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:Ie.path};if(!_e){if(yt.newestInputFileTime&&yt.newestInputFileTime<=oe)continue;if(yt.newestDeclarationFileContentChangedTime&&yt.newestDeclarationFileContentChangedTime<=oe){ot=!0,Ct=Ie.path;continue}return e.Debug.assert(le!==void 0,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:le,newerProjectName:Ie.path}}}}if(_e!==void 0)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:_e};if(un)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:le,newerInputFileName:Se};var Dt=v(c,L.options.configFilePath,oe,le);if(Dt)return Dt;var Ht=e.forEach(L.options.configFile.extendedSourceFiles||e.emptyArray,function(Hr){return v(c,Hr,oe,le)});if(Ht)return Ht;if(!c.buildInfoChecked.has(te)){c.buildInfoChecked.set(te,!0);var $t=e.getTsBuildInfoEmitOutputFilePath(L.options);if($t){var wr=c.readFileWithCache($t),Yr=wr&&e.getBuildInfo(wr);if(Yr&&(Yr.bundle||Yr.program)&&Yr.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:Yr.version}}}return dt&&ot?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:le,newerProjectName:Ct}:{type:ot?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:dn,newestInputFileTime:Ne,newestOutputFileTime:yn,newestInputFileName:Se,newestOutputFileName:Cn,oldestOutputFileName:le}}function ue(c,L,te){if(L===void 0)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var Se=c.projectStatus.get(te);if(Se!==void 0)return Se;var Ne=U(c,L,te);return c.projectStatus.set(te,Ne),Ne}function De(c,L,te,Se,Ne){var ze=c.host,Tn=e.getAllProjectOutputs(L,!ze.useCaseSensitiveFileNames());if(!Ne||Tn.length!==Ne.size)for(var wn=!!c.options.verbose,jn=ze.now?ze.now():new Date,nn=0,pn=Tn;nn<pn.length;nn++){var le=pn[nn];if(Ne&&Ne.has(h(c,le)))continue;wn&&(wn=!1,Je(c,Se,L.options.configFilePath)),ee(le)&&(te=he(te,ze.getModifiedTime(le)||e.missingFileModifiedTime)),ze.setModifiedTime(le,jn),ne(c,L,le)}return te}function Z(c,L,te){if(c.options.dry)return Je(c,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,L.options.configFilePath);var Se=De(c,L,o,e.Diagnostics.Updating_output_timestamps_of_project_0);c.projectStatus.set(te,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:Se,oldestOutputFileName:e.getFirstProjectOutput(L,!c.host.useCaseSensitiveFileNames())})}function Re(c,L,te,Se,Ne,ze,Tn){if(Tn&qe.AnyErrors)return;if(!Ne.options.composite)return;for(var wn=Se+1;wn<ze.length;wn++){var jn=ze[wn],nn=X(c,jn);if(c.projectPendingBuild.has(nn))continue;var pn=Q(c,jn,nn);if(!pn||!pn.projectReferences)continue;for(var le=0,oe=pn.projectReferences;le<oe.length;le++){var Cn=oe[le],yn=z(c,Cn.path);if(X(c,yn)!==te)continue;var _e=c.projectStatus.get(nn);if(_e)switch(_e.type){case e.UpToDateStatusType.UpToDate:if(Tn&qe.DeclarationOutputUnchanged){Cn.prepend?c.projectStatus.set(nn,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:_e.oldestOutputFileName,newerProjectName:L}):_e.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:Tn&qe.DeclarationOutputUnchanged||c.projectStatus.set(nn,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:_e.type===e.UpToDateStatusType.OutOfDateWithPrepend?_e.outOfDateOutputFileName:_e.oldestOutputFileName,newerProjectName:L});break;case e.UpToDateStatusType.UpstreamBlocked:X(c,z(c,_e.upstreamProjectName))===te&&K(c,nn);break}m(c,nn,e.ConfigFileProgramReloadLevel.None);break}}}function we(c,L,te,Se){var Ne=q(c,L,Se);if(!Ne)return e.ExitStatus.InvalidProject_OutputsSkipped;_(c,te);for(var ze=!0,Tn=0;;){var wn=T(c,Ne,ze);if(!wn)break;ze=!1,wn.done(te),c.diagnostics.has(wn.projectPath)||Tn++}return R(c),ln(c,Ne),ae(c,Ne),f(Ne)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:Ne.some(function(jn){return c.diagnostics.has(X(c,jn))})?Tn?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function He(c,L,te){var Se=q(c,L,te);if(!Se)return e.ExitStatus.InvalidProject_OutputsSkipped;if(f(Se))return Fe(c,Se.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var Ne=c.options,ze=c.host,Tn=Ne.dry?[]:void 0,wn=0,jn=Se;wn<jn.length;wn++){var nn=jn[wn],pn=X(c,nn),le=Q(c,nn,pn);if(le===void 0){Qe(c,pn);continue}for(var oe=e.getAllProjectOutputs(le,!ze.useCaseSensitiveFileNames()),Cn=0,yn=oe;Cn<yn.length;Cn++){var _e=yn[Cn];ze.fileExists(_e)&&(Tn?Tn.push(_e):(ze.deleteFile(_e),ve(c,pn,e.ConfigFileProgramReloadLevel.None)))}}return Tn&&Je(c,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,Tn.map(function(dn){return`\r
|
|
|
* `+dn}).join("")),e.ExitStatus.Success}function ve(c,L,te){c.host.getParsedCommandLine&&te===e.ConfigFileProgramReloadLevel.Partial&&(te=e.ConfigFileProgramReloadLevel.Full),te===e.ConfigFileProgramReloadLevel.Full&&(c.configFileCache.delete(L),c.buildOrder=void 0),c.needsSummary=!0,K(c,L),m(c,L,te),be(c)}function je(c,L,te){c.reportFileChangeDetected=!0,ve(c,L,te),w(c)}function w(c){var L=c.hostWithWatch;if(!L.setTimeout||!L.clearTimeout)return;c.timerToBuildInvalidatedProject&&L.clearTimeout(c.timerToBuildInvalidatedProject),c.timerToBuildInvalidatedProject=L.setTimeout(j,250,c)}function j(c){c.timerToBuildInvalidatedProject=void 0,c.reportFileChangeDetected&&(c.reportFileChangeDetected=!1,c.projectErrorsReported.clear(),$e(c,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var L=G(c),te=T(c,L,!1);if(te&&(te.done(),c.projectPendingBuild.size)){c.watch&&!c.timerToBuildInvalidatedProject&&w(c);return}R(c),ln(c,L)}function Pe(c,L,te){if(!c.watch||c.allWatchedConfigFiles.has(te))return;c.allWatchedConfigFiles.set(te,c.watchFile(c.hostWithWatch,L,function(){je(c,te,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,"Config file",L))}function a(c,L,te){return e.comparePaths(L,te,c.currentDirectory,!c.host.useCaseSensitiveFileNames())===0}function Ze(c,L,te){if(te.options.noEmit)return!1;if(!e.fileExtensionIs(L,".d.ts")&&(e.fileExtensionIs(L,".ts")||e.fileExtensionIs(L,".tsx")))return!1;var Se=te.options.outFile||te.options.out;return Se&&(a(c,L,Se)||a(c,L,e.removeFileExtension(Se)+".d.ts"))||(te.options.declarationDir&&e.containsPath(te.options.declarationDir,L,c.currentDirectory,!c.host.useCaseSensitiveFileNames())||te.options.outDir&&e.containsPath(te.options.outDir,L,c.currentDirectory,!c.host.useCaseSensitiveFileNames()))?!0:!e.forEach(te.fileNames,function(Ne){return a(c,L,Ne)})}function In(c,L,te,Se){if(!c.watch)return;e.updateWatchingWildcardDirectories(Be(c.allWatchedWildcardDirectories,te),e.createMapFromTemplate(Se.configFileSpecs.wildcardDirectories),function(Ne,ze){return c.watchDirectory(c.hostWithWatch,Ne,function(Tn){var wn=h(c,Tn);if(wn!==h(c,Ne)&&e.hasExtension(wn)&&!e.isSupportedSourceFileName(Tn,Se.options)){c.writeLog("Project: "+L+" Detected file add/remove of non supported extension: "+Tn);return}if(Ze(c,Tn,Se)){c.writeLog(Tn+" is output file");return}je(c,te,e.ConfigFileProgramReloadLevel.Partial)},ze,"Wild card directory",L)})}function et(c,L,te,Se){if(!c.watch)return;e.mutateMap(Be(c.allWatchedInputFiles,te),e.arrayToMap(Se.fileNames,function(Ne){return h(c,Ne)}),{createNewValue:function(Ne,ze){return c.watchFilePath(c.hostWithWatch,ze,function(){return je(c,te,e.ConfigFileProgramReloadLevel.None)},e.PollingInterval.Low,Ne,"Source file",L)},onDeleteValue:e.closeFileWatcher})}function ae(c,L){if(!c.watchAllProjectsPending)return;c.watchAllProjectsPending=!1;for(var te=0,Se=J(L);te<Se.length;te++){var Ne=Se[te],ze=X(c,Ne);Pe(c,Ne,ze);var Tn=Q(c,Ne,ze);Tn&&(In(c,Ne,ze,Tn),et(c,Ne,ze,Tn))}}function fe(c,L,te,Se){var Ne=P(c,L,te,Se);return{build:function(ze,Tn){return we(Ne,ze,Tn)},clean:function(ze){return He(Ne,ze)},buildReferences:function(ze,Tn){return we(Ne,ze,Tn,!0)},cleanReferences:function(ze){return He(Ne,ze,!0)},getNextInvalidatedProject:function(ze){return _(Ne,ze),T(Ne,G(Ne),!1)},getBuildOrder:function(){return G(Ne)},getUpToDateStatusOfProject:function(ze){var Tn=z(Ne,ze),wn=X(Ne,Tn);return ue(Ne,Q(Ne,Tn,wn),wn)},invalidateProject:function(ze,Tn){return ve(Ne,ze,Tn||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return j(Ne)},getAllParsedConfigs:function(){return e.arrayFrom(e.mapDefinedIterator(Ne.configFileCache.values(),function(ze){return $(ze)?ze:void 0}))}}}function Le(c,L){return e.convertToRelativePath(L,c.currentDirectory,function(te){return c.getCanonicalFileName(te)})}function Je(c,L){for(var te=[],Se=2;Se<arguments.length;Se++)te[Se-2]=arguments[Se];c.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,Tr([L],te)))}function $e(c,L){for(var te=[],Se=2;Se<arguments.length;Se++)te[Se-2]=arguments[Se];c.hostWithWatch.onWatchStatusChange&&c.hostWithWatch.onWatchStatusChange(e.createCompilerDiagnostic.apply(void 0,Tr([L],te)),c.host.getNewLine(),c.baseCompilerOptions)}function Fe(c,L){var te=c.host;L.forEach(function(Se){return te.reportDiagnostic(Se)})}function cn(c,L,te){Fe(c,te),c.projectErrorsReported.set(L,!0),te.length&&c.diagnostics.set(L,te)}function Qe(c,L){cn(c,L,[c.configFileCache.get(L)])}function ln(c,L){if(!c.needsSummary)return;c.needsSummary=!1;var te=c.watch||!!c.host.reportErrorSummary,Se=c.diagnostics,Ne=0;f(L)?(ye(c,L.buildOrder),Fe(c,L.circularDiagnostics),te&&(Ne+=e.getErrorCountForSummary(L.circularDiagnostics))):(L.forEach(function(ze){var Tn=X(c,ze);c.projectErrorsReported.has(Tn)||Fe(c,Se.get(Tn)||e.emptyArray)}),te&&Se.forEach(function(ze){return Ne+=e.getErrorCountForSummary(ze)})),c.watch?$e(c,e.getWatchErrorSummaryDiagnosticMessage(Ne),Ne):c.host.reportErrorSummary&&c.host.reportErrorSummary(Ne)}function ye(c,L){c.options.verbose&&Je(c,e.Diagnostics.Projects_in_this_build_Colon_0,L.map(function(te){return`\r
|
|
|
* `+Le(c,te)}).join(""))}function ke(c,L,te){switch(te.type){case e.UpToDateStatusType.OutOfDateWithSelf:return Je(c,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Le(c,L),Le(c,te.outOfDateOutputFileName),Le(c,te.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return Je(c,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Le(c,L),Le(c,te.outOfDateOutputFileName),Le(c,te.newerProjectName));case e.UpToDateStatusType.OutputMissing:return Je(c,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Le(c,L),Le(c,te.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if(te.newestInputFileTime!==void 0)return Je(c,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,Le(c,L),Le(c,te.newestInputFileName||""),Le(c,te.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return Je(c,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Le(c,L),Le(c,te.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return Je(c,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Le(c,L));case e.UpToDateStatusType.UpstreamOutOfDate:return Je(c,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Le(c,L),Le(c,te.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return Je(c,te.upstreamProjectBlocked?e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Le(c,L),Le(c,te.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return Je(c,e.Diagnostics.Failed_to_parse_file_0_Colon_1,Le(c,L),te.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return Je(c,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Le(c,L),te.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(te)}}function F(c,L,te){c.options.verbose&&ke(c,L,te)}}(sn||(sn={}));var sn;(function(e){var o;(function(M){M.ActionSet="action::set",M.ActionInvalidate="action::invalidate",M.ActionPackageInstalled="action::packageInstalled",M.EventTypesRegistry="event::typesRegistry",M.EventBeginInstallTypes="event::beginInstallTypes",M.EventEndInstallTypes="event::endInstallTypes",M.EventInitializationFailed="event::initializationFailed";var qe;(function(he){he.GlobalCacheLocation="--globalTypingsCacheLocation",he.LogFile="--logFile",he.EnableTelemetry="--enableTelemetry",he.TypingSafeListLocation="--typingSafeListLocation",he.TypesMapLocation="--typesMapLocation",he.NpmLocation="--npmLocation",he.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(qe=M.Arguments||(M.Arguments={}));function Ee(he){return e.sys.args.indexOf(he)>=0}M.hasArgument=Ee;function Ge(he){var ee=e.sys.args.indexOf(he);return ee>=0&&ee<e.sys.args.length-1?e.sys.args[ee+1]:void 0}M.findArgument=Ge;function Be(){var he=new Date;return he.getHours()+":"+he.getMinutes()+":"+he.getSeconds()+"."+he.getMilliseconds()}M.nowString=Be})(o=e.server||(e.server={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){function qe(ie,ce){var x=new e.Version(e.getProperty(ce,"ts"+e.versionMajorMinor)||e.getProperty(ce,"latest"));return x.compareTo(ie.version)<=0}M.isTypingUpToDate=qe,M.nodeCoreModuleList=["assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","http2","inspector","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"],M.nodeCoreModules=e.arrayToSet(M.nodeCoreModuleList);function Ee(ie){return M.nodeCoreModules.has(ie)?"node":ie}M.nonRelativeModuleNameForTypingCache=Ee;function Ge(ie,ce){var x=e.readConfigFile(ce,function(C){return ie.readFile(C)});return e.createMapFromTemplate(x.config)}M.loadSafeList=Ge;function Be(ie,ce){var x=e.readConfigFile(ce,function(C){return ie.readFile(C)});return x.config?e.createMapFromTemplate(x.config.simpleMap):void 0}M.loadTypesMap=Be;function he(ie,ce,x,C,P,h,X,$,Q){if(!X||!X.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var z=e.createMap();x=e.mapDefined(x,function(O){var Y=e.normalizePath(O);if(e.hasJSFileExtension(Y))return Y});var se=[];X.include&&E(X.include,"Explicitly included types");var G=X.exclude||[],H=e.arrayToSet(x,e.getDirectoryPath);if(H.set(C,!0),H.forEach(function(O,Y){var pe=e.combinePaths(Y,"package.json");k(pe,se);var S=e.combinePaths(Y,"bower.json");k(S,se);var v=e.combinePaths(Y,"bower_components");ne(v,se);var U=e.combinePaths(Y,"node_modules");ne(U,se)}),T(x),$){var q=e.deduplicate($.map(Ee),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive);E(q,"Inferred typings from unresolved imports")}h.forEach(function(O,Y){var pe=Q.get(Y);z.has(Y)&&z.get(Y)===void 0&&pe!==void 0&&qe(O,pe)&&z.set(Y,O.typingLocation)});for(var be=0,R=G;be<R.length;be++){var K=R[be],m=z.delete(K);m&&ce&&ce("Typing for "+K+" is in exclude list, will be ignored.")}var _=[],I=[];z.forEach(function(O,Y){O!==void 0?I.push(O):_.push(Y)});var D={cachedTypingPaths:I,newTypingNames:_,filesToWatch:se};return ce&&ce("Result: "+JSON.stringify(D)),D;function y(O){z.has(O)||z.set(O,void 0)}function E(O,Y){ce&&ce(Y+": "+JSON.stringify(O)),e.forEach(O,y)}function k(O,Y){if(!ie.fileExists(O))return;Y.push(O);var pe=e.readConfigFile(O,function(v){return ie.readFile(v)}).config,S=e.flatMap([pe.dependencies,pe.devDependencies,pe.optionalDependencies,pe.peerDependencies],e.getOwnKeys);E(S,"Typing names in '"+O+"' dependencies")}function T(O){var Y=e.mapDefined(O,function(S){if(!e.hasJSFileExtension(S))return;var v=e.removeFileExtension(e.getBaseFileName(S.toLowerCase())),U=e.removeMinAndVersionNumbers(v);return P.get(U)});Y.length&&E(Y,"Inferred typings from file names");var pe=e.some(O,function(S){return e.fileExtensionIs(S,".jsx")});pe&&(ce&&ce("Inferred 'react' typings due to presence of '.jsx' extension"),y("react"))}function ne(O,Y){if(Y.push(O),!ie.directoryExists(O))return;var pe=ie.readDirectory(O,[".json"],void 0,void 0,2);ce&&ce("Searching for typing names in "+O+"; all files: "+JSON.stringify(pe));for(var S=[],v=0,U=pe;v<U.length;v++){var ue=U[v],De=e.normalizePath(ue),Z=e.getBaseFileName(De);if(Z!=="package.json"&&Z!=="bower.json")continue;var Re=e.readConfigFile(De,function(je){return ie.readFile(je)}),we=Re.config;if(Z==="package.json"&&we._requiredBy&&e.filter(we._requiredBy,function(je){return je[0]==="#"||je==="/"}).length===0)continue;if(!we.name)continue;var He=we.types||we.typings;if(He){var ve=e.getNormalizedAbsolutePath(He,e.getDirectoryPath(De));ce&&ce(" Package '"+we.name+"' provides its own types."),z.set(we.name,ve)}else S.push(we.name)}E(S," Found package names")}}M.discoverTypings=he;var ee;(function(ie){ie[ie.Ok=0]="Ok",ie[ie.EmptyName=1]="EmptyName",ie[ie.NameTooLong=2]="NameTooLong",ie[ie.NameStartsWithDot=3]="NameStartsWithDot",ie[ie.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",ie[ie.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters"})(ee=M.NameValidationResult||(M.NameValidationResult={}));var f=214;function J(ie){return Oe(ie,!0)}M.validatePackageName=J;function Oe(ie,ce){if(!ie)return 1;if(ie.length>f)return 2;if(ie.charCodeAt(0)===46)return 3;if(ie.charCodeAt(0)===95)return 4;if(ce){var x=/^@([^/]+)\/([^/]+)$/.exec(ie);if(x){var C=Oe(x[1],!1);if(C!==0)return{name:x[1],isScopeName:!0,result:C};var P=Oe(x[2],!1);return P!==0?{name:x[2],isScopeName:!1,result:P}:0}}return encodeURIComponent(ie)!==ie?5:0}function N(ie,ce){return typeof ie=="object"?Te(ce,ie.result,ie.name,ie.isScopeName):Te(ce,ie,ce,!1)}M.renderPackageNameValidationFailure=N;function Te(ie,ce,x,C){var P=C?"Scope":"Package";switch(ce){case 1:return"'"+ie+"':: "+P+" name '"+x+"' cannot be empty";case 2:return"'"+ie+"':: "+P+" name '"+x+"' should be less than "+f+" characters";case 3:return"'"+ie+"':: "+P+" name '"+x+"' cannot start with '.'";case 4:return"'"+ie+"':: "+P+" name '"+x+"' cannot start with '_'";case 5:return"'"+ie+"':: "+P+" name '"+x+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(ce)}}})(o=e.JsTyping||(e.JsTyping={}))})(sn||(sn={}));var sn;(function(e){var o;(function(x){var C=function(){function h(X){this.text=X}return h.prototype.getText=function(X,$){return X===0&&$===this.text.length?this.text:this.text.substring(X,$)},h.prototype.getLength=function(){return this.text.length},h.prototype.getChangeRange=function(){return},h}();function P(h){return new C(h)}x.fromString=P})(o=e.ScriptSnapshot||(e.ScriptSnapshot={}));var M;(function(x){x[x.Dependencies=1]="Dependencies",x[x.DevDependencies=2]="DevDependencies",x[x.PeerDependencies=4]="PeerDependencies",x[x.OptionalDependencies=8]="OptionalDependencies",x[x.All=15]="All"})(M=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={})),e.emptyOptions={};var qe;(function(x){x.none="none",x.definition="definition",x.reference="reference",x.writtenReference="writtenReference"})(qe=e.HighlightSpanKind||(e.HighlightSpanKind={}));var Ee;(function(x){x[x.None=0]="None",x[x.Block=1]="Block",x[x.Smart=2]="Smart"})(Ee=e.IndentStyle||(e.IndentStyle={}));var Ge;(function(x){x.Ignore="ignore",x.Insert="insert",x.Remove="remove"})(Ge=e.SemicolonPreference||(e.SemicolonPreference={}));function Be(x){return{indentSize:4,tabSize:4,newLineCharacter:x||`
|
|
|
`,convertTabsToSpaces:!0,indentStyle:Ee.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:Ge.Ignore}}e.getDefaultFormatCodeSettings=Be,e.testFormatSettings=Be(`
|
|
|
`);var he;(function(x){x[x.aliasName=0]="aliasName",x[x.className=1]="className",x[x.enumName=2]="enumName",x[x.fieldName=3]="fieldName",x[x.interfaceName=4]="interfaceName",x[x.keyword=5]="keyword",x[x.lineBreak=6]="lineBreak",x[x.numericLiteral=7]="numericLiteral",x[x.stringLiteral=8]="stringLiteral",x[x.localName=9]="localName",x[x.methodName=10]="methodName",x[x.moduleName=11]="moduleName",x[x.operator=12]="operator",x[x.parameterName=13]="parameterName",x[x.propertyName=14]="propertyName",x[x.punctuation=15]="punctuation",x[x.space=16]="space",x[x.text=17]="text",x[x.typeParameterName=18]="typeParameterName",x[x.enumMemberName=19]="enumMemberName",x[x.functionName=20]="functionName",x[x.regularExpressionLiteral=21]="regularExpressionLiteral"})(he=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}));var ee;(function(x){x.Comment="comment",x.Region="region",x.Code="code",x.Imports="imports"})(ee=e.OutliningSpanKind||(e.OutliningSpanKind={}));var f;(function(x){x[x.JavaScript=0]="JavaScript",x[x.SourceMap=1]="SourceMap",x[x.Declaration=2]="Declaration"})(f=e.OutputFileType||(e.OutputFileType={}));var J;(function(x){x[x.None=0]="None",x[x.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",x[x.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",x[x.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",x[x.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",x[x.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",x[x.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"})(J=e.EndOfLineState||(e.EndOfLineState={}));var Oe;(function(x){x[x.Punctuation=0]="Punctuation",x[x.Keyword=1]="Keyword",x[x.Operator=2]="Operator",x[x.Comment=3]="Comment",x[x.Whitespace=4]="Whitespace",x[x.Identifier=5]="Identifier",x[x.NumberLiteral=6]="NumberLiteral",x[x.BigIntLiteral=7]="BigIntLiteral",x[x.StringLiteral=8]="StringLiteral",x[x.RegExpLiteral=9]="RegExpLiteral"})(Oe=e.TokenClass||(e.TokenClass={}));var N;(function(x){x.unknown="",x.warning="warning",x.keyword="keyword",x.scriptElement="script",x.moduleElement="module",x.classElement="class",x.localClassElement="local class",x.interfaceElement="interface",x.typeElement="type",x.enumElement="enum",x.enumMemberElement="enum member",x.variableElement="var",x.localVariableElement="local var",x.functionElement="function",x.localFunctionElement="local function",x.memberFunctionElement="method",x.memberGetAccessorElement="getter",x.memberSetAccessorElement="setter",x.memberVariableElement="property",x.constructorImplementationElement="constructor",x.callSignatureElement="call",x.indexSignatureElement="index",x.constructSignatureElement="construct",x.parameterElement="parameter",x.typeParameterElement="type parameter",x.primitiveType="primitive type",x.label="label",x.alias="alias",x.constElement="const",x.letElement="let",x.directory="directory",x.externalModuleName="external module name",x.jsxAttribute="JSX attribute",x.string="string"})(N=e.ScriptElementKind||(e.ScriptElementKind={}));var Te;(function(x){x.none="",x.publicMemberModifier="public",x.privateMemberModifier="private",x.protectedMemberModifier="protected",x.exportedModifier="export",x.ambientModifier="declare",x.staticModifier="static",x.abstractModifier="abstract",x.optionalModifier="optional",x.dtsModifier=".d.ts",x.tsModifier=".ts",x.tsxModifier=".tsx",x.jsModifier=".js",x.jsxModifier=".jsx",x.jsonModifier=".json"})(Te=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={}));var ie;(function(x){x.comment="comment",x.identifier="identifier",x.keyword="keyword",x.numericLiteral="number",x.bigintLiteral="bigint",x.operator="operator",x.stringLiteral="string",x.whiteSpace="whitespace",x.text="text",x.punctuation="punctuation",x.className="class name",x.enumName="enum name",x.interfaceName="interface name",x.moduleName="module name",x.typeParameterName="type parameter name",x.typeAliasName="type alias name",x.parameterName="parameter name",x.docCommentTagName="doc comment tag name",x.jsxOpenTagName="jsx open tag name",x.jsxCloseTagName="jsx close tag name",x.jsxSelfClosingTagName="jsx self closing tag name",x.jsxAttribute="jsx attribute",x.jsxText="jsx text",x.jsxAttributeStringLiteralValue="jsx attribute string literal value"})(ie=e.ClassificationTypeNames||(e.ClassificationTypeNames={}));var ce;(function(x){x[x.comment=1]="comment",x[x.identifier=2]="identifier",x[x.keyword=3]="keyword",x[x.numericLiteral=4]="numericLiteral",x[x.operator=5]="operator",x[x.stringLiteral=6]="stringLiteral",x[x.regularExpressionLiteral=7]="regularExpressionLiteral",x[x.whiteSpace=8]="whiteSpace",x[x.text=9]="text",x[x.punctuation=10]="punctuation",x[x.className=11]="className",x[x.enumName=12]="enumName",x[x.interfaceName=13]="interfaceName",x[x.moduleName=14]="moduleName",x[x.typeParameterName=15]="typeParameterName",x[x.typeAliasName=16]="typeAliasName",x[x.parameterName=17]="parameterName",x[x.docCommentTagName=18]="docCommentTagName",x[x.jsxOpenTagName=19]="jsxOpenTagName",x[x.jsxCloseTagName=20]="jsxCloseTagName",x[x.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",x[x.jsxAttribute=22]="jsxAttribute",x[x.jsxText=23]="jsxText",x[x.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",x[x.bigintLiteral=25]="bigintLiteral"})(ce=e.ClassificationType||(e.ClassificationType={}))})(sn||(sn={}));var sn;(function(e){e.scanner=e.createScanner(99,!0);var o;(function(Ke){Ke[Ke.None=0]="None",Ke[Ke.Value=1]="Value",Ke[Ke.Type=2]="Type",Ke[Ke.Namespace=4]="Namespace",Ke[Ke.All=7]="All"})(o=e.SemanticMeaning||(e.SemanticMeaning={}));function M(Ke){switch(Ke.kind){case 241:return e.isInJSFile(Ke)&&e.getJSDocEnumTag(Ke)?7:1;case 155:case 190:case 158:case 157:case 279:case 280:case 160:case 159:case 161:case 162:case 163:case 243:case 200:case 201:case 278:case 271:return 1;case 154:case 245:case 246:case 172:return 2;case 315:return Ke.name===void 0?1|2:2;case 282:case 244:return 1|2;case 248:return e.isAmbientModule(Ke)||e.getModuleInstanceState(Ke)===1?4|1:4;case 247:case 256:case 257:case 252:case 253:case 258:case 259:return 7;case 288:return 4|1}return 7}e.getMeaningFromDeclaration=M;function qe(Ke){return Ke.kind===288?1:Ke.parent.kind===258||Ke.parent.kind===263?7:Ge(Ke)?Ee(Ke):e.isDeclarationName(Ke)?M(Ke.parent):f(Ke)?2:Be(Ke)?4:e.isTypeParameterDeclaration(Ke.parent)?(e.Debug.assert(e.isJSDocTemplateTag(Ke.parent.parent)),2):e.isLiteralTypeNode(Ke.parent)?2|1:1}e.getMeaningFromLocation=qe;function Ee(Ke){var Pn=Ke.kind===152?Ke:e.isQualifiedName(Ke.parent)&&Ke.parent.right===Ke?Ke.parent:void 0;return Pn&&Pn.parent.kind===252?7:4}function Ge(Ke){for(;Ke.parent.kind===152;)Ke=Ke.parent;return e.isInternalModuleImportEqualsDeclaration(Ke.parent)&&Ke.parent.moduleReference===Ke}e.isInRightSideOfInternalImportEqualsDeclaration=Ge;function Be(Ke){return he(Ke)||ee(Ke)}function he(Ke){var Pn=Ke,$n=!0;if(Pn.parent.kind===152){for(;Pn.parent&&Pn.parent.kind===152;)Pn=Pn.parent;$n=Pn.right===Ke}return Pn.parent.kind===168&&!$n}function ee(Ke){var Pn=Ke,$n=!0;if(Pn.parent.kind===193){for(;Pn.parent&&Pn.parent.kind===193;)Pn=Pn.parent;$n=Pn.name===Ke}if(!$n&&Pn.parent.kind===215&&Pn.parent.parent.kind===277){var rr=Pn.parent.parent.parent;return rr.kind===244&&Pn.parent.parent.token===112||rr.kind===245&&Pn.parent.parent.token===89}return!1}function f(Ke){e.isRightSideOfQualifiedNameOrPropertyAccess(Ke)&&(Ke=Ke.parent);switch(Ke.kind){case 103:return!e.isExpressionNode(Ke);case 182:return!0}switch(Ke.parent.kind){case 168:return!0;case 187:return!Ke.parent.isTypeOf;case 215:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(Ke.parent)}return!1}function J(Ke){return Te(Ke,e.isCallExpression)}e.isCallExpressionTarget=J;function Oe(Ke){return Te(Ke,e.isNewExpression)}e.isNewExpressionTarget=Oe;function N(Ke){return Te(Ke,e.isCallOrNewExpression)}e.isCallOrNewExpressionTarget=N;function Te(Ke,Pn){var $n=ie(Ke);return!!$n&&!!$n.parent&&Pn($n.parent)&&$n.parent.expression===$n}function ie(Ke){return Q(Ke)?Ke.parent:Ke}e.climbPastPropertyAccess=ie;function ce(Ke,Pn){for(;Ke;){if(Ke.kind===237&&Ke.label.escapedText===Pn)return Ke.label;Ke=Ke.parent}return}e.getTargetLabel=ce;function x(Ke,Pn){return e.isPropertyAccessExpression(Ke.expression)?Ke.expression.name.text===Pn:!1}e.hasPropertyAccessExpressionWithName=x;function C(Ke){return Ke.kind===75&&e.isBreakOrContinueStatement(Ke.parent)&&Ke.parent.label===Ke}e.isJumpStatementTarget=C;function P(Ke){return Ke.kind===75&&e.isLabeledStatement(Ke.parent)&&Ke.parent.label===Ke}e.isLabelOfLabeledStatement=P;function h(Ke){return P(Ke)||C(Ke)}e.isLabelName=h;function X(Ke){return e.isJSDocTag(Ke.parent)&&Ke.parent.tagName===Ke}e.isTagName=X;function $(Ke){return Ke.parent.kind===152&&Ke.parent.right===Ke}e.isRightSideOfQualifiedName=$;function Q(Ke){return Ke&&Ke.parent&&Ke.parent.kind===193&&Ke.parent.name===Ke}e.isRightSideOfPropertyAccess=Q;function z(Ke){return Ke.parent.kind===248&&Ke.parent.name===Ke}e.isNameOfModuleDeclaration=z;function se(Ke){return Ke.kind===75&&e.isFunctionLike(Ke.parent)&&Ke.parent.name===Ke}e.isNameOfFunctionDeclaration=se;function G(Ke){switch(Ke.parent.kind){case 158:case 157:case 279:case 282:case 160:case 159:case 162:case 163:case 248:return e.getNameOfDeclaration(Ke.parent)===Ke;case 194:return Ke.parent.argumentExpression===Ke;case 153:return!0;case 186:return Ke.parent.parent.kind===184;default:return!1}}e.isLiteralNameOfPropertyDeclarationOrIndexAccess=G;function H(Ke){return e.isExternalModuleImportEqualsDeclaration(Ke.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(Ke.parent.parent)===Ke}e.isExpressionOfExternalModuleImportEqualsDeclaration=H;function q(Ke){for(e.isJSDocTypeAlias(Ke)&&(Ke=Ke.parent.parent);;){if(Ke=Ke.parent,!Ke)return;switch(Ke.kind){case 288:case 160:case 159:case 243:case 200:case 162:case 163:case 244:case 245:case 247:case 248:return Ke}}}e.getContainerNode=q;function be(Ke){switch(Ke.kind){case 288:return e.isExternalModule(Ke)?"module":"script";case 248:return"module";case 244:case 213:return"class";case 245:return"interface";case 246:case 308:case 315:return"type";case 247:return"enum";case 241:return Fa(Ke);case 190:return Fa(e.getRootDeclaration(Ke));case 201:case 243:case 200:return"function";case 162:return"getter";case 163:return"setter";case 160:case 159:return"method";case 279:var Pn=Ke.initializer;return e.isFunctionLike(Pn)?"method":"property";case 158:case 157:case 280:case 281:return"property";case 166:return"index";case 165:return"construct";case 164:return"call";case 161:return"constructor";case 154:return"type parameter";case 282:return"enum member";case 155:return e.hasModifier(Ke,92)?"property":"parameter";case 252:case 257:case 261:case 255:return"alias";case 208:var $n=e.getAssignmentDeclarationKind(Ke),rr=Ke.right;switch($n){case 7:case 8:case 9:case 0:return"";case 1:case 2:var xa=be(rr);return xa===""?"const":xa;case 3:return e.isFunctionExpression(rr)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(rr)?"method":"property";case 6:return"local class";default:return e.assertType($n),""}case 75:return e.isImportClause(Ke.parent)?"alias":"";default:return""}function Fa(ri){return e.isVarConst(ri)?"const":e.isLet(ri)?"let":"var"}}e.getNodeKind=be;function R(Ke){switch(Ke.kind){case 103:return!0;case 75:return e.identifierIsThisKeyword(Ke)&&Ke.parent.kind===155;default:return!1}}e.isThis=R;var K=/^\/\/\/\s*</;function m(Ke,Pn){var $n=e.getLineStarts(Pn),rr=Pn.getLineAndCharacterOfPosition(Ke).line;return $n[rr]}e.getLineStartPositionForPosition=m;function _(Ke,Pn){return E(Ke.pos,Ke.end,Pn)}e.rangeContainsRange=_;function I(Ke,Pn){return y(Ke,Pn.pos)&&y(Ke,Pn.end)}e.rangeContainsRangeExclusive=I;function D(Ke,Pn){return Ke.pos<=Pn&&Pn<=Ke.end}e.rangeContainsPosition=D;function y(Ke,Pn){return Ke.pos<Pn&&Pn<Ke.end}e.rangeContainsPositionExclusive=y;function E(Ke,Pn,$n){return Ke<=$n.pos&&Pn>=$n.end}e.startEndContainsRange=E;function k(Ke,Pn,$n){return Ke.pos<=Pn&&Ke.end>=$n}e.rangeContainsStartEnd=k;function T(Ke,Pn,$n){return O(Ke.pos,Ke.end,Pn,$n)}e.rangeOverlapsWithStartEnd=T;function ne(Ke,Pn,$n,rr){return O(Ke.getStart(Pn),Ke.end,$n,rr)}e.nodeOverlapsWithStartEnd=ne;function O(Ke,Pn,$n,rr){var xa=Math.max(Ke,$n),Fa=Math.min(Pn,rr);return xa<Fa}e.startEndOverlapsWithStartEnd=O;function Y(Ke,Pn,$n){return e.Debug.assert(Ke.pos<=Pn),Pn<Ke.end||!pe(Ke,$n)}e.positionBelongsToNode=Y;function pe(Ke,Pn){if(Ke===void 0||e.nodeIsMissing(Ke))return!1;switch(Ke.kind){case 244:case 245:case 247:case 192:case 188:case 172:case 222:case 249:case 250:case 256:case 260:return S(Ke,19,Pn);case 278:return pe(Ke.block,Pn);case 196:if(!Ke.arguments)return!0;case 195:case 199:case 181:return S(Ke,21,Pn);case 169:case 170:return pe(Ke.type,Pn);case 161:case 162:case 163:case 243:case 200:case 160:case 159:case 165:case 164:case 201:return Ke.body?pe(Ke.body,Pn):Ke.type?pe(Ke.type,Pn):U(Ke,21,Pn);case 248:return!!Ke.body&&pe(Ke.body,Pn);case 226:return Ke.elseStatement?pe(Ke.elseStatement,Pn):pe(Ke.thenStatement,Pn);case 225:return pe(Ke.expression,Pn)||U(Ke,26,Pn);case 191:case 189:case 194:case 153:case 174:return S(Ke,23,Pn);case 166:return Ke.type?pe(Ke.type,Pn):U(Ke,23,Pn);case 275:case 276:return!1;case 229:case 230:case 231:case 228:return pe(Ke.statement,Pn);case 227:return U(Ke,110,Pn)?S(Ke,21,Pn):pe(Ke.statement,Pn);case 171:return pe(Ke.exprName,Pn);case 203:case 202:case 204:case 211:case 212:var $n=Ke;return pe($n.expression,Pn);case 197:return pe(Ke.template,Pn);case 210:var rr=e.lastOrUndefined(Ke.templateSpans);return pe(rr,Pn);case 220:return e.nodeIsPresent(Ke.literal);case 259:case 253:return e.nodeIsPresent(Ke.moduleSpecifier);case 206:return pe(Ke.operand,Pn);case 208:return pe(Ke.right,Pn);case 209:return pe(Ke.whenFalse,Pn);default:return!0}}function S(Ke,Pn,$n){var rr=Ke.getChildren($n);if(rr.length){var xa=e.last(rr);if(xa.kind===Pn)return!0;if(xa.kind===26&&rr.length!==1)return rr[rr.length-2].kind===Pn}return!1}function v(Ke){var Pn=De(Ke);if(!Pn)return;var $n=Pn.getChildren(),rr=e.indexOfNode($n,Ke);return{listItemIndex:rr,list:Pn}}e.findListItemInfo=v;function U(Ke,Pn,$n){return!!ue(Ke,Pn,$n)}e.hasChildOfKind=U;function ue(Ke,Pn,$n){return e.find(Ke.getChildren($n),function(rr){return rr.kind===Pn})}e.findChildOfKind=ue;function De(Ke){var Pn=e.find(Ke.parent.getChildren(),function($n){return e.isSyntaxList($n)&&_($n,Ke)});return e.Debug.assert(!Pn||e.contains(Pn.getChildren(),Ke)),Pn}e.findContainingList=De;function Z(Ke,Pn){return Re(Ke,Pn,function($n){return e.isPropertyNameLiteral($n)||e.isKeyword($n.kind)})}e.getTouchingPropertyName=Z;function Re(Ke,Pn,$n){return He(Ke,Pn,!1,$n,!1)}e.getTouchingToken=Re;function we(Ke,Pn){return He(Ke,Pn,!0,void 0,!1)}e.getTokenAtPosition=we;function He(Ke,Pn,$n,rr,xa){var Fa=Ke;e:for(;;){for(var ri=0,Si=Fa.getChildren(Ke);ri<Si.length;ri++){var xi=Si[ri],vi=$n?xi.getFullStart():xi.getStart(Ke,!0);if(vi>Pn)break;var Oi=xi.getEnd();if(Pn<Oi||Pn===Oi&&(xi.kind===1||xa)){Fa=xi;continue e}else if(rr&&Oi===Pn){var Ja=w(Pn,Ke,xi);if(Ja&&rr(Ja))return Ja}}return Fa}}function ve(Ke,Pn){var $n=we(Ke,Pn);return e.isToken($n)&&Pn>$n.getStart(Ke)&&Pn<$n.getEnd()?$n:w(Pn,Ke)}e.findTokenOnLeftOfPosition=ve;function je(Ke,Pn,$n){return rr(Pn);function rr(xa){return e.isToken(xa)&&xa.pos===Ke.end?xa:e.firstDefined(xa.getChildren($n),function(Fa){var ri=Fa.pos<=Ke.pos&&Fa.end>Ke.end||Fa.pos===Ke.end;return ri&&ye(Fa,$n)?rr(Fa):void 0})}}e.findNextToken=je;function w(Ke,Pn,$n,rr){var xa=Fa($n||Pn);return e.Debug.assert(!(xa&&et(xa))),xa;function Fa(ri){if(j(ri)&&ri.kind!==1)return ri;for(var Si=ri.getChildren(Pn),xi=0;xi<Si.length;xi++){var vi=Si[xi];if(Ke<vi.end){var Oi=vi.getStart(Pn,!rr),Ja=Oi>=Ke||!ye(vi,Pn)||et(vi);if(Ja){var Ka=a(Si,xi,Pn);return Ka&&Pe(Ka,Pn)}else return Fa(vi)}}e.Debug.assert($n!==void 0||ri.kind===288||ri.kind===1||e.isJSDocCommentContainingNode(ri));var ua=a(Si,Si.length,Pn);return ua&&Pe(ua,Pn)}}e.findPrecedingToken=w;function j(Ke){return e.isToken(Ke)&&!et(Ke)}function Pe(Ke,Pn){if(j(Ke))return Ke;var $n=Ke.getChildren(Pn),rr=a($n,$n.length,Pn);return rr&&Pe(rr,Pn)}function a(Ke,Pn,$n){for(var rr=Pn-1;rr>=0;rr--){var xa=Ke[rr];if(et(xa))e.Debug.assert(rr>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(ye(Ke[rr],$n))return Ke[rr]}}function Ze(Ke,Pn,$n){if($n===void 0&&($n=w(Pn,Ke)),$n&&e.isStringTextContainingNode($n)){var rr=$n.getStart(Ke),xa=$n.getEnd();if(rr<Pn&&Pn<xa)return!0;if(Pn===xa)return!!$n.isUnterminated}return!1}e.isInString=Ze;function In(Ke,Pn){var $n=we(Ke,Pn);return $n?$n.kind===11||($n.kind===29&&$n.parent.kind===11||($n.kind===29&&$n.parent.kind===274||$n&&$n.kind===19&&$n.parent.kind===274))?!0:$n.kind===29&&$n.parent.kind===267:!1}e.isInsideJsxElementOrAttribute=In;function et(Ke){return e.isJsxText(Ke)&&Ke.containsOnlyTriviaWhiteSpaces}function ae(Ke,Pn){var $n=we(Ke,Pn);return e.isTemplateLiteralKind($n.kind)&&Pn>$n.getStart(Ke)}e.isInTemplateString=ae;function fe(Ke,Pn){var $n=we(Ke,Pn);return e.isJsxText($n)||$n.kind===18&&e.isJsxExpression($n.parent)&&e.isJsxElement($n.parent.parent)?!0:!!($n.kind===29&&e.isJsxOpeningLikeElement($n.parent)&&e.isJsxElement($n.parent.parent))}e.isInJSXText=fe;function Le(Ke,Pn,$n){for(var rr=Ke.kind,xa=0;;){var Fa=w(Ke.getFullStart(),$n);if(!Fa)return;if(Ke=Fa,Ke.kind===Pn){if(xa===0)return Ke;xa--}else Ke.kind===rr&&xa++}}e.findPrecedingMatchingToken=Le;function Je(Ke,Pn,$n){return Pn?Ke.getNonNullableType():$n?Ke.getNonOptionalType():Ke}e.removeOptionality=Je;function $e(Ke,Pn,$n){var rr=cn(Ke,Pn);return rr!==void 0&&(e.isPartOfTypeNode(rr.called)||Fe(rr.called,rr.nTypeArguments,$n).length!==0||$e(rr.called,Pn,$n))}e.isPossiblyTypeArgumentPosition=$e;function Fe(Ke,Pn,$n){var rr=$n.getTypeAtLocation(Ke);e.isOptionalChain(Ke.parent)&&(rr=Je(rr,!!Ke.parent.questionDotToken,!0));var xa=e.isNewExpression(Ke.parent)?rr.getConstructSignatures():rr.getCallSignatures();return xa.filter(function(Fa){return!!Fa.typeParameters&&Fa.typeParameters.length>=Pn})}e.getPossibleGenericSignatures=Fe;function cn(Ke,Pn){for(var $n=Ke,rr=0,xa=0;$n;){switch($n.kind){case 29:if($n=w($n.getFullStart(),Pn),$n&&$n.kind===28&&($n=w($n.getFullStart(),Pn)),!$n||!e.isIdentifier($n))return;if(!rr)return e.isDeclarationName($n)?void 0:{called:$n,nTypeArguments:xa};rr--;break;case 49:rr=3;break;case 48:rr=2;break;case 31:rr++;break;case 19:if($n=Le($n,18,Pn),!$n)return;break;case 21:if($n=Le($n,20,Pn),!$n)return;break;case 23:if($n=Le($n,22,Pn),!$n)return;break;case 27:xa++;break;case 38:case 75:case 10:case 8:case 9:case 105:case 90:case 107:case 89:case 133:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode($n))break;return}$n=w($n.getFullStart(),Pn)}return}e.getPossibleTypeArgumentsInfo=cn;function Qe(Ke,Pn,$n){return e.formatting.getRangeOfEnclosingComment(Ke,Pn,void 0,$n)}e.isInComment=Qe;function ln(Ke,Pn){var $n=we(Ke,Pn);return!!e.findAncestor($n,e.isJSDoc)}e.hasDocComment=ln;function ye(Ke,Pn){return Ke.kind===1?!!Ke.jsDoc:Ke.getWidth(Pn)!==0}function ke(Ke){var Pn=e.isDeclaration(Ke)?e.getCombinedModifierFlags(Ke):0,$n=[];return Pn&8&&$n.push("private"),Pn&16&&$n.push("protected"),Pn&4&&$n.push("public"),Pn&32&&$n.push("static"),Pn&128&&$n.push("abstract"),Pn&1&&$n.push("export"),Ke.flags&8388608&&$n.push("declare"),$n.length>0?$n.join(","):""}e.getNodeModifiers=ke;function F(Ke){return Ke.kind===168||Ke.kind===195?Ke.typeArguments:e.isFunctionLike(Ke)||Ke.kind===244||Ke.kind===245?Ke.typeParameters:void 0}e.getTypeArgumentOrTypeParameterList=F;function c(Ke){return Ke===2||Ke===3}e.isComment=c;function L(Ke){return!!(Ke===10||Ke===13||e.isTemplateLiteralKind(Ke))}e.isStringOrRegularExpressionOrTemplateLiteral=L;function te(Ke){return 18<=Ke&&Ke<=74}e.isPunctuation=te;function Se(Ke,Pn,$n){return e.isTemplateLiteralKind(Ke.kind)&&Ke.getStart($n)<Pn&&Pn<Ke.end||!!Ke.isUnterminated&&Pn===Ke.end}e.isInsideTemplateLiteral=Se;function Ne(Ke){switch(Ke){case 118:case 116:case 117:return!0}return!1}e.isAccessibilityModifier=Ne;function ze(Ke){var Pn=e.clone(Ke);return e.setConfigFileInOptions(Pn,Ke&&Ke.configFile),Pn}e.cloneCompilerOptions=ze;function Tn(Ke){if(Ke.kind===191||Ke.kind===192){if(Ke.parent.kind===208&&Ke.parent.left===Ke&&Ke.parent.operatorToken.kind===62)return!0;if(Ke.parent.kind===231&&Ke.parent.initializer===Ke)return!0;if(Tn(Ke.parent.kind===279?Ke.parent.parent:Ke.parent))return!0}return!1}e.isArrayLiteralOrObjectLiteralDestructuringPattern=Tn;function wn(Ke,Pn){return nn(Ke,Pn,!0)}e.isInReferenceComment=wn;function jn(Ke,Pn){return nn(Ke,Pn,!1)}e.isInNonReferenceComment=jn;function nn(Ke,Pn,$n){var rr=Qe(Ke,Pn,void 0);return!!rr&&$n===K.test(Ke.text.substring(rr.pos,rr.end))}function pn(Ke,Pn,$n){return e.createTextSpanFromBounds(Ke.getStart(Pn),($n||Ke).getEnd())}e.createTextSpanFromNode=pn;function le(Ke,Pn){return e.createRange(Ke.getStart(Pn),Ke.end)}e.createTextRangeFromNode=le;function oe(Ke){return e.createTextSpanFromBounds(Ke.pos,Ke.end)}e.createTextSpanFromRange=oe;function Cn(Ke){return e.createRange(Ke.start,Ke.start+Ke.length)}e.createTextRangeFromSpan=Cn;function yn(Ke,Pn,$n){return _e(e.createTextSpan(Ke,Pn),$n)}e.createTextChangeFromStartLength=yn;function _e(Ke,Pn){return{span:Ke,newText:Pn}}e.createTextChange=_e,e.typeKeywords=[124,150,127,90,133,136,99,139,140,137,142,143,105,109,145,146,147];function dn(Ke){return e.contains(e.typeKeywords,Ke)}e.isTypeKeyword=dn;function un(Ke){return!!(Ke.flags&1536)&&Ke.name.charCodeAt(0)===34}e.isExternalModuleSymbol=un;function Rn(){var Ke=[];return function(Pn){var $n=e.getNodeId(Pn);return!Ke[$n]&&(Ke[$n]=!0)}}e.nodeSeenTracker=Rn;function at(Ke){return Ke.getText(0,Ke.getLength())}e.getSnapshotText=at;function Bn(Ke,Pn){for(var $n="",rr=0;rr<Pn;rr++)$n+=Ke;return $n}e.repeatString=Bn;function ut(Ke){return Ke.isTypeParameter()&&Ke.getConstraint()||Ke}e.skipConstraint=ut;function ct(Ke){return Ke.kind===153?e.isStringOrNumericLiteralLike(Ke.expression)?Ke.expression.text:void 0:e.getTextOfIdentifierOrLiteral(Ke)}e.getNameFromPropertyName=ct;function ot(Ke){return Ke.getSourceFiles().some(function(Pn){return!Pn.isDeclarationFile&&!Ke.isSourceFileFromExternalLibrary(Pn)&&!!Pn.externalModuleIndicator})}e.programContainsEs6Modules=ot;function dt(Ke){return!!Ke.module||Ke.target>=2||!!Ke.noEmit}e.compilerOptionsIndicateEs6Modules=dt;function Ct(Ke){return Ke.useCaseSensitiveFileNames?Ke.useCaseSensitiveFileNames():!1}e.hostUsesCaseSensitiveFileNames=Ct;function st(Ke){return e.createGetCanonicalFileName(Ct(Ke))}e.hostGetCanonicalFileName=st;function Kn(Ke,Pn,$n,rr){return Ke||Pn&&Pn.length?Ie(Ke,Pn,$n,rr):void 0}e.makeImportIfNecessary=Kn;function Ie(Ke,Pn,$n,rr){return e.createImportDeclaration(void 0,void 0,Ke||Pn?e.createImportClause(Ke,Pn&&Pn.length?e.createNamedImports(Pn):void 0):void 0,typeof $n=="string"?Ce($n,rr):$n)}e.makeImport=Ie;function Ce(Ke,Pn){return e.createLiteral(Ke,Pn===0)}e.makeStringLiteral=Ce;var _n;(function(Ke){Ke[Ke.Single=0]="Single",Ke[Ke.Double=1]="Double"})(_n=e.QuotePreference||(e.QuotePreference={}));function yt(Ke,Pn){return e.isStringDoubleQuoted(Ke,Pn)?1:0}e.quotePreferenceFromString=yt;function Dt(Ke,Pn){if(Pn.quotePreference&&Pn.quotePreference!=="auto")return Pn.quotePreference==="single"?0:1;var $n=Ke.imports&&e.find(Ke.imports,e.isStringLiteral);return $n?yt($n,Ke):1}e.getQuotePreference=Dt;function Ht(Ke){switch(Ke){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(Ke)}}e.getQuoteFromPreference=Ht;function $t(Ke){var Pn=wr(Ke);return Pn===void 0?void 0:e.unescapeLeadingUnderscores(Pn)}e.symbolNameNoDefault=$t;function wr(Ke){return Ke.escapedName!=="default"?Ke.escapedName:e.firstDefined(Ke.declarations,function(Pn){var $n=e.getNameOfDeclaration(Pn);return $n&&$n.kind===75?$n.escapedText:void 0})}e.symbolEscapedNameNoDefault=wr;function Yr(Ke){return e.isBindingElement(Ke)&&e.isObjectBindingPattern(Ke.parent)&&e.isIdentifier(Ke.name)&&!Ke.propertyName}e.isObjectBindingElementWithoutPropertyName=Yr;function Hr(Ke,Pn){var $n=Ke.getTypeAtLocation(Pn.parent);return $n&&Ke.getPropertyOfType($n,Pn.name.text)}e.getPropertySymbolFromBindingElement=Hr;function mt(Ke,Pn,$n,rr){var xa=e.createMap();return Fa(Ke);function Fa(ri){return!(ri.flags&(32|64))||!e.addToSeen(xa,e.getSymbolId(ri))?void 0:e.firstDefined(ri.declarations,function(Si){return e.firstDefined(e.getAllSuperTypeNodes(Si),function(xi){var vi=$n.getTypeAtLocation(xi),Oi=vi&&vi.symbol&&$n.getPropertyOfType(vi,Pn);return vi&&Oi&&(e.firstDefined($n.getRootSymbols(Oi),rr)||Fa(vi.symbol))})})}}e.getPropertySymbolsFromBaseTypes=mt;function va(Ke,Pn){return mt(Ke.parent,Ke.name,Pn,function($n){return!0})||!1}e.isMemberSymbolInBaseType=va;function Lt(Ke,Pn,$n){if(!Ke)return;for(;Ke.parent;){if(e.isSourceFile(Ke.parent)||!Wn($n,Ke.parent,Pn))return Ke;Ke=Ke.parent}}e.getParentNodeInSpan=Lt;function Wn(Ke,Pn,$n){return e.textSpanContainsPosition(Ke,Pn.getStart($n))&&Pn.getEnd()<=e.textSpanEnd(Ke)}function Vt(Ke,Pn){return Ke.modifiers&&e.find(Ke.modifiers,function($n){return $n.kind===Pn})}e.findModifier=Vt;function pt(Ke,Pn,$n){var rr=e.findLast(Pn.statements,e.isAnyImportSyntax);rr?Ke.insertNodeAfter(Pn,rr,$n):Ke.insertNodeAtTopOfFile(Pn,$n,!0)}e.insertImport=pt;function Tt(Ke,Pn){return!!Ke&&!!Pn&&Ke.start===Pn.start&&Ke.length===Pn.length}e.textSpansEqual=Tt;function ht(Ke,Pn){return Ke.fileName===Pn.fileName&&Tt(Ke.textSpan,Pn.textSpan)}e.documentSpansEqual=ht;function bt(Ke,Pn){if(Ke){for(var $n=0;$n<Ke.length;$n++)if(Ke.indexOf(Ke[$n])===$n){var rr=Pn(Ke[$n],$n);if(rr)return rr}}return}e.forEachUnique=bt})(sn||(sn={})),function(e){function o(ye){return ye.declarations&&ye.declarations.length>0&&ye.declarations[0].kind===155}e.isFirstDeclarationOfSymbolParameter=o;var M=qe();function qe(){var ye=e.defaultMaximumTruncationLength*10,ke,F,c,L;wn();var te=function(jn){return Ne(jn,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var jn=ke.length&&ke[ke.length-1].text;return L>ye&&jn&&jn!=="..."&&(e.isWhiteSpaceLike(jn.charCodeAt(jn.length-1))||ke.push(Ge(" ",e.SymbolDisplayPartKind.space)),ke.push(Ge("...",e.SymbolDisplayPartKind.punctuation))),ke},writeKeyword:function(jn){return Ne(jn,e.SymbolDisplayPartKind.keyword)},writeOperator:function(jn){return Ne(jn,e.SymbolDisplayPartKind.operator)},writePunctuation:function(jn){return Ne(jn,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(jn){return Ne(jn,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(jn){return Ne(jn,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(jn){return Ne(jn,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(jn){return Ne(jn,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(jn){return Ne(jn,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(jn){return Ne(jn,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:ze,writeLine:Tn,write:te,writeComment:te,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 c},increaseIndent:function(){c++},decreaseIndent:function(){c--},clear:wn,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function Se(){if(L>ye)return;if(F){var jn=e.getIndentString(c);jn&&(L+=jn.length,ke.push(Ge(jn,e.SymbolDisplayPartKind.space))),F=!1}}function Ne(jn,nn){if(L>ye)return;Se(),L+=jn.length,ke.push(Ge(jn,nn))}function ze(jn,nn){if(L>ye)return;Se(),L+=jn.length,ke.push(Ee(jn,nn))}function Tn(){if(L>ye)return;L+=1,ke.push(ie()),F=!0}function wn(){ke=[],F=!0,c=0,L=0}}function Ee(ye,ke){return Ge(ye,F(ke));function F(c){var L=c.flags;return L&3?o(c)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:L&4||(L&32768||L&65536)?e.SymbolDisplayPartKind.propertyName:L&8?e.SymbolDisplayPartKind.enumMemberName:L&16?e.SymbolDisplayPartKind.functionName:L&32?e.SymbolDisplayPartKind.className:L&64?e.SymbolDisplayPartKind.interfaceName:L&384?e.SymbolDisplayPartKind.enumName:L&1536?e.SymbolDisplayPartKind.moduleName:L&8192?e.SymbolDisplayPartKind.methodName:L&262144?e.SymbolDisplayPartKind.typeParameterName:L&524288||L&2097152?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}}e.symbolPart=Ee;function Ge(ye,ke){return{text:ye,kind:e.SymbolDisplayPartKind[ke]}}e.displayPart=Ge;function Be(){return Ge(" ",e.SymbolDisplayPartKind.space)}e.spacePart=Be;function he(ye){return Ge(e.tokenToString(ye),e.SymbolDisplayPartKind.keyword)}e.keywordPart=he;function ee(ye){return Ge(e.tokenToString(ye),e.SymbolDisplayPartKind.punctuation)}e.punctuationPart=ee;function f(ye){return Ge(e.tokenToString(ye),e.SymbolDisplayPartKind.operator)}e.operatorPart=f;function J(ye){var ke=e.stringToToken(ye);return ke===void 0?Oe(ye):he(ke)}e.textOrKeywordPart=J;function Oe(ye){return Ge(ye,e.SymbolDisplayPartKind.text)}e.textPart=Oe;var N=`\r
|
|
|
`;function Te(ye,ke){return ke&&ke.newLineCharacter||ye.getNewLine&&ye.getNewLine()||N}e.getNewLineOrDefaultFromHost=Te;function ie(){return Ge(`
|
|
|
`,e.SymbolDisplayPartKind.lineBreak)}e.lineBreakPart=ie;function ce(ye){try{return ye(M),M.displayParts()}finally{M.clear()}}e.mapToDisplayParts=ce;function x(ye,ke,F,c){return c===void 0&&(c=0),ce(function(L){ye.writeType(ke,F,c|1024|16384,L)})}e.typeToDisplayParts=x;function C(ye,ke,F,c,L){return L===void 0&&(L=0),ce(function(te){ye.writeSymbol(ke,F,c,L|8,te)})}e.symbolToDisplayParts=C;function P(ye,ke,F,c){return c===void 0&&(c=0),c|=16384|1024|32|8192,ce(function(L){ye.writeSignature(ke,F,c,void 0,L)})}e.signatureToDisplayParts=P;function h(ye){return!!ye.parent&&e.isImportOrExportSpecifier(ye.parent)&&ye.parent.propertyName===ye}e.isImportOrExportSpecifierName=h;function X(ye,ke){for(var F=[],c=2;c<arguments.length;c++)F[c-2]=arguments[c];var L=$(ye,ke);return e.some(F,function(te){return te===L})}e.scriptKindIs=X;function $(ye,ke){return e.ensureScriptKind(ye,ke&&ke.getScriptKind&&ke.getScriptKind(ye))}e.getScriptKind=$;function Q(ye,ke){for(var F=ye;se(F)||z(F)&&F.target;)z(F)&&F.target?F=F.target:F=e.skipAlias(F,ke);return F}e.getSymbolTarget=Q;function z(ye){return(ye.flags&33554432)!==0}function se(ye){return(ye.flags&2097152)!==0}function G(ye,ke){return e.getSymbolId(e.skipAlias(ye,ke))}e.getUniqueSymbolId=G;function H(ye,ke){for(;e.isWhiteSpaceLike(ye.charCodeAt(ke));)ke+=1;return ke}e.getFirstNonSpaceCharacterPosition=H;function q(ye,ke){for(;ke>-1&&e.isWhiteSpaceSingleLine(ye.charCodeAt(ke));)ke-=1;return ke+1}e.getPrecedingNonSpaceCharacterPosition=q;function be(ye,ke){ke===void 0&&(ke=!0);var F=ye&&K(ye);return F&&!ke&&_(F),F}e.getSynthesizedDeepClone=be;function R(ye,ke,F,c,L){ke===void 0&&(ke=!0);var te;if(F&&c&&e.isBindingElement(ye)&&e.isIdentifier(ye.name)&&e.isObjectBindingPattern(ye.parent)){var Se=c.getSymbolAtLocation(ye.name),Ne=Se&&F.get(String(e.getSymbolId(Se)));Ne&&Ne.text!==(ye.name||ye.propertyName).getText()&&(te=e.createBindingElement(ye.dotDotDotToken,ye.propertyName||ye.name,Ne,ye.initializer))}else if(F&&c&&e.isIdentifier(ye)){var Se=c.getSymbolAtLocation(ye),Ne=Se&&F.get(String(e.getSymbolId(Se)));Ne&&(te=e.createIdentifier(Ne.text))}return te||(te=K(ye,F,c,L)),te&&!ke&&_(te),L&&te&&L(ye,te),te}e.getSynthesizedDeepCloneWithRenames=R;function K(ye,ke,F,c){var L=ke||F||c?e.visitEachChild(ye,Se,e.nullTransformationContext):e.visitEachChild(ye,be,e.nullTransformationContext);if(L===ye){var te=e.getSynthesizedClone(ye);return e.isStringLiteral(te)?te.textSourceNode=ye:e.isNumericLiteral(te)&&(te.numericLiteralFlags=ye.numericLiteralFlags),e.setTextRange(te,ye)}return L.parent=void 0,L;function Se(Ne){return R(Ne,!0,ke,F,c)}}function m(ye,ke){return ke===void 0&&(ke=!0),ye&&e.createNodeArray(ye.map(function(F){return be(F,ke)}),ye.hasTrailingComma)}e.getSynthesizedDeepClones=m;function _(ye){I(ye),D(ye)}e.suppressLeadingAndTrailingTrivia=_;function I(ye){y(ye,512,E)}e.suppressLeadingTrivia=I;function D(ye){y(ye,1024,e.getLastChild)}e.suppressTrailingTrivia=D;function y(ye,ke,F){e.addEmitFlags(ye,ke);var c=F(ye);c&&y(c,ke,F)}function E(ye){return ye.forEachChild(function(ke){return ke})}function k(ye,ke){for(var F=ye,c=1;!e.isFileLevelUniqueName(ke,F);c++)F=ye+"_"+c;return F}e.getUniqueName=k;function T(ye,ke,F,c){for(var L=0,te=-1,Se=0,Ne=ye;Se<Ne.length;Se++){var ze=Ne[Se],Tn=ze.fileName,wn=ze.textChanges;e.Debug.assert(Tn===ke);for(var jn=0,nn=wn;jn<nn.length;jn++){var pn=nn[jn],le=pn.span,oe=pn.newText,Cn=S(oe,F);if(Cn!==-1&&(te=le.start+L+Cn,!c))return te;L+=oe.length-le.length}}return e.Debug.assert(c),e.Debug.assert(te>=0),te}e.getRenameLocation=T;function ne(ye,ke,F,c,L){e.forEachLeadingCommentRange(F.text,ye.pos,pe(ke,F,c,L,e.addSyntheticLeadingComment))}e.copyLeadingComments=ne;function O(ye,ke,F,c,L){e.forEachTrailingCommentRange(F.text,ye.end,pe(ke,F,c,L,e.addSyntheticTrailingComment))}e.copyTrailingComments=O;function Y(ye,ke,F,c,L){e.forEachTrailingCommentRange(F.text,ye.pos,pe(ke,F,c,L,e.addSyntheticLeadingComment))}e.copyTrailingAsLeadingComments=Y;function pe(ye,ke,F,c,L){return function(te,Se,Ne,ze){Ne===3?(te+=2,Se-=2):te+=2,L(ye,F||Ne,ke.text.slice(te,Se),c!==void 0?c:ze)}}function S(ye,ke){if(e.startsWith(ye,ke))return 0;var F=ye.indexOf(" "+ke);return F===-1&&(F=ye.indexOf("."+ke)),F===-1&&(F=ye.indexOf('"'+ke)),F===-1?-1:F+1}function v(ye,ke){var F=ye.parent;switch(F.kind){case 196:return ke.getContextualType(F);case 208:{var c=F,L=c.left,te=c.operatorToken,Se=c.right;return ue(te.kind)?ke.getTypeAtLocation(ye===Se?L:Se):ke.getContextualType(ye)}case 275:return F.expression===ye?Re(F,ke):void 0;default:return ke.getContextualType(ye)}}e.getContextualTypeFromParent=v;function U(ye,ke){if(/^\d+$/.test(ye))return ye;var F=ke.quotePreference||"auto",c=JSON.stringify(ye);switch(F){case"auto":case"double":return c;case"single":return"'"+e.stripQuotes(c).replace("'","\\'").replace('\\"','"')+"'";default:return e.Debug.assertNever(F)}}e.quote=U;function ue(ye){switch(ye){case 36:case 34:case 37:case 35:return!0;default:return!1}}e.isEqualityOperatorKind=ue;function De(ye){switch(ye.kind){case 10:case 14:case 210:case 197:return!0;default:return!1}}e.isStringLiteralOrTemplate=De;function Z(ye){return!!ye.getStringIndexType()||!!ye.getNumberIndexType()}e.hasIndexSignature=Z;function Re(ye,ke){return ke.getTypeAtLocation(ye.parent.parent.expression)}e.getSwitchedType=Re;function we(ye,ke,F,c){var L=F.getTypeChecker(),te=!0,Se=function(){te=!1},Ne=L.typeToTypeNode(ye,ke,void 0,{trackSymbol:function(ze,Tn,wn){te=te&&L.isSymbolAccessible(ze,Tn,wn,!1).accessibility===0},reportInaccessibleThisError:Se,reportPrivateInBaseOfClassExpression:Se,reportInaccessibleUniqueSymbolError:Se,moduleResolverHost:{readFile:c.readFile,fileExists:c.fileExists,directoryExists:c.directoryExists,getSourceFiles:F.getSourceFiles,getCurrentDirectory:F.getCurrentDirectory,getCommonSourceDirectory:F.getCommonSourceDirectory}});return te?Ne:void 0}e.getTypeNodeIfAccessible=we;function He(ye){return ye===164||ye===165||ye===166||ye===157||ye===159}e.syntaxRequiresTrailingCommaOrSemicolonOrASI=He;function ve(ye){return ye===243||ye===161||ye===160||ye===162||ye===163}e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=ve;function je(ye){return ye===248}e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=je;function w(ye){return ye===224||ye===225||ye===227||ye===232||ye===233||ye===234||ye===238||ye===240||ye===158||ye===246||ye===253||ye===252||ye===259||ye===251||ye===258}e.syntaxRequiresTrailingSemicolonOrASI=w,e.syntaxMayBeASICandidate=e.or(He,ve,je,w);function j(ye,ke){var F=ye.getLastToken(ke);if(F&&F.kind===26)return!1;if(He(ye.kind)){if(F&&F.kind===27)return!1}else if(je(ye.kind)){var c=e.last(ye.getChildren(ke));if(c&&e.isModuleBlock(c))return!1}else if(ve(ye.kind)){var c=e.last(ye.getChildren(ke));if(c&&e.isFunctionBlock(c))return!1}else if(!w(ye.kind))return!1;if(ye.kind===227)return!0;var L=e.findAncestor(ye,function(ze){return!ze.parent}),te=e.findNextToken(ye,L,ke);if(!te||te.kind===19)return!0;var Se=ke.getLineAndCharacterOfPosition(ye.getEnd()).line,Ne=ke.getLineAndCharacterOfPosition(te.getStart(ke)).line;return Se!==Ne}e.isASICandidate=j;function Pe(ye){var ke=0,F=0,c=5;return e.forEachChild(ye,function L(te){if(w(te.kind)){var Se=te.getLastToken(ye);Se&&Se.kind===26?ke++:F++}return ke+F>=c?!0:e.forEachChild(te,L)}),ke===0&&F<=1?!0:ke/F>1/c}e.probablyUsesSemicolons=Pe;function a(ye,ke){return fe(ye,ye.getDirectories,ke)||[]}e.tryGetDirectories=a;function Ze(ye,ke,F,c,L){return fe(ye,ye.readDirectory,ke,F,c,L)||e.emptyArray}e.tryReadDirectory=Ze;function In(ye,ke){return fe(ye,ye.fileExists,ke)}e.tryFileExists=In;function et(ye,ke){return ae(function(){return e.directoryProbablyExists(ke,ye)})||!1}e.tryDirectoryExists=et;function ae(ye){try{return ye()}catch(ke){return}}e.tryAndIgnoreErrors=ae;function fe(ye,ke){for(var F=[],c=2;c<arguments.length;c++)F[c-2]=arguments[c];return ae(function(){return ke&&ke.apply(ye,F)})}e.tryIOAndConsumeErrors=fe;function Le(ye,ke,F){var c=[];return e.forEachAncestorDirectory(ye,function(L){if(L===F)return!0;var te=e.combinePaths(L,"package.json");In(ke,te)&&c.push(te)}),c}e.findPackageJsons=Le;function Je(ye,ke){var F;return e.forEachAncestorDirectory(ye,function(c){if(c==="node_modules")return!0;if(F=e.findConfigFile(c,function(L){return In(ke,L)},"package.json"),F)return!0}),F}e.findPackageJson=Je;function $e(ye,ke){if(!ke.fileExists)return[];var F=[];return e.forEachAncestorDirectory(e.getDirectoryPath(ye),function(c){var L=e.combinePaths(c,"package.json");if(ke.fileExists(L)){var te=Fe(L,ke);te&&F.push(te)}}),F}e.getPackageJsonsVisibleToFile=$e;function Fe(ye,ke){if(!ke.readFile)return;var F=["dependencies","devDependencies","optionalDependencies","peerDependencies"],c=ke.readFile(ye);if(!c)return;var L=cn(c);if(!L)return!1;for(var te={},Se=0,Ne=F;Se<Ne.length;Se++){var ze=Ne[Se],Tn=L[ze];if(!Tn)continue;var wn=e.createMap();for(var jn in Tn)wn.set(jn,Tn[jn]);te[ze]=wn}var nn=[[1,te.dependencies],[2,te.devDependencies],[8,te.optionalDependencies],[4,te.peerDependencies]];return Rr(Rr({},te),{fileName:ye,get:pn,has:function(le,oe){return!!pn(le,oe)}});function pn(le,oe){oe===void 0&&(oe=15);for(var Cn=0,yn=nn;Cn<yn.length;Cn++){var _e=yn[Cn],dn=_e[0],un=_e[1];if(un&&oe&dn){var Rn=un.get(le);if(Rn!==void 0)return Rn}}}}e.createPackageJsonInfo=Fe;function cn(ye){try{return JSON.parse(ye)}catch(ke){return}}function Qe(ye){return e.some(ye.imports,function(ke){var F=ke.text;return e.JsTyping.nodeCoreModules.has(F)})}e.consumesNodeCoreModules=Qe;function ln(ye){return e.contains(e.getPathComponents(ye),"node_modules")}e.isInsideNodeModules=ln}(sn||(sn={}));var sn;(function(e){function o(){var $=e.createScanner(99,!1);function Q(se,G,H){return Ge(z(se,G,H),se)}function z(se,G,H){var q=0,be=0,R=[],K=ee(G),m=K.prefix,_=K.pushTemplate;se=m+se;var I=m.length;_&&R.push(15),$.setText(se);var D=0,y=[],E=0;do{q=$.scan(),e.isTrivia(q)||(ne(),be=q);var k=$.getTextPos();if(Ee($.getTokenPos(),k,I,Oe(q),y),k>=se.length){var T=qe($,q,e.lastOrUndefined(R));T!==void 0&&(D=T)}}while(q!==1);function ne(){switch(q){case 43:case 67:!M[be]&&$.reScanSlashToken()===13&&(q=13);break;case 29:be===75&&E++;break;case 31:E>0&&E--;break;case 124:case 142:case 139:case 127:case 143:E>0&&!H&&(q=75);break;case 15:R.push(q);break;case 18:R.length>0&&R.push(q);break;case 19:if(R.length>0){var O=e.lastOrUndefined(R);O===15?(q=$.reScanTemplateToken(),q===17?R.pop():e.Debug.assertEqual(q,16,"Should have been a template middle.")):(e.Debug.assertEqual(O,18,"Should have been an open brace"),R.pop())}break;default:if(!e.isKeyword(q))break;(be===24||e.isKeyword(be)&&e.isKeyword(q)&&!he(be,q))&&(q=75)}}return{endOfLineState:D,spans:y}}return{getClassificationsForLine:Q,getEncodedLexicalClassifications:z}}e.createClassifier=o;var M=e.arrayToNumericMap([75,10,8,9,13,103,45,46,21,23,19,105,90],function($){return $},function(){return!0});function qe($,Q,z){switch(Q){case 10:{if(!$.isUnterminated())return;for(var se=$.getTokenText(),G=se.length-1,H=0;se.charCodeAt(G-H)===92;)H++;return(H&1)===0?void 0:se.charCodeAt(0)===34?3:2}case 3:return $.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(Q)){if(!$.isUnterminated())return;switch(Q){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+Q)}}return z===15?6:void 0}}function Ee($,Q,z,se,G){if(se===8)return;$===0&&z>0&&($+=z);var H=Q-$;H>0&&G.push($-z,H,se)}function Ge($,Q){for(var z=[],se=$.spans,G=0,H=0;H<se.length;H+=3){var q=se[H],be=se[H+1],R=se[H+2];if(G>=0){var K=q-G;K>0&&z.push({length:K,classification:e.TokenClass.Whitespace})}z.push({length:be,classification:Be(R)}),G=q+be}var m=Q.length-G;return m>0&&z.push({length:m,classification:e.TokenClass.Whitespace}),{entries:z,finalLexState:$.endOfLineState}}function Be($){switch($){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 he($,Q){if(!e.isAccessibilityModifier($))return!0;switch(Q){case 130:case 141:case 128:case 119:return!0;default:return!1}}function ee($){switch($){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($)}}function f($){switch($){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 97:case 96:case 122:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 73:case 72:case 74:case 69:case 70:case 71:case 63:case 64:case 65:case 67:case 68:case 62:case 27:case 60:return!0;default:return!1}}function J($){switch($){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function Oe($){if(e.isKeyword($))return 3;if(f($)||J($))return 5;if($>=18&&$<=74)return 10;switch($){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 75:default:return e.isTemplateLiteralKind($)?6:2}}function N($,Q,z,se,G){return P(ie($,Q,z,se,G))}e.getSemanticClassifications=N;function Te($,Q){switch(Q){case 248:case 244:case 245:case 243:$.throwIfCancellationRequested()}}function ie($,Q,z,se,G){var H=[];return z.forEachChild(function be(R){if(!R||!e.textSpanIntersectsWith(G,R.pos,R.getFullWidth()))return;if(Te(Q,R.kind),e.isIdentifier(R)&&!e.nodeIsMissing(R)&&se.has(R.escapedText)){var K=$.getSymbolAtLocation(R),m=K&&ce(K,e.getMeaningFromLocation(R),$);m&&q(R.getStart(z),R.getEnd(),m)}R.forEachChild(be)}),{spans:H,endOfLineState:0};function q(be,R,K){var m=R-be;e.Debug.assert(m>0,"Classification had non-positive length of "+m),H.push(be),H.push(m),H.push(K)}}e.getEncodedSemanticClassifications=ie;function ce($,Q,z){var se=$.getFlags();return(se&2885600)===0?void 0:se&32?11:se&384?12:se&524288?16:se&1536?Q&4||Q&1&&x($)?14:void 0:se&2097152?ce(z.getAliasedSymbol($),Q,z):Q&2?se&64?13:se&262144?15:void 0:void 0}function x($){return e.some($.declarations,function(Q){return e.isModuleDeclaration(Q)&&e.getModuleInstanceState(Q)===1})}function C($){switch($){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 P($){e.Debug.assert($.spans.length%3===0);for(var Q=$.spans,z=[],se=0;se<Q.length;se+=3)z.push({textSpan:e.createTextSpan(Q[se],Q[se+1]),classificationType:C(Q[se+2])});return z}function h($,Q,z){return P(X($,Q,z))}e.getSyntacticClassifications=h;function X($,Q,z){var se=z.start,G=z.length,H=e.createScanner(99,!1,Q.languageVariant,Q.text),q=e.createScanner(99,!1,Q.languageVariant,Q.text),be=[];return Y(Q),{spans:be,endOfLineState:0};function R(pe,S,v){be.push(pe),be.push(S),be.push(v)}function K(pe){for(H.setTextPos(pe.pos);;){var S=H.getTextPos();if(!e.couldStartTrivia(Q.text,S))return S;var v=H.scan(),U=H.getTextPos(),ue=U-S;if(!e.isTrivia(v))return S;switch(v){case 4:case 5:continue;case 2:case 3:m(pe,v,S,ue),H.setTextPos(U);continue;case 7:var De=Q.text,Z=De.charCodeAt(S);if(Z===60||Z===62){R(S,ue,1);continue}e.Debug.assert(Z===124||Z===61),E(De,S,U);break;case 6:break;default:e.Debug.assertNever(v)}}}function m(pe,S,v,U){if(S===3){var ue=e.parseIsolatedJSDocComment(Q.text,v,U);if(ue&&ue.jsDoc){ue.jsDoc.parent=pe,I(ue.jsDoc);return}}else if(S===2&&D(v,U))return;_(v,U)}function _(pe,S){R(pe,S,1)}function I(pe){var S=pe.pos;if(pe.tags)for(var v=0,U=pe.tags;v<U.length;v++){var ue=U[v];ue.pos!==S&&_(S,ue.pos-S),R(ue.pos,1,10),R(ue.tagName.pos,ue.tagName.end-ue.tagName.pos,18),S=ue.tagName.end;switch(ue.kind){case 310:De(ue);break;case 314:y(ue),S=ue.end;break;case 313:Y(ue.typeExpression),S=ue.end;break;case 311:Y(ue.typeExpression),S=ue.end;break}}S!==pe.end&&_(S,pe.end-S);return;function De(Z){Z.isNameFirst&&(_(S,Z.name.pos-S),R(Z.name.pos,Z.name.end-Z.name.pos,17),S=Z.name.end),Z.typeExpression&&(_(S,Z.typeExpression.pos-S),Y(Z.typeExpression),S=Z.typeExpression.end),Z.isNameFirst||(_(S,Z.name.pos-S),R(Z.name.pos,Z.name.end-Z.name.pos,17),S=Z.name.end)}}function D(pe,S){var v=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,U=/(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,ue=Q.text.substr(pe,S),De=v.exec(ue);if(!De)return!1;if(!De[3]||!(De[3]in e.commentPragmas))return!1;var Z=pe;_(Z,De[1].length),Z+=De[1].length,R(Z,De[2].length,10),Z+=De[2].length,R(Z,De[3].length,21),Z+=De[3].length;for(var Re=De[4],we=Z;;){var He=U.exec(Re);if(!He)break;var ve=Z+He.index;ve>we&&(_(we,ve-we),we=ve),R(we,He[1].length,22),we+=He[1].length,He[2].length&&(_(we,He[2].length),we+=He[2].length),R(we,He[3].length,5),we+=He[3].length,He[4].length&&(_(we,He[4].length),we+=He[4].length),R(we,He[5].length,24),we+=He[5].length}Z+=De[4].length,Z>we&&_(we,Z-we),De[5]&&(R(Z,De[5].length,10),Z+=De[5].length);var je=pe+S;return Z<je&&_(Z,je-Z),!0}function y(pe){for(var S=0,v=pe.getChildren();S<v.length;S++){var U=v[S];Y(U)}}function E(pe,S,v){var U;for(U=S;U<v&&!e.isLineBreak(pe.charCodeAt(U));U++);for(R(S,U-S,1),q.setTextPos(U);q.getTextPos()<v;)k()}function k(){var pe=q.getTextPos(),S=q.scan(),v=q.getTextPos(),U=O(S);U&&R(pe,v-pe,U)}function T(pe){if(e.isJSDoc(pe))return!0;if(e.nodeIsMissing(pe))return!0;var S=ne(pe);if(!e.isToken(pe)&&pe.kind!==11&&S===void 0)return!1;var v=pe.kind===11?pe.pos:K(pe),U=pe.end-v;if(e.Debug.assert(U>=0),U>0){var ue=S||O(pe.kind,pe);ue&&R(v,U,ue)}return!0}function ne(pe){switch(pe.parent&&pe.parent.kind){case 266:if(pe.parent.tagName===pe)return 19;break;case 267:if(pe.parent.tagName===pe)return 20;break;case 265:if(pe.parent.tagName===pe)return 21;break;case 271:if(pe.parent.name===pe)return 22;break}return}function O(pe,S){if(e.isKeyword(pe))return 3;if((pe===29||pe===31)&&(S&&e.getTypeArgumentOrTypeParameterList(S.parent)))return 10;if(e.isPunctuation(pe)){if(S){var v=S.parent;if(pe===62&&(v.kind===241||v.kind===158||v.kind===155||v.kind===271))return 5;if(v.kind===208||v.kind===206||v.kind===207||v.kind===209)return 5}return 10}else{if(pe===8)return 4;if(pe===9)return 25;if(pe===10)return S&&S.parent.kind===271?24:6;if(pe===13)return 6;if(e.isTemplateLiteralKind(pe))return 6;if(pe===11)return 23;if(pe===75){if(S)switch(S.parent.kind){case 244:return S.parent.name===S?11:void 0;case 154:return S.parent.name===S?15:void 0;case 245:return S.parent.name===S?13:void 0;case 247:return S.parent.name===S?12:void 0;case 248:return S.parent.name===S?14:void 0;case 155:return S.parent.name===S?e.isThisIdentifier(S)?3:17:void 0}return 2}}}function Y(pe){if(!pe)return;if(e.decodedTextSpanIntersectsWith(se,G,pe.pos,pe.getFullWidth())){Te($,pe.kind);for(var S=0,v=pe.getChildren(Q);S<v.length;S++){var U=v[S];T(U)||Y(U)}}}}e.getEncodedSyntacticClassifications=X})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe;(function(Ee){function Ge(v,U,ue,De,Z,Re,we,He){if(e.isInReferenceComment(v,U)){var ve=E(v,U,Z,Re);return ve&&f(ve)}if(e.isInString(v,U,ue))return!ue||!e.isStringLiteralLike(ue)?void 0:Be(N(v,ue,U,De,Z,Re),v,De,we,He)}Ee.getStringLiteralCompletions=Ge;function Be(v,U,ue,De,Z){if(v===void 0)return;switch(v.kind){case 0:return f(v.paths);case 1:{var Re=[];return M.getCompletionEntriesFromSymbols(v.symbols,Re,U,U,ue,99,De,4,Z),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:v.hasIndexSignature,entries:Re}}case 2:{var Re=v.types.map(function(He){return{name:He.value,kindModifiers:"",kind:"string",sortText:"0"}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:v.isNewIdentifier,entries:Re}}default:return e.Debug.assertNever(v)}}function he(v,U,ue,De,Z,Re,we,He){if(!De||!e.isStringLiteralLike(De))return;var ve=N(U,De,ue,Z,Re,we);return ve&&ee(v,De,ve,U,Z,He)}Ee.getStringLiteralCompletionDetails=he;function ee(v,U,ue,De,Z,Re){switch(ue.kind){case 0:{var we=e.find(ue.paths,function(He){return He.name===v});return we&&M.createCompletionDetails(v,J(we.extension),we.kind,[e.textPart(v)])}case 1:{var we=e.find(ue.symbols,function(ve){return ve.name===v});return we&&M.createCompletionDetailsForSymbol(we,Z,De,U,Re)}case 2:return e.find(ue.types,function(He){return He.value===v})?M.createCompletionDetails(v,"","type",[e.textPart(v)]):void 0;default:return e.Debug.assertNever(ue)}}function f(v){var U=!1,ue=!0,De=v.map(function(Z){var Re=Z.name,we=Z.kind,He=Z.span,ve=Z.extension;return{name:Re,kind:we,kindModifiers:J(ve),sortText:M.SortText.LocationPriority,replacementSpan:He}});return{isGlobalCompletion:U,isMemberCompletion:!1,isNewIdentifierLocation:ue,entries:De}}function J(v){switch(v){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(v)}}var Oe;(function(v){v[v.Paths=0]="Paths",v[v.Properties=1]="Properties",v[v.Types=2]="Types"})(Oe||(Oe={}));function N(v,U,ue,De,Z,Re){var we=U.parent;switch(we.kind){case 186:switch(we.parent.kind){case 168:return{kind:2,types:x(De.getTypeArgumentConstraint(we)),isNewIdentifier:!1};case 184:return ce(De.getTypeFromTypeNode(we.parent.objectType));case 187:return{kind:0,paths:X(v,U,Z,Re,De)};case 177:{if(!e.isTypeReferenceNode(we.parent.parent))return;var He=Te(we.parent,we),ve=x(De.getTypeArgumentConstraint(we.parent)).filter(function(Ze){return!e.contains(He,Ze.value)});return{kind:2,types:ve,isNewIdentifier:!1}}default:return}case 279:return e.isObjectLiteralExpression(we.parent)&&we.name===U?ce(De.getContextualType(we.parent)):a();case 194:{var je=we,w=je.expression,j=je.argumentExpression;return U===j?ce(De.getTypeAtLocation(w)):void 0}case 195:case 196:if(!e.isRequireCall(we,!1)&&!e.isImportCall(we)){var Pe=e.SignatureHelp.getArgumentInfoForCompletions(U,ue,v);return Pe?ie(Pe,De):a()}case 253:case 259:case 263:return{kind:0,paths:X(v,U,Z,Re,De)};default:return a()}function a(){return{kind:2,types:x(e.getContextualTypeFromParent(U,De)),isNewIdentifier:!1}}}function Te(v,U){return e.mapDefined(v.types,function(ue){return ue!==U&&e.isLiteralTypeNode(ue)&&e.isStringLiteral(ue.literal)?ue.literal.text:void 0})}function ie(v,U){var ue=!1,De=e.createMap(),Z=[];U.getResolvedSignature(v.invocation,Z,v.argumentCount);var Re=e.flatMap(Z,function(we){if(!e.signatureHasRestParameter(we)&&v.argumentCount>we.parameters.length)return;var He=U.getParameterType(we,v.argumentIndex);return ue=ue||!!(He.flags&4),x(He,De)});return{kind:2,types:Re,isNewIdentifier:ue}}function ce(v){return v&&{kind:1,symbols:v.getApparentProperties(),hasIndexSignature:e.hasIndexSignature(v)}}function x(v,U){return U===void 0&&(U=e.createMap()),v?(v=e.skipConstraint(v),v.isUnion()?e.flatMap(v.types,function(ue){return x(ue,U)}):v.isStringLiteral()&&!(v.flags&1024)&&e.addToSeen(U,v.value)?[v]:e.emptyArray):e.emptyArray}function C(v,U,ue){return{name:v,kind:U,extension:ue}}function P(v){return C(v,"directory",void 0)}function h(v,U,ue){var De=ne(v,U);return ue.map(function(Z){var Re=Z.name,we=Z.kind,He=Z.extension;return{name:Re,kind:we,extension:He,span:De}})}function X(v,U,ue,De,Z){return h(U.text,U.getStart(v)+1,$(v,U,ue,De,Z))}function $(v,U,ue,De,Z){var Re=e.normalizeSlashes(U.text),we=v.path,He=e.getDirectoryPath(we);return O(Re)||!ue.baseUrl&&(e.isRootedDiskPath(Re)||e.isUrl(Re))?z(Re,He,ue,De,we):R(Re,He,ue,De,Z)}function Q(v,U){return U===void 0&&(U=!1),{extensions:se(v),includeExtensions:U}}function z(v,U,ue,De,Z){var Re=Q(ue);return ue.rootDirs?H(ue.rootDirs,v,U,Re,ue,De,Z):q(v,U,Re,De,Z)}function se(v){var U=e.getSupportedExtensions(v);return v.resolveJsonModule&&e.getEmitModuleResolutionKind(v)===e.ModuleResolutionKind.NodeJs?U.concat(".json"):U}function G(v,U,ue,De){v=v.map(function(Re){return e.normalizePath(e.isRootedDiskPath(Re)?Re:e.combinePaths(U,Re))});var Z=e.firstDefined(v,function(Re){return e.containsPath(Re,ue,U,De)?ue.substr(Re.length):void 0});return e.deduplicate(Tr(v.map(function(Re){return e.combinePaths(Re,Z)}),[ue]),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function H(v,U,ue,De,Z,Re,we){var He=Z.project||Re.getCurrentDirectory(),ve=!(Re.useCaseSensitiveFileNames&&Re.useCaseSensitiveFileNames()),je=G(v,He,ue,ve);return e.flatMap(je,function(w){return q(U,w,De,Re,we)})}function q(v,U,ue,De,Z,Re){var we=ue.extensions,He=ue.includeExtensions;Re===void 0&&(Re=[]),v===void 0&&(v=""),v=e.normalizeSlashes(v),e.hasTrailingDirectorySeparator(v)||(v=e.getDirectoryPath(v)),v===""&&(v="."+e.directorySeparator),v=e.ensureTrailingDirectorySeparator(v);var ve=e.resolvePath(U,v),je=e.hasTrailingDirectorySeparator(ve)?ve:e.getDirectoryPath(ve),w=!(De.useCaseSensitiveFileNames&&De.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(De,je))return Re;var j=e.tryReadDirectory(De,je,we,void 0,["./*"]);if(j){for(var Pe=e.createMap(),a=0,Ze=j;a<Ze.length;a++){var In=Ze[a];if(In=e.normalizePath(In),Z&&e.comparePaths(In,Z,U,w)===0)continue;var et=He||e.fileExtensionIs(In,".json")?e.getBaseFileName(In):e.removeFileExtension(e.getBaseFileName(In));Pe.set(et,e.tryGetExtensionFromPath(In))}Pe.forEach(function(F,c){Re.push(C(c,"script",F))})}var ae=e.tryGetDirectories(De,je);if(ae)for(var fe=0,Le=ae;fe<Le.length;fe++){var Je=Le[fe],$e=e.getBaseFileName(e.normalizePath(Je));$e!=="@types"&&Re.push(P($e))}var Fe=e.findPackageJson(je,De);if(Fe){var cn=e.readJson(Fe,De),Qe=cn.typesVersions;if(typeof Qe=="object"){var ln=e.getPackageJsonTypesVersionsPaths(Qe),ye=ln&&ln.paths,ke=ve.slice(e.ensureTrailingDirectorySeparator(je).length);ye&&be(Re,ke,je,we,ye,De)}}return Re}function be(v,U,ue,De,Z,Re){for(var we in Z){if(!e.hasProperty(Z,we))continue;var He=Z[we];if(He)for(var ve=function(In,et,ae){v.some(function(fe){return fe.name===In})||v.push(C(In,et,ae))},je=0,w=m(we,He,U,ue,De,Re);je<w.length;je++){var j=w[je],Pe=j.name,a=j.kind,Ze=j.extension;ve(Pe,a,Ze)}}}function R(v,U,ue,De,Z){var Re=ue.baseUrl,we=ue.paths,He=[],ve=Q(ue);if(Re){var je=ue.project||De.getCurrentDirectory(),w=e.normalizePath(e.combinePaths(je,Re));q(v,w,ve,De,void 0,He),we&&be(He,v,w,ve.extensions,we,De)}for(var j=K(v),Pe=0,a=y(v,j,Z);Pe<a.length;Pe++){var Ze=a[Pe];He.push(C(Ze,"external module name",void 0))}if(k(De,ue,U,j,ve,He),e.getEmitModuleResolutionKind(ue)===e.ModuleResolutionKind.NodeJs){var In=!1;if(j===void 0)for(var et=function(Je){He.some(function($e){return $e.name===Je})||(In=!0,He.push(C(Je,"external module name",void 0)))},ae=0,fe=T(De,U);ae<fe.length;ae++){var Le=fe[ae];et(Le)}In||e.forEachAncestorDirectory(U,function(Je){var $e=e.combinePaths(Je,"node_modules");e.tryDirectoryExists(De,$e)&&q(v,$e,ve,De,void 0,He)})}return He}function K(v){return S(v)?e.hasTrailingDirectorySeparator(v)?v:e.getDirectoryPath(v):void 0}function m(v,U,ue,De,Z,Re){if(!e.endsWith(v,"*"))return e.stringContains(v,"*")?e.emptyArray:ve(v);var we=v.slice(0,v.length-1),He=e.tryRemovePrefix(ue,we);return He===void 0?ve(we):e.flatMap(U,function(je){return _(He,De,je,Z,Re)});function ve(je){return e.startsWith(je,ue)?[P(je)]:e.emptyArray}}function _(v,U,ue,De,Z){if(!Z.readDirectory)return;var Re=e.hasZeroOrOneAsteriskCharacter(ue)?e.tryParsePattern(ue):void 0;if(!Re)return;var we=e.resolvePath(Re.prefix),He=e.hasTrailingDirectorySeparator(Re.prefix)?we:e.getDirectoryPath(we),ve=e.hasTrailingDirectorySeparator(Re.prefix)?"":e.getBaseFileName(we),je=S(v),w=je?e.hasTrailingDirectorySeparator(v)?v:e.getDirectoryPath(v):void 0,j=je?e.combinePaths(He,ve+w):He,Pe=e.normalizePath(Re.suffix),a=e.normalizePath(e.combinePaths(U,j)),Ze=je?a:e.ensureTrailingDirectorySeparator(a)+ve,In=Pe?"**/*":"./*",et=e.mapDefined(e.tryReadDirectory(Z,a,De,void 0,[In]),function(Le){var Je=e.tryGetExtensionFromPath(Le),$e=fe(Le);return $e===void 0?void 0:C(e.removeFileExtension($e),"script",Je)}),ae=e.mapDefined(e.tryGetDirectories(Z,a).map(function(Le){return e.combinePaths(a,Le)}),function(Le){var Je=fe(Le);return Je===void 0?void 0:P(Je)});return Tr(et,ae);function fe(Le){var Je=I(e.normalizePath(Le),Ze,Pe);return Je===void 0?void 0:D(Je)}}function I(v,U,ue){return e.startsWith(v,U)&&e.endsWith(v,ue)?v.slice(U.length,v.length-ue.length):void 0}function D(v){return v[0]===e.directorySeparator?v.slice(1):v}function y(v,U,ue){var De=ue.getAmbientModules().map(function(we){return e.stripQuotes(we.name)}),Z=De.filter(function(we){return e.startsWith(we,v)});if(U!==void 0){var Re=e.ensureTrailingDirectorySeparator(U);return Z.map(function(we){return e.removePrefix(we,Re)})}return Z}function E(v,U,ue,De){var Z=e.getTokenAtPosition(v,U),Re=e.getLeadingCommentRanges(v.text,Z.pos),we=Re&&e.find(Re,function(Ze){return U>=Ze.pos&&U<=Ze.end});if(!we)return;var He=v.text.slice(we.pos,U),ve=Y.exec(He);if(!ve)return;var je=ve[1],w=ve[2],j=ve[3],Pe=e.getDirectoryPath(v.path),a=w==="path"?q(j,Pe,Q(ue,!0),De,v.path):w==="types"?k(De,ue,Pe,K(j),Q(ue)):e.Debug.fail();return h(j,we.pos+je.length,a)}function k(v,U,ue,De,Z,Re){Re===void 0&&(Re=[]);for(var we=e.createMap(),He=e.tryAndIgnoreErrors(function(){return e.getEffectiveTypeRoots(U,v)})||e.emptyArray,ve=0,je=He;ve<je.length;ve++){var w=je[ve];In(w)}for(var j=0,Pe=e.findPackageJsons(ue,v);j<Pe.length;j++){var a=Pe[j],Ze=e.combinePaths(e.getDirectoryPath(a),"node_modules/@types");In(Ze)}return Re;function In(et){if(!e.tryDirectoryExists(v,et))return;for(var ae=0,fe=e.tryGetDirectories(v,et);ae<fe.length;ae++){var Le=fe[ae],Je=e.unmangleScopedPackageName(Le);if(U.types&&!e.contains(U.types,Je))continue;if(De===void 0)we.has(Je)||(Re.push(C(Je,"external module name",void 0)),we.set(Je,!0));else{var $e=e.combinePaths(et,Le),Fe=e.tryRemoveDirectoryPrefix(De,Je,e.hostGetCanonicalFileName(v));Fe!==void 0&&q(Fe,$e,Z,v,void 0,Re)}}}}function T(v,U){if(!v.readFile||!v.fileExists)return e.emptyArray;for(var ue=[],De=0,Z=e.findPackageJsons(U,v);De<Z.length;De++)for(var Re=Z[De],we=e.readJson(Re,v),He=0,ve=pe;He<ve.length;He++){var je=ve[He],w=we[je];if(!w)continue;for(var j in w)w.hasOwnProperty(j)&&!e.startsWith(j,"@types/")&&ue.push(j)}return ue}function ne(v,U){var ue=Math.max(v.lastIndexOf(e.directorySeparator),v.lastIndexOf("\\")),De=ue!==-1?ue+1:0,Z=v.length-De;return Z===0||e.isIdentifierText(v.substr(De,Z),99)?void 0:e.createTextSpan(U+De,Z)}function O(v){if(v&&v.length>=2&&v.charCodeAt(0)===46){var U=v.length>=3&&v.charCodeAt(1)===46?2:1,ue=v.charCodeAt(U);return ue===47||ue===92}return!1}var Y=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,pe=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function S(v){return e.stringContains(v,e.directorySeparator)}})(qe=M.StringCompletions||(M.StringCompletions={}))})(o=e.Completions||(e.Completions={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe;(function(ae){ae.LocationPriority="0",ae.OptionalMember="1",ae.MemberDeclaredBySpreadAssignment="2",ae.SuggestedClassMembers="3",ae.GlobalsOrKeywords="4",ae.AutoImportSuggestions="5",ae.JavascriptIdentifiers="6"})(qe=M.SortText||(M.SortText={}));var Ee;(function(ae){ae[ae.ThisType=1]="ThisType",ae[ae.SymbolMember=2]="SymbolMember",ae[ae.Export=4]="Export",ae[ae.Promise=8]="Promise",ae[ae.Nullable=16]="Nullable",ae[ae.SymbolMemberNoExport=2]="SymbolMemberNoExport",ae[ae.SymbolMemberExport=6]="SymbolMemberExport"})(Ee||(Ee={}));function Ge(ae){return!!(ae.kind&1)}function Be(ae){return!!(ae.kind&2)}function he(ae){return!!(ae.kind&4)}function ee(ae){return!!(ae.kind&8)}function f(ae){return!!(ae.kind&16)}var J;(function(ae){ae[ae.None=0]="None",ae[ae.All=1]="All",ae[ae.ClassElementKeywords=2]="ClassElementKeywords",ae[ae.InterfaceElementKeywords=3]="InterfaceElementKeywords",ae[ae.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",ae[ae.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",ae[ae.TypeAssertionKeywords=6]="TypeAssertionKeywords",ae[ae.TypeKeywords=7]="TypeKeywords",ae[ae.Last=7]="Last"})(J||(J={}));var Oe;(function(ae){ae[ae.Continue=0]="Continue",ae[ae.Success=1]="Success",ae[ae.Fail=2]="Fail"})(Oe||(Oe={}));function N(){var ae,fe,Le;return{isEmpty:function(){return!ae},clear:function(){ae=void 0,Le=void 0,fe=void 0},set:function(Je,$e,Fe){ae=$e,Le=Je,Fe&&(fe=Fe)},get:function(Je,$e,Fe){return Je!==Le?void 0:Fe?fe===Fe?ae:void 0:(e.forEach(ae,function(cn){cn.symbol.declarations&&(cn.symbol=$e.getMergedSymbol(cn.origin.isDefaultExport&&cn.symbol.declarations[0].localSymbol||cn.symbol.declarations[0].symbol)),cn.origin.moduleSymbol.declarations&&(cn.origin.moduleSymbol=$e.getMergedSymbol(cn.origin.moduleSymbol.declarations[0].symbol))}),ae)}}}M.createImportSuggestionsForFileCache=N;function Te(ae,fe,Le,Je,$e,Fe,cn){var Qe=fe.getTypeChecker(),ln=fe.getCompilerOptions(),ye=e.findPrecedingToken($e,Je);if(cn&&!e.isInString(Je,$e,ye)&&!Ze(Je,cn,ye,$e))return;var ke=M.StringCompletions.getStringLiteralCompletions(Je,$e,ye,Qe,ln,ae,Le,Fe);if(ke)return ke;if(ye&&e.isBreakOrContinueStatement(ye.parent)&&(ye.kind===76||ye.kind===81||ye.kind===75))return H(ye.parent);var F=pe(fe,Le,Je,x(Je,ln),$e,Fe,void 0,ae);if(!F)return;switch(F.kind){case 0:return ce(Je,Qe,ln,Le,F,Fe);case 1:return ie(e.JsDoc.getJSDocTagNameCompletions());case 2:return ie(e.JsDoc.getJSDocTagCompletions());case 3:return ie(e.JsDoc.getJSDocParameterNameCompletions(F.tag));default:return e.Debug.assertNever(F)}}M.getCompletionsAtPosition=Te;function ie(ae){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:ae}}function ce(ae,fe,Le,Je,$e,Fe){var cn=$e.symbols,Qe=$e.completionKind,ln=$e.isInSnippetScope,ye=$e.isNewIdentifierLocation,ke=$e.location,F=$e.propertyAccessToConvert,c=$e.keywordFilters,L=$e.literals,te=$e.symbolToOriginInfoMap,Se=$e.recommendedCompletion,Ne=$e.isJsxInitializer,ze=$e.insideJsDocTagTypeExpression,Tn=$e.symbolToSortTextMap;if(ke&&ke.parent&&e.isJsxClosingElement(ke.parent)){var wn=ke.parent.parent.openingElement.tagName,jn=!!e.findChildOfKind(ke.parent,31,ae),nn={name:wn.getFullText(ae)+(jn?"":">"),kind:"class",kindModifiers:void 0,sortText:qe.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[nn]}}var pn=[];if(x(ae,Le)){var le=G(cn,pn,ke,ae,fe,Le.target,Je,Qe,Fe,F,Ne,Se,te,Tn);P(ae,ke.pos,le,Le.target,pn)}else{if(!ye&&(!cn||cn.length===0)&&c===0)return;G(cn,pn,ke,ae,fe,Le.target,Je,Qe,Fe,F,Ne,Se,te,Tn)}if(c!==0)for(var oe=e.arrayToSet(pn,function(at){return at.name}),Cn=0,yn=ue(c,!ze&&e.isSourceFileJS(ae));Cn<yn.length;Cn++){var _e=yn[Cn];oe.has(_e.name)||pn.push(_e)}for(var dn=0,un=L;dn<un.length;dn++){var Rn=un[dn];pn.push(X(Rn))}return{isGlobalCompletion:ln,isMemberCompletion:C(Qe),isNewIdentifierLocation:ye,entries:pn}}function x(ae,fe){return e.isSourceFileJS(ae)&&!e.isCheckJsEnabledForFile(ae,fe)}function C(ae){switch(ae){case 0:case 3:case 2:return!0;default:return!1}}function P(ae,fe,Le,Je,$e){e.getNameTable(ae).forEach(function(Fe,cn){if(Fe===fe)return;var Qe=e.unescapeLeadingUnderscores(cn);e.addToSeen(Le,Qe)&&e.isIdentifierText(Qe,Je)&&$e.push({name:Qe,kind:"warning",kindModifiers:"",sortText:qe.JavascriptIdentifiers})})}var h=function(ae){return typeof ae=="object"?e.pseudoBigIntToString(ae)+"n":JSON.stringify(ae)};function X(ae){return{name:h(ae),kind:"string",kindModifiers:"",sortText:qe.LocationPriority}}function $(ae,fe,Le,Je,$e,Fe,cn,Qe,ln,ye,ke,F){var c,L,te=Qe&&f(Qe),Se=Qe&&Be(Qe)||cn;if(Qe&&Ge(Qe))c=cn?"this"+(te?"?.":"")+"["+e.quote(Fe,F)+"]":"this"+(te?"?.":".")+Fe;else if((Se||te)&&ye){c=Se?cn?"["+e.quote(Fe,F)+"]":"["+Fe+"]":Fe,(te||ye.questionDotToken)&&(c="?."+c);var Ne=e.findChildOfKind(ye,24,Je)||e.findChildOfKind(ye,28,Je);if(!Ne)return;var ze=e.startsWith(Fe,ye.name.text)?ye.name.end:Ne.end;L=e.createTextSpanFromBounds(Ne.getStart(Je),ze)}if(ke&&(c===void 0&&(c=Fe),c="{"+c+"}",typeof ke!="boolean"&&(L=e.createTextSpanFromNode(ke,Je))),Qe&&ee(Qe)&&ye){c===void 0&&(c=Fe);var Tn="(await "+ye.expression.getText()+")";c=cn?""+Tn+c:""+Tn+(te?"?.":".")+c,L=e.createTextSpanFromBounds(ye.getStart(Je),ye.end)}return c!==void 0&&!F.includeCompletionsWithInsertText?void 0:{name:Fe,kind:e.SymbolDisplay.getSymbolKind($e,ae,Le),kindModifiers:e.SymbolDisplay.getSymbolModifiers(ae),sortText:fe,source:se(Qe),hasAction:z(!!Qe&&he(Qe)),isRecommended:z(Q(ae,ln,$e)),insertText:c,replacementSpan:L}}function Q(ae,fe,Le){return ae===fe||!!(ae.flags&1048576)&&Le.getExportSymbolOfSymbol(ae)===fe}function z(ae){return ae?!0:void 0}function se(ae){return ae&&he(ae)?e.stripQuotes(ae.moduleSymbol.name):void 0}function G(ae,fe,Le,Je,$e,Fe,cn,Qe,ln,ye,ke,F,c,L){for(var te=e.timestamp(),Se=e.createMap(),Ne=0,ze=ae;Ne<ze.length;Ne++){var Tn=ze[Ne],wn=c?c[e.getSymbolId(Tn)]:void 0,jn=S(Tn,Fe,wn,Qe);if(!jn)continue;var nn=jn.name,pn=jn.needsConvertPropertyAccess;if(Se.has(nn))continue;var le=$(Tn,L&&L[e.getSymbolId(Tn)]||qe.LocationPriority,Le,Je,$e,nn,pn,wn,F,ye,ke,ln);if(!le)continue;!wn&&!(Tn.parent===void 0&&!e.some(Tn.declarations,function(oe){return oe.getSourceFile()===Le.getSourceFile()}))&&Se.set(nn,!0),fe.push(le)}return cn("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-te)),Se}M.getCompletionEntriesFromSymbols=G;function H(ae){var fe=q(ae);if(fe.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:fe}}function q(ae){for(var fe=[],Le=e.createMap(),Je=ae;Je&&!e.isFunctionLike(Je);){if(e.isLabeledStatement(Je)){var $e=Je.label.text;Le.has($e)||(Le.set($e,!0),fe.push({name:$e,kindModifiers:"",kind:"label",sortText:qe.LocationPriority}))}Je=Je.parent}return fe}function be(ae,fe,Le,Je,$e,Fe){var cn=ae.getCompilerOptions(),Qe=pe(ae,fe,Le,x(Le,cn),Je,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},$e,Fe);if(!Qe)return{type:"none"};if(Qe.kind!==0)return{type:"request",request:Qe};var ln=Qe.symbols,ye=Qe.literals,ke=Qe.location,F=Qe.completionKind,c=Qe.symbolToOriginInfoMap,L=Qe.previousToken,te=Qe.isJsxInitializer,Se=e.find(ye,function(Ne){return h(Ne)===$e.name});return Se!==void 0?{type:"literal",literal:Se}:e.firstDefined(ln,function(Ne){var ze=c[e.getSymbolId(Ne)],Tn=S(Ne,cn.target,ze,F);return Tn&&Tn.name===$e.name&&se(ze)===$e.source?{type:"symbol",symbol:Ne,location:ke,symbolToOriginInfoMap:c,previousToken:L,isJsxInitializer:te}:void 0})||{type:"none"}}function R(ae,fe,Le){return fe&&he(fe)&&(fe.isDefaultExport&&ae.escapedName==="default"||ae.escapedName==="export=")?e.firstDefined(ae.declarations,function(Je){return e.isExportAssignment(Je)&&e.isIdentifier(Je.expression)?Je.expression.text:void 0})||e.codefix.moduleSymbolToValidIdentifier(fe.moduleSymbol,Le):ae.name}function K(ae,fe,Le,Je,$e,Fe,cn,Qe,ln){var ye=ae.getTypeChecker(),ke=ae.getCompilerOptions(),F=$e.name,c=e.findPrecedingToken(Je,Le);if(e.isInString(Le,Je,c))return M.StringCompletions.getStringLiteralCompletionDetails(F,Le,Je,c,ye,ke,Fe,ln);var L=be(ae,fe,Le,Je,$e,Fe);switch(L.type){case"request":{var te=L.request;switch(te.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(F);case 2:return e.JsDoc.getJSDocTagCompletionDetails(F);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(F);default:return e.Debug.assertNever(te)}}case"symbol":{var Se=L.symbol,Ne=L.location,ze=L.symbolToOriginInfoMap,Tn=L.previousToken,wn=D(ze,Se,ae,ye,Fe,ke,Le,Je,Tn,cn,Qe),jn=wn.codeActions,nn=wn.sourceDisplay;return _(Se,ye,Le,Ne,ln,jn,nn)}case"literal":{var pn=L.literal;return m(h(pn),"string",typeof pn=="string"?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral)}case"none":return U().some(function(le){return le.name===F})?m(F,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(L)}}M.getCompletionEntryDetails=K;function m(ae,fe,Le){return I(ae,"",fe,[e.displayPart(ae,Le)])}function _(ae,fe,Le,Je,$e,Fe,cn){var Qe=fe.runWithCancellationToken($e,function(c){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(c,ae,Le,Je,Je,7)}),ln=Qe.displayParts,ye=Qe.documentation,ke=Qe.symbolKind,F=Qe.tags;return I(ae.name,e.SymbolDisplay.getSymbolModifiers(ae),ke,ln,ye,F,Fe,cn)}M.createCompletionDetailsForSymbol=_;function I(ae,fe,Le,Je,$e,Fe,cn,Qe){return{name:ae,kindModifiers:fe,kind:Le,displayParts:Je,documentation:$e,tags:Fe,codeActions:cn,source:Qe}}M.createCompletionDetails=I;function D(ae,fe,Le,Je,$e,Fe,cn,Qe,ln,ye,ke){var F=ae[e.getSymbolId(fe)];if(!F||!he(F))return{codeActions:void 0,sourceDisplay:void 0};var c=F.moduleSymbol,L=Je.getMergedSymbol(e.skipAlias(fe.exportSymbol||fe,Je)),te=e.codefix.getImportCompletionAction(L,c,cn,R(fe,F,Fe.target),$e,Le,ye,ln&&e.isIdentifier(ln)?ln.getStart(cn):Qe,ke),Se=te.moduleSpecifier,Ne=te.codeAction;return{sourceDisplay:[e.textPart(Se)],codeActions:[Ne]}}function y(ae,fe,Le,Je,$e,Fe){var cn=be(ae,fe,Le,Je,$e,Fe);return cn.type==="symbol"?cn.symbol:void 0}M.getCompletionEntrySymbol=y;var E;(function(ae){ae[ae.Data=0]="Data",ae[ae.JsDocTagName=1]="JsDocTagName",ae[ae.JsDocTag=2]="JsDocTag",ae[ae.JsDocParameterName=3]="JsDocParameterName"})(E||(E={}));var k;(function(ae){ae[ae.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",ae[ae.Global=1]="Global",ae[ae.PropertyAccess=2]="PropertyAccess",ae[ae.MemberLike=3]="MemberLike",ae[ae.String=4]="String",ae[ae.None=5]="None"})(k=M.CompletionKind||(M.CompletionKind={}));function T(ae,fe,Le){return e.firstDefined(fe&&(fe.isUnion()?fe.types:[fe]),function(Je){var $e=Je&&Je.symbol;return $e&&$e.flags&(8|384|32)&&!e.isAbstractConstructorSymbol($e)?O($e,ae,Le):void 0})}function ne(ae,fe,Le,Je){var $e=ae.parent;switch(ae.kind){case 75:return e.getContextualTypeFromParent(ae,Je);case 62:switch($e.kind){case 241:return Je.getContextualType($e.initializer);case 208:return Je.getTypeAtLocation($e.left);case 271:return Je.getContextualTypeForJsxAttribute($e);default:return}case 98:return Je.getContextualType($e);case 77:return e.getSwitchedType(e.cast($e,e.isCaseClause),Je);case 18:return e.isJsxExpression($e)&&$e.parent.kind!==264?Je.getContextualTypeForJsxAttribute($e.parent):void 0;default:var Fe=e.SignatureHelp.getArgumentInfoForCompletions(ae,fe,Le);return Fe?Je.getContextualTypeForArgumentAtIndex(Fe.invocation,Fe.argumentIndex+(ae.kind===27?1:0)):e.isEqualityOperatorKind(ae.kind)&&e.isBinaryExpression($e)&&e.isEqualityOperatorKind($e.operatorToken.kind)?Je.getTypeAtLocation($e.left):Je.getContextualType(ae)}}function O(ae,fe,Le){var Je=Le.getAccessibleSymbolChain(ae,fe,67108863,!1);return Je?e.first(Je):ae.parent&&(Y(ae.parent)?ae:O(ae.parent,fe,Le))}function Y(ae){return ae.declarations.some(function(fe){return fe.kind===288})}function pe(ae,fe,Le,Je,$e,Fe,cn,Qe){var ln=ae.getTypeChecker(),ye=e.timestamp(),ke=e.getTokenAtPosition(Le,$e);fe("getCompletionData: Get current token: "+(e.timestamp()-ye)),ye=e.timestamp();var F=e.isInComment(Le,$e,ke);fe("getCompletionData: Is inside comment: "+(e.timestamp()-ye));var c=!1,L=!1;if(F){if(e.hasDocComment(Le,$e)){if(Le.text.charCodeAt($e-1)===64)return{kind:1};var te=e.getLineStartPositionForPosition($e,Le);if(!Le.text.substring(te,$e).match(/[^\*|\s|(/\*\*)]/))return{kind:2}}var Se=je(ke,$e);if(Se){if(Se.tagName.pos<=$e&&$e<=Se.tagName.end)return{kind:1};if(_n(Se)&&Se.typeExpression&&Se.typeExpression.kind===292&&(ke=e.getTokenAtPosition(Le,$e),(!ke||!e.isDeclarationName(ke)&&(ke.parent.kind!==316||ke.parent.name!==ke))&&(c=Ri(Se.typeExpression))),e.isJSDocParameterTag(Se)&&(e.nodeIsMissing(Se.name)||Se.name.pos<=$e&&$e<=Se.name.end))return{kind:3,tag:Se}}if(!c){fe("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}ye=e.timestamp();var Ne=e.findPrecedingToken($e,Le,void 0);fe("getCompletionData: Get previous token 1: "+(e.timestamp()-ye));var ze=Ne;if(ze&&$e<=ze.end&&(e.isIdentifier(ze)||e.isKeyword(ze.kind))){var Tn=e.timestamp();ze=e.findPrecedingToken(ze.getFullStart(),Le,void 0),fe("getCompletionData: Get previous token 2: "+(e.timestamp()-Tn))}var wn=ke,jn,nn=!1,pn=!1,le=!1,oe=!1,Cn=!1,yn=e.getTouchingPropertyName(Le,$e);if(ze){if(xa(ze)){fe("Returning an empty list because completion was requested in an invalid position.");return}var _e=ze.parent;if(ze.kind===24||ze.kind===28){nn=ze.kind===24,pn=ze.kind===28;switch(_e.kind){case 193:if(jn=_e,wn=jn.expression,wn.end===ze.pos&&e.isCallExpression(wn)&&wn.getChildCount(Le)&&e.last(wn.getChildren(Le)).kind!==21)return;break;case 152:wn=_e.left;break;case 248:wn=_e.name;break;case 187:case 218:wn=_e;break;default:return}}else if(Le.languageVariant===1){if(_e&&_e.kind===193&&(ze=_e,_e=_e.parent),ke.parent===yn)switch(ke.kind){case 31:(ke.parent.kind===264||ke.parent.kind===266)&&(yn=ke);break;case 43:ke.parent.kind===265&&(yn=ke);break}switch(_e.kind){case 267:ze.kind===43&&(oe=!0,yn=ze);break;case 208:if(!In(_e))break;case 265:case 264:case 266:ze.kind===29&&(le=!0,yn=ze);break;case 271:switch(Ne.kind){case 62:Cn=!0;break;case 75:_e!==Ne.parent&&!_e.initializer&&e.findChildOfKind(_e,62,Le)&&(Cn=Ne)}break}}}var dn=e.timestamp(),un=5,Rn=!1,at=0,Bn=[],ut=[],ct=[],ot=Qe.getImportSuggestionsCache&&Qe.getImportSuggestionsCache();if(nn||pn)yt();else if(le){var dt=e.Debug.assertEachDefined(ln.getJsxIntrinsicTagNamesAt(yn),"getJsxIntrinsicTagNames() should all be defined");wr(),Bn=dt.concat(Bn),un=3,at=0}else if(oe){var Ct=ze.parent.parent.openingElement.tagName,st=ln.getSymbolAtLocation(Ct);st&&(Bn=[st]),un=3,at=0}else if(!wr())return;fe("getCompletionData: Semantic work: "+(e.timestamp()-dn));var Kn=Ne&&ne(Ne,$e,Le,ln),Ie=e.mapDefined(Kn&&(Kn.isUnion()?Kn.types:[Kn]),function(xt){return xt.isLiteral()?xt.value:void 0}),Ce=Ne&&Kn&&T(Ne,Kn,ln);return{kind:0,symbols:Bn,completionKind:un,isInSnippetScope:L,propertyAccessToConvert:jn,isNewIdentifierLocation:Rn,location:yn,keywordFilters:at,literals:Ie,symbolToOriginInfoMap:ut,recommendedCompletion:Ce,previousToken:Ne,isJsxInitializer:Cn,insideJsDocTagTypeExpression:c,symbolToSortTextMap:ct};function _n(xt){switch(xt.kind){case 310:case 316:case 311:case 313:case 315:return!0;default:return!1}}function yt(){un=2;var xt=e.isLiteralImportTypeNode(wn),Kt=c||xt&&!wn.isTypeOf||e.isPartOfTypeNode(wn.parent)||e.isPossiblyTypeArgumentPosition(ze,Le,ln),yr=e.isInRightSideOfInternalImportEqualsDeclaration(wn);if(e.isEntityName(wn)||xt){var Jr=e.isModuleDeclaration(wn.parent);Jr&&(Rn=!0);var _a=ln.getSymbolAtLocation(wn);if(_a&&(_a=e.skipAlias(_a,ln),_a.flags&(1536|384))){for(var La=e.Debug.assertEachDefined(ln.getExportsOfModule(_a),"getExportsOfModule() should all be defined"),qr=function(tr){return ln.isValidPropertyAccess(xt?wn:wn.parent,tr.name)},pi=function(tr){return bt(tr)},Li=Jr?function(tr){return!!(tr.flags&1920)&&!tr.declarations.every(function(dr){return dr.parent===wn.parent})}:yr?function(tr){return pi(tr)||qr(tr)}:Kt?pi:qr,mi=0,da=La;mi<da.length;mi++){var en=da[mi];Li(en)&&Bn.push(en)}if(!Kt&&_a.declarations&&_a.declarations.some(function(tr){return tr.kind!==288&&tr.kind!==248&&tr.kind!==247})){var vn=ln.getTypeOfSymbolAtLocation(_a,wn).getNonOptionalType(),Ln=!1;if(vn.isNullableType()){var Vn=nn&&!pn&&Fe.includeAutomaticOptionalChainCompletions!==!1;(Vn||pn)&&(vn=vn.getNonNullableType(),Vn&&(Ln=!0))}Dt(vn,!!(wn.flags&32768),Ln)}return}}if(e.isMetaProperty(wn)&&(wn.keywordToken===98||wn.keywordToken===95)){var Mt=wn.keywordToken===98?"target":"meta";Bn.push(ln.createSymbol(4,e.escapeLeadingUnderscores(Mt)));return}if(!Kt){var vn=ln.getTypeAtLocation(wn).getNonOptionalType(),Ln=!1;if(vn.isNullableType()){var Vn=nn&&!pn&&Fe.includeAutomaticOptionalChainCompletions!==!1;(Vn||pn)&&(vn=vn.getNonNullableType(),Vn&&(Ln=!0))}Dt(vn,!!(wn.flags&32768),Ln)}}function Dt(xt,Kt,yr){Rn=!!xt.getStringIndexType(),pn&&e.some(xt.getCallSignatures())&&(Rn=!0);var Jr=wn.kind===187?wn:wn.parent;if(Je)Bn.push.apply(Bn,j(xt,ln));else for(var _a=0,La=xt.getApparentProperties();_a<La.length;_a++){var qr=La[_a];ln.isValidPropertyAccessForCompletions(Jr,xt,qr)&&Ht(qr,!1,yr)}if(Kt&&Fe.includeCompletionsWithInsertText){var pi=ln.getPromisedTypeOfPromise(xt);if(pi)for(var Li=0,mi=pi.getApparentProperties();Li<mi.length;Li++){var qr=mi[Li];ln.isValidPropertyAccessForCompletions(Jr,pi,qr)&&Ht(qr,!0,yr)}}}function Ht(xt,Kt,yr){var Jr=e.firstDefined(xt.declarations,function(da){return e.tryCast(e.getNameOfDeclaration(da),e.isComputedPropertyName)});if(Jr){var _a=$t(Jr.expression),La=_a&&ln.getSymbolAtLocation(_a),qr=La&&O(La,ze,ln);if(qr&&!ut[e.getSymbolId(qr)]){Bn.push(qr);var pi=qr.parent;ut[e.getSymbolId(qr)]=!pi||!e.isExternalModuleSymbol(pi)?{kind:mi(2)}:{kind:mi(6),moduleSymbol:pi,isDefaultExport:!1}}else Fe.includeCompletionsWithInsertText&&(Li(xt),Bn.push(xt))}else Li(xt),Bn.push(xt);function Li(da){Fe.includeCompletionsWithInsertText&&(Kt&&!ut[e.getSymbolId(da)]?ut[e.getSymbolId(da)]={kind:mi(8)}:yr&&(ut[e.getSymbolId(da)]={kind:16}))}function mi(da){return yr?da|16:da}}function $t(xt){return e.isIdentifier(xt)?xt:e.isPropertyAccessExpression(xt)?$t(xt.expression):void 0}function wr(){var xt=xi()||vi()||Yr()||Oi()||Hr()||(mt(),1);return xt===1}function Yr(){return ua(ze)?(un=5,Rn=!0,at=4,1):0}function Hr(){var xt=Vo(ze),Kt=xt&&ln.getContextualType(xt.attributes);return Kt?(Bn=_o(w(Kt,xt.attributes,ln),xt.attributes.properties),ji(),un=3,Rn=!1,1):0}function mt(){at=bi(ze)?5:1,un=1,Rn=ri(ze),Ne!==ze&&e.Debug.assert(!!Ne,"Expected 'contextToken' to be defined when different from 'previousToken'.");var xt=Ne!==ze?Ne.getStart():$e,Kt=rr(ze,xt,Le)||Le;L=Lt(Kt);var yr=pt(),Jr=(yr?0:111551)|788968|1920|2097152;Bn=e.Debug.assertEachDefined(ln.getSymbolsInScope(Kt,Jr),"getSymbolsInScope() should all be defined");for(var _a=0,La=Bn;_a<La.length;_a++){var qr=La[_a];!ln.isArgumentsSymbol(qr)&&!e.some(qr.declarations,function(vn){return vn.getSourceFile()===Le})&&(ct[e.getSymbolId(qr)]=qe.GlobalsOrKeywords)}if(Fe.includeCompletionsWithInsertText&&Kt.kind!==288){var pi=ln.tryGetThisTypeAt(Kt,!1);if(pi)for(var Li=0,mi=j(pi,ln);Li<mi.length;Li++){var qr=mi[Li];ut[e.getSymbolId(qr)]={kind:1},Bn.push(qr),ct[e.getSymbolId(qr)]=qe.SuggestedClassMembers}}if(va()){var da=Ne&&e.isIdentifier(Ne)?Ne.text.toLowerCase():"",en=Ke(ae.getCompilerOptions().target,Qe);!cn&&ot&&ot.set(Le.fileName,en,Qe.getProjectVersion&&Qe.getProjectVersion()),en.forEach(function(vn){var Ln=vn.symbol,Vn=vn.symbolName,Mt=vn.skipFilter,tr=vn.origin;if(cn){if(cn.source&&e.stripQuotes(tr.moduleSymbol.name)!==cn.source)return}else if(!Mt&&!$n(Vn.toLowerCase(),da))return;var dr=e.getSymbolId(Ln);Bn.push(Ln),ut[dr]=tr,ct[dr]=qe.AutoImportSuggestions})}Wn(Bn)}function va(){return Fe.includeCompletionsForModuleExports?Le.externalModuleIndicator?!0:Le.commonJsModuleIndicator?!1:e.compilerOptionsIndicateEs6Modules(ae.getCompilerOptions())?!0:e.programContainsEs6Modules(ae):!1}function Lt(xt){switch(xt.kind){case 288:case 210:case 274:case 222:return!0;default:return e.isStatement(xt)}}function Wn(xt){var Kt=pt();Kt&&(at=Vt()?6:7),e.filterMutate(xt,function(yr){if(!e.isSourceFile(yn)){if(e.isExportAssignment(yn.parent))return!0;if(yr=e.skipAlias(yr,ln),e.isInRightSideOfInternalImportEqualsDeclaration(yn))return!!(yr.flags&1920);if(Kt)return bt(yr)}return!!(e.getCombinedLocalAndExportSymbolFlags(yr)&111551)})}function Vt(){return e.isAssertionExpression(ze.parent)}function pt(){return c||!Tt(ze)&&(e.isPossiblyTypeArgumentPosition(ze,Le,ln)||e.isPartOfTypeNode(yn)||ht(ze))}function Tt(xt){return xt&&xt.kind===107&&(xt.parent.kind===171||e.isTypeOfExpression(xt.parent))}function ht(xt){if(xt){var Kt=xt.parent.kind;switch(xt.kind){case 58:return Kt===158||Kt===157||Kt===155||Kt===241||e.isFunctionLikeKind(Kt);case 62:return Kt===246;case 122:return Kt===216;case 29:return Kt===168||Kt===198;case 89:return Kt===154}}return!1}function bt(xt,Kt){Kt===void 0&&(Kt=e.createMap());var yr=e.skipAlias(xt.exportSymbol||xt,ln);return!!(yr.flags&788968)||!!(yr.flags&1536)&&e.addToSeen(Kt,e.getSymbolId(yr))&&ln.getExportsOfModule(yr).some(function(Jr){return bt(Jr,Kt)})}function Ke(xt,Kt){var yr=ot&&ot.get(Le.fileName,ln,cn&&Kt.getProjectVersion?Kt.getProjectVersion():void 0);if(yr)return fe("getSymbolsFromOtherSourceFileExports: Using cached list"),yr;var Jr=e.timestamp();fe("getSymbolsFromOtherSourceFileExports: Recomputing list"+(cn?" for details entry":""));var _a=e.createMap(),La=e.createMap(),qr=e.createMap(),pi=[],Li=e.createMap();return e.codefix.forEachExternalModuleToImportFrom(ae,Kt,Le,!cn,function(da){if(cn&&cn.source&&e.stripQuotes(da.name)!==cn.source)return;var en=ln.resolveExternalModuleSymbol(da);if(!e.addToSeen(_a,e.getSymbolId(en)))return;en!==da&&e.every(en.declarations,function(Ia){return!!Ia.getSourceFile().externalModuleIndicator&&!e.findAncestor(Ia,e.isGlobalScopeAugmentation)})&&mi(en,da,!0);for(var vn=0,Ln=ln.getExportsOfModule(da);vn<Ln.length;vn++){var Vn=Ln[vn];if(e.some(Vn.declarations,function(Ia){return e.isExportSpecifier(Ia)&&!!Ia.propertyName&&e.isIdentifierANonContextualKeyword(Ia.name)}))continue;var Mt=e.getSymbolId(Vn).toString(),tr=ln.getMergedSymbol(Vn.parent)!==en;if(tr||e.some(Vn.declarations,function(Ia){return e.isExportSpecifier(Ia)&&!Ia.propertyName&&!!Ia.parent.parent.moduleSpecifier})){var dr=tr?Vn:Pn(Vn);if(!dr)continue;var Pr=e.getSymbolId(dr).toString(),za=Li.has(Pr)||La.has(Pr);za?e.addToSeen(La,Mt):(qr.set(Pr,{alias:Vn,moduleSymbol:da}),La.set(Mt,!0))}else qr.delete(Mt),mi(Vn,da)}}),qr.forEach(function(da){var en=da.alias,vn=da.moduleSymbol;return mi(en,vn)}),fe("getSymbolsFromOtherSourceFileExports: "+(e.timestamp()-Jr)),pi;function mi(da,en,vn){vn===void 0&&(vn=!1);var Ln=da.escapedName==="default";Ln&&(da=e.getLocalSymbolForExportDefault(da)||da),e.addToSeen(Li,e.getSymbolId(da));var Vn={kind:4,moduleSymbol:en,isDefaultExport:Ln};pi.push({symbol:da,symbolName:R(da,Vn,xt),origin:Vn,skipFilter:vn})}}function Pn(xt){return et(ln,xt,function(Kt){return e.some(Kt.declarations,function(yr){return e.isExportSpecifier(yr)||!!yr.localSymbol})})}function $n(xt,Kt){if(Kt.length===0)return!0;for(var yr=0,Jr=0;Jr<xt.length;Jr++)if(xt.charCodeAt(Jr)===Kt.charCodeAt(yr)&&(yr++,yr===Kt.length))return!0;return!1}function rr(xt,Kt,yr){for(var Jr=xt;Jr&&!e.positionBelongsToNode(Jr,Kt,yr);)Jr=Jr.parent;return Jr}function xa(xt){var Kt=e.timestamp(),yr=Si(xt)||wo(xt)||uo(xt)||Fa(xt);return fe("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-Kt)),yr}function Fa(xt){if(xt.kind===11)return!0;if(xt.kind===31&&xt.parent){if(xt.parent.kind===266)return!0;if(xt.parent.kind===267||xt.parent.kind===265)return!!xt.parent.parent&&xt.parent.parent.kind===264}return!1}function ri(xt){if(xt){var Kt=xt.parent.kind;switch(ve(xt)){case 27:return Kt===195||Kt===161||Kt===196||Kt===191||Kt===208||Kt===169;case 20:return Kt===195||Kt===161||Kt===196||Kt===199||Kt===181;case 22:return Kt===191||Kt===166||Kt===153;case 134:case 135:return!0;case 24:return Kt===248;case 18:return Kt===244;case 62:return Kt===241||Kt===208;case 15:return Kt===210;case 16:return Kt===220;case 118:case 116:case 117:return Kt===158}}return!1}function Si(xt){return(e.isRegularExpressionLiteral(xt)||e.isStringTextContainingNode(xt))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(xt)),$e)||$e===xt.end&&(!!xt.isUnterminated||e.isRegularExpressionLiteral(xt)))}function xi(){var xt=Ja(ze);if(!xt)return 0;un=0;var Kt,yr;if(xt.kind===192){var Jr=ln.getContextualType(xt,4);if(!Jr)return 2;Rn=e.hasIndexSignature(Jr),Kt=w(Jr,xt,ln),yr=xt.properties}else{e.Debug.assert(xt.kind===188),Rn=!1;var _a=e.getRootDeclaration(xt.parent);if(!e.isVariableLike(_a))return e.Debug.fail("Root declaration is not variable-like.");var La=e.hasInitializer(_a)||e.hasType(_a)||_a.parent.parent.kind===231;if(!La&&_a.kind===155&&(e.isExpression(_a.parent)?La=!!ln.getContextualType(_a.parent):(_a.parent.kind===160||_a.parent.kind===163)&&(La=e.isExpression(_a.parent.parent)&&!!ln.getContextualType(_a.parent.parent))),La){var Jr=ln.getTypeAtLocation(xt);if(!Jr)return 2;Kt=ln.getPropertiesOfType(Jr).filter(function(pi){return!(e.getDeclarationModifierFlagsFromSymbol(pi)&24)}),yr=xt.elements}}return Kt&&Kt.length>0&&(Bn=ci(Kt,e.Debug.assertDefined(yr))),ji(),1}function vi(){var xt=ze&&(ze.kind===18||ze.kind===27)?e.tryCast(ze.parent,e.isNamedImportsOrExports):void 0;if(!xt)return 0;var Kt=(xt.kind===256?xt.parent.parent:xt.parent).moduleSpecifier,yr=ln.getSymbolAtLocation(Kt);if(!yr)return 2;un=3,Rn=!1;var Jr=ln.getExportsAndPropertiesOfModule(yr),_a=e.arrayToSet(xt.elements,function(La){return Ri(La)?void 0:(La.propertyName||La.name).escapedText});return Bn=Jr.filter(function(La){return La.escapedName!=="default"&&!_a.get(La.escapedName)}),1}function Oi(){var xt=Pe(Le,ze,yn,$e);if(!xt)return 0;if(un=3,Rn=!0,at=ze.kind===41?0:e.isClassLike(xt)?2:3,!e.isClassLike(xt))return 1;var Kt=ze.kind===26?ze.parent.parent:ze.parent,yr=e.isClassElement(Kt)?e.getModifierFlags(Kt):0;if(ze.kind===75&&!Ri(ze))switch(ze.getText()){case"private":yr=yr|8;break;case"static":yr=yr|32;break}if(!(yr&8)){var Jr=e.flatMap(e.getAllSuperTypeNodes(xt),function(_a){var La=ln.getTypeAtLocation(_a);return La&&ln.getPropertiesOfType(yr&32?ln.getTypeOfSymbolAtLocation(La.symbol,xt):La)});Bn=Ao(Jr,xt.members,yr)}return 1}function Ja(xt){if(xt){var Kt=xt.parent;switch(xt.kind){case 18:case 27:if(e.isObjectLiteralExpression(Kt)||e.isObjectBindingPattern(Kt))return Kt;break;case 41:return e.isMethodDeclaration(Kt)?e.tryCast(Kt.parent,e.isObjectLiteralExpression):void 0;case 75:return xt.text==="async"&&e.isShorthandPropertyAssignment(xt.parent)?xt.parent.parent:void 0}}return}function Ka(xt){return!!xt.parent&&e.isParameter(xt.parent)&&e.isConstructorDeclaration(xt.parent.parent)&&(e.isParameterPropertyModifier(xt.kind)||e.isDeclarationName(xt))}function ua(xt){if(xt){var Kt=xt.parent;switch(xt.kind){case 20:case 27:return e.isConstructorDeclaration(xt.parent)?xt.parent:void 0;default:if(Ka(xt))return Kt.parent}}return}function bi(xt){if(xt){var Kt,yr=e.findAncestor(xt.parent,function(Jr){return e.isClassLike(Jr)?"quit":e.isFunctionLikeDeclaration(Jr)&&Kt===Jr.body?!0:(Kt=Jr,!1)});return yr&&yr}}function Vo(xt){if(xt){var Kt=xt.parent;switch(xt.kind){case 31:case 30:case 43:case 75:case 193:case 272:case 271:case 273:if(Kt&&(Kt.kind===265||Kt.kind===266)){if(xt.kind===31){var yr=e.findPrecedingToken(xt.pos,Le,void 0);if(!Kt.typeArguments||yr&&yr.kind===43)break}return Kt}else if(Kt.kind===271)return Kt.parent.parent;break;case 10:if(Kt&&(Kt.kind===271||Kt.kind===273))return Kt.parent.parent;break;case 19:if(Kt&&Kt.kind===274&&Kt.parent&&Kt.parent.kind===271)return Kt.parent.parent.parent;if(Kt&&Kt.kind===273)return Kt.parent.parent;break}}return}function wo(xt){var Kt=xt.parent,yr=Kt.kind;switch(xt.kind){case 27:return yr===241||yr===242||yr===224||yr===247||Mo(yr)||yr===245||yr===189||yr===246||e.isClassLike(Kt)&&!!Kt.typeParameters&&Kt.typeParameters.end>=xt.pos;case 24:return yr===189;case 58:return yr===190;case 22:return yr===189;case 20:return yr===278||Mo(yr);case 18:return yr===247;case 29:return yr===244||yr===213||yr===245||yr===246||e.isFunctionLikeKind(yr);case 119:return yr===158&&!e.isClassLike(Kt.parent);case 25:return yr===155||!!Kt.parent&&Kt.parent.kind===189;case 118:case 116:case 117:return yr===155&&!e.isConstructorDeclaration(Kt.parent);case 122:return yr===257||yr===261||yr===255;case 130:case 141:return!a(xt);case 79:case 87:case 113:case 93:case 108:case 95:case 114:case 80:case 120:case 144:return!0;case 41:return e.isFunctionLike(xt.parent)&&!e.isMethodDeclaration(xt.parent)}if(we(ve(xt))&&a(xt))return!1;if(Ka(xt)&&(!e.isIdentifier(xt)||e.isParameterPropertyModifier(ve(xt))||Ri(xt)))return!1;switch(ve(xt)){case 121:case 79:case 80:case 129:case 87:case 93:case 113:case 114:case 116:case 117:case 118:case 119:case 108:case 120:return!0;case 125:return e.isPropertyDeclaration(xt.parent)}return e.isDeclarationName(xt)&&!e.isJsxAttribute(xt.parent)&&!(e.isClassLike(xt.parent)&&(xt!==Ne||$e>Ne.end))}function Mo(xt){return e.isFunctionLikeKind(xt)&&xt!==161}function uo(xt){if(xt.kind===8){var Kt=xt.getFullText();return Kt.charAt(Kt.length-1)==="."}return!1}function ci(xt,Kt){if(Kt.length===0)return xt;for(var yr=e.createMap(),Jr=e.createUnderscoreEscapedMap(),_a=0,La=Kt;_a<La.length;_a++){var qr=La[_a];if(qr.kind!==279&&qr.kind!==280&&qr.kind!==190&&qr.kind!==160&&qr.kind!==162&&qr.kind!==163&&qr.kind!==281)continue;if(Ri(qr))continue;var pi=void 0;if(e.isSpreadAssignment(qr))Gi(qr,yr);else if(e.isBindingElement(qr)&&qr.propertyName)qr.propertyName.kind===75&&(pi=qr.propertyName.escapedText);else{var Li=e.getNameOfDeclaration(qr);pi=Li&&e.isPropertyNameLiteral(Li)?e.getEscapedTextOfIdentifierOrLiteral(Li):void 0}Jr.set(pi,!0)}var mi=xt.filter(function(da){return!Jr.get(da.escapedName)});return Ro(yr,mi),mi}function Gi(xt,Kt){var yr=xt.expression,Jr=ln.getSymbolAtLocation(yr),_a=Jr&&ln.getTypeOfSymbolAtLocation(Jr,yr),La=_a&&_a.properties;La&&La.forEach(function(qr){Kt.set(qr.name,!0)})}function ji(){Bn.forEach(function(xt){xt.flags&16777216&&(ct[e.getSymbolId(xt)]=ct[e.getSymbolId(xt)]||qe.OptionalMember)})}function Ro(xt,Kt){if(xt.size===0)return;for(var yr=0,Jr=Kt;yr<Jr.length;yr++){var _a=Jr[yr];xt.has(_a.name)&&(ct[e.getSymbolId(_a)]=qe.MemberDeclaredBySpreadAssignment)}}function Ao(xt,Kt,yr){for(var Jr=e.createUnderscoreEscapedMap(),_a=0,La=Kt;_a<La.length;_a++){var qr=La[_a];if(qr.kind!==158&&qr.kind!==160&&qr.kind!==162&&qr.kind!==163)continue;if(Ri(qr))continue;if(e.hasModifier(qr,8))continue;if(e.hasModifier(qr,32)!==!!(yr&32))continue;var pi=e.getPropertyNameForPropertyNameNode(qr.name);pi&&Jr.set(pi,!0)}return xt.filter(function(Li){return!Jr.has(Li.escapedName)&&!!Li.declarations&&!(e.getDeclarationModifierFlagsFromSymbol(Li)&8)})}function _o(xt,Kt){for(var yr=e.createUnderscoreEscapedMap(),Jr=e.createMap(),_a=0,La=Kt;_a<La.length;_a++){var qr=La[_a];if(Ri(qr))continue;qr.kind===271?yr.set(qr.name.escapedText,!0):e.isJsxSpreadAttribute(qr)&&Gi(qr,Jr)}var pi=xt.filter(function(Li){return!yr.get(Li.escapedName)});return Ro(Jr,pi),pi}function Ri(xt){return xt.getStart(Le)<=$e&&$e<=xt.getEnd()}}function S(ae,fe,Le,Je){var $e=R(ae,Le,fe);if($e===void 0||ae.flags&1536&&e.isSingleOrDoubleQuote($e.charCodeAt(0))||e.isKnownSymbol(ae))return;var Fe={name:$e,needsConvertPropertyAccess:!1};if(e.isIdentifierText($e,fe))return Fe;switch(Je){case 3:return;case 0:return{name:JSON.stringify($e),needsConvertPropertyAccess:!1};case 2:case 1:return $e.charCodeAt(0)===32?void 0:{name:$e,needsConvertPropertyAccess:!0};case 5:case 4:return Fe;default:e.Debug.assertNever(Je)}}var v=[],U=e.memoize(function(){for(var ae=[],fe=76;fe<=151;fe++)ae.push({name:e.tokenToString(fe),kind:"keyword",kindModifiers:"",sortText:qe.GlobalsOrKeywords});return ae});function ue(ae,fe){if(!fe)return De(ae);var Le=ae+7+1;return v[Le]||(v[Le]=De(ae).filter(function(Je){return!Z(e.stringToToken(Je.name))}))}function De(ae){return v[ae]||(v[ae]=U().filter(function(fe){var Le=e.stringToToken(fe.name);switch(ae){case 0:return!1;case 1:return He(Le)||Le===129||Le===134||Le===144||Le===135||e.isTypeKeyword(Le)&&Le!==145;case 5:return He(Le);case 2:return we(Le);case 3:return Re(Le);case 4:return e.isParameterPropertyModifier(Le);case 6:return e.isTypeKeyword(Le)||Le===80;case 7:return e.isTypeKeyword(Le);default:return e.Debug.assertNever(ae)}}))}function Z(ae){switch(ae){case 121:case 124:case 150:case 127:case 129:case 87:case 149:case 112:case 131:case 113:case 132:case 133:case 134:case 135:case 136:case 139:case 140:case 116:case 117:case 118:case 137:case 142:case 143:case 144:case 146:case 147:return!0;default:return!1}}function Re(ae){return ae===137}function we(ae){switch(ae){case 121:case 128:case 130:case 141:case 125:return!0;default:return e.isClassMemberModifier(ae)}}function He(ae){return ae===125||ae===126||!e.isContextualKeyword(ae)&&!we(ae)}function ve(ae){return e.isIdentifier(ae)?ae.originalKeywordKind||0:ae.kind}function je(ae,fe){var Le=e.findAncestor(ae,e.isJSDoc);return Le&&Le.tags&&(e.rangeContainsPosition(Le,fe)?e.findLast(Le.tags,function(Je){return Je.pos<fe}):void 0)}function w(ae,fe,Le){return ae.isUnion()?Le.getAllPossiblePropertiesOfTypes(ae.types.filter(function(Je){return!(Je.flags&131068||Le.isArrayLikeType(Je)||e.typeHasCallOrConstructSignatures(Je,Le)||Le.isTypeInvalidDueToUnionDiscriminant(Je,fe))})):ae.getApparentProperties()}function j(ae,fe){return ae.isUnion()?e.Debug.assertEachDefined(fe.getAllPossiblePropertiesOfTypes(ae.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.assertEachDefined(ae.getApparentProperties(),"getApparentProperties() should all be defined")}function Pe(ae,fe,Le,Je){switch(Le.kind){case 317:return e.tryCast(Le.parent,e.isObjectTypeDeclaration);case 1:var $e=e.tryCast(e.lastOrUndefined(e.cast(Le.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if($e&&!e.findChildOfKind($e,19,ae))return $e;break;case 75:if(a(Le))return e.findAncestor(Le,e.isObjectTypeDeclaration)}if(!fe)return;switch(fe.kind){case 26:case 19:return a(Le)&&Le.parent.name===Le?Le.parent.parent:e.tryCast(Le,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(fe.parent,e.isObjectTypeDeclaration);default:if(!a(fe))return e.getLineAndCharacterOfPosition(ae,fe.getEnd()).line!==e.getLineAndCharacterOfPosition(ae,Je).line&&e.isObjectTypeDeclaration(Le)?Le:void 0;var Fe=e.isClassLike(fe.parent.parent)?we:Re;return Fe(fe.kind)||fe.kind===41||e.isIdentifier(fe)&&Fe(e.stringToToken(fe.text))?fe.parent.parent:void 0}}function a(ae){return ae.parent&&e.isClassOrTypeElement(ae.parent)&&e.isObjectTypeDeclaration(ae.parent.parent)}function Ze(ae,fe,Le,Je){switch(fe){case".":case"@":return!0;case'"':case"'":case"`":return!!Le&&e.isStringLiteralOrTemplate(Le)&&Je===Le.getStart(ae)+1;case"<":return!!Le&&Le.kind===29&&(!e.isBinaryExpression(Le.parent)||In(Le.parent));case"/":return!!Le&&(e.isStringLiteralLike(Le)?!!e.tryGetImportFromModuleSpecifier(Le):Le.kind===43&&e.isJsxClosingElement(Le.parent));default:return e.Debug.assertNever(fe)}}function In(ae){var fe=ae.left;return e.nodeIsMissing(fe)}function et(ae,fe,Le){for(var Je=fe;Je.flags&2097152&&(Je=ae.getImmediateAliasedSymbol(Je));)if(Le(Je))return Je}})(o=e.Completions||(e.Completions={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){function qe(R,K,m,_,I){var D=e.getTouchingPropertyName(m,_);if(D.parent&&(e.isJsxOpeningElement(D.parent)&&D.parent.tagName===D||e.isJsxClosingElement(D.parent))){var y=D.parent.parent,E=y.openingElement,k=y.closingElement,T=[E,k].map(function(ne){var O=ne.tagName;return Ee(O,m)});return[{fileName:m.fileName,highlightSpans:T}]}return Ge(_,D,R,K,I)||Be(D,m)}M.getDocumentHighlights=qe;function Ee(R,K){return{fileName:K.fileName,textSpan:e.createTextSpanFromNode(R,K),kind:"none"}}function Ge(R,K,m,_,I){var D=e.arrayToSet(I,function(k){return k.fileName}),y=e.FindAllReferences.getReferenceEntriesForNode(R,K,m,I,_,void 0,D);if(!y)return;var E=e.arrayToMultiMap(y.map(e.FindAllReferences.toHighlightSpan),function(k){return k.fileName},function(k){return k.span});return e.arrayFrom(E.entries(),function(k){var T=k[0],ne=k[1];if(!D.has(T)){e.Debug.assert(m.redirectTargetsMap.has(T));var O=m.getSourceFile(T),Y=e.find(I,function(pe){return!!pe.redirectInfo&&pe.redirectInfo.redirectTarget===O});T=Y.fileName,e.Debug.assert(D.has(T))}return{fileName:T,highlightSpans:ne}})}function Be(R,K){var m=he(R,K);return m&&[{fileName:K.fileName,highlightSpans:m}]}function he(R,K){switch(R.kind){case 94:case 86:return e.isIfStatement(R.parent)?H(R.parent,K):void 0;case 100:return I(R.parent,e.isReturnStatement,Q);case 104:return I(R.parent,e.isThrowStatement,$);case 106:case 78:case 91:var m=R.kind===78?R.parent.parent:R.parent;return I(m,e.isTryStatement,X);case 102:return I(R.parent,e.isSwitchStatement,h);case 77:case 83:return I(R.parent.parent.parent,e.isSwitchStatement,h);case 76:case 81:return I(R.parent,e.isBreakOrContinueStatement,P);case 92:case 110:case 85:return I(R.parent,function(y){return e.isIterationStatement(y,!0)},C);case 128:return _(e.isConstructorDeclaration,[128]);case 130:case 141:return _(e.isAccessor,[130,141]);case 126:return I(R.parent,e.isAwaitExpression,z);case 125:return D(z(R));case 120:return D(se(R));default:return e.isModifierKind(R.kind)&&(e.isDeclaration(R.parent)||e.isVariableStatement(R.parent))?D(ie(R.kind,R.parent)):void 0}function _(y,E){return I(R.parent,y,function(k){return e.mapDefined(k.symbol.declarations,function(T){return y(T)?e.find(T.getChildren(K),function(ne){return e.contains(E,ne.kind)}):void 0})})}function I(y,E,k){return E(y)?D(k(y,K)):void 0}function D(y){return y&&y.map(function(E){return Ee(E,K)})}}function ee(R){return e.isThrowStatement(R)?[R]:e.isTryStatement(R)?e.concatenate(R.catchClause?ee(R.catchClause):R.tryBlock&&ee(R.tryBlock),R.finallyBlock&&ee(R.finallyBlock)):e.isFunctionLike(R)?void 0:Oe(R,ee)}function f(R){for(var K=R;K.parent;){var m=K.parent;if(e.isFunctionBlock(m)||m.kind===288)return m;if(e.isTryStatement(m)&&m.tryBlock===K&&m.catchClause)return K;K=m}return}function J(R){return e.isBreakOrContinueStatement(R)?[R]:e.isFunctionLike(R)?void 0:Oe(R,J)}function Oe(R,K){var m=[];return R.forEachChild(function(_){var I=K(_);I!==void 0&&m.push.apply(m,e.toArray(I))}),m}function N(R,K){var m=Te(K);return!!m&&m===R}function Te(R){return e.findAncestor(R,function(K){switch(K.kind){case 236:if(R.kind===232)return!1;case 229:case 230:case 231:case 228:case 227:return!R.label||be(K,R.label.escapedText);default:return e.isFunctionLike(K)&&"quit"}})}function ie(R,K){return e.mapDefined(ce(K,e.modifierToFlag(R)),function(m){return e.findModifier(m,R)})}function ce(R,K){var m=R.parent;switch(m.kind){case 249:case 288:case 222:case 275:case 276:return K&128&&e.isClassDeclaration(R)?Tr(R.members,[R]):m.statements;case 161:case 160:case 243:return Tr(m.parameters,e.isClassLike(m.parent)?m.parent.members:[]);case 244:case 213:case 245:case 172:var _=m.members;if(K&(28|64)){var I=e.find(m.members,e.isConstructorDeclaration);if(I)return Tr(_,I.parameters)}else if(K&128)return Tr(_,[m]);return _;default:e.Debug.assertNever(m,"Invalid container kind.")}}function x(R,K){for(var m=[],_=2;_<arguments.length;_++)m[_-2]=arguments[_];return K&&e.contains(m,K.kind)?(R.push(K),!0):!1}function C(R){var K=[];if(x(K,R.getFirstToken(),92,110,85)&&R.kind===227)for(var m=R.getChildren(),_=m.length-1;_>=0&&!x(K,m[_],110);_--);return e.forEach(J(R.statement),function(I){N(R,I)&&x(K,I.getFirstToken(),76,81)}),K}function P(R){var K=Te(R);if(K)switch(K.kind){case 229:case 230:case 231:case 227:case 228:return C(K);case 236:return h(K)}return}function h(R){var K=[];return x(K,R.getFirstToken(),102),e.forEach(R.caseBlock.clauses,function(m){x(K,m.getFirstToken(),77,83),e.forEach(J(m),function(_){N(R,_)&&x(K,_.getFirstToken(),76)})}),K}function X(R,K){var m=[];if(x(m,R.getFirstToken(),106),R.catchClause&&x(m,R.catchClause.getFirstToken(),78),R.finallyBlock){var _=e.findChildOfKind(R,91,K);x(m,_,91)}return m}function $(R,K){var m=f(R);if(!m)return;var _=[];return e.forEach(ee(m),function(I){_.push(e.findChildOfKind(I,104,K))}),e.isFunctionBlock(m)&&e.forEachReturnStatement(m,function(I){_.push(e.findChildOfKind(I,100,K))}),_}function Q(R,K){var m=e.getContainingFunction(R);if(!m)return;var _=[];return e.forEachReturnStatement(e.cast(m.body,e.isBlock),function(I){_.push(e.findChildOfKind(I,100,K))}),e.forEach(ee(m.body),function(I){_.push(e.findChildOfKind(I,104,K))}),_}function z(R){var K=e.getContainingFunction(R);if(!K)return;var m=[];return K.modifiers&&K.modifiers.forEach(function(_){x(m,_,125)}),e.forEachChild(K,function(_){G(_,function(I){e.isAwaitExpression(I)&&x(m,I.getFirstToken(),126)})}),m}function se(R){var K=e.getContainingFunction(R);if(!K)return;var m=[];return e.forEachChild(K,function(_){G(_,function(I){e.isYieldExpression(I)&&x(m,I.getFirstToken(),120)})}),m}function G(R,K){K(R),!e.isFunctionLike(R)&&!e.isClassLike(R)&&!e.isInterfaceDeclaration(R)&&!e.isModuleDeclaration(R)&&!e.isTypeAliasDeclaration(R)&&!e.isTypeNode(R)&&e.forEachChild(R,function(m){return G(m,K)})}function H(R,K){for(var m=q(R,K),_=[],I=0;I<m.length;I++){if(m[I].kind===86&&I<m.length-1){for(var D=m[I],y=m[I+1],E=!0,k=y.getStart(K)-1;k>=D.end;k--)if(!e.isWhiteSpaceSingleLine(K.text.charCodeAt(k))){E=!1;break}if(E){_.push({fileName:K.fileName,textSpan:e.createTextSpanFromBounds(D.getStart(),y.end),kind:"reference"}),I++;continue}}_.push(Ee(m[I],K))}return _}function q(R,K){for(var m=[];e.isIfStatement(R.parent)&&R.parent.elseStatement===R;)R=R.parent;for(;;){var _=R.getChildren(K);x(m,_[0],94);for(var I=_.length-1;I>=0&&!x(m,_[I],86);I--);if(!R.elseStatement||!e.isIfStatement(R.elseStatement))break;R=R.elseStatement}return m}function be(R,K){return!!e.findAncestor(R.parent,function(m){return e.isLabeledStatement(m)?m.label.escapedText===K:"quit"})}})(o=e.DocumentHighlights||(e.DocumentHighlights={}))})(sn||(sn={}));var sn;(function(e){function o(Ee,Ge){return M(Ee,Ge)}e.createDocumentRegistry=o;function M(Ee,Ge,Be){Ge===void 0&&(Ge="");var he=e.createMap(),ee=e.createGetCanonicalFileName(!!Ee);function f(){var P=e.arrayFrom(he.keys()).filter(function(h){return h&&h.charAt(0)==="_"}).map(function(h){var X=he.get(h),$=[];return X.forEach(function(Q,z){$.push({name:z,refCount:Q.languageServiceRefCount})}),$.sort(function(Q,z){return z.refCount-Q.refCount}),{bucket:h,sourceFiles:$}});return JSON.stringify(P,void 0,2)}function J(P,h,X,$,Q){var z=e.toPath(P,Ge,ee),se=qe(h);return Oe(P,z,h,se,X,$,Q)}function Oe(P,h,X,$,Q,z,se){return ie(P,h,X,$,Q,z,!0,se)}function N(P,h,X,$,Q){var z=e.toPath(P,Ge,ee),se=qe(h);return Te(P,z,h,se,X,$,Q)}function Te(P,h,X,$,Q,z,se){return ie(P,h,X,$,Q,z,!1,se)}function ie(P,h,X,$,Q,z,se,G){var H=e.getOrUpdate(he,$,e.createMap),q=H.get(h),be=G===6?100:X.target||1;if(!q&&Be){var R=Be.getDocument($,h);R&&(e.Debug.assert(se),q={sourceFile:R,languageServiceRefCount:0},H.set(h,q))}if(q)q.sourceFile.version!==z&&(q.sourceFile=e.updateLanguageServiceSourceFile(q.sourceFile,Q,z,Q.getChangeRange(q.sourceFile.scriptSnapshot)),Be&&Be.setDocument($,h,q.sourceFile)),se&&q.languageServiceRefCount++;else{var R=e.createLanguageServiceSourceFile(P,Q,be,z,!1,G);Be&&Be.setDocument($,h,R),q={sourceFile:R,languageServiceRefCount:1},H.set(h,q)}return e.Debug.assert(q.languageServiceRefCount!==0),q.sourceFile}function ce(P,h){var X=e.toPath(P,Ge,ee),$=qe(h);return x(X,$)}function x(P,h){var X=e.Debug.assertDefined(he.get(h)),$=X.get(P);$.languageServiceRefCount--,e.Debug.assert($.languageServiceRefCount>=0),$.languageServiceRefCount===0&&X.delete(P)}function C(P){return e.arrayFrom(he.entries(),function(h){var X=h[0],$=h[1],Q=$.get(P);return[X,Q&&Q.languageServiceRefCount]})}return{acquireDocument:J,acquireDocumentWithKey:Oe,updateDocument:N,updateDocumentWithKey:Te,releaseDocument:ce,releaseDocumentWithKey:x,getLanguageServiceRefCounts:C,reportStats:f,getKeyForCompilationSettings:qe}}e.createDocumentRegistryInternal=M;function qe(Ee){return e.sourceFileAffectingCompilerOptions.map(function(Ge){return e.getCompilerOptionValue(Ee,Ge)}).join("|")}})(sn||(sn={}));var sn;(function(e){var o;(function(M){function qe(z,se,G,H){var q=J(z,G,H);return function(be,R,K){var m=Be(z,se,q,R,G,H),_=m.directImports,I=m.indirectUsers;return Rr({indirectUsers:I},he(_,be,R.exportKind,G,K))}}M.createImportTracker=qe;var Ee;(function(z){z[z.Named=0]="Named",z[z.Default=1]="Default",z[z.ExportEquals=2]="ExportEquals"})(Ee=M.ExportKind||(M.ExportKind={}));var Ge;(function(z){z[z.Import=0]="Import",z[z.Export=1]="Export"})(Ge=M.ImportExport||(M.ImportExport={}));function Be(z,se,G,H,q,be){var R=H.exportingModuleSymbol,K=H.exportKind,m=e.nodeSeenTracker(),_=e.nodeSeenTracker(),I=[],D=!!R.globalExports,y=D?void 0:[];return k(R),{directImports:I,indirectUsers:E()};function E(){if(D)return z;for(var pe=0,S=R.declarations;pe<S.length;pe++){var v=S[pe];e.isExternalModuleAugmentation(v)&&se.has(v.getSourceFile().fileName)&&ne(v)}return y.map(e.getSourceFileOfNode)}function k(pe){var S=Y(pe);if(S)for(var v=0,U=S;v<U.length;v++){var ue=U[v];if(!m(ue))continue;be&&be.throwIfCancellationRequested();switch(ue.kind){case 195:if(!D){var De=ue.parent;if(K===2&&De.kind===241){var Z=De.name;if(Z.kind===75){I.push(Z);break}}ne(ue.getSourceFile())}break;case 75:break;case 252:T(ue,ue.name,e.hasModifier(ue,1),!1);break;case 253:I.push(ue);var Re=ue.importClause&&ue.importClause.namedBindings;Re&&Re.kind===255?T(ue,Re.name,!1,!0):!D&&e.isDefaultImport(ue)&&ne(X(ue));break;case 259:ue.exportClause?I.push(ue):k(h(ue,q));break;case 187:I.push(ue);break;default:e.Debug.failBadSyntaxKind(ue,"Unexpected import kind.")}}}function T(pe,S,v,U){if(K===2)U||I.push(pe);else if(!D){var ue=X(pe);e.Debug.assert(ue.kind===288||ue.kind===248),v||ee(ue,S,q)?O(ue):ne(ue)}}function ne(pe){e.Debug.assert(!D);var S=_(pe);return S&&y.push(pe),S}function O(pe){if(!ne(pe))return;var S=q.getMergedSymbol(pe.symbol);e.Debug.assert(!!(S.flags&1536));var v=Y(S);if(v)for(var U=0,ue=v;U<ue.length;U++){var De=ue[U];O(X(De))}}function Y(pe){return G.get(e.getSymbolId(pe).toString())}}function he(z,se,G,H,q){var be=[],R=[];function K(T,ne){be.push([T,ne])}if(z)for(var m=0,_=z;m<_.length;m++){var I=_[m];D(I)}return{importSearches:be,singleReferences:R};function D(T){if(T.kind===252){Q(T)&&y(T.name);return}if(T.kind===75){y(T);return}if(T.kind===187){T.qualifier?e.isIdentifier(T.qualifier)&&T.qualifier.escapedText===e.symbolName(se)&&R.push(T.qualifier):G===2&&R.push(T.argument.literal);return}if(T.moduleSpecifier.kind!==10)return;if(T.kind===259){E(T.exportClause);return}var ne=T.importClause||{name:void 0,namedBindings:void 0},O=ne.name,Y=ne.namedBindings;if(Y)switch(Y.kind){case 255:y(Y.name);break;case 256:(G===0||G===1)&&E(Y);break;default:e.Debug.assertNever(Y)}if(O&&(G===1||G===2)&&(!q||O.escapedText===e.symbolEscapedNameNoDefault(se))){var pe=H.getSymbolAtLocation(O);K(O,pe)}}function y(T){G===2&&(!q||k(T.escapedText))&&K(T,H.getSymbolAtLocation(T))}function E(T){if(!T)return;for(var ne=0,O=T.elements;ne<O.length;ne++){var Y=O[ne],pe=Y.name,S=Y.propertyName;if(!k((S||pe).escapedText))continue;if(S)R.push(S),(!q||pe.escapedText===se.escapedName)&&K(pe,H.getSymbolAtLocation(pe));else{var v=Y.kind===261&&Y.propertyName?H.getExportSpecifierLocalTargetSymbol(Y):H.getSymbolAtLocation(pe);K(pe,v)}}}function k(T){return T===se.escapedName||G!==0&&T==="default"}}function ee(z,se,G){var H=G.getSymbolAtLocation(se);return!!Oe(z,function(q){if(!e.isExportDeclaration(q))return;var be=q.exportClause,R=q.moduleSpecifier;return!R&&be&&be.elements.some(function(K){return G.getExportSpecifierLocalTargetSymbol(K)===H})})}function f(z,se,G){for(var H=[],q=z.getTypeChecker(),be=0,R=se;be<R.length;be++){var K=R[be],m=G.valueDeclaration;if(m.kind===288){for(var _=0,I=K.referencedFiles;_<I.length;_++){var D=I[_];z.getSourceFileFromReference(K,D)===m&&H.push({kind:"reference",referencingFile:K,ref:D})}for(var y=0,E=K.typeReferenceDirectives;y<E.length;y++){var D=E[y],k=z.getResolvedTypeReferenceDirectives().get(D.fileName);k!==void 0&&k.resolvedFileName===m.fileName&&H.push({kind:"reference",referencingFile:K,ref:D})}}N(K,function(T,ne){var O=q.getSymbolAtLocation(ne);O===G&&H.push({kind:"import",literal:ne})})}return H}M.findModuleReferences=f;function J(z,se,G){for(var H=e.createMap(),q=0,be=z;q<be.length;q++){var R=be[q];G&&G.throwIfCancellationRequested(),N(R,function(K,m){var _=se.getSymbolAtLocation(m);if(_){var I=e.getSymbolId(_).toString(),D=H.get(I);D||H.set(I,D=[]),D.push(K)}})}return H}function Oe(z,se){return e.forEach(z.kind===288?z.statements:z.body.statements,function(G){return se(G)||$(G)&&e.forEach(G.body&&G.body.statements,se)})}function N(z,se){if(z.externalModuleIndicator||z.imports!==void 0)for(var G=0,H=z.imports;G<H.length;G++){var q=H[G];se(e.importFromModuleSpecifier(q),q)}else Oe(z,function(be){switch(be.kind){case 259:case 253:{var R=be;R.moduleSpecifier&&e.isStringLiteral(R.moduleSpecifier)&&se(R,R.moduleSpecifier);break}case 252:{var R=be;Q(R)&&se(R,R.moduleReference.expression);break}}})}function Te(z,se,G,H){return H?q():q()||be();function q(){var m=z.parent,_=m.parent;if(se.exportSymbol)return m.kind===193?se.declarations.some(function(k){return k===m})&&e.isBinaryExpression(_)?E(_,!1):void 0:R(se.exportSymbol,K(m));var I=ce(m,z);if(I&&e.hasModifier(I,1))if(e.isImportEqualsDeclaration(I)&&I.moduleReference===z){if(H)return;var D=G.getSymbolAtLocation(I.name);return{kind:0,symbol:D}}else return R(se,K(I));else{if(e.isExportAssignment(m))return y(m);if(e.isExportAssignment(_))return y(_);if(e.isBinaryExpression(m))return E(m,!0);if(e.isBinaryExpression(_))return E(_,!0);if(e.isJSDocTypedefTag(m))return R(se,0)}function y(k){var T=e.Debug.assertDefined(k.symbol.parent,"Expected export symbol to have a parent"),ne=k.isExportEquals?2:1;return{kind:1,symbol:se,exportInfo:{exportingModuleSymbol:T,exportKind:ne}}}function E(k,T){var ne;switch(e.getAssignmentDeclarationKind(k)){case 1:ne=0;break;case 2:ne=2;break;default:return}var O=T?G.getSymbolAtLocation(e.cast(k.left,e.isPropertyAccessExpression).name):se;return O&&!(G.getMergedSymbol(O.parent).flags&1536)&&e.Debug.fail("Special property assignment kind does not have a module as its parent. Assignment is "+e.Debug.formatSymbol(O)+", parent is "+e.Debug.formatSymbol(O.parent)),O&&R(O,ne)}}function be(){var m=x(z);if(!m)return;var _=G.getImmediateAliasedSymbol(se);if(!_)return;_=P(_,G),_.escapedName==="export="&&(_=ie(_,G));var I=e.symbolEscapedNameNoDefault(_);if(I===void 0||I==="default"||I===se.escapedName)return{kind:0,symbol:_}}function R(m,_){var I=C(m,_,G);return I&&{kind:1,symbol:m,exportInfo:I}}function K(m){return e.hasModifier(m,512)?1:0}}M.getImportOrExportSymbol=Te;function ie(z,se){if(z.flags&2097152)return e.Debug.assertDefined(se.getImmediateAliasedSymbol(z));var G=z.valueDeclaration;return e.isExportAssignment(G)?e.Debug.assertDefined(G.expression.symbol):e.isBinaryExpression(G)?e.Debug.assertDefined(G.right.symbol):e.isSourceFile(G)?e.Debug.assertDefined(G.symbol):e.Debug.fail()}function ce(z,se){var G=e.isVariableDeclaration(z)?z:e.isBindingElement(z)?e.walkUpBindingElementsAndPatterns(z):void 0;return G?z.name!==se||e.isCatchClause(G.parent)?void 0:e.isVariableStatement(G.parent.parent)?G.parent.parent:void 0:z}function x(z){var se=z.parent;switch(se.kind){case 252:return se.name===z&&Q(se);case 257:return!se.propertyName;case 254:case 255:return e.Debug.assert(se.name===z),!0;default:return!1}}function C(z,se,G){var H=z.parent;if(!H)return;var q=G.getMergedSymbol(H);return e.isExternalModuleSymbol(q)?{exportingModuleSymbol:q,exportKind:se}:void 0}M.getExportInfo=C;function P(z,se){if(z.declarations)for(var G=0,H=z.declarations;G<H.length;G++){var q=H[G];if(e.isExportSpecifier(q)&&!q.propertyName&&!q.parent.parent.moduleSpecifier)return se.getExportSpecifierLocalTargetSymbol(q)}return z}function h(z,se){return se.getMergedSymbol(X(z).symbol)}function X(z){if(z.kind===195)return z.getSourceFile();var se=z.parent;return se.kind===288?se:(e.Debug.assert(se.kind===249),e.cast(se.parent,$))}function $(z){return z.kind===248&&z.name.kind===10}function Q(z){return z.moduleReference.kind===263&&z.moduleReference.expression.kind===10}})(o=e.FindAllReferences||(e.FindAllReferences={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe;(function(R){R[R.Symbol=0]="Symbol",R[R.Label=1]="Label",R[R.Keyword=2]="Keyword",R[R.This=3]="This",R[R.String=4]="String"})(qe=M.DefinitionKind||(M.DefinitionKind={}));var Ee;(function(R){R[R.Span=0]="Span",R[R.Node=1]="Node",R[R.StringLiteral=2]="StringLiteral",R[R.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",R[R.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"})(Ee=M.EntryKind||(M.EntryKind={}));function Ge(R,K){return K===void 0&&(K=1),{kind:K,node:R.name||R,context:he(R)}}M.nodeEntry=Ge;function Be(R){return R&&R.kind===void 0}M.isContextWithStartAndEndNode=Be;function he(R){if(e.isDeclaration(R))return ee(R);if(!R.parent)return;if(!e.isDeclaration(R.parent)&&!e.isExportAssignment(R.parent)){if(e.isInJSFile(R)){var K=e.isBinaryExpression(R.parent)?R.parent:e.isAccessExpression(R.parent)&&e.isBinaryExpression(R.parent.parent)&&R.parent.parent.left===R.parent?R.parent.parent:void 0;if(K&&e.getAssignmentDeclarationKind(K)!==0)return ee(K)}if(e.isJsxOpeningElement(R.parent)||e.isJsxClosingElement(R.parent))return R.parent.parent;if(e.isJsxSelfClosingElement(R.parent)||e.isLabeledStatement(R.parent)||e.isBreakOrContinueStatement(R.parent))return R.parent;if(e.isStringLiteralLike(R)){var m=e.tryGetImportFromModuleSpecifier(R);if(m){var _=e.findAncestor(m,function(D){return e.isDeclaration(D)||e.isStatement(D)||e.isJSDocTag(D)});return e.isDeclaration(_)?ee(_):_}}var I=e.findAncestor(R,e.isComputedPropertyName);return I?ee(I.parent):void 0}return R.parent.name===R||e.isConstructorDeclaration(R.parent)||e.isExportAssignment(R.parent)||(e.isImportOrExportSpecifier(R.parent)||e.isBindingElement(R.parent))&&R.parent.propertyName===R||R.kind===83&&e.hasModifier(R.parent,513)?ee(R.parent):void 0}function ee(R){if(!R)return;switch(R.kind){case 241:return!e.isVariableDeclarationList(R.parent)||R.parent.declarations.length!==1?R:e.isVariableStatement(R.parent.parent)?R.parent.parent:e.isForInOrOfStatement(R.parent.parent)?ee(R.parent.parent):R.parent;case 190:return ee(R.parent.parent);case 257:return R.parent.parent.parent;case 261:case 255:return R.parent.parent;case 254:return R.parent;case 208:return e.isExpressionStatement(R.parent)?R.parent:R;case 231:case 230:return{start:R.initializer,end:R.expression};case 279:case 280:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(R.parent)?ee(e.findAncestor(R.parent,function(K){return e.isBinaryExpression(K)||e.isForInOrOfStatement(K)})):R;default:return R}}M.getContextNode=ee;function f(R,K,m){if(!m)return;var _=Be(m)?G(m.start,K,m.end):G(m,K);return _.start!==R.start||_.length!==R.length?{contextSpan:_}:void 0}M.toContextSpan=f;function J(R,K,m,_,I){var D=e.getTouchingPropertyName(_,I),y=M.Core.getReferencedSymbolsForNode(I,D,R,m,K),E=R.getTypeChecker();return!y||!y.length?void 0:e.mapDefined(y,function(k){var T=k.definition,ne=k.references;return T&&{definition:E.runWithCancellationToken(K,function(O){return x(T,O,D)}),references:ne.map(h)}})}M.findReferencedSymbols=J;function Oe(R,K,m,_,I){var D=e.getTouchingPropertyName(_,I),y=N(R,K,m,D,I),E=R.getTypeChecker();return e.map(y,function(k){return Q(k,E)})}M.getImplementationsAtPosition=Oe;function N(R,K,m,_,I){if(_.kind===288)return;var D=R.getTypeChecker();if(_.parent.kind===280){var y=[];return M.Core.getReferenceEntriesForShorthandPropertyAssignment(_,D,function(k){return y.push(Ge(k))}),y}else if(_.kind===101||e.isSuperProperty(_.parent)){var E=D.getSymbolAtLocation(_);return E.valueDeclaration&&[Ge(E.valueDeclaration)]}else return ie(I,_,R,m,K,{implementations:!0})}function Te(R,K,m,_,I,D,y){return e.map(ce(M.Core.getReferencedSymbolsForNode(I,_,R,m,K,D)),function(E){return y(E,_,R.getTypeChecker())})}M.findReferenceOrRenameEntries=Te;function ie(R,K,m,_,I,D,y){return D===void 0&&(D={}),y===void 0&&(y=e.arrayToSet(_,function(E){return E.fileName})),ce(M.Core.getReferencedSymbolsForNode(R,K,m,_,I,D,y))}M.getReferenceEntriesForNode=ie;function ce(R){return R&&e.flatMap(R,function(K){return K.references})}function x(R,K,m){var _=function(){switch(R.type){case 0:{var O=R.symbol,Y=C(O,K,m),pe=Y.displayParts,S=Y.kind,v=pe.map(function(ve){return ve.text}).join(""),U=O.declarations?e.first(O.declarations):void 0;return{node:U?e.getNameOfDeclaration(U)||U:m,name:v,kind:S,displayParts:pe,context:ee(U)}}case 1:{var ue=R.node;return{node:ue,name:ue.text,kind:"label",displayParts:[e.displayPart(ue.text,e.SymbolDisplayPartKind.text)]}}case 2:{var De=R.node,Z=e.tokenToString(De.kind);return{node:De,name:Z,kind:"keyword",displayParts:[{text:Z,kind:"keyword"}]}}case 3:{var Re=R.node,O=K.getSymbolAtLocation(Re),we=O&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(K,O,Re.getSourceFile(),e.getContainerNode(Re),Re).displayParts||[e.textPart("this")];return{node:Re,name:"this",kind:"var",displayParts:we}}case 4:{var He=R.node;return{node:He,name:He.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(He),e.SymbolDisplayPartKind.stringLiteral)]}}default:return e.Debug.assertNever(R)}}(),I=_.node,D=_.name,y=_.kind,E=_.displayParts,k=_.context,T=I.getSourceFile(),ne=G(e.isComputedPropertyName(I)?I.expression:I,T);return Rr({containerKind:"",containerName:"",fileName:T.fileName,kind:y,name:D,textSpan:ne,displayParts:E},f(ne,T,k))}function C(R,K,m){var _=M.Core.getIntersectingMeaningFromDeclarations(m,R),I=R.declarations&&e.firstOrUndefined(R.declarations)||m,D=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(K,R,I.getSourceFile(),I,I,_),y=D.displayParts,E=D.symbolKind;return{displayParts:y,kind:E}}function P(R,K,m,_){return Rr(Rr({},X(R)),_&&$(R,K,m))}M.toRenameLocation=P;function h(R){var K=X(R);if(R.kind===0)return Rr(Rr({},K),{isWriteAccess:!1,isDefinition:!1});var m=R.kind,_=R.node;return Rr(Rr({},K),{isWriteAccess:q(_),isDefinition:_.kind===83||!!e.getDeclarationFromName(_)||e.isLiteralComputedPropertyDeclarationName(_),isInString:m===2?!0:void 0})}M.toReferenceEntry=h;function X(R){if(R.kind===0)return{textSpan:R.textSpan,fileName:R.fileName};var K=R.node.getSourceFile(),m=G(R.node,K);return Rr({textSpan:m,fileName:K.fileName},f(m,K,R.context))}function $(R,K,m){if(R.kind!==0&&e.isIdentifier(K)){var _=R.node,I=R.kind,D=K.text,y=e.isShorthandPropertyAssignment(_.parent);if(y||e.isObjectBindingElementWithoutPropertyName(_.parent)){var E={prefixText:D+": "},k={suffixText:": "+D};return I===3?E:I===4||y?k:E}else if(e.isImportSpecifier(R.node.parent)&&!R.node.parent.propertyName){var T=e.isExportSpecifier(K.parent)?m.getExportSpecifierLocalTargetSymbol(K.parent):m.getSymbolAtLocation(K);return e.contains(T.declarations,R.node.parent)?{prefixText:D+" as "}:e.emptyOptions}else if(e.isExportSpecifier(R.node.parent)&&!R.node.parent.propertyName)return K===R.node?{prefixText:D+" as "}:{suffixText:" as "+D}}return e.emptyOptions}function Q(R,K){var m=X(R);if(R.kind!==0){var _=R.node;return Rr(Rr({},m),z(_,K))}else return Rr(Rr({},m),{kind:"",displayParts:[]})}function z(R,K){var m=K.getSymbolAtLocation(e.isDeclaration(R)&&R.name?R.name:R);return m?C(m,K,R):R.kind===192?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:R.kind===213?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(R),displayParts:[]}}function se(R){var K=X(R);if(R.kind===0)return{fileName:K.fileName,span:{textSpan:K.textSpan,kind:"reference"}};var m=q(R.node),_=Rr({textSpan:K.textSpan,kind:m?"writtenReference":"reference",isInString:R.kind===2?!0:void 0},K.contextSpan&&{contextSpan:K.contextSpan});return{fileName:K.fileName,span:_}}M.toHighlightSpan=se;function G(R,K,m){var _=R.getStart(K),I=(m||R).getEnd();return e.isStringLiteralLike(R)&&(e.Debug.assert(m===void 0),_+=1,I-=1),e.createTextSpanFromBounds(_,I)}function H(R){return R.kind===0?R.textSpan:G(R.node,R.node.getSourceFile())}M.getTextSpanOfEntry=H;function q(R){var K=e.getDeclarationFromName(R);return!!K&&be(K)||R.kind===83||e.isWriteAccess(R)}function be(R){if(R.flags&8388608)return!0;switch(R.kind){case 208:case 190:case 244:case 213:case 83:case 247:case 282:case 261:case 254:case 252:case 257:case 245:case 308:case 315:case 271:case 248:case 251:case 255:case 155:case 280:case 246:case 154:return!0;case 279:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(R.parent);case 243:case 200:case 161:case 160:case 162:case 163:return!!R.body;case 241:case 158:return!!R.initializer||e.isCatchClause(R.parent);case 159:case 157:case 316:case 310:return!1;default:return e.Debug.failBadSyntaxKind(R)}}})(o=e.FindAllReferences||(e.FindAllReferences={}))})(sn||(sn={})),function(e){var o;(function(M){var qe;(function(Ee){function Ge(ye,ke,F,c,L,te,Se){if(te===void 0&&(te={}),Se===void 0&&(Se=e.arrayToSet(c,function(Cn){return Cn.fileName})),e.isSourceFile(ke)){var Ne=e.GoToDefinition.getReferenceAtPosition(ke,ye,F),ze=Ne&&F.getTypeChecker().getMergedSymbol(Ne.file.symbol);return ze&&J(F,ze,!1,c,Se)}if(!te.implementations){var Tn=N(ke,c,L);if(Tn)return Tn}var wn=F.getTypeChecker(),jn=wn.getSymbolAtLocation(ke);if(!jn)return!te.implementations&&e.isStringLiteral(ke)?In(ke,c,L):void 0;if(jn.escapedName==="export=")return J(F,jn.parent,!1,c,Se);var nn=he(jn,F,c,L,te,Se);if(nn&&!(jn.flags&33554432))return nn;var pn=Be(ke,jn,wn),le=pn&&he(pn,F,c,L,te,Se),oe=Te(jn,ke,c,Se,wn,L,te);return ee(F,nn,oe,le)}Ee.getReferencedSymbolsForNode=Ge;function Be(ye,ke,F){if(ye.parent&&e.isNamespaceExportDeclaration(ye.parent)){var c=F.getAliasedSymbol(ke),L=F.getMergedSymbol(c);if(c!==L)return L}return}function he(ye,ke,F,c,L,te){var Se=ye.flags&1536?e.find(ye.declarations,e.isSourceFile):void 0;if(!Se)return;var Ne=ye.exports.get("export="),ze=J(ke,ye,!!Ne,F,te);if(!Ne||!te.has(Se.fileName))return ze;var Tn=ke.getTypeChecker();return ye=e.skipAlias(Ne,Tn),ee(ke,ze,Te(ye,void 0,F,te,Tn,c,L))}function ee(ye){for(var ke=[],F=1;F<arguments.length;F++)ke[F-1]=arguments[F];for(var c,L=0,te=ke;L<te.length;L++){var Se=te[L];if(!Se||!Se.length)continue;if(!c){c=Se;continue}for(var Ne=function(jn){if(!jn.definition||jn.definition.type!==0)return c.push(jn),"continue";var nn=jn.definition.symbol,pn=e.findIndex(c,function(oe){return!!oe.definition&&oe.definition.type===0&&oe.definition.symbol===nn});if(pn===-1)return c.push(jn),"continue";var le=c[pn];c[pn]={definition:le.definition,references:le.references.concat(jn.references).sort(function(oe,Cn){var yn=f(ye,oe),_e=f(ye,Cn);if(yn!==_e)return e.compareValues(yn,_e);var dn=M.getTextSpanOfEntry(oe),un=M.getTextSpanOfEntry(Cn);return dn.start!==un.start?e.compareValues(dn.start,un.start):e.compareValues(dn.length,un.length)})}},ze=0,Tn=Se;ze<Tn.length;ze++){var wn=Tn[ze];Ne(wn)}}return c}function f(ye,ke){var F=ke.kind===0?ye.getSourceFile(ke.fileName):ke.node.getSourceFile();return ye.getSourceFiles().indexOf(F)}function J(ye,ke,F,c,L){e.Debug.assert(!!ke.valueDeclaration);for(var te=e.mapDefined(M.findModuleReferences(ye,c,ke),function(le){if(le.kind==="import"){var oe=le.literal.parent;if(e.isLiteralTypeNode(oe)){var Cn=e.cast(oe.parent,e.isImportTypeNode);if(F&&!Cn.qualifier)return}return M.nodeEntry(le.literal)}else return{kind:0,fileName:le.referencingFile.fileName,textSpan:e.createTextSpanFromRange(le.ref)}}),Se=0,Ne=ke.declarations;Se<Ne.length;Se++){var ze=Ne[Se];switch(ze.kind){case 288:break;case 248:L.has(ze.getSourceFile().fileName)&&te.push(M.nodeEntry(ze.name));break;default:e.Debug.assert(!!(ke.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var Tn=ke.exports.get("export=");if(Tn)for(var wn=0,jn=Tn.declarations;wn<jn.length;wn++){var ze=jn[wn],nn=ze.getSourceFile();if(L.has(nn.fileName)){var pn=e.isBinaryExpression(ze)&&e.isPropertyAccessExpression(ze.left)?ze.left.expression:e.isExportAssignment(ze)?e.Debug.assertDefined(e.findChildOfKind(ze,88,nn)):e.getNameOfDeclaration(ze)||ze;te.push(M.nodeEntry(pn))}}return te.length?[{definition:{type:0,symbol:ke},references:te}]:e.emptyArray}function Oe(ye){return ye.kind===137&&e.isTypeOperatorNode(ye.parent)&&ye.parent.operator===137}function N(ye,ke,F){if(e.isTypeKeyword(ye.kind))return ye.kind===137&&!Oe(ye)?void 0:D(ke,ye.kind,F,ye.kind===137?Oe:void 0);if(e.isJumpStatementTarget(ye)){var c=e.getTargetLabel(ye.parent,ye.text);return c&&_(c.parent,c)}else if(e.isLabelOfLabeledStatement(ye))return _(ye.parent,ye);return e.isThis(ye)?Ze(ye,ke,F):ye.kind===101?Pe(ye):void 0}function Te(ye,ke,F,c,L,te,Se){var Ne=ke&&x(ye,ke,L,!ln(Se))||ye,ze=ke?Le(ke,Ne):7,Tn=[],wn=new h(F,c,ke?ce(ke):0,L,te,ze,Se,Tn),jn=ln(Se)?e.find(Ne.declarations,e.isExportSpecifier):void 0;if(jn)ne(jn.name,Ne,jn,wn.createSearch(ke,ye,void 0),wn,!0,!0);else if(ke&&ke.kind===83)v(ke,Ne,wn),X(ke,Ne,{exportingModuleSymbol:e.Debug.assertDefined(Ne.parent,"Expected export symbol to have a parent"),exportKind:1},wn);else{var nn=wn.createSearch(ke,Ne,void 0,{allSearchSymbols:ke?et(Ne,ke,L,!!Se.isForRename,!!Se.providePrefixAndSuffixTextForRename,!!Se.implementations):[Ne]});ie(Ne,wn,nn)}return Tn}function ie(ye,ke,F){var c=H(ye);if(c)E(c,c.getSourceFile(),F,ke,!(e.isSourceFile(c)&&!e.contains(ke.sourceFiles,c)));else for(var L=0,te=ke.sourceFiles;L<te.length;L++){var Se=te[L];ke.cancellationToken.throwIfCancellationRequested(),se(Se,F,ke)}}function ce(ye){switch(ye.kind){case 128:return 1;case 75:if(e.isClassLike(ye.parent))return e.Debug.assert(ye.parent.name===ye),2;default:return 0}}function x(ye,ke,F,c){var L=ke.parent;return e.isExportSpecifier(L)&&c?O(ke,ye,L,F):e.firstDefined(ye.declarations,function(te){if(!te.parent){if(ye.flags&33554432)return;e.Debug.fail("Unexpected symbol at "+e.Debug.formatSyntaxKind(ke.kind)+": "+e.Debug.formatSymbol(ye))}return e.isTypeLiteralNode(te.parent)&&e.isUnionTypeNode(te.parent.parent)?F.getPropertyOfType(F.getTypeFromTypeNode(te.parent.parent),ye.name):void 0})}var C;(function(ye){ye[ye.None=0]="None",ye[ye.Constructor=1]="Constructor",ye[ye.Class=2]="Class"})(C||(C={}));function P(ye){if(!(ye.flags&(1536|33554432)))return;var ke=ye.declarations&&e.find(ye.declarations,function(F){return!e.isSourceFile(F)&&!e.isModuleDeclaration(F)});return ke&&ke.symbol}var h=function(){function ye(ke,F,c,L,te,Se,Ne,ze){this.sourceFiles=ke,this.sourceFilesSet=F,this.specialSearchKind=c,this.checker=L,this.cancellationToken=te,this.searchMeaning=Se,this.options=Ne,this.result=ze,this.inheritsFromCache=e.createMap(),this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return ye.prototype.includesSourceFile=function(ke){return this.sourceFilesSet.has(ke.fileName)},ye.prototype.getImportSearches=function(ke,F){return this.importTracker||(this.importTracker=M.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(ke,F,!!this.options.isForRename)},ye.prototype.createSearch=function(ke,F,c,L){L===void 0&&(L={});var te=L.text,Se=te===void 0?e.stripQuotes(e.unescapeLeadingUnderscores((e.getLocalSymbolForExportDefault(F)||P(F)||F).escapedName)):te,Ne=L.allSearchSymbols,ze=Ne===void 0?[F]:Ne,Tn=e.escapeLeadingUnderscores(Se),wn=this.options.implementations&&ke?Qe(ke,F,this.checker):void 0;return{symbol:F,comingFrom:c,text:Se,escapedText:Tn,parents:wn,allSearchSymbols:ze,includes:function(jn){return e.contains(ze,jn)}}},ye.prototype.referenceAdder=function(ke){var F=e.getSymbolId(ke),c=this.symbolIdToReferences[F];return c||(c=this.symbolIdToReferences[F]=[],this.result.push({definition:{type:0,symbol:ke},references:c})),function(L,te){return c.push(M.nodeEntry(L,te))}},ye.prototype.addStringOrCommentReference=function(ke,F){this.result.push({definition:void 0,references:[{kind:0,fileName:ke,textSpan:F}]})},ye.prototype.markSearchedSymbols=function(ke,F){for(var c=e.getNodeId(ke),L=this.sourceFileToSeenSymbols[c]||(this.sourceFileToSeenSymbols[c]=e.createMap()),te=!1,Se=0,Ne=F;Se<Ne.length;Se++){var ze=Ne[Se];te=e.addToSeen(L,e.getSymbolId(ze))||te}return te},ye}();function X(ye,ke,F,c){var L=c.getImportSearches(ke,F),te=L.importSearches,Se=L.singleReferences,Ne=L.indirectUsers;if(Se.length)for(var ze=c.referenceAdder(ke),Tn=0,wn=Se;Tn<wn.length;Tn++){var jn=wn[Tn];Q(jn,c)&&ze(jn)}for(var nn=0,pn=te;nn<pn.length;nn++){var le=pn[nn],oe=le[0],Cn=le[1];y(oe.getSourceFile(),c.createSearch(oe,Cn,1),c)}if(Ne.length){var yn=void 0;switch(F.exportKind){case 0:yn=c.createSearch(ye,ke,1);break;case 1:yn=c.options.isForRename?void 0:c.createSearch(ye,ke,1,{text:"default"});break;case 2:break}if(yn)for(var _e=0,dn=Ne;_e<dn.length;_e++){var un=dn[_e];se(un,yn,c)}}}function $(ye,ke,F,c,L,te,Se,Ne){for(var ze=M.createImportTracker(ye,e.arrayToSet(ye,function(Rn){return Rn.fileName}),ke,F),Tn=ze(c,{exportKind:Se?1:0,exportingModuleSymbol:L},!1),wn=Tn.importSearches,jn=Tn.indirectUsers,nn=0,pn=wn;nn<pn.length;nn++){var le=pn[nn][0];Ne(le)}for(var oe=0,Cn=jn;oe<Cn.length;oe++)for(var yn=Cn[oe],_e=0,dn=K(yn,Se?"default":te);_e<dn.length;_e++){var un=dn[_e];e.isIdentifier(un)&&!e.isImportOrExportSpecifier(un.parent)&&ke.getSymbolAtLocation(un)===c&&Ne(un)}}Ee.eachExportReference=$;function Q(ye,ke){return k(ye,ke)?ke.options.isForRename?e.isIdentifier(ye)?!(e.isImportOrExportSpecifier(ye.parent)&&ye.escapedText==="default"):!1:!0:!1}function z(ye,ke){for(var F=0,c=ye.declarations;F<c.length;F++){var L=c[F],te=L.getSourceFile();y(te,ke.createSearch(L,ye,0),ke,ke.includesSourceFile(te))}}function se(ye,ke,F){e.getNameTable(ye).get(ke.escapedText)!==void 0&&y(ye,ke,F)}function G(ye,ke){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(ye.parent.parent)?ke.getPropertySymbolOfDestructuringAssignment(ye):void 0}function H(ye){var ke=ye.declarations,F=ye.flags,c=ye.parent,L=ye.valueDeclaration;if(L&&(L.kind===200||L.kind===213))return L;if(!ke)return;if(F&(4|8192)){var te=e.find(ke,function(nn){return e.hasModifier(nn,8)});return te?e.getAncestor(te,244):void 0}if(ke.some(e.isObjectBindingElementWithoutPropertyName))return;var Se=c&&!(ye.flags&262144);if(Se&&!(e.isExternalModuleSymbol(c)&&!c.globalExports))return;for(var Ne,ze=0,Tn=ke;ze<Tn.length;ze++){var wn=Tn[ze],jn=e.getContainerNode(wn);if(Ne&&Ne!==jn)return;if(!jn||jn.kind===288&&!e.isExternalOrCommonJsModule(jn))return;Ne=jn}return Se?Ne.getSourceFile():Ne}function q(ye,ke,F){return be(ye,ke,F,function(){return!0})||!1}Ee.isSymbolReferencedInFile=q;function be(ye,ke,F,c){var L=e.isParameterPropertyDeclaration(ye.parent,ye.parent.parent)?e.first(ke.getSymbolsOfParameterPropertyDeclaration(ye.parent,ye.text)):ke.getSymbolAtLocation(ye);if(!L)return;for(var te=0,Se=K(F,L.name);te<Se.length;te++){var Ne=Se[te];if(!e.isIdentifier(Ne)||Ne===ye||Ne.escapedText!==ye.escapedText)continue;var ze=ke.getSymbolAtLocation(Ne);if(ze===L||ke.getShorthandAssignmentValueSymbol(Ne.parent)===L||e.isExportSpecifier(Ne.parent)&&O(Ne,ze,Ne.parent,ke)===L){var Tn=c(Ne);if(Tn)return Tn}}}Ee.eachSymbolReferenceInFile=be;function R(ye,ke,F,c){if(!ye.name||!e.isIdentifier(ye.name))return;for(var L=e.Debug.assertDefined(F.getSymbolAtLocation(ye.name)),te=0,Se=ke;te<Se.length;te++)for(var Ne=Se[te],ze=0,Tn=K(Ne,L.name);ze<Tn.length;ze++){var wn=Tn[ze];if(!e.isIdentifier(wn)||wn===ye.name||wn.escapedText!==ye.name.escapedText)continue;var jn=e.climbPastPropertyAccess(wn),nn=jn.parent;if(!e.isCallExpression(nn)||nn.expression!==jn)continue;var pn=F.getSymbolAtLocation(wn);pn&&F.getRootSymbols(pn).some(function(le){return le===L})&&c(nn)}}Ee.eachSignatureCall=R;function K(ye,ke,F){return F===void 0&&(F=ye),m(ye,ke,F).map(function(c){return e.getTouchingPropertyName(ye,c)})}function m(ye,ke,F){F===void 0&&(F=ye);var c=[];if(!ke||!ke.length)return c;for(var L=ye.text,te=L.length,Se=ke.length,Ne=L.indexOf(ke,F.pos);Ne>=0&&!(Ne>F.end);){var ze=Ne+Se;(Ne===0||!e.isIdentifierPart(L.charCodeAt(Ne-1),99))&&(ze===te||!e.isIdentifierPart(L.charCodeAt(ze),99))&&c.push(Ne),Ne=L.indexOf(ke,Ne+Se+1)}return c}function _(ye,ke){var F=ye.getSourceFile(),c=ke.text,L=e.mapDefined(K(F,c,ye),function(te){return te===ke||e.isJumpStatementTarget(te)&&e.getTargetLabel(te,c)===ke?M.nodeEntry(te):void 0});return[{definition:{type:1,node:ke},references:L}]}function I(ye,ke){switch(ye.kind){case 75:return ye.text.length===ke.length;case 14:case 10:{var F=ye;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(F)||e.isNameOfModuleDeclaration(ye)||e.isExpressionOfExternalModuleImportEqualsDeclaration(ye)||e.isCallExpression(ye.parent)&&e.isBindableObjectDefinePropertyCall(ye.parent)&&ye.parent.arguments[1]===ye)&&F.text.length===ke.length}case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(ye)&&ye.text.length===ke.length;case 83:return"default".length===ke.length;default:return!1}}function D(ye,ke,F,c){var L=e.flatMap(ye,function(te){return F.throwIfCancellationRequested(),e.mapDefined(K(te,e.tokenToString(ke),te),function(Se){if(Se.kind===ke&&(!c||c(Se)))return M.nodeEntry(Se)})});return L.length?[{definition:{type:2,node:L[0].node},references:L}]:void 0}function y(ye,ke,F,c){return c===void 0&&(c=!0),F.cancellationToken.throwIfCancellationRequested(),E(ye,ye,ke,F,c)}function E(ye,ke,F,c,L){if(!c.markSearchedSymbols(ke,F.allSearchSymbols))return;for(var te=0,Se=m(ke,F.text,ye);te<Se.length;te++){var Ne=Se[te];T(ke,Ne,F,c,L)}}function k(ye,ke){return!!(e.getMeaningFromLocation(ye)&ke.searchMeaning)}function T(ye,ke,F,c,L){var te=e.getTouchingPropertyName(ye,ke);if(!I(te,F.text)){!c.options.implementations&&(c.options.findInStrings&&e.isInString(ye,ke)||c.options.findInComments&&e.isInNonReferenceComment(ye,ke))&&c.addStringOrCommentReference(ye.fileName,e.createTextSpan(ke,F.text.length));return}if(!k(te,c))return;var Se=c.checker.getSymbolAtLocation(te);if(!Se)return;var Ne=te.parent;if(e.isImportSpecifier(Ne)&&Ne.propertyName===te)return;if(e.isExportSpecifier(Ne)){e.Debug.assert(te.kind===75),ne(te,Se,Ne,F,c,L);return}var ze=fe(F,Se,te,c);if(!ze){S(Se,F,c);return}switch(c.specialSearchKind){case 0:L&&v(te,ze,c);break;case 1:U(te,ye,F,c);break;case 2:ue(te,F,c);break;default:e.Debug.assertNever(c.specialSearchKind)}pe(te,Se,F,c)}function ne(ye,ke,F,c,L,te,Se){e.Debug.assert(!Se||!!L.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var Ne=F.parent,ze=F.propertyName,Tn=F.name,wn=Ne.parent,jn=O(ye,ke,F,L.checker);if(!Se&&!c.includes(jn))return;if(ze?ye===ze?(wn.moduleSpecifier||yn(),te&&!L.options.isForRename&&L.markSeenReExportRHS(Tn)&&v(Tn,e.Debug.assertDefined(F.symbol),L)):L.markSeenReExportRHS(ye)&&yn():L.options.isForRename&&Tn.escapedText==="default"||yn(),!ln(L.options)||Se){var nn=ye.originalKeywordKind===83||F.name.originalKeywordKind===83,pn=nn?1:0,le=e.Debug.assertDefined(F.symbol),oe=M.getExportInfo(le,pn,L.checker);oe&&X(ye,le,oe,L)}if(c.comingFrom!==1&&wn.moduleSpecifier&&!ze&&!ln(L.options)){var Cn=L.checker.getExportSpecifierLocalTargetSymbol(F);Cn&&z(Cn,L)}function yn(){te&&v(ye,jn,L)}}function O(ye,ke,F,c){return Y(ye,F)&&c.getExportSpecifierLocalTargetSymbol(F)||ke}function Y(ye,ke){var F=ke.parent,c=ke.propertyName,L=ke.name;return e.Debug.assert(c===ye||L===ye),c?c===ye:!F.parent.moduleSpecifier}function pe(ye,ke,F,c){var L=M.getImportOrExportSymbol(ye,ke,c.checker,F.comingFrom===1);if(!L)return;var te=L.symbol;L.kind===0?ln(c.options)||z(te,c):X(ye,te,L.exportInfo,c)}function S(ye,ke,F){var c=ye.flags,L=ye.valueDeclaration,te=F.checker.getShorthandAssignmentValueSymbol(L),Se=L&&e.getNameOfDeclaration(L);!(c&33554432)&&Se&&ke.includes(te)&&v(Se,te,F)}function v(ye,ke,F){var c="kind"in ke?ke:{kind:void 0,symbol:ke},L=c.kind,te=c.symbol,Se=F.referenceAdder(te);F.options.implementations?ve(ye,Se,F):Se(ye,L)}function U(ye,ke,F,c){e.isNewExpressionTarget(ye)&&v(ye,F.symbol,c);var L=function(){return c.referenceAdder(F.symbol)};if(e.isClassLike(ye.parent))e.Debug.assert(ye.kind===83||ye.parent.name===ye),De(F.symbol,ke,L());else{var te=cn(ye);te&&(Re(te,L()),He(te,c))}}function ue(ye,ke,F){v(ye,ke.symbol,F);var c=ye.parent;if(F.options.isForRename||!e.isClassLike(c))return;e.Debug.assert(c.name===ye);for(var L=F.referenceAdder(ke.symbol),te=0,Se=c.members;te<Se.length;te++){var Ne=Se[te];if(!(e.isMethodOrAccessor(Ne)&&e.hasModifier(Ne,32)))continue;Ne.body&&Ne.body.forEachChild(function ze(Tn){Tn.kind===103?L(Tn):!e.isFunctionLike(Tn)&&!e.isClassLike(Tn)&&Tn.forEachChild(ze)})}}function De(ye,ke,F){var c=Z(ye);if(c)for(var L=0,te=c.declarations;L<te.length;L++){var Se=te[L],Ne=e.findChildOfKind(Se,128,ke);e.Debug.assert(Se.kind===161&&!!Ne),F(Ne)}ye.exports&&ye.exports.forEach(function(ze){var Tn=ze.valueDeclaration;if(Tn&&Tn.kind===160){var wn=Tn.body;wn&&Fe(wn,103,function(jn){e.isNewExpressionTarget(jn)&&F(jn)})}})}function Z(ye){return ye.members&&ye.members.get("__constructor")}function Re(ye,ke){var F=Z(ye.symbol);if(!F)return;for(var c=0,L=F.declarations;c<L.length;c++){var te=L[c];e.Debug.assert(te.kind===161);var Se=te.body;Se&&Fe(Se,101,function(Ne){e.isCallExpressionTarget(Ne)&&ke(Ne)})}}function we(ye){return!!Z(ye.symbol)}function He(ye,ke){if(we(ye))return;var F=ye.symbol,c=ke.createSearch(void 0,F,void 0);ie(F,ke,c)}function ve(ye,ke,F){if(e.isDeclarationName(ye)&&Je(ye.parent)){ke(ye);return}if(ye.kind!==75)return;ye.parent.kind===280&&$e(ye,F.checker,ke);var c=je(ye);if(c){ke(c);return}var L=e.findAncestor(ye,function(ze){return!e.isQualifiedName(ze.parent)&&!e.isTypeNode(ze.parent)&&!e.isTypeElement(ze.parent)}),te=L.parent;if(e.hasType(te)&&te.type===L&&F.markSeenContainingTypeReference(te))if(e.hasInitializer(te))Ne(te.initializer);else if(e.isFunctionLike(te)&&te.body){var Se=te.body;Se.kind===222?e.forEachReturnStatement(Se,function(ze){ze.expression&&Ne(ze.expression)}):Ne(Se)}else e.isAssertionExpression(te)&&Ne(te.expression);function Ne(ze){w(ze)&&ke(ze)}}function je(ye){return e.isIdentifier(ye)||e.isPropertyAccessExpression(ye)?je(ye.parent):e.isExpressionWithTypeArguments(ye)?e.tryCast(ye.parent.parent,e.isClassLike):void 0}function w(ye){switch(ye.kind){case 199:return w(ye.expression);case 201:case 200:case 192:case 213:case 191:return!0;default:return!1}}function j(ye,ke,F,c){if(ye===ke)return!0;var L=e.getSymbolId(ye)+","+e.getSymbolId(ke),te=F.get(L);if(te!==void 0)return te;F.set(L,!1);var Se=ye.declarations.some(function(Ne){return e.getAllSuperTypeNodes(Ne).some(function(ze){var Tn=c.getTypeAtLocation(ze);return!!Tn&&!!Tn.symbol&&j(Tn.symbol,ke,F,c)})});return F.set(L,Se),Se}function Pe(ye){var ke=e.getSuperContainer(ye,!1);if(!ke)return;var F=32;switch(ke.kind){case 158:case 157:case 160:case 159:case 161:case 162:case 163:F&=e.getModifierFlags(ke),ke=ke.parent;break;default:return}var c=ke.getSourceFile(),L=e.mapDefined(K(c,"super",ke),function(te){if(te.kind!==101)return;var Se=e.getSuperContainer(te,!1);return Se&&(32&e.getModifierFlags(Se))===F&&Se.parent.symbol===ke.symbol?M.nodeEntry(te):void 0});return[{definition:{type:0,symbol:ke.symbol},references:L}]}function a(ye){return ye.kind===75&&ye.parent.kind===155&&ye.parent.name===ye}function Ze(ye,ke,F){var c=e.getThisContainer(ye,!1),L=32;switch(c.kind){case 160:case 159:if(e.isObjectLiteralMethod(c))break;case 158:case 157:case 161:case 162:case 163:L&=e.getModifierFlags(c),c=c.parent;break;case 288:if(e.isExternalModule(c)||a(ye))return;case 243:case 200:break;default:return}var te=e.flatMap(c.kind===288?ke:[c.getSourceFile()],function(Ne){return F.throwIfCancellationRequested(),K(Ne,"this",e.isSourceFile(c)?Ne:c).filter(function(ze){if(!e.isThis(ze))return!1;var Tn=e.getThisContainer(ze,!1);switch(c.kind){case 200:case 243:return c.symbol===Tn.symbol;case 160:case 159:return e.isObjectLiteralMethod(c)&&c.symbol===Tn.symbol;case 213:case 244:return Tn.parent&&c.symbol===Tn.parent.symbol&&(e.getModifierFlags(Tn)&32)===L;case 288:return Tn.kind===288&&!e.isExternalModule(Tn)&&!a(ze)}})}).map(function(Ne){return M.nodeEntry(Ne)}),Se=e.firstDefined(te,function(Ne){return e.isParameter(Ne.node.parent)?Ne.node:void 0});return[{definition:{type:3,node:Se||ye},references:te}]}function In(ye,ke,F){var c=e.flatMap(ke,function(L){return F.throwIfCancellationRequested(),e.mapDefined(K(L,ye.text),function(te){return e.isStringLiteral(te)&&te.text===ye.text?M.nodeEntry(te,2):void 0})});return[{definition:{type:4,node:ye},references:c}]}function et(ye,ke,F,c,L,te){var Se=[];return ae(ye,ke,F,c,!(c&&L),function(Ne,ze,Tn){Se.push(Tn||ze||Ne)},function(){return!te}),Se}function ae(ye,ke,F,c,L,te,Se){var Ne=e.getContainingObjectLiteralElement(ke);if(Ne){var ze=F.getShorthandAssignmentValueSymbol(ke.parent);if(ze&&c)return te(ze,void 0,void 0,3);var Tn=F.getContextualType(Ne.parent),wn=Tn&&e.firstDefined(e.getPropertySymbolsFromContextualType(Ne,F,Tn,!0),function(at){return un(at,4)});if(wn)return wn;var jn=G(ke,F),nn=jn&&te(jn,void 0,void 0,4);if(nn)return nn;var pn=ze&&te(ze,void 0,void 0,3);if(pn)return pn}var le=Be(ke,ye,F);if(le){var oe=te(le,void 0,void 0,1);if(oe)return oe}var Cn=un(ye);if(Cn)return Cn;if(ye.valueDeclaration&&e.isParameterPropertyDeclaration(ye.valueDeclaration,ye.valueDeclaration.parent)){var yn=F.getSymbolsOfParameterPropertyDeclaration(e.cast(ye.valueDeclaration,e.isParameter),ye.name);return e.Debug.assert(yn.length===2&&!!(yn[0].flags&1)&&!!(yn[1].flags&4)),un(ye.flags&1?yn[1]:yn[0])}if(!c){var _e=void 0;return L?_e=e.isObjectBindingElementWithoutPropertyName(ke.parent)?e.getPropertySymbolFromBindingElement(F,ke.parent):void 0:_e=Rn(ye,F),_e&&un(_e,4)}e.Debug.assert(c);var dn=L;if(dn){var _e=Rn(ye,F);return _e&&un(_e,4)}function un(at,Bn){return e.firstDefined(F.getRootSymbols(at),function(ut){return te(at,ut,void 0,Bn)||(ut.parent&&ut.parent.flags&(32|64)&&Se(ut)?e.getPropertySymbolsFromBaseTypes(ut.parent,ut.name,F,function(ct){return te(at,ut,ct,Bn)}):void 0)})}function Rn(at,Bn){var ut=e.getDeclarationOfKind(at,190);if(ut&&e.isObjectBindingElementWithoutPropertyName(ut))return e.getPropertySymbolFromBindingElement(Bn,ut)}}function fe(ye,ke,F,c){var L=c.checker;return ae(ke,F,L,!1,!c.options.isForRename||!!c.options.providePrefixAndSuffixTextForRename,function(te,Se,Ne,ze){return ye.includes(Ne||Se||te)?{symbol:Se&&!(e.getCheckFlags(te)&6)?Se:te,kind:ze}:void 0},function(te){return!(ye.parents&&!ye.parents.some(function(Se){return j(te.parent,Se,c.inheritsFromCache,L)}))})}function Le(ye,ke){var F=e.getMeaningFromLocation(ye),c=ke.declarations;if(c){var L=void 0;do{L=F;for(var te=0,Se=c;te<Se.length;te++){var Ne=Se[te],ze=e.getMeaningFromDeclaration(Ne);ze&F&&(F|=ze)}}while(F!==L)}return F}Ee.getIntersectingMeaningFromDeclarations=Le;function Je(ye){return ye.flags&8388608?!(e.isInterfaceDeclaration(ye)||e.isTypeAliasDeclaration(ye)):e.isVariableLike(ye)?e.hasInitializer(ye):e.isFunctionLikeDeclaration(ye)?!!ye.body:e.isClassLike(ye)||e.isModuleOrEnumDeclaration(ye)}function $e(ye,ke,F){var c=ke.getSymbolAtLocation(ye),L=ke.getShorthandAssignmentValueSymbol(c.valueDeclaration);if(L)for(var te=0,Se=L.getDeclarations();te<Se.length;te++){var Ne=Se[te];e.getMeaningFromDeclaration(Ne)&1&&F(Ne)}}Ee.getReferenceEntriesForShorthandPropertyAssignment=$e;function Fe(ye,ke,F){e.forEachChild(ye,function(c){c.kind===ke&&F(c),Fe(c,ke,F)})}function cn(ye){return e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(ye).parent)}function Qe(ye,ke,F){var c=e.isRightSideOfPropertyAccess(ye)?ye.parent:void 0,L=c&&F.getTypeAtLocation(c.expression),te=e.mapDefined(L&&(L.isUnionOrIntersection()?L.types:L.symbol===ke.parent?void 0:[L]),function(Se){return Se.symbol&&Se.symbol.flags&(32|64)?Se.symbol:void 0});return te.length===0?void 0:te}function ln(ye){return ye.isForRename&&ye.providePrefixAndSuffixTextForRename}})(qe=M.Core||(M.Core={}))})(o=e.FindAllReferences||(e.FindAllReferences={}))}(sn||(sn={}));var sn;(function(e){function o(Te,ie,ce,x,C,P,h){var X=e.hostUsesCaseSensitiveFileNames(x),$=e.createGetCanonicalFileName(X),Q=M(ie,ce,$,h),z=M(ce,ie,$,h);return e.textChanges.ChangeTracker.with({host:x,formatContext:C,preferences:P},function(se){Ee(Te,se,Q,ie,ce,x.getCurrentDirectory(),X),Ge(Te,se,Q,z,x,$)})}e.getEditsForFileRename=o;function M(Te,ie,ce,x){var C=ce(Te);return function(h){var X=x&&x.tryGetSourcePosition({fileName:h,pos:0}),$=P(X?X.fileName:h);return X?$===void 0?void 0:qe(X.fileName,$,h,ce):$};function P(h){if(ce(h)===C)return ie;var X=e.tryRemoveDirectoryPrefix(h,C,ce);return X===void 0?void 0:ie+"/"+X}}e.getPathUpdater=M;function qe(Te,ie,ce,x){var C=e.getRelativePathFromFile(Te,ie,x);return he(e.getDirectoryPath(ce),C)}function Ee(Te,ie,ce,x,C,P,h){var X=Te.getCompilerOptions().configFile;if(!X)return;var $=e.getDirectoryPath(X.fileName),Q=e.getTsConfigObjectLiteralExpression(X);if(!Q)return;N(Q,function(H,q){switch(q){case"files":case"include":case"exclude":{var be=z(H);if(!be&&q==="include"&&e.isArrayLiteralExpression(H.initializer)){var R=e.mapDefined(H.initializer.elements,function(m){return e.isStringLiteral(m)?m.text:void 0}),K=e.getFileMatcherPatterns($,[],R,h,P);e.getRegexFromPattern(e.Debug.assertDefined(K.includeFilePattern),h).test(x)&&!e.getRegexFromPattern(e.Debug.assertDefined(K.includeFilePattern),h).test(C)&&ie.insertNodeAfter(X,e.last(H.initializer.elements),e.createStringLiteral(G(C)))}break}case"compilerOptions":N(H.initializer,function(m,_){var I=e.getOptionFromName(_);I&&(I.isFilePath||I.type==="list"&&I.element.isFilePath)?z(m):_==="paths"&&N(m.initializer,function(D){if(!e.isArrayLiteralExpression(D.initializer))return;for(var y=0,E=D.initializer.elements;y<E.length;y++){var k=E[y];se(k)}})});break}});function z(H){for(var q=e.isArrayLiteralExpression(H.initializer)?H.initializer.elements:[H.initializer],be=!1,R=0,K=q;R<K.length;R++){var m=K[R];be=se(m)||be}return be}function se(H){if(!e.isStringLiteral(H))return!1;var q=he($,H.text),be=ce(q);return be!==void 0?(ie.replaceRangeWithText(X,Oe(H,X),G(be)),!0):!1}function G(H){return e.getRelativePathFromDirectory($,H,!h)}}function Ge(Te,ie,ce,x,C,P){for(var h=Te.getSourceFiles(),X=function(se){var G=ce(se.path),H=G!==void 0?G:se.path,q=e.getDirectoryPath(H),be=x(se.fileName),R=be||se.fileName,K=e.getDirectoryPath(R),m=G!==void 0||be!==void 0;J(se,ie,function(_){if(!e.pathIsRelative(_))return;var I=he(K,_),D=ce(I);return D===void 0?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(q,D,P))},function(_){var I=Te.getTypeChecker().getSymbolAtLocation(_);if(I&&I.declarations.some(function(y){return e.isAmbientModule(y)}))return;var D=be!==void 0?f(e.resolveModuleName(_.text,R,Te.getCompilerOptions(),C),ce):ee(I,_,se,Te,C,ce);return D!==void 0&&(D.updated||m&&e.pathIsRelative(_.text))?e.moduleSpecifiers.updateModuleSpecifier(Te.getCompilerOptions(),H,D.newFileName,C,h,Te.redirectTargetsMap,_.text):void 0})},$=0,Q=h;$<Q.length;$++){var z=Q[$];X(z)}}function Be(Te,ie){return e.normalizePath(e.combinePaths(Te,ie))}function he(Te,ie){return e.ensurePathIsNonModuleName(Be(Te,ie))}function ee(Te,ie,ce,x,C,P){if(Te){var h=e.find(Te.declarations,e.isSourceFile).fileName,X=P(h);return X===void 0?{newFileName:h,updated:!1}:{newFileName:X,updated:!0}}else{var $=C.resolveModuleNames?C.getResolvedModuleWithFailedLookupLocationsFromCache&&C.getResolvedModuleWithFailedLookupLocationsFromCache(ie.text,ce.fileName):x.getResolvedModuleWithFailedLookupLocationsFromCache(ie.text,ce.fileName);return f($,P)}}function f(Te,ie){if(!Te)return;if(Te.resolvedModule){var ce=P(Te.resolvedModule.resolvedFileName);if(ce)return ce}var x=e.forEach(Te.failedLookupLocations,C);if(x)return x;return Te.resolvedModule&&{newFileName:Te.resolvedModule.resolvedFileName,updated:!1};function C(h){return e.endsWith(h,"/package.json")?void 0:P(h)}function P(h){var X=ie(h);return X&&{newFileName:X,updated:!0}}}function J(Te,ie,ce,x){for(var C=0,P=Te.referencedFiles||e.emptyArray;C<P.length;C++){var h=P[C],X=ce(h.fileName);X!==void 0&&X!==Te.text.slice(h.pos,h.end)&&ie.replaceRangeWithText(Te,h,X)}for(var $=0,Q=Te.imports;$<Q.length;$++){var z=Q[$],X=x(z);X!==void 0&&X!==z.text&&ie.replaceRangeWithText(Te,Oe(z,Te),X)}}function Oe(Te,ie){return e.createRange(Te.getStart(ie)+1,Te.end-1)}function N(Te,ie){if(!e.isObjectLiteralExpression(Te))return;for(var ce=0,x=Te.properties;ce<x.length;ce++){var C=x[ce];e.isPropertyAssignment(C)&&e.isStringLiteral(C.name)&&ie(C,C.name.text)}}})(sn||(sn={}));var sn;(function(e){var o;(function(M){function qe(z,se,G){var H=Ge(se,G,z);if(H)return[P(H.fileName,H.file.fileName)];var q=e.getTouchingPropertyName(se,G);if(q===se)return;var be=q.parent;if(e.isJumpStatementTarget(q)){var R=e.getTargetLabel(q.parent,q.text);return R?[ce(R,"label",q.text,void 0)]:void 0}var K=z.getTypeChecker(),m=Oe(q,K);if(!m)return J(q,K);var _=$(K,q);if(_&&!(e.isJsxOpeningLikeElement(q.parent)&&Q(_))){var I=x(K,_);if(K.getRootSymbols(m).some(function(O){return Ee(O,_)})||m.declarations&&m.declarations.some(function(O){return e.isVariableDeclaration(O)&&!!O.initializer&&e.isRequireCall(O.initializer,!1)}))return[I];var D=Te(K,m,q,_)||e.emptyArray;return q.kind===101?Tr([I],D):Tr(D,[I])}if(q.parent.kind===280){var y=K.getShorthandAssignmentValueSymbol(m.valueDeclaration);return y?y.declarations.map(function(O){return ie(O,K,y,q)}):[]}if(e.isPropertyName(q)&&e.isBindingElement(be)&&e.isObjectBindingPattern(be.parent)&&q===(be.propertyName||be.name)){var E=e.getNameFromPropertyName(q),k=K.getTypeAtLocation(be.parent);return E===void 0?e.emptyArray:e.flatMap(k.isUnion()?k.types:[k],function(O){var Y=O.getProperty(E);return Y&&Te(K,Y,q)})}var T=e.getContainingObjectLiteralElement(q);if(T){var ne=T&&K.getContextualType(T.parent);if(ne)return e.flatMap(e.getPropertySymbolsFromContextualType(T,K,ne,!1),function(O){return Te(K,O,q)})}return Te(K,m,q)}M.getDefinitionAtPosition=qe;function Ee(z,se){return z===se.symbol||z===se.symbol.parent||!e.isCallLikeExpression(se.parent)&&z===se.parent.symbol}function Ge(z,se,G){var H=C(z.referencedFiles,se);if(H){var q=G.getSourceFileFromReference(z,H);return q&&{fileName:H.fileName,file:q}}var be=C(z.typeReferenceDirectives,se);if(be){var R=G.getResolvedTypeReferenceDirectives().get(be.fileName),q=R&&G.getSourceFile(R.resolvedFileName);return q&&{fileName:be.fileName,file:q}}var K=C(z.libReferenceDirectives,se);if(K){var q=G.getLibFileFromReference(K);return q&&{fileName:K.fileName,file:q}}return}M.getReferenceAtPosition=Ge;function Be(z,se,G){var H=e.getTouchingPropertyName(se,G);if(H===se)return;var q=z.getSymbolAtLocation(H);if(!q)return;var be=z.getTypeOfSymbolAtLocation(q,H),R=ee(q,be,z),K=R&&he(R,z,H);return K&&K.length!==0?K:he(be,z,H)}M.getTypeDefinitionAtPosition=Be;function he(z,se,G){return e.flatMap(z.isUnion()&&!(z.flags&32)?z.types:[z],function(H){return H.symbol&&Te(se,H.symbol,G)})}function ee(z,se,G){if(se.symbol===z||z.valueDeclaration&&se.symbol&&e.isVariableDeclaration(z.valueDeclaration)&&z.valueDeclaration.initializer===se.symbol.valueDeclaration){var H=se.getCallSignatures();if(H.length===1)return G.getReturnTypeOfSignature(e.first(H))}return}function f(z,se,G){var H=qe(z,se,G);if(!H||H.length===0)return;var q=C(se.referencedFiles,G)||C(se.typeReferenceDirectives,G)||C(se.libReferenceDirectives,G);if(q)return{definitions:H,textSpan:e.createTextSpanFromRange(q)};var be=e.getTouchingPropertyName(se,G),R=e.createTextSpan(be.getStart(),be.getWidth());return{definitions:H,textSpan:R}}M.getDefinitionAndBoundSpan=f;function J(z,se){if(!e.isPropertyAccessExpression(z.parent)||z.parent.name!==z)return;var G=se.getTypeAtLocation(z.parent.expression);return e.mapDefined(G.isUnionOrIntersection()?G.types:[G],function(H){var q=se.getIndexInfoOfType(H,0);return q&&q.declaration&&x(se,q.declaration)})}function Oe(z,se){var G=se.getSymbolAtLocation(z);if(G&&G.flags&2097152&&N(z,G.declarations[0])){var H=se.getAliasedSymbol(G);if(H.declarations)return H}return G}function N(z,se){if(z.kind!==75)return!1;if(z.parent===se)return!0;switch(se.kind){case 254:case 252:return!0;case 257:return se.parent.kind===256;default:return!1}}function Te(z,se,G,H){var q=e.filter(se.declarations,function(m){return m!==H&&(!e.isAssignmentDeclaration(m)||m===se.valueDeclaration)})||void 0;return be()||R()||e.map(q,function(m){return ie(m,z,se,G)});function be(){if(se.flags&32&&!(se.flags&16)&&(e.isNewExpressionTarget(G)||G.kind===128)){var m=e.find(q,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration");return K(m.members,!0)}}function R(){return e.isCallOrNewExpressionTarget(G)||e.isNameOfFunctionDeclaration(G)?K(q,!1):void 0}function K(m,_){if(!m)return;var I=m.filter(_?e.isConstructorDeclaration:e.isFunctionLike),D=I.filter(function(y){return!!y.body});return I.length?D.length!==0?D.map(function(y){return ie(y,z,se,G)}):[ie(e.last(I),z,se,G)]:void 0}}function ie(z,se,G,H){var q=se.symbolToString(G),be=e.SymbolDisplay.getSymbolKind(se,G,H),R=G.parent?se.symbolToString(G.parent,H):"";return ce(z,be,q,R)}function ce(z,se,G,H){var q=e.getNameOfDeclaration(z)||z,be=q.getSourceFile(),R=e.createTextSpanFromNode(q,be);return Rr({fileName:be.fileName,textSpan:R,kind:se,name:G,containerKind:void 0,containerName:H},e.FindAllReferences.toContextSpan(R,be,e.FindAllReferences.getContextNode(z)))}function x(z,se){return ie(se,z,se.symbol,se)}function C(z,se){return e.find(z,function(G){return e.textRangeContainsPositionInclusive(G,se)})}M.findReferenceInPosition=C;function P(z,se){return{fileName:se,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:z,containerName:void 0,containerKind:void 0}}function h(z){var se=X(z),G=se.parent;return G&&e.isCallLikeExpression(G)&&e.getInvokedExpression(G)===se?G:void 0}function X(z){return e.isRightSideOfPropertyAccess(z)?X(z.parent):z}function $(z,se){var G=h(se),H=G&&z.getResolvedSignature(G);return e.tryCast(H&&H.declaration,function(q){return e.isFunctionLike(q)&&!e.isFunctionTypeNode(q)})}function Q(z){switch(z.kind){case 161:case 170:case 165:return!0;default:return!1}}})(o=e.GoToDefinition||(e.GoToDefinition={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],Ee,Ge;function Be($){var Q=[];return e.forEachUnique($,function(z){for(var se=0,G=he(z);se<G.length;se++){var H=G[se].comment;if(H===void 0)continue;Q.length&&Q.push(e.lineBreakPart()),Q.push(e.textPart(H))}}),Q}M.getJsDocCommentsFromDeclarations=Be;function he($){switch($.kind){case 310:case 316:return[$];case 308:case 315:return[$,$.parent];default:return e.getJSDocCommentsAndTags($)}}function ee($){var Q=[];return e.forEachUnique($,function(z){for(var se=0,G=e.getJSDocTags(z);se<G.length;se++){var H=G[se];Q.push({name:H.tagName.text,text:f(H)})}}),Q}M.getJsDocTagsFromDeclarations=ee;function f($){var Q=$.comment;switch($.kind){case 305:return se($.class);case 314:return G($.typeParameters);case 313:return se($.typeExpression);case 315:case 308:case 316:case 310:var z=$.name;return z?se(z):Q;default:return Q}function se(q){return H(q.getText())}function G(q){return H(q.map(function(be){return be.getText()}).join(", "))}function H(q){return Q===void 0?q:q+" "+Q}}function J(){return Ee||(Ee=e.map(qe,function($){return{name:$,kind:"keyword",kindModifiers:"",sortText:"0"}}))}M.getJSDocTagNameCompletions=J,M.getJSDocTagNameCompletionDetails=N;function Oe(){return Ge||(Ge=e.map(qe,function($){return{name:"@"+$,kind:"keyword",kindModifiers:"",sortText:"0"}}))}M.getJSDocTagCompletions=Oe;function N($){return{name:$,kind:"",kindModifiers:"",displayParts:[e.textPart($)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}M.getJSDocTagCompletionDetails=N;function Te($){if(!e.isIdentifier($.name))return e.emptyArray;var Q=$.name.text,z=$.parent,se=z.parent;return e.isFunctionLike(se)?e.mapDefined(se.parameters,function(G){if(!e.isIdentifier(G.name))return;var H=G.name.text;return z.tags.some(function(q){return q!==$&&e.isJSDocParameterTag(q)&&e.isIdentifier(q.name)&&q.name.escapedText===H})||Q!==void 0&&!e.startsWith(H,Q)?void 0:{name:H,kind:"parameter",kindModifiers:"",sortText:"0"}}):[]}M.getJSDocParameterNameCompletions=Te;function ie($){return{name:$,kind:"parameter",kindModifiers:"",displayParts:[e.textPart($)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}M.getJSDocParameterNameCompletionDetails=ie;function ce($,Q,z){var se=e.getTokenAtPosition(Q,z),G=e.findAncestor(se,e.isJSDoc);if(G&&(G.comment!==void 0||e.length(G.tags)))return;var H=se.getStart(Q);if(!G&&H<z)return;var q=P(se);if(!q)return;var be=q.commentOwner,R=q.parameters;if(be.getStart(Q)<z)return;if(!R||R.length===0){var K="/** */";return{newText:K,caretOffset:3}}var m=x(Q,z),_="/**"+$+m+" * ",I=_+$+C(R,e.hasJSFileExtension(Q.fileName),m,$)+m+" */"+(H===z?$+m:"");return{newText:I,caretOffset:_.length}}M.getDocCommentTemplateAtPosition=ce;function x($,Q){for(var z=$.text,se=e.getLineStartPositionForPosition(Q,$),G=se;G<=Q&&e.isWhiteSpaceSingleLine(z.charCodeAt(G));G++);return z.slice(se,G)}function C($,Q,z,se){return $.map(function(G,H){var q=G.name,be=G.dotDotDotToken,R=q.kind===75?q.text:"param"+H,K=Q?be?"{...any} ":"{any} ":"";return z+" * @param "+K+R+se}).join("")}function P($){return e.forEachAncestor($,h)}function h($){switch($.kind){case 243:case 200:case 160:case 161:case 159:var Q=$.parameters;return{commentOwner:$,parameters:Q};case 279:return h($.initializer);case 244:case 245:case 157:case 247:case 282:case 246:return{commentOwner:$};case 224:{var z=$,se=z.declarationList.declarations,G=se.length===1&&se[0].initializer?X(se[0].initializer):void 0;return{commentOwner:$,parameters:G}}case 288:return"quit";case 248:return $.parent.kind===248?void 0:{commentOwner:$};case 208:{var H=$;if(e.getAssignmentDeclarationKind(H)===0)return"quit";var q=e.isFunctionLike(H.right)?H.right.parameters:e.emptyArray;return{commentOwner:$,parameters:q}}}}function X($){for(;$.kind===199;)$=$.expression;switch($.kind){case 200:case 201:return $.parameters;case 213:{var Q=e.find($.members,e.isConstructorDeclaration);return Q?Q.parameters:e.emptyArray}}return e.emptyArray}})(o=e.JsDoc||(e.JsDoc={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){function qe(N,Te,ie,ce,x,C){var P=e.createPatternMatcher(ce);if(!P)return e.emptyArray;for(var h=[],X=function(se){if(ie.throwIfCancellationRequested(),C&&se.isDeclarationFile)return"continue";se.getNamedDeclarations().forEach(function(G,H){Ee(P,H,G,Te,se.fileName,h)})},$=0,Q=N;$<Q.length;$++){var z=Q[$];X(z)}return h.sort(J),(x===void 0?h:h.slice(0,x)).map(Oe)}M.getNavigateToItems=qe;function Ee(N,Te,ie,ce,x,C){var P=N.getMatchForLastSegmentOfPattern(Te);if(!P)return;for(var h=0,X=ie;h<X.length;h++){var $=X[h];if(!Ge($,ce))continue;if(N.patternContainsDots){var Q=N.getFullMatch(f($),Te);Q&&C.push({name:Te,fileName:x,matchKind:Q.kind,isCaseSensitive:Q.isCaseSensitive,declaration:$})}else C.push({name:Te,fileName:x,matchKind:P.kind,isCaseSensitive:P.isCaseSensitive,declaration:$})}}function Ge(N,Te){switch(N.kind){case 254:case 257:case 252:var ie=Te.getSymbolAtLocation(N.name),ce=Te.getAliasedSymbol(ie);return ie.escapedName!==ce.escapedName;default:return!0}}function Be(N,Te){var ie=e.getNameOfDeclaration(N);return!!ie&&(ee(ie,Te)||ie.kind===153&&he(ie.expression,Te))}function he(N,Te){return ee(N,Te)||e.isPropertyAccessExpression(N)&&(Te.push(N.name.text),!0)&&he(N.expression,Te)}function ee(N,Te){return e.isPropertyNameLiteral(N)&&(Te.push(e.getTextOfIdentifierOrLiteral(N)),!0)}function f(N){var Te=[],ie=e.getNameOfDeclaration(N);if(ie&&ie.kind===153&&!he(ie.expression,Te))return e.emptyArray;Te.shift();for(var ce=e.getContainerNode(N);ce;){if(!Be(ce,Te))return e.emptyArray;ce=e.getContainerNode(ce)}return Te.reverse()}function J(N,Te){return e.compareValues(N.matchKind,Te.matchKind)||e.compareStringsCaseSensitiveUI(N.name,Te.name)}function Oe(N){var Te=N.declaration,ie=e.getContainerNode(Te),ce=ie&&e.getNameOfDeclaration(ie);return{name:N.name,kind:e.getNodeKind(Te),kindModifiers:e.getNodeModifiers(Te),matchKind:e.PatternMatchKind[N.matchKind],isCaseSensitive:N.isCaseSensitive,fileName:N.fileName,textSpan:e.createTextSpanFromNode(Te),containerName:ce?ce.text:"",containerKind:ce?e.getNodeKind(ie):""}}})(o=e.NavigateTo||(e.NavigateTo={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe,Ee=/\s+/g,Ge=150,Be,he,ee=[],f,J=[],Oe,N=[];function Te(w,j){Be=j,he=w;try{return e.map(Y(h(w)),S)}finally{ce()}}M.getNavigationBarItems=Te;function ie(w,j){Be=j,he=w;try{return pe(h(w))}finally{ce()}}M.getNavigationTree=ie;function ce(){he=void 0,Be=void 0,ee=[],f=void 0,N=[]}function x(w){return je(w.getText(he))}function C(w){return w.node.kind}function P(w,j){w.children?w.children.push(j):w.children=[j]}function h(w){e.Debug.assert(!ee.length);var j={node:w,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};f=j;for(var Pe=0,a=w.statements;Pe<a.length;Pe++){var Ze=a[Pe];be(Ze)}return H(),e.Debug.assert(!f&&!ee.length),j}function X(w,j){P(f,$(w,j))}function $(w,j){return{node:w,name:j||(e.isDeclaration(w)||e.isExpression(w)?e.getNameOfDeclaration(w):void 0),additionalNodes:void 0,parent:f,children:void 0,indent:f.indent+1}}function Q(w){Oe||(Oe=e.createMap()),Oe.set(w,!0)}function z(w){for(var j=0;j<w;j++)H()}function se(w,j){for(var Pe=[];!e.isPropertyNameLiteral(j);){var a=e.getNameOrArgument(j),Ze=e.getElementOrPropertyAccessName(j);if(j=j.expression,Ze==="prototype")continue;Pe.push(a)}Pe.push(j);for(var In=Pe.length-1;In>0;In--){var a=Pe[In];G(w,a)}return[Pe.length-1,Pe[0]]}function G(w,j){var Pe=$(w,j);P(f,Pe),ee.push(f),J.push(Oe),f=Pe}function H(){f.children&&(R(f.children,f),k(f.children)),f=ee.pop(),Oe=J.pop()}function q(w,j,Pe){G(w,Pe),be(j),H()}function be(w){var j;if(Be.throwIfCancellationRequested(),!w||e.isToken(w))return;switch(w.kind){case 161:var Pe=w;q(Pe,Pe.body);for(var a=0,Ze=Pe.parameters;a<Ze.length;a++){var In=Ze[a];e.isParameterPropertyDeclaration(In,Pe)&&X(In)}break;case 160:case 162:case 163:case 159:e.hasDynamicName(w)||q(w,w.body);break;case 158:case 157:e.hasDynamicName(w)||X(w);break;case 254:var et=w;et.name&&X(et.name);var ae=et.namedBindings;if(ae)if(ae.kind===255)X(ae);else for(var fe=0,Le=ae.elements;fe<Le.length;fe++){var Je=Le[fe];X(Je)}break;case 280:q(w,w.name);break;case 281:var $e=w.expression;e.isIdentifier($e)?X(w,$e):X(w);break;case 190:case 279:case 241:var Fe=w,cn=Fe.name,Qe=Fe.initializer;e.isBindingPattern(cn)?be(cn):Qe&&ve(Qe)?(G(w),e.forEachChild(Qe,be),H()):q(w,Qe);break;case 243:var ln=w.name;ln&&e.isIdentifier(ln)&&Q(ln.text),q(w,w.body);break;case 201:case 200:q(w,w.body);break;case 247:G(w);for(var ye=0,ke=w.members;ye<ke.length;ye++){var F=ke[ye];De(F)||X(F)}H();break;case 244:case 213:case 245:G(w);for(var c=0,L=w.members;c<L.length;c++){var F=L[c];be(F)}H();break;case 248:q(w,ue(w).body);break;case 261:case 252:case 166:case 164:case 165:case 246:X(w);break;case 195:case 208:{var te=e.getAssignmentDeclarationKind(w);switch(te){case 1:case 2:q(w,w.right);return;case 6:case 3:{var Se=w,Ne=Se.left,ze=te===3?Ne.expression:Ne,Tn=0,wn=void 0;e.isIdentifier(ze.expression)?(Q(ze.expression.text),wn=ze.expression):(j=se(Se,ze.expression),Tn=j[0],wn=j[1]),te===6?e.isObjectLiteralExpression(Se.right)&&(Se.right.properties.length>0&&(G(Se,wn),e.forEachChild(Se.right,be),H())):e.isFunctionExpression(Se.right)||e.isArrowFunction(Se.right)?q(w,Se.right,wn):(G(Se,wn),q(w,Se.right,Ne.name),H()),z(Tn);return}case 7:case 9:{var jn=w,wn=te===7?jn.arguments[0]:jn.arguments[0].expression,nn=jn.arguments[1],pn=se(w,wn),Tn=pn[0],le=pn[1];G(w,le),G(w,e.setTextRange(e.createIdentifier(nn.text),nn)),be(w.arguments[2]),H(),H(),z(Tn);return}case 5:{var Se=w,Ne=Se.left,oe=Ne.expression;if(e.isIdentifier(oe)&&e.getElementOrPropertyAccessName(Ne)!=="prototype"&&Oe&&Oe.has(oe.text)){e.isFunctionExpression(Se.right)||e.isArrowFunction(Se.right)?q(w,Se.right,oe):e.isBindableStaticAccessExpression(Ne)&&(G(Se,oe),q(Se.left,Se.right,e.getNameOrArgument(Ne)),H());return}break}case 4:case 0:case 8:break;default:e.Debug.assertNever(te)}}default:e.hasJSDocNodes(w)&&e.forEach(w.jsDoc,function(Cn){e.forEach(Cn.tags,function(yn){e.isJSDocTypeAlias(yn)&&X(yn)})}),e.forEachChild(w,be)}}function R(w,j){var Pe=e.createMap();e.filterMutate(w,function(a,Ze){var In=a.name||e.getNameOfDeclaration(a.node),et=In&&x(In);if(!et)return!0;var ae=Pe.get(et);if(!ae)return Pe.set(et,a),!0;if(ae instanceof Array){for(var fe=0,Le=ae;fe<Le.length;fe++){var Je=Le[fe];if(_(Je,a,Ze,j))return!1}return ae.push(a),!0}else{var Je=ae;return _(Je,a,Ze,j)?!1:(Pe.set(et,[Je,a]),!0)}})}var K=(qe={},qe[5]=!0,qe[3]=!0,qe[7]=!0,qe[9]=!0,qe[0]=!1,qe[1]=!1,qe[2]=!1,qe[8]=!1,qe[6]=!0,qe[4]=!1,qe);function m(w,j,Pe,a){function Ze(Fe){return e.isFunctionExpression(Fe)||e.isFunctionDeclaration(Fe)||e.isVariableDeclaration(Fe)}var In=e.isBinaryExpression(j.node)||e.isCallExpression(j.node)?e.getAssignmentDeclarationKind(j.node):0,et=e.isBinaryExpression(w.node)||e.isCallExpression(w.node)?e.getAssignmentDeclarationKind(w.node):0;if(K[In]&&K[et]||Ze(w.node)&&K[In]||Ze(j.node)&&K[et]||e.isClassDeclaration(w.node)&&K[In]||e.isClassDeclaration(j.node)&&K[et]||e.isClassDeclaration(w.node)&&Ze(j.node)||e.isClassDeclaration(j.node)&&Ze(w.node)){var ae=w.additionalNodes&&e.lastOrUndefined(w.additionalNodes)||w.node;if(!e.isClassDeclaration(w.node)&&!e.isClassDeclaration(j.node)||Ze(w.node)||Ze(j.node)){var fe=Ze(w.node)?w.node:Ze(j.node)?j.node:void 0;if(fe!==void 0){var Le=e.setTextRange(e.createConstructor(void 0,void 0,[],void 0),fe),Je=$(Le);Je.indent=w.indent+1,Je.children=w.node===fe?w.children:j.children,w.children=w.node===fe?e.concatenate([Je],j.children||[j]):e.concatenate(w.children||[w],[Je])}else(w.children||j.children)&&(w.children=e.concatenate(w.children||[w],j.children||[j]),w.children&&(R(w.children,w),k(w.children)));ae=w.node=e.setTextRange(e.createClassDeclaration(void 0,void 0,w.name||e.createIdentifier("__class__"),void 0,void 0,[]),w.node)}else w.children=e.concatenate(w.children,j.children),w.children&&R(w.children,w);var $e=j.node;return a.children[Pe-1].node.end===ae.end?e.setTextRange(ae,{pos:ae.pos,end:$e.end}):(w.additionalNodes||(w.additionalNodes=[]),w.additionalNodes.push(e.setTextRange(e.createClassDeclaration(void 0,void 0,w.name||e.createIdentifier("__class__"),void 0,void 0,[]),j.node))),!0}return!(In===0)}function _(w,j,Pe,a){return m(w,j,Pe,a)?!0:I(w.node,j.node,a)?(E(w,j),!0):!1}function I(w,j,Pe){if(w.kind!==j.kind||w.parent!==j.parent&&!(D(w,Pe)&&D(j,Pe)))return!1;switch(w.kind){case 158:case 160:case 162:case 163:return e.hasModifier(w,32)===e.hasModifier(j,32);case 248:return y(w,j);default:return!0}}function D(w,j){var Pe=e.isModuleBlock(w.parent)?w.parent.parent:w.parent;return Pe===j.node||e.contains(j.additionalNodes,Pe)}function y(w,j){return w.body.kind===j.body.kind&&(w.body.kind!==248||y(w.body,j.body))}function E(w,j){var Pe;w.additionalNodes=w.additionalNodes||[],w.additionalNodes.push(j.node),j.additionalNodes&&(Pe=w.additionalNodes).push.apply(Pe,j.additionalNodes),w.children=e.concatenate(w.children,j.children),w.children&&(R(w.children,w),k(w.children))}function k(w){w.sort(T)}function T(w,j){return e.compareStringsCaseSensitiveUI(ne(w.node),ne(j.node))||e.compareValues(C(w),C(j))}function ne(w){if(w.kind===248)return U(w);var j=e.getNameOfDeclaration(w);if(j&&e.isPropertyName(j)){var Pe=e.getPropertyNameForPropertyNameNode(j);return Pe&&e.unescapeLeadingUnderscores(Pe)}switch(w.kind){case 200:case 201:case 213:return we(w);default:return}}function O(w,j){if(w.kind===248)return je(U(w));if(j){var Pe=e.isIdentifier(j)?j.text:e.isElementAccessExpression(j)?"["+x(j.argumentExpression)+"]":x(j);if(Pe.length>0)return je(Pe)}switch(w.kind){case 288:var a=w;return e.isExternalModule(a)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(a.fileName))))+'"':"<global>";case 201:case 243:case 200:case 244:case 213:return e.getModifierFlags(w)&512?"default":we(w);case 161:return"constructor";case 165:return"new()";case 164:return"()";case 166:return"[]";default:return"<unknown>"}}function Y(w){var j=[];function Pe(Ze){if(a(Ze)&&(j.push(Ze),Ze.children))for(var In=0,et=Ze.children;In<et.length;In++){var ae=et[In];Pe(ae)}}return Pe(w),j;function a(Ze){if(Ze.children)return!0;switch(C(Ze)){case 244:case 213:case 247:case 245:case 248:case 288:case 246:case 315:case 308:return!0;case 201:case 243:case 200:return In(Ze);default:return!1}function In(et){if(!et.node.body)return!1;switch(C(et.parent)){case 249:case 288:case 160:case 161:return!0;default:return!1}}}}function pe(w){return{text:O(w.node,w.name),kind:e.getNodeKind(w.node),kindModifiers:Re(w.node),spans:v(w),nameSpan:w.name&&Z(w.name),childItems:e.map(w.children,pe)}}function S(w){return{text:O(w.node,w.name),kind:e.getNodeKind(w.node),kindModifiers:Re(w.node),spans:v(w),childItems:e.map(w.children,j)||N,indent:w.indent,bolded:!1,grayed:!1};function j(Pe){return{text:O(Pe.node,Pe.name),kind:e.getNodeKind(Pe.node),kindModifiers:e.getNodeModifiers(Pe.node),spans:v(Pe),childItems:N,indent:0,bolded:!1,grayed:!1}}}function v(w){var j=[Z(w.node)];if(w.additionalNodes)for(var Pe=0,a=w.additionalNodes;Pe<a.length;Pe++){var Ze=a[Pe];j.push(Z(Ze))}return j}function U(w){if(e.isAmbientModule(w))return e.getTextOfNode(w.name);var j=[];for(j.push(e.getTextOfIdentifierOrLiteral(w.name));w.body&&w.body.kind===248;)w=w.body,j.push(e.getTextOfIdentifierOrLiteral(w.name));return j.join(".")}function ue(w){return w.body&&e.isModuleDeclaration(w.body)?ue(w.body):w}function De(w){return!w.name||w.name.kind===153}function Z(w){return w.kind===288?e.createTextSpanFromRange(w):e.createTextSpanFromNode(w,he)}function Re(w){return w.parent&&w.parent.kind===241&&(w=w.parent),e.getNodeModifiers(w)}function we(w){var j=w.parent;if(w.name&&e.getFullWidth(w.name)>0)return je(e.declarationNameToString(w.name));if(e.isVariableDeclaration(j))return je(e.declarationNameToString(j.name));if(e.isBinaryExpression(j)&&j.operatorToken.kind===62)return x(j.left).replace(Ee,"");if(e.isPropertyAssignment(j))return x(j.name);if(e.getModifierFlags(w)&512)return"default";if(e.isClassLike(w))return"<class>";if(e.isCallExpression(j)){var Pe=He(j.expression);if(Pe!==void 0){if(Pe=je(Pe),Pe.length>Ge)return Pe+" callback";var a=je(e.mapDefined(j.arguments,function(Ze){return e.isStringLiteralLike(Ze)?Ze.getText(he):void 0}).join(", "));return Pe+"("+a+") callback"}}return"<function>"}function He(w){if(e.isIdentifier(w))return w.text;if(e.isPropertyAccessExpression(w)){var j=He(w.expression),Pe=w.name.text;return j===void 0?Pe:j+"."+Pe}else return}function ve(w){switch(w.kind){case 201:case 200:case 213:return!0;default:return!1}}function je(w){return w=w.length>Ge?w.substring(0,Ge)+"...":w,w.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(o=e.NavigationBar||(e.NavigationBar={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){function qe(Te,ie,ce,x,C){var P=e.textChanges.ChangeTracker.fromContext({host:ce,formatContext:ie,preferences:C}),h=function(be){return he(Ee(be,Te,x))},X=Te.statements.filter(e.isImportDeclaration);q(X,h);var $=Te.statements.filter(e.isExportDeclaration);q($,ee);for(var Q=0,z=Te.statements.filter(e.isAmbientModule);Q<z.length;Q++){var se=z[Q];if(!se.body)continue;var G=se.body.statements.filter(e.isImportDeclaration);q(G,h);var H=se.body.statements.filter(e.isExportDeclaration);q(H,ee)}return P.getChanges();function q(be,R){if(e.length(be)===0)return;e.suppressLeadingTrivia(be[0]);var K=e.group(be,function(D){return Be(D.moduleSpecifier)}),m=e.stableSort(K,function(D,y){return Oe(D[0].moduleSpecifier,y[0].moduleSpecifier)}),_=e.flatMap(m,function(D){return Be(D[0].moduleSpecifier)?R(D):D});_.length===0?P.delete(Te,be[0]):P.replaceNodeWithNodes(Te,be[0],_,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(ce,ie.options)});for(var I=1;I<be.length;I++)P.delete(Te,be[I])}}M.organizeImports=qe;function Ee(Te,ie,ce){for(var x=ce.getTypeChecker(),C=x.getJsxNamespace(ie),P=!!(ie.transformFlags&2),h=[],X=0,$=Te;X<$.length;X++){var Q=$[X],z=Q.importClause,se=Q.moduleSpecifier;if(!z){h.push(Q);continue}var G=z.name,H=z.namedBindings;if(G&&!be(G)&&(G=void 0),H)if(e.isNamespaceImport(H))be(H.name)||(H=void 0);else{var q=H.elements.filter(function(R){return be(R.name)});q.length<H.elements.length&&(H=q.length?e.updateNamedImports(H,q):void 0)}G||H?h.push(f(Q,G,H)):Ge(ie,se)&&(ie.isDeclarationFile?h.push(e.createImportDeclaration(Q.decorators,Q.modifiers,void 0,se)):h.push(Q))}return h;function be(R){return P&&R.text===C||e.FindAllReferences.Core.isSymbolReferencedInFile(R,x,ie)}}function Ge(Te,ie){var ce=e.isStringLiteral(ie)&&ie.text;return e.isString(ce)&&e.some(Te.moduleAugmentations,function(x){return e.isStringLiteral(x)&&x.text===ce})}function Be(Te){return Te!==void 0&&e.isStringLiteralLike(Te)?Te.text:void 0}function he(Te){if(Te.length===0)return Te;var ie=_(Te),ce=ie.importWithoutClause,x=ie.defaultImports,C=ie.namespaceImports,P=ie.namedImports,h=[];if(ce&&h.push(ce),x.length===1&&C.length===1&&P.length===0){var X=x[0];return h.push(f(X,X.importClause.name,C[0].importClause.namedBindings)),h}for(var $=e.stableSort(C,function(I,D){return N(I.importClause.namedBindings.name,D.importClause.namedBindings.name)}),Q=0,z=$;Q<z.length;Q++){var se=z[Q];h.push(f(se,void 0,se.importClause.namedBindings))}if(x.length===0&&P.length===0)return h;var G,H=[];if(x.length===1)G=x[0].importClause.name;else for(var q=0,be=x;q<be.length;q++){var X=be[q];H.push(e.createImportSpecifier(e.createIdentifier("default"),X.importClause.name))}H.push.apply(H,e.flatMap(P,function(I){return I.importClause.namedBindings.elements}));var R=J(H),K=x.length>0?x[0]:P[0],m=R.length===0?G?void 0:e.createNamedImports(e.emptyArray):P.length===0?e.createNamedImports(R):e.updateNamedImports(P[0].importClause.namedBindings,R);return h.push(f(K,G,m)),h;function _(I){for(var D,y=[],E=[],k=[],T=0,ne=I;T<ne.length;T++){var O=ne[T];if(O.importClause===void 0){D=D||O;continue}var Y=O.importClause,pe=Y.name,S=Y.namedBindings;pe&&y.push(O),S&&(e.isNamespaceImport(S)?E.push(O):k.push(O))}return{importWithoutClause:D,defaultImports:y,namespaceImports:E,namedImports:k}}}M.coalesceImports=he;function ee(Te){if(Te.length===0)return Te;var ie=$(Te),ce=ie.exportWithoutClause,x=ie.namedExports,C=[];if(ce&&C.push(ce),x.length===0)return C;var P=[];P.push.apply(P,e.flatMap(x,function(Q){return Q.exportClause.elements}));var h=J(P),X=x[0];return C.push(e.updateExportDeclaration(X,X.decorators,X.modifiers,e.updateNamedExports(X.exportClause,h),X.moduleSpecifier)),C;function $(Q){for(var z,se=[],G=0,H=Q;G<H.length;G++){var q=H[G];q.exportClause===void 0?z=z||q:se.push(q)}return{exportWithoutClause:z,namedExports:se}}}M.coalesceExports=ee;function f(Te,ie,ce){return e.updateImportDeclaration(Te,Te.decorators,Te.modifiers,e.updateImportClause(Te.importClause,ie,ce),Te.moduleSpecifier)}function J(Te){return e.stableSort(Te,function(ie,ce){return N(ie.propertyName||ie.name,ce.propertyName||ce.name)||N(ie.name,ce.name)})}function Oe(Te,ie){var ce=Be(Te),x=Be(ie);return e.compareBooleans(ce===void 0,x===void 0)||e.compareBooleans(e.isExternalModuleNameRelative(ce),e.isExternalModuleNameRelative(x))||e.compareStringsCaseInsensitive(ce,x)}M.compareModuleSpecifiers=Oe;function N(Te,ie){return e.compareStringsCaseInsensitive(Te.text,ie.text)}})(o=e.OrganizeImports||(e.OrganizeImports={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){function qe(ie,ce){var x=[];return Ee(ie,ce,x),Ge(ie,x),x.sort(function(C,P){return C.textSpan.start-P.textSpan.start})}M.collectElements=qe;function Ee(ie,ce,x){for(var C=40,P=0,h=ie.statements,X=h.length;P<X;){for(;P<X&&!e.isAnyImportSyntax(h[P]);)z(h[P]),P++;if(P===X)break;for(var $=P;P<X&&e.isAnyImportSyntax(h[P]);)ee(h[P],ie,ce,x),P++;var Q=P-1;Q!==$&&x.push(f(e.findChildOfKind(h[$],95,ie).getStart(ie),h[Q].getEnd(),"imports"))}function z(G){if(C===0)return;ce.throwIfCancellationRequested(),e.isDeclaration(G)&&ee(G,ie,ce,x),se(G)&&ee(G.parent.parent.parent,ie,ce,x);var H=J(G,ie);H&&x.push(H),C--,e.isIfStatement(G)&&G.elseStatement&&e.isIfStatement(G.elseStatement)?(z(G.expression),z(G.thenStatement),C++,z(G.elseStatement),C--):G.forEachChild(z),C++}function se(G){if(!e.isFunctionExpression(G)&&!e.isArrowFunction(G))return!1;var H=e.findAncestor(G,e.isVariableStatement);return!!H&&e.getSingleInitializerOfVariableStatementOrPropertyDeclaration(H)===G}}function Ge(ie,ce){for(var x=[],C=ie.getLineStarts(),P=0,h=C;P<h.length;P++){var X=h[P],$=ie.getLineEndOfPosition(X),Q=ie.text.substring(X,$),z=he(Q);if(!z||e.isInComment(ie,X))continue;if(z[1]){var G=x.pop();G&&(G.textSpan.length=$-G.textSpan.start,G.hintSpan.length=$-G.textSpan.start,ce.push(G))}else{var se=e.createTextSpanFromBounds(ie.text.indexOf("//",X),$);x.push(Te(se,"region",se,!1,z[2]||"#region"))}}}var Be=/^\s*\/\/\s*#(end)?region(?:\s+(.*))?(?:\r)?$/;function he(ie){return Be.exec(ie)}function ee(ie,ce,x,C){var P=e.getLeadingCommentRangesOfNode(ie,ce);if(!P)return;for(var h=-1,X=-1,$=0,Q=ce.getFullText(),z=0,se=P;z<se.length;z++){var G=se[z],H=G.kind,q=G.pos,be=G.end;x.throwIfCancellationRequested();switch(H){case 2:var R=Q.slice(q,be);if(he(R)){K(),$=0;break}$===0&&(h=q),X=be,$++;break;case 3:K(),C.push(f(q,be,"comment")),$=0;break;default:e.Debug.assertNever(H)}}K();function K(){$>1&&C.push(f(h,X,"comment"))}}function f(ie,ce,x){return Te(e.createTextSpanFromBounds(ie,ce),x)}function J(ie,ce){switch(ie.kind){case 222:if(e.isFunctionLike(ie.parent))return Oe(ie.parent,ie,ce);switch(ie.parent.kind){case 227:case 230:case 231:case 229:case 226:case 228:case 235:case 278:return $(ie.parent);case 239:var x=ie.parent;if(x.tryBlock===ie)return $(ie.parent);if(x.finallyBlock===ie)return $(e.findChildOfKind(x,91,ce));default:return Te(e.createTextSpanFromNode(ie,ce),"code")}case 249:return $(ie.parent);case 244:case 213:case 245:case 247:case 250:return $(ie);case 192:return X(ie);case 191:return X(ie,22);case 264:return C(ie);case 268:return P(ie);case 265:case 266:return h(ie.attributes)}function C(Q){var z=e.createTextSpanFromBounds(Q.openingElement.getStart(ce),Q.closingElement.getEnd()),se=Q.openingElement.tagName.getText(ce),G="<"+se+">...</"+se+">";return Te(z,"code",z,!1,G)}function P(Q){var z=e.createTextSpanFromBounds(Q.openingFragment.getStart(ce),Q.closingFragment.getEnd()),se="<>...</>";return Te(z,"code",z,!1,se)}function h(Q){return Q.properties.length===0?void 0:f(Q.getStart(ce),Q.getEnd(),"code")}function X(Q,z){return z===void 0&&(z=18),$(Q,!1,!e.isArrayLiteralExpression(Q.parent)&&!e.isCallExpression(Q.parent),z)}function $(Q,z,se,G,H){z===void 0&&(z=!1),se===void 0&&(se=!0),G===void 0&&(G=18),H===void 0&&(H=G===18?19:23);var q=e.findChildOfKind(ie,G,ce),be=e.findChildOfKind(ie,H,ce);return q&&be&&N(q,be,Q,ce,z,se)}}function Oe(ie,ce,x){var C=e.isNodeArrayMultiLine(ie.parameters,x)?e.findChildOfKind(ie,20,x):e.findChildOfKind(ce,18,x),P=e.findChildOfKind(ce,19,x);return C&&P&&N(C,P,ie,x,ie.kind!==201)}function N(ie,ce,x,C,P,h){P===void 0&&(P=!1),h===void 0&&(h=!0);var X=e.createTextSpanFromBounds(h?ie.getFullStart():ie.getStart(C),ce.getEnd());return Te(X,"code",e.createTextSpanFromNode(x,C),P)}function Te(ie,ce,x,C,P){return x===void 0&&(x=ie),C===void 0&&(C=!1),P===void 0&&(P="..."),{textSpan:ie,kind:ce,hintSpan:x,bannerText:P,autoCollapse:C}}})(o=e.OutliningElementsCollector||(e.OutliningElementsCollector={}))})(sn||(sn={}));var sn;(function(e){var o;(function(m){m[m.exact=0]="exact",m[m.prefix=1]="prefix",m[m.substring=2]="substring",m[m.camelCase=3]="camelCase"})(o=e.PatternMatchKind||(e.PatternMatchKind={}));function M(m,_){return{kind:m,isCaseSensitive:_}}function qe(m){var _=e.createMap(),I=m.trim().split(".").map(function(D){return Te(D.trim())});return I.some(function(D){return!D.subWordTextChunks.length})?void 0:{getFullMatch:function(D,y){return Ee(D,y,I,_)},getMatchForLastSegmentOfPattern:function(D){return he(D,e.last(I),_)},patternContainsDots:I.length>1}}e.createPatternMatcher=qe;function Ee(m,_,I,D){var y=he(_,e.last(I),D);if(!y)return;if(I.length-1>m.length)return;for(var E,k=I.length-2,T=m.length-1;k>=0;k-=1,T-=1)E=ee(E,he(m[T],I[k],D));return E}function Ge(m,_){var I=_.get(m);return I||_.set(m,I=z(m)),I}function Be(m,_,I){var D=x(m,_.textLowerCase);if(D===0)return M(_.text.length===m.length?o.exact:o.prefix,e.startsWith(m,_.text));if(_.isLowerCase){if(D===-1)return;for(var y=Ge(m,I),E=0,k=y;E<k.length;E++){var T=k[E];if(J(m,T,_.text,!0))return M(o.substring,J(m,T,_.text,!1))}if(_.text.length<m.length&&ie(m.charCodeAt(D)))return M(o.substring,!1)}else{if(m.indexOf(_.text)>0)return M(o.substring,!0);if(_.characterSpans.length>0){var ne=Ge(m,I),O=N(m,ne,_,!1)?!0:N(m,ne,_,!0)?!1:void 0;if(O!==void 0)return M(o.camelCase,O)}}}function he(m,_,I){if(K(_.totalTextChunk.text,function(O){return O!==32&&O!==42})){var D=Be(m,_.totalTextChunk,I);if(D)return D}for(var y=_.subWordTextChunks,E,k=0,T=y;k<T.length;k++){var ne=T[k];E=ee(E,Be(m,ne,I))}return E}function ee(m,_){return e.min(m,_,f)}function f(m,_){return m===void 0?1:_===void 0?-1:e.compareValues(m.kind,_.kind)||e.compareBooleans(!m.isCaseSensitive,!_.isCaseSensitive)}function J(m,_,I,D,y){return y===void 0&&(y={start:0,length:I.length}),y.length<=_.length&&R(0,y.length,function(E){return Oe(I.charCodeAt(y.start+E),m.charCodeAt(_.start+E),D)})}function Oe(m,_,I){return I?C(m)===C(_):m===_}function N(m,_,I,D){for(var y=I.characterSpans,E=0,k=0,T,ne;;){if(k===y.length)return!0;if(E===_.length)return!1;for(var O=_[E],Y=!1;k<y.length;k++){var pe=y[k];if(Y&&(!ie(I.text.charCodeAt(y[k-1].start))||!ie(I.text.charCodeAt(y[k].start))))break;if(!J(m,O,I.text,D,pe))break;Y=!0,T=T===void 0?E:T,ne=ne===void 0?!0:ne,O=e.createTextSpan(O.start+pe.length,O.length-pe.length)}!Y&&ne!==void 0&&(ne=!1),E++}}function Te(m){return{totalTextChunk:$(m),subWordTextChunks:X(m)}}function ie(m){if(m>=65&&m<=90)return!0;if(m<127||!e.isUnicodeIdentifierStart(m,99))return!1;var _=String.fromCharCode(m);return _===_.toUpperCase()}function ce(m){if(m>=97&&m<=122)return!0;if(m<127||!e.isUnicodeIdentifierStart(m,99))return!1;var _=String.fromCharCode(m);return _===_.toLowerCase()}function x(m,_){for(var I=m.length-_.length,D=function(k){if(K(_,function(T,ne){return C(m.charCodeAt(ne+k))===T}))return{value:k}},y=0;y<=I;y++){var E=D(y);if(typeof E=="object")return E.value}return-1}function C(m){return m>=65&&m<=90?97+(m-65):m<127?m:String.fromCharCode(m).toLowerCase().charCodeAt(0)}function P(m){return m>=48&&m<=57}function h(m){return ie(m)||ce(m)||P(m)||m===95||m===36}function X(m){for(var _=[],I=0,D=0,y=0;y<m.length;y++){var E=m.charCodeAt(y);h(E)?(D===0&&(I=y),D++):D>0&&(_.push($(m.substr(I,D))),D=0)}return D>0&&_.push($(m.substr(I,D))),_}function $(m){var _=m.toLowerCase();return{text:m,textLowerCase:_,isLowerCase:m===_,characterSpans:Q(m)}}function Q(m){return se(m,!1)}e.breakIntoCharacterSpans=Q;function z(m){return se(m,!0)}e.breakIntoWordSpans=z;function se(m,_){for(var I=[],D=0,y=1;y<m.length;y++){var E=P(m.charCodeAt(y-1)),k=P(m.charCodeAt(y)),T=be(m,_,y),ne=_&&q(m,y,D);(G(m.charCodeAt(y-1))||G(m.charCodeAt(y))||E!==k||T||ne)&&(H(m,D,y)||I.push(e.createTextSpan(D,y-D)),D=y)}return H(m,D,m.length)||I.push(e.createTextSpan(D,m.length-D)),I}function G(m){switch(m){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function H(m,_,I){return K(m,function(D){return G(D)&&D!==95},_,I)}function q(m,_,I){return _!==I&&_+1<m.length&&ie(m.charCodeAt(_))&&ce(m.charCodeAt(_+1))&&K(m,ie,I,_)}function be(m,_,I){var D=ie(m.charCodeAt(I-1)),y=ie(m.charCodeAt(I));return y&&(!_||!D)}function R(m,_,I){for(var D=m;D<_;D++)if(!I(D))return!1;return!0}function K(m,_,I,D){return I===void 0&&(I=0),D===void 0&&(D=m.length),R(I,D,function(y){return _(m.charCodeAt(y),y)})}})(sn||(sn={}));var sn;(function(e){function o(M,qe,Ee){qe===void 0&&(qe=!0),Ee===void 0&&(Ee=!1);var Ge={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},Be=[],he,ee,f,J=0,Oe=!1;function N(){return ee=f,f=e.scanner.scan(),f===18?J++:f===19&&J--,f}function Te(){var R=e.scanner.getTokenValue(),K=e.scanner.getTokenPos();return{fileName:R,pos:K,end:K+R.length}}function ie(){he||(he=[]),he.push({ref:Te(),depth:J})}function ce(){Be.push(Te()),x()}function x(){J===0&&(Oe=!0)}function C(){var R=e.scanner.getToken();return R===129?(R=N(),R===134&&(R=N(),R===10&&ie()),!0):!1}function P(){if(ee===24)return!1;var R=e.scanner.getToken();if(R===95){if(R=N(),R===20){if(R=N(),R===10)return ce(),!0}else{if(R===10)return ce(),!0;if(R===75||e.isKeyword(R))if(R=N(),R===148){if(R=N(),R===10)return ce(),!0}else if(R===62){if(X(!0))return!0}else if(R===27)R=N();else return!0;if(R===18){for(R=N();R!==19&&R!==1;)R=N();R===19&&(R=N(),R===148&&(R=N(),R===10&&ce()))}else R===41&&(R=N(),R===122&&(R=N(),(R===75||e.isKeyword(R))&&(R=N(),R===148&&(R=N(),R===10&&ce()))))}return!0}return!1}function h(){var R=e.scanner.getToken();if(R===88){if(x(),R=N(),R===18){for(R=N();R!==19&&R!==1;)R=N();R===19&&(R=N(),R===148&&(R=N(),R===10&&ce()))}else if(R===41)R=N(),R===148&&(R=N(),R===10&&ce());else if(R===95&&(R=N(),(R===75||e.isKeyword(R))&&(R=N(),R===62&&X(!0))))return!0;return!0}return!1}function X(R){var K=R?N():e.scanner.getToken();return K===138?(K=N(),K===20&&(K=N(),K===10&&ce()),!0):!1}function $(){var R=e.scanner.getToken();if(R===75&&e.scanner.getTokenValue()==="define"){if(R=N(),R!==20)return!0;if(R=N(),R===10)if(R=N(),R===27)R=N();else return!0;if(R!==22)return!0;for(R=N();R!==23&&R!==1;)R===10&&ce(),R=N();return!0}return!1}function Q(){for(e.scanner.setText(M),N();!(e.scanner.getToken()===1);){if(C()||P()||h()||Ee&&(X(!1)||$()))continue;N()}e.scanner.setText(void 0)}if(qe&&Q(),e.processCommentPragmas(Ge,M),e.processPragmasIntoFields(Ge,e.noop),Oe){if(he)for(var z=0,se=he;z<se.length;z++){var G=se[z];Be.push(G.ref)}return{referencedFiles:Ge.referencedFiles,typeReferenceDirectives:Ge.typeReferenceDirectives,libReferenceDirectives:Ge.libReferenceDirectives,importedFiles:Be,isLibFile:!!Ge.hasNoDefaultLib,ambientExternalModules:void 0}}else{var H=void 0;if(he)for(var q=0,be=he;q<be.length;q++){var G=be[q];G.depth===0?(H||(H=[]),H.push(G.ref.fileName)):Be.push(G.ref)}return{referencedFiles:Ge.referencedFiles,typeReferenceDirectives:Ge.typeReferenceDirectives,libReferenceDirectives:Ge.libReferenceDirectives,importedFiles:Be,isLibFile:!!Ge.hasNoDefaultLib,ambientExternalModules:H}}}e.preProcessFile=o})(sn||(sn={}));var sn;(function(e){var o;(function(M){function qe(J,Oe,N,Te){var ie=e.getTouchingPropertyName(Oe,N),ce=ie&&f(ie)?Ee(ie,J.getTypeChecker(),Oe,function(x){return J.isSourceFileDefaultLibrary(x.getSourceFile())},Te):void 0;return ce||he(e.Diagnostics.You_cannot_rename_this_element)}M.getRenameInfo=qe;function Ee(J,Oe,N,Te,ie){var ce=Oe.getSymbolAtLocation(J);if(!ce)return;var x=ce.declarations;if(!x||x.length===0)return;if(x.some(Te))return he(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(e.isIdentifier(J)&&J.originalKeywordKind===83&&ce.parent.flags&1536)return;if(e.isStringLiteralLike(J)&&e.tryGetImportFromModuleSpecifier(J))return ie&&ie.allowRenameOfImportPath?Ge(J,N,ce):void 0;var C=e.SymbolDisplay.getSymbolKind(Oe,ce,J),P=e.isImportOrExportSpecifierName(J)||e.isStringOrNumericLiteralLike(J)&&J.parent.kind===153?e.stripQuotes(e.getTextOfIdentifierOrLiteral(J)):void 0,h=P||Oe.symbolToString(ce),X=P||Oe.getFullyQualifiedName(ce);return Be(h,X,C,e.SymbolDisplay.getSymbolModifiers(ce),J,N)}function Ge(J,Oe,N){if(!e.isExternalModuleNameRelative(J.text))return he(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var Te=e.find(N.declarations,e.isSourceFile);if(!Te)return;var ie=e.endsWith(J.text,"/index")||e.endsWith(J.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(Te.fileName),"/index"),ce=ie===void 0?Te.fileName:ie,x=ie===void 0?"module":"directory",C=J.text.lastIndexOf("/")+1,P=e.createTextSpan(J.getStart(Oe)+1+C,J.text.length-C);return{canRename:!0,fileToRename:ce,kind:x,displayName:ce,fullDisplayName:ce,kindModifiers:"",triggerSpan:P}}function Be(J,Oe,N,Te,ie,ce){return{canRename:!0,fileToRename:void 0,kind:N,displayName:J,fullDisplayName:Oe,kindModifiers:Te,triggerSpan:ee(ie,ce)}}function he(J){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(J)}}function ee(J,Oe){var N=J.getStart(Oe),Te=J.getWidth(Oe);return e.isStringLiteralLike(J)&&(N+=1,Te-=2),e.createTextSpan(N,Te)}function f(J){switch(J.kind){case 75:case 10:case 14:case 103:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(J);default:return!1}}})(o=e.Rename||(e.Rename={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){function qe(N,Te){var ie={textSpan:e.createTextSpanFromBounds(Te.getFullStart(),Te.getEnd())},ce=Te;e:for(;;){var x=Be(ce);if(!x.length)break;for(var C=0;C<x.length;C++){var P=x[C-1],h=x[C],X=x[C+1];if(h.getStart(Te)>N)break e;if(Ee(Te,N,h)){if(e.isBlock(h)||e.isTemplateSpan(h)||e.isTemplateHead(h)||e.isTemplateTail(h)||P&&e.isTemplateHead(P)||e.isVariableDeclarationList(h)&&e.isVariableStatement(ce)||e.isSyntaxList(h)&&e.isVariableDeclarationList(ce)||e.isVariableDeclaration(h)&&e.isSyntaxList(ce)&&x.length===1){ce=h;break}if(e.isTemplateSpan(ce)&&X&&e.isTemplateMiddleOrTemplateTail(X)){var $=h.getFullStart()-"${".length,Q=X.getStart()+"}".length;q($,Q)}var z=e.isSyntaxList(h)&&J(P)&&Oe(X)&&!e.positionsAreOnSameLine(P.getStart(),X.getStart(),Te),se=e.hasJSDocNodes(h)&&h.jsDoc[0].getStart(),G=z?P.getEnd():h.getStart(),H=z?X.getStart():h.getEnd();e.isNumber(se)&&q(se,H),q(G,H),(e.isStringLiteral(h)||e.isTemplateLiteral(h))&&q(G+1,H-1),ce=h;break}if(C===x.length-1)break e}}return ie;function q(be,R){if(be!==R){var K=e.createTextSpanFromBounds(be,R);(!ie||!e.textSpansEqual(K,ie.textSpan)&&e.textSpanIntersectsWithPosition(K,N))&&(ie=Rr({textSpan:K},ie&&{parent:ie}))}}}M.getSmartSelectionRange=qe;function Ee(N,Te,ie){if(e.Debug.assert(ie.pos<=Te),Te<ie.end)return!0;var ce=ie.getEnd();return ce===Te?e.getTouchingPropertyName(N,Te).pos<ie.end:!1}var Ge=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function Be(N){if(e.isSourceFile(N))return he(N.getChildAt(0).getChildren(),Ge);if(e.isMappedTypeNode(N)){var Te=N.getChildren(),ie=Te[0],ce=Te.slice(1),x=e.Debug.assertDefined(ce.pop());e.Debug.assertEqual(ie.kind,18),e.Debug.assertEqual(x.kind,19);var C=he(ce,function($){return $===N.readonlyToken||$.kind===137||$===N.questionToken||$.kind===57}),P=he(C,function($){var Q=$.kind;return Q===22||Q===154||Q===23});return[ie,f(ee(P,function($){var Q=$.kind;return Q===58})),x]}if(e.isPropertySignature(N)){var ce=he(N.getChildren(),function(Q){return Q===N.name||e.contains(N.modifiers,Q)});return ee(ce,function(Q){var z=Q.kind;return z===58})}if(e.isParameter(N)){var h=he(N.getChildren(),function($){return $===N.dotDotDotToken||$===N.name}),X=he(h,function($){return $===h[0]||$===N.questionToken});return ee(X,function($){var Q=$.kind;return Q===62})}return e.isBindingElement(N)?ee(N.getChildren(),function($){var Q=$.kind;return Q===62}):N.getChildren()}function he(N,Te){for(var ie=[],ce,x=0,C=N;x<C.length;x++){var P=C[x];Te(P)?(ce=ce||[],ce.push(P)):(ce&&(ie.push(f(ce)),ce=void 0),ie.push(P))}return ce&&ie.push(f(ce)),ie}function ee(N,Te,ie){if(ie===void 0&&(ie=!0),N.length<2)return N;var ce=e.findIndex(N,Te);if(ce===-1)return N;var x=N.slice(0,ce),C=N[ce],P=e.last(N),h=ie&&P.kind===26,X=N.slice(ce+1,h?N.length-1:void 0),$=e.compact([x.length?f(x):void 0,C,X.length?f(X):void 0]);return h?$.concat(P):$}function f(N){e.Debug.assertGreaterThanOrEqual(N.length,1);var Te=e.createNode(317,N[0].pos,e.last(N).end);return Te._children=N,Te}function J(N){var Te=N&&N.kind;return Te===18||Te===22||Te===20||Te===266}function Oe(N){var Te=N&&N.kind;return Te===19||Te===23||Te===21||Te===267}})(o=e.SmartSelectionRange||(e.SmartSelectionRange={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe;(function(Y){Y[Y.Call=0]="Call",Y[Y.TypeArgs=1]="TypeArgs",Y[Y.Contextual=2]="Contextual"})(qe||(qe={}));function Ee(Y,pe,S,v,U){var ue=Y.getTypeChecker(),De=e.findTokenOnLeftOfPosition(pe,S);if(!De)return;var Z=!!v&&v.kind==="characterTyped";if(Z&&(e.isInString(pe,S,De)||e.isInComment(pe,S)))return;var Re=!!v&&v.kind==="invoked",we=H(De,S,pe,ue,Re);if(!we)return;U.throwIfCancellationRequested();var He=Be(we,ue,pe,De,Z);return U.throwIfCancellationRequested(),He?ue.runWithCancellationToken(U,function(ve){return He.kind===0?m(He.candidates,He.resolvedSignature,we,pe,ve):_(He.symbol,we,pe,ve)}):e.isSourceFileJS(pe)?ee(we,Y,U):void 0}M.getSignatureHelpItems=Ee;var Ge;(function(Y){Y[Y.Candidate=0]="Candidate",Y[Y.Type=1]="Type"})(Ge||(Ge={}));function Be(Y,pe,S,v,U){var ue=Y.invocation,De=Y.argumentCount;switch(ue.kind){case 0:{if(U&&!he(v,ue.node,S))return;var Z=[],Re=pe.getResolvedSignatureForSignatureHelp(ue.node,Z,De);return Z.length===0?void 0:{kind:0,candidates:Z,resolvedSignature:Re}}case 1:{var we=ue.called;if(U&&!f(v,S,e.isIdentifier(we)?we.parent:we))return;var Z=e.getPossibleGenericSignatures(we,De,pe);if(Z.length!==0)return{kind:0,candidates:Z,resolvedSignature:e.first(Z)};var He=pe.getSymbolAtLocation(we);return He&&{kind:1,symbol:He}}case 2:return{kind:0,candidates:[ue.signature],resolvedSignature:ue.signature};default:return e.Debug.assertNever(ue)}}function he(Y,pe,S){if(!e.isCallOrNewExpression(pe))return!1;var v=pe.getChildren(S);switch(Y.kind){case 20:return e.contains(v,Y);case 27:{var U=e.findContainingList(Y);return!!U&&e.contains(v,U)}case 29:return f(Y,S,pe.expression);default:return!1}}function ee(Y,pe,S){if(Y.invocation.kind===2)return;var v=be(Y.invocation),U=e.isIdentifier(v)?v.text:e.isPropertyAccessExpression(v)?v.name.text:void 0,ue=pe.getTypeChecker();return U===void 0?void 0:e.firstDefined(pe.getSourceFiles(),function(De){return e.firstDefined(De.getNamedDeclarations().get(U),function(Z){var Re=Z.symbol&&ue.getTypeOfSymbolAtLocation(Z.symbol,Z),we=Re&&Re.getCallSignatures();if(we&&we.length)return ue.runWithCancellationToken(S,function(He){return m(we,we[0],Y,De,He)})})})}function f(Y,pe,S){for(var v=Y.getFullStart(),U=Y.parent;U;){var ue=e.findPrecedingToken(v,pe,U,!0);if(ue)return e.rangeContainsRange(S,ue);U=U.parent}return e.Debug.fail("Could not find preceding token")}function J(Y,pe,S){var v=Te(Y,pe,S);return!v||v.isTypeParameterList||v.invocation.kind!==0?void 0:{invocation:v.invocation.node,argumentCount:v.argumentCount,argumentIndex:v.argumentIndex}}M.getArgumentInfoForCompletions=J;function Oe(Y,pe){var S=N(Y,pe);if(!S)return;var v=S.list,U=S.argumentIndex,ue=$(v);U!==0&&e.Debug.assertLessThan(U,ue);var De=se(v,pe);return{list:v,argumentIndex:U,argumentCount:ue,argumentsSpan:De}}function N(Y,pe){if(Y.kind===29||Y.kind===20)return{list:q(Y.parent,Y,pe),argumentIndex:0};var S=e.findContainingList(Y);return S&&{list:S,argumentIndex:X(S,Y)}}function Te(Y,pe,S){var v=Y.parent;if(e.isCallOrNewExpression(v)){var U=v,ue=Oe(Y,S);if(!ue)return;var De=ue.list,Z=ue.argumentIndex,Re=ue.argumentCount,we=ue.argumentsSpan,He=!!v.typeArguments&&v.typeArguments.pos===De.pos;return{isTypeParameterList:He,invocation:{kind:0,node:U},argumentsSpan:we,argumentIndex:Z,argumentCount:Re}}else{if(e.isNoSubstitutionTemplateLiteral(Y)&&e.isTaggedTemplateExpression(v))return e.isInsideTemplateLiteral(Y,pe,S)?z(v,0,S):void 0;if(e.isTemplateHead(Y)&&v.parent.kind===197){var ve=v,je=ve.parent;e.Debug.assert(ve.kind===210);var Z=e.isInsideTemplateLiteral(Y,pe,S)?0:1;return z(je,Z,S)}else if(e.isTemplateSpan(v)&&e.isTaggedTemplateExpression(v.parent.parent)){var w=v,je=v.parent.parent;if(e.isTemplateTail(Y)&&!e.isInsideTemplateLiteral(Y,pe,S))return;var j=w.parent.templateSpans.indexOf(w),Z=Q(j,Y,pe,S);return z(je,Z,S)}else if(e.isJsxOpeningLikeElement(v)){var Pe=v.attributes.pos,a=e.skipTrivia(S.text,v.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:v},argumentsSpan:e.createTextSpan(Pe,a-Pe),argumentIndex:0,argumentCount:1}}else{var Ze=e.getPossibleTypeArgumentsInfo(Y,S);if(Ze){var In=Ze.called,et=Ze.nTypeArguments,U={kind:1,called:In},we=e.createTextSpanFromBounds(In.getStart(S),Y.end);return{isTypeParameterList:!0,invocation:U,argumentsSpan:we,argumentIndex:et,argumentCount:et+1}}return}}}function ie(Y,pe,S,v){return C(Y,pe,S,v)||Te(Y,pe,S)}function ce(Y){return e.isBinaryExpression(Y.parent)?ce(Y.parent):Y}function x(Y){return e.isBinaryExpression(Y.left)?x(Y.left)+1:2}function C(Y,pe,S,v){var U=P(Y,S,v);if(!U)return;var ue=U.contextualType,De=U.argumentIndex,Z=U.argumentCount,Re=U.argumentsSpan,we=ue.getCallSignatures();if(we.length!==1)return;var He={kind:2,signature:e.first(we),node:Y,symbol:h(ue.symbol)};return{isTypeParameterList:!1,invocation:He,argumentsSpan:Re,argumentIndex:De,argumentCount:Z}}function P(Y,pe,S){if(Y.kind!==20&&Y.kind!==27)return;var v=Y.parent;switch(v.kind){case 199:case 160:case 200:case 201:var U=Oe(Y,pe);if(!U)return;var ue=U.argumentIndex,De=U.argumentCount,Z=U.argumentsSpan,Re=e.isMethodDeclaration(v)?S.getContextualTypeForObjectLiteralElement(v):S.getContextualType(v);return Re&&{contextualType:Re,argumentIndex:ue,argumentCount:De,argumentsSpan:Z};case 208:{var we=ce(v),He=S.getContextualType(we),ve=Y.kind===20?0:x(v)-1,je=x(we);return He&&{contextualType:He,argumentIndex:ve,argumentCount:je,argumentsSpan:e.createTextSpanFromNode(v)}}default:return}}function h(Y){return Y.name==="__type"&&e.firstDefined(Y.declarations,function(pe){return e.isFunctionTypeNode(pe)?pe.parent.symbol:void 0})||Y}function X(Y,pe){for(var S=0,v=0,U=Y.getChildren();v<U.length;v++){var ue=U[v];if(ue===pe)break;ue.kind!==27&&S++}return S}function $(Y){var pe=Y.getChildren(),S=e.countWhere(pe,function(v){return v.kind!==27});return pe.length>0&&e.last(pe).kind===27&&S++,S}function Q(Y,pe,S,v){return e.Debug.assert(S>=pe.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(pe)?e.isInsideTemplateLiteral(pe,S,v)?0:Y+2:Y+1}function z(Y,pe,S){var v=e.isNoSubstitutionTemplateLiteral(Y.template)?1:Y.template.templateSpans.length+1;return pe!==0&&e.Debug.assertLessThan(pe,v),{isTypeParameterList:!1,invocation:{kind:0,node:Y},argumentsSpan:G(Y,S),argumentIndex:pe,argumentCount:v}}function se(Y,pe){var S=Y.getFullStart(),v=e.skipTrivia(pe.text,Y.getEnd(),!1);return e.createTextSpan(S,v-S)}function G(Y,pe){var S=Y.template,v=S.getStart(),U=S.getEnd();if(S.kind===210){var ue=e.last(S.templateSpans);ue.literal.getFullWidth()===0&&(U=e.skipTrivia(pe.text,U,!1))}return e.createTextSpan(v,U-v)}function H(Y,pe,S,v,U){for(var ue=function(Re){e.Debug.assert(e.rangeContainsRange(Re.parent,Re),"Not a subspan",function(){return"Child: "+e.Debug.formatSyntaxKind(Re.kind)+", parent: "+e.Debug.formatSyntaxKind(Re.parent.kind)});var we=ie(Re,pe,S,v);if(we)return{value:we}},De=Y;!e.isSourceFile(De)&&(U||!e.isBlock(De));De=De.parent){var Z=ue(De);if(typeof Z=="object")return Z.value}return}function q(Y,pe,S){var v=Y.getChildren(S),U=v.indexOf(pe);return e.Debug.assert(U>=0&&v.length>U+1),v[U+1]}function be(Y){return Y.kind===0?e.getInvokedExpression(Y.node):Y.called}function R(Y){return Y.kind===0?Y.node:Y.kind===1?Y.called:Y.node}var K=8192|70221824|16384;function m(Y,pe,S,v,U){var ue=S.isTypeParameterList,De=S.argumentCount,Z=S.argumentsSpan,Re=S.invocation,we=S.argumentIndex,He=R(Re),ve=Re.kind===2?Re.symbol:U.getSymbolAtLocation(be(Re)),je=ve?e.symbolToDisplayParts(U,ve,void 0,void 0):e.emptyArray,w=Y.map(function(Pe){return y(Pe,je,ue,U,He,v)});we!==0&&e.Debug.assertLessThan(we,De);var j=Y.indexOf(pe);return e.Debug.assert(j!==-1),{items:w,applicableSpan:Z,selectedItemIndex:j,argumentIndex:we,argumentCount:De}}function _(Y,pe,S,v){var U=pe.argumentCount,ue=pe.argumentsSpan,De=pe.invocation,Z=pe.argumentIndex,Re=v.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(Y);if(!Re)return;var we=[I(Y,Re,v,R(De),S)];return{items:we,applicableSpan:ue,selectedItemIndex:0,argumentIndex:Z,argumentCount:U}}function I(Y,pe,S,v,U){var ue=e.symbolToDisplayParts(S,Y),De=e.createPrinter({removeComments:!0}),Z=pe.map(function(ve){return O(ve,S,v,U,De)}),Re=Y.getDocumentationComment(S),we=Y.getJsDocTags(),He=Tr(ue,[e.punctuationPart(29)]);return{isVariadic:!1,prefixDisplayParts:He,suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:D,parameters:Z,documentation:Re,tags:we}}var D=[e.punctuationPart(27),e.spacePart()];function y(Y,pe,S,v,U,ue){var De=(S?k:T)(Y,v,U,ue),Z=De.isVariadic,Re=De.parameters,we=De.prefix,He=De.suffix,ve=Tr(pe,we),je=Tr(He,E(Y,U,v)),w=Y.getDocumentationComment(v),j=Y.getJsDocTags();return{isVariadic:Z,prefixDisplayParts:ve,suffixDisplayParts:je,separatorDisplayParts:D,parameters:Re,documentation:w,tags:j}}function E(Y,pe,S){return e.mapToDisplayParts(function(v){v.writePunctuation(":"),v.writeSpace(" ");var U=S.getTypePredicateOfSignature(Y);U?S.writeTypePredicate(U,pe,void 0,v):S.writeType(S.getReturnTypeOfSignature(Y),pe,void 0,v)})}function k(Y,pe,S,v){var U=(Y.target||Y).typeParameters,ue=e.createPrinter({removeComments:!0}),De=(U||e.emptyArray).map(function(Re){return O(Re,pe,S,v,ue)}),Z=e.mapToDisplayParts(function(Re){var we=Y.thisParameter?[pe.symbolToParameterDeclaration(Y.thisParameter,S,K)]:[],He=e.createNodeArray(Tr(we,pe.getExpandedParameters(Y).map(function(ve){return pe.symbolToParameterDeclaration(ve,S,K)})));ue.writeList(2576,He,v,Re)});return{isVariadic:!1,parameters:De,prefix:[e.punctuationPart(29)],suffix:Tr([e.punctuationPart(31)],Z)}}function T(Y,pe,S,v){var U=pe.hasEffectiveRestParameter(Y),ue=e.createPrinter({removeComments:!0}),De=e.mapToDisplayParts(function(Re){if(Y.typeParameters&&Y.typeParameters.length){var we=e.createNodeArray(Y.typeParameters.map(function(He){return pe.typeParameterToDeclaration(He,S)}));ue.writeList(53776,we,v,Re)}}),Z=pe.getExpandedParameters(Y).map(function(Re){return ne(Re,pe,S,v,ue)});return{isVariadic:U,parameters:Z,prefix:Tr(De,[e.punctuationPart(20)]),suffix:[e.punctuationPart(21)]}}function ne(Y,pe,S,v,U){var ue=e.mapToDisplayParts(function(Z){var Re=pe.symbolToParameterDeclaration(Y,S,K);U.writeNode(4,Re,v,Z)}),De=pe.isOptionalParameter(Y.valueDeclaration);return{name:Y.name,documentation:Y.getDocumentationComment(pe),displayParts:ue,isOptional:De}}function O(Y,pe,S,v,U){var ue=e.mapToDisplayParts(function(De){var Z=pe.typeParameterToDeclaration(Y,S);U.writeNode(4,Z,v,De)});return{name:Y.symbol.name,documentation:Y.symbol.getDocumentationComment(pe),displayParts:ue,isOptional:!1}}})(o=e.SignatureHelp||(e.SignatureHelp={}))})(sn||(sn={}));var sn;(function(e){var o=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function M(Be){var he=e.createGetCanonicalFileName(Be.useCaseSensitiveFileNames()),ee=Be.getCurrentDirectory(),f=e.createMap(),J=e.createMap();return{tryGetSourcePosition:Te,tryGetGeneratedPosition:ie,toLineColumnOffset:P,clearCache:h};function Oe(X){return e.toPath(X,ee,he)}function N(X,$){var Q=Oe(X),z=J.get(Q);if(z)return z;var se;if(Be.getDocumentPositionMapper)se=Be.getDocumentPositionMapper(X,$);else if(Be.readFile){var G=C(X);se=G&&e.getDocumentPositionMapper({getSourceFileLike:C,getCanonicalFileName:he,log:function(H){return Be.log(H)}},X,e.getLineInfo(G.text,e.getLineStarts(G)),function(H){return!Be.fileExists||Be.fileExists(H)?Be.readFile(H):void 0})}return J.set(Q,se||e.identitySourceMapConsumer),se||e.identitySourceMapConsumer}function Te(X){if(!e.isDeclarationFileName(X.fileName))return;var $=ce(X.fileName);if(!$)return;var Q=N(X.fileName).getSourcePosition(X);return!Q||Q===X?void 0:Te(Q)||Q}function ie(X){if(e.isDeclarationFileName(X.fileName))return;var $=ce(X.fileName);if(!$)return;var Q=Be.getProgram();if(Q.isSourceOfProjectReferenceRedirect($.fileName))return;var z=Q.getCompilerOptions(),se=z.outFile||z.out,G=se?e.removeFileExtension(se)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(X.fileName,Q.getCompilerOptions(),ee,Q.getCommonSourceDirectory(),he);if(G===void 0)return;var H=N(G,X.fileName).getGeneratedPosition(X);return H===X?void 0:H}function ce(X){var $=Be.getProgram();if(!$)return;var Q=Oe(X),z=$.getSourceFileByPath(Q);return z&&z.resolvedPath===Q?z:void 0}function x(X){var $=Oe(X),Q=f.get($);if(Q!==void 0)return Q||void 0;if(!Be.readFile||Be.fileExists&&!Be.fileExists($)){f.set($,!1);return}var z=Be.readFile($),se=z?Ge(z):!1;return f.set($,se),se||void 0}function C(X){return Be.getSourceFileLike?Be.getSourceFileLike(X):ce(X)||x(X)}function P(X,$){var Q=C(X);return Q.getLineAndCharacterOfPosition($)}function h(){f.clear(),J.clear()}}e.getSourceMapper=M;function qe(Be,he,ee,f){var J=e.tryGetSourceMappingURL(ee);if(J){var Oe=o.exec(J);if(Oe){if(Oe[1]){var N=Oe[1];return Ee(Be,e.base64decode(e.sys,N),he)}J=void 0}}var Te=[];J&&Te.push(J),Te.push(he+".map");for(var ie=J&&e.getNormalizedAbsolutePath(J,e.getDirectoryPath(he)),ce=0,x=Te;ce<x.length;ce++){var C=x[ce],P=e.getNormalizedAbsolutePath(C,e.getDirectoryPath(he)),h=f(P,ie);if(e.isString(h))return Ee(Be,h,P);if(h!==void 0)return h||void 0}return}e.getDocumentPositionMapper=qe;function Ee(Be,he,ee){var f=e.tryParseRawSourceMap(he);return!f||!f.sources||!f.file||!f.mappings?void 0:e.createDocumentPositionMapper(Be,f,ee)}function Ge(Be,he){return{text:Be,lineMap:he,getLineAndCharacterOfPosition:function(ee){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),ee)}}}})(sn||(sn={}));var sn;(function(e){var o=e.createMap();function M(x,C,P){C.getSemanticDiagnostics(x,P);var h=[],X=C.getTypeChecker();x.commonJsModuleIndicator&&(e.programContainsEs6Modules(C)||e.compilerOptionsIndicateEs6Modules(C.getCompilerOptions()))&&qe(x)&&h.push(e.createDiagnosticForNode(f(x.commonJsModuleIndicator),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var $=e.isSourceFileJS(x);if(o.clear(),R(x),e.getAllowSyntheticDefaultImports(C.getCompilerOptions()))for(var Q=0,z=x.imports;Q<z.length;Q++){var se=z[Q],G=e.importFromModuleSpecifier(se),H=Ge(G);if(!H)continue;var q=e.getResolvedModule(x,se.text),be=q&&C.getSourceFile(q.resolvedFileName);be&&be.externalModuleIndicator&&e.isExportAssignment(be.externalModuleIndicator)&&be.externalModuleIndicator.isExportEquals&&h.push(e.createDiagnosticForNode(H,e.Diagnostics.Import_may_be_converted_to_a_default_import))}return e.addRange(h,x.bindSuggestionDiagnostics),e.addRange(h,C.getSuggestionDiagnostics(x,P)),h.sort(function(K,m){return K.start-m.start});function R(K){if($)switch(K.kind){case 200:var m=e.getDeclarationOfExpando(K);if(m){var _=m.symbol;if(_&&(_.exports&&_.exports.size||_.members&&_.members.size)){h.push(e.createDiagnosticForNode(e.isVariableDeclaration(K.parent)?K.parent.name:K,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));break}}case 243:var I=K.symbol;I.members&&I.members.size>0&&h.push(e.createDiagnosticForNode(e.isVariableDeclaration(K.parent)?K.parent.name:K,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));break}else{if(e.isVariableStatement(K)&&K.parent===x&&K.declarationList.flags&2&&K.declarationList.declarations.length===1){var D=K.declarationList.declarations[0].initializer;D&&e.isRequireCall(D,!0)&&h.push(e.createDiagnosticForNode(D,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(K)&&h.push(e.createDiagnosticForNode(K.name||K,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}e.isFunctionLikeDeclaration(K)&&Be(K,X,h),K.forEachChild(R)}}e.computeSuggestionDiagnostics=M;function qe(x){return x.statements.some(function(C){switch(C.kind){case 224:return C.declarationList.declarations.some(function(X){return!!X.initializer&&e.isRequireCall(Ee(X.initializer),!0)});case 225:{var P=C.expression;if(!e.isBinaryExpression(P))return e.isRequireCall(P,!0);var h=e.getAssignmentDeclarationKind(P);return h===1||h===2}default:return!1}})}function Ee(x){return e.isPropertyAccessExpression(x)?Ee(x.expression):x}function Ge(x){switch(x.kind){case 253:var C=x.importClause,P=x.moduleSpecifier;return C&&!C.name&&C.namedBindings&&C.namedBindings.kind===255&&e.isStringLiteral(P)?C.namedBindings.name:void 0;case 252:return x.name;default:return}}function Be(x,C,P){he(x,C)&&!o.has(ce(x))&&P.push(e.createDiagnosticForNode(!x.name&&e.isVariableDeclaration(x.parent)&&e.isIdentifier(x.parent.name)?x.parent.name:x,e.Diagnostics.This_may_be_converted_to_an_async_function))}function he(x,C){return!e.isAsyncFunction(x)&&x.body&&e.isBlock(x.body)&&J(x.body)&&ee(x,C)}function ee(x,C){var P=C.getTypeAtLocation(x),h=C.getSignaturesOfType(P,0),X=h.length?C.getReturnTypeOfSignature(h[0]):void 0;return!!X&&!!C.getPromisedTypeOfPromise(X)}function f(x){return e.isBinaryExpression(x)?x.left:x}function J(x){return!!e.forEachReturnStatement(x,Oe)}function Oe(x){return e.isReturnStatement(x)&&!!x.expression&&N(x.expression)}e.isReturnStatementWithFixablePromiseHandler=Oe;function N(x){if(!Te(x)||!x.arguments.every(ie))return!1;for(var C=x.expression;Te(C)||e.isPropertyAccessExpression(C);){if(e.isCallExpression(C)&&!C.arguments.every(ie))return!1;C=C.expression}return!0}e.isFixablePromiseHandler=N;function Te(x){return e.isCallExpression(x)&&(e.hasPropertyAccessExpressionWithName(x,"then")||e.hasPropertyAccessExpressionWithName(x,"catch"))}function ie(x){switch(x.kind){case 243:case 200:case 201:o.set(ce(x),!0);case 99:case 75:return!0;default:return!1}}function ce(x){return x.pos.toString()+":"+x.end.toString()}})(sn||(sn={}));var sn;(function(e){var o;(function(M){function qe(ee,f,J){var Oe=Ee(ee,f,J);if(Oe!=="")return Oe;var N=e.getCombinedLocalAndExportSymbolFlags(f);return N&32?e.getDeclarationOfKind(f,213)?"local class":"class":N&384?"enum":N&524288?"type":N&64?"interface":N&262144||N&262144?"type parameter":N&8?"enum member":N&2097152?"alias":N&1536?"module":Oe}M.getSymbolKind=qe;function Ee(ee,f,J){var Oe=ee.getRootSymbols(f);if(Oe.length===1&&e.first(Oe).flags&8192&&ee.getTypeOfSymbolAtLocation(f,J).getNonNullableType().getCallSignatures().length!==0)return"method";if(ee.isUndefinedSymbol(f))return"var";if(ee.isArgumentsSymbol(f))return"local var";if(J.kind===103&&e.isExpression(J))return"parameter";var N=e.getCombinedLocalAndExportSymbolFlags(f);if(N&3)return e.isFirstDeclarationOfSymbolParameter(f)?"parameter":f.valueDeclaration&&e.isVarConst(f.valueDeclaration)?"const":e.forEach(f.declarations,e.isLet)?"let":he(f)?"local var":"var";if(N&16)return he(f)?"local function":"function";if(N&32768)return"getter";if(N&65536)return"setter";if(N&8192)return"method";if(N&16384)return"constructor";if(N&4){if(N&33554432&&f.checkFlags&6){var Te=e.forEach(ee.getRootSymbols(f),function(ce){var x=ce.getFlags();if(x&(98308|3))return"property";e.Debug.assert(!!(x&(8192|16)))});if(!Te){var ie=ee.getTypeOfSymbolAtLocation(f,J);return ie.getCallSignatures().length?"method":"property"}return Te}switch(J.parent&&J.parent.kind){case 266:case 264:case 265:return J.kind===75?"property":"JSX attribute";case 271:return"JSX attribute";default:return"property"}}return""}function Ge(ee){var f=ee&&ee.declarations&&ee.declarations.length>0?e.getNodeModifiers(ee.declarations[0]):"",J=ee&&ee.flags&16777216?"optional":"";return f&&J?f+","+J:f||J}M.getSymbolModifiers=Ge;function Be(ee,f,J,Oe,N,Te,ie){Te===void 0&&(Te=e.getMeaningFromLocation(N));var ce=[],x,C,P=e.getCombinedLocalAndExportSymbolFlags(f),h=Te&1?Ee(ee,f,N):"",X=!1,$=N.kind===103&&e.isInExpressionContext(N),Q,z,se,G;if(N.kind===103&&!$)return{displayParts:[e.keywordPart(103)],documentation:[],symbolKind:"primitive type",tags:void 0};if(h!==""||P&32||P&2097152){(h==="getter"||h==="setter")&&(h="property");var H=void 0;if(Q=$?ee.getTypeAtLocation(N):ee.getTypeOfSymbolAtLocation(f.exportSymbol||f,N),N.parent&&N.parent.kind===193){var q=N.parent.name;(q===N||q&&q.getFullWidth()===0)&&(N=N.parent)}var be=void 0;if(e.isCallOrNewExpression(N)?be=N:(e.isCallExpressionTarget(N)||e.isNewExpressionTarget(N)||N.parent&&e.isJsxOpeningLikeElement(N.parent)&&e.isFunctionLike(f.valueDeclaration))&&(be=N.parent),be){H=ee.getResolvedSignature(be);var R=be.kind===196||e.isCallExpression(be)&&be.expression.kind===101,K=R?Q.getConstructSignatures():Q.getCallSignatures();if(!e.contains(K,H.target)&&!e.contains(K,H)&&(H=K.length?K[0]:void 0),H){R&&P&32?(h="constructor",ve(Q.symbol,h)):P&2097152?(h="alias",je(h),ce.push(e.spacePart()),R&&(ce.push(e.keywordPart(98)),ce.push(e.spacePart())),He(f)):ve(f,h);switch(h){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":ce.push(e.punctuationPart(58)),ce.push(e.spacePart()),!(e.getObjectFlags(Q)&16)&&Q.symbol&&(e.addRange(ce,e.symbolToDisplayParts(ee,Q.symbol,Oe,void 0,4|1)),ce.push(e.lineBreakPart())),R&&(ce.push(e.keywordPart(98)),ce.push(e.spacePart())),w(H,K,262144);break;default:w(H,K)}X=!0}}else if(e.isNameOfFunctionDeclaration(N)&&!(P&98304)||N.kind===128&&N.parent.kind===161){var m=N.parent,_=f.declarations&&e.find(f.declarations,function(Pe){return Pe===(N.kind===128?m.parent:m)});if(_){var K=m.kind===161?Q.getNonNullableType().getConstructSignatures():Q.getNonNullableType().getCallSignatures();ee.isImplementationOfOverload(m)?H=K[0]:H=ee.getSignatureFromDeclaration(m),m.kind===161?(h="constructor",ve(Q.symbol,h)):ve(m.kind===164&&!(Q.symbol.flags&2048||Q.symbol.flags&4096)?Q.symbol:f,h),w(H,K),X=!0}}}if(P&32&&!X&&!$&&(Re(),e.getDeclarationOfKind(f,213)?je("local class"):ce.push(e.keywordPart(79)),ce.push(e.spacePart()),He(f),j(f,J)),P&64&&Te&2&&(Z(),ce.push(e.keywordPart(113)),ce.push(e.spacePart()),He(f),j(f,J)),P&524288&&Te&2&&(Z(),ce.push(e.keywordPart(144)),ce.push(e.spacePart()),He(f),j(f,J),ce.push(e.spacePart()),ce.push(e.operatorPart(62)),ce.push(e.spacePart()),e.addRange(ce,e.typeToDisplayParts(ee,ee.getDeclaredTypeOfSymbol(f),Oe,8388608))),P&384&&(Z(),e.some(f.declarations,function(Pe){return e.isEnumDeclaration(Pe)&&e.isEnumConst(Pe)})&&(ce.push(e.keywordPart(80)),ce.push(e.spacePart())),ce.push(e.keywordPart(87)),ce.push(e.spacePart()),He(f)),P&1536&&!$){Z();var I=e.getDeclarationOfKind(f,248),D=I&&I.name&&I.name.kind===75;ce.push(e.keywordPart(D?135:134)),ce.push(e.spacePart()),He(f)}if(P&262144&&Te&2)if(Z(),ce.push(e.punctuationPart(20)),ce.push(e.textPart("type parameter")),ce.push(e.punctuationPart(21)),ce.push(e.spacePart()),He(f),f.parent)we(),He(f.parent,Oe),j(f.parent,Oe);else{var y=e.getDeclarationOfKind(f,154);if(y===void 0)return e.Debug.fail();var I=y.parent;if(I)if(e.isFunctionLikeKind(I.kind)){we();var H=ee.getSignatureFromDeclaration(I);I.kind===165?(ce.push(e.keywordPart(98)),ce.push(e.spacePart())):I.kind!==164&&I.name&&He(I.symbol),e.addRange(ce,e.signatureToDisplayParts(ee,H,J,32))}else I.kind===246&&(we(),ce.push(e.keywordPart(144)),ce.push(e.spacePart()),He(I.symbol),j(I.symbol,J))}if(P&8){h="enum member",ve(f,"enum member");var I=f.declarations[0];if(I.kind===282){var E=ee.getConstantValue(I);E!==void 0&&(ce.push(e.spacePart()),ce.push(e.operatorPart(62)),ce.push(e.spacePart()),ce.push(e.displayPart(e.getTextOfConstantValue(E),typeof E=="number"?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(P&2097152){if(Z(),!X){var k=ee.getAliasedSymbol(f);if(k!==f&&k.declarations&&k.declarations.length>0){var T=k.declarations[0],ne=e.getNameOfDeclaration(T);if(ne){var O=e.isModuleWithStringLiteralName(T)&&e.hasModifier(T,2),Y=f.name!=="default"&&!O,pe=Be(ee,k,e.getSourceFileOfNode(T),T,ne,Te,Y?f:k);ce.push.apply(ce,pe.displayParts),ce.push(e.lineBreakPart()),se=pe.documentation,G=pe.tags}}}switch(f.declarations[0].kind){case 251:ce.push(e.keywordPart(88)),ce.push(e.spacePart()),ce.push(e.keywordPart(135));break;case 258:ce.push(e.keywordPart(88)),ce.push(e.spacePart()),ce.push(e.keywordPart(f.declarations[0].isExportEquals?62:83));break;case 261:ce.push(e.keywordPart(88));break;default:ce.push(e.keywordPart(95))}ce.push(e.spacePart()),He(f),e.forEach(f.declarations,function(Pe){if(Pe.kind===252){var a=Pe;if(e.isExternalModuleImportEqualsDeclaration(a))ce.push(e.spacePart()),ce.push(e.operatorPart(62)),ce.push(e.spacePart()),ce.push(e.keywordPart(138)),ce.push(e.punctuationPart(20)),ce.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(a)),e.SymbolDisplayPartKind.stringLiteral)),ce.push(e.punctuationPart(21));else{var Ze=ee.getSymbolAtLocation(a.moduleReference);Ze&&(ce.push(e.spacePart()),ce.push(e.operatorPart(62)),ce.push(e.spacePart()),He(Ze,Oe))}return!0}})}if(!X)if(h!==""){if(Q){if($?(Z(),ce.push(e.keywordPart(103))):ve(f,h),h==="property"||h==="JSX attribute"||P&3||h==="local var"||$)if(ce.push(e.punctuationPart(58)),ce.push(e.spacePart()),Q.symbol&&Q.symbol.flags&262144){var S=e.mapToDisplayParts(function(Pe){var a=ee.typeParameterToDeclaration(Q,Oe);De().writeNode(4,a,e.getSourceFileOfNode(e.getParseTreeNode(Oe)),Pe)});e.addRange(ce,S)}else e.addRange(ce,e.typeToDisplayParts(ee,Q,Oe));else if(P&16||P&8192||P&16384||P&131072||P&98304||h==="method"){var K=Q.getNonNullableType().getCallSignatures();K.length&&w(K[0],K)}}}else h=qe(ee,f,N);if(!x&&(x=f.getDocumentationComment(ee),C=f.getJsDocTags(),x.length===0&&P&4&&(f.parent&&e.forEach(f.parent.declarations,function(Pe){return Pe.kind===288}))))for(var v=0,U=f.declarations;v<U.length;v++){var I=U[v];if(!I.parent||I.parent.kind!==208)continue;var ue=ee.getSymbolAtLocation(I.parent.right);if(!ue)continue;if(x=ue.getDocumentationComment(ee),C=ue.getJsDocTags(),x.length>0)break}return x.length===0&&se&&(x=se),C.length===0&&G&&(C=G),{displayParts:ce,documentation:x,symbolKind:h,tags:C.length===0?void 0:C};function De(){return z||(z=e.createPrinter({removeComments:!0})),z}function Z(){ce.length&&ce.push(e.lineBreakPart()),Re()}function Re(){ie&&(je("alias"),ce.push(e.spacePart()))}function we(){ce.push(e.spacePart()),ce.push(e.keywordPart(96)),ce.push(e.spacePart())}function He(Pe,a){ie&&Pe===f&&(Pe=ie);var Ze=e.symbolToDisplayParts(ee,Pe,a||J,void 0,1|2|4);e.addRange(ce,Ze),f.flags&16777216&&ce.push(e.punctuationPart(57))}function ve(Pe,a){Z(),a&&(je(a),Pe&&!e.some(Pe.declarations,function(Ze){return e.isArrowFunction(Ze)||(e.isFunctionExpression(Ze)||e.isClassExpression(Ze))&&!Ze.name})&&(ce.push(e.spacePart()),He(Pe)))}function je(Pe){switch(Pe){case"var":case"function":case"let":case"const":case"constructor":ce.push(e.textOrKeywordPart(Pe));return;default:ce.push(e.punctuationPart(20)),ce.push(e.textOrKeywordPart(Pe)),ce.push(e.punctuationPart(21));return}}function w(Pe,a,Ze){Ze===void 0&&(Ze=0),e.addRange(ce,e.signatureToDisplayParts(ee,Pe,Oe,Ze|32)),a.length>1&&(ce.push(e.spacePart()),ce.push(e.punctuationPart(20)),ce.push(e.operatorPart(39)),ce.push(e.displayPart((a.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),ce.push(e.spacePart()),ce.push(e.textPart(a.length===2?"overload":"overloads")),ce.push(e.punctuationPart(21)));var In=Pe.getDocumentationComment(ee);x=In.length===0?void 0:In,C=Pe.getJsDocTags()}function j(Pe,a){var Ze=e.mapToDisplayParts(function(In){var et=ee.symbolToTypeParameterDeclarations(Pe,a);De().writeList(53776,et,e.getSourceFileOfNode(e.getParseTreeNode(a)),In)});e.addRange(ce,Ze)}}M.getSymbolDisplayPartsDocumentationAndSymbolKind=Be;function he(ee){return ee.parent?!1:e.forEach(ee.declarations,function(f){if(f.kind===200)return!0;if(f.kind!==241&&f.kind!==243)return!1;for(var J=f.parent;!e.isFunctionBlock(J);J=J.parent)if(J.kind===288||J.kind===249)return!1;return!0})}})(o=e.SymbolDisplay||(e.SymbolDisplay={}))})(sn||(sn={}));var sn;(function(e){function o(Ge,Be){var he=[],ee=Be.compilerOptions?Ee(Be.compilerOptions,he):{},f=e.getDefaultCompilerOptions();for(var J in f)e.hasProperty(f,J)&&ee[J]===void 0&&(ee[J]=f[J]);for(var Oe=0,N=e.transpileOptionValueCompilerOptions;Oe<N.length;Oe++){var Te=N[Oe];ee[Te.name]=Te.transpileOptionValue}ee.suppressOutputPathCheck=!0,ee.allowNonTsExtensions=!0;var ie=Be.fileName||(Be.compilerOptions&&Be.compilerOptions.jsx?"module.tsx":"module.ts"),ce=e.createSourceFile(ie,Ge,ee.target);Be.moduleName&&(ce.moduleName=Be.moduleName),Be.renamedDependencies&&(ce.renamedDependencies=e.createMapFromTemplate(Be.renamedDependencies));var x=e.getNewLineCharacter(ee),C,P,h={getSourceFile:function($){return $===e.normalizePath(ie)?ce:void 0},writeFile:function($,Q){e.fileExtensionIs($,".map")?(e.Debug.assertEqual(P,void 0,"Unexpected multiple source map outputs, file:",$),P=Q):(e.Debug.assertEqual(C,void 0,"Unexpected multiple outputs, file:",$),C=Q)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function($){return $},getCurrentDirectory:function(){return""},getNewLine:function(){return x},fileExists:function($){return $===ie},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},X=e.createProgram([ie],ee,h);return Be.reportDiagnostics&&(e.addRange(he,X.getSyntacticDiagnostics(ce)),e.addRange(he,X.getOptionsDiagnostics())),X.emit(void 0,void 0,void 0,void 0,Be.transformers),C===void 0?e.Debug.fail("Output generation failed"):{outputText:C,diagnostics:he,sourceMapText:P}}e.transpileModule=o;function M(Ge,Be,he,ee,f){var J=o(Ge,{compilerOptions:Be,fileName:he,reportDiagnostics:!!ee,moduleName:f});return e.addRange(ee,J.diagnostics),J.outputText}e.transpile=M;var qe;function Ee(Ge,Be){qe=qe||e.filter(e.optionDeclarations,function(Oe){return typeof Oe.type=="object"&&!e.forEachEntry(Oe.type,function(N){return typeof N!="number"})}),Ge=e.cloneCompilerOptions(Ge);for(var he=function(Oe){if(!e.hasProperty(Ge,Oe.name))return"continue";var N=Ge[Oe.name];e.isString(N)?Ge[Oe.name]=e.parseCustomTypeOption(Oe,N,Be):e.forEachEntry(Oe.type,function(Te){return Te===N})||Be.push(e.createCompilerDiagnosticForInvalidCustomType(Oe))},ee=0,f=qe;ee<f.length;ee++){var J=f[ee];he(J)}return Ge}e.fixupCompilerOptions=Ee})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe;(function(Ge){Ge[Ge.FormatDocument=0]="FormatDocument",Ge[Ge.FormatSelection=1]="FormatSelection",Ge[Ge.FormatOnEnter=2]="FormatOnEnter",Ge[Ge.FormatOnSemicolon=3]="FormatOnSemicolon",Ge[Ge.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",Ge[Ge.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"})(qe=M.FormattingRequestKind||(M.FormattingRequestKind={}));var Ee=function(){function Ge(Be,he,ee){this.sourceFile=Be,this.formattingRequestKind=he,this.options=ee}return Ge.prototype.updateContext=function(Be,he,ee,f,J){this.currentTokenSpan=e.Debug.assertDefined(Be),this.currentTokenParent=e.Debug.assertDefined(he),this.nextTokenSpan=e.Debug.assertDefined(ee),this.nextTokenParent=e.Debug.assertDefined(f),this.contextNode=e.Debug.assertDefined(J),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},Ge.prototype.ContextNodeAllOnSameLine=function(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},Ge.prototype.NextNodeAllOnSameLine=function(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},Ge.prototype.TokensAreOnSameLine=function(){if(this.tokensAreOnSameLine===void 0){var Be=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,he=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=Be===he}return this.tokensAreOnSameLine},Ge.prototype.ContextNodeBlockIsOnOneLine=function(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},Ge.prototype.NextNodeBlockIsOnOneLine=function(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},Ge.prototype.NodeIsOnOneLine=function(Be){var he=this.sourceFile.getLineAndCharacterOfPosition(Be.getStart(this.sourceFile)).line,ee=this.sourceFile.getLineAndCharacterOfPosition(Be.getEnd()).line;return he===ee},Ge.prototype.BlockIsOnOneLine=function(Be){var he=e.findChildOfKind(Be,18,this.sourceFile),ee=e.findChildOfKind(Be,19,this.sourceFile);if(he&&ee){var f=this.sourceFile.getLineAndCharacterOfPosition(he.getEnd()).line,J=this.sourceFile.getLineAndCharacterOfPosition(ee.getStart(this.sourceFile)).line;return f===J}return!1},Ge}();M.FormattingContext=Ee})(o=e.formatting||(e.formatting={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe=e.createScanner(99,!1,0),Ee=e.createScanner(99,!1,1),Ge;(function(he){he[he.Scan=0]="Scan",he[he.RescanGreaterThanToken=1]="RescanGreaterThanToken",he[he.RescanSlashToken=2]="RescanSlashToken",he[he.RescanTemplateToken=3]="RescanTemplateToken",he[he.RescanJsxIdentifier=4]="RescanJsxIdentifier",he[he.RescanJsxText=5]="RescanJsxText"})(Ge||(Ge={}));function Be(he,ee,f,J,Oe){var N=ee===1?Ee:qe;N.setText(he),N.setTextPos(f);var Te=!0,ie,ce,x,C,P,h=Oe({advance:X,readTokenInfo:q,readEOFTokenRange:R,isOnToken:K,isOnEOF:m,getCurrentLeadingTrivia:function(){return ie},lastTrailingTriviaWasNewLine:function(){return Te},skipToEndOf:I});return P=void 0,N.setText(void 0),h;function X(){P=void 0;var D=N.getStartPos()!==f;D?Te=!!ce&&e.last(ce).kind===4:N.scan(),ie=void 0,ce=void 0;for(var y=N.getStartPos();y<J;){var E=N.getToken();if(!e.isTrivia(E))break;N.scan();var k={pos:y,end:N.getStartPos(),kind:E};y=N.getStartPos(),ie=e.append(ie,k)}x=N.getStartPos()}function $(D){switch(D.kind){case 33:case 70:case 71:case 49:case 48:return!0}return!1}function Q(D){if(D.parent)switch(D.parent.kind){case 271:case 266:case 267:case 265:return e.isKeyword(D.kind)||D.kind===75}return!1}function z(D){return D.kind===11}function se(D){return D.kind===13}function G(D){return D.kind===16||D.kind===17}function H(D){return D===43||D===67}function q(D){e.Debug.assert(K());var y=$(D)?1:se(D)?2:G(D)?3:Q(D)?4:z(D)?5:0;if(P&&y===C)return _(P,D);N.getStartPos()!==x&&(e.Debug.assert(P!==void 0),N.setTextPos(x),N.scan());var E=be(D,y),k=M.createTextRangeWithKind(N.getStartPos(),N.getTextPos(),E);for(ce&&(ce=void 0);N.getStartPos()<J&&!(E=N.scan(),!e.isTrivia(E));){var T=M.createTextRangeWithKind(N.getStartPos(),N.getTextPos(),E);if(ce||(ce=[]),ce.push(T),E===4){N.scan();break}}return P={leadingTrivia:ie,trailingTrivia:ce,token:k},_(P,D)}function be(D,y){var E=N.getToken();C=0;switch(y){case 1:if(E===31){C=1;var k=N.reScanGreaterToken();return e.Debug.assert(D.kind===k),k}break;case 2:if(H(E)){C=2;var k=N.reScanSlashToken();return e.Debug.assert(D.kind===k),k}break;case 3:if(E===19)return C=3,N.reScanTemplateToken();break;case 4:return C=4,N.scanJsxIdentifier();case 5:return C=5,N.reScanJsxToken();case 0:break;default:e.Debug.assertNever(y)}return E}function R(){return e.Debug.assert(m()),M.createTextRangeWithKind(N.getStartPos(),N.getTextPos(),1)}function K(){var D=P?P.token.kind:N.getToken(),y=P?P.token.pos:N.getStartPos();return y<J&&D!==1&&!e.isTrivia(D)}function m(){var D=P?P.token.kind:N.getToken();return D===1}function _(D,y){return e.isToken(y)&&D.token.kind!==y.kind&&(D.token.kind=y.kind),D}function I(D){N.setTextPos(D.end),x=N.getStartPos(),C=void 0,P=void 0,Te=!1,ie=void 0,ce=void 0}}M.getFormattingScanner=Be})(o=e.formatting||(e.formatting={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){M.anyContext=e.emptyArray;var qe;(function(Ge){Ge[Ge.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",Ge[Ge.StopProcessingTokenActions=2]="StopProcessingTokenActions",Ge[Ge.InsertSpace=4]="InsertSpace",Ge[Ge.InsertNewLine=8]="InsertNewLine",Ge[Ge.DeleteSpace=16]="DeleteSpace",Ge[Ge.DeleteToken=32]="DeleteToken",Ge[Ge.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",Ge[Ge.StopAction=3]="StopAction",Ge[Ge.ModifySpaceAction=28]="ModifySpaceAction",Ge[Ge.ModifyTokenAction=96]="ModifyTokenAction"})(qe=M.RuleAction||(M.RuleAction={}));var Ee;(function(Ge){Ge[Ge.None=0]="None",Ge[Ge.CanDeleteNewLines=1]="CanDeleteNewLines"})(Ee=M.RuleFlags||(M.RuleFlags={}))})(o=e.formatting||(e.formatting={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){function qe(){for(var Fe=[],cn=0;cn<=151;cn++)cn!==1&&Fe.push(cn);function Qe(){for(var dn=[],un=0;un<arguments.length;un++)dn[un]=arguments[un];return{tokens:Fe.filter(function(Rn){return!dn.some(function(at){return at===Rn})}),isSpecific:!1}}var ln={tokens:Fe,isSpecific:!1},ye=Ge(Tr(Fe,[3])),ke=Ge(Tr(Fe,[1])),F=he(76,151),c=he(29,74),L=[96,97,151,122,132],te=[45,46,54,53],Se=[8,9,75,20,22,18,103,98],Ne=[75,20,103,98],ze=[75,21,23,98],Tn=[75,20,103,98],wn=[75,21,23,98],jn=[2,3],nn=Tr([75],e.typeKeywords),pn=ye,le=Ge([75,3,79,88,95]),oe=Ge([21,3,85,106,91,86]),Cn=[Ee("IgnoreBeforeComment",ln,jn,M.anyContext,1),Ee("IgnoreAfterLineComment",2,ln,M.anyContext,1),Ee("NotSpaceBeforeColon",ln,58,[v,C,P],16),Ee("SpaceAfterColon",58,ln,[v,C],4),Ee("NoSpaceBeforeQuestionMark",ln,57,[v,C],16),Ee("SpaceAfterQuestionMarkInConditionalOperator",57,ln,[v,X],4),Ee("NoSpaceAfterQuestionMark",57,ln,[v],16),Ee("NoSpaceBeforeDot",ln,[24,28],[v],16),Ee("NoSpaceAfterDot",[24,28],ln,[v],16),Ee("NoSpaceBetweenImportParenInImportType",95,20,[v,S],16),Ee("NoSpaceAfterUnaryPrefixOperator",te,Se,[v,C],16),Ee("NoSpaceAfterUnaryPreincrementOperator",45,Ne,[v],16),Ee("NoSpaceAfterUnaryPredecrementOperator",46,Tn,[v],16),Ee("NoSpaceBeforeUnaryPostincrementOperator",ze,45,[v],16),Ee("NoSpaceBeforeUnaryPostdecrementOperator",wn,46,[v],16),Ee("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[v,x],4),Ee("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[v,x],4),Ee("SpaceAfterAddWhenFollowedByPreincrement",39,45,[v,x],4),Ee("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[v,x],4),Ee("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[v,x],4),Ee("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[v,x],4),Ee("NoSpaceAfterCloseBrace",19,[27,26],[v],16),Ee("NewLineBeforeCloseBraceInBlockContext",ye,19,[se],8),Ee("SpaceAfterCloseBrace",19,Qe(21),[v,D],4),Ee("SpaceBetweenCloseBraceAndElse",19,86,[v],4),Ee("SpaceBetweenCloseBraceAndWhile",19,110,[v],4),Ee("NoSpaceBetweenEmptyBraceBrackets",18,19,[v,E],16),Ee("SpaceAfterConditionalClosingParen",21,22,[y],4),Ee("NoSpaceBetweenFunctionKeywordAndStar",93,41,[m],16),Ee("SpaceAfterStarInGeneratorDeclaration",41,75,[m],4),Ee("SpaceAfterFunctionInFuncDecl",93,ln,[R],4),Ee("NewLineAfterOpenBraceInBlockContext",18,ln,[se],8),Ee("SpaceAfterGetSetInMember",[130,141],75,[R],4),Ee("NoSpaceBetweenYieldKeywordAndStar",120,41,[v,fe],16),Ee("SpaceBetweenYieldOrYieldStarAndOperand",[120,41],ln,[v,fe],4),Ee("NoSpaceBetweenReturnAndSemicolon",100,26,[v],16),Ee("SpaceAfterCertainKeywords",[108,104,98,84,100,107,126],ln,[v],4),Ee("SpaceAfterLetConstInVariableDeclaration",[114,80],ln,[v,je],4),Ee("NoSpaceBeforeOpenParenInFuncCall",ln,20,[v,ne,O],16),Ee("SpaceBeforeBinaryKeywordOperator",ln,L,[v,x],4),Ee("SpaceAfterBinaryKeywordOperator",L,ln,[v,x],4),Ee("SpaceAfterVoidOperator",109,ln,[v,ae],4),Ee("SpaceBetweenAsyncAndOpenParen",125,20,[pe,v],4),Ee("SpaceBetweenAsyncAndFunctionKeyword",125,93,[v],4),Ee("NoSpaceBetweenTagAndTemplateString",[75,21],[14,15],[v],16),Ee("SpaceBeforeJsxAttribute",ln,75,[De,v],4),Ee("SpaceBeforeSlashInJsxOpeningElement",ln,43,[Re,v],4),Ee("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[Re,v],16),Ee("NoSpaceBeforeEqualInJsxAttribute",ln,62,[Z,v],16),Ee("NoSpaceAfterEqualInJsxAttribute",62,ln,[Z,v],16),Ee("NoSpaceAfterModuleImport",[134,138],20,[v],16),Ee("SpaceAfterCertainTypeScriptKeywords",[121,79,129,83,87,88,89,130,112,95,113,134,135,116,118,117,137,141,119,144,148,133,131],ln,[v],4),Ee("SpaceBeforeCertainTypeScriptKeywords",ln,[89,112,148],[v],4),Ee("SpaceAfterModuleName",10,18,[j],4),Ee("SpaceBeforeArrow",ln,38,[v],4),Ee("SpaceAfterArrow",38,ln,[v],4),Ee("NoSpaceAfterEllipsis",25,75,[v],16),Ee("NoSpaceAfterOptionalParameters",57,[21,27],[v,C],16),Ee("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[v,Pe],16),Ee("NoSpaceBeforeOpenAngularBracket",nn,29,[v,In],16),Ee("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[v,In],16),Ee("NoSpaceAfterOpenAngularBracket",29,ln,[v,In],16),Ee("NoSpaceBeforeCloseAngularBracket",ln,31,[v,In],16),Ee("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[v,In,K],16),Ee("SpaceBeforeAt",[21,75],59,[v],4),Ee("NoSpaceAfterAt",59,ln,[v],16),Ee("SpaceAfterDecorator",ln,[121,75,88,83,79,119,118,116,117,130,141,22,41],[He],4),Ee("NoSpaceBeforeNonNullAssertionOperator",ln,53,[v,Le],16),Ee("NoSpaceAfterNewKeywordOnConstructorSignature",98,20,[v,a],16),Ee("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[v],4)],yn=[Ee("SpaceAfterConstructor",128,20,[f("insertSpaceAfterConstructor"),v],4),Ee("NoSpaceAfterConstructor",128,20,[Oe("insertSpaceAfterConstructor"),v],16),Ee("SpaceAfterComma",27,ln,[f("insertSpaceAfterCommaDelimiter"),v,U,Y],4),Ee("NoSpaceAfterComma",27,ln,[Oe("insertSpaceAfterCommaDelimiter"),v,U],16),Ee("SpaceAfterAnonymousFunctionKeyword",[93,41],20,[f("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),R],4),Ee("NoSpaceAfterAnonymousFunctionKeyword",[93,41],20,[Oe("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),R],16),Ee("SpaceAfterKeywordInControl",F,20,[f("insertSpaceAfterKeywordsInControlFlowStatements"),y],4),Ee("NoSpaceAfterKeywordInControl",F,20,[Oe("insertSpaceAfterKeywordsInControlFlowStatements"),y],16),Ee("SpaceAfterOpenParen",20,ln,[f("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),v],4),Ee("SpaceBeforeCloseParen",ln,21,[f("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),v],4),Ee("SpaceBetweenOpenParens",20,20,[f("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),v],4),Ee("NoSpaceBetweenParens",20,21,[v],16),Ee("NoSpaceAfterOpenParen",20,ln,[Oe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),v],16),Ee("NoSpaceBeforeCloseParen",ln,21,[Oe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),v],16),Ee("SpaceAfterOpenBracket",22,ln,[f("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),v],4),Ee("SpaceBeforeCloseBracket",ln,23,[f("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),v],4),Ee("NoSpaceBetweenBrackets",22,23,[v],16),Ee("NoSpaceAfterOpenBracket",22,ln,[Oe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),v],16),Ee("NoSpaceBeforeCloseBracket",ln,23,[Oe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),v],16),Ee("SpaceAfterOpenBrace",18,ln,[Te("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Q],4),Ee("SpaceBeforeCloseBrace",ln,19,[Te("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Q],4),Ee("NoSpaceBetweenEmptyBraceBrackets",18,19,[v,E],16),Ee("NoSpaceAfterOpenBrace",18,ln,[J("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),v],16),Ee("NoSpaceBeforeCloseBrace",ln,19,[J("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),v],16),Ee("SpaceAfterTemplateHeadAndMiddle",[15,16],ln,[f("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),v],4),Ee("SpaceBeforeTemplateMiddleAndTail",ln,[16,17],[f("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),v],4),Ee("NoSpaceAfterTemplateHeadAndMiddle",[15,16],ln,[Oe("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),v],16),Ee("NoSpaceBeforeTemplateMiddleAndTail",ln,[16,17],[Oe("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),v],16),Ee("SpaceAfterOpenBraceInJsxExpression",18,ln,[f("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),v,ue],4),Ee("SpaceBeforeCloseBraceInJsxExpression",ln,19,[f("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),v,ue],4),Ee("NoSpaceAfterOpenBraceInJsxExpression",18,ln,[Oe("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),v,ue],16),Ee("NoSpaceBeforeCloseBraceInJsxExpression",ln,19,[Oe("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),v,ue],16),Ee("SpaceAfterSemicolonInFor",26,ln,[f("insertSpaceAfterSemicolonInForStatements"),v,ie],4),Ee("NoSpaceAfterSemicolonInFor",26,ln,[Oe("insertSpaceAfterSemicolonInForStatements"),v,ie],16),Ee("SpaceBeforeBinaryOperator",ln,c,[f("insertSpaceBeforeAndAfterBinaryOperators"),v,x],4),Ee("SpaceAfterBinaryOperator",c,ln,[f("insertSpaceBeforeAndAfterBinaryOperators"),v,x],4),Ee("NoSpaceBeforeBinaryOperator",ln,c,[Oe("insertSpaceBeforeAndAfterBinaryOperators"),v,x],16),Ee("NoSpaceAfterBinaryOperator",c,ln,[Oe("insertSpaceBeforeAndAfterBinaryOperators"),v,x],16),Ee("SpaceBeforeOpenParenInFuncDecl",ln,20,[f("insertSpaceBeforeFunctionParenthesis"),v,R],4),Ee("NoSpaceBeforeOpenParenInFuncDecl",ln,20,[Oe("insertSpaceBeforeFunctionParenthesis"),v,R],16),Ee("NewLineBeforeOpenBraceInControl",oe,18,[f("placeOpenBraceOnNewLineForControlBlocks"),y,z],8,1),Ee("NewLineBeforeOpenBraceInFunction",pn,18,[f("placeOpenBraceOnNewLineForFunctions"),R,z],8,1),Ee("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",le,18,[f("placeOpenBraceOnNewLineForFunctions"),_,z],8,1),Ee("SpaceAfterTypeAssertion",31,ln,[f("insertSpaceAfterTypeAssertion"),v,et],4),Ee("NoSpaceAfterTypeAssertion",31,ln,[Oe("insertSpaceAfterTypeAssertion"),v,et],16),Ee("SpaceBeforeTypeAnnotation",ln,58,[f("insertSpaceBeforeTypeAnnotation"),v,h],4),Ee("NoSpaceBeforeTypeAnnotation",ln,58,[Oe("insertSpaceBeforeTypeAnnotation"),v,h],16),Ee("NoOptionalSemicolon",26,ke,[ee("semicolons",e.SemicolonPreference.Remove),Je],32),Ee("OptionalSemicolon",ln,ke,[ee("semicolons",e.SemicolonPreference.Insert),$e],64)],_e=[Ee("NoSpaceBeforeSemicolon",ln,26,[v],16),Ee("SpaceBeforeOpenBraceInControl",oe,18,[N("placeOpenBraceOnNewLineForControlBlocks"),y,w,$],4,1),Ee("SpaceBeforeOpenBraceInFunction",pn,18,[N("placeOpenBraceOnNewLineForFunctions"),R,q,w,$],4,1),Ee("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",le,18,[N("placeOpenBraceOnNewLineForFunctions"),_,w,$],4,1),Ee("NoSpaceBeforeComma",ln,27,[v],16),Ee("NoSpaceBeforeOpenBracket",Qe(125,77),22,[v],16),Ee("NoSpaceAfterCloseBracket",23,ln,[v,we],16),Ee("SpaceAfterSemicolon",26,ln,[v],4),Ee("SpaceBetweenForAndAwaitKeyword",92,126,[v],4),Ee("SpaceBetweenStatements",[21,85,86,77],ln,[v,U,ce],4),Ee("SpaceAfterTryFinally",[106,91],18,[v],4)];return Tr(Cn,yn,_e)}M.getAllRules=qe;function Ee(Fe,cn,Qe,ln,ye,ke){return ke===void 0&&(ke=0),{leftTokenRange:Be(cn),rightTokenRange:Be(Qe),rule:{debugName:Fe,context:ln,action:ye,flags:ke}}}function Ge(Fe){return{tokens:Fe,isSpecific:!0}}function Be(Fe){return typeof Fe=="number"?Ge([Fe]):e.isArray(Fe)?Ge(Fe):Fe}function he(Fe,cn,Qe){Qe===void 0&&(Qe=[]);for(var ln=[],ye=Fe;ye<=cn;ye++)e.contains(Qe,ye)||ln.push(ye);return Ge(ln)}function ee(Fe,cn){return function(Qe){return Qe.options&&Qe.options[Fe]===cn}}function f(Fe){return function(cn){return cn.options&&cn.options.hasOwnProperty(Fe)&&!!cn.options[Fe]}}function J(Fe){return function(cn){return cn.options&&cn.options.hasOwnProperty(Fe)&&!cn.options[Fe]}}function Oe(Fe){return function(cn){return!cn.options||!cn.options.hasOwnProperty(Fe)||!cn.options[Fe]}}function N(Fe){return function(cn){return!cn.options||!cn.options.hasOwnProperty(Fe)||!cn.options[Fe]||cn.TokensAreOnSameLine()}}function Te(Fe){return function(cn){return!cn.options||!cn.options.hasOwnProperty(Fe)||!!cn.options[Fe]}}function ie(Fe){return Fe.contextNode.kind===229}function ce(Fe){return!ie(Fe)}function x(Fe){switch(Fe.contextNode.kind){case 208:case 209:case 179:case 216:case 261:case 257:case 167:case 177:case 178:return!0;case 190:case 246:case 252:case 241:case 155:case 282:case 158:case 157:return Fe.currentTokenSpan.kind===62||Fe.nextTokenSpan.kind===62;case 230:case 154:return Fe.currentTokenSpan.kind===96||Fe.nextTokenSpan.kind===96||Fe.currentTokenSpan.kind===62||Fe.nextTokenSpan.kind===62;case 231:return Fe.currentTokenSpan.kind===151||Fe.nextTokenSpan.kind===151}return!1}function C(Fe){return!x(Fe)}function P(Fe){return!h(Fe)}function h(Fe){var cn=Fe.contextNode.kind;return cn===158||cn===157||cn===155||cn===241||e.isFunctionLikeKind(cn)}function X(Fe){return Fe.contextNode.kind===209||Fe.contextNode.kind===179}function $(Fe){return Fe.TokensAreOnSameLine()||q(Fe)}function Q(Fe){return Fe.contextNode.kind===188||Fe.contextNode.kind===185||G(Fe)}function z(Fe){return q(Fe)&&!(Fe.NextNodeAllOnSameLine()||Fe.NextNodeBlockIsOnOneLine())}function se(Fe){return H(Fe)&&!(Fe.ContextNodeAllOnSameLine()||Fe.ContextNodeBlockIsOnOneLine())}function G(Fe){return H(Fe)&&(Fe.ContextNodeAllOnSameLine()||Fe.ContextNodeBlockIsOnOneLine())}function H(Fe){return be(Fe.contextNode)}function q(Fe){return be(Fe.nextTokenParent)}function be(Fe){if(I(Fe))return!0;switch(Fe.kind){case 222:case 250:case 192:case 249:return!0}return!1}function R(Fe){switch(Fe.contextNode.kind){case 243:case 160:case 159:case 162:case 163:case 164:case 200:case 161:case 201:case 245:return!0}return!1}function K(Fe){return!R(Fe)}function m(Fe){return Fe.contextNode.kind===243||Fe.contextNode.kind===200}function _(Fe){return I(Fe.contextNode)}function I(Fe){switch(Fe.kind){case 244:case 213:case 245:case 247:case 172:case 248:case 259:case 260:case 253:case 256:return!0}return!1}function D(Fe){switch(Fe.currentTokenParent.kind){case 244:case 248:case 247:case 278:case 249:case 236:return!0;case 222:{var cn=Fe.currentTokenParent.parent;if(!cn||cn.kind!==201&&cn.kind!==200)return!0}}return!1}function y(Fe){switch(Fe.contextNode.kind){case 226:case 236:case 229:case 230:case 231:case 228:case 239:case 227:case 235:case 278:return!0;default:return!1}}function E(Fe){return Fe.contextNode.kind===192}function k(Fe){return Fe.contextNode.kind===195}function T(Fe){return Fe.contextNode.kind===196}function ne(Fe){return k(Fe)||T(Fe)}function O(Fe){return Fe.currentTokenSpan.kind!==27}function Y(Fe){return Fe.nextTokenSpan.kind!==23}function pe(Fe){return Fe.contextNode.kind===201}function S(Fe){return Fe.contextNode.kind===187}function v(Fe){return Fe.TokensAreOnSameLine()&&Fe.contextNode.kind!==11}function U(Fe){return Fe.contextNode.kind!==264&&Fe.contextNode.kind!==268}function ue(Fe){return Fe.contextNode.kind===274||Fe.contextNode.kind===273}function De(Fe){return Fe.nextTokenParent.kind===271}function Z(Fe){return Fe.contextNode.kind===271}function Re(Fe){return Fe.contextNode.kind===265}function we(Fe){return!R(Fe)&&!q(Fe)}function He(Fe){return Fe.TokensAreOnSameLine()&&!!Fe.contextNode.decorators&&ve(Fe.currentTokenParent)&&!ve(Fe.nextTokenParent)}function ve(Fe){for(;e.isExpressionNode(Fe);)Fe=Fe.parent;return Fe.kind===156}function je(Fe){return Fe.currentTokenParent.kind===242&&Fe.currentTokenParent.getStart(Fe.sourceFile)===Fe.currentTokenSpan.pos}function w(Fe){return Fe.formattingRequestKind!==2}function j(Fe){return Fe.contextNode.kind===248}function Pe(Fe){return Fe.contextNode.kind===172}function a(Fe){return Fe.contextNode.kind===165}function Ze(Fe,cn){if(Fe.kind!==29&&Fe.kind!==31)return!1;switch(cn.kind){case 168:case 198:case 246:case 244:case 213:case 245:case 243:case 200:case 201:case 160:case 159:case 164:case 165:case 195:case 196:case 215:return!0;default:return!1}}function In(Fe){return Ze(Fe.currentTokenSpan,Fe.currentTokenParent)||Ze(Fe.nextTokenSpan,Fe.nextTokenParent)}function et(Fe){return Fe.contextNode.kind===198}function ae(Fe){return Fe.currentTokenSpan.kind===109&&Fe.currentTokenParent.kind===204}function fe(Fe){return Fe.contextNode.kind===211&&Fe.contextNode.expression!==void 0}function Le(Fe){return Fe.contextNode.kind===217}function Je(Fe){var cn=Fe.nextTokenSpan.kind,Qe=Fe.nextTokenSpan.pos;if(e.isTrivia(cn)){var ln=Fe.nextTokenParent===Fe.currentTokenParent?e.findNextToken(Fe.currentTokenParent,e.findAncestor(Fe.currentTokenParent,function(F){return!F.parent}),Fe.sourceFile):Fe.nextTokenParent.getFirstToken(Fe.sourceFile);if(!ln)return!0;cn=ln.kind,Qe=ln.getStart(Fe.sourceFile)}var ye=Fe.sourceFile.getLineAndCharacterOfPosition(Fe.currentTokenSpan.pos).line,ke=Fe.sourceFile.getLineAndCharacterOfPosition(Qe).line;return ye===ke?cn===19||cn===1:cn===221||cn===26?!1:Fe.contextNode.kind===245||Fe.contextNode.kind===246?!e.isPropertySignature(Fe.currentTokenParent)||!!Fe.currentTokenParent.type||cn!==20:e.isPropertyDeclaration(Fe.currentTokenParent)?!Fe.currentTokenParent.initializer:Fe.currentTokenParent.kind!==229&&Fe.currentTokenParent.kind!==223&&Fe.currentTokenParent.kind!==221&&cn!==22&&cn!==20&&cn!==39&&cn!==40&&cn!==43&&cn!==13&&cn!==27&&cn!==210&&cn!==15&&cn!==14&&cn!==24}function $e(Fe){var cn=e.findAncestor(Fe.currentTokenParent,function(Qe){return Qe.end!==Fe.currentTokenSpan.end?"quit":e.syntaxMayBeASICandidate(Qe.kind)});return!!cn&&e.isASICandidate(cn,Fe.sourceFile)}})(o=e.formatting||(e.formatting={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){function qe(C){return{options:C,getRules:Ge()}}M.getFormatContext=qe;var Ee;function Ge(){return Ee===void 0&&(Ee=he(M.getAllRules())),Ee}function Be(C){var P=0;return C&1&&(P|=28),C&2&&(P|=96),C&28&&(P|=28),C&96&&(P|=96),P}function he(C){var P=ee(C);return function(h){var X=P[f(h.currentTokenSpan.kind,h.nextTokenSpan.kind)];if(X){for(var $=[],Q=0,z=0,se=X;z<se.length;z++){var G=se[z],H=~Be(Q);G.action&H&&e.every(G.context,function(q){return q(h)})&&($.push(G),Q|=G.action)}if($.length)return $}}}function ee(C){for(var P=new Array(N*N),h=new Array(P.length),X=0,$=C;X<$.length;X++)for(var Q=$[X],z=Q.leftTokenRange.isSpecific&&Q.rightTokenRange.isSpecific,se=0,G=Q.leftTokenRange.tokens;se<G.length;se++)for(var H=G[se],q=0,be=Q.rightTokenRange.tokens;q<be.length;q++){var R=be[q],K=f(H,R),m=P[K];m===void 0&&(m=P[K]=[]),ie(m,Q.rule,z,h,K)}return P}function f(C,P){return e.Debug.assert(C<=151&&P<=151,"Must compute formatting context from tokens"),C*N+P}var J=5,Oe=31,N=151+1,Te;(function(C){C[C.StopRulesSpecific=0]="StopRulesSpecific",C[C.StopRulesAny=J*1]="StopRulesAny",C[C.ContextRulesSpecific=J*2]="ContextRulesSpecific",C[C.ContextRulesAny=J*3]="ContextRulesAny",C[C.NoContextRulesSpecific=J*4]="NoContextRulesSpecific",C[C.NoContextRulesAny=J*5]="NoContextRulesAny"})(Te||(Te={}));function ie(C,P,h,X,$){var Q=P.action&3?h?Te.StopRulesSpecific:Te.StopRulesAny:P.context!==M.anyContext?h?Te.ContextRulesSpecific:Te.ContextRulesAny:h?Te.NoContextRulesSpecific:Te.NoContextRulesAny,z=X[$]||0;C.splice(ce(z,Q),0,P),X[$]=x(z,Q)}function ce(C,P){for(var h=0,X=0;X<=P;X+=J)h+=C&Oe,C>>=J;return h}function x(C,P){var h=(C>>P&Oe)+1;return e.Debug.assert((h&Oe)===h,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),C&~(Oe<<P)|h<<P}})(o=e.formatting||(e.formatting={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){function qe(K,m,_){var I={pos:K,end:m,kind:_};return e.Debug.isDebugging&&Object.defineProperty(I,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(_)}}),I}M.createTextRangeWithKind=qe;var Ee;(function(K){K[K.Unknown=-1]="Unknown"})(Ee||(Ee={}));function Ge(K,m,_){var I=m.getLineAndCharacterOfPosition(K).line;if(I===0)return[];for(var D=e.getEndLinePosition(I,m);e.isWhiteSpaceSingleLine(m.text.charCodeAt(D));)D--;e.isLineBreak(m.text.charCodeAt(D))&&D--;var y={pos:e.getStartPositionOfLine(I-1,m),end:D+1};return X(y,m,_,2)}M.formatOnEnter=Ge;function Be(K,m,_){var I=Oe(K,26,m);return h(N(I),m,_,3)}M.formatOnSemicolon=Be;function he(K,m,_){var I=Oe(K,18,m);if(!I)return[];var D=I.parent,y=N(D),E={pos:e.getLineStartPositionForPosition(y.getStart(m),m),end:K};return X(E,m,_,4)}M.formatOnOpeningCurly=he;function ee(K,m,_){var I=Oe(K,19,m);return h(N(I),m,_,5)}M.formatOnClosingCurly=ee;function f(K,m){var _={pos:0,end:K.text.length};return X(_,K,m,0)}M.formatDocument=f;function J(K,m,_,I){var D={pos:e.getLineStartPositionForPosition(K,_),end:m};return X(D,_,I,1)}M.formatSelection=J;function Oe(K,m,_){var I=e.findPrecedingToken(K,_);return I&&I.kind===m&&K===I.getEnd()?I:void 0}function N(K){for(var m=K;m&&m.parent&&m.parent.end===K.end&&!Te(m.parent,m);)m=m.parent;return m}function Te(K,m){switch(K.kind){case 244:case 245:return e.rangeContainsRange(K.members,m);case 248:var _=K.body;return!!_&&_.kind===249&&e.rangeContainsRange(_.statements,m);case 288:case 222:case 249:return e.rangeContainsRange(K.statements,m);case 278:return e.rangeContainsRange(K.block.statements,m)}return!1}function ie(K,m){return _(m);function _(I){var D=e.forEachChild(I,function(E){return e.startEndContainsRange(E.getStart(m),E.end,K)&&E});if(D){var y=_(D);if(y)return y}return I}}function ce(K,m){if(!K.length)return D;var _=K.filter(function(y){return e.rangeOverlapsWithStartEnd(m,y.start,y.start+y.length)}).sort(function(y,E){return y.start-E.start});if(!_.length)return D;var I=0;return function(y){for(;;){if(I>=_.length)return!1;var E=_[I];if(y.end<=E.start)return!1;if(e.startEndOverlapsWithStartEnd(y.pos,y.end,E.start,E.start+E.length))return!0;I++}};function D(){return!1}}function x(K,m,_){var I=K.getStart(_);if(I===m.pos&&K.end===m.end)return I;var D=e.findPrecedingToken(m.pos,_);return D?D.end>=m.pos?K.pos:D.end:K.pos}function C(K,m,_){for(var I=-1,D;K;){var y=_.getLineAndCharacterOfPosition(K.getStart(_)).line;if(I!==-1&&y!==I)break;if(M.SmartIndenter.shouldIndentChildNode(m,K,D,_))return m.indentSize;I=y,D=K,K=K.parent}return 0}function P(K,m,_,I,D,y){var E={pos:0,end:m.text.length};return M.getFormattingScanner(m.text,_,E.pos,E.end,function(k){return $(E,K,I,D,k,y,1,function(T){return!1},m)})}M.formatNodeGivenIndentation=P;function h(K,m,_,I){if(!K)return[];var D={pos:e.getLineStartPositionForPosition(K.getStart(m),m),end:K.end};return X(D,m,_,I)}function X(K,m,_,I){var D=ie(K,m);return M.getFormattingScanner(m.text,m.languageVariant,x(D,K,m),K.end,function(y){return $(K,D,M.SmartIndenter.getIndentationForNode(D,K,m,_.options),C(D,_.options,m),y,_,I,ce(m.parseDiagnostics,K),m)})}function $(K,m,_,I,D,y,E,k,T){var ne=y.options,O=y.getRules,Y=new M.FormattingContext(T,E,ne),pe,S,v,U,ue=-1,De=[];if(D.advance(),D.isOnToken()){var Z=T.getLineAndCharacterOfPosition(m.getStart(T)).line,Re=Z;m.decorators&&(Re=T.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(m,T)).line),j(m,m,Z,Re,_,I)}if(!D.isOnToken()){var we=D.getCurrentLeadingTrivia();we&&(Pe(we,_,!1,function(ke){return Ze(ke,T.getLineAndCharacterOfPosition(ke.pos),m,m,void 0)}),Fe())}return De;function He(ke,F,c,L,te){if(e.rangeOverlapsWithStartEnd(L,ke,F)||e.rangeContainsStartEnd(L,ke,F)){if(te!==-1)return te}else{var Se=T.getLineAndCharacterOfPosition(ke).line,Ne=e.getLineStartPositionForPosition(ke,T),ze=M.SmartIndenter.findFirstNonWhitespaceColumn(Ne,ke,T,ne);if(Se!==c||ke===ze){var Tn=M.SmartIndenter.getBaseIndentation(ne);return Tn>ze?Tn:ze}}return-1}function ve(ke,F,c,L,te,Se){var Ne=M.SmartIndenter.shouldIndentChildNode(ne,ke)?ne.indentSize:0;return Se===F?{indentation:F===U?ue:te.getIndentation(),delta:Math.min(ne.indentSize,te.getDelta(ke)+Ne)}:c===-1?ke.kind===20&&F===U?{indentation:ue,delta:te.getDelta(ke)}:M.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(L,ke,F,T)?{indentation:te.getIndentation(),delta:Ne}:M.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(L,ke,F,T)?{indentation:te.getIndentation(),delta:Ne}:{indentation:te.getIndentation()+te.getDelta(ke),delta:Ne}:{indentation:c,delta:Ne}}function je(ke){if(ke.modifiers&&ke.modifiers.length)return ke.modifiers[0].kind;switch(ke.kind){case 244:return 79;case 245:return 113;case 243:return 93;case 247:return 247;case 162:return 130;case 163:return 141;case 160:if(ke.asteriskToken)return 41;case 158:case 155:var F=e.getNameOfDeclaration(ke);if(F)return F.kind}}function w(ke,F,c,L){return{getIndentationForComment:function(Ne,ze,Tn){switch(Ne){case 19:case 23:case 21:return c+Se(Tn)}return ze!==-1?ze:c},getIndentationForToken:function(Ne,ze,Tn,wn){return!wn&&te(Ne,ze,Tn)?c+Se(Tn):c},getIndentation:function(){return c},getDelta:Se,recomputeIndentation:function(Ne){ke.parent&&M.SmartIndenter.shouldIndentChildNode(ne,ke.parent,ke,T)&&(c+=Ne?ne.indentSize:-ne.indentSize,L=M.SmartIndenter.shouldIndentChildNode(ne,ke)?ne.indentSize:0)}};function te(Ne,ze,Tn){switch(ze){case 18:case 19:case 21:case 86:case 110:case 59:return!1;case 43:case 31:switch(Tn.kind){case 266:case 267:case 265:return!1}break;case 22:case 23:if(Tn.kind!==185)return!1;break}return F!==Ne&&!(ke.decorators&&ze===je(ke))}function Se(Ne){return M.SmartIndenter.nodeWillIndentChild(ne,ke,Ne,T,!0)?L:0}}function j(ke,F,c,L,te,Se){if(!e.rangeOverlapsWithStartEnd(K,ke.getStart(T),ke.getEnd()))return;var Ne=w(ke,c,te,Se),ze=F;for(e.forEachChild(ke,function(le){jn(le,-1,ke,Ne,c,L,!1)},function(le){nn(le,ke,c,Ne)});D.isOnToken();){var Tn=D.readTokenInfo(ke);if(Tn.token.end>ke.end)break;pn(Tn,ke,Ne,ke)}if(!ke.parent&&D.isOnEOF()){var wn=D.readEOFTokenRange();wn.end<=ke.end&&pe&&In(wn,T.getLineAndCharacterOfPosition(wn.pos).line,ke,pe,v,S,F,Ne)}function jn(le,oe,Cn,yn,_e,dn,un,Rn){var at=le.getStart(T),Bn=T.getLineAndCharacterOfPosition(at).line,ut=Bn;le.decorators&&(ut=T.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(le,T)).line);var ct=-1;if(un&&e.rangeContainsRange(K,Cn)&&(ct=He(at,le.end,_e,K,oe),ct!==-1&&(oe=ct)),!e.rangeOverlapsWithStartEnd(K,le.pos,le.end))return le.end<K.pos&&D.skipToEndOf(le),oe;if(le.getFullWidth()===0)return oe;for(;D.isOnToken();){var ot=D.readTokenInfo(ke);if(ot.token.end>at)break;pn(ot,ke,yn,ke)}if(!D.isOnToken())return oe;if(e.isToken(le)&&le.kind!==11){var ot=D.readTokenInfo(le);return e.Debug.assert(ot.token.end===le.end,"Token end is child end"),pn(ot,ke,yn,le),oe}var dt=le.kind===156?Bn:dn,Ct=ve(le,Bn,ct,ke,yn,dt);if(j(le,ze,Bn,ut,Ct.indentation,Ct.delta),le.kind===11){var st={pos:le.getStart(),end:le.getEnd()};Le(st,Ct.indentation,!0,!1)}return ze=ke,Rn&&Cn.kind===191&&oe===-1&&(oe=Ct.indentation),oe}function nn(le,oe,Cn,yn){e.Debug.assert(e.isNodeArray(le));var _e=se(oe,le),dn=yn,un=Cn;if(_e!==0)for(;D.isOnToken();){var Rn=D.readTokenInfo(oe);if(Rn.token.end>le.pos)break;if(Rn.token.kind===_e){un=T.getLineAndCharacterOfPosition(Rn.token.pos).line,pn(Rn,oe,yn,oe);var at=void 0;if(ue!==-1)at=ue;else{var Bn=e.getLineStartPositionForPosition(Rn.token.pos,T);at=M.SmartIndenter.findFirstNonWhitespaceColumn(Bn,Rn.token.pos,T,ne)}dn=w(oe,Cn,at,ne.indentSize)}else pn(Rn,oe,yn,oe)}for(var ut=-1,ct=0;ct<le.length;ct++){var ot=le[ct];ut=jn(ot,ut,ke,dn,un,un,!0,ct===0)}var dt=G(_e);if(dt!==0&&D.isOnToken()){var Rn=D.readTokenInfo(oe);Rn.token.kind===27&&e.isCallLikeExpression(oe)&&(D.advance(),Rn=D.isOnToken()?D.readTokenInfo(oe):void 0),Rn&&Rn.token.kind===dt&&e.rangeContainsRange(oe,Rn.token)&&pn(Rn,oe,dn,oe,!0)}}function pn(le,oe,Cn,yn,_e){e.Debug.assert(e.rangeContainsRange(oe,le.token));var dn=D.lastTrailingTriviaWasNewLine(),un=!1;le.leadingTrivia&&a(le.leadingTrivia,oe,ze,Cn);var Rn=0,at=e.rangeContainsRange(K,le.token),Bn=T.getLineAndCharacterOfPosition(le.token.pos);if(at){var ut=k(le.token),ct=pe;if(Rn=Ze(le.token,Bn,oe,ze,Cn),!ut)if(Rn===0){var ot=ct&&T.getLineAndCharacterOfPosition(ct.end).line;un=dn&&Bn.line!==ot}else un=Rn===1}if(le.trailingTrivia&&a(le.trailingTrivia,oe,ze,Cn),un){var dt=at&&!k(le.token)?Cn.getIndentationForToken(Bn.line,le.token.kind,yn,!!_e):-1,Ct=!0;if(le.leadingTrivia){var st=Cn.getIndentationForComment(le.token.kind,dt,yn);Ct=Pe(le.leadingTrivia,st,Ct,function(Kn){return et(Kn.pos,st,!1)})}dt!==-1&&Ct&&(et(le.token.pos,dt,Rn===1),U=Bn.line,ue=dt)}D.advance(),ze=oe}}function Pe(ke,F,c,L){for(var te=0,Se=ke;te<Se.length;te++){var Ne=Se[te],ze=e.rangeContainsRange(K,Ne);switch(Ne.kind){case 3:ze&&Le(Ne,F,!c),c=!1;break;case 2:c&&ze&&L(Ne),c=!1;break;case 4:c=!0;break}}return c}function a(ke,F,c,L){for(var te=0,Se=ke;te<Se.length;te++){var Ne=Se[te];if(e.isComment(Ne.kind)&&e.rangeContainsRange(K,Ne)){var ze=T.getLineAndCharacterOfPosition(Ne.pos);Ze(Ne,ze,F,c,L)}}}function Ze(ke,F,c,L,te){var Se=k(ke),Ne=0;if(!Se)if(pe)Ne=In(ke,F.line,c,pe,v,S,L,te);else{var ze=T.getLineAndCharacterOfPosition(K.pos);Je(ze.line,F.line)}return pe=ke,S=c,v=F.line,Ne}function In(ke,F,c,L,te,Se,Ne,ze){Y.updateContext(L,Se,ke,c,Ne);var Tn=O(Y),wn=!1,jn=0;return Tn?e.forEachRight(Tn,function(nn){jn=ye(nn,L,te,ke,F);switch(jn){case 2:c.getStart(T)===ke.pos&&ze.recomputeIndentation(!1);break;case 1:c.getStart(T)===ke.pos&&ze.recomputeIndentation(!0);break;default:e.Debug.assert(jn===0)}wn=!(nn.action&16)&&nn.flags!==1}):wn=ke.kind!==1,F!==te&&wn&&Je(te,F,L),jn}function et(ke,F,c){var L=R(F,ne);if(c)Qe(ke,0,L);else{var te=T.getLineAndCharacterOfPosition(ke),Se=e.getStartPositionOfLine(te.line,T);(F!==ae(Se,te.character)||fe(L,Se))&&Qe(Se,te.character,L)}}function ae(ke,F){for(var c=0,L=0;L<F;L++)T.text.charCodeAt(ke+L)===9?c+=ne.tabSize-c%ne.tabSize:c++;return c}function fe(ke,F){return ke!==T.text.substr(F,ke.length)}function Le(ke,F,c,L){L===void 0&&(L=!0);var te=T.getLineAndCharacterOfPosition(ke.pos).line,Se=T.getLineAndCharacterOfPosition(ke.end).line;if(te===Se){c||et(ke.pos,F,!1);return}for(var Ne=[],ze=ke.pos,Tn=te;Tn<Se;Tn++){var wn=e.getEndLinePosition(Tn,T);Ne.push({pos:ze,end:wn}),ze=e.getStartPositionOfLine(Tn+1,T)}if(L&&Ne.push({pos:ze,end:ke.end}),Ne.length===0)return;var jn=e.getStartPositionOfLine(te,T),nn=M.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(jn,Ne[0].pos,T,ne);if(F===nn.column)return;var pn=0;c&&(pn=1,te++);for(var le=F-nn.column,oe=pn;oe<Ne.length;oe++,te++){var Cn=e.getStartPositionOfLine(te,T),yn=oe===0?nn:M.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(Ne[oe].pos,Ne[oe].end,T,ne),_e=yn.column+le;if(_e>0){var dn=R(_e,ne);Qe(Cn,yn.character,dn)}else cn(Cn,yn.character)}}function Je(ke,F,c){for(var L=ke;L<F;L++){var te=e.getStartPositionOfLine(L,T),Se=e.getEndLinePosition(L,T);if(c&&(e.isComment(c.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(c.kind))&&c.pos<=Se&&c.end>Se)continue;var Ne=$e(te,Se);Ne!==-1&&(e.Debug.assert(Ne===te||!e.isWhiteSpaceSingleLine(T.text.charCodeAt(Ne-1))),cn(Ne,Se+1-Ne))}}function $e(ke,F){for(var c=F;c>=ke&&e.isWhiteSpaceSingleLine(T.text.charCodeAt(c));)c--;return c!==F?c+1:-1}function Fe(){var ke=pe?pe.end:K.pos,F=T.getLineAndCharacterOfPosition(ke).line,c=T.getLineAndCharacterOfPosition(K.end).line;Je(F,c+1,pe)}function cn(ke,F){F&&De.push(e.createTextChangeFromStartLength(ke,F,""))}function Qe(ke,F,c){(F||c)&&De.push(e.createTextChangeFromStartLength(ke,F,c))}function ln(ke,F){F&&De.push(e.createTextChangeFromStartLength(ke,0,F))}function ye(ke,F,c,L,te){var Se=te!==c;switch(ke.action){case 1:return 0;case 16:if(F.end!==L.pos)return cn(F.end,L.pos-F.end),Se?2:0;break;case 32:cn(F.pos,F.end-F.pos);break;case 8:if(ke.flags!==1&&c!==te)return 0;var Ne=te-c;if(Ne!==1)return Qe(F.end,L.pos-F.end,ne.newLineCharacter),Se?0:1;break;case 4:if(ke.flags!==1&&c!==te)return 0;var ze=L.pos-F.end;if(ze!==1||T.text.charCodeAt(F.end)!==32)return Qe(F.end,L.pos-F.end," "),Se?2:0;break;case 64:ln(F.end,";")}return 0}}var Q;(function(K){K[K.None=0]="None",K[K.LineAdded=1]="LineAdded",K[K.LineRemoved=2]="LineRemoved"})(Q||(Q={}));function z(K,m,_,I){I===void 0&&(I=e.getTokenAtPosition(K,m));var D=e.findAncestor(I,e.isJSDoc);D&&(I=D.parent);var y=I.getStart(K);if(y<=m&&m<I.getEnd())return;_=_===null?void 0:_===void 0?e.findPrecedingToken(m,K):_;var E=_&&e.getTrailingCommentRanges(K.text,_.end),k=e.getLeadingCommentRangesOfNode(I,K),T=e.concatenate(E,k);return T&&e.find(T,function(ne){return e.rangeContainsPositionExclusive(ne,m)||m===ne.end&&(ne.kind===2||m===K.getFullWidth())})}M.getRangeOfEnclosingComment=z;function se(K,m){switch(K.kind){case 161:case 243:case 200:case 160:case 159:case 201:if(K.typeParameters===m)return 29;if(K.parameters===m)return 20;break;case 195:case 196:if(K.typeArguments===m)return 29;if(K.arguments===m)return 20;break;case 168:if(K.typeArguments===m)return 29;break;case 172:return 18}return 0}function G(K){switch(K){case 20:return 21;case 29:return 31;case 18:return 19}return 0}var H,q,be;function R(K,m){var _=!H||H.tabSize!==m.tabSize||H.indentSize!==m.indentSize;if(_&&(H={tabSize:m.tabSize,indentSize:m.indentSize},q=be=void 0),m.convertTabsToSpaces){var E=void 0,k=Math.floor(K/m.indentSize),T=K%m.indentSize;return be||(be=[]),be[k]===void 0?(E=e.repeatString(" ",m.indentSize*k),be[k]=E):E=be[k],T?E+e.repeatString(" ",T):E}else{var I=Math.floor(K/m.tabSize),D=K-I*m.tabSize,y=void 0;return q||(q=[]),q[I]===void 0?q[I]=y=e.repeatString(" ",I):y=q[I],D?y+e.repeatString(" ",D):y}}M.getIndentationString=R})(o=e.formatting||(e.formatting={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe;(function(Ee){var Ge;(function(E){E[E.Unknown=-1]="Unknown"})(Ge||(Ge={}));function Be(E,k,T,ne){if(ne===void 0&&(ne=!1),E>k.text.length)return Oe(T);if(T.indentStyle===e.IndentStyle.None)return 0;var O=e.findPrecedingToken(E,k,void 0,!0),Y=M.getRangeOfEnclosingComment(k,E,O||null);if(Y&&Y.kind===3)return he(k,E,T,Y);if(!O)return Oe(T);var pe=e.isStringOrRegularExpressionOrTemplateLiteral(O.kind);if(pe&&O.getStart(k)<=E&&E<O.end)return 0;var S=k.getLineAndCharacterOfPosition(E).line;if(T.indentStyle===e.IndentStyle.Block)return ee(k,E,T);if(O.kind===27&&O.parent.kind!==208){var v=ie(O,k,T);if(v!==-1)return v}var U=z(E,O.parent,k);return U&&!e.rangeContainsRange(U,O)?H(U,k,T)+T.indentSize:f(k,E,O,S,ne,T)}Ee.getIndentation=Be;function he(E,k,T,ne){var O=e.getLineAndCharacterOfPosition(E,k).line-1,Y=e.getLineAndCharacterOfPosition(E,ne.pos).line;if(e.Debug.assert(Y>=0),O<=Y)return m(e.getStartPositionOfLine(Y,E),k,E,T);var pe=e.getStartPositionOfLine(O,E),S=K(pe,k,E,T),v=S.column,U=S.character;if(v===0)return v;var ue=E.text.charCodeAt(pe+U);return ue===42?v-1:v}function ee(E,k,T){for(var ne=k;ne>0;){var O=E.text.charCodeAt(ne);if(!e.isWhiteSpaceLike(O))break;ne--}var Y=e.getLineStartPositionForPosition(ne,E);return m(Y,ne,E,T)}function f(E,k,T,ne,O,Y){for(var pe,S=T;S;){if(e.positionBelongsToNode(S,k,E)&&D(Y,S,pe,E,!0)){var v=P(S,E),U=C(T,S,ne,E),ue=U!==0?O&&U===2?Y.indentSize:0:ne!==v.line?Y.indentSize:0;return N(S,v,void 0,ue,E,!0,Y)}var De=q(S,E,Y,!0);if(De!==-1)return De;pe=S,S=S.parent}return Oe(Y)}function J(E,k,T,ne){var O=T.getLineAndCharacterOfPosition(E.getStart(T));return N(E,O,k,0,T,!1,ne)}Ee.getIndentationForNode=J;function Oe(E){return E.baseIndentSize||0}Ee.getBaseIndentation=Oe;function N(E,k,T,ne,O,Y,pe){for(var S=E.parent;S;){var v=!0;if(T){var U=E.getStart(O);v=U<T.pos||U>T.end}var ue=Te(S,E,O),De=ue.line===k.line||X(S,E,k.line,O);if(v){var Z=q(E,O,pe,!De);if(Z!==-1)return Z+ne;if(Z=ce(E,S,k,De,O,pe),Z!==-1)return Z+ne}D(pe,S,E,O,Y)&&!De&&(ne+=pe.indentSize);var Re=h(S,E,k.line,O);E=S,S=E.parent,k=Re?O.getLineAndCharacterOfPosition(E.getStart(O)):ue}return ne+Oe(pe)}function Te(E,k,T){var ne=Q(k,T),O=ne?ne.pos:E.getStart(T);return T.getLineAndCharacterOfPosition(O)}function ie(E,k,T){var ne=e.findListItemInfo(E);return ne&&ne.listItemIndex>0?be(ne.list.getChildren(),ne.listItemIndex-1,k,T):-1}function ce(E,k,T,ne,O,Y){var pe=(e.isDeclaration(E)||e.isStatementButNotDeclaration(E))&&(k.kind===288||!ne);return pe?R(T,O,Y):-1}var x;(function(E){E[E.Unknown=0]="Unknown",E[E.OpenBrace=1]="OpenBrace",E[E.CloseBrace=2]="CloseBrace"})(x||(x={}));function C(E,k,T,ne){var O=e.findNextToken(E,k,ne);if(!O)return 0;if(O.kind===18)return 1;if(O.kind===19){var Y=P(O,ne).line;return T===Y?2:0}return 0}function P(E,k){return k.getLineAndCharacterOfPosition(E.getStart(k))}function h(E,k,T,ne){if(!(e.isCallExpression(E)&&e.contains(E.arguments,k)))return!1;var O=E.expression.getEnd(),Y=e.getLineAndCharacterOfPosition(ne,O).line;return Y===T}Ee.isArgumentAndStartLineOverlapsExpressionBeingCalled=h;function X(E,k,T,ne){if(E.kind===226&&E.elseStatement===k){var O=e.findChildOfKind(E,86,ne);e.Debug.assert(O!==void 0);var Y=P(O,ne).line;return Y===T}return!1}Ee.childStartsOnTheSameLineWithElseInIfStatement=X;function $(E,k,T,ne){if(e.isCallOrNewExpression(E)){if(!E.arguments)return!1;var O=e.find(E.arguments,function(v){return v.pos===k.pos});if(!O)return!1;var Y=E.arguments.indexOf(O);if(Y===0)return!1;var pe=E.arguments[Y-1],S=e.getLineAndCharacterOfPosition(ne,pe.getEnd()).line;if(T===S)return!0}return!1}Ee.argumentStartsOnSameLineAsPreviousArgument=$;function Q(E,k){return E.parent&&se(E.getStart(k),E.getEnd(),E.parent,k)}Ee.getContainingList=Q;function z(E,k,T){return k&&se(E,E,k,T)}function se(E,k,T,ne){switch(T.kind){case 168:return O(T.typeArguments);case 192:return O(T.properties);case 191:return O(T.elements);case 172:return O(T.members);case 243:case 200:case 201:case 160:case 159:case 164:case 161:case 170:case 165:return O(T.typeParameters)||O(T.parameters);case 244:case 213:case 245:case 246:case 314:return O(T.typeParameters);case 196:case 195:return O(T.typeArguments)||O(T.arguments);case 242:return O(T.declarations);case 256:case 260:return O(T.elements);case 188:case 189:return O(T.elements)}function O(Y){return Y&&e.rangeContainsStartEnd(G(T,Y,ne),E,k)?Y:void 0}}function G(E,k,T){for(var ne=E.getChildren(T),O=1;O<ne.length-1;O++)if(ne[O].pos===k.pos&&ne[O].end===k.end)return{pos:ne[O-1].end,end:ne[O+1].getStart(T)};return k}function H(E,k,T){return E?R(k.getLineAndCharacterOfPosition(E.pos),k,T):-1}function q(E,k,T,ne){if(E.parent&&E.parent.kind===242)return-1;var O=Q(E,k);if(O){var Y=O.indexOf(E);if(Y!==-1){var pe=be(O,Y,k,T);if(pe!==-1)return pe}return H(O,k,T)+(ne?T.indentSize:0)}return-1}function be(E,k,T,ne){e.Debug.assert(k>=0&&k<E.length);for(var O=E[k],Y=P(O,T),pe=k-1;pe>=0;pe--){if(E[pe].kind===27)continue;var S=T.getLineAndCharacterOfPosition(E[pe].end).line;if(S!==Y.line)return R(Y,T,ne);Y=P(E[pe],T)}return-1}function R(E,k,T){var ne=k.getPositionOfLineAndCharacter(E.line,0);return m(ne,ne+E.character,k,T)}function K(E,k,T,ne){for(var O=0,Y=0,pe=E;pe<k;pe++){var S=T.text.charCodeAt(pe);if(!e.isWhiteSpaceSingleLine(S))break;S===9?Y+=ne.tabSize+Y%ne.tabSize:Y++,O++}return{column:Y,character:O}}Ee.findFirstNonWhitespaceCharacterAndColumn=K;function m(E,k,T,ne){return K(E,k,T,ne).column}Ee.findFirstNonWhitespaceColumn=m;function _(E,k,T,ne,O){var Y=T?T.kind:0;switch(k.kind){case 225:case 244:case 213:case 245:case 247:case 246:case 191:case 222:case 249:case 192:case 172:case 185:case 174:case 250:case 276:case 275:case 199:case 193:case 195:case 196:case 224:case 258:case 234:case 209:case 189:case 188:case 266:case 269:case 265:case 274:case 159:case 164:case 165:case 155:case 169:case 170:case 181:case 197:case 205:case 260:case 256:case 261:case 257:case 158:return!0;case 241:case 279:case 208:if(!E.indentMultiLineObjectLiteralBeginningOnBlankLine&&ne&&Y===192)return y(ne,T);if(k.kind!==208)return!0;break;case 227:case 228:case 230:case 231:case 229:case 226:case 243:case 200:case 160:case 201:case 161:case 162:case 163:return Y!==222;case 259:return Y!==260;case 253:return Y!==254||!!T.namedBindings&&T.namedBindings.kind!==256;case 264:return Y!==267;case 268:return Y!==270;case 178:case 177:if(Y===172)return!1}return O}Ee.nodeWillIndentChild=_;function I(E,k){switch(E){case 234:case 238:case 232:case 233:return k.kind!==222;default:return!1}}function D(E,k,T,ne,O){return O===void 0&&(O=!1),_(E,k,T,ne,!1)&&!(O&&T&&I(T.kind,k))}Ee.shouldIndentChildNode=D;function y(E,k){var T=e.skipTrivia(E.text,k.pos),ne=E.getLineAndCharacterOfPosition(T).line,O=E.getLineAndCharacterOfPosition(k.end).line;return ne===O}})(qe=M.SmartIndenter||(M.SmartIndenter={}))})(o=e.formatting||(e.formatting={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){function qe(E){var k=E.__pos;return e.Debug.assert(typeof k=="number"),k}function Ee(E,k){e.Debug.assert(typeof k=="number"),E.__pos=k}function Ge(E){var k=E.__end;return e.Debug.assert(typeof k=="number"),k}function Be(E,k){e.Debug.assert(typeof k=="number"),E.__end=k}var he;(function(E){E[E.Exclude=0]="Exclude",E[E.IncludeAll=1]="IncludeAll"})(he=M.LeadingTriviaOption||(M.LeadingTriviaOption={}));var ee;(function(E){E[E.Exclude=0]="Exclude",E[E.Include=1]="Include"})(ee=M.TrailingTriviaOption||(M.TrailingTriviaOption={}));function f(E,k){return e.skipTrivia(E,k,!1,!0)}function J(E,k){for(var T=k;T<E.length;){var ne=E.charCodeAt(T);if(e.isWhiteSpaceSingleLine(ne)){T++;continue}return ne===47}return!1}var Oe={leadingTriviaOption:he.Exclude,trailingTriviaOption:ee.Exclude},N;(function(E){E[E.Remove=0]="Remove",E[E.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",E[E.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",E[E.Text=3]="Text"})(N||(N={}));function Te(E,k,T,ne){return{pos:ie(E,k,ne),end:ce(E,T,ne)}}function ie(E,k,T){var ne=T.leadingTriviaOption;if(ne===he.Exclude)return k.getStart(E);var O=k.getFullStart(),Y=k.getStart(E);if(O===Y)return Y;var pe=e.getLineStartPositionForPosition(O,E),S=e.getLineStartPositionForPosition(Y,E);if(S===pe)return ne===he.IncludeAll?O:Y;var v=O>0?1:0,U=e.getStartPositionOfLine(e.getLineOfLocalPosition(E,pe)+v,E);return U=f(E.text,U),e.getStartPositionOfLine(e.getLineOfLocalPosition(E,U),E)}function ce(E,k,T){var ne=k.end,O=T.trailingTriviaOption;if(O===ee.Exclude||e.isExpression(k)&&O!==ee.Include)return ne;var Y=e.skipTrivia(E.text,ne,!0);return Y!==ne&&(O===ee.Include||e.isLineBreak(E.text.charCodeAt(Y-1)))?Y:ne}function x(E,k){return!!k&&!!E.parent&&(k.kind===27||k.kind===26&&E.parent.kind===192)}function C(E){for(var k="",T=0;T<E;T++)k+=" ";return k}function P(E){return e.isFunctionExpression(E)||e.isFunctionDeclaration(E)}M.isThisTypeAnnotatable=P;var h=function(){function E(k,T){this.newLineCharacter=k,this.formatContext=T,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=e.createMap(),this.deletedNodes=[]}return E.fromContext=function(k){return new E(e.getNewLineOrDefaultFromHost(k.host,k.formatContext.options),k.formatContext)},E.with=function(k,T){var ne=E.fromContext(k);return T(ne),ne.getChanges()},E.prototype.pushRaw=function(k,T){e.Debug.assertEqual(k.fileName,T.fileName);for(var ne=0,O=T.textChanges;ne<O.length;ne++){var Y=O[ne];this.changes.push({kind:N.Text,sourceFile:k,text:Y.newText,range:e.createTextRangeFromSpan(Y.span)})}},E.prototype.deleteRange=function(k,T){this.changes.push({kind:N.Remove,sourceFile:k,range:T})},E.prototype.delete=function(k,T){this.deletedNodes.push({sourceFile:k,node:T})},E.prototype.deleteModifier=function(k,T){this.deleteRange(k,{pos:T.getStart(k),end:e.skipTrivia(k.text,T.end,!0)})},E.prototype.deleteNodeRange=function(k,T,ne,O){O===void 0&&(O={leadingTriviaOption:he.IncludeAll});var Y=ie(k,T,O),pe=ce(k,ne,O);this.deleteRange(k,{pos:Y,end:pe})},E.prototype.deleteNodeRangeExcludingEnd=function(k,T,ne,O){O===void 0&&(O={leadingTriviaOption:he.IncludeAll});var Y=ie(k,T,O),pe=ne===void 0?k.text.length:ie(k,ne,O);this.deleteRange(k,{pos:Y,end:pe})},E.prototype.replaceRange=function(k,T,ne,O){O===void 0&&(O={}),this.changes.push({kind:N.ReplaceWithSingleNode,sourceFile:k,range:T,options:O,node:ne})},E.prototype.replaceNode=function(k,T,ne,O){O===void 0&&(O=Oe),this.replaceRange(k,Te(k,T,T,O),ne,O)},E.prototype.replaceNodeRange=function(k,T,ne,O,Y){Y===void 0&&(Y=Oe),this.replaceRange(k,Te(k,T,ne,Y),O,Y)},E.prototype.replaceRangeWithNodes=function(k,T,ne,O){O===void 0&&(O={}),this.changes.push({kind:N.ReplaceWithMultipleNodes,sourceFile:k,range:T,options:O,nodes:ne})},E.prototype.replaceNodeWithNodes=function(k,T,ne,O){O===void 0&&(O=Oe),this.replaceRangeWithNodes(k,Te(k,T,T,O),ne,O)},E.prototype.replaceNodeWithText=function(k,T,ne){this.replaceRangeWithText(k,Te(k,T,T,Oe),ne)},E.prototype.replaceNodeRangeWithNodes=function(k,T,ne,O,Y){Y===void 0&&(Y=Oe),this.replaceRangeWithNodes(k,Te(k,T,ne,Y),O,Y)},E.prototype.nextCommaToken=function(k,T){var ne=e.findNextToken(T,T.parent,k);return ne&&ne.kind===27?ne:void 0},E.prototype.replacePropertyAssignment=function(k,T,ne){var O=this.nextCommaToken(k,T)?"":","+this.newLineCharacter;this.replaceNode(k,T,ne,{suffix:O})},E.prototype.insertNodeAt=function(k,T,ne,O){O===void 0&&(O={}),this.replaceRange(k,e.createRange(T),ne,O)},E.prototype.insertNodesAt=function(k,T,ne,O){O===void 0&&(O={}),this.replaceRangeWithNodes(k,e.createRange(T),ne,O)},E.prototype.insertNodeAtTopOfFile=function(k,T,ne){var O=K(k);this.insertNodeAt(k,O,T,{prefix:O===0?void 0:this.newLineCharacter,suffix:(e.isLineBreak(k.text.charCodeAt(O))?"":this.newLineCharacter)+(ne?this.newLineCharacter:"")})},E.prototype.insertNodeBefore=function(k,T,ne,O){O===void 0&&(O=!1),this.insertNodeAt(k,ie(k,T,{}),ne,this.getOptionsForInsertNodeBefore(T,O))},E.prototype.insertModifierBefore=function(k,T,ne){var O=ne.getStart(k);this.insertNodeAt(k,O,e.createToken(T),{suffix:" "})},E.prototype.insertLastModifierBefore=function(k,T,ne){if(!ne.modifiers){this.insertModifierBefore(k,T,ne);return}var O=ne.modifiers.end;this.insertNodeAt(k,O,e.createToken(T),{prefix:" "})},E.prototype.insertCommentBeforeLine=function(k,T,ne,O){var Y=e.getStartPositionOfLine(T,k),pe=e.getFirstNonSpaceCharacterPosition(k.text,Y),S=m(k,pe),v=e.getTouchingToken(k,S?pe:ne),U=k.text.slice(Y,pe),ue=(S?"":this.newLineCharacter)+"//"+O+this.newLineCharacter+U;this.insertText(k,v.getStart(k),ue)},E.prototype.insertJsdocCommentBefore=function(k,T,ne){var O=T.getStart(k);if(T.jsDoc)for(var Y=0,pe=T.jsDoc;Y<pe.length;Y++){var S=pe[Y];this.deleteRange(k,{pos:e.getLineStartPositionForPosition(S.getStart(k),k),end:ce(k,S,{})})}var v=e.getPrecedingNonSpaceCharacterPosition(k.text,O-1),U=k.text.slice(v,O);this.insertNodeAt(k,O,ne,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+U})},E.prototype.replaceRangeWithText=function(k,T,ne){this.changes.push({kind:N.Text,sourceFile:k,range:T,text:ne})},E.prototype.insertText=function(k,T,ne){this.replaceRangeWithText(k,e.createRange(T),ne)},E.prototype.tryInsertTypeAnnotation=function(k,T,ne){var O;if(e.isFunctionLike(T)){if(O=e.findChildOfKind(T,21,k),!O){if(!e.isArrowFunction(T))return!1;O=e.first(T.parameters)}}else O=T.kind!==241&&T.questionToken?T.questionToken:T.name;return this.insertNodeAt(k,O.end,ne,{prefix:": "}),!0},E.prototype.tryInsertThisTypeAnnotation=function(k,T,ne){var O=e.findChildOfKind(T,20,k).getStart(k)+1,Y=T.parameters.length?", ":"";this.insertNodeAt(k,O,ne,{prefix:"this: ",suffix:Y})},E.prototype.insertTypeParameters=function(k,T,ne){var O=(e.findChildOfKind(T,20,k)||e.first(T.parameters)).getStart(k);this.insertNodesAt(k,O,ne,{prefix:"<",suffix:">"})},E.prototype.getOptionsForInsertNodeBefore=function(k,T){return e.isStatement(k)||e.isClassElement(k)?{suffix:T?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(k)?{suffix:", "}:e.isParameter(k)?{}:e.isStringLiteral(k)&&e.isImportDeclaration(k.parent)||e.isNamedImports(k)?{suffix:", "}:e.Debug.failBadSyntaxKind(k)},E.prototype.insertNodeAtConstructorStart=function(k,T,ne){var O=e.firstOrUndefined(T.body.statements);!O||!T.body.multiLine?this.replaceConstructorBody(k,T,Tr([ne],T.body.statements)):this.insertNodeBefore(k,O,ne)},E.prototype.insertNodeAtConstructorEnd=function(k,T,ne){var O=e.lastOrUndefined(T.body.statements);!O||!T.body.multiLine?this.replaceConstructorBody(k,T,Tr(T.body.statements,[ne])):this.insertNodeAfter(k,O,ne)},E.prototype.replaceConstructorBody=function(k,T,ne){this.replaceNode(k,T.body,e.createBlock(ne,!0))},E.prototype.insertNodeAtEndOfScope=function(k,T,ne){var O=ie(k,T.getLastToken(),{});this.insertNodeAt(k,O,ne,{prefix:e.isLineBreak(k.text.charCodeAt(T.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},E.prototype.insertNodeAtClassStart=function(k,T,ne){this.insertNodeAtStartWorker(k,T,ne)},E.prototype.insertNodeAtObjectStart=function(k,T,ne){this.insertNodeAtStartWorker(k,T,ne)},E.prototype.insertNodeAtStartWorker=function(k,T,ne){var O=T.getStart(k),Y=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(O,k),O,k,this.formatContext.options)+this.formatContext.options.indentSize;this.insertNodeAt(k,Q(T).pos,ne,Rr({indentation:Y},this.getInsertNodeAtStartPrefixSuffix(k,T)))},E.prototype.getInsertNodeAtStartPrefixSuffix=function(k,T){var ne=e.isObjectLiteralExpression(T)?",":"";if(Q(T).length===0)if(e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(T),{node:T,sourceFile:k})){var O=e.positionsAreOnSameLine.apply(void 0,Tr($(T,k),[k]));return{prefix:this.newLineCharacter,suffix:ne+(O?this.newLineCharacter:"")}}else return{prefix:"",suffix:ne+this.newLineCharacter};else return{prefix:this.newLineCharacter,suffix:ne}},E.prototype.insertNodeAfterComma=function(k,T,ne){var O=this.insertNodeAfterWorker(k,this.nextCommaToken(k,T)||T,ne);this.insertNodeAt(k,O,ne,this.getInsertNodeAfterOptions(k,T))},E.prototype.insertNodeAfter=function(k,T,ne){var O=this.insertNodeAfterWorker(k,T,ne);this.insertNodeAt(k,O,ne,this.getInsertNodeAfterOptions(k,T))},E.prototype.insertNodeAtEndOfList=function(k,T,ne){this.insertNodeAt(k,T.end,ne,{prefix:", "})},E.prototype.insertNodesAfter=function(k,T,ne){var O=this.insertNodeAfterWorker(k,T,e.first(ne));this.insertNodesAt(k,O,ne,this.getInsertNodeAfterOptions(k,T))},E.prototype.insertNodeAfterWorker=function(k,T,ne){_(T,ne)&&(k.text.charCodeAt(T.end-1)!==59&&this.replaceRange(k,e.createRange(T.end),e.createToken(26)));var O=ce(k,T,{});return O},E.prototype.getInsertNodeAfterOptions=function(k,T){var ne=this.getInsertNodeAfterOptionsWorker(T);return Rr(Rr({},ne),{prefix:T.end===k.end&&e.isStatement(T)?ne.prefix?`
|
|
|
`+ne.prefix:`
|
|
|
`:ne.prefix})},E.prototype.getInsertNodeAfterOptionsWorker=function(k){switch(k.kind){case 244:case 248:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 241:case 10:case 75:return{prefix:", "};case 279:return{suffix:","+this.newLineCharacter};case 88:return{prefix:" "};case 155:return{};default:return e.Debug.assert(e.isStatement(k)||e.isClassOrTypeElement(k)),{suffix:this.newLineCharacter}}},E.prototype.insertName=function(k,T,ne){if(e.Debug.assert(!T.name),T.kind===201){var O=e.findChildOfKind(T,38,k),Y=e.findChildOfKind(T,20,k);Y?(this.insertNodesAt(k,Y.getStart(k),[e.createToken(93),e.createIdentifier(ne)],{joiner:" "}),D(this,k,O)):(this.insertText(k,e.first(T.parameters).getStart(k),"function "+ne+"("),this.replaceRange(k,O,e.createToken(21))),T.body.kind!==222&&(this.insertNodesAt(k,T.body.getStart(k),[e.createToken(18),e.createToken(100)],{joiner:" ",suffix:" "}),this.insertNodesAt(k,T.body.end,[e.createToken(26),e.createToken(19)],{joiner:" "}))}else{var pe=e.findChildOfKind(T,T.kind===200?93:79,k).end;this.insertNodeAt(k,pe,e.createIdentifier(ne),{prefix:" "})}},E.prototype.insertExportModifier=function(k,T){this.insertText(k,T.getStart(k),"export ")},E.prototype.insertNodeInListAfter=function(k,T,ne,O){if(O===void 0&&(O=e.formatting.SmartIndenter.getContainingList(T,k)),!O){e.Debug.fail("node is not a list element");return}var Y=e.indexOfNode(O,T);if(Y<0)return;var pe=T.getEnd();if(Y!==O.length-1){var S=e.getTokenAtPosition(k,T.end);if(S&&x(T,S)){var v=e.getLineAndCharacterOfPosition(k,f(k.text,O[Y+1].getFullStart())),U=e.getLineAndCharacterOfPosition(k,S.end),ue=void 0,De=void 0;U.line===v.line?(De=S.end,ue=C(v.character-U.character)):De=e.getStartPositionOfLine(v.line,k);var Z=""+e.tokenToString(S.kind)+k.text.substring(S.end,O[Y+1].getStart(k));this.replaceRange(k,e.createRange(De,O[Y+1].getStart(k)),ne,{prefix:ue,suffix:Z})}}else{var Re=T.getStart(k),we=e.getLineStartPositionForPosition(Re,k),He=void 0,ve=!1;if(O.length===1)He=27;else{var je=e.findPrecedingToken(T.pos,k);He=x(T,je)?je.kind:27;var w=e.getLineStartPositionForPosition(O[Y-1].getStart(k),k);ve=w!==we}if(J(k.text,T.end)&&(ve=!0),ve){this.replaceRange(k,e.createRange(pe),e.createToken(He));var j=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(we,Re,k,this.formatContext.options),Pe=e.skipTrivia(k.text,pe,!0,!1);Pe!==pe&&e.isLineBreak(k.text.charCodeAt(Pe-1))&&Pe--,this.replaceRange(k,e.createRange(Pe),ne,{indentation:j,prefix:this.newLineCharacter})}else this.replaceRange(k,e.createRange(pe),ne,{prefix:e.tokenToString(He)+" "})}},E.prototype.parenthesizeExpression=function(k,T){this.replaceRange(k,e.rangeOfNode(T),e.createParen(T))},E.prototype.finishClassesWithNodesInsertedAtStart=function(){var k=this;this.classesWithNodesInsertedAtStart.forEach(function(T){var ne=T.node,O=T.sourceFile,Y=$(ne,O),pe=Y[0],S=Y[1];e.positionsAreOnSameLine(pe,S,O)&&pe!==S-1&&k.deleteRange(O,e.createRange(pe,S-1))})},E.prototype.finishDeleteDeclarations=function(){for(var k=this,T=new e.NodeSet,ne=function(ue,De){O.deletedNodes.some(function(Z){return Z.sourceFile===ue&&e.rangeContainsRangeExclusive(Z.node,De)})||(e.isArray(De)?O.deleteRange(ue,e.rangeOfTypeParameters(De)):I.deleteDeclaration(O,T,ue,De))},O=this,Y=0,pe=this.deletedNodes;Y<pe.length;Y++){var S=pe[Y],v=S.sourceFile,U=S.node;ne(v,U)}T.forEach(function(ue){var De=ue.getSourceFile(),Z=e.formatting.SmartIndenter.getContainingList(ue,De);if(ue!==e.last(Z))return;var Re=e.findLastIndex(Z,function(we){return!T.has(we)},Z.length-2);Re!==-1&&k.deleteRange(De,{pos:Z[Re].end,end:X(De,Z[Re+1])})})},E.prototype.getChanges=function(k){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var T=se.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,k),ne=0,O=this.newFiles;ne<O.length;ne++){var Y=O[ne],pe=Y.oldFile,S=Y.fileName,v=Y.statements;T.push(se.newFileChanges(pe,S,v,this.newLineCharacter,this.formatContext))}return T},E.prototype.createNewFile=function(k,T,ne){this.newFiles.push({oldFile:k,fileName:T,statements:ne})},E}();M.ChangeTracker=h;function X(E,k){return e.skipTrivia(E.text,ie(E,k,{leadingTriviaOption:he.IncludeAll}),!1,!0)}function $(E,k){return[e.findChildOfKind(E,18,k).end,e.findChildOfKind(E,19,k).end]}function Q(E){return e.isObjectLiteralExpression(E)?E.properties:E.members}function z(E,k,T,ne){return se.newFileChangesWorker(void 0,k,E,T,ne)}M.getNewFileText=z;var se;(function(E){function k(v,U,ue,De){return e.group(v,function(Z){return Z.sourceFile.path}).map(function(Z){for(var Re=Z[0].sourceFile,we=e.stableSort(Z,function(w,j){return w.range.pos-j.range.pos||w.range.end-j.range.end}),He=function(w){e.Debug.assert(we[w].range.end<=we[w+1].range.pos,"Changes overlap",function(){return JSON.stringify(we[w].range)+" and "+JSON.stringify(we[w+1].range)})},ve=0;ve<we.length-1;ve++)He(ve);var je=we.map(function(w){return e.createTextChange(e.createTextSpanFromRange(w.range),O(w,Re,U,ue,De))});return{fileName:Re.fileName,textChanges:je}})}E.getTextChangesFromChanges=k;function T(v,U,ue,De,Z){var Re=ne(v,e.getScriptKindFromFileName(U),ue,De,Z);return{fileName:U,textChanges:[e.createTextChange(e.createTextSpan(0,0),Re)],isNewFile:!0}}E.newFileChanges=T;function ne(v,U,ue,De,Z){var Re=ue.map(function(ve){return S(ve,v,De).text}).join(De),we=e.createSourceFile("any file name",Re,99,!0,U),He=e.formatting.formatDocument(we,Z);return G(Re,He)+De}E.newFileChangesWorker=ne;function O(v,U,ue,De,Z){if(v.kind===N.Remove)return"";if(v.kind===N.Text)return v.text;var Re=v.options,we=Re===void 0?{}:Re,He=v.range.pos,ve=function(j){return pe(j,U,He,we,ue,De,Z)},je=v.kind===N.ReplaceWithMultipleNodes?v.nodes.map(function(j){return e.removeSuffix(ve(j),ue)}).join(v.options.joiner||ue):ve(v.node),w=we.preserveLeadingWhitespace||we.indentation!==void 0||e.getLineStartPositionForPosition(He,U)===He?je:je.replace(/^\s+/,"");return(we.prefix||"")+w+(we.suffix||"")}function Y(v,U){var ue=v.options,De=!ue.semicolons||ue.semicolons===e.SemicolonPreference.Ignore,Z=ue.semicolons===e.SemicolonPreference.Remove||De&&!e.probablyUsesSemicolons(U);return Rr(Rr({},ue),{semicolons:Z?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}function pe(v,U,ue,De,Z,Re,we){var He=De.indentation,ve=De.prefix,je=De.delta,w=S(v,U,Z),j=w.node,Pe=w.text;we&&we(j,Pe);var a=Y(Re,U),Ze=He!==void 0?He:e.formatting.SmartIndenter.getIndentation(ue,U,a,ve===Z||e.getLineStartPositionForPosition(ue,U)===ue);je===void 0&&(je=e.formatting.SmartIndenter.shouldIndentChildNode(a,v)&&a.indentSize||0);var In={text:Pe,getLineAndCharacterOfPosition:function(ae){return e.getLineAndCharacterOfPosition(this,ae)}},et=e.formatting.formatNodeGivenIndentation(j,In,U.languageVariant,Ze,je,Rr(Rr({},Re),{options:a}));return G(Pe,et)}function S(v,U,ue){var De=R(ue),Z=ue===`
|
|
|
`?1:0;return e.createPrinter({newLine:Z,neverAsciiEscape:!0},De).writeNode(4,v,U,De),{text:De.getText(),node:q(v)}}E.getNonformattedText=S})(se||(se={}));function G(E,k){for(var T=k.length-1;T>=0;T--){var ne=k[T],O=ne.span,Y=ne.newText;E=""+E.substring(0,O.start)+Y+E.substring(e.textSpanEnd(O))}return E}M.applyChanges=G;function H(E){return e.skipTrivia(E,0)===E.length}function q(E){var k=e.visitEachChild(E,q,e.nullTransformationContext,be,q),T=e.nodeIsSynthesized(k)?k:Object.create(k);return T.pos=qe(E),T.end=Ge(E),T}function be(E,k,T,ne,O){var Y=e.visitNodes(E,k,T,ne,O);if(!Y)return Y;var pe=Y===E?e.createNodeArray(Y.slice(0)):Y;return pe.pos=qe(E),pe.end=Ge(E),pe}function R(E){var k=0,T=e.createTextWriter(E),ne=function(Qe,ln,ye){ln&&Ee(ln,k),ye(Qe,ln),ln&&Be(ln,k)},O=function(Qe){Qe&&Ee(Qe,k)},Y=function(Qe){Qe&&Be(Qe,k)},pe=function(Qe){Qe&&Ee(Qe,k)},S=function(Qe){Qe&&Be(Qe,k)};function v(Qe,ln){if(ln||!H(Qe)){k=T.getTextPos();for(var ye=0;e.isWhiteSpaceLike(Qe.charCodeAt(Qe.length-ye-1));)ye++;k-=ye}}function U(Qe){T.write(Qe),v(Qe,!1)}function ue(Qe){T.writeComment(Qe)}function De(Qe){T.writeKeyword(Qe),v(Qe,!1)}function Z(Qe){T.writeOperator(Qe),v(Qe,!1)}function Re(Qe){T.writePunctuation(Qe),v(Qe,!1)}function we(Qe){T.writeTrailingSemicolon(Qe),v(Qe,!1)}function He(Qe){T.writeParameter(Qe),v(Qe,!1)}function ve(Qe){T.writeProperty(Qe),v(Qe,!1)}function je(Qe){T.writeSpace(Qe),v(Qe,!1)}function w(Qe){T.writeStringLiteral(Qe),v(Qe,!1)}function j(Qe,ln){T.writeSymbol(Qe,ln),v(Qe,!1)}function Pe(){T.writeLine()}function a(){T.increaseIndent()}function Ze(){T.decreaseIndent()}function In(){return T.getText()}function et(Qe){T.rawWrite(Qe),v(Qe,!1)}function ae(Qe){T.writeLiteral(Qe),v(Qe,!0)}function fe(){return T.getTextPos()}function Le(){return T.getLine()}function Je(){return T.getColumn()}function $e(){return T.getIndent()}function Fe(){return T.isAtStartOfLine()}function cn(){T.clear(),k=0}return{onEmitNode:ne,onBeforeEmitNodeArray:O,onAfterEmitNodeArray:Y,onBeforeEmitToken:pe,onAfterEmitToken:S,write:U,writeComment:ue,writeKeyword:De,writeOperator:Z,writePunctuation:Re,writeTrailingSemicolon:we,writeParameter:He,writeProperty:ve,writeSpace:je,writeStringLiteral:w,writeSymbol:j,writeLine:Pe,increaseIndent:a,decreaseIndent:Ze,getText:In,rawWrite:et,writeLiteral:ae,getTextPos:fe,getLine:Le,getColumn:Je,getIndent:$e,isAtStartOfLine:Fe,hasTrailingComment:function(){return T.hasTrailingComment()},hasTrailingWhitespace:function(){return T.hasTrailingWhitespace()},clear:cn}}function K(E){for(var k,T=0,ne=E.statements;T<ne.length;T++){var O=ne[T];if(e.isPrologueDirective(O))k=O;else break}var Y=0,pe=E.text;if(k)return Y=k.end,Z(),Y;var S=e.getShebang(pe);S!==void 0&&(Y=S.length,Z());var v=e.getLeadingCommentRanges(pe,Y);if(!v)return Y;v.length&&v[0].kind===3&&e.isPinnedComment(pe,v[0].pos)&&(Y=v[0].end,Z(),v=v.slice(1));for(var U=0,ue=v;U<ue.length;U++){var De=ue[U];if(De.kind===2&&e.isRecognizedTripleSlashComment(pe,De.pos,De.end)){Y=De.end,Z();continue}break}return Y;function Z(){if(Y<pe.length){var Re=pe.charCodeAt(Y);e.isLineBreak(Re)&&(Y++,Y<pe.length&&Re===13&&pe.charCodeAt(Y)===10&&Y++)}}}function m(E,k){return!e.isInComment(E,k)&&!e.isInString(E,k)&&!e.isInTemplateString(E,k)&&!e.isInJSXText(E,k)}M.isValidLocationToAddComment=m;function _(E,k){return(e.isPropertySignature(E)||e.isPropertyDeclaration(E))&&e.isClassOrTypeElement(k)&&k.name.kind===153||e.isStatementButNotDeclaration(E)&&e.isStatementButNotDeclaration(k)}var I;(function(E){function k(Y,pe,S,v){switch(v.kind){case 155:{var U=v.parent;e.isArrowFunction(U)&&U.parameters.length===1&&!e.findChildOfKind(U,20,S)?Y.replaceNodeWithText(S,v,"()"):y(Y,pe,S,v);break}case 253:D(Y,S,v,v===S.imports[0].parent?{leadingTriviaOption:he.Exclude}:void 0);break;case 190:var ue=v.parent,De=ue.kind===189&&v!==e.last(ue.elements);De?D(Y,S,v):y(Y,pe,S,v);break;case 241:O(Y,pe,S,v);break;case 154:y(Y,pe,S,v);break;case 257:var Z=v.parent;Z.elements.length===1?ne(Y,S,Z):y(Y,pe,S,v);break;case 255:ne(Y,S,v);break;default:e.isImportClause(v.parent)&&v.parent.name===v?T(Y,S,v.parent):e.isCallLikeExpression(v.parent)?y(Y,pe,S,v):D(Y,S,v,v.kind===26?{trailingTriviaOption:ee.Exclude}:void 0)}}E.deleteDeclaration=k;function T(Y,pe,S){if(!S.namedBindings)D(Y,pe,S.parent);else{var v=S.name.getStart(pe),U=e.getTokenAtPosition(pe,S.name.end);if(U&&U.kind===27){var ue=e.skipTrivia(pe.text,U.end,!1,!0);Y.deleteRange(pe,{pos:v,end:ue})}else D(Y,pe,S.name)}}function ne(Y,pe,S){if(S.parent.name){var v=e.Debug.assertDefined(e.getTokenAtPosition(pe,S.pos-1));Y.deleteRange(pe,{pos:v.getStart(pe),end:S.end})}else{var U=e.getAncestor(S,253);D(Y,pe,U)}}function O(Y,pe,S,v){var U=v.parent;if(U.kind===278){Y.deleteNodeRange(S,e.findChildOfKind(U,20,S),e.findChildOfKind(U,21,S));return}if(U.declarations.length!==1){y(Y,pe,S,v);return}var ue=U.parent;switch(ue.kind){case 231:case 230:Y.replaceNode(S,v,e.createObjectLiteral());break;case 229:D(Y,S,U);break;case 224:D(Y,S,ue);break;default:e.Debug.assertNever(ue)}}})(I||(I={}));function D(E,k,T,ne){ne===void 0&&(ne={leadingTriviaOption:he.IncludeAll});var O=ie(k,T,ne),Y=ce(k,T,ne);E.deleteRange(k,{pos:O,end:Y})}M.deleteNode=D;function y(E,k,T,ne){var O=e.Debug.assertDefined(e.formatting.SmartIndenter.getContainingList(ne,T)),Y=e.indexOfNode(O,ne);if(e.Debug.assert(Y!==-1),O.length===1){D(E,T,ne);return}e.Debug.assert(!k.has(ne),"Deleting a node twice"),k.add(ne),E.deleteRange(T,{pos:X(T,ne),end:Y===O.length-1?ce(T,ne,{}):X(T,O[Y+1])})}})(o=e.textChanges||(e.textChanges={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe=e.createMultiMap(),Ee=e.createMap();function Ge(C){return e.isArray(C)?e.formatStringFromArgs(e.getLocaleSpecificMessage(C[0]),C.slice(1)):e.getLocaleSpecificMessage(C)}function Be(C,P,h){return ee(C,Ge(h),P,void 0,void 0)}M.createCodeFixActionNoFixId=Be;function he(C,P,h,X,$,Q){return ee(C,Ge(h),P,X,Ge($),Q)}M.createCodeFixAction=he;function ee(C,P,h,X,$,Q){return{fixName:C,description:P,changes:h,fixId:X,fixAllDescription:$,commands:Q?[Q]:void 0}}function f(C){for(var P=0,h=C.errorCodes;P<h.length;P++){var X=h[P];qe.add(String(X),C)}if(C.fixIds)for(var $=0,Q=C.fixIds;$<Q.length;$++){var z=Q[$];e.Debug.assert(!Ee.has(z)),Ee.set(z,C)}}M.registerCodeFix=f;function J(){return e.arrayFrom(qe.keys())}M.getSupportedErrorCodes=J;function Oe(C){return e.flatMap(qe.get(String(C.errorCode))||e.emptyArray,function(P){return P.getCodeActions(C)})}M.getFixes=Oe;function N(C){return Ee.get(e.cast(C.fixId,e.isString)).getAllCodeActions(C)}M.getAllFixes=N;function Te(C,P){return{changes:C,commands:P}}M.createCombinedCodeActions=Te;function ie(C,P){return{fileName:C,textChanges:P}}M.createFileTextChanges=ie;function ce(C,P,h){var X=[],$=e.textChanges.ChangeTracker.with(C,function(Q){return x(C,P,function(z){return h(Q,z,X)})});return Te($,X.length===0?void 0:X)}M.codeFixAll=ce;function x(C,P,h){for(var X=C.program,$=C.sourceFile,Q=C.cancellationToken,z=0,se=X.getSemanticDiagnostics($,Q).concat(e.computeSuggestionDiagnostics($,X,Q));z<se.length;z++){var G=se[z];e.contains(P,G.code)&&h(G)}}M.eachDiagnostic=x})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(qe){var Ee=e.createMap();function Ge(ee,f){Ee.set(ee,f)}qe.registerRefactor=Ge;function Be(ee){return e.arrayFrom(e.flatMapIterator(Ee.values(),function(f){return ee.cancellationToken&&ee.cancellationToken.isCancellationRequested()?void 0:f.getAvailableActions(ee)}))}qe.getApplicableRefactors=Be;function he(ee,f,J){var Oe=Ee.get(f);return Oe&&Oe.getEditsForAction(ee,J)}qe.getEditsForRefactor=he})(o=e.refactor||(e.refactor={}));function M(qe){var Ee=qe.startPosition,Ge=qe.endPosition;return e.createTextSpanFromBounds(Ee,Ge===void 0?Ee:Ge)}e.getRefactorContextSpan=M})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="addConvertToUnknownForNonOverlappingTypes",Ee=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(Be){var he=e.textChanges.ChangeTracker.with(Be,function(ee){return Ge(ee,Be.sourceFile,Be.span.start)});return[M.createCodeFixAction(qe,he,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,qe,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[qe],getAllCodeActions:function(Be){return M.codeFixAll(Be,Ee,function(he,ee){return Ge(he,ee.file,ee.start)})}});function Ge(Be,he,ee){var f=e.getTokenAtPosition(he,ee),J=e.Debug.assertDefined(e.findAncestor(f,function(N){return e.isAsExpression(N)||e.isTypeAssertion(N)}),"Expected to find an assertion expression"),Oe=e.isAsExpression(J)?e.createAsExpression(J.expression,e.createKeywordTypeNode(147)):e.createTypeAssertion(e.createKeywordTypeNode(147),J.expression);Be.replaceNode(he,J.expression,Oe)}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="addMissingAwait",Ee=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,Ge=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],Be=Tr([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.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,Ee],Ge);M.registerCodeFix({fixIds:[qe],errorCodes:Be,getCodeActions:function(x){var C=x.sourceFile,P=x.errorCode,h=x.span,X=x.cancellationToken,$=x.program,Q=J(C,P,h,X,$);if(!Q)return;var z=x.program.getTypeChecker(),se=function(G){return e.textChanges.ChangeTracker.with(x,G)};return e.compact([he(x,Q,P,z,se),ee(x,Q,P,z,se)])},getAllCodeActions:function(x){var C=x.sourceFile,P=x.program,h=x.cancellationToken,X=x.program.getTypeChecker(),$=e.createMap();return M.codeFixAll(x,Be,function(Q,z){var se=J(C,z.code,z,h,P);if(!se)return;var G=function(H){return H(Q),[]};return he(x,se,z.code,X,G,$)||ee(x,se,z.code,X,G,$)})}});function he(x,C,P,h,X,$){var Q=x.sourceFile,z=x.program,se=x.cancellationToken,G=Oe(C,Q,se,z,h);if(G){var H=X(function(q){e.forEach(G.initializers,function(be){var R=be.expression;return ce(q,P,Q,h,R,$)}),$&&G.needsSecondPassForFixAll&&ce(q,P,Q,h,C,$)});return M.createCodeFixActionNoFixId("addMissingAwaitToInitializer",H,G.initializers.length===1?[e.Diagnostics.Add_await_to_initializer_for_0,G.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function ee(x,C,P,h,X,$){var Q=X(function(z){return ce(z,P,x.sourceFile,h,C,$)});return M.createCodeFixAction(qe,Q,e.Diagnostics.Add_await,qe,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function f(x,C,P,h,X){var $=X.getDiagnosticsProducingTypeChecker(),Q=$.getDiagnostics(x,h);return e.some(Q,function(z){var se=z.start,G=z.length,H=z.relatedInformation,q=z.code;return e.isNumber(se)&&e.isNumber(G)&&e.textSpansEqual({start:se,length:G},P)&&q===C&&!!H&&e.some(H,function(be){return be.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}function J(x,C,P,h,X){var $=e.getTokenAtPosition(x,P.start),Q=e.findAncestor($,function(z){return z.getStart(x)<P.start||z.getEnd()>e.textSpanEnd(P)?"quit":e.isExpression(z)&&e.textSpansEqual(P,e.createTextSpanFromNode(z,x))});return Q&&f(x,C,P,h,X)&&ie(Q)?Q:void 0}function Oe(x,C,P,h,X){var $=N(x,X);if(!$)return;for(var Q=$.isCompleteFix,z,se=function(be){var R=X.getSymbolAtLocation(be);if(!R)return"continue";var K=e.tryCast(R.valueDeclaration,e.isVariableDeclaration),m=K&&e.tryCast(K.name,e.isIdentifier),_=e.getAncestor(K,224);if(!K||!_||K.type||!K.initializer||_.getSourceFile()!==C||e.hasModifier(_,1)||!m||!ie(K.initializer))return Q=!1,"continue";var I=h.getSemanticDiagnostics(C,P),D=e.FindAllReferences.Core.eachSymbolReferenceInFile(m,X,C,function(y){return be!==y&&!Te(y,I,C,X)});if(D)return Q=!1,"continue";(z||(z=[])).push({expression:K.initializer,declarationSymbol:R})},G=0,H=$.identifiers;G<H.length;G++){var q=H[G];se(q)}return z&&{initializers:z,needsSecondPassForFixAll:!Q}}function N(x,C){if(e.isPropertyAccessExpression(x.parent)&&e.isIdentifier(x.parent.expression))return{identifiers:[x.parent.expression],isCompleteFix:!0};if(e.isIdentifier(x))return{identifiers:[x],isCompleteFix:!0};if(e.isBinaryExpression(x)){for(var P=void 0,h=!0,X=0,$=[x.left,x.right];X<$.length;X++){var Q=$[X],z=C.getTypeAtLocation(Q);if(C.getPromisedTypeOfPromise(z)){if(!e.isIdentifier(Q)){h=!1;continue}(P||(P=[])).push(Q)}}return P&&{identifiers:P,isCompleteFix:h}}}function Te(x,C,P,h){var X=e.isPropertyAccessExpression(x.parent)?x.parent.name:e.isBinaryExpression(x.parent)?x.parent:x,$=e.find(C,function(Q){return Q.start===X.getStart(P)&&Q.start+Q.length===X.getEnd()});return $&&e.contains(Be,$.code)||h.getTypeAtLocation(X).flags&1}function ie(x){return x.kind&32768||!!e.findAncestor(x,function(C){return C.parent&&e.isArrowFunction(C.parent)&&C.parent.body===C||e.isBlock(C)&&(C.parent.kind===243||C.parent.kind===200||C.parent.kind===201||C.parent.kind===160)})}function ce(x,C,P,h,X,$){if(e.isBinaryExpression(X))for(var Q=0,z=[X.left,X.right];Q<z.length;Q++){var se=z[Q];if($&&e.isIdentifier(se)){var G=h.getSymbolAtLocation(se);if(G&&$.has(e.getSymbolId(G).toString()))continue}var H=h.getTypeAtLocation(se),q=h.getPromisedTypeOfPromise(H)?e.createAwait(se):se;x.replaceNode(P,se,q)}else if(C===Ee&&e.isPropertyAccessExpression(X.parent)){if($&&e.isIdentifier(X.parent.expression)){var G=h.getSymbolAtLocation(X.parent.expression);if(G&&$.has(e.getSymbolId(G).toString()))return}x.replaceNode(P,X.parent.expression,e.createParen(e.createAwait(X.parent.expression)))}else if(e.contains(Ge,C)&&e.isCallOrNewExpression(X.parent)){if($&&e.isIdentifier(X)){var G=h.getSymbolAtLocation(X);if(G&&$.has(e.getSymbolId(G).toString()))return}x.replaceNode(P,X,e.createParen(e.createAwait(X)))}else{if($&&e.isVariableDeclaration(X.parent)&&e.isIdentifier(X.parent.name)){var G=h.getSymbolAtLocation(X.parent.name);if(G&&!e.addToSeen($,e.getSymbolId(G)))return}x.replaceNode(P,X,e.createAwait(X))}}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="addMissingConst",Ee=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(Oe){var N=e.textChanges.ChangeTracker.with(Oe,function(Te){return Ge(Te,Oe.sourceFile,Oe.span.start,Oe.program)});if(N.length>0)return[M.createCodeFixAction(qe,N,e.Diagnostics.Add_const_to_unresolved_variable,qe,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[qe],getAllCodeActions:function(Oe){var N=new e.NodeSet;return M.codeFixAll(Oe,Ee,function(Te,ie){return Ge(Te,ie.file,ie.start,Oe.program,N)})}});function Ge(Oe,N,Te,ie,ce){var x=e.getTokenAtPosition(N,Te),C=e.findAncestor(x,function(Q){return e.isForInOrOfStatement(Q.parent)?Q.parent.initializer===Q:he(Q)?!1:"quit"});if(C)return Be(Oe,C,N,ce);var P=x.parent;if(e.isBinaryExpression(P)&&e.isExpressionStatement(P.parent))return Be(Oe,x,N,ce);if(e.isArrayLiteralExpression(P)){var h=ie.getTypeChecker();return e.every(P.elements,function(Q){return ee(Q,h)})?Be(Oe,P,N,ce):void 0}var X=e.findAncestor(x,function(Q){return e.isExpressionStatement(Q.parent)?!0:f(Q)?!1:"quit"});if(X){var $=ie.getTypeChecker();return J(X,$)?Be(Oe,X,N,ce):void 0}}function Be(Oe,N,Te,ie){(!ie||ie.tryAdd(N))&&Oe.insertModifierBefore(Te,80,N)}function he(Oe){switch(Oe.kind){case 75:case 191:case 192:case 279:case 280:return!0;default:return!1}}function ee(Oe,N){var Te=e.isIdentifier(Oe)?Oe:e.isAssignmentExpression(Oe,!0)&&e.isIdentifier(Oe.left)?Oe.left:void 0;return!!Te&&!N.getSymbolAtLocation(Te)}function f(Oe){switch(Oe.kind){case 75:case 208:case 27:return!0;default:return!1}}function J(Oe,N){return e.isBinaryExpression(Oe)?Oe.operatorToken.kind===27?e.every([Oe.left,Oe.right],function(Te){return J(Te,N)}):e.isIdentifier(Oe.left)&&!N.getSymbolAtLocation(Oe.left):!1}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="addMissingDeclareProperty",Ee=[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];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(Be){var he=e.textChanges.ChangeTracker.with(Be,function(ee){return Ge(ee,Be.sourceFile,Be.span.start)});if(he.length>0)return[M.createCodeFixAction(qe,he,e.Diagnostics.Prefix_with_declare,qe,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[qe],getAllCodeActions:function(Be){var he=new e.NodeSet;return M.codeFixAll(Be,Ee,function(ee,f){return Ge(ee,f.file,f.start,he)})}});function Ge(Be,he,ee,f){var J=e.getTokenAtPosition(he,ee);if(!e.isIdentifier(J))return;var Oe=J.parent;Oe.kind===158&&(!f||f.tryAdd(Oe))&&Be.insertModifierBefore(he,129,Oe)}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="addMissingInvocationForDecorator",Ee=[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];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(Be){var he=e.textChanges.ChangeTracker.with(Be,function(ee){return Ge(ee,Be.sourceFile,Be.span.start)});return[M.createCodeFixAction(qe,he,e.Diagnostics.Call_decorator_expression,qe,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[qe],getAllCodeActions:function(Be){return M.codeFixAll(Be,Ee,function(he,ee){return Ge(he,ee.file,ee.start)})}});function Ge(Be,he,ee){var f=e.getTokenAtPosition(he,ee),J=e.findAncestor(f,e.isDecorator);e.Debug.assert(!!J,"Expected position to be owned by a decorator.");var Oe=e.createCall(J.expression,void 0,void 0);Be.replaceNode(he,J.expression,Oe)}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="addNameToNamelessParameter",Ee=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(Be){var he=e.textChanges.ChangeTracker.with(Be,function(ee){return Ge(ee,Be.sourceFile,Be.span.start)});return[M.createCodeFixAction(qe,he,e.Diagnostics.Add_parameter_name,qe,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[qe],getAllCodeActions:function(Be){return M.codeFixAll(Be,Ee,function(he,ee){return Ge(he,ee.file,ee.start)})}});function Ge(Be,he,ee){var f=e.getTokenAtPosition(he,ee);if(!e.isIdentifier(f))return e.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+e.Debug.formatSyntaxKind(f.kind));var J=f.parent;if(!e.isParameter(J))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(f.kind));var Oe=J.parent.parameters.indexOf(J);e.Debug.assert(!J.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(Oe>-1,"Parameter not found in parent parameter list.");var N=e.createParameter(void 0,J.modifiers,J.dotDotDotToken,"arg"+Oe,J.questionToken,e.createTypeReferenceNode(f,void 0),J.initializer);Be.replaceNode(he,f,N)}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="annotateWithTypeFromJSDoc",Ee=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(P){var h=Ge(P.sourceFile,P.span.start);if(!h)return;var X=e.textChanges.ChangeTracker.with(P,function($){return ee($,P.sourceFile,h)});return[M.createCodeFixAction(qe,X,e.Diagnostics.Annotate_with_type_from_JSDoc,qe,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]},fixIds:[qe],getAllCodeActions:function(P){return M.codeFixAll(P,Ee,function(h,X){var $=Ge(X.file,X.start);$&&ee(h,X.file,$)})}});function Ge(P,h){var X=e.getTokenAtPosition(P,h);return e.tryCast(e.isParameter(X.parent)?X.parent.parent:X.parent,Be)}function Be(P){return f(P)&&he(P)}M.parameterShouldGetTypeFromJSDoc=Be;function he(P){return e.isFunctionLikeDeclaration(P)?P.parameters.some(he)||!P.type&&!!e.getJSDocReturnType(P):!P.type&&!!e.getJSDocType(P)}function ee(P,h,X){if(e.isFunctionLikeDeclaration(X)&&(e.getJSDocReturnType(X)||X.parameters.some(function(R){return!!e.getJSDocType(R)}))){if(!X.typeParameters){var $=e.getJSDocTypeParameterDeclarations(X);$.length&&P.insertTypeParameters(h,X,$)}var Q=e.isArrowFunction(X)&&!e.findChildOfKind(X,20,h);Q&&P.insertNodeBefore(h,e.first(X.parameters),e.createToken(20));for(var z=0,se=X.parameters;z<se.length;z++){var G=se[z];if(!G.type){var H=e.getJSDocType(G);H&&P.tryInsertTypeAnnotation(h,G,J(H))}}if(Q&&P.insertNodeAfter(h,e.last(X.parameters),e.createToken(21)),!X.type){var q=e.getJSDocReturnType(X);q&&P.tryInsertTypeAnnotation(h,X,J(q))}}else{var be=e.Debug.assertDefined(e.getJSDocType(X),"A JSDocType for this declaration should exist");e.Debug.assert(!X.type,"The JSDocType decl should have a type"),P.tryInsertTypeAnnotation(h,X,J(be))}}function f(P){return e.isFunctionLikeDeclaration(P)||P.kind===241||P.kind===157||P.kind===158}function J(P){switch(P.kind){case 293:case 294:return e.createTypeReferenceNode("any",e.emptyArray);case 297:return Oe(P);case 296:return J(P.type);case 295:return N(P);case 299:return Te(P);case 298:return ie(P);case 168:return x(P);default:var h=e.visitEachChild(P,J,void 0);return e.setEmitFlags(h,1),h}}function Oe(P){return e.createUnionTypeNode([e.visitNode(P.type,J),e.createTypeReferenceNode("undefined",e.emptyArray)])}function N(P){return e.createUnionTypeNode([e.visitNode(P.type,J),e.createTypeReferenceNode("null",e.emptyArray)])}function Te(P){return e.createArrayTypeNode(e.visitNode(P.type,J))}function ie(P){return e.createFunctionTypeNode(e.emptyArray,P.parameters.map(ce),P.type)}function ce(P){var h=P.parent.parameters.indexOf(P),X=P.type.kind===299&&h===P.parent.parameters.length-1,$=P.name||(X?"rest":"arg"+h),Q=X?e.createToken(25):P.dotDotDotToken;return e.createParameter(P.decorators,P.modifiers,Q,$,P.questionToken,e.visitNode(P.type,J),P.initializer)}function x(P){var h=P.typeName,X=P.typeArguments;if(e.isIdentifier(P.typeName)){if(e.isJSDocIndexSignature(P))return C(P);var $=P.typeName.text;switch(P.typeName.text){case"String":case"Boolean":case"Object":case"Number":$=$.toLowerCase();break;case"array":case"date":case"promise":$=$[0].toUpperCase()+$.slice(1);break}h=e.createIdentifier($),($==="Array"||$==="Promise")&&!P.typeArguments?X=e.createNodeArray([e.createTypeReferenceNode("any",e.emptyArray)]):X=e.visitNodes(P.typeArguments,J)}return e.createTypeReferenceNode(h,X)}function C(P){var h=e.createParameter(void 0,void 0,void 0,P.typeArguments[0].kind===139?"n":"s",void 0,e.createTypeReferenceNode(P.typeArguments[0].kind===139?"number":"string",[]),void 0),X=e.createTypeLiteralNode([e.createIndexSignature(void 0,void 0,[h],P.typeArguments[1])]);return e.setEmitFlags(X,1),X}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="inferFromUsage",Ee=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(se){var G=se.sourceFile,H=se.program,q=se.span.start,be=se.errorCode,R=se.cancellationToken,K=se.host,m=se.formatContext,_=se.preferences,I=e.getTokenAtPosition(G,q),D,y=e.textChanges.ChangeTracker.with(se,function(k){D=he(k,G,I,be,H,R,e.returnTrue,K,m,_)}),E=D&&e.getNameOfDeclaration(D);return!E||y.length===0?void 0:[M.createCodeFixAction(qe,y,[Ge(be,I),E.getText(G)],qe,e.Diagnostics.Infer_all_types_from_usage)]},fixIds:[qe],getAllCodeActions:function(se){var G=se.sourceFile,H=se.program,q=se.cancellationToken,be=se.host,R=se.formatContext,K=se.preferences,m=e.nodeSeenTracker();return M.codeFixAll(se,Ee,function(_,I){he(_,G,e.getTokenAtPosition(I.file,I.start),I.code,H,q,m,be,R,K)})}});function Ge(se,G){switch(se){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(G))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.Diagnostics.Infer_this_type_of_0_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function Be(se){switch(se){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return se}function he(se,G,H,q,be,R,K,m,_,I){if(!e.isParameterPropertyModifier(H.kind)&&H.kind!==75&&H.kind!==25&&H.kind!==103)return;var D=H.parent;q=Be(q);switch(q){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(D)&&K(D)||e.isPropertyDeclaration(D)||e.isPropertySignature(D))return ee(se,G,D,be,m,R,_,I),D;if(e.isPropertyAccessExpression(D)){var y=X(D.name,be,R),E=e.getTypeNodeIfAccessible(y,D,be,m);if(E){var k=e.createJSDocTypeTag(e.createJSDocTypeExpression(E),"");x(se,G,e.cast(D.parent.parent,e.isExpressionStatement),[k])}return D}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:{var T=be.getTypeChecker().getSymbolAtLocation(H);return T&&T.valueDeclaration&&e.isVariableDeclaration(T.valueDeclaration)&&K(T.valueDeclaration)?(ee(se,G,T.valueDeclaration,be,m,R,_,I),T.valueDeclaration):void 0}}var ne=e.getContainingFunction(H);if(ne===void 0)return;switch(q){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(ne))return N(se,G,ne,be,m,R,_,I),ne;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(K(ne)){var O=e.cast(D,e.isParameter);return f(se,G,O,ne,be,m,R,_,I),O}return;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:return e.isGetAccessorDeclaration(ne)&&e.isIdentifier(ne.name)?(Te(se,G,ne,X(ne.name,be,R),be,m,_,I),ne):void 0;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:return e.isSetAccessorDeclaration(ne)?(N(se,G,ne,be,m,R,_,I),ne):void 0;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.textChanges.isThisTypeAnnotatable(ne)&&K(ne)?(J(se,G,ne,be,m,R),ne):void 0;default:return e.Debug.fail(String(q))}}function ee(se,G,H,q,be,R,K,m){e.isIdentifier(H.name)&&Te(se,G,H,X(H.name,q,R),q,be,K,m)}function f(se,G,H,q,be,R,K,m,_){if(!e.isIdentifier(H.name))return;var I=$(q,G,be,K);if(e.Debug.assert(q.parameters.length===I.length,"Parameter count and inference count should match"),e.isInJSFile(q))ce(se,G,I,be,R);else{var D=e.isArrowFunction(q)&&!e.findChildOfKind(q,20,G);D&&se.insertNodeBefore(G,e.first(q.parameters),e.createToken(20));for(var y=0,E=I;y<E.length;y++){var k=E[y],T=k.declaration,ne=k.type;T&&!T.type&&!T.initializer&&Te(se,G,T,ne,be,R,m,_)}D&&se.insertNodeAfter(G,e.last(q.parameters),e.createToken(21))}}function J(se,G,H,q,be,R){var K=Q(H,G,q,R);if(!K||!K.length)return;var m=z(q,K,R).thisParameter(),_=e.getTypeNodeIfAccessible(m,H,q,be);if(!_)return;e.isInJSFile(H)?Oe(se,G,H,_):se.tryInsertThisTypeAnnotation(G,H,_)}function Oe(se,G,H,q){x(se,G,H,[e.createJSDocThisTag(e.createJSDocTypeExpression(q))])}function N(se,G,H,q,be,R,K,m){var _=e.firstOrUndefined(H.parameters);if(_&&e.isIdentifier(H.name)&&e.isIdentifier(_.name)){var I=X(H.name,q,R);I===q.getTypeChecker().getAnyType()&&(I=X(_.name,q,R)),e.isInJSFile(H)?ce(se,G,[{declaration:_,type:I}],q,be):Te(se,G,_,I,q,be,K,m)}}function Te(se,G,H,q,be,R,K,m){var _=e.getTypeNodeIfAccessible(q,H,be,R);if(_)if(e.isInJSFile(G)&&H.kind!==157){var I=e.isVariableDeclaration(H)?e.tryCast(H.parent.parent,e.isVariableStatement):H;if(!I)return;var D=e.createJSDocTypeExpression(_),y=e.isGetAccessorDeclaration(H)?e.createJSDocReturnTag(D,""):e.createJSDocTypeTag(D,"");x(se,G,I,[y])}else ie(_,se,G,H,q,be,R,K,m)||se.tryInsertTypeAnnotation(G,H,_)}function ie(se,G,H,q,be,R,K,m,_){var I;if(e.isLiteralImportTypeNode(se)&&se.qualifier&&be.symbol){var D=(I=e.find(be.symbol.declarations,function(Y){return!!Y.getSourceFile().externalModuleIndicator}))===null||I===void 0?void 0:I.getSourceFile().symbol;if(D){var y=e.getFirstIdentifier(se.qualifier).symbol,E=M.getImportCompletionAction(y,D,H,y.name,K,R,m,q.pos,_);if(E.codeAction.changes.length&&G.tryInsertTypeAnnotation(H,q,e.createTypeReferenceNode(se.qualifier,se.typeArguments))){for(var k=0,T=E.codeAction.changes;k<T.length;k++){var ne=T[k],O=H.fileName===ne.fileName?H:e.Debug.assertDefined(R.getSourceFile(ne.fileName));G.pushRaw(O,ne)}return!0}}}return!1}function ce(se,G,H,q,be){var R=H.length&&H[0].declaration.parent;if(!R)return;var K=e.mapDefined(H,function(m){var _=m.declaration;if(_.initializer||e.getJSDocType(_)||!e.isIdentifier(_.name))return;var I=m.type&&e.getTypeNodeIfAccessible(m.type,_,q,be),D=e.getSynthesizedClone(_.name);return e.setEmitFlags(D,1536|2048),I&&e.createJSDocParamTag(D,!!m.isOptional,e.createJSDocTypeExpression(I),"")});x(se,G,R,K)}function x(se,G,H,q){var be=e.mapDefined(H.jsDoc,function(I){return I.comment}),R=e.flatMapToMutable(H.jsDoc,function(I){return I.tags}),K=q.filter(function(I){return!R||!R.some(function(D,y){var E=P(D,I);return E&&(R[y]=E),!!E})}),m=e.createJSDocComment(be.join(`
|
|
|
`),e.createNodeArray(Tr(R||e.emptyArray,K))),_=H.kind===201?C(H):H;_.jsDoc=H.jsDoc,_.jsDocCache=H.jsDocCache,se.insertJsdocCommentBefore(G,_,m)}function C(se){return se.parent.kind===158?se.parent:se.parent.parent}function P(se,G){if(se.kind!==G.kind)return;switch(se.kind){case 310:{var H=se,q=G;return e.isIdentifier(H.name)&&e.isIdentifier(q.name)&&H.name.escapedText===q.name.escapedText?e.createJSDocParamTag(q.name,q.isBracketed,q.typeExpression,H.comment):void 0}case 311:return e.createJSDocReturnTag(G.typeExpression,se.comment)}}function h(se,G,H){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,se,G,G.getSourceFiles(),H),function(q){return q.kind!==0?e.tryCast(q.node,e.isIdentifier):void 0})}function X(se,G,H){var q=h(se,G,H);return z(G,q,H).single()}function $(se,G,H,q){var be=Q(se,G,H,q);return be&&z(H,be,q).parameters(se)||se.parameters.map(function(R){return{declaration:R,type:e.isIdentifier(R.name)?X(R.name,H,q):H.getTypeChecker().getAnyType()}})}function Q(se,G,H,q){var be;switch(se.kind){case 161:be=e.findChildOfKind(se,128,G);break;case 201:case 200:var R=se.parent;be=e.isVariableDeclaration(R)&&e.isIdentifier(R.name)?R.name:se.name;break;case 243:case 160:be=se.name;break}return be?h(be,H,q):void 0}function z(se,G,H){var q=se.getTypeChecker(),be={string:function(){return q.getStringType()},number:function(){return q.getNumberType()},Array:function(ae){return q.createArrayType(ae)},Promise:function(ae){return q.createPromiseType(ae)}},R=[q.getStringType(),q.getNumberType(),q.createArrayType(q.getAnyType()),q.createPromiseType(q.getAnyType())];return{single:_,parameters:I,thisParameter:D};function K(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function m(ae){for(var fe=e.createUnderscoreEscapedMap(),Le=0,Je=ae;Le<Je.length;Le++){var $e=Je[Le];$e.properties&&$e.properties.forEach(function(cn,Qe){fe.has(Qe)||fe.set(Qe,[]),fe.get(Qe).push(cn)})}var Fe=e.createUnderscoreEscapedMap();return fe.forEach(function(cn,Qe){Fe.set(Qe,m(cn))}),{isNumber:ae.some(function(cn){return cn.isNumber}),isString:ae.some(function(cn){return cn.isString}),isNumberOrString:ae.some(function(cn){return cn.isNumberOrString}),candidateTypes:e.flatMap(ae,function(cn){return cn.candidateTypes}),properties:Fe,calls:e.flatMap(ae,function(cn){return cn.calls}),constructs:e.flatMap(ae,function(cn){return cn.constructs}),numberIndex:e.forEach(ae,function(cn){return cn.numberIndex}),stringIndex:e.forEach(ae,function(cn){return cn.stringIndex}),candidateThisTypes:e.flatMap(ae,function(cn){return cn.candidateThisTypes}),inferredTypes:void 0}}function _(){return Z(y(G))}function I(ae){if(G.length===0||!ae.parameters)return;for(var fe=K(),Le=0,Je=G;Le<Je.length;Le++){var $e=Je[Le];H.throwIfCancellationRequested(),E($e,fe)}var Fe=Tr(fe.constructs||[],fe.calls||[]);return ae.parameters.map(function(cn,Qe){for(var ln=[],ye=e.isRestParameter(cn),ke=!1,F=0,c=Fe;F<c.length;F++){var L=c[F];if(L.argumentTypes.length<=Qe)ke=e.isInJSFile(ae),ln.push(q.getUndefinedType());else if(ye)for(var te=Qe;te<L.argumentTypes.length;te++)ln.push(q.getBaseTypeOfLiteralType(L.argumentTypes[te]));else ln.push(q.getBaseTypeOfLiteralType(L.argumentTypes[Qe]))}if(e.isIdentifier(cn.name)){var Se=y(h(cn.name,se,H));ln.push.apply(ln,ye?e.mapDefined(Se,q.getElementTypeOfArrayType):Se)}var Ne=Z(ln);return{type:ye?q.createArrayType(Ne):Ne,isOptional:ke&&!ye,declaration:cn}})}function D(){for(var ae=K(),fe=0,Le=G;fe<Le.length;fe++){var Je=Le[fe];H.throwIfCancellationRequested(),E(Je,ae)}return Z(ae.candidateThisTypes||e.emptyArray)}function y(ae){for(var fe=K(),Le=0,Je=ae;Le<Je.length;Le++){var $e=Je[Le];H.throwIfCancellationRequested(),E($e,fe)}return we(fe)}function E(ae,fe){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(ae);)ae=ae.parent;switch(ae.parent.kind){case 225:In(fe,q.getVoidType());break;case 207:fe.isNumber=!0;break;case 206:T(ae.parent,fe);break;case 208:ne(ae,ae.parent,fe);break;case 275:case 276:O(ae.parent,fe);break;case 195:case 196:ae.parent.expression===ae?Y(ae.parent,fe):k(ae,fe);break;case 193:pe(ae.parent,fe);break;case 194:S(ae.parent,ae,fe);break;case 279:case 280:v(ae.parent,fe);break;case 158:U(ae.parent,fe);break;case 241:{var Le=ae.parent,Je=Le.name,$e=Le.initializer;if(ae===Je){$e&&In(fe,q.getTypeAtLocation($e));break}}default:return k(ae,fe)}}function k(ae,fe){e.isExpressionNode(ae)&&In(fe,q.getContextualType(ae))}function T(ae,fe){switch(ae.operator){case 45:case 46:case 40:case 54:fe.isNumber=!0;break;case 39:fe.isNumberOrString=!0;break}}function ne(ae,fe,Le){switch(fe.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 64:case 66:case 65:case 67:case 68:case 72:case 73:case 74:case 69:case 71:case 70:case 40:case 29:case 32:case 31:case 33:var Je=q.getTypeAtLocation(fe.left===ae?fe.right:fe.left);Je.flags&1056?In(Le,Je):Le.isNumber=!0;break;case 63:case 39:var $e=q.getTypeAtLocation(fe.left===ae?fe.right:fe.left);$e.flags&1056?In(Le,$e):$e.flags&296?Le.isNumber=!0:$e.flags&132?Le.isString=!0:$e.flags&1||(Le.isNumberOrString=!0);break;case 62:case 34:case 36:case 37:case 35:In(Le,q.getTypeAtLocation(fe.left===ae?fe.right:fe.left));break;case 96:ae===fe.left&&(Le.isString=!0);break;case 56:case 60:ae===fe.left&&(ae.parent.parent.kind===241||e.isAssignmentExpression(ae.parent.parent,!0))&&In(Le,q.getTypeAtLocation(fe.right));break;case 55:case 27:case 97:break}}function O(ae,fe){In(fe,q.getTypeAtLocation(ae.parent.parent.expression))}function Y(ae,fe){var Le={argumentTypes:[],return_:K()};if(ae.arguments)for(var Je=0,$e=ae.arguments;Je<$e.length;Je++){var Fe=$e[Je];Le.argumentTypes.push(q.getTypeAtLocation(Fe))}E(ae,Le.return_),ae.kind===195?(fe.calls||(fe.calls=[])).push(Le):(fe.constructs||(fe.constructs=[])).push(Le)}function pe(ae,fe){var Le=e.escapeLeadingUnderscores(ae.name.text);fe.properties||(fe.properties=e.createUnderscoreEscapedMap());var Je=fe.properties.get(Le)||K();E(ae,Je),fe.properties.set(Le,Je)}function S(ae,fe,Le){if(fe===ae.argumentExpression){Le.isNumberOrString=!0;return}else{var Je=q.getTypeAtLocation(ae.argumentExpression),$e=K();E(ae,$e),Je.flags&296?Le.numberIndex=$e:Le.stringIndex=$e}}function v(ae,fe){var Le=e.isVariableDeclaration(ae.parent.parent)?ae.parent.parent:ae.parent;et(fe,q.getTypeAtLocation(Le))}function U(ae,fe){et(fe,q.getTypeAtLocation(ae.parent))}function ue(ae,fe){for(var Le=[],Je=0,$e=ae;Je<$e.length;Je++)for(var Fe=$e[Je],cn=0,Qe=fe;cn<Qe.length;cn++){var ln=Qe[cn],ye=ln.high,ke=ln.low;ye(Fe)&&(e.Debug.assert(!ke(Fe),"Priority can't have both low and high"),Le.push(ke))}return ae.filter(function(F){return Le.every(function(c){return!c(F)})})}function De(ae){return Z(we(ae))}function Z(ae){if(!ae.length)return q.getAnyType();var fe=q.getUnionType([q.getStringType(),q.getNumberType()]),Le=[{high:function(Fe){return Fe===q.getStringType()||Fe===q.getNumberType()},low:function(Fe){return Fe===fe}},{high:function(Fe){return!(Fe.flags&(1|16384))},low:function(Fe){return!!(Fe.flags&(1|16384))}},{high:function(Fe){return!(Fe.flags&(98304|1|16384))&&!(q.getObjectFlags(Fe)&16)},low:function(Fe){return!!(q.getObjectFlags(Fe)&16)}}],Je=ue(ae,Le),$e=Je.filter(function(Fe){return q.getObjectFlags(Fe)&16});return $e.length&&(Je=Je.filter(function(Fe){return!(q.getObjectFlags(Fe)&16)}),Je.push(Re($e))),q.getWidenedType(q.getUnionType(Je.map(q.getBaseTypeOfLiteralType),2))}function Re(ae){if(ae.length===1)return ae[0];for(var fe=[],Le=[],Je=[],$e=[],Fe=!1,cn=!1,Qe=e.createMultiMap(),ln=0,ye=ae;ln<ye.length;ln++){for(var ke=ye[ln],F=0,c=q.getPropertiesOfType(ke);F<c.length;F++){var L=c[F];Qe.add(L.name,q.getTypeOfSymbolAtLocation(L,L.valueDeclaration))}fe.push.apply(fe,q.getSignaturesOfType(ke,0)),Le.push.apply(Le,q.getSignaturesOfType(ke,1)),ke.stringIndexInfo&&(Je.push(ke.stringIndexInfo.type),Fe=Fe||ke.stringIndexInfo.isReadonly),ke.numberIndexInfo&&($e.push(ke.numberIndexInfo.type),cn=cn||ke.numberIndexInfo.isReadonly)}var te=e.mapEntries(Qe,function(Se,Ne){var ze=Ne.length<ae.length?16777216:0,Tn=q.createSymbol(4|ze,Se);return Tn.type=q.getUnionType(Ne),[Se,Tn]});return q.createAnonymousType(ae[0].symbol,te,fe,Le,Je.length?q.createIndexInfo(q.getUnionType(Je),Fe):void 0,$e.length?q.createIndexInfo(q.getUnionType($e),cn):void 0)}function we(ae){var fe=[];return ae.isNumber&&fe.push(q.getNumberType()),ae.isString&&fe.push(q.getStringType()),ae.isNumberOrString&&fe.push(q.getUnionType([q.getStringType(),q.getNumberType()])),ae.numberIndex&&fe.push(q.createArrayType(De(ae.numberIndex))),(ae.properties&&ae.properties.size||ae.calls&&ae.calls.length||ae.constructs&&ae.constructs.length||ae.stringIndex)&&fe.push(He(ae)),fe.push.apply(fe,(ae.candidateTypes||[]).map(function(Le){return q.getBaseTypeOfLiteralType(Le)})),fe.push.apply(fe,ve(ae)),fe}function He(ae){var fe=e.createUnderscoreEscapedMap();ae.properties&&ae.properties.forEach(function(Fe,cn){var Qe=q.createSymbol(4,cn);Qe.type=De(Fe),fe.set(cn,Qe)});var Le=ae.calls?[Ze(ae.calls)]:[],Je=ae.constructs?[Ze(ae.constructs)]:[],$e=ae.stringIndex&&q.createIndexInfo(De(ae.stringIndex),!1);return q.createAnonymousType(void 0,fe,Le,Je,$e,void 0)}function ve(ae){if(!ae.properties||!ae.properties.size)return[];var fe=R.filter(function(Le){return je(Le,ae)});return 0<fe.length&&fe.length<3?fe.map(function(Le){return w(Le,ae)}):[]}function je(ae,fe){return fe.properties?!e.forEachEntry(fe.properties,function(Le,Je){var $e=q.getTypeOfPropertyOfType(ae,Je);if(!$e)return!0;if(Le.calls){var Fe=q.getSignaturesOfType($e,0);return!Fe.length||!q.isTypeAssignableTo($e,a(Le.calls))}else return!q.isTypeAssignableTo($e,De(Le))}):!1}function w(ae,fe){if(!(e.getObjectFlags(ae)&4)||!fe.properties)return ae;var Le=ae.target,Je=e.singleOrUndefined(Le.typeParameters);if(!Je)return ae;var $e=[];return fe.properties.forEach(function(Fe,cn){var Qe=q.getTypeOfPropertyOfType(Le,cn);e.Debug.assert(!!Qe,"generic should have all the properties of its reference."),$e.push.apply($e,j(Qe,De(Fe),Je))}),be[ae.symbol.escapedName](Z($e))}function j(ae,fe,Le){if(ae===Le)return[fe];if(ae.flags&3145728)return e.flatMap(ae.types,function(ye){return j(ye,fe,Le)});if(e.getObjectFlags(ae)&4&&e.getObjectFlags(fe)&4){var Je=q.getTypeArguments(ae),$e=q.getTypeArguments(fe),Fe=[];if(Je&&$e)for(var cn=0;cn<Je.length;cn++)$e[cn]&&Fe.push.apply(Fe,j(Je[cn],$e[cn],Le));return Fe}var Qe=q.getSignaturesOfType(ae,0),ln=q.getSignaturesOfType(fe,0);return Qe.length===1&&ln.length===1?Pe(Qe[0],ln[0],Le):[]}function Pe(ae,fe,Le){for(var Je=[],$e=0;$e<ae.parameters.length;$e++){var Fe=ae.parameters[$e],cn=fe.parameters[$e],Qe=ae.declaration&&e.isRestParameter(ae.declaration.parameters[$e]);if(!cn)break;var ln=q.getTypeOfSymbolAtLocation(Fe,Fe.valueDeclaration),ye=Qe&&q.getElementTypeOfArrayType(ln);ye&&(ln=ye);var ke=cn.type||q.getTypeOfSymbolAtLocation(cn,cn.valueDeclaration);Je.push.apply(Je,j(ln,ke,Le))}var F=q.getReturnTypeOfSignature(ae),c=q.getReturnTypeOfSignature(fe);return Je.push.apply(Je,j(F,c,Le)),Je}function a(ae){return q.createAnonymousType(void 0,e.createSymbolTable(),[Ze(ae)],e.emptyArray,void 0,void 0)}function Ze(ae){for(var fe=[],Le=Math.max.apply(Math,ae.map(function(cn){return cn.argumentTypes.length})),Je=function(cn){var Qe=q.createSymbol(1,e.escapeLeadingUnderscores("arg"+cn));Qe.type=Z(ae.map(function(ln){return ln.argumentTypes[cn]||q.getUndefinedType()})),ae.some(function(ln){return ln.argumentTypes[cn]===void 0})&&(Qe.flags|=16777216),fe.push(Qe)},$e=0;$e<Le;$e++)Je($e);var Fe=De(m(ae.map(function(cn){return cn.return_})));return q.createSignature(void 0,void 0,void 0,fe,Fe,void 0,Le,0)}function In(ae,fe){fe&&!(fe.flags&1)&&!(fe.flags&131072)&&(ae.candidateTypes||(ae.candidateTypes=[])).push(fe)}function et(ae,fe){fe&&!(fe.flags&1)&&!(fe.flags&131072)&&(ae.candidateThisTypes||(ae.candidateThisTypes=[])).push(fe)}}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="convertFunctionToEs6Class",Ee=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(he){var ee=e.textChanges.ChangeTracker.with(he,function(f){return Ge(f,he.sourceFile,he.span.start,he.program.getTypeChecker())});return[M.createCodeFixAction(qe,ee,e.Diagnostics.Convert_function_to_an_ES2015_class,qe,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[qe],getAllCodeActions:function(he){return M.codeFixAll(he,Ee,function(ee,f){return Ge(ee,f.file,f.start,he.program.getTypeChecker())})}});function Ge(he,ee,f,J){var Oe=J.getSymbolAtLocation(e.getTokenAtPosition(ee,f));if(!Oe||!(Oe.flags&(16|3)))return;var N=Oe.valueDeclaration,Te,ie;switch(N.kind){case 243:Te=N,he.delete(ee,N),ie=C(N);break;case 241:Te=N.parent.parent,ie=x(N),N.parent.declarations.length===1?(e.copyLeadingComments(Te,ie,ee),he.delete(ee,Te)):he.delete(ee,N);break}if(!ie)return;e.copyLeadingComments(N,ie,ee),he.insertNodeAfter(ee,Te,ie);function ce(P){var h=[];return P.members&&P.members.forEach(function(Q){var z=$(Q,void 0);z&&h.push(z)}),P.exports&&P.exports.forEach(function(Q){var z=$(Q,[e.createToken(119)]);z&&h.push(z)}),h;function X(Q,z){return e.isFunctionLike(z)}function $(Q,z){if(!(Q.flags&8192))return;var se=Q.valueDeclaration,G=se.parent;if(!X(se,G.right))return;var H=G.parent&&G.parent.kind===225?G.parent:G;if(he.delete(ee,H),!G.right)return e.createProperty([],z,Q.name,void 0,void 0,void 0);switch(G.right.kind){case 200:{var q=G.right,be=e.concatenate(z,Be(q,125)),R=e.createMethod(void 0,be,void 0,se.name,void 0,void 0,q.parameters,void 0,q.body);return e.copyLeadingComments(G,R,ee),R}case 201:{var K=G.right,m=K.body,_=void 0;m.kind===222?_=m:_=e.createBlock([e.createReturn(m)]);var be=e.concatenate(z,Be(K,125)),R=e.createMethod(void 0,be,void 0,se.name,void 0,void 0,K.parameters,void 0,_);return e.copyLeadingComments(G,R,ee),R}default:{if(e.isSourceFileJS(ee))return;var I=e.createProperty(void 0,z,se.name,void 0,void 0,G.right);return e.copyLeadingComments(G.parent,I,ee),I}}}}function x(P){var h=P.initializer;if(!h||h.kind!==200)return;if(P.name.kind!==75)return;var X=ce(P.symbol);h.body&&X.unshift(e.createConstructor(void 0,void 0,h.parameters,h.body));var $=Be(Te,88),Q=e.createClassDeclaration(void 0,$,P.name,void 0,void 0,X);return Q}function C(P){var h=ce(Oe);P.body&&h.unshift(e.createConstructor(void 0,void 0,P.parameters,P.body));var X=Be(P,88),$=e.createClassDeclaration(void 0,X,P.name,void 0,void 0,h);return $}}function Be(he,ee){return e.filter(he.modifiers,function(f){return f.kind===ee})}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="convertToAsyncFunction",Ee=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],Ge=!0;M.registerCodeFix({errorCodes:Ee,getCodeActions:function(y){Ge=!0;var E=e.textChanges.ChangeTracker.with(y,function(k){return he(k,y.sourceFile,y.span.start,y.program.getTypeChecker(),y)});return Ge?[M.createCodeFixAction(qe,E,e.Diagnostics.Convert_to_async_function,qe,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[qe],getAllCodeActions:function(y){return M.codeFixAll(y,Ee,function(E,k){return he(E,k.file,k.start,y.program.getTypeChecker(),y)})}});var Be;(function(y){y[y.Identifier=0]="Identifier",y[y.BindingPattern=1]="BindingPattern"})(Be||(Be={}));function he(y,E,k,T,ne){var O=e.getTokenAtPosition(E,k),Y;if(e.isIdentifier(O)&&e.isVariableDeclaration(O.parent)&&O.parent.initializer&&e.isFunctionLikeDeclaration(O.parent.initializer)?Y=O.parent.initializer:Y=e.tryCast(e.getContainingFunction(e.getTokenAtPosition(E,k)),e.isFunctionLikeDeclaration),!Y)return;var pe=e.createMap(),S=e.createMap(),v=[],U=e.isInJSFile(Y),ue=J(Y,T),De=Te(Y,T,pe,ne,ue,S,v),Z=f(pe),Re=De.body&&e.isBlock(De.body)?ee(De.body):e.emptyArray,we={checker:T,synthNamesMap:pe,allVarNames:v,setOfExpressionsToReturn:ue,constIdentifiers:Z,originalTypeMap:S,isInJSFile:U};if(!Re.length)return;y.insertLastModifierBefore(E,125,Y);function He(Pe,a){var Ze=x(Pe,we,Pe);y.replaceNodeWithNodes(E,a,Ze)}for(var ve=function(Pe){e.forEachChild(Pe,function a(Ze){e.isCallExpression(Ze)?He(Ze,Pe):e.isFunctionLike(Ze)||e.forEachChild(Ze,a)})},je=0,w=Re;je<w.length;je++){var j=w[je];ve(j)}}function ee(y){var E=[];return e.forEachReturnStatement(y,function(k){e.isReturnStatementWithFixablePromiseHandler(k)&&E.push(k)}),E}function f(y){var E=[];return y.forEach(function(k){k.numberOfAssignmentsOriginal===0&&E.push(k.identifier)}),E}function J(y,E){if(!y.body)return e.createMap();var k=e.createMap();return e.forEachChild(y.body,function T(ne){Oe(ne,E,"then")?(k.set(e.getNodeId(ne).toString(),!0),e.forEach(ne.arguments,T)):Oe(ne,E,"catch")?(k.set(e.getNodeId(ne).toString(),!0),e.forEachChild(ne,T)):Oe(ne,E)?k.set(e.getNodeId(ne).toString(),!0):e.forEachChild(ne,T)}),k}function Oe(y,E,k){var T=k?e.isCallExpression(y):e.isExpression(y),ne=T&&(!k||e.hasPropertyAccessExpressionWithName(y,k)),O=ne&&E.getTypeAtLocation(y);return!!(O&&E.getPromisedTypeOfPromise(O))}function N(y,E){return y.valueDeclaration&&y.valueDeclaration.getSourceFile()===E}function Te(y,E,k,T,ne,O,Y){var pe=e.createMap(),S=e.createMap();return e.forEachChild(y,function ue(De){if(!e.isIdentifier(De)){e.forEachChild(De,ue);return}var Z=E.getSymbolAtLocation(De),Re=Z&&N(Z,T.sourceFile);if(Z&&Re){var we=E.getTypeAtLocation(De),He=G(we,E),ve=e.getSymbolId(Z).toString();if(He&&!e.isFunctionLikeDeclaration(De.parent)&&!k.has(ve)){var je=e.firstOrUndefined(He.parameters),w=je&&e.isParameter(je.valueDeclaration)&&e.tryCast(je.valueDeclaration.name,e.isIdentifier)||e.createOptimisticUniqueName("result"),j=ce(w,S);k.set(ve,j),Y.push({identifier:j.identifier,symbol:Z}),ie(S,w.text,Z)}else if(De.parent&&(e.isParameter(De.parent)||e.isVariableDeclaration(De.parent)||e.isBindingElement(De.parent))){var Pe=De.text,a=S.get(Pe);if(a&&a.some(function(et){return et!==Z})){var Ze=ce(De,S);pe.set(ve,Ze.identifier),k.set(ve,Ze),Y.push({identifier:Ze.identifier,symbol:Z}),ie(S,Pe,Z)}else{var In=e.getSynthesizedDeepClone(De);pe.set(ve,In),k.set(ve,m(In,[],Y.filter(function(et){return et.identifier.text===De.text}).length)),(e.isParameter(De.parent)&&v(De.parent.parent)||e.isVariableDeclaration(De.parent))&&(Y.push({identifier:In,symbol:Z}),ie(S,Pe,Z))}}}}),e.getSynthesizedDeepCloneWithRenames(y,!0,pe,E,U);function v(ue){var De=ue.parent;if(e.isCallExpression(De)||e.isIdentifier(De)&&!ne.get(e.getNodeId(De).toString())){var Z=E.getTypeAtLocation(De),Re=Z&&E.getPromisedTypeOfPromise(Z);return!!Re}return!1}function U(ue,De){if(e.isIdentifier(ue)){var Z=E.getSymbolAtLocation(ue),Re=Z&&e.getSymbolId(Z).toString(),we=Z&&k.get(Re);if(we){var He=E.getTypeAtLocation(ue);O.set(e.getNodeId(De).toString(),He)}}var ve=ne.get(e.getNodeId(ue).toString());ve!==void 0&&(ne.delete(e.getNodeId(ue).toString()),ne.set(e.getNodeId(De).toString(),ve))}}function ie(y,E,k){y.has(E)?y.get(E).push(k):y.set(E,[k])}function ce(y,E){var k=(E.get(y.text)||e.emptyArray).length,T=0,ne=k===0?y:e.createIdentifier(y.text+"_"+k);return m(ne,[],T)}function x(y,E,k,T){if(!y)return e.emptyArray;var ne=e.isIdentifier(y)&&E.originalTypeMap.get(e.getNodeId(y).toString()),O=ne||E.checker.getTypeAtLocation(y);return e.isCallExpression(y)&&e.hasPropertyAccessExpressionWithName(y,"then")&&O&&!!E.checker.getPromisedTypeOfPromise(O)?X(y,E,k,T):e.isCallExpression(y)&&e.hasPropertyAccessExpressionWithName(y,"catch")&&O&&!!E.checker.getPromisedTypeOfPromise(O)?C(y,E,T):e.isPropertyAccessExpression(y)?x(y.expression,E,k,T):O&&E.checker.getPromisedTypeOfPromise(O)?Q(y,E,T):(Ge=!1,e.emptyArray)}function C(y,E,k){var T=y.arguments[0],ne=be(T,E),O=E.setOfExpressionsToReturn.get(e.getNodeId(y).toString()),Y;k&&!O&&(I(k)?(Y=k,E.synthNamesMap.forEach(function(j,Pe){if(j.identifier.text===k.identifier.text){var a=h(k);E.synthNamesMap.set(Pe,a)}})):Y=m(e.createOptimisticUniqueName("result"),k.types),Y.numberOfAssignmentsOriginal=2,E.constIdentifiers.some(function(j){return j.text===Y.identifier.text})&&E.constIdentifiers.push(h(Y).identifier));var pe=e.createBlock(x(y.expression,E,y,Y)),S=se(T,Y,ne,y,E),v=ne?I(ne)?ne.identifier.text:ne.bindingPattern:"e",U=e.createVariableDeclaration(v),ue=e.createCatchClause(U,e.createBlock(S)),De,Z;if(Y&&!O){Z=e.getSynthesizedDeepClone(Y.identifier);var Re=Y.types,we=E.checker.getUnionType(Re,2),He=E.isInJSFile?void 0:E.checker.typeToTypeNode(we),ve=[e.createVariableDeclaration(Z,He)];De=e.createVariableStatement(void 0,e.createVariableDeclarationList(ve,1))}var je=e.createTry(pe,ue,void 0),w=k&&Z&&D(k)&&e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepCloneWithRenames(k.bindingPattern),void 0,Z)],2));return e.compact([De,je,w])}function P(y){return e.isIdentifier(y)?[y.text]:e.flatMap(y.elements,function(E){return e.isOmittedExpression(E)?[]:P(E.name)})}function h(y){var E=e.createOptimisticUniqueName(y.identifier.text);return m(E)}function X(y,E,k,T){var ne=y.arguments,O=ne[0],Y=ne[1];if(!O)return x(y.expression,E,k);var pe=be(O,E),S=se(O,T,pe,y,E);if(Y){var v=be(Y,E),U=e.createBlock(x(y.expression,E,y,pe).concat(S)),ue=se(Y,T,v,y,E),De=v?I(v)?v.identifier.text:v.bindingPattern:"e",Z=e.createVariableDeclaration(De),Re=e.createCatchClause(Z,e.createBlock(ue));return[e.createTry(U,Re,void 0)]}return x(y.expression,E,y,pe).concat(S)}function $(y,E){var k=P(K(y)),T=E.some(function(ne){return e.contains(k,ne.text)});return T?2:1}function Q(y,E,k){var T=E.setOfExpressionsToReturn.get(e.getNodeId(y).toString()),ne=y.original?y.original.parent:y.parent;return k&&!T&&(!ne||e.isPropertyAccessExpression(ne))?z(k,e.createAwait(y),E):!k&&!T&&(!ne||e.isPropertyAccessExpression(ne))?[e.createStatement(e.createAwait(y))]:[e.createReturn(e.getSynthesizedDeepClone(y))]}function z(y,E,k){return!y||R(y)?[e.createStatement(E)]:I(y)&&y.types.length<y.numberOfAssignmentsOriginal?[e.createStatement(e.createAssignment(e.getSynthesizedDeepClone(y.identifier),E))]:[e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(K(y)),void 0,E)],$(y,k.constIdentifiers)))]}function se(y,E,k,T,ne){var O=ne.setOfExpressionsToReturn.get(e.getNodeId(T).toString());switch(y.kind){case 99:break;case 75:if(!k)break;var Y=e.createCall(e.getSynthesizedDeepClone(y),void 0,I(k)?[k.identifier]:[]);if(O)return[e.createReturn(Y)];var pe=ne.originalTypeMap.get(e.getNodeId(y).toString())||ne.checker.getTypeAtLocation(y),S=ne.checker.getSignaturesOfType(pe,0);if(!S.length){Ge=!1;break}var v=S[0].getReturnType(),U=z(E,e.createAwait(Y),ne);return E&&E.types.push(v),U;case 200:case 201:{var ue=y.body;if(e.isBlock(ue)){for(var De=[],Z=!1,Re=0,we=ue.statements;Re<we.length;Re++){var He=we[Re];e.isReturnStatement(He)&&(Z=!0),e.isReturnStatementWithFixablePromiseHandler(He)?De=De.concat(q(ne,[He],E)):De.push(He)}return O?De.map(function(In){return e.getSynthesizedDeepClone(In)}):H(De,E,ne,Z)}else{var ve=e.isFixablePromiseHandler(ue)?[e.createReturn(ue)]:e.emptyArray,je=q(ne,ve,E);if(je.length>0)return je;var w=ne.checker.getTypeAtLocation(y),j=G(w,ne.checker).getReturnType(),Pe=e.getSynthesizedDeepClone(ue),a=ne.checker.getPromisedTypeOfPromise(j)?e.createAwait(Pe):Pe;if(O)return[e.createReturn(a)];var Ze=z(E,a,ne);return E&&E.types.push(j),Ze}}default:Ge=!1;break}return e.emptyArray}function G(y,E){var k=E.getSignaturesOfType(y,0);return e.lastOrUndefined(k)}function H(y,E,k,T){for(var ne=[],O=0,Y=y;O<Y.length;O++){var pe=Y[O];if(e.isReturnStatement(pe)){if(pe.expression){var S=Oe(pe.expression,k.checker)?e.createAwait(pe.expression):pe.expression;E===void 0?ne.push(e.createExpressionStatement(S)):ne.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(K(E),void 0,S)],$(E,k.constIdentifiers))))}}else ne.push(e.getSynthesizedDeepClone(pe))}return!T&&E!==void 0&&ne.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(K(E),void 0,e.createIdentifier("undefined"))],$(E,k.constIdentifiers)))),ne}function q(y,E,k){for(var T=[],ne=0,O=E;ne<O.length;ne++){var Y=O[ne];e.forEachChild(Y,function pe(S){if(e.isCallExpression(S)){var v=x(S,y,S,k);if(T=T.concat(v),T.length>0)return}else e.isFunctionLike(S)||e.forEachChild(S,pe)})}return T}function be(y,E){var k=0,T=[],ne;if(e.isFunctionLikeDeclaration(y)){if(y.parameters.length>0){var O=y.parameters[0].name;ne=Y(O)}}else e.isIdentifier(y)&&(ne=pe(y));if(!ne||"identifier"in ne&&ne.identifier.text==="undefined")return;return ne;function Y(U){if(e.isIdentifier(U))return pe(U);var ue=e.flatMap(U.elements,function(De){return e.isOmittedExpression(De)?[]:[Y(De.name)]});return _(U,ue)}function pe(U){var ue=v(U),De=S(ue);if(!De)return m(U,T,k);var Z=E.synthNamesMap.get(e.getSymbolId(De).toString());return Z||m(U,T,k)}function S(U){return U.symbol?U.symbol:E.checker.getSymbolAtLocation(U)}function v(U){return U.original?U.original:U}}function R(y){return y?I(y)?!y.identifier.text:e.every(y.elements,R):!0}function K(y){return I(y)?y.identifier:y.bindingPattern}function m(y,E,k){return E===void 0&&(E=[]),k===void 0&&(k=0),{kind:0,identifier:y,types:E,numberOfAssignmentsOriginal:k}}function _(y,E,k){return E===void 0&&(E=e.emptyArray),k===void 0&&(k=[]),{kind:1,bindingPattern:y,elements:E,types:k}}function I(y){return y.kind===0}function D(y){return y.kind===1}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){M.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(m){var _=m.sourceFile,I=m.program,D=m.preferences,y=e.textChanges.ChangeTracker.with(m,function(E){var k=Ee(_,I.getTypeChecker(),E,I.getCompilerOptions().target,e.getQuotePreference(_,D));if(k)for(var T=0,ne=I.getSourceFiles();T<ne.length;T++){var O=ne[T];qe(O,_,E,e.getQuotePreference(O,D))}});return[M.createCodeFixActionNoFixId("convertToEs6Module",y,e.Diagnostics.Convert_to_ES6_module)]}});function qe(m,_,I,D){for(var y=0,E=m.imports;y<E.length;y++){var k=E[y],T=e.getResolvedModule(m,k.text);if(!T||T.resolvedFileName!==_.fileName)continue;var ne=e.importFromModuleSpecifier(k);switch(ne.kind){case 252:I.replaceNode(m,ne,e.makeImport(ne.name,void 0,k,D));break;case 195:e.isRequireCall(ne,!1)&&I.replaceNode(m,ne,e.createPropertyAccess(e.getSynthesizedDeepClone(ne),"default"));break}}}function Ee(m,_,I,D,y){var E={original:Q(m),additional:e.createMap()},k=Ge(m,_,E);Be(m,k,I);for(var T=!1,ne=0,O=m.statements;ne<O.length;ne++){var Y=O[ne],pe=ee(m,Y,_,I,E,D,k,y);T=T||pe}return T}function Ge(m,_,I){var D=e.createMap();return he(m,function(y){var E=y.name,k=E.text,T=E.originalKeywordKind;!D.has(k)&&(T!==void 0&&e.isNonContextualKeyword(T)||_.resolveName(y.name.text,y,111551,!0))&&D.set(k,$("_"+k,I))}),D}function Be(m,_,I){he(m,function(D,y){if(y)return;var E=D.name.text;I.replaceNode(m,D,e.createIdentifier(_.get(E)||E))})}function he(m,_){m.forEachChild(function I(D){if(e.isPropertyAccessExpression(D)&&e.isExportsOrModuleExportsOrAlias(m,D.expression)){var y=D.parent;_(D,e.isBinaryExpression(y)&&y.left===D&&y.operatorToken.kind===62)}D.forEachChild(I)})}function ee(m,_,I,D,y,E,k,T){switch(_.kind){case 224:return f(m,_,D,I,y,E,T),!1;case 225:{var ne=_.expression;switch(ne.kind){case 195:return e.isRequireCall(ne,!0)&&D.replaceNode(m,_,e.makeImport(void 0,void 0,ne.arguments[0],T)),!1;case 208:{var O=ne.operatorToken;return O.kind===62&&Oe(m,I,ne,D,k)}}}default:return!1}}function f(m,_,I,D,y,E,k){var T=_.declarationList,ne=!1,O=e.flatMap(T.declarations,function(Y){var pe=Y.name,S=Y.initializer;if(S){if(e.isExportsOrModuleExportsOrAlias(m,S))return ne=!0,[];if(e.isRequireCall(S,!0))return ne=!0,h(m,pe,S.arguments[0],I,D,y,E,k);if(e.isPropertyAccessExpression(S)&&e.isRequireCall(S.expression,!0))return ne=!0,J(pe,S.name.text,S.expression.arguments[0],y,k)}return e.createVariableStatement(void 0,e.createVariableDeclarationList([Y],T.flags))});ne&&I.replaceNodeWithNodes(m,_,O)}function J(m,_,I,D,y){switch(m.kind){case 188:case 189:{var E=$(_,D);return[q(E,_,I,y),R(void 0,m,e.createIdentifier(E))]}case 75:return[q(m.text,_,I,y)];default:return e.Debug.assertNever(m,"Convert to ES6 module got invalid syntax form "+m.kind)}}function Oe(m,_,I,D,y){var E=I.left,k=I.right;if(!e.isPropertyAccessExpression(E))return!1;if(e.isExportsOrModuleExportsOrAlias(m,E))if(e.isExportsOrModuleExportsOrAlias(m,k))D.delete(m,I.parent);else{var T=e.isObjectLiteralExpression(k)?N(k):e.isRequireCall(k,!0)?ie(k.arguments[0],_):void 0;return T?(D.replaceNodeWithNodes(m,I.parent,T[0]),T[1]):(D.replaceRangeWithText(m,e.createRange(E.getStart(m),k.pos),"export default"),!0)}else e.isExportsOrModuleExportsOrAlias(m,E.expression)&&Te(m,I,D,y);return!1}function N(m){var _=e.mapAllOrFail(m.properties,function(I){switch(I.kind){case 162:case 163:case 280:case 281:return;case 279:return e.isIdentifier(I.name)?P(I.name.text,I.initializer):void 0;case 160:return e.isIdentifier(I.name)?G(I.name.text,[e.createToken(88)],I):void 0;default:e.Debug.assertNever(I,"Convert to ES6 got invalid prop kind "+I.kind)}});return _&&[_,!1]}function Te(m,_,I,D){var y=_.left.name.text,E=D.get(y);if(E!==void 0){var k=[R(void 0,E,_.right),K([e.createExportSpecifier(E,y)])];I.replaceNodeWithNodes(m,_.parent,k)}else C(_,m,I)}function ie(m,_){var I=m.text,D=_.getSymbolAtLocation(m),y=D?D.exports:e.emptyUnderscoreEscapedMap;return y.has("export=")?[[x(I)],!0]:y.has("default")?y.size>1?[[ce(I),x(I)],!0]:[[x(I)],!0]:[[ce(I)],!1]}function ce(m){return K(void 0,m)}function x(m){return K([e.createExportSpecifier(void 0,"default")],m)}function C(m,_,I){var D=m.left,y=m.right,E=m.parent,k=D.name.text;if((e.isFunctionExpression(y)||e.isArrowFunction(y)||e.isClassExpression(y))&&(!y.name||y.name.text===k)){I.replaceRange(_,{pos:D.getStart(_),end:y.getStart(_)},e.createToken(88),{suffix:" "}),y.name||I.insertName(_,y,k);var T=e.findChildOfKind(E,26,_);T&&I.delete(_,T)}else I.replaceNodeRangeWithNodes(_,D.expression,e.findChildOfKind(D,24,_),[e.createToken(88),e.createToken(80)],{joiner:" ",suffix:" "})}function P(m,_){var I=[e.createToken(88)];switch(_.kind){case 200:{var D=_.name;if(D&&D.text!==m)return y()}case 201:return G(m,I,_);case 213:return H(m,I,_);default:return y()}function y(){return R(I,e.createIdentifier(m),_)}}function h(m,_,I,D,y,E,k,T){switch(_.kind){case 188:{var ne=e.mapAllOrFail(_.elements,function(Y){return Y.dotDotDotToken||Y.initializer||Y.propertyName&&!e.isIdentifier(Y.propertyName)||!e.isIdentifier(Y.name)?void 0:be(Y.propertyName&&Y.propertyName.text,Y.name.text)});if(ne)return[e.makeImport(void 0,ne,I,T)]}case 189:{var O=$(M.moduleSpecifierToValidIdentifier(I.text,k),E);return[e.makeImport(e.createIdentifier(O),void 0,I,T),R(void 0,e.getSynthesizedDeepClone(_),e.createIdentifier(O))]}case 75:return X(m,_,I,D,y,E,T);default:return e.Debug.assertNever(_,"Convert to ES6 module got invalid name kind "+_.kind)}}function X(m,_,I,D,y,E,k){for(var T=y.getSymbolAtLocation(_),ne=e.createMap(),O=!1,Y=0,pe=E.original.get(_.text);Y<pe.length;Y++){var S=pe[Y];if(y.getSymbolAtLocation(S)!==T||S===_)continue;var v=S.parent;if(e.isPropertyAccessExpression(v)){var U=v.expression,ue=v.name.text;e.Debug.assert(U===S,"Didn't expect expression === use");var De=ne.get(ue);De===void 0&&(De=$(ue,E),ne.set(ue,De)),D.replaceNode(m,v,e.createIdentifier(De))}else O=!0}var Z=ne.size===0?void 0:e.arrayFrom(e.mapIterator(ne.entries(),function(Re){var we=Re[0],He=Re[1];return e.createImportSpecifier(we===He?void 0:e.createIdentifier(we),e.createIdentifier(He))}));return Z||(O=!0),[e.makeImport(O?e.getSynthesizedDeepClone(_):void 0,Z,I,k)]}function $(m,_){for(;_.original.has(m)||_.additional.has(m);)m="_"+m;return _.additional.set(m,!0),m}function Q(m){var _=e.createMultiMap();return z(m,function(I){return _.add(I.text,I)}),_}function z(m,_){e.isIdentifier(m)&&se(m)&&_(m),m.forEachChild(function(I){return z(I,_)})}function se(m){var _=m.parent;switch(_.kind){case 193:return _.name!==m;case 190:return _.propertyName!==m;case 257:return _.propertyName!==m;default:return!0}}function G(m,_,I){return e.createFunctionDeclaration(e.getSynthesizedDeepClones(I.decorators),e.concatenate(_,e.getSynthesizedDeepClones(I.modifiers)),e.getSynthesizedDeepClone(I.asteriskToken),m,e.getSynthesizedDeepClones(I.typeParameters),e.getSynthesizedDeepClones(I.parameters),e.getSynthesizedDeepClone(I.type),e.convertToFunctionBody(e.getSynthesizedDeepClone(I.body)))}function H(m,_,I){return e.createClassDeclaration(e.getSynthesizedDeepClones(I.decorators),e.concatenate(_,e.getSynthesizedDeepClones(I.modifiers)),m,e.getSynthesizedDeepClones(I.typeParameters),e.getSynthesizedDeepClones(I.heritageClauses),e.getSynthesizedDeepClones(I.members))}function q(m,_,I,D){return _==="default"?e.makeImport(e.createIdentifier(m),void 0,I,D):e.makeImport(void 0,[be(_,m)],I,D)}function be(m,_){return e.createImportSpecifier(m!==void 0&&m!==_?e.createIdentifier(m):void 0,e.createIdentifier(_))}function R(m,_,I){return e.createVariableStatement(m,e.createVariableDeclarationList([e.createVariableDeclaration(_,void 0,I)],2))}function K(m,_){return e.createExportDeclaration(void 0,void 0,m&&e.createNamedExports(m),_===void 0?void 0:e.createLiteral(_))}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="correctQualifiedNameToIndexedAccessType",Ee=[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(he){var ee=Ge(he.sourceFile,he.span.start);if(!ee)return;var f=e.textChanges.ChangeTracker.with(he,function(Oe){return Be(Oe,he.sourceFile,ee)}),J=ee.left.text+'["'+ee.right.text+'"]';return[M.createCodeFixAction(qe,f,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,J],qe,e.Diagnostics.Rewrite_all_as_indexed_access_types)]},fixIds:[qe],getAllCodeActions:function(he){return M.codeFixAll(he,Ee,function(ee,f){var J=Ge(f.file,f.start);J&&Be(ee,f.file,J)})}});function Ge(he,ee){var f=e.findAncestor(e.getTokenAtPosition(he,ee),e.isQualifiedName);return e.Debug.assert(!!f,"Expected position to be owned by a qualified name."),e.isIdentifier(f.left)?f:void 0}function Be(he,ee,f){var J=f.right.text,Oe=e.createIndexedAccessTypeNode(e.createTypeReferenceNode(f.left,void 0),e.createLiteralTypeNode(e.createLiteral(J)));he.replaceNode(ee,f,Oe)}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],Ee="fixClassIncorrectlyImplementsInterface";M.registerCodeFix({errorCodes:qe,getCodeActions:function(f){var J=f.sourceFile,Oe=f.span,N=Ge(J,Oe.start);return e.mapDefined(e.getClassImplementsHeritageClauseElements(N),function(Te){var ie=e.textChanges.ChangeTracker.with(f,function(ce){return he(f,Te,J,N,ce,f.preferences)});return ie.length===0?void 0:M.createCodeFixAction(Ee,ie,[e.Diagnostics.Implement_interface_0,Te.getText(J)],Ee,e.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[Ee],getAllCodeActions:function(f){var J=e.createMap();return M.codeFixAll(f,qe,function(Oe,N){var Te=Ge(N.file,N.start);if(e.addToSeen(J,e.getNodeId(Te)))for(var ie=0,ce=e.getClassImplementsHeritageClauseElements(Te);ie<ce.length;ie++){var x=ce[ie];he(f,x,N.file,Te,Oe,f.preferences)}})}});function Ge(f,J){return e.Debug.assertDefined(e.getContainingClass(e.getTokenAtPosition(f,J)),"There should be a containing class")}function Be(f){return!(e.getModifierFlags(f.valueDeclaration)&8)}function he(f,J,Oe,N,Te,ie){var ce=f.program.getTypeChecker(),x=ee(N,ce),C=ce.getTypeAtLocation(J),P=ce.getPropertiesOfType(C),h=P.filter(e.and(Be,function(Q){return!x.has(Q.escapedName)})),X=ce.getTypeAtLocation(N);X.getNumberIndexType()||$(C,1),X.getStringIndexType()||$(C,0),M.createMissingMemberNodes(N,h,f,ie,function(Q){return Te.insertNodeAtClassStart(Oe,N,Q)});function $(Q,z){var se=ce.getIndexInfoOfType(Q,z);se&&Te.insertNodeAtClassStart(Oe,N,ce.indexInfoToIndexSignatureDeclaration(se,z,N,void 0,M.getNoopSymbolTrackerWithResolver(f)))}}function ee(f,J){var Oe=e.getEffectiveBaseTypeNode(f);if(!Oe)return e.createSymbolTable();var N=J.getTypeAtLocation(Oe),Te=J.getPropertiesOfType(N);return e.createSymbolTable(Te.filter(Be))}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){M.importFixId="fixMissingImport";var qe=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code];M.registerCodeFix({errorCodes:qe,getCodeActions:function(v){var U=v.errorCode,ue=v.preferences,De=v.sourceFile,Z=v.span,Re=P(v,U,Z.start);if(!Re)return;var we=Re.fixes,He=Re.symbolName,ve=e.getQuotePreference(De,ue);return we.map(function(je){return R(v,De,He,je,ve)})},fixIds:[M.importFixId],getAllCodeActions:function(v){var U=v.sourceFile,ue=v.preferences,De=[],Z=[],Re=e.createMap(),we=e.createMap();return M.eachDiagnostic(v,qe,function(He){var ve=P(v,He.code,He.start);if(!ve||!ve.fixes.length)return;var je=ve.fixes,w=ve.symbolName,j=e.first(je);switch(j.kind){case 0:De.push(j);break;case 1:Z.push(j);break;case 2:{var Pe=j.importClause,a=j.importKind,Ze=String(e.getNodeId(Pe)),In=Re.get(Ze);In||Re.set(Ze,In={importClause:Pe,defaultImport:void 0,namedImports:[]}),a===0?e.pushIfUnique(In.namedImports,w):(e.Debug.assert(In.defaultImport===void 0||In.defaultImport===w,"(Add to Existing) Default import should be missing or match symbolName"),In.defaultImport=w);break}case 3:{var et=j.moduleSpecifier,a=j.importKind,In=we.get(et);In||we.set(et,In={defaultImport:void 0,namedImports:[],namespaceLikeImport:void 0});switch(a){case 1:e.Debug.assert(In.defaultImport===void 0||In.defaultImport===w,"(Add new) Default import should be missing or match symbolName"),In.defaultImport=w;break;case 0:e.pushIfUnique(In.namedImports,w);break;case 3:case 2:e.Debug.assert(In.namespaceLikeImport===void 0||In.namespaceLikeImport.name===w,"Namespacelike import shoudl be missing or match symbolName"),In.namespaceLikeImport={importKind:a,name:w};break}break}default:e.Debug.assertNever(j,"fix wasn't never - got kind "+j.kind)}}),M.createCombinedCodeActions(e.textChanges.ChangeTracker.with(v,function(He){for(var ve=e.getQuotePreference(U,ue),je=0,w=De;je<w.length;je++){var j=w[je];_(He,U,j)}for(var Pe=0,a=Z;Pe<a.length;Pe++){var j=a[Pe];I(He,U,j,ve)}Re.forEach(function(Ze){var In=Ze.importClause,et=Ze.defaultImport,ae=Ze.namedImports;m(He,U,In,et,ae)}),we.forEach(function(Ze,In){y(He,U,In,ve,Ze)})}))}});var Ee;(function(v){v[v.UseNamespace=0]="UseNamespace",v[v.ImportType=1]="ImportType",v[v.AddToExisting=2]="AddToExisting",v[v.AddNew=3]="AddNew"})(Ee||(Ee={}));var Ge;(function(v){v[v.Named=0]="Named",v[v.Default=1]="Default",v[v.Namespace=2]="Namespace",v[v.Equals=3]="Equals",v[v.ConstEquals=4]="ConstEquals"})(Ge||(Ge={}));function Be(v,U,ue,De,Z,Re,we,He,ve){var je=ee(ue,v,U,De,ue,Re.getCompilerOptions(),Re.getTypeChecker(),Re.getSourceFiles());e.Debug.assert(je.some(function(Pe){return Pe.moduleSymbol===U}),"Some exportInfo should match the specified moduleSymbol");var w=e.first(ce(Re,ue,He,je,Z,ve)).moduleSpecifier,j=e.first(J(je,De,He,Re,ue,Z,ve));return{moduleSpecifier:w,codeAction:he(R({host:Z,formatContext:we,preferences:ve},ue,De,j,e.getQuotePreference(ue,ve)))}}M.getImportCompletionAction=Be;function he(v){var U=v.description,ue=v.changes,De=v.commands;return{description:U,changes:ue,commands:De}}function ee(v,U,ue,De,Z,Re,we,He){var ve=[];return ne(we,He,function(je,w){if(w&&je!==ue&&e.startsWith(Z.fileName,e.getDirectoryPath(w.fileName)))return;var j=se(v,je,we,Re);j&&j.name===De&&e.skipAlias(j.symbol,we)===U&&ve.push({moduleSymbol:je,importKind:j.kind,exportedSymbolIsTypeOnly:f(j.symbol,we)});for(var Pe=0,a=we.getExportsOfModule(je);Pe<a.length;Pe++){var Ze=a[Pe];Ze.name===De&&e.skipAlias(Ze,we)===U&&ve.push({moduleSymbol:je,importKind:0,exportedSymbolIsTypeOnly:f(Ze,we)})}}),ve}function f(v,U){return!(e.skipAlias(v,U).flags&111551)}function J(v,U,ue,De,Z,Re,we){var He=De.getTypeChecker(),ve=e.flatMap(v,function(Pe){return ie(Pe,He,Z)}),je=ue===void 0?void 0:Oe(ve,U,ue,He),w=N(ve),j=w?[w]:x(v,ve,De,Z,ue,Re,we);return Tr(je?[je]:e.emptyArray,j)}function Oe(v,U,ue,De){return e.firstDefined(v,function(Z){var Re=Z.declaration,we=Te(Re);if(we){var He=De.getAliasedSymbol(De.getSymbolAtLocation(we));if(He&&He.exports.has(e.escapeLeadingUnderscores(U)))return{kind:0,namespacePrefix:we.text,position:ue}}})}function N(v){return e.firstDefined(v,function(U){var ue=U.declaration,De=U.importKind;if(ue.kind!==253)return;var Z=ue.importClause;if(!Z)return;var Re=Z.name,we=Z.namedBindings;return De===1&&!Re||De===0&&(!we||we.kind===256)?{kind:2,importClause:Z,importKind:De}:void 0})}function Te(v){if(v.kind===253){var U=v.importClause&&e.isImportClause(v.importClause)&&v.importClause.namedBindings;return U&&U.kind===255?U.name:void 0}else return v.name}function ie(v,U,ue){var De=v.moduleSymbol,Z=v.importKind,Re=v.exportedSymbolIsTypeOnly;return Re&&e.isSourceFileJS(ue)?e.emptyArray:e.mapDefined(ue.imports,function(we){var He=e.importFromModuleSpecifier(we);return(He.kind===253||He.kind===252)&&U.getSymbolAtLocation(we)===De?{declaration:He,importKind:Z}:void 0})}function ce(v,U,ue,De,Z,Re){var we=e.isSourceFileJS(U),He=S(U,v,Z).allowsImportingSpecifier,ve=e.flatMap(De,function(je){var w=je.moduleSymbol,j=je.importKind,Pe=je.exportedSymbolIsTypeOnly;return e.moduleSpecifiers.getModuleSpecifiers(w,v.getCompilerOptions(),U,Z,v.getSourceFiles(),Re,v.redirectTargetsMap).map(function(a){return Pe&&we?{kind:1,moduleSpecifier:a,position:e.Debug.assertDefined(ue,"position should be defined")}:{kind:3,moduleSpecifier:a,importKind:j}})});return e.sort(ve,function(je,w){var j=He(je.moduleSpecifier),Pe=He(w.moduleSpecifier);return j&&!Pe?-1:Pe&&!j?1:je.moduleSpecifier.length-w.moduleSpecifier.length})}function x(v,U,ue,De,Z,Re,we){var He=e.firstDefined(U,C);return He?[He]:ce(ue,De,Z,v,Re,we)}function C(v){var U=v.declaration,ue=v.importKind,De=U.kind===253?U.moduleSpecifier:U.moduleReference.kind===263?U.moduleReference.expression:void 0;return De&&e.isStringLiteral(De)?{kind:3,moduleSpecifier:De.text,importKind:ue}:void 0}function P(v,U,ue){var De=e.getTokenAtPosition(v.sourceFile,ue),Z=U===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?h(v,De):e.isIdentifier(De)?Q(v,De):void 0;return Z&&Rr(Rr({},Z),{fixes:e.sort(Z.fixes,function(Re,we){return Re.kind-we.kind})})}function h(v,U){var ue=v.sourceFile,De=v.program,Z=v.host,Re=v.preferences,we=De.getTypeChecker(),He=X(U,we);if(!He)return;var ve=we.getAliasedSymbol(He),je=He.name,w=[{moduleSymbol:ve,importKind:$(ue,De.getCompilerOptions()),exportedSymbolIsTypeOnly:!1}],j=J(w,je,e.isIdentifier(U)?U.getStart(ue):void 0,De,ue,Z,Re);return{fixes:j,symbolName:je}}function X(v,U){var ue=e.isIdentifier(v)?U.getSymbolAtLocation(v):void 0;if(e.isUMDExportSymbol(ue))return ue;var De=v.parent;return e.isJsxOpeningLikeElement(De)&&De.tagName===v||e.isJsxOpeningFragment(De)?e.tryCast(U.resolveName(U.getJsxNamespace(De),e.isJsxOpeningLikeElement(De)?v:De,111551,!1),e.isUMDExportSymbol):void 0}function $(v,U){if(e.getAllowSyntheticDefaultImports(U))return 1;var ue=e.getEmitModuleKind(U);switch(ue){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(v)?e.isExternalModule(v)?2:4:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;default:return e.Debug.assertNever(ue,"Unexpected moduleKind "+ue)}}function Q(v,U){var ue=v.sourceFile,De=v.program,Z=v.cancellationToken,Re=v.host,we=v.preferences,He=De.getTypeChecker(),ve=e.isJsxOpeningLikeElement(U.parent)&&U.parent.tagName===U&&(e.isIntrinsicJsxName(U.text)||He.resolveName(U.text,U,67108863,!1))?He.getJsxNamespace(ue):U.text;e.Debug.assert(ve!=="default","'default' isn't a legal identifier and couldn't occur here");var je=z(ve,e.getMeaningFromLocation(U),Z,ue,He,De,Re),w=e.arrayFrom(e.flatMapIterator(je.entries(),function(j){var Pe=j[0],a=j[1];return J(a,ve,U.getStart(ue),De,ue,Re,we)}));return{fixes:w,symbolName:ve}}function z(v,U,ue,De,Z,Re,we){var He=e.createMultiMap();function ve(je,w,j){He.add(e.getUniqueSymbolId(w,Z).toString(),{moduleSymbol:je,importKind:j,exportedSymbolIsTypeOnly:f(w,Z)})}return T(Re,we,De,!0,function(je){ue.throwIfCancellationRequested();var w=se(De,je,Z,Re.getCompilerOptions());w&&w.name===v&&k(w.symbolForMeaning,U)&&ve(je,w.symbol,w.kind);var j=Z.tryGetMemberInModuleExportsAndProperties(v,je);j&&k(j,U)&&ve(je,j,0)}),He}function se(v,U,ue,De){var Z=G(v,U,ue,De);if(!Z)return;var Re=Z.symbol,we=Z.kind,He=q(Re,U,ue,De);return He&&Rr({symbol:Re,kind:we},He)}function G(v,U,ue,De){var Z=ue.tryGetMemberInModuleExports("default",U);if(Z)return{symbol:Z,kind:1};var Re=ue.resolveExternalModuleSymbol(U);return Re===U?void 0:{symbol:Re,kind:H(v,De,ue)}}function H(v,U,ue){if(e.getAllowSyntheticDefaultImports(U)&&e.getEmitModuleKind(U)>=e.ModuleKind.ES2015)return 1;if(e.isInJSFile(v))return e.isExternalModule(v)?1:4;for(var De=0,Z=v.statements;De<Z.length;De++){var Re=Z[De];if(e.isImportEqualsDeclaration(Re))return 3;if(e.isImportDeclaration(Re)&&Re.importClause&&Re.importClause.name){var we=ue.getImmediateAliasedSymbol(Re.importClause.symbol);if(we&&we.name!=="default")return 1}}return 3}function q(v,U,ue,De){var Z=e.getLocalSymbolForExportDefault(v);if(Z)return{symbolForMeaning:Z,name:Z.name};var Re=be(v);if(Re!==void 0)return{symbolForMeaning:v,name:Re};if(v.flags&2097152){var we=ue.getImmediateAliasedSymbol(v);return we&&q(we,e.Debug.assertDefined(we.parent,"Alias targets of default exports must have a parent"),ue,De)}return v.escapedName!=="default"&&v.escapedName!=="export="?{symbolForMeaning:v,name:v.getName()}:{symbolForMeaning:v,name:Y(U,De.target)}}function be(v){return v.declarations&&e.firstDefined(v.declarations,function(U){if(e.isExportAssignment(U)){if(e.isIdentifier(U.expression))return U.expression.text}else if(e.isExportSpecifier(U))return e.Debug.assert(U.name.text==="default","Expected the specifier to be a default export"),U.propertyName&&U.propertyName.text})}function R(v,U,ue,De,Z){var Re,we=e.textChanges.ChangeTracker.with(v,function(He){Re=K(He,U,ue,De,Z)});return M.createCodeFixAction("import",we,Re,M.importFixId,e.Diagnostics.Add_all_missing_imports)}function K(v,U,ue,De,Z){switch(De.kind){case 0:return _(v,U,De),[e.Diagnostics.Change_0_to_1,ue,De.namespacePrefix+"."+ue];case 1:return I(v,U,De,Z),[e.Diagnostics.Change_0_to_1,ue,D(De.moduleSpecifier,Z)+ue];case 2:{var Re=De.importClause,we=De.importKind;m(v,U,Re,we===1?ue:void 0,we===0?[ue]:e.emptyArray);var He=e.stripQuotes(Re.parent.moduleSpecifier.getText());return[we===1?e.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:e.Diagnostics.Add_0_to_existing_import_declaration_from_1,ue,He]}case 3:{var we=De.importKind,ve=De.moduleSpecifier;return y(v,U,ve,Z,we===1?{defaultImport:ue,namedImports:e.emptyArray,namespaceLikeImport:void 0}:we===0?{defaultImport:void 0,namedImports:[ue],namespaceLikeImport:void 0}:{defaultImport:void 0,namedImports:e.emptyArray,namespaceLikeImport:{importKind:we,name:ue}}),[we===1?e.Diagnostics.Import_default_0_from_module_1:e.Diagnostics.Import_0_from_module_1,ue,ve]}default:return e.Debug.assertNever(De,"Unexpected fix kind "+De.kind)}}function m(v,U,ue,De,Z){if(De&&(e.Debug.assert(!ue.name,"Default imports can't have names"),v.insertNodeAt(U,ue.getStart(U),e.createIdentifier(De),{suffix:", "})),Z.length){var Re=Z.map(function(w){return e.createImportSpecifier(void 0,e.createIdentifier(w))});if(ue.namedBindings&&e.cast(ue.namedBindings,e.isNamedImports).elements.length)for(var we=0,He=Re;we<He.length;we++){var ve=He[we];v.insertNodeInListAfter(U,e.last(e.cast(ue.namedBindings,e.isNamedImports).elements),ve)}else if(Re.length){var je=e.createNamedImports(Re);ue.namedBindings?v.replaceNode(U,ue.namedBindings,je):v.insertNodeAfter(U,e.Debug.assertDefined(ue.name,"Named import specifiers must have names"),je)}}}function _(v,U,ue){var De=ue.namespacePrefix,Z=ue.position;v.insertText(U,Z,De+".")}function I(v,U,ue,De){var Z=ue.moduleSpecifier,Re=ue.position;v.insertText(U,Re,D(Z,De))}function D(v,U){var ue=e.getQuoteFromPreference(U);return"import("+ue+v+ue+")."}function y(v,U,ue,De,Z){var Re=Z.defaultImport,we=Z.namedImports,He=Z.namespaceLikeImport,ve=e.makeStringLiteral(ue,De);(Re!==void 0||we.length)&&e.insertImport(v,U,e.makeImport(Re===void 0?void 0:e.createIdentifier(Re),we.map(function(je){return e.createImportSpecifier(void 0,e.createIdentifier(je))}),ue,De)),He&&e.insertImport(v,U,He.importKind===3?e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(He.name),e.createExternalModuleReference(ve)):He.importKind===4?E(He.name,ve):e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(He.name))),ve))}function E(v,U){return e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createIdentifier(v),void 0,e.createCall(e.createIdentifier("require"),void 0,[U]))],2))}function k(v,U){var ue=v.declarations;return e.some(ue,function(De){return!!(e.getMeaningFromDeclaration(De)&U)})}function T(v,U,ue,De,Z){var Re=0,we=De&&S(ue,v,U),He=v.getSourceFiles(),ve=U.getGlobalTypingsCacheLocation&&U.getGlobalTypingsCacheLocation();ne(v.getTypeChecker(),He,function(je,w){w===void 0?!we||we.allowsImportingAmbientModule(je,He)?Z(je):we&&Re++:w&&w!==ue&&O(ue.fileName,w.fileName,e.hostGetCanonicalFileName(U),ve)&&(!we||we.allowsImportingSourceFile(w,He)?Z(je):we&&Re++)}),U.log&&U.log("forEachExternalModuleToImportFrom: filtered out "+Re+" modules by package.json contents")}M.forEachExternalModuleToImportFrom=T;function ne(v,U,ue){for(var De=0,Z=v.getAmbientModules();De<Z.length;De++){var Re=Z[De];ue(Re,void 0)}for(var we=0,He=U;we<He.length;we++){var ve=He[we];e.isExternalOrCommonJsModule(ve)&&ue(v.getMergedSymbol(ve.symbol),ve)}}function O(v,U,ue,De){var Z=e.forEachAncestorDirectory(U,function(we){return e.getBaseFileName(we)==="node_modules"?we:void 0}),Re=Z&&e.getDirectoryPath(ue(Z));return Re===void 0||e.startsWith(ue(v),Re)||!!De&&e.startsWith(ue(De),Re)}function Y(v,U){return pe(e.removeFileExtension(e.stripQuotes(v.name)),U)}M.moduleSymbolToValidIdentifier=Y;function pe(v,U){var ue=e.getBaseFileName(e.removeSuffix(v,"/index")),De="",Z=!0,Re=ue.charCodeAt(0);e.isIdentifierStart(Re,U)?De+=String.fromCharCode(Re):Z=!1;for(var we=1;we<ue.length;we++){var He=ue.charCodeAt(we),ve=e.isIdentifierPart(He,U);if(ve){var je=String.fromCharCode(He);Z||(je=je.toUpperCase()),De+=je}Z=ve}return e.isStringANonContextualKeyword(De)?"_"+De:De||"_"}M.moduleSpecifierToValidIdentifier=pe;function S(v,U,ue){var De=ue.getPackageJsonsVisibleToFile&&ue.getPackageJsonsVisibleToFile(v.fileName)||e.getPackageJsonsVisibleToFile(v.fileName,ue),Z=1|2|8,Re={directoryExists:e.maybeBind(ue,ue.directoryExists),fileExists:e.maybeBind(ue,ue.fileExists),getCurrentDirectory:e.maybeBind(ue,ue.getCurrentDirectory),readFile:e.maybeBind(ue,ue.readFile),useCaseSensitiveFileNames:e.maybeBind(ue,ue.useCaseSensitiveFileNames),getProbableSymlinks:e.maybeBind(ue,ue.getProbableSymlinks)||U.getProbableSymlinks,getGlobalTypingsCacheLocation:e.maybeBind(ue,ue.getGlobalTypingsCacheLocation)},we;return{allowsImportingAmbientModule:ve,allowsImportingSourceFile:je,allowsImportingSpecifier:w};function He(Ze){for(var In=a(Ze),et=0,ae=De;et<ae.length;et++){var fe=ae[et];if(fe.has(In,Z)||fe.has(e.getTypesPackageName(In),Z))return!0}return!1}function ve(Ze,In){if(!De.length)return!0;var et=Ze.valueDeclaration.getSourceFile(),ae=Pe(et.fileName,In);if(typeof ae=="undefined")return!0;var fe=e.stripQuotes(Ze.getName());return j(fe)?!0:He(ae)||He(fe)}function je(Ze,In){if(!De.length)return!0;var et=Pe(Ze.fileName,In);return et?He(et):!0}function w(Ze){return!De.length||j(Ze)||(e.pathIsRelative(Ze)||e.isRootedDiskPath(Ze))?!0:He(Ze)}function j(Ze){return!!(e.isSourceFileJS(v)&&e.JsTyping.nodeCoreModules.has(Ze)&&(we===void 0&&(we=e.consumesNodeCoreModules(v)),we))}function Pe(Ze,In){if(!e.stringContains(Ze,"node_modules"))return;var et=e.moduleSpecifiers.getNodeModulesPackageName(ue.getCompilationSettings(),v.path,Ze,Re,In,U.redirectTargetsMap);if(!et)return;if(!e.pathIsRelative(et)&&!e.isRootedDiskPath(et))return a(et)}function a(Ze){var In=e.getPathComponents(e.getPackageNameFromTypesPackageName(Ze)).slice(1);return e.startsWith(In[0],"@")?In[0]+"/"+In[1]:In[0]}}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="fixSpelling",Ee=[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.Module_0_has_no_exported_member_1_Did_you_mean_2.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(f){var J=f.sourceFile,Oe=Ge(J,f.span.start,f);if(!Oe)return;var N=Oe.node,Te=Oe.suggestion,ie=f.host.getCompilationSettings().target,ce=e.textChanges.ChangeTracker.with(f,function(x){return Be(x,J,N,Te,ie)});return[M.createCodeFixAction("spelling",ce,[e.Diagnostics.Change_spelling_to_0,Te],qe,e.Diagnostics.Fix_all_detected_spelling_errors)]},fixIds:[qe],getAllCodeActions:function(f){return M.codeFixAll(f,Ee,function(J,Oe){var N=Ge(Oe.file,Oe.start,f),Te=f.host.getCompilationSettings().target;N&&Be(J,f.sourceFile,N.node,N.suggestion,Te)})}});function Ge(f,J,Oe){var N=e.getTokenAtPosition(f,J),Te=Oe.program.getTypeChecker(),ie;if(e.isPropertyAccessExpression(N.parent)&&N.parent.name===N){e.Debug.assert(N.kind===75,"Expected an identifier for spelling (property access)");var ce=Te.getTypeAtLocation(N.parent.expression);ie=Te.getSuggestionForNonexistentProperty(N,ce)}else if(e.isImportSpecifier(N.parent)&&N.parent.name===N){e.Debug.assert(N.kind===75,"Expected an identifier for spelling (import)");var x=e.findAncestor(N,e.isImportDeclaration),C=ee(f,Oe,x);C&&C.symbol&&(ie=Te.getSuggestionForNonexistentExport(N,C.symbol))}else{var P=e.getMeaningFromLocation(N),h=e.getTextOfNode(N);e.Debug.assert(h!==void 0,"name should be defined"),ie=Te.getSuggestionForNonexistentSymbol(N,h,he(P))}return ie===void 0?void 0:{node:N,suggestion:ie}}function Be(f,J,Oe,N,Te){!e.isIdentifierText(N,Te)&&e.isPropertyAccessExpression(Oe.parent)?f.replaceNode(J,Oe.parent,e.createElementAccess(Oe.parent.expression,e.createLiteral(N))):f.replaceNode(J,Oe,e.createIdentifier(N))}function he(f){var J=0;return f&4&&(J|=1920),f&2&&(J|=788968),f&1&&(J|=111551),J}function ee(f,J,Oe){if(!Oe||!e.isStringLiteralLike(Oe.moduleSpecifier))return;var N=e.getResolvedModule(f,Oe.moduleSpecifier.text);return N?J.program.getSourceFile(N.resolvedFileName):void 0}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="addMissingMember",Ee=[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],Ge="addMissingMember";M.registerCodeFix({errorCodes:Ee,getCodeActions:function($){var Q=ee($.sourceFile,$.span.start,$.program.getTypeChecker(),$.program);if(!Q)return;if(Q.kind===0){var z=Q.token,se=Q.parentDeclaration,G=e.textChanges.ChangeTracker.with($,function(D){return X(D,$.program.getTypeChecker(),z,se)});return[M.createCodeFixAction(qe,G,[e.Diagnostics.Add_missing_enum_member_0,z.text],Ge,e.Diagnostics.Add_all_missing_members)]}var H=Q.parentDeclaration,q=Q.declSourceFile,be=Q.inJs,R=Q.makeStatic,K=Q.token,m=Q.call,_=m&&P($,q,H,K,m,R,be,$.preferences),I=be&&!e.isInterfaceDeclaration(H)?e.singleElementArray(f($,q,H,K.text,R)):N($,q,H,K,R);return e.concatenate(e.singleElementArray(_),I)},fixIds:[Ge],getAllCodeActions:function($){var Q=$.program,z=$.preferences,se=Q.getTypeChecker(),G=e.createMap(),H=new e.NodeMap;return M.createCombinedCodeActions(e.textChanges.ChangeTracker.with($,function(q){M.eachDiagnostic($,Ee,function(be){var R=ee(be.file,be.start,se,$.program);if(!R||!e.addToSeen(G,e.getNodeId(R.parentDeclaration)+"#"+R.token.text))return;if(R.kind===0){var K=R.token,m=R.parentDeclaration;X(q,se,K,m)}else{var m=R.parentDeclaration,_=R.token,I=H.getOrUpdate(m,function(){return[]});I.some(function(y){return y.token.text===_.text})||I.push(R)}}),H.forEach(function(be,R){for(var K=Be(R,se),m=function(y){if(K.some(function(S){var v=H.get(S);return!!v&&v.some(function(U){var ue=U.token;return ue.text===y.token.text})}))return"continue";var E=y.parentDeclaration,k=y.declSourceFile,T=y.inJs,ne=y.makeStatic,O=y.token,Y=y.call;if(Y)h($,q,k,E,O,Y,ne,T,z);else if(T&&!e.isInterfaceDeclaration(E))J(q,k,E,O.text,ne);else{var pe=Te(Q.getTypeChecker(),E,O);ce(q,k,E,O.text,pe,ne)}},_=0,I=be;_<I.length;_++){var D=I[_];m(D)}})}))}});function Be($,Q){for(var z=[];$;){var se=e.getClassExtendsHeritageElement($),G=se&&Q.getSymbolAtLocation(se.expression),H=G&&e.find(G.declarations,e.isClassLike);H&&z.push(H),$=H}return z}var he;(function($){$[$.Enum=0]="Enum",$[$.ClassOrInterface=1]="ClassOrInterface"})(he||(he={}));function ee($,Q,z,se){var G=e.getTokenAtPosition($,Q);if(!e.isIdentifier(G))return;var H=G.parent;if(!e.isPropertyAccessExpression(H))return;var q=e.skipConstraint(z.getTypeAtLocation(H.expression)),be=q.symbol;if(!be||!be.declarations)return;var R=e.find(be.declarations,e.isClassLike)||e.find(be.declarations,e.isInterfaceDeclaration);if(R&&!se.isSourceFileFromExternalLibrary(R.getSourceFile())){var K=(q.target||q)!==z.getDeclaredTypeOfSymbol(be),m=R.getSourceFile(),_=e.isSourceFileJS(m),I=e.tryCast(H.parent,e.isCallExpression);return{kind:1,token:G,parentDeclaration:R,makeStatic:K,declSourceFile:m,inJs:_,call:I}}var D=e.find(be.declarations,e.isEnumDeclaration);return D&&!se.isSourceFileFromExternalLibrary(D.getSourceFile())?{kind:0,token:G,parentDeclaration:D}:void 0}function f($,Q,z,se,G){var H=e.textChanges.ChangeTracker.with($,function(q){return J(q,Q,z,se,G)});return H.length===0?void 0:M.createCodeFixAction(qe,H,[G?e.Diagnostics.Initialize_static_property_0:e.Diagnostics.Initialize_property_0_in_the_constructor,se],Ge,e.Diagnostics.Add_all_missing_members)}function J($,Q,z,se,G){if(G){if(z.kind===213)return;var H=z.name.getText(),q=Oe(e.createIdentifier(H),se);$.insertNodeAfter(Q,z,q)}else{var be=e.getFirstConstructorWithBody(z);if(!be)return;var R=Oe(e.createThis(),se);$.insertNodeAtConstructorEnd(Q,be,R)}}function Oe($,Q){return e.createStatement(e.createAssignment(e.createPropertyAccess($,Q),e.createIdentifier("undefined")))}function N($,Q,z,se,G){var H=Te($.program.getTypeChecker(),z,se),q=ie($,Q,z,G,se.text,H);return G?[q]:[q,C($,Q,z,se.text,H)]}function Te($,Q,z){var se;if(z.parent.parent.kind===208){var G=z.parent.parent,H=z.parent===G.left?G.right:G.left,q=$.getWidenedType($.getBaseTypeOfLiteralType($.getTypeAtLocation(H)));se=$.typeToTypeNode(q,Q)}else{var be=$.getContextualType(z.parent);se=be?$.typeToTypeNode(be):void 0}return se||e.createKeywordTypeNode(124)}function ie($,Q,z,se,G,H){var q=e.textChanges.ChangeTracker.with($,function(be){return ce(be,Q,z,G,H,se)});return M.createCodeFixAction(qe,q,[se?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,G],Ge,e.Diagnostics.Add_all_missing_members)}function ce($,Q,z,se,G,H){var q=e.createProperty(void 0,H?[e.createToken(119)]:void 0,se,void 0,G,void 0),be=x(z);be?$.insertNodeAfter(Q,be,q):$.insertNodeAtClassStart(Q,z,q)}function x($){for(var Q,z=0,se=$.members;z<se.length;z++){var G=se[z];if(!e.isPropertyDeclaration(G))break;Q=G}return Q}function C($,Q,z,se,G){var H=e.createKeywordTypeNode(142),q=e.createParameter(void 0,void 0,void 0,"x",void 0,H,void 0),be=e.createIndexSignature(void 0,void 0,[q],G),R=e.textChanges.ChangeTracker.with($,function(K){return K.insertNodeAtClassStart(Q,z,be)});return M.createCodeFixActionNoFixId(qe,R,[e.Diagnostics.Add_index_signature_for_property_0,se])}function P($,Q,z,se,G,H,q,be){var R=e.textChanges.ChangeTracker.with($,function(K){return h($,K,Q,z,se,G,H,q,be)});return M.createCodeFixAction(qe,R,[H?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,se.text],Ge,e.Diagnostics.Add_all_missing_members)}function h($,Q,z,se,G,H,q,be,R){var K=M.createMethodFromCallExpression($,H,G.text,be,q,R,se),m=e.getAncestor(H,160);m&&m.parent===se?Q.insertNodeAfter(z,m,K):Q.insertNodeAtClassStart(z,se,K)}function X($,Q,z,se){var G=e.some(se.members,function(q){var be=Q.getTypeAtLocation(q);return!!(be&&be.flags&132)}),H=e.createEnumMember(z,G?e.createStringLiteral(z.text):void 0);$.replaceNode(se.getSourceFile(),se,e.updateEnumDeclaration(se,se.decorators,se.modifiers,se.name,e.concatenate(se.members,e.singleElementArray(H))))}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="addMissingNewOperator",Ee=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(he){var ee=he.sourceFile,f=he.span,J=e.textChanges.ChangeTracker.with(he,function(Oe){return Ge(Oe,ee,f)});return[M.createCodeFixAction(qe,J,e.Diagnostics.Add_missing_new_operator_to_call,qe,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[qe],getAllCodeActions:function(he){return M.codeFixAll(he,Ee,function(ee,f){return Ge(ee,he.sourceFile,f)})}});function Ge(he,ee,f){var J=e.cast(Be(ee,f),e.isCallExpression),Oe=e.createNew(J.expression,J.typeArguments,J.arguments);he.replaceNode(ee,J,Oe)}function Be(he,ee){for(var f=e.getTokenAtPosition(he,ee.start),J=e.textSpanEnd(ee);f.end<J;)f=f.parent;return f}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="fixCannotFindModule",Ee="installTypesPackage",Ge=e.Diagnostics.Cannot_find_module_0.code,Be=[Ge,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];M.registerCodeFix({errorCodes:Be,getCodeActions:function(J){var Oe=J.host,N=J.sourceFile,Te=J.span.start,ie=ee(N,Te);if(ie===void 0)return;var ce=f(ie,Oe,J.errorCode);return ce===void 0?[]:[M.createCodeFixAction(qe,[],[e.Diagnostics.Install_0,ce],Ee,e.Diagnostics.Install_all_missing_types_packages,he(N.fileName,ce))]},fixIds:[Ee],getAllCodeActions:function(J){return M.codeFixAll(J,Be,function(Oe,N,Te){var ie=ee(N.file,N.start);if(ie===void 0)return;switch(J.fixId){case Ee:{var ce=f(ie,J.host,N.code);ce&&Te.push(he(N.file.fileName,ce));break}default:e.Debug.fail("Bad fixId: "+J.fixId)}})}});function he(J,Oe){return{type:"install package",file:J,packageName:Oe}}function ee(J,Oe){var N=e.cast(e.getTokenAtPosition(J,Oe),e.isStringLiteral).text,Te=e.parsePackageName(N).packageName;return e.isExternalModuleNameRelative(Te)?void 0:Te}function f(J,Oe,N){return N===Ge?e.JsTyping.nodeCoreModules.has(J)?"@types/node":void 0:Oe.isKnownTypesPackageName(J)?e.getTypesPackageName(J):void 0}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],Ee="fixClassDoesntImplementInheritedAbstractMember";M.registerCodeFix({errorCodes:qe,getCodeActions:function(ee){var f=ee.sourceFile,J=ee.span,Oe=e.textChanges.ChangeTracker.with(ee,function(N){return Be(Ge(f,J.start),f,ee,N,ee.preferences)});return Oe.length===0?void 0:[M.createCodeFixAction(Ee,Oe,e.Diagnostics.Implement_inherited_abstract_class,Ee,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[Ee],getAllCodeActions:function(ee){var f=e.createMap();return M.codeFixAll(ee,qe,function(J,Oe){var N=Ge(Oe.file,Oe.start);e.addToSeen(f,e.getNodeId(N))&&Be(N,ee.sourceFile,ee,J,ee.preferences)})}});function Ge(ee,f){var J=e.getTokenAtPosition(ee,f);return e.cast(J.parent,e.isClassLike)}function Be(ee,f,J,Oe,N){var Te=e.getEffectiveBaseTypeNode(ee),ie=J.program.getTypeChecker(),ce=ie.getTypeAtLocation(Te),x=ie.getPropertiesOfType(ce).filter(he);M.createMissingMemberNodes(ee,x,J,N,function(C){return Oe.insertNodeAtClassStart(f,ee,C)})}function he(ee){var f=e.getModifierFlags(e.first(ee.getDeclarations()));return!(f&8)&&!!(f&128)}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="classSuperMustPrecedeThisAccess",Ee=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(ee){var f=ee.sourceFile,J=ee.span,Oe=Be(f,J.start);if(!Oe)return;var N=Oe.constructor,Te=Oe.superCall,ie=e.textChanges.ChangeTracker.with(ee,function(ce){return Ge(ce,f,N,Te)});return[M.createCodeFixAction(qe,ie,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,qe,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[qe],getAllCodeActions:function(ee){var f=ee.sourceFile,J=e.createMap();return M.codeFixAll(ee,Ee,function(Oe,N){var Te=Be(N.file,N.start);if(!Te)return;var ie=Te.constructor,ce=Te.superCall;e.addToSeen(J,e.getNodeId(ie.parent))&&Ge(Oe,f,ie,ce)})}});function Ge(ee,f,J,Oe){ee.insertNodeAtConstructorStart(f,J,Oe),ee.delete(f,Oe)}function Be(ee,f){var J=e.getTokenAtPosition(ee,f);if(J.kind!==103)return;var Oe=e.getContainingFunction(J),N=he(Oe.body);return N&&!N.expression.arguments.some(function(Te){return e.isPropertyAccessExpression(Te)&&Te.expression===J})?{constructor:Oe,superCall:N}:void 0}function he(ee){return e.isExpressionStatement(ee)&&e.isSuperCall(ee.expression)?ee:e.isFunctionLike(ee)?void 0:e.forEachChild(ee,he)}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="constructorForDerivedNeedSuperCall",Ee=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(he){var ee=he.sourceFile,f=he.span,J=Ge(ee,f.start),Oe=e.textChanges.ChangeTracker.with(he,function(N){return Be(N,ee,J)});return[M.createCodeFixAction(qe,Oe,e.Diagnostics.Add_missing_super_call,qe,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[qe],getAllCodeActions:function(he){return M.codeFixAll(he,Ee,function(ee,f){return Be(ee,he.sourceFile,Ge(f.file,f.start))})}});function Ge(he,ee){var f=e.getTokenAtPosition(he,ee);return e.Debug.assert(f.kind===128,"token should be at the constructor keyword"),f.parent}function Be(he,ee,f){var J=e.createStatement(e.createCall(e.createSuper(),void 0,e.emptyArray));he.insertNodeAtConstructorStart(ee,f,J)}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="enableExperimentalDecorators",Ee=[e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(Be){var he=Be.program.getCompilerOptions().configFile;if(he===void 0)return;var ee=e.textChanges.ChangeTracker.with(Be,function(f){return Ge(f,he)});return[M.createCodeFixActionNoFixId(qe,ee,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]},fixIds:[qe],getAllCodeActions:function(Be){return M.codeFixAll(Be,Ee,function(he){var ee=Be.program.getCompilerOptions().configFile;if(ee===void 0)return;Ge(he,ee)})}});function Ge(Be,he){M.setJsonCompilerOptionValue(Be,he,"experimentalDecorators",e.createTrue())}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="fixEnableJsxFlag",Ee=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(Be){var he=Be.program.getCompilerOptions().configFile;if(he===void 0)return;var ee=e.textChanges.ChangeTracker.with(Be,function(f){return Ge(f,he)});return[M.createCodeFixActionNoFixId(qe,ee,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[qe],getAllCodeActions:function(Be){return M.codeFixAll(Be,Ee,function(he){var ee=Be.program.getCompilerOptions().configFile;if(ee===void 0)return;Ge(he,ee)})}});function Ge(Be,he){M.setJsonCompilerOptionValue(Be,he,"jsx",e.createStringLiteral("react"))}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="extendsInterfaceBecomesImplements",Ee=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(he){var ee=he.sourceFile,f=Ge(ee,he.span.start);if(!f)return;var J=f.extendsToken,Oe=f.heritageClauses,N=e.textChanges.ChangeTracker.with(he,function(Te){return Be(Te,ee,J,Oe)});return[M.createCodeFixAction(qe,N,e.Diagnostics.Change_extends_to_implements,qe,e.Diagnostics.Change_all_extended_interfaces_to_implements)]},fixIds:[qe],getAllCodeActions:function(he){return M.codeFixAll(he,Ee,function(ee,f){var J=Ge(f.file,f.start);J&&Be(ee,f.file,J.extendsToken,J.heritageClauses)})}});function Ge(he,ee){var f=e.getTokenAtPosition(he,ee),J=e.getContainingClass(f).heritageClauses,Oe=J[0].getFirstToken();return Oe.kind===89?{extendsToken:Oe,heritageClauses:J}:void 0}function Be(he,ee,f,J){if(he.replaceNode(ee,f,e.createToken(112)),J.length===2&&J[0].token===89&&J[1].token===112){var Oe=J[1].getFirstToken(),N=Oe.getFullStart();he.replaceRange(ee,{pos:N,end:N},e.createToken(27));for(var Te=ee.text,ie=Oe.end;ie<Te.length&&e.isWhiteSpaceSingleLine(Te.charCodeAt(ie));)ie++;he.deleteRange(ee,{pos:Oe.getStart(),end:ie})}}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="forgottenThisPropertyAccess",Ee=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Ge=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Ee];M.registerCodeFix({errorCodes:Ge,getCodeActions:function(ee){var f=ee.sourceFile,J=Be(f,ee.span.start,ee.errorCode);if(!J)return;var Oe=e.textChanges.ChangeTracker.with(ee,function(N){return he(N,f,J)});return[M.createCodeFixAction(qe,Oe,[e.Diagnostics.Add_0_to_unresolved_variable,J.className||"this"],qe,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[qe],getAllCodeActions:function(ee){return M.codeFixAll(ee,Ge,function(f,J){var Oe=Be(J.file,J.start,J.code);Oe&&he(f,ee.sourceFile,Oe)})}});function Be(ee,f,J){var Oe=e.getTokenAtPosition(ee,f);return e.isIdentifier(Oe)?{node:Oe,className:J===Ee?e.getContainingClass(Oe).name.text:void 0}:void 0}function he(ee,f,J){var Oe=J.node,N=J.className;e.suppressLeadingAndTrailingTrivia(Oe),ee.replaceNode(f,Oe,e.createPropertyAccess(N?e.createIdentifier(N):e.createThis(),Oe))}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="unusedIdentifier",Ee="unusedIdentifier_prefix",Ge="unusedIdentifier_delete",Be="unusedIdentifier_infer",he=[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];M.registerCodeFix({errorCodes:he,getCodeActions:function(Q){var z=Q.errorCode,se=Q.sourceFile,G=Q.program,H=G.getTypeChecker(),q=G.getSourceFiles(),be=e.getTokenAtPosition(se,Q.span.start);if(e.isJSDocTemplateTag(be))return[f(e.textChanges.ChangeTracker.with(Q,function(k){return k.delete(se,be)}),e.Diagnostics.Remove_template_tag)];if(be.kind===29){var R=e.textChanges.ChangeTracker.with(Q,function(k){return J(k,se,be)});return[f(R,e.Diagnostics.Remove_type_parameters)]}var K=Oe(be);if(K){var R=e.textChanges.ChangeTracker.with(Q,function(T){return T.delete(se,K)});return[f(R,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(K)])]}var m=e.textChanges.ChangeTracker.with(Q,function(k){return N(be,k,se,H,q,!1)});if(m.length)return[f(m,e.Diagnostics.Remove_destructuring)];var _=e.textChanges.ChangeTracker.with(Q,function(k){return Te(se,be,k)});if(_.length)return[f(_,e.Diagnostics.Remove_variable_statement)];var I=[];if(be.kind===131){var R=e.textChanges.ChangeTracker.with(Q,function(T){return ee(T,se,be)}),D=e.cast(be.parent,e.isInferTypeNode).typeParameter.name.text;I.push(M.createCodeFixAction(qe,R,[e.Diagnostics.Replace_infer_0_with_unknown,D],Be,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var y=e.textChanges.ChangeTracker.with(Q,function(k){return x(se,be,k,H,q,!1)});if(y.length){var D=e.isComputedPropertyName(be.parent)?be.parent:be;I.push(f(y,[e.Diagnostics.Remove_declaration_for_Colon_0,D.getText(se)]))}}var E=e.textChanges.ChangeTracker.with(Q,function(k){return ie(k,z,se,be)});return E.length&&I.push(M.createCodeFixAction(qe,E,[e.Diagnostics.Prefix_0_with_an_underscore,be.getText(se)],Ee,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),I},fixIds:[Ee,Ge,Be],getAllCodeActions:function(Q){var z=Q.sourceFile,se=Q.program,G=se.getTypeChecker(),H=se.getSourceFiles();return M.codeFixAll(Q,he,function(q,be){var R=e.getTokenAtPosition(z,be.start);switch(Q.fixId){case Ee:ie(q,be.code,z,R);break;case Ge:{if(R.kind===131)break;var K=Oe(R);K?q.delete(z,K):e.isJSDocTemplateTag(R)?q.delete(z,R):R.kind===29?J(q,z,R):!N(R,q,z,G,H,!0)&&!Te(z,R,q)&&x(z,R,q,G,H,!0);break}case Be:R.kind===131&&ee(q,z,R);break;default:e.Debug.fail(JSON.stringify(Q.fixId))}})}});function ee(Q,z,se){Q.replaceNode(z,se.parent,e.createKeywordTypeNode(147))}function f(Q,z){return M.createCodeFixAction(qe,Q,z,Ge,e.Diagnostics.Delete_all_unused_declarations)}function J(Q,z,se){Q.delete(z,e.Debug.assertDefined(e.cast(se.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function Oe(Q){return Q.kind===95?e.tryCast(Q.parent,e.isImportDeclaration):void 0}function N(Q,z,se,G,H,q){if(Q.kind!==18||!e.isObjectBindingPattern(Q.parent))return!1;var be=Q.parent.parent;return be.kind===155?h(z,se,be,G,H,q):z.delete(se,be),!0}function Te(Q,z,se){var G=e.tryCast(z.parent,e.isVariableDeclarationList);return G&&G.getChildren(Q)[0]===z?(se.delete(Q,G.parent.kind===224?G.parent:G),!0):!1}function ie(Q,z,se,G){if(z===e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code)return;G.kind===131&&(G=e.cast(G.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(G)&&ce(G)&&Q.replaceNode(se,G,e.createIdentifier("_"+G.text))}function ce(Q){switch(Q.parent.kind){case 155:case 154:return!0;case 241:{var z=Q.parent;switch(z.parent.parent.kind){case 231:case 230:return!0}}}return!1}function x(Q,z,se,G,H,q){P(z,se,Q,G,H,q),e.isIdentifier(z)&&C(se,Q,z,G)}function C(Q,z,se,G){e.FindAllReferences.Core.eachSymbolReferenceInFile(se,G,z,function(H){e.isPropertyAccessExpression(H.parent)&&H.parent.name===H&&(H=H.parent),e.isBinaryExpression(H.parent)&&e.isExpressionStatement(H.parent.parent)&&H.parent.left===H&&Q.delete(z,H.parent.parent)})}function P(Q,z,se,G,H,q){var be=Q.parent;e.isParameter(be)?h(z,se,be,G,H,q):z.delete(se,e.isImportClause(be)?Q:e.isComputedPropertyName(be)?be.parent:be)}function h(Q,z,se,G,H,q){X(se,G,q)&&(se.modifiers&&se.modifiers.length>0&&(!e.isIdentifier(se.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(se.name,G,z))?se.modifiers.forEach(function(be){Q.deleteModifier(z,be)}):(Q.delete(z,se),$(Q,z,se,H,G)))}function X(Q,z,se){var G=Q.parent;switch(G.kind){case 160:var H=z.getSymbolAtLocation(G.name);if(e.isMemberSymbolInBaseType(H,z))return!1;case 161:case 243:return!0;case 200:case 201:{var q=G.parameters,be=q.indexOf(Q);return e.Debug.assert(be!==-1,"The parameter should already be in the list"),se?q.slice(be+1).every(function(R){return R.name.kind===75&&!R.symbol.isReferenced}):be===q.length-1}case 163:return!1;default:return e.Debug.failBadSyntaxKind(G)}}function $(Q,z,se,G,H){e.FindAllReferences.Core.eachSignatureCall(se.parent,G,H,function(q){var be=se.parent.parameters.indexOf(se);q.arguments.length>be&&Q.delete(z,q.arguments[be])})}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="fixUnreachableCode",Ee=[e.Diagnostics.Unreachable_code_detected.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(he){var ee=e.textChanges.ChangeTracker.with(he,function(f){return Ge(f,he.sourceFile,he.span.start,he.span.length)});return[M.createCodeFixAction(qe,ee,e.Diagnostics.Remove_unreachable_code,qe,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[qe],getAllCodeActions:function(he){return M.codeFixAll(he,Ee,function(ee,f){return Ge(ee,f.file,f.start,f.length)})}});function Ge(he,ee,f,J){var Oe=e.getTokenAtPosition(ee,f),N=e.findAncestor(Oe,e.isStatement);e.Debug.assert(N.getStart(ee)===Oe.getStart(ee),"token and statement should start at the same point");var Te=(e.isBlock(N.parent)?N.parent:N).parent;if(!e.isBlock(N.parent)||N===e.first(N.parent.statements))switch(Te.kind){case 226:if(Te.elseStatement){if(e.isBlock(N.parent))break;he.replaceNode(ee,N,e.createBlock(e.emptyArray));return}case 228:case 229:he.delete(ee,Te);return}if(e.isBlock(N.parent)){var ie=f+J,ce=e.Debug.assertDefined(Be(e.sliceAfter(N.parent.statements,N),function(x){return x.pos<ie}),"Some statement should be last");he.deleteNodeRange(ee,N,ce)}else he.delete(ee,N)}function Be(he,ee){for(var f,J=0,Oe=he;J<Oe.length;J++){var N=Oe[J];if(!ee(N))break;f=N}return f}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="fixUnusedLabel",Ee=[e.Diagnostics.Unused_label.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(Be){var he=e.textChanges.ChangeTracker.with(Be,function(ee){return Ge(ee,Be.sourceFile,Be.span.start)});return[M.createCodeFixAction(qe,he,e.Diagnostics.Remove_unused_label,qe,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[qe],getAllCodeActions:function(Be){return M.codeFixAll(Be,Ee,function(he,ee){return Ge(he,ee.file,ee.start)})}});function Ge(Be,he,ee){var f=e.getTokenAtPosition(he,ee),J=e.cast(f.parent,e.isLabeledStatement),Oe=f.getStart(he),N=J.statement.getStart(he),Te=e.positionsAreOnSameLine(Oe,N,he)?N:e.skipTrivia(he.text,e.findChildOfKind(J,58,he).end,!0);Be.deleteRange(he,{pos:Oe,end:Te})}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="fixJSDocTypes_plain",Ee="fixJSDocTypes_nullable",Ge=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];M.registerCodeFix({errorCodes:Ge,getCodeActions:function(f){var J=f.sourceFile,Oe=f.program.getTypeChecker(),N=he(J,f.span.start,Oe);if(!N)return;var Te=N.typeNode,ie=N.type,ce=Te.getText(J),x=[C(ie,qe,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return Te.kind===295&&x.push(C(Oe.getNullableType(ie,32768),Ee,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),x;function C(P,h,X){var $=e.textChanges.ChangeTracker.with(f,function(Q){return Be(Q,J,Te,P,Oe)});return M.createCodeFixAction("jdocTypes",$,[e.Diagnostics.Change_0_to_1,ce,Oe.typeToString(P)],h,X)}},fixIds:[qe,Ee],getAllCodeActions:function(f){var J=f.fixId,Oe=f.program,N=f.sourceFile,Te=Oe.getTypeChecker();return M.codeFixAll(f,Ge,function(ie,ce){var x=he(ce.file,ce.start,Te);if(!x)return;var C=x.typeNode,P=x.type,h=C.kind===295&&J===Ee?Te.getNullableType(P,32768):P;Be(ie,N,C,h,Te)})}});function Be(f,J,Oe,N,Te){f.replaceNode(J,Oe,Te.typeToTypeNode(N,Oe))}function he(f,J,Oe){var N=e.findAncestor(e.getTokenAtPosition(f,J),ee),Te=N&&N.type;return Te&&{typeNode:Te,type:Oe.getTypeFromTypeNode(Te)}}function ee(f){switch(f.kind){case 216:case 164:case 165:case 243:case 162:case 166:case 185:case 160:case 159:case 155:case 158:case 157:case 163:case 246:case 198:case 241:return!0;default:return!1}}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="fixAwaitInSyncFunction",Ee=[e.Diagnostics.await_expression_is_only_allowed_within_an_async_function.code,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(ee){var f=ee.sourceFile,J=ee.span,Oe=Be(f,J.start);if(!Oe)return;var N=e.textChanges.ChangeTracker.with(ee,function(Te){return he(Te,f,Oe)});return[M.createCodeFixAction(qe,N,e.Diagnostics.Add_async_modifier_to_containing_function,qe,e.Diagnostics.Add_all_missing_async_modifiers)]},fixIds:[qe],getAllCodeActions:function(ee){var f=e.createMap();return M.codeFixAll(ee,Ee,function(J,Oe){var N=Be(Oe.file,Oe.start);if(!N||!e.addToSeen(f,e.getNodeId(N.insertBefore)))return;he(J,ee.sourceFile,N)})}});function Ge(ee){if(ee.type)return ee.type;if(e.isVariableDeclaration(ee.parent)&&ee.parent.type&&e.isFunctionTypeNode(ee.parent.type))return ee.parent.type.type}function Be(ee,f){var J=e.getTokenAtPosition(ee,f),Oe=e.getContainingFunction(J);if(!Oe)return;var N;switch(Oe.kind){case 160:N=Oe.name;break;case 243:case 200:N=e.findChildOfKind(Oe,93,ee);break;case 201:N=e.findChildOfKind(Oe,20,ee)||e.first(Oe.parameters);break;default:return}return N&&{insertBefore:N,returnType:Ge(Oe)}}function he(ee,f,J){var Oe=J.insertBefore,N=J.returnType;if(N){var Te=e.getEntityNameFromTypeNode(N);(!Te||Te.kind!==75||Te.text!=="Promise")&&ee.replaceNode(f,N,e.createTypeReferenceNode("Promise",e.createNodeArray([N])))}ee.insertModifierBefore(f,125,Oe)}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="disableJsDiagnostics",Ee="disableJsDiagnostics",Ge=e.mapDefined(Object.keys(e.Diagnostics),function(he){var ee=e.Diagnostics[he];return ee.category===e.DiagnosticCategory.Error?ee.code:void 0});M.registerCodeFix({errorCodes:Ge,getCodeActions:function(he){var ee=he.sourceFile,f=he.program,J=he.span,Oe=he.host,N=he.formatContext;if(!e.isInJSFile(ee)||!e.isCheckJsEnabledForFile(ee,f.getCompilerOptions()))return;var Te=[M.createCodeFixActionNoFixId(qe,[M.createFileTextChanges(ee.fileName,[e.createTextChange(ee.checkJsDirective?e.createTextSpanFromBounds(ee.checkJsDirective.pos,ee.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+e.getNewLineOrDefaultFromHost(Oe,N.options))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(ee,J.start)&&Te.unshift(M.createCodeFixAction(qe,e.textChanges.ChangeTracker.with(he,function(ie){return Be(ie,ee,J.start)}),e.Diagnostics.Ignore_this_error_message,Ee,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),Te},fixIds:[Ee],getAllCodeActions:function(he){var ee=e.createMap();return M.codeFixAll(he,Ge,function(f,J){e.textChanges.isValidLocationToAddComment(J.file,J.start)&&Be(f,J.file,J.start,ee)})}});function Be(he,ee,f,J){var Oe=e.getLineAndCharacterOfPosition(ee,f).line;(!J||e.addToSeen(J,Oe))&&he.insertCommentBeforeLine(ee,Oe,f," @ts-ignore")}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){function qe(C,P,h,X,$){for(var Q=C.symbol.members,z=0,se=P;z<se.length;z++){var G=se[z];Q.has(G.escapedName)||Be(G,C,h,X,$)}}M.createMissingMemberNodes=qe;function Ee(C){return{directoryExists:C.host.directoryExists?function(P){return C.host.directoryExists(P)}:void 0,fileExists:C.host.fileExists?function(P){return C.host.fileExists(P)}:void 0,getCurrentDirectory:C.host.getCurrentDirectory?function(){return C.host.getCurrentDirectory()}:void 0,readFile:C.host.readFile?function(P){return C.host.readFile(P)}:void 0,useCaseSensitiveFileNames:C.host.useCaseSensitiveFileNames?function(){return C.host.useCaseSensitiveFileNames()}:void 0,getSourceFiles:function(){return C.program.getSourceFiles()},getCommonSourceDirectory:function(){return C.program.getCommonSourceDirectory()}}}function Ge(C){return{trackSymbol:e.noop,moduleResolverHost:Ee(C)}}M.getNoopSymbolTrackerWithResolver=Ge;function Be(C,P,h,X,$){var Q=C.getDeclarations();if(!(Q&&Q.length))return;var z=h.program.getTypeChecker(),se=Q[0],G=e.getSynthesizedDeepClone(e.getNameOfDeclaration(se),!1),H=Te(e.getModifierFlags(se)),q=H?e.createNodeArray([H]):void 0,be=z.getWidenedType(z.getTypeOfSymbolAtLocation(C,P)),R=!!(C.flags&16777216),K=!!(P.flags&8388608);switch(se.kind){case 157:case 158:var m=z.typeToTypeNode(be,P,void 0,Ge(h));$(e.createProperty(void 0,q,G,R?e.createToken(57):void 0,m,void 0));break;case 162:case 163:{for(var _=e.getAllAccessorDeclarations(Q,se),I=z.typeToTypeNode(be,P,void 0,Ge(h)),D=_.secondAccessor?[_.firstAccessor,_.secondAccessor]:[_.firstAccessor],y=0,E=D;y<E.length;y++){var k=E[y];if(e.isGetAccessorDeclaration(k))$(e.createGetAccessor(void 0,q,G,e.emptyArray,I,K?void 0:N(X)));else{e.Debug.assertNode(k,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var T=e.getSetAccessorValueParameter(k),ne=T&&e.isIdentifier(T.name)?e.idText(T.name):void 0;$(e.createSetAccessor(void 0,q,G,f(1,[ne],[I],1,!1),K?void 0:N(X)))}}break}case 159:case 160:var O=z.getSignaturesOfType(be,0);if(!e.some(O))break;if(Q.length===1){e.Debug.assert(O.length===1,"One declaration implies one signature");var Y=O[0];v(Y,q,G,K?void 0:N(X));break}for(var pe=0,S=O;pe<S.length;pe++){var Y=S[pe];v(Y,e.getSynthesizedDeepClones(q,!1),e.getSynthesizedDeepClone(G,!1))}if(!K)if(Q.length>O.length){var Y=z.getSignatureFromDeclaration(Q[Q.length-1]);v(Y,q,G,N(X))}else e.Debug.assert(Q.length===O.length,"Declarations and signatures should match count"),$(J(O,G,R,q,X));break}function v(U,ue,De,Z){var Re=he(h,U,P,ue,De,R,Z);Re&&$(Re)}}function he(C,P,h,X,$,Q,z){var se=C.program,G=se.getTypeChecker().signatureToSignatureDeclaration(P,160,h,1|256,Ge(C));return G?(G.decorators=void 0,G.modifiers=X,G.name=$,G.questionToken=Q?e.createToken(57):void 0,G.body=z,G):void 0}function ee(C,P,h,X,$,Q,z){var se=!e.isInterfaceDeclaration(z),G=P.typeArguments,H=P.arguments,q=P.parent,be=C.program.getTypeChecker(),R=Ge(C),K=e.map(H,function(D){return be.typeToTypeNode(be.getBaseTypeOfLiteralType(be.getTypeAtLocation(D)),z,void 0,R)}),m=e.map(H,function(D){return e.isIdentifier(D)?D.text:e.isPropertyAccessExpression(D)?D.name.text:void 0}),_=be.getContextualType(P),I=X||!_?void 0:be.typeToTypeNode(_,z,void 0,R);return e.createMethod(void 0,$?[e.createToken(119)]:void 0,e.isYieldExpression(q)?e.createToken(41):void 0,h,void 0,X?void 0:e.map(G,function(D,y){return e.createTypeParameterDeclaration(84+G.length-1<=90?String.fromCharCode(84+y):"T"+y)}),f(H.length,m,K,void 0,X),I,se?N(Q):void 0)}M.createMethodFromCallExpression=ee;function f(C,P,h,X,$){for(var Q=[],z=0;z<C;z++){var se=e.createParameter(void 0,void 0,void 0,P&&P[z]||"arg"+z,X!==void 0&&z>=X?e.createToken(57):void 0,$?void 0:h&&h[z]||e.createKeywordTypeNode(124),void 0);Q.push(se)}return Q}function J(C,P,h,X,$){for(var Q=C[0],z=C[0].minArgumentCount,se=!1,G=0,H=C;G<H.length;G++){var q=H[G];z=Math.min(q.minArgumentCount,z),e.signatureHasRestParameter(q)&&(se=!0),q.parameters.length>=Q.parameters.length&&(!e.signatureHasRestParameter(q)||e.signatureHasRestParameter(Q))&&(Q=q)}var be=Q.parameters.length-(e.signatureHasRestParameter(Q)?1:0),R=Q.parameters.map(function(I){return I.name}),K=f(be,R,void 0,z,!1);if(se){var m=e.createArrayTypeNode(e.createKeywordTypeNode(124)),_=e.createParameter(void 0,void 0,e.createToken(25),R[be]||"rest",be>=z?e.createToken(57):void 0,m,void 0);K.push(_)}return Oe(X,P,h,void 0,K,void 0,$)}function Oe(C,P,h,X,$,Q,z){return e.createMethod(void 0,C,void 0,P,h?e.createToken(57):void 0,X,$,Q,N(z))}function N(C){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.",C.quotePreference==="single")]))],!0)}function Te(C){return C&4?e.createToken(118):C&16?e.createToken(117):void 0}function ie(C,P,h,X){var $=e.getTsConfigObjectLiteralExpression(P);if(!$)return;var Q=x($,"compilerOptions");if(Q===void 0){C.insertNodeAtObjectStart(P,$,ce("compilerOptions",e.createObjectLiteral([ce(h,X)])));return}var z=Q.initializer;if(!e.isObjectLiteralExpression(z))return;var se=x(z,h);se===void 0?C.insertNodeAtObjectStart(P,z,ce(h,X)):C.replaceNode(P,se.initializer,X)}M.setJsonCompilerOptionValue=ie;function ce(C,P){return e.createPropertyAssignment(e.createStringLiteral(C),P)}M.createJsonPropertyAssignment=ce;function x(C,P){return e.find(C.properties,function(h){return e.isPropertyAssignment(h)&&!!h.name&&e.isStringLiteral(h.name)&&h.name.text===P})}M.findJsonProperty=x})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="invalidImportSyntax";function Ee(f,J){var Oe=e.getSourceFileOfNode(J),N=e.getNamespaceDeclarationNode(J),Te=f.program.getCompilerOptions(),ie=[];return ie.push(Ge(f,Oe,J,e.makeImport(N.name,void 0,J.moduleSpecifier,e.getQuotePreference(Oe,f.preferences)))),e.getEmitModuleKind(Te)===e.ModuleKind.CommonJS&&ie.push(Ge(f,Oe,J,e.createImportEqualsDeclaration(void 0,void 0,N.name,e.createExternalModuleReference(J.moduleSpecifier)))),ie}function Ge(f,J,Oe,N){var Te=e.textChanges.ChangeTracker.with(f,function(ie){return ie.replaceNode(J,Oe,N)});return M.createCodeFixActionNoFixId(qe,Te,[e.Diagnostics.Replace_import_with_0,Te[0].textChanges[0].newText])}M.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:Be});function Be(f){var J=f.sourceFile,Oe=e.Diagnostics.This_expression_is_not_callable.code===f.errorCode?195:196,N=e.findAncestor(e.getTokenAtPosition(J,f.span.start),function(ie){return ie.kind===Oe});if(!N)return[];var Te=N.expression;return ee(f,Te)}M.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2.code,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:he});function he(f){var J=f.sourceFile,Oe=e.findAncestor(e.getTokenAtPosition(J,f.span.start),function(N){return N.getStart()===f.span.start&&N.getEnd()===f.span.start+f.span.length});return Oe?ee(f,Oe):[]}function ee(f,J){var Oe=f.program.getTypeChecker().getTypeAtLocation(J);if(!(Oe.symbol&&Oe.symbol.originatingImport))return[];var N=[],Te=Oe.symbol.originatingImport;if(e.isImportCall(Te)||e.addRange(N,Ee(f,Te)),e.isExpression(J)&&!(e.isNamedDeclaration(J.parent)&&J.parent.name===J)){var ie=f.sourceFile,ce=e.textChanges.ChangeTracker.with(f,function(x){return x.replaceNode(ie,J,e.createPropertyAccess(J,"default"),{})});N.push(M.createCodeFixActionNoFixId(qe,ce,e.Diagnostics.Use_synthetic_default_member))}return N}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="strictClassInitialization",Ee="addMissingPropertyDefiniteAssignmentAssertions",Ge="addMissingPropertyUndefinedType",Be="addMissingPropertyInitializer",he=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];M.registerCodeFix({errorCodes:he,getCodeActions:function(C){var P=ee(C.sourceFile,C.span.start);if(!P)return;var h=[Oe(C,P),f(C,P)];return e.append(h,Te(C,P)),h},fixIds:[Ee,Ge,Be],getAllCodeActions:function(C){return M.codeFixAll(C,he,function(P,h){var X=ee(h.file,h.start);if(!X)return;switch(C.fixId){case Ee:J(P,h.file,X);break;case Ge:N(P,h.file,X);break;case Be:var $=C.program.getTypeChecker(),Q=ce($,X);if(!Q)return;ie(P,h.file,X,Q);break;default:e.Debug.fail(JSON.stringify(C.fixId))}})}});function ee(C,P){var h=e.getTokenAtPosition(C,P);return e.isIdentifier(h)?e.cast(h.parent,e.isPropertyDeclaration):void 0}function f(C,P){var h=e.textChanges.ChangeTracker.with(C,function(X){return J(X,C.sourceFile,P)});return M.createCodeFixAction(qe,h,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,P.getText()],Ee,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function J(C,P,h){var X=e.updateProperty(h,h.decorators,h.modifiers,h.name,e.createToken(53),h.type,h.initializer);C.replaceNode(P,h,X)}function Oe(C,P){var h=e.textChanges.ChangeTracker.with(C,function(X){return N(X,C.sourceFile,P)});return M.createCodeFixAction(qe,h,[e.Diagnostics.Add_undefined_type_to_property_0,P.name.getText()],Ge,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function N(C,P,h){var X=e.createKeywordTypeNode(145),$=h.type,Q=e.isUnionTypeNode($)?$.types.concat(X):[$,X];C.replaceNode(P,$,e.createUnionTypeNode(Q))}function Te(C,P){var h=C.program.getTypeChecker(),X=ce(h,P);if(!X)return;var $=e.textChanges.ChangeTracker.with(C,function(Q){return ie(Q,C.sourceFile,P,X)});return M.createCodeFixAction(qe,$,[e.Diagnostics.Add_initializer_to_property_0,P.name.getText()],Be,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}function ie(C,P,h,X){var $=e.updateProperty(h,h.decorators,h.modifiers,h.name,h.questionToken,h.type,X);C.replaceNode(P,h,$)}function ce(C,P){return x(C,C.getTypeFromTypeNode(P.type))}function x(C,P){if(P.flags&512)return P===C.getFalseType()||P===C.getFalseType(!0)?e.createFalse():e.createTrue();if(P.isLiteral())return e.createLiteral(P.value);if(P.isUnion())return e.firstDefined(P.types,function($){return x(C,$)});if(P.isClass()){var h=e.getClassLikeDeclarationOfSymbol(P.symbol);if(!h||e.hasModifier(h,128))return;var X=e.getFirstConstructorWithBody(h);return X&&X.parameters.length?void 0:e.createNew(e.createIdentifier(P.symbol.name),void 0,void 0)}else if(C.isArrayLikeType(P))return e.createArrayLiteral();return}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="requireInTs",Ee=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(he){var ee=e.textChanges.ChangeTracker.with(he,function(f){return Ge(f,he.sourceFile,he.span.start,he.program)});return[M.createCodeFixAction(qe,ee,e.Diagnostics.Convert_require_to_import,qe,e.Diagnostics.Convert_all_require_to_import)]},fixIds:[qe],getAllCodeActions:function(he){return M.codeFixAll(he,Ee,function(ee,f){return Ge(ee,f.file,f.start,he.program)})}});function Ge(he,ee,f,J){var Oe=Be(ee,f),N=Oe.statement,Te=Oe.name,ie=Oe.required;he.replaceNode(ee,N,e.getAllowSyntheticDefaultImports(J.getCompilerOptions())?e.createImportDeclaration(void 0,void 0,e.createImportClause(Te,void 0),ie):e.createImportEqualsDeclaration(void 0,void 0,Te,e.createExternalModuleReference(ie)))}function Be(he,ee){var f=e.getTokenAtPosition(he,ee).parent;if(!e.isRequireCall(f,!0))throw e.Debug.failBadSyntaxKind(f);var J=e.cast(f.parent,e.isVariableDeclaration);return{statement:e.cast(J.parent.parent,e.isVariableStatement),name:e.cast(J.name,e.isIdentifier),required:f.arguments[0]}}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="useDefaultImport",Ee=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(he){var ee=he.sourceFile,f=he.span.start,J=Ge(ee,f);if(!J)return;var Oe=e.textChanges.ChangeTracker.with(he,function(N){return Be(N,ee,J,he.preferences)});return[M.createCodeFixAction(qe,Oe,e.Diagnostics.Convert_to_default_import,qe,e.Diagnostics.Convert_all_to_default_imports)]},fixIds:[qe],getAllCodeActions:function(he){return M.codeFixAll(he,Ee,function(ee,f){var J=Ge(f.file,f.start);J&&Be(ee,f.file,J,he.preferences)})}});function Ge(he,ee){var f=e.getTokenAtPosition(he,ee);if(!e.isIdentifier(f))return;var J=f.parent;if(e.isImportEqualsDeclaration(J)&&e.isExternalModuleReference(J.moduleReference))return{importNode:J,name:f,moduleSpecifier:J.moduleReference.expression};if(e.isNamespaceImport(J)){var Oe=J.parent.parent;return{importNode:Oe,name:f,moduleSpecifier:Oe.moduleSpecifier}}}function Be(he,ee,f,J){he.replaceNode(ee,f.importNode,e.makeImport(f.name,void 0,f.moduleSpecifier,e.getQuotePreference(ee,J)))}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="useBigintLiteral",Ee=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(Be){var he=e.textChanges.ChangeTracker.with(Be,function(ee){return Ge(ee,Be.sourceFile,Be.span)});if(he.length>0)return[M.createCodeFixAction(qe,he,e.Diagnostics.Convert_to_a_bigint_numeric_literal,qe,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[qe],getAllCodeActions:function(Be){return M.codeFixAll(Be,Ee,function(he,ee){return Ge(he,ee.file,ee)})}});function Ge(Be,he,ee){var f=e.tryCast(e.getTokenAtPosition(he,ee.start),e.isNumericLiteral);if(!f)return;var J=f.getText(he)+"n";Be.replaceNode(he,f,e.createBigIntLiteral(J))}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="fixAddModuleReferTypeMissingTypeof",Ee=qe,Ge=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];M.registerCodeFix({errorCodes:Ge,getCodeActions:function(ee){var f=ee.sourceFile,J=ee.span,Oe=Be(f,J.start),N=e.textChanges.ChangeTracker.with(ee,function(Te){return he(Te,f,Oe)});return[M.createCodeFixAction(Ee,N,e.Diagnostics.Add_missing_typeof,Ee,e.Diagnostics.Add_missing_typeof)]},fixIds:[Ee],getAllCodeActions:function(ee){return M.codeFixAll(ee,Ge,function(f,J){return he(f,ee.sourceFile,Be(J.file,J.start))})}});function Be(ee,f){var J=e.getTokenAtPosition(ee,f);return e.Debug.assert(J.kind===95,"This token should be an ImportKeyword"),e.Debug.assert(J.parent.kind===187,"Token parent should be an ImportType"),J.parent}function he(ee,f,J){var Oe=e.updateImportTypeNode(J,J.argument,J.qualifier,J.typeArguments,!0);ee.replaceNode(f,J,Oe)}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="fixConvertToMappedObjectType",Ee=qe,Ge=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code];M.registerCodeFix({errorCodes:Ge,getCodeActions:function(f){var J=f.sourceFile,Oe=f.span,N=Be(J,Oe.start);if(!N)return;var Te=e.textChanges.ChangeTracker.with(f,function(ce){return ee(ce,J,N)}),ie=e.idText(N.container.name);return[M.createCodeFixAction(Ee,Te,[e.Diagnostics.Convert_0_to_mapped_object_type,ie],Ee,[e.Diagnostics.Convert_0_to_mapped_object_type,ie])]},fixIds:[Ee],getAllCodeActions:function(f){return M.codeFixAll(f,Ge,function(J,Oe){var N=Be(Oe.file,Oe.start);N&&ee(J,Oe.file,N)})}});function Be(f,J){var Oe=e.getTokenAtPosition(f,J),N=e.cast(Oe.parent.parent,e.isIndexSignatureDeclaration);if(e.isClassDeclaration(N.parent))return;var Te=e.isInterfaceDeclaration(N.parent)?N.parent:e.cast(N.parent.parent,e.isTypeAliasDeclaration);return{indexSignature:N,container:Te}}function he(f,J){return e.createTypeAliasDeclaration(f.decorators,f.modifiers,f.name,f.typeParameters,J)}function ee(f,J,Oe){var N=Oe.indexSignature,Te=Oe.container,ie=e.isInterfaceDeclaration(Te)?Te.members:Te.type.members,ce=ie.filter(function(X){return!e.isIndexSignatureDeclaration(X)}),x=e.first(N.parameters),C=e.createTypeParameterDeclaration(e.cast(x.name,e.isIdentifier),x.type),P=e.createMappedTypeNode(e.hasReadonlyModifier(N)?e.createModifier(137):void 0,C,N.questionToken,N.type),h=e.createIntersectionTypeNode(Tr(e.getAllSuperTypeNodes(Te),[P],ce.length?[e.createTypeLiteralNode(ce)]:e.emptyArray));f.replaceNode(J,Te,he(Te,h))}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="removeUnnecessaryAwait",Ee=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(Be){var he=e.textChanges.ChangeTracker.with(Be,function(ee){return Ge(ee,Be.sourceFile,Be.span)});if(he.length>0)return[M.createCodeFixAction(qe,he,e.Diagnostics.Remove_unnecessary_await,qe,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[qe],getAllCodeActions:function(Be){return M.codeFixAll(Be,Ee,function(he,ee){return Ge(he,ee.file,ee)})}});function Ge(Be,he,ee){var f=e.tryCast(e.getTokenAtPosition(he,ee.start),function(ce){return ce.kind===126}),J=f&&e.tryCast(f.parent,e.isAwaitExpression);if(!J)return;var Oe=J,N=e.isParenthesizedExpression(J.parent);if(N){var Te=e.getLeftmostExpression(J.expression,!1);if(e.isIdentifier(Te)){var ie=e.findPrecedingToken(J.parent.pos,he);ie&&ie.kind!==98&&(Oe=J.parent)}}Be.replaceNode(he,Oe,J.expression)}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="fixConvertConstToLet",Ee=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];M.registerCodeFix({errorCodes:Ee,getCodeActions:function(he){var ee=he.sourceFile,f=he.span,J=he.program,Oe=Ge(ee,f.start,J),N=e.textChanges.ChangeTracker.with(he,function(Te){return Be(Te,ee,Oe)});return[M.createCodeFixAction(qe,N,e.Diagnostics.Convert_const_to_let,qe,e.Diagnostics.Convert_const_to_let)]},fixIds:[qe]});function Ge(he,ee,f){var J=e.getTokenAtPosition(he,ee),Oe=f.getTypeChecker(),N=Oe.getSymbolAtLocation(J);if(N)return N.valueDeclaration.parent.parent}function Be(he,ee,f){if(!f)return;var J=f.getStart();he.replaceRangeWithText(ee,{pos:J,end:J+5},"let")}})(o=e.codefix||(e.codefix={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="Convert export",Ee="Convert default export to named export",Ge="Convert named export to default export";M.registerRefactor(qe,{getAvailableActions:function(ie){var ce=Be(ie);if(!ce)return e.emptyArray;var x=ce.wasDefault?e.Diagnostics.Convert_default_export_to_named_export.message:e.Diagnostics.Convert_named_export_to_default_export.message,C=ce.wasDefault?Ee:Ge;return[{name:qe,description:x,actions:[{name:C,description:x}]}]},getEditsForAction:function(ie,ce){e.Debug.assert(ce===Ee||ce===Ge,"Unexpected action name");var x=e.textChanges.ChangeTracker.with(ie,function(C){return he(ie.file,ie.program,e.Debug.assertDefined(Be(ie),"context must have info"),C,ie.cancellationToken)});return{edits:x,renameFilename:void 0,renameLocation:void 0}}});function Be(ie){var ce=ie.file,x=e.getRefactorContextSpan(ie),C=e.getTokenAtPosition(ce,x.start),P=e.getParentNodeInSpan(C,ce,x);if(!P||!e.isSourceFile(P.parent)&&!(e.isModuleBlock(P.parent)&&e.isAmbientModule(P.parent.parent)))return;var h=e.isSourceFile(P.parent)?P.parent.symbol:P.parent.parent.symbol,X=e.getModifierFlags(P),$=!!(X&512);if(!(X&1)||!$&&h.exports.has("default"))return;switch(P.kind){case 243:case 244:case 245:case 247:case 246:case 248:{var Q=P;return Q.name&&e.isIdentifier(Q.name)?{exportNode:Q,exportName:Q.name,wasDefault:$,exportingModuleSymbol:h}:void 0}case 224:{var z=P;if(!(z.declarationList.flags&2)||z.declarationList.declarations.length!==1)return;var se=e.first(z.declarationList.declarations);return se.initializer?(e.Debug.assert(!$,"Can't have a default flag here"),e.isIdentifier(se.name)?{exportNode:z,exportName:se.name,wasDefault:$,exportingModuleSymbol:h}:void 0):void 0}default:return}}function he(ie,ce,x,C,P){ee(ie,x,C,ce.getTypeChecker()),f(ce,x,C,P)}function ee(ie,ce,x,C){var P=ce.wasDefault,h=ce.exportNode,X=ce.exportName;if(P)x.delete(ie,e.Debug.assertDefined(e.findModifier(h,83),"Should find a default keyword in modifier list"));else{var $=e.Debug.assertDefined(e.findModifier(h,88),"Should find an export keyword in modifier list");switch(h.kind){case 243:case 244:case 245:x.insertNodeAfter(ie,$,e.createToken(83));break;case 224:if(!e.FindAllReferences.Core.isSymbolReferencedInFile(X,C,ie)){x.replaceNode(ie,h,e.createExportDefault(e.Debug.assertDefined(e.first(h.declarationList.declarations).initializer,"Initializer was previously known to be present")));break}case 247:case 246:case 248:x.deleteModifier(ie,$),x.insertNodeAfter(ie,h,e.createExportDefault(e.createIdentifier(X.text)));break;default:e.Debug.assertNever(h,"Unexpected exportNode kind "+h.kind)}}}function f(ie,ce,x,C){var P=ce.wasDefault,h=ce.exportName,X=ce.exportingModuleSymbol,$=ie.getTypeChecker(),Q=e.Debug.assertDefined($.getSymbolAtLocation(h),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(ie.getSourceFiles(),$,C,Q,X,h.text,P,function(z){var se=z.getSourceFile();P?J(se,z,x,h.text):Oe(se,z,x)})}function J(ie,ce,x,C){var P=ce.parent;switch(P.kind){case 193:x.replaceNode(ie,ce,e.createIdentifier(C));break;case 257:case 261:{var h=P;x.replaceNode(ie,h,N(C,h.name.text));break}case 254:{var X=P;e.Debug.assert(X.name===ce,"Import clause name should match provided ref");var h=N(C,ce.text),$=X.namedBindings;if(!$)x.replaceNode(ie,ce,e.createNamedImports([h]));else if($.kind===255){x.deleteRange(ie,{pos:ce.getStart(ie),end:$.getStart(ie)});var Q=e.isStringLiteral(X.parent.moduleSpecifier)?e.quotePreferenceFromString(X.parent.moduleSpecifier,ie):1,z=e.makeImport(void 0,[N(C,ce.text)],X.parent.moduleSpecifier,Q);x.insertNodeAfter(ie,X.parent,z)}else x.delete(ie,ce),x.insertNodeAtEndOfList(ie,$.elements,h);break}default:e.Debug.failBadSyntaxKind(P)}}function Oe(ie,ce,x){var C=ce.parent;switch(C.kind){case 193:x.replaceNode(ie,ce,e.createIdentifier("default"));break;case 257:{var P=e.createIdentifier(C.name.text);C.parent.elements.length===1?x.replaceNode(ie,C.parent,P):(x.delete(ie,C),x.insertNodeBefore(ie,C.parent,P));break}case 261:{x.replaceNode(ie,C,Te("default",C.name.text));break}default:e.Debug.assertNever(C,"Unexpected parent kind "+C.kind)}}function N(ie,ce){return e.createImportSpecifier(ie===ce?void 0:e.createIdentifier(ie),e.createIdentifier(ce))}function Te(ie,ce){return e.createExportSpecifier(ie===ce?void 0:e.createIdentifier(ie),e.createIdentifier(ce))}})(o=e.refactor||(e.refactor={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="Convert import",Ee="Convert namespace import to named imports",Ge="Convert named imports to namespace import";M.registerRefactor(qe,{getAvailableActions:function(Oe){var N=Be(Oe);if(!N)return e.emptyArray;var Te=N.kind===255?e.Diagnostics.Convert_namespace_import_to_named_imports.message:e.Diagnostics.Convert_named_imports_to_namespace_import.message,ie=N.kind===255?Ee:Ge;return[{name:qe,description:Te,actions:[{name:ie,description:Te}]}]},getEditsForAction:function(Oe,N){e.Debug.assert(N===Ee||N===Ge,"Unexpected action name");var Te=e.textChanges.ChangeTracker.with(Oe,function(ie){return he(Oe.file,Oe.program,ie,e.Debug.assertDefined(Be(Oe),"Context must provide an import to convert"))});return{edits:Te,renameFilename:void 0,renameLocation:void 0}}});function Be(Oe){var N=Oe.file,Te=e.getRefactorContextSpan(Oe),ie=e.getTokenAtPosition(N,Te.start),ce=e.getParentNodeInSpan(ie,N,Te);if(!ce||!e.isImportDeclaration(ce))return;var x=ce.importClause;return x&&x.namedBindings}function he(Oe,N,Te,ie){var ce=N.getTypeChecker();ie.kind===255?ee(Oe,ce,Te,ie,e.getAllowSyntheticDefaultImports(N.getCompilerOptions())):f(Oe,ce,Te,ie)}function ee(Oe,N,Te,ie,ce){var x=!1,C=[],P=e.createMap();e.FindAllReferences.Core.eachSymbolReferenceInFile(ie.name,N,Oe,function(q){if(!e.isPropertyAccessExpression(q.parent))x=!0;else{var be=e.cast(q.parent,e.isPropertyAccessExpression),R=be.name.text;N.resolveName(R,q,67108863,!0)&&P.set(R,!0),e.Debug.assert(be.expression===q,"Parent expression should match id"),C.push(be)}});for(var h=e.createMap(),X=0,$=C;X<$.length;X++){var Q=$[X],z=Q.name.text,se=h.get(z);se===void 0&&h.set(z,se=P.has(z)?e.getUniqueName(z,Oe):z),Te.replaceNode(Oe,Q,e.createIdentifier(se))}var G=[];h.forEach(function(q,be){G.push(e.createImportSpecifier(q===be?void 0:e.createIdentifier(be),e.createIdentifier(q)))});var H=ie.parent.parent;x&&!ce?Te.insertNodeAfter(Oe,H,J(H,void 0,G)):Te.replaceNode(Oe,H,J(H,x?e.createIdentifier(ie.name.text):void 0,G))}function f(Oe,N,Te,ie){for(var ce=ie.parent.parent,x=ce.moduleSpecifier,C=x&&e.isStringLiteral(x)?e.codefix.moduleSpecifierToValidIdentifier(x.text,99):"module",P=ie.elements.some(function(G){return e.FindAllReferences.Core.eachSymbolReferenceInFile(G.name,N,Oe,function(H){return!!N.resolveName(C,H,67108863,!0)})||!1}),h=P?e.getUniqueName(C,Oe):C,X=[],$=function(G){var H=(G.propertyName||G.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(G.name,N,Oe,function(q){var be=e.createPropertyAccess(e.createIdentifier(h),H);e.isShorthandPropertyAssignment(q.parent)?Te.replaceNode(Oe,q.parent,e.createPropertyAssignment(q.text,be)):e.isExportSpecifier(q.parent)&&!q.parent.propertyName?X.some(function(R){return R.name===G.name})||X.push(e.createImportSpecifier(G.propertyName&&e.createIdentifier(G.propertyName.text),e.createIdentifier(G.name.text))):Te.replaceNode(Oe,q,be)})},Q=0,z=ie.elements;Q<z.length;Q++){var se=z[Q];$(se)}Te.replaceNode(Oe,ie,e.createNamespaceImport(e.createIdentifier(h))),X.length&&Te.insertNodeAfter(Oe,ie.parent.parent,J(ce,void 0,X))}function J(Oe,N,Te){return e.createImportDeclaration(void 0,void 0,e.createImportClause(N,Te&&Te.length?e.createNamedImports(Te):void 0),Oe.moduleSpecifier)}})(o=e.refactor||(e.refactor={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe;(function(Ee){var Ge="Extract Symbol";M.registerRefactor(Ge,{getAvailableActions:Be,getEditsForAction:he});function Be(S){var v=J(S.file,e.getRefactorContextSpan(S)),U=v.targetRange;if(U===void 0)return e.emptyArray;var ue=x(U,S);if(ue===void 0)return e.emptyArray;for(var De=[],Z=e.createMap(),Re=[],we=e.createMap(),He=0,ve=0,je=ue;ve<je.length;ve++){var w=je[ve],j=w.functionExtraction,Pe=w.constantExtraction;if(j.errors.length===0){var a=j.description;Z.has(a)||(Z.set(a,!0),De.push({description:a,name:"function_scope_"+He}))}if(Pe.errors.length===0){var a=Pe.description;we.has(a)||(we.set(a,!0),Re.push({description:a,name:"constant_scope_"+He}))}He++}var Ze=[];return De.length&&Ze.push({name:Ge,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:De}),Re.length&&Ze.push({name:Ge,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:Re}),Ze.length?Ze:e.emptyArray}Ee.getAvailableActions=Be;function he(S,v){var U=J(S.file,e.getRefactorContextSpan(S)),ue=U.targetRange,De=/^function_scope_(\d+)$/.exec(v);if(De){var Z=+De[1];return e.Debug.assert(isFinite(Z),"Expected to parse a finite number from the function scope index"),ie(ue,S,Z)}var Re=/^constant_scope_(\d+)$/.exec(v);if(Re){var Z=+Re[1];return e.Debug.assert(isFinite(Z),"Expected to parse a finite number from the constant scope index"),ce(ue,S,Z)}e.Debug.fail("Unrecognized action name")}Ee.getEditsForAction=he;var ee;(function(S){function v(U){return{message:U,code:0,category:e.DiagnosticCategory.Message,key:U}}S.cannotExtractRange=v("Cannot extract range."),S.cannotExtractImport=v("Cannot extract import statement."),S.cannotExtractSuper=v("Cannot extract super call."),S.cannotExtractJSDoc=v("Cannot extract JSDoc."),S.cannotExtractEmpty=v("Cannot extract empty range."),S.expressionExpected=v("expression expected."),S.uselessConstantType=v("No reason to extract constant of type."),S.statementOrExpressionExpected=v("Statement or expression expected."),S.cannotExtractRangeContainingConditionalBreakOrContinueStatements=v("Cannot extract range containing conditional break or continue statements."),S.cannotExtractRangeContainingConditionalReturnStatement=v("Cannot extract range containing conditional return statement."),S.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=v("Cannot extract range containing labeled break or continue with target outside of the range."),S.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=v("Cannot extract range containing writes to references located outside of the target range in generators."),S.typeWillNotBeVisibleInTheNewScope=v("Type will not visible in the new scope."),S.functionWillNotBeVisibleInTheNewScope=v("Function will not visible in the new scope."),S.cannotExtractIdentifier=v("Select more than a single identifier."),S.cannotExtractExportedEntity=v("Cannot extract exported declaration"),S.cannotWriteInExpression=v("Cannot write back side-effects when extracting an expression"),S.cannotExtractReadonlyPropertyInitializerOutsideConstructor=v("Cannot move initialization of read-only class property outside of the constructor"),S.cannotExtractAmbientBlock=v("Cannot extract code from ambient contexts"),S.cannotAccessVariablesFromNestedScopes=v("Cannot access variables from nested scopes"),S.cannotExtractToOtherFunctionLike=v("Cannot extract method to a function-like scope that is not a function"),S.cannotExtractToJSClass=v("Cannot extract constant to a class scope in JS"),S.cannotExtractToExpressionArrowFunction=v("Cannot extract constant to an arrow function without a block")})(ee=Ee.Messages||(Ee.Messages={}));var f;(function(S){S[S.None=0]="None",S[S.HasReturn=1]="HasReturn",S[S.IsGenerator=2]="IsGenerator",S[S.IsAsyncFunction=4]="IsAsyncFunction",S[S.UsesThis=8]="UsesThis",S[S.InStaticRegion=16]="InStaticRegion"})(f||(f={}));function J(S,v){var U=v.length;if(U===0)return{errors:[e.createFileDiagnostic(S,v.start,U,ee.cannotExtractEmpty)]};var ue=e.getParentNodeInSpan(e.getTokenAtPosition(S,v.start),S,v),De=e.getParentNodeInSpan(e.findTokenOnLeftOfPosition(S,e.textSpanEnd(v)),S,v),Z=[],Re=f.None;if(!ue||!De)return{errors:[e.createFileDiagnostic(S,v.start,U,ee.cannotExtractRange)]};if(ue.parent!==De.parent)return{errors:[e.createFileDiagnostic(S,v.start,U,ee.cannotExtractRange)]};if(ue!==De){if(!pe(ue.parent))return{errors:[e.createFileDiagnostic(S,v.start,U,ee.cannotExtractRange)]};for(var we=[],He=ue,ve=0,je=He.parent.statements;ve<je.length;ve++){var w=je[ve];if(w===ue||we.length){var j=ae(w);if(j)return{errors:j};we.push(w)}if(w===De)break}return we.length?{targetRange:{range:we,facts:Re,declarations:Z}}:{errors:[e.createFileDiagnostic(S,v.start,U,ee.cannotExtractRange)]}}if(e.isJSDoc(ue))return{errors:[e.createFileDiagnostic(S,v.start,U,ee.cannotExtractJSDoc)]};if(e.isReturnStatement(ue)&&!ue.expression)return{errors:[e.createFileDiagnostic(S,v.start,U,ee.cannotExtractRange)]};var Pe=Ze(ue),a=In(Pe)||ae(Pe);if(a)return{errors:a};return{targetRange:{range:Oe(Pe),facts:Re,declarations:Z}};function Ze(fe){if(e.isReturnStatement(fe)){if(fe.expression)return fe.expression}else if(e.isVariableStatement(fe)){for(var Le=0,Je=void 0,$e=0,Fe=fe.declarationList.declarations;$e<Fe.length;$e++){var cn=Fe[$e];cn.initializer&&(Le++,Je=cn.initializer)}if(Le===1)return Je}else if(e.isVariableDeclaration(fe)&&fe.initializer)return fe.initializer;return fe}function In(fe){return e.isIdentifier(e.isExpressionStatement(fe)?fe.expression:fe)?[e.createDiagnosticForNode(fe,ee.cannotExtractIdentifier)]:void 0}function et(fe,Le){for(var Je=fe;Je!==Le;){if(Je.kind===158){e.hasModifier(Je,32)&&(Re|=f.InStaticRegion);break}else if(Je.kind===155){var $e=e.getContainingFunction(Je);$e.kind===161&&(Re|=f.InStaticRegion);break}else Je.kind===160&&(e.hasModifier(Je,32)&&(Re|=f.InStaticRegion));Je=Je.parent}}function ae(fe){var Le;if(function(ln){ln[ln.None=0]="None",ln[ln.Break=1]="Break",ln[ln.Continue=2]="Continue",ln[ln.Return=4]="Return"}(Le||(Le={})),e.Debug.assert(fe.pos<=fe.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(fe.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!e.isStatement(fe)&&!(e.isExpressionNode(fe)&&Y(fe)))return[e.createDiagnosticForNode(fe,ee.statementOrExpressionExpected)];if(fe.flags&8388608)return[e.createDiagnosticForNode(fe,ee.cannotExtractAmbientBlock)];var Je=e.getContainingClass(fe);Je&&et(fe,Je);var $e,Fe=4,cn;return Qe(fe),$e;function Qe(ln){if($e)return!0;if(e.isDeclaration(ln)){var ye=ln.kind===241?ln.parent.parent:ln;if(e.hasModifier(ye,1))return($e||($e=[])).push(e.createDiagnosticForNode(ln,ee.cannotExtractExportedEntity)),!0;Z.push(ln.symbol)}switch(ln.kind){case 253:return($e||($e=[])).push(e.createDiagnosticForNode(ln,ee.cannotExtractImport)),!0;case 101:if(ln.parent.kind===195){var ke=e.getContainingClass(ln);if(ke.pos<v.start||ke.end>=v.start+v.length)return($e||($e=[])).push(e.createDiagnosticForNode(ln,ee.cannotExtractSuper)),!0}else Re|=f.UsesThis;break}if(e.isFunctionLikeDeclaration(ln)||e.isClassLike(ln)){switch(ln.kind){case 243:case 244:e.isSourceFile(ln.parent)&&ln.parent.externalModuleIndicator===void 0&&($e||($e=[])).push(e.createDiagnosticForNode(ln,ee.functionWillNotBeVisibleInTheNewScope));break}return!1}var F=Fe;switch(ln.kind){case 226:Fe=0;break;case 239:Fe=0;break;case 222:ln.parent&&ln.parent.kind===239&&ln.parent.finallyBlock===ln&&(Fe=4);break;case 275:Fe|=1;break;default:e.isIterationStatement(ln,!1)&&(Fe|=1|2);break}switch(ln.kind){case 182:case 103:Re|=f.UsesThis;break;case 237:{var c=ln.label;(cn||(cn=[])).push(c.escapedText),e.forEachChild(ln,Qe),cn.pop();break}case 233:case 232:{var c=ln.label;c?e.contains(cn,c.escapedText)||($e||($e=[])).push(e.createDiagnosticForNode(ln,ee.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):Fe&(ln.kind===233?1:2)||($e||($e=[])).push(e.createDiagnosticForNode(ln,ee.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 205:Re|=f.IsAsyncFunction;break;case 211:Re|=f.IsGenerator;break;case 234:Fe&4?Re|=f.HasReturn:($e||($e=[])).push(e.createDiagnosticForNode(ln,ee.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(ln,Qe);break}Fe=F}}}Ee.getRangeToExtract=J;function Oe(S){return e.isStatement(S)?[S]:e.isExpressionNode(S)?e.isExpressionStatement(S.parent)?[S.parent]:S:void 0}function N(S){return e.isFunctionLikeDeclaration(S)||e.isSourceFile(S)||e.isModuleBlock(S)||e.isClassLike(S)}function Te(S){var v=k(S.range)?e.first(S.range):S.range;if(S.facts&f.UsesThis){var U=e.getContainingClass(v);if(U){var ue=e.findAncestor(v,e.isFunctionLikeDeclaration);return ue?[ue,U]:[U]}}for(var De=[];;)if(v=v.parent,v.kind===155&&(v=e.findAncestor(v,function(Z){return e.isFunctionLikeDeclaration(Z)}).parent),N(v)&&(De.push(v),v.kind===288))return De}function ie(S,v,U){var ue=C(S,v),De=ue.scopes,Z=ue.readsAndWrites,Re=Z.target,we=Z.usagesPerScope,He=Z.functionErrorsPerScope,ve=Z.exposedVariableDeclarations;return e.Debug.assert(!He[U].length,"The extraction went missing? How?"),v.cancellationToken.throwIfCancellationRequested(),se(Re,De[U],we[U],ve,S,v)}function ce(S,v,U){var ue=C(S,v),De=ue.scopes,Z=ue.readsAndWrites,Re=Z.target,we=Z.usagesPerScope,He=Z.constantErrorsPerScope,ve=Z.exposedVariableDeclarations;e.Debug.assert(!He[U].length,"The extraction went missing? How?"),e.Debug.assert(ve.length===0,"Extract constant accepted a range containing a variable declaration?"),v.cancellationToken.throwIfCancellationRequested();var je=e.isExpression(Re)?Re:Re.statements[0].expression;return G(je,De[U],we[U],S.facts,v)}function x(S,v){var U=C(S,v),ue=U.scopes,De=U.readsAndWrites,Z=De.functionErrorsPerScope,Re=De.constantErrorsPerScope,we=ue.map(function(He,ve){var je=P(He),w=h(He),j=e.isFunctionLikeDeclaration(He)?X(He):e.isClassLike(He)?$(He):Q(He),Pe,a;return j===1?(Pe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[je,"global"]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[w,"global"])):j===0?(Pe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[je,"module"]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[w,"module"])):(Pe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[je,j]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[w,j])),ve===0&&!e.isClassLike(He)&&(a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[w])),{functionExtraction:{description:Pe,errors:Z[ve]},constantExtraction:{description:a,errors:Re[ve]}}});return we}function C(S,v){var U=v.file,ue=Te(S),De=T(S,U),Z=O(S,ue,De,U,v.program.getTypeChecker(),v.cancellationToken);return{scopes:ue,readsAndWrites:Z}}function P(S){return e.isFunctionLikeDeclaration(S)?"inner function":e.isClassLike(S)?"method":"function"}function h(S){return e.isClassLike(S)?"readonly field":"constant"}function X(S){switch(S.kind){case 161:return"constructor";case 200:case 243:return S.name?"function '"+S.name.text+"'":"anonymous function";case 201:return"arrow function";case 160:return"method '"+S.name.getText()+"'";case 162:return"'get "+S.name.getText()+"'";case 163:return"'set "+S.name.getText()+"'";default:throw e.Debug.assertNever(S,"Unexpected scope kind "+S.kind)}}function $(S){return S.kind===244?S.name?"class '"+S.name.text+"'":"anonymous class declaration":S.name?"class expression '"+S.name.text+"'":"anonymous class expression"}function Q(S){return S.kind===249?"namespace '"+S.parent.name.getText()+"'":S.externalModuleIndicator?0:1}var z;(function(S){S[S.Module=0]="Module",S[S.Global=1]="Global"})(z||(z={}));function se(S,v,U,ue,De,Z){var Re=U.usages,we=U.typeParameterUsages,He=U.substitutions,ve=Z.program.getTypeChecker(),je=v.getSourceFile(),w=e.getUniqueName(e.isClassLike(v)?"newMethod":"newFunction",je),j=e.isInJSFile(v),Pe=e.createIdentifier(w),a,Ze=[],In=[],et;Re.forEach(function(ct,ot){var dt;if(!j){var Ct=ve.getTypeOfSymbolAtLocation(ct.symbol,ct.node);Ct=ve.getBaseTypeOfLiteralType(Ct),dt=ve.typeToTypeNode(Ct,v,1)}var st=e.createParameter(void 0,void 0,void 0,ot,void 0,dt);Ze.push(st),ct.usage===2&&(et||(et=[])).push(ct),In.push(e.createIdentifier(ot))});var ae=e.arrayFrom(we.values()).map(function(ct){return{type:ct,declaration:q(ct)}}),fe=ae.sort(be),Le=fe.length===0?void 0:fe.map(function(ct){return ct.declaration}),Je=Le!==void 0?Le.map(function(ct){return e.createTypeReferenceNode(ct.name,void 0)}):void 0;if(e.isExpression(S)&&!j){var $e=ve.getContextualType(S);a=ve.typeToTypeNode($e,v,1)}var Fe=K(S,ue,et,He,!!(De.facts&f.HasReturn)),cn=Fe.body,Qe=Fe.returnValueProperty;e.suppressLeadingAndTrailingTrivia(cn);var ln;if(e.isClassLike(v)){var ye=j?[]:[e.createToken(116)];De.facts&f.InStaticRegion&&ye.push(e.createToken(119)),De.facts&f.IsAsyncFunction&&ye.push(e.createToken(125)),ln=e.createMethod(void 0,ye.length?ye:void 0,De.facts&f.IsGenerator?e.createToken(41):void 0,Pe,void 0,Le,Ze,a,cn)}else ln=e.createFunctionDeclaration(void 0,De.facts&f.IsAsyncFunction?[e.createToken(125)]:void 0,De.facts&f.IsGenerator?e.createToken(41):void 0,Pe,Le,Ze,a,cn);var ke=e.textChanges.ChangeTracker.fromContext(Z),F=(k(De.range)?e.last(De.range):De.range).end,c=I(F,v);c?ke.insertNodeBefore(Z.file,c,ln,!0):ke.insertNodeAtEndOfScope(Z.file,v,ln);var L=[],te=R(v,De,w),Se=e.createCall(te,Je,In);if(De.facts&f.IsGenerator&&(Se=e.createYield(e.createToken(41),Se)),De.facts&f.IsAsyncFunction&&(Se=e.createAwait(Se)),ue.length&&!et)if(e.Debug.assert(!Qe,"Expected no returnValueProperty"),e.Debug.assert(!(De.facts&f.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),ue.length===1){var Ne=ue[0];L.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(Ne.name),e.getSynthesizedDeepClone(Ne.type),Se)],Ne.parent.flags)))}else{for(var ze=[],Tn=[],wn=ue[0].parent.flags,jn=!1,nn=0,pn=ue;nn<pn.length;nn++){var Ne=pn[nn];ze.push(e.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(Ne.name)));var le=ve.typeToTypeNode(ve.getBaseTypeOfLiteralType(ve.getTypeAtLocation(Ne)),v,1);Tn.push(e.createPropertySignature(void 0,Ne.symbol.name,void 0,le,void 0)),jn=jn||Ne.type!==void 0,wn=wn&Ne.parent.flags}var oe=jn?e.createTypeLiteralNode(Tn):void 0;oe&&e.setEmitFlags(oe,1),L.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createObjectBindingPattern(ze),oe,Se)],wn)))}else if(ue.length||et){if(ue.length)for(var Cn=0,yn=ue;Cn<yn.length;Cn++){var Ne=yn[Cn],_e=Ne.parent.flags;_e&2&&(_e=_e&~2|1),L.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(Ne.symbol.name,ut(Ne.type))],_e)))}Qe&&L.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(Qe,ut(a))],1)));var dn=E(ue,et);Qe&&dn.unshift(e.createShorthandPropertyAssignment(Qe)),dn.length===1?(e.Debug.assert(!Qe,"Shouldn't have returnValueProperty here"),L.push(e.createStatement(e.createAssignment(dn[0].name,Se))),De.facts&f.HasReturn&&L.push(e.createReturn())):(L.push(e.createStatement(e.createAssignment(e.createObjectLiteral(dn),Se))),Qe&&L.push(e.createReturn(e.createIdentifier(Qe))))}else De.facts&f.HasReturn?L.push(e.createReturn(Se)):k(De.range)?L.push(e.createStatement(Se)):L.push(Se);k(De.range)?ke.replaceNodeRangeWithNodes(Z.file,e.first(De.range),e.last(De.range),L):ke.replaceNodeWithNodes(Z.file,De.range,L);var un=ke.getChanges(),Rn=k(De.range)?e.first(De.range):De.range,at=Rn.getSourceFile().fileName,Bn=e.getRenameLocation(un,at,w,!1);return{renameFilename:at,renameLocation:Bn,edits:un};function ut(ct){if(ct===void 0)return;for(var ot=e.getSynthesizedDeepClone(ct),dt=ot;e.isParenthesizedTypeNode(dt);)dt=dt.type;return e.isUnionTypeNode(dt)&&e.find(dt.types,function(Ct){return Ct.kind===145})?ot:e.createUnionTypeNode([ot,e.createKeywordTypeNode(145)])}}function G(S,v,U,ue,De){var Z,Re=U.substitutions,we=De.program.getTypeChecker(),He=v.getSourceFile(),ve=e.getUniqueName(e.isClassLike(v)?"newProperty":"newLocal",He),je=e.isInJSFile(v),w=je||!we.isContextSensitive(S)?void 0:we.typeToTypeNode(we.getContextualType(S),v,1),j=m(S,Re);Z=Qe(w,j),w=Z.variableType,j=Z.initializer,e.suppressLeadingAndTrailingTrivia(j);var Pe=e.textChanges.ChangeTracker.fromContext(De);if(e.isClassLike(v)){e.Debug.assert(!je,"Cannot extract to a JS class");var a=[];a.push(e.createToken(116)),ue&f.InStaticRegion&&a.push(e.createToken(119)),a.push(e.createToken(137));var Ze=e.createProperty(void 0,a,ve,void 0,w,j),In=e.createPropertyAccess(ue&f.InStaticRegion?e.createIdentifier(v.name.getText()):e.createThis(),e.createIdentifier(ve)),et=S.pos,ae=D(et,v);Pe.insertNodeBefore(De.file,ae,Ze,!0),Pe.replaceNode(De.file,S,In)}else{var fe=e.createVariableDeclaration(ve,w,j),Le=H(S,v);if(Le){Pe.insertNodeBefore(De.file,Le,fe);var In=e.createIdentifier(ve);Pe.replaceNode(De.file,S,In)}else if(S.parent.kind===225&&v===e.findAncestor(S,N)){var Je=e.createVariableStatement(void 0,e.createVariableDeclarationList([fe],2));Pe.replaceNode(De.file,S.parent,Je)}else{var Je=e.createVariableStatement(void 0,e.createVariableDeclarationList([fe],2)),ae=y(S,v);if(ae.pos===0?Pe.insertNodeAtTopOfFile(De.file,Je,!1):Pe.insertNodeBefore(De.file,ae,Je,!1),S.parent.kind===225)Pe.delete(De.file,S.parent);else{var In=e.createIdentifier(ve);Pe.replaceNode(De.file,S,In)}}}var $e=Pe.getChanges(),Fe=S.getSourceFile().fileName,cn=e.getRenameLocation($e,Fe,ve,!0);return{renameFilename:Fe,renameLocation:cn,edits:$e};function Qe(ln,ye){if(ln===void 0)return{variableType:ln,initializer:ye};if(!e.isFunctionExpression(ye)&&!e.isArrowFunction(ye)||!!ye.typeParameters)return{variableType:ln,initializer:ye};var ke=we.getTypeAtLocation(S),F=e.singleOrUndefined(we.getSignaturesOfType(ke,0));if(!F)return{variableType:ln,initializer:ye};if(F.getTypeParameters())return{variableType:ln,initializer:ye};for(var c=[],L=!1,te=0,Se=ye.parameters;te<Se.length;te++){var Ne=Se[te];if(Ne.type)c.push(Ne);else{var ze=we.getTypeAtLocation(Ne);ze===we.getAnyType()&&(L=!0),c.push(e.updateParameter(Ne,Ne.decorators,Ne.modifiers,Ne.dotDotDotToken,Ne.name,Ne.questionToken,Ne.type||we.typeToTypeNode(ze,v,1),Ne.initializer))}}if(L)return{variableType:ln,initializer:ye};if(ln=void 0,e.isArrowFunction(ye))ye=e.updateArrowFunction(ye,S.modifiers,ye.typeParameters,c,ye.type||we.typeToTypeNode(F.getReturnType(),v,1),ye.equalsGreaterThanToken,ye.body);else{if(F&&!!F.thisParameter){var Tn=e.firstOrUndefined(c);if(!Tn||e.isIdentifier(Tn.name)&&Tn.name.escapedText!=="this"){var wn=we.getTypeOfSymbolAtLocation(F.thisParameter,S);c.splice(0,0,e.createParameter(void 0,void 0,void 0,"this",void 0,we.typeToTypeNode(wn,v,1)))}}ye=e.updateFunctionExpression(ye,S.modifiers,ye.asteriskToken,ye.name,ye.typeParameters,c,ye.type||we.typeToTypeNode(F.getReturnType(),v,1),ye.body)}return{variableType:ln,initializer:ye}}}function H(S,v){for(var U;S!==void 0&&S!==v;){if(e.isVariableDeclaration(S)&&S.initializer===U&&e.isVariableDeclarationList(S.parent)&&S.parent.declarations.length>1)return S;U=S,S=S.parent}}function q(S){var v,U=S.symbol;if(U&&U.declarations)for(var ue=0,De=U.declarations;ue<De.length;ue++){var Z=De[ue];(v===void 0||Z.pos<v.pos)&&(v=Z)}return v}function be(S,v){var U=S.type,ue=S.declaration,De=v.type,Z=v.declaration;return e.compareProperties(ue,Z,"pos",e.compareValues)||e.compareStringsCaseSensitive(U.symbol?U.symbol.getName():"",De.symbol?De.symbol.getName():"")||e.compareValues(U.id,De.id)}function R(S,v,U){var ue=e.createIdentifier(U);if(e.isClassLike(S)){var De=v.facts&f.InStaticRegion?e.createIdentifier(S.name.text):e.createThis();return e.createPropertyAccess(De,ue)}else return ue}function K(S,v,U,ue,De){var Z=U!==void 0||v.length>0;if(e.isBlock(S)&&!Z&&ue.size===0)return{body:e.createBlock(S.statements,!0),returnValueProperty:void 0};var Re,we=!1,He=e.createNodeArray(e.isBlock(S)?S.statements.slice(0):[e.isStatement(S)?S:e.createReturn(S)]);if(Z||ue.size){var ve=e.visitNodes(He,w).slice();if(Z&&!De&&e.isStatement(S)){var je=E(v,U);je.length===1?ve.push(e.createReturn(je[0].name)):ve.push(e.createReturn(e.createObjectLiteral(je)))}return{body:e.createBlock(ve,!0),returnValueProperty:Re}}else return{body:e.createBlock(He,!0),returnValueProperty:void 0};function w(j){if(!we&&j.kind===234&&Z){var Pe=E(v,U);return j.expression&&(Re||(Re="__return"),Pe.unshift(e.createPropertyAssignment(Re,e.visitNode(j.expression,w)))),Pe.length===1?e.createReturn(Pe[0].name):e.createReturn(e.createObjectLiteral(Pe))}else{var a=we;we=we||e.isFunctionLikeDeclaration(j)||e.isClassLike(j);var Ze=ue.get(e.getNodeId(j).toString()),In=Ze?e.getSynthesizedDeepClone(Ze):e.visitEachChild(j,w,e.nullTransformationContext);return we=a,In}}}function m(S,v){return v.size?U(S):S;function U(ue){var De=v.get(e.getNodeId(ue).toString());return De?e.getSynthesizedDeepClone(De):e.visitEachChild(ue,U,e.nullTransformationContext)}}function _(S){if(e.isFunctionLikeDeclaration(S)){var v=S.body;if(e.isBlock(v))return v.statements}else{if(e.isModuleBlock(S)||e.isSourceFile(S))return S.statements;if(e.isClassLike(S))return S.members;e.assertType(S)}return e.emptyArray}function I(S,v){return e.find(_(v),function(U){return U.pos>=S&&e.isFunctionLikeDeclaration(U)&&!e.isConstructorDeclaration(U)})}function D(S,v){var U=v.members;e.Debug.assert(U.length>0,"Found no members");for(var ue,De=!0,Z=0,Re=U;Z<Re.length;Z++){var we=Re[Z];if(we.pos>S)return ue||U[0];if(De&&!e.isPropertyDeclaration(we)){if(ue!==void 0)return we;De=!1}ue=we}return ue===void 0?e.Debug.fail():ue}function y(S,v){e.Debug.assert(!e.isClassLike(v));for(var U,ue=S;ue!==v;ue=ue.parent)N(ue)&&(U=ue);for(var ue=(U||S).parent;;ue=ue.parent){if(pe(ue)){for(var De=void 0,Z=0,Re=ue.statements;Z<Re.length;Z++){var we=Re[Z];if(we.pos>S.pos)break;De=we}return!De&&e.isCaseClause(ue)?(e.Debug.assert(e.isSwitchStatement(ue.parent.parent),"Grandparent isn't a switch statement"),ue.parent.parent):e.Debug.assertDefined(De,"prevStatement failed to get set")}e.Debug.assert(ue!==v,"Didn't encounter a block-like before encountering scope")}}function E(S,v){var U=e.map(S,function(De){return e.createShorthandPropertyAssignment(De.symbol.name)}),ue=e.map(v,function(De){return e.createShorthandPropertyAssignment(De.symbol.name)});return U===void 0?ue:ue===void 0?U:U.concat(ue)}function k(S){return e.isArray(S)}function T(S,v){return k(S.range)?{pos:e.first(S.range).getStart(v),end:e.last(S.range).getEnd()}:S.range}var ne;(function(S){S[S.Read=1]="Read",S[S.Write=2]="Write"})(ne||(ne={}));function O(S,v,U,ue,De,Z){var Re=e.createMap(),we=[],He=[],ve=[],je=[],w=[],j=e.createMap(),Pe=[],a,Ze=k(S.range)?S.range.length===1&&e.isExpressionStatement(S.range[0])?S.range[0].expression:void 0:S.range,In;if(Ze===void 0){var et=S.range,ae=e.first(et).getStart(),fe=e.last(et).end;In=e.createFileDiagnostic(ue,ae,fe-ae,ee.expressionExpected)}else De.getTypeAtLocation(Ze).flags&(16384|131072)&&(In=e.createDiagnosticForNode(Ze,ee.uselessConstantType));for(var Le=0,Je=v;Le<Je.length;Le++){var $e=Je[Le];we.push({usages:e.createMap(),typeParameterUsages:e.createMap(),substitutions:e.createMap()}),He.push(e.createMap()),ve.push(e.isFunctionLikeDeclaration($e)&&$e.kind!==243?[e.createDiagnosticForNode($e,ee.cannotExtractToOtherFunctionLike)]:[]);var Fe=[];In&&Fe.push(In),e.isClassLike($e)&&e.isInJSFile($e)&&Fe.push(e.createDiagnosticForNode($e,ee.cannotExtractToJSClass)),e.isArrowFunction($e)&&!e.isBlock($e.body)&&Fe.push(e.createDiagnosticForNode($e,ee.cannotExtractToExpressionArrowFunction)),je.push(Fe)}var cn=e.createMap(),Qe=k(S.range)?e.createBlock(S.range):S.range,ln=k(S.range)?e.first(S.range):S.range,ye=nn(ln);if(le(Qe),ye&&!k(S.range)){var ke=De.getContextualType(S.range);pn(ke)}if(Re.size>0){for(var F=e.createMap(),c=0,L=ln;L!==void 0&&c<v.length;L=L.parent)if(L===v[c]&&(F.forEach(function(un,Rn){we[c].typeParameterUsages.set(Rn,un)}),c++),e.isDeclarationWithTypeParameters(L))for(var te=0,Se=e.getEffectiveTypeParameterDeclarations(L);te<Se.length;te++){var Ne=Se[te],ze=De.getTypeAtLocation(Ne);Re.has(ze.id.toString())&&F.set(ze.id.toString(),ze)}e.Debug.assert(c===v.length,"Should have iterated all scopes")}if(w.length){var Tn=e.isBlockScope(v[0],v[0].parent)?v[0]:e.getEnclosingBlockScopeContainer(v[0]);e.forEachChild(Tn,yn)}for(var wn=function(un){var Rn=we[un];if(un>0&&(Rn.usages.size>0||Rn.typeParameterUsages.size>0)){var at=k(S.range)?S.range[0]:S.range;je[un].push(e.createDiagnosticForNode(at,ee.cannotAccessVariablesFromNestedScopes))}var Bn=!1,ut;if(we[un].usages.forEach(function(ot){ot.usage===2&&(Bn=!0,ot.symbol.flags&106500&&ot.symbol.valueDeclaration&&e.hasModifier(ot.symbol.valueDeclaration,64)&&(ut=ot.symbol.valueDeclaration))}),e.Debug.assert(k(S.range)||Pe.length===0,"No variable declarations expected if something was extracted"),Bn&&!k(S.range)){var ct=e.createDiagnosticForNode(S.range,ee.cannotWriteInExpression);ve[un].push(ct),je[un].push(ct)}else if(ut&&un>0){var ct=e.createDiagnosticForNode(ut,ee.cannotExtractReadonlyPropertyInitializerOutsideConstructor);ve[un].push(ct),je[un].push(ct)}else if(a){var ct=e.createDiagnosticForNode(a,ee.cannotExtractExportedEntity);ve[un].push(ct),je[un].push(ct)}},jn=0;jn<v.length;jn++)wn(jn);return{target:Qe,usagesPerScope:we,functionErrorsPerScope:ve,constantErrorsPerScope:je,exposedVariableDeclarations:Pe};function nn(un){return!!e.findAncestor(un,function(Rn){return e.isDeclarationWithTypeParameters(Rn)&&e.getEffectiveTypeParameterDeclarations(Rn).length!==0})}function pn(un){for(var Rn=De.getSymbolWalker(function(){return Z.throwIfCancellationRequested(),!0}),at=Rn.walkType(un).visitedTypes,Bn=0,ut=at;Bn<ut.length;Bn++){var ct=ut[Bn];ct.isTypeParameter()&&Re.set(ct.id.toString(),ct)}}function le(un,Rn){if(Rn===void 0&&(Rn=1),ye){var at=De.getTypeAtLocation(un);pn(at)}if(e.isDeclaration(un)&&un.symbol&&w.push(un),e.isAssignmentExpression(un))le(un.left,2),le(un.right);else if(e.isUnaryExpressionWithWrite(un))le(un.operand,2);else if(e.isPropertyAccessExpression(un)||e.isElementAccessExpression(un))e.forEachChild(un,le);else if(e.isIdentifier(un)){if(!un.parent)return;if(e.isQualifiedName(un.parent)&&un!==un.parent.left)return;if(e.isPropertyAccessExpression(un.parent)&&un!==un.parent.expression)return;oe(un,Rn,e.isPartOfTypeNode(un))}else e.forEachChild(un,le)}function oe(un,Rn,at){var Bn=Cn(un,Rn,at);if(Bn)for(var ut=0;ut<v.length;ut++){var ct=He[ut].get(Bn);ct&&we[ut].substitutions.set(e.getNodeId(un).toString(),ct)}}function Cn(un,Rn,at){var Bn=_e(un);if(!Bn)return;var ut=e.getSymbolId(Bn).toString(),ct=cn.get(ut);if(ct&&ct>=Rn)return ut;if(cn.set(ut,Rn),ct){for(var ot=0,dt=we;ot<dt.length;ot++){var Ct=dt[ot],st=Ct.usages.get(un.text);st&&Ct.usages.set(un.text,{usage:Rn,symbol:Bn,node:un})}return ut}var Kn=Bn.getDeclarations(),Ie=Kn&&e.find(Kn,function(va){return va.getSourceFile()===ue});if(!Ie)return;if(e.rangeContainsStartEnd(U,Ie.getStart(),Ie.end))return;if(S.facts&f.IsGenerator&&Rn===2){for(var Ce=e.createDiagnosticForNode(un,ee.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),_n=0,yt=ve;_n<yt.length;_n++){var Dt=yt[_n];Dt.push(Ce)}for(var Ht=0,$t=je;Ht<$t.length;Ht++){var Dt=$t[Ht];Dt.push(Ce)}}for(var wr=0;wr<v.length;wr++){var Yr=v[wr],Hr=De.resolveName(Bn.name,Yr,Bn.flags,!1);if(Hr===Bn)continue;if(!He[wr].has(ut)){var mt=dn(Bn.exportSymbol||Bn,Yr,at);if(mt)He[wr].set(ut,mt);else if(at){if(!(Bn.flags&262144)){var Ce=e.createDiagnosticForNode(un,ee.typeWillNotBeVisibleInTheNewScope);ve[wr].push(Ce),je[wr].push(Ce)}}else we[wr].usages.set(un.text,{usage:Rn,symbol:Bn,node:un})}}return ut}function yn(un){if(un===S.range||k(S.range)&&S.range.indexOf(un)>=0)return;var Rn=e.isIdentifier(un)?_e(un):De.getSymbolAtLocation(un);if(Rn){var at=e.find(w,function(ut){return ut.symbol===Rn});if(at)if(e.isVariableDeclaration(at)){var Bn=at.symbol.id.toString();j.has(Bn)||(Pe.push(at),j.set(Bn,!0))}else a=a||at}e.forEachChild(un,yn)}function _e(un){return un.parent&&e.isShorthandPropertyAssignment(un.parent)&&un.parent.name===un?De.getShorthandAssignmentValueSymbol(un.parent):De.getSymbolAtLocation(un)}function dn(un,Rn,at){if(!un)return;var Bn=un.getDeclarations();if(Bn&&Bn.some(function(ct){return ct.parent===Rn}))return e.createIdentifier(un.name);var ut=dn(un.parent,Rn,at);return ut===void 0?void 0:at?e.createQualifiedName(ut,e.createIdentifier(un.name)):e.createPropertyAccess(ut,un.name)}}function Y(S){var v=S.parent;switch(v.kind){case 282:return!1}switch(S.kind){case 10:return v.kind!==253&&v.kind!==257;case 212:case 188:case 190:return!1;case 75:return v.kind!==190&&v.kind!==257&&v.kind!==261}return!0}function pe(S){switch(S.kind){case 222:case 288:case 249:case 275:return!0;default:return!1}}})(qe=M.extractSymbol||(M.extractSymbol={}))})(o=e.refactor||(e.refactor={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="Extract type",Ee="Extract to type alias",Ge="Extract to interface",Be="Extract to typedef";M.registerRefactor(qe,{getAvailableActions:function(ie){var ce=he(ie);return ce?[{name:qe,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:ce.isJS?[{name:Be,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef)}]:e.append([{name:Ee,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias)}],ce.typeElements&&{name:Ge,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface)})}]:e.emptyArray},getEditsForAction:function(ie,ce){var x=ie.file,C=e.Debug.assertDefined(he(ie),"Expected to find a range to extract"),P=e.getUniqueName("NewType",x),h=e.textChanges.ChangeTracker.with(ie,function(Q){switch(ce){case Ee:return e.Debug.assert(!C.isJS,"Invalid actionName/JS combo"),Oe(Q,x,P,C);case Be:return e.Debug.assert(C.isJS,"Invalid actionName/JS combo"),Te(Q,x,P,C);case Ge:return e.Debug.assert(!C.isJS&&!!C.typeElements,"Invalid actionName/JS combo"),N(Q,x,P,C);default:e.Debug.fail("Unexpected action name")}}),X=x.fileName,$=e.getRenameLocation(h,X,P,!1);return{edits:h,renameFilename:X,renameLocation:$}}});function he(ie){var ce=ie.file,x=ie.startPosition,C=e.isSourceFileJS(ce),P=e.getTokenAtPosition(ce,x),h=e.createTextRangeFromSpan(e.getRefactorContextSpan(ie)),X=e.findAncestor(P,function(G){return G.parent&&f(h,G,ce)&&!f(h,G.parent,ce)});if(!X||!e.isTypeNode(X))return;var $=ie.program.getTypeChecker(),Q=e.Debug.assertDefined(e.findAncestor(X,e.isStatement),"Should find a statement"),z=J($,X,Q,ce);if(!z)return;var se=ee($,X);return{isJS:C,selection:X,firstStatement:Q,typeParameters:z,typeElements:se}}function ee(ie,ce){if(!ce)return;if(e.isIntersectionTypeNode(ce)){for(var x=[],C=e.createMap(),P=0,h=ce.types;P<h.length;P++){var X=h[P],$=ee(ie,X);if(!$||!$.every(function(Q){return Q.name&&e.addToSeen(C,e.getNameFromPropertyName(Q.name))}))return;e.addRange(x,$)}return x}else{if(e.isParenthesizedTypeNode(ce))return ee(ie,ce.type);if(e.isTypeLiteralNode(ce))return ce.members}return}function f(ie,ce,x){return e.rangeContainsStartEnd(ie,e.skipTrivia(x.text,ce.pos),ce.end)}function J(ie,ce,x,C){var P=[];return h(ce)?void 0:P;function h(X){if(e.isTypeReferenceNode(X)){if(e.isIdentifier(X.typeName)){var $=ie.resolveName(X.typeName.text,X.typeName,262144,!0);if($){var Q=e.cast(e.first($.declarations),e.isTypeParameterDeclaration);f(x,Q,C)&&!f(ce,Q,C)&&P.push(Q)}}}else if(e.isInferTypeNode(X)){var z=e.findAncestor(X,function(G){return e.isConditionalTypeNode(G)&&f(G.extendsType,X,C)});if(!z||!f(ce,z,C))return!0}else if(e.isTypePredicateNode(X)||e.isThisTypeNode(X)){var se=e.findAncestor(X.parent,e.isFunctionLike);if(se&&se.type&&f(se.type,X,C)&&!f(ce,se,C))return!0}else if(e.isTypeQueryNode(X)){if(e.isIdentifier(X.exprName)){var $=ie.resolveName(X.exprName.text,X.exprName,111551,!1);if($&&f(x,$.valueDeclaration,C)&&!f(ce,$.valueDeclaration,C))return!0}else if(e.isThisIdentifier(X.exprName.left)&&!f(ce,X.parent,C))return!0}return e.forEachChild(X,h)}}function Oe(ie,ce,x,C){var P=C.firstStatement,h=C.selection,X=C.typeParameters,$=e.createTypeAliasDeclaration(void 0,void 0,x,X.map(function(Q){return e.updateTypeParameterDeclaration(Q,Q.name,Q.constraint,void 0)}),h);ie.insertNodeBefore(ce,P,$,!0),ie.replaceNode(ce,h,e.createTypeReferenceNode(x,X.map(function(Q){return e.createTypeReferenceNode(Q.name,void 0)})))}function N(ie,ce,x,C){var P=C.firstStatement,h=C.selection,X=C.typeParameters,$=C.typeElements,Q=e.createInterfaceDeclaration(void 0,void 0,x,X,void 0,$);ie.insertNodeBefore(ce,P,Q,!0),ie.replaceNode(ce,h,e.createTypeReferenceNode(x,X.map(function(z){return e.createTypeReferenceNode(z.name,void 0)})))}function Te(ie,ce,x,C){var P=C.firstStatement,h=C.selection,X=C.typeParameters,$=e.createNode(315);$.tagName=e.createIdentifier("typedef"),$.fullName=e.createIdentifier(x),$.name=$.fullName,$.typeExpression=e.createJSDocTypeExpression(h);var Q=[];e.forEach(X,function(z){var se=e.getEffectiveConstraintOfTypeParameter(z),G=e.createNode(314);G.tagName=e.createIdentifier("template"),G.constraint=se&&e.cast(se,e.isJSDocTypeExpression);var H=e.createNode(154);H.name=z.name,G.typeParameters=e.createNodeArray([H]),Q.push(G)}),ie.insertNodeBefore(ce,P,e.createJSDocComment(void 0,e.createNodeArray(e.concatenate(Q,[$]))),!0),ie.replaceNode(ce,h,e.createTypeReferenceNode(x,X.map(function(z){return e.createTypeReferenceNode(z.name,void 0)})))}})(o=e.refactor||(e.refactor={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe;(function(Ee){var Ge="Generate 'get' and 'set' accessors",Be=e.Diagnostics.Generate_get_and_set_accessors.message;M.registerRefactor(Ge,{getEditsForAction:ee,getAvailableActions:he});function he(z){return ce(z)?[{name:Ge,description:Be,actions:[{name:Ge,description:Be}]}]:e.emptyArray}function ee(z,se){var G=z.file,H=ce(z);if(!H)return;var q=e.isSourceFileJS(G),be=e.textChanges.ChangeTracker.fromContext(z),R=H.isStatic,K=H.isReadonly,m=H.fieldName,_=H.accessorName,I=H.originalName,D=H.type,y=H.container,E=H.declaration,k=H.renameAccessor;e.suppressLeadingAndTrailingTrivia(m),e.suppressLeadingAndTrailingTrivia(E),e.suppressLeadingAndTrailingTrivia(y);var T=e.isClassLike(y),ne=e.getModifierFlags(E)&~64,O=T?!ne||ne&8?Te(q,R,118):e.createNodeArray(e.createModifiersFromModifierFlags(ne)):void 0,Y=T?Te(q,R,116):void 0;X(be,G,E,m,Y);var pe=x(m,_,D,O,R,y);if(e.suppressLeadingAndTrailingTrivia(pe),$(be,G,pe,E,y),K){var S=e.getFirstConstructorWithBody(y);S&&Q(be,G,S,m.text,I)}else{var v=C(m,_,D,O,R,y);e.suppressLeadingAndTrailingTrivia(v),$(be,G,v,E,y)}var U=be.getChanges(),ue=G.fileName,De=k?_:m,Z=e.isIdentifier(De)?0:-1,Re=Z+e.getRenameLocation(U,ue,De.text,e.isParameter(E));return{renameFilename:ue,renameLocation:Re,edits:U}}function f(z){return e.isIdentifier(z)||e.isStringLiteral(z)}function J(z){return e.isParameterPropertyDeclaration(z,z.parent)||e.isPropertyDeclaration(z)||e.isPropertyAssignment(z)}function Oe(z,se){return e.isIdentifier(se)?e.createIdentifier(z):e.createLiteral(z)}function N(z,se,G){var H=se?G.name:e.createThis();return e.isIdentifier(z)?e.createPropertyAccess(H,z):e.createElementAccess(H,e.createLiteral(z))}function Te(z,se,G){var H=e.append(z?void 0:[e.createToken(G)],se?e.createToken(119):void 0);return H&&e.createNodeArray(H)}function ie(z){return z.charCodeAt(0)===95}function ce(z){var se=z.file,G=z.startPosition,H=z.endPosition,q=e.getTokenAtPosition(se,G),be=e.findAncestor(q.parent,J),R=28|32|64;if(!be||!e.nodeOverlapsWithStartEnd(be.name,se,G,H)||!f(be.name)||(e.getModifierFlags(be)|R)!==R)return;var K=be.name.text,m=ie(K),_=Oe(m?K:e.getUniqueName("_"+K,se),be.name),I=Oe(m?e.getUniqueName(K.substring(1),se):K,be.name);return{isStatic:e.hasStaticModifier(be),isReadonly:e.hasReadonlyModifier(be),type:e.getTypeAnnotationNode(be),container:be.kind===155?be.parent.parent:be.parent,originalName:be.name.text,declaration:be,fieldName:_,accessorName:I,renameAccessor:m}}function x(z,se,G,H,q,be){return e.createGetAccessor(void 0,H,se,void 0,G,e.createBlock([e.createReturn(N(z,q,be))],!0))}function C(z,se,G,H,q,be){return e.createSetAccessor(void 0,H,se,[e.createParameter(void 0,void 0,void 0,e.createIdentifier("value"),void 0,G)],e.createBlock([e.createStatement(e.createAssignment(N(z,q,be),e.createIdentifier("value")))],!0))}function P(z,se,G,H,q){var be=e.updateProperty(G,G.decorators,q,H,G.questionToken||G.exclamationToken,G.type,G.initializer);z.replaceNode(se,G,be)}function h(z,se,G,H){var q=e.updatePropertyAssignment(G,H,G.initializer);z.replacePropertyAssignment(se,G,q)}function X(z,se,G,H,q){e.isPropertyDeclaration(G)?P(z,se,G,H,q):e.isPropertyAssignment(G)?h(z,se,G,H):z.replaceNode(se,G,e.updateParameter(G,G.decorators,q,G.dotDotDotToken,e.cast(H,e.isIdentifier),G.questionToken,G.type,G.initializer))}function $(z,se,G,H,q){e.isParameterPropertyDeclaration(H,H.parent)?z.insertNodeAtClassStart(se,q,G):e.isPropertyAssignment(H)?z.insertNodeAfterComma(se,H,G):z.insertNodeAfter(se,H,G)}function Q(z,se,G,H,q){if(!G.body)return;G.body.forEachChild(function be(R){e.isElementAccessExpression(R)&&R.expression.kind===103&&e.isStringLiteral(R.argumentExpression)&&R.argumentExpression.text===q&&e.isWriteAccess(R)&&z.replaceNode(se,R.argumentExpression,e.createStringLiteral(H)),e.isPropertyAccessExpression(R)&&R.expression.kind===103&&R.name.text===q&&e.isWriteAccess(R)&&z.replaceNode(se,R.name,e.createIdentifier(H)),!e.isFunctionLike(R)&&!e.isClassLike(R)&&R.forEachChild(be)})}})(qe=M.generateGetAccessorAndSetAccessor||(M.generateGetAccessorAndSetAccessor={}))})(o=e.refactor||(e.refactor={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe="Move to a new file";M.registerRefactor(qe,{getAvailableActions:function(ve){if(!ve.preferences.allowTextChangesInNewFiles||Be(ve)===void 0)return e.emptyArray;var je=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file);return[{name:qe,description:je,actions:[{name:qe,description:je}]}]},getEditsForAction:function(ve,je){e.Debug.assert(je===qe,"Wrong refactor invoked");var w=e.Debug.assertDefined(Be(ve)),j=e.textChanges.ChangeTracker.with(ve,function(Pe){return Ge(ve.file,ve.program,w,Pe,ve.host,ve.preferences)});return{edits:j,renameFilename:void 0,renameLocation:void 0}}});function Ee(ve){var je=ve.file,w=e.createTextRangeFromSpan(e.getRefactorContextSpan(ve)),j=je.statements,Pe=e.findIndex(j,function(In){return In.end>w.pos});if(Pe===-1)return;var a=j[Pe];if(e.isNamedDeclaration(a)&&a.name&&e.rangeContainsRange(a.name,w))return{toMove:[j[Pe]],afterLast:j[Pe+1]};if(w.pos>a.getStart(je))return;var Ze=e.findIndex(j,function(In){return In.end>w.end},Pe);return Ze!==-1&&(Ze===0||j[Ze].getStart(je)<w.end)?void 0:{toMove:j.slice(Pe,Ze===-1?j.length:Ze),afterLast:Ze===-1?void 0:j[Ze]}}function Ge(ve,je,w,j,Pe,a){var Ze=je.getTypeChecker(),In=R(ve,w.all,Ze),et=e.getDirectoryPath(ve.fileName),ae=e.extensionFromPath(ve.fileName),fe=q(be(In.movedSymbols),ae,et,Pe),Le=fe+ae;j.createNewFile(ve,e.combinePaths(et,Le),f(ve,In,j,w,je,fe,a)),ee(je,j,ve.fileName,Le,e.hostGetCanonicalFileName(Pe))}function Be(ve){var je=Ee(ve);if(je===void 0)return;var w=[],j=[],Pe=je.toMove,a=je.afterLast;return e.getRangesWhere(Pe,function(Ze){return!he(Ze)},function(Ze,In){for(var et=Ze;et<In;et++)w.push(Pe[et]);j.push({first:Pe[Ze],afterLast:a})}),w.length===0?void 0:{all:w,ranges:j}}function he(ve){switch(ve.kind){case 253:return!0;case 252:return!e.hasModifier(ve,1);case 224:return ve.declarationList.declarations.every(function(je){return!!je.initializer&&e.isRequireCall(je.initializer,!0)});default:return!1}}function ee(ve,je,w,j,Pe){var a=ve.getCompilerOptions().configFile;if(!a)return;var Ze=e.normalizePath(e.combinePaths(w,"..",j)),In=e.getRelativePathFromFile(a.fileName,Ze,Pe),et=a.statements[0]&&e.tryCast(a.statements[0].expression,e.isObjectLiteralExpression),ae=et&&e.find(et.properties,function(fe){return e.isPropertyAssignment(fe)&&e.isStringLiteral(fe.name)&&fe.name.text==="files"});ae&&e.isArrayLiteralExpression(ae.initializer)&&je.insertNodeInListAfter(a,e.last(ae.initializer.elements),e.createLiteral(In),ae.initializer.elements)}function f(ve,je,w,j,Pe,a,Ze){var In=Pe.getTypeChecker();if(!ve.externalModuleIndicator&&!ve.commonJsModuleIndicator)return J(ve,j.ranges,w),j.all;var et=!!ve.externalModuleIndicator,ae=e.getQuotePreference(ve,Ze),fe=P(je.oldFileImportsFromNewFile,a,et,ae);return fe&&e.insertImport(w,ve,fe),Oe(ve,j.all,w,je.unusedImportsFromOldFile,In),J(ve,j.ranges,w),N(w,Pe,ve,je.movedSymbols,a),Tr(H(ve,je.oldImportsNeededByNewFile,je.newFileImportsFromOldFile,w,In,et,ae),Q(ve,j.all,je.oldFileImportsFromNewFile,et))}function J(ve,je,w){for(var j=0,Pe=je;j<Pe.length;j++){var a=Pe[j],Ze=a.first,In=a.afterLast;w.deleteNodeRangeExcludingEnd(ve,Ze,In)}}function Oe(ve,je,w,j,Pe){for(var a=0,Ze=ve.statements;a<Ze.length;a++){var In=Ze[a];if(e.contains(je,In))continue;C(In,function(et){return z(ve,et,w,function(ae){return j.has(Pe.getSymbolAtLocation(ae))})})}}function N(ve,je,w,j,Pe){for(var a=je.getTypeChecker(),Ze=function(fe){if(fe===w)return"continue";for(var Le=function(cn){C(cn,function(Qe){if(a.getSymbolAtLocation(x(Qe))!==w.symbol)return;var ln=function(c){var L=e.isBindingElement(c.parent)?e.getPropertySymbolFromBindingElement(a,c.parent):e.skipAlias(a.getSymbolAtLocation(c),a);return!!L&&j.has(L)};z(fe,Qe,ve,ln);var ye=e.combinePaths(e.getDirectoryPath(x(Qe).text),Pe),ke=_(Qe,e.createLiteral(ye),ln);ke&&ve.insertNodeAfter(fe,cn,ke);var F=Te(Qe);F&&ie(ve,fe,a,j,Pe,ye,F,Qe)})},Je=0,$e=fe.statements;Je<$e.length;Je++){var Fe=$e[Je];Le(Fe)}},In=0,et=je.getSourceFiles();In<et.length;In++){var ae=et[In];Ze(ae)}}function Te(ve){switch(ve.kind){case 253:return ve.importClause&&ve.importClause.namedBindings&&ve.importClause.namedBindings.kind===255?ve.importClause.namedBindings.name:void 0;case 252:return ve.name;case 241:return e.tryCast(ve.name,e.isIdentifier);default:return e.Debug.assertNever(ve,"Unexpected node kind "+ve.kind)}}function ie(ve,je,w,j,Pe,a,Ze,In){var et=e.codefix.moduleSpecifierToValidIdentifier(Pe,99),ae=!1,fe=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(Ze,w,je,function(cn){if(!e.isPropertyAccessExpression(cn.parent))return;ae=ae||!!w.resolveName(et,cn,67108863,!0),j.has(w.getSymbolAtLocation(cn.parent.name))&&fe.push(cn)}),fe.length){for(var Le=ae?e.getUniqueName(et,je):et,Je=0,$e=fe;Je<$e.length;Je++){var Fe=$e[Je];ve.replaceNode(je,Fe,e.createIdentifier(Le))}ve.insertNodeAfter(je,In,ce(In,Pe,a))}}function ce(ve,je,w){var j=e.createIdentifier(je),Pe=e.createLiteral(w);switch(ve.kind){case 253:return e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(j)),Pe);case 252:return e.createImportEqualsDeclaration(void 0,void 0,j,e.createExternalModuleReference(Pe));case 241:return e.createVariableDeclaration(j,void 0,$(Pe));default:return e.Debug.assertNever(ve,"Unexpected node kind "+ve.kind)}}function x(ve){return ve.kind===253?ve.moduleSpecifier:ve.kind===252?ve.moduleReference.expression:ve.initializer.arguments[0]}function C(ve,je){if(e.isImportDeclaration(ve))e.isStringLiteral(ve.moduleSpecifier)&&je(ve);else if(e.isImportEqualsDeclaration(ve))e.isExternalModuleReference(ve.moduleReference)&&e.isStringLiteralLike(ve.moduleReference.expression)&&je(ve);else if(e.isVariableStatement(ve))for(var w=0,j=ve.declarationList.declarations;w<j.length;w++){var Pe=j[w];Pe.initializer&&e.isRequireCall(Pe.initializer,!0)&&je(Pe)}}function P(ve,je,w,j){var Pe,a=[];return ve.forEach(function(Ze){Ze.escapedName==="default"?Pe=e.createIdentifier(e.symbolNameNoDefault(Ze)):a.push(Ze.name)}),h(Pe,a,je,w,j)}function h(ve,je,w,j,Pe){if(w=e.ensurePathIsNonModuleName(w),j){var a=je.map(function(In){return e.createImportSpecifier(void 0,e.createIdentifier(In))});return e.makeImportIfNecessary(ve,a,w,Pe)}else{e.Debug.assert(!ve,"No default import should exist");var Ze=je.map(function(In){return e.createBindingElement(void 0,void 0,In)});return Ze.length?X(e.createObjectBindingPattern(Ze),void 0,$(e.createLiteral(w))):void 0}}function X(ve,je,w,j){return j===void 0&&(j=2),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(ve,je,w)],j))}function $(ve){return e.createCall(e.createIdentifier("require"),void 0,[ve])}function Q(ve,je,w,j){return e.flatMap(je,function(Pe){if(ne(Pe)&&!ue(ve,Pe,j)&&Y(Pe,function(Ze){return w.has(e.Debug.assertDefined(Ze.symbol))})){var a=De(Pe,j);if(a)return a}return Pe})}function z(ve,je,w,j){switch(je.kind){case 253:se(ve,je,w,j);break;case 252:j(je.name)&&w.delete(ve,je);break;case 241:G(ve,je,w,j);break;default:e.Debug.assertNever(je,"Unexpected import decl kind "+je.kind)}}function se(ve,je,w,j){if(!je.importClause)return;var Pe=je.importClause,a=Pe.name,Ze=Pe.namedBindings,In=!a||j(a),et=!Ze||(Ze.kind===255?j(Ze.name):Ze.elements.length!==0&&Ze.elements.every(function(Je){return j(Je.name)}));if(In&&et)w.delete(ve,je);else if(a&&In&&w.delete(ve,a),Ze){if(et)w.replaceNode(ve,je.importClause,e.updateImportClause(je.importClause,a,void 0));else if(Ze.kind===256)for(var ae=0,fe=Ze.elements;ae<fe.length;ae++){var Le=fe[ae];j(Le.name)&&w.delete(ve,Le)}}}function G(ve,je,w,j){var Pe=je.name;switch(Pe.kind){case 75:j(Pe)&&w.delete(ve,Pe);break;case 189:break;case 188:if(Pe.elements.every(function(et){return e.isIdentifier(et.name)&&j(et.name)}))w.delete(ve,e.isVariableDeclarationList(je.parent)&&je.parent.declarations.length===1?je.parent.parent:je);else for(var a=0,Ze=Pe.elements;a<Ze.length;a++){var In=Ze[a];e.isIdentifier(In.name)&&j(In.name)&&w.delete(ve,In.name)}break}}function H(ve,je,w,j,Pe,a,Ze){for(var In=[],et=0,ae=ve.statements;et<ae.length;et++){var fe=ae[et];C(fe,function(Fe){e.append(In,_(Fe,x(Fe),function(cn){return je.has(Pe.getSymbolAtLocation(cn))}))})}var Le,Je=[],$e=e.nodeSeenTracker();return w.forEach(function(Fe){for(var cn=0,Qe=Fe.declarations;cn<Qe.length;cn++){var ln=Qe[cn];if(!k(ln))continue;var ye=S(ln);if(!ye)continue;var ke=v(ln);$e(ke)&&U(ve,ke,j,a),e.hasModifier(ln,512)?Le=ye:Je.push(ye.text)}}),e.append(In,h(Le,Je,e.removeFileExtension(e.getBaseFileName(ve.fileName)),a,Ze)),In}function q(ve,je,w,j){for(var Pe=ve,a=1;;a++){var Ze=e.combinePaths(w,Pe+je);if(!j.fileExists(Ze))return Pe;Pe=ve+"."+a}}function be(ve){return ve.forEachEntry(e.symbolNameNoDefault)||"newFile"}function R(ve,je,w){var j=new E,Pe=new E,a=new E,Ze=e.find(je,function(ye){return!!(ye.transformFlags&2)}),In=ln(Ze);In&&Pe.add(In);for(var et=0,ae=je;et<ae.length;et++){var fe=ae[et];Y(fe,function(ye){j.add(e.Debug.assertDefined(e.isExpressionStatement(ye)?w.getSymbolAtLocation(ye.expression.left):ye.symbol,"Need a symbol here"))})}for(var Le=0,Je=je;Le<Je.length;Le++){var fe=Je[Le];y(fe,w,function(ke){if(!ke.declarations)return;for(var F=0,c=ke.declarations;F<c.length;F++){var L=c[F];K(L)?Pe.add(ke):k(L)&&T(L)===ve&&!j.has(ke)&&a.add(ke)}})}for(var $e=Pe.clone(),Fe=new E,cn=0,Qe=ve.statements;cn<Qe.length;cn++){var fe=Qe[cn];if(e.contains(je,fe))continue;In&&!!(fe.transformFlags&2)&&$e.delete(In),y(fe,w,function(ke){j.has(ke)&&Fe.add(ke),$e.delete(ke)})}return{movedSymbols:j,newFileImportsFromOldFile:a,oldFileImportsFromNewFile:Fe,oldImportsNeededByNewFile:Pe,unusedImportsFromOldFile:$e};function ln(ye){if(ye===void 0)return;var ke=w.getJsxNamespace(ye),F=w.resolveName(ke,ye,1920,!0);return!!F&&e.some(F.declarations,K)?F:void 0}}function K(ve){switch(ve.kind){case 252:case 257:case 254:return!0;case 241:return m(ve);case 190:return e.isVariableDeclaration(ve.parent.parent)&&m(ve.parent.parent);default:return!1}}function m(ve){return e.isSourceFile(ve.parent.parent.parent)&&!!ve.initializer&&e.isRequireCall(ve.initializer,!0)}function _(ve,je,w){switch(ve.kind){case 253:{var j=ve.importClause;if(!j)return;var Pe=j.name&&w(j.name)?j.name:void 0,a=j.namedBindings&&I(j.namedBindings,w);return Pe||a?e.createImportDeclaration(void 0,void 0,e.createImportClause(Pe,a),je):void 0}case 252:return w(ve.name)?ve:void 0;case 241:{var Ze=D(ve.name,w);return Ze?X(Ze,ve.type,$(je),ve.parent.flags):void 0}default:return e.Debug.assertNever(ve,"Unexpected import kind "+ve.kind)}}function I(ve,je){if(ve.kind===255)return je(ve.name)?ve:void 0;var w=ve.elements.filter(function(j){return je(j.name)});return w.length?e.createNamedImports(w):void 0}function D(ve,je){switch(ve.kind){case 75:return je(ve)?ve:void 0;case 189:return ve;case 188:{var w=ve.elements.filter(function(j){return j.propertyName||!e.isIdentifier(j.name)||je(j.name)});return w.length?e.createObjectBindingPattern(w):void 0}}}function y(ve,je,w){ve.forEachChild(function j(Pe){if(e.isIdentifier(Pe)&&!e.isDeclarationName(Pe)){var a=je.getSymbolAtLocation(Pe);a&&w(a)}else Pe.forEachChild(j)})}var E=function(){function ve(){this.map=e.createMap()}return ve.prototype.add=function(je){this.map.set(String(e.getSymbolId(je)),je)},ve.prototype.has=function(je){return this.map.has(String(e.getSymbolId(je)))},ve.prototype.delete=function(je){this.map.delete(String(e.getSymbolId(je)))},ve.prototype.forEach=function(je){this.map.forEach(je)},ve.prototype.forEachEntry=function(je){return e.forEachEntry(this.map,je)},ve.prototype.clone=function(){var je=new ve;return e.copyEntries(this.map,je.map),je},ve}();function k(ve){return O(ve)&&e.isSourceFile(ve.parent)||e.isVariableDeclaration(ve)&&e.isSourceFile(ve.parent.parent.parent)}function T(ve){return e.isVariableDeclaration(ve)?ve.parent.parent.parent:ve.parent}function ne(ve){return e.Debug.assert(e.isSourceFile(ve.parent),"Node parent should be a SourceFile"),O(ve)||e.isVariableStatement(ve)}function O(ve){switch(ve.kind){case 243:case 244:case 248:case 247:case 246:case 245:case 252:return!0;default:return!1}}function Y(ve,je){switch(ve.kind){case 243:case 244:case 248:case 247:case 246:case 245:case 252:return je(ve);case 224:return e.firstDefined(ve.declarationList.declarations,function(j){return pe(j.name,je)});case 225:{var w=ve.expression;return e.isBinaryExpression(w)&&e.getAssignmentDeclarationKind(w)===1?je(ve):void 0}}}function pe(ve,je){switch(ve.kind){case 75:return je(e.cast(ve.parent,function(w){return e.isVariableDeclaration(w)||e.isBindingElement(w)}));case 189:case 188:return e.firstDefined(ve.elements,function(w){return e.isOmittedExpression(w)?void 0:pe(w.name,je)});default:return e.Debug.assertNever(ve,"Unexpected name kind "+ve.kind)}}function S(ve){return e.isExpressionStatement(ve)?ve.expression.left.name:e.tryCast(ve.name,e.isIdentifier)}function v(ve){switch(ve.kind){case 241:return ve.parent.parent;case 190:return v(e.cast(ve.parent.parent,function(je){return e.isVariableDeclaration(je)||e.isBindingElement(je)}));default:return ve}}function U(ve,je,w,j){if(ue(ve,je,j))return;if(j)e.isExpressionStatement(je)||w.insertExportModifier(ve,je);else{var Pe=we(je);Pe.length!==0&&w.insertNodesAfter(ve,je,Pe.map(He))}}function ue(ve,je,w){return w?!e.isExpressionStatement(je)&&e.hasModifier(je,1):we(je).some(function(j){return ve.symbol.exports.has(e.escapeLeadingUnderscores(j))})}function De(ve,je){return je?[Z(ve)]:Re(ve)}function Z(ve){var je=e.concatenate([e.createModifier(88)],ve.modifiers);switch(ve.kind){case 243:return e.updateFunctionDeclaration(ve,ve.decorators,je,ve.asteriskToken,ve.name,ve.typeParameters,ve.parameters,ve.type,ve.body);case 244:return e.updateClassDeclaration(ve,ve.decorators,je,ve.name,ve.typeParameters,ve.heritageClauses,ve.members);case 224:return e.updateVariableStatement(ve,je,ve.declarationList);case 248:return e.updateModuleDeclaration(ve,ve.decorators,je,ve.name,ve.body);case 247:return e.updateEnumDeclaration(ve,ve.decorators,je,ve.name,ve.members);case 246:return e.updateTypeAliasDeclaration(ve,ve.decorators,je,ve.name,ve.typeParameters,ve.type);case 245:return e.updateInterfaceDeclaration(ve,ve.decorators,je,ve.name,ve.typeParameters,ve.heritageClauses,ve.members);case 252:return e.updateImportEqualsDeclaration(ve,ve.decorators,je,ve.name,ve.moduleReference);case 225:return e.Debug.fail();default:return e.Debug.assertNever(ve,"Unexpected declaration kind "+ve.kind)}}function Re(ve){return Tr([ve],we(ve).map(He))}function we(ve){switch(ve.kind){case 243:case 244:return[ve.name.text];case 224:return e.mapDefined(ve.declarationList.declarations,function(je){return e.isIdentifier(je.name)?je.name.text:void 0});case 248:case 247:case 246:case 245:case 252:return e.emptyArray;case 225:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(ve,"Unexpected decl kind "+ve.kind)}}function He(ve){return e.createExpressionStatement(e.createBinary(e.createPropertyAccess(e.createIdentifier("exports"),e.createIdentifier(ve)),62,e.createIdentifier(ve)))}})(o=e.refactor||(e.refactor={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe;(function(Ee){var Ge="Add or remove braces in an arrow function",Be=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,he="Add braces to arrow function",ee="Remove braces from arrow function",f=e.Diagnostics.Add_braces_to_arrow_function.message,J=e.Diagnostics.Remove_braces_from_arrow_function.message;M.registerRefactor(Ge,{getEditsForAction:N,getAvailableActions:Oe});function Oe(ce){var x=ce.file,C=ce.startPosition,P=ie(x,C);return P?[{name:Ge,description:Be,actions:[P.addBraces?{name:he,description:f}:{name:ee,description:J}]}]:e.emptyArray}function N(ce,x){var C=ce.file,P=ce.startPosition,h=ie(C,P);if(!h)return;var X=h.expression,$=h.returnStatement,Q=h.func,z;if(x===he){var se=e.createReturn(X);z=e.createBlock([se],!0),e.suppressLeadingAndTrailingTrivia(z),e.copyLeadingComments(X,se,C,3,!0)}else if(x===ee&&$){var G=X||e.createVoidZero();z=Te(G)?e.createParen(G):G,e.suppressLeadingAndTrailingTrivia(z),e.copyLeadingComments($,z,C,3,!1)}else e.Debug.fail("invalid action");var H=e.textChanges.ChangeTracker.with(ce,function(q){return q.replaceNode(C,Q.body,z)});return{renameFilename:void 0,renameLocation:void 0,edits:H}}function Te(ce){return e.isBinaryExpression(ce)&&ce.operatorToken.kind===27||e.isObjectLiteralExpression(ce)}function ie(ce,x){var C=e.getTokenAtPosition(ce,x),P=e.getContainingFunction(C);if(!P||!e.isArrowFunction(P)||!e.rangeContainsRange(P,C)||e.rangeContainsRange(P.body,C))return;if(e.isExpression(P.body))return{func:P,addBraces:!0,expression:P.body};if(P.body.statements.length===1){var h=e.first(P.body.statements);if(e.isReturnStatement(h))return{func:P,addBraces:!1,expression:h.expression,returnStatement:h}}return}})(qe=M.addOrRemoveBracesToArrowFunction||(M.addOrRemoveBracesToArrowFunction={}))})(o=e.refactor||(e.refactor={}))})(sn||(sn={}));var sn;(function(e){var o;(function(M){var qe;(function(Ee){var Ge="Convert parameters to destructured object",Be=2;M.registerRefactor(Ge,{getEditsForAction:ee,getAvailableActions:he});function he(y){var E=y.file,k=y.startPosition,T=e.isSourceFileJS(E);if(T)return e.emptyArray;var ne=x(E,k,y.program.getTypeChecker());if(!ne)return e.emptyArray;var O=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object);return[{name:Ge,description:O,actions:[{name:Ge,description:O}]}]}function ee(y,E){e.Debug.assert(E===Ge,"Unexpected action name");var k=y.file,T=y.startPosition,ne=y.program,O=y.cancellationToken,Y=y.host,pe=x(k,T,ne.getTypeChecker());if(!pe||!O)return;var S=J(pe,ne,O);if(S.valid){var v=e.textChanges.ChangeTracker.with(y,function(U){return f(k,ne,Y,U,pe,S)});return{renameFilename:void 0,renameLocation:void 0,edits:v}}return{edits:[]}}function f(y,E,k,T,ne,O){var Y=e.map(R(ne,E,k),function(De){return e.getSynthesizedDeepClone(De)});T.replaceNodeRangeWithNodes(y,e.first(ne.parameters),e.last(ne.parameters),Y,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include});for(var pe=e.sortAndDeduplicate(O.functionCalls,function(De,Z){return e.compareValues(De.pos,Z.pos)}),S=0,v=pe;S<v.length;S++){var U=v[S];if(U.arguments&&U.arguments.length){var ue=e.getSynthesizedDeepClone(be(ne,U.arguments),!0);T.replaceNodeRange(e.getSourceFileOfNode(U),e.first(U.arguments),e.last(U.arguments),ue,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}}function J(y,E,k){var T=D(y),ne=e.isConstructorDeclaration(y)?I(y):[],O=e.deduplicate(Tr(T,ne),e.equateValues),Y=E.getTypeChecker(),pe=e.flatMap(O,function(ue){return e.FindAllReferences.getReferenceEntriesForNode(-1,ue,E,E.getSourceFiles(),k)}),S=v(pe);return e.every(S.declarations,function(ue){return e.contains(O,ue)})||(S.valid=!1),S;function v(ue){for(var De={accessExpressions:[],typeUsages:[]},Z={functionCalls:[],declarations:[],classReferences:De,valid:!0},Re=e.map(T,U),we=e.map(ne,U),He=e.isConstructorDeclaration(y),ve=0,je=ue;ve<je.length;ve++){var w=je[ve];if(w.kind!==1){Z.valid=!1;continue}if(e.contains(Re,U(w.node))||e.isNewExpressionTarget(w.node)){var j=Oe(w);if(j)continue;var Pe=N(w);if(Pe){Z.declarations.push(Pe);continue}var a=Te(w);if(a){Z.functionCalls.push(a);continue}}if(He&&e.contains(we,U(w.node))){var j=Oe(w);if(j)continue;var Pe=N(w);if(Pe){Z.declarations.push(Pe);continue}var Ze=ie(w);if(Ze){De.accessExpressions.push(Ze);continue}if(e.isClassDeclaration(y.parent)){var In=ce(w);if(In){De.typeUsages.push(In);continue}}}Z.valid=!1}return Z}function U(ue){var De=Y.getSymbolAtLocation(ue);return De&&e.getSymbolTarget(De,Y)}}function Oe(y){var E=y.node;return e.isImportSpecifier(E.parent)||e.isImportClause(E.parent)||e.isImportEqualsDeclaration(E.parent)||e.isNamespaceImport(E.parent)||(e.isExportSpecifier(E.parent)||e.isExportAssignment(E.parent))?E:void 0}function N(y){return e.isDeclaration(y.node.parent)?y.node:void 0}function Te(y){if(y.node.parent){var E=y.node,k=E.parent;switch(k.kind){case 195:case 196:var T=e.tryCast(k,e.isCallOrNewExpression);if(T&&T.expression===E)return T;break;case 193:var ne=e.tryCast(k,e.isPropertyAccessExpression);if(ne&&ne.parent&&ne.name===E){var O=e.tryCast(ne.parent,e.isCallOrNewExpression);if(O&&O.expression===ne)return O}break;case 194:var Y=e.tryCast(k,e.isElementAccessExpression);if(Y&&Y.parent&&Y.argumentExpression===E){var pe=e.tryCast(Y.parent,e.isCallOrNewExpression);if(pe&&pe.expression===Y)return pe}break}}return}function ie(y){if(y.node.parent){var E=y.node,k=E.parent;switch(k.kind){case 193:var T=e.tryCast(k,e.isPropertyAccessExpression);if(T&&T.expression===E)return T;break;case 194:var ne=e.tryCast(k,e.isElementAccessExpression);if(ne&&ne.expression===E)return ne;break}}return}function ce(y){var E=y.node;return e.getMeaningFromLocation(E)===2||e.isExpressionWithTypeArgumentsInClassExtendsClause(E.parent)?E:void 0}function x(y,E,k){var T=e.getTouchingToken(y,E),ne=e.getContainingFunctionDeclaration(T);return C(T)?void 0:ne&&P(ne,k)&&e.rangeContainsRange(ne,T)&&!(ne.body&&e.rangeContainsRange(ne.body,T))?ne:void 0}function C(y){var E=e.findAncestor(y,e.isJSDocNode);if(E){var k=e.findAncestor(E,function(T){return!e.isJSDocNode(T)});return!!k&&e.isFunctionLikeDeclaration(k)}return!1}function P(y,E){if(!$(y.parameters,E))return!1;switch(y.kind){case 243:return X(y)&&h(y,E);case 160:return h(y,E);case 161:return e.isClassDeclaration(y.parent)?X(y.parent)&&h(y,E):z(y.parent.parent)&&h(y,E);case 200:case 201:return z(y.parent)}return!1}function h(y,E){return!!y.body&&!E.isImplementationOfOverload(y)}function X(y){if(!y.name){var E=e.findModifier(y,83);return!!E}return!0}function $(y,E){return G(y)>=Be&&e.every(y,function(k){return Q(k,E)})}function Q(y,E){if(e.isRestParameter(y)){var k=E.getTypeAtLocation(y);if(!E.isArrayType(k)&&!E.isTupleType(k))return!1}return!y.modifiers&&!y.decorators&&e.isIdentifier(y.name)}function z(y){return e.isVariableDeclaration(y)&&e.isVarConst(y)&&e.isIdentifier(y.name)&&!y.type}function se(y){return y.length>0&&e.isThis(y[0].name)}function G(y){return se(y)?y.length-1:y.length}function H(y){return se(y)&&(y=e.createNodeArray(y.slice(1),y.hasTrailingComma)),y}function q(y,E){return e.isIdentifier(E)&&e.getTextOfIdentifierOrLiteral(E)===y?e.createShorthandPropertyAssignment(y):e.createPropertyAssignment(y,E)}function be(y,E){var k=H(y.parameters),T=e.isRestParameter(e.last(k)),ne=T?E.slice(0,k.length-1):E,O=e.map(ne,function(v,U){var ue=_(k[U]),De=q(ue,v);return e.suppressLeadingAndTrailingTrivia(De.name),e.isPropertyAssignment(De)&&e.suppressLeadingAndTrailingTrivia(De.initializer),K(v,De),De});if(T&&E.length>=k.length){var Y=E.slice(k.length-1),pe=e.createPropertyAssignment(_(e.last(k)),e.createArrayLiteral(Y));O.push(pe)}var S=e.createObjectLiteral(O,!1);return S}function R(y,E,k){var T=E.getTypeChecker(),ne=H(y.parameters),O=e.map(ne,De),Y=e.createObjectBindingPattern(O),pe=Z(ne),S;e.every(ne,He)&&(S=e.createObjectLiteral());var v=e.createParameter(void 0,void 0,void 0,Y,void 0,pe,S);if(se(y.parameters)){var U=y.parameters[0],ue=e.createParameter(void 0,void 0,void 0,U.name,void 0,U.type);return e.suppressLeadingAndTrailingTrivia(ue.name),K(U.name,ue.name),U.type&&(e.suppressLeadingAndTrailingTrivia(ue.type),K(U.type,ue.type)),e.createNodeArray([ue,v])}return e.createNodeArray([v]);function De(ve){var je=e.createBindingElement(void 0,void 0,_(ve),e.isRestParameter(ve)&&He(ve)?e.createArrayLiteral():ve.initializer);return e.suppressLeadingAndTrailingTrivia(je),ve.initializer&&je.initializer&&K(ve.initializer,je.initializer),je}function Z(ve){var je=e.map(ve,Re),w=e.addEmitFlags(e.createTypeLiteralNode(je),1);return w}function Re(ve){var je=ve.type;!je&&(ve.initializer||e.isRestParameter(ve))&&(je=we(ve));var w=e.createPropertySignature(void 0,_(ve),He(ve)?e.createToken(57):ve.questionToken,je,void 0);return e.suppressLeadingAndTrailingTrivia(w),K(ve.name,w.name),ve.type&&w.type&&K(ve.type,w.type),w}function we(ve){var je=T.getTypeAtLocation(ve);return e.getTypeNodeIfAccessible(je,ve,E,k)}function He(ve){if(e.isRestParameter(ve)){var je=T.getTypeAtLocation(ve);return!T.isTupleType(je)}return T.isOptionalParameter(ve)}}function K(y,E){var k=y.getSourceFile(),T=k.text;m(y,T)?e.copyLeadingComments(y,E,k):e.copyTrailingAsLeadingComments(y,E,k),e.copyTrailingComments(y,E,k)}function m(y,E){for(var k=y.getFullStart(),T=y.getStart(),ne=k;ne<T;ne++)if(E.charCodeAt(ne)===10)return!0;return!1}function _(y){return e.getTextOfIdentifierOrLiteral(y.name)}function I(y){switch(y.parent.kind){case 244:var E=y.parent;if(E.name)return[E.name];var k=e.Debug.assertDefined(e.findModifier(E,83),"Nameless class declaration should be a default export");return[k];case 213:var T=y.parent,ne=y.parent.parent,O=T.name;return O?[O,ne.name]:[ne.name]}}function D(y){switch(y.kind){case 243:if(y.name)return[y.name];var E=e.Debug.assertDefined(e.findModifier(y,83),"Nameless function declaration should be a default export");return[E];case 160:return[y.name];case 161:var k=e.Debug.assertDefined(e.findChildOfKind(y,128,y.getSourceFile()),"Constructor declaration should have constructor keyword");if(y.parent.kind===213){var T=y.parent.parent;return[T.name,k]}return[k];case 201:return[y.parent.name];case 200:return y.name?[y.name,y.parent.name]:[y.parent.name];default:return e.Debug.assertNever(y,"Unexpected function declaration kind "+y.kind)}}})(qe=M.convertParamsToDestructuredObject||(M.convertParamsToDestructuredObject={}))})(o=e.refactor||(e.refactor={}))})(sn||(sn={}));var sn;(function(e){e.servicesVersion="0.8";function o(O,Y,pe,S){var v=e.isNodeKind(O)?new M(O,Y,pe):O===75?new f(75,Y,pe):new ee(O,Y,pe);return v.parent=S,v.flags=S.flags&25358336,v}var M=function(){function O(Y,pe,S){this.pos=pe,this.end=S,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=Y}return O.prototype.assertHasRealPosition=function(Y){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),Y||"Node must have a real position for this operation")},O.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},O.prototype.getStart=function(Y,pe){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,Y,pe)},O.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},O.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},O.prototype.getWidth=function(Y){return this.assertHasRealPosition(),this.getEnd()-this.getStart(Y)},O.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},O.prototype.getLeadingTriviaWidth=function(Y){return this.assertHasRealPosition(),this.getStart(Y)-this.pos},O.prototype.getFullText=function(Y){return this.assertHasRealPosition(),(Y||this.getSourceFile()).text.substring(this.pos,this.end)},O.prototype.getText=function(Y){return this.assertHasRealPosition(),Y||(Y=this.getSourceFile()),Y.text.substring(this.getStart(Y),this.getEnd())},O.prototype.getChildCount=function(Y){return this.getChildren(Y).length},O.prototype.getChildAt=function(Y,pe){return this.getChildren(pe)[Y]},O.prototype.getChildren=function(Y){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=qe(this,Y))},O.prototype.getFirstToken=function(Y){this.assertHasRealPosition();var pe=this.getChildren(Y);if(!pe.length)return;var S=e.find(pe,function(v){return v.kind<292||v.kind>316});return S.kind<152?S:S.getFirstToken(Y)},O.prototype.getLastToken=function(Y){this.assertHasRealPosition();var pe=this.getChildren(Y),S=e.lastOrUndefined(pe);return S?S.kind<152?S:S.getLastToken(Y):void 0},O.prototype.forEachChild=function(Y,pe){return e.forEachChild(this,Y,pe)},O}();function qe(O,Y){if(!e.isNodeKind(O.kind))return e.emptyArray;var pe=[];if(e.isJSDocCommentContainingNode(O))return O.forEachChild(function(ue){pe.push(ue)}),pe;e.scanner.setText((Y||O.getSourceFile()).text);var S=O.pos,v=function(ue){Ee(pe,S,ue.pos,O),pe.push(ue),S=ue.end},U=function(ue){Ee(pe,S,ue.pos,O),pe.push(Ge(ue,O)),S=ue.end};return e.forEach(O.jsDoc,v),S=O.pos,O.forEachChild(v,U),Ee(pe,S,O.end,O),e.scanner.setText(void 0),pe}function Ee(O,Y,pe,S){for(e.scanner.setTextPos(Y);Y<pe;){var v=e.scanner.scan(),U=e.scanner.getTextPos();if(U<=pe&&(v===75&&e.Debug.fail("Did not expect "+e.Debug.formatSyntaxKind(S.kind)+" to have an Identifier in its trivia"),O.push(o(v,Y,U,S))),Y=U,v===1)break}}function Ge(O,Y){var pe=o(317,O.pos,O.end,Y);pe._children=[];for(var S=O.pos,v=0,U=O;v<U.length;v++){var ue=U[v];Ee(pe._children,S,ue.pos,Y),pe._children.push(ue),S=ue.end}return Ee(pe._children,S,O.end,Y),pe}var Be=function(){function O(Y,pe){this.pos=Y,this.end=pe,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return O.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},O.prototype.getStart=function(Y,pe){return e.getTokenPosOfNode(this,Y,pe)},O.prototype.getFullStart=function(){return this.pos},O.prototype.getEnd=function(){return this.end},O.prototype.getWidth=function(Y){return this.getEnd()-this.getStart(Y)},O.prototype.getFullWidth=function(){return this.end-this.pos},O.prototype.getLeadingTriviaWidth=function(Y){return this.getStart(Y)-this.pos},O.prototype.getFullText=function(Y){return(Y||this.getSourceFile()).text.substring(this.pos,this.end)},O.prototype.getText=function(Y){return Y||(Y=this.getSourceFile()),Y.text.substring(this.getStart(Y),this.getEnd())},O.prototype.getChildCount=function(){return 0},O.prototype.getChildAt=function(){return},O.prototype.getChildren=function(){return this.kind===1&&this.jsDoc||e.emptyArray},O.prototype.getFirstToken=function(){return},O.prototype.getLastToken=function(){return},O.prototype.forEachChild=function(){return},O}(),he=function(){function O(Y,pe){this.flags=Y,this.escapedName=pe}return O.prototype.getFlags=function(){return this.flags},Object.defineProperty(O.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!0,configurable:!0}),O.prototype.getEscapedName=function(){return this.escapedName},O.prototype.getName=function(){return this.name},O.prototype.getDeclarations=function(){return this.declarations},O.prototype.getDocumentationComment=function(Y){return this.documentationComment||(this.documentationComment=e.emptyArray,this.documentationComment=Te(this.declarations,Y)),this.documentationComment},O.prototype.getJsDocTags=function(){return this.tags===void 0&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},O}(),ee=function(O){Mi(Y,O);function Y(pe,S,v){var U=O.call(this,S,v)||this;return U.kind=pe,U}return Y}(Be),f=function(O){Mi(Y,O);function Y(pe,S,v){var U=O.call(this,S,v)||this;return U.kind=75,U}return Object.defineProperty(Y.prototype,"text",{get:function(){return e.idText(this)},enumerable:!0,configurable:!0}),Y}(Be);f.prototype.kind=75;var J=function(){function O(Y,pe){this.checker=Y,this.flags=pe}return O.prototype.getFlags=function(){return this.flags},O.prototype.getSymbol=function(){return this.symbol},O.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},O.prototype.getProperty=function(Y){return this.checker.getPropertyOfType(this,Y)},O.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},O.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},O.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},O.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},O.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},O.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},O.prototype.isNullableType=function(){return this.checker.isNullableType(this)},O.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},O.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},O.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},O.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},O.prototype.isUnion=function(){return!!(this.flags&1048576)},O.prototype.isIntersection=function(){return!!(this.flags&2097152)},O.prototype.isUnionOrIntersection=function(){return!!(this.flags&3145728)},O.prototype.isLiteral=function(){return!!(this.flags&384)},O.prototype.isStringLiteral=function(){return!!(this.flags&128)},O.prototype.isNumberLiteral=function(){return!!(this.flags&256)},O.prototype.isTypeParameter=function(){return!!(this.flags&262144)},O.prototype.isClassOrInterface=function(){return!!(e.getObjectFlags(this)&3)},O.prototype.isClass=function(){return!!(e.getObjectFlags(this)&1)},Object.defineProperty(O.prototype,"typeArguments",{get:function(){return e.getObjectFlags(this)&4?this.checker.getTypeArguments(this):void 0},enumerable:!0,configurable:!0}),O}(),Oe=function(){function O(Y,pe){this.checker=Y,this.flags=pe}return O.prototype.getDeclaration=function(){return this.declaration},O.prototype.getTypeParameters=function(){return this.typeParameters},O.prototype.getParameters=function(){return this.parameters},O.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},O.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=Te(e.singleElementArray(this.declaration),this.checker))},O.prototype.getJsDocTags=function(){return this.jsDocTags===void 0&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},O}();function N(O){return e.getJSDocTags(O).some(function(Y){return Y.tagName.text==="inheritDoc"})}function Te(O,Y){if(!O)return e.emptyArray;var pe=e.JsDoc.getJsDocCommentsFromDeclarations(O);return(pe.length===0||O.some(N))&&e.forEachUnique(O,function(S){var v=ie(S,S.symbol.name,Y);v&&(pe=pe.length===0?v.slice():v.concat(e.lineBreakPart(),pe))}),pe}function ie(O,Y,pe){return e.firstDefined(O.parent?e.getAllSuperTypeNodes(O.parent):e.emptyArray,function(S){var v=pe.getTypeAtLocation(S),U=v&&pe.getPropertyOfType(v,Y),ue=U&&U.getDocumentationComment(pe);return ue&&ue.length?ue:void 0})}var ce=function(O){Mi(Y,O);function Y(pe,S,v){var U=O.call(this,pe,S,v)||this;return U.kind=288,U}return Y.prototype.update=function(pe,S){return e.updateSourceFile(this,pe,S)},Y.prototype.getLineAndCharacterOfPosition=function(pe){return e.getLineAndCharacterOfPosition(this,pe)},Y.prototype.getLineStarts=function(){return e.getLineStarts(this)},Y.prototype.getPositionOfLineAndCharacter=function(pe,S,v){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),pe,S,this.text,v)},Y.prototype.getLineEndOfPosition=function(pe){var S=this.getLineAndCharacterOfPosition(pe).line,v=this.getLineStarts(),U;S+1>=v.length&&(U=this.getEnd()),U||(U=v[S+1]-1);var ue=this.getFullText();return ue[U]===`
|
|
|
`&&ue[U-1]==="\r"?U-1:U},Y.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},Y.prototype.computeNamedDeclarations=function(){var pe=e.createMultiMap();return this.forEachChild(ue),pe;function S(De){var Z=U(De);Z&&pe.add(Z,De)}function v(De){var Z=pe.get(De);return Z||pe.set(De,Z=[]),Z}function U(De){var Z=e.getNonAssignedNameOfDeclaration(De);return Z&&(e.isComputedPropertyName(Z)&&e.isPropertyAccessExpression(Z.expression)?Z.expression.name.text:e.isPropertyName(Z)?e.getNameFromPropertyName(Z):void 0)}function ue(De){switch(De.kind){case 243:case 200:case 160:case 159:var Z=De,Re=U(Z);if(Re){var we=v(Re),He=e.lastOrUndefined(we);He&&Z.parent===He.parent&&Z.symbol===He.symbol?Z.body&&!He.body&&(we[we.length-1]=Z):we.push(Z)}e.forEachChild(De,ue);break;case 244:case 213:case 245:case 246:case 247:case 248:case 252:case 261:case 257:case 254:case 255:case 162:case 163:case 172:S(De),e.forEachChild(De,ue);break;case 155:if(!e.hasModifier(De,92))break;case 241:case 190:{var ve=De;if(e.isBindingPattern(ve.name)){e.forEachChild(ve.name,ue);break}ve.initializer&&ue(ve.initializer)}case 282:case 158:case 157:S(De);break;case 259:De.exportClause&&e.forEach(De.exportClause.elements,ue);break;case 253:var je=De.importClause;je&&(je.name&&S(je.name),je.namedBindings&&(je.namedBindings.kind===255?S(je.namedBindings):e.forEach(je.namedBindings.elements,ue)));break;case 208:e.getAssignmentDeclarationKind(De)!==0&&S(De);default:e.forEachChild(De,ue)}}},Y}(M),x=function(){function O(Y,pe,S){this.fileName=Y,this.text=pe,this.skipTrivia=S}return O.prototype.getLineAndCharacterOfPosition=function(Y){return e.getLineAndCharacterOfPosition(this,Y)},O}();function C(){return{getNodeConstructor:function(){return M},getTokenConstructor:function(){return ee},getIdentifierConstructor:function(){return f},getSourceFileConstructor:function(){return ce},getSymbolConstructor:function(){return he},getTypeConstructor:function(){return J},getSignatureConstructor:function(){return Oe},getSourceMapSourceConstructor:function(){return x}}}function P(O){var Y=!0;for(var pe in O)if(e.hasProperty(O,pe)&&!h(pe)){Y=!1;break}if(Y)return O;var S={};for(var pe in O)if(e.hasProperty(O,pe)){var v=h(pe)?pe:pe.charAt(0).toLowerCase()+pe.substr(1);S[v]=O[pe]}return S}e.toEditorSettings=P;function h(O){return!O.length||O.charAt(0)===O.charAt(0).toLowerCase()}function X(O){return O?e.map(O,function(Y){return Y.text}).join(""):""}e.displayPartsToString=X;function $(){return{target:1,jsx:1}}e.getDefaultCompilerOptions=$;function Q(){return e.codefix.getSupportedErrorCodes()}e.getSupportedCodeFixes=Q;var z=function(){function O(Y,pe){this.host=Y,this.currentDirectory=Y.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var S=Y.getScriptFileNames(),v=0,U=S;v<U.length;v++){var ue=U[v];this.createEntry(ue,e.toPath(ue,this.currentDirectory,pe))}this._compilationSettings=Y.getCompilationSettings()||$()}return O.prototype.compilationSettings=function(){return this._compilationSettings},O.prototype.getProjectReferences=function(){return this.host.getProjectReferences&&this.host.getProjectReferences()},O.prototype.createEntry=function(Y,pe){var S,v=this.host.getScriptSnapshot(Y);return v?S={hostFileName:Y,version:this.host.getScriptVersion(Y),scriptSnapshot:v,scriptKind:e.getScriptKind(Y,this.host)}:S=Y,this.fileNameToEntry.set(pe,S),S},O.prototype.getEntryByPath=function(Y){return this.fileNameToEntry.get(Y)},O.prototype.getHostFileInformation=function(Y){var pe=this.fileNameToEntry.get(Y);return e.isString(pe)?void 0:pe},O.prototype.getOrCreateEntryByPath=function(Y,pe){var S=this.getEntryByPath(pe)||this.createEntry(Y,pe);return e.isString(S)?void 0:S},O.prototype.getRootFileNames=function(){var Y=[];return this.fileNameToEntry.forEach(function(pe){e.isString(pe)?Y.push(pe):pe.scriptKind!==6&&Y.push(pe.hostFileName)}),Y},O.prototype.getVersion=function(Y){var pe=this.getHostFileInformation(Y);return pe&&pe.version},O.prototype.getScriptSnapshot=function(Y){var pe=this.getHostFileInformation(Y);return pe&&pe.scriptSnapshot},O}(),se=function(){function O(Y){this.host=Y}return O.prototype.getCurrentSourceFile=function(Y){var pe=this.host.getScriptSnapshot(Y);if(!pe)throw new Error("Could not find file: '"+Y+"'.");var S=e.getScriptKind(Y,this.host),v=this.host.getScriptVersion(Y),U;if(this.currentFileName!==Y)U=H(Y,pe,99,v,!0,S);else if(this.currentFileVersion!==v){var ue=pe.getChangeRange(this.currentFileScriptSnapshot);U=q(this.currentSourceFile,pe,v,ue)}return U&&(this.currentFileVersion=v,this.currentFileName=Y,this.currentFileScriptSnapshot=pe,this.currentSourceFile=U),this.currentSourceFile},O}();function G(O,Y,pe){O.version=pe,O.scriptSnapshot=Y}function H(O,Y,pe,S,v,U){var ue=e.createSourceFile(O,e.getSnapshotText(Y),pe,v,U);return G(ue,Y,S),ue}e.createLanguageServiceSourceFile=H,e.disableIncrementalParsing=!1;function q(O,Y,pe,S,v){if(S&&(pe!==O.version&&!e.disableIncrementalParsing)){var U=void 0,ue=S.span.start!==0?O.text.substr(0,S.span.start):"",De=e.textSpanEnd(S.span)!==O.text.length?O.text.substr(e.textSpanEnd(S.span)):"";if(S.newLength===0)U=ue&&De?ue+De:ue||De;else{var Z=Y.getText(S.span.start,S.span.start+S.newLength);U=ue&&De?ue+Z+De:ue?ue+Z:Z+De}var Re=e.updateSourceFile(O,U,S,v);return G(Re,Y,pe),Re.nameTable=void 0,O!==Re&&O.scriptSnapshot&&(O.scriptSnapshot.dispose&&O.scriptSnapshot.dispose(),O.scriptSnapshot=void 0),Re}return H(O.fileName,Y,O.languageVersion,pe,!0,O.scriptKind)}e.updateLanguageServiceSourceFile=q;var be=function(){function O(Y){this.cancellationToken=Y}return O.prototype.isCancellationRequested=function(){return!!this.cancellationToken&&this.cancellationToken.isCancellationRequested()},O.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},O}(),R=function(){function O(Y,pe){pe===void 0&&(pe=20),this.hostCancellationToken=Y,this.throttleWaitMilliseconds=pe,this.lastCancellationCheckTime=0}return O.prototype.isCancellationRequested=function(){var Y=e.timestamp(),pe=Math.abs(Y-this.lastCancellationCheckTime);return pe>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=Y,this.hostCancellationToken.isCancellationRequested()):!1},O.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},O}();e.ThrottledCancellationToken=R;function K(O,Y,pe){var S;Y===void 0&&(Y=e.createDocumentRegistry(O.useCaseSensitiveFileNames&&O.useCaseSensitiveFileNames(),O.getCurrentDirectory())),pe===void 0&&(pe=!1);var v=new se(O),U,ue,De=0,Z=new be(O.getCancellationToken&&O.getCancellationToken()),Re=O.getCurrentDirectory();!e.localizedDiagnosticMessages&&O.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=O.getLocalizedDiagnosticMessages());function we(pt){O.log&&O.log(pt)}var He=e.hostUsesCaseSensitiveFileNames(O),ve=e.createGetCanonicalFileName(He),je=e.getSourceMapper({useCaseSensitiveFileNames:function(){return He},getCurrentDirectory:function(){return Re},getProgram:Pe,fileExists:e.maybeBind(O,O.fileExists),readFile:e.maybeBind(O,O.readFile),getDocumentPositionMapper:e.maybeBind(O,O.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(O,O.getSourceFileLike),log:we});function w(pt){var Tt=U.getSourceFile(pt);if(!Tt){var ht=new Error("Could not find source file: '"+pt+"'.");throw ht.ProgramFiles=U.getSourceFiles().map(function(bt){return bt.fileName}),ht}return Tt}function j(){if(e.Debug.assert(!pe),O.getProjectVersion){var pt=O.getProjectVersion();if(pt){if(ue===pt&&!O.hasChangedAutomaticTypeDirectiveNames)return;ue=pt}}var Tt=O.getTypeRootsVersion?O.getTypeRootsVersion():0;De!==Tt&&(we("TypeRoots version has changed; provide new program"),U=void 0,De=Tt);var ht=new z(O,ve),bt=ht.getRootFileNames(),Ke=O.hasInvalidatedResolution||e.returnFalse,Pn=ht.getProjectReferences();if(e.isProgramUptoDate(U,bt,ht.compilationSettings(),function(Ja){return ht.getVersion(Ja)},ri,Ke,!!O.hasChangedAutomaticTypeDirectiveNames,Pn))return;var $n=ht.compilationSettings(),rr={getSourceFile:vi,getSourceFileByPath:Oi,getCancellationToken:function(){return Z},getCanonicalFileName:ve,useCaseSensitiveFileNames:function(){return He},getNewLine:function(){return e.getNewLineCharacter($n,function(){return e.getNewLineOrDefaultFromHost(O)})},getDefaultLibFileName:function(Ja){return O.getDefaultLibFileName(Ja)},writeFile:e.noop,getCurrentDirectory:function(){return Re},fileExists:ri,readFile:Si,realpath:O.realpath&&function(Ja){return O.realpath(Ja)},directoryExists:function(Ja){return e.directoryProbablyExists(Ja,O)},getDirectories:function(Ja){return O.getDirectories?O.getDirectories(Ja):[]},readDirectory:function(Ja,Ka,ua,bi,Vo){return e.Debug.assertDefined(O.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),O.readDirectory(Ja,Ka,ua,bi,Vo)},onReleaseOldSourceFile:xi,hasInvalidatedResolution:Ke,hasChangedAutomaticTypeDirectiveNames:O.hasChangedAutomaticTypeDirectiveNames};O.trace&&(rr.trace=function(Ja){return O.trace(Ja)}),O.resolveModuleNames&&(rr.resolveModuleNames=function(){for(var Ja=[],Ka=0;Ka<arguments.length;Ka++)Ja[Ka]=arguments[Ka];return O.resolveModuleNames.apply(O,Ja)}),O.resolveTypeReferenceDirectives&&(rr.resolveTypeReferenceDirectives=function(){for(var Ja=[],Ka=0;Ka<arguments.length;Ka++)Ja[Ka]=arguments[Ka];return O.resolveTypeReferenceDirectives.apply(O,Ja)}),O.setResolvedProjectReferenceCallbacks&&(rr.setResolvedProjectReferenceCallbacks=function(Ja){return O.setResolvedProjectReferenceCallbacks(Ja)}),O.useSourceOfProjectReferenceRedirect&&(rr.useSourceOfProjectReferenceRedirect=function(){return O.useSourceOfProjectReferenceRedirect()});var xa=Y.getKeyForCompilationSettings($n),Fa={rootNames:bt,options:$n,host:rr,oldProgram:U,projectReferences:Pn};U=e.createProgram(Fa),ht=void 0,je.clearCache(),U.getTypeChecker();return;function ri(Ja){var Ka=e.toPath(Ja,Re,ve),ua=ht&&ht.getEntryByPath(Ka);return ua?!e.isString(ua):!!O.fileExists&&O.fileExists(Ja)}function Si(Ja){var Ka=e.toPath(Ja,Re,ve),ua=ht&&ht.getEntryByPath(Ka);return ua?e.isString(ua)?void 0:e.getSnapshotText(ua.scriptSnapshot):O.readFile&&O.readFile(Ja)}function xi(Ja,Ka){var ua=Y.getKeyForCompilationSettings(Ka);Y.releaseDocumentWithKey(Ja.resolvedPath,ua)}function vi(Ja,Ka,ua,bi){return Oi(Ja,e.toPath(Ja,Re,ve),Ka,ua,bi)}function Oi(Ja,Ka,ua,bi,Vo){e.Debug.assert(ht!==void 0,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var wo=ht&&ht.getOrCreateEntryByPath(Ja,Ka);if(!wo)return;if(!Vo){var Mo=U&&U.getSourceFileByPath(Ka);if(Mo)return e.Debug.assertEqual(wo.scriptKind,Mo.scriptKind,"Registered script kind should match new script kind.",Ka),Y.updateDocumentWithKey(Ja,Ka,$n,xa,wo.scriptSnapshot,wo.version,wo.scriptKind)}return Y.acquireDocumentWithKey(Ja,Ka,$n,xa,wo.scriptSnapshot,wo.version,wo.scriptKind)}}function Pe(){if(pe){e.Debug.assert(U===void 0);return}return j(),U}function a(){U=void 0}function Ze(){U&&(e.forEach(U.getSourceFiles(),function(pt){return Y.releaseDocument(pt.fileName,U.getCompilerOptions())}),U=void 0),O=void 0}function In(pt){return j(),U.getSyntacticDiagnostics(w(pt),Z).slice()}function et(pt){j();var Tt=w(pt),ht=U.getSemanticDiagnostics(Tt,Z);if(!e.getEmitDeclarations(U.getCompilerOptions()))return ht.slice();var bt=U.getDeclarationDiagnostics(Tt,Z);return Tr(ht,bt)}function ae(pt){return j(),e.computeSuggestionDiagnostics(w(pt),U,Z)}function fe(){return j(),Tr(U.getOptionsDiagnostics(Z),U.getGlobalDiagnostics(Z))}function Le(pt,Tt,ht){ht===void 0&&(ht=e.emptyOptions);var bt=Rr(Rr({},e.identity(ht)),{includeCompletionsForModuleExports:ht.includeCompletionsForModuleExports||ht.includeExternalModuleExports,includeCompletionsWithInsertText:ht.includeCompletionsWithInsertText||ht.includeInsertTextCompletions});return j(),e.Completions.getCompletionsAtPosition(O,U,we,w(pt),Tt,bt,ht.triggerCharacter)}function Je(pt,Tt,ht,bt,Ke,Pn){return Pn===void 0&&(Pn=e.emptyOptions),j(),e.Completions.getCompletionEntryDetails(U,we,w(pt),Tt,{name:ht,source:Ke},O,bt&&e.formatting.getFormatContext(bt),Pn,Z)}function $e(pt,Tt,ht,bt){return j(),e.Completions.getCompletionEntrySymbol(U,we,w(pt),Tt,{name:ht,source:bt},O)}function Fe(pt,Tt){j();var ht=w(pt),bt=e.getTouchingPropertyName(ht,Tt);if(bt===ht)return;var Ke=U.getTypeChecker(),Pn=cn(bt),$n=E(Pn,Ke);if(!$n||Ke.isUnknownSymbol($n)){var rr=Qe(ht,Pn,Tt)?Ke.getTypeAtLocation(Pn):void 0;return rr&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(Pn,ht),displayParts:Ke.runWithCancellationToken(Z,function(vi){return e.typeToDisplayParts(vi,rr,e.getContainerNode(Pn))}),documentation:rr.symbol?rr.symbol.getDocumentationComment(Ke):void 0,tags:rr.symbol?rr.symbol.getJsDocTags():void 0}}var xa=Ke.runWithCancellationToken(Z,function(vi){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(vi,$n,ht,e.getContainerNode(Pn),Pn)}),Fa=xa.symbolKind,ri=xa.displayParts,Si=xa.documentation,xi=xa.tags;return{kind:Fa,kindModifiers:e.SymbolDisplay.getSymbolModifiers($n),textSpan:e.createTextSpanFromNode(Pn,ht),displayParts:ri,documentation:Si,tags:xi}}function cn(pt){return e.isNewExpression(pt.parent)&&pt.pos===pt.parent.pos?pt.parent.expression:pt}function Qe(pt,Tt,ht){switch(Tt.kind){case 75:return!e.isLabelName(Tt)&&!e.isTagName(Tt);case 193:case 152:return!e.isInComment(pt,ht);case 103:case 182:case 101:return!0;default:return!1}}function ln(pt,Tt){return j(),e.GoToDefinition.getDefinitionAtPosition(U,w(pt),Tt)}function ye(pt,Tt){return j(),e.GoToDefinition.getDefinitionAndBoundSpan(U,w(pt),Tt)}function ke(pt,Tt){return j(),e.GoToDefinition.getTypeDefinitionAtPosition(U.getTypeChecker(),w(pt),Tt)}function F(pt,Tt){return j(),e.FindAllReferences.getImplementationsAtPosition(U,Z,U.getSourceFiles(),w(pt),Tt)}function c(pt,Tt){return e.flatMap(L(pt,Tt,[pt]),function(ht){return ht.highlightSpans.map(function(bt){return Rr(Rr({fileName:ht.fileName,textSpan:bt.textSpan,isWriteAccess:bt.kind==="writtenReference",isDefinition:!1},bt.isInString&&{isInString:!0}),bt.contextSpan&&{contextSpan:bt.contextSpan})})})}function L(pt,Tt,ht){var bt=e.normalizePath(pt);e.Debug.assert(ht.some(function($n){return e.normalizePath($n)===bt})),j();var Ke=e.mapDefined(ht,function($n){return U.getSourceFile($n)}),Pn=w(pt);return e.DocumentHighlights.getDocumentHighlights(U,Z,Pn,Tt,Ke)}function te(pt,Tt,ht,bt,Ke){j();var Pn=w(pt),$n=e.getTouchingPropertyName(Pn,Tt);if(e.isIdentifier($n)&&(e.isJsxOpeningElement($n.parent)||e.isJsxClosingElement($n.parent))&&e.isIntrinsicJsxName($n.escapedText)){var rr=$n.parent.parent,xa=rr.openingElement,Fa=rr.closingElement;return[xa,Fa].map(function(ri){var Si=e.createTextSpanFromNode(ri.tagName,Pn);return Rr({fileName:Pn.fileName,textSpan:Si},e.FindAllReferences.toContextSpan(Si,Pn,ri.parent))})}else return Ne($n,Tt,{findInStrings:ht,findInComments:bt,providePrefixAndSuffixTextForRename:Ke,isForRename:!0},function(ri,Si,xi){return e.FindAllReferences.toRenameLocation(ri,Si,xi,Ke||!1)})}function Se(pt,Tt){return j(),Ne(e.getTouchingPropertyName(w(pt),Tt),Tt,{},e.FindAllReferences.toReferenceEntry)}function Ne(pt,Tt,ht,bt){j();var Ke=ht&&ht.isForRename?U.getSourceFiles().filter(function(Pn){return!U.isSourceFileDefaultLibrary(Pn)}):U.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(U,Z,Ke,pt,Tt,ht,bt)}function ze(pt,Tt){return j(),e.FindAllReferences.findReferencedSymbols(U,Z,U.getSourceFiles(),w(pt),Tt)}function Tn(pt,Tt,ht,bt){bt===void 0&&(bt=!1),j();var Ke=ht?[w(ht)]:U.getSourceFiles();return e.NavigateTo.getNavigateToItems(Ke,U.getTypeChecker(),Z,pt,Tt,bt)}function wn(pt,Tt,ht){j();var bt=w(pt),Ke=O.getCustomTransformers&&O.getCustomTransformers();return e.getFileEmitOutput(U,bt,!!Tt,Z,Ke,ht)}function jn(pt,Tt,ht){var bt=(ht===void 0?e.emptyOptions:ht).triggerReason;j();var Ke=w(pt);return e.SignatureHelp.getSignatureHelpItems(U,Ke,Tt,bt,Z)}function nn(pt){return v.getCurrentSourceFile(pt)}function pn(pt,Tt,ht){var bt=v.getCurrentSourceFile(pt),Ke=e.getTouchingPropertyName(bt,Tt);if(Ke===bt)return;switch(Ke.kind){case 193:case 152:case 10:case 90:case 105:case 99:case 101:case 103:case 182:case 75:break;default:return}for(var Pn=Ke;;)if(e.isRightSideOfPropertyAccess(Pn)||e.isRightSideOfQualifiedName(Pn))Pn=Pn.parent;else if(e.isNameOfModuleDeclaration(Pn))if(Pn.parent.parent.kind===248&&Pn.parent.parent.body===Pn.parent)Pn=Pn.parent.parent.name;else break;else break;return e.createTextSpanFromBounds(Pn.getStart(),Ke.getEnd())}function le(pt,Tt){var ht=v.getCurrentSourceFile(pt);return e.BreakpointResolver.spanInSourceFileAtLocation(ht,Tt)}function oe(pt){return e.NavigationBar.getNavigationBarItems(v.getCurrentSourceFile(pt),Z)}function Cn(pt){return e.NavigationBar.getNavigationTree(v.getCurrentSourceFile(pt),Z)}function yn(pt){var Tt=e.getScriptKind(pt,O);return Tt===3||Tt===4}function _e(pt,Tt){return yn(pt)?(j(),e.getSemanticClassifications(U.getTypeChecker(),Z,w(pt),U.getClassifiableNames(),Tt)):[]}function dn(pt,Tt){return yn(pt)?(j(),e.getEncodedSemanticClassifications(U.getTypeChecker(),Z,w(pt),U.getClassifiableNames(),Tt)):{spans:[],endOfLineState:0}}function un(pt,Tt){return e.getSyntacticClassifications(Z,v.getCurrentSourceFile(pt),Tt)}function Rn(pt,Tt){return e.getEncodedSyntacticClassifications(Z,v.getCurrentSourceFile(pt),Tt)}function at(pt){var Tt=v.getCurrentSourceFile(pt);return e.OutliningElementsCollector.collectElements(Tt,Z)}var Bn=e.createMapFromTemplate((S={},S[18]=19,S[20]=21,S[22]=23,S[31]=29,S));Bn.forEach(function(pt,Tt){return Bn.set(pt.toString(),Number(Tt))});function ut(pt,Tt){var ht=v.getCurrentSourceFile(pt),bt=e.getTouchingToken(ht,Tt),Ke=bt.getStart(ht)===Tt?Bn.get(bt.kind.toString()):void 0,Pn=Ke&&e.findChildOfKind(bt.parent,Ke,ht);return Pn?[e.createTextSpanFromNode(bt,ht),e.createTextSpanFromNode(Pn,ht)].sort(function($n,rr){return $n.start-rr.start}):e.emptyArray}function ct(pt,Tt,ht){var bt=e.timestamp(),Ke=P(ht),Pn=v.getCurrentSourceFile(pt);we("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-bt)),bt=e.timestamp();var $n=e.formatting.SmartIndenter.getIndentation(Tt,Pn,Ke);return we("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-bt)),$n}function ot(pt,Tt,ht,bt){var Ke=v.getCurrentSourceFile(pt);return e.formatting.formatSelection(Tt,ht,Ke,e.formatting.getFormatContext(P(bt)))}function dt(pt,Tt){return e.formatting.formatDocument(v.getCurrentSourceFile(pt),e.formatting.getFormatContext(P(Tt)))}function Ct(pt,Tt,ht,bt){var Ke=v.getCurrentSourceFile(pt),Pn=e.formatting.getFormatContext(P(bt));if(!e.isInComment(Ke,Tt))switch(ht){case"{":return e.formatting.formatOnOpeningCurly(Tt,Ke,Pn);case"}":return e.formatting.formatOnClosingCurly(Tt,Ke,Pn);case";":return e.formatting.formatOnSemicolon(Tt,Ke,Pn);case`
|
|
|
`:return e.formatting.formatOnEnter(Tt,Ke,Pn)}return[]}function st(pt,Tt,ht,bt,Ke,Pn){Pn===void 0&&(Pn=e.emptyOptions),j();var $n=w(pt),rr=e.createTextSpanFromBounds(Tt,ht),xa=e.formatting.getFormatContext(Ke);return e.flatMap(e.deduplicate(bt,e.equateValues,e.compareValues),function(Fa){return Z.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:Fa,sourceFile:$n,span:rr,program:U,host:O,cancellationToken:Z,formatContext:xa,preferences:Pn})})}function Kn(pt,Tt,ht,bt){bt===void 0&&(bt=e.emptyOptions),j(),e.Debug.assert(pt.type==="file");var Ke=w(pt.fileName),Pn=e.formatting.getFormatContext(ht);return e.codefix.getAllFixes({fixId:Tt,sourceFile:Ke,program:U,host:O,cancellationToken:Z,formatContext:Pn,preferences:bt})}function Ie(pt,Tt,ht){ht===void 0&&(ht=e.emptyOptions),j(),e.Debug.assert(pt.type==="file");var bt=w(pt.fileName),Ke=e.formatting.getFormatContext(Tt);return e.OrganizeImports.organizeImports(bt,Ke,O,U,ht)}function Ce(pt,Tt,ht,bt){return bt===void 0&&(bt=e.emptyOptions),e.getEditsForFileRename(Pe(),pt,Tt,O,e.formatting.getFormatContext(ht),bt,je)}function _n(pt,Tt){var ht=typeof pt=="string"?Tt:pt;return e.isArray(ht)?Promise.all(ht.map(function(bt){return yt(bt)})):yt(ht)}function yt(pt){var Tt=function(ht){return e.toPath(ht,Re,ve)};return e.Debug.assertEqual(pt.type,"install package"),O.installPackage?O.installPackage({fileName:Tt(pt.file),packageName:pt.packageName}):Promise.reject("Host does not implement `installPackage`")}function Dt(pt,Tt){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(O),v.getCurrentSourceFile(pt),Tt)}function Ht(pt,Tt,ht){if(ht===60)return!1;var bt=v.getCurrentSourceFile(pt);if(e.isInString(bt,Tt))return!1;if(e.isInsideJsxElementOrAttribute(bt,Tt))return ht===123;if(e.isInTemplateString(bt,Tt))return!1;switch(ht){case 39:case 34:case 96:return!e.isInComment(bt,Tt)}return!0}function $t(pt,Tt){var ht=v.getCurrentSourceFile(pt),bt=e.findPrecedingToken(Tt,ht);if(!bt)return;var Ke=bt.kind===31&&e.isJsxOpeningElement(bt.parent)?bt.parent.parent:e.isJsxText(bt)?bt.parent:void 0;if(Ke&&wr(Ke))return{newText:"</"+Ke.openingElement.tagName.getText(ht)+">"}}function wr(pt){var Tt=pt.openingElement,ht=pt.closingElement,bt=pt.parent;return!e.tagNamesAreEquivalent(Tt.tagName,ht.tagName)||e.isJsxElement(bt)&&e.tagNamesAreEquivalent(Tt.tagName,bt.openingElement.tagName)&&wr(bt)}function Yr(pt,Tt,ht){var bt=v.getCurrentSourceFile(pt),Ke=e.formatting.getRangeOfEnclosingComment(bt,Tt);return Ke&&(!ht||Ke.kind===3)?e.createTextSpanFromRange(Ke):void 0}function Hr(pt,Tt){j();var ht=w(pt);Z.throwIfCancellationRequested();var bt=ht.text,Ke=[];if(Tt.length>0&&!Ka(ht.fileName))for(var Pn=Oi(),$n=void 0;$n=Pn.exec(bt);){Z.throwIfCancellationRequested();var rr=3;e.Debug.assert($n.length===Tt.length+rr);var xa=$n[1],Fa=$n.index+xa.length;if(!e.isInComment(ht,Fa))continue;for(var ri=void 0,Si=0;Si<Tt.length;Si++)$n[Si+rr]&&(ri=Tt[Si]);if(ri===void 0)return e.Debug.fail();if(Ja(bt.charCodeAt(Fa+ri.text.length)))continue;var xi=$n[2];Ke.push({descriptor:ri,message:xi,position:Fa})}return Ke;function vi(ua){return ua.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Oi(){var ua=/(?:\/\/+\s*)/.source,bi=/(?:\/\*+\s*)/.source,Vo=/(?:^(?:\s|\*)*)/.source,wo="("+Vo+"|"+ua+"|"+bi+")",Mo="(?:"+e.map(Tt,function(Ro){return"("+vi(Ro.text)+")"}).join("|")+")",uo=/(?:$|\*\/)/.source,ci=/(?:.*?)/.source,Gi="("+Mo+ci+")",ji=wo+Gi+uo;return new RegExp(ji,"gim")}function Ja(ua){return ua>=97&&ua<=122||ua>=65&&ua<=90||ua>=48&&ua<=57}function Ka(ua){return e.stringContains(ua,"/node_modules/")}}function mt(pt,Tt,ht){return j(),e.Rename.getRenameInfo(U,w(pt),Tt,ht)}function va(pt,Tt,ht,bt){var Ke=typeof Tt=="number"?[Tt,void 0]:[Tt.pos,Tt.end],Pn=Ke[0],$n=Ke[1];return{file:pt,startPosition:Pn,endPosition:$n,program:Pe(),host:O,formatContext:e.formatting.getFormatContext(bt),cancellationToken:Z,preferences:ht}}function Lt(pt,Tt){return e.SmartSelectionRange.getSmartSelectionRange(Tt,v.getCurrentSourceFile(pt))}function Wn(pt,Tt,ht){ht===void 0&&(ht=e.emptyOptions),j();var bt=w(pt);return e.refactor.getApplicableRefactors(va(bt,Tt,ht))}function Vt(pt,Tt,ht,bt,Ke,Pn){Pn===void 0&&(Pn=e.emptyOptions),j();var $n=w(pt);return e.refactor.getEditsForRefactor(va($n,ht,Pn,Tt),bt,Ke)}return{dispose:Ze,cleanupSemanticCache:a,getSyntacticDiagnostics:In,getSemanticDiagnostics:et,getSuggestionDiagnostics:ae,getCompilerOptionsDiagnostics:fe,getSyntacticClassifications:un,getSemanticClassifications:_e,getEncodedSyntacticClassifications:Rn,getEncodedSemanticClassifications:dn,getCompletionsAtPosition:Le,getCompletionEntryDetails:Je,getCompletionEntrySymbol:$e,getSignatureHelpItems:jn,getQuickInfoAtPosition:Fe,getDefinitionAtPosition:ln,getDefinitionAndBoundSpan:ye,getImplementationAtPosition:F,getTypeDefinitionAtPosition:ke,getReferencesAtPosition:Se,findReferences:ze,getOccurrencesAtPosition:c,getDocumentHighlights:L,getNameOrDottedNameSpan:pn,getBreakpointStatementAtPosition:le,getNavigateToItems:Tn,getRenameInfo:mt,getSmartSelectionRange:Lt,findRenameLocations:te,getNavigationBarItems:oe,getNavigationTree:Cn,getOutliningSpans:at,getTodoComments:Hr,getBraceMatchingAtPosition:ut,getIndentationAtPosition:ct,getFormattingEditsForRange:ot,getFormattingEditsForDocument:dt,getFormattingEditsAfterKeystroke:Ct,getDocCommentTemplateAtPosition:Dt,isValidBraceCompletionAtPosition:Ht,getJsxClosingTagAtPosition:$t,getSpanOfEnclosingComment:Yr,getCodeFixesAtPosition:st,getCombinedCodeFix:Kn,applyCodeActionCommand:_n,organizeImports:Ie,getEditsForFileRename:Ce,getEmitOutput:wn,getNonBoundSourceFile:nn,getProgram:Pe,getApplicableRefactors:Wn,getEditsForRefactor:Vt,toLineColumnOffset:je.toLineColumnOffset,getSourceMapper:function(){return je}}}e.createLanguageService=K;function m(O){return O.nameTable||_(O),O.nameTable}e.getNameTable=m;function _(O){var Y=O.nameTable=e.createUnderscoreEscapedMap();O.forEachChild(function pe(S){if(e.isIdentifier(S)&&!e.isTagName(S)&&S.escapedText||e.isStringOrNumericLiteralLike(S)&&I(S)){var v=e.getEscapedTextOfIdentifierOrLiteral(S);Y.set(v,Y.get(v)===void 0?S.pos:-1)}if(e.forEachChild(S,pe),e.hasJSDocNodes(S))for(var U=0,ue=S.jsDoc;U<ue.length;U++){var De=ue[U];e.forEachChild(De,pe)}})}function I(O){return e.isDeclarationName(O)||O.parent.kind===263||T(O)||e.isLiteralComputedPropertyDeclarationName(O)}function D(O){var Y=y(O);return Y&&(e.isObjectLiteralExpression(Y.parent)||e.isJsxAttributes(Y.parent))?Y:void 0}e.getContainingObjectLiteralElement=D;function y(O){switch(O.kind){case 10:case 14:case 8:if(O.parent.kind===153)return e.isObjectLiteralElement(O.parent.parent)?O.parent.parent:void 0;case 75:return e.isObjectLiteralElement(O.parent)&&(O.parent.parent.kind===192||O.parent.parent.kind===272)&&O.parent.name===O?O.parent:void 0}return}function E(O,Y){var pe=D(O);if(pe){var S=Y.getContextualType(pe.parent),v=S&&k(pe,Y,S,!1);if(v&&v.length===1)return e.first(v)}return Y.getSymbolAtLocation(O)}function k(O,Y,pe,S){var v=e.getNameFromPropertyName(O.name);if(!v)return e.emptyArray;if(!pe.isUnion()){var U=pe.getProperty(v);return U?[U]:e.emptyArray}var ue=e.mapDefined(pe.types,function(De){return e.isObjectLiteralExpression(O.parent)&&Y.isTypeInvalidDueToUnionDiscriminant(De,O.parent)?void 0:De.getProperty(v)});if(S&&(ue.length===0||ue.length===pe.types.length)){var U=pe.getProperty(v);if(U)return[U]}return ue.length===0?e.mapDefined(pe.types,function(De){return De.getProperty(v)}):ue}e.getPropertySymbolsFromContextualType=k;function T(O){return O&&O.parent&&O.parent.kind===194&&O.parent.argumentExpression===O}function ne(O){return qi+e.directorySeparator+e.getDefaultLibFileName(O)}e.getDefaultLibFilePath=ne,e.objectAllocator=C()})(sn||(sn={}));var sn;(function(e){var o;(function(M){function qe(Ee,Ge){if(Ee.isDeclarationFile)return;var Be=e.getTokenAtPosition(Ee,Ge),he=Ee.getLineAndCharacterOfPosition(Ge).line;if(Ee.getLineAndCharacterOfPosition(Be.getStart(Ee)).line>he){var ee=e.findPrecedingToken(Be.pos,Ee);if(!ee||Ee.getLineAndCharacterOfPosition(ee.getEnd()).line!==he)return;Be=ee}if(Be.flags&8388608)return;return ce(Be);function f(x,C){var P=x.decorators?e.skipTrivia(Ee.text,x.decorators.end):x.getStart(Ee);return e.createTextSpanFromBounds(P,(C||x).getEnd())}function J(x,C){return f(x,e.findNextToken(C,C.parent,Ee))}function Oe(x,C){return x&&he===Ee.getLineAndCharacterOfPosition(x.getStart(Ee)).line?ce(x):ce(C)}function N(x){return e.createTextSpanFromBounds(e.skipTrivia(Ee.text,x.pos),x.end)}function Te(x){return ce(e.findPrecedingToken(x.pos,Ee))}function ie(x){return ce(e.findNextToken(x,x.parent,Ee))}function ce(x){if(x){var C=x.parent;switch(x.kind){case 224:return G(x.declarationList.declarations[0]);case 241:case 158:case 157:return G(x);case 155:return q(x);case 243:case 160:case 159:case 162:case 163:case 161:case 200:case 201:return R(x);case 222:if(e.isFunctionBlock(x))return K(x);case 249:return m(x);case 278:return m(x.block);case 225:return f(x.expression);case 234:return f(x.getChildAt(0),x.expression);case 228:return J(x,x.expression);case 227:return ce(x.statement);case 240:return f(x.getChildAt(0));case 226:return J(x,x.expression);case 237:return ce(x.statement);case 233:case 232:return f(x.getChildAt(0),x.label);case 229:return I(x);case 230:return J(x,x.expression);case 231:return _(x);case 236:return J(x,x.expression);case 275:case 276:return ce(x.statements[0]);case 239:return m(x.tryBlock);case 238:return f(x,x.expression);case 258:return f(x,x.expression);case 252:return f(x,x.moduleReference);case 253:return f(x,x.moduleSpecifier);case 259:return f(x,x.moduleSpecifier);case 248:if(e.getModuleInstanceState(x)!==1)return;case 244:case 247:case 282:case 190:return f(x);case 235:return ce(x.statement);case 156:return N(C.decorators);case 188:case 189:return D(x);case 245:case 246:return;case 26:case 1:return Oe(e.findPrecedingToken(x.pos,Ee));case 27:return Te(x);case 18:return E(x);case 19:return k(x);case 23:return T(x);case 20:return ne(x);case 21:return O(x);case 58:return Y(x);case 31:case 29:return pe(x);case 110:return S(x);case 86:case 78:case 91:return ie(x);case 151:return v(x);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(x))return y(x);if((x.kind===75||x.kind===212||x.kind===279||x.kind===280)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(C))return f(x);if(x.kind===208){var P=x,h=P.left,X=P.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(h))return y(h);if(X.kind===62&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(x.parent))return f(x);if(X.kind===27)return ce(h)}if(e.isExpressionNode(x))switch(C.kind){case 227:return Te(x);case 156:return ce(x.parent);case 229:case 231:return f(x);case 208:if(x.parent.operatorToken.kind===27)return f(x);break;case 201:if(x.parent.body===x)return f(x);break}switch(x.parent.kind){case 279:if(x.parent.name===x&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(x.parent.parent))return ce(x.parent.initializer);break;case 198:if(x.parent.type===x)return ie(x.parent.type);break;case 241:case 155:{var $=x.parent,Q=$.initializer,z=$.type;if(Q===x||z===x||e.isAssignmentOperator(x.kind))return Te(x);break}case 208:{var h=x.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(h)&&x!==h)return Te(x);break}default:if(e.isFunctionLike(x.parent)&&x.parent.type===x)return Te(x)}return ce(x.parent)}}function se(U){return e.isVariableDeclarationList(U.parent)&&U.parent.declarations[0]===U?f(e.findPrecedingToken(U.pos,Ee,U.parent),U):f(U)}function G(U){if(U.parent.parent.kind===230)return ce(U.parent.parent);var ue=U.parent;if(e.isBindingPattern(U.name))return D(U.name);if(U.initializer||e.hasModifier(U,1)||ue.parent.kind===231)return se(U);if(e.isVariableDeclarationList(U.parent)&&U.parent.declarations[0]!==U)return ce(e.findPrecedingToken(U.pos,Ee,U.parent))}function H(U){return!!U.initializer||U.dotDotDotToken!==void 0||e.hasModifier(U,4|8)}function q(U){if(e.isBindingPattern(U.name))return D(U.name);if(H(U))return f(U);var ue=U.parent,De=ue.parameters.indexOf(U);return e.Debug.assert(De!==-1),De!==0?q(ue.parameters[De-1]):ce(ue.body)}function be(U){return e.hasModifier(U,1)||U.parent.kind===244&&U.kind!==161}function R(U){return U.body?be(U)?f(U):ce(U.body):void 0}function K(U){var ue=U.statements.length?U.statements[0]:U.getLastToken();return be(U.parent)?Oe(U.parent,ue):ce(ue)}function m(U){switch(U.parent.kind){case 248:if(e.getModuleInstanceState(U.parent)!==1)return;case 228:case 226:case 230:return Oe(U.parent,U.statements[0]);case 229:case 231:return Oe(e.findPrecedingToken(U.pos,Ee,U.parent),U.statements[0])}return ce(U.statements[0])}function _(U){if(U.initializer.kind===242){var ue=U.initializer;if(ue.declarations.length>0)return ce(ue.declarations[0])}else return ce(U.initializer)}function I(U){if(U.initializer)return _(U);if(U.condition)return f(U.condition);if(U.incrementor)return f(U.incrementor)}function D(U){var ue=e.forEach(U.elements,function(De){return De.kind!==214?De:void 0});return ue?ce(ue):U.parent.kind===190?f(U.parent):se(U.parent)}function y(U){e.Debug.assert(U.kind!==189&&U.kind!==188);var ue=U.kind===191?U.elements:U.properties,De=e.forEach(ue,function(Z){return Z.kind!==214?Z:void 0});return De?ce(De):f(U.parent.kind===208?U.parent:U)}function E(U){switch(U.parent.kind){case 247:var ue=U.parent;return Oe(e.findPrecedingToken(U.pos,Ee,U.parent),ue.members.length?ue.members[0]:ue.getLastToken(Ee));case 244:var De=U.parent;return Oe(e.findPrecedingToken(U.pos,Ee,U.parent),De.members.length?De.members[0]:De.getLastToken(Ee));case 250:return Oe(U.parent.parent,U.parent.clauses[0])}return ce(U.parent)}function k(U){switch(U.parent.kind){case 249:if(e.getModuleInstanceState(U.parent.parent)!==1)return;case 247:case 244:return f(U);case 222:if(e.isFunctionBlock(U.parent))return f(U);case 278:return ce(e.lastOrUndefined(U.parent.statements));case 250:var ue=U.parent,De=e.lastOrUndefined(ue.clauses);return De?ce(e.lastOrUndefined(De.statements)):void 0;case 188:var Z=U.parent;return ce(e.lastOrUndefined(Z.elements)||Z);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(U.parent)){var Re=U.parent;return f(e.lastOrUndefined(Re.properties)||Re)}return ce(U.parent)}}function T(U){switch(U.parent.kind){case 189:var ue=U.parent;return f(e.lastOrUndefined(ue.elements)||ue);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(U.parent)){var De=U.parent;return f(e.lastOrUndefined(De.elements)||De)}return ce(U.parent)}}function ne(U){return U.parent.kind===227||U.parent.kind===195||U.parent.kind===196?Te(U):U.parent.kind===199?ie(U):ce(U.parent)}function O(U){switch(U.parent.kind){case 200:case 243:case 201:case 160:case 159:case 162:case 163:case 161:case 228:case 227:case 229:case 231:case 195:case 196:case 199:return Te(U);default:return ce(U.parent)}}function Y(U){return e.isFunctionLike(U.parent)||U.parent.kind===279||U.parent.kind===155?Te(U):ce(U.parent)}function pe(U){return U.parent.kind===198?ie(U):ce(U.parent)}function S(U){return U.parent.kind===227?J(U,U.parent.expression):ce(U.parent)}function v(U){return U.parent.kind===231?ie(U):ce(U.parent)}}}M.spanInSourceFileAtLocation=qe})(o=e.BreakpointResolver||(e.BreakpointResolver={}))})(sn||(sn={}));var sn;(function(e){function o(M,qe,Ee){var Ge=[];Ee=e.fixupCompilerOptions(Ee,Ge);var Be=e.isArray(M)?M:[M],he=e.transformNodes(void 0,void 0,Ee,Be,qe,!0);return he.diagnostics=e.concatenate(he.diagnostics,Ge),he}e.transform=o})(sn||(sn={}));var Wo=function(){return this}(),sn;(function(e){function o(x,C){x&&x.log("*INTERNAL ERROR* - Exception in typescript services: "+C.message)}var M=function(){function x(C){this.scriptSnapshotShim=C}return x.prototype.getText=function(C,P){return this.scriptSnapshotShim.getText(C,P)},x.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},x.prototype.getChangeRange=function(C){var P=C,h=this.scriptSnapshotShim.getChangeRange(P.scriptSnapshotShim);if(h===null)return null;var X=JSON.parse(h);return e.createTextChangeRange(e.createTextSpan(X.span.start,X.span.length),X.newLength)},x.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},x}(),qe=function(){function x(C){var P=this;this.shimHost=C,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(h,X){var $=JSON.parse(P.shimHost.getModuleResolutionsForFile(X));return e.map(h,function(Q){var z=e.getProperty($,Q);return z?{resolvedFileName:z,extension:e.extensionFromPath(z),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(h){return P.shimHost.directoryExists(h)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(h,X){var $=JSON.parse(P.shimHost.getTypeReferenceDirectiveResolutionsForFile(X));return e.map(h,function(Q){return e.getProperty($,Q)})})}return x.prototype.log=function(C){this.loggingEnabled&&this.shimHost.log(C)},x.prototype.trace=function(C){this.tracingEnabled&&this.shimHost.trace(C)},x.prototype.error=function(C){this.shimHost.error(C)},x.prototype.getProjectVersion=function(){return this.shimHost.getProjectVersion?this.shimHost.getProjectVersion():void 0},x.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},x.prototype.useCaseSensitiveFileNames=function(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1},x.prototype.getCompilationSettings=function(){var C=this.shimHost.getCompilationSettings();if(C===null||C==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var P=JSON.parse(C);return P.allowNonTsExtensions=!0,P},x.prototype.getScriptFileNames=function(){var C=this.shimHost.getScriptFileNames();return JSON.parse(C)},x.prototype.getScriptSnapshot=function(C){var P=this.shimHost.getScriptSnapshot(C);return P&&new M(P)},x.prototype.getScriptKind=function(C){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(C):0},x.prototype.getScriptVersion=function(C){return this.shimHost.getScriptVersion(C)},x.prototype.getLocalizedDiagnosticMessages=function(){var C=this.shimHost.getLocalizedDiagnosticMessages();if(C===null||C==="")return null;try{return JSON.parse(C)}catch(P){return this.log(P.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},x.prototype.getCancellationToken=function(){var C=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(C)},x.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},x.prototype.getDirectories=function(C){return JSON.parse(this.shimHost.getDirectories(C))},x.prototype.getDefaultLibFileName=function(C){return this.shimHost.getDefaultLibFileName(JSON.stringify(C))},x.prototype.readDirectory=function(C,P,h,X,$){var Q=e.getFileMatcherPatterns(C,h,X,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(C,JSON.stringify(P),JSON.stringify(Q.basePaths),Q.excludePattern,Q.includeFilePattern,Q.includeDirectoryPattern,$))},x.prototype.readFile=function(C,P){return this.shimHost.readFile(C,P)},x.prototype.fileExists=function(C){return this.shimHost.fileExists(C)},x}();e.LanguageServiceShimHostAdapter=qe;var Ee=function(){function x(C){var P=this;this.shimHost=C,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=function(h){return P.shimHost.directoryExists(h)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(h){return P.shimHost.realpath(h)}:this.realpath=void 0}return x.prototype.readDirectory=function(C,P,h,X,$){var Q=e.getFileMatcherPatterns(C,h,X,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(C,JSON.stringify(P),JSON.stringify(Q.basePaths),Q.excludePattern,Q.includeFilePattern,Q.includeDirectoryPattern,$))},x.prototype.fileExists=function(C){return this.shimHost.fileExists(C)},x.prototype.readFile=function(C){return this.shimHost.readFile(C)},x.prototype.getDirectories=function(C){return JSON.parse(this.shimHost.getDirectories(C))},x}();e.CoreServicesShimHostAdapter=Ee;function Ge(x,C,P,h){var X;h&&(x.log(C),X=e.timestamp());var $=P();if(h){var Q=e.timestamp();if(x.log(C+" completed in "+(Q-X)+" msec"),e.isString($)){var z=$;z.length>128&&(z=z.substring(0,128)+"..."),x.log(" result.length="+z.length+", result='"+JSON.stringify(z)+"'")}}return $}function Be(x,C,P,h){return he(x,C,!0,P,h)}function he(x,C,P,h,X){try{var $=Ge(x,C,h,X);return P?JSON.stringify({result:$}):$}catch(Q){return Q instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(o(x,Q),Q.description=C,JSON.stringify({error:Q}))}}var ee=function(){function x(C){this.factory=C,C.registerShim(this)}return x.prototype.dispose=function(C){this.factory.unregisterShim(this)},x}();function f(x,C){return x.map(function(P){return J(P,C)})}e.realizeDiagnostics=f;function J(x,C){return{message:e.flattenDiagnosticMessageText(x.messageText,C),start:x.start,length:x.length,category:e.diagnosticCategoryName(x),code:x.code,reportsUnnecessary:x.reportsUnnecessary}}var Oe=function(x){Mi(C,x);function C(P,h,X){var $=x.call(this,P)||this;return $.host=h,$.languageService=X,$.logPerformance=!1,$.logger=$.host,$}return C.prototype.forwardJSONCall=function(P,h){return Be(this.logger,P,h,this.logPerformance)},C.prototype.dispose=function(P){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,Wo&&Wo.CollectGarbage&&(Wo.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,x.prototype.dispose.call(this,P)},C.prototype.refresh=function(P){this.forwardJSONCall("refresh("+P+")",function(){return null})},C.prototype.cleanupSemanticCache=function(){var P=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return P.languageService.cleanupSemanticCache(),null})},C.prototype.realizeDiagnostics=function(P){var h=e.getNewLineOrDefaultFromHost(this.host);return f(P,h)},C.prototype.getSyntacticClassifications=function(P,h,X){var $=this;return this.forwardJSONCall("getSyntacticClassifications('"+P+"', "+h+", "+X+")",function(){return $.languageService.getSyntacticClassifications(P,e.createTextSpan(h,X))})},C.prototype.getSemanticClassifications=function(P,h,X){var $=this;return this.forwardJSONCall("getSemanticClassifications('"+P+"', "+h+", "+X+")",function(){return $.languageService.getSemanticClassifications(P,e.createTextSpan(h,X))})},C.prototype.getEncodedSyntacticClassifications=function(P,h,X){var $=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+P+"', "+h+", "+X+")",function(){return N($.languageService.getEncodedSyntacticClassifications(P,e.createTextSpan(h,X)))})},C.prototype.getEncodedSemanticClassifications=function(P,h,X){var $=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+P+"', "+h+", "+X+")",function(){return N($.languageService.getEncodedSemanticClassifications(P,e.createTextSpan(h,X)))})},C.prototype.getSyntacticDiagnostics=function(P){var h=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+P+"')",function(){var X=h.languageService.getSyntacticDiagnostics(P);return h.realizeDiagnostics(X)})},C.prototype.getSemanticDiagnostics=function(P){var h=this;return this.forwardJSONCall("getSemanticDiagnostics('"+P+"')",function(){var X=h.languageService.getSemanticDiagnostics(P);return h.realizeDiagnostics(X)})},C.prototype.getSuggestionDiagnostics=function(P){var h=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+P+"')",function(){return h.realizeDiagnostics(h.languageService.getSuggestionDiagnostics(P))})},C.prototype.getCompilerOptionsDiagnostics=function(){var P=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var h=P.languageService.getCompilerOptionsDiagnostics();return P.realizeDiagnostics(h)})},C.prototype.getQuickInfoAtPosition=function(P,h){var X=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+P+"', "+h+")",function(){return X.languageService.getQuickInfoAtPosition(P,h)})},C.prototype.getNameOrDottedNameSpan=function(P,h,X){var $=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+P+"', "+h+", "+X+")",function(){return $.languageService.getNameOrDottedNameSpan(P,h,X)})},C.prototype.getBreakpointStatementAtPosition=function(P,h){var X=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+P+"', "+h+")",function(){return X.languageService.getBreakpointStatementAtPosition(P,h)})},C.prototype.getSignatureHelpItems=function(P,h,X){var $=this;return this.forwardJSONCall("getSignatureHelpItems('"+P+"', "+h+")",function(){return $.languageService.getSignatureHelpItems(P,h,X)})},C.prototype.getDefinitionAtPosition=function(P,h){var X=this;return this.forwardJSONCall("getDefinitionAtPosition('"+P+"', "+h+")",function(){return X.languageService.getDefinitionAtPosition(P,h)})},C.prototype.getDefinitionAndBoundSpan=function(P,h){var X=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+P+"', "+h+")",function(){return X.languageService.getDefinitionAndBoundSpan(P,h)})},C.prototype.getTypeDefinitionAtPosition=function(P,h){var X=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+P+"', "+h+")",function(){return X.languageService.getTypeDefinitionAtPosition(P,h)})},C.prototype.getImplementationAtPosition=function(P,h){var X=this;return this.forwardJSONCall("getImplementationAtPosition('"+P+"', "+h+")",function(){return X.languageService.getImplementationAtPosition(P,h)})},C.prototype.getRenameInfo=function(P,h,X){var $=this;return this.forwardJSONCall("getRenameInfo('"+P+"', "+h+")",function(){return $.languageService.getRenameInfo(P,h,X)})},C.prototype.getSmartSelectionRange=function(P,h){var X=this;return this.forwardJSONCall("getSmartSelectionRange('"+P+"', "+h+")",function(){return X.languageService.getSmartSelectionRange(P,h)})},C.prototype.findRenameLocations=function(P,h,X,$,Q){var z=this;return this.forwardJSONCall("findRenameLocations('"+P+"', "+h+", "+X+", "+$+", "+Q+")",function(){return z.languageService.findRenameLocations(P,h,X,$,Q)})},C.prototype.getBraceMatchingAtPosition=function(P,h){var X=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+P+"', "+h+")",function(){return X.languageService.getBraceMatchingAtPosition(P,h)})},C.prototype.isValidBraceCompletionAtPosition=function(P,h,X){var $=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+P+"', "+h+", "+X+")",function(){return $.languageService.isValidBraceCompletionAtPosition(P,h,X)})},C.prototype.getSpanOfEnclosingComment=function(P,h,X){var $=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+P+"', "+h+")",function(){return $.languageService.getSpanOfEnclosingComment(P,h,X)})},C.prototype.getIndentationAtPosition=function(P,h,X){var $=this;return this.forwardJSONCall("getIndentationAtPosition('"+P+"', "+h+")",function(){var Q=JSON.parse(X);return $.languageService.getIndentationAtPosition(P,h,Q)})},C.prototype.getReferencesAtPosition=function(P,h){var X=this;return this.forwardJSONCall("getReferencesAtPosition('"+P+"', "+h+")",function(){return X.languageService.getReferencesAtPosition(P,h)})},C.prototype.findReferences=function(P,h){var X=this;return this.forwardJSONCall("findReferences('"+P+"', "+h+")",function(){return X.languageService.findReferences(P,h)})},C.prototype.getOccurrencesAtPosition=function(P,h){var X=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+P+"', "+h+")",function(){return X.languageService.getOccurrencesAtPosition(P,h)})},C.prototype.getDocumentHighlights=function(P,h,X){var $=this;return this.forwardJSONCall("getDocumentHighlights('"+P+"', "+h+")",function(){var Q=$.languageService.getDocumentHighlights(P,h,JSON.parse(X)),z=e.normalizeSlashes(P).toLowerCase();return e.filter(Q,function(se){return e.normalizeSlashes(se.fileName).toLowerCase()===z})})},C.prototype.getCompletionsAtPosition=function(P,h,X){var $=this;return this.forwardJSONCall("getCompletionsAtPosition('"+P+"', "+h+", "+X+")",function(){return $.languageService.getCompletionsAtPosition(P,h,X)})},C.prototype.getCompletionEntryDetails=function(P,h,X,$,Q,z){var se=this;return this.forwardJSONCall("getCompletionEntryDetails('"+P+"', "+h+", '"+X+"')",function(){var G=$===void 0?void 0:JSON.parse($);return se.languageService.getCompletionEntryDetails(P,h,X,G,Q,z)})},C.prototype.getFormattingEditsForRange=function(P,h,X,$){var Q=this;return this.forwardJSONCall("getFormattingEditsForRange('"+P+"', "+h+", "+X+")",function(){var z=JSON.parse($);return Q.languageService.getFormattingEditsForRange(P,h,X,z)})},C.prototype.getFormattingEditsForDocument=function(P,h){var X=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+P+"')",function(){var $=JSON.parse(h);return X.languageService.getFormattingEditsForDocument(P,$)})},C.prototype.getFormattingEditsAfterKeystroke=function(P,h,X,$){var Q=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+P+"', "+h+", '"+X+"')",function(){var z=JSON.parse($);return Q.languageService.getFormattingEditsAfterKeystroke(P,h,X,z)})},C.prototype.getDocCommentTemplateAtPosition=function(P,h){var X=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+P+"', "+h+")",function(){return X.languageService.getDocCommentTemplateAtPosition(P,h)})},C.prototype.getNavigateToItems=function(P,h,X){var $=this;return this.forwardJSONCall("getNavigateToItems('"+P+"', "+h+", "+X+")",function(){return $.languageService.getNavigateToItems(P,h,X)})},C.prototype.getNavigationBarItems=function(P){var h=this;return this.forwardJSONCall("getNavigationBarItems('"+P+"')",function(){return h.languageService.getNavigationBarItems(P)})},C.prototype.getNavigationTree=function(P){var h=this;return this.forwardJSONCall("getNavigationTree('"+P+"')",function(){return h.languageService.getNavigationTree(P)})},C.prototype.getOutliningSpans=function(P){var h=this;return this.forwardJSONCall("getOutliningSpans('"+P+"')",function(){return h.languageService.getOutliningSpans(P)})},C.prototype.getTodoComments=function(P,h){var X=this;return this.forwardJSONCall("getTodoComments('"+P+"')",function(){return X.languageService.getTodoComments(P,JSON.parse(h))})},C.prototype.getEmitOutput=function(P){var h=this;return this.forwardJSONCall("getEmitOutput('"+P+"')",function(){return h.languageService.getEmitOutput(P)})},C.prototype.getEmitOutputObject=function(P){var h=this;return he(this.logger,"getEmitOutput('"+P+"')",!1,function(){return h.languageService.getEmitOutput(P)},this.logPerformance)},C}(ee);function N(x){return{spans:x.spans.join(","),endOfLineState:x.endOfLineState}}var Te=function(x){Mi(C,x);function C(P,h){var X=x.call(this,P)||this;return X.logger=h,X.logPerformance=!1,X.classifier=e.createClassifier(),X}return C.prototype.getEncodedLexicalClassifications=function(P,h,X){var $=this;return X===void 0&&(X=!1),Be(this.logger,"getEncodedLexicalClassifications",function(){return N($.classifier.getEncodedLexicalClassifications(P,h,X))},this.logPerformance)},C.prototype.getClassificationsForLine=function(P,h,X){X===void 0&&(X=!1);for(var $=this.classifier.getClassificationsForLine(P,h,X),Q="",z=0,se=$.entries;z<se.length;z++){var G=se[z];Q+=G.length+`
|
|
|
`,Q+=G.classification+`
|
|
|
`}return Q+=$.finalLexState,Q},C}(ee),ie=function(x){Mi(C,x);function C(P,h,X){var $=x.call(this,P)||this;return $.logger=h,$.host=X,$.logPerformance=!1,$}return C.prototype.forwardJSONCall=function(P,h){return Be(this.logger,P,h,this.logPerformance)},C.prototype.resolveModuleName=function(P,h,X){var $=this;return this.forwardJSONCall("resolveModuleName('"+P+"')",function(){var Q=JSON.parse(X),z=e.resolveModuleName(h,e.normalizeSlashes(P),Q,$.host),se=z.resolvedModule?z.resolvedModule.resolvedFileName:void 0;return z.resolvedModule&&z.resolvedModule.extension!==".ts"&&z.resolvedModule.extension!==".tsx"&&z.resolvedModule.extension!==".d.ts"&&(se=void 0),{resolvedFileName:se,failedLookupLocations:z.failedLookupLocations}})},C.prototype.resolveTypeReferenceDirective=function(P,h,X){var $=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+P+")",function(){var Q=JSON.parse(X),z=e.resolveTypeReferenceDirective(h,e.normalizeSlashes(P),Q,$.host);return{resolvedFileName:z.resolvedTypeReferenceDirective?z.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:z.resolvedTypeReferenceDirective?z.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:z.failedLookupLocations}})},C.prototype.getPreProcessedFileInfo=function(P,h){var X=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+P+"')",function(){var $=e.preProcessFile(e.getSnapshotText(h),!0,!0);return{referencedFiles:X.convertFileReferences($.referencedFiles),importedFiles:X.convertFileReferences($.importedFiles),ambientExternalModules:$.ambientExternalModules,isLibFile:$.isLibFile,typeReferenceDirectives:X.convertFileReferences($.typeReferenceDirectives),libReferenceDirectives:X.convertFileReferences($.libReferenceDirectives)}})},C.prototype.getAutomaticTypeDirectiveNames=function(P){var h=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+P+"')",function(){var X=JSON.parse(P);return e.getAutomaticTypeDirectiveNames(X,h.host)})},C.prototype.convertFileReferences=function(P){if(!P)return;for(var h=[],X=0,$=P;X<$.length;X++){var Q=$[X];h.push({path:e.normalizeSlashes(Q.fileName),position:Q.pos,length:Q.end-Q.pos})}return h},C.prototype.getTSConfigFileInfo=function(P,h){var X=this;return this.forwardJSONCall("getTSConfigFileInfo('"+P+"')",function(){var $=e.parseJsonText(P,e.getSnapshotText(h)),Q=e.normalizeSlashes(P),z=e.parseJsonSourceFileConfigFileContent($,X.host,e.getDirectoryPath(Q),{},Q);return{options:z.options,typeAcquisition:z.typeAcquisition,files:z.fileNames,raw:z.raw,errors:f(Tr($.parseDiagnostics,z.errors),`\r
|
|
|
`)}})},C.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},C.prototype.discoverTypings=function(P){var h=this,X=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var $=JSON.parse(P);return h.safeList===void 0&&(h.safeList=e.JsTyping.loadSafeList(h.host,e.toPath($.safeListPath,$.safeListPath,X))),e.JsTyping.discoverTypings(h.host,function(Q){return h.logger.log(Q)},$.fileNames,e.toPath($.projectRootPath,$.projectRootPath,X),h.safeList,$.packageNameToTypingLocation,$.typeAcquisition,$.unresolvedImports,$.typesRegistry)})},C}(ee),ce=function(){function x(){this._shims=[]}return x.prototype.getServicesVersion=function(){return e.servicesVersion},x.prototype.createLanguageServiceShim=function(C){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(C.useCaseSensitiveFileNames&&C.useCaseSensitiveFileNames(),C.getCurrentDirectory()));var P=new qe(C),h=e.createLanguageService(P,this.documentRegistry,!1);return new Oe(this,C,h)}catch(X){throw o(C,X),X}},x.prototype.createClassifierShim=function(C){try{return new Te(this,C)}catch(P){throw o(C,P),P}},x.prototype.createCoreServicesShim=function(C){try{var P=new Ee(C);return new ie(this,C,P)}catch(h){throw o(C,h),h}},x.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},x.prototype.registerShim=function(C){this._shims.push(C)},x.prototype.unregisterShim=function(C){for(var P=0;P<this._shims.length;P++)if(this._shims[P]===C){delete this._shims[P];return}throw new Error("Invalid operation")},x}();e.TypeScriptServicesFactory=ce,Bo.exports&&(Bo.exports=e)})(sn||(sn={}));var As;(function(e){var o;(function(M){M.TypeScriptServicesFactory=sn.TypeScriptServicesFactory})(o=e.Services||(e.Services={}))})(As||(As={}));var pl=sn.versionMajorMinor,zo=sn.createClassifier,Aa=sn.createLanguageService,Ti=sn.displayPartsToString,so=sn.EndOfLineState,Xo=sn.flattenDiagnosticMessageText,Cu=sn.IndentStyle,Od=sn.ScriptKind,Du=sn.ScriptTarget,Pp=sn.TokenClass}).call(this,co("Q2Ig"),"/",co("Vg/k")(ru))}});
|