You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/ts.worker.js

35304 lines
4.6 MiB

(function(){var aL={647:function(Wl,Ys,Ql){"use strict";var ud="/";Ql.d(Ys,{I5:function(){return Fc},hV:function(){return My}}),Wl=Ql.hmd(Wl);var Ru=Ql(671);var Vr=function(e,o,ue){if(ue||arguments.length===2)for(var $=0,Y=o.length,W;$<Y;$++)(W||!($ in o))&&(W||(W=Array.prototype.slice.call(o,0,$)),W[$]=o[$]);return e.concat(W||Array.prototype.slice.call(o))},Mt=function(){return Mt=Object.assign||function(e){for(var o,ue=1,$=arguments.length;ue<$;ue++){o=arguments[ue];for(var Y in o)Object.prototype.hasOwnProperty.call(o,Y)&&(e[Y]=o[Y])}return e},Mt.apply(this,arguments)},Fg=function(e,o){return Object.defineProperty?Object.defineProperty(e,"raw",{value:o}):e.raw=o,e},Ou=function(e,o){var ue={label:0,sent:function(){if(W[0]&1)throw W[1];return W[1]},trys:[],ops:[]},$,Y,W,re;return re={next:ye(0),throw:ye(1),return:ye(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function ye(A){return function(D){return O([A,D])}}function O(A){if($)throw new TypeError("Generator is already executing.");for(;ue;)try{if($=1,Y&&(W=A[0]&2?Y.return:A[0]?Y.throw||((W=Y.return)&&W.call(Y),0):Y.next)&&!(W=W.call(Y,A[1])).done)return W;switch(Y=0,W&&(A=[A[0]&2,W.value]),A[0]){case 0:case 1:W=A;break;case 4:return ue.label++,{value:A[1],done:!1};case 5:ue.label++,Y=A[1],A=[0];continue;case 7:A=ue.ops.pop(),ue.trys.pop();continue;default:if(W=ue.trys,!(W=W.length>0&&W[W.length-1])&&(A[0]===6||A[0]===2)){ue=0;continue}if(A[0]===3&&(!W||A[1]>W[0]&&A[1]<W[3])){ue.label=A[1];break}if(A[0]===6&&ue.label<W[1]){ue.label=W[1],W=A;break}if(W&&ue.label<W[2]){ue.label=W[2],ue.ops.push(A);break}W[2]&&ue.ops.pop(),ue.trys.pop();continue}A=o.call(e,ue)}catch(D){A=[6,D],Y=0}finally{$=W=0}if(A[0]&5)throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}},fp=function(e,o){var ue={};for(var $ in e)Object.prototype.hasOwnProperty.call(e,$)&&o.indexOf($)<0&&(ue[$]=e[$]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,$=Object.getOwnPropertySymbols(e);Y<$.length;Y++)o.indexOf($[Y])<0&&Object.prototype.propertyIsEnumerable.call(e,$[Y])&&(ue[$[Y]]=e[$[Y]]);return ue},zu=function(){var e=function(o,ue){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,Y){$.__proto__=Y}||function($,Y){for(var W in Y)Object.prototype.hasOwnProperty.call(Y,W)&&($[W]=Y[W])},e(o,ue)};return function(o,ue){if(typeof ue!="function"&&ue!==null)throw new TypeError("Class extends value "+String(ue)+" is not a constructor or null");e(o,ue);function $(){this.constructor=o}o.prototype=ue===null?Object.create(ue):($.prototype=ue.prototype,new $)}}(),vn;(function(e){function o(){var Z={};return Z.prev=Z,{head:Z,tail:Z,size:0}}function ue(Z,E){return{key:Z,value:E,next:void 0,prev:void 0}}function $(Z,E){return Z===E||Z!==Z&&E!==E}function Y(Z){var E=Z.prev;if(!E||E===Z)throw new Error("Illegal state");return E}function W(Z){for(;Z;){var E=!Z.prev;if(Z=Z.next,!E)return Z}}function re(Z,E){for(var H=Z.tail;H!==Z.head;H=Y(H))if($(H.key,E))return H}function ye(Z,E,H){var L=re(Z,E);if(L){L.value=H;return}var ee=ue(E,H);return ee.prev=Z.tail,Z.tail.next=ee,Z.tail=ee,Z.size++,ee}function O(Z,E){for(var H=Z.tail;H!==Z.head;H=Y(H)){if(H.prev===void 0)throw new Error("Illegal state");if($(H.key,E)){if(H.next)H.next.prev=H.prev;else{if(Z.tail!==H)throw new Error("Illegal state");Z.tail=H.prev}return H.prev.next=H.next,H.next=H.prev,H.prev=void 0,Z.size--,H}}}function A(Z){for(var E=Z.tail;E!==Z.head;){var H=Y(E);E.next=Z.head,E.prev=void 0,E=H}Z.head.next=void 0,Z.tail=Z.head,Z.size=0}function D(Z,E){for(var H=Z.head;H;)H=W(H),H&&E(H.value,H.key)}function de(Z,E){if(Z)for(var H=Z.next();!H.done;H=Z.next())E(H.value)}function _e(Z,E){return{current:Z.head,selector:E}}function y(Z){return Z.current=W(Z.current),Z.current?{value:Z.selector(Z.current.key,Z.current.value),done:!1}:{value:void 0,done:!0}}var V;(function(Z){function E(L){var ee=function(){function k(b,ie){this._data=_e(b,ie)}return k.prototype.next=function(){return y(this._data)},k}();return function(){function k(b){var ie=this;this._mapData=o(),de(L(b),function(q){var oe=q[0],se=q[1];return ie.set(oe,se)})}return Object.defineProperty(k.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),k.prototype.get=function(b){var ie;return(ie=re(this._mapData,b))===null||ie===void 0?void 0:ie.value},k.prototype.set=function(b,ie){return ye(this._mapData,b,ie),this},k.prototype.has=function(b){return!!re(this._mapData,b)},k.prototype.delete=function(b){return!!O(this._mapData,b)},k.prototype.clear=function(){A(this._mapData)},k.prototype.keys=function(){return new ee(this._mapData,function(b,ie){return b})},k.prototype.values=function(){return new ee(this._mapData,function(b,ie){return ie})},k.prototype.entries=function(){return new ee(this._mapData,function(b,ie){return[b,ie]})},k.prototype.forEach=function(b){D(this._mapData,b)},k}()}Z.createMapShim=E;function H(L){var ee=function(){function k(b,ie){this._data=_e(b,ie)}return k.prototype.next=function(){return y(this._data)},k}();return function(){function k(b){var ie=this;this._mapData=o(),de(L(b),function(q){return ie.add(q)})}return Object.defineProperty(k.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),k.prototype.add=function(b){return ye(this._mapData,b,b),this},k.prototype.has=function(b){return!!re(this._mapData,b)},k.prototype.delete=function(b){return!!O(this._mapData,b)},k.prototype.clear=function(){A(this._mapData)},k.prototype.keys=function(){return new ee(this._mapData,function(b,ie){return b})},k.prototype.values=function(){return new ee(this._mapData,function(b,ie){return ie})},k.prototype.entries=function(){return new ee(this._mapData,function(b,ie){return[b,ie]})},k.prototype.forEach=function(b){D(this._mapData,b)},k}()}Z.createSetShim=H})(V=e.ShimCollections||(e.ShimCollections={}))})(vn||(vn={}));var vn;(function(e){e.versionMajorMinor="4.4",e.version="4.4.4";var o;(function($){$[$.LessThan=-1]="LessThan",$[$.EqualTo=0]="EqualTo",$[$.GreaterThan=1]="GreaterThan"})(o=e.Comparison||(e.Comparison={}));var ue;(function($){function Y(){return typeof Map!="undefined"&&"entries"in Map.prototype&&new Map([[0,0]]).size===1?Map:void 0}$.tryGetNativeMap=Y;function W(){return typeof Set!="undefined"&&"entries"in Set.prototype&&new Set([0]).size===1?Set:void 0}$.tryGetNativeSet=W})(ue=e.NativeCollections||(e.NativeCollections={}))})(vn||(vn={}));var vn;(function(e){function o(j,Ie,We){var sn,Hn=(sn=e.NativeCollections[Ie]())!==null&&sn!==void 0?sn:e.ShimCollections===null||e.ShimCollections===void 0?void 0:e.ShimCollections[We](ue);if(Hn)return Hn;throw new Error("TypeScript requires an environment that provides a compatible native "+j+" implementation.")}e.Map=o("Map","tryGetNativeMap","createMapShim"),e.Set=o("Set","tryGetNativeSet","createSetShim");function ue(j){if(j){if(xn(j))return X(j);if(j instanceof e.Map)return j.entries();if(j instanceof e.Set)return j.values();throw new Error("Iteration not supported.")}}e.getIterator=ue,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set;function $(){return new e.Map}e.createMap=$;function Y(j){var Ie=new e.Map;for(var We in j)ze.call(j,We)&&Ie.set(We,j[We]);return Ie}e.createMapFromTemplate=Y;function W(j){return j?j.length:0}e.length=W;function re(j,Ie){if(j)for(var We=0;We<j.length;We++){var sn=Ie(j[We],We);if(sn)return sn}}e.forEach=re;function ye(j,Ie){if(j)for(var We=j.length-1;We>=0;We--){var sn=Ie(j[We],We);if(sn)return sn}}e.forEachRight=ye;function O(j,Ie){if(j!==void 0)for(var We=0;We<j.length;We++){var sn=Ie(j[We],We);if(sn!==void 0)return sn}}e.firstDefined=O;function A(j,Ie){for(;;){var We=j.next();if(We.done)return;var sn=Ie(We.value);if(sn!==void 0)return sn}}e.firstDefinedIterator=A;function D(j,Ie,We){var sn=We;if(j)for(var Hn=j.next(),vr=0;!Hn.done;Hn=j.next(),vr++)sn=Ie(sn,Hn.value,vr);return sn}e.reduceLeftIterator=D;function de(j,Ie,We){var sn=[];e.Debug.assertEqual(j.length,Ie.length);for(var Hn=0;Hn<j.length;Hn++)sn.push(We(j[Hn],Ie[Hn],Hn));return sn}e.zipWith=de;function _e(j,Ie){e.Debug.assertEqual(j.length,Ie.length);var We=0;return{next:function(){return We===j.length?{value:void 0,done:!0}:(We++,{value:[j[We-1],Ie[We-1]],done:!1})}}}e.zipToIterator=_e;function y(j,Ie){e.Debug.assert(j.length===Ie.length);for(var We=new e.Map,sn=0;sn<j.length;++sn)We.set(j[sn],Ie[sn]);return We}e.zipToMap=y;function V(j,Ie){if(j.length<=1)return j;for(var We=[],sn=0,Hn=j.length;sn<Hn;sn++)sn&&We.push(Ie),We.push(j[sn]);return We}e.intersperse=V;function Z(j,Ie){if(j){for(var We=0;We<j.length;We++)if(!Ie(j[We],We))return!1}return!0}e.every=Z;function E(j,Ie){for(var We=0;We<j.length;We++){var sn=j[We];if(Ie(sn,We))return sn}}e.find=E;function H(j,Ie){for(var We=j.length-1;We>=0;We--){var sn=j[We];if(Ie(sn,We))return sn}}e.findLast=H;function L(j,Ie,We){for(var sn=We||0;sn<j.length;sn++)if(Ie(j[sn],sn))return sn;return-1}e.findIndex=L;function ee(j,Ie,We){for(var sn=We===void 0?j.length-1:We;sn>=0;sn--)if(Ie(j[sn],sn))return sn;return-1}e.findLastIndex=ee;function k(j,Ie){for(var We=0;We<j.length;We++){var sn=Ie(j[We],We);if(sn)return sn}return e.Debug.fail()}e.findMap=k;function b(j,Ie,We){if(We===void 0&&(We=za),j)for(var sn=0,Hn=j;sn<Hn.length;sn++){var vr=Hn[sn];if(We(vr,Ie))return!0}return!1}e.contains=b;function ie(j,Ie,We){return We===void 0&&(We=za),j.length===Ie.length&&j.every(function(sn,Hn){return We(sn,Ie[Hn])})}e.arraysEqual=ie;function q(j,Ie,We){for(var sn=We||0;sn<j.length;sn++)if(b(Ie,j.charCodeAt(sn)))return sn;return-1}e.indexOfAnyCharCode=q;function oe(j,Ie){var We=0;if(j)for(var sn=0;sn<j.length;sn++){var Hn=j[sn];Ie(Hn,sn)&&We++}return We}e.countWhere=oe;function se(j,Ie){if(j){for(var We=j.length,sn=0;sn<We&&Ie(j[sn]);)sn++;if(sn<We){var Hn=j.slice(0,sn);for(sn++;sn<We;){var vr=j[sn];Ie(vr)&&Hn.push(vr),sn++}return Hn}}return j}e.filter=se;function w(j,Ie){for(var We=0,sn=0;sn<j.length;sn++)Ie(j[sn],sn,j)&&(j[We]=j[sn],We++);j.length=We}e.filterMutate=w;function R(j){j.length=0}e.clear=R;function ne(j,Ie){var We;if(j){We=[];for(var sn=0;sn<j.length;sn++)We.push(Ie(j[sn],sn))}return We}e.map=ne;function U(j,Ie){return{next:function(){var We=j.next();return We.done?We:{value:Ie(We.value),done:!1}}}}e.mapIterator=U;function C(j,Ie){if(j)for(var We=0;We<j.length;We++){var sn=j[We],Hn=Ie(sn,We);if(sn!==Hn){var vr=j.slice(0,We);for(vr.push(Hn),We++;We<j.length;We++)vr.push(Ie(j[We],We));return vr}}return j}e.sameMap=C;function d(j){for(var Ie=[],We=0,sn=j;We<sn.length;We++){var Hn=sn[We];Hn&&(xn(Hn)?Un(Ie,Hn):Ie.push(Hn))}return Ie}e.flatten=d;function G(j,Ie){var We;if(j)for(var sn=0;sn<j.length;sn++){var Hn=Ie(j[sn],sn);Hn&&(xn(Hn)?We=Un(We,Hn):We=Re(We,Hn))}return We||e.emptyArray}e.flatMap=G;function g(j,Ie){var We=[];if(j)for(var sn=0;sn<j.length;sn++){var Hn=Ie(j[sn],sn);Hn&&(xn(Hn)?Un(We,Hn):We.push(Hn))}return We}e.flatMapToMutable=g;function p(j,Ie){var We=j.next();if(We.done)return e.emptyIterator;var sn=Hn(We.value);return{next:function(){for(;;){var vr=sn.next();if(!vr.done)return vr;var Sr=j.next();if(Sr.done)return Sr;sn=Hn(Sr.value)}}};function Hn(vr){var Sr=Ie(vr);return Sr===void 0?e.emptyIterator:xn(Sr)?X(Sr):Sr}}e.flatMapIterator=p;function f(j,Ie){var We;if(j)for(var sn=0;sn<j.length;sn++){var Hn=j[sn],vr=Ie(Hn,sn);(We||Hn!==vr||xn(vr))&&(We||(We=j.slice(0,sn)),xn(vr)?Un(We,vr):We.push(vr))}return We||j}e.sameFlatMap=f;function T(j,Ie){for(var We=[],sn=0;sn<j.length;sn++){var Hn=Ie(j[sn],sn);if(Hn===void 0)return;We.push(Hn)}return We}e.mapAllOrFail=T;function m(j,Ie){var We=[];if(j)for(var sn=0;sn<j.length;sn++){var Hn=Ie(j[sn],sn);Hn!==void 0&&We.push(Hn)}return We}e.mapDefined=m;function N(j,Ie){return{next:function(){for(;;){var We=j.next();if(We.done)return We;var sn=Ie(We.value);if(sn!==void 0)return{value:sn,done:!1}}}}}e.mapDefinedIterator=N;function P(j,Ie){if(j){var We=new e.Map;return j.forEach(function(sn,Hn){var vr=Ie(Hn,sn);if(vr!==void 0){var Sr=vr[0],ot=vr[1];Sr!==void 0&&ot!==void 0&&We.set(Sr,ot)}}),We}}e.mapDefinedEntries=P;function x(j,Ie){if(j){var We=new e.Set;return j.forEach(function(sn){var Hn=Ie(sn);Hn!==void 0&&We.add(Hn)}),We}}e.mapDefinedValues=x;function M(j,Ie,We){if(j.has(Ie))return j.get(Ie);var sn=We();return j.set(Ie,sn),sn}e.getOrUpdate=M;function me(j,Ie){return j.has(Ie)?!1:(j.add(Ie),!0)}e.tryAddToSet=me,e.emptyIterator={next:function(){return{value:void 0,done:!0}}};function z(j){var Ie=!1;return{next:function(){var We=Ie;return Ie=!0,We?{value:void 0,done:!0}:{value:j,done:!1}}}}e.singleIterator=z;function K(j,Ie,We){var sn;if(j){sn=[];for(var Hn=j.length,vr=void 0,Sr=void 0,ot=0,Et=0;ot<Hn;){for(;Et<Hn;){var ra=j[Et];if(Sr=Ie(ra,Et),Et===0)vr=Sr;else if(Sr!==vr)break;Et++}if(ot<Et){var Na=We(j.slice(ot,Et),vr,ot,Et);Na&&sn.push(Na),ot=Et}vr=Sr,Et++}}return sn}e.spanMap=K;function I(j,Ie){if(j){var We=new e.Map;return j.forEach(function(sn,Hn){var vr=Ie(Hn,sn),Sr=vr[0],ot=vr[1];We.set(Sr,ot)}),We}}e.mapEntries=I;function Ae(j,Ie){if(j)if(Ie)for(var We=0,sn=j;We<sn.length;We++){var Hn=sn[We];if(Ie(Hn))return!0}else return j.length>0;return!1}e.some=Ae;function Oe(j,Ie,We){for(var sn,Hn=0;Hn<j.length;Hn++)Ie(j[Hn])?sn=sn===void 0?Hn:sn:sn!==void 0&&(We(sn,Hn),sn=void 0);sn!==void 0&&We(sn,j.length)}e.getRangesWhere=Oe;function te(j,Ie){return Ae(Ie)?Ae(j)?Vr(Vr([],j,!0),Ie,!0):Ie:j}e.concatenate=te;function Se(j,Ie){return Ie}function be(j){return j.map(Se)}e.indicesOf=be;function Ce(j,Ie,We){var sn=be(j);i(j,sn,We);for(var Hn=j[sn[0]],vr=[sn[0]],Sr=1;Sr<sn.length;Sr++){var ot=sn[Sr],Et=j[ot];Ie(Hn,Et)||(vr.push(ot),Hn=Et)}return vr.sort(),vr.map(function(ra){return j[ra]})}function Be(j,Ie){for(var We=[],sn=0,Hn=j;sn<Hn.length;sn++){var vr=Hn[sn];fn(We,vr,Ie)}return We}function De(j,Ie,We){return j.length===0?[]:j.length===1?j.slice():We?Ce(j,Ie,We):Be(j,Ie)}e.deduplicate=De;function en(j,Ie){if(j.length===0)return e.emptyArray;for(var We=j[0],sn=[We],Hn=1;Hn<j.length;Hn++){var vr=j[Hn];switch(Ie(vr,We)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}sn.push(We=vr)}return sn}function fe(j,Ie,We){if(j.length===0){j.push(Ie);return}var sn=Ue(j,Ie,dt,We);sn<0&&j.splice(~sn,0,Ie)}e.insertSorted=fe;function Ne(j,Ie,We){return en(In(j,Ie),We||Ie||Lr)}e.sortAndDeduplicate=Ne;function qe(j,Ie){if(j.length<2)return!0;for(var We=j[0],sn=0,Hn=j.slice(1);sn<Hn.length;sn++){var vr=Hn[sn];if(Ie(We,vr)===1)return!1;We=vr}return!0}e.arrayIsSorted=qe;function pe(j,Ie,We){if(We===void 0&&(We=za),!j||!Ie)return j===Ie;if(j.length!==Ie.length)return!1;for(var sn=0;sn<j.length;sn++)if(!We(j[sn],Ie[sn],sn))return!1;return!0}e.arrayIsEqualTo=pe;function we(j){var Ie;if(j)for(var We=0;We<j.length;We++){var sn=j[We];(Ie||!sn)&&(Ie||(Ie=j.slice(0,We)),sn&&Ie.push(sn))}return Ie||j}e.compact=we;function pn(j,Ie,We){if(!Ie||!j||Ie.length===0||j.length===0)return Ie;var sn=[];e:for(var Hn=0,vr=0;vr<Ie.length;vr++){vr>0&&e.Debug.assertGreaterThanOrEqual(We(Ie[vr],Ie[vr-1]),0);n:for(var Sr=Hn;Hn<j.length;Hn++)switch(Hn>Sr&&e.Debug.assertGreaterThanOrEqual(We(j[Hn],j[Hn-1]),0),We(Ie[vr],j[Hn])){case-1:sn.push(Ie[vr]);continue e;case 0:continue e;case 1:continue n}}return sn}e.relativeComplement=pn;function Qe(j,Ie){for(var We=0,sn=0,Hn=j;sn<Hn.length;sn++){var vr=Hn[sn];We+=vr[Ie]}return We}e.sum=Qe;function Re(j,Ie){return Ie===void 0?j:j===void 0?[Ie]:(j.push(Ie),j)}e.append=Re;function He(j,Ie){return j===void 0?Ie:Ie===void 0?j:xn(j)?xn(Ie)?te(j,Ie):Re(j,Ie):xn(Ie)?Re(Ie,j):[j,Ie]}e.combine=He;function Ln(j,Ie){return Ie<0?j.length+Ie:Ie}function Un(j,Ie,We,sn){if(Ie===void 0||Ie.length===0)return j;if(j===void 0)return Ie.slice(We,sn);We=We===void 0?0:Ln(Ie,We),sn=sn===void 0?Ie.length:Ln(Ie,sn);for(var Hn=We;Hn<sn&&Hn<Ie.length;Hn++)Ie[Hn]!==void 0&&j.push(Ie[Hn]);return j}e.addRange=Un;function fn(j,Ie,We){return b(j,Ie,We)?!1:(j.push(Ie),!0)}e.pushIfUnique=fn;function En(j,Ie,We){return j?(fn(j,Ie,We),j):[Ie]}e.appendIfUnique=En;function i(j,Ie,We){Ie.sort(function(sn,Hn){return We(j[sn],j[Hn])||Hr(sn,Hn)})}function In(j,Ie){return j.length===0?j:j.slice().sort(Ie)}e.sort=In;function X(j){var Ie=0;return{next:function(){return Ie===j.length?{value:void 0,done:!0}:(Ie++,{value:j[Ie-1],done:!1})}}}e.arrayIterator=X;function rn(j){var Ie=j.length;return{next:function(){return Ie===0?{value:void 0,done:!0}:(Ie--,{value:j[Ie],done:!1})}}}e.arrayReverseIterator=rn;function $n(j,Ie){var We=be(j);return i(j,We,Ie),We.map(function(sn){return j[sn]})}e.stableSort=$n;function Vn(j,Ie,We,sn){for(;We<sn;){if(j[We]!==Ie[We])return!1;We++}return!0}e.rangeEquals=Vn;function le(j,Ie){if(j&&(Ie=Ln(j,Ie),Ie<j.length))return j[Ie]}e.elementAt=le;function Pe(j){return j.length===0?void 0:j[0]}e.firstOrUndefined=Pe;function xe(j){return e.Debug.assert(j.length!==0),j[0]}e.first=xe;function Ze(j){return j.length===0?void 0:j[j.length-1]}e.lastOrUndefined=Ze;function hn(j){return e.Debug.assert(j.length!==0),j[j.length-1]}e.last=hn;function Le(j){return j&&j.length===1?j[0]:void 0}e.singleOrUndefined=Le;function $e(j){return j&&j.length===1?j[0]:j}e.singleOrMany=$e;function An(j,Ie,We){var sn=j.slice(0);return sn[Ie]=We,sn}e.replaceElement=An;function Ue(j,Ie,We,sn,Hn){return gn(j,We(Ie),We,sn,Hn)}e.binarySearch=Ue;function gn(j,Ie,We,sn,Hn){if(!Ae(j))return-1;for(var vr=Hn||0,Sr=j.length-1;vr<=Sr;){var ot=vr+(Sr-vr>>1),Et=We(j[ot],ot);switch(sn(Et,Ie)){case-1:vr=ot+1;break;case 0:return ot;case 1:Sr=ot-1;break}}return~vr}e.binarySearchKey=gn;function Wn(j,Ie,We,sn,Hn){if(j&&j.length>0){var vr=j.length;if(vr>0){var Sr=sn===void 0||sn<0?0:sn,ot=Hn===void 0||Sr+Hn>vr-1?vr-1:Sr+Hn,Et=void 0;for(arguments.length<=2?(Et=j[Sr],Sr++):Et=We;Sr<=ot;)Et=Ie(Et,j[Sr],Sr),Sr++;return Et}}return We}e.reduceLeft=Wn;var ze=Object.prototype.hasOwnProperty;function Tn(j,Ie){return ze.call(j,Ie)}e.hasProperty=Tn;function On(j,Ie){return ze.call(j,Ie)?j[Ie]:void 0}e.getProperty=On;function ur(j){var Ie=[];for(var We in j)ze.call(j,We)&&Ie.push(We);return Ie}e.getOwnKeys=ur;function hr(j){var Ie=[];do for(var We=Object.getOwnPropertyNames(j),sn=0,Hn=We;sn<Hn.length;sn++){var vr=Hn[sn];fn(Ie,vr)}while(j=Object.getPrototypeOf(j));return Ie}e.getAllKeys=hr;function wr(j){var Ie=[];for(var We in j)ze.call(j,We)&&Ie.push(j[We]);return Ie}e.getOwnValues=wr;var Qr=Object.entries||function(j){for(var Ie=ur(j),We=Array(Ie.length),sn=0;sn<Ie.length;sn++)We[sn]=[Ie[sn],j[Ie[sn]]];return We};function Ke(j){return j?Qr(j):[]}e.getEntries=Ke;function jn(j,Ie){for(var We=new Array(j),sn=0;sn<j;sn++)We[sn]=Ie(sn);return We}e.arrayOf=jn;function Zn(j,Ie){for(var We=[],sn=j.next();!sn.done;sn=j.next())We.push(Ie?Ie(sn.value):sn.value);return We}e.arrayFrom=Zn;function Me(j){for(var Ie=[],We=1;We<arguments.length;We++)Ie[We-1]=arguments[We];for(var sn=0,Hn=Ie;sn<Hn.length;sn++){var vr=Hn[sn];if(vr!==void 0)for(var Sr in vr)Tn(vr,Sr)&&(j[Sr]=vr[Sr])}return j}e.assign=Me;function Mn(j,Ie,We){if(We===void 0&&(We=za),j===Ie)return!0;if(!j||!Ie)return!1;for(var sn in j)if(ze.call(j,sn)&&(!ze.call(Ie,sn)||!We(j[sn],Ie[sn])))return!1;for(var sn in Ie)if(ze.call(Ie,sn)&&!ze.call(j,sn))return!1;return!0}e.equalOwnProperties=Mn;function ar(j,Ie,We){We===void 0&&(We=dt);for(var sn=new e.Map,Hn=0,vr=j;Hn<vr.length;Hn++){var Sr=vr[Hn],ot=Ie(Sr);ot!==void 0&&sn.set(ot,We(Sr))}return sn}e.arrayToMap=ar;function Xn(j,Ie,We){We===void 0&&(We=dt);for(var sn=[],Hn=0,vr=j;Hn<vr.length;Hn++){var Sr=vr[Hn];sn[Ie(Sr)]=We(Sr)}return sn}e.arrayToNumericMap=Xn;function yr(j,Ie,We){We===void 0&&(We=dt);for(var sn=Gn(),Hn=0,vr=j;Hn<vr.length;Hn++){var Sr=vr[Hn];sn.add(Ie(Sr),We(Sr))}return sn}e.arrayToMultiMap=yr;function cr(j,Ie,We){return We===void 0&&(We=dt),Zn(yr(j,Ie).values(),We)}e.group=cr;function Fe(j){var Ie={};for(var We in j)ze.call(j,We)&&(Ie[We]=j[We]);return Ie}e.clone=Fe;function Bn(j,Ie){var We={};for(var sn in Ie)ze.call(Ie,sn)&&(We[sn]=Ie[sn]);for(var sn in j)ze.call(j,sn)&&(We[sn]=j[sn]);return We}e.extend=Bn;function J(j,Ie){for(var We in Ie)ze.call(Ie,We)&&(j[We]=Ie[We])}e.copyProperties=J;function Cn(j,Ie){return Ie?Ie.bind(j):void 0}e.maybeBind=Cn;function Gn(){var j=new e.Map;return j.add=cn,j.remove=Rn,j}e.createMultiMap=Gn;function cn(j,Ie){var We=this.get(j);return We?We.push(Ie):this.set(j,We=[Ie]),We}function Rn(j,Ie){var We=this.get(j);We&&(Qi(We,Ie),We.length||this.delete(j))}function Ye(){return Gn()}e.createUnderscoreEscapedMultiMap=Ye;function xn(j){return Array.isArray?Array.isArray(j):j instanceof Array}e.isArray=xn;function an(j){return xn(j)?j:[j]}e.toArray=an;function zn(j){return typeof j=="string"}e.isString=zn;function ir(j){return typeof j=="number"}e.isNumber=ir;function gr(j,Ie){return j!==void 0&&Ie(j)?j:void 0}e.tryCast=gr;function Dr(j,Ie){return j!==void 0&&Ie(j)?j:e.Debug.fail("Invalid cast. The supplied value "+j+" did not pass the test '"+e.Debug.getFunctionName(Ie)+"'.")}e.cast=Dr;function qr(j){}e.noop=qr;function ft(){return!1}e.returnFalse=ft;function xt(){return!0}e.returnTrue=xt;function Kr(){}e.returnUndefined=Kr;function dt(j){return j}e.identity=dt;function Ur(j){return j.toLowerCase()}e.toLowerCase=Ur;var qt=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function Cr(j){return qt.test(j)?j.replace(qt,Ur):j}e.toFileNameLowerCase=Cr;function Jt(){throw new Error("Not implemented")}e.notImplemented=Jt;function Ot(j){var Ie;return function(){return j&&(Ie=j(),j=void 0),Ie}}e.memoize=Ot;function ri(j){var Ie=new e.Map;return function(We){var sn=typeof We+":"+We,Hn=Ie.get(sn);return Hn===void 0&&!Ie.has(sn)&&(Hn=j(We),Ie.set(sn,Hn)),Hn}}e.memoizeOne=ri;function Ya(j,Ie,We,sn,Hn){if(Hn){for(var vr=[],Sr=0;Sr<arguments.length;Sr++)vr[Sr]=arguments[Sr];return function(ot){return Wn(vr,function(Et,ra){return ra(Et)},ot)}}else return sn?function(ot){return sn(We(Ie(j(ot))))}:We?function(ot){return We(Ie(j(ot)))}:Ie?function(ot){return Ie(j(ot))}:j?function(ot){return j(ot)}:function(ot){return ot}}e.compose=Ya;var eo;(function(j){j[j.None=0]="None",j[j.Normal=1]="Normal",j[j.Aggressive=2]="Aggressive",j[j.VeryAggressive=3]="VeryAggressive"})(eo=e.AssertionLevel||(e.AssertionLevel={}));function za(j,Ie){return j===Ie}e.equateValues=za;function ua(j,Ie){return j===Ie||j!==void 0&&Ie!==void 0&&j.toUpperCase()===Ie.toUpperCase()}e.equateStringsCaseInsensitive=ua;function Ar(j,Ie){return za(j,Ie)}e.equateStringsCaseSensitive=Ar;function at(j,Ie){return j===Ie?0:j===void 0?-1:Ie===void 0?1:j<Ie?-1:1}function Hr(j,Ie){return at(j,Ie)}e.compareValues=Hr;function Wt(j,Ie){return Hr(j==null?void 0:j.start,Ie==null?void 0:Ie.start)||Hr(j==null?void 0:j.length,Ie==null?void 0:Ie.length)}e.compareTextSpans=Wt;function Zt(j,Ie,We){return We(j,Ie)===-1?j:Ie}e.min=Zt;function Rr(j,Ie){return j===Ie?0:j===void 0?-1:Ie===void 0?1:(j=j.toUpperCase(),Ie=Ie.toUpperCase(),j<Ie?-1:j>Ie?1:0)}e.compareStringsCaseInsensitive=Rr;function Lr(j,Ie){return at(j,Ie)}e.compareStringsCaseSensitive=Lr;function Xr(j){return j?Rr:Lr}e.getStringComparer=Xr;var nt=function(){var j,Ie,We=ot();return Et;function sn(ra,Na,ei){if(ra===Na)return 0;if(ra===void 0)return-1;if(Na===void 0)return 1;var Li=ei(ra,Na);return Li<0?-1:Li>0?1:0}function Hn(ra){var Na=new Intl.Collator(ra,{usage:"sort",sensitivity:"variant"}).compare;return function(ei,Li){return sn(ei,Li,Na)}}function vr(ra){if(ra!==void 0)return Sr();return function(ei,Li){return sn(ei,Li,Na)};function Na(ei,Li){return ei.localeCompare(Li)}}function Sr(){return function(ei,Li){return sn(ei,Li,ra)};function ra(ei,Li){return Na(ei.toUpperCase(),Li.toUpperCase())||Na(ei,Li)}function Na(ei,Li){return ei<Li?-1:ei>Li?1:0}}function ot(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?Hn:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?vr:Sr}function Et(ra){return ra===void 0?j||(j=We(ra)):ra==="en-US"?Ie||(Ie=We(ra)):We(ra)}}(),vt,or;function $t(){return or}e.getUILocale=$t;function Va(j){or!==j&&(or=j,vt=void 0)}e.setUILocale=Va;function li(j,Ie){var We=vt||(vt=nt(or));return We(j,Ie)}e.compareStringsCaseSensitiveUI=li;function zi(j,Ie,We,sn){return j===Ie?0:j===void 0?-1:Ie===void 0?1:sn(j[We],Ie[We])}e.compareProperties=zi;function Ma(j,Ie){return Hr(j?1:0,Ie?1:0)}e.compareBooleans=Ma;function di(j,Ie,We){for(var sn=Math.min(2,Math.floor(j.length*.34)),Hn=Math.floor(j.length*.4)+1,vr,Sr=0,ot=Ie;Sr<ot.length;Sr++){var Et=ot[Sr],ra=We(Et);if(ra!==void 0&&Math.abs(ra.length-j.length)<=sn){if(ra===j||ra.length<3&&ra.toLowerCase()!==j.toLowerCase())continue;var Na=Yi(j,ra,Hn-.1);if(Na===void 0)continue;e.Debug.assert(Na<Hn),Hn=Na,vr=Et}}return vr}e.getSpellingSuggestion=di;function Yi(j,Ie,We){for(var sn=new Array(Ie.length+1),Hn=new Array(Ie.length+1),vr=We+.01,Sr=0;Sr<=Ie.length;Sr++)sn[Sr]=Sr;for(var Sr=1;Sr<=j.length;Sr++){var ot=j.charCodeAt(Sr-1),Et=Math.ceil(Sr>We?Sr-We:1),ra=Math.floor(Ie.length>We+Sr?We+Sr:Ie.length);Hn[0]=Sr;for(var Na=Sr,ei=1;ei<Et;ei++)Hn[ei]=vr;for(var ei=Et;ei<=ra;ei++){var Li=j[Sr-1].toLowerCase()===Ie[ei-1].toLowerCase()?sn[ei-1]+.1:sn[ei-1]+2,Zi=ot===Ie.charCodeAt(ei-1)?sn[ei-1]:Math.min(sn[ei]+1,Hn[ei-1]+1,Li);Hn[ei]=Zi,Na=Math.min(Na,Zi)}for(var ei=ra+1;ei<=Ie.length;ei++)Hn[ei]=vr;if(Na>We)return;var ho=sn;sn=Hn,Hn=ho}var vs=sn[Ie.length];return vs>We?void 0:vs}function uo(j,Ie){var We=j.length-Ie.length;return We>=0&&j.indexOf(Ie,We)===We}e.endsWith=uo;function bi(j,Ie){return uo(j,Ie)?j.slice(0,j.length-Ie.length):j}e.removeSuffix=bi;function Mi(j,Ie){return uo(j,Ie)?j.slice(0,j.length-Ie.length):void 0}e.tryRemoveSuffix=Mi;function Go(j,Ie){return j.indexOf(Ie)!==-1}e.stringContains=Go;function io(j){for(var Ie=j.length,We=Ie-1;We>0;We--){var sn=j.charCodeAt(We);if(sn>=48&&sn<=57)do--We,sn=j.charCodeAt(We);while(We>0&&sn>=48&&sn<=57);else if(We>4&&(sn===110||sn===78)){if(--We,sn=j.charCodeAt(We),sn!==105&&sn!==73||(--We,sn=j.charCodeAt(We),sn!==109&&sn!==77))break;--We,sn=j.charCodeAt(We)}else break;if(sn!==45&&sn!==46)break;Ie=We}return Ie===j.length?j:j.slice(0,Ie)}e.removeMinAndVersionNumbers=io;function wi(j,Ie){for(var We=0;We<j.length;We++)if(j[We]===Ie)return Ho(j,We),!0;return!1}e.orderedRemoveItem=wi;function Ho(j,Ie){for(var We=Ie;We<j.length-1;We++)j[We]=j[We+1];j.pop()}e.orderedRemoveItemAt=Ho;function qi(j,Ie){j[Ie]=j[j.length-1],j.pop()}e.unorderedRemoveItemAt=qi;function Qi(j,Ie){return as(j,function(We){return We===Ie})}e.unorderedRemoveItem=Qi;function as(j,Ie){for(var We=0;We<j.length;We++)if(Ie(j[We]))return qi(j,We),!0;return!1}function gs(j){return j?dt:Cr}e.createGetCanonicalFileName=gs;function Da(j){var Ie=j.prefix,We=j.suffix;return Ie+"*"+We}e.patternText=Da;function $a(j,Ie){return e.Debug.assert(Uo(j,Ie)),Ie.substring(j.prefix.length,Ie.length-j.suffix.length)}e.matchedText=$a;function Ni(j,Ie,We){for(var sn,Hn=-1,vr=0,Sr=j;vr<Sr.length;vr++){var ot=Sr[vr],Et=Ie(ot);Uo(Et,We)&&Et.prefix.length>Hn&&(Hn=Et.prefix.length,sn=ot)}return sn}e.findBestPatternMatch=Ni;function vo(j,Ie){return j.lastIndexOf(Ie,0)===0}e.startsWith=vo;function Io(j,Ie){return vo(j,Ie)?j.substr(Ie.length):j}e.removePrefix=Io;function Bo(j,Ie,We){return We===void 0&&(We=dt),vo(We(j),We(Ie))?j.substring(Ie.length):void 0}e.tryRemovePrefix=Bo;function Uo(j,Ie){var We=j.prefix,sn=j.suffix;return Ie.length>=We.length+sn.length&&vo(Ie,We)&&uo(Ie,sn)}function cs(j,Ie){return function(We){return j(We)&&Ie(We)}}e.and=cs;function us(){for(var j=[],Ie=0;Ie<arguments.length;Ie++)j[Ie]=arguments[Ie];return function(){for(var We=[],sn=0;sn<arguments.length;sn++)We[sn]=arguments[sn];for(var Hn=0,vr=j;Hn<vr.length;Hn++){var Sr=vr[Hn];if(Sr.apply(void 0,We))return!0}return!1}}e.or=us;function Jo(j){return function(){for(var Ie=[],We=0;We<arguments.length;We++)Ie[We]=arguments[We];return!j.apply(void 0,Ie)}}e.not=Jo;function is(j){}e.assertType=is;function mn(j){return j===void 0?void 0:[j]}e.singleElementArray=mn;function _r(j,Ie,We,sn,Hn,vr){vr=vr||qr;for(var Sr=0,ot=0,Et=j.length,ra=Ie.length,Na=!1;Sr<Et&&ot<ra;){var ei=j[Sr],Li=Ie[ot],Zi=We(ei,Li);Zi===-1?(sn(ei),Sr++,Na=!0):Zi===1?(Hn(Li),ot++,Na=!0):(vr(Li,ei),Sr++,ot++)}for(;Sr<Et;)sn(j[Sr++]),Na=!0;for(;ot<ra;)Hn(Ie[ot++]),Na=!0;return Na}e.enumerateInsertsAndDeletes=_r;function $r(j,Ie){for(var We=Array(j),sn=0;sn<j;sn++)We[sn]=Ie(sn);return We}e.fill=$r;function ia(j){var Ie=[];return ti(j,Ie,void 0,0),Ie}e.cartesianProduct=ia;function ti(j,Ie,We,sn){for(var Hn=0,vr=j[sn];Hn<vr.length;Hn++){var Sr=vr[Hn],ot=void 0;We?(ot=We.slice(),ot.push(Sr)):ot=[Sr],sn===j.length-1?Ie.push(ot):ti(j,Ie,ot,sn+1)}}function va(j,Ie,We){return We===void 0&&(We=" "),Ie<=j.length?j:We.repeat(Ie-j.length)+j}e.padLeft=va;function Ve(j,Ie,We){return We===void 0&&(We=" "),Ie<=j.length?j:j+We.repeat(Ie-j.length)}e.padRight=Ve;function ce(j,Ie){for(var We=j.length,sn=0;sn<We&&Ie(j[sn]);)sn++;return j.slice(0,sn)}e.takeWhile=ce,e.trimString=String.prototype.trim?function(j){return j.trim()}:function(j){return e.trimStringEnd(e.trimStringStart(j))},e.trimStringEnd=String.prototype.trimEnd?function(j){return j.trimEnd()}:dn,e.trimStringStart=String.prototype.trimStart?function(j){return j.trimStart()}:function(j){return j.replace(/^\s+/g,"")};function dn(j){for(var Ie=j.length-1;Ie>=0&&e.isWhiteSpaceLike(j.charCodeAt(Ie));)Ie--;return j.slice(0,Ie+1)}})(vn||(vn={}));var vn;(function(e){var o;(function($){$[$.Off=0]="Off",$[$.Error=1]="Error",$[$.Warning=2]="Warning",$[$.Info=3]="Info",$[$.Verbose=4]="Verbose"})(o=e.LogLevel||(e.LogLevel={}));var ue;(function($){var Y,W=0;$.currentLogLevel=o.Warning,$.isDebugging=!1;function re(){return Y!=null?Y:Y=new e.Version(e.version)}$.getTypeScriptVersion=re;function ye(fn){return $.currentLogLevel<=fn}$.shouldLog=ye;function O(fn,En){$.loggingHost&&ye(fn)&&$.loggingHost.log(fn,En)}function A(fn){O(o.Info,fn)}$.log=A,function(fn){function En(rn){O(o.Error,rn)}fn.error=En;function i(rn){O(o.Warning,rn)}fn.warn=i;function In(rn){O(o.Info,rn)}fn.log=In;function X(rn){O(o.Verbose,rn)}fn.trace=X}(A=$.log||($.log={}));var D={};function de(){return W}$.getAssertionLevel=de;function _e(fn){var En=W;if(W=fn,fn>En)for(var i=0,In=e.getOwnKeys(D);i<In.length;i++){var X=In[i],rn=D[X];rn!==void 0&&$[X]!==rn.assertion&&fn>=rn.level&&($[X]=rn,D[X]=void 0)}}$.setAssertionLevel=_e;function y(fn){return W>=fn}$.shouldAssert=y;function V(fn,En){return y(fn)?!0:(D[En]={level:fn,assertion:$[En]},$[En]=e.noop,!1)}function Z(fn,En){var i=new Error(fn?"Debug Failure. "+fn:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(i,En||Z),i}$.fail=Z;function E(fn,En,i){return Z((En||"Unexpected node.")+`\r
Node `+N(fn.kind)+" was unexpected.",i||E)}$.failBadSyntaxKind=E;function H(fn,En,i,In){fn||(En=En?"False expression: "+En:"False expression.",i&&(En+=`\r
Verbose Debug Information: `+(typeof i=="string"?i:i())),Z(En,In||H))}$.assert=H;function L(fn,En,i,In,X){if(fn!==En){var rn=i?In?i+" "+In:i:"";Z("Expected "+fn+" === "+En+". "+rn,X||L)}}$.assertEqual=L;function ee(fn,En,i,In){fn>=En&&Z("Expected "+fn+" < "+En+". "+(i||""),In||ee)}$.assertLessThan=ee;function k(fn,En,i){fn>En&&Z("Expected "+fn+" <= "+En,i||k)}$.assertLessThanOrEqual=k;function b(fn,En,i){fn<En&&Z("Expected "+fn+" >= "+En,i||b)}$.assertGreaterThanOrEqual=b;function ie(fn,En,i){fn==null&&Z(En,i||ie)}$.assertIsDefined=ie;function q(fn,En,i){return ie(fn,En,i||q),fn}$.checkDefined=q,$.assertDefined=q;function oe(fn,En,i){for(var In=0,X=fn;In<X.length;In++){var rn=X[In];ie(rn,En,i||oe)}}$.assertEachIsDefined=oe;function se(fn,En,i){return oe(fn,En,i||se),fn}$.checkEachDefined=se,$.assertEachDefined=se;function w(fn,En,i){En===void 0&&(En="Illegal value:");var In=typeof fn=="object"&&e.hasProperty(fn,"kind")&&e.hasProperty(fn,"pos")&&N?"SyntaxKind: "+N(fn.kind):JSON.stringify(fn);return Z(En+" "+In,i||w)}$.assertNever=w;function R(fn,En,i,In){V(1,"assertEachNode")&&H(En===void 0||e.every(fn,En),i||"Unexpected node.",function(){return"Node array did not pass test '"+p(En)+"'."},In||R)}$.assertEachNode=R;function ne(fn,En,i,In){V(1,"assertNode")&&H(fn!==void 0&&(En===void 0||En(fn)),i||"Unexpected node.",function(){return"Node "+N(fn==null?void 0:fn.kind)+" did not pass test '"+p(En)+"'."},In||ne)}$.assertNode=ne;function U(fn,En,i,In){V(1,"assertNotNode")&&H(fn===void 0||En===void 0||!En(fn),i||"Unexpected node.",function(){return"Node "+N(fn.kind)+" should not have passed test '"+p(En)+"'."},In||U)}$.assertNotNode=U;function C(fn,En,i,In){V(1,"assertOptionalNode")&&H(En===void 0||fn===void 0||En(fn),i||"Unexpected node.",function(){return"Node "+N(fn==null?void 0:fn.kind)+" did not pass test '"+p(En)+"'."},In||C)}$.assertOptionalNode=C;function d(fn,En,i,In){V(1,"assertOptionalToken")&&H(En===void 0||fn===void 0||fn.kind===En,i||"Unexpected node.",function(){return"Node "+N(fn==null?void 0:fn.kind)+" was not a '"+N(En)+"' token."},In||d)}$.assertOptionalToken=d;function G(fn,En,i){V(1,"assertMissingNode")&&H(fn===void 0,En||"Unexpected node.",function(){return"Node "+N(fn.kind)+" was unexpected'."},i||G)}$.assertMissingNode=G;function g(fn){}$.type=g;function p(fn){if(typeof fn!="function")return"";if(fn.hasOwnProperty("name"))return fn.name;var En=Function.prototype.toString.call(fn),i=/^function\s+([\w\$]+)\s*\(/.exec(En);return i?i[1]:""}$.getFunctionName=p;function f(fn){return"{ name: "+e.unescapeLeadingUnderscores(fn.escapedName)+"; flags: "+z(fn.flags)+"; declarations: "+e.map(fn.declarations,function(En){return N(En.kind)})+" }"}$.formatSymbol=f;function T(fn,En,i){fn===void 0&&(fn=0);var In=m(En);if(fn===0)return In.length>0&&In[0][0]===0?In[0][1]:"0";if(i){for(var X="",rn=fn,$n=0,Vn=In;$n<Vn.length;$n++){var le=Vn[$n],Pe=le[0],xe=le[1];if(Pe>fn)break;Pe!==0&&Pe&fn&&(X=""+X+(X?"|":"")+xe,rn&=~Pe)}if(rn===0)return X}else for(var Ze=0,hn=In;Ze<hn.length;Ze++){var Le=hn[Ze],Pe=Le[0],xe=Le[1];if(Pe===fn)return xe}return fn.toString()}$.formatEnum=T;function m(fn){var En=[];for(var i in fn){var In=fn[i];typeof In=="number"&&En.push([In,i])}return e.stableSort(En,function(X,rn){return e.compareValues(X[0],rn[0])})}function N(fn){return T(fn,e.SyntaxKind,!1)}$.formatSyntaxKind=N;function P(fn){return T(fn,e.NodeFlags,!0)}$.formatNodeFlags=P;function x(fn){return T(fn,e.ModifierFlags,!0)}$.formatModifierFlags=x;function M(fn){return T(fn,e.TransformFlags,!0)}$.formatTransformFlags=M;function me(fn){return T(fn,e.EmitFlags,!0)}$.formatEmitFlags=me;function z(fn){return T(fn,e.SymbolFlags,!0)}$.formatSymbolFlags=z;function K(fn){return T(fn,e.TypeFlags,!0)}$.formatTypeFlags=K;function I(fn){return T(fn,e.SignatureFlags,!0)}$.formatSignatureFlags=I;function Ae(fn){return T(fn,e.ObjectFlags,!0)}$.formatObjectFlags=Ae;function Oe(fn){return T(fn,e.FlowFlags,!0)}$.formatFlowFlags=Oe;var te=!1,Se;function be(){if(we(),!Se)throw new Error("Debugging helpers could not be loaded.");return Se}function Ce(fn){return console.log(Be(fn))}$.printControlFlowGraph=Ce;function Be(fn){return be().formatControlFlowGraph(fn)}$.formatControlFlowGraph=Be;var De;function en(fn){"__debugFlowFlags"in fn||Object.defineProperties(fn,{__tsDebuggerDisplay:{value:function(){var En=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",i=this.flags&-2048;return""+En+(i?" ("+Oe(i)+")":"")}},__debugFlowFlags:{get:function(){return T(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return Be(this)}}})}function fe(fn){te&&(typeof Object.setPrototypeOf=="function"?(De||(De=Object.create(Object.prototype),en(De)),Object.setPrototypeOf(fn,De)):en(fn))}$.attachFlowNodeDebugInfo=fe;var Ne;function qe(fn){"__tsDebuggerDisplay"in fn||Object.defineProperties(fn,{__tsDebuggerDisplay:{value:function(En){return En=String(En).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray "+En}}})}function pe(fn){te&&(typeof Object.setPrototypeOf=="function"?(Ne||(Ne=Object.create(Array.prototype),qe(Ne)),Object.setPrototypeOf(fn,Ne)):qe(fn))}$.attachNodeArrayDebugInfo=pe;function we(){if(te)return;var fn,En;function i(){return fn===void 0&&typeof WeakMap=="function"&&(fn=new WeakMap),fn}function In(){return En===void 0&&typeof WeakMap=="function"&&(En=new WeakMap),En}Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var xe=this.flags&33554432?"TransientSymbol":"Symbol",Ze=this.flags&-33554433;return xe+" '"+e.symbolName(this)+"'"+(Ze?" ("+z(Ze)+")":"")}},__debugFlags:{get:function(){return z(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var xe=this.flags&98304?"NullableType":this.flags&384?"LiteralType "+JSON.stringify(this.value):this.flags&2048?"LiteralType "+(this.value.negative?"-":"")+this.value.base10Value+"n":this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?"IntrinsicType "+this.intrinsicName:this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Ze=this.flags&524288?this.objectFlags&-1344:0;return""+xe+(this.symbol?" '"+e.symbolName(this.symbol)+"'":"")+(Ze?" ("+Ae(Ze)+")":"")}},__debugFlags:{get:function(){return K(this.flags)}},__debugObjectFlags:{get:function(){return this.flags&524288?Ae(this.objectFlags):""}},__debugTypeToString:{value:function(){var xe=i(),Ze=xe==null?void 0:xe.get(this);return Ze===void 0&&(Ze=this.checker.typeToString(this),xe==null||xe.set(this,Ze)),Ze}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return I(this.flags)}},__debugSignatureToString:{value:function(){var xe;return(xe=this.checker)===null||xe===void 0?void 0:xe.signatureToString(this)}}});for(var X=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()],rn=0,$n=X;rn<$n.length;rn++){var Vn=$n[rn];Vn.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(Vn.prototype,{__tsDebuggerDisplay:{value:function(){var xe=e.isGeneratedIdentifier(this)?"GeneratedIdentifier":e.isIdentifier(this)?"Identifier '"+e.idText(this)+"'":e.isPrivateIdentifier(this)?"PrivateIdentifier '"+e.idText(this)+"'":e.isStringLiteral(this)?"StringLiteral "+JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"..."):e.isNumericLiteral(this)?"NumericLiteral "+this.text:e.isBigIntLiteral(this)?"BigIntLiteral "+this.text+"n":e.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":e.isParameter(this)?"ParameterDeclaration":e.isConstructorDeclaration(this)?"ConstructorDeclaration":e.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":e.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":e.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":e.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":e.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":e.isTypePredicateNode(this)?"TypePredicateNode":e.isTypeReferenceNode(this)?"TypeReferenceNode":e.isFunctionTypeNode(this)?"FunctionTypeNode":e.isConstructorTypeNode(this)?"ConstructorTypeNode":e.isTypeQueryNode(this)?"TypeQueryNode":e.isTypeLiteralNode(this)?"TypeLiteralNode":e.isArrayTypeNode(this)?"ArrayTypeNode":e.isTupleTypeNode(this)?"TupleTypeNode":e.isOptionalTypeNode(this)?"OptionalTypeNode":e.isRestTypeNode(this)?"RestTypeNode":e.isUnionTypeNode(this)?"UnionTypeNode":e.isIntersectionTypeNode(this)?"IntersectionTypeNode":e.isConditionalTypeNode(this)?"ConditionalTypeNode":e.isInferTypeNode(this)?"InferTypeNode":e.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":e.isThisTypeNode(this)?"ThisTypeNode":e.isTypeOperatorNode(this)?"TypeOperatorNode":e.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":e.isMappedTypeNode(this)?"MappedTypeNode":e.isLiteralTypeNode(this)?"LiteralTypeNode":e.isNamedTupleMember(this)?"NamedTupleMember":e.isImportTypeNode(this)?"ImportTypeNode":N(this.kind);return""+xe+(this.flags?" ("+P(this.flags)+")":"")}},__debugKind:{get:function(){return N(this.kind)}},__debugNodeFlags:{get:function(){return P(this.flags)}},__debugModifierFlags:{get:function(){return x(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return M(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return me(e.getEmitFlags(this))}},__debugGetText:{value:function(xe){if(e.nodeIsSynthesized(this))return"";var Ze=In(),hn=Ze==null?void 0:Ze.get(this);if(hn===void 0){var Le=e.getParseTreeNode(this),$e=Le&&e.getSourceFileOfNode(Le);hn=$e?e.getSourceTextOfNodeFromSourceFile($e,Le,xe):"",Ze==null||Ze.set(this,hn)}return hn}}})}try{if(e.sys&&e.sys.require){var le=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),Pe=void 0;Pe.error||(Pe.module.init(e),Se=Pe.module)}}catch(xe){}te=!0}$.enableDebugInfo=we;function pn(fn,En,i,In,X){var rn=En?"DeprecationError: ":"DeprecationWarning: ";return rn+="'"+fn+"' ",rn+=In?"has been deprecated since v"+In:"is deprecated",rn+=En?" and can no longer be used.":i?" and will no longer be usable after v"+i+".":".",rn+=X?" "+e.formatStringFromArgs(X,[fn],0):"",rn}function Qe(fn,En,i,In){var X=pn(fn,!0,En,i,In);return function(){throw new TypeError(X)}}function Re(fn,En,i,In){var X=!1;return function(){X||(A.warn(pn(fn,!1,En,i,In)),X=!0)}}function He(fn,En){var i,In;En===void 0&&(En={});var X=typeof En.typeScriptVersion=="string"?new e.Version(En.typeScriptVersion):(i=En.typeScriptVersion)!==null&&i!==void 0?i:re(),rn=typeof En.errorAfter=="string"?new e.Version(En.errorAfter):En.errorAfter,$n=typeof En.warnAfter=="string"?new e.Version(En.warnAfter):En.warnAfter,Vn=typeof En.since=="string"?new e.Version(En.since):(In=En.since)!==null&&In!==void 0?In:$n,le=En.error||rn&&X.compareTo(rn)<=0,Pe=!$n||X.compareTo($n)>=0;return le?Qe(fn,rn,Vn,En.message):Pe?Re(fn,rn,Vn,En.message):e.noop}function Ln(fn,En){return function(){return fn(),En.apply(this,arguments)}}function Un(fn,En){var i=He(p(fn),En);return Ln(i,fn)}$.deprecate=Un})(ue=e.Debug||(e.Debug={}))})(vn||(vn={}));var vn;(function(e){var o=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,ue=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,$=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Y=/^(0|[1-9]\d*)$/,W=function(){function w(R,ne,U,C,d){if(ne===void 0&&(ne=0),U===void 0&&(U=0),C===void 0&&(C=""),d===void 0&&(d=""),typeof R=="string"){var G=e.Debug.checkDefined(re(R),"Invalid version");R=G.major,ne=G.minor,U=G.patch,C=G.prerelease,d=G.build}e.Debug.assert(R>=0,"Invalid argument: major"),e.Debug.assert(ne>=0,"Invalid argument: minor"),e.Debug.assert(U>=0,"Invalid argument: patch"),e.Debug.assert(!C||ue.test(C),"Invalid argument: prerelease"),e.Debug.assert(!d||$.test(d),"Invalid argument: build"),this.major=R,this.minor=ne,this.patch=U,this.prerelease=C?C.split("."):e.emptyArray,this.build=d?d.split("."):e.emptyArray}return w.tryParse=function(R){var ne=re(R);if(ne){var U=ne.major,C=ne.minor,d=ne.patch,G=ne.prerelease,g=ne.build;return new w(U,C,d,G,g)}},w.prototype.compareTo=function(R){return this===R?0:R===void 0?1:e.compareValues(this.major,R.major)||e.compareValues(this.minor,R.minor)||e.compareValues(this.patch,R.patch)||ye(this.prerelease,R.prerelease)},w.prototype.increment=function(R){switch(R){case"major":return new w(this.major+1,0,0);case"minor":return new w(this.major,this.minor+1,0);case"patch":return new w(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(R)}},w.prototype.toString=function(){var R=this.major+"."+this.minor+"."+this.patch;return e.some(this.prerelease)&&(R+="-"+this.prerelease.join(".")),e.some(this.build)&&(R+="+"+this.build.join(".")),R},w.zero=new w(0,0,0),w}();e.Version=W;function re(w){var R=o.exec(w);if(R){var ne=R[1],U=R[2],C=U===void 0?"0":U,d=R[3],G=d===void 0?"0":d,g=R[4],p=g===void 0?"":g,f=R[5],T=f===void 0?"":f;if(!(p&&!ue.test(p))&&!(T&&!$.test(T)))return{major:parseInt(ne,10),minor:parseInt(C,10),patch:parseInt(G,10),prerelease:p,build:T}}}function ye(w,R){if(w===R)return 0;if(w.length===0)return R.length===0?0:1;if(R.length===0)return-1;for(var ne=Math.min(w.length,R.length),U=0;U<ne;U++){var C=w[U],d=R[U];if(C!==d){var G=Y.test(C),g=Y.test(d);if(G||g){if(G!==g)return G?-1:1;var p=e.compareValues(+C,+d);if(p)return p}else{var p=e.compareStringsCaseSensitive(C,d);if(p)return p}}}return e.compareValues(w.length,R.length)}var O=function(){function w(R){this._alternatives=R?e.Debug.checkDefined(V(R),"Invalid range spec."):e.emptyArray}return w.tryParse=function(R){var ne=V(R);if(ne){var U=new w("");return U._alternatives=ne,U}},w.prototype.test=function(R){return typeof R=="string"&&(R=new W(R)),k(R,this._alternatives)},w.prototype.toString=function(){return q(this._alternatives)},w}();e.VersionRange=O;var A=/\|\|/g,D=/\s+/g,de=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,_e=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,y=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function V(w){for(var R=[],ne=0,U=e.trimString(w).split(A);ne<U.length;ne++){var C=U[ne];if(C){var d=[];C=e.trimString(C);var G=_e.exec(C);if(G){if(!E(G[1],G[2],d))return}else for(var g=0,p=C.split(D);g<p.length;g++){var f=p[g],T=y.exec(e.trimString(f));if(!T||!H(T[1],T[2],d))return}R.push(d)}}return R}function Z(w){var R=de.exec(w);if(R){var ne=R[1],U=R[2],C=U===void 0?"*":U,d=R[3],G=d===void 0?"*":d,g=R[4],p=R[5],f=new W(L(ne)?0:parseInt(ne,10),L(ne)||L(C)?0:parseInt(C,10),L(ne)||L(C)||L(G)?0:parseInt(G,10),g,p);return{version:f,major:ne,minor:C,patch:G}}}function E(w,R,ne){var U=Z(w);if(!U)return!1;var C=Z(R);return C?(L(U.major)||ne.push(ee(">=",U.version)),L(C.major)||ne.push(L(C.minor)?ee("<",C.version.increment("major")):L(C.patch)?ee("<",C.version.increment("minor")):ee("<=",C.version)),!0):!1}function H(w,R,ne){var U=Z(R);if(!U)return!1;var C=U.version,d=U.major,G=U.minor,g=U.patch;if(L(d))(w==="<"||w===">")&&ne.push(ee("<",W.zero));else switch(w){case"~":ne.push(ee(">=",C)),ne.push(ee("<",C.increment(L(G)?"major":"minor")));break;case"^":ne.push(ee(">=",C)),ne.push(ee("<",C.increment(C.major>0||L(G)?"major":C.minor>0||L(g)?"minor":"patch")));break;case"<":case">=":ne.push(ee(w,C));break;case"<=":case">":ne.push(L(G)?ee(w==="<="?"<":">=",C.increment("major")):L(g)?ee(w==="<="?"<":">=",C.increment("minor")):ee(w,C));break;case"=":case void 0:L(G)||L(g)?(ne.push(ee(">=",C)),ne.push(ee("<",C.increment(L(G)?"major":"minor")))):ne.push(ee("=",C));break;default:return!1}return!0}function L(w){return w==="*"||w==="x"||w==="X"}function ee(w,R){return{operator:w,operand:R}}function k(w,R){if(R.length===0)return!0;for(var ne=0,U=R;ne<U.length;ne++){var C=U[ne];if(b(w,C))return!0}return!1}function b(w,R){for(var ne=0,U=R;ne<U.length;ne++){var C=U[ne];if(!ie(w,C.operator,C.operand))return!1}return!0}function ie(w,R,ne){var U=w.compareTo(ne);switch(R){case"<":return U<0;case"<=":return U<=0;case">":return U>0;case">=":return U>=0;case"=":return U===0;default:return e.Debug.assertNever(R)}}function q(w){return e.map(w,oe).join(" || ")||"*"}function oe(w){return e.map(w,se).join(" ")}function se(w){return""+w.operator+w.operand}})(vn||(vn={}));var vn;(function(e){function o(ye,O){return typeof ye=="object"&&typeof ye.timeOrigin=="number"&&typeof ye.mark=="function"&&typeof ye.measure=="function"&&typeof ye.now=="function"&&typeof O=="function"}function ue(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&o(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function $(){if(typeof Ru!="undefined"&&Ru.nextTick&&!Ru.browser)try{var ye,O={},A=O.performance,D=O.PerformanceObserver;if(o(A,D)){ye=A;var de=new e.Version(Ru.versions.node),_e=new e.VersionRange("<12.16.3 || 13 <13.13");return _e.test(de)&&(ye={get timeOrigin(){return A.timeOrigin},now:function(){return A.now()},mark:function(y){return A.mark(y)},measure:function(y,V,Z){V===void 0&&(V="nodeStart"),Z===void 0&&(Z="__performance.measure-fix__",A.mark(Z)),A.measure(y,V,Z),Z==="__performance.measure-fix__"&&A.clearMarks("__performance.measure-fix__")}}),{shouldWriteNativeEvents:!1,performance:ye,PerformanceObserver:D}}}catch(y){}}var Y=ue()||$(),W=Y==null?void 0:Y.performance;function re(){return Y}e.tryGetNativePerformanceHooks=re,e.timestamp=W?function(){return W.now()}:Date.now?Date.now:function(){return+new Date}})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $,Y;function W(k,b,ie,q){return k?re(b,ie,q):ue.nullTimer}ue.createTimerIf=W;function re(k,b,ie){var q=0;return{enter:oe,exit:se};function oe(){++q===1&&_e(b)}function se(){--q===0?(_e(ie),y(k,b,ie)):q<0&&e.Debug.fail("enter/exit count does not match.")}}ue.createTimer=re,ue.nullTimer={enter:e.noop,exit:e.noop};var ye=!1,O=e.timestamp(),A=new e.Map,D=new e.Map,de=new e.Map;function _e(k){var b;if(ye){var ie=(b=D.get(k))!==null&&b!==void 0?b:0;D.set(k,ie+1),A.set(k,e.timestamp()),Y==null||Y.mark(k)}}ue.mark=_e;function y(k,b,ie){var q,oe;if(ye){var se=(q=ie!==void 0?A.get(ie):void 0)!==null&&q!==void 0?q:e.timestamp(),w=(oe=b!==void 0?A.get(b):void 0)!==null&&oe!==void 0?oe:O,R=de.get(k)||0;de.set(k,R+(se-w)),Y==null||Y.measure(k,b,ie)}}ue.measure=y;function V(k){return D.get(k)||0}ue.getCount=V;function Z(k){return de.get(k)||0}ue.getDuration=Z;function E(k){de.forEach(function(b,ie){return k(ie,b)})}ue.forEachMeasure=E;function H(){return ye}ue.isEnabled=H;function L(k){var b;return k===void 0&&(k=e.sys),ye||(ye=!0,$||($=e.tryGetNativePerformanceHooks()),$&&(O=$.performance.timeOrigin,($.shouldWriteNativeEvents||!((b=k==null?void 0:k.cpuProfilingEnabled)===null||b===void 0)&&b.call(k)||k!=null&&k.debugMode)&&(Y=$.performance))),!0}ue.enable=L;function ee(){ye&&(A.clear(),D.clear(),de.clear(),Y=void 0,ye=!1)}ue.disable=ee})(o=e.performance||(e.performance={}))})(vn||(vn={}));var vn;(function(e){var o,ue={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},$;try{var Y=(o={NODE_ENV:"production",PUBLIC_PATH:"/react/build/"}.TS_ETW_MODULE_PATH)!==null&&o!==void 0?o:"./node_modules/@microsoft/typescript-etw";$=void 0}catch(W){$=void 0}e.perfLogger=$&&$.logEvent?$:ue})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $,Y=0,W=0,re,ye=[],O,A=[];function D(se,w,R){if(e.Debug.assert(!e.tracing,"Tracing already started"),$===void 0)try{$=void 0}catch(G){throw new Error(`tracing requires having fs
(original error: `+(G.message||G)+")")}re=se,ye.length=0,O===void 0&&(O=e.combinePaths(w,"legend.json")),$.existsSync(w)||$.mkdirSync(w,{recursive:!0});var ne=re==="build"?"."+Ru.pid+"-"+ ++Y:re==="server"?"."+Ru.pid:"",U=e.combinePaths(w,"trace"+ne+".json"),C=e.combinePaths(w,"types"+ne+".json");A.push({configFilePath:R,tracePath:U,typesPath:C}),W=$.openSync(U,"w"),e.tracing=ue;var d={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};$.writeSync(W,`[
`+[Mt({name:"process_name",args:{name:"tsc"}},d),Mt({name:"thread_name",args:{name:"Main"}},d),Mt(Mt({name:"TracingStartedInBrowser"},d),{cat:"disabled-by-default-devtools.timeline"})].map(function(G){return JSON.stringify(G)}).join(`,
`))}ue.startTracing=D;function de(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!ye.length==(re!=="server")),$.writeSync(W,`
]
`),$.closeSync(W),e.tracing=void 0,ye.length?q(ye):A[A.length-1].typesPath=void 0}ue.stopTracing=de;function _e(se){re!=="server"&&ye.push(se)}ue.recordType=_e;var y;(function(se){se.Parse="parse",se.Program="program",se.Bind="bind",se.Check="check",se.CheckTypes="checkTypes",se.Emit="emit",se.Session="session"})(y=ue.Phase||(ue.Phase={}));function V(se,w,R){b("I",se,w,R,'"s":"g"')}ue.instant=V;var Z=[];function E(se,w,R,ne){ne===void 0&&(ne=!1),ne&&b("B",se,w,R),Z.push({phase:se,name:w,args:R,time:1e3*e.timestamp(),separateBeginAndEnd:ne})}ue.push=E;function H(){e.Debug.assert(Z.length>0),k(Z.length-1,1e3*e.timestamp()),Z.length--}ue.pop=H;function L(){for(var se=1e3*e.timestamp(),w=Z.length-1;w>=0;w--)k(w,se);Z.length=0}ue.popAll=L;var ee=1e3*10;function k(se,w){var R=Z[se],ne=R.phase,U=R.name,C=R.args,d=R.time,G=R.separateBeginAndEnd;G?b("E",ne,U,C,void 0,w):ee-d%ee<=w-d&&b("X",ne,U,C,'"dur":'+(w-d),d)}function b(se,w,R,ne,U,C){C===void 0&&(C=1e3*e.timestamp()),!(re==="server"&&w==="checkTypes")&&(e.performance.mark("beginTracing"),$.writeSync(W,`,
{"pid":1,"tid":1,"ph":"`+se+'","cat":"'+w+'","ts":'+C+',"name":"'+R+'"'),U&&$.writeSync(W,","+U),ne&&$.writeSync(W,',"args":'+JSON.stringify(ne)),$.writeSync(W,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function ie(se){var w=e.getSourceFileOfNode(se);return w?{path:w.path,start:R(e.getLineAndCharacterOfPosition(w,se.pos)),end:R(e.getLineAndCharacterOfPosition(w,se.end))}:void 0;function R(ne){return{line:ne.line+1,character:ne.character+1}}}function q(se){var w,R,ne,U,C,d,G,g,p,f,T,m,N,P,x,M,me,z,K,I,Ae,Oe;e.performance.mark("beginDumpTypes");var te=A[A.length-1].typesPath,Se=$.openSync(te,"w"),be=new e.Map;$.writeSync(Se,"[");for(var Ce=se.length,Be=0;Be<Ce;Be++){var De=se[Be],en=De.objectFlags,fe=(w=De.aliasSymbol)!==null&&w!==void 0?w:De.symbol,Ne=void 0;if(en&16|De.flags&2944)try{Ne=(R=De.checker)===null||R===void 0?void 0:R.typeToString(De)}catch($n){Ne=void 0}var qe={};if(De.flags&8388608){var pe=De;qe={indexedAccessObjectType:(ne=pe.objectType)===null||ne===void 0?void 0:ne.id,indexedAccessIndexType:(U=pe.indexType)===null||U===void 0?void 0:U.id}}var we={};if(en&4){var pn=De;we={instantiatedType:(C=pn.target)===null||C===void 0?void 0:C.id,typeArguments:(d=pn.resolvedTypeArguments)===null||d===void 0?void 0:d.map(function($n){return $n.id}),referenceLocation:ie(pn.node)}}var Qe={};if(De.flags&16777216){var Re=De;Qe={conditionalCheckType:(G=Re.checkType)===null||G===void 0?void 0:G.id,conditionalExtendsType:(g=Re.extendsType)===null||g===void 0?void 0:g.id,conditionalTrueType:(f=(p=Re.resolvedTrueType)===null||p===void 0?void 0:p.id)!==null&&f!==void 0?f:-1,conditionalFalseType:(m=(T=Re.resolvedFalseType)===null||T===void 0?void 0:T.id)!==null&&m!==void 0?m:-1}}var He={};if(De.flags&33554432){var Ln=De;He={substitutionBaseType:(N=Ln.baseType)===null||N===void 0?void 0:N.id,substituteType:(P=Ln.substitute)===null||P===void 0?void 0:P.id}}var Un={};if(en&1024){var fn=De;Un={reverseMappedSourceType:(x=fn.source)===null||x===void 0?void 0:x.id,reverseMappedMappedType:(M=fn.mappedType)===null||M===void 0?void 0:M.id,reverseMappedConstraintType:(me=fn.constraintType)===null||me===void 0?void 0:me.id}}var En={};if(en&256){var i=De;En={evolvingArrayElementType:i.elementType.id,evolvingArrayFinalType:(z=i.finalArrayType)===null||z===void 0?void 0:z.id}}var In=void 0,X=De.checker.getRecursionIdentity(De);X&&(In=be.get(X),In||(In=be.size,be.set(X,In)));var rn=Mt(Mt(Mt(Mt(Mt(Mt(Mt({id:De.id,intrinsicName:De.intrinsicName,symbolName:(fe==null?void 0:fe.escapedName)&&e.unescapeLeadingUnderscores(fe.escapedName),recursionId:In,isTuple:en&8?!0:void 0,unionTypes:De.flags&1048576?(K=De.types)===null||K===void 0?void 0:K.map(function($n){return $n.id}):void 0,intersectionTypes:De.flags&2097152?De.types.map(function($n){return $n.id}):void 0,aliasTypeArguments:(I=De.aliasTypeArguments)===null||I===void 0?void 0:I.map(function($n){return $n.id}),keyofType:De.flags&4194304?(Ae=De.type)===null||Ae===void 0?void 0:Ae.id:void 0},qe),we),Qe),He),Un),En),{destructuringPattern:ie(De.pattern),firstDeclaration:ie((Oe=fe==null?void 0:fe.declarations)===null||Oe===void 0?void 0:Oe[0]),flags:e.Debug.formatTypeFlags(De.flags).split("|"),display:Ne});$.writeSync(Se,JSON.stringify(rn)),Be<Ce-1&&$.writeSync(Se,`,
`)}$.writeSync(Se,`]
`),$.closeSync(Se),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}function oe(){O&&$.writeFileSync(O,JSON.stringify(A))}ue.dumpLegend=oe})(o||(o={})),e.startTracing=o.startTracing,e.dumpTracingLegend=o.dumpLegend})(vn||(vn={}));var vn;(function(e){var o;(function(i){i[i.Unknown=0]="Unknown",i[i.EndOfFileToken=1]="EndOfFileToken",i[i.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",i[i.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",i[i.NewLineTrivia=4]="NewLineTrivia",i[i.WhitespaceTrivia=5]="WhitespaceTrivia",i[i.ShebangTrivia=6]="ShebangTrivia",i[i.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",i[i.NumericLiteral=8]="NumericLiteral",i[i.BigIntLiteral=9]="BigIntLiteral",i[i.StringLiteral=10]="StringLiteral",i[i.JsxText=11]="JsxText",i[i.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",i[i.RegularExpressionLiteral=13]="RegularExpressionLiteral",i[i.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",i[i.TemplateHead=15]="TemplateHead",i[i.TemplateMiddle=16]="TemplateMiddle",i[i.TemplateTail=17]="TemplateTail",i[i.OpenBraceToken=18]="OpenBraceToken",i[i.CloseBraceToken=19]="CloseBraceToken",i[i.OpenParenToken=20]="OpenParenToken",i[i.CloseParenToken=21]="CloseParenToken",i[i.OpenBracketToken=22]="OpenBracketToken",i[i.CloseBracketToken=23]="CloseBracketToken",i[i.DotToken=24]="DotToken",i[i.DotDotDotToken=25]="DotDotDotToken",i[i.SemicolonToken=26]="SemicolonToken",i[i.CommaToken=27]="CommaToken",i[i.QuestionDotToken=28]="QuestionDotToken",i[i.LessThanToken=29]="LessThanToken",i[i.LessThanSlashToken=30]="LessThanSlashToken",i[i.GreaterThanToken=31]="GreaterThanToken",i[i.LessThanEqualsToken=32]="LessThanEqualsToken",i[i.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",i[i.EqualsEqualsToken=34]="EqualsEqualsToken",i[i.ExclamationEqualsToken=35]="ExclamationEqualsToken",i[i.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",i[i.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",i[i.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",i[i.PlusToken=39]="PlusToken",i[i.MinusToken=40]="MinusToken",i[i.AsteriskToken=41]="AsteriskToken",i[i.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",i[i.SlashToken=43]="SlashToken",i[i.PercentToken=44]="PercentToken",i[i.PlusPlusToken=45]="PlusPlusToken",i[i.MinusMinusToken=46]="MinusMinusToken",i[i.LessThanLessThanToken=47]="LessThanLessThanToken",i[i.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",i[i.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",i[i.AmpersandToken=50]="AmpersandToken",i[i.BarToken=51]="BarToken",i[i.CaretToken=52]="CaretToken",i[i.ExclamationToken=53]="ExclamationToken",i[i.TildeToken=54]="TildeToken",i[i.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",i[i.BarBarToken=56]="BarBarToken",i[i.QuestionToken=57]="QuestionToken",i[i.ColonToken=58]="ColonToken",i[i.AtToken=59]="AtToken",i[i.QuestionQuestionToken=60]="QuestionQuestionToken",i[i.BacktickToken=61]="BacktickToken",i[i.HashToken=62]="HashToken",i[i.EqualsToken=63]="EqualsToken",i[i.PlusEqualsToken=64]="PlusEqualsToken",i[i.MinusEqualsToken=65]="MinusEqualsToken",i[i.AsteriskEqualsToken=66]="AsteriskEqualsToken",i[i.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",i[i.SlashEqualsToken=68]="SlashEqualsToken",i[i.PercentEqualsToken=69]="PercentEqualsToken",i[i.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",i[i.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",i[i.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",i[i.AmpersandEqualsToken=73]="AmpersandEqualsToken",i[i.BarEqualsToken=74]="BarEqualsToken",i[i.BarBarEqualsToken=75]="BarBarEqualsToken",i[i.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",i[i.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",i[i.CaretEqualsToken=78]="CaretEqualsToken",i[i.Identifier=79]="Identifier",i[i.PrivateIdentifier=80]="PrivateIdentifier",i[i.BreakKeyword=81]="BreakKeyword",i[i.CaseKeyword=82]="CaseKeyword",i[i.CatchKeyword=83]="CatchKeyword",i[i.ClassKeyword=84]="ClassKeyword",i[i.ConstKeyword=85]="ConstKeyword",i[i.ContinueKeyword=86]="ContinueKeyword",i[i.DebuggerKeyword=87]="DebuggerKeyword",i[i.DefaultKeyword=88]="DefaultKeyword",i[i.DeleteKeyword=89]="DeleteKeyword",i[i.DoKeyword=90]="DoKeyword",i[i.ElseKeyword=91]="ElseKeyword",i[i.EnumKeyword=92]="EnumKeyword",i[i.ExportKeyword=93]="ExportKeyword",i[i.ExtendsKeyword=94]="ExtendsKeyword",i[i.FalseKeyword=95]="FalseKeyword",i[i.FinallyKeyword=96]="FinallyKeyword",i[i.ForKeyword=97]="ForKeyword",i[i.FunctionKeyword=98]="FunctionKeyword",i[i.IfKeyword=99]="IfKeyword",i[i.ImportKeyword=100]="ImportKeyword",i[i.InKeyword=101]="InKeyword",i[i.InstanceOfKeyword=102]="InstanceOfKeyword",i[i.NewKeyword=103]="NewKeyword",i[i.NullKeyword=104]="NullKeyword",i[i.ReturnKeyword=105]="ReturnKeyword",i[i.SuperKeyword=106]="SuperKeyword",i[i.SwitchKeyword=107]="SwitchKeyword",i[i.ThisKeyword=108]="ThisKeyword",i[i.ThrowKeyword=109]="ThrowKeyword",i[i.TrueKeyword=110]="TrueKeyword",i[i.TryKeyword=111]="TryKeyword",i[i.TypeOfKeyword=112]="TypeOfKeyword",i[i.VarKeyword=113]="VarKeyword",i[i.VoidKeyword=114]="VoidKeyword",i[i.WhileKeyword=115]="WhileKeyword",i[i.WithKeyword=116]="WithKeyword",i[i.ImplementsKeyword=117]="ImplementsKeyword",i[i.InterfaceKeyword=118]="InterfaceKeyword",i[i.LetKeyword=119]="LetKeyword",i[i.PackageKeyword=120]="PackageKeyword",i[i.PrivateKeyword=121]="PrivateKeyword",i[i.ProtectedKeyword=122]="ProtectedKeyword",i[i.PublicKeyword=123]="PublicKeyword",i[i.StaticKeyword=124]="StaticKeyword",i[i.YieldKeyword=125]="YieldKeyword",i[i.AbstractKeyword=126]="AbstractKeyword",i[i.AsKeyword=127]="AsKeyword",i[i.AssertsKeyword=128]="AssertsKeyword",i[i.AnyKeyword=129]="AnyKeyword",i[i.AsyncKeyword=130]="AsyncKeyword",i[i.AwaitKeyword=131]="AwaitKeyword",i[i.BooleanKeyword=132]="BooleanKeyword",i[i.ConstructorKeyword=133]="ConstructorKeyword",i[i.DeclareKeyword=134]="DeclareKeyword",i[i.GetKeyword=135]="GetKeyword",i[i.InferKeyword=136]="InferKeyword",i[i.IntrinsicKeyword=137]="IntrinsicKeyword",i[i.IsKeyword=138]="IsKeyword",i[i.KeyOfKeyword=139]="KeyOfKeyword",i[i.ModuleKeyword=140]="ModuleKeyword",i[i.NamespaceKeyword=141]="NamespaceKeyword",i[i.NeverKeyword=142]="NeverKeyword",i[i.ReadonlyKeyword=143]="ReadonlyKeyword",i[i.RequireKeyword=144]="RequireKeyword",i[i.NumberKeyword=145]="NumberKeyword",i[i.ObjectKeyword=146]="ObjectKeyword",i[i.SetKeyword=147]="SetKeyword",i[i.StringKeyword=148]="StringKeyword",i[i.SymbolKeyword=149]="SymbolKeyword",i[i.TypeKeyword=150]="TypeKeyword",i[i.UndefinedKeyword=151]="UndefinedKeyword",i[i.UniqueKeyword=152]="UniqueKeyword",i[i.UnknownKeyword=153]="UnknownKeyword",i[i.FromKeyword=154]="FromKeyword",i[i.GlobalKeyword=155]="GlobalKeyword",i[i.BigIntKeyword=156]="BigIntKeyword",i[i.OverrideKeyword=157]="OverrideKeyword",i[i.OfKeyword=158]="OfKeyword",i[i.QualifiedName=159]="QualifiedName",i[i.ComputedPropertyName=160]="ComputedPropertyName",i[i.TypeParameter=161]="TypeParameter",i[i.Parameter=162]="Parameter",i[i.Decorator=163]="Decorator",i[i.PropertySignature=164]="PropertySignature",i[i.PropertyDeclaration=165]="PropertyDeclaration",i[i.MethodSignature=166]="MethodSignature",i[i.MethodDeclaration=167]="MethodDeclaration",i[i.ClassStaticBlockDeclaration=168]="ClassStaticBlockDeclaration",i[i.Constructor=169]="Constructor",i[i.GetAccessor=170]="GetAccessor",i[i.SetAccessor=171]="SetAccessor",i[i.CallSignature=172]="CallSignature",i[i.ConstructSignature=173]="ConstructSignature",i[i.IndexSignature=174]="IndexSignature",i[i.TypePredicate=175]="TypePredicate",i[i.TypeReference=176]="TypeReference",i[i.FunctionType=177]="FunctionType",i[i.ConstructorType=178]="ConstructorType",i[i.TypeQuery=179]="TypeQuery",i[i.TypeLiteral=180]="TypeLiteral",i[i.ArrayType=181]="ArrayType",i[i.TupleType=182]="TupleType",i[i.OptionalType=183]="OptionalType",i[i.RestType=184]="RestType",i[i.UnionType=185]="UnionType",i[i.IntersectionType=186]="IntersectionType",i[i.ConditionalType=187]="ConditionalType",i[i.InferType=188]="InferType",i[i.ParenthesizedType=189]="ParenthesizedType",i[i.ThisType=190]="ThisType",i[i.TypeOperator=191]="TypeOperator",i[i.IndexedAccessType=192]="IndexedAccessType",i[i.MappedType=193]="MappedType",i[i.LiteralType=194]="LiteralType",i[i.NamedTupleMember=195]="NamedTupleMember",i[i.TemplateLiteralType=196]="TemplateLiteralType",i[i.TemplateLiteralTypeSpan=197]="TemplateLiteralTypeSpan",i[i.ImportType=198]="ImportType",i[i.ObjectBindingPattern=199]="ObjectBindingPattern",i[i.ArrayBindingPattern=200]="ArrayBindingPattern",i[i.BindingElement=201]="BindingElement",i[i.ArrayLiteralExpression=202]="ArrayLiteralExpression",i[i.ObjectLiteralExpression=203]="ObjectLiteralExpression",i[i.PropertyAccessExpression=204]="PropertyAccessExpression",i[i.ElementAccessExpression=205]="ElementAccessExpression",i[i.CallExpression=206]="CallExpression",i[i.NewExpression=207]="NewExpression",i[i.TaggedTemplateExpression=208]="TaggedTemplateExpression",i[i.TypeAssertionExpression=209]="TypeAssertionExpression",i[i.ParenthesizedExpression=210]="ParenthesizedExpression",i[i.FunctionExpression=211]="FunctionExpression",i[i.ArrowFunction=212]="ArrowFunction",i[i.DeleteExpression=213]="DeleteExpression",i[i.TypeOfExpression=214]="TypeOfExpression",i[i.VoidExpression=215]="VoidExpression",i[i.AwaitExpression=216]="AwaitExpression",i[i.PrefixUnaryExpression=217]="PrefixUnaryExpression",i[i.PostfixUnaryExpression=218]="PostfixUnaryExpression",i[i.BinaryExpression=219]="BinaryExpression",i[i.ConditionalExpression=220]="ConditionalExpression",i[i.TemplateExpression=221]="TemplateExpression",i[i.YieldExpression=222]="YieldExpression",i[i.SpreadElement=223]="SpreadElement",i[i.ClassExpression=224]="ClassExpression",i[i.OmittedExpression=225]="OmittedExpression",i[i.ExpressionWithTypeArguments=226]="ExpressionWithTypeArguments",i[i.AsExpression=227]="AsExpression",i[i.NonNullExpression=228]="NonNullExpression",i[i.MetaProperty=229]="MetaProperty",i[i.SyntheticExpression=230]="SyntheticExpression",i[i.TemplateSpan=231]="TemplateSpan",i[i.SemicolonClassElement=232]="SemicolonClassElement",i[i.Block=233]="Block",i[i.EmptyStatement=234]="EmptyStatement",i[i.VariableStatement=235]="VariableStatement",i[i.ExpressionStatement=236]="ExpressionStatement",i[i.IfStatement=237]="IfStatement",i[i.DoStatement=238]="DoStatement",i[i.WhileStatement=239]="WhileStatement",i[i.ForStatement=240]="ForStatement",i[i.ForInStatement=241]="ForInStatement",i[i.ForOfStatement=242]="ForOfStatement",i[i.ContinueStatement=243]="ContinueStatement",i[i.BreakStatement=244]="BreakStatement",i[i.ReturnStatement=245]="ReturnStatement",i[i.WithStatement=246]="WithStatement",i[i.SwitchStatement=247]="SwitchStatement",i[i.LabeledStatement=248]="LabeledStatement",i[i.ThrowStatement=249]="ThrowStatement",i[i.TryStatement=250]="TryStatement",i[i.DebuggerStatement=251]="DebuggerStatement",i[i.VariableDeclaration=252]="VariableDeclaration",i[i.VariableDeclarationList=253]="VariableDeclarationList",i[i.FunctionDeclaration=254]="FunctionDeclaration",i[i.ClassDeclaration=255]="ClassDeclaration",i[i.InterfaceDeclaration=256]="InterfaceDeclaration",i[i.TypeAliasDeclaration=257]="TypeAliasDeclaration",i[i.EnumDeclaration=258]="EnumDeclaration",i[i.ModuleDeclaration=259]="ModuleDeclaration",i[i.ModuleBlock=260]="ModuleBlock",i[i.CaseBlock=261]="CaseBlock",i[i.NamespaceExportDeclaration=262]="NamespaceExportDeclaration",i[i.ImportEqualsDeclaration=263]="ImportEqualsDeclaration",i[i.ImportDeclaration=264]="ImportDeclaration",i[i.ImportClause=265]="ImportClause",i[i.NamespaceImport=266]="NamespaceImport",i[i.NamedImports=267]="NamedImports",i[i.ImportSpecifier=268]="ImportSpecifier",i[i.ExportAssignment=269]="ExportAssignment",i[i.ExportDeclaration=270]="ExportDeclaration",i[i.NamedExports=271]="NamedExports",i[i.NamespaceExport=272]="NamespaceExport",i[i.ExportSpecifier=273]="ExportSpecifier",i[i.MissingDeclaration=274]="MissingDeclaration",i[i.ExternalModuleReference=275]="ExternalModuleReference",i[i.JsxElement=276]="JsxElement",i[i.JsxSelfClosingElement=277]="JsxSelfClosingElement",i[i.JsxOpeningElement=278]="JsxOpeningElement",i[i.JsxClosingElement=279]="JsxClosingElement",i[i.JsxFragment=280]="JsxFragment",i[i.JsxOpeningFragment=281]="JsxOpeningFragment",i[i.JsxClosingFragment=282]="JsxClosingFragment",i[i.JsxAttribute=283]="JsxAttribute",i[i.JsxAttributes=284]="JsxAttributes",i[i.JsxSpreadAttribute=285]="JsxSpreadAttribute",i[i.JsxExpression=286]="JsxExpression",i[i.CaseClause=287]="CaseClause",i[i.DefaultClause=288]="DefaultClause",i[i.HeritageClause=289]="HeritageClause",i[i.CatchClause=290]="CatchClause",i[i.PropertyAssignment=291]="PropertyAssignment",i[i.ShorthandPropertyAssignment=292]="ShorthandPropertyAssignment",i[i.SpreadAssignment=293]="SpreadAssignment",i[i.EnumMember=294]="EnumMember",i[i.UnparsedPrologue=295]="UnparsedPrologue",i[i.UnparsedPrepend=296]="UnparsedPrepend",i[i.UnparsedText=297]="UnparsedText",i[i.UnparsedInternalText=298]="UnparsedInternalText",i[i.UnparsedSyntheticReference=299]="UnparsedSyntheticReference",i[i.SourceFile=300]="SourceFile",i[i.Bundle=301]="Bundle",i[i.UnparsedSource=302]="UnparsedSource",i[i.InputFiles=303]="InputFiles",i[i.JSDocTypeExpression=304]="JSDocTypeExpression",i[i.JSDocNameReference=305]="JSDocNameReference",i[i.JSDocMemberName=306]="JSDocMemberName",i[i.JSDocAllType=307]="JSDocAllType",i[i.JSDocUnknownType=308]="JSDocUnknownType",i[i.JSDocNullableType=309]="JSDocNullableType",i[i.JSDocNonNullableType=310]="JSDocNonNullableType",i[i.JSDocOptionalType=311]="JSDocOptionalType",i[i.JSDocFunctionType=312]="JSDocFunctionType",i[i.JSDocVariadicType=313]="JSDocVariadicType",i[i.JSDocNamepathType=314]="JSDocNamepathType",i[i.JSDocComment=315]="JSDocComment",i[i.JSDocText=316]="JSDocText",i[i.JSDocTypeLiteral=317]="JSDocTypeLiteral",i[i.JSDocSignature=318]="JSDocSignature",i[i.JSDocLink=319]="JSDocLink",i[i.JSDocLinkCode=320]="JSDocLinkCode",i[i.JSDocLinkPlain=321]="JSDocLinkPlain",i[i.JSDocTag=322]="JSDocTag",i[i.JSDocAugmentsTag=323]="JSDocAugmentsTag",i[i.JSDocImplementsTag=324]="JSDocImplementsTag",i[i.JSDocAuthorTag=325]="JSDocAuthorTag",i[i.JSDocDeprecatedTag=326]="JSDocDeprecatedTag",i[i.JSDocClassTag=327]="JSDocClassTag",i[i.JSDocPublicTag=328]="JSDocPublicTag",i[i.JSDocPrivateTag=329]="JSDocPrivateTag",i[i.JSDocProtectedTag=330]="JSDocProtectedTag",i[i.JSDocReadonlyTag=331]="JSDocReadonlyTag",i[i.JSDocOverrideTag=332]="JSDocOverrideTag",i[i.JSDocCallbackTag=333]="JSDocCallbackTag",i[i.JSDocEnumTag=334]="JSDocEnumTag",i[i.JSDocParameterTag=335]="JSDocParameterTag",i[i.JSDocReturnTag=336]="JSDocReturnTag",i[i.JSDocThisTag=337]="JSDocThisTag",i[i.JSDocTypeTag=338]="JSDocTypeTag",i[i.JSDocTemplateTag=339]="JSDocTemplateTag",i[i.JSDocTypedefTag=340]="JSDocTypedefTag",i[i.JSDocSeeTag=341]="JSDocSeeTag",i[i.JSDocPropertyTag=342]="JSDocPropertyTag",i[i.SyntaxList=343]="SyntaxList",i[i.NotEmittedStatement=344]="NotEmittedStatement",i[i.PartiallyEmittedExpression=345]="PartiallyEmittedExpression",i[i.CommaListExpression=346]="CommaListExpression",i[i.MergeDeclarationMarker=347]="MergeDeclarationMarker",i[i.EndOfDeclarationMarker=348]="EndOfDeclarationMarker",i[i.SyntheticReferenceExpression=349]="SyntheticReferenceExpression",i[i.Count=350]="Count",i[i.FirstAssignment=63]="FirstAssignment",i[i.LastAssignment=78]="LastAssignment",i[i.FirstCompoundAssignment=64]="FirstCompoundAssignment",i[i.LastCompoundAssignment=78]="LastCompoundAssignment",i[i.FirstReservedWord=81]="FirstReservedWord",i[i.LastReservedWord=116]="LastReservedWord",i[i.FirstKeyword=81]="FirstKeyword",i[i.LastKeyword=158]="LastKeyword",i[i.FirstFutureReservedWord=117]="FirstFutureReservedWord",i[i.LastFutureReservedWord=125]="LastFutureReservedWord",i[i.FirstTypeNode=175]="FirstTypeNode",i[i.LastTypeNode=198]="LastTypeNode",i[i.FirstPunctuation=18]="FirstPunctuation",i[i.LastPunctuation=78]="LastPunctuation",i[i.FirstToken=0]="FirstToken",i[i.LastToken=158]="LastToken",i[i.FirstTriviaToken=2]="FirstTriviaToken",i[i.LastTriviaToken=7]="LastTriviaToken",i[i.FirstLiteralToken=8]="FirstLiteralToken",i[i.LastLiteralToken=14]="LastLiteralToken",i[i.FirstTemplateToken=14]="FirstTemplateToken",i[i.LastTemplateToken=17]="LastTemplateToken",i[i.FirstBinaryOperator=29]="FirstBinaryOperator",i[i.LastBinaryOperator=78]="LastBinaryOperator",i[i.FirstStatement=235]="FirstStatement",i[i.LastStatement=251]="LastStatement",i[i.FirstNode=159]="FirstNode",i[i.FirstJSDocNode=304]="FirstJSDocNode",i[i.LastJSDocNode=342]="LastJSDocNode",i[i.FirstJSDocTagNode=322]="FirstJSDocTagNode",i[i.LastJSDocTagNode=342]="LastJSDocTagNode",i[i.FirstContextualKeyword=126]="FirstContextualKeyword",i[i.LastContextualKeyword=158]="LastContextualKeyword"})(o=e.SyntaxKind||(e.SyntaxKind={}));var ue;(function(i){i[i.None=0]="None",i[i.Let=1]="Let",i[i.Const=2]="Const",i[i.NestedNamespace=4]="NestedNamespace",i[i.Synthesized=8]="Synthesized",i[i.Namespace=16]="Namespace",i[i.OptionalChain=32]="OptionalChain",i[i.ExportContext=64]="ExportContext",i[i.ContainsThis=128]="ContainsThis",i[i.HasImplicitReturn=256]="HasImplicitReturn",i[i.HasExplicitReturn=512]="HasExplicitReturn",i[i.GlobalAugmentation=1024]="GlobalAugmentation",i[i.HasAsyncFunctions=2048]="HasAsyncFunctions",i[i.DisallowInContext=4096]="DisallowInContext",i[i.YieldContext=8192]="YieldContext",i[i.DecoratorContext=16384]="DecoratorContext",i[i.AwaitContext=32768]="AwaitContext",i[i.ThisNodeHasError=65536]="ThisNodeHasError",i[i.JavaScriptFile=131072]="JavaScriptFile",i[i.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",i[i.HasAggregatedChildData=524288]="HasAggregatedChildData",i[i.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",i[i.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",i[i.JSDoc=4194304]="JSDoc",i[i.Ambient=8388608]="Ambient",i[i.InWithStatement=16777216]="InWithStatement",i[i.JsonFile=33554432]="JsonFile",i[i.TypeCached=67108864]="TypeCached",i[i.Deprecated=134217728]="Deprecated",i[i.BlockScoped=3]="BlockScoped",i[i.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",i[i.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",i[i.ContextFlags=25358336]="ContextFlags",i[i.TypeExcludesFlags=40960]="TypeExcludesFlags",i[i.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags"})(ue=e.NodeFlags||(e.NodeFlags={}));var $;(function(i){i[i.None=0]="None",i[i.Export=1]="Export",i[i.Ambient=2]="Ambient",i[i.Public=4]="Public",i[i.Private=8]="Private",i[i.Protected=16]="Protected",i[i.Static=32]="Static",i[i.Readonly=64]="Readonly",i[i.Abstract=128]="Abstract",i[i.Async=256]="Async",i[i.Default=512]="Default",i[i.Const=2048]="Const",i[i.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",i[i.Deprecated=8192]="Deprecated",i[i.Override=16384]="Override",i[i.HasComputedFlags=536870912]="HasComputedFlags",i[i.AccessibilityModifier=28]="AccessibilityModifier",i[i.ParameterPropertyModifier=16476]="ParameterPropertyModifier",i[i.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",i[i.TypeScriptModifier=18654]="TypeScriptModifier",i[i.ExportDefault=513]="ExportDefault",i[i.All=27647]="All"})($=e.ModifierFlags||(e.ModifierFlags={}));var Y;(function(i){i[i.None=0]="None",i[i.IntrinsicNamedElement=1]="IntrinsicNamedElement",i[i.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",i[i.IntrinsicElement=3]="IntrinsicElement"})(Y=e.JsxFlags||(e.JsxFlags={}));var W;(function(i){i[i.Succeeded=1]="Succeeded",i[i.Failed=2]="Failed",i[i.Reported=4]="Reported",i[i.ReportsUnmeasurable=8]="ReportsUnmeasurable",i[i.ReportsUnreliable=16]="ReportsUnreliable",i[i.ReportsMask=24]="ReportsMask"})(W=e.RelationComparisonResult||(e.RelationComparisonResult={}));var re;(function(i){i[i.None=0]="None",i[i.Auto=1]="Auto",i[i.Loop=2]="Loop",i[i.Unique=3]="Unique",i[i.Node=4]="Node",i[i.KindMask=7]="KindMask",i[i.ReservedInNestedScopes=8]="ReservedInNestedScopes",i[i.Optimistic=16]="Optimistic",i[i.FileLevel=32]="FileLevel",i[i.AllowNameSubstitution=64]="AllowNameSubstitution"})(re=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}));var ye;(function(i){i[i.None=0]="None",i[i.PrecedingLineBreak=1]="PrecedingLineBreak",i[i.PrecedingJSDocComment=2]="PrecedingJSDocComment",i[i.Unterminated=4]="Unterminated",i[i.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",i[i.Scientific=16]="Scientific",i[i.Octal=32]="Octal",i[i.HexSpecifier=64]="HexSpecifier",i[i.BinarySpecifier=128]="BinarySpecifier",i[i.OctalSpecifier=256]="OctalSpecifier",i[i.ContainsSeparator=512]="ContainsSeparator",i[i.UnicodeEscape=1024]="UnicodeEscape",i[i.ContainsInvalidEscape=2048]="ContainsInvalidEscape",i[i.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",i[i.NumericLiteralFlags=1008]="NumericLiteralFlags",i[i.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags"})(ye=e.TokenFlags||(e.TokenFlags={}));var O;(function(i){i[i.Unreachable=1]="Unreachable",i[i.Start=2]="Start",i[i.BranchLabel=4]="BranchLabel",i[i.LoopLabel=8]="LoopLabel",i[i.Assignment=16]="Assignment",i[i.TrueCondition=32]="TrueCondition",i[i.FalseCondition=64]="FalseCondition",i[i.SwitchClause=128]="SwitchClause",i[i.ArrayMutation=256]="ArrayMutation",i[i.Call=512]="Call",i[i.ReduceLabel=1024]="ReduceLabel",i[i.Referenced=2048]="Referenced",i[i.Shared=4096]="Shared",i[i.Label=12]="Label",i[i.Condition=96]="Condition"})(O=e.FlowFlags||(e.FlowFlags={}));var A;(function(i){i[i.ExpectError=0]="ExpectError",i[i.Ignore=1]="Ignore"})(A=e.CommentDirectiveType||(e.CommentDirectiveType={}));var D=function(){function i(){}return i}();e.OperationCanceledException=D;var de;(function(i){i[i.RootFile=0]="RootFile",i[i.SourceFromProjectReference=1]="SourceFromProjectReference",i[i.OutputFromProjectReference=2]="OutputFromProjectReference",i[i.Import=3]="Import",i[i.ReferenceFile=4]="ReferenceFile",i[i.TypeReferenceDirective=5]="TypeReferenceDirective",i[i.LibFile=6]="LibFile",i[i.LibReferenceDirective=7]="LibReferenceDirective",i[i.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile"})(de=e.FileIncludeKind||(e.FileIncludeKind={}));var _e;(function(i){i[i.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",i[i.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic"})(_e=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}));var y;(function(i){i[i.Not=0]="Not",i[i.SafeModules=1]="SafeModules",i[i.Completely=2]="Completely"})(y=e.StructureIsReused||(e.StructureIsReused={}));var V;(function(i){i[i.Success=0]="Success",i[i.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",i[i.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",i[i.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",i[i.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",i[i.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped"})(V=e.ExitStatus||(e.ExitStatus={}));var Z;(function(i){i[i.None=0]="None",i[i.Literal=1]="Literal",i[i.Subtype=2]="Subtype"})(Z=e.UnionReduction||(e.UnionReduction={}));var E;(function(i){i[i.None=0]="None",i[i.Signature=1]="Signature",i[i.NoConstraints=2]="NoConstraints",i[i.Completions=4]="Completions",i[i.SkipBindingPatterns=8]="SkipBindingPatterns"})(E=e.ContextFlags||(e.ContextFlags={}));var H;(function(i){i[i.None=0]="None",i[i.NoTruncation=1]="NoTruncation",i[i.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",i[i.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",i[i.UseStructuralFallback=8]="UseStructuralFallback",i[i.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",i[i.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",i[i.UseFullyQualifiedType=64]="UseFullyQualifiedType",i[i.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",i[i.SuppressAnyReturnType=256]="SuppressAnyReturnType",i[i.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",i[i.MultilineObjectLiterals=1024]="MultilineObjectLiterals",i[i.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",i[i.UseTypeOfFunction=4096]="UseTypeOfFunction",i[i.OmitParameterModifiers=8192]="OmitParameterModifiers",i[i.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",i[i.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",i[i.NoTypeReduction=536870912]="NoTypeReduction",i[i.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",i[i.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",i[i.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",i[i.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",i[i.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",i[i.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",i[i.AllowEmptyTuple=524288]="AllowEmptyTuple",i[i.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",i[i.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",i[i.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",i[i.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",i[i.IgnoreErrors=70221824]="IgnoreErrors",i[i.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",i[i.InTypeAlias=8388608]="InTypeAlias",i[i.InInitialEntityName=16777216]="InInitialEntityName"})(H=e.NodeBuilderFlags||(e.NodeBuilderFlags={}));var L;(function(i){i[i.None=0]="None",i[i.NoTruncation=1]="NoTruncation",i[i.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",i[i.UseStructuralFallback=8]="UseStructuralFallback",i[i.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",i[i.UseFullyQualifiedType=64]="UseFullyQualifiedType",i[i.SuppressAnyReturnType=256]="SuppressAnyReturnType",i[i.MultilineObjectLiterals=1024]="MultilineObjectLiterals",i[i.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",i[i.UseTypeOfFunction=4096]="UseTypeOfFunction",i[i.OmitParameterModifiers=8192]="OmitParameterModifiers",i[i.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",i[i.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",i[i.NoTypeReduction=536870912]="NoTypeReduction",i[i.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",i[i.AddUndefined=131072]="AddUndefined",i[i.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",i[i.InArrayType=524288]="InArrayType",i[i.InElementType=2097152]="InElementType",i[i.InFirstTypeArgument=4194304]="InFirstTypeArgument",i[i.InTypeAlias=8388608]="InTypeAlias",i[i.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",i[i.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask"})(L=e.TypeFormatFlags||(e.TypeFormatFlags={}));var ee;(function(i){i[i.None=0]="None",i[i.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",i[i.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",i[i.AllowAnyNodeKind=4]="AllowAnyNodeKind",i[i.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",i[i.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain"})(ee=e.SymbolFormatFlags||(e.SymbolFormatFlags={}));var k;(function(i){i[i.Accessible=0]="Accessible",i[i.NotAccessible=1]="NotAccessible",i[i.CannotBeNamed=2]="CannotBeNamed"})(k=e.SymbolAccessibility||(e.SymbolAccessibility={}));var b;(function(i){i[i.UnionOrIntersection=0]="UnionOrIntersection",i[i.Spread=1]="Spread"})(b=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}));var ie;(function(i){i[i.This=0]="This",i[i.Identifier=1]="Identifier",i[i.AssertsThis=2]="AssertsThis",i[i.AssertsIdentifier=3]="AssertsIdentifier"})(ie=e.TypePredicateKind||(e.TypePredicateKind={}));var q;(function(i){i[i.Unknown=0]="Unknown",i[i.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",i[i.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",i[i.NumberLikeType=3]="NumberLikeType",i[i.BigIntLikeType=4]="BigIntLikeType",i[i.StringLikeType=5]="StringLikeType",i[i.BooleanType=6]="BooleanType",i[i.ArrayLikeType=7]="ArrayLikeType",i[i.ESSymbolType=8]="ESSymbolType",i[i.Promise=9]="Promise",i[i.TypeWithCallSignature=10]="TypeWithCallSignature",i[i.ObjectType=11]="ObjectType"})(q=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}));var oe;(function(i){i[i.None=0]="None",i[i.FunctionScopedVariable=1]="FunctionScopedVariable",i[i.BlockScopedVariable=2]="BlockScopedVariable",i[i.Property=4]="Property",i[i.EnumMember=8]="EnumMember",i[i.Function=16]="Function",i[i.Class=32]="Class",i[i.Interface=64]="Interface",i[i.ConstEnum=128]="ConstEnum",i[i.RegularEnum=256]="RegularEnum",i[i.ValueModule=512]="ValueModule",i[i.NamespaceModule=1024]="NamespaceModule",i[i.TypeLiteral=2048]="TypeLiteral",i[i.ObjectLiteral=4096]="ObjectLiteral",i[i.Method=8192]="Method",i[i.Constructor=16384]="Constructor",i[i.GetAccessor=32768]="GetAccessor",i[i.SetAccessor=65536]="SetAccessor",i[i.Signature=131072]="Signature",i[i.TypeParameter=262144]="TypeParameter",i[i.TypeAlias=524288]="TypeAlias",i[i.ExportValue=1048576]="ExportValue",i[i.Alias=2097152]="Alias",i[i.Prototype=4194304]="Prototype",i[i.ExportStar=8388608]="ExportStar",i[i.Optional=16777216]="Optional",i[i.Transient=33554432]="Transient",i[i.Assignment=67108864]="Assignment",i[i.ModuleExports=134217728]="ModuleExports",i[i.All=67108863]="All",i[i.Enum=384]="Enum",i[i.Variable=3]="Variable",i[i.Value=111551]="Value",i[i.Type=788968]="Type",i[i.Namespace=1920]="Namespace",i[i.Module=1536]="Module",i[i.Accessor=98304]="Accessor",i[i.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",i[i.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",i[i.ParameterExcludes=111551]="ParameterExcludes",i[i.PropertyExcludes=0]="PropertyExcludes",i[i.EnumMemberExcludes=900095]="EnumMemberExcludes",i[i.FunctionExcludes=110991]="FunctionExcludes",i[i.ClassExcludes=899503]="ClassExcludes",i[i.InterfaceExcludes=788872]="InterfaceExcludes",i[i.RegularEnumExcludes=899327]="RegularEnumExcludes",i[i.ConstEnumExcludes=899967]="ConstEnumExcludes",i[i.ValueModuleExcludes=110735]="ValueModuleExcludes",i[i.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",i[i.MethodExcludes=103359]="MethodExcludes",i[i.GetAccessorExcludes=46015]="GetAccessorExcludes",i[i.SetAccessorExcludes=78783]="SetAccessorExcludes",i[i.TypeParameterExcludes=526824]="TypeParameterExcludes",i[i.TypeAliasExcludes=788968]="TypeAliasExcludes",i[i.AliasExcludes=2097152]="AliasExcludes",i[i.ModuleMember=2623475]="ModuleMember",i[i.ExportHasLocal=944]="ExportHasLocal",i[i.BlockScoped=418]="BlockScoped",i[i.PropertyOrAccessor=98308]="PropertyOrAccessor",i[i.ClassMember=106500]="ClassMember",i[i.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",i[i.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",i[i.Classifiable=2885600]="Classifiable",i[i.LateBindingContainer=6256]="LateBindingContainer"})(oe=e.SymbolFlags||(e.SymbolFlags={}));var se;(function(i){i[i.Numeric=0]="Numeric",i[i.Literal=1]="Literal"})(se=e.EnumKind||(e.EnumKind={}));var w;(function(i){i[i.Instantiated=1]="Instantiated",i[i.SyntheticProperty=2]="SyntheticProperty",i[i.SyntheticMethod=4]="SyntheticMethod",i[i.Readonly=8]="Readonly",i[i.ReadPartial=16]="ReadPartial",i[i.WritePartial=32]="WritePartial",i[i.HasNonUniformType=64]="HasNonUniformType",i[i.HasLiteralType=128]="HasLiteralType",i[i.ContainsPublic=256]="ContainsPublic",i[i.ContainsProtected=512]="ContainsProtected",i[i.ContainsPrivate=1024]="ContainsPrivate",i[i.ContainsStatic=2048]="ContainsStatic",i[i.Late=4096]="Late",i[i.ReverseMapped=8192]="ReverseMapped",i[i.OptionalParameter=16384]="OptionalParameter",i[i.RestParameter=32768]="RestParameter",i[i.DeferredType=65536]="DeferredType",i[i.HasNeverType=131072]="HasNeverType",i[i.Mapped=262144]="Mapped",i[i.StripOptional=524288]="StripOptional",i[i.Synthetic=6]="Synthetic",i[i.Discriminant=192]="Discriminant",i[i.Partial=48]="Partial"})(w=e.CheckFlags||(e.CheckFlags={}));var R;(function(i){i.Call="__call",i.Constructor="__constructor",i.New="__new",i.Index="__index",i.ExportStar="__export",i.Global="__global",i.Missing="__missing",i.Type="__type",i.Object="__object",i.JSXAttributes="__jsxAttributes",i.Class="__class",i.Function="__function",i.Computed="__computed",i.Resolving="__resolving__",i.ExportEquals="export=",i.Default="default",i.This="this"})(R=e.InternalSymbolName||(e.InternalSymbolName={}));var ne;(function(i){i[i.TypeChecked=1]="TypeChecked",i[i.LexicalThis=2]="LexicalThis",i[i.CaptureThis=4]="CaptureThis",i[i.CaptureNewTarget=8]="CaptureNewTarget",i[i.SuperInstance=256]="SuperInstance",i[i.SuperStatic=512]="SuperStatic",i[i.ContextChecked=1024]="ContextChecked",i[i.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",i[i.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",i[i.CaptureArguments=8192]="CaptureArguments",i[i.EnumValuesComputed=16384]="EnumValuesComputed",i[i.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",i[i.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",i[i.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",i[i.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",i[i.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",i[i.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",i[i.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",i[i.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",i[i.AssignmentsMarked=8388608]="AssignmentsMarked",i[i.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",i[i.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",i[i.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",i[i.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer"})(ne=e.NodeCheckFlags||(e.NodeCheckFlags={}));var U;(function(i){i[i.Any=1]="Any",i[i.Unknown=2]="Unknown",i[i.String=4]="String",i[i.Number=8]="Number",i[i.Boolean=16]="Boolean",i[i.Enum=32]="Enum",i[i.BigInt=64]="BigInt",i[i.StringLiteral=128]="StringLiteral",i[i.NumberLiteral=256]="NumberLiteral",i[i.BooleanLiteral=512]="BooleanLiteral",i[i.EnumLiteral=1024]="EnumLiteral",i[i.BigIntLiteral=2048]="BigIntLiteral",i[i.ESSymbol=4096]="ESSymbol",i[i.UniqueESSymbol=8192]="UniqueESSymbol",i[i.Void=16384]="Void",i[i.Undefined=32768]="Undefined",i[i.Null=65536]="Null",i[i.Never=131072]="Never",i[i.TypeParameter=262144]="TypeParameter",i[i.Object=524288]="Object",i[i.Union=1048576]="Union",i[i.Intersection=2097152]="Intersection",i[i.Index=4194304]="Index",i[i.IndexedAccess=8388608]="IndexedAccess",i[i.Conditional=16777216]="Conditional",i[i.Substitution=33554432]="Substitution",i[i.NonPrimitive=67108864]="NonPrimitive",i[i.TemplateLiteral=134217728]="TemplateLiteral",i[i.StringMapping=268435456]="StringMapping",i[i.AnyOrUnknown=3]="AnyOrUnknown",i[i.Nullable=98304]="Nullable",i[i.Literal=2944]="Literal",i[i.Unit=109440]="Unit",i[i.StringOrNumberLiteral=384]="StringOrNumberLiteral",i[i.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",i[i.DefinitelyFalsy=117632]="DefinitelyFalsy",i[i.PossiblyFalsy=117724]="PossiblyFalsy",i[i.Intrinsic=67359327]="Intrinsic",i[i.Primitive=131068]="Primitive",i[i.StringLike=402653316]="StringLike",i[i.NumberLike=296]="NumberLike",i[i.BigIntLike=2112]="BigIntLike",i[i.BooleanLike=528]="BooleanLike",i[i.EnumLike=1056]="EnumLike",i[i.ESSymbolLike=12288]="ESSymbolLike",i[i.VoidLike=49152]="VoidLike",i[i.DisjointDomains=469892092]="DisjointDomains",i[i.UnionOrIntersection=3145728]="UnionOrIntersection",i[i.StructuredType=3670016]="StructuredType",i[i.TypeVariable=8650752]="TypeVariable",i[i.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",i[i.InstantiablePrimitive=406847488]="InstantiablePrimitive",i[i.Instantiable=465829888]="Instantiable",i[i.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",i[i.ObjectFlagsType=3899393]="ObjectFlagsType",i[i.Simplifiable=25165824]="Simplifiable",i[i.Singleton=67358815]="Singleton",i[i.Narrowable=536624127]="Narrowable",i[i.NotPrimitiveUnion=468598819]="NotPrimitiveUnion",i[i.IncludesMask=205258751]="IncludesMask",i[i.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",i[i.IncludesNonWideningType=4194304]="IncludesNonWideningType",i[i.IncludesWildcard=8388608]="IncludesWildcard",i[i.IncludesEmptyObject=16777216]="IncludesEmptyObject"})(U=e.TypeFlags||(e.TypeFlags={}));var C;(function(i){i[i.Class=1]="Class",i[i.Interface=2]="Interface",i[i.Reference=4]="Reference",i[i.Tuple=8]="Tuple",i[i.Anonymous=16]="Anonymous",i[i.Mapped=32]="Mapped",i[i.Instantiated=64]="Instantiated",i[i.ObjectLiteral=128]="ObjectLiteral",i[i.EvolvingArray=256]="EvolvingArray",i[i.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",i[i.ReverseMapped=1024]="ReverseMapped",i[i.JsxAttributes=2048]="JsxAttributes",i[i.MarkerType=4096]="MarkerType",i[i.JSLiteral=8192]="JSLiteral",i[i.FreshLiteral=16384]="FreshLiteral",i[i.ArrayLiteral=32768]="ArrayLiteral",i[i.PrimitiveUnion=65536]="PrimitiveUnion",i[i.ContainsWideningType=131072]="ContainsWideningType",i[i.ContainsObjectOrArrayLiteral=262144]="ContainsObjectOrArrayLiteral",i[i.NonInferrableType=524288]="NonInferrableType",i[i.CouldContainTypeVariablesComputed=1048576]="CouldContainTypeVariablesComputed",i[i.CouldContainTypeVariables=2097152]="CouldContainTypeVariables",i[i.ClassOrInterface=3]="ClassOrInterface",i[i.RequiresWidening=393216]="RequiresWidening",i[i.PropagatingFlags=917504]="PropagatingFlags",i[i.ObjectTypeKindMask=1343]="ObjectTypeKindMask",i[i.ContainsSpread=4194304]="ContainsSpread",i[i.ObjectRestType=8388608]="ObjectRestType",i[i.IsClassInstanceClone=16777216]="IsClassInstanceClone",i[i.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",i[i.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",i[i.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",i[i.IsGenericObjectType=8388608]="IsGenericObjectType",i[i.IsGenericIndexType=16777216]="IsGenericIndexType",i[i.IsGenericType=25165824]="IsGenericType",i[i.ContainsIntersections=33554432]="ContainsIntersections",i[i.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",i[i.IsNeverIntersection=67108864]="IsNeverIntersection"})(C=e.ObjectFlags||(e.ObjectFlags={}));var d;(function(i){i[i.Invariant=0]="Invariant",i[i.Covariant=1]="Covariant",i[i.Contravariant=2]="Contravariant",i[i.Bivariant=3]="Bivariant",i[i.Independent=4]="Independent",i[i.VarianceMask=7]="VarianceMask",i[i.Unmeasurable=8]="Unmeasurable",i[i.Unreliable=16]="Unreliable",i[i.AllowsStructuralFallback=24]="AllowsStructuralFallback"})(d=e.VarianceFlags||(e.VarianceFlags={}));var G;(function(i){i[i.Required=1]="Required",i[i.Optional=2]="Optional",i[i.Rest=4]="Rest",i[i.Variadic=8]="Variadic",i[i.Fixed=3]="Fixed",i[i.Variable=12]="Variable",i[i.NonRequired=14]="NonRequired",i[i.NonRest=11]="NonRest"})(G=e.ElementFlags||(e.ElementFlags={}));var g;(function(i){i[i.None=0]="None",i[i.IncludeUndefined=1]="IncludeUndefined",i[i.NoIndexSignatures=2]="NoIndexSignatures",i[i.Writing=4]="Writing",i[i.CacheSymbol=8]="CacheSymbol",i[i.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",i[i.ExpressionPosition=32]="ExpressionPosition",i[i.ReportDeprecated=64]="ReportDeprecated",i[i.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",i[i.Contextual=256]="Contextual",i[i.Persistent=1]="Persistent"})(g=e.AccessFlags||(e.AccessFlags={}));var p;(function(i){i[i.Component=0]="Component",i[i.Function=1]="Function",i[i.Mixed=2]="Mixed"})(p=e.JsxReferenceKind||(e.JsxReferenceKind={}));var f;(function(i){i[i.Call=0]="Call",i[i.Construct=1]="Construct"})(f=e.SignatureKind||(e.SignatureKind={}));var T;(function(i){i[i.None=0]="None",i[i.HasRestParameter=1]="HasRestParameter",i[i.HasLiteralTypes=2]="HasLiteralTypes",i[i.Abstract=4]="Abstract",i[i.IsInnerCallChain=8]="IsInnerCallChain",i[i.IsOuterCallChain=16]="IsOuterCallChain",i[i.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",i[i.PropagatingFlags=39]="PropagatingFlags",i[i.CallChainFlags=24]="CallChainFlags"})(T=e.SignatureFlags||(e.SignatureFlags={}));var m;(function(i){i[i.String=0]="String",i[i.Number=1]="Number"})(m=e.IndexKind||(e.IndexKind={}));var N;(function(i){i[i.Simple=0]="Simple",i[i.Array=1]="Array",i[i.Function=2]="Function",i[i.Composite=3]="Composite",i[i.Merged=4]="Merged"})(N=e.TypeMapKind||(e.TypeMapKind={}));var P;(function(i){i[i.NakedTypeVariable=1]="NakedTypeVariable",i[i.SpeculativeTuple=2]="SpeculativeTuple",i[i.SubstituteSource=4]="SubstituteSource",i[i.HomomorphicMappedType=8]="HomomorphicMappedType",i[i.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",i[i.MappedTypeConstraint=32]="MappedTypeConstraint",i[i.ContravariantConditional=64]="ContravariantConditional",i[i.ReturnType=128]="ReturnType",i[i.LiteralKeyof=256]="LiteralKeyof",i[i.NoConstraints=512]="NoConstraints",i[i.AlwaysStrict=1024]="AlwaysStrict",i[i.MaxValue=2048]="MaxValue",i[i.PriorityImpliesCombination=416]="PriorityImpliesCombination",i[i.Circularity=-1]="Circularity"})(P=e.InferencePriority||(e.InferencePriority={}));var x;(function(i){i[i.None=0]="None",i[i.NoDefault=1]="NoDefault",i[i.AnyDefault=2]="AnyDefault",i[i.SkippedGenericFunction=4]="SkippedGenericFunction"})(x=e.InferenceFlags||(e.InferenceFlags={}));var M;(function(i){i[i.False=0]="False",i[i.Unknown=1]="Unknown",i[i.Maybe=3]="Maybe",i[i.True=-1]="True"})(M=e.Ternary||(e.Ternary={}));var me;(function(i){i[i.None=0]="None",i[i.ExportsProperty=1]="ExportsProperty",i[i.ModuleExports=2]="ModuleExports",i[i.PrototypeProperty=3]="PrototypeProperty",i[i.ThisProperty=4]="ThisProperty",i[i.Property=5]="Property",i[i.Prototype=6]="Prototype",i[i.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",i[i.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",i[i.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"})(me=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}));var z;(function(i){i[i.Warning=0]="Warning",i[i.Error=1]="Error",i[i.Suggestion=2]="Suggestion",i[i.Message=3]="Message"})(z=e.DiagnosticCategory||(e.DiagnosticCategory={}));function K(i,In){In===void 0&&(In=!0);var X=z[i.category];return In?X.toLowerCase():X}e.diagnosticCategoryName=K;var I;(function(i){i[i.Classic=1]="Classic",i[i.NodeJs=2]="NodeJs"})(I=e.ModuleResolutionKind||(e.ModuleResolutionKind={}));var Ae;(function(i){i[i.FixedPollingInterval=0]="FixedPollingInterval",i[i.PriorityPollingInterval=1]="PriorityPollingInterval",i[i.DynamicPriorityPolling=2]="DynamicPriorityPolling",i[i.FixedChunkSizePolling=3]="FixedChunkSizePolling",i[i.UseFsEvents=4]="UseFsEvents",i[i.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory"})(Ae=e.WatchFileKind||(e.WatchFileKind={}));var Oe;(function(i){i[i.UseFsEvents=0]="UseFsEvents",i[i.FixedPollingInterval=1]="FixedPollingInterval",i[i.DynamicPriorityPolling=2]="DynamicPriorityPolling",i[i.FixedChunkSizePolling=3]="FixedChunkSizePolling"})(Oe=e.WatchDirectoryKind||(e.WatchDirectoryKind={}));var te;(function(i){i[i.FixedInterval=0]="FixedInterval",i[i.PriorityInterval=1]="PriorityInterval",i[i.DynamicPriority=2]="DynamicPriority",i[i.FixedChunkSize=3]="FixedChunkSize"})(te=e.PollingWatchKind||(e.PollingWatchKind={}));var Se;(function(i){i[i.None=0]="None",i[i.CommonJS=1]="CommonJS",i[i.AMD=2]="AMD",i[i.UMD=3]="UMD",i[i.System=4]="System",i[i.ES2015=5]="ES2015",i[i.ES2020=6]="ES2020",i[i.ESNext=99]="ESNext"})(Se=e.ModuleKind||(e.ModuleKind={}));var be;(function(i){i[i.None=0]="None",i[i.Preserve=1]="Preserve",i[i.React=2]="React",i[i.ReactNative=3]="ReactNative",i[i.ReactJSX=4]="ReactJSX",i[i.ReactJSXDev=5]="ReactJSXDev"})(be=e.JsxEmit||(e.JsxEmit={}));var Ce;(function(i){i[i.Remove=0]="Remove",i[i.Preserve=1]="Preserve",i[i.Error=2]="Error"})(Ce=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}));var Be;(function(i){i[i.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",i[i.LineFeed=1]="LineFeed"})(Be=e.NewLineKind||(e.NewLineKind={}));var De;(function(i){i[i.Unknown=0]="Unknown",i[i.JS=1]="JS",i[i.JSX=2]="JSX",i[i.TS=3]="TS",i[i.TSX=4]="TSX",i[i.External=5]="External",i[i.JSON=6]="JSON",i[i.Deferred=7]="Deferred"})(De=e.ScriptKind||(e.ScriptKind={}));var en;(function(i){i[i.ES3=0]="ES3",i[i.ES5=1]="ES5",i[i.ES2015=2]="ES2015",i[i.ES2016=3]="ES2016",i[i.ES2017=4]="ES2017",i[i.ES2018=5]="ES2018",i[i.ES2019=6]="ES2019",i[i.ES2020=7]="ES2020",i[i.ES2021=8]="ES2021",i[i.ESNext=99]="ESNext",i[i.JSON=100]="JSON",i[i.Latest=99]="Latest"})(en=e.ScriptTarget||(e.ScriptTarget={}));var fe;(function(i){i[i.Standard=0]="Standard",i[i.JSX=1]="JSX"})(fe=e.LanguageVariant||(e.LanguageVariant={}));var Ne;(function(i){i[i.None=0]="None",i[i.Recursive=1]="Recursive"})(Ne=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}));var qe;(function(i){i[i.nullCharacter=0]="nullCharacter",i[i.maxAsciiCharacter=127]="maxAsciiCharacter",i[i.lineFeed=10]="lineFeed",i[i.carriageReturn=13]="carriageReturn",i[i.lineSeparator=8232]="lineSeparator",i[i.paragraphSeparator=8233]="paragraphSeparator",i[i.nextLine=133]="nextLine",i[i.space=32]="space",i[i.nonBreakingSpace=160]="nonBreakingSpace",i[i.enQuad=8192]="enQuad",i[i.emQuad=8193]="emQuad",i[i.enSpace=8194]="enSpace",i[i.emSpace=8195]="emSpace",i[i.threePerEmSpace=8196]="threePerEmSpace",i[i.fourPerEmSpace=8197]="fourPerEmSpace",i[i.sixPerEmSpace=8198]="sixPerEmSpace",i[i.figureSpace=8199]="figureSpace",i[i.punctuationSpace=8200]="punctuationSpace",i[i.thinSpace=8201]="thinSpace",i[i.hairSpace=8202]="hairSpace",i[i.zeroWidthSpace=8203]="zeroWidthSpace",i[i.narrowNoBreakSpace=8239]="narrowNoBreakSpace",i[i.ideographicSpace=12288]="ideographicSpace",i[i.mathematicalSpace=8287]="mathematicalSpace",i[i.ogham=5760]="ogham",i[i._=95]="_",i[i.$=36]="$",i[i._0=48]="_0",i[i._1=49]="_1",i[i._2=50]="_2",i[i._3=51]="_3",i[i._4=52]="_4",i[i._5=53]="_5",i[i._6=54]="_6",i[i._7=55]="_7",i[i._8=56]="_8",i[i._9=57]="_9",i[i.a=97]="a",i[i.b=98]="b",i[i.c=99]="c",i[i.d=100]="d",i[i.e=101]="e",i[i.f=102]="f",i[i.g=103]="g",i[i.h=104]="h",i[i.i=105]="i",i[i.j=106]="j",i[i.k=107]="k",i[i.l=108]="l",i[i.m=109]="m",i[i.n=110]="n",i[i.o=111]="o",i[i.p=112]="p",i[i.q=113]="q",i[i.r=114]="r",i[i.s=115]="s",i[i.t=116]="t",i[i.u=117]="u",i[i.v=118]="v",i[i.w=119]="w",i[i.x=120]="x",i[i.y=121]="y",i[i.z=122]="z",i[i.A=65]="A",i[i.B=66]="B",i[i.C=67]="C",i[i.D=68]="D",i[i.E=69]="E",i[i.F=70]="F",i[i.G=71]="G",i[i.H=72]="H",i[i.I=73]="I",i[i.J=74]="J",i[i.K=75]="K",i[i.L=76]="L",i[i.M=77]="M",i[i.N=78]="N",i[i.O=79]="O",i[i.P=80]="P",i[i.Q=81]="Q",i[i.R=82]="R",i[i.S=83]="S",i[i.T=84]="T",i[i.U=85]="U",i[i.V=86]="V",i[i.W=87]="W",i[i.X=88]="X",i[i.Y=89]="Y",i[i.Z=90]="Z",i[i.ampersand=38]="ampersand",i[i.asterisk=42]="asterisk",i[i.at=64]="at",i[i.backslash=92]="backslash",i[i.backtick=96]="backtick",i[i.bar=124]="bar",i[i.caret=94]="caret",i[i.closeBrace=125]="closeBrace",i[i.closeBracket=93]="closeBracket",i[i.closeParen=41]="closeParen",i[i.colon=58]="colon",i[i.comma=44]="comma",i[i.dot=46]="dot",i[i.doubleQuote=34]="doubleQuote",i[i.equals=61]="equals",i[i.exclamation=33]="exclamation",i[i.greaterThan=62]="greaterThan",i[i.hash=35]="hash",i[i.lessThan=60]="lessThan",i[i.minus=45]="minus",i[i.openBrace=123]="openBrace",i[i.openBracket=91]="openBracket",i[i.openParen=40]="openParen",i[i.percent=37]="percent",i[i.plus=43]="plus",i[i.question=63]="question",i[i.semicolon=59]="semicolon",i[i.singleQuote=39]="singleQuote",i[i.slash=47]="slash",i[i.tilde=126]="tilde",i[i.backspace=8]="backspace",i[i.formFeed=12]="formFeed",i[i.byteOrderMark=65279]="byteOrderMark",i[i.tab=9]="tab",i[i.verticalTab=11]="verticalTab"})(qe=e.CharacterCodes||(e.CharacterCodes={}));var pe;(function(i){i.Ts=".ts",i.Tsx=".tsx",i.Dts=".d.ts",i.Js=".js",i.Jsx=".jsx",i.Json=".json",i.TsBuildInfo=".tsbuildinfo"})(pe=e.Extension||(e.Extension={}));var we;(function(i){i[i.None=0]="None",i[i.ContainsTypeScript=1]="ContainsTypeScript",i[i.ContainsJsx=2]="ContainsJsx",i[i.ContainsESNext=4]="ContainsESNext",i[i.ContainsES2021=8]="ContainsES2021",i[i.ContainsES2020=16]="ContainsES2020",i[i.ContainsES2019=32]="ContainsES2019",i[i.ContainsES2018=64]="ContainsES2018",i[i.ContainsES2017=128]="ContainsES2017",i[i.ContainsES2016=256]="ContainsES2016",i[i.ContainsES2015=512]="ContainsES2015",i[i.ContainsGenerator=1024]="ContainsGenerator",i[i.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",i[i.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",i[i.ContainsLexicalThis=8192]="ContainsLexicalThis",i[i.ContainsRestOrSpread=16384]="ContainsRestOrSpread",i[i.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",i[i.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",i[i.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",i[i.ContainsBindingPattern=262144]="ContainsBindingPattern",i[i.ContainsYield=524288]="ContainsYield",i[i.ContainsAwait=1048576]="ContainsAwait",i[i.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",i[i.ContainsDynamicImport=4194304]="ContainsDynamicImport",i[i.ContainsClassFields=8388608]="ContainsClassFields",i[i.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",i[i.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",i[i.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",i[i.HasComputedFlags=536870912]="HasComputedFlags",i[i.AssertTypeScript=1]="AssertTypeScript",i[i.AssertJsx=2]="AssertJsx",i[i.AssertESNext=4]="AssertESNext",i[i.AssertES2021=8]="AssertES2021",i[i.AssertES2020=16]="AssertES2020",i[i.AssertES2019=32]="AssertES2019",i[i.AssertES2018=64]="AssertES2018",i[i.AssertES2017=128]="AssertES2017",i[i.AssertES2016=256]="AssertES2016",i[i.AssertES2015=512]="AssertES2015",i[i.AssertGenerator=1024]="AssertGenerator",i[i.AssertDestructuringAssignment=2048]="AssertDestructuringAssignment",i[i.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",i[i.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",i[i.NodeExcludes=536870912]="NodeExcludes",i[i.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",i[i.FunctionExcludes=591310848]="FunctionExcludes",i[i.ConstructorExcludes=591306752]="ConstructorExcludes",i[i.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",i[i.PropertyExcludes=570433536]="PropertyExcludes",i[i.ClassExcludes=536940544]="ClassExcludes",i[i.ModuleExcludes=589443072]="ModuleExcludes",i[i.TypeExcludes=-2]="TypeExcludes",i[i.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",i[i.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",i[i.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",i[i.ParameterExcludes=536870912]="ParameterExcludes",i[i.CatchClauseExcludes=536903680]="CatchClauseExcludes",i[i.BindingPatternExcludes=536887296]="BindingPatternExcludes",i[i.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",i[i.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags"})(we=e.TransformFlags||(e.TransformFlags={}));var pn;(function(i){i[i.None=0]="None",i[i.SingleLine=1]="SingleLine",i[i.AdviseOnEmitNode=2]="AdviseOnEmitNode",i[i.NoSubstitution=4]="NoSubstitution",i[i.CapturesThis=8]="CapturesThis",i[i.NoLeadingSourceMap=16]="NoLeadingSourceMap",i[i.NoTrailingSourceMap=32]="NoTrailingSourceMap",i[i.NoSourceMap=48]="NoSourceMap",i[i.NoNestedSourceMaps=64]="NoNestedSourceMaps",i[i.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",i[i.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",i[i.NoTokenSourceMaps=384]="NoTokenSourceMaps",i[i.NoLeadingComments=512]="NoLeadingComments",i[i.NoTrailingComments=1024]="NoTrailingComments",i[i.NoComments=1536]="NoComments",i[i.NoNestedComments=2048]="NoNestedComments",i[i.HelperName=4096]="HelperName",i[i.ExportName=8192]="ExportName",i[i.LocalName=16384]="LocalName",i[i.InternalName=32768]="InternalName",i[i.Indented=65536]="Indented",i[i.NoIndentation=131072]="NoIndentation",i[i.AsyncFunctionBody=262144]="AsyncFunctionBody",i[i.ReuseTempVariableScope=524288]="ReuseTempVariableScope",i[i.CustomPrologue=1048576]="CustomPrologue",i[i.NoHoisting=2097152]="NoHoisting",i[i.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",i[i.Iterator=8388608]="Iterator",i[i.NoAsciiEscaping=16777216]="NoAsciiEscaping",i[i.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",i[i.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",i[i.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",i[i.Immutable=268435456]="Immutable",i[i.IndirectCall=536870912]="IndirectCall"})(pn=e.EmitFlags||(e.EmitFlags={}));var Qe;(function(i){i[i.Extends=1]="Extends",i[i.Assign=2]="Assign",i[i.Rest=4]="Rest",i[i.Decorate=8]="Decorate",i[i.Metadata=16]="Metadata",i[i.Param=32]="Param",i[i.Awaiter=64]="Awaiter",i[i.Generator=128]="Generator",i[i.Values=256]="Values",i[i.Read=512]="Read",i[i.SpreadArray=1024]="SpreadArray",i[i.Await=2048]="Await",i[i.AsyncGenerator=4096]="AsyncGenerator",i[i.AsyncDelegator=8192]="AsyncDelegator",i[i.AsyncValues=16384]="AsyncValues",i[i.ExportStar=32768]="ExportStar",i[i.ImportStar=65536]="ImportStar",i[i.ImportDefault=131072]="ImportDefault",i[i.MakeTemplateObject=262144]="MakeTemplateObject",i[i.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",i[i.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",i[i.CreateBinding=2097152]="CreateBinding",i[i.FirstEmitHelper=1]="FirstEmitHelper",i[i.LastEmitHelper=2097152]="LastEmitHelper",i[i.ForOfIncludes=256]="ForOfIncludes",i[i.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",i[i.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",i[i.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",i[i.SpreadIncludes=1536]="SpreadIncludes"})(Qe=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}));var Re;(function(i){i[i.SourceFile=0]="SourceFile",i[i.Expression=1]="Expression",i[i.IdentifierName=2]="IdentifierName",i[i.MappedTypeParameter=3]="MappedTypeParameter",i[i.Unspecified=4]="Unspecified",i[i.EmbeddedStatement=5]="EmbeddedStatement",i[i.JsxAttributeValue=6]="JsxAttributeValue"})(Re=e.EmitHint||(e.EmitHint={}));var He;(function(i){i[i.Parentheses=1]="Parentheses",i[i.TypeAssertions=2]="TypeAssertions",i[i.NonNullAssertions=4]="NonNullAssertions",i[i.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",i[i.Assertions=6]="Assertions",i[i.All=15]="All"})(He=e.OuterExpressionKinds||(e.OuterExpressionKinds={}));var Ln;(function(i){i[i.None=0]="None",i[i.InParameters=1]="InParameters",i[i.VariablesHoistedInParameters=2]="VariablesHoistedInParameters"})(Ln=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}));var Un;(function(i){i.Prologue="prologue",i.EmitHelpers="emitHelpers",i.NoDefaultLib="no-default-lib",i.Reference="reference",i.Type="type",i.Lib="lib",i.Prepend="prepend",i.Text="text",i.Internal="internal"})(Un=e.BundleFileSectionKind||(e.BundleFileSectionKind={}));var fn;(function(i){i[i.None=0]="None",i[i.SingleLine=0]="SingleLine",i[i.MultiLine=1]="MultiLine",i[i.PreserveLines=2]="PreserveLines",i[i.LinesMask=3]="LinesMask",i[i.NotDelimited=0]="NotDelimited",i[i.BarDelimited=4]="BarDelimited",i[i.AmpersandDelimited=8]="AmpersandDelimited",i[i.CommaDelimited=16]="CommaDelimited",i[i.AsteriskDelimited=32]="AsteriskDelimited",i[i.DelimitersMask=60]="DelimitersMask",i[i.AllowTrailingComma=64]="AllowTrailingComma",i[i.Indented=128]="Indented",i[i.SpaceBetweenBraces=256]="SpaceBetweenBraces",i[i.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",i[i.Braces=1024]="Braces",i[i.Parenthesis=2048]="Parenthesis",i[i.AngleBrackets=4096]="AngleBrackets",i[i.SquareBrackets=8192]="SquareBrackets",i[i.BracketsMask=15360]="BracketsMask",i[i.OptionalIfUndefined=16384]="OptionalIfUndefined",i[i.OptionalIfEmpty=32768]="OptionalIfEmpty",i[i.Optional=49152]="Optional",i[i.PreferNewLine=65536]="PreferNewLine",i[i.NoTrailingNewLine=131072]="NoTrailingNewLine",i[i.NoInterveningComments=262144]="NoInterveningComments",i[i.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",i[i.SingleElement=1048576]="SingleElement",i[i.SpaceAfterList=2097152]="SpaceAfterList",i[i.Modifiers=262656]="Modifiers",i[i.HeritageClauses=512]="HeritageClauses",i[i.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",i[i.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",i[i.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",i[i.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",i[i.UnionTypeConstituents=516]="UnionTypeConstituents",i[i.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",i[i.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",i[i.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",i[i.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",i[i.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",i[i.CommaListElements=528]="CommaListElements",i[i.CallExpressionArguments=2576]="CallExpressionArguments",i[i.NewExpressionArguments=18960]="NewExpressionArguments",i[i.TemplateExpressionSpans=262144]="TemplateExpressionSpans",i[i.SingleLineBlockStatements=768]="SingleLineBlockStatements",i[i.MultiLineBlockStatements=129]="MultiLineBlockStatements",i[i.VariableDeclarationList=528]="VariableDeclarationList",i[i.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",i[i.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",i[i.ClassHeritageClauses=0]="ClassHeritageClauses",i[i.ClassMembers=129]="ClassMembers",i[i.InterfaceMembers=129]="InterfaceMembers",i[i.EnumMembers=145]="EnumMembers",i[i.CaseBlockClauses=129]="CaseBlockClauses",i[i.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",i[i.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",i[i.JsxElementAttributes=262656]="JsxElementAttributes",i[i.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",i[i.HeritageClauseTypes=528]="HeritageClauseTypes",i[i.SourceFileStatements=131073]="SourceFileStatements",i[i.Decorators=2146305]="Decorators",i[i.TypeArguments=53776]="TypeArguments",i[i.TypeParameters=53776]="TypeParameters",i[i.Parameters=2576]="Parameters",i[i.IndexSignatureParameters=8848]="IndexSignatureParameters",i[i.JSDocComment=33]="JSDocComment"})(fn=e.ListFormat||(e.ListFormat={}));var En;(function(i){i[i.None=0]="None",i[i.TripleSlashXML=1]="TripleSlashXML",i[i.SingleLine=2]="SingleLine",i[i.MultiLine=4]="MultiLine",i[i.All=7]="All",i[i.Default=7]="Default"})(En=e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}})(vn||(vn={}));var vn;(function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var o="://",ue=/\\/g;function $(fe){return fe===47||fe===92}e.isAnyDirectorySeparator=$;function Y(fe){return E(fe)<0}e.isUrl=Y;function W(fe){return E(fe)>0}e.isRootedDiskPath=W;function re(fe){var Ne=E(fe);return Ne>0&&Ne===fe.length}e.isDiskPathRoot=re;function ye(fe){return E(fe)!==0}e.pathIsAbsolute=ye;function O(fe){return/^\.\.?($|[\\/])/.test(fe)}e.pathIsRelative=O;function A(fe){return!ye(fe)&&!O(fe)}e.pathIsBareSpecifier=A;function D(fe){return e.stringContains(ee(fe),".")}e.hasExtension=D;function de(fe,Ne){return fe.length>Ne.length&&e.endsWith(fe,Ne)}e.fileExtensionIs=de;function _e(fe,Ne){for(var qe=0,pe=Ne;qe<pe.length;qe++){var we=pe[qe];if(de(fe,we))return!0}return!1}e.fileExtensionIsOneOf=_e;function y(fe){return fe.length>0&&$(fe.charCodeAt(fe.length-1))}e.hasTrailingDirectorySeparator=y;function V(fe){return fe>=97&&fe<=122||fe>=65&&fe<=90}function Z(fe,Ne){var qe=fe.charCodeAt(Ne);if(qe===58)return Ne+1;if(qe===37&&fe.charCodeAt(Ne+1)===51){var pe=fe.charCodeAt(Ne+2);if(pe===97||pe===65)return Ne+3}return-1}function E(fe){if(!fe)return 0;var Ne=fe.charCodeAt(0);if(Ne===47||Ne===92){if(fe.charCodeAt(1)!==Ne)return 1;var qe=fe.indexOf(Ne===47?e.directorySeparator:e.altDirectorySeparator,2);return qe<0?fe.length:qe+1}if(V(Ne)&&fe.charCodeAt(1)===58){var pe=fe.charCodeAt(2);if(pe===47||pe===92)return 3;if(fe.length===2)return 2}var we=fe.indexOf(o);if(we!==-1){var pn=we+o.length,Qe=fe.indexOf(e.directorySeparator,pn);if(Qe!==-1){var Re=fe.slice(0,we),He=fe.slice(pn,Qe);if(Re==="file"&&(He===""||He==="localhost")&&V(fe.charCodeAt(Qe+1))){var Ln=Z(fe,Qe+2);if(Ln!==-1){if(fe.charCodeAt(Ln)===47)return~(Ln+1);if(Ln===fe.length)return~Ln}}return~(Qe+1)}return~fe.length}return 0}function H(fe){var Ne=E(fe);return Ne<0?~Ne:Ne}e.getRootLength=H;function L(fe){fe=w(fe);var Ne=H(fe);return Ne===fe.length?fe:(fe=m(fe),fe.slice(0,Math.max(Ne,fe.lastIndexOf(e.directorySeparator))))}e.getDirectoryPath=L;function ee(fe,Ne,qe){fe=w(fe);var pe=H(fe);if(pe===fe.length)return"";fe=m(fe);var we=fe.slice(Math.max(H(fe),fe.lastIndexOf(e.directorySeparator)+1)),pn=Ne!==void 0&&qe!==void 0?ie(we,Ne,qe):void 0;return pn?we.slice(0,we.length-pn.length):we}e.getBaseFileName=ee;function k(fe,Ne,qe){if(e.startsWith(Ne,".")||(Ne="."+Ne),fe.length>=Ne.length&&fe.charCodeAt(fe.length-Ne.length)===46){var pe=fe.slice(fe.length-Ne.length);if(qe(pe,Ne))return pe}}function b(fe,Ne,qe){if(typeof Ne=="string")return k(fe,Ne,qe)||"";for(var pe=0,we=Ne;pe<we.length;pe++){var pn=we[pe],Qe=k(fe,pn,qe);if(Qe)return Qe}return""}function ie(fe,Ne,qe){if(Ne)return b(m(fe),Ne,qe?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var pe=ee(fe),we=pe.lastIndexOf(".");return we>=0?pe.substring(we):""}e.getAnyExtensionFromPath=ie;function q(fe,Ne){var qe=fe.substring(0,Ne),pe=fe.substring(Ne).split(e.directorySeparator);return pe.length&&!e.lastOrUndefined(pe)&&pe.pop(),Vr([qe],pe,!0)}function oe(fe,Ne){return Ne===void 0&&(Ne=""),fe=ne(Ne,fe),q(fe,H(fe))}e.getPathComponents=oe;function se(fe){if(fe.length===0)return"";var Ne=fe[0]&&N(fe[0]);return Ne+fe.slice(1).join(e.directorySeparator)}e.getPathFromPathComponents=se;function w(fe){var Ne=fe.indexOf("\\");return Ne===-1?fe:(ue.lastIndex=Ne,fe.replace(ue,e.directorySeparator))}e.normalizeSlashes=w;function R(fe){if(!e.some(fe))return[];for(var Ne=[fe[0]],qe=1;qe<fe.length;qe++){var pe=fe[qe];if(pe&&pe!=="."){if(pe===".."){if(Ne.length>1){if(Ne[Ne.length-1]!==".."){Ne.pop();continue}}else if(Ne[0])continue}Ne.push(pe)}}return Ne}e.reducePathComponents=R;function ne(fe){for(var Ne=[],qe=1;qe<arguments.length;qe++)Ne[qe-1]=arguments[qe];fe&&(fe=w(fe));for(var pe=0,we=Ne;pe<we.length;pe++){var pn=we[pe];pn&&(pn=w(pn),!fe||H(pn)!==0?fe=pn:fe=N(fe)+pn)}return fe}e.combinePaths=ne;function U(fe){for(var Ne=[],qe=1;qe<arguments.length;qe++)Ne[qe-1]=arguments[qe];return G(e.some(Ne)?ne.apply(void 0,Vr([fe],Ne,!1)):w(fe))}e.resolvePath=U;function C(fe,Ne){return R(oe(fe,Ne))}e.getNormalizedPathComponents=C;function d(fe,Ne){return se(C(fe,Ne))}e.getNormalizedAbsolutePath=d;function G(fe){if(fe=w(fe),!M.test(fe))return fe;var Ne=fe.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(Ne!==fe&&(fe=Ne,!M.test(fe)))return fe;var qe=se(R(oe(fe)));return qe&&y(fe)?N(qe):qe}e.normalizePath=G;function g(fe){return fe.length===0?"":fe.slice(1).join(e.directorySeparator)}function p(fe,Ne){return g(C(fe,Ne))}e.getNormalizedAbsolutePathWithoutRoot=p;function f(fe,Ne,qe){var pe=W(fe)?G(fe):d(fe,Ne);return qe(pe)}e.toPath=f;function T(fe){fe=w(fe);var Ne=R(oe(fe)),qe=Ne[0],pe=Ne.slice(1);if(pe.length){var we=qe+pe.join(e.directorySeparator);return{path:y(fe)?N(we):we,parts:pe}}else return{path:qe,parts:pe}}e.normalizePathAndParts=T;function m(fe){return y(fe)?fe.substr(0,fe.length-1):fe}e.removeTrailingDirectorySeparator=m;function N(fe){return y(fe)?fe:fe+e.directorySeparator}e.ensureTrailingDirectorySeparator=N;function P(fe){return!ye(fe)&&!O(fe)?"./"+fe:fe}e.ensurePathIsNonModuleName=P;function x(fe,Ne,qe,pe){var we=qe!==void 0&&pe!==void 0?ie(fe,qe,pe):ie(fe);return we?fe.slice(0,fe.length-we.length)+(e.startsWith(Ne,".")?Ne:"."+Ne):fe}e.changeAnyExtension=x;var M=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function me(fe,Ne,qe){if(fe===Ne)return 0;if(fe===void 0)return-1;if(Ne===void 0)return 1;var pe=fe.substring(0,H(fe)),we=Ne.substring(0,H(Ne)),pn=e.compareStringsCaseInsensitive(pe,we);if(pn!==0)return pn;var Qe=fe.substring(pe.length),Re=Ne.substring(we.length);if(!M.test(Qe)&&!M.test(Re))return qe(Qe,Re);for(var He=R(oe(fe)),Ln=R(oe(Ne)),Un=Math.min(He.length,Ln.length),fn=1;fn<Un;fn++){var En=qe(He[fn],Ln[fn]);if(En!==0)return En}return e.compareValues(He.length,Ln.length)}function z(fe,Ne){return me(fe,Ne,e.compareStringsCaseSensitive)}e.comparePathsCaseSensitive=z;function K(fe,Ne){return me(fe,Ne,e.compareStringsCaseInsensitive)}e.comparePathsCaseInsensitive=K;function I(fe,Ne,qe,pe){return typeof qe=="string"?(fe=ne(qe,fe),Ne=ne(qe,Ne)):typeof qe=="boolean"&&(pe=qe),me(fe,Ne,e.getStringComparer(pe))}e.comparePaths=I;function Ae(fe,Ne,qe,pe){if(typeof qe=="string"?(fe=ne(qe,fe),Ne=ne(qe,Ne)):typeof qe=="boolean"&&(pe=qe),fe===void 0||Ne===void 0)return!1;if(fe===Ne)return!0;var we=R(oe(fe)),pn=R(oe(Ne));if(pn.length<we.length)return!1;for(var Qe=pe?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,Re=0;Re<we.length;Re++){var He=Re===0?e.equateStringsCaseInsensitive:Qe;if(!He(we[Re],pn[Re]))return!1}return!0}e.containsPath=Ae;function Oe(fe,Ne,qe){var pe=qe(fe),we=qe(Ne);return e.startsWith(pe,we+"/")||e.startsWith(pe,we+"\\")}e.startsWithDirectory=Oe;function te(fe,Ne,qe,pe){var we=R(oe(fe)),pn=R(oe(Ne)),Qe;for(Qe=0;Qe<we.length&&Qe<pn.length;Qe++){var Re=pe(we[Qe]),He=pe(pn[Qe]),Ln=Qe===0?e.equateStringsCaseInsensitive:qe;if(!Ln(Re,He))break}if(Qe===0)return pn;for(var Un=pn.slice(Qe),fn=[];Qe<we.length;Qe++)fn.push("..");return Vr(Vr([""],fn,!0),Un,!0)}e.getPathComponentsRelativeTo=te;function Se(fe,Ne,qe){e.Debug.assert(H(fe)>0==H(Ne)>0,"Paths must either both be absolute or both be relative");var pe=typeof qe=="function"?qe:e.identity,we=typeof qe=="boolean"?qe:!1,pn=te(fe,Ne,we?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,pe);return se(pn)}e.getRelativePathFromDirectory=Se;function be(fe,Ne,qe){return W(fe)?Be(Ne,fe,Ne,qe,!1):fe}e.convertToRelativePath=be;function Ce(fe,Ne,qe){return P(Se(L(fe),Ne,qe))}e.getRelativePathFromFile=Ce;function Be(fe,Ne,qe,pe,we){var pn=te(U(qe,fe),U(qe,Ne),e.equateStringsCaseSensitive,pe),Qe=pn[0];if(we&&W(Qe)){var Re=Qe.charAt(0)===e.directorySeparator?"file://":"file:///";pn[0]=Re+Qe}return se(pn)}e.getRelativePathToDirectoryOrUrl=Be;function De(fe,Ne){for(;;){var qe=Ne(fe);if(qe!==void 0)return qe;var pe=L(fe);if(pe===fe)return;fe=pe}}e.forEachAncestorDirectory=De;function en(fe){return e.endsWith(fe,"/node_modules")}e.isNodeModulesDirectory=en})(vn||(vn={}));var vn;(function(e){function o(R){for(var ne=5381,U=0;U<R.length;U++)ne=(ne<<5)+ne+R.charCodeAt(U);return ne.toString()}e.generateDjb2Hash=o;function ue(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}e.setStackTraceLimit=ue;var $;(function(R){R[R.Created=0]="Created",R[R.Changed=1]="Changed",R[R.Deleted=2]="Deleted"})($=e.FileWatcherEventKind||(e.FileWatcherEventKind={}));var Y;(function(R){R[R.High=2e3]="High",R[R.Medium=500]="Medium",R[R.Low=250]="Low"})(Y=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0);function W(R,ne){return R.getModifiedTime(ne)||e.missingFileModifiedTime}e.getModifiedTime=W;function re(R){var ne;return ne={},ne[Y.Low]=R.Low,ne[Y.Medium]=R.Medium,ne[Y.High]=R.High,ne}var ye={Low:32,Medium:64,High:256},O=re(ye);e.unchangedPollThresholds=re(ye);function A(R){if(!R.getEnvironmentVariable)return;var ne=d("TSC_WATCH_POLLINGINTERVAL",Y);O=G("TSC_WATCH_POLLINGCHUNKSIZE",ye)||O,e.unchangedPollThresholds=G("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",ye)||e.unchangedPollThresholds;function U(g,p){return R.getEnvironmentVariable(g+"_"+p.toUpperCase())}function C(g){var p;return f("Low"),f("Medium"),f("High"),p;function f(T){var m=U(g,T);m&&((p||(p={}))[T]=Number(m))}}function d(g,p){var f=C(g);if(f)return T("Low"),T("Medium"),T("High"),!0;return!1;function T(m){p[m]=f[m]||p[m]}}function G(g,p){var f=C(g);return(ne||f)&&re(f?Mt(Mt({},p),f):p)}}e.setCustomPollingValues=A;function D(R,ne,U,C,d){for(var G=U,g=ne.length;C&&g;T(),g--){var p=ne[U];if(p){if(p.isClosed){ne[U]=void 0;continue}}else continue;C--;var f=Z(p,W(R,p.fileName));if(p.isClosed){ne[U]=void 0;continue}d==null||d(p,U,f),ne[U]&&(G<U&&(ne[G]=p,ne[U]=void 0),G++)}return U;function T(){U++,U===ne.length&&(G<U&&(ne.length=G),U=0,G=0)}}function de(R){var ne=[],U=[],C=p(Y.Low),d=p(Y.Medium),G=p(Y.High);return g;function g(z,K,I){var Ae={fileName:z,callback:K,unchangedPolls:0,mtime:W(R,z)};return ne.push(Ae),P(Ae,I),{close:function(){Ae.isClosed=!0,e.unorderedRemoveItem(ne,Ae)}}}function p(z){var K=[];return K.pollingInterval=z,K.pollIndex=0,K.pollScheduled=!1,K}function f(z){z.pollIndex=m(z,z.pollingInterval,z.pollIndex,O[z.pollingInterval]),z.length?me(z.pollingInterval):(e.Debug.assert(z.pollIndex===0),z.pollScheduled=!1)}function T(z){m(U,Y.Low,0,U.length),f(z),!z.pollScheduled&&U.length&&me(Y.Low)}function m(z,K,I,Ae){return D(R,z,I,Ae,Oe);function Oe(te,Se,be){be?(te.unchangedPolls=0,z!==U&&(z[Se]=void 0,x(te))):te.unchangedPolls!==e.unchangedPollThresholds[K]?te.unchangedPolls++:z===U?(te.unchangedPolls=1,z[Se]=void 0,P(te,Y.Low)):K!==Y.High&&(te.unchangedPolls++,z[Se]=void 0,P(te,K===Y.Low?Y.Medium:Y.High))}}function N(z){switch(z){case Y.Low:return C;case Y.Medium:return d;case Y.High:return G}}function P(z,K){N(K).push(z),M(K)}function x(z){U.push(z),M(Y.Low)}function M(z){N(z).pollScheduled||me(z)}function me(z){N(z).pollScheduled=R.setTimeout(z===Y.Low?T:f,z,N(z))}}e.createDynamicPriorityPollingWatchFile=de;function _e(R,ne){var U=e.createMultiMap(),C=new e.Map,d=e.createGetCanonicalFileName(ne);return G;function G(p,f,T,m){var N=d(p);U.add(N,f);var P=e.getDirectoryPath(N)||".",x=C.get(P)||g(e.getDirectoryPath(p)||".",P,m);return x.referenceCount++,{close:function(){x.referenceCount===1?(x.close(),C.delete(P)):x.referenceCount--,U.remove(N,f)}}}function g(p,f,T){var m=R(p,1,function(N,P){if(e.isString(P)){var x=e.getNormalizedAbsolutePath(P,p),M=x&&U.get(d(x));if(M)for(var me=0,z=M;me<z.length;me++){var K=z[me];K(x,$.Changed)}}},!1,Y.Medium,T);return m.referenceCount=0,C.set(f,m),m}}function y(R){var ne=[],U=0,C;return d;function d(p,f){var T={fileName:p,callback:f,mtime:W(R,p)};return ne.push(T),g(),{close:function(){T.isClosed=!0,e.unorderedRemoveItem(ne,T)}}}function G(){C=void 0,U=D(R,ne,U,O[Y.Low]),g()}function g(){!ne.length||C||(C=R.setTimeout(G,Y.High))}}function V(R,ne){var U=new e.Map,C=e.createMultiMap(),d=e.createGetCanonicalFileName(ne);return function(G,g,p,f){var T=d(G),m=U.get(T);return m?m.refCount++:U.set(T,{watcher:R(G,function(N,P){return e.forEach(C.get(T),function(x){return x(N,P)})},p,f),refCount:1}),C.add(T,g),{close:function(){var N=e.Debug.checkDefined(U.get(T));C.remove(T,g),N.refCount--,!N.refCount&&(U.delete(T),e.closeFileWatcherOf(N))}}}}e.createSingleFileWatcherPerName=V;function Z(R,ne){var U=R.mtime.getTime(),C=ne.getTime();return U!==C?(R.mtime=ne,R.callback(R.fileName,E(U,C)),!0):!1}e.onWatchedFileStat=Z;function E(R,ne){return R===0?$.Created:ne===0?$.Deleted:$.Changed}e.getFileWatcherEventKind=E,e.ignoredPaths=["/node_modules/.","/.git","/.#"],e.sysLog=e.noop;function H(R){e.sysLog=R}e.setSysLog=H;function L(R){var ne=R.watchDirectory,U=R.useCaseSensitiveFileNames,C=R.getCurrentDirectory,d=R.getAccessibleSortedChildDirectories,G=R.directoryExists,g=R.realpath,p=R.setTimeout,f=R.clearTimeout,T=new e.Map,m=e.createMultiMap(),N=new e.Map,P,x=e.getStringComparer(!U),M=e.createGetCanonicalFileName(U);return function(Ce,Be,De,en){return De?me(Ce,en,Be):ne(Ce,Be,De,en)};function me(Ce,Be,De){var en=M(Ce),fe=T.get(en);fe?fe.refCount++:(fe={watcher:ne(Ce,function(qe){Se(qe,Be)||(Be!=null&&Be.synchronousWatchDirectory?(z(en,qe),te(Ce,en,Be)):K(Ce,en,qe,Be))},!1,Be),refCount:1,childWatches:e.emptyArray},T.set(en,fe),te(Ce,en,Be));var Ne=De&&{dirName:Ce,callback:De};return Ne&&m.add(en,Ne),{dirName:Ce,close:function(){var qe=e.Debug.checkDefined(T.get(en));Ne&&m.remove(en,Ne),qe.refCount--,!qe.refCount&&(T.delete(en),e.closeFileWatcherOf(qe),qe.childWatches.forEach(e.closeFileWatcher))}}}function z(Ce,Be,De){var en,fe;e.isString(Be)?en=Be:fe=Be,m.forEach(function(Ne,qe){var pe;if(!(fe&&fe.get(qe)===!0)&&(qe===Ce||e.startsWith(Ce,qe)&&Ce[qe.length]===e.directorySeparator))if(fe)if(De){var we=fe.get(qe);we?(pe=we).push.apply(pe,De):fe.set(qe,De.slice())}else fe.set(qe,!0);else Ne.forEach(function(pn){var Qe=pn.callback;return Qe(en)})})}function K(Ce,Be,De,en){var fe=T.get(Be);if(fe&&G(Ce)){I(Ce,Be,De,en);return}z(Be,De),Oe(fe)}function I(Ce,Be,De,en){var fe=N.get(Be);fe?fe.fileNames.push(De):N.set(Be,{dirName:Ce,options:en,fileNames:[De]}),P&&(f(P),P=void 0),P=p(Ae,1e3)}function Ae(){P=void 0,e.sysLog("sysLog:: onTimerToUpdateChildWatches:: "+N.size);for(var Ce=e.timestamp(),Be=new e.Map;!P&&N.size;){var De=N.entries().next();e.Debug.assert(!De.done);var en=De.value,fe=en[0],Ne=en[1],qe=Ne.dirName,pe=Ne.options,we=Ne.fileNames;N.delete(fe);var pn=te(qe,fe,pe);z(fe,Be,pn?void 0:we)}e.sysLog("sysLog:: invokingWatchers:: Elapsed:: "+(e.timestamp()-Ce)+"ms:: "+N.size),m.forEach(function(Re,He){var Ln=Be.get(He);Ln&&Re.forEach(function(Un){var fn=Un.callback,En=Un.dirName;e.isArray(Ln)?Ln.forEach(fn):fn(En)})});var Qe=e.timestamp()-Ce;e.sysLog("sysLog:: Elapsed:: "+Qe+"ms:: onTimerToUpdateChildWatches:: "+N.size+" "+P)}function Oe(Ce){if(Ce){var Be=Ce.childWatches;Ce.childWatches=e.emptyArray;for(var De=0,en=Be;De<en.length;De++){var fe=en[De];fe.close(),Oe(T.get(M(fe.dirName)))}}}function te(Ce,Be,De){var en=T.get(Be);if(!en)return!1;var fe,Ne=e.enumerateInsertsAndDeletes(G(Ce)?e.mapDefined(d(Ce),function(we){var pn=e.getNormalizedAbsolutePath(we,Ce);return!Se(pn,De)&&x(pn,e.normalizePath(g(pn)))===0?pn:void 0}):e.emptyArray,en.childWatches,function(we,pn){return x(we,pn.dirName)},qe,e.closeFileWatcher,pe);return en.childWatches=fe||e.emptyArray,Ne;function qe(we){var pn=me(we,De);pe(pn)}function pe(we){(fe||(fe=[])).push(we)}}function Se(Ce,Be){return e.some(e.ignoredPaths,function(De){return be(Ce,De)})||ie(Ce,Be,U,C)}function be(Ce,Be){return e.stringContains(Ce,Be)?!0:U?!1:e.stringContains(M(Ce),Be)}}e.createDirectoryWatcherSupportingRecursive=L;var ee;(function(R){R[R.File=0]="File",R[R.Directory=1]="Directory"})(ee=e.FileSystemEntryKind||(e.FileSystemEntryKind={}));function k(R){return function(ne,U){return R(U===$.Changed?"change":"rename","")}}e.createFileWatcherCallback=k;function b(R,ne,U){return function(C){C==="rename"?ne(R,U(R)?$.Created:$.Deleted):ne(R,$.Changed)}}function ie(R,ne,U,C){return((ne==null?void 0:ne.excludeDirectories)||(ne==null?void 0:ne.excludeFiles))&&(e.matchesExclude(R,ne==null?void 0:ne.excludeFiles,U,C())||e.matchesExclude(R,ne==null?void 0:ne.excludeDirectories,U,C()))}function q(R,ne,U,C,d){return function(G,g){if(G==="rename"){var p=g?e.normalizePath(e.combinePaths(R,g)):R;(!g||!ie(p,U,C,d))&&ne(p)}}}function oe(R){var ne=R.pollingWatchFile,U=R.getModifiedTime,C=R.setTimeout,d=R.clearTimeout,G=R.fsWatch,g=R.fileExists,p=R.useCaseSensitiveFileNames,f=R.getCurrentDirectory,T=R.fsSupportsRecursiveFsWatch,m=R.directoryExists,N=R.getAccessibleSortedChildDirectories,P=R.realpath,x=R.tscWatchFile,M=R.useNonPollingWatchers,me=R.tscWatchDirectory,z=R.defaultWatchFileKind,K,I,Ae,Oe;return{watchFile:te,watchDirectory:De};function te(Ne,qe,pe,we){we=Ce(we,M);var pn=e.Debug.checkDefined(we.watchFile);switch(pn){case e.WatchFileKind.FixedPollingInterval:return ne(Ne,qe,Y.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return ne(Ne,qe,pe,void 0);case e.WatchFileKind.DynamicPriorityPolling:return Se()(Ne,qe,pe,void 0);case e.WatchFileKind.FixedChunkSizePolling:return be()(Ne,qe,void 0,void 0);case e.WatchFileKind.UseFsEvents:return G(Ne,0,b(Ne,qe,g),!1,pe,e.getFallbackOptions(we));case e.WatchFileKind.UseFsEventsOnParentDirectory:return Ae||(Ae=_e(G,p)),Ae(Ne,qe,pe,e.getFallbackOptions(we));default:e.Debug.assertNever(pn)}}function Se(){return K||(K=de({getModifiedTime:U,setTimeout:C}))}function be(){return I||(I=y({getModifiedTime:U,setTimeout:C}))}function Ce(Ne,qe){if(Ne&&Ne.watchFile!==void 0)return Ne;switch(x){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return Be(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,Ne);case"UseFsEventsWithFallbackDynamicPolling":return Be(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,Ne);case"UseFsEventsOnParentDirectory":qe=!0;default:return qe?Be(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,Ne):{watchFile:(z==null?void 0:z())||e.WatchFileKind.FixedPollingInterval}}}function Be(Ne,qe,pe){var we=pe==null?void 0:pe.fallbackPolling;return{watchFile:Ne,fallbackPolling:we===void 0?qe:we}}function De(Ne,qe,pe,we){return T?G(Ne,1,q(Ne,qe,we,p,f),pe,Y.Medium,e.getFallbackOptions(we)):(Oe||(Oe=L({useCaseSensitiveFileNames:p,getCurrentDirectory:f,directoryExists:m,getAccessibleSortedChildDirectories:N,watchDirectory:en,realpath:P,setTimeout:C,clearTimeout:d})),Oe(Ne,qe,pe,we))}function en(Ne,qe,pe,we){e.Debug.assert(!pe);var pn=fe(we),Qe=e.Debug.checkDefined(pn.watchDirectory);switch(Qe){case e.WatchDirectoryKind.FixedPollingInterval:return ne(Ne,function(){return qe(Ne)},Y.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return Se()(Ne,function(){return qe(Ne)},Y.Medium,void 0);case e.WatchDirectoryKind.FixedChunkSizePolling:return be()(Ne,function(){return qe(Ne)},void 0,void 0);case e.WatchDirectoryKind.UseFsEvents:return G(Ne,1,q(Ne,qe,we,p,f),pe,Y.Medium,e.getFallbackOptions(pn));default:e.Debug.assertNever(Qe)}}function fe(Ne){if(Ne&&Ne.watchDirectory!==void 0)return Ne;switch(me){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var qe=Ne==null?void 0:Ne.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:qe!==void 0?qe:void 0}}}}e.createSystemWatchFunctions=oe;function se(R){var ne=R.writeFile;R.writeFile=function(U,C,d){return e.writeFileEnsuringDirectories(U,C,!!d,function(G,g,p){return ne.call(R,G,g,p)},function(G){return R.createDirectory(G)},function(G){return R.directoryExists(G)})}}e.patchWriteFileEnsuringDirectory=se;function w(){if(typeof Ru!="undefined"){var R=Ru.version;if(R){var ne=R.indexOf(".");if(ne!==-1)return parseInt(R.substring(1,ne))}}}e.getNodeMajorVersion=w,e.sys=void 0,e.sys&&e.sys.getEnvironmentVariable&&(A(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)})(vn||(vn={}));var vn;(function(e){function o(ue,$,Y,W,re,ye,O){return{code:ue,category:$,key:Y,message:W,reportsUnnecessary:re,elidedInCompatabilityPyramid:ye,reportsDeprecated:O}}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."),The_parser_expected_to_find_a_to_match_the_token_here:o(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_to_match_the_token_here_1007","The parser expected to find a '}' to match the '{' token here."),Trailing_comma_not_allowed: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."),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."),An_index_signature_cannot_have_a_trailing_comma:o(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen: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_class_elements_of_this_kind:o(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access: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_Did_you_mean_to_write_Promise_0:o(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression: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."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:o(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement: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."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:o(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary: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_have_a_simple_literal_type_or_a_unique_symbol_type:o(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: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."),export_Asterisk_does_not_re_export_a_default:o(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:o(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer: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."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:o(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here: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."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:o(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:o(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name: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_must_be_at_the_top_level_of_a_file_or_module_declaration:o(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_in_a_namespace_or_module: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_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."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:o(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag: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."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:o(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:o(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:o(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:o(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:o(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:o(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:o(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:o(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),with_statements_are_not_allowed_in_an_async_function_block: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_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:o(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:o(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement: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_es2020_esnext_commonjs_amd_system_or_umd:o(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'."),Dynamic_import_must_have_one_specifier_as_an_argument: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_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:o(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type: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_es2020_esnext_or_system:o(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'esnext', or 'system'."),A_label_is_not_allowed_here: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."),Did_you_mean_to_parenthesize_this_function_type:o(1360,e.DiagnosticCategory.Error,"Did_you_mean_to_parenthesize_this_function_type_1360","Did you mean to parenthesize this function type?"),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:o(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:o(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:o(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:o(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:o(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:o(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:o(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:o(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:o(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:o(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:o(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:o(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:o(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:o(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:o(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_t_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:o(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:o(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:o(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:o(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Only_named_exports_may_use_export_type:o(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:o(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:o(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:o(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:o(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:o(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:o(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),Provides_a_root_package_name_when_using_outFile_with_declarations:o(1390,e.DiagnosticCategory.Message,"Provides_a_root_package_name_when_using_outFile_with_declarations_1390","Provides a root package name when using outFile with declarations."),The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_declaration_emit:o(1391,e.DiagnosticCategory.Error,"The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_de_1391","The 'bundledPackageName' option must be provided when using outFile and node module resolution with declaration emit."),An_import_alias_cannot_use_import_type:o(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:o(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:o(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:o(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:o(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:o(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:o(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:o(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:o(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:o(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:o(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:o(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:o(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:o(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:o(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:o(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:o(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:o(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:o(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:o(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:o(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:o(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:o(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:o(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:o(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:o(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:o(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:o(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:o(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:o(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:o(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:o(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:o(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:o(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:o(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:o(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:o(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:o(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:o(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:o(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:o(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:o(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:o(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:o(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:o(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:o(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:o(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:o(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:o(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:o(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:o(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:o(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),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_or_its_corresponding_type_declarations:o(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity: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_for_type_0_is_missing_in_type_1:o(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:o(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body: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_not_be_a_primitive:o(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type: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_reference_itself:o(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:o(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:o(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers: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, parameter properties, or private identifiers."),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."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:o(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),A_signature_with_an_implementation_cannot_use_a_string_literal_type: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}'."),constructor_cannot_be_used_as_a_parameter_property_name:o(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference: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_2_index_type_3:o(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:o(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0: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}'."),Types_of_construct_signatures_are_incompatible:o(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),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_This_is_an_instance_of_class_2:o(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead: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."),Module_0_declares_1_locally_but_it_is_not_exported:o(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:o(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type: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[]'."),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_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:o(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2: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}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:o(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1: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."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:o(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators: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."),Could_not_find_name_0_Did_you_mean_1:o(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown: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_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:o(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:o(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:o(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:o(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:o(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:o(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later: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 '{1}' 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_save_dev_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_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:o(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:o(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag: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."),_0_can_only_be_imported_by_using_a_default_import:o(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:o(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:o(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:o(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_attributes_type_0_may_not_be_a_union_type: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."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:o(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:o(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration: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?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:o(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:o(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:o(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:o(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:o(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:o(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:o(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:o(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:o(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:o(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:o(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:o(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:o(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:o(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:o(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:o(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:o(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:o(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:o(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity: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'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:o(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead: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'."),_0_has_no_exported_member_named_1_Did_you_mean_2:o(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0: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."),Are_you_missing_a_semicolon:o(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1: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_ES2020:o(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container: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_Did_you_mean_typeof_0:o(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here: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_this_function_is_always_defined_Did_you_mean_to_call_it_instead:o(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation: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."),_0_needs_an_explicit_type_annotation:o(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:o(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:o(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:o(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:o(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:o(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:o(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:o(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:o(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:o(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:o(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:o(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:o(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:o(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:o(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:o(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:o(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:o(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:o(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:o(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:o(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:o(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:o(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag:o(2805,e.DiagnosticCategory.Error,"Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_no_2805","Static fields with private names can't have initializers when the '--useDefineForClassFields' flag is not specified with a '--target' of 'esnext'. Consider adding the '--useDefineForClassFields' flag."),Private_accessor_was_defined_without_a_getter:o(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:o(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:o(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:o(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false:o(2810,e.DiagnosticCategory.Error,"Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnex_2810","Property '{0}' may not be used in a static property's initializer in the same class when 'target' is 'esnext' and 'useDefineForClassFields' is 'false'."),Initializer_for_property_0:o(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:o(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:o(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:o(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:o(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:o(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:o(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:o(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:o(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),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_class_has_or_is_using_private_name_0:o(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1: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}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:o(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict: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."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:o(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:o(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:o(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:o(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:o(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:o(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:o(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:o(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),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}."),Unknown_compiler_option_0_Did_you_mean_1:o(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1: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."),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."),Unknown_build_option_0_Did_you_mean_1:o(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:o(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:o(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:o(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:o(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:o(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:o(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:o(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:o(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:o(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:o(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:o(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:o(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:o(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:o(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:o(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:o(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:o(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file: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(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_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:o(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:o(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),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_an_unsupported_extension_The_only_supported_extensions_are_1:o(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures: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_or_set_to_null_on_command_line:o(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators: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:o(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),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(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),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"),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_from_1_of_old_program_it_was_successfully_resolved_to_2:o(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:o(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types: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."),Disable_solution_searching_for_this_project:o(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:o(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:o(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:o(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:o(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:o(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:o(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:o(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:o(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:o(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:o(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:o(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:o(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:o(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:o(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:o(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:o(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:o(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:o(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:o(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:o(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:o(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:o(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:o(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:o(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:o(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:o(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:o(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:o(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:o(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:o(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:o(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:o(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),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"),Referenced_project_0_may_not_disable_emit:o(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2: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"),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')"),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"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:o(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:o(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:o(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:o(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:o(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:o(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:o(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:o(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:o(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:o(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:o(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:o(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:o(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:o(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:o(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1: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."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:o(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:o(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:o(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:o(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:o(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:o(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:o(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:o(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:o(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:o(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:o(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:o(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:o(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:o(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:o(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:o(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:o(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:o(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:o(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:o(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:o(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:o(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:o(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects"),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:o(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Only_output_d_ts_files_and_not_JavaScript_files:o(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:o(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:o(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:o(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility."),Filters_results_from_the_include_option:o(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:o(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:o(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:o(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:o(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:o(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:o(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:o(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:o(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:o(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date"),Ensure_that_casing_is_correct_in_imports:o(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:o(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:o(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:o(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:o(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:o(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:o(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:o(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:o(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:o(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'"),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:o(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:o(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.`"),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:o(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:o(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:o(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:o(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:o(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:o(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`."),Specify_what_module_code_is_generated:o(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:o(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:o(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:o(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:o(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like `__extends` in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:o(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:o(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:o(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:o(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied `any` type.."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:o(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:o(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:o(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when `this` is given the type `any`."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:o(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:o(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:o(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type"),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:o(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:o(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:o(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add `undefined` to a type when accessed using an index."),Enable_error_reporting_when_a_local_variables_aren_t_read:o(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_a_local_variables_aren_t_read_6675","Enable error reporting when a local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:o(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read"),Deprecated_setting_Use_outFile_instead:o(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use `outFile` instead."),Specify_an_output_folder_for_all_emitted_files:o(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:o(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:o(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:o(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:o(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing `const enum` declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:o(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:o(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode"),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:o(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read"),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:o(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:o(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:o(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:o(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files"),Specify_the_root_folder_within_your_source_files:o(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:o(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:o(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:o(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:o(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:o(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:o(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for `bind`, `call`, and `apply` methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:o(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:o(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account `null` and `undefined`."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:o(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:o(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have `@internal` in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:o(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:o(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress `noImplicitAny` errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:o(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:o(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:o(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the `moduleResolution` process."),Specify_the_folder_for_tsbuildinfo_incremental_compilation_files:o(6707,e.DiagnosticCategory.Message,"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707","Specify the folder for .tsbuildinfo incremental compilation files."),Specify_options_for_automatic_acquisition_of_declaration_files:o(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:o(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like `./node_modules/@types`."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:o(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:o(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:o(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging"),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:o(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:o(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Include_undefined_in_index_signature_results:o(6716,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6716","Include 'undefined' in index signature results"),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:o(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:o(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types"),Type_catch_clause_variables_as_unknown_instead_of_any:o(6803,e.DiagnosticCategory.Message,"Type_catch_clause_variables_as_unknown_instead_of_any_6803","Type catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:o(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:o(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:o(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:o(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:o(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:o(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:o(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:o(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:o(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:o(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:o(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:o(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:o(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:o(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:o(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:o(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:o(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:o(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:o(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:o(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:o(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:o(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:o(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:o(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:o(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:o(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:o(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:o(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:o(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:o(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),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_i_save_dev_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_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0: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."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:o(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:o(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),You_cannot_rename_this_element: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_TypeScript_files:o(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:o(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:o(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:o(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:o(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:o(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:o(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:o(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:o(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:o(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:o(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:o(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0: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}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:o(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:o(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause: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."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:o(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:o(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:o(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0: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_unused_declaration_for_Colon_0:o(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused 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_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"),Declare_private_property_0:o(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:o(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:o(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:o(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:o(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:o(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:o(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),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"),Convert_0_to_1_in_0:o(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),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}'"),Convert_all_type_literals_to_mapped_type:o(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),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_missing_call_parentheses:o(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:o(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),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"),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'"),Convert_to_template_string:o(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:o(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:o(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:o(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:o(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:o(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Add_class_tag:o(95102,e.DiagnosticCategory.Message,"Add_class_tag_95102","Add '@class' tag"),Add_this_tag:o(95103,e.DiagnosticCategory.Message,"Add_this_tag_95103","Add '@this' tag"),Add_this_parameter:o(95104,e.DiagnosticCategory.Message,"Add_this_parameter_95104","Add 'this' parameter."),Convert_function_expression_0_to_arrow_function:o(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:o(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:o(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:o(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:o(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:o(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:o(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:o(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:o(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:o(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:o(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:o(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:o(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:o(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:o(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:o(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:o(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:o(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:o(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:o(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:o(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:o(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:o(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:o(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:o(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:o(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:o(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:o(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:o(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:o(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:o(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:o(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:o(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:o(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:o(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:o(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:o(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:o(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:o(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:o(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:o(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:o(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:o(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:o(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:o(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:o(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:o(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:o(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:o(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:o(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:o(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:o(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:o(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:o(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:o(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:o(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:o(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:o(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:o(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:o(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:o(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:o(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:o(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:o(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),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?"),Private_identifiers_cannot_be_used_as_parameters:o(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:o(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:o(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:o(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:o(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:o(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:o(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:o(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:o(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:o(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:o(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:o(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:o(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:o(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:o(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:o(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:o(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:o(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:o(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:o(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:o(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:o(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:o(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:o(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:o(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:o(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:o(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block.")}})(vn||(vn={}));var vn;(function(e){var o;function ue(Re){return Re>=79}e.tokenIsIdentifierOrKeyword=ue;function $(Re){return Re===31||ue(Re)}e.tokenIsIdentifierOrKeywordOrGreaterThan=$,e.textToKeywordObj=(o={abstract:126,any:129,as:127,asserts:128,bigint:156,boolean:132,break:81,case:82,catch:83,class:84,continue:86,const:85},o.constructor=133,o.debugger=87,o.declare=134,o.default=88,o.delete=89,o.do=90,o.else=91,o.enum=92,o.export=93,o.extends=94,o.false=95,o.finally=96,o.for=97,o.from=154,o.function=98,o.get=135,o.if=99,o.implements=117,o.import=100,o.in=101,o.infer=136,o.instanceof=102,o.interface=118,o.intrinsic=137,o.is=138,o.keyof=139,o.let=119,o.module=140,o.namespace=141,o.never=142,o.new=103,o.null=104,o.number=145,o.object=146,o.package=120,o.private=121,o.protected=122,o.public=123,o.override=157,o.readonly=143,o.require=144,o.global=155,o.return=105,o.set=147,o.static=124,o.string=148,o.super=106,o.switch=107,o.symbol=149,o.this=108,o.throw=109,o.true=110,o.try=111,o.type=150,o.typeof=112,o.undefined=151,o.unique=152,o.unknown=153,o.var=113,o.void=114,o.while=115,o.with=116,o.yield=125,o.async=130,o.await=131,o.of=158,o);var Y=new e.Map(e.getEntries(e.textToKeywordObj)),W=new e.Map(e.getEntries(Mt(Mt({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),re=[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],ye=[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],O=[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],A=[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],D=[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],de=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],_e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,y=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function V(Re,He){if(Re<He[0])return!1;for(var Ln=0,Un=He.length,fn;Ln+1<Un;){if(fn=Ln+(Un-Ln)/2,fn-=fn%2,He[fn]<=Re&&Re<=He[fn+1])return!0;Re<He[fn]?Un=fn:Ln=fn+2}return!1}function Z(Re,He){return He>=2?V(Re,D):He===1?V(Re,O):V(Re,re)}e.isUnicodeIdentifierStart=Z;function E(Re,He){return He>=2?V(Re,de):He===1?V(Re,A):V(Re,ye)}function H(Re){var He=[];return Re.forEach(function(Ln,Un){He[Ln]=Un}),He}var L=H(W);function ee(Re){return L[Re]}e.tokenToString=ee;function k(Re){return W.get(Re)}e.stringToToken=k;function b(Re){for(var He=new Array,Ln=0,Un=0;Ln<Re.length;){var fn=Re.charCodeAt(Ln);switch(Ln++,fn){case 13:Re.charCodeAt(Ln)===10&&Ln++;case 10:He.push(Un),Un=Ln;break;default:fn>127&&d(fn)&&(He.push(Un),Un=Ln);break}}return He.push(Un),He}e.computeLineStarts=b;function ie(Re,He,Ln,Un){return Re.getPositionOfLineAndCharacter?Re.getPositionOfLineAndCharacter(He,Ln,Un):q(oe(Re),He,Ln,Re.text,Un)}e.getPositionOfLineAndCharacter=ie;function q(Re,He,Ln,Un,fn){(He<0||He>=Re.length)&&(fn?He=He<0?0:He>=Re.length?Re.length-1:He:e.Debug.fail("Bad line number. Line: "+He+", lineStarts.length: "+Re.length+" , line map is correct? "+(Un!==void 0?e.arraysEqual(Re,b(Un)):"unknown")));var En=Re[He]+Ln;return fn?En>Re[He+1]?Re[He+1]:typeof Un=="string"&&En>Un.length?Un.length:En:(He<Re.length-1?e.Debug.assert(En<Re[He+1]):Un!==void 0&&e.Debug.assert(En<=Un.length),En)}e.computePositionOfLineAndCharacter=q;function oe(Re){return Re.lineMap||(Re.lineMap=b(Re.text))}e.getLineStarts=oe;function se(Re,He){var Ln=w(Re,He);return{line:Ln,character:He-Re[Ln]}}e.computeLineAndCharacterOfPosition=se;function w(Re,He,Ln){var Un=e.binarySearch(Re,He,e.identity,e.compareValues,Ln);return Un<0&&(Un=~Un-1,e.Debug.assert(Un!==-1,"position cannot precede the beginning of the file")),Un}e.computeLineOfPosition=w;function R(Re,He,Ln){if(He===Ln)return 0;var Un=oe(Re),fn=Math.min(He,Ln),En=fn===Ln,i=En?He:Ln,In=w(Un,fn),X=w(Un,i,In);return En?In-X:X-In}e.getLinesBetweenPositions=R;function ne(Re,He){return se(oe(Re),He)}e.getLineAndCharacterOfPosition=ne;function U(Re){return C(Re)||d(Re)}e.isWhiteSpaceLike=U;function C(Re){return Re===32||Re===9||Re===11||Re===12||Re===160||Re===133||Re===5760||Re>=8192&&Re<=8203||Re===8239||Re===8287||Re===12288||Re===65279}e.isWhiteSpaceSingleLine=C;function d(Re){return Re===10||Re===13||Re===8232||Re===8233}e.isLineBreak=d;function G(Re){return Re>=48&&Re<=57}function g(Re){return G(Re)||Re>=65&&Re<=70||Re>=97&&Re<=102}function p(Re){return Re<=1114111}function f(Re){return Re>=48&&Re<=55}e.isOctalDigit=f;function T(Re,He){var Ln=Re.charCodeAt(He);switch(Ln){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 He===0;default:return Ln>127}}e.couldStartTrivia=T;function m(Re,He,Ln,Un,fn){if(e.positionIsSynthesized(He))return He;for(var En=!1;;){var i=Re.charCodeAt(He);switch(i){case 13:Re.charCodeAt(He+1)===10&&He++;case 10:if(He++,Ln)return He;En=!!fn;continue;case 9:case 11:case 12:case 32:He++;continue;case 47:if(Un)break;if(Re.charCodeAt(He+1)===47){for(He+=2;He<Re.length&&!d(Re.charCodeAt(He));)He++;En=!1;continue}if(Re.charCodeAt(He+1)===42){for(He+=2;He<Re.length;){if(Re.charCodeAt(He)===42&&Re.charCodeAt(He+1)===47){He+=2;break}He++}En=!1;continue}break;case 60:case 124:case 61:case 62:if(P(Re,He)){He=x(Re,He),En=!1;continue}break;case 35:if(He===0&&me(Re,He)){He=z(Re,He),En=!1;continue}break;case 42:if(En){He++,En=!1;continue}break;default:if(i>127&&U(i)){He++;continue}break}return He}}e.skipTrivia=m;var N=7;function P(Re,He){if(e.Debug.assert(He>=0),He===0||d(Re.charCodeAt(He-1))){var Ln=Re.charCodeAt(He);if(He+N<Re.length){for(var Un=0;Un<N;Un++)if(Re.charCodeAt(He+Un)!==Ln)return!1;return Ln===61||Re.charCodeAt(He+N)===32}}return!1}function x(Re,He,Ln){Ln&&Ln(e.Diagnostics.Merge_conflict_marker_encountered,He,N);var Un=Re.charCodeAt(He),fn=Re.length;if(Un===60||Un===62)for(;He<fn&&!d(Re.charCodeAt(He));)He++;else for(e.Debug.assert(Un===124||Un===61);He<fn;){var En=Re.charCodeAt(He);if((En===61||En===62)&&En!==Un&&P(Re,He))break;He++}return He}var M=/^#!.*/;function me(Re,He){return e.Debug.assert(He===0),M.test(Re)}e.isShebangTrivia=me;function z(Re,He){var Ln=M.exec(Re)[0];return He=He+Ln.length,He}e.scanShebangTrivia=z;function K(Re,He,Ln,Un,fn,En,i){var In,X,rn,$n,Vn=!1,le=Un,Pe=i;if(Ln===0){le=!0;var xe=Be(He);xe&&(Ln=xe.length)}e:for(;Ln>=0&&Ln<He.length;){var Ze=He.charCodeAt(Ln);switch(Ze){case 13:He.charCodeAt(Ln+1)===10&&Ln++;case 10:if(Ln++,Un)break e;le=!0,Vn&&($n=!0);continue;case 9:case 11:case 12:case 32:Ln++;continue;case 47:var hn=He.charCodeAt(Ln+1),Le=!1;if(hn===47||hn===42){var $e=hn===47?2:3,An=Ln;if(Ln+=2,hn===47)for(;Ln<He.length;){if(d(He.charCodeAt(Ln))){Le=!0;break}Ln++}else for(;Ln<He.length;){if(He.charCodeAt(Ln)===42&&He.charCodeAt(Ln+1)===47){Ln+=2;break}Ln++}if(le){if(Vn&&(Pe=fn(In,X,rn,$n,En,Pe),!Re&&Pe))return Pe;In=An,X=Ln,rn=$e,$n=Le,Vn=!0}continue}break e;default:if(Ze>127&&U(Ze)){Vn&&d(Ze)&&($n=!0),Ln++;continue}break e}}return Vn&&(Pe=fn(In,X,rn,$n,En,Pe)),Pe}function I(Re,He,Ln,Un){return K(!1,Re,He,!1,Ln,Un)}e.forEachLeadingCommentRange=I;function Ae(Re,He,Ln,Un){return K(!1,Re,He,!0,Ln,Un)}e.forEachTrailingCommentRange=Ae;function Oe(Re,He,Ln,Un,fn){return K(!0,Re,He,!1,Ln,Un,fn)}e.reduceEachLeadingCommentRange=Oe;function te(Re,He,Ln,Un,fn){return K(!0,Re,He,!0,Ln,Un,fn)}e.reduceEachTrailingCommentRange=te;function Se(Re,He,Ln,Un,fn,En){return En||(En=[]),En.push({kind:Ln,pos:Re,end:He,hasTrailingNewLine:Un}),En}function be(Re,He){return Oe(Re,He,Se,void 0,void 0)}e.getLeadingCommentRanges=be;function Ce(Re,He){return te(Re,He,Se,void 0,void 0)}e.getTrailingCommentRanges=Ce;function Be(Re){var He=M.exec(Re);if(He)return He[0]}e.getShebang=Be;function De(Re,He){return Re>=65&&Re<=90||Re>=97&&Re<=122||Re===36||Re===95||Re>127&&Z(Re,He)}e.isIdentifierStart=De;function en(Re,He,Ln){return Re>=65&&Re<=90||Re>=97&&Re<=122||Re>=48&&Re<=57||Re===36||Re===95||(Ln===1?Re===45||Re===58:!1)||Re>127&&E(Re,He)}e.isIdentifierPart=en;function fe(Re,He,Ln){var Un=qe(Re,0);if(!De(Un,He))return!1;for(var fn=pe(Un);fn<Re.length;fn+=pe(Un))if(!en(Un=qe(Re,fn),He,Ln))return!1;return!0}e.isIdentifierText=fe;function Ne(Re,He,Ln,Un,fn,En,i){Ln===void 0&&(Ln=0);var In=Un,X,rn,$n,Vn,le,Pe,xe,Ze,hn=0;Ot(In,En,i);var Le={getStartPos:function(){return $n},getTextPos:function(){return X},getToken:function(){return le},getTokenPos:function(){return Vn},getTokenText:function(){return In.substring(Vn,X)},getTokenValue:function(){return Pe},hasUnicodeEscape:function(){return(xe&1024)!==0},hasExtendedUnicodeEscape:function(){return(xe&8)!==0},hasPrecedingLineBreak:function(){return(xe&1)!==0},hasPrecedingJSDocComment:function(){return(xe&2)!==0},isIdentifier:function(){return le===79||le>116},isReservedWord:function(){return le>=81&&le<=116},isUnterminated:function(){return(xe&4)!==0},getCommentDirectives:function(){return Ze},getNumericLiteralFlags:function(){return xe&1008},getTokenFlags:function(){return xe},reScanGreaterToken:Bn,reScanAsteriskEqualsToken:J,reScanSlashToken:Cn,reScanTemplateToken:Rn,reScanTemplateHeadOrNoSubstitutionTemplate:Ye,scanJsxIdentifier:Dr,scanJsxAttributeValue:qr,reScanJsxAttributeValue:ft,reScanJsxToken:xn,reScanLessThanToken:an,reScanHashToken:zn,reScanQuestionToken:ir,reScanInvalidIdentifier:cr,scanJsxToken:gr,scanJsDocToken:xt,scan:yr,getText:Cr,clearCommentDirectives:Jt,setText:Ot,setScriptTarget:Ya,setLanguageVariant:eo,setOnError:ri,setTextPos:za,setInJSDocType:ua,tryScan:qt,lookAhead:Ur,scanRange:dt};return e.Debug.isDebugging&&Object.defineProperty(Le,"__debugShowCurrentPositionInText",{get:function(){var Ar=Le.getText();return Ar.slice(0,Le.getStartPos())+"\u2551"+Ar.slice(Le.getStartPos())}}),Le;function $e(Ar,at,Hr){if(at===void 0&&(at=X),fn){var Wt=X;X=at,fn(Ar,Hr||0),X=Wt}}function An(){for(var Ar=X,at=!1,Hr=!1,Wt="";;){var Zt=In.charCodeAt(X);if(Zt===95){xe|=512,at?(at=!1,Hr=!0,Wt+=In.substring(Ar,X)):$e(Hr?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,X,1),X++,Ar=X;continue}if(G(Zt)){at=!0,Hr=!1,X++;continue}break}return In.charCodeAt(X-1)===95&&$e(e.Diagnostics.Numeric_separators_are_not_allowed_here,X-1,1),Wt+In.substring(Ar,X)}function Ue(){var Ar=X,at=An(),Hr,Wt;In.charCodeAt(X)===46&&(X++,Hr=An());var Zt=X;if(In.charCodeAt(X)===69||In.charCodeAt(X)===101){X++,xe|=16,(In.charCodeAt(X)===43||In.charCodeAt(X)===45)&&X++;var Rr=X,Lr=An();Lr?(Wt=In.substring(Zt,Rr)+Lr,Zt=X):$e(e.Diagnostics.Digit_expected)}var Xr;if(xe&512?(Xr=at,Hr&&(Xr+="."+Hr),Wt&&(Xr+=Wt)):Xr=In.substring(Ar,Zt),Hr!==void 0||xe&16)return gn(Ar,Hr===void 0&&!!(xe&16)),{type:8,value:""+ +Xr};Pe=Xr;var nt=Xn();return gn(Ar),{type:nt,value:Pe}}function gn(Ar,at){if(De(qe(In,X),Re)){var Hr=X,Wt=Me().length;Wt===1&&In[Hr]==="n"?$e(at?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,Ar,Hr-Ar+1):($e(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Hr,Wt),X=Hr)}}function Wn(){for(var Ar=X;f(In.charCodeAt(X));)X++;return+In.substring(Ar,X)}function ze(Ar,at){var Hr=On(Ar,!1,at);return Hr?parseInt(Hr,16):-1}function Tn(Ar,at){return On(Ar,!0,at)}function On(Ar,at,Hr){for(var Wt=[],Zt=!1,Rr=!1;Wt.length<Ar||at;){var Lr=In.charCodeAt(X);if(Hr&&Lr===95){xe|=512,Zt?(Zt=!1,Rr=!0):$e(Rr?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,X,1),X++;continue}if(Zt=Hr,Lr>=65&&Lr<=70)Lr+=32;else if(!(Lr>=48&&Lr<=57||Lr>=97&&Lr<=102))break;Wt.push(Lr),X++,Rr=!1}return Wt.length<Ar&&(Wt=[]),In.charCodeAt(X-1)===95&&$e(e.Diagnostics.Numeric_separators_are_not_allowed_here,X-1,1),String.fromCharCode.apply(String,Wt)}function ur(Ar){Ar===void 0&&(Ar=!1);var at=In.charCodeAt(X);X++;for(var Hr="",Wt=X;;){if(X>=rn){Hr+=In.substring(Wt,X),xe|=4,$e(e.Diagnostics.Unterminated_string_literal);break}var Zt=In.charCodeAt(X);if(Zt===at){Hr+=In.substring(Wt,X),X++;break}if(Zt===92&&!Ar){Hr+=In.substring(Wt,X),Hr+=wr(),Wt=X;continue}if(d(Zt)&&!Ar){Hr+=In.substring(Wt,X),xe|=4,$e(e.Diagnostics.Unterminated_string_literal);break}X++}return Hr}function hr(Ar){var at=In.charCodeAt(X)===96;X++;for(var Hr=X,Wt="",Zt;;){if(X>=rn){Wt+=In.substring(Hr,X),xe|=4,$e(e.Diagnostics.Unterminated_template_literal),Zt=at?14:17;break}var Rr=In.charCodeAt(X);if(Rr===96){Wt+=In.substring(Hr,X),X++,Zt=at?14:17;break}if(Rr===36&&X+1<rn&&In.charCodeAt(X+1)===123){Wt+=In.substring(Hr,X),X+=2,Zt=at?15:16;break}if(Rr===92){Wt+=In.substring(Hr,X),Wt+=wr(Ar),Hr=X;continue}if(Rr===13){Wt+=In.substring(Hr,X),X++,X<rn&&In.charCodeAt(X)===10&&X++,Wt+=`
`,Hr=X;continue}X++}return e.Debug.assert(Zt!==void 0),Pe=Wt,Zt}function wr(Ar){var at=X;if(X++,X>=rn)return $e(e.Diagnostics.Unexpected_end_of_text),"";var Hr=In.charCodeAt(X);switch(X++,Hr){case 48:return Ar&&X<rn&&G(In.charCodeAt(X))?(X++,xe|=2048,In.substring(at,X)):"\0";case 98:return"\b";case 116:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(Ar){for(var Wt=X;Wt<X+4;Wt++)if(Wt<rn&&!g(In.charCodeAt(Wt))&&In.charCodeAt(Wt)!==123)return X=Wt,xe|=2048,In.substring(at,X)}if(X<rn&&In.charCodeAt(X)===123){if(X++,Ar&&!g(In.charCodeAt(X)))return xe|=2048,In.substring(at,X);if(Ar){var Zt=X,Rr=Tn(1,!1),Lr=Rr?parseInt(Rr,16):-1;if(!p(Lr)||In.charCodeAt(X)!==125)return xe|=2048,In.substring(at,X);X=Zt}return xe|=8,Ke()}return xe|=1024,Qr(4);case 120:if(Ar)if(g(In.charCodeAt(X))){if(!g(In.charCodeAt(X+1)))return X++,xe|=2048,In.substring(at,X)}else return xe|=2048,In.substring(at,X);return Qr(2);case 13:X<rn&&In.charCodeAt(X)===10&&X++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(Hr)}}function Qr(Ar){var at=ze(Ar,!1);return at>=0?String.fromCharCode(at):($e(e.Diagnostics.Hexadecimal_digit_expected),"")}function Ke(){var Ar=Tn(1,!1),at=Ar?parseInt(Ar,16):-1,Hr=!1;return at<0?($e(e.Diagnostics.Hexadecimal_digit_expected),Hr=!0):at>1114111&&($e(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Hr=!0),X>=rn?($e(e.Diagnostics.Unexpected_end_of_text),Hr=!0):In.charCodeAt(X)===125?X++:($e(e.Diagnostics.Unterminated_Unicode_escape_sequence),Hr=!0),Hr?"":Qe(at)}function jn(){if(X+5<rn&&In.charCodeAt(X+1)===117){var Ar=X;X+=2;var at=ze(4,!1);return X=Ar,at}return-1}function Zn(){if(Re>=2&&qe(In,X+1)===117&&qe(In,X+2)===123){var Ar=X;X+=3;var at=Tn(1,!1),Hr=at?parseInt(at,16):-1;return X=Ar,Hr}return-1}function Me(){for(var Ar="",at=X;X<rn;){var Hr=qe(In,X);if(en(Hr,Re))X+=pe(Hr);else if(Hr===92){if(Hr=Zn(),Hr>=0&&en(Hr,Re)){X+=3,xe|=8,Ar+=Ke(),at=X;continue}if(Hr=jn(),!(Hr>=0&&en(Hr,Re)))break;xe|=1024,Ar+=In.substring(at,X),Ar+=Qe(Hr),X+=6,at=X}else break}return Ar+=In.substring(at,X),Ar}function Mn(){var Ar=Pe.length;if(Ar>=2&&Ar<=12){var at=Pe.charCodeAt(0);if(at>=97&&at<=122){var Hr=Y.get(Pe);if(Hr!==void 0)return le=Hr}}return le=79}function ar(Ar){for(var at="",Hr=!1,Wt=!1;;){var Zt=In.charCodeAt(X);if(Zt===95){xe|=512,Hr?(Hr=!1,Wt=!0):$e(Wt?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,X,1),X++;continue}if(Hr=!0,!G(Zt)||Zt-48>=Ar)break;at+=In[X],X++,Wt=!1}return In.charCodeAt(X-1)===95&&$e(e.Diagnostics.Numeric_separators_are_not_allowed_here,X-1,1),at}function Xn(){if(In.charCodeAt(X)===110)return Pe+="n",xe&384&&(Pe=e.parsePseudoBigInt(Pe)+"n"),X++,9;var Ar=xe&128?parseInt(Pe.slice(2),2):xe&256?parseInt(Pe.slice(2),8):+Pe;return Pe=""+Ar,8}function yr(){var Ar;$n=X,xe=0;for(var at=!1;;){if(Vn=X,X>=rn)return le=1;var Hr=qe(In,X);if(Hr===35&&X===0&&me(In,X)){if(X=z(In,X),He)continue;return le=6}switch(Hr){case 10:case 13:if(xe|=1,He){X++;continue}else return Hr===13&&X+1<rn&&In.charCodeAt(X+1)===10?X+=2:X++,le=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(He){X++;continue}else{for(;X<rn&&C(In.charCodeAt(X));)X++;return le=5}case 33:return In.charCodeAt(X+1)===61?In.charCodeAt(X+2)===61?(X+=3,le=37):(X+=2,le=35):(X++,le=53);case 34:case 39:return Pe=ur(),le=10;case 96:return le=hr(!1);case 37:return In.charCodeAt(X+1)===61?(X+=2,le=69):(X++,le=44);case 38:return In.charCodeAt(X+1)===38?In.charCodeAt(X+2)===61?(X+=3,le=76):(X+=2,le=55):In.charCodeAt(X+1)===61?(X+=2,le=73):(X++,le=50);case 40:return X++,le=20;case 41:return X++,le=21;case 42:if(In.charCodeAt(X+1)===61)return X+=2,le=66;if(In.charCodeAt(X+1)===42)return In.charCodeAt(X+2)===61?(X+=3,le=67):(X+=2,le=42);if(X++,hn&&!at&&xe&1){at=!0;continue}return le=41;case 43:return In.charCodeAt(X+1)===43?(X+=2,le=45):In.charCodeAt(X+1)===61?(X+=2,le=64):(X++,le=39);case 44:return X++,le=27;case 45:return In.charCodeAt(X+1)===45?(X+=2,le=46):In.charCodeAt(X+1)===61?(X+=2,le=65):(X++,le=40);case 46:return G(In.charCodeAt(X+1))?(Pe=Ue().value,le=8):In.charCodeAt(X+1)===46&&In.charCodeAt(X+2)===46?(X+=3,le=25):(X++,le=24);case 47:if(In.charCodeAt(X+1)===47){for(X+=2;X<rn&&!d(In.charCodeAt(X));)X++;if(Ze=Gn(Ze,In.slice(Vn,X),_e,Vn),He)continue;return le=2}if(In.charCodeAt(X+1)===42){X+=2,In.charCodeAt(X)===42&&In.charCodeAt(X+1)!==47&&(xe|=2);for(var Wt=!1,Zt=Vn;X<rn;){var Rr=In.charCodeAt(X);if(Rr===42&&In.charCodeAt(X+1)===47){X+=2,Wt=!0;break}X++,d(Rr)&&(Zt=X,xe|=1)}if(Ze=Gn(Ze,In.slice(Zt,X),y,Zt),Wt||$e(e.Diagnostics.Asterisk_Slash_expected),He)continue;return Wt||(xe|=4),le=3}return In.charCodeAt(X+1)===61?(X+=2,le=68):(X++,le=43);case 48:if(X+2<rn&&(In.charCodeAt(X+1)===88||In.charCodeAt(X+1)===120))return X+=2,Pe=Tn(1,!0),Pe||($e(e.Diagnostics.Hexadecimal_digit_expected),Pe="0"),Pe="0x"+Pe,xe|=64,le=Xn();if(X+2<rn&&(In.charCodeAt(X+1)===66||In.charCodeAt(X+1)===98))return X+=2,Pe=ar(2),Pe||($e(e.Diagnostics.Binary_digit_expected),Pe="0"),Pe="0b"+Pe,xe|=128,le=Xn();if(X+2<rn&&(In.charCodeAt(X+1)===79||In.charCodeAt(X+1)===111))return X+=2,Pe=ar(8),Pe||($e(e.Diagnostics.Octal_digit_expected),Pe="0"),Pe="0o"+Pe,xe|=256,le=Xn();if(X+1<rn&&f(In.charCodeAt(X+1)))return Pe=""+Wn(),xe|=32,le=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Ar=Ue(),le=Ar.type,Pe=Ar.value,le;case 58:return X++,le=58;case 59:return X++,le=26;case 60:if(P(In,X)){if(X=x(In,X,$e),He)continue;return le=7}return In.charCodeAt(X+1)===60?In.charCodeAt(X+2)===61?(X+=3,le=70):(X+=2,le=47):In.charCodeAt(X+1)===61?(X+=2,le=32):Ln===1&&In.charCodeAt(X+1)===47&&In.charCodeAt(X+2)!==42?(X+=2,le=30):(X++,le=29);case 61:if(P(In,X)){if(X=x(In,X,$e),He)continue;return le=7}return In.charCodeAt(X+1)===61?In.charCodeAt(X+2)===61?(X+=3,le=36):(X+=2,le=34):In.charCodeAt(X+1)===62?(X+=2,le=38):(X++,le=63);case 62:if(P(In,X)){if(X=x(In,X,$e),He)continue;return le=7}return X++,le=31;case 63:return In.charCodeAt(X+1)===46&&!G(In.charCodeAt(X+2))?(X+=2,le=28):In.charCodeAt(X+1)===63?In.charCodeAt(X+2)===61?(X+=3,le=77):(X+=2,le=60):(X++,le=57);case 91:return X++,le=22;case 93:return X++,le=23;case 94:return In.charCodeAt(X+1)===61?(X+=2,le=78):(X++,le=52);case 123:return X++,le=18;case 124:if(P(In,X)){if(X=x(In,X,$e),He)continue;return le=7}return In.charCodeAt(X+1)===124?In.charCodeAt(X+2)===61?(X+=3,le=75):(X+=2,le=56):In.charCodeAt(X+1)===61?(X+=2,le=74):(X++,le=51);case 125:return X++,le=19;case 126:return X++,le=54;case 64:return X++,le=59;case 92:var Lr=Zn();if(Lr>=0&&De(Lr,Re))return X+=3,xe|=8,Pe=Ke()+Me(),le=Mn();var Xr=jn();return Xr>=0&&De(Xr,Re)?(X+=6,xe|=1024,Pe=String.fromCharCode(Xr)+Me(),le=Mn()):($e(e.Diagnostics.Invalid_character),X++,le=0);case 35:return X!==0&&In[X+1]==="!"?($e(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),X++,le=0):(De(qe(In,X+1),Re)?(X++,Fe(qe(In,X),Re)):(Pe=String.fromCharCode(qe(In,X)),$e(e.Diagnostics.Invalid_character,X++,pe(Hr))),le=80);default:var nt=Fe(Hr,Re);if(nt)return le=nt;if(C(Hr)){X+=pe(Hr);continue}else if(d(Hr)){xe|=1,X+=pe(Hr);continue}var vt=pe(Hr);return $e(e.Diagnostics.Invalid_character,X,vt),X+=vt,le=0}}}function cr(){e.Debug.assert(le===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),X=Vn=$n,xe=0;var Ar=qe(In,X),at=Fe(Ar,99);return at?le=at:(X+=pe(Ar),le)}function Fe(Ar,at){var Hr=Ar;if(De(Hr,at)){for(X+=pe(Hr);X<rn&&en(Hr=qe(In,X),at);)X+=pe(Hr);return Pe=In.substring(Vn,X),Hr===92&&(Pe+=Me()),Mn()}}function Bn(){if(le===31){if(In.charCodeAt(X)===62)return In.charCodeAt(X+1)===62?In.charCodeAt(X+2)===61?(X+=3,le=72):(X+=2,le=49):In.charCodeAt(X+1)===61?(X+=2,le=71):(X++,le=48);if(In.charCodeAt(X)===61)return X++,le=33}return le}function J(){return e.Debug.assert(le===66,"'reScanAsteriskEqualsToken' should only be called on a '*='"),X=Vn+1,le=63}function Cn(){if(le===43||le===68){for(var Ar=Vn+1,at=!1,Hr=!1;;){if(Ar>=rn){xe|=4,$e(e.Diagnostics.Unterminated_regular_expression_literal);break}var Wt=In.charCodeAt(Ar);if(d(Wt)){xe|=4,$e(e.Diagnostics.Unterminated_regular_expression_literal);break}if(at)at=!1;else if(Wt===47&&!Hr){Ar++;break}else Wt===91?Hr=!0:Wt===92?at=!0:Wt===93&&(Hr=!1);Ar++}for(;Ar<rn&&en(In.charCodeAt(Ar),Re);)Ar++;X=Ar,Pe=In.substring(Vn,X),le=13}return le}function Gn(Ar,at,Hr,Wt){var Zt=cn(e.trimStringStart(at),Hr);return Zt===void 0?Ar:e.append(Ar,{range:{pos:Wt,end:X},type:Zt})}function cn(Ar,at){var Hr=at.exec(Ar);if(Hr)switch(Hr[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function Rn(Ar){return e.Debug.assert(le===19,"'reScanTemplateToken' should only be called on a '}'"),X=Vn,le=hr(Ar)}function Ye(){return X=Vn,le=hr(!0)}function xn(Ar){return Ar===void 0&&(Ar=!0),X=Vn=$n,le=gr(Ar)}function an(){return le===47?(X=Vn+1,le=29):le}function zn(){return le===80?(X=Vn+1,le=62):le}function ir(){return e.Debug.assert(le===60,"'reScanQuestionToken' should only be called on a '??'"),X=Vn+1,le=57}function gr(Ar){if(Ar===void 0&&(Ar=!0),$n=Vn=X,X>=rn)return le=1;var at=In.charCodeAt(X);if(at===60)return In.charCodeAt(X+1)===47?(X+=2,le=30):(X++,le=29);if(at===123)return X++,le=18;for(var Hr=0;X<rn&&(at=In.charCodeAt(X),at!==123);){if(at===60){if(P(In,X))return X=x(In,X,$e),le=7;break}if(at===62&&$e(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,X,1),at===125&&$e(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,X,1),d(at)&&Hr===0)Hr=-1;else{if(!Ar&&d(at)&&Hr>0)break;U(at)||(Hr=X)}X++}return Pe=In.substring($n,X),Hr===-1?12:11}function Dr(){if(ue(le)){for(var Ar=!1;X<rn;){var at=In.charCodeAt(X);if(at===45){Pe+="-",X++;continue}else if(at===58&&!Ar){Pe+=":",X++,Ar=!0,le=79;continue}var Hr=X;if(Pe+=Me(),X===Hr)break}Pe.slice(-1)===":"&&(Pe=Pe.slice(0,-1),X--)}return le}function qr(){switch($n=X,In.charCodeAt(X)){case 34:case 39:return Pe=ur(!0),le=10;default:return yr()}}function ft(){return X=Vn=$n,qr()}function xt(){if($n=Vn=X,xe=0,X>=rn)return le=1;var Ar=qe(In,X);switch(X+=pe(Ar),Ar){case 9:case 11:case 12:case 32:for(;X<rn&&C(In.charCodeAt(X));)X++;return le=5;case 64:return le=59;case 13:In.charCodeAt(X)===10&&X++;case 10:return xe|=1,le=4;case 42:return le=41;case 123:return le=18;case 125:return le=19;case 91:return le=22;case 93:return le=23;case 60:return le=29;case 62:return le=31;case 61:return le=63;case 44:return le=27;case 46:return le=24;case 96:return le=61;case 35:return le=62;case 92:X--;var at=Zn();if(at>=0&&De(at,Re))return X+=3,xe|=8,Pe=Ke()+Me(),le=Mn();var Hr=jn();return Hr>=0&&De(Hr,Re)?(X+=6,xe|=1024,Pe=String.fromCharCode(Hr)+Me(),le=Mn()):(X++,le=0)}if(De(Ar,Re)){for(var Wt=Ar;X<rn&&en(Wt=qe(In,X),Re)||In.charCodeAt(X)===45;)X+=pe(Wt);return Pe=In.substring(Vn,X),Wt===92&&(Pe+=Me()),le=Mn()}else return le=0}function Kr(Ar,at){var Hr=X,Wt=$n,Zt=Vn,Rr=le,Lr=Pe,Xr=xe,nt=Ar();return(!nt||at)&&(X=Hr,$n=Wt,Vn=Zt,le=Rr,Pe=Lr,xe=Xr),nt}function dt(Ar,at,Hr){var Wt=rn,Zt=X,Rr=$n,Lr=Vn,Xr=le,nt=Pe,vt=xe,or=Ze;Ot(In,Ar,at);var $t=Hr();return rn=Wt,X=Zt,$n=Rr,Vn=Lr,le=Xr,Pe=nt,xe=vt,Ze=or,$t}function Ur(Ar){return Kr(Ar,!0)}function qt(Ar){return Kr(Ar,!1)}function Cr(){return In}function Jt(){Ze=void 0}function Ot(Ar,at,Hr){In=Ar||"",rn=Hr===void 0?In.length:at+Hr,za(at||0)}function ri(Ar){fn=Ar}function Ya(Ar){Re=Ar}function eo(Ar){Ln=Ar}function za(Ar){e.Debug.assert(Ar>=0),X=Ar,$n=Ar,Vn=Ar,le=0,Pe=void 0,xe=0}function ua(Ar){hn+=Ar?1:-1}}e.createScanner=Ne;var qe=String.prototype.codePointAt?function(Re,He){return Re.codePointAt(He)}:function(He,Ln){var Un=He.length;if(!(Ln<0||Ln>=Un)){var fn=He.charCodeAt(Ln);if(fn>=55296&&fn<=56319&&Un>Ln+1){var En=He.charCodeAt(Ln+1);if(En>=56320&&En<=57343)return(fn-55296)*1024+En-56320+65536}return fn}};function pe(Re){return Re>=65536?2:1}function we(Re){if(e.Debug.assert(0<=Re&&Re<=1114111),Re<=65535)return String.fromCharCode(Re);var He=Math.floor((Re-65536)/1024)+55296,Ln=(Re-65536)%1024+56320;return String.fromCharCode(He,Ln)}var pn=String.fromCodePoint?function(Re){return String.fromCodePoint(Re)}:we;function Qe(Re){return pn(Re)}e.utf16EncodeAsString=Qe})(vn||(vn={}));var vn;(function(e){function o(Te){return e.pathIsRelative(Te)||e.isRootedDiskPath(Te)}e.isExternalModuleNameRelative=o;function ue(Te){return e.sortAndDeduplicate(Te,e.compareDiagnostics)}e.sortAndDeduplicateDiagnostics=ue;function $(Te){switch(Te.target){case 99:return"lib.esnext.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}e.getDefaultLibFileName=$;function Y(Te){return Te.start+Te.length}e.textSpanEnd=Y;function W(Te){return Te.length===0}e.textSpanIsEmpty=W;function re(Te,Fn){return Fn>=Te.start&&Fn<Y(Te)}e.textSpanContainsPosition=re;function ye(Te,Fn){return Fn>=Te.pos&&Fn<=Te.end}e.textRangeContainsPositionInclusive=ye;function O(Te,Fn){return Fn.start>=Te.start&&Y(Fn)<=Y(Te)}e.textSpanContainsTextSpan=O;function A(Te,Fn){return D(Te,Fn)!==void 0}e.textSpanOverlapsWith=A;function D(Te,Fn){var et=Z(Te,Fn);return et&&et.length===0?void 0:et}e.textSpanOverlap=D;function de(Te,Fn){return y(Te.start,Te.length,Fn.start,Fn.length)}e.textSpanIntersectsWithTextSpan=de;function _e(Te,Fn,et){return y(Te.start,Te.length,Fn,et)}e.textSpanIntersectsWith=_e;function y(Te,Fn,et,Xt){var ca=Te+Fn,ha=et+Xt;return et<=ca&&ha>=Te}e.decodedTextSpanIntersectsWith=y;function V(Te,Fn){return Fn<=Y(Te)&&Fn>=Te.start}e.textSpanIntersectsWithPosition=V;function Z(Te,Fn){var et=Math.max(Te.start,Fn.start),Xt=Math.min(Y(Te),Y(Fn));return et<=Xt?H(et,Xt):void 0}e.textSpanIntersection=Z;function E(Te,Fn){if(Te<0)throw new Error("start < 0");if(Fn<0)throw new Error("length < 0");return{start:Te,length:Fn}}e.createTextSpan=E;function H(Te,Fn){return E(Te,Fn-Te)}e.createTextSpanFromBounds=H;function L(Te){return E(Te.span.start,Te.newLength)}e.textChangeRangeNewSpan=L;function ee(Te){return W(Te.span)&&Te.newLength===0}e.textChangeRangeIsUnchanged=ee;function k(Te,Fn){if(Fn<0)throw new Error("newLength < 0");return{span:Te,newLength:Fn}}e.createTextChangeRange=k,e.unchangedTextChangeRange=k(E(0,0),0);function b(Te){if(Te.length===0)return e.unchangedTextChangeRange;if(Te.length===1)return Te[0];for(var Fn=Te[0],et=Fn.span.start,Xt=Y(Fn.span),ca=et+Fn.newLength,ha=1;ha<Te.length;ha++){var To=Te[ha],Pn=et,Vo=Xt,Ko=ca,hs=To.span.start,hl=Y(To.span),Bi=hs+To.newLength;et=Math.min(Pn,hs),Xt=Math.max(Vo,Vo+(hl-Ko)),ca=Math.max(Bi,Bi+(Ko-hl))}return k(H(et,Xt),ca-et)}e.collapseTextChangeRangesAcrossMultipleVersions=b;function ie(Te){if(Te&&Te.kind===161){for(var Fn=Te;Fn;Fn=Fn.parent)if(Ya(Fn)||Zt(Fn)||Fn.kind===256)return Fn}}e.getTypeParameterOwner=ie;function q(Te,Fn){return e.hasSyntacticModifier(Te,16476)&&Fn.kind===169}e.isParameterPropertyDeclaration=q;function oe(Te){return Va(Te)?e.every(Te.elements,se):!1}e.isEmptyBindingPattern=oe;function se(Te){return e.isOmittedExpression(Te)?!0:oe(Te.name)}e.isEmptyBindingElement=se;function w(Te){for(var Fn=Te.parent;e.isBindingElement(Fn.parent);)Fn=Fn.parent.parent;return Fn.parent}e.walkUpBindingElementsAndPatterns=w;function R(Te,Fn){e.isBindingElement(Te)&&(Te=w(Te));var et=Fn(Te);return Te.kind===252&&(Te=Te.parent),Te&&Te.kind===253&&(et|=Fn(Te),Te=Te.parent),Te&&Te.kind===235&&(et|=Fn(Te)),et}function ne(Te){return R(Te,e.getEffectiveModifierFlags)}e.getCombinedModifierFlags=ne;function U(Te){return R(Te,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc)}e.getCombinedNodeFlagsAlwaysIncludeJSDoc=U;function C(Te){return R(Te,function(Fn){return Fn.flags})}e.getCombinedNodeFlags=C,e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"];function d(Te,Fn,et){var Xt=Te.toLowerCase(),ca=/^([a-z]+)([_\-]([a-z]+))?$/.exec(Xt);if(!ca){et&&et.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 ha=ca[1],To=ca[3];e.contains(e.supportedLocaleDirectories,Xt)&&!Pn(ha,To,et)&&Pn(ha,void 0,et),e.setUILocale(Te);function Pn(Vo,Ko,hs){var hl=e.normalizePath(Fn.getExecutingFilePath()),Bi=e.getDirectoryPath(hl),Js=e.combinePaths(Bi,Vo);if(Ko&&(Js=Js+"-"+Ko),Js=Fn.resolvePath(e.combinePaths(Js,"diagnosticMessages.generated.json")),!Fn.fileExists(Js))return!1;var rl="";try{rl=Fn.readFile(Js)}catch(Ol){return hs&&hs.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,Js)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(rl))}catch(Ol){return hs&&hs.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,Js)),!1}return!0}}e.validateLocaleAndSetLanguage=d;function G(Te,Fn){if(Te)for(;Te.original!==void 0;)Te=Te.original;return!Fn||Fn(Te)?Te:void 0}e.getOriginalNode=G;function g(Te,Fn){for(;Te;){var et=Fn(Te);if(et==="quit")return;if(et)return Te;Te=Te.parent}}e.findAncestor=g;function p(Te){return(Te.flags&8)===0}e.isParseTreeNode=p;function f(Te,Fn){if(Te===void 0||p(Te))return Te;for(Te=Te.original;Te;){if(p(Te))return!Fn||Fn(Te)?Te:void 0;Te=Te.original}}e.getParseTreeNode=f;function T(Te){return Te.length>=2&&Te.charCodeAt(0)===95&&Te.charCodeAt(1)===95?"_"+Te:Te}e.escapeLeadingUnderscores=T;function m(Te){var Fn=Te;return Fn.length>=3&&Fn.charCodeAt(0)===95&&Fn.charCodeAt(1)===95&&Fn.charCodeAt(2)===95?Fn.substr(1):Fn}e.unescapeLeadingUnderscores=m;function N(Te){return m(Te.escapedText)}e.idText=N;function P(Te){return Te.valueDeclaration&&xt(Te.valueDeclaration)?N(Te.valueDeclaration.name):m(Te.escapedName)}e.symbolName=P;function x(Te){var Fn=Te.parent.parent;if(Fn){if(We(Fn))return M(Fn);switch(Fn.kind){case 235:if(Fn.declarationList&&Fn.declarationList.declarations[0])return M(Fn.declarationList.declarations[0]);break;case 236:var et=Fn.expression;switch(et.kind===219&&et.operatorToken.kind===63&&(et=et.left),et.kind){case 204:return et.name;case 205:var Xt=et.argumentExpression;if(e.isIdentifier(Xt))return Xt}break;case 210:return M(Fn.expression);case 248:{if(We(Fn.statement)||$a(Fn.statement))return M(Fn.statement);break}}}}function M(Te){var Fn=Ae(Te);return Fn&&e.isIdentifier(Fn)?Fn:void 0}function me(Te,Fn){return!!(K(Te)&&e.isIdentifier(Te.name)&&N(Te.name)===N(Fn)||e.isVariableStatement(Te)&&e.some(Te.declarationList.declarations,function(et){return me(et,Fn)}))}e.nodeHasName=me;function z(Te){return Te.name||x(Te)}e.getNameOfJSDocTypedef=z;function K(Te){return!!Te.name}e.isNamedDeclaration=K;function I(Te){switch(Te.kind){case 79:return Te;case 342:case 335:{var Fn=Te.name;if(Fn.kind===159)return Fn.right;break}case 206:case 219:{var et=Te;switch(e.getAssignmentDeclarationKind(et)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(et.left);case 7:case 8:case 9:return et.arguments[1];default:return}}case 340:return z(Te);case 334:return x(Te);case 269:{var Xt=Te.expression;return e.isIdentifier(Xt)?Xt:void 0}case 205:var ca=Te;if(e.isBindableStaticElementAccessExpression(ca))return ca.argumentExpression}return Te.name}e.getNonAssignedNameOfDeclaration=I;function Ae(Te){if(Te!==void 0)return I(Te)||(e.isFunctionExpression(Te)||e.isArrowFunction(Te)||e.isClassExpression(Te)?Oe(Te):void 0)}e.getNameOfDeclaration=Ae;function Oe(Te){if(Te.parent){if(e.isPropertyAssignment(Te.parent)||e.isBindingElement(Te.parent))return Te.parent.name;if(e.isBinaryExpression(Te.parent)&&Te===Te.parent.right){if(e.isIdentifier(Te.parent.left))return Te.parent.left;if(e.isAccessExpression(Te.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(Te.parent.left)}else if(e.isVariableDeclaration(Te.parent)&&e.isIdentifier(Te.parent.name))return Te.parent.name}else return}e.getAssignedName=Oe;function te(Te,Fn){if(Te.name)if(e.isIdentifier(Te.name)){var et=Te.name.escapedText;return xe(Te.parent,Fn).filter(function(ha){return e.isJSDocParameterTag(ha)&&e.isIdentifier(ha.name)&&ha.name.escapedText===et})}else{var Xt=Te.parent.parameters.indexOf(Te);e.Debug.assert(Xt>-1,"Parameters should always be in their parents' parameter list");var ca=xe(Te.parent,Fn).filter(e.isJSDocParameterTag);if(Xt<ca.length)return[ca[Xt]]}return e.emptyArray}function Se(Te){return te(Te,!1)}e.getJSDocParameterTags=Se;function be(Te){return te(Te,!0)}e.getJSDocParameterTagsNoCache=be;function Ce(Te,Fn){var et=Te.name.escapedText;return xe(Te.parent,Fn).filter(function(Xt){return e.isJSDocTemplateTag(Xt)&&Xt.typeParameters.some(function(ca){return ca.name.escapedText===et})})}function Be(Te){return Ce(Te,!1)}e.getJSDocTypeParameterTags=Be;function De(Te){return Ce(Te,!0)}e.getJSDocTypeParameterTagsNoCache=De;function en(Te){return!!Le(Te,e.isJSDocParameterTag)}e.hasJSDocParameterTags=en;function fe(Te){return Le(Te,e.isJSDocAugmentsTag)}e.getJSDocAugmentsTag=fe;function Ne(Te){return $e(Te,e.isJSDocImplementsTag)}e.getJSDocImplementsTags=Ne;function qe(Te){return Le(Te,e.isJSDocClassTag)}e.getJSDocClassTag=qe;function pe(Te){return Le(Te,e.isJSDocPublicTag)}e.getJSDocPublicTag=pe;function we(Te){return Le(Te,e.isJSDocPublicTag,!0)}e.getJSDocPublicTagNoCache=we;function pn(Te){return Le(Te,e.isJSDocPrivateTag)}e.getJSDocPrivateTag=pn;function Qe(Te){return Le(Te,e.isJSDocPrivateTag,!0)}e.getJSDocPrivateTagNoCache=Qe;function Re(Te){return Le(Te,e.isJSDocProtectedTag)}e.getJSDocProtectedTag=Re;function He(Te){return Le(Te,e.isJSDocProtectedTag,!0)}e.getJSDocProtectedTagNoCache=He;function Ln(Te){return Le(Te,e.isJSDocReadonlyTag)}e.getJSDocReadonlyTag=Ln;function Un(Te){return Le(Te,e.isJSDocReadonlyTag,!0)}e.getJSDocReadonlyTagNoCache=Un;function fn(Te){return Le(Te,e.isJSDocOverrideTag,!0)}e.getJSDocOverrideTagNoCache=fn;function En(Te){return Le(Te,e.isJSDocDeprecatedTag)}e.getJSDocDeprecatedTag=En;function i(Te){return Le(Te,e.isJSDocDeprecatedTag,!0)}e.getJSDocDeprecatedTagNoCache=i;function In(Te){return Le(Te,e.isJSDocEnumTag)}e.getJSDocEnumTag=In;function X(Te){return Le(Te,e.isJSDocThisTag)}e.getJSDocThisTag=X;function rn(Te){return Le(Te,e.isJSDocReturnTag)}e.getJSDocReturnTag=rn;function $n(Te){return Le(Te,e.isJSDocTemplateTag)}e.getJSDocTemplateTag=$n;function Vn(Te){var Fn=Le(Te,e.isJSDocTypeTag);if(Fn&&Fn.typeExpression&&Fn.typeExpression.type)return Fn}e.getJSDocTypeTag=Vn;function le(Te){var Fn=Le(Te,e.isJSDocTypeTag);return!Fn&&e.isParameter(Te)&&(Fn=e.find(Se(Te),function(et){return!!et.typeExpression})),Fn&&Fn.typeExpression&&Fn.typeExpression.type}e.getJSDocType=le;function Pe(Te){var Fn=rn(Te);if(Fn&&Fn.typeExpression)return Fn.typeExpression.type;var et=Vn(Te);if(et&&et.typeExpression){var Xt=et.typeExpression.type;if(e.isTypeLiteralNode(Xt)){var ca=e.find(Xt.members,e.isCallSignatureDeclaration);return ca&&ca.type}if(e.isFunctionTypeNode(Xt)||e.isJSDocFunctionType(Xt))return Xt.type}}e.getJSDocReturnType=Pe;function xe(Te,Fn){var et=Te.jsDocCache;if(et===void 0||Fn){var Xt=e.getJSDocCommentsAndTags(Te,Fn);e.Debug.assert(Xt.length<2||Xt[0]!==Xt[1]),et=e.flatMap(Xt,function(ca){return e.isJSDoc(ca)?ca.tags:ca}),Fn||(Te.jsDocCache=et)}return et}function Ze(Te){return xe(Te,!1)}e.getJSDocTags=Ze;function hn(Te){return xe(Te,!0)}e.getJSDocTagsNoCache=hn;function Le(Te,Fn,et){return e.find(xe(Te,et),Fn)}function $e(Te,Fn){return Ze(Te).filter(Fn)}e.getAllJSDocTags=$e;function An(Te,Fn){return Ze(Te).filter(function(et){return et.kind===Fn})}e.getAllJSDocTagsOfKind=An;function Ue(Te){return typeof Te=="string"?Te:Te==null?void 0:Te.map(function(Fn){return Fn.kind===316?Fn.text:"{@link "+(Fn.name?e.entityNameToString(Fn.name)+" ":"")+Fn.text+"}"}).join("")}e.getTextOfJSDocComment=Ue;function gn(Te){if(e.isJSDocSignature(Te))return e.emptyArray;if(e.isJSDocTypeAlias(Te))return e.Debug.assert(Te.parent.kind===315),e.flatMap(Te.parent.tags,function(Xt){return e.isJSDocTemplateTag(Xt)?Xt.typeParameters:void 0});if(Te.typeParameters)return Te.typeParameters;if(e.isInJSFile(Te)){var Fn=e.getJSDocTypeParameterDeclarations(Te);if(Fn.length)return Fn;var et=le(Te);if(et&&e.isFunctionTypeNode(et)&&et.typeParameters)return et.typeParameters}return e.emptyArray}e.getEffectiveTypeParameterDeclarations=gn;function Wn(Te){return Te.constraint?Te.constraint:e.isJSDocTemplateTag(Te.parent)&&Te===Te.parent.typeParameters[0]?Te.parent.constraint:void 0}e.getEffectiveConstraintOfTypeParameter=Wn;function ze(Te){return Te.kind===79||Te.kind===80}e.isMemberName=ze;function Tn(Te){return Te.kind===171||Te.kind===170}e.isGetOrSetAccessorDeclaration=Tn;function On(Te){return e.isPropertyAccessExpression(Te)&&!!(Te.flags&32)}e.isPropertyAccessChain=On;function ur(Te){return e.isElementAccessExpression(Te)&&!!(Te.flags&32)}e.isElementAccessChain=ur;function hr(Te){return e.isCallExpression(Te)&&!!(Te.flags&32)}e.isCallChain=hr;function wr(Te){var Fn=Te.kind;return!!(Te.flags&32)&&(Fn===204||Fn===205||Fn===206||Fn===228)}e.isOptionalChain=wr;function Qr(Te){return wr(Te)&&!e.isNonNullExpression(Te)&&!!Te.questionDotToken}e.isOptionalChainRoot=Qr;function Ke(Te){return Qr(Te.parent)&&Te.parent.expression===Te}e.isExpressionOfOptionalChainRoot=Ke;function jn(Te){return!wr(Te.parent)||Qr(Te.parent)||Te!==Te.parent.expression}e.isOutermostOptionalChain=jn;function Zn(Te){return Te.kind===219&&Te.operatorToken.kind===60}e.isNullishCoalesce=Zn;function Me(Te){return e.isTypeReferenceNode(Te)&&e.isIdentifier(Te.typeName)&&Te.typeName.escapedText==="const"&&!Te.typeArguments}e.isConstTypeReference=Me;function Mn(Te){return e.skipOuterExpressions(Te,8)}e.skipPartiallyEmittedExpressions=Mn;function ar(Te){return e.isNonNullExpression(Te)&&!!(Te.flags&32)}e.isNonNullChain=ar;function Xn(Te){return Te.kind===244||Te.kind===243}e.isBreakOrContinueStatement=Xn;function yr(Te){return Te.kind===272||Te.kind===271}e.isNamedExportBindings=yr;function cr(Te){switch(Te.kind){case 297:case 298:return!0;default:return!1}}e.isUnparsedTextLike=cr;function Fe(Te){return cr(Te)||Te.kind===295||Te.kind===299}e.isUnparsedNode=Fe;function Bn(Te){return Te.kind===342||Te.kind===335}e.isJSDocPropertyLikeTag=Bn;function J(Te){return Cn(Te.kind)}e.isNode=J;function Cn(Te){return Te>=159}e.isNodeKind=Cn;function Gn(Te){return Te>=0&&Te<=158}e.isTokenKind=Gn;function cn(Te){return Gn(Te.kind)}e.isToken=cn;function Rn(Te){return Te.hasOwnProperty("pos")&&Te.hasOwnProperty("end")}e.isNodeArray=Rn;function Ye(Te){return 8<=Te&&Te<=14}e.isLiteralKind=Ye;function xn(Te){return Ye(Te.kind)}e.isLiteralExpression=xn;function an(Te){return 14<=Te&&Te<=17}e.isTemplateLiteralKind=an;function zn(Te){return an(Te.kind)}e.isTemplateLiteralToken=zn;function ir(Te){var Fn=Te.kind;return Fn===16||Fn===17}e.isTemplateMiddleOrTemplateTail=ir;function gr(Te){return e.isImportSpecifier(Te)||e.isExportSpecifier(Te)}e.isImportOrExportSpecifier=gr;function Dr(Te){switch(Te.kind){case 268:case 273:return Te.parent.parent.isTypeOnly;case 266:return Te.parent.isTypeOnly;case 265:case 263:return Te.isTypeOnly;default:return!1}}e.isTypeOnlyImportOrExportDeclaration=Dr;function qr(Te){return Te.kind===10||an(Te.kind)}e.isStringTextContainingNode=qr;function ft(Te){return e.isIdentifier(Te)&&(Te.autoGenerateFlags&7)>0}e.isGeneratedIdentifier=ft;function xt(Te){return(e.isPropertyDeclaration(Te)||Lr(Te))&&e.isPrivateIdentifier(Te.name)}e.isPrivateIdentifierClassElementDeclaration=xt;function Kr(Te){return e.isPropertyAccessExpression(Te)&&e.isPrivateIdentifier(Te.name)}e.isPrivateIdentifierPropertyAccessExpression=Kr;function dt(Te){switch(Te){case 126:case 130:case 85:case 134:case 88:case 93:case 123:case 121:case 122:case 143:case 124:case 157:return!0}return!1}e.isModifierKind=dt;function Ur(Te){return!!(e.modifierToFlag(Te)&16476)}e.isParameterPropertyModifier=Ur;function qt(Te){return Ur(Te)||Te===124||Te===157}e.isClassMemberModifier=qt;function Cr(Te){return dt(Te.kind)}e.isModifier=Cr;function Jt(Te){var Fn=Te.kind;return Fn===159||Fn===79}e.isEntityName=Jt;function Ot(Te){var Fn=Te.kind;return Fn===79||Fn===80||Fn===10||Fn===8||Fn===160}e.isPropertyName=Ot;function ri(Te){var Fn=Te.kind;return Fn===79||Fn===199||Fn===200}e.isBindingName=ri;function Ya(Te){return!!Te&&at(Te.kind)}e.isFunctionLike=Ya;function eo(Te){return!!Te&&(at(Te.kind)||e.isClassStaticBlockDeclaration(Te))}e.isFunctionLikeOrClassStaticBlockDeclaration=eo;function za(Te){return Te&&Ar(Te.kind)}e.isFunctionLikeDeclaration=za;function ua(Te){return Te.kind===110||Te.kind===95}e.isBooleanLiteral=ua;function Ar(Te){switch(Te){case 254:case 167:case 169:case 170:case 171:case 211:case 212:return!0;default:return!1}}function at(Te){switch(Te){case 166:case 172:case 318:case 173:case 174:case 177:case 312:case 178:return!0;default:return Ar(Te)}}e.isFunctionLikeKind=at;function Hr(Te){return e.isSourceFile(Te)||e.isModuleBlock(Te)||e.isBlock(Te)&&Ya(Te.parent)}e.isFunctionOrModuleBlock=Hr;function Wt(Te){var Fn=Te.kind;return Fn===169||Fn===165||Fn===167||Fn===170||Fn===171||Fn===174||Fn===168||Fn===232}e.isClassElement=Wt;function Zt(Te){return Te&&(Te.kind===255||Te.kind===224)}e.isClassLike=Zt;function Rr(Te){return Te&&(Te.kind===170||Te.kind===171)}e.isAccessor=Rr;function Lr(Te){switch(Te.kind){case 167:case 170:case 171:return!0;default:return!1}}e.isMethodOrAccessor=Lr;function Xr(Te){var Fn=Te.kind;return Fn===173||Fn===172||Fn===164||Fn===166||Fn===174}e.isTypeElement=Xr;function nt(Te){return Xr(Te)||Wt(Te)}e.isClassOrTypeElement=nt;function vt(Te){var Fn=Te.kind;return Fn===291||Fn===292||Fn===293||Fn===167||Fn===170||Fn===171}e.isObjectLiteralElementLike=vt;function or(Te){return e.isTypeNodeKind(Te.kind)}e.isTypeNode=or;function $t(Te){switch(Te.kind){case 177:case 178:return!0}return!1}e.isFunctionOrConstructorTypeNode=$t;function Va(Te){if(Te){var Fn=Te.kind;return Fn===200||Fn===199}return!1}e.isBindingPattern=Va;function li(Te){var Fn=Te.kind;return Fn===202||Fn===203}e.isAssignmentPattern=li;function zi(Te){var Fn=Te.kind;return Fn===201||Fn===225}e.isArrayBindingElement=zi;function Ma(Te){switch(Te.kind){case 252:case 162:case 201:return!0}return!1}e.isDeclarationBindingElement=Ma;function di(Te){return Yi(Te)||bi(Te)}e.isBindingOrAssignmentPattern=di;function Yi(Te){switch(Te.kind){case 199:case 203:return!0}return!1}e.isObjectBindingOrAssignmentPattern=Yi;function uo(Te){switch(Te.kind){case 201:case 291:case 292:case 293:return!0}return!1}e.isObjectBindingOrAssignmentElement=uo;function bi(Te){switch(Te.kind){case 200:case 202:return!0}return!1}e.isArrayBindingOrAssignmentPattern=bi;function Mi(Te){var Fn=Te.kind;return Fn===204||Fn===159||Fn===198}e.isPropertyAccessOrQualifiedNameOrImportTypeNode=Mi;function Go(Te){var Fn=Te.kind;return Fn===204||Fn===159}e.isPropertyAccessOrQualifiedName=Go;function io(Te){switch(Te.kind){case 278:case 277:case 206:case 207:case 208:case 163:return!0;default:return!1}}e.isCallLikeExpression=io;function wi(Te){return Te.kind===206||Te.kind===207}e.isCallOrNewExpression=wi;function Ho(Te){var Fn=Te.kind;return Fn===221||Fn===14}e.isTemplateLiteral=Ho;function qi(Te){return Qi(Mn(Te).kind)}e.isLeftHandSideExpression=qi;function Qi(Te){switch(Te){case 204:case 205:case 207:case 206:case 276:case 277:case 280:case 208:case 202:case 210:case 203:case 224:case 211:case 79:case 13:case 8:case 9:case 10:case 14:case 221:case 95:case 104:case 108:case 110:case 106:case 228:case 229:case 100:return!0;default:return!1}}function as(Te){return gs(Mn(Te).kind)}e.isUnaryExpression=as;function gs(Te){switch(Te){case 217:case 218:case 213:case 214:case 215:case 216:case 209:return!0;default:return Qi(Te)}}function Da(Te){switch(Te.kind){case 218:return!0;case 217:return Te.operator===45||Te.operator===46;default:return!1}}e.isUnaryExpressionWithWrite=Da;function $a(Te){return Ni(Mn(Te).kind)}e.isExpression=$a;function Ni(Te){switch(Te){case 220:case 222:case 212:case 219:case 223:case 227:case 225:case 346:case 345:return!0;default:return gs(Te)}}function vo(Te){var Fn=Te.kind;return Fn===209||Fn===227}e.isAssertionExpression=vo;function Io(Te){return e.isNotEmittedStatement(Te)||e.isPartiallyEmittedExpression(Te)}e.isNotEmittedOrPartiallyEmittedNode=Io;function Bo(Te,Fn){switch(Te.kind){case 240:case 241:case 242:case 238:case 239:return!0;case 248:return Fn&&Bo(Te.statement,Fn)}return!1}e.isIterationStatement=Bo;function Uo(Te){return e.isExportAssignment(Te)||e.isExportDeclaration(Te)}e.isScopeMarker=Uo;function cs(Te){return e.some(Te,Uo)}e.hasScopeMarker=cs;function us(Te){return!e.isAnyImportOrReExport(Te)&&!e.isExportAssignment(Te)&&!e.hasSyntacticModifier(Te,1)&&!e.isAmbientModule(Te)}e.needsScopeMarker=us;function Jo(Te){return e.isAnyImportOrReExport(Te)||e.isExportAssignment(Te)||e.hasSyntacticModifier(Te,1)}e.isExternalModuleIndicator=Jo;function is(Te){return Te.kind===241||Te.kind===242}e.isForInOrOfStatement=is;function mn(Te){return e.isBlock(Te)||$a(Te)}e.isConciseBody=mn;function _r(Te){return e.isBlock(Te)}e.isFunctionBody=_r;function $r(Te){return e.isVariableDeclarationList(Te)||$a(Te)}e.isForInitializer=$r;function ia(Te){var Fn=Te.kind;return Fn===260||Fn===259||Fn===79}e.isModuleBody=ia;function ti(Te){var Fn=Te.kind;return Fn===260||Fn===259}e.isNamespaceBody=ti;function va(Te){var Fn=Te.kind;return Fn===79||Fn===259}e.isJSDocNamespaceBody=va;function Ve(Te){var Fn=Te.kind;return Fn===267||Fn===266}e.isNamedImportBindings=Ve;function ce(Te){return Te.kind===259||Te.kind===258}e.isModuleOrEnumDeclaration=ce;function dn(Te){return Te===212||Te===201||Te===255||Te===224||Te===168||Te===169||Te===258||Te===294||Te===273||Te===254||Te===211||Te===170||Te===265||Te===263||Te===268||Te===256||Te===283||Te===167||Te===166||Te===259||Te===262||Te===266||Te===272||Te===162||Te===291||Te===165||Te===164||Te===171||Te===292||Te===257||Te===161||Te===252||Te===340||Te===333||Te===342}function j(Te){return Te===254||Te===274||Te===255||Te===256||Te===257||Te===258||Te===259||Te===264||Te===263||Te===270||Te===269||Te===262}function Ie(Te){return Te===244||Te===243||Te===251||Te===238||Te===236||Te===234||Te===241||Te===242||Te===240||Te===237||Te===248||Te===245||Te===247||Te===249||Te===250||Te===235||Te===239||Te===246||Te===344||Te===348||Te===347}function We(Te){return Te.kind===161?Te.parent&&Te.parent.kind!==339||e.isInJSFile(Te):dn(Te.kind)}e.isDeclaration=We;function sn(Te){return j(Te.kind)}e.isDeclarationStatement=sn;function Hn(Te){return Ie(Te.kind)}e.isStatementButNotDeclaration=Hn;function vr(Te){var Fn=Te.kind;return Ie(Fn)||j(Fn)||Sr(Te)}e.isStatement=vr;function Sr(Te){return Te.kind!==233||Te.parent!==void 0&&(Te.parent.kind===250||Te.parent.kind===290)?!1:!e.isFunctionBlock(Te)}function ot(Te){var Fn=Te.kind;return Ie(Fn)||j(Fn)||Fn===233}e.isStatementOrBlock=ot;function Et(Te){var Fn=Te.kind;return Fn===275||Fn===159||Fn===79}e.isModuleReference=Et;function ra(Te){var Fn=Te.kind;return Fn===108||Fn===79||Fn===204}e.isJsxTagNameExpression=ra;function Na(Te){var Fn=Te.kind;return Fn===276||Fn===286||Fn===277||Fn===11||Fn===280}e.isJsxChild=Na;function ei(Te){var Fn=Te.kind;return Fn===283||Fn===285}e.isJsxAttributeLike=ei;function Li(Te){var Fn=Te.kind;return Fn===10||Fn===286}e.isStringLiteralOrJsxExpression=Li;function Zi(Te){var Fn=Te.kind;return Fn===278||Fn===277}e.isJsxOpeningLikeElement=Zi;function ho(Te){var Fn=Te.kind;return Fn===287||Fn===288}e.isCaseOrDefaultClause=ho;function vs(Te){return Te.kind>=304&&Te.kind<=342}e.isJSDocNode=vs;function Ao(Te){return Te.kind===315||Te.kind===314||Te.kind===316||Kn(Te)||oo(Te)||e.isJSDocTypeLiteral(Te)||e.isJSDocSignature(Te)}e.isJSDocCommentContainingNode=Ao;function oo(Te){return Te.kind>=322&&Te.kind<=342}e.isJSDocTag=oo;function Zo(Te){return Te.kind===171}e.isSetAccessor=Zo;function cl(Te){return Te.kind===170}e.isGetAccessor=cl;function ws(Te){var Fn=Te.jsDoc;return!!Fn&&Fn.length>0}e.hasJSDocNodes=ws;function vl(Te){return!!Te.type}e.hasType=vl;function ul(Te){return!!Te.initializer}e.hasInitializer=ul;function ps(Te){switch(Te.kind){case 252:case 162:case 201:case 164:case 165:case 291:case 294:return!0;default:return!1}}e.hasOnlyExpressionInitializer=ps;function jl(Te){return Te.kind===283||Te.kind===285||vt(Te)}e.isObjectLiteralElement=jl;function Hl(Te){return Te.kind===176||Te.kind===226}e.isTypeReferenceType=Hl;var Hs=1073741823;function Fs(Te){for(var Fn=Hs,et=0,Xt=Te;et<Xt.length;et++){var ca=Xt[et];if(ca.length){for(var ha=0;ha<ca.length&&ha<Fn&&e.isWhiteSpaceLike(ca.charCodeAt(ha));ha++);if(ha<Fn&&(Fn=ha),Fn===0)return 0}}return Fn===Hs?void 0:Fn}e.guessIndentation=Fs;function ge(Te){return Te.kind===10||Te.kind===14}e.isStringLiteralLike=ge;function Kn(Te){return Te.kind===319||Te.kind===320||Te.kind===321}e.isJSDocLinkLike=Kn})(vn||(vn={}));var vn;(function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6;function o(l,Q){var ln=l.declarations;if(ln)for(var wn=0,Fr=ln;wn<Fr.length;wn++){var zr=Fr[wn];if(zr.kind===Q)return zr}}e.getDeclarationOfKind=o;function ue(){return new e.Map}e.createUnderscoreEscapedMap=ue;function $(l){return!!l&&!!l.size}e.hasEntries=$;function Y(l){var Q=new e.Map;if(l)for(var ln=0,wn=l;ln<wn.length;ln++){var Fr=wn[ln];Q.set(Fr.escapedName,Fr)}return Q}e.createSymbolTable=Y;function W(l){return(l.flags&33554432)!==0}e.isTransientSymbol=W;var re=ye();function ye(){var l="",Q=function(ln){return l+=ln};return{getText:function(){return l},write:Q,rawWrite:Q,writeKeyword:Q,writeOperator:Q,writePunctuation:Q,writeSpace:Q,writeStringLiteral:Q,writeLiteral:Q,writeParameter:Q,writeProperty:Q,writeSymbol:function(ln,wn){return Q(ln)},writeTrailingSemicolon:Q,writeComment:Q,getTextPos:function(){return l.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!l.length&&e.isWhiteSpaceLike(l.charCodeAt(l.length-1))},writeLine:function(){return l+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return l=""},trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}function O(l,Q){return l.configFilePath!==Q.configFilePath||A(l,Q)}e.changesAffectModuleResolution=O;function A(l,Q){return de(l,Q,e.moduleResolutionOptionDeclarations)}e.optionsHaveModuleResolutionChanges=A;function D(l,Q){return de(l,Q,e.optionsAffectingProgramStructure)}e.changesAffectingProgramStructure=D;function de(l,Q,ln){return l!==Q&&ln.some(function(wn){return!Yg(ds(l,wn),ds(Q,wn))})}e.optionsHaveChanges=de;function _e(l,Q){for(;;){var ln=Q(l);if(ln==="quit")return;if(ln!==void 0)return ln;if(e.isSourceFile(l))return;l=l.parent}}e.forEachAncestor=_e;function y(l,Q){for(var ln=l.entries(),wn=ln.next();!wn.done;wn=ln.next()){var Fr=wn.value,zr=Fr[0],oa=Fr[1],La=Q(oa,zr);if(La)return La}}e.forEachEntry=y;function V(l,Q){for(var ln=l.keys(),wn=ln.next();!wn.done;wn=ln.next()){var Fr=Q(wn.value);if(Fr)return Fr}}e.forEachKey=V;function Z(l,Q){l.forEach(function(ln,wn){Q.set(wn,ln)})}e.copyEntries=Z;function E(l){var Q=re.getText();try{return l(re),re.getText()}finally{re.clear(),re.writeKeyword(Q)}}e.usingSingleLineStringWriter=E;function H(l){return l.end-l.pos}e.getFullWidth=H;function L(l,Q){return l&&l.resolvedModules&&l.resolvedModules.get(Q)}e.getResolvedModule=L;function ee(l,Q,ln){l.resolvedModules||(l.resolvedModules=new e.Map),l.resolvedModules.set(Q,ln)}e.setResolvedModule=ee;function k(l,Q,ln){l.resolvedTypeReferenceDirectiveNames||(l.resolvedTypeReferenceDirectiveNames=new e.Map),l.resolvedTypeReferenceDirectiveNames.set(Q,ln)}e.setResolvedTypeReferenceDirective=k;function b(l,Q){return l.path===Q.path&&!l.prepend==!Q.prepend&&!l.circular==!Q.circular}e.projectReferenceIsEqualTo=b;function ie(l,Q){return l.isExternalLibraryImport===Q.isExternalLibraryImport&&l.extension===Q.extension&&l.resolvedFileName===Q.resolvedFileName&&l.originalPath===Q.originalPath&&q(l.packageId,Q.packageId)}e.moduleResolutionIsEqualTo=ie;function q(l,Q){return l===Q||!!l&&!!Q&&l.name===Q.name&&l.subModuleName===Q.subModuleName&&l.version===Q.version}function oe(l){var Q=l.name,ln=l.subModuleName,wn=l.version,Fr=ln?Q+"/"+ln:Q;return Fr+"@"+wn}e.packageIdToString=oe;function se(l,Q){return l.resolvedFileName===Q.resolvedFileName&&l.primary===Q.primary&&l.originalPath===Q.originalPath}e.typeDirectiveIsEqualTo=se;function w(l,Q,ln,wn){e.Debug.assert(l.length===Q.length);for(var Fr=0;Fr<l.length;Fr++){var zr=Q[Fr],oa=ln&&ln.get(l[Fr]),La=oa?!zr||!wn(oa,zr):zr;if(La)return!0}return!1}e.hasChangesInResolutions=w;function R(l){return ne(l),(l.flags&262144)!==0}e.containsParseError=R;function ne(l){if(!(l.flags&524288)){var Q=(l.flags&65536)!==0||e.forEachChild(l,R);Q&&(l.flags|=262144),l.flags|=524288}}function U(l){for(;l&&l.kind!==300;)l=l.parent;return l}e.getSourceFileOfNode=U;function C(l){return U(l.valueDeclaration||xe(l))}e.getSourceFileOfModule=C;function d(l){switch(l.kind){case 233:case 261:case 240:case 241:case 242:return!0}return!1}e.isStatementWithLocals=d;function G(l,Q){return e.Debug.assert(l>=0),e.getLineStarts(Q)[l]}e.getStartPositionOfLine=G;function g(l){var Q=U(l),ln=e.getLineAndCharacterOfPosition(Q,l.pos);return Q.fileName+"("+(ln.line+1)+","+(ln.character+1)+")"}e.nodePosToString=g;function p(l,Q){e.Debug.assert(l>=0);var ln=e.getLineStarts(Q),wn=l,Fr=Q.text;if(wn+1===ln.length)return Fr.length-1;var zr=ln[wn],oa=ln[wn+1]-1;for(e.Debug.assert(e.isLineBreak(Fr.charCodeAt(oa)));zr<=oa&&e.isLineBreak(Fr.charCodeAt(oa));)oa--;return oa}e.getEndLinePosition=p;function f(l,Q,ln){return!(ln&&ln(Q))&&!l.identifiers.has(Q)}e.isFileLevelUniqueName=f;function T(l){return l===void 0?!0:l.pos===l.end&&l.pos>=0&&l.kind!==1}e.nodeIsMissing=T;function m(l){return!T(l)}e.nodeIsPresent=m;function N(l,Q,ln){if(Q===void 0||Q.length===0)return l;for(var wn=0;wn<l.length&&ln(l[wn]);++wn);return l.splice.apply(l,Vr([wn,0],Q,!1)),l}function P(l,Q,ln){if(Q===void 0)return l;for(var wn=0;wn<l.length&&ln(l[wn]);++wn);return l.splice(wn,0,Q),l}function x(l){return Dr(l)||!!(qe(l)&1048576)}function M(l,Q){return N(l,Q,Dr)}e.insertStatementsAfterStandardPrologue=M;function me(l,Q){return N(l,Q,x)}e.insertStatementsAfterCustomPrologue=me;function z(l,Q){return P(l,Q,Dr)}e.insertStatementAfterStandardPrologue=z;function K(l,Q){return P(l,Q,x)}e.insertStatementAfterCustomPrologue=K;function I(l,Q,ln){if(l.charCodeAt(Q+1)===47&&Q+2<ln&&l.charCodeAt(Q+2)===47){var wn=l.substring(Q,ln);return!!(e.fullTripleSlashReferencePathRegEx.test(wn)||e.fullTripleSlashAMDReferencePathRegEx.test(wn)||qt.test(wn)||Cr.test(wn))}return!1}e.isRecognizedTripleSlashComment=I;function Ae(l,Q){return l.charCodeAt(Q+1)===42&&l.charCodeAt(Q+2)===33}e.isPinnedComment=Ae;function Oe(l,Q){var ln=new e.Map(Q.map(function(oa){return[""+e.getLineAndCharacterOfPosition(l,oa.range.end).line,oa]})),wn=new e.Map;return{getUnusedExpectations:Fr,markUsed:zr};function Fr(){return e.arrayFrom(ln.entries()).filter(function(oa){var La=oa[0],yi=oa[1];return yi.type===0&&!wn.get(La)}).map(function(oa){var La=oa[0],yi=oa[1];return yi})}function zr(oa){return ln.has(""+oa)?(wn.set(""+oa,!0),!0):!1}}e.createCommentDirectivesMap=Oe;function te(l,Q,ln){return T(l)?l.pos:e.isJSDocNode(l)||l.kind===11?e.skipTrivia((Q||U(l)).text,l.pos,!1,!0):ln&&e.hasJSDocNodes(l)?te(l.jsDoc[0],Q):l.kind===343&&l._children.length>0?te(l._children[0],Q,ln):e.skipTrivia((Q||U(l)).text,l.pos,!1,!1,We(l))}e.getTokenPosOfNode=te;function Se(l,Q){return T(l)||!l.decorators?te(l,Q):e.skipTrivia((Q||U(l)).text,l.decorators.end)}e.getNonDecoratorTokenPosOfNode=Se;function be(l,Q,ln){return ln===void 0&&(ln=!1),De(l.text,Q,ln)}e.getSourceTextOfNodeFromSourceFile=be;function Ce(l){return!!e.findAncestor(l,e.isJSDocTypeExpression)}function Be(l){return!!(e.isExportDeclaration(l)&&l.exportClause&&e.isNamespaceExport(l.exportClause)&&l.exportClause.name.escapedText==="default")}e.isExportNamespaceAsDefaultDeclaration=Be;function De(l,Q,ln){if(ln===void 0&&(ln=!1),T(Q))return"";var wn=l.substring(ln?Q.pos:e.skipTrivia(l,Q.pos),Q.end);return Ce(Q)&&(wn=wn.split(/\r\n|\n|\r/).map(function(Fr){return e.trimStringStart(Fr.replace(/^\s*\*/,""))}).join(`
`)),wn}e.getTextOfNodeFromSourceText=De;function en(l,Q){return Q===void 0&&(Q=!1),be(U(l),l,Q)}e.getTextOfNode=en;function fe(l){return l.pos}function Ne(l,Q){return e.binarySearch(l,Q,fe,e.compareValues)}e.indexOfNode=Ne;function qe(l){var Q=l.emitNode;return Q&&Q.flags||0}e.getEmitFlags=qe;function pe(){return{es2015:{Array:["find","findIndex","fill","copyWithin","entries","keys","values"],RegExp:["flags","sticky","unicode"],Reflect:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"],ArrayConstructor:["from","of"],ObjectConstructor:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],NumberConstructor:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"],Math:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],Map:["entries","keys","values"],Set:["entries","keys","values"],Promise:e.emptyArray,PromiseConstructor:["all","race","reject","resolve"],Symbol:["for","keyFor"],WeakMap:["entries","keys","values"],WeakSet:["entries","keys","values"],Iterator:e.emptyArray,AsyncIterator:e.emptyArray,String:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],StringConstructor:["fromCodePoint","raw"]},es2016:{Array:["includes"]},es2017:{Atomics:e.emptyArray,SharedArrayBuffer:e.emptyArray,String:["padStart","padEnd"],ObjectConstructor:["values","entries","getOwnPropertyDescriptors"],DateTimeFormat:["formatToParts"]},es2018:{Promise:["finally"],RegExpMatchArray:["groups"],RegExpExecArray:["groups"],RegExp:["dotAll"],Intl:["PluralRules"],AsyncIterable:e.emptyArray,AsyncIterableIterator:e.emptyArray,AsyncGenerator:e.emptyArray,AsyncGeneratorFunction:e.emptyArray},es2019:{Array:["flat","flatMap"],ObjectConstructor:["fromEntries"],String:["trimStart","trimEnd","trimLeft","trimRight"],Symbol:["description"]},es2020:{BigInt:e.emptyArray,BigInt64Array:e.emptyArray,BigUint64Array:e.emptyArray,PromiseConstructor:["allSettled"],SymbolConstructor:["matchAll"],String:["matchAll"],DataView:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],RelativeTimeFormat:["format","formatToParts","resolvedOptions"]},es2021:{PromiseConstructor:["any"],String:["replaceAll"]},esnext:{NumberFormat:["formatToParts"]}}}e.getScriptTargetFeatures=pe;var we;(function(l){l[l.None=0]="None",l[l.NeverAsciiEscape=1]="NeverAsciiEscape",l[l.JsxAttributeEscape=2]="JsxAttributeEscape",l[l.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",l[l.AllowNumericSeparator=8]="AllowNumericSeparator"})(we=e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}));function pn(l,Q,ln){var wn;if(Qe(l,ln))return be(Q,l);switch(l.kind){case 10:{var Fr=ln&2?_i:ln&1||qe(l)&16777216?pr:Er;return l.singleQuote?"'"+Fr(l.text,39)+"'":'"'+Fr(l.text,34)+'"'}case 14:case 15:case 16:case 17:{var Fr=ln&1||qe(l)&16777216?pr:Er,zr=(wn=l.rawText)!==null&&wn!==void 0?wn:wf(Fr(l.text,96));switch(l.kind){case 14:return"`"+zr+"`";case 15:return"`"+zr+"${";case 16:return"}"+zr+"${";case 17:return"}"+zr+"`"}break}case 8:case 9:return l.text;case 13:return ln&4&&l.isUnterminated?l.text+(l.text.charCodeAt(l.text.length-1)===92?" /":"/"):l.text}return e.Debug.fail("Literal kind '"+l.kind+"' not accounted for.")}e.getLiteralText=pn;function Qe(l,Q){return Jl(l)||!l.parent||Q&4&&l.isUnterminated?!1:e.isNumericLiteral(l)&&l.numericLiteralFlags&512?!!(Q&8):!e.isBigIntLiteral(l)}function Re(l){return e.isString(l)?'"'+Er(l)+'"':""+l}e.getTextOfConstantValue=Re;function He(l){return e.getBaseFileName(l).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}e.makeIdentifierFromModuleName=He;function Ln(l){return(e.getCombinedNodeFlags(l)&3)!==0||Un(l)}e.isBlockOrCatchScoped=Ln;function Un(l){var Q=Xc(l);return Q.kind===252&&Q.parent.kind===290}e.isCatchClauseVariableDeclarationOrBindingElement=Un;function fn(l){return e.isModuleDeclaration(l)&&(l.name.kind===10||Vn(l))}e.isAmbientModule=fn;function En(l){return e.isModuleDeclaration(l)&&l.name.kind===10}e.isModuleWithStringLiteralName=En;function i(l){return e.isModuleDeclaration(l)&&e.isStringLiteral(l.name)}e.isNonGlobalAmbientModule=i;function In(l){return e.isModuleDeclaration(l)||e.isIdentifier(l)}e.isEffectiveModuleDeclaration=In;function X(l){return rn(l.valueDeclaration)}e.isShorthandAmbientModuleSymbol=X;function rn(l){return!!l&&l.kind===259&&!l.body}function $n(l){return l.kind===300||l.kind===259||e.isFunctionLikeOrClassStaticBlockDeclaration(l)}e.isBlockScopedContainerTopLevel=$n;function Vn(l){return!!(l.flags&1024)}e.isGlobalScopeAugmentation=Vn;function le(l){return fn(l)&&Pe(l)}e.isExternalModuleAugmentation=le;function Pe(l){switch(l.parent.kind){case 300:return e.isExternalModule(l.parent);case 260:return fn(l.parent.parent)&&e.isSourceFile(l.parent.parent.parent)&&!e.isExternalModule(l.parent.parent.parent)}return!1}e.isModuleAugmentationExternal=Pe;function xe(l){var Q;return(Q=l.declarations)===null||Q===void 0?void 0:Q.find(function(ln){return!le(ln)&&!(e.isModuleDeclaration(ln)&&Vn(ln))})}e.getNonAugmentationDeclaration=xe;function Ze(l,Q){return e.isExternalModule(l)||Q.isolatedModules||Qd(Q)===e.ModuleKind.CommonJS&&!!l.commonJsModuleIndicator}e.isEffectiveExternalModule=Ze;function hn(l,Q){switch(l.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return l.isDeclarationFile?!1:ga(Q,"alwaysStrict")||e.startsWithUseStrict(l.statements)?!0:e.isExternalModule(l)||Q.isolatedModules?Qd(Q)>=e.ModuleKind.ES2015?!0:!Q.noImplicitUseStrict:!1}e.isEffectiveStrictModeSourceFile=hn;function Le(l,Q){switch(l.kind){case 300:case 261:case 290:case 259:case 240:case 241:case 242:case 169:case 167:case 170:case 171:case 254:case 211:case 212:case 165:case 168:return!0;case 233:return!e.isFunctionLikeOrClassStaticBlockDeclaration(Q)}return!1}e.isBlockScope=Le;function $e(l){switch(l.kind){case 333:case 340:case 318:return!0;default:return e.assertType(l),An(l)}}e.isDeclarationWithTypeParameters=$e;function An(l){switch(l.kind){case 172:case 173:case 166:case 174:case 177:case 178:case 312:case 255:case 224:case 256:case 257:case 339:case 254:case 167:case 169:case 170:case 171:case 211:case 212:return!0;default:return e.assertType(l),!1}}e.isDeclarationWithTypeParameterChildren=An;function Ue(l){switch(l.kind){case 264:case 263:return!0;default:return!1}}e.isAnyImportSyntax=Ue;function gn(l){switch(l.kind){case 264:case 263:case 235:case 255:case 254:case 259:case 257:case 256:case 258:return!0;default:return!1}}e.isLateVisibilityPaintedStatement=gn;function Wn(l){return ze(l)||e.isModuleDeclaration(l)||e.isImportTypeNode(l)||zn(l)}e.hasPossibleExternalModuleReference=Wn;function ze(l){return Ue(l)||e.isExportDeclaration(l)}e.isAnyImportOrReExport=ze;function Tn(l){return e.findAncestor(l.parent,function(Q){return Le(Q,Q.parent)})}e.getEnclosingBlockScopeContainer=Tn;function On(l,Q){for(var ln=Tn(l);ln;)Q(ln),ln=Tn(ln)}e.forEachEnclosingBlockScopeContainer=On;function ur(l){return!l||H(l)===0?"(Missing)":en(l)}e.declarationNameToString=ur;function hr(l){return l.declaration?ur(l.declaration.parameters[0].name):void 0}e.getNameFromIndexInfo=hr;function wr(l){return l.kind===160&&!Ks(l.expression)}e.isComputedNonLiteralName=wr;function Qr(l){switch(l.kind){case 79:case 80:return l.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(l.text);case 160:return Ks(l.expression)?e.escapeLeadingUnderscores(l.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(l)}}e.getTextOfPropertyName=Qr;function Ke(l){switch(l.kind){case 108:return"this";case 80:case 79:return H(l)===0?e.idText(l):en(l);case 159:return Ke(l.left)+"."+Ke(l.right);case 204:return e.isIdentifier(l.name)||e.isPrivateIdentifier(l.name)?Ke(l.expression)+"."+Ke(l.name):e.Debug.assertNever(l.name);case 306:return Ke(l.left)+Ke(l.right);default:return e.Debug.assertNever(l)}}e.entityNameToString=Ke;function jn(l,Q,ln,wn,Fr,zr){var oa=U(l);return Me(oa,l,Q,ln,wn,Fr,zr)}e.createDiagnosticForNode=jn;function Zn(l,Q,ln,wn,Fr,zr,oa){var La=e.skipTrivia(l.text,Q.pos);return n_(l,La,Q.end-La,ln,wn,Fr,zr,oa)}e.createDiagnosticForNodeArray=Zn;function Me(l,Q,ln,wn,Fr,zr,oa){var La=J(l,Q);return n_(l,La.start,La.length,ln,wn,Fr,zr,oa)}e.createDiagnosticForNodeInSourceFile=Me;function Mn(l,Q,ln){var wn=U(l),Fr=J(wn,l);return Xn(wn,Fr.start,Fr.length,Q,ln)}e.createDiagnosticForNodeFromMessageChain=Mn;function ar(l,Q,ln){e.Debug.assertGreaterThanOrEqual(Q,0),e.Debug.assertGreaterThanOrEqual(ln,0),l&&(e.Debug.assertLessThanOrEqual(Q,l.text.length),e.Debug.assertLessThanOrEqual(Q+ln,l.text.length))}function Xn(l,Q,ln,wn,Fr){return ar(l,Q,ln),{file:l,start:Q,length:ln,code:wn.code,category:wn.category,messageText:wn.next?wn:wn.messageText,relatedInformation:Fr}}e.createFileDiagnosticFromMessageChain=Xn;function yr(l,Q,ln){return{file:l,start:0,length:0,code:Q.code,category:Q.category,messageText:Q.next?Q:Q.messageText,relatedInformation:ln}}e.createDiagnosticForFileFromMessageChain=yr;function cr(l,Q,ln){return{file:l,start:Q.pos,length:Q.end-Q.pos,code:ln.code,category:ln.category,messageText:ln.message}}e.createDiagnosticForRange=cr;function Fe(l,Q){var ln=e.createScanner(l.languageVersion,!0,l.languageVariant,l.text,void 0,Q);ln.scan();var wn=ln.getTokenPos();return e.createTextSpanFromBounds(wn,ln.getTextPos())}e.getSpanOfTokenAtPosition=Fe;function Bn(l,Q){var ln=e.skipTrivia(l.text,Q.pos);if(Q.body&&Q.body.kind===233){var wn=e.getLineAndCharacterOfPosition(l,Q.body.pos).line,Fr=e.getLineAndCharacterOfPosition(l,Q.body.end).line;if(wn<Fr)return e.createTextSpan(ln,p(wn,l)-ln+1)}return e.createTextSpanFromBounds(ln,Q.end)}function J(l,Q){var ln=Q;switch(Q.kind){case 300:var wn=e.skipTrivia(l.text,0,!1);return wn===l.text.length?e.createTextSpan(0,0):Fe(l,wn);case 252:case 201:case 255:case 224:case 256:case 259:case 258:case 294:case 254:case 211:case 167:case 170:case 171:case 257:case 165:case 164:case 266:ln=Q.name;break;case 212:return Bn(l,Q);case 287:case 288:var Fr=e.skipTrivia(l.text,Q.pos),zr=Q.statements.length>0?Q.statements[0].pos:Q.end;return e.createTextSpanFromBounds(Fr,zr)}if(ln===void 0)return Fe(l,Q.pos);e.Debug.assert(!e.isJSDoc(ln));var oa=T(ln),La=oa||e.isJsxText(Q)?ln.pos:e.skipTrivia(l.text,ln.pos);return oa?(e.Debug.assert(La===ln.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(La===ln.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(La>=ln.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(La<=ln.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(La,ln.end)}e.getErrorSpanForNode=J;function Cn(l){return(l.externalModuleIndicator||l.commonJsModuleIndicator)!==void 0}e.isExternalOrCommonJsModule=Cn;function Gn(l){return l.scriptKind===6}e.isJsonSourceFile=Gn;function cn(l){return!!(e.getCombinedModifierFlags(l)&2048)}e.isEnumConst=cn;function Rn(l){return!!(e.getCombinedModifierFlags(l)&64&&!e.isParameterPropertyDeclaration(l,l.parent))}e.isDeclarationReadonly=Rn;function Ye(l){return!!(e.getCombinedNodeFlags(l)&2)}e.isVarConst=Ye;function xn(l){return!!(e.getCombinedNodeFlags(l)&1)}e.isLet=xn;function an(l){return l.kind===206&&l.expression.kind===106}e.isSuperCall=an;function zn(l){return l.kind===206&&l.expression.kind===100}e.isImportCall=zn;function ir(l){return e.isMetaProperty(l)&&l.keywordToken===100&&l.name.escapedText==="meta"}e.isImportMeta=ir;function gr(l){return e.isImportTypeNode(l)&&e.isLiteralTypeNode(l.argument)&&e.isStringLiteral(l.argument.literal)}e.isLiteralImportTypeNode=gr;function Dr(l){return l.kind===236&&l.expression.kind===10}e.isPrologueDirective=Dr;function qr(l){return!!(qe(l)&1048576)}e.isCustomPrologue=qr;function ft(l){return qr(l)&&e.isFunctionDeclaration(l)}e.isHoistedFunction=ft;function xt(l){return e.isIdentifier(l.name)&&!l.initializer}function Kr(l){return qr(l)&&e.isVariableStatement(l)&&e.every(l.declarationList.declarations,xt)}e.isHoistedVariableStatement=Kr;function dt(l,Q){return l.kind!==11?e.getLeadingCommentRanges(Q.text,l.pos):void 0}e.getLeadingCommentRangesOfNode=dt;function Ur(l,Q){var ln=l.kind===162||l.kind===161||l.kind===211||l.kind===212||l.kind===210||l.kind===252?e.concatenate(e.getTrailingCommentRanges(Q,l.pos),e.getLeadingCommentRanges(Q,l.pos)):e.getLeadingCommentRanges(Q,l.pos);return e.filter(ln,function(wn){return Q.charCodeAt(wn.pos+1)===42&&Q.charCodeAt(wn.pos+2)===42&&Q.charCodeAt(wn.pos+3)!==47})}e.getJSDocCommentRanges=Ur,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var qt=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Cr=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function Jt(l){if(175<=l.kind&&l.kind<=198)return!0;switch(l.kind){case 129:case 153:case 145:case 156:case 148:case 132:case 149:case 146:case 151:case 142:return!0;case 114:return l.parent.kind!==215;case 226:return!gc(l);case 161:return l.parent.kind===193||l.parent.kind===188;case 79:(l.parent.kind===159&&l.parent.right===l||l.parent.kind===204&&l.parent.name===l)&&(l=l.parent),e.Debug.assert(l.kind===79||l.kind===159||l.kind===204,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 159:case 204:case 108:{var Q=l.parent;if(Q.kind===179)return!1;if(Q.kind===198)return!Q.isTypeOf;if(175<=Q.kind&&Q.kind<=198)return!0;switch(Q.kind){case 226:return!gc(Q);case 161:return l===Q.constraint;case 339:return l===Q.constraint;case 165:case 164:case 162:case 252:return l===Q.type;case 254:case 211:case 212:case 169:case 167:case 166:case 170:case 171:return l===Q.type;case 172:case 173:case 174:return l===Q.type;case 209:return l===Q.type;case 206:case 207:return e.contains(Q.typeArguments,l);case 208:return!1}}}return!1}e.isPartOfTypeNode=Jt;function Ot(l,Q){for(;l;){if(l.kind===Q)return!0;l=l.parent}return!1}e.isChildOfNodeWithKind=Ot;function ri(l,Q){return ln(l);function ln(wn){switch(wn.kind){case 245:return Q(wn);case 261:case 233:case 237:case 238:case 239:case 240:case 241:case 242:case 246:case 247:case 287:case 288:case 248:case 250:case 290:return e.forEachChild(wn,ln)}}}e.forEachReturnStatement=ri;function Ya(l,Q){return ln(l);function ln(wn){switch(wn.kind){case 222:Q(wn);var Fr=wn.expression;Fr&&ln(Fr);return;case 258:case 256:case 259:case 257:return;default:if(e.isFunctionLike(wn)){if(wn.name&&wn.name.kind===160){ln(wn.name.expression);return}}else Jt(wn)||e.forEachChild(wn,ln)}}}e.forEachYieldExpression=Ya;function eo(l){return l&&l.kind===181?l.elementType:l&&l.kind===176?e.singleOrUndefined(l.typeArguments):void 0}e.getRestParameterElementType=eo;function za(l){switch(l.kind){case 256:case 255:case 224:case 180:return l.members;case 203:return l.properties}}e.getMembersOfDeclaration=za;function ua(l){if(l)switch(l.kind){case 201:case 294:case 162:case 291:case 165:case 164:case 292:case 252:return!0}return!1}e.isVariableLike=ua;function Ar(l){return ua(l)||e.isAccessor(l)}e.isVariableLikeOrAccessor=Ar;function at(l){return l.parent.kind===253&&l.parent.parent.kind===235}e.isVariableDeclarationInVariableStatement=at;function Hr(l){return e.isVariableDeclaration(l)?Ye(l)&&e.isIdentifier(l.name)&&at(l):e.isPropertyDeclaration(l)?Hd(l)&&mp(l):e.isPropertySignature(l)&&Hd(l)}e.isValidESSymbolDeclaration=Hr;function Wt(l){switch(l.kind){case 167:case 166:case 169:case 170:case 171:case 254:case 211:return!0}return!1}e.introducesArgumentsExoticObject=Wt;function Zt(l,Q){for(;;){if(Q&&Q(l),l.statement.kind!==248)return l.statement;l=l.statement}}e.unwrapInnermostStatementOfLabel=Zt;function Rr(l){return l&&l.kind===233&&e.isFunctionLike(l.parent)}e.isFunctionBlock=Rr;function Lr(l){return l&&l.kind===167&&l.parent.kind===203}e.isObjectLiteralMethod=Lr;function Xr(l){return l.kind===167&&(l.parent.kind===203||l.parent.kind===224)}e.isObjectLiteralOrClassExpressionMethod=Xr;function nt(l){return l&&l.kind===1}e.isIdentifierTypePredicate=nt;function vt(l){return l&&l.kind===0}e.isThisTypePredicate=vt;function or(l,Q,ln){return l.properties.filter(function(wn){if(wn.kind===291){var Fr=Qr(wn.name);return Q===Fr||!!ln&&ln===Fr}return!1})}e.getPropertyAssignment=or;function $t(l,Q,ln){return e.firstDefined(or(l,Q),function(wn){return e.isArrayLiteralExpression(wn.initializer)?e.find(wn.initializer.elements,function(Fr){return e.isStringLiteral(Fr)&&Fr.text===ln}):void 0})}e.getPropertyArrayElementValue=$t;function Va(l){if(l&&l.statements.length){var Q=l.statements[0].expression;return e.tryCast(Q,e.isObjectLiteralExpression)}}e.getTsConfigObjectLiteralExpression=Va;function li(l,Q,ln){return e.firstDefined(zi(l,Q),function(wn){return e.isArrayLiteralExpression(wn.initializer)?e.find(wn.initializer.elements,function(Fr){return e.isStringLiteral(Fr)&&Fr.text===ln}):void 0})}e.getTsConfigPropArrayElementValue=li;function zi(l,Q){var ln=Va(l);return ln?or(ln,Q):e.emptyArray}e.getTsConfigPropArray=zi;function Ma(l){return e.findAncestor(l.parent,e.isFunctionLike)}e.getContainingFunction=Ma;function di(l){return e.findAncestor(l.parent,e.isFunctionLikeDeclaration)}e.getContainingFunctionDeclaration=di;function Yi(l){return e.findAncestor(l.parent,e.isClassLike)}e.getContainingClass=Yi;function uo(l){return e.findAncestor(l.parent,function(Q){return e.isClassLike(Q)||e.isFunctionLike(Q)?"quit":e.isClassStaticBlockDeclaration(Q)})}e.getContainingClassStaticBlock=uo;function bi(l){return e.findAncestor(l.parent,e.isFunctionLikeOrClassStaticBlockDeclaration)}e.getContainingFunctionOrClassStaticBlock=bi;function Mi(l,Q){for(e.Debug.assert(l.kind!==300);;){if(l=l.parent,!l)return e.Debug.fail();switch(l.kind){case 160:if(e.isClassLike(l.parent.parent))return l;l=l.parent;break;case 163:l.parent.kind===162&&e.isClassElement(l.parent.parent)?l=l.parent.parent:e.isClassElement(l.parent)&&(l=l.parent);break;case 212:if(!Q)continue;case 254:case 211:case 259:case 168:case 165:case 164:case 167:case 166:case 169:case 170:case 171:case 172:case 173:case 174:case 258:case 300:return l}}}e.getThisContainer=Mi;function Go(l){e.isIdentifier(l)&&(e.isClassDeclaration(l.parent)||e.isFunctionDeclaration(l.parent))&&l.parent.name===l&&(l=l.parent);var Q=Mi(l,!0);return e.isSourceFile(Q)}e.isInTopLevelContext=Go;function io(l){var Q=Mi(l,!1);if(Q)switch(Q.kind){case 169:case 254:case 211:return Q}}e.getNewTargetContainer=io;function wi(l,Q){for(;;){if(l=l.parent,!l)return l;switch(l.kind){case 160:l=l.parent;break;case 254:case 211:case 212:if(!Q)continue;case 165:case 164:case 167:case 166:case 169:case 170:case 171:case 168:return l;case 163:l.parent.kind===162&&e.isClassElement(l.parent.parent)?l=l.parent.parent:e.isClassElement(l.parent)&&(l=l.parent);break}}}e.getSuperContainer=wi;function Ho(l){if(l.kind===211||l.kind===212){for(var Q=l,ln=l.parent;ln.kind===210;)Q=ln,ln=ln.parent;if(ln.kind===206&&ln.expression===Q)return ln}}e.getImmediatelyInvokedFunctionExpression=Ho;function qi(l){return l.kind===106||Qi(l)}e.isSuperOrSuperProperty=qi;function Qi(l){var Q=l.kind;return(Q===204||Q===205)&&l.expression.kind===106}e.isSuperProperty=Qi;function as(l){var Q=l.kind;return(Q===204||Q===205)&&l.expression.kind===108}e.isThisProperty=as;function gs(l){var Q;return!!l&&e.isVariableDeclaration(l)&&((Q=l.initializer)===null||Q===void 0?void 0:Q.kind)===108}e.isThisInitializedDeclaration=gs;function Da(l){return!!l&&(e.isShorthandPropertyAssignment(l)||e.isPropertyAssignment(l))&&e.isBinaryExpression(l.parent.parent)&&l.parent.parent.operatorToken.kind===63&&l.parent.parent.right.kind===108}e.isThisInitializedObjectBindingExpression=Da;function $a(l){switch(l.kind){case 176:return l.typeName;case 226:return sc(l.expression)?l.expression:void 0;case 79:case 159:return l}}e.getEntityNameFromTypeNode=$a;function Ni(l){switch(l.kind){case 208:return l.tag;case 278:case 277:return l.tagName;default:return l.expression}}e.getInvokedExpression=Ni;function vo(l,Q,ln){if(e.isNamedDeclaration(l)&&e.isPrivateIdentifier(l.name))return!1;switch(l.kind){case 255:return!0;case 165:return Q.kind===255;case 170:case 171:case 167:return l.body!==void 0&&Q.kind===255;case 162:return Q.body!==void 0&&(Q.kind===169||Q.kind===167||Q.kind===171)&&ln.kind===255}return!1}e.nodeCanBeDecorated=vo;function Io(l,Q,ln){return l.decorators!==void 0&&vo(l,Q,ln)}e.nodeIsDecorated=Io;function Bo(l,Q,ln){return Io(l,Q,ln)||Uo(l,Q)}e.nodeOrChildIsDecorated=Bo;function Uo(l,Q){switch(l.kind){case 255:return e.some(l.members,function(ln){return Bo(ln,l,Q)});case 167:case 171:case 169:return e.some(l.parameters,function(ln){return Io(ln,l,Q)});default:return!1}}e.childIsDecorated=Uo;function cs(l){if(Io(l))return!0;var Q=Gf(l);return!!Q&&Uo(Q,l)}e.classOrConstructorParameterIsDecorated=cs;function us(l){var Q=l.parent;return Q.kind===278||Q.kind===277||Q.kind===279?Q.tagName===l:!1}e.isJSXTagName=us;function Jo(l){switch(l.kind){case 106:case 104:case 110:case 95:case 13:case 202:case 203:case 204:case 205:case 206:case 207:case 208:case 227:case 209:case 228:case 210:case 211:case 224:case 212:case 215:case 213:case 214:case 217:case 218:case 219:case 220:case 223:case 221:case 225:case 276:case 277:case 280:case 222:case 216:case 229:return!0;case 159:for(;l.parent.kind===159;)l=l.parent;return l.parent.kind===179||e.isJSDocLinkLike(l.parent)||e.isJSDocNameReference(l.parent)||e.isJSDocMemberName(l.parent)||us(l);case 306:for(;e.isJSDocMemberName(l.parent);)l=l.parent;return l.parent.kind===179||e.isJSDocLinkLike(l.parent)||e.isJSDocNameReference(l.parent)||e.isJSDocMemberName(l.parent)||us(l);case 79:if(l.parent.kind===179||e.isJSDocLinkLike(l.parent)||e.isJSDocNameReference(l.parent)||e.isJSDocMemberName(l.parent)||us(l))return!0;case 8:case 9:case 10:case 14:case 108:return is(l);default:return!1}}e.isExpressionNode=Jo;function is(l){var Q=l.parent;switch(Q.kind){case 252:case 162:case 165:case 164:case 294:case 291:case 201:return Q.initializer===l;case 236:case 237:case 238:case 239:case 245:case 246:case 247:case 287:case 249:return Q.expression===l;case 240:var ln=Q;return ln.initializer===l&&ln.initializer.kind!==253||ln.condition===l||ln.incrementor===l;case 241:case 242:var wn=Q;return wn.initializer===l&&wn.initializer.kind!==253||wn.expression===l;case 209:case 227:return l===Q.expression;case 231:return l===Q.expression;case 160:return l===Q.expression;case 163:case 286:case 285:case 293:return!0;case 226:return Q.expression===l&&gc(Q);case 292:return Q.objectAssignmentInitializer===l;default:return Jo(Q)}}e.isInExpressionContext=is;function mn(l){for(;l.kind===159||l.kind===79;)l=l.parent;return l.kind===179}e.isPartOfTypeQuery=mn;function _r(l){return e.isNamespaceExport(l)&&!!l.parent.moduleSpecifier}e.isNamespaceReexportDeclaration=_r;function $r(l){return l.kind===263&&l.moduleReference.kind===275}e.isExternalModuleImportEqualsDeclaration=$r;function ia(l){return e.Debug.assert($r(l)),l.moduleReference.expression}e.getExternalModuleImportEqualsDeclarationExpression=ia;function ti(l){return vr(l)&&_(l.initializer).arguments[0]}e.getExternalModuleRequireArgument=ti;function va(l){return l.kind===263&&l.moduleReference.kind!==275}e.isInternalModuleImportEqualsDeclaration=va;function Ve(l){return dn(l)}e.isSourceFileJS=Ve;function ce(l){return!dn(l)}e.isSourceFileNotJS=ce;function dn(l){return!!l&&!!(l.flags&131072)}e.isInJSFile=dn;function j(l){return!!l&&!!(l.flags&33554432)}e.isInJsonFile=j;function Ie(l){return!Gn(l)}e.isSourceFileNotJson=Ie;function We(l){return!!l&&!!(l.flags&4194304)}e.isInJSDoc=We;function sn(l){return e.isTypeReferenceNode(l)&&e.isIdentifier(l.typeName)&&l.typeName.escapedText==="Object"&&l.typeArguments&&l.typeArguments.length===2&&(l.typeArguments[0].kind===148||l.typeArguments[0].kind===145)}e.isJSDocIndexSignature=sn;function Hn(l,Q){if(l.kind!==206)return!1;var ln=l,wn=ln.expression,Fr=ln.arguments;if(wn.kind!==79||wn.escapedText!=="require"||Fr.length!==1)return!1;var zr=Fr[0];return!Q||e.isStringLiteralLike(zr)}e.isRequireCall=Hn;function vr(l){return l.kind===201&&(l=l.parent.parent),e.isVariableDeclaration(l)&&!!l.initializer&&Hn(_(l.initializer),!0)}e.isRequireVariableDeclaration=vr;function Sr(l){return e.isVariableStatement(l)&&l.declarationList.declarations.length>0&&e.every(l.declarationList.declarations,function(Q){return vr(Q)})}e.isRequireVariableStatement=Sr;function ot(l){return l===39||l===34}e.isSingleOrDoubleQuote=ot;function Et(l,Q){return be(Q,l).charCodeAt(0)===34}e.isStringDoubleQuoted=Et;function ra(l){return e.isBinaryExpression(l)||zl(l)||e.isIdentifier(l)||e.isCallExpression(l)}e.isAssignmentDeclaration=ra;function Na(l){return dn(l)&&l.initializer&&e.isBinaryExpression(l.initializer)&&(l.initializer.operatorToken.kind===56||l.initializer.operatorToken.kind===60)&&l.name&&sc(l.name)&&Zo(l.name,l.initializer.left)?l.initializer.right:l.initializer}e.getEffectiveInitializer=Na;function ei(l){var Q=Na(l);return Q&&ho(Q,Gu(l.name))}e.getDeclaredExpandoInitializer=ei;function Li(l,Q){return e.forEach(l.properties,function(ln){return e.isPropertyAssignment(ln)&&e.isIdentifier(ln.name)&&ln.name.escapedText==="value"&&ln.initializer&&ho(ln.initializer,Q)})}function Zi(l){if(l&&l.parent&&e.isBinaryExpression(l.parent)&&l.parent.operatorToken.kind===63){var Q=Gu(l.parent.left);return ho(l.parent.right,Q)||vs(l.parent.left,l.parent.right,Q)}if(l&&e.isCallExpression(l)&&jl(l)){var ln=Li(l.arguments[2],l.arguments[1].text==="prototype");if(ln)return ln}}e.getAssignedExpandoInitializer=Zi;function ho(l,Q){if(e.isCallExpression(l)){var ln=Pi(l.expression);return ln.kind===211||ln.kind===212?l:void 0}if(l.kind===211||l.kind===224||l.kind===212||e.isObjectLiteralExpression(l)&&(l.properties.length===0||Q))return l}e.getExpandoInitializer=ho;function vs(l,Q,ln){var wn=e.isBinaryExpression(Q)&&(Q.operatorToken.kind===56||Q.operatorToken.kind===60)&&ho(Q.right,ln);if(wn&&Zo(l,Q.left))return wn}function Ao(l){var Q=e.isVariableDeclaration(l.parent)?l.parent.name:e.isBinaryExpression(l.parent)&&l.parent.operatorToken.kind===63?l.parent.left:void 0;return Q&&ho(l.right,Gu(Q))&&sc(Q)&&Zo(Q,l.left)}e.isDefaultedExpandoInitializer=Ao;function oo(l){if(e.isBinaryExpression(l.parent)){var Q=(l.parent.operatorToken.kind===56||l.parent.operatorToken.kind===60)&&e.isBinaryExpression(l.parent.parent)?l.parent.parent:l.parent;if(Q.operatorToken.kind===63&&e.isIdentifier(Q.left))return Q.left}else if(e.isVariableDeclaration(l.parent))return l.parent.name}e.getNameOfExpando=oo;function Zo(l,Q){if(Qu(l)&&Qu(Q))return gf(l)===gf(Q);if(e.isIdentifier(l)&&Hl(Q)&&(Q.expression.kind===108||e.isIdentifier(Q.expression)&&(Q.expression.escapedText==="window"||Q.expression.escapedText==="self"||Q.expression.escapedText==="global"))){var ln=Te(Q);return e.isPrivateIdentifier(ln)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),Zo(l,ln)}return Hl(l)&&Hl(Q)?ca(l)===ca(Q)&&Zo(l.expression,Q.expression):!1}e.isSameEntityName=Zo;function cl(l){for(;Wf(l,!0);)l=l.right;return l}e.getRightMostAssignedExpression=cl;function ws(l){return e.isIdentifier(l)&&l.escapedText==="exports"}e.isExportsIdentifier=ws;function vl(l){return e.isIdentifier(l)&&l.escapedText==="module"}e.isModuleIdentifier=vl;function ul(l){return(e.isPropertyAccessExpression(l)||Hs(l))&&vl(l.expression)&&ca(l)==="exports"}e.isModuleExportsAccessExpression=ul;function ps(l){var Q=Fn(l);return Q===5||dn(l)?Q:0}e.getAssignmentDeclarationKind=ps;function jl(l){return e.length(l.arguments)===3&&e.isPropertyAccessExpression(l.expression)&&e.isIdentifier(l.expression.expression)&&e.idText(l.expression.expression)==="Object"&&e.idText(l.expression.name)==="defineProperty"&&Ks(l.arguments[1])&&Kn(l.arguments[0],!0)}e.isBindableObjectDefinePropertyCall=jl;function Hl(l){return e.isPropertyAccessExpression(l)||Hs(l)}e.isLiteralLikeAccess=Hl;function Hs(l){return e.isElementAccessExpression(l)&&Ks(l.argumentExpression)}e.isLiteralLikeElementAccess=Hs;function Fs(l,Q){return e.isPropertyAccessExpression(l)&&(!Q&&l.expression.kind===108||e.isIdentifier(l.name)&&Kn(l.expression,!0))||ge(l,Q)}e.isBindableStaticAccessExpression=Fs;function ge(l,Q){return Hs(l)&&(!Q&&l.expression.kind===108||sc(l.expression)||Fs(l.expression,!0))}e.isBindableStaticElementAccessExpression=ge;function Kn(l,Q){return sc(l)||Fs(l,Q)}e.isBindableStaticNameExpression=Kn;function Te(l){return e.isPropertyAccessExpression(l)?l.name:l.argumentExpression}e.getNameOrArgument=Te;function Fn(l){if(e.isCallExpression(l)){if(!jl(l))return 0;var Q=l.arguments[0];return ws(Q)||ul(Q)?8:Fs(Q)&&ca(Q)==="prototype"?9:7}return l.operatorToken.kind!==63||!zl(l.left)||et(cl(l))?0:Kn(l.left.expression,!0)&&ca(l.left)==="prototype"&&e.isObjectLiteralExpression(To(l))?6:ha(l.left)}function et(l){return e.isVoidExpression(l)&&e.isNumericLiteral(l.expression)&&l.expression.text==="0"}function Xt(l){if(e.isPropertyAccessExpression(l))return l.name;var Q=Pi(l.argumentExpression);return e.isNumericLiteral(Q)||e.isStringLiteralLike(Q)?Q:l}e.getElementOrPropertyAccessArgumentExpressionOrName=Xt;function ca(l){var Q=Xt(l);if(Q){if(e.isIdentifier(Q))return Q.escapedText;if(e.isStringLiteralLike(Q)||e.isNumericLiteral(Q))return e.escapeLeadingUnderscores(Q.text)}}e.getElementOrPropertyAccessName=ca;function ha(l){if(l.expression.kind===108)return 4;if(ul(l))return 2;if(Kn(l.expression,!0)){if(Gu(l.expression))return 3;for(var Q=l;!e.isIdentifier(Q.expression);)Q=Q.expression;var ln=Q.expression;if((ln.escapedText==="exports"||ln.escapedText==="module"&&ca(Q)==="exports")&&Fs(l))return 1;if(Kn(l,!0)||e.isElementAccessExpression(l)&&_f(l))return 5}return 0}e.getAssignmentDeclarationPropertyAccessKind=ha;function To(l){for(;e.isBinaryExpression(l.right);)l=l.right;return l.right}e.getInitializerOfBinaryExpression=To;function Pn(l){return e.isBinaryExpression(l)&&ps(l)===3}e.isPrototypePropertyAssignment=Pn;function Vo(l){return dn(l)&&l.parent&&l.parent.kind===236&&(!e.isElementAccessExpression(l)||Hs(l))&&!!e.getJSDocTypeTag(l.parent)}e.isSpecialPropertyDeclaration=Vo;function Ko(l,Q){var ln=l.valueDeclaration;(!ln||!(Q.flags&8388608&&!(ln.flags&8388608))&&ra(ln)&&!ra(Q)||ln.kind!==Q.kind&&In(ln))&&(l.valueDeclaration=Q)}e.setValueDeclaration=Ko;function hs(l){if(!l||!l.valueDeclaration)return!1;var Q=l.valueDeclaration;return Q.kind===254||e.isVariableDeclaration(Q)&&Q.initializer&&e.isFunctionLike(Q.initializer)}e.isFunctionSymbol=hs;function hl(l){var Q,ln,wn;switch(l.kind){case 252:return l.initializer.arguments[0].text;case 264:return(Q=e.tryCast(l.moduleSpecifier,e.isStringLiteralLike))===null||Q===void 0?void 0:Q.text;case 263:return(wn=e.tryCast((ln=e.tryCast(l.moduleReference,e.isExternalModuleReference))===null||ln===void 0?void 0:ln.expression,e.isStringLiteralLike))===null||wn===void 0?void 0:wn.text;default:e.Debug.assertNever(l)}}e.tryGetModuleSpecifierFromDeclaration=hl;function Bi(l){return Js(l)||e.Debug.failBadSyntaxKind(l.parent)}e.importFromModuleSpecifier=Bi;function Js(l){switch(l.parent.kind){case 264:case 270:return l.parent;case 275:return l.parent.parent;case 206:return zn(l.parent)||Hn(l.parent,!1)?l.parent:void 0;case 194:return e.Debug.assert(e.isStringLiteral(l)),e.tryCast(l.parent.parent,e.isImportTypeNode);default:return}}e.tryGetImportFromModuleSpecifier=Js;function rl(l){switch(l.kind){case 264:case 270:return l.moduleSpecifier;case 263:return l.moduleReference.kind===275?l.moduleReference.expression:void 0;case 198:return gr(l)?l.argument.literal:void 0;case 206:return l.arguments[0];case 259:return l.name.kind===10?l.name:void 0;default:return e.Debug.assertNever(l)}}e.getExternalModuleName=rl;function Ol(l){switch(l.kind){case 264:return l.importClause&&e.tryCast(l.importClause.namedBindings,e.isNamespaceImport);case 263:return l;case 270:return l.exportClause&&e.tryCast(l.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(l)}}e.getNamespaceDeclarationNode=Ol;function nc(l){return l.kind===264&&!!l.importClause&&!!l.importClause.name}e.isDefaultImport=nc;function Sc(l,Q){if(l.name){var ln=Q(l);if(ln)return ln}if(l.namedBindings){var ln=e.isNamespaceImport(l.namedBindings)?Q(l.namedBindings):e.forEach(l.namedBindings.elements,Q);if(ln)return ln}}e.forEachImportClauseDeclaration=Sc;function Zl(l){if(l)switch(l.kind){case 162:case 167:case 166:case 292:case 291:case 165:case 164:return l.questionToken!==void 0}return!1}e.hasQuestionToken=Zl;function du(l){var Q=e.isJSDocFunctionType(l)?e.firstOrUndefined(l.parameters):void 0,ln=e.tryCast(Q&&Q.name,e.isIdentifier);return!!ln&&ln.escapedText==="new"}e.isJSDocConstructSignature=du;function dc(l){return l.kind===340||l.kind===333||l.kind===334}e.isJSDocTypeAlias=dc;function $l(l){return dc(l)||e.isTypeAliasDeclaration(l)}e.isTypeAlias=$l;function kn(l){return e.isExpressionStatement(l)&&e.isBinaryExpression(l.expression)&&l.expression.operatorToken.kind===63?cl(l.expression):void 0}function lr(l){return e.isExpressionStatement(l)&&e.isBinaryExpression(l.expression)&&ps(l.expression)!==0&&e.isBinaryExpression(l.expression.right)&&(l.expression.right.operatorToken.kind===56||l.expression.right.operatorToken.kind===60)?l.expression.right.right:void 0}function Or(l){switch(l.kind){case 235:var Q=st(l);return Q&&Q.initializer;case 165:return l.initializer;case 291:return l.initializer}}e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Or;function st(l){return e.isVariableStatement(l)?e.firstOrUndefined(l.declarationList.declarations):void 0}e.getSingleVariableOfVariableStatement=st;function yt(l){return e.isModuleDeclaration(l)&&l.body&&l.body.kind===259?l.body:void 0}function Tt(l,Q){var ln;ua(l)&&e.hasInitializer(l)&&e.hasJSDocNodes(l.initializer)&&(ln=e.append(ln,e.last(l.initializer.jsDoc)));for(var wn=l;wn&&wn.parent;){if(e.hasJSDocNodes(wn)&&(ln=e.append(ln,e.last(wn.jsDoc))),wn.kind===162){ln=e.addRange(ln,(Q?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(wn));break}if(wn.kind===161){ln=e.addRange(ln,(Q?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(wn));break}wn=Ut(wn)}return ln||e.emptyArray}e.getJSDocCommentsAndTags=Tt;function Ut(l){var Q=l.parent;if(Q.kind===291||Q.kind===269||Q.kind===165||Q.kind===236&&l.kind===204||Q.kind===245||yt(Q)||e.isBinaryExpression(l)&&l.operatorToken.kind===63)return Q;if(Q.parent&&(st(Q.parent)===l||e.isBinaryExpression(Q)&&Q.operatorToken.kind===63))return Q.parent;if(Q.parent&&Q.parent.parent&&(st(Q.parent.parent)||Or(Q.parent.parent)===l||lr(Q.parent.parent)))return Q.parent.parent}e.getNextJSDocCommentLocation=Ut;function ea(l){if(l.symbol)return l.symbol;if(e.isIdentifier(l.name)){var Q=l.name.escapedText,ln=zt(l);if(ln){var wn=e.find(ln.parameters,function(Fr){return Fr.name.kind===79&&Fr.name.escapedText===Q});return wn&&wn.symbol}}}e.getParameterSymbolFromJSDoc=ea;function zt(l){var Q=Ii(l);return Q&&e.isFunctionLike(Q)?Q:void 0}e.getHostSignatureFromJSDoc=zt;function Ii(l){var Q=ba(l);if(Q)return lr(Q)||kn(Q)||Or(Q)||st(Q)||yt(Q)||Q}e.getEffectiveJSDocHost=Ii;function ba(l){var Q=wa(l);if(Q){var ln=Q.parent;if(ln&&ln.jsDoc&&Q===e.lastOrUndefined(ln.jsDoc))return ln}}e.getJSDocHost=ba;function wa(l){return e.findAncestor(l.parent,e.isJSDoc)}e.getJSDocRoot=wa;function Ui(l){var Q=l.name.escapedText,ln=l.parent.parent.parent.typeParameters;return ln&&e.find(ln,function(wn){return wn.name.escapedText===Q})}e.getTypeParameterFromJsDoc=Ui;function Fi(l){var Q=e.lastOrUndefined(l.parameters);return!!Q&&he(Q)}e.hasRestParameter=Fi;function he(l){var Q=e.isJSDocParameterTag(l)?l.typeExpression&&l.typeExpression.type:l.type;return l.dotDotDotToken!==void 0||!!Q&&Q.kind===313}e.isRestParameter=he;function un(l){return!!l.typeArguments}e.hasTypeArguments=un;var Sn;(function(l){l[l.None=0]="None",l[l.Definite=1]="Definite",l[l.Compound=2]="Compound"})(Sn=e.AssignmentKind||(e.AssignmentKind={}));function Tr(l){for(var Q=l.parent;;){switch(Q.kind){case 219:var ln=Q.operatorToken.kind;return Vf(ln)&&Q.left===l?ln===63||Rc(ln)?1:2:0;case 217:case 218:var wn=Q.operator;return wn===45||wn===46?2:0;case 241:case 242:return Q.initializer===l?1:0;case 210:case 202:case 223:case 228:l=Q;break;case 293:l=Q.parent;break;case 292:if(Q.name!==l)return 0;l=Q.parent;break;case 291:if(Q.name===l)return 0;l=Q.parent;break;default:return 0}Q=l.parent}}e.getAssignmentTargetKind=Tr;function Wr(l){return Tr(l)!==0}e.isAssignmentTarget=Wr;function Yt(l){switch(l.kind){case 233:case 235:case 246:case 237:case 247:case 261:case 287:case 288:case 248:case 240:case 241:case 242:case 238:case 239:case 250:case 290:return!0}return!1}e.isNodeWithPossibleHoistedDeclaration=Yt;function Ia(l){return e.isFunctionExpression(l)||e.isArrowFunction(l)||e.isMethodOrAccessor(l)||e.isFunctionDeclaration(l)||e.isConstructorDeclaration(l)}e.isValueSignatureDeclaration=Ia;function hi(l,Q){for(;l&&l.kind===Q;)l=l.parent;return l}function yo(l){return hi(l,189)}e.walkUpParenthesizedTypes=yo;function Oo(l){return hi(l,210)}e.walkUpParenthesizedExpressions=Oo;function ys(l){for(var Q;l&&l.kind===189;)Q=l,l=l.parent;return[Q,l]}e.walkUpParenthesizedTypesAndGetParentAndChild=ys;function Pi(l){return e.skipOuterExpressions(l,1)}e.skipParentheses=Pi;function Po(l){return l.kind!==204&&l.kind!==205?!1:(l=Oo(l.parent),l&&l.kind===213)}e.isDeleteTarget=Po;function Jn(l,Q){for(;l;){if(l===Q)return!0;l=l.parent}return!1}e.isNodeDescendantOf=Jn;function zo(l){return!e.isSourceFile(l)&&!e.isBindingPattern(l)&&e.isDeclaration(l.parent)&&l.parent.name===l}e.isDeclarationName=zo;function Es(l){var Q=l.parent;switch(l.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(Q))return Q.parent;case 79:if(e.isDeclaration(Q))return Q.name===l?Q:void 0;if(e.isQualifiedName(Q)){var ln=Q.parent;return e.isJSDocParameterTag(ln)&&ln.name===Q?ln:void 0}else{var wn=Q.parent;return e.isBinaryExpression(wn)&&ps(wn)!==0&&(wn.left.symbol||wn.symbol)&&e.getNameOfDeclaration(wn)===l?wn:void 0}case 80:return e.isDeclaration(Q)&&Q.name===l?Q:void 0;default:return}}e.getDeclarationFromName=Es;function Rs(l){return Ks(l)&&l.parent.kind===160&&e.isDeclaration(l.parent.parent)}e.isLiteralComputedPropertyDeclarationName=Rs;function pu(l){var Q=l.parent;switch(Q.kind){case 165:case 164:case 167:case 166:case 170:case 171:case 294:case 291:case 204:return Q.name===l;case 159:return Q.right===l;case 201:case 268:return Q.propertyName===l;case 273:case 283:return!0}return!1}e.isIdentifierName=pu;function ol(l){return l.kind===263||l.kind===262||l.kind===265&&!!l.name||l.kind===266||l.kind===272||l.kind===268||l.kind===273||l.kind===269&&tl(l)||e.isBinaryExpression(l)&&ps(l)===2&&tl(l)||e.isPropertyAccessExpression(l)&&e.isBinaryExpression(l.parent)&&l.parent.left===l&&l.parent.operatorToken.kind===63&&fo(l.parent.right)||l.kind===292||l.kind===291&&fo(l.initializer)}e.isAliasSymbolDeclaration=ol;function mu(l){switch(l.parent.kind){case 265:case 268:case 266:case 273:case 269:case 263:return l.parent;case 159:do l=l.parent;while(l.parent.kind===159);return mu(l)}}e.getAliasDeclarationFromName=mu;function fo(l){return sc(l)||e.isClassExpression(l)}e.isAliasableExpression=fo;function tl(l){var Q=zc(l);return fo(Q)}e.exportAssignmentIsAlias=tl;function zc(l){return e.isExportAssignment(l)?l.expression:l.right}e.getExportAssignmentExpression=zc;function _u(l){return l.kind===292?l.name:l.kind===291?l.initializer:l.parent.right}e.getPropertyAssignmentAliasLikeExpression=_u;function qc(l){var Q=gu(l);if(Q&&dn(l)){var ln=e.getJSDocAugmentsTag(l);if(ln)return ln.class}return Q}e.getEffectiveBaseTypeNode=qc;function gu(l){var Q=Pu(l.heritageClauses,94);return Q&&Q.types.length>0?Q.types[0]:void 0}e.getClassExtendsHeritageElement=gu;function Xu(l){if(dn(l))return e.getJSDocImplementsTags(l).map(function(ln){return ln.class});var Q=Pu(l.heritageClauses,117);return Q==null?void 0:Q.types}e.getEffectiveImplementsTypeNodes=Xu;function fd(l){return e.isInterfaceDeclaration(l)?ic(l)||e.emptyArray:e.isClassLike(l)&&e.concatenate(e.singleElementArray(qc(l)),Xu(l))||e.emptyArray}e.getAllSuperTypeNodes=fd;function ic(l){var Q=Pu(l.heritageClauses,94);return Q?Q.types:void 0}e.getInterfaceBaseTypeNodes=ic;function Pu(l,Q){if(l)for(var ln=0,wn=l;ln<wn.length;ln++){var Fr=wn[ln];if(Fr.token===Q)return Fr}}e.getHeritageClause=Pu;function Bd(l,Q){for(;l;){if(l.kind===Q)return l;l=l.parent}}e.getAncestor=Bd;function Za(l){return 81<=l&&l<=158}e.isKeyword=Za;function da(l){return 126<=l&&l<=158}e.isContextualKeyword=da;function pc(l){return Za(l)&&!da(l)}e.isNonContextualKeyword=pc;function $o(l){return 117<=l&&l<=125}e.isFutureReservedKeyword=$o;function Yu(l){var Q=e.stringToToken(l);return Q!==void 0&&pc(Q)}e.isStringANonContextualKeyword=Yu;function Dc(l){var Q=e.stringToToken(l);return Q!==void 0&&Za(Q)}e.isStringAKeyword=Dc;function xf(l){var Q=l.originalKeywordKind;return!!Q&&!da(Q)}e.isIdentifierANonContextualKeyword=xf;function es(l){return 2<=l&&l<=7}e.isTrivia=es;var If;(function(l){l[l.Normal=0]="Normal",l[l.Generator=1]="Generator",l[l.Async=2]="Async",l[l.Invalid=4]="Invalid",l[l.AsyncGenerator=3]="AsyncGenerator"})(If=e.FunctionFlags||(e.FunctionFlags={}));function Qs(l){if(!l)return 4;var Q=0;switch(l.kind){case 254:case 211:case 167:l.asteriskToken&&(Q|=1);case 212:el(l,256)&&(Q|=2);break}return l.body||(Q|=4),Q}e.getFunctionFlags=Qs;function Gc(l){switch(l.kind){case 254:case 211:case 212:case 167:return l.body!==void 0&&l.asteriskToken===void 0&&el(l,256)}return!1}e.isAsyncFunction=Gc;function Ks(l){return e.isStringLiteralLike(l)||e.isNumericLiteral(l)}e.isStringOrNumericLiteralLike=Ks;function rc(l){return e.isPrefixUnaryExpression(l)&&(l.operator===39||l.operator===40)&&e.isNumericLiteral(l.operand)}e.isSignedNumericLiteral=rc;function mf(l){var Q=e.getNameOfDeclaration(l);return!!Q&&_f(Q)}e.hasDynamicName=mf;function _f(l){if(!(l.kind===160||l.kind===205))return!1;var Q=e.isElementAccessExpression(l)?Pi(l.argumentExpression):l.expression;return!Ks(Q)&&!rc(Q)}e.isDynamicName=_f;function vu(l){switch(l.kind){case 79:case 80:return l.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(l.text);case 160:var Q=l.expression;return Ks(Q)?e.escapeLeadingUnderscores(Q.text):rc(Q)?Q.operator===40?e.tokenToString(Q.operator)+Q.operand.text:Q.operand.text:void 0;default:return e.Debug.assertNever(l)}}e.getPropertyNameForPropertyNameNode=vu;function Qu(l){switch(l.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}e.isPropertyNameLiteral=Qu;function gf(l){return e.isMemberName(l)?e.idText(l):l.text}e.getTextOfIdentifierOrLiteral=gf;function Nf(l){return e.isMemberName(l)?l.escapedText:e.escapeLeadingUnderscores(l.text)}e.getEscapedTextOfIdentifierOrLiteral=Nf;function kf(l){return"__@"+e.getSymbolId(l)+"@"+l.escapedName}e.getPropertyNameForUniqueESSymbol=kf;function dd(l,Q){return"__#"+e.getSymbolId(l)+"@"+Q}e.getSymbolNameForPrivateIdentifier=dd;function pd(l){return e.startsWith(l.escapedName,"__@")}e.isKnownSymbol=pd;function Rf(l){return e.startsWith(l.escapedName,"__#")}e.isPrivateIdentifierSymbol=Rf;function Of(l){return l.kind===79&&l.escapedText==="Symbol"}e.isESSymbolIdentifier=Of;function md(l){return l.escapedText==="push"||l.escapedText==="unshift"}e.isPushOrUnshiftIdentifier=md;function Zu(l){var Q=Xc(l);return Q.kind===162}e.isParameterDeclaration=Zu;function Xc(l){for(;l.kind===201;)l=l.parent.parent;return l}e.getRootDeclaration=Xc;function Pf(l){var Q=l.kind;return Q===169||Q===211||Q===254||Q===212||Q===167||Q===170||Q===171||Q===259||Q===300}e.nodeStartsNewLexicalEnvironment=Pf;function Jl(l){return Rm(l.pos)||Rm(l.end)}e.nodeIsSynthesized=Jl;function $u(l){return e.getParseTreeNode(l,e.isSourceFile)||l}e.getOriginalSourceFile=$u;var Yc;(function(l){l[l.Left=0]="Left",l[l.Right=1]="Right"})(Yc=e.Associativity||(e.Associativity={}));function Ud(l){var Q=oc(l),ln=l.kind===207&&l.arguments!==void 0;return Lc(l.kind,Q,ln)}e.getExpressionAssociativity=Ud;function Lc(l,Q,ln){switch(l){case 207:return ln?0:1;case 217:case 214:case 215:case 213:case 216:case 220:case 222:return 1;case 219:switch(Q){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}e.getOperatorAssociativity=Lc;function mc(l){var Q=oc(l),ln=l.kind===207&&l.arguments!==void 0;return vf(l.kind,Q,ln)}e.getExpressionPrecedence=mc;function oc(l){return l.kind===219?l.operatorToken.kind:l.kind===217||l.kind===218?l.operator:l.kind}e.getOperator=oc;var Ti;(function(l){l[l.Comma=0]="Comma",l[l.Spread=1]="Spread",l[l.Yield=2]="Yield",l[l.Assignment=3]="Assignment",l[l.Conditional=4]="Conditional",l[l.Coalesce=4]="Coalesce",l[l.LogicalOR=5]="LogicalOR",l[l.LogicalAND=6]="LogicalAND",l[l.BitwiseOR=7]="BitwiseOR",l[l.BitwiseXOR=8]="BitwiseXOR",l[l.BitwiseAND=9]="BitwiseAND",l[l.Equality=10]="Equality",l[l.Relational=11]="Relational",l[l.Shift=12]="Shift",l[l.Additive=13]="Additive",l[l.Multiplicative=14]="Multiplicative",l[l.Exponentiation=15]="Exponentiation",l[l.Unary=16]="Unary",l[l.Update=17]="Update",l[l.LeftHandSide=18]="LeftHandSide",l[l.Member=19]="Member",l[l.Primary=20]="Primary",l[l.Highest=20]="Highest",l[l.Lowest=0]="Lowest",l[l.Invalid=-1]="Invalid"})(Ti=e.OperatorPrecedence||(e.OperatorPrecedence={}));function vf(l,Q,ln){switch(l){case 346:return 0;case 223:return 1;case 222:return 2;case 220:return 4;case 219:switch(Q){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return zs(Q)}case 209:case 228:case 217:case 214:case 215:case 213:case 216:return 16;case 218:return 17;case 206:return 18;case 207:return ln?19:18;case 208:case 204:case 205:case 229:return 19;case 227:return 11;case 108:case 106:case 79:case 104:case 110:case 95:case 8:case 9:case 10:case 202:case 203:case 211:case 212:case 224:case 13:case 14:case 221:case 210:case 225:case 276:case 277:case 280:return 20;default:return-1}}e.getOperatorPrecedence=vf;function zs(l){switch(l){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 127:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}e.getBinaryOperatorPrecedence=zs;function xs(l){return e.filter(l,function(Q){switch(Q.kind){case 286:return!!Q.expression;case 11:return!Q.containsOnlyTriviaWhiteSpaces;default:return!0}})}e.getSemanticJsxChildren=xs;function sl(){var l=[],Q=[],ln=new e.Map,wn=!1;return{add:zr,lookup:Fr,getGlobalDiagnostics:oa,getDiagnostics:La};function Fr(yi){var Ci;if(yi.file?Ci=ln.get(yi.file.fileName):Ci=l,!!Ci){var Ei=e.binarySearch(Ci,yi,e.identity,pm);if(Ei>=0)return Ci[Ei]}}function zr(yi){var Ci;yi.file?(Ci=ln.get(yi.file.fileName),Ci||(Ci=[],ln.set(yi.file.fileName,Ci),e.insertSorted(Q,yi.file.fileName,e.compareStringsCaseSensitive))):(wn&&(wn=!1,l=l.slice()),Ci=l),e.insertSorted(Ci,yi,xm)}function oa(){return wn=!0,l}function La(yi){if(yi)return ln.get(yi)||[];var Ci=e.flatMapToMutable(Q,function(Ei){return ln.get(Ei)});return l.length&&Ci.unshift.apply(Ci,l),Ci}}e.createDiagnosticCollection=sl;var Mf=/\$\{/g;function wf(l){return l.replace(Mf,"\\${")}function c(l){return l&&!!(e.isNoSubstitutionTemplateLiteral(l)?l.templateFlags:l.head.templateFlags||e.some(l.templateSpans,function(Q){return!!Q.literal.templateFlags}))}e.hasInvalidEscape=c;var h=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ae=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,je=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,_n=new e.Map(e.getEntries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function Nn(l){var Q=l.toString(16).toUpperCase(),ln=("0000"+Q).slice(-4);return"\\u"+ln}function er(l,Q,ln){if(l.charCodeAt(0)===0){var wn=ln.charCodeAt(Q+l.length);return wn>=48&&wn<=57?"\\x00":"\\0"}return _n.get(l)||Nn(l.charCodeAt(0))}function pr(l,Q){var ln=Q===96?je:Q===39?ae:h;return l.replace(ln,er)}e.escapeString=pr;var kr=/[^\u0000-\u007F]/g;function Er(l,Q){return l=pr(l,Q),kr.test(l)?l.replace(kr,function(ln){return Nn(ln.charCodeAt(0))}):l}e.escapeNonAsciiString=Er;var gt=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,rt=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,ma=new e.Map(e.getEntries({'"':"&quot;","'":"&apos;"}));function Ai(l){var Q=l.toString(16).toUpperCase();return"&#x"+Q+";"}function Ba(l){return l.charCodeAt(0)===0?"&#0;":ma.get(l)||Ai(l.charCodeAt(0))}function _i(l,Q){var ln=Q===39?rt:gt;return l.replace(ln,Ba)}e.escapeJsxAttributeString=_i;function No(l){var Q=l.length;return Q>=2&&l.charCodeAt(0)===l.charCodeAt(Q-1)&&to(l.charCodeAt(0))?l.substring(1,Q-1):l}e.stripQuotes=No;function to(l){return l===39||l===34||l===96}function Ca(l){var Q=l.charCodeAt(0);return Q>=97&&Q<=122||e.stringContains(l,"-")||e.stringContains(l,":")}e.isIntrinsicJsxName=Ca;var Qt=[""," "];function ni(l){for(var Q=Qt[1],ln=Qt.length;ln<=l;ln++)Qt.push(Qt[ln-1]+Q);return Qt[l]}e.getIndentString=ni;function Wa(){return Qt[1].length}e.getIndentSize=Wa;function qa(l){var Q,ln,wn,Fr,zr,oa=!1;function La(Vs){var ou=e.computeLineStarts(Vs);ou.length>1?(Fr=Fr+ou.length-1,zr=Q.length-Vs.length+e.last(ou),wn=zr-Q.length===0):wn=!1}function yi(Vs){Vs&&Vs.length&&(wn&&(Vs=ni(ln)+Vs,wn=!1),Q+=Vs,La(Vs))}function Ci(Vs){Vs&&(oa=!1),yi(Vs)}function Ei(Vs){Vs&&(oa=!0),yi(Vs)}function po(){Q="",ln=0,wn=!0,Fr=0,zr=0,oa=!1}function Ns(Vs){Vs!==void 0&&(Q+=Vs,La(Vs),oa=!1)}function _l(Vs){Vs&&Vs.length&&Ci(Vs)}function ks(Vs){(!wn||Vs)&&(Q+=l,Fr++,zr=Q.length,wn=!0,oa=!1)}function Yl(){return wn?Q.length:Q.length+l.length}return po(),{write:Ci,rawWrite:Ns,writeLiteral:_l,writeLine:ks,increaseIndent:function(){ln++},decreaseIndent:function(){ln--},getIndent:function(){return ln},getTextPos:function(){return Q.length},getLine:function(){return Fr},getColumn:function(){return wn?ln*Wa():Q.length-zr},getText:function(){return Q},isAtStartOfLine:function(){return wn},hasTrailingComment:function(){return oa},hasTrailingWhitespace:function(){return!!Q.length&&e.isWhiteSpaceLike(Q.charCodeAt(Q.length-1))},clear:po,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:Ci,writeOperator:Ci,writeParameter:Ci,writeProperty:Ci,writePunctuation:Ci,writeSpace:Ci,writeStringLiteral:Ci,writeSymbol:function(Vs,ou){return Ci(Vs)},writeTrailingSemicolon:Ci,writeComment:Ei,getTextPosWithWriteLine:Yl}}e.createTextWriter=qa;function so(l){var Q=!1;function ln(){Q&&(l.writeTrailingSemicolon(";"),Q=!1)}return Mt(Mt({},l),{writeTrailingSemicolon:function(){Q=!0},writeLiteral:function(wn){ln(),l.writeLiteral(wn)},writeStringLiteral:function(wn){ln(),l.writeStringLiteral(wn)},writeSymbol:function(wn,Fr){ln(),l.writeSymbol(wn,Fr)},writePunctuation:function(wn){ln(),l.writePunctuation(wn)},writeKeyword:function(wn){ln(),l.writeKeyword(wn)},writeOperator:function(wn){ln(),l.writeOperator(wn)},writeParameter:function(wn){ln(),l.writeParameter(wn)},writeSpace:function(wn){ln(),l.writeSpace(wn)},writeProperty:function(wn){ln(),l.writeProperty(wn)},writeComment:function(wn){ln(),l.writeComment(wn)},writeLine:function(){ln(),l.writeLine()},increaseIndent:function(){ln(),l.increaseIndent()},decreaseIndent:function(){ln(),l.decreaseIndent()}})}e.getTrailingSemicolonDeferringWriter=so;function Vi(l){return l.useCaseSensitiveFileNames?l.useCaseSensitiveFileNames():!1}e.hostUsesCaseSensitiveFileNames=Vi;function ki(l){return e.createGetCanonicalFileName(Vi(l))}e.hostGetCanonicalFileName=ki;function Gs(l,Q,ln){return Q.moduleName||Pt(l,Q.fileName,ln&&ln.fileName)}e.getResolvedExternalModuleName=Gs;function Ds(l,Q){return l.getCanonicalFileName(e.getNormalizedAbsolutePath(Q,l.getCurrentDirectory()))}function ko(l,Q,ln){var wn=Q.getExternalModuleFileFromDeclaration(ln);if(!(!wn||wn.isDeclarationFile)){var Fr=rl(ln);if(!(Fr&&e.isStringLiteralLike(Fr)&&!e.pathIsRelative(Fr.text)&&Ds(l,wn.path).indexOf(Ds(l,e.ensureTrailingDirectorySeparator(l.getCommonSourceDirectory())))===-1))return Gs(l,wn)}}e.getExternalModuleNameFromDeclaration=ko;function Pt(l,Q,ln){var wn=function(yi){return l.getCanonicalFileName(yi)},Fr=e.toPath(ln?e.getDirectoryPath(ln):l.getCommonSourceDirectory(),l.getCurrentDirectory(),wn),zr=e.getNormalizedAbsolutePath(Q,l.getCurrentDirectory()),oa=e.getRelativePathToDirectoryOrUrl(Fr,zr,Fr,wn,!1),La=Mc(oa);return ln?e.ensurePathIsNonModuleName(La):La}e.getExternalModuleNameFromPath=Pt;function wo(l,Q,ln){var wn=Q.getCompilerOptions(),Fr;return wn.outDir?Fr=Mc(Ls(l,Q,wn.outDir)):Fr=Mc(l),Fr+ln}e.getOwnEmitOutputFilePath=wo;function gi(l,Q){return Qc(l,Q.getCompilerOptions(),Q.getCurrentDirectory(),Q.getCommonSourceDirectory(),function(ln){return Q.getCanonicalFileName(ln)})}e.getDeclarationEmitOutputFilePath=gi;function Qc(l,Q,ln,wn,Fr){var zr=Q.declarationDir||Q.outDir,oa=zr?Dl(l,zr,ln,wn,Fr):l;return Mc(oa)+".d.ts"}e.getDeclarationEmitOutputFilePathWorker=Qc;function Vd(l){return l.outFile||l.out}e.outFile=Vd;function hu(l,Q){var ln,wn;if(l.paths)return(ln=l.baseUrl)!==null&&ln!==void 0?ln:e.Debug.checkDefined(l.pathsBasePath||((wn=Q.getCurrentDirectory)===null||wn===void 0?void 0:wn.call(Q)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}e.getPathsBasePath=hu;function Dt(l,Q,ln){var wn=l.getCompilerOptions();if(Vd(wn)){var Fr=Qd(wn),zr=wn.emitDeclarationOnly||Fr===e.ModuleKind.AMD||Fr===e.ModuleKind.System;return e.filter(l.getSourceFiles(),function(La){return(zr||!e.isExternalModule(La))&&hf(La,l,ln)})}else{var oa=Q===void 0?l.getSourceFiles():[Q];return e.filter(oa,function(La){return hf(La,l,ln)})}}e.getSourceFilesToEmit=Dt;function hf(l,Q,ln){var wn=Q.getCompilerOptions();return!(wn.noEmitForJsFiles&&Ve(l))&&!l.isDeclarationFile&&!Q.isSourceFileFromExternalLibrary(l)&&(ln||!(Gn(l)&&Q.getResolvedProjectReferenceToRedirect(l.fileName))&&!Q.isSourceOfProjectReferenceRedirect(l.fileName))}e.sourceFileMayBeEmitted=hf;function Ls(l,Q,ln){return Dl(l,ln,Q.getCurrentDirectory(),Q.getCommonSourceDirectory(),function(wn){return Q.getCanonicalFileName(wn)})}e.getSourceFilePathInNewDir=Ls;function Dl(l,Q,ln,wn,Fr){var zr=e.getNormalizedAbsolutePath(l,ln),oa=Fr(zr).indexOf(Fr(wn))===0;return zr=oa?zr.substring(wn.length):zr,e.combinePaths(Q,zr)}e.getSourceFilePathInNewDirWorker=Dl;function ec(l,Q,ln,wn,Fr,zr){l.writeFile(ln,wn,Fr,function(oa){Q.add(H_(e.Diagnostics.Could_not_write_file_0_Colon_1,ln,oa))},zr)}e.writeFile=ec;function Ff(l,Q,ln){if(l.length>e.getRootLength(l)&&!ln(l)){var wn=e.getDirectoryPath(l);Ff(wn,Q,ln),Q(l)}}function dp(l,Q,ln,wn,Fr,zr){try{wn(l,Q,ln)}catch(oa){Ff(e.getDirectoryPath(e.normalizePath(l)),Fr,zr),wn(l,Q,ln)}}e.writeFileEnsuringDirectories=dp;function Mu(l,Q){var ln=e.getLineStarts(l);return e.computeLineOfPosition(ln,Q)}e.getLineOfLocalPosition=Mu;function Bc(l,Q){return e.computeLineOfPosition(l,Q)}e.getLineOfLocalPositionFromLineMap=Bc;function Gf(l){return e.find(l.members,function(Q){return e.isConstructorDeclaration(Q)&&m(Q.body)})}e.getFirstConstructorWithBody=Gf;function al(l){if(l&&l.parameters.length>0){var Q=l.parameters.length===2&&yf(l.parameters[0]);return l.parameters[Q?1:0]}}e.getSetAccessorValueParameter=al;function Ic(l){var Q=al(l);return Q&&Q.type}e.getSetAccessorTypeAnnotationNode=Ic;function Wd(l){if(l.parameters.length&&!e.isJSDocSignature(l)){var Q=l.parameters[0];if(yf(Q))return Q}}e.getThisParameter=Wd;function yf(l){return Eo(l.name)}e.parameterIsThisKeyword=yf;function Eo(l){return!!l&&l.kind===79&&Kl(l)}e.isThisIdentifier=Eo;function wt(l){if(!Eo(l))return!1;for(;e.isQualifiedName(l.parent)&&l.parent.left===l;)l=l.parent;return l.parent.kind===179}e.isThisInTypeQuery=wt;function Kl(l){return l.originalKeywordKind===108}e.identifierIsThisKeyword=Kl;function wp(l,Q){var ln,wn,Fr,zr;return mf(Q)?(ln=Q,Q.kind===170?Fr=Q:Q.kind===171?zr=Q:e.Debug.fail("Accessor has wrong kind")):e.forEach(l,function(oa){if(e.isAccessor(oa)&&qo(oa)===qo(Q)){var La=vu(oa.name),yi=vu(Q.name);La===yi&&(ln?wn||(wn=oa):ln=oa,oa.kind===170&&!Fr&&(Fr=oa),oa.kind===171&&!zr&&(zr=oa))}}),{firstAccessor:ln,secondAccessor:wn,getAccessor:Fr,setAccessor:zr}}e.getAllAccessorDeclarations=wp;function ef(l){if(!(!dn(l)&&e.isFunctionDeclaration(l))){var Q=l.type;return Q||!dn(l)?Q:e.isJSDocPropertyLikeTag(l)?l.typeExpression&&l.typeExpression.type:e.getJSDocType(l)}}e.getEffectiveTypeAnnotationNode=ef;function Zc(l){return l.type}e.getTypeAnnotationNode=Zc;function jd(l){return e.isJSDocSignature(l)?l.type&&l.type.typeExpression&&l.type.typeExpression.type:l.type||(dn(l)?e.getJSDocReturnType(l):void 0)}e.getEffectiveReturnTypeNode=jd;function Bf(l){return e.flatMap(e.getJSDocTags(l),function(Q){return _c(Q)?Q.typeParameters:void 0})}e.getJSDocTypeParameterDeclarations=Bf;function _c(l){return e.isJSDocTemplateTag(l)&&!(l.parent.kind===315&&l.parent.tags.some(dc))}function $c(l){var Q=al(l);return Q&&ef(Q)}e.getEffectiveSetAccessorTypeAnnotationNode=$c;function Nc(l,Q,ln,wn){kc(l,Q,ln.pos,wn)}e.emitNewLineBeforeLeadingComments=Nc;function kc(l,Q,ln,wn){wn&&wn.length&&ln!==wn[0].pos&&Bc(l,ln)!==Bc(l,wn[0].pos)&&Q.writeLine()}e.emitNewLineBeforeLeadingCommentsOfPosition=kc;function Pl(l,Q,ln,wn){ln!==wn&&Bc(l,ln)!==Bc(l,wn)&&Q.writeLine()}e.emitNewLineBeforeLeadingCommentOfPosition=Pl;function Bs(l,Q,ln,wn,Fr,zr,oa,La){if(wn&&wn.length>0){Fr&&ln.writeSpace(" ");for(var yi=!1,Ci=0,Ei=wn;Ci<Ei.length;Ci++){var po=Ei[Ci];yi&&(ln.writeSpace(" "),yi=!1),La(l,Q,ln,po.pos,po.end,oa),po.hasTrailingNewLine?ln.writeLine():yi=!0}yi&&zr&&ln.writeSpace(" ")}}e.emitComments=Bs;function As(l,Q,ln,wn,Fr,zr,oa){var La,yi;if(oa?Fr.pos===0&&(La=e.filter(e.getLeadingCommentRanges(l,Fr.pos),ou)):La=e.getLeadingCommentRanges(l,Fr.pos),La){for(var Ci=[],Ei=void 0,po=0,Ns=La;po<Ns.length;po++){var _l=Ns[po];if(Ei){var ks=Bc(Q,Ei.end),Yl=Bc(Q,_l.pos);if(Yl>=ks+2)break}Ci.push(_l),Ei=_l}if(Ci.length){var ks=Bc(Q,e.last(Ci).end),Vs=Bc(Q,e.skipTrivia(l,Fr.pos));Vs>=ks+2&&(Nc(Q,ln,Fr,La),Bs(l,Q,ln,Ci,!1,!0,zr,wn),yi={nodePos:Fr.pos,detachedCommentEndPos:e.last(Ci).end})}}return yi;function ou(xd){return Ae(l,xd.pos)}}e.emitDetachedComments=As;function fl(l,Q,ln,wn,Fr,zr){if(l.charCodeAt(wn+1)===42)for(var oa=e.computeLineAndCharacterOfPosition(Q,wn),La=Q.length,yi=void 0,Ci=wn,Ei=oa.line;Ci<Fr;Ei++){var po=Ei+1===La?l.length+1:Q[Ei+1];if(Ci!==wn){yi===void 0&&(yi=Uc(l,Q[oa.line],wn));var Ns=ln.getIndent()*Wa(),_l=Ns-yi+Uc(l,Ci,po);if(_l>0){var ks=_l%Wa(),Yl=ni((_l-ks)/Wa());for(ln.rawWrite(Yl);ks;)ln.rawWrite(" "),ks--}else ln.rawWrite("")}pp(l,Fr,ln,zr,Ci,po),Ci=po}else ln.writeComment(l.substring(wn,Fr))}e.writeCommentRange=fl;function pp(l,Q,ln,wn,Fr,zr){var oa=Math.min(Q,zr-1),La=e.trimString(l.substring(Fr,oa));La?(ln.writeComment(La),oa!==Q&&ln.writeLine()):ln.rawWrite(wn)}function Uc(l,Q,ln){for(var wn=0;Q<ln&&e.isWhiteSpaceSingleLine(l.charCodeAt(Q));Q++)l.charCodeAt(Q)===9?wn+=Wa()-wn%Wa():wn++;return wn}function dl(l){return Jd(l)!==0}e.hasEffectiveModifiers=dl;function nf(l){return tf(l)!==0}e.hasSyntacticModifiers=nf;function _d(l,Q){return!!_p(l,Q)}e.hasEffectiveModifier=_d;function el(l,Q){return!!vd(l,Q)}e.hasSyntacticModifier=el;function qo(l){return e.isClassElement(l)&&mp(l)||e.isClassStaticBlockDeclaration(l)}e.isStatic=qo;function mp(l){return el(l,32)}e.hasStaticModifier=mp;function yu(l){return _d(l,16384)}e.hasOverrideModifier=yu;function rf(l){return el(l,128)}e.hasAbstractModifier=rf;function gd(l){return el(l,2)}e.hasAmbientModifier=gd;function Hd(l){return _d(l,64)}e.hasEffectiveReadonlyModifier=Hd;function _p(l,Q){return Jd(l)&Q}e.getSelectedEffectiveModifierFlags=_p;function vd(l,Q){return tf(l)&Q}e.getSelectedSyntacticModifierFlags=vd;function Eu(l,Q,ln){return l.kind>=0&&l.kind<=158?0:(l.modifierFlagsCache&536870912||(l.modifierFlagsCache=yd(l)|536870912),Q&&!(l.modifierFlagsCache&4096)&&(ln||dn(l))&&l.parent&&(l.modifierFlagsCache|=Ef(l)|4096),l.modifierFlagsCache&-536875009)}function Jd(l){return Eu(l,!0)}e.getEffectiveModifierFlags=Jd;function Uf(l){return Eu(l,!0,!0)}e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=Uf;function tf(l){return Eu(l,!1)}e.getSyntacticModifierFlags=tf;function Ef(l){var Q=0;return l.parent&&!e.isParameter(l)&&(dn(l)&&(e.getJSDocPublicTagNoCache(l)&&(Q|=4),e.getJSDocPrivateTagNoCache(l)&&(Q|=8),e.getJSDocProtectedTagNoCache(l)&&(Q|=16),e.getJSDocReadonlyTagNoCache(l)&&(Q|=64),e.getJSDocOverrideTagNoCache(l)&&(Q|=16384)),e.getJSDocDeprecatedTagNoCache(l)&&(Q|=8192)),Q}function hd(l){return yd(l)|Ef(l)}e.getEffectiveModifierFlagsNoCache=hd;function yd(l){var Q=af(l.modifiers);return(l.flags&4||l.kind===79&&l.isInJSDocNamespace)&&(Q|=1),Q}e.getSyntacticModifierFlagsNoCache=yd;function af(l){var Q=0;if(l)for(var ln=0,wn=l;ln<wn.length;ln++){var Fr=wn[ln];Q|=Kd(Fr.kind)}return Q}e.modifiersToFlags=af;function Kd(l){switch(l){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 128;case 93:return 1;case 134:return 2;case 85:return 2048;case 88:return 512;case 130:return 256;case 143:return 64;case 157:return 16384}return 0}e.modifierToFlag=Kd;function gp(l){return l?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(l)):void 0}e.createModifiers=gp;function Qa(l){return l===56||l===55||l===53}e.isLogicalOperator=Qa;function Rc(l){return l===75||l===76||l===77}e.isLogicalOrCoalescingAssignmentOperator=Rc;function Lt(l){return Rc(l.operatorToken.kind)}e.isLogicalOrCoalescingAssignmentExpression=Lt;function Vf(l){return l>=63&&l<=78}e.isAssignmentOperator=Vf;function wu(l){var Q=Ed(l);return Q&&!Q.isImplements?Q.class:void 0}e.tryGetClassExtendingExpressionWithTypeArguments=wu;function Ed(l){return e.isExpressionWithTypeArguments(l)&&e.isHeritageClause(l.parent)&&e.isClassLike(l.parent.parent)?{class:l.parent.parent,isImplements:l.parent.token===117}:void 0}e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Ed;function Wf(l,Q){return e.isBinaryExpression(l)&&(Q?l.operatorToken.kind===63:Vf(l.operatorToken.kind))&&e.isLeftHandSideExpression(l.left)}e.isAssignmentExpression=Wf;function bd(l){return Wf(l.parent)&&l.parent.left===l}e.isLeftHandSideOfAssignment=bd;function of(l){if(Wf(l,!0)){var Q=l.left.kind;return Q===203||Q===202}return!1}e.isDestructuringAssignment=of;function gc(l){return wu(l)!==void 0}e.isExpressionWithTypeArgumentsInClassExtendsClause=gc;function sc(l){return l.kind===79||vp(l)}e.isEntityNameExpression=sc;function Td(l){switch(l.kind){case 79:return l;case 159:do l=l.left;while(l.kind!==79);return l;case 204:do l=l.expression;while(l.kind!==79);return l}}e.getFirstIdentifier=Td;function Fu(l){return l.kind===79||l.kind===108||l.kind===106||l.kind===229||l.kind===204&&Fu(l.expression)||l.kind===210&&Fu(l.expression)}e.isDottedName=Fu;function vp(l){return e.isPropertyAccessExpression(l)&&e.isIdentifier(l.name)&&sc(l.expression)}e.isPropertyAccessEntityNameExpression=vp;function Sd(l){if(e.isPropertyAccessExpression(l)){var Q=Sd(l.expression);if(Q!==void 0)return Q+"."+Ke(l.name)}else if(e.isElementAccessExpression(l)){var Q=Sd(l.expression);if(Q!==void 0&&e.isPropertyName(l.argumentExpression))return Q+"."+vu(l.argumentExpression)}else if(e.isIdentifier(l))return e.unescapeLeadingUnderscores(l.escapedText)}e.tryGetPropertyAccessOrIdentifierToString=Sd;function Gu(l){return Fs(l)&&ca(l)==="prototype"}e.isPrototypeAccess=Gu;function sf(l){return l.parent.kind===159&&l.parent.right===l||l.parent.kind===204&&l.parent.name===l}e.isRightSideOfQualifiedNameOrPropertyAccess=sf;function eu(l){return e.isQualifiedName(l.parent)&&l.parent.right===l||e.isPropertyAccessExpression(l.parent)&&l.parent.name===l||e.isJSDocMemberName(l.parent)&&l.parent.right===l}e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=eu;function zd(l){return l.kind===203&&l.properties.length===0}e.isEmptyObjectLiteral=zd;function Vc(l){return l.kind===202&&l.elements.length===0}e.isEmptyArrayLiteral=Vc;function Dd(l){if(!(!qd(l)||!l.declarations))for(var Q=0,ln=l.declarations;Q<ln.length;Q++){var wn=ln[Q];if(wn.localSymbol)return wn.localSymbol}}e.getLocalSymbolForExportDefault=Dd;function qd(l){return l&&e.length(l.declarations)>0&&el(l.declarations[0],512)}function Oc(l){return e.find(e.supportedTSExtensionsForExtractExtension,function(Q){return e.fileExtensionIs(l,Q)})}e.tryExtractTSExtension=Oc;function jf(l){for(var Q=[],ln=l.length,wn=0;wn<ln;wn++){var Fr=l.charCodeAt(wn);Fr<128?Q.push(Fr):Fr<2048?(Q.push(Fr>>6|192),Q.push(Fr&63|128)):Fr<65536?(Q.push(Fr>>12|224),Q.push(Fr>>6&63|128),Q.push(Fr&63|128)):Fr<131072?(Q.push(Fr>>18|240),Q.push(Fr>>12&63|128),Q.push(Fr>>6&63|128),Q.push(Fr&63|128)):e.Debug.assert(!1,"Unexpected code point")}return Q}var bu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Os(l){for(var Q="",ln=jf(l),wn=0,Fr=ln.length,zr,oa,La,yi;wn<Fr;)zr=ln[wn]>>2,oa=(ln[wn]&3)<<4|ln[wn+1]>>4,La=(ln[wn+1]&15)<<2|ln[wn+2]>>6,yi=ln[wn+2]&63,wn+1>=Fr?La=yi=64:wn+2>=Fr&&(yi=64),Q+=bu.charAt(zr)+bu.charAt(oa)+bu.charAt(La)+bu.charAt(yi),wn+=3;return Q}e.convertToBase64=Os;function Fp(l){for(var Q="",ln=0,wn=l.length;ln<wn;){var Fr=l[ln];if(Fr<128)Q+=String.fromCharCode(Fr),ln++;else if((Fr&192)===192){var zr=Fr&63;ln++;for(var oa=l[ln];(oa&192)===128;)zr=zr<<6|oa&63,ln++,oa=l[ln];Q+=String.fromCharCode(zr)}else Q+=String.fromCharCode(Fr),ln++}return Q}function no(l,Q){return l&&l.base64encode?l.base64encode(Q):Os(Q)}e.base64encode=no;function Hf(l,Q){if(l&&l.base64decode)return l.base64decode(Q);for(var ln=Q.length,wn=[],Fr=0;Fr<ln&&Q.charCodeAt(Fr)!==bu.charCodeAt(64);){var zr=bu.indexOf(Q[Fr]),oa=bu.indexOf(Q[Fr+1]),La=bu.indexOf(Q[Fr+2]),yi=bu.indexOf(Q[Fr+3]),Ci=(zr&63)<<2|oa>>4&3,Ei=(oa&15)<<4|La>>2&15,po=(La&3)<<6|yi&63;Ei===0&&La!==0?wn.push(Ci):po===0&&yi!==0?wn.push(Ci,Ei):wn.push(Ci,Ei,po),Fr+=4}return Fp(wn)}e.base64decode=Hf;function Ld(l,Q){try{var ln=Q.readFile(l);if(!ln)return{};var wn=e.parseConfigFileTextToJson(l,ln);return wn.error?{}:wn.config}catch(Fr){return{}}}e.readJson=Ld;function Xd(l,Q){return!Q.directoryExists||Q.directoryExists(l)}e.directoryProbablyExists=Xd;var Yd=`\r
`,bf=`
`;function v(l,Q){switch(l.newLine){case 0:return Yd;case 1:return bf}return Q?Q():e.sys?e.sys.newLine:Yd}e.getNewLineCharacter=v;function nn(l,Q){return Q===void 0&&(Q=l),e.Debug.assert(Q>=l||Q===-1),{pos:l,end:Q}}e.createRange=nn;function mr(l,Q){return nn(l.pos,Q)}e.moveRangeEnd=mr;function Br(l,Q){return nn(Q,l.end)}e.moveRangePos=Br;function ya(l){return l.decorators&&l.decorators.length>0?Br(l,l.decorators.end):l}e.moveRangePastDecorators=ya;function Pa(l){return l.modifiers&&l.modifiers.length>0?Br(l,l.modifiers.end):ya(l)}e.moveRangePastModifiers=Pa;function Ha(l){return l.pos===l.end}e.isCollapsedRange=Ha;function ci(l,Q){return nn(l,l+e.tokenToString(Q).length)}e.createTokenRange=ci;function Xi(l,Q){return pl(l,l,Q)}e.rangeIsOnSingleLine=Xi;function ns(l,Q,ln){return Al(jc(l,ln,!1),jc(Q,ln,!1),ln)}e.rangeStartPositionsAreOnSameLine=ns;function fs(l,Q,ln){return Al(l.end,Q.end,ln)}e.rangeEndPositionsAreOnSameLine=fs;function pl(l,Q,ln){return Al(jc(l,ln,!1),Q.end,ln)}e.rangeStartIsOnSameLineAsRangeEnd=pl;function Cs(l,Q,ln){return Al(l.end,jc(Q,ln,!1),ln)}e.rangeEndIsOnSameLineAsRangeStart=Cs;function Ll(l,Q,ln,wn){var Fr=jc(Q,ln,wn);return e.getLinesBetweenPositions(ln,l.end,Fr)}e.getLinesBetweenRangeEndAndRangeStart=Ll;function Wc(l,Q,ln){return e.getLinesBetweenPositions(ln,l.end,Q.end)}e.getLinesBetweenRangeEndPositions=Wc;function Bu(l,Q){return!Al(l.pos,l.end,Q)}e.isNodeArrayMultiLine=Bu;function Al(l,Q,ln){return e.getLinesBetweenPositions(ln,l,Q)===0}e.positionsAreOnSameLine=Al;function jc(l,Q,ln){return Rm(l.pos)?-1:e.skipTrivia(Q.text,l.pos,!1,ln)}e.getStartPositionOfRange=jc;function Gp(l,Q,ln,wn){var Fr=e.skipTrivia(ln.text,l,!1,wn),zr=Up(Fr,Q,ln);return e.getLinesBetweenPositions(ln,zr!=null?zr:Q,Fr)}e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=Gp;function Bp(l,Q,ln,wn){var Fr=e.skipTrivia(ln.text,l,!1,wn);return e.getLinesBetweenPositions(ln,l,Math.min(Q,Fr))}e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=Bp;function Up(l,Q,ln){for(Q===void 0&&(Q=0);l-- >Q;)if(!e.isWhiteSpaceLike(ln.text.charCodeAt(l)))return l}function Vp(l){var Q=e.getParseTreeNode(l);if(Q)switch(Q.parent.kind){case 258:case 259:return Q===Q.parent.name}return!1}e.isDeclarationNameOfEnumOrNamespace=Vp;function lf(l){return e.filter(l.declarations,Cm)}e.getInitializedVariables=lf;function Cm(l){return l.initializer!==void 0}function dm(l){return l.watch&&l.hasOwnProperty("watch")}e.isWatchSet=dm;function $m(l){l.close()}e.closeFileWatcher=$m;function Wp(l){return l.flags&33554432?l.checkFlags:0}e.getCheckFlags=Wp;function Ad(l,Q){if(Q===void 0&&(Q=!1),l.valueDeclaration){var ln=Q&&l.declarations&&e.find(l.declarations,function(La){return La.kind===171})||l.valueDeclaration,wn=e.getCombinedModifierFlags(ln);return l.parent&&l.parent.flags&32?wn:wn&-29}if(Wp(l)&6){var Fr=l.checkFlags,zr=Fr&1024?8:Fr&256?4:16,oa=Fr&2048?32:0;return zr|oa}return l.flags&4194304?36:0}e.getDeclarationModifierFlagsFromSymbol=Ad;function Cd(l,Q){return l.flags&2097152?Q.getAliasedSymbol(l):l}e.skipAlias=Cd;function ke(l){return l.exportSymbol?l.exportSymbol.flags|l.flags:l.flags}e.getCombinedLocalAndExportSymbolFlags=ke;function bn(l){return Mr(l)===1}e.isWriteOnlyAccess=bn;function Yn(l){return Mr(l)!==0}e.isWriteAccess=Yn;var dr;(function(l){l[l.Read=0]="Read",l[l.Write=1]="Write",l[l.ReadWrite=2]="ReadWrite"})(dr||(dr={}));function Mr(l){var Q=l.parent;if(!Q)return 0;switch(Q.kind){case 210:return Mr(Q);case 218:case 217:var ln=Q.operator;return ln===45||ln===46?La():0;case 219:var wn=Q,Fr=wn.left,zr=wn.operatorToken;return Fr===l&&Vf(zr.kind)?zr.kind===63?1:La():0;case 204:return Q.name!==l?0:Mr(Q);case 291:{var oa=Mr(Q.parent);return l===Q.name?lt(oa):oa}case 292:return l===Q.objectAssignmentInitializer?0:Mr(Q.parent);case 202:return Mr(Q);default:return 0}function La(){return Q.parent&&Oo(Q.parent).kind===236?1:2}}function lt(l){switch(l){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(l)}}function Gt(l,Q){if(!l||!Q||Object.keys(l).length!==Object.keys(Q).length)return!1;for(var ln in l)if(typeof l[ln]=="object"){if(!Gt(l[ln],Q[ln]))return!1}else if(typeof l[ln]!="function"&&l[ln]!==Q[ln])return!1;return!0}e.compareDataObjects=Gt;function ta(l,Q){l.forEach(Q),l.clear()}e.clearMap=ta;function pi(l,Q,ln){var wn=ln.onDeleteValue,Fr=ln.onExistingValue;l.forEach(function(zr,oa){var La=Q.get(oa);La===void 0?(l.delete(oa),wn(zr,oa)):Fr&&Fr(zr,La,oa)})}e.mutateMapSkippingNewValues=pi;function ka(l,Q,ln){pi(l,Q,ln);var wn=ln.createNewValue;Q.forEach(function(Fr,zr){l.has(zr)||l.set(zr,wn(zr,Fr))})}e.mutateMap=ka;function Do(l){if(l.flags&32){var Q=Is(l);return!!Q&&el(Q,128)}return!1}e.isAbstractConstructorSymbol=Do;function Is(l){var Q;return(Q=l.declarations)===null||Q===void 0?void 0:Q.find(e.isClassLike)}e.getClassLikeDeclarationOfSymbol=Is;function Lo(l){return l.flags&3899393?l.objectFlags:0}e.getObjectFlags=Lo;function ms(l,Q){return Q.getSignaturesOfType(l,0).length!==0||Q.getSignaturesOfType(l,1).length!==0}e.typeHasCallOrConstructSignatures=ms;function Us(l,Q){return!!e.forEachAncestorDirectory(l,function(ln){return Q(ln)?!0:void 0})}e.forSomeAncestorDirectory=Us;function yl(l){return!!l&&!!l.declarations&&!!l.declarations[0]&&e.isNamespaceExportDeclaration(l.declarations[0])}e.isUMDExportSymbol=yl;function Cl(l){var Q=l.moduleSpecifier;return e.isStringLiteral(Q)?Q.text:en(Q)}e.showModuleSpecifier=Cl;function Pc(l){var Q;return e.forEachChild(l,function(ln){m(ln)&&(Q=ln)},function(ln){for(var wn=ln.length-1;wn>=0;wn--)if(m(ln[wn])){Q=ln[wn];break}}),Q}e.getLastChild=Pc;function tc(l,Q,ln){return ln===void 0&&(ln=!0),l.has(Q)?!1:(l.set(Q,ln),!0)}e.addToSeen=tc;function Tf(l){return e.isClassLike(l)||e.isInterfaceDeclaration(l)||e.isTypeLiteralNode(l)}e.isObjectTypeDeclaration=Tf;function Ml(l){return l>=175&&l<=198||l===129||l===153||l===145||l===156||l===146||l===132||l===148||l===149||l===114||l===151||l===142||l===226||l===307||l===308||l===309||l===310||l===311||l===312||l===313}e.isTypeNodeKind=Ml;function zl(l){return l.kind===204||l.kind===205}e.isAccessExpression=zl;function Jf(l){return l.kind===204?l.name:(e.Debug.assert(l.kind===205),l.argumentExpression)}e.getNameOfAccessExpression=Jf;function kt(l){switch(l.kind){case"text":case"internal":return!0;default:return!1}}e.isBundleFileTextLike=kt;function El(l){return l.kind===267||l.kind===271}e.isNamedImportsOrExports=El;function _(l){for(;zl(l);)l=l.expression;return l}e.getLeftmostAccessExpression=_;function B(l,Q){for(;;){switch(l.kind){case 218:l=l.operand;continue;case 219:l=l.left;continue;case 220:l=l.condition;continue;case 208:l=l.tag;continue;case 206:if(Q)return l;case 227:case 205:case 204:case 228:case 345:l=l.expression;continue}return l}}e.getLeftmostExpression=B;function Ee(l,Q){this.flags=l,this.escapedName=Q,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function on(l,Q){this.flags=Q,(e.Debug.isDebugging||e.tracing)&&(this.checker=l)}function qn(l,Q){this.flags=Q,e.Debug.isDebugging&&(this.checker=l)}function Zr(l,Q,ln){this.pos=Q,this.end=ln,this.kind=l,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function Nt(l,Q,ln){this.pos=Q,this.end=ln,this.kind=l,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function Si(l,Q,ln){this.pos=Q,this.end=ln,this.kind=l,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function Yo(l,Q,ln){this.fileName=l,this.text=Q,this.skipTrivia=ln||function(wn){return wn}}e.objectAllocator={getNodeConstructor:function(){return Zr},getTokenConstructor:function(){return Nt},getIdentifierConstructor:function(){return Si},getPrivateIdentifierConstructor:function(){return Zr},getSourceFileConstructor:function(){return Zr},getSymbolConstructor:function(){return Ee},getTypeConstructor:function(){return on},getSignatureConstructor:function(){return qn},getSourceMapSourceConstructor:function(){return Yo}};function nl(l){e.objectAllocator=l}e.setObjectAllocator=nl;function nu(l,Q,ln){return ln===void 0&&(ln=0),l.replace(/{(\d+)}/g,function(wn,Fr){return""+e.Debug.checkDefined(Q[+Fr+ln])})}e.formatStringFromArgs=nu;function Sf(l){e.localizedDiagnosticMessages=l}e.setLocalizedDiagnosticMessages=Sf;function Kf(l){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[l.key]||l.message}e.getLocaleSpecificMessage=Kf;function cf(l,Q,ln,wn){ar(void 0,Q,ln);var Fr=Kf(wn);return arguments.length>4&&(Fr=nu(Fr,arguments,4)),{file:void 0,start:Q,length:ln,messageText:Fr,category:wn.category,code:wn.code,reportsUnnecessary:wn.reportsUnnecessary,fileName:l}}e.createDetachedDiagnostic=cf;function j_(l){return l.file===void 0&&l.start!==void 0&&l.length!==void 0&&typeof l.fileName=="string"}function e_(l,Q){var ln=Q.fileName||"",wn=Q.text.length;e.Debug.assertEqual(l.fileName,ln),e.Debug.assertLessThanOrEqual(l.start,wn),e.Debug.assertLessThanOrEqual(l.start+l.length,wn);var Fr={file:Q,start:l.start,length:l.length,messageText:l.messageText,category:l.category,code:l.code,reportsUnnecessary:l.reportsUnnecessary};if(l.relatedInformation){Fr.relatedInformation=[];for(var zr=0,oa=l.relatedInformation;zr<oa.length;zr++){var La=oa[zr];j_(La)&&La.fileName===ln?(e.Debug.assertLessThanOrEqual(La.start,wn),e.Debug.assertLessThanOrEqual(La.start+La.length,wn),Fr.relatedInformation.push(e_(La,Q))):Fr.relatedInformation.push(La)}}return Fr}function vc(l,Q){for(var ln=[],wn=0,Fr=l;wn<Fr.length;wn++){var zr=Fr[wn];ln.push(e_(zr,Q))}return ln}e.attachFileToDiagnostics=vc;function n_(l,Q,ln,wn){ar(l,Q,ln);var Fr=Kf(wn);return arguments.length>4&&(Fr=nu(Fr,arguments,4)),{file:l,start:Q,length:ln,messageText:Fr,category:wn.category,code:wn.code,reportsUnnecessary:wn.reportsUnnecessary,reportsDeprecated:wn.reportsDeprecated}}e.createFileDiagnostic=n_;function Bg(l,Q){var ln=Kf(Q);return arguments.length>2&&(ln=nu(ln,arguments,2)),ln}e.formatMessage=Bg;function H_(l){var Q=Kf(l);return arguments.length>1&&(Q=nu(Q,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:Q,category:l.category,code:l.code,reportsUnnecessary:l.reportsUnnecessary,reportsDeprecated:l.reportsDeprecated}}e.createCompilerDiagnostic=H_;function jp(l,Q){return{file:void 0,start:void 0,length:void 0,code:l.code,category:l.category,messageText:l.next?l:l.messageText,relatedInformation:Q}}e.createCompilerDiagnosticFromMessageChain=jp;function Ug(l,Q){var ln=Kf(Q);return arguments.length>2&&(ln=nu(ln,arguments,2)),{messageText:ln,category:Q.category,code:Q.code,next:l===void 0||Array.isArray(l)?l:[l]}}e.chainDiagnosticMessages=Ug;function hp(l,Q){for(var ln=l;ln.next;)ln=ln.next[0];ln.next=[Q]}e.concatenateDiagnosticMessageChains=hp;function lc(l){return l.file?l.file.path:void 0}function xm(l,Q){return pm(l,Q)||Im(l,Q)||0}e.compareDiagnostics=xm;function pm(l,Q){return e.compareStringsCaseSensitive(lc(l),lc(Q))||e.compareValues(l.start,Q.start)||e.compareValues(l.length,Q.length)||e.compareValues(l.code,Q.code)||mm(l.messageText,Q.messageText)||0}e.compareDiagnosticsSkipRelatedInformation=pm;function Im(l,Q){return!l.relatedInformation&&!Q.relatedInformation?0:l.relatedInformation&&Q.relatedInformation?e.compareValues(l.relatedInformation.length,Q.relatedInformation.length)||e.forEach(l.relatedInformation,function(ln,wn){var Fr=Q.relatedInformation[wn];return xm(ln,Fr)})||0:l.relatedInformation?-1:1}function mm(l,Q){if(typeof l=="string"&&typeof Q=="string")return e.compareStringsCaseSensitive(l,Q);if(typeof l=="string")return-1;if(typeof Q=="string")return 1;var ln=e.compareStringsCaseSensitive(l.messageText,Q.messageText);if(ln)return ln;if(!l.next&&!Q.next)return 0;if(!l.next)return-1;if(!Q.next)return 1;for(var wn=Math.min(l.next.length,Q.next.length),Fr=0;Fr<wn;Fr++)if(ln=mm(l.next[Fr],Q.next[Fr]),ln)return ln;return l.next.length<Q.next.length?-1:l.next.length>Q.next.length?1:0}function Nm(l){return l===4||l===2||l===1||l===6?1:0}e.getLanguageVariant=Nm;function r_(l){return l.target||0}e.getEmitScriptTarget=r_;function Qd(l){return typeof l.module=="number"?l.module:r_(l)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}e.getEmitModuleKind=Qd;function zf(l){var Q=l.moduleResolution;return Q===void 0&&(Q=Qd(l)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),Q}e.getEmitModuleResolutionKind=zf;function Vg(l){switch(Qd(l)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ESNext:return!0;default:return!1}}e.hasJsonModuleEmitEnabled=Vg;function rs(l){return l.allowUnreachableCode===!1}e.unreachableCodeIsError=rs;function J_(l){return l.allowUnusedLabels===!1}e.unusedLabelIsError=J_;function _m(l){return!!(t_(l)&&l.declarationMap)}e.getAreDeclarationMapsEnabled=_m;function Hp(l){var Q=Qd(l);return l.allowSyntheticDefaultImports!==void 0?l.allowSyntheticDefaultImports:l.esModuleInterop||Q===e.ModuleKind.System}e.getAllowSyntheticDefaultImports=Hp;function t_(l){return!!(l.declaration||l.composite)}e.getEmitDeclarations=t_;function Zd(l){return!!(l.preserveConstEnums||l.isolatedModules)}e.shouldPreserveConstEnums=Zd;function ht(l){return!!(l.incremental||l.composite)}e.isIncrementalCompilation=ht;function ga(l,Q){return l[Q]===void 0?!!l.strict:!!l[Q]}e.getStrictOptionValue=ga;function _a(l){return l.allowJs===void 0?!!l.checkJs:l.allowJs}e.getAllowJSCompilerOption=_a;function Fa(l){return l.useDefineForClassFields===void 0?l.target===99:l.useDefineForClassFields}e.getUseDefineForClassFields=Fa;function ui(l,Q){return de(Q,l,e.semanticDiagnosticsOptionDeclarations)}e.compilerOptionsAffectSemanticDiagnostics=ui;function Gi(l,Q){return de(Q,l,e.affectsEmitOptionDeclarations)}e.compilerOptionsAffectEmit=Gi;function ds(l,Q){return Q.strictFlag?ga(l,Q.name):l[Q.name]}e.getCompilerOptionValue=ds;function ml(l){var Q=l.jsx;return Q===2||Q===4||Q===5}e.getJSXTransformEnabled=ml;function xl(l,Q){var ln=Q==null?void 0:Q.pragmas.get("jsximportsource"),wn=e.isArray(ln)?ln[ln.length-1]:ln;return l.jsx===4||l.jsx===5||l.jsxImportSource||wn?(wn==null?void 0:wn.arguments.factory)||l.jsxImportSource||"react":void 0}e.getJSXImplicitImportBase=xl;function wl(l,Q){return l?l+"/"+(Q.jsx===5?"jsx-dev-runtime":"jsx-runtime"):void 0}e.getJSXRuntimeImport=wl;function ru(l){for(var Q=!1,ln=0;ln<l.length;ln++)if(l.charCodeAt(ln)===42)if(!Q)Q=!0;else return!1;return!0}e.hasZeroOrOneAsteriskCharacter=ru;function ql(l,Q){var ln,wn,Fr,zr=!1;return{getSymlinkedFiles:function(){return Fr},getSymlinkedDirectories:function(){return ln},getSymlinkedDirectoriesByRealpath:function(){return wn},setSymlinkedFile:function(La,yi){return(Fr||(Fr=new e.Map)).set(La,yi)},setSymlinkedDirectory:function(La,yi){var Ci=e.toPath(La,l,Q);$_(Ci)||(Ci=e.ensureTrailingDirectorySeparator(Ci),yi!==!1&&!(ln!=null&&ln.has(Ci))&&(wn||(wn=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(yi.realPath),La),(ln||(ln=new e.Map)).set(Ci,yi))},setSymlinkedDirectoryFromSymlinkedFile:function(La,yi){this.setSymlinkedFile(e.toPath(La,l,Q),yi);var Ci=yp(yi,La,l,Q)||e.emptyArray,Ei=Ci[0],po=Ci[1];Ei&&po&&this.setSymlinkedDirectory(po,{real:Ei,realPath:e.toPath(Ei,l,Q)})},setSymlinksFromResolutions:function(La,yi){var Ci=this,Ei;e.Debug.assert(!zr),zr=!0;for(var po=0,Ns=La;po<Ns.length;po++){var _l=Ns[po];(Ei=_l.resolvedModules)===null||Ei===void 0||Ei.forEach(function(ks){return oa(Ci,ks)})}yi==null||yi.forEach(function(ks){return oa(Ci,ks)})},hasProcessedResolutions:function(){return zr}};function oa(La,yi){if(!(!yi||!yi.originalPath||!yi.resolvedFileName)){var Ci=yi.resolvedFileName,Ei=yi.originalPath;La.setSymlinkedFile(e.toPath(Ei,l,Q),Ci);var po=yp(Ci,Ei,l,Q)||e.emptyArray,Ns=po[0],_l=po[1];Ns&&_l&&La.setSymlinkedDirectory(_l,{real:Ns,realPath:e.toPath(Ns,l,Q)})}}}e.createSymlinkCache=ql;function yp(l,Q,ln,wn){for(var Fr=e.getPathComponents(e.getNormalizedAbsolutePath(l,ln)),zr=e.getPathComponents(e.getNormalizedAbsolutePath(Q,ln)),oa=!1;!Jp(Fr[Fr.length-2],wn)&&!Jp(zr[zr.length-2],wn)&&wn(Fr[Fr.length-1])===wn(zr[zr.length-1]);)Fr.pop(),zr.pop(),oa=!0;return oa?[e.getPathFromPathComponents(Fr),e.getPathFromPathComponents(zr)]:void 0}function Jp(l,Q){return Q(l)==="node_modules"||e.startsWith(l,"@")}function Kp(l){return e.isAnyDirectorySeparator(l.charCodeAt(0))?l.slice(1):void 0}function Hc(l,Q,ln){var wn=e.tryRemovePrefix(l,Q,ln);return wn===void 0?void 0:Kp(wn)}e.tryRemoveDirectoryPrefix=Hc;var zp=/[^\w\s\/]/g;function Ac(l){return l.replace(zp,qv)}e.regExpEscape=Ac;function qv(l){return"\\"+l}var wy=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Wg="(?!("+e.commonPackageFolders.join("|")+")(/|$))",Tu={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+Wg+"[^/.][^/]*)*?",replaceWildcardCharacter:function(l){return a_(l,Tu.singleAsteriskRegexFragment)}},gm={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+Wg+"[^/.][^/]*)*?",replaceWildcardCharacter:function(l){return a_(l,gm.singleAsteriskRegexFragment)}},jg={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(l){return a_(l,jg.singleAsteriskRegexFragment)}},Xv={files:Tu,directories:gm,exclude:jg};function K_(l,Q,ln){var wn=z_(l,Q,ln);if(!(!wn||!wn.length)){var Fr=wn.map(function(oa){return"("+oa+")"}).join("|"),zr=ln==="exclude"?"($|/)":"$";return"^("+Fr+")"+zr}}e.getRegularExpressionForWildcard=K_;function z_(l,Q,ln){if(!(l===void 0||l.length===0))return e.flatMap(l,function(wn){return wn&&Qv(wn,Q,ln,Xv[ln])})}e.getRegularExpressionsForWildcards=z_;function Yv(l){return!/[.*?]/.test(l)}e.isImplicitGlob=Yv;function Hg(l,Q,ln){var wn=l&&Qv(l,Q,ln,Xv[ln]);return wn&&"^("+wn+")"+(ln==="exclude"?"($|/)":"$")}e.getPatternFromSpec=Hg;function Qv(l,Q,ln,wn){var Fr=wn.singleAsteriskRegexFragment,zr=wn.doubleAsteriskRegexFragment,oa=wn.replaceWildcardCharacter,La="",yi=!1,Ci=e.getNormalizedPathComponents(l,Q),Ei=e.last(Ci);if(!(ln!=="exclude"&&Ei==="**")){Ci[0]=e.removeTrailingDirectorySeparator(Ci[0]),Yv(Ei)&&Ci.push("**","*");for(var po=0,Ns=0,_l=Ci;Ns<_l.length;Ns++){var ks=_l[Ns];if(ks==="**")La+=zr;else if(ln==="directories"&&(La+="(",po++),yi&&(La+=e.directorySeparator),ln!=="exclude"){var Yl="";ks.charCodeAt(0)===42?(Yl+="([^./]"+Fr+")?",ks=ks.substr(1)):ks.charCodeAt(0)===63&&(Yl+="[^./]",ks=ks.substr(1)),Yl+=ks.replace(zp,oa),Yl!==ks&&(La+=Wg),La+=Yl}else La+=ks.replace(zp,oa);yi=!0}for(;po>0;)La+=")?",po--;return La}}function a_(l,Q){return l==="*"?Q:l==="?"?"[^/]":"\\"+l}function Jg(l,Q,ln,wn,Fr){l=e.normalizePath(l),Fr=e.normalizePath(Fr);var zr=e.combinePaths(Fr,l);return{includeFilePatterns:e.map(z_(ln,zr,"files"),function(oa){return"^"+oa+"$"}),includeFilePattern:K_(ln,zr,"files"),includeDirectoryPattern:K_(ln,zr,"directories"),excludePattern:K_(Q,zr,"exclude"),basePaths:Gy(l,ln,wn)}}e.getFileMatcherPatterns=Jg;function q_(l,Q){return new RegExp(l,Q?"":"i")}e.getRegexFromPattern=q_;function Fy(l,Q,ln,wn,Fr,zr,oa,La,yi,Ci){l=e.normalizePath(l),zr=e.normalizePath(zr);for(var Ei=Jg(l,ln,wn,Fr,zr),po=Ei.includeFilePatterns&&Ei.includeFilePatterns.map(function(c_){return q_(c_,Fr)}),Ns=Ei.includeDirectoryPattern&&q_(Ei.includeDirectoryPattern,Fr),_l=Ei.excludePattern&&q_(Ei.excludePattern,Fr),ks=po?po.map(function(){return[]}):[[]],Yl=new e.Map,Vs=e.createGetCanonicalFileName(Fr),ou=0,xd=Ei.basePaths;ou<xd.length;ou++){var qp=xd[ou];Ci(qp)&&Xf(qp,e.combinePaths(zr,qp),oa)}return e.flatten(ks);function Xf(c_,u_,Xp){var Lu=Vs(yi(u_));if(!Yl.has(Lu)){Yl.set(Lu,!0);for(var np=La(c_),su=np.files,rE=np.directories,rv=function(iv){var _o=e.combinePaths(c_,iv),bp=e.combinePaths(u_,iv);if(Q&&!e.fileExtensionIsOneOf(_o,Q)||_l&&_l.test(bp))return"continue";if(!po)ks[0].push(_o);else{var rg=e.findIndex(po,function(tE){return tE.test(bp)});rg!==-1&&ks[rg].push(_o)}},tv=0,eg=e.sort(su,e.compareStringsCaseSensitive);tv<eg.length;tv++){var uf=eg[tv];rv(uf)}if(!(Xp!==void 0&&(Xp--,Xp===0)))for(var ng=0,Id=e.sort(rE,e.compareStringsCaseSensitive);ng<Id.length;ng++){var uf=Id[ng],Cc=e.combinePaths(c_,uf),av=e.combinePaths(u_,uf);(!Ns||Ns.test(av))&&(!_l||!_l.test(av))&&Xf(Cc,av,Xp)}}}}e.matchFiles=Fy;function Gy(l,Q,ln){var wn=[l];if(Q){for(var Fr=[],zr=0,oa=Q;zr<oa.length;zr++){var La=oa[zr],yi=e.isRootedDiskPath(La)?La:e.normalizePath(e.combinePaths(l,La));Fr.push(Zv(yi))}Fr.sort(e.getStringComparer(!ln));for(var Ci=function(_l){e.every(wn,function(ks){return!e.containsPath(ks,_l,l,!ln)})&&wn.push(_l)},Ei=0,po=Fr;Ei<po.length;Ei++){var Ns=po[Ei];Ci(Ns)}}return wn}function Zv(l){var Q=e.indexOfAnyCharCode(l,wy);return Q<0?e.hasExtension(l)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(l)):l:l.substring(0,l.lastIndexOf(e.directorySeparator,Q))}function By(l,Q){return Q||km(l)||3}e.ensureScriptKind=By;function km(l){var Q=l.substr(l.lastIndexOf("."));switch(Q.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=km,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 X_=Vr(Vr([],e.supportedTSExtensions,!0),e.supportedJSExtensions,!0),Uy=Vr(Vr(Vr([],e.supportedTSExtensions,!0),e.supportedJSExtensions,!0),[".json"],!1);function $v(l,Q){var ln=l&&_a(l);if(!Q||Q.length===0)return ln?X_:e.supportedTSExtensions;var wn=Vr(Vr([],ln?X_:e.supportedTSExtensions,!0),e.mapDefined(Q,function(Fr){return Fr.scriptKind===7||ln&&eh(Fr.scriptKind)?Fr.extension:void 0}),!0);return e.deduplicate(wn,e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}e.getSupportedExtensions=$v;function Kg(l,Q){return!l||!l.resolveJsonModule?Q:Q===X_?Uy:Q===e.supportedTSExtensions?e.supportedTSExtensionsWithJson:Vr(Vr([],Q,!0),[".json"],!1)}e.getSuppoertedExtensionsWithJsonIfResolveJsonModule=Kg;function eh(l){return l===1||l===2}function Vy(l){return e.some(e.supportedJSExtensions,function(Q){return e.fileExtensionIs(l,Q)})}e.hasJSFileExtension=Vy;function Wy(l){return e.some(e.supportedTSExtensions,function(Q){return e.fileExtensionIs(l,Q)})}e.hasTSFileExtension=Wy;function jy(l,Q,ln){if(!l)return!1;for(var wn=$v(Q,ln),Fr=0,zr=Kg(Q,wn);Fr<zr.length;Fr++){var oa=zr[Fr];if(e.fileExtensionIs(l,oa))return!0}return!1}e.isSupportedSourceFileName=jy;function i_(l){var Q=l.match(/\//g);return Q?Q.length:0}function zg(l,Q){return e.compareValues(i_(l),i_(Q))}e.compareNumberOfDirectorySeparators=zg;var Hy;(function(l){l[l.TypeScriptFiles=0]="TypeScriptFiles",l[l.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",l[l.Highest=0]="Highest",l[l.Lowest=2]="Lowest"})(Hy=e.ExtensionPriority||(e.ExtensionPriority={}));function Jy(l,Q){for(var ln=Q.length-1;ln>=0;ln--)if(e.fileExtensionIs(l,Q[ln]))return Su(ln,Q);return 0}e.getExtensionPriority=Jy;function Su(l,Q){return l<2?0:l<Q.length?2:Q.length}e.adjustExtensionPriority=Su;function tu(l,Q){return l<2?2:Q.length}e.getNextLowestExtensionPriority=tu;var $d=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function Mc(l){for(var Q=0,ln=$d;Q<ln.length;Q++){var wn=ln[Q],Fr=qg(l,wn);if(Fr!==void 0)return Fr}return l}e.removeFileExtension=Mc;function qg(l,Q){return e.fileExtensionIs(l,Q)?Y_(l,Q):void 0}e.tryRemoveExtension=qg;function Y_(l,Q){return l.substring(0,l.length-Q.length)}e.removeExtension=Y_;function Q_(l,Q){return e.changeAnyExtension(l,Q,$d,!1)}e.changeExtension=Q_;function au(l){var Q=l.indexOf("*");return Q===-1?l:l.indexOf("*",Q+1)!==-1?void 0:{prefix:l.substr(0,Q),suffix:l.substr(Q+1)}}e.tryParsePattern=au;function nh(l){return e.mapDefined(e.getOwnKeys(l),function(Q){return au(Q)})}e.tryParsePatterns=nh;function Rm(l){return!(l>=0)}e.positionIsSynthesized=Rm;function rh(l){return l===".ts"||l===".tsx"||l===".d.ts"}e.extensionIsTS=rh;function hc(l){return rh(l)||l===".json"}e.resolutionExtensionIsTSOrJson=hc;function Du(l){var Q=Df(l);return Q!==void 0?Q:e.Debug.fail("File "+l+" has unknown extension.")}e.extensionFromPath=Du;function qf(l){return Df(l)!==void 0}e.isAnySupportedFileExtension=qf;function Df(l){return e.find($d,function(Q){return e.fileExtensionIs(l,Q)})}e.tryGetExtensionFromPath=Df;function o_(l,Q){return l.checkJsDirective?l.checkJsDirective.enabled:Q.checkJs}e.isCheckJsEnabledForFile=o_,e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray};function bo(l,Q){for(var ln=[],wn=0,Fr=l;wn<Fr.length;wn++){var zr=Fr[wn];if(zr===Q)return Q;e.isString(zr)||ln.push(zr)}return e.findBestPatternMatch(ln,function(oa){return oa},Q)}e.matchPatternOrExact=bo;function Ky(l,Q){var ln=l.indexOf(Q);return e.Debug.assert(ln!==-1),l.slice(ln)}e.sliceAfter=Ky;function zy(l){for(var Q,ln=[],wn=1;wn<arguments.length;wn++)ln[wn-1]=arguments[wn];return ln.length&&(l.relatedInformation||(l.relatedInformation=[]),e.Debug.assert(l.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),(Q=l.relatedInformation).push.apply(Q,ln)),l}e.addRelatedInfo=zy;function Ep(l,Q){e.Debug.assert(l.length!==0);for(var ln=Q(l[0]),wn=ln,Fr=1;Fr<l.length;Fr++){var zr=Q(l[Fr]);zr<ln?ln=zr:zr>wn&&(wn=zr)}return{min:ln,max:wn}}e.minAndMax=Ep;function yc(l){return{pos:te(l),end:l.end}}e.rangeOfNode=yc;function qy(l,Q){var ln=Q.pos-1,wn=e.skipTrivia(l.text,Q.end)+1;return{pos:ln,end:wn}}e.rangeOfTypeParameters=qy;function Xg(l,Q,ln){return Q.skipLibCheck&&l.isDeclarationFile||Q.skipDefaultLibCheck&&l.hasNoDefaultLib||ln.isSourceOfProjectReferenceRedirect(l.fileName)}e.skipTypeChecking=Xg;function Yg(l,Q){return l===Q||typeof l=="object"&&l!==null&&typeof Q=="object"&&Q!==null&&e.equalOwnProperties(l,Q,Yg)}e.isJsonEqual=Yg;function Qg(l){var Q;switch(l.charCodeAt(1)){case 98:case 66:Q=1;break;case 111:case 79:Q=3;break;case 120:case 88:Q=4;break;default:for(var ln=l.length-1,wn=0;l.charCodeAt(wn)===48;)wn++;return l.slice(wn,ln)||"0"}for(var Fr=2,zr=l.length-1,oa=(zr-Fr)*Q,La=new Uint16Array((oa>>>4)+(oa&15?1:0)),yi=zr-1,Ci=0;yi>=Fr;yi--,Ci+=Q){var Ei=Ci>>>4,po=l.charCodeAt(yi),Ns=po<=57?po-48:10+po-(po<=70?65:97),_l=Ns<<(Ci&15);La[Ei]|=_l;var ks=_l>>>16;ks&&(La[Ei+1]|=ks)}for(var Yl="",Vs=La.length-1,ou=!0;ou;){var xd=0;ou=!1;for(var Ei=Vs;Ei>=0;Ei--){var qp=xd<<16|La[Ei],Xf=qp/10|0;La[Ei]=Xf,xd=qp-Xf*10,Xf&&!ou&&(Vs=Ei,ou=!0)}Yl=xd+Yl}return Yl}e.parsePseudoBigInt=Qg;function th(l){var Q=l.negative,ln=l.base10Value;return(Q&&ln!=="0"?"-":"")+ln}e.pseudoBigIntToString=th;function ah(l){return!!(l.flags&8388608)||mn(l)||s_(l)||Xl(l)||!(Jo(l)||Yy(l))}e.isValidTypeOnlyAliasUseSite=ah;function Xy(l){return l.kind===273}e.typeOnlyDeclarationIsExport=Xy;function Yy(l){return e.isIdentifier(l)&&e.isShorthandPropertyAssignment(l.parent)&&l.parent.name===l}function Xl(l){for(;l.kind===79||l.kind===204;)l=l.parent;if(l.kind!==160)return!1;if(el(l.parent,128))return!0;var Q=l.parent.parent.kind;return Q===256||Q===180}function s_(l){if(l.kind!==79)return!1;var Q=e.findAncestor(l.parent,function(ln){switch(ln.kind){case 289:return!0;case 204:case 226:return!1;default:return"quit"}});return(Q==null?void 0:Q.token)===117||(Q==null?void 0:Q.parent.kind)===256}function Zg(l){return e.isTypeReferenceNode(l)&&e.isIdentifier(l.typeName)}e.isIdentifierTypeReference=Zg;function $g(l,Q){if(Q===void 0&&(Q=e.equateValues),l.length<2)return!0;for(var ln=l[0],wn=1,Fr=l.length;wn<Fr;wn++){var zr=l[wn];if(!Q(ln,zr))return!1}return!0}e.arrayIsHomogeneous=$g;function ih(l,Q){return l.pos=Q,l}e.setTextRangePos=ih;function Z_(l,Q){return l.end=Q,l}e.setTextRangeEnd=Z_;function ep(l,Q,ln){return Z_(ih(l,Q),ln)}e.setTextRangePosEnd=ep;function Qy(l,Q,ln){return ep(l,Q,Q+ln)}e.setTextRangePosWidth=Qy;function Zy(l,Q){return l&&(l.flags=Q),l}e.setNodeFlags=Zy;function ev(l,Q){return l&&Q&&(l.parent=Q),l}e.setParent=ev;function $y(l,Q){if(l)for(var ln=0,wn=l;ln<wn.length;ln++){var Fr=wn[ln];ev(Fr,Q)}return l}e.setEachParent=$y;function Il(l,Q){if(!l)return l;return e.forEachChildRecursively(l,e.isJSDocNode(l)?ln:Fr),l;function ln(zr,oa){if(Q&&zr.parent===oa)return"skip";ev(zr,oa)}function wn(zr){if(e.hasJSDocNodes(zr))for(var oa=0,La=zr.jsDoc;oa<La.length;oa++){var yi=La[oa];ln(yi,zr),e.forEachChildRecursively(yi,ln)}}function Fr(zr,oa){return ln(zr,oa)||wn(zr)}}e.setParentRecursive=Il;function l_(l){return!e.isOmittedExpression(l)}function oh(l){return e.isArrayLiteralExpression(l)&&e.every(l.elements,l_)}e.isPackedArrayLiteral=oh;function nv(l){for(e.Debug.assertIsDefined(l.parent);;){var Q=l.parent;if(e.isParenthesizedExpression(Q)){l=Q;continue}if(e.isExpressionStatement(Q)||e.isVoidExpression(Q)||e.isForStatement(Q)&&(Q.initializer===l||Q.incrementor===l))return!0;if(e.isCommaListExpression(Q)){if(l!==e.last(Q.elements))return!0;l=Q;continue}if(e.isBinaryExpression(Q)&&Q.operatorToken.kind===27){if(l===Q.left)return!0;l=Q;continue}return!1}}e.expressionResultIsUnused=nv;function $_(l){return e.some(e.ignoredPaths,function(Q){return e.stringContains(l,Q)})}e.containsIgnoredPath=$_;function iu(l){if(l.parent){switch(l.kind){case 161:var Q=l.parent;return Q.kind===188?void 0:Q.typeParameters;case 162:return l.parent.parameters;case 197:return l.parent.templateSpans;case 231:return l.parent.templateSpans;case 163:return l.parent.decorators;case 289:return l.parent.heritageClauses}var ln=l.parent;if(e.isJSDocTag(l))return e.isJSDocTypeLiteral(l.parent)?void 0:l.parent.tags;switch(ln.kind){case 180:case 256:return e.isTypeElement(l)?ln.members:void 0;case 185:case 186:return ln.types;case 182:case 202:case 346:case 267:case 271:return ln.elements;case 203:case 284:return ln.properties;case 206:case 207:return e.isTypeNode(l)?ln.typeArguments:ln.expression===l?void 0:ln.arguments;case 276:case 280:return e.isJsxChild(l)?ln.children:void 0;case 278:case 277:return e.isTypeNode(l)?ln.typeArguments:void 0;case 233:case 287:case 288:case 260:return ln.statements;case 261:return ln.clauses;case 255:case 224:return e.isClassElement(l)?ln.members:void 0;case 258:return e.isEnumMember(l)?ln.members:void 0;case 300:return ln.statements}}}e.getContainingNodeArray=iu;function eE(l){if(!l.typeParameters){if(e.some(l.parameters,function(ln){return!ef(ln)}))return!0;if(l.kind!==212){var Q=e.firstOrUndefined(l.parameters);if(!(Q&&yf(Q)))return!0}}return!1}e.hasContextSensitiveParameters=eE;function nE(l){return l==="Infinity"||l==="-Infinity"||l==="NaN"}e.isInfinityOrNaNString=nE})(vn||(vn={}));var vn;(function(e){function o(){var ue,$,Y,W,re;return{createBaseSourceFileNode:ye,createBaseIdentifierNode:O,createBasePrivateIdentifierNode:A,createBaseTokenNode:D,createBaseNode:de};function ye(_e){return new(re||(re=e.objectAllocator.getSourceFileConstructor()))(_e,-1,-1)}function O(_e){return new(Y||(Y=e.objectAllocator.getIdentifierConstructor()))(_e,-1,-1)}function A(_e){return new(W||(W=e.objectAllocator.getPrivateIdentifierConstructor()))(_e,-1,-1)}function D(_e){return new($||($=e.objectAllocator.getTokenConstructor()))(_e,-1,-1)}function de(_e){return new(ue||(ue=e.objectAllocator.getNodeConstructor()))(_e,-1,-1)}}e.createBaseNodeFactory=o})(vn||(vn={}));var vn;(function(e){function o(ue){var $,Y;return{getParenthesizeLeftSideOfBinaryForOperator:W,getParenthesizeRightSideOfBinaryForOperator:re,parenthesizeLeftSideOfBinary:de,parenthesizeRightSideOfBinary:_e,parenthesizeExpressionOfComputedPropertyName:y,parenthesizeConditionOfConditionalExpression:V,parenthesizeBranchOfConditionalExpression:Z,parenthesizeExpressionOfExportDefault:E,parenthesizeExpressionOfNew:H,parenthesizeLeftSideOfAccess:L,parenthesizeOperandOfPostfixUnary:ee,parenthesizeOperandOfPrefixUnary:k,parenthesizeExpressionsOfCommaDelimitedList:b,parenthesizeExpressionForDisallowedComma:ie,parenthesizeExpressionOfExpressionStatement:q,parenthesizeConciseBodyOfArrowFunction:oe,parenthesizeMemberOfConditionalType:se,parenthesizeMemberOfElementType:w,parenthesizeElementTypeOfArrayType:R,parenthesizeConstituentTypesOfUnionOrIntersectionType:ne,parenthesizeTypeArguments:C};function W(d){$||($=new e.Map);var G=$.get(d);return G||(G=function(g){return de(d,g)},$.set(d,G)),G}function re(d){Y||(Y=new e.Map);var G=Y.get(d);return G||(G=function(g){return _e(d,void 0,g)},Y.set(d,G)),G}function ye(d,G,g,p){var f=e.getOperatorPrecedence(219,d),T=e.getOperatorAssociativity(219,d),m=e.skipPartiallyEmittedExpressions(G);if(!g&&G.kind===212&&f>3)return!0;var N=e.getExpressionPrecedence(m);switch(e.compareValues(N,f)){case-1:return!(!g&&T===1&&G.kind===222);case 1:return!1;case 0:if(g)return T===1;if(e.isBinaryExpression(m)&&m.operatorToken.kind===d){if(O(d))return!1;if(d===39){var P=p?A(p):0;if(e.isLiteralKind(P)&&P===A(m))return!1}}var x=e.getExpressionAssociativity(m);return x===0}}function O(d){return d===41||d===51||d===50||d===52}function A(d){if(d=e.skipPartiallyEmittedExpressions(d),e.isLiteralKind(d.kind))return d.kind;if(d.kind===219&&d.operatorToken.kind===39){if(d.cachedLiteralKind!==void 0)return d.cachedLiteralKind;var G=A(d.left),g=e.isLiteralKind(G)&&G===A(d.right)?G:0;return d.cachedLiteralKind=g,g}return 0}function D(d,G,g,p){var f=e.skipPartiallyEmittedExpressions(G);return f.kind===210?G:ye(d,G,g,p)?ue.createParenthesizedExpression(G):G}function de(d,G){return D(d,G,!0)}function _e(d,G,g){return D(d,g,!1,G)}function y(d){return e.isCommaSequence(d)?ue.createParenthesizedExpression(d):d}function V(d){var G=e.getOperatorPrecedence(220,57),g=e.skipPartiallyEmittedExpressions(d),p=e.getExpressionPrecedence(g);return e.compareValues(p,G)!==1?ue.createParenthesizedExpression(d):d}function Z(d){var G=e.skipPartiallyEmittedExpressions(d);return e.isCommaSequence(G)?ue.createParenthesizedExpression(d):d}function E(d){var G=e.skipPartiallyEmittedExpressions(d),g=e.isCommaSequence(G);if(!g)switch(e.getLeftmostExpression(G,!1).kind){case 224:case 211:g=!0}return g?ue.createParenthesizedExpression(d):d}function H(d){var G=e.getLeftmostExpression(d,!0);switch(G.kind){case 206:return ue.createParenthesizedExpression(d);case 207:return G.arguments?d:ue.createParenthesizedExpression(d)}return L(d)}function L(d){var G=e.skipPartiallyEmittedExpressions(d);return e.isLeftHandSideExpression(G)&&(G.kind!==207||G.arguments)?d:e.setTextRange(ue.createParenthesizedExpression(d),d)}function ee(d){return e.isLeftHandSideExpression(d)?d:e.setTextRange(ue.createParenthesizedExpression(d),d)}function k(d){return e.isUnaryExpression(d)?d:e.setTextRange(ue.createParenthesizedExpression(d),d)}function b(d){var G=e.sameMap(d,ie);return e.setTextRange(ue.createNodeArray(G,d.hasTrailingComma),d)}function ie(d){var G=e.skipPartiallyEmittedExpressions(d),g=e.getExpressionPrecedence(G),p=e.getOperatorPrecedence(219,27);return g>p?d:e.setTextRange(ue.createParenthesizedExpression(d),d)}function q(d){var G=e.skipPartiallyEmittedExpressions(d);if(e.isCallExpression(G)){var g=G.expression,p=e.skipPartiallyEmittedExpressions(g).kind;if(p===211||p===212){var f=ue.updateCallExpression(G,e.setTextRange(ue.createParenthesizedExpression(g),g),G.typeArguments,G.arguments);return ue.restoreOuterExpressions(d,f,8)}}var T=e.getLeftmostExpression(G,!1).kind;return T===203||T===211?e.setTextRange(ue.createParenthesizedExpression(d),d):d}function oe(d){return!e.isBlock(d)&&(e.isCommaSequence(d)||e.getLeftmostExpression(d,!1).kind===203)?e.setTextRange(ue.createParenthesizedExpression(d),d):d}function se(d){return d.kind===187?ue.createParenthesizedType(d):d}function w(d){switch(d.kind){case 185:case 186:case 177:case 178:return ue.createParenthesizedType(d)}return se(d)}function R(d){switch(d.kind){case 179:case 191:case 188:return ue.createParenthesizedType(d)}return w(d)}function ne(d){return ue.createNodeArray(e.sameMap(d,w))}function U(d,G){return G===0&&e.isFunctionOrConstructorTypeNode(d)&&d.typeParameters?ue.createParenthesizedType(d):d}function C(d){if(e.some(d))return ue.createNodeArray(e.sameMap(d,U))}}e.createParenthesizerRules=o,e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(ue){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(ue){return e.identity},parenthesizeLeftSideOfBinary:function(ue,$){return $},parenthesizeRightSideOfBinary:function(ue,$,Y){return Y},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(ue){return e.cast(ue,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(ue){return e.cast(ue,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(ue){return e.cast(ue,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(ue){return e.cast(ue,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(ue){return e.cast(ue,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(ue){return e.cast(ue,e.isNodeArray)},parenthesizeTypeArguments:function(ue){return ue&&e.cast(ue,e.isNodeArray)}}})(vn||(vn={}));var vn;(function(e){function o(ue){return{convertToFunctionBlock:$,convertToFunctionExpression:Y,convertToArrayAssignmentElement:W,convertToObjectAssignmentElement:re,convertToAssignmentPattern:ye,convertToObjectAssignmentPattern:O,convertToArrayAssignmentPattern:A,convertToAssignmentElementTarget:D};function $(de,_e){if(e.isBlock(de))return de;var y=ue.createReturnStatement(de);e.setTextRange(y,de);var V=ue.createBlock([y],_e);return e.setTextRange(V,de),V}function Y(de){if(!de.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var _e=ue.createFunctionExpression(de.modifiers,de.asteriskToken,de.name,de.typeParameters,de.parameters,de.type,de.body);return e.setOriginalNode(_e,de),e.setTextRange(_e,de),e.getStartsOnNewLine(de)&&e.setStartsOnNewLine(_e,!0),_e}function W(de){if(e.isBindingElement(de)){if(de.dotDotDotToken)return e.Debug.assertNode(de.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(ue.createSpreadElement(de.name),de),de);var _e=D(de.name);return de.initializer?e.setOriginalNode(e.setTextRange(ue.createAssignment(_e,de.initializer),de),de):_e}return e.cast(de,e.isExpression)}function re(de){if(e.isBindingElement(de)){if(de.dotDotDotToken)return e.Debug.assertNode(de.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(ue.createSpreadAssignment(de.name),de),de);if(de.propertyName){var _e=D(de.name);return e.setOriginalNode(e.setTextRange(ue.createPropertyAssignment(de.propertyName,de.initializer?ue.createAssignment(_e,de.initializer):_e),de),de)}return e.Debug.assertNode(de.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(ue.createShorthandPropertyAssignment(de.name,de.initializer),de),de)}return e.cast(de,e.isObjectLiteralElementLike)}function ye(de){switch(de.kind){case 200:case 202:return A(de);case 199:case 203:return O(de)}}function O(de){return e.isObjectBindingPattern(de)?e.setOriginalNode(e.setTextRange(ue.createObjectLiteralExpression(e.map(de.elements,re)),de),de):e.cast(de,e.isObjectLiteralExpression)}function A(de){return e.isArrayBindingPattern(de)?e.setOriginalNode(e.setTextRange(ue.createArrayLiteralExpression(e.map(de.elements,W)),de),de):e.cast(de,e.isArrayLiteralExpression)}function D(de){return e.isBindingPattern(de)?ye(de):e.cast(de,e.isExpression)}}e.createNodeConverters=o,e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}})(vn||(vn={}));var vn;(function(e){var o=0,ue;(function(ne){ne[ne.None=0]="None",ne[ne.NoParenthesizerRules=1]="NoParenthesizerRules",ne[ne.NoNodeConverters=2]="NoNodeConverters",ne[ne.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",ne[ne.NoOriginalNode=8]="NoOriginalNode"})(ue=e.NodeFactoryFlags||(e.NodeFactoryFlags={}));function $(ne,U){var C=ne&8?Y:W,d=e.memoize(function(){return ne&1?e.nullParenthesizerRules:e.createParenthesizerRules(z)}),G=e.memoize(function(){return ne&2?e.nullNodeConverters:e.createNodeConverters(z)}),g=e.memoizeOne(function(_){return function(B,Ee){return Pn(B,_,Ee)}}),p=e.memoizeOne(function(_){return function(B){return Xt(_,B)}}),f=e.memoizeOne(function(_){return function(B){return ha(B,_)}}),T=e.memoizeOne(function(_){return function(){return Ba(_)}}),m=e.memoizeOne(function(_){return function(B){return _i(_,B)}}),N=e.memoizeOne(function(_){return function(B,Ee){return No(_,B,Ee)}}),P=e.memoizeOne(function(_){return function(B,Ee){return ef(_,B,Ee)}}),x=e.memoizeOne(function(_){return function(B,Ee,on){return Zc(_,B,Ee,on)}}),M=e.memoizeOne(function(_){return function(B,Ee,on){return jd(_,B,Ee,on)}}),me=e.memoizeOne(function(_){return function(B,Ee,on,qn){return Bf(_,B,Ee,on,qn)}}),z={get parenthesizer(){return d()},get converters(){return G()},createNodeArray:K,createNumericLiteral:pe,createBigIntLiteral:we,createStringLiteral:Qe,createStringLiteralFromNode:Re,createRegularExpressionLiteral:He,createLiteralLikeNode:Ln,createIdentifier:En,updateIdentifier:i,createTempVariable:In,createLoopVariable:X,createUniqueName:rn,getGeneratedNameForNode:$n,createPrivateIdentifier:Vn,createToken:Pe,createSuper:xe,createThis:Ze,createNull:hn,createTrue:Le,createFalse:$e,createModifier:An,createModifiersFromModifierFlags:Ue,createQualifiedName:gn,updateQualifiedName:Wn,createComputedPropertyName:ze,updateComputedPropertyName:Tn,createTypeParameterDeclaration:On,updateTypeParameterDeclaration:ur,createParameterDeclaration:hr,updateParameterDeclaration:wr,createDecorator:Qr,updateDecorator:Ke,createPropertySignature:jn,updatePropertySignature:Zn,createPropertyDeclaration:Me,updatePropertyDeclaration:Mn,createMethodSignature:ar,updateMethodSignature:Xn,createMethodDeclaration:yr,updateMethodDeclaration:cr,createConstructorDeclaration:J,updateConstructorDeclaration:Cn,createGetAccessorDeclaration:Gn,updateGetAccessorDeclaration:cn,createSetAccessorDeclaration:Rn,updateSetAccessorDeclaration:Ye,createCallSignature:xn,updateCallSignature:an,createConstructSignature:zn,updateConstructSignature:ir,createIndexSignature:gr,updateIndexSignature:Dr,createClassStaticBlockDeclaration:Fe,updateClassStaticBlockDeclaration:Bn,createTemplateLiteralTypeSpan:qr,updateTemplateLiteralTypeSpan:ft,createKeywordTypeNode:xt,createTypePredicateNode:Kr,updateTypePredicateNode:dt,createTypeReferenceNode:Ur,updateTypeReferenceNode:qt,createFunctionTypeNode:Cr,updateFunctionTypeNode:Jt,createConstructorTypeNode:Ot,updateConstructorTypeNode:eo,createTypeQueryNode:Ar,updateTypeQueryNode:at,createTypeLiteralNode:Hr,updateTypeLiteralNode:Wt,createArrayTypeNode:Zt,updateArrayTypeNode:Rr,createTupleTypeNode:Lr,updateTupleTypeNode:Xr,createNamedTupleMember:nt,updateNamedTupleMember:vt,createOptionalTypeNode:or,updateOptionalTypeNode:$t,createRestTypeNode:Va,updateRestTypeNode:li,createUnionTypeNode:di,updateUnionTypeNode:Yi,createIntersectionTypeNode:uo,updateIntersectionTypeNode:bi,createConditionalTypeNode:Mi,updateConditionalTypeNode:Go,createInferTypeNode:io,updateInferTypeNode:wi,createImportTypeNode:Qi,updateImportTypeNode:as,createParenthesizedType:gs,updateParenthesizedType:Da,createThisTypeNode:$a,createTypeOperatorNode:Ni,updateTypeOperatorNode:vo,createIndexedAccessTypeNode:Io,updateIndexedAccessTypeNode:Bo,createMappedTypeNode:Uo,updateMappedTypeNode:cs,createLiteralTypeNode:us,updateLiteralTypeNode:Jo,createTemplateLiteralType:Ho,updateTemplateLiteralType:qi,createObjectBindingPattern:is,updateObjectBindingPattern:mn,createArrayBindingPattern:_r,updateArrayBindingPattern:$r,createBindingElement:ia,updateBindingElement:ti,createArrayLiteralExpression:Ve,updateArrayLiteralExpression:ce,createObjectLiteralExpression:dn,updateObjectLiteralExpression:j,createPropertyAccessExpression:ne&4?function(_,B){return e.setEmitFlags(Ie(_,B),131072)}:Ie,updatePropertyAccessExpression:We,createPropertyAccessChain:ne&4?function(_,B,Ee){return e.setEmitFlags(sn(_,B,Ee),131072)}:sn,updatePropertyAccessChain:Hn,createElementAccessExpression:vr,updateElementAccessExpression:Sr,createElementAccessChain:ot,updateElementAccessChain:Et,createCallExpression:ra,updateCallExpression:Na,createCallChain:ei,updateCallChain:Li,createNewExpression:Zi,updateNewExpression:ho,createTaggedTemplateExpression:vs,updateTaggedTemplateExpression:Ao,createTypeAssertion:oo,updateTypeAssertion:Zo,createParenthesizedExpression:cl,updateParenthesizedExpression:ws,createFunctionExpression:vl,updateFunctionExpression:ul,createArrowFunction:ps,updateArrowFunction:jl,createDeleteExpression:Hl,updateDeleteExpression:Hs,createTypeOfExpression:Fs,updateTypeOfExpression:ge,createVoidExpression:Kn,updateVoidExpression:Te,createAwaitExpression:Fn,updateAwaitExpression:et,createPrefixUnaryExpression:Xt,updatePrefixUnaryExpression:ca,createPostfixUnaryExpression:ha,updatePostfixUnaryExpression:To,createBinaryExpression:Pn,updateBinaryExpression:Ko,createConditionalExpression:hs,updateConditionalExpression:hl,createTemplateExpression:Bi,updateTemplateExpression:Js,createTemplateHead:nc,createTemplateMiddle:Sc,createTemplateTail:Zl,createNoSubstitutionTemplateLiteral:du,createTemplateLiteralLikeNode:Ol,createYieldExpression:dc,updateYieldExpression:$l,createSpreadElement:kn,updateSpreadElement:lr,createClassExpression:Or,updateClassExpression:st,createOmittedExpression:yt,createExpressionWithTypeArguments:Tt,updateExpressionWithTypeArguments:Ut,createAsExpression:ea,updateAsExpression:zt,createNonNullExpression:Ii,updateNonNullExpression:ba,createNonNullChain:wa,updateNonNullChain:Ui,createMetaProperty:Fi,updateMetaProperty:he,createTemplateSpan:un,updateTemplateSpan:Sn,createSemicolonClassElement:Tr,createBlock:Wr,updateBlock:Yt,createVariableStatement:Ia,updateVariableStatement:hi,createEmptyStatement:yo,createExpressionStatement:Oo,updateExpressionStatement:ys,createIfStatement:Pi,updateIfStatement:Po,createDoStatement:Jn,updateDoStatement:zo,createWhileStatement:Es,updateWhileStatement:Rs,createForStatement:pu,updateForStatement:ol,createForInStatement:mu,updateForInStatement:fo,createForOfStatement:tl,updateForOfStatement:zc,createContinueStatement:_u,updateContinueStatement:qc,createBreakStatement:gu,updateBreakStatement:Xu,createReturnStatement:fd,updateReturnStatement:ic,createWithStatement:Pu,updateWithStatement:Bd,createSwitchStatement:Za,updateSwitchStatement:da,createLabeledStatement:pc,updateLabeledStatement:$o,createThrowStatement:Yu,updateThrowStatement:Dc,createTryStatement:xf,updateTryStatement:es,createDebuggerStatement:If,createVariableDeclaration:Qs,updateVariableDeclaration:Gc,createVariableDeclarationList:Ks,updateVariableDeclarationList:rc,createFunctionDeclaration:mf,updateFunctionDeclaration:_f,createClassDeclaration:vu,updateClassDeclaration:Qu,createInterfaceDeclaration:gf,updateInterfaceDeclaration:Nf,createTypeAliasDeclaration:kf,updateTypeAliasDeclaration:dd,createEnumDeclaration:pd,updateEnumDeclaration:Rf,createModuleDeclaration:Of,updateModuleDeclaration:md,createModuleBlock:Zu,updateModuleBlock:Xc,createCaseBlock:Pf,updateCaseBlock:Jl,createNamespaceExportDeclaration:$u,updateNamespaceExportDeclaration:Yc,createImportEqualsDeclaration:Ud,updateImportEqualsDeclaration:Lc,createImportDeclaration:mc,updateImportDeclaration:oc,createImportClause:Ti,updateImportClause:vf,createNamespaceImport:zs,updateNamespaceImport:xs,createNamespaceExport:sl,updateNamespaceExport:Mf,createNamedImports:wf,updateNamedImports:c,createImportSpecifier:h,updateImportSpecifier:ae,createExportAssignment:je,updateExportAssignment:_n,createExportDeclaration:Nn,updateExportDeclaration:er,createNamedExports:pr,updateNamedExports:kr,createExportSpecifier:Er,updateExportSpecifier:gt,createMissingDeclaration:rt,createExternalModuleReference:ma,updateExternalModuleReference:Ai,get createJSDocAllType(){return T(307)},get createJSDocUnknownType(){return T(308)},get createJSDocNonNullableType(){return m(310)},get updateJSDocNonNullableType(){return N(310)},get createJSDocNullableType(){return m(309)},get updateJSDocNullableType(){return N(309)},get createJSDocOptionalType(){return m(311)},get updateJSDocOptionalType(){return N(311)},get createJSDocVariadicType(){return m(313)},get updateJSDocVariadicType(){return N(313)},get createJSDocNamepathType(){return m(314)},get updateJSDocNamepathType(){return N(314)},createJSDocFunctionType:to,updateJSDocFunctionType:Ca,createJSDocTypeLiteral:Qt,updateJSDocTypeLiteral:ni,createJSDocTypeExpression:Wa,updateJSDocTypeExpression:qa,createJSDocSignature:so,updateJSDocSignature:Vi,createJSDocTemplateTag:Ds,updateJSDocTemplateTag:ko,createJSDocTypedefTag:Pt,updateJSDocTypedefTag:wo,createJSDocParameterTag:gi,updateJSDocParameterTag:Qc,createJSDocPropertyTag:Vd,updateJSDocPropertyTag:hu,createJSDocCallbackTag:Dt,updateJSDocCallbackTag:hf,createJSDocAugmentsTag:Ls,updateJSDocAugmentsTag:Dl,createJSDocImplementsTag:ec,updateJSDocImplementsTag:wp,createJSDocSeeTag:Ff,updateJSDocSeeTag:dp,createJSDocNameReference:Mu,updateJSDocNameReference:Bc,createJSDocMemberName:Gf,updateJSDocMemberName:al,createJSDocLink:Ic,updateJSDocLink:Wd,createJSDocLinkCode:yf,updateJSDocLinkCode:Eo,createJSDocLinkPlain:wt,updateJSDocLinkPlain:Kl,get createJSDocTypeTag(){return M(338)},get updateJSDocTypeTag(){return me(338)},get createJSDocReturnTag(){return M(336)},get updateJSDocReturnTag(){return me(336)},get createJSDocThisTag(){return M(337)},get updateJSDocThisTag(){return me(337)},get createJSDocEnumTag(){return M(334)},get updateJSDocEnumTag(){return me(334)},get createJSDocAuthorTag(){return P(325)},get updateJSDocAuthorTag(){return x(325)},get createJSDocClassTag(){return P(327)},get updateJSDocClassTag(){return x(327)},get createJSDocPublicTag(){return P(328)},get updateJSDocPublicTag(){return x(328)},get createJSDocPrivateTag(){return P(329)},get updateJSDocPrivateTag(){return x(329)},get createJSDocProtectedTag(){return P(330)},get updateJSDocProtectedTag(){return x(330)},get createJSDocReadonlyTag(){return P(331)},get updateJSDocReadonlyTag(){return x(331)},get createJSDocOverrideTag(){return P(332)},get updateJSDocOverrideTag(){return x(332)},get createJSDocDeprecatedTag(){return P(326)},get updateJSDocDeprecatedTag(){return x(326)},createJSDocUnknownTag:_c,updateJSDocUnknownTag:$c,createJSDocText:Nc,updateJSDocText:kc,createJSDocComment:Pl,updateJSDocComment:Bs,createJsxElement:As,updateJsxElement:fl,createJsxSelfClosingElement:pp,updateJsxSelfClosingElement:Uc,createJsxOpeningElement:dl,updateJsxOpeningElement:nf,createJsxClosingElement:_d,updateJsxClosingElement:el,createJsxFragment:qo,createJsxText:yu,updateJsxText:rf,createJsxOpeningFragment:gd,createJsxJsxClosingFragment:Hd,updateJsxFragment:mp,createJsxAttribute:_p,updateJsxAttribute:vd,createJsxAttributes:Eu,updateJsxAttributes:Jd,createJsxSpreadAttribute:Uf,updateJsxSpreadAttribute:tf,createJsxExpression:Ef,updateJsxExpression:hd,createCaseClause:yd,updateCaseClause:af,createDefaultClause:Kd,updateDefaultClause:gp,createHeritageClause:Qa,updateHeritageClause:Rc,createCatchClause:Lt,updateCatchClause:Vf,createPropertyAssignment:wu,updatePropertyAssignment:Wf,createShorthandPropertyAssignment:bd,updateShorthandPropertyAssignment:gc,createSpreadAssignment:sc,updateSpreadAssignment:Td,createEnumMember:Fu,updateEnumMember:vp,createSourceFile:Sd,updateSourceFile:sf,createBundle:eu,updateBundle:zd,createUnparsedSource:Vc,createUnparsedPrologue:qd,createUnparsedPrepend:Oc,createUnparsedTextLike:jf,createUnparsedSyntheticReference:bu,createInputFiles:Os,createSyntheticExpression:Fp,createSyntaxList:no,createNotEmittedStatement:Hf,createPartiallyEmittedExpression:Ld,updatePartiallyEmittedExpression:Xd,createCommaListExpression:bf,updateCommaListExpression:v,createEndOfDeclarationMarker:nn,createMergeDeclarationMarker:mr,createSyntheticReferenceExpression:Br,updateSyntheticReferenceExpression:ya,cloneNode:Pa,get createComma(){return g(27)},get createAssignment(){return g(63)},get createLogicalOr(){return g(56)},get createLogicalAnd(){return g(55)},get createBitwiseOr(){return g(51)},get createBitwiseXor(){return g(52)},get createBitwiseAnd(){return g(50)},get createStrictEquality(){return g(36)},get createStrictInequality(){return g(37)},get createEquality(){return g(34)},get createInequality(){return g(35)},get createLessThan(){return g(29)},get createLessThanEquals(){return g(32)},get createGreaterThan(){return g(31)},get createGreaterThanEquals(){return g(33)},get createLeftShift(){return g(47)},get createRightShift(){return g(48)},get createUnsignedRightShift(){return g(49)},get createAdd(){return g(39)},get createSubtract(){return g(40)},get createMultiply(){return g(41)},get createDivide(){return g(43)},get createModulo(){return g(44)},get createExponent(){return g(42)},get createPrefixPlus(){return p(39)},get createPrefixMinus(){return p(40)},get createPrefixIncrement(){return p(45)},get createPrefixDecrement(){return p(46)},get createBitwiseNot(){return p(54)},get createLogicalNot(){return p(53)},get createPostfixIncrement(){return f(45)},get createPostfixDecrement(){return f(46)},createImmediatelyInvokedFunctionExpression:Ha,createImmediatelyInvokedArrowFunction:ci,createVoidZero:Xi,createExportDefault:ns,createExternalModuleExport:fs,createTypeCheck:pl,createMethodCall:Cs,createGlobalMethodCall:Al,createFunctionBindCall:Ll,createFunctionCallCall:Wc,createFunctionApplyCall:Bu,createArraySliceCall:jc,createArrayConcatCall:Gp,createObjectDefinePropertyCall:Bp,createReflectGetCall:Up,createReflectSetCall:Vp,createPropertyDescriptor:Cm,createCallBinding:ke,createAssignmentTargetWrapper:bn,inlineExpressions:Yn,getInternalName:Mr,getLocalName:lt,getExportName:Gt,getDeclarationName:ta,getNamespaceMemberName:pi,getExternalModuleOrNamespaceExportName:ka,restoreOuterExpressions:Wp,restoreEnclosingLabel:Ad,createUseStrictPrologue:Lo,copyPrologue:Do,copyStandardPrologue:ms,copyCustomPrologue:Us,ensureUseStrict:yl,liftToBlock:Cl,mergeLexicalEnvironment:tc,updateModifiers:Tf};return z;function K(_,B){if(_===void 0||_===e.emptyArray)_=[];else if(e.isNodeArray(_)){if(B===void 0||_.hasTrailingComma===B)return _.transformFlags===void 0&&V(_),e.Debug.attachNodeArrayDebugInfo(_),_;var Ee=_.slice();return Ee.pos=_.pos,Ee.end=_.end,Ee.hasTrailingComma=B,Ee.transformFlags=_.transformFlags,e.Debug.attachNodeArrayDebugInfo(Ee),Ee}var on=_.length,qn=on>=1&&on<=4?_.slice():_;return e.setTextRangePosEnd(qn,-1,-1),qn.hasTrailingComma=!!B,V(qn),e.Debug.attachNodeArrayDebugInfo(qn),qn}function I(_){return U.createBaseNode(_)}function Ae(_,B,Ee){var on=I(_);return on.decorators=Ml(B),on.modifiers=Ml(Ee),on.transformFlags|=y(on.decorators)|y(on.modifiers),on.symbol=void 0,on.localSymbol=void 0,on.locals=void 0,on.nextContainer=void 0,on}function Oe(_,B,Ee,on){var qn=Ae(_,B,Ee);if(on=zl(on),qn.name=on,on)switch(qn.kind){case 167:case 170:case 171:case 165:case 291:if(e.isIdentifier(on)){qn.transformFlags|=D(on);break}default:qn.transformFlags|=_e(on);break}return qn}function te(_,B,Ee,on,qn){var Zr=Oe(_,B,Ee,on);return Zr.typeParameters=Ml(qn),Zr.transformFlags|=y(Zr.typeParameters),qn&&(Zr.transformFlags|=1),Zr}function Se(_,B,Ee,on,qn,Zr,Nt){var Si=te(_,B,Ee,on,qn);return Si.parameters=K(Zr),Si.type=Nt,Si.transformFlags|=y(Si.parameters)|_e(Si.type),Nt&&(Si.transformFlags|=1),Si}function be(_,B){return B.typeArguments&&(_.typeArguments=B.typeArguments),C(_,B)}function Ce(_,B,Ee,on,qn,Zr,Nt,Si){var Yo=Se(_,B,Ee,on,qn,Zr,Nt);return Yo.body=Si,Yo.transformFlags|=_e(Yo.body)&-16777217,Si||(Yo.transformFlags|=1),Yo}function Be(_,B){return B.exclamationToken&&(_.exclamationToken=B.exclamationToken),B.typeArguments&&(_.typeArguments=B.typeArguments),be(_,B)}function De(_,B,Ee,on,qn,Zr){var Nt=te(_,B,Ee,on,qn);return Nt.heritageClauses=Ml(Zr),Nt.transformFlags|=y(Nt.heritageClauses),Nt}function en(_,B,Ee,on,qn,Zr,Nt){var Si=De(_,B,Ee,on,qn,Zr);return Si.members=K(Nt),Si.transformFlags|=y(Si.members),Si}function fe(_,B,Ee,on,qn){var Zr=Oe(_,B,Ee,on);return Zr.initializer=qn,Zr.transformFlags|=_e(Zr.initializer),Zr}function Ne(_,B,Ee,on,qn,Zr){var Nt=fe(_,B,Ee,on,Zr);return Nt.type=qn,Nt.transformFlags|=_e(qn),qn&&(Nt.transformFlags|=1),Nt}function qe(_,B){var Ee=le(_);return Ee.text=B,Ee}function pe(_,B){B===void 0&&(B=0);var Ee=qe(8,typeof _=="number"?_+"":_);return Ee.numericLiteralFlags=B,B&384&&(Ee.transformFlags|=512),Ee}function we(_){var B=qe(9,typeof _=="string"?_:e.pseudoBigIntToString(_)+"n");return B.transformFlags|=4,B}function pn(_,B){var Ee=qe(10,_);return Ee.singleQuote=B,Ee}function Qe(_,B,Ee){var on=pn(_,B);return on.hasExtendedUnicodeEscape=Ee,Ee&&(on.transformFlags|=512),on}function Re(_){var B=pn(e.getTextOfIdentifierOrLiteral(_),void 0);return B.textSourceNode=_,B}function He(_){var B=qe(13,_);return B}function Ln(_,B){switch(_){case 8:return pe(B,0);case 9:return we(B);case 10:return Qe(B,void 0);case 11:return yu(B,!1);case 12:return yu(B,!0);case 13:return He(B);case 14:return Ol(_,B,void 0,0)}}function Un(_,B){B===void 0&&_&&(B=e.stringToToken(_)),B===79&&(B=void 0);var Ee=U.createBaseIdentifierNode(79);return Ee.originalKeywordKind=B,Ee.escapedText=e.escapeLeadingUnderscores(_),Ee}function fn(_,B){var Ee=Un(_,void 0);return Ee.autoGenerateFlags=B,Ee.autoGenerateId=o,o++,Ee}function En(_,B,Ee){var on=Un(_,Ee);return B&&(on.typeArguments=K(B)),on.originalKeywordKind===131&&(on.transformFlags|=16777216),on}function i(_,B){return _.typeArguments!==B?C(En(e.idText(_),B),_):_}function In(_,B){var Ee=1;B&&(Ee|=8);var on=fn("",Ee);return _&&_(on),on}function X(_){var B=2;return _&&(B|=8),fn("",B)}function rn(_,B){return B===void 0&&(B=0),e.Debug.assert(!(B&7),"Argument out of range: flags"),e.Debug.assert((B&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),fn(_,3|B)}function $n(_,B){B===void 0&&(B=0),e.Debug.assert(!(B&7),"Argument out of range: flags");var Ee=fn(_&&e.isIdentifier(_)?e.idText(_):"",4|B);return Ee.original=_,Ee}function Vn(_){e.startsWith(_,"#")||e.Debug.fail("First character of private identifier must be #: "+_);var B=U.createBasePrivateIdentifierNode(80);return B.escapedText=e.escapeLeadingUnderscores(_),B.transformFlags|=8388608,B}function le(_){return U.createBaseTokenNode(_)}function Pe(_){e.Debug.assert(_>=0&&_<=158,"Invalid token"),e.Debug.assert(_<=14||_>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(_<=8||_>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(_!==79,"Invalid token. Use 'createIdentifier' to create identifiers");var B=le(_),Ee=0;switch(_){case 130:Ee=192;break;case 123:case 121:case 122:case 143:case 126:case 134:case 85:case 129:case 145:case 156:case 142:case 146:case 157:case 148:case 132:case 149:case 114:case 153:case 151:Ee=1;break;case 106:Ee=33554944;break;case 124:Ee=512;break;case 108:Ee=8192;break}return Ee&&(B.transformFlags|=Ee),B}function xe(){return Pe(106)}function Ze(){return Pe(108)}function hn(){return Pe(104)}function Le(){return Pe(110)}function $e(){return Pe(95)}function An(_){return Pe(_)}function Ue(_){var B=[];return _&1&&B.push(An(93)),_&2&&B.push(An(134)),_&512&&B.push(An(88)),_&2048&&B.push(An(85)),_&4&&B.push(An(123)),_&8&&B.push(An(121)),_&16&&B.push(An(122)),_&128&&B.push(An(126)),_&32&&B.push(An(124)),_&16384&&B.push(An(157)),_&64&&B.push(An(143)),_&256&&B.push(An(130)),B}function gn(_,B){var Ee=I(159);return Ee.left=_,Ee.right=zl(B),Ee.transformFlags|=_e(Ee.left)|D(Ee.right),Ee}function Wn(_,B,Ee){return _.left!==B||_.right!==Ee?C(gn(B,Ee),_):_}function ze(_){var B=I(160);return B.expression=d().parenthesizeExpressionOfComputedPropertyName(_),B.transformFlags|=_e(B.expression)|512|65536,B}function Tn(_,B){return _.expression!==B?C(ze(B),_):_}function On(_,B,Ee){var on=Oe(161,void 0,void 0,_);return on.constraint=B,on.default=Ee,on.transformFlags=1,on}function ur(_,B,Ee,on){return _.name!==B||_.constraint!==Ee||_.default!==on?C(On(B,Ee,on),_):_}function hr(_,B,Ee,on,qn,Zr,Nt){var Si=Ne(162,_,B,on,Zr,Nt&&d().parenthesizeExpressionForDisallowedComma(Nt));return Si.dotDotDotToken=Ee,Si.questionToken=qn,e.isThisIdentifier(Si.name)?Si.transformFlags=1:(Si.transformFlags|=_e(Si.dotDotDotToken)|_e(Si.questionToken),qn&&(Si.transformFlags|=1),e.modifiersToFlags(Si.modifiers)&16476&&(Si.transformFlags|=4096),(Nt||Ee)&&(Si.transformFlags|=512)),Si}function wr(_,B,Ee,on,qn,Zr,Nt,Si){return _.decorators!==B||_.modifiers!==Ee||_.dotDotDotToken!==on||_.name!==qn||_.questionToken!==Zr||_.type!==Nt||_.initializer!==Si?C(hr(B,Ee,on,qn,Zr,Nt,Si),_):_}function Qr(_){var B=I(163);return B.expression=d().parenthesizeLeftSideOfAccess(_),B.transformFlags|=_e(B.expression)|1|4096,B}function Ke(_,B){return _.expression!==B?C(Qr(B),_):_}function jn(_,B,Ee,on){var qn=Oe(164,void 0,_,B);return qn.type=on,qn.questionToken=Ee,qn.transformFlags=1,qn}function Zn(_,B,Ee,on,qn){return _.modifiers!==B||_.name!==Ee||_.questionToken!==on||_.type!==qn?C(jn(B,Ee,on,qn),_):_}function Me(_,B,Ee,on,qn,Zr){var Nt=Ne(165,_,B,Ee,qn,Zr);return Nt.questionToken=on&&e.isQuestionToken(on)?on:void 0,Nt.exclamationToken=on&&e.isExclamationToken(on)?on:void 0,Nt.transformFlags|=_e(Nt.questionToken)|_e(Nt.exclamationToken)|8388608,(e.isComputedPropertyName(Nt.name)||e.hasStaticModifier(Nt)&&Nt.initializer)&&(Nt.transformFlags|=4096),(on||e.modifiersToFlags(Nt.modifiers)&2)&&(Nt.transformFlags|=1),Nt}function Mn(_,B,Ee,on,qn,Zr,Nt){return _.decorators!==B||_.modifiers!==Ee||_.name!==on||_.questionToken!==(qn!==void 0&&e.isQuestionToken(qn)?qn:void 0)||_.exclamationToken!==(qn!==void 0&&e.isExclamationToken(qn)?qn:void 0)||_.type!==Zr||_.initializer!==Nt?C(Me(B,Ee,on,qn,Zr,Nt),_):_}function ar(_,B,Ee,on,qn,Zr){var Nt=Se(166,void 0,_,B,on,qn,Zr);return Nt.questionToken=Ee,Nt.transformFlags=1,Nt}function Xn(_,B,Ee,on,qn,Zr,Nt){return _.modifiers!==B||_.name!==Ee||_.questionToken!==on||_.typeParameters!==qn||_.parameters!==Zr||_.type!==Nt?be(ar(B,Ee,on,qn,Zr,Nt),_):_}function yr(_,B,Ee,on,qn,Zr,Nt,Si,Yo){var nl=Ce(167,_,B,on,Zr,Nt,Si,Yo);return nl.asteriskToken=Ee,nl.questionToken=qn,nl.transformFlags|=_e(nl.asteriskToken)|_e(nl.questionToken)|512,qn&&(nl.transformFlags|=1),e.modifiersToFlags(nl.modifiers)&256?Ee?nl.transformFlags|=64:nl.transformFlags|=128:Ee&&(nl.transformFlags|=1024),nl}function cr(_,B,Ee,on,qn,Zr,Nt,Si,Yo,nl){return _.decorators!==B||_.modifiers!==Ee||_.asteriskToken!==on||_.name!==qn||_.questionToken!==Zr||_.typeParameters!==Nt||_.parameters!==Si||_.type!==Yo||_.body!==nl?Be(yr(B,Ee,on,qn,Zr,Nt,Si,Yo,nl),_):_}function Fe(_,B,Ee){var on=te(168,_,B,void 0,void 0);return on.body=Ee,on.transformFlags=_e(Ee)|8388608,on}function Bn(_,B,Ee,on){return _.decorators!==B||_.modifier!==Ee||_.body!==on?C(Fe(B,Ee,on),_):_}function J(_,B,Ee,on){var qn=Ce(169,_,B,void 0,void 0,Ee,void 0,on);return qn.transformFlags|=512,qn}function Cn(_,B,Ee,on,qn){return _.decorators!==B||_.modifiers!==Ee||_.parameters!==on||_.body!==qn?Be(J(B,Ee,on,qn),_):_}function Gn(_,B,Ee,on,qn,Zr){return Ce(170,_,B,Ee,void 0,on,qn,Zr)}function cn(_,B,Ee,on,qn,Zr,Nt){return _.decorators!==B||_.modifiers!==Ee||_.name!==on||_.parameters!==qn||_.type!==Zr||_.body!==Nt?Be(Gn(B,Ee,on,qn,Zr,Nt),_):_}function Rn(_,B,Ee,on,qn){return Ce(171,_,B,Ee,void 0,on,void 0,qn)}function Ye(_,B,Ee,on,qn,Zr){return _.decorators!==B||_.modifiers!==Ee||_.name!==on||_.parameters!==qn||_.body!==Zr?Be(Rn(B,Ee,on,qn,Zr),_):_}function xn(_,B,Ee){var on=Se(172,void 0,void 0,void 0,_,B,Ee);return on.transformFlags=1,on}function an(_,B,Ee,on){return _.typeParameters!==B||_.parameters!==Ee||_.type!==on?be(xn(B,Ee,on),_):_}function zn(_,B,Ee){var on=Se(173,void 0,void 0,void 0,_,B,Ee);return on.transformFlags=1,on}function ir(_,B,Ee,on){return _.typeParameters!==B||_.parameters!==Ee||_.type!==on?be(zn(B,Ee,on),_):_}function gr(_,B,Ee,on){var qn=Se(174,_,B,void 0,void 0,Ee,on);return qn.transformFlags=1,qn}function Dr(_,B,Ee,on,qn){return _.parameters!==on||_.type!==qn||_.decorators!==B||_.modifiers!==Ee?be(gr(B,Ee,on,qn),_):_}function qr(_,B){var Ee=I(197);return Ee.type=_,Ee.literal=B,Ee.transformFlags=1,Ee}function ft(_,B,Ee){return _.type!==B||_.literal!==Ee?C(qr(B,Ee),_):_}function xt(_){return Pe(_)}function Kr(_,B,Ee){var on=I(175);return on.assertsModifier=_,on.parameterName=zl(B),on.type=Ee,on.transformFlags=1,on}function dt(_,B,Ee,on){return _.assertsModifier!==B||_.parameterName!==Ee||_.type!==on?C(Kr(B,Ee,on),_):_}function Ur(_,B){var Ee=I(176);return Ee.typeName=zl(_),Ee.typeArguments=B&&d().parenthesizeTypeArguments(K(B)),Ee.transformFlags=1,Ee}function qt(_,B,Ee){return _.typeName!==B||_.typeArguments!==Ee?C(Ur(B,Ee),_):_}function Cr(_,B,Ee){var on=Se(177,void 0,void 0,void 0,_,B,Ee);return on.transformFlags=1,on}function Jt(_,B,Ee,on){return _.typeParameters!==B||_.parameters!==Ee||_.type!==on?be(Cr(B,Ee,on),_):_}function Ot(){for(var _=[],B=0;B<arguments.length;B++)_[B]=arguments[B];return _.length===4?ri.apply(void 0,_):_.length===3?Ya.apply(void 0,_):e.Debug.fail("Incorrect number of arguments specified.")}function ri(_,B,Ee,on){var qn=Se(178,void 0,_,void 0,B,Ee,on);return qn.transformFlags=1,qn}function Ya(_,B,Ee){return ri(void 0,_,B,Ee)}function eo(){for(var _=[],B=0;B<arguments.length;B++)_[B]=arguments[B];return _.length===5?za.apply(void 0,_):_.length===4?ua.apply(void 0,_):e.Debug.fail("Incorrect number of arguments specified.")}function za(_,B,Ee,on,qn){return _.modifiers!==B||_.typeParameters!==Ee||_.parameters!==on||_.type!==qn?be(Ot(B,Ee,on,qn),_):_}function ua(_,B,Ee,on){return za(_,_.modifiers,B,Ee,on)}function Ar(_){var B=I(179);return B.exprName=_,B.transformFlags=1,B}function at(_,B){return _.exprName!==B?C(Ar(B),_):_}function Hr(_){var B=I(180);return B.members=K(_),B.transformFlags=1,B}function Wt(_,B){return _.members!==B?C(Hr(B),_):_}function Zt(_){var B=I(181);return B.elementType=d().parenthesizeElementTypeOfArrayType(_),B.transformFlags=1,B}function Rr(_,B){return _.elementType!==B?C(Zt(B),_):_}function Lr(_){var B=I(182);return B.elements=K(_),B.transformFlags=1,B}function Xr(_,B){return _.elements!==B?C(Lr(B),_):_}function nt(_,B,Ee,on){var qn=I(195);return qn.dotDotDotToken=_,qn.name=B,qn.questionToken=Ee,qn.type=on,qn.transformFlags=1,qn}function vt(_,B,Ee,on,qn){return _.dotDotDotToken!==B||_.name!==Ee||_.questionToken!==on||_.type!==qn?C(nt(B,Ee,on,qn),_):_}function or(_){var B=I(183);return B.type=d().parenthesizeElementTypeOfArrayType(_),B.transformFlags=1,B}function $t(_,B){return _.type!==B?C(or(B),_):_}function Va(_){var B=I(184);return B.type=_,B.transformFlags=1,B}function li(_,B){return _.type!==B?C(Va(B),_):_}function zi(_,B){var Ee=I(_);return Ee.types=d().parenthesizeConstituentTypesOfUnionOrIntersectionType(B),Ee.transformFlags=1,Ee}function Ma(_,B){return _.types!==B?C(zi(_.kind,B),_):_}function di(_){return zi(185,_)}function Yi(_,B){return Ma(_,B)}function uo(_){return zi(186,_)}function bi(_,B){return Ma(_,B)}function Mi(_,B,Ee,on){var qn=I(187);return qn.checkType=d().parenthesizeMemberOfConditionalType(_),qn.extendsType=d().parenthesizeMemberOfConditionalType(B),qn.trueType=Ee,qn.falseType=on,qn.transformFlags=1,qn}function Go(_,B,Ee,on,qn){return _.checkType!==B||_.extendsType!==Ee||_.trueType!==on||_.falseType!==qn?C(Mi(B,Ee,on,qn),_):_}function io(_){var B=I(188);return B.typeParameter=_,B.transformFlags=1,B}function wi(_,B){return _.typeParameter!==B?C(io(B),_):_}function Ho(_,B){var Ee=I(196);return Ee.head=_,Ee.templateSpans=K(B),Ee.transformFlags=1,Ee}function qi(_,B,Ee){return _.head!==B||_.templateSpans!==Ee?C(Ho(B,Ee),_):_}function Qi(_,B,Ee,on){on===void 0&&(on=!1);var qn=I(198);return qn.argument=_,qn.qualifier=B,qn.typeArguments=Ee&&d().parenthesizeTypeArguments(Ee),qn.isTypeOf=on,qn.transformFlags=1,qn}function as(_,B,Ee,on,qn){return qn===void 0&&(qn=_.isTypeOf),_.argument!==B||_.qualifier!==Ee||_.typeArguments!==on||_.isTypeOf!==qn?C(Qi(B,Ee,on,qn),_):_}function gs(_){var B=I(189);return B.type=_,B.transformFlags=1,B}function Da(_,B){return _.type!==B?C(gs(B),_):_}function $a(){var _=I(190);return _.transformFlags=1,_}function Ni(_,B){var Ee=I(191);return Ee.operator=_,Ee.type=d().parenthesizeMemberOfElementType(B),Ee.transformFlags=1,Ee}function vo(_,B){return _.type!==B?C(Ni(_.operator,B),_):_}function Io(_,B){var Ee=I(192);return Ee.objectType=d().parenthesizeMemberOfElementType(_),Ee.indexType=B,Ee.transformFlags=1,Ee}function Bo(_,B,Ee){return _.objectType!==B||_.indexType!==Ee?C(Io(B,Ee),_):_}function Uo(_,B,Ee,on,qn){var Zr=I(193);return Zr.readonlyToken=_,Zr.typeParameter=B,Zr.nameType=Ee,Zr.questionToken=on,Zr.type=qn,Zr.transformFlags=1,Zr}function cs(_,B,Ee,on,qn,Zr){return _.readonlyToken!==B||_.typeParameter!==Ee||_.nameType!==on||_.questionToken!==qn||_.type!==Zr?C(Uo(B,Ee,on,qn,Zr),_):_}function us(_){var B=I(194);return B.literal=_,B.transformFlags=1,B}function Jo(_,B){return _.literal!==B?C(us(B),_):_}function is(_){var B=I(199);return B.elements=K(_),B.transformFlags|=y(B.elements)|512|262144,B.transformFlags&16384&&(B.transformFlags|=32832),B}function mn(_,B){return _.elements!==B?C(is(B),_):_}function _r(_){var B=I(200);return B.elements=K(_),B.transformFlags|=y(B.elements)|512|262144,B}function $r(_,B){return _.elements!==B?C(_r(B),_):_}function ia(_,B,Ee,on){var qn=fe(201,void 0,void 0,Ee,on&&d().parenthesizeExpressionForDisallowedComma(on));return qn.propertyName=zl(B),qn.dotDotDotToken=_,qn.transformFlags|=_e(qn.dotDotDotToken)|512,qn.propertyName&&(qn.transformFlags|=e.isIdentifier(qn.propertyName)?D(qn.propertyName):_e(qn.propertyName)),_&&(qn.transformFlags|=16384),qn}function ti(_,B,Ee,on,qn){return _.propertyName!==Ee||_.dotDotDotToken!==B||_.name!==on||_.initializer!==qn?C(ia(B,Ee,on,qn),_):_}function va(_){var B=I(_);return B}function Ve(_,B){var Ee=va(202),on=_&&e.lastOrUndefined(_),qn=K(_,on&&e.isOmittedExpression(on)?!0:void 0);return Ee.elements=d().parenthesizeExpressionsOfCommaDelimitedList(qn),Ee.multiLine=B,Ee.transformFlags|=y(Ee.elements),Ee}function ce(_,B){return _.elements!==B?C(Ve(B,_.multiLine),_):_}function dn(_,B){var Ee=va(203);return Ee.properties=K(_),Ee.multiLine=B,Ee.transformFlags|=y(Ee.properties),Ee}function j(_,B){return _.properties!==B?C(dn(B,_.multiLine),_):_}function Ie(_,B){var Ee=va(204);return Ee.expression=d().parenthesizeLeftSideOfAccess(_),Ee.name=zl(B),Ee.transformFlags=_e(Ee.expression)|(e.isIdentifier(Ee.name)?D(Ee.name):_e(Ee.name)),e.isSuperKeyword(_)&&(Ee.transformFlags|=192),Ee}function We(_,B,Ee){return e.isPropertyAccessChain(_)?Hn(_,B,_.questionDotToken,e.cast(Ee,e.isIdentifier)):_.expression!==B||_.name!==Ee?C(Ie(B,Ee),_):_}function sn(_,B,Ee){var on=va(204);return on.flags|=32,on.expression=d().parenthesizeLeftSideOfAccess(_),on.questionDotToken=B,on.name=zl(Ee),on.transformFlags|=16|_e(on.expression)|_e(on.questionDotToken)|(e.isIdentifier(on.name)?D(on.name):_e(on.name)),on}function Hn(_,B,Ee,on){return e.Debug.assert(!!(_.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),_.expression!==B||_.questionDotToken!==Ee||_.name!==on?C(sn(B,Ee,on),_):_}function vr(_,B){var Ee=va(205);return Ee.expression=d().parenthesizeLeftSideOfAccess(_),Ee.argumentExpression=Jf(B),Ee.transformFlags|=_e(Ee.expression)|_e(Ee.argumentExpression),e.isSuperKeyword(_)&&(Ee.transformFlags|=192),Ee}function Sr(_,B,Ee){return e.isElementAccessChain(_)?Et(_,B,_.questionDotToken,Ee):_.expression!==B||_.argumentExpression!==Ee?C(vr(B,Ee),_):_}function ot(_,B,Ee){var on=va(205);return on.flags|=32,on.expression=d().parenthesizeLeftSideOfAccess(_),on.questionDotToken=B,on.argumentExpression=Jf(Ee),on.transformFlags|=_e(on.expression)|_e(on.questionDotToken)|_e(on.argumentExpression)|16,on}function Et(_,B,Ee,on){return e.Debug.assert(!!(_.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),_.expression!==B||_.questionDotToken!==Ee||_.argumentExpression!==on?C(ot(B,Ee,on),_):_}function ra(_,B,Ee){var on=va(206);return on.expression=d().parenthesizeLeftSideOfAccess(_),on.typeArguments=Ml(B),on.arguments=d().parenthesizeExpressionsOfCommaDelimitedList(K(Ee)),on.transformFlags|=_e(on.expression)|y(on.typeArguments)|y(on.arguments),on.typeArguments&&(on.transformFlags|=1),e.isImportKeyword(on.expression)?on.transformFlags|=4194304:e.isSuperProperty(on.expression)&&(on.transformFlags|=8192),on}function Na(_,B,Ee,on){return e.isCallChain(_)?Li(_,B,_.questionDotToken,Ee,on):_.expression!==B||_.typeArguments!==Ee||_.arguments!==on?C(ra(B,Ee,on),_):_}function ei(_,B,Ee,on){var qn=va(206);return qn.flags|=32,qn.expression=d().parenthesizeLeftSideOfAccess(_),qn.questionDotToken=B,qn.typeArguments=Ml(Ee),qn.arguments=d().parenthesizeExpressionsOfCommaDelimitedList(K(on)),qn.transformFlags|=_e(qn.expression)|_e(qn.questionDotToken)|y(qn.typeArguments)|y(qn.arguments)|16,qn.typeArguments&&(qn.transformFlags|=1),e.isSuperProperty(qn.expression)&&(qn.transformFlags|=8192),qn}function Li(_,B,Ee,on,qn){return e.Debug.assert(!!(_.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),_.expression!==B||_.questionDotToken!==Ee||_.typeArguments!==on||_.arguments!==qn?C(ei(B,Ee,on,qn),_):_}function Zi(_,B,Ee){var on=va(207);return on.expression=d().parenthesizeExpressionOfNew(_),on.typeArguments=Ml(B),on.arguments=Ee?d().parenthesizeExpressionsOfCommaDelimitedList(Ee):void 0,on.transformFlags|=_e(on.expression)|y(on.typeArguments)|y(on.arguments)|16,on.typeArguments&&(on.transformFlags|=1),on}function ho(_,B,Ee,on){return _.expression!==B||_.typeArguments!==Ee||_.arguments!==on?C(Zi(B,Ee,on),_):_}function vs(_,B,Ee){var on=va(208);return on.tag=d().parenthesizeLeftSideOfAccess(_),on.typeArguments=Ml(B),on.template=Ee,on.transformFlags|=_e(on.tag)|y(on.typeArguments)|_e(on.template)|512,on.typeArguments&&(on.transformFlags|=1),e.hasInvalidEscape(on.template)&&(on.transformFlags|=64),on}function Ao(_,B,Ee,on){return _.tag!==B||_.typeArguments!==Ee||_.template!==on?C(vs(B,Ee,on),_):_}function oo(_,B){var Ee=va(209);return Ee.expression=d().parenthesizeOperandOfPrefixUnary(B),Ee.type=_,Ee.transformFlags|=_e(Ee.expression)|_e(Ee.type)|1,Ee}function Zo(_,B,Ee){return _.type!==B||_.expression!==Ee?C(oo(B,Ee),_):_}function cl(_){var B=va(210);return B.expression=_,B.transformFlags=_e(B.expression),B}function ws(_,B){return _.expression!==B?C(cl(B),_):_}function vl(_,B,Ee,on,qn,Zr,Nt){var Si=Ce(211,void 0,_,Ee,on,qn,Zr,Nt);return Si.asteriskToken=B,Si.transformFlags|=_e(Si.asteriskToken),Si.typeParameters&&(Si.transformFlags|=1),e.modifiersToFlags(Si.modifiers)&256?Si.asteriskToken?Si.transformFlags|=64:Si.transformFlags|=128:Si.asteriskToken&&(Si.transformFlags|=1024),Si}function ul(_,B,Ee,on,qn,Zr,Nt,Si){return _.name!==on||_.modifiers!==B||_.asteriskToken!==Ee||_.typeParameters!==qn||_.parameters!==Zr||_.type!==Nt||_.body!==Si?Be(vl(B,Ee,on,qn,Zr,Nt,Si),_):_}function ps(_,B,Ee,on,qn,Zr){var Nt=Ce(212,void 0,_,void 0,B,Ee,on,d().parenthesizeConciseBodyOfArrowFunction(Zr));return Nt.equalsGreaterThanToken=qn!=null?qn:Pe(38),Nt.transformFlags|=_e(Nt.equalsGreaterThanToken)|512,e.modifiersToFlags(Nt.modifiers)&256&&(Nt.transformFlags|=8320),Nt}function jl(_,B,Ee,on,qn,Zr,Nt){return _.modifiers!==B||_.typeParameters!==Ee||_.parameters!==on||_.type!==qn||_.equalsGreaterThanToken!==Zr||_.body!==Nt?Be(ps(B,Ee,on,qn,Zr,Nt),_):_}function Hl(_){var B=va(213);return B.expression=d().parenthesizeOperandOfPrefixUnary(_),B.transformFlags|=_e(B.expression),B}function Hs(_,B){return _.expression!==B?C(Hl(B),_):_}function Fs(_){var B=va(214);return B.expression=d().parenthesizeOperandOfPrefixUnary(_),B.transformFlags|=_e(B.expression),B}function ge(_,B){return _.expression!==B?C(Fs(B),_):_}function Kn(_){var B=va(215);return B.expression=d().parenthesizeOperandOfPrefixUnary(_),B.transformFlags|=_e(B.expression),B}function Te(_,B){return _.expression!==B?C(Kn(B),_):_}function Fn(_){var B=va(216);return B.expression=d().parenthesizeOperandOfPrefixUnary(_),B.transformFlags|=_e(B.expression)|128|64|1048576,B}function et(_,B){return _.expression!==B?C(Fn(B),_):_}function Xt(_,B){var Ee=va(217);return Ee.operator=_,Ee.operand=d().parenthesizeOperandOfPrefixUnary(B),Ee.transformFlags|=_e(Ee.operand),(_===45||_===46)&&e.isIdentifier(Ee.operand)&&!e.isGeneratedIdentifier(Ee.operand)&&!e.isLocalName(Ee.operand)&&(Ee.transformFlags|=67108864),Ee}function ca(_,B){return _.operand!==B?C(Xt(_.operator,B),_):_}function ha(_,B){var Ee=va(218);return Ee.operator=B,Ee.operand=d().parenthesizeOperandOfPostfixUnary(_),Ee.transformFlags|=_e(Ee.operand),e.isIdentifier(Ee.operand)&&!e.isGeneratedIdentifier(Ee.operand)&&!e.isLocalName(Ee.operand)&&(Ee.transformFlags|=67108864),Ee}function To(_,B){return _.operand!==B?C(ha(B,_.operator),_):_}function Pn(_,B,Ee){var on=va(219),qn=kt(B),Zr=qn.kind;return on.left=d().parenthesizeLeftSideOfBinary(Zr,_),on.operatorToken=qn,on.right=d().parenthesizeRightSideOfBinary(Zr,on.left,Ee),on.transformFlags|=_e(on.left)|_e(on.operatorToken)|_e(on.right),Zr===60?on.transformFlags|=16:Zr===63?e.isObjectLiteralExpression(on.left)?on.transformFlags|=2624|Vo(on.left):e.isArrayLiteralExpression(on.left)&&(on.transformFlags|=2560|Vo(on.left)):Zr===42||Zr===67?on.transformFlags|=256:e.isLogicalOrCoalescingAssignmentOperator(Zr)&&(on.transformFlags|=8),on}function Vo(_){if(_.transformFlags&32768)return 32768;if(_.transformFlags&64)for(var B=0,Ee=e.getElementsOfBindingOrAssignmentPattern(_);B<Ee.length;B++){var on=Ee[B],qn=e.getTargetOfBindingOrAssignmentElement(on);if(qn&&e.isAssignmentPattern(qn)){if(qn.transformFlags&32768)return 32768;if(qn.transformFlags&64){var Zr=Vo(qn);if(Zr)return Zr}}}return 0}function Ko(_,B,Ee,on){return _.left!==B||_.operatorToken!==Ee||_.right!==on?C(Pn(B,Ee,on),_):_}function hs(_,B,Ee,on,qn){var Zr=va(220);return Zr.condition=d().parenthesizeConditionOfConditionalExpression(_),Zr.questionToken=B!=null?B:Pe(57),Zr.whenTrue=d().parenthesizeBranchOfConditionalExpression(Ee),Zr.colonToken=on!=null?on:Pe(58),Zr.whenFalse=d().parenthesizeBranchOfConditionalExpression(qn),Zr.transformFlags|=_e(Zr.condition)|_e(Zr.questionToken)|_e(Zr.whenTrue)|_e(Zr.colonToken)|_e(Zr.whenFalse),Zr}function hl(_,B,Ee,on,qn,Zr){return _.condition!==B||_.questionToken!==Ee||_.whenTrue!==on||_.colonToken!==qn||_.whenFalse!==Zr?C(hs(B,Ee,on,qn,Zr),_):_}function Bi(_,B){var Ee=va(221);return Ee.head=_,Ee.templateSpans=K(B),Ee.transformFlags|=_e(Ee.head)|y(Ee.templateSpans)|512,Ee}function Js(_,B,Ee){return _.head!==B||_.templateSpans!==Ee?C(Bi(B,Ee),_):_}function rl(_,B,Ee,on){on===void 0&&(on=0),e.Debug.assert(!(on&-2049),"Unsupported template flags.");var qn=void 0;if(Ee!==void 0&&Ee!==B&&(qn=A(_,Ee),typeof qn=="object"))return e.Debug.fail("Invalid raw text");if(B===void 0){if(qn===void 0)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");B=qn}else qn!==void 0&&e.Debug.assert(B===qn,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return Ol(_,B,Ee,on)}function Ol(_,B,Ee,on){var qn=le(_);return qn.text=B,qn.rawText=Ee,qn.templateFlags=on&2048,qn.transformFlags|=512,qn.templateFlags&&(qn.transformFlags|=64),qn}function nc(_,B,Ee){return rl(15,_,B,Ee)}function Sc(_,B,Ee){return rl(16,_,B,Ee)}function Zl(_,B,Ee){return rl(17,_,B,Ee)}function du(_,B,Ee){return rl(14,_,B,Ee)}function dc(_,B){e.Debug.assert(!_||!!B,"A `YieldExpression` with an asteriskToken must have an expression.");var Ee=va(222);return Ee.expression=B&&d().parenthesizeExpressionForDisallowedComma(B),Ee.asteriskToken=_,Ee.transformFlags|=_e(Ee.expression)|_e(Ee.asteriskToken)|512|64|524288,Ee}function $l(_,B,Ee){return _.expression!==Ee||_.asteriskToken!==B?C(dc(B,Ee),_):_}function kn(_){var B=va(223);return B.expression=d().parenthesizeExpressionForDisallowedComma(_),B.transformFlags|=_e(B.expression)|512|16384,B}function lr(_,B){return _.expression!==B?C(kn(B),_):_}function Or(_,B,Ee,on,qn,Zr){var Nt=en(224,_,B,Ee,on,qn,Zr);return Nt.transformFlags|=512,Nt}function st(_,B,Ee,on,qn,Zr,Nt){return _.decorators!==B||_.modifiers!==Ee||_.name!==on||_.typeParameters!==qn||_.heritageClauses!==Zr||_.members!==Nt?C(Or(B,Ee,on,qn,Zr,Nt),_):_}function yt(){return va(225)}function Tt(_,B){var Ee=I(226);return Ee.expression=d().parenthesizeLeftSideOfAccess(_),Ee.typeArguments=B&&d().parenthesizeTypeArguments(B),Ee.transformFlags|=_e(Ee.expression)|y(Ee.typeArguments)|512,Ee}function Ut(_,B,Ee){return _.expression!==B||_.typeArguments!==Ee?C(Tt(B,Ee),_):_}function ea(_,B){var Ee=va(227);return Ee.expression=_,Ee.type=B,Ee.transformFlags|=_e(Ee.expression)|_e(Ee.type)|1,Ee}function zt(_,B,Ee){return _.expression!==B||_.type!==Ee?C(ea(B,Ee),_):_}function Ii(_){var B=va(228);return B.expression=d().parenthesizeLeftSideOfAccess(_),B.transformFlags|=_e(B.expression)|1,B}function ba(_,B){return e.isNonNullChain(_)?Ui(_,B):_.expression!==B?C(Ii(B),_):_}function wa(_){var B=va(228);return B.flags|=32,B.expression=d().parenthesizeLeftSideOfAccess(_),B.transformFlags|=_e(B.expression)|1,B}function Ui(_,B){return e.Debug.assert(!!(_.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),_.expression!==B?C(wa(B),_):_}function Fi(_,B){var Ee=va(229);switch(Ee.keywordToken=_,Ee.name=B,Ee.transformFlags|=_e(Ee.name),_){case 103:Ee.transformFlags|=512;break;case 100:Ee.transformFlags|=4;break;default:return e.Debug.assertNever(_)}return Ee}function he(_,B){return _.name!==B?C(Fi(_.keywordToken,B),_):_}function un(_,B){var Ee=I(231);return Ee.expression=_,Ee.literal=B,Ee.transformFlags|=_e(Ee.expression)|_e(Ee.literal)|512,Ee}function Sn(_,B,Ee){return _.expression!==B||_.literal!==Ee?C(un(B,Ee),_):_}function Tr(){var _=I(232);return _.transformFlags|=512,_}function Wr(_,B){var Ee=I(233);return Ee.statements=K(_),Ee.multiLine=B,Ee.transformFlags|=y(Ee.statements),Ee}function Yt(_,B){return _.statements!==B?C(Wr(B,_.multiLine),_):_}function Ia(_,B){var Ee=Ae(235,void 0,_);return Ee.declarationList=e.isArray(B)?Ks(B):B,Ee.transformFlags|=_e(Ee.declarationList),e.modifiersToFlags(Ee.modifiers)&2&&(Ee.transformFlags=1),Ee}function hi(_,B,Ee){return _.modifiers!==B||_.declarationList!==Ee?C(Ia(B,Ee),_):_}function yo(){return I(234)}function Oo(_){var B=I(236);return B.expression=d().parenthesizeExpressionOfExpressionStatement(_),B.transformFlags|=_e(B.expression),B}function ys(_,B){return _.expression!==B?C(Oo(B),_):_}function Pi(_,B,Ee){var on=I(237);return on.expression=_,on.thenStatement=El(B),on.elseStatement=El(Ee),on.transformFlags|=_e(on.expression)|_e(on.thenStatement)|_e(on.elseStatement),on}function Po(_,B,Ee,on){return _.expression!==B||_.thenStatement!==Ee||_.elseStatement!==on?C(Pi(B,Ee,on),_):_}function Jn(_,B){var Ee=I(238);return Ee.statement=El(_),Ee.expression=B,Ee.transformFlags|=_e(Ee.statement)|_e(Ee.expression),Ee}function zo(_,B,Ee){return _.statement!==B||_.expression!==Ee?C(Jn(B,Ee),_):_}function Es(_,B){var Ee=I(239);return Ee.expression=_,Ee.statement=El(B),Ee.transformFlags|=_e(Ee.expression)|_e(Ee.statement),Ee}function Rs(_,B,Ee){return _.expression!==B||_.statement!==Ee?C(Es(B,Ee),_):_}function pu(_,B,Ee,on){var qn=I(240);return qn.initializer=_,qn.condition=B,qn.incrementor=Ee,qn.statement=El(on),qn.transformFlags|=_e(qn.initializer)|_e(qn.condition)|_e(qn.incrementor)|_e(qn.statement),qn}function ol(_,B,Ee,on,qn){return _.initializer!==B||_.condition!==Ee||_.incrementor!==on||_.statement!==qn?C(pu(B,Ee,on,qn),_):_}function mu(_,B,Ee){var on=I(241);return on.initializer=_,on.expression=B,on.statement=El(Ee),on.transformFlags|=_e(on.initializer)|_e(on.expression)|_e(on.statement),on}function fo(_,B,Ee,on){return _.initializer!==B||_.expression!==Ee||_.statement!==on?C(mu(B,Ee,on),_):_}function tl(_,B,Ee,on){var qn=I(242);return qn.awaitModifier=_,qn.initializer=B,qn.expression=d().parenthesizeExpressionForDisallowedComma(Ee),qn.statement=El(on),qn.transformFlags|=_e(qn.awaitModifier)|_e(qn.initializer)|_e(qn.expression)|_e(qn.statement)|512,_&&(qn.transformFlags|=64),qn}function zc(_,B,Ee,on,qn){return _.awaitModifier!==B||_.initializer!==Ee||_.expression!==on||_.statement!==qn?C(tl(B,Ee,on,qn),_):_}function _u(_){var B=I(243);return B.label=zl(_),B.transformFlags|=_e(B.label)|2097152,B}function qc(_,B){return _.label!==B?C(_u(B),_):_}function gu(_){var B=I(244);return B.label=zl(_),B.transformFlags|=_e(B.label)|2097152,B}function Xu(_,B){return _.label!==B?C(gu(B),_):_}function fd(_){var B=I(245);return B.expression=_,B.transformFlags|=_e(B.expression)|64|2097152,B}function ic(_,B){return _.expression!==B?C(fd(B),_):_}function Pu(_,B){var Ee=I(246);return Ee.expression=_,Ee.statement=El(B),Ee.transformFlags|=_e(Ee.expression)|_e(Ee.statement),Ee}function Bd(_,B,Ee){return _.expression!==B||_.statement!==Ee?C(Pu(B,Ee),_):_}function Za(_,B){var Ee=I(247);return Ee.expression=d().parenthesizeExpressionForDisallowedComma(_),Ee.caseBlock=B,Ee.transformFlags|=_e(Ee.expression)|_e(Ee.caseBlock),Ee}function da(_,B,Ee){return _.expression!==B||_.caseBlock!==Ee?C(Za(B,Ee),_):_}function pc(_,B){var Ee=I(248);return Ee.label=zl(_),Ee.statement=El(B),Ee.transformFlags|=_e(Ee.label)|_e(Ee.statement),Ee}function $o(_,B,Ee){return _.label!==B||_.statement!==Ee?C(pc(B,Ee),_):_}function Yu(_){var B=I(249);return B.expression=_,B.transformFlags|=_e(B.expression),B}function Dc(_,B){return _.expression!==B?C(Yu(B),_):_}function xf(_,B,Ee){var on=I(250);return on.tryBlock=_,on.catchClause=B,on.finallyBlock=Ee,on.transformFlags|=_e(on.tryBlock)|_e(on.catchClause)|_e(on.finallyBlock),on}function es(_,B,Ee,on){return _.tryBlock!==B||_.catchClause!==Ee||_.finallyBlock!==on?C(xf(B,Ee,on),_):_}function If(){return I(251)}function Qs(_,B,Ee,on){var qn=Ne(252,void 0,void 0,_,Ee,on&&d().parenthesizeExpressionForDisallowedComma(on));return qn.exclamationToken=B,qn.transformFlags|=_e(qn.exclamationToken),B&&(qn.transformFlags|=1),qn}function Gc(_,B,Ee,on,qn){return _.name!==B||_.type!==on||_.exclamationToken!==Ee||_.initializer!==qn?C(Qs(B,Ee,on,qn),_):_}function Ks(_,B){B===void 0&&(B=0);var Ee=I(253);return Ee.flags|=B&3,Ee.declarations=K(_),Ee.transformFlags|=y(Ee.declarations)|2097152,B&3&&(Ee.transformFlags|=131584),Ee}function rc(_,B){return _.declarations!==B?C(Ks(B,_.flags),_):_}function mf(_,B,Ee,on,qn,Zr,Nt,Si){var Yo=Ce(254,_,B,on,qn,Zr,Nt,Si);return Yo.asteriskToken=Ee,!Yo.body||e.modifiersToFlags(Yo.modifiers)&2?Yo.transformFlags=1:(Yo.transformFlags|=_e(Yo.asteriskToken)|2097152,e.modifiersToFlags(Yo.modifiers)&256?Yo.asteriskToken?Yo.transformFlags|=64:Yo.transformFlags|=128:Yo.asteriskToken&&(Yo.transformFlags|=1024)),Yo}function _f(_,B,Ee,on,qn,Zr,Nt,Si,Yo){return _.decorators!==B||_.modifiers!==Ee||_.asteriskToken!==on||_.name!==qn||_.typeParameters!==Zr||_.parameters!==Nt||_.type!==Si||_.body!==Yo?Be(mf(B,Ee,on,qn,Zr,Nt,Si,Yo),_):_}function vu(_,B,Ee,on,qn,Zr){var Nt=en(255,_,B,Ee,on,qn,Zr);return e.modifiersToFlags(Nt.modifiers)&2?Nt.transformFlags=1:(Nt.transformFlags|=512,Nt.transformFlags&4096&&(Nt.transformFlags|=1)),Nt}function Qu(_,B,Ee,on,qn,Zr,Nt){return _.decorators!==B||_.modifiers!==Ee||_.name!==on||_.typeParameters!==qn||_.heritageClauses!==Zr||_.members!==Nt?C(vu(B,Ee,on,qn,Zr,Nt),_):_}function gf(_,B,Ee,on,qn,Zr){var Nt=De(256,_,B,Ee,on,qn);return Nt.members=K(Zr),Nt.transformFlags=1,Nt}function Nf(_,B,Ee,on,qn,Zr,Nt){return _.decorators!==B||_.modifiers!==Ee||_.name!==on||_.typeParameters!==qn||_.heritageClauses!==Zr||_.members!==Nt?C(gf(B,Ee,on,qn,Zr,Nt),_):_}function kf(_,B,Ee,on,qn){var Zr=te(257,_,B,Ee,on);return Zr.type=qn,Zr.transformFlags=1,Zr}function dd(_,B,Ee,on,qn,Zr){return _.decorators!==B||_.modifiers!==Ee||_.name!==on||_.typeParameters!==qn||_.type!==Zr?C(kf(B,Ee,on,qn,Zr),_):_}function pd(_,B,Ee,on){var qn=Oe(258,_,B,Ee);return qn.members=K(on),qn.transformFlags|=y(qn.members)|1,qn.transformFlags&=-16777217,qn}function Rf(_,B,Ee,on,qn){return _.decorators!==B||_.modifiers!==Ee||_.name!==on||_.members!==qn?C(pd(B,Ee,on,qn),_):_}function Of(_,B,Ee,on,qn){qn===void 0&&(qn=0);var Zr=Ae(259,_,B);return Zr.flags|=qn&1044,Zr.name=Ee,Zr.body=on,e.modifiersToFlags(Zr.modifiers)&2?Zr.transformFlags=1:Zr.transformFlags|=_e(Zr.name)|_e(Zr.body)|1,Zr.transformFlags&=-16777217,Zr}function md(_,B,Ee,on,qn){return _.decorators!==B||_.modifiers!==Ee||_.name!==on||_.body!==qn?C(Of(B,Ee,on,qn,_.flags),_):_}function Zu(_){var B=I(260);return B.statements=K(_),B.transformFlags|=y(B.statements),B}function Xc(_,B){return _.statements!==B?C(Zu(B),_):_}function Pf(_){var B=I(261);return B.clauses=K(_),B.transformFlags|=y(B.clauses),B}function Jl(_,B){return _.clauses!==B?C(Pf(B),_):_}function $u(_){var B=Oe(262,void 0,void 0,_);return B.transformFlags=1,B}function Yc(_,B){return _.name!==B?C($u(B),_):_}function Ud(_,B,Ee,on,qn){var Zr=Oe(263,_,B,on);return Zr.isTypeOnly=Ee,Zr.moduleReference=qn,Zr.transformFlags|=_e(Zr.moduleReference),e.isExternalModuleReference(Zr.moduleReference)||(Zr.transformFlags|=1),Zr.transformFlags&=-16777217,Zr}function Lc(_,B,Ee,on,qn,Zr){return _.decorators!==B||_.modifiers!==Ee||_.isTypeOnly!==on||_.name!==qn||_.moduleReference!==Zr?C(Ud(B,Ee,on,qn,Zr),_):_}function mc(_,B,Ee,on){var qn=Ae(264,_,B);return qn.importClause=Ee,qn.moduleSpecifier=on,qn.transformFlags|=_e(qn.importClause)|_e(qn.moduleSpecifier),qn.transformFlags&=-16777217,qn}function oc(_,B,Ee,on,qn){return _.decorators!==B||_.modifiers!==Ee||_.importClause!==on||_.moduleSpecifier!==qn?C(mc(B,Ee,on,qn),_):_}function Ti(_,B,Ee){var on=I(265);return on.isTypeOnly=_,on.name=B,on.namedBindings=Ee,on.transformFlags|=_e(on.name)|_e(on.namedBindings),_&&(on.transformFlags|=1),on.transformFlags&=-16777217,on}function vf(_,B,Ee,on){return _.isTypeOnly!==B||_.name!==Ee||_.namedBindings!==on?C(Ti(B,Ee,on),_):_}function zs(_){var B=I(266);return B.name=_,B.transformFlags|=_e(B.name),B.transformFlags&=-16777217,B}function xs(_,B){return _.name!==B?C(zs(B),_):_}function sl(_){var B=I(272);return B.name=_,B.transformFlags|=_e(B.name)|4,B.transformFlags&=-16777217,B}function Mf(_,B){return _.name!==B?C(sl(B),_):_}function wf(_){var B=I(267);return B.elements=K(_),B.transformFlags|=y(B.elements),B.transformFlags&=-16777217,B}function c(_,B){return _.elements!==B?C(wf(B),_):_}function h(_,B){var Ee=I(268);return Ee.propertyName=_,Ee.name=B,Ee.transformFlags|=_e(Ee.propertyName)|_e(Ee.name),Ee.transformFlags&=-16777217,Ee}function ae(_,B,Ee){return _.propertyName!==B||_.name!==Ee?C(h(B,Ee),_):_}function je(_,B,Ee,on){var qn=Ae(269,_,B);return qn.isExportEquals=Ee,qn.expression=Ee?d().parenthesizeRightSideOfBinary(63,void 0,on):d().parenthesizeExpressionOfExportDefault(on),qn.transformFlags|=_e(qn.expression),qn.transformFlags&=-16777217,qn}function _n(_,B,Ee,on){return _.decorators!==B||_.modifiers!==Ee||_.expression!==on?C(je(B,Ee,_.isExportEquals,on),_):_}function Nn(_,B,Ee,on,qn){var Zr=Ae(270,_,B);return Zr.isTypeOnly=Ee,Zr.exportClause=on,Zr.moduleSpecifier=qn,Zr.transformFlags|=_e(Zr.exportClause)|_e(Zr.moduleSpecifier),Zr.transformFlags&=-16777217,Zr}function er(_,B,Ee,on,qn,Zr){return _.decorators!==B||_.modifiers!==Ee||_.isTypeOnly!==on||_.exportClause!==qn||_.moduleSpecifier!==Zr?C(Nn(B,Ee,on,qn,Zr),_):_}function pr(_){var B=I(271);return B.elements=K(_),B.transformFlags|=y(B.elements),B.transformFlags&=-16777217,B}function kr(_,B){return _.elements!==B?C(pr(B),_):_}function Er(_,B){var Ee=I(273);return Ee.propertyName=zl(_),Ee.name=zl(B),Ee.transformFlags|=_e(Ee.propertyName)|_e(Ee.name),Ee.transformFlags&=-16777217,Ee}function gt(_,B,Ee){return _.propertyName!==B||_.name!==Ee?C(Er(B,Ee),_):_}function rt(){var _=Ae(274,void 0,void 0);return _}function ma(_){var B=I(275);return B.expression=_,B.transformFlags|=_e(B.expression),B.transformFlags&=-16777217,B}function Ai(_,B){return _.expression!==B?C(ma(B),_):_}function Ba(_){return I(_)}function _i(_,B){var Ee=I(_);return Ee.type=B,Ee}function No(_,B,Ee){return B.type!==Ee?C(_i(_,Ee),B):B}function to(_,B){var Ee=Se(312,void 0,void 0,void 0,void 0,_,B);return Ee}function Ca(_,B,Ee){return _.parameters!==B||_.type!==Ee?C(to(B,Ee),_):_}function Qt(_,B){B===void 0&&(B=!1);var Ee=I(317);return Ee.jsDocPropertyTags=Ml(_),Ee.isArrayType=B,Ee}function ni(_,B,Ee){return _.jsDocPropertyTags!==B||_.isArrayType!==Ee?C(Qt(B,Ee),_):_}function Wa(_){var B=I(304);return B.type=_,B}function qa(_,B){return _.type!==B?C(Wa(B),_):_}function so(_,B,Ee){var on=I(318);return on.typeParameters=Ml(_),on.parameters=K(B),on.type=Ee,on}function Vi(_,B,Ee,on){return _.typeParameters!==B||_.parameters!==Ee||_.type!==on?C(so(B,Ee,on),_):_}function ki(_){var B=re(_.kind);return _.tagName.escapedText===e.escapeLeadingUnderscores(B)?_.tagName:En(B)}function Gs(_,B,Ee){var on=I(_);return on.tagName=B,on.comment=Ee,on}function Ds(_,B,Ee,on){var qn=Gs(339,_!=null?_:En("template"),on);return qn.constraint=B,qn.typeParameters=K(Ee),qn}function ko(_,B,Ee,on,qn){return B===void 0&&(B=ki(_)),_.tagName!==B||_.constraint!==Ee||_.typeParameters!==on||_.comment!==qn?C(Ds(B,Ee,on,qn),_):_}function Pt(_,B,Ee,on){var qn=Gs(340,_!=null?_:En("typedef"),on);return qn.typeExpression=B,qn.fullName=Ee,qn.name=e.getJSDocTypeAliasName(Ee),qn}function wo(_,B,Ee,on,qn){return B===void 0&&(B=ki(_)),_.tagName!==B||_.typeExpression!==Ee||_.fullName!==on||_.comment!==qn?C(Pt(B,Ee,on,qn),_):_}function gi(_,B,Ee,on,qn,Zr){var Nt=Gs(335,_!=null?_:En("param"),Zr);return Nt.typeExpression=on,Nt.name=B,Nt.isNameFirst=!!qn,Nt.isBracketed=Ee,Nt}function Qc(_,B,Ee,on,qn,Zr,Nt){return B===void 0&&(B=ki(_)),_.tagName!==B||_.name!==Ee||_.isBracketed!==on||_.typeExpression!==qn||_.isNameFirst!==Zr||_.comment!==Nt?C(gi(B,Ee,on,qn,Zr,Nt),_):_}function Vd(_,B,Ee,on,qn,Zr){var Nt=Gs(342,_!=null?_:En("prop"),Zr);return Nt.typeExpression=on,Nt.name=B,Nt.isNameFirst=!!qn,Nt.isBracketed=Ee,Nt}function hu(_,B,Ee,on,qn,Zr,Nt){return B===void 0&&(B=ki(_)),_.tagName!==B||_.name!==Ee||_.isBracketed!==on||_.typeExpression!==qn||_.isNameFirst!==Zr||_.comment!==Nt?C(Vd(B,Ee,on,qn,Zr,Nt),_):_}function Dt(_,B,Ee,on){var qn=Gs(333,_!=null?_:En("callback"),on);return qn.typeExpression=B,qn.fullName=Ee,qn.name=e.getJSDocTypeAliasName(Ee),qn}function hf(_,B,Ee,on,qn){return B===void 0&&(B=ki(_)),_.tagName!==B||_.typeExpression!==Ee||_.fullName!==on||_.comment!==qn?C(Dt(B,Ee,on,qn),_):_}function Ls(_,B,Ee){var on=Gs(323,_!=null?_:En("augments"),Ee);return on.class=B,on}function Dl(_,B,Ee,on){return B===void 0&&(B=ki(_)),_.tagName!==B||_.class!==Ee||_.comment!==on?C(Ls(B,Ee,on),_):_}function ec(_,B,Ee){var on=Gs(324,_!=null?_:En("implements"),Ee);return on.class=B,on}function Ff(_,B,Ee){var on=Gs(341,_!=null?_:En("see"),Ee);return on.name=B,on}function dp(_,B,Ee,on){return _.tagName!==B||_.name!==Ee||_.comment!==on?C(Ff(B,Ee,on),_):_}function Mu(_){var B=I(305);return B.name=_,B}function Bc(_,B){return _.name!==B?C(Mu(B),_):_}function Gf(_,B){var Ee=I(306);return Ee.left=_,Ee.right=B,Ee.transformFlags|=_e(Ee.left)|_e(Ee.right),Ee}function al(_,B,Ee){return _.left!==B||_.right!==Ee?C(Gf(B,Ee),_):_}function Ic(_,B){var Ee=I(319);return Ee.name=_,Ee.text=B,Ee}function Wd(_,B,Ee){return _.name!==B?C(Ic(B,Ee),_):_}function yf(_,B){var Ee=I(320);return Ee.name=_,Ee.text=B,Ee}function Eo(_,B,Ee){return _.name!==B?C(yf(B,Ee),_):_}function wt(_,B){var Ee=I(321);return Ee.name=_,Ee.text=B,Ee}function Kl(_,B,Ee){return _.name!==B?C(wt(B,Ee),_):_}function wp(_,B,Ee,on){return B===void 0&&(B=ki(_)),_.tagName!==B||_.class!==Ee||_.comment!==on?C(ec(B,Ee,on),_):_}function ef(_,B,Ee){var on=Gs(_,B!=null?B:En(re(_)),Ee);return on}function Zc(_,B,Ee,on){return Ee===void 0&&(Ee=ki(B)),B.tagName!==Ee||B.comment!==on?C(ef(_,Ee,on),B):B}function jd(_,B,Ee,on){var qn=Gs(_,B!=null?B:En(re(_)),on);return qn.typeExpression=Ee,qn}function Bf(_,B,Ee,on,qn){return Ee===void 0&&(Ee=ki(B)),B.tagName!==Ee||B.typeExpression!==on||B.comment!==qn?C(jd(_,Ee,on,qn),B):B}function _c(_,B){var Ee=Gs(322,_,B);return Ee}function $c(_,B,Ee){return _.tagName!==B||_.comment!==Ee?C(_c(B,Ee),_):_}function Nc(_){var B=I(316);return B.text=_,B}function kc(_,B){return _.text!==B?C(Nc(B),_):_}function Pl(_,B){var Ee=I(315);return Ee.comment=_,Ee.tags=Ml(B),Ee}function Bs(_,B,Ee){return _.comment!==B||_.tags!==Ee?C(Pl(B,Ee),_):_}function As(_,B,Ee){var on=I(276);return on.openingElement=_,on.children=K(B),on.closingElement=Ee,on.transformFlags|=_e(on.openingElement)|y(on.children)|_e(on.closingElement)|2,on}function fl(_,B,Ee,on){return _.openingElement!==B||_.children!==Ee||_.closingElement!==on?C(As(B,Ee,on),_):_}function pp(_,B,Ee){var on=I(277);return on.tagName=_,on.typeArguments=Ml(B),on.attributes=Ee,on.transformFlags|=_e(on.tagName)|y(on.typeArguments)|_e(on.attributes)|2,on.typeArguments&&(on.transformFlags|=1),on}function Uc(_,B,Ee,on){return _.tagName!==B||_.typeArguments!==Ee||_.attributes!==on?C(pp(B,Ee,on),_):_}function dl(_,B,Ee){var on=I(278);return on.tagName=_,on.typeArguments=Ml(B),on.attributes=Ee,on.transformFlags|=_e(on.tagName)|y(on.typeArguments)|_e(on.attributes)|2,B&&(on.transformFlags|=1),on}function nf(_,B,Ee,on){return _.tagName!==B||_.typeArguments!==Ee||_.attributes!==on?C(dl(B,Ee,on),_):_}function _d(_){var B=I(279);return B.tagName=_,B.transformFlags|=_e(B.tagName)|2,B}function el(_,B){return _.tagName!==B?C(_d(B),_):_}function qo(_,B,Ee){var on=I(280);return on.openingFragment=_,on.children=K(B),on.closingFragment=Ee,on.transformFlags|=_e(on.openingFragment)|y(on.children)|_e(on.closingFragment)|2,on}function mp(_,B,Ee,on){return _.openingFragment!==B||_.children!==Ee||_.closingFragment!==on?C(qo(B,Ee,on),_):_}function yu(_,B){var Ee=I(11);return Ee.text=_,Ee.containsOnlyTriviaWhiteSpaces=!!B,Ee.transformFlags|=2,Ee}function rf(_,B,Ee){return _.text!==B||_.containsOnlyTriviaWhiteSpaces!==Ee?C(yu(B,Ee),_):_}function gd(){var _=I(281);return _.transformFlags|=2,_}function Hd(){var _=I(282);return _.transformFlags|=2,_}function _p(_,B){var Ee=I(283);return Ee.name=_,Ee.initializer=B,Ee.transformFlags|=_e(Ee.name)|_e(Ee.initializer)|2,Ee}function vd(_,B,Ee){return _.name!==B||_.initializer!==Ee?C(_p(B,Ee),_):_}function Eu(_){var B=I(284);return B.properties=K(_),B.transformFlags|=y(B.properties)|2,B}function Jd(_,B){return _.properties!==B?C(Eu(B),_):_}function Uf(_){var B=I(285);return B.expression=_,B.transformFlags|=_e(B.expression)|2,B}function tf(_,B){return _.expression!==B?C(Uf(B),_):_}function Ef(_,B){var Ee=I(286);return Ee.dotDotDotToken=_,Ee.expression=B,Ee.transformFlags|=_e(Ee.dotDotDotToken)|_e(Ee.expression)|2,Ee}function hd(_,B){return _.expression!==B?C(Ef(_.dotDotDotToken,B),_):_}function yd(_,B){var Ee=I(287);return Ee.expression=d().parenthesizeExpressionForDisallowedComma(_),Ee.statements=K(B),Ee.transformFlags|=_e(Ee.expression)|y(Ee.statements),Ee}function af(_,B,Ee){return _.expression!==B||_.statements!==Ee?C(yd(B,Ee),_):_}function Kd(_){var B=I(288);return B.statements=K(_),B.transformFlags=y(B.statements),B}function gp(_,B){return _.statements!==B?C(Kd(B),_):_}function Qa(_,B){var Ee=I(289);switch(Ee.token=_,Ee.types=K(B),Ee.transformFlags|=y(Ee.types),_){case 94:Ee.transformFlags|=512;break;case 117:Ee.transformFlags|=1;break;default:return e.Debug.assertNever(_)}return Ee}function Rc(_,B){return _.types!==B?C(Qa(_.token,B),_):_}function Lt(_,B){var Ee=I(290);return _=e.isString(_)?Qs(_,void 0,void 0,void 0):_,Ee.variableDeclaration=_,Ee.block=B,Ee.transformFlags|=_e(Ee.variableDeclaration)|_e(Ee.block),_||(Ee.transformFlags|=32),Ee}function Vf(_,B,Ee){return _.variableDeclaration!==B||_.block!==Ee?C(Lt(B,Ee),_):_}function wu(_,B){var Ee=Oe(291,void 0,void 0,_);return Ee.initializer=d().parenthesizeExpressionForDisallowedComma(B),Ee.transformFlags|=_e(Ee.name)|_e(Ee.initializer),Ee}function Ed(_,B){return B.decorators&&(_.decorators=B.decorators),B.modifiers&&(_.modifiers=B.modifiers),B.questionToken&&(_.questionToken=B.questionToken),B.exclamationToken&&(_.exclamationToken=B.exclamationToken),C(_,B)}function Wf(_,B,Ee){return _.name!==B||_.initializer!==Ee?Ed(wu(B,Ee),_):_}function bd(_,B){var Ee=Oe(292,void 0,void 0,_);return Ee.objectAssignmentInitializer=B&&d().parenthesizeExpressionForDisallowedComma(B),Ee.transformFlags|=_e(Ee.objectAssignmentInitializer)|512,Ee}function of(_,B){return B.decorators&&(_.decorators=B.decorators),B.modifiers&&(_.modifiers=B.modifiers),B.equalsToken&&(_.equalsToken=B.equalsToken),B.questionToken&&(_.questionToken=B.questionToken),B.exclamationToken&&(_.exclamationToken=B.exclamationToken),C(_,B)}function gc(_,B,Ee){return _.name!==B||_.objectAssignmentInitializer!==Ee?of(bd(B,Ee),_):_}function sc(_){var B=I(293);return B.expression=d().parenthesizeExpressionForDisallowedComma(_),B.transformFlags|=_e(B.expression)|64|32768,B}function Td(_,B){return _.expression!==B?C(sc(B),_):_}function Fu(_,B){var Ee=I(294);return Ee.name=zl(_),Ee.initializer=B&&d().parenthesizeExpressionForDisallowedComma(B),Ee.transformFlags|=_e(Ee.name)|_e(Ee.initializer)|1,Ee}function vp(_,B,Ee){return _.name!==B||_.initializer!==Ee?C(Fu(B,Ee),_):_}function Sd(_,B,Ee){var on=U.createBaseSourceFileNode(300);return on.statements=K(_),on.endOfFileToken=B,on.flags|=Ee,on.fileName="",on.text="",on.languageVersion=0,on.languageVariant=0,on.scriptKind=0,on.isDeclarationFile=!1,on.hasNoDefaultLib=!1,on.transformFlags|=y(on.statements)|_e(on.endOfFileToken),on}function Gu(_,B,Ee,on,qn,Zr,Nt){var Si=U.createBaseSourceFileNode(300);for(var Yo in _)Yo==="emitNode"||e.hasProperty(Si,Yo)||!e.hasProperty(_,Yo)||(Si[Yo]=_[Yo]);return Si.flags|=_.flags,Si.statements=K(B),Si.endOfFileToken=_.endOfFileToken,Si.isDeclarationFile=Ee,Si.referencedFiles=on,Si.typeReferenceDirectives=qn,Si.hasNoDefaultLib=Zr,Si.libReferenceDirectives=Nt,Si.transformFlags=y(Si.statements)|_e(Si.endOfFileToken),Si}function sf(_,B,Ee,on,qn,Zr,Nt){return Ee===void 0&&(Ee=_.isDeclarationFile),on===void 0&&(on=_.referencedFiles),qn===void 0&&(qn=_.typeReferenceDirectives),Zr===void 0&&(Zr=_.hasNoDefaultLib),Nt===void 0&&(Nt=_.libReferenceDirectives),_.statements!==B||_.isDeclarationFile!==Ee||_.referencedFiles!==on||_.typeReferenceDirectives!==qn||_.hasNoDefaultLib!==Zr||_.libReferenceDirectives!==Nt?C(Gu(_,B,Ee,on,qn,Zr,Nt),_):_}function eu(_,B){B===void 0&&(B=e.emptyArray);var Ee=I(301);return Ee.prepends=B,Ee.sourceFiles=_,Ee}function zd(_,B,Ee){return Ee===void 0&&(Ee=e.emptyArray),_.sourceFiles!==B||_.prepends!==Ee?C(eu(B,Ee),_):_}function Vc(_,B,Ee){var on=I(302);return on.prologues=_,on.syntheticReferences=B,on.texts=Ee,on.fileName="",on.text="",on.referencedFiles=e.emptyArray,on.libReferenceDirectives=e.emptyArray,on.getLineAndCharacterOfPosition=function(qn){return e.getLineAndCharacterOfPosition(on,qn)},on}function Dd(_,B){var Ee=I(_);return Ee.data=B,Ee}function qd(_){return Dd(295,_)}function Oc(_,B){var Ee=Dd(296,_);return Ee.texts=B,Ee}function jf(_,B){return Dd(B?298:297,_)}function bu(_){var B=I(299);return B.data=_.data,B.section=_,B}function Os(){var _=I(303);return _.javascriptText="",_.declarationText="",_}function Fp(_,B,Ee){B===void 0&&(B=!1);var on=I(230);return on.type=_,on.isSpread=B,on.tupleNameSource=Ee,on}function no(_){var B=I(343);return B._children=_,B}function Hf(_){var B=I(344);return B.original=_,e.setTextRange(B,_),B}function Ld(_,B){var Ee=I(345);return Ee.expression=_,Ee.original=B,Ee.transformFlags|=_e(Ee.expression)|1,e.setTextRange(Ee,B),Ee}function Xd(_,B){return _.expression!==B?C(Ld(B,_.original),_):_}function Yd(_){if(e.nodeIsSynthesized(_)&&!e.isParseTreeNode(_)&&!_.original&&!_.emitNode&&!_.id){if(e.isCommaListExpression(_))return _.elements;if(e.isBinaryExpression(_)&&e.isCommaToken(_.operatorToken))return[_.left,_.right]}return _}function bf(_){var B=I(346);return B.elements=K(e.sameFlatMap(_,Yd)),B.transformFlags|=y(B.elements),B}function v(_,B){return _.elements!==B?C(bf(B),_):_}function nn(_){var B=I(348);return B.emitNode={},B.original=_,B}function mr(_){var B=I(347);return B.emitNode={},B.original=_,B}function Br(_,B){var Ee=I(349);return Ee.expression=_,Ee.thisArg=B,Ee.transformFlags|=_e(Ee.expression)|_e(Ee.thisArg),Ee}function ya(_,B,Ee){return _.expression!==B||_.thisArg!==Ee?C(Br(B,Ee),_):_}function Pa(_){if(_===void 0)return _;var B=e.isSourceFile(_)?U.createBaseSourceFileNode(300):e.isIdentifier(_)?U.createBaseIdentifierNode(79):e.isPrivateIdentifier(_)?U.createBasePrivateIdentifierNode(80):e.isNodeKind(_.kind)?U.createBaseNode(_.kind):U.createBaseTokenNode(_.kind);B.flags|=_.flags&-9,B.transformFlags=_.transformFlags,se(B,_);for(var Ee in _)B.hasOwnProperty(Ee)||!_.hasOwnProperty(Ee)||(B[Ee]=_[Ee]);return B}function Ha(_,B,Ee){return ra(vl(void 0,void 0,void 0,void 0,B?[B]:[],void 0,Wr(_,!0)),void 0,Ee?[Ee]:[])}function ci(_,B,Ee){return ra(ps(void 0,void 0,B?[B]:[],void 0,void 0,Wr(_,!0)),void 0,Ee?[Ee]:[])}function Xi(){return Kn(pe("0"))}function ns(_){return je(void 0,void 0,!1,_)}function fs(_){return Nn(void 0,void 0,!1,pr([Er(void 0,_)]))}function pl(_,B){return B==="undefined"?z.createStrictEquality(_,Xi()):z.createStrictEquality(Fs(_),Qe(B))}function Cs(_,B,Ee){return e.isCallChain(_)?ei(sn(_,void 0,B),void 0,void 0,Ee):ra(Ie(_,B),void 0,Ee)}function Ll(_,B,Ee){return Cs(_,"bind",Vr([B],Ee,!0))}function Wc(_,B,Ee){return Cs(_,"call",Vr([B],Ee,!0))}function Bu(_,B,Ee){return Cs(_,"apply",[B,Ee])}function Al(_,B,Ee){return Cs(En(_),B,Ee)}function jc(_,B){return Cs(_,"slice",B===void 0?[]:[Jf(B)])}function Gp(_,B){return Cs(_,"concat",B)}function Bp(_,B,Ee){return Al("Object","defineProperty",[_,Jf(B),Ee])}function Up(_,B,Ee){return Al("Reflect","get",Ee?[_,B,Ee]:[_,B])}function Vp(_,B,Ee,on){return Al("Reflect","set",on?[_,B,Ee,on]:[_,B,Ee])}function lf(_,B,Ee){return Ee?(_.push(wu(B,Ee)),!0):!1}function Cm(_,B){var Ee=[];lf(Ee,"enumerable",Jf(_.enumerable)),lf(Ee,"configurable",Jf(_.configurable));var on=lf(Ee,"writable",Jf(_.writable));on=lf(Ee,"value",_.value)||on;var qn=lf(Ee,"get",_.get);return qn=lf(Ee,"set",_.set)||qn,e.Debug.assert(!(on&&qn),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),dn(Ee,!B)}function dm(_,B){switch(_.kind){case 210:return ws(_,B);case 209:return Zo(_,_.type,B);case 227:return zt(_,B,_.type);case 228:return ba(_,B);case 345:return Xd(_,B)}}function $m(_){return e.isParenthesizedExpression(_)&&e.nodeIsSynthesized(_)&&e.nodeIsSynthesized(e.getSourceMapRange(_))&&e.nodeIsSynthesized(e.getCommentRange(_))&&!e.some(e.getSyntheticLeadingComments(_))&&!e.some(e.getSyntheticTrailingComments(_))}function Wp(_,B,Ee){return Ee===void 0&&(Ee=15),_&&e.isOuterExpression(_,Ee)&&!$m(_)?dm(_,Wp(_.expression,B)):B}function Ad(_,B,Ee){if(!B)return _;var on=$o(B,B.label,e.isLabeledStatement(B.statement)?Ad(_,B.statement):_);return Ee&&Ee(B),on}function Cd(_,B){var Ee=e.skipParentheses(_);switch(Ee.kind){case 79:return B;case 108:case 8:case 9:case 10:return!1;case 202:var on=Ee.elements;return on.length!==0;case 203:return Ee.properties.length>0;default:return!0}}function ke(_,B,Ee,on){on===void 0&&(on=!1);var qn=e.skipOuterExpressions(_,15),Zr,Nt;return e.isSuperProperty(qn)?(Zr=Ze(),Nt=qn):e.isSuperKeyword(qn)?(Zr=Ze(),Nt=Ee!==void 0&&Ee<2?e.setTextRange(En("_super"),qn):qn):e.getEmitFlags(qn)&4096?(Zr=Xi(),Nt=d().parenthesizeLeftSideOfAccess(qn)):e.isPropertyAccessExpression(qn)?Cd(qn.expression,on)?(Zr=In(B),Nt=Ie(e.setTextRange(z.createAssignment(Zr,qn.expression),qn.expression),qn.name),e.setTextRange(Nt,qn)):(Zr=qn.expression,Nt=qn):e.isElementAccessExpression(qn)?Cd(qn.expression,on)?(Zr=In(B),Nt=vr(e.setTextRange(z.createAssignment(Zr,qn.expression),qn.expression),qn.argumentExpression),e.setTextRange(Nt,qn)):(Zr=qn.expression,Nt=qn):(Zr=Xi(),Nt=d().parenthesizeLeftSideOfAccess(_)),{target:Nt,thisArg:Zr}}function bn(_,B){return Ie(cl(dn([Rn(void 0,void 0,"value",[hr(void 0,void 0,void 0,_,void 0,void 0,void 0)],Wr([Oo(B)]))])),"value")}function Yn(_){return _.length>10?bf(_):e.reduceLeft(_,z.createComma)}function dr(_,B,Ee,on){on===void 0&&(on=0);var qn=e.getNameOfDeclaration(_);if(qn&&e.isIdentifier(qn)&&!e.isGeneratedIdentifier(qn)){var Zr=e.setParent(e.setTextRange(Pa(qn),qn),qn.parent);return on|=e.getEmitFlags(qn),Ee||(on|=48),B||(on|=1536),on&&e.setEmitFlags(Zr,on),Zr}return $n(_)}function Mr(_,B,Ee){return dr(_,B,Ee,49152)}function lt(_,B,Ee){return dr(_,B,Ee,16384)}function Gt(_,B,Ee){return dr(_,B,Ee,8192)}function ta(_,B,Ee){return dr(_,B,Ee)}function pi(_,B,Ee,on){var qn=Ie(_,e.nodeIsSynthesized(B)?B:Pa(B));e.setTextRange(qn,B);var Zr=0;return on||(Zr|=48),Ee||(Zr|=1536),Zr&&e.setEmitFlags(qn,Zr),qn}function ka(_,B,Ee,on){return _&&e.hasSyntacticModifier(B,1)?pi(_,dr(B),Ee,on):Gt(B,Ee,on)}function Do(_,B,Ee,on){var qn=ms(_,B,Ee);return Us(_,B,qn,on)}function Is(_){return e.isStringLiteral(_.expression)&&_.expression.text==="use strict"}function Lo(){return e.startOnNewLine(Oo(Qe("use strict")))}function ms(_,B,Ee){e.Debug.assert(B.length===0,"Prologue directives should be at the first statement in the target statements array");for(var on=!1,qn=0,Zr=_.length;qn<Zr;){var Nt=_[qn];if(e.isPrologueDirective(Nt))Is(Nt)&&(on=!0),B.push(Nt);else break;qn++}return Ee&&!on&&B.push(Lo()),qn}function Us(_,B,Ee,on,qn){qn===void 0&&(qn=e.returnTrue);for(var Zr=_.length;Ee!==void 0&&Ee<Zr;){var Nt=_[Ee];if(e.getEmitFlags(Nt)&1048576&&qn(Nt))e.append(B,on?e.visitNode(Nt,on,e.isStatement):Nt);else break;Ee++}return Ee}function yl(_){var B=e.findUseStrictPrologue(_);return B?_:e.setTextRange(K(Vr([Lo()],_,!0)),_)}function Cl(_){return e.Debug.assert(e.every(_,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(_)||Wr(_)}function Pc(_,B,Ee){for(var on=Ee;on<_.length&&B(_[on]);)on++;return on}function tc(_,B){if(!e.some(B))return _;var Ee=Pc(_,e.isPrologueDirective,0),on=Pc(_,e.isHoistedFunction,Ee),qn=Pc(_,e.isHoistedVariableStatement,on),Zr=Pc(B,e.isPrologueDirective,0),Nt=Pc(B,e.isHoistedFunction,Zr),Si=Pc(B,e.isHoistedVariableStatement,Nt),Yo=Pc(B,e.isCustomPrologue,Si);e.Debug.assert(Yo===B.length,"Expected declarations to be valid standard or custom prologues");var nl=e.isNodeArray(_)?_.slice():_;if(Yo>Si&&nl.splice.apply(nl,Vr([qn,0],B.slice(Si,Yo),!1)),Si>Nt&&nl.splice.apply(nl,Vr([on,0],B.slice(Nt,Si),!1)),Nt>Zr&&nl.splice.apply(nl,Vr([Ee,0],B.slice(Zr,Nt),!1)),Zr>0)if(Ee===0)nl.splice.apply(nl,Vr([0,0],B.slice(0,Zr),!1));else{for(var nu=new e.Map,Sf=0;Sf<Ee;Sf++){var Kf=_[Sf];nu.set(Kf.expression.text,!0)}for(var Sf=Zr-1;Sf>=0;Sf--){var cf=B[Sf];nu.has(cf.expression.text)||nl.unshift(cf)}}return e.isNodeArray(_)?e.setTextRange(K(nl,_.hasTrailingComma),_):_}function Tf(_,B){var Ee;return typeof B=="number"&&(B=Ue(B)),e.isParameter(_)?wr(_,_.decorators,B,_.dotDotDotToken,_.name,_.questionToken,_.type,_.initializer):e.isPropertySignature(_)?Zn(_,B,_.name,_.questionToken,_.type):e.isPropertyDeclaration(_)?Mn(_,_.decorators,B,_.name,(Ee=_.questionToken)!==null&&Ee!==void 0?Ee:_.exclamationToken,_.type,_.initializer):e.isMethodSignature(_)?Xn(_,B,_.name,_.questionToken,_.typeParameters,_.parameters,_.type):e.isMethodDeclaration(_)?cr(_,_.decorators,B,_.asteriskToken,_.name,_.questionToken,_.typeParameters,_.parameters,_.type,_.body):e.isConstructorDeclaration(_)?Cn(_,_.decorators,B,_.parameters,_.body):e.isGetAccessorDeclaration(_)?cn(_,_.decorators,B,_.name,_.parameters,_.type,_.body):e.isSetAccessorDeclaration(_)?Ye(_,_.decorators,B,_.name,_.parameters,_.body):e.isIndexSignatureDeclaration(_)?Dr(_,_.decorators,B,_.parameters,_.type):e.isFunctionExpression(_)?ul(_,B,_.asteriskToken,_.name,_.typeParameters,_.parameters,_.type,_.body):e.isArrowFunction(_)?jl(_,B,_.typeParameters,_.parameters,_.type,_.equalsGreaterThanToken,_.body):e.isClassExpression(_)?st(_,_.decorators,B,_.name,_.typeParameters,_.heritageClauses,_.members):e.isVariableStatement(_)?hi(_,B,_.declarationList):e.isFunctionDeclaration(_)?_f(_,_.decorators,B,_.asteriskToken,_.name,_.typeParameters,_.parameters,_.type,_.body):e.isClassDeclaration(_)?Qu(_,_.decorators,B,_.name,_.typeParameters,_.heritageClauses,_.members):e.isInterfaceDeclaration(_)?Nf(_,_.decorators,B,_.name,_.typeParameters,_.heritageClauses,_.members):e.isTypeAliasDeclaration(_)?dd(_,_.decorators,B,_.name,_.typeParameters,_.type):e.isEnumDeclaration(_)?Rf(_,_.decorators,B,_.name,_.members):e.isModuleDeclaration(_)?md(_,_.decorators,B,_.name,_.body):e.isImportEqualsDeclaration(_)?Lc(_,_.decorators,B,_.isTypeOnly,_.name,_.moduleReference):e.isImportDeclaration(_)?oc(_,_.decorators,B,_.importClause,_.moduleSpecifier):e.isExportAssignment(_)?_n(_,_.decorators,B,_.expression):e.isExportDeclaration(_)?er(_,_.decorators,B,_.isTypeOnly,_.exportClause,_.moduleSpecifier):e.Debug.assertNever(_)}function Ml(_){return _?K(_):void 0}function zl(_){return typeof _=="string"?En(_):_}function Jf(_){return typeof _=="string"?Qe(_):typeof _=="number"?pe(_):typeof _=="boolean"?_?Le():$e():_}function kt(_){return typeof _=="number"?Pe(_):_}function El(_){return _&&e.isNotEmittedStatement(_)?e.setTextRange(se(yo(),_),_):_}}e.createNodeFactory=$;function Y(ne,U){return ne!==U&&e.setTextRange(ne,U),ne}function W(ne,U){return ne!==U&&(se(ne,U),e.setTextRange(ne,U)),ne}function re(ne){switch(ne){case 338:return"type";case 336:return"returns";case 337:return"this";case 334:return"enum";case 325:return"author";case 327:return"class";case 328:return"public";case 329:return"private";case 330:return"protected";case 331:return"readonly";case 332:return"override";case 339:return"template";case 340:return"typedef";case 335:return"param";case 342:return"prop";case 333:return"callback";case 323:return"augments";case 324:return"implements";default:return e.Debug.fail("Unsupported kind: "+e.Debug.formatSyntaxKind(ne))}}var ye,O={};function A(ne,U){switch(ye||(ye=e.createScanner(99,!1,0)),ne){case 14:ye.setText("`"+U+"`");break;case 15:ye.setText("`"+U+"${");break;case 16:ye.setText("}"+U+"${");break;case 17:ye.setText("}"+U+"`");break}var C=ye.scan();if(C===19&&(C=ye.reScanTemplateToken(!1)),ye.isUnterminated())return ye.setText(void 0),O;var d;switch(C){case 14:case 15:case 16:case 17:d=ye.getTokenValue();break}return d===void 0||ye.scan()!==1?(ye.setText(void 0),O):(ye.setText(void 0),d)}function D(ne){return _e(ne)&-16777217}function de(ne,U){return U|ne.transformFlags&33562624}function _e(ne){if(!ne)return 0;var U=ne.transformFlags&~Z(ne.kind);return e.isNamedDeclaration(ne)&&e.isPropertyName(ne.name)?de(ne.name,U):U}function y(ne){return ne?ne.transformFlags:0}function V(ne){for(var U=0,C=0,d=ne;C<d.length;C++){var G=d[C];U|=_e(G)}ne.transformFlags=U}function Z(ne){if(ne>=175&&ne<=198)return-2;switch(ne){case 206:case 207:case 202:return 536887296;case 259:return 589443072;case 162:return 536870912;case 212:return 557748224;case 211:case 254:return 591310848;case 253:return 537165824;case 255:case 224:return 536940544;case 169:return 591306752;case 165:return 570433536;case 167:case 170:case 171:return 574529536;case 129:case 145:case 156:case 142:case 148:case 146:case 132:case 149:case 114:case 161:case 164:case 166:case 172:case 173:case 174:case 256:case 257:return-2;case 203:return 536973312;case 290:return 536903680;case 199:case 200:return 536887296;case 209:case 227:case 345:case 210:case 106:return 536870912;case 204:case 205:return 536870912;default:return 536870912}}e.getTransformFlagsSubtreeExclusions=Z;var E=e.createBaseNodeFactory();function H(ne){return ne.flags|=8,ne}var L={createBaseSourceFileNode:function(ne){return H(E.createBaseSourceFileNode(ne))},createBaseIdentifierNode:function(ne){return H(E.createBaseIdentifierNode(ne))},createBasePrivateIdentifierNode:function(ne){return H(E.createBasePrivateIdentifierNode(ne))},createBaseTokenNode:function(ne){return H(E.createBaseTokenNode(ne))},createBaseNode:function(ne){return H(E.createBaseNode(ne))}};e.factory=$(4,L);function ee(ne,U,C){var d,G,g,p,f,T,m,N,P,x;e.isString(ne)?(g="",p=ne,f=ne.length,T=U,m=C):(e.Debug.assert(U==="js"||U==="dts"),g=(U==="js"?ne.javascriptPath:ne.declarationPath)||"",T=U==="js"?ne.javascriptMapPath:ne.declarationMapPath,N=function(){return U==="js"?ne.javascriptText:ne.declarationText},P=function(){return U==="js"?ne.javascriptMapText:ne.declarationMapText},f=function(){return N().length},ne.buildInfo&&ne.buildInfo.bundle&&(e.Debug.assert(C===void 0||typeof C=="boolean"),d=C,G=U==="js"?ne.buildInfo.bundle.js:ne.buildInfo.bundle.dts,x=ne.oldFileOfCurrentEmit));var M=x?b(e.Debug.assertDefined(G)):k(G,d,f);return M.fileName=g,M.sourceMapPath=T,M.oldFileOfCurrentEmit=x,N&&P?(Object.defineProperty(M,"text",{get:N}),Object.defineProperty(M,"sourceMapText",{get:P})):(e.Debug.assert(!x),M.text=p!=null?p:"",M.sourceMapText=m),M}e.createUnparsedSourceFile=ee;function k(ne,U,C){for(var d,G,g,p,f,T,m,N,P=0,x=ne?ne.sections:e.emptyArray;P<x.length;P++){var M=x[P];switch(M.kind){case"prologue":d=e.append(d,e.setTextRange(e.factory.createUnparsedPrologue(M.data),M));break;case"emitHelpers":G=e.append(G,e.getAllUnscopedEmitHelpers().get(M.data));break;case"no-default-lib":N=!0;break;case"reference":g=e.append(g,{pos:-1,end:-1,fileName:M.data});break;case"type":p=e.append(p,M.data);break;case"lib":f=e.append(f,{pos:-1,end:-1,fileName:M.data});break;case"prepend":for(var me=void 0,z=0,K=M.texts;z<K.length;z++){var I=K[z];(!U||I.kind!=="internal")&&(me=e.append(me,e.setTextRange(e.factory.createUnparsedTextLike(I.data,I.kind==="internal"),I)))}T=e.addRange(T,me),m=e.append(m,e.factory.createUnparsedPrepend(M.data,me!=null?me:e.emptyArray));break;case"internal":if(U){m||(m=[]);break}case"text":m=e.append(m,e.setTextRange(e.factory.createUnparsedTextLike(M.data,M.kind==="internal"),M));break;default:e.Debug.assertNever(M)}}if(!m){var Ae=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(Ae,0,typeof C=="function"?C():C),m=[Ae]}var Oe=e.parseNodeFactory.createUnparsedSource(d!=null?d:e.emptyArray,void 0,m);return e.setEachParent(d,Oe),e.setEachParent(m,Oe),e.setEachParent(T,Oe),Oe.hasNoDefaultLib=N,Oe.helpers=G,Oe.referencedFiles=g||e.emptyArray,Oe.typeReferenceDirectives=p,Oe.libReferenceDirectives=f||e.emptyArray,Oe}function b(ne){for(var U,C,d=0,G=ne.sections;d<G.length;d++){var g=G[d];switch(g.kind){case"internal":case"text":U=e.append(U,e.setTextRange(e.factory.createUnparsedTextLike(g.data,g.kind==="internal"),g));break;case"no-default-lib":case"reference":case"type":case"lib":C=e.append(C,e.setTextRange(e.factory.createUnparsedSyntheticReference(g),g));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(g)}}var p=e.factory.createUnparsedSource(e.emptyArray,C,U!=null?U:e.emptyArray);return e.setEachParent(C,p),e.setEachParent(U,p),p.helpers=e.map(ne.sources&&ne.sources.helpers,function(f){return e.getAllUnscopedEmitHelpers().get(f)}),p}function ie(ne,U,C,d,G,g,p,f,T,m,N){var P=e.parseNodeFactory.createInputFiles();if(e.isString(ne))P.javascriptText=ne,P.javascriptMapPath=C,P.javascriptMapText=d,P.declarationText=U,P.declarationMapPath=G,P.declarationMapText=g,P.javascriptPath=p,P.declarationPath=f,P.buildInfoPath=T,P.buildInfo=m,P.oldFileOfCurrentEmit=N;else{var x=new e.Map,M=function(I){if(I!==void 0){var Ae=x.get(I);return Ae===void 0&&(Ae=ne(I),x.set(I,Ae!==void 0?Ae:!1)),Ae!==!1?Ae:void 0}},me=function(I){var Ae=M(I);return Ae!==void 0?Ae:"/* Input file "+I+` was missing */\r
`},z,K=function(I){if(z===void 0){var Ae=I();z=Ae!==void 0?e.getBuildInfo(Ae):!1}return z||void 0};P.javascriptPath=U,P.javascriptMapPath=C,P.declarationPath=e.Debug.assertDefined(d),P.declarationMapPath=G,P.buildInfoPath=g,Object.defineProperties(P,{javascriptText:{get:function(){return me(U)}},javascriptMapText:{get:function(){return M(C)}},declarationText:{get:function(){return me(e.Debug.assertDefined(d))}},declarationMapText:{get:function(){return M(G)}},buildInfo:{get:function(){return K(function(){return M(g)})}}})}return P}e.createInputFiles=ie;var q;function oe(ne,U,C){return new(q||(q=e.objectAllocator.getSourceMapSourceConstructor()))(ne,U,C)}e.createSourceMapSource=oe;function se(ne,U){if(ne.original=U,U){var C=U.emitNode;C&&(ne.emitNode=w(C,ne.emitNode))}return ne}e.setOriginalNode=se;function w(ne,U){var C=ne.flags,d=ne.leadingComments,G=ne.trailingComments,g=ne.commentRange,p=ne.sourceMapRange,f=ne.tokenSourceMapRanges,T=ne.constantValue,m=ne.helpers,N=ne.startsOnNewLine;if(U||(U={}),d&&(U.leadingComments=e.addRange(d.slice(),U.leadingComments)),G&&(U.trailingComments=e.addRange(G.slice(),U.trailingComments)),C&&(U.flags=C&-268435457),g&&(U.commentRange=g),p&&(U.sourceMapRange=p),f&&(U.tokenSourceMapRanges=R(f,U.tokenSourceMapRanges)),T!==void 0&&(U.constantValue=T),m)for(var P=0,x=m;P<x.length;P++){var M=x[P];U.helpers=e.appendIfUnique(U.helpers,M)}return N!==void 0&&(U.startsOnNewLine=N),U}function R(ne,U){U||(U=[]);for(var C in ne)U[C]=ne[C];return U}})(vn||(vn={}));var vn;(function(e){function o(U){var C;if(U.emitNode)e.Debug.assert(!(U.emitNode.flags&268435456),"Invalid attempt to mutate an immutable node.");else{if(e.isParseTreeNode(U)){if(U.kind===300)return U.emitNode={annotatedNodes:[U]};var d=(C=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(U))))!==null&&C!==void 0?C:e.Debug.fail("Could not determine parsed source file.");o(d).annotatedNodes.push(U)}U.emitNode={}}return U.emitNode}e.getOrCreateEmitNode=o;function ue(U){var C,d,G=(d=(C=e.getSourceFileOfNode(e.getParseTreeNode(U)))===null||C===void 0?void 0:C.emitNode)===null||d===void 0?void 0:d.annotatedNodes;if(G)for(var g=0,p=G;g<p.length;g++){var f=p[g];f.emitNode=void 0}}e.disposeEmitNodes=ue;function $(U){var C=o(U);return C.flags|=1536,C.leadingComments=void 0,C.trailingComments=void 0,U}e.removeAllComments=$;function Y(U,C){return o(U).flags=C,U}e.setEmitFlags=Y;function W(U,C){var d=o(U);return d.flags=d.flags|C,U}e.addEmitFlags=W;function re(U){var C,d;return(d=(C=U.emitNode)===null||C===void 0?void 0:C.sourceMapRange)!==null&&d!==void 0?d:U}e.getSourceMapRange=re;function ye(U,C){return o(U).sourceMapRange=C,U}e.setSourceMapRange=ye;function O(U,C){var d,G;return(G=(d=U.emitNode)===null||d===void 0?void 0:d.tokenSourceMapRanges)===null||G===void 0?void 0:G[C]}e.getTokenSourceMapRange=O;function A(U,C,d){var G,g=o(U),p=(G=g.tokenSourceMapRanges)!==null&&G!==void 0?G:g.tokenSourceMapRanges=[];return p[C]=d,U}e.setTokenSourceMapRange=A;function D(U){var C;return(C=U.emitNode)===null||C===void 0?void 0:C.startsOnNewLine}e.getStartsOnNewLine=D;function de(U,C){return o(U).startsOnNewLine=C,U}e.setStartsOnNewLine=de;function _e(U){var C,d;return(d=(C=U.emitNode)===null||C===void 0?void 0:C.commentRange)!==null&&d!==void 0?d:U}e.getCommentRange=_e;function y(U,C){return o(U).commentRange=C,U}e.setCommentRange=y;function V(U){var C;return(C=U.emitNode)===null||C===void 0?void 0:C.leadingComments}e.getSyntheticLeadingComments=V;function Z(U,C){return o(U).leadingComments=C,U}e.setSyntheticLeadingComments=Z;function E(U,C,d,G){return Z(U,e.append(V(U),{kind:C,pos:-1,end:-1,hasTrailingNewLine:G,text:d}))}e.addSyntheticLeadingComment=E;function H(U){var C;return(C=U.emitNode)===null||C===void 0?void 0:C.trailingComments}e.getSyntheticTrailingComments=H;function L(U,C){return o(U).trailingComments=C,U}e.setSyntheticTrailingComments=L;function ee(U,C,d,G){return L(U,e.append(H(U),{kind:C,pos:-1,end:-1,hasTrailingNewLine:G,text:d}))}e.addSyntheticTrailingComment=ee;function k(U,C){Z(U,V(C)),L(U,H(C));var d=o(C);return d.leadingComments=void 0,d.trailingComments=void 0,U}e.moveSyntheticComments=k;function b(U){var C;return(C=U.emitNode)===null||C===void 0?void 0:C.constantValue}e.getConstantValue=b;function ie(U,C){var d=o(U);return d.constantValue=C,U}e.setConstantValue=ie;function q(U,C){var d=o(U);return d.helpers=e.append(d.helpers,C),U}e.addEmitHelper=q;function oe(U,C){if(e.some(C))for(var d=o(U),G=0,g=C;G<g.length;G++){var p=g[G];d.helpers=e.appendIfUnique(d.helpers,p)}return U}e.addEmitHelpers=oe;function se(U,C){var d,G=(d=U.emitNode)===null||d===void 0?void 0:d.helpers;return G?e.orderedRemoveItem(G,C):!1}e.removeEmitHelper=se;function w(U){var C;return(C=U.emitNode)===null||C===void 0?void 0:C.helpers}e.getEmitHelpers=w;function R(U,C,d){var G=U.emitNode,g=G&&G.helpers;if(e.some(g)){for(var p=o(C),f=0,T=0;T<g.length;T++){var m=g[T];d(m)?(f++,p.helpers=e.appendIfUnique(p.helpers,m)):f>0&&(g[T-f]=m)}f>0&&(g.length-=f)}}e.moveEmitHelpers=R;function ne(U){return o(U).flags|=134217728,U}e.ignoreSourceNewlines=ne})(vn||(vn={}));var vn;(function(e){function o(ye){var O=ye.factory,A=e.memoize(function(){return e.setEmitFlags(O.createTrue(),268435456)}),D=e.memoize(function(){return e.setEmitFlags(O.createFalse(),268435456)});return{getUnscopedHelperName:de,createDecorateHelper:_e,createMetadataHelper:y,createParamHelper:V,createAssignHelper:Z,createAwaitHelper:E,createAsyncGeneratorHelper:H,createAsyncDelegatorHelper:L,createAsyncValuesHelper:ee,createRestHelper:k,createAwaiterHelper:b,createExtendsHelper:ie,createTemplateObjectHelper:q,createSpreadArrayHelper:oe,createValuesHelper:se,createReadHelper:w,createGeneratorHelper:R,createCreateBindingHelper:ne,createImportStarHelper:U,createImportStarCallbackHelper:C,createImportDefaultHelper:d,createExportStarHelper:G,createClassPrivateFieldGetHelper:g,createClassPrivateFieldSetHelper:p};function de(f){return e.setEmitFlags(O.createIdentifier(f),4098)}function _e(f,T,m,N){ye.requestEmitHelper(e.decorateHelper);var P=[];return P.push(O.createArrayLiteralExpression(f,!0)),P.push(T),m&&(P.push(m),N&&P.push(N)),O.createCallExpression(de("__decorate"),void 0,P)}function y(f,T){return ye.requestEmitHelper(e.metadataHelper),O.createCallExpression(de("__metadata"),void 0,[O.createStringLiteral(f),T])}function V(f,T,m){return ye.requestEmitHelper(e.paramHelper),e.setTextRange(O.createCallExpression(de("__param"),void 0,[O.createNumericLiteral(T+""),f]),m)}function Z(f){return ye.getCompilerOptions().target>=2?O.createCallExpression(O.createPropertyAccessExpression(O.createIdentifier("Object"),"assign"),void 0,f):(ye.requestEmitHelper(e.assignHelper),O.createCallExpression(de("__assign"),void 0,f))}function E(f){return ye.requestEmitHelper(e.awaitHelper),O.createCallExpression(de("__await"),void 0,[f])}function H(f,T){return ye.requestEmitHelper(e.awaitHelper),ye.requestEmitHelper(e.asyncGeneratorHelper),(f.emitNode||(f.emitNode={})).flags|=786432,O.createCallExpression(de("__asyncGenerator"),void 0,[T?O.createThis():O.createVoidZero(),O.createIdentifier("arguments"),f])}function L(f){return ye.requestEmitHelper(e.awaitHelper),ye.requestEmitHelper(e.asyncDelegator),O.createCallExpression(de("__asyncDelegator"),void 0,[f])}function ee(f){return ye.requestEmitHelper(e.asyncValues),O.createCallExpression(de("__asyncValues"),void 0,[f])}function k(f,T,m,N){ye.requestEmitHelper(e.restHelper);for(var P=[],x=0,M=0;M<T.length-1;M++){var me=e.getPropertyNameOfBindingOrAssignmentElement(T[M]);if(me)if(e.isComputedPropertyName(me)){e.Debug.assertIsDefined(m,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var z=m[x];x++,P.push(O.createConditionalExpression(O.createTypeCheck(z,"symbol"),void 0,z,void 0,O.createAdd(z,O.createStringLiteral(""))))}else P.push(O.createStringLiteralFromNode(me))}return O.createCallExpression(de("__rest"),void 0,[f,e.setTextRange(O.createArrayLiteralExpression(P),N)])}function b(f,T,m,N){ye.requestEmitHelper(e.awaiterHelper);var P=O.createFunctionExpression(void 0,O.createToken(41),void 0,void 0,[],void 0,N);return(P.emitNode||(P.emitNode={})).flags|=786432,O.createCallExpression(de("__awaiter"),void 0,[f?O.createThis():O.createVoidZero(),T?O.createIdentifier("arguments"):O.createVoidZero(),m?e.createExpressionFromEntityName(O,m):O.createVoidZero(),P])}function ie(f){return ye.requestEmitHelper(e.extendsHelper),O.createCallExpression(de("__extends"),void 0,[f,O.createUniqueName("_super",48)])}function q(f,T){return ye.requestEmitHelper(e.templateObjectHelper),O.createCallExpression(de("__makeTemplateObject"),void 0,[f,T])}function oe(f,T,m){return ye.requestEmitHelper(e.spreadArrayHelper),O.createCallExpression(de("__spreadArray"),void 0,[f,T,m?A():D()])}function se(f){return ye.requestEmitHelper(e.valuesHelper),O.createCallExpression(de("__values"),void 0,[f])}function w(f,T){return ye.requestEmitHelper(e.readHelper),O.createCallExpression(de("__read"),void 0,T!==void 0?[f,O.createNumericLiteral(T+"")]:[f])}function R(f){return ye.requestEmitHelper(e.generatorHelper),O.createCallExpression(de("__generator"),void 0,[O.createThis(),f])}function ne(f,T,m){return ye.requestEmitHelper(e.createBindingHelper),O.createCallExpression(de("__createBinding"),void 0,Vr([O.createIdentifier("exports"),f,T],m?[m]:[],!0))}function U(f){return ye.requestEmitHelper(e.importStarHelper),O.createCallExpression(de("__importStar"),void 0,[f])}function C(){return ye.requestEmitHelper(e.importStarHelper),de("__importStar")}function d(f){return ye.requestEmitHelper(e.importDefaultHelper),O.createCallExpression(de("__importDefault"),void 0,[f])}function G(f,T){return T===void 0&&(T=O.createIdentifier("exports")),ye.requestEmitHelper(e.exportStarHelper),ye.requestEmitHelper(e.createBindingHelper),O.createCallExpression(de("__exportStar"),void 0,[f,T])}function g(f,T,m,N){ye.requestEmitHelper(e.classPrivateFieldGetHelper);var P;return N?P=[f,T,O.createStringLiteral(m),N]:P=[f,T,O.createStringLiteral(m)],O.createCallExpression(de("__classPrivateFieldGet"),void 0,P)}function p(f,T,m,N,P){ye.requestEmitHelper(e.classPrivateFieldSetHelper);var x;return P?x=[f,T,m,O.createStringLiteral(N),P]:x=[f,T,m,O.createStringLiteral(N)],O.createCallExpression(de("__classPrivateFieldSet"),void 0,x)}}e.createEmitHelperFactory=o;function ue(ye,O){return ye===O||ye.priority===O.priority?0:ye.priority===void 0?1:O.priority===void 0?-1:e.compareValues(ye.priority,O.priority)}e.compareEmitHelpers=ue;function $(ye){for(var O=[],A=1;A<arguments.length;A++)O[A-1]=arguments[A];return function(D){for(var de="",_e=0;_e<O.length;_e++)de+=ye[_e],de+=D(O[_e]);return de+=ye[ye.length-1],de}}e.helperString=$,e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:`
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};`},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:`
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};`},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:`
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};`},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:`
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};`},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:`
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:`
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
};`},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:`
var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
};`},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:`
var __asyncValues = (this && this.__asyncValues) || function (o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
};`},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:`
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};`},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:`
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};`},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:`
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();`},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:`
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};`},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:`
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};`},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:`
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};`},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:`
var __values = (this && this.__values) || function(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
};`},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:`
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};`},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:`
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));`},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:`
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});`},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:`
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};`},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};`},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:`
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};`},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:`
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};`},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:`
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
};`};var Y;function W(){return Y||(Y=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.createBindingHelper,e.setModuleDefaultHelper],function(ye){return ye.name}))}e.getAllUnscopedEmitHelpers=W,e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:$(Fg([`
const `," = name => super[name];"],[`
const `," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:$(Fg([`
const `,` = (function (geti, seti) {
const cache = Object.create(null);
return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
})(name => super[name], (name, value) => super[name] = value);`],[`
const `,` = (function (geti, seti) {
const cache = Object.create(null);
return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
})(name => super[name], (name, value) => super[name] = value);`]),"_superIndex")};function re(ye,O){return e.isCallExpression(ye)&&e.isIdentifier(ye.expression)&&(e.getEmitFlags(ye.expression)&4096)!==0&&ye.expression.escapedText===O}e.isCallToHelper=re})(vn||(vn={}));var vn;(function(e){function o(Pn){return Pn.kind===8}e.isNumericLiteral=o;function ue(Pn){return Pn.kind===9}e.isBigIntLiteral=ue;function $(Pn){return Pn.kind===10}e.isStringLiteral=$;function Y(Pn){return Pn.kind===11}e.isJsxText=Y;function W(Pn){return Pn.kind===13}e.isRegularExpressionLiteral=W;function re(Pn){return Pn.kind===14}e.isNoSubstitutionTemplateLiteral=re;function ye(Pn){return Pn.kind===15}e.isTemplateHead=ye;function O(Pn){return Pn.kind===16}e.isTemplateMiddle=O;function A(Pn){return Pn.kind===17}e.isTemplateTail=A;function D(Pn){return Pn.kind===25}e.isDotDotDotToken=D;function de(Pn){return Pn.kind===27}e.isCommaToken=de;function _e(Pn){return Pn.kind===39}e.isPlusToken=_e;function y(Pn){return Pn.kind===40}e.isMinusToken=y;function V(Pn){return Pn.kind===41}e.isAsteriskToken=V;function Z(Pn){return Pn.kind===53}e.isExclamationToken=Z;function E(Pn){return Pn.kind===57}e.isQuestionToken=E;function H(Pn){return Pn.kind===58}e.isColonToken=H;function L(Pn){return Pn.kind===28}e.isQuestionDotToken=L;function ee(Pn){return Pn.kind===38}e.isEqualsGreaterThanToken=ee;function k(Pn){return Pn.kind===79}e.isIdentifier=k;function b(Pn){return Pn.kind===80}e.isPrivateIdentifier=b;function ie(Pn){return Pn.kind===93}e.isExportModifier=ie;function q(Pn){return Pn.kind===130}e.isAsyncModifier=q;function oe(Pn){return Pn.kind===128}e.isAssertsKeyword=oe;function se(Pn){return Pn.kind===131}e.isAwaitKeyword=se;function w(Pn){return Pn.kind===143}e.isReadonlyKeyword=w;function R(Pn){return Pn.kind===124}e.isStaticModifier=R;function ne(Pn){return Pn.kind===126}e.isAbstractModifier=ne;function U(Pn){return Pn.kind===106}e.isSuperKeyword=U;function C(Pn){return Pn.kind===100}e.isImportKeyword=C;function d(Pn){return Pn.kind===159}e.isQualifiedName=d;function G(Pn){return Pn.kind===160}e.isComputedPropertyName=G;function g(Pn){return Pn.kind===161}e.isTypeParameterDeclaration=g;function p(Pn){return Pn.kind===162}e.isParameter=p;function f(Pn){return Pn.kind===163}e.isDecorator=f;function T(Pn){return Pn.kind===164}e.isPropertySignature=T;function m(Pn){return Pn.kind===165}e.isPropertyDeclaration=m;function N(Pn){return Pn.kind===166}e.isMethodSignature=N;function P(Pn){return Pn.kind===167}e.isMethodDeclaration=P;function x(Pn){return Pn.kind===168}e.isClassStaticBlockDeclaration=x;function M(Pn){return Pn.kind===169}e.isConstructorDeclaration=M;function me(Pn){return Pn.kind===170}e.isGetAccessorDeclaration=me;function z(Pn){return Pn.kind===171}e.isSetAccessorDeclaration=z;function K(Pn){return Pn.kind===172}e.isCallSignatureDeclaration=K;function I(Pn){return Pn.kind===173}e.isConstructSignatureDeclaration=I;function Ae(Pn){return Pn.kind===174}e.isIndexSignatureDeclaration=Ae;function Oe(Pn){return Pn.kind===175}e.isTypePredicateNode=Oe;function te(Pn){return Pn.kind===176}e.isTypeReferenceNode=te;function Se(Pn){return Pn.kind===177}e.isFunctionTypeNode=Se;function be(Pn){return Pn.kind===178}e.isConstructorTypeNode=be;function Ce(Pn){return Pn.kind===179}e.isTypeQueryNode=Ce;function Be(Pn){return Pn.kind===180}e.isTypeLiteralNode=Be;function De(Pn){return Pn.kind===181}e.isArrayTypeNode=De;function en(Pn){return Pn.kind===182}e.isTupleTypeNode=en;function fe(Pn){return Pn.kind===195}e.isNamedTupleMember=fe;function Ne(Pn){return Pn.kind===183}e.isOptionalTypeNode=Ne;function qe(Pn){return Pn.kind===184}e.isRestTypeNode=qe;function pe(Pn){return Pn.kind===185}e.isUnionTypeNode=pe;function we(Pn){return Pn.kind===186}e.isIntersectionTypeNode=we;function pn(Pn){return Pn.kind===187}e.isConditionalTypeNode=pn;function Qe(Pn){return Pn.kind===188}e.isInferTypeNode=Qe;function Re(Pn){return Pn.kind===189}e.isParenthesizedTypeNode=Re;function He(Pn){return Pn.kind===190}e.isThisTypeNode=He;function Ln(Pn){return Pn.kind===191}e.isTypeOperatorNode=Ln;function Un(Pn){return Pn.kind===192}e.isIndexedAccessTypeNode=Un;function fn(Pn){return Pn.kind===193}e.isMappedTypeNode=fn;function En(Pn){return Pn.kind===194}e.isLiteralTypeNode=En;function i(Pn){return Pn.kind===198}e.isImportTypeNode=i;function In(Pn){return Pn.kind===197}e.isTemplateLiteralTypeSpan=In;function X(Pn){return Pn.kind===196}e.isTemplateLiteralTypeNode=X;function rn(Pn){return Pn.kind===199}e.isObjectBindingPattern=rn;function $n(Pn){return Pn.kind===200}e.isArrayBindingPattern=$n;function Vn(Pn){return Pn.kind===201}e.isBindingElement=Vn;function le(Pn){return Pn.kind===202}e.isArrayLiteralExpression=le;function Pe(Pn){return Pn.kind===203}e.isObjectLiteralExpression=Pe;function xe(Pn){return Pn.kind===204}e.isPropertyAccessExpression=xe;function Ze(Pn){return Pn.kind===205}e.isElementAccessExpression=Ze;function hn(Pn){return Pn.kind===206}e.isCallExpression=hn;function Le(Pn){return Pn.kind===207}e.isNewExpression=Le;function $e(Pn){return Pn.kind===208}e.isTaggedTemplateExpression=$e;function An(Pn){return Pn.kind===209}e.isTypeAssertionExpression=An;function Ue(Pn){return Pn.kind===210}e.isParenthesizedExpression=Ue;function gn(Pn){return Pn.kind===211}e.isFunctionExpression=gn;function Wn(Pn){return Pn.kind===212}e.isArrowFunction=Wn;function ze(Pn){return Pn.kind===213}e.isDeleteExpression=ze;function Tn(Pn){return Pn.kind===214}e.isTypeOfExpression=Tn;function On(Pn){return Pn.kind===215}e.isVoidExpression=On;function ur(Pn){return Pn.kind===216}e.isAwaitExpression=ur;function hr(Pn){return Pn.kind===217}e.isPrefixUnaryExpression=hr;function wr(Pn){return Pn.kind===218}e.isPostfixUnaryExpression=wr;function Qr(Pn){return Pn.kind===219}e.isBinaryExpression=Qr;function Ke(Pn){return Pn.kind===220}e.isConditionalExpression=Ke;function jn(Pn){return Pn.kind===221}e.isTemplateExpression=jn;function Zn(Pn){return Pn.kind===222}e.isYieldExpression=Zn;function Me(Pn){return Pn.kind===223}e.isSpreadElement=Me;function Mn(Pn){return Pn.kind===224}e.isClassExpression=Mn;function ar(Pn){return Pn.kind===225}e.isOmittedExpression=ar;function Xn(Pn){return Pn.kind===226}e.isExpressionWithTypeArguments=Xn;function yr(Pn){return Pn.kind===227}e.isAsExpression=yr;function cr(Pn){return Pn.kind===228}e.isNonNullExpression=cr;function Fe(Pn){return Pn.kind===229}e.isMetaProperty=Fe;function Bn(Pn){return Pn.kind===230}e.isSyntheticExpression=Bn;function J(Pn){return Pn.kind===345}e.isPartiallyEmittedExpression=J;function Cn(Pn){return Pn.kind===346}e.isCommaListExpression=Cn;function Gn(Pn){return Pn.kind===231}e.isTemplateSpan=Gn;function cn(Pn){return Pn.kind===232}e.isSemicolonClassElement=cn;function Rn(Pn){return Pn.kind===233}e.isBlock=Rn;function Ye(Pn){return Pn.kind===235}e.isVariableStatement=Ye;function xn(Pn){return Pn.kind===234}e.isEmptyStatement=xn;function an(Pn){return Pn.kind===236}e.isExpressionStatement=an;function zn(Pn){return Pn.kind===237}e.isIfStatement=zn;function ir(Pn){return Pn.kind===238}e.isDoStatement=ir;function gr(Pn){return Pn.kind===239}e.isWhileStatement=gr;function Dr(Pn){return Pn.kind===240}e.isForStatement=Dr;function qr(Pn){return Pn.kind===241}e.isForInStatement=qr;function ft(Pn){return Pn.kind===242}e.isForOfStatement=ft;function xt(Pn){return Pn.kind===243}e.isContinueStatement=xt;function Kr(Pn){return Pn.kind===244}e.isBreakStatement=Kr;function dt(Pn){return Pn.kind===245}e.isReturnStatement=dt;function Ur(Pn){return Pn.kind===246}e.isWithStatement=Ur;function qt(Pn){return Pn.kind===247}e.isSwitchStatement=qt;function Cr(Pn){return Pn.kind===248}e.isLabeledStatement=Cr;function Jt(Pn){return Pn.kind===249}e.isThrowStatement=Jt;function Ot(Pn){return Pn.kind===250}e.isTryStatement=Ot;function ri(Pn){return Pn.kind===251}e.isDebuggerStatement=ri;function Ya(Pn){return Pn.kind===252}e.isVariableDeclaration=Ya;function eo(Pn){return Pn.kind===253}e.isVariableDeclarationList=eo;function za(Pn){return Pn.kind===254}e.isFunctionDeclaration=za;function ua(Pn){return Pn.kind===255}e.isClassDeclaration=ua;function Ar(Pn){return Pn.kind===256}e.isInterfaceDeclaration=Ar;function at(Pn){return Pn.kind===257}e.isTypeAliasDeclaration=at;function Hr(Pn){return Pn.kind===258}e.isEnumDeclaration=Hr;function Wt(Pn){return Pn.kind===259}e.isModuleDeclaration=Wt;function Zt(Pn){return Pn.kind===260}e.isModuleBlock=Zt;function Rr(Pn){return Pn.kind===261}e.isCaseBlock=Rr;function Lr(Pn){return Pn.kind===262}e.isNamespaceExportDeclaration=Lr;function Xr(Pn){return Pn.kind===263}e.isImportEqualsDeclaration=Xr;function nt(Pn){return Pn.kind===264}e.isImportDeclaration=nt;function vt(Pn){return Pn.kind===265}e.isImportClause=vt;function or(Pn){return Pn.kind===266}e.isNamespaceImport=or;function $t(Pn){return Pn.kind===272}e.isNamespaceExport=$t;function Va(Pn){return Pn.kind===267}e.isNamedImports=Va;function li(Pn){return Pn.kind===268}e.isImportSpecifier=li;function zi(Pn){return Pn.kind===269}e.isExportAssignment=zi;function Ma(Pn){return Pn.kind===270}e.isExportDeclaration=Ma;function di(Pn){return Pn.kind===271}e.isNamedExports=di;function Yi(Pn){return Pn.kind===273}e.isExportSpecifier=Yi;function uo(Pn){return Pn.kind===274}e.isMissingDeclaration=uo;function bi(Pn){return Pn.kind===344}e.isNotEmittedStatement=bi;function Mi(Pn){return Pn.kind===349}e.isSyntheticReference=Mi;function Go(Pn){return Pn.kind===347}e.isMergeDeclarationMarker=Go;function io(Pn){return Pn.kind===348}e.isEndOfDeclarationMarker=io;function wi(Pn){return Pn.kind===275}e.isExternalModuleReference=wi;function Ho(Pn){return Pn.kind===276}e.isJsxElement=Ho;function qi(Pn){return Pn.kind===277}e.isJsxSelfClosingElement=qi;function Qi(Pn){return Pn.kind===278}e.isJsxOpeningElement=Qi;function as(Pn){return Pn.kind===279}e.isJsxClosingElement=as;function gs(Pn){return Pn.kind===280}e.isJsxFragment=gs;function Da(Pn){return Pn.kind===281}e.isJsxOpeningFragment=Da;function $a(Pn){return Pn.kind===282}e.isJsxClosingFragment=$a;function Ni(Pn){return Pn.kind===283}e.isJsxAttribute=Ni;function vo(Pn){return Pn.kind===284}e.isJsxAttributes=vo;function Io(Pn){return Pn.kind===285}e.isJsxSpreadAttribute=Io;function Bo(Pn){return Pn.kind===286}e.isJsxExpression=Bo;function Uo(Pn){return Pn.kind===287}e.isCaseClause=Uo;function cs(Pn){return Pn.kind===288}e.isDefaultClause=cs;function us(Pn){return Pn.kind===289}e.isHeritageClause=us;function Jo(Pn){return Pn.kind===290}e.isCatchClause=Jo;function is(Pn){return Pn.kind===291}e.isPropertyAssignment=is;function mn(Pn){return Pn.kind===292}e.isShorthandPropertyAssignment=mn;function _r(Pn){return Pn.kind===293}e.isSpreadAssignment=_r;function $r(Pn){return Pn.kind===294}e.isEnumMember=$r;function ia(Pn){return Pn.kind===296}e.isUnparsedPrepend=ia;function ti(Pn){return Pn.kind===300}e.isSourceFile=ti;function va(Pn){return Pn.kind===301}e.isBundle=va;function Ve(Pn){return Pn.kind===302}e.isUnparsedSource=Ve;function ce(Pn){return Pn.kind===304}e.isJSDocTypeExpression=ce;function dn(Pn){return Pn.kind===305}e.isJSDocNameReference=dn;function j(Pn){return Pn.kind===306}e.isJSDocMemberName=j;function Ie(Pn){return Pn.kind===319}e.isJSDocLink=Ie;function We(Pn){return Pn.kind===320}e.isJSDocLinkCode=We;function sn(Pn){return Pn.kind===321}e.isJSDocLinkPlain=sn;function Hn(Pn){return Pn.kind===307}e.isJSDocAllType=Hn;function vr(Pn){return Pn.kind===308}e.isJSDocUnknownType=vr;function Sr(Pn){return Pn.kind===309}e.isJSDocNullableType=Sr;function ot(Pn){return Pn.kind===310}e.isJSDocNonNullableType=ot;function Et(Pn){return Pn.kind===311}e.isJSDocOptionalType=Et;function ra(Pn){return Pn.kind===312}e.isJSDocFunctionType=ra;function Na(Pn){return Pn.kind===313}e.isJSDocVariadicType=Na;function ei(Pn){return Pn.kind===314}e.isJSDocNamepathType=ei;function Li(Pn){return Pn.kind===315}e.isJSDoc=Li;function Zi(Pn){return Pn.kind===317}e.isJSDocTypeLiteral=Zi;function ho(Pn){return Pn.kind===318}e.isJSDocSignature=ho;function vs(Pn){return Pn.kind===323}e.isJSDocAugmentsTag=vs;function Ao(Pn){return Pn.kind===325}e.isJSDocAuthorTag=Ao;function oo(Pn){return Pn.kind===327}e.isJSDocClassTag=oo;function Zo(Pn){return Pn.kind===333}e.isJSDocCallbackTag=Zo;function cl(Pn){return Pn.kind===328}e.isJSDocPublicTag=cl;function ws(Pn){return Pn.kind===329}e.isJSDocPrivateTag=ws;function vl(Pn){return Pn.kind===330}e.isJSDocProtectedTag=vl;function ul(Pn){return Pn.kind===331}e.isJSDocReadonlyTag=ul;function ps(Pn){return Pn.kind===332}e.isJSDocOverrideTag=ps;function jl(Pn){return Pn.kind===326}e.isJSDocDeprecatedTag=jl;function Hl(Pn){return Pn.kind===341}e.isJSDocSeeTag=Hl;function Hs(Pn){return Pn.kind===334}e.isJSDocEnumTag=Hs;function Fs(Pn){return Pn.kind===335}e.isJSDocParameterTag=Fs;function ge(Pn){return Pn.kind===336}e.isJSDocReturnTag=ge;function Kn(Pn){return Pn.kind===337}e.isJSDocThisTag=Kn;function Te(Pn){return Pn.kind===338}e.isJSDocTypeTag=Te;function Fn(Pn){return Pn.kind===339}e.isJSDocTemplateTag=Fn;function et(Pn){return Pn.kind===340}e.isJSDocTypedefTag=et;function Xt(Pn){return Pn.kind===322}e.isJSDocUnknownTag=Xt;function ca(Pn){return Pn.kind===342}e.isJSDocPropertyTag=ca;function ha(Pn){return Pn.kind===324}e.isJSDocImplementsTag=ha;function To(Pn){return Pn.kind===343}e.isSyntaxList=To})(vn||(vn={}));var vn;(function(e){function o(X){return X.createExportDeclaration(void 0,void 0,!1,X.createNamedExports([]),void 0)}e.createEmptyExports=o;function ue(X,rn,$n,Vn){if(e.isComputedPropertyName($n))return e.setTextRange(X.createElementAccessExpression(rn,$n.expression),Vn);var le=e.setTextRange(e.isMemberName($n)?X.createPropertyAccessExpression(rn,$n):X.createElementAccessExpression(rn,$n),$n);return e.getOrCreateEmitNode(le).flags|=64,le}e.createMemberAccessForPropertyName=ue;function $(X,rn){var $n=e.parseNodeFactory.createIdentifier(X||"React");return e.setParent($n,e.getParseTreeNode(rn)),$n}function Y(X,rn,$n){if(e.isQualifiedName(rn)){var Vn=Y(X,rn.left,$n),le=X.createIdentifier(e.idText(rn.right));return le.escapedText=rn.right.escapedText,X.createPropertyAccessExpression(Vn,le)}else return $(e.idText(rn),$n)}function W(X,rn,$n,Vn){return rn?Y(X,rn,Vn):X.createPropertyAccessExpression($($n,Vn),"createElement")}e.createJsxFactoryExpression=W;function re(X,rn,$n,Vn){return rn?Y(X,rn,Vn):X.createPropertyAccessExpression($($n,Vn),"Fragment")}function ye(X,rn,$n,Vn,le,Pe){var xe=[$n];if(Vn&&xe.push(Vn),le&&le.length>0)if(Vn||xe.push(X.createNull()),le.length>1)for(var Ze=0,hn=le;Ze<hn.length;Ze++){var Le=hn[Ze];U(Le),xe.push(Le)}else xe.push(le[0]);return e.setTextRange(X.createCallExpression(rn,void 0,xe),Pe)}e.createExpressionForJsxElement=ye;function O(X,rn,$n,Vn,le,Pe,xe){var Ze=re(X,$n,Vn,Pe),hn=[Ze,X.createNull()];if(le&&le.length>0)if(le.length>1)for(var Le=0,$e=le;Le<$e.length;Le++){var An=$e[Le];U(An),hn.push(An)}else hn.push(le[0]);return e.setTextRange(X.createCallExpression(W(X,rn,Vn,Pe),void 0,hn),xe)}e.createExpressionForJsxFragment=O;function A(X,rn,$n){if(e.isVariableDeclarationList(rn)){var Vn=e.first(rn.declarations),le=X.updateVariableDeclaration(Vn,Vn.name,void 0,void 0,$n);return e.setTextRange(X.createVariableStatement(void 0,X.updateVariableDeclarationList(rn,[le])),rn)}else{var Pe=e.setTextRange(X.createAssignment(rn,$n),rn);return e.setTextRange(X.createExpressionStatement(Pe),rn)}}e.createForOfBindingStatement=A;function D(X,rn,$n){return e.isBlock(rn)?X.updateBlock(rn,e.setTextRange(X.createNodeArray(Vr([$n],rn.statements,!0)),rn.statements)):X.createBlock(X.createNodeArray([rn,$n]),!0)}e.insertLeadingStatement=D;function de(X,rn){if(e.isQualifiedName(rn)){var $n=de(X,rn.left),Vn=e.setParent(e.setTextRange(X.cloneNode(rn.right),rn.right),rn.right.parent);return e.setTextRange(X.createPropertyAccessExpression($n,Vn),rn)}else return e.setParent(e.setTextRange(X.cloneNode(rn),rn),rn.parent)}e.createExpressionFromEntityName=de;function _e(X,rn){return e.isIdentifier(rn)?X.createStringLiteralFromNode(rn):e.isComputedPropertyName(rn)?e.setParent(e.setTextRange(X.cloneNode(rn.expression),rn.expression),rn.expression.parent):e.setParent(e.setTextRange(X.cloneNode(rn),rn),rn.parent)}e.createExpressionForPropertyName=_e;function y(X,rn,$n,Vn,le){var Pe=e.getAllAccessorDeclarations(rn,$n),xe=Pe.firstAccessor,Ze=Pe.getAccessor,hn=Pe.setAccessor;if($n===xe)return e.setTextRange(X.createObjectDefinePropertyCall(Vn,_e(X,$n.name),X.createPropertyDescriptor({enumerable:X.createFalse(),configurable:!0,get:Ze&&e.setTextRange(e.setOriginalNode(X.createFunctionExpression(Ze.modifiers,void 0,void 0,void 0,Ze.parameters,void 0,Ze.body),Ze),Ze),set:hn&&e.setTextRange(e.setOriginalNode(X.createFunctionExpression(hn.modifiers,void 0,void 0,void 0,hn.parameters,void 0,hn.body),hn),hn)},!le)),xe)}function V(X,rn,$n){return e.setOriginalNode(e.setTextRange(X.createAssignment(ue(X,$n,rn.name,rn.name),rn.initializer),rn),rn)}function Z(X,rn,$n){return e.setOriginalNode(e.setTextRange(X.createAssignment(ue(X,$n,rn.name,rn.name),X.cloneNode(rn.name)),rn),rn)}function E(X,rn,$n){return e.setOriginalNode(e.setTextRange(X.createAssignment(ue(X,$n,rn.name,rn.name),e.setOriginalNode(e.setTextRange(X.createFunctionExpression(rn.modifiers,rn.asteriskToken,void 0,void 0,rn.parameters,void 0,rn.body),rn),rn)),rn),rn)}function H(X,rn,$n,Vn){switch($n.name&&e.isPrivateIdentifier($n.name)&&e.Debug.failBadSyntaxKind($n.name,"Private identifiers are not allowed in object literals."),$n.kind){case 170:case 171:return y(X,rn.properties,$n,Vn,!!rn.multiLine);case 291:return V(X,$n,Vn);case 292:return Z(X,$n,Vn);case 167:return E(X,$n,Vn)}}e.createExpressionForObjectLiteralElementLike=H;function L(X,rn,$n,Vn,le){var Pe=rn.operator;e.Debug.assert(Pe===45||Pe===46,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");var xe=X.createTempVariable(Vn);$n=X.createAssignment(xe,$n),e.setTextRange($n,rn.operand);var Ze=e.isPrefixUnaryExpression(rn)?X.createPrefixUnaryExpression(Pe,xe):X.createPostfixUnaryExpression(xe,Pe);return e.setTextRange(Ze,rn),le&&(Ze=X.createAssignment(le,Ze),e.setTextRange(Ze,rn)),$n=X.createComma($n,Ze),e.setTextRange($n,rn),e.isPostfixUnaryExpression(rn)&&($n=X.createComma($n,xe),e.setTextRange($n,rn)),$n}e.expandPreOrPostfixIncrementOrDecrementExpression=L;function ee(X){return(e.getEmitFlags(X)&32768)!==0}e.isInternalName=ee;function k(X){return(e.getEmitFlags(X)&16384)!==0}e.isLocalName=k;function b(X){return(e.getEmitFlags(X)&8192)!==0}e.isExportName=b;function ie(X){return e.isStringLiteral(X.expression)&&X.expression.text==="use strict"}function q(X){for(var rn=0,$n=X;rn<$n.length;rn++){var Vn=$n[rn];if(e.isPrologueDirective(Vn)){if(ie(Vn))return Vn}else break}}e.findUseStrictPrologue=q;function oe(X){var rn=e.firstOrUndefined(X);return rn!==void 0&&e.isPrologueDirective(rn)&&ie(rn)}e.startsWithUseStrict=oe;function se(X){return X.kind===219&&X.operatorToken.kind===27||X.kind===346}e.isCommaSequence=se;function w(X,rn){switch(rn===void 0&&(rn=15),X.kind){case 210:return(rn&1)!==0;case 209:case 227:return(rn&2)!==0;case 228:return(rn&4)!==0;case 345:return(rn&8)!==0}return!1}e.isOuterExpression=w;function R(X,rn){for(rn===void 0&&(rn=15);w(X,rn);)X=X.expression;return X}e.skipOuterExpressions=R;function ne(X){return R(X,6)}e.skipAssertions=ne;function U(X){return e.setStartsOnNewLine(X,!0)}e.startOnNewLine=U;function C(X){var rn=e.getOriginalNode(X,e.isSourceFile),$n=rn&&rn.emitNode;return $n&&$n.externalHelpersModuleName}e.getExternalHelpersModuleName=C;function d(X){var rn=e.getOriginalNode(X,e.isSourceFile),$n=rn&&rn.emitNode;return!!$n&&(!!$n.externalHelpersModuleName||!!$n.externalHelpers)}e.hasRecordedExternalHelpers=d;function G(X,rn,$n,Vn,le,Pe,xe){if(Vn.importHelpers&&e.isEffectiveExternalModule($n,Vn)){var Ze=void 0,hn=e.getEmitModuleKind(Vn);if(hn>=e.ModuleKind.ES2015&&hn<=e.ModuleKind.ESNext){var Le=e.getEmitHelpers($n);if(Le){for(var $e=[],An=0,Ue=Le;An<Ue.length;An++){var gn=Ue[An];if(!gn.scoped){var Wn=gn.importName;Wn&&e.pushIfUnique($e,Wn)}}if(e.some($e)){$e.sort(e.compareStringsCaseSensitive),Ze=X.createNamedImports(e.map($e,function(hr){return e.isFileLevelUniqueName($n,hr)?X.createImportSpecifier(void 0,X.createIdentifier(hr)):X.createImportSpecifier(X.createIdentifier(hr),rn.getUnscopedHelperName(hr))}));var ze=e.getOriginalNode($n,e.isSourceFile),Tn=e.getOrCreateEmitNode(ze);Tn.externalHelpers=!0}}}else{var On=g(X,$n,Vn,le,Pe||xe);On&&(Ze=X.createNamespaceImport(On))}if(Ze){var ur=X.createImportDeclaration(void 0,void 0,X.createImportClause(!1,void 0,Ze),X.createStringLiteral(e.externalHelpersModuleNameText));return e.addEmitFlags(ur,67108864),ur}}}e.createExternalHelpersImportDeclarationIfNeeded=G;function g(X,rn,$n,Vn,le){if($n.importHelpers&&e.isEffectiveExternalModule(rn,$n)){var Pe=C(rn);if(Pe)return Pe;var xe=e.getEmitModuleKind($n),Ze=(Vn||$n.esModuleInterop&&le)&&xe!==e.ModuleKind.System&&xe<e.ModuleKind.ES2015;if(!Ze){var hn=e.getEmitHelpers(rn);if(hn)for(var Le=0,$e=hn;Le<$e.length;Le++){var An=$e[Le];if(!An.scoped){Ze=!0;break}}}if(Ze){var Ue=e.getOriginalNode(rn,e.isSourceFile),gn=e.getOrCreateEmitNode(Ue);return gn.externalHelpersModuleName||(gn.externalHelpersModuleName=X.createUniqueName(e.externalHelpersModuleNameText))}}}e.getOrCreateExternalHelpersModuleNameIfNeeded=g;function p(X,rn,$n){var Vn=e.getNamespaceDeclarationNode(rn);if(Vn&&!e.isDefaultImport(rn)&&!e.isExportNamespaceAsDefaultDeclaration(rn)){var le=Vn.name;return e.isGeneratedIdentifier(le)?le:X.createIdentifier(e.getSourceTextOfNodeFromSourceFile($n,le)||e.idText(le))}if(rn.kind===264&&rn.importClause||rn.kind===270&&rn.moduleSpecifier)return X.getGeneratedNameForNode(rn)}e.getLocalNameForExternalImport=p;function f(X,rn,$n,Vn,le,Pe){var xe=e.getExternalModuleName(rn);if(xe&&e.isStringLiteral(xe))return N(rn,Vn,X,le,Pe)||T(X,xe,$n)||X.cloneNode(xe)}e.getExternalModuleNameLiteral=f;function T(X,rn,$n){var Vn=$n.renamedDependencies&&$n.renamedDependencies.get(rn.text);return Vn?X.createStringLiteral(Vn):void 0}function m(X,rn,$n,Vn){if(rn){if(rn.moduleName)return X.createStringLiteral(rn.moduleName);if(!rn.isDeclarationFile&&e.outFile(Vn))return X.createStringLiteral(e.getExternalModuleNameFromPath($n,rn.fileName))}}e.tryGetModuleNameFromFile=m;function N(X,rn,$n,Vn,le){return m($n,Vn.getExternalModuleFileFromDeclaration(X),rn,le)}function P(X){if(e.isDeclarationBindingElement(X))return X.initializer;if(e.isPropertyAssignment(X)){var rn=X.initializer;return e.isAssignmentExpression(rn,!0)?rn.right:void 0}if(e.isShorthandPropertyAssignment(X))return X.objectAssignmentInitializer;if(e.isAssignmentExpression(X,!0))return X.right;if(e.isSpreadElement(X))return P(X.expression)}e.getInitializerOfBindingOrAssignmentElement=P;function x(X){if(e.isDeclarationBindingElement(X))return X.name;if(e.isObjectLiteralElementLike(X)){switch(X.kind){case 291:return x(X.initializer);case 292:return X.name;case 293:return x(X.expression)}return}return e.isAssignmentExpression(X,!0)?x(X.left):e.isSpreadElement(X)?x(X.expression):X}e.getTargetOfBindingOrAssignmentElement=x;function M(X){switch(X.kind){case 162:case 201:return X.dotDotDotToken;case 223:case 293:return X}}e.getRestIndicatorOfBindingOrAssignmentElement=M;function me(X){var rn=z(X);return e.Debug.assert(!!rn||e.isSpreadAssignment(X),"Invalid property name for binding element."),rn}e.getPropertyNameOfBindingOrAssignmentElement=me;function z(X){switch(X.kind){case 201:if(X.propertyName){var rn=X.propertyName;return e.isPrivateIdentifier(rn)?e.Debug.failBadSyntaxKind(rn):e.isComputedPropertyName(rn)&&K(rn.expression)?rn.expression:rn}break;case 291:if(X.name){var rn=X.name;return e.isPrivateIdentifier(rn)?e.Debug.failBadSyntaxKind(rn):e.isComputedPropertyName(rn)&&K(rn.expression)?rn.expression:rn}break;case 293:return X.name&&e.isPrivateIdentifier(X.name)?e.Debug.failBadSyntaxKind(X.name):X.name}var $n=x(X);if($n&&e.isPropertyName($n))return $n}e.tryGetPropertyNameOfBindingOrAssignmentElement=z;function K(X){var rn=X.kind;return rn===10||rn===8}function I(X){switch(X.kind){case 199:case 200:case 202:return X.elements;case 203:return X.properties}}e.getElementsOfBindingOrAssignmentPattern=I;function Ae(X){if(X)for(var rn=X;;){if(e.isIdentifier(rn)||!rn.body)return e.isIdentifier(rn)?rn:rn.name;rn=rn.body}}e.getJSDocTypeAliasName=Ae;function Oe(X){var rn=X.kind;return rn===162||rn===164||rn===165||rn===166||rn===167||rn===169||rn===170||rn===171||rn===174||rn===211||rn===212||rn===224||rn===235||rn===254||rn===255||rn===256||rn===257||rn===258||rn===259||rn===263||rn===264||rn===269||rn===270}e.canHaveModifiers=Oe,e.isTypeNodeOrTypeParameterDeclaration=e.or(e.isTypeNode,e.isTypeParameterDeclaration),e.isQuestionOrExclamationToken=e.or(e.isQuestionToken,e.isExclamationToken),e.isIdentifierOrThisTypeNode=e.or(e.isIdentifier,e.isThisTypeNode),e.isReadonlyKeywordOrPlusOrMinusToken=e.or(e.isReadonlyKeyword,e.isPlusToken,e.isMinusToken),e.isQuestionOrPlusOrMinusToken=e.or(e.isQuestionToken,e.isPlusToken,e.isMinusToken),e.isModuleName=e.or(e.isIdentifier,e.isStringLiteral);function te(X){var rn=X.kind;return rn===104||rn===110||rn===95||e.isLiteralExpression(X)||e.isPrefixUnaryExpression(X)}e.isLiteralTypeLikeExpression=te;function Se(X){return X===42}function be(X){return X===41||X===43||X===44}function Ce(X){return Se(X)||be(X)}function Be(X){return X===39||X===40}function De(X){return Be(X)||Ce(X)}function en(X){return X===47||X===48||X===49}function fe(X){return en(X)||De(X)}function Ne(X){return X===29||X===32||X===31||X===33||X===102||X===101}function qe(X){return Ne(X)||fe(X)}function pe(X){return X===34||X===36||X===35||X===37}function we(X){return pe(X)||qe(X)}function pn(X){return X===50||X===51||X===52}function Qe(X){return pn(X)||we(X)}function Re(X){return X===55||X===56}function He(X){return Re(X)||Qe(X)}function Ln(X){return X===60||He(X)||e.isAssignmentOperator(X)}function Un(X){return Ln(X)||X===27}function fn(X){return Un(X.kind)}e.isBinaryOperatorToken=fn;var En;(function(X){function rn($e,An,Ue,gn,Wn,ze,Tn){var On=An>0?Wn[An-1]:void 0;return e.Debug.assertEqual(Ue[An],rn),Wn[An]=$e.onEnter(gn[An],On,Tn),Ue[An]=Ze($e,rn),An}X.enter=rn;function $n($e,An,Ue,gn,Wn,ze,Tn){e.Debug.assertEqual(Ue[An],$n),e.Debug.assertIsDefined($e.onLeft),Ue[An]=Ze($e,$n);var On=$e.onLeft(gn[An].left,Wn[An],gn[An]);return On?(Le(An,gn,On),hn(An,Ue,gn,Wn,On)):An}X.left=$n;function Vn($e,An,Ue,gn,Wn,ze,Tn){return e.Debug.assertEqual(Ue[An],Vn),e.Debug.assertIsDefined($e.onOperator),Ue[An]=Ze($e,Vn),$e.onOperator(gn[An].operatorToken,Wn[An],gn[An]),An}X.operator=Vn;function le($e,An,Ue,gn,Wn,ze,Tn){e.Debug.assertEqual(Ue[An],le),e.Debug.assertIsDefined($e.onRight),Ue[An]=Ze($e,le);var On=$e.onRight(gn[An].right,Wn[An],gn[An]);return On?(Le(An,gn,On),hn(An,Ue,gn,Wn,On)):An}X.right=le;function Pe($e,An,Ue,gn,Wn,ze,Tn){e.Debug.assertEqual(Ue[An],Pe),Ue[An]=Ze($e,Pe);var On=$e.onExit(gn[An],Wn[An]);if(An>0){if(An--,$e.foldState){var ur=Ue[An]===Pe?"right":"left";Wn[An]=$e.foldState(Wn[An],On,ur)}}else ze.value=On;return An}X.exit=Pe;function xe($e,An,Ue,gn,Wn,ze,Tn){return e.Debug.assertEqual(Ue[An],xe),An}X.done=xe;function Ze($e,An){switch(An){case rn:if($e.onLeft)return $n;case $n:if($e.onOperator)return Vn;case Vn:if($e.onRight)return le;case le:return Pe;case Pe:return xe;case xe:return xe;default:e.Debug.fail("Invalid state")}}X.nextState=Ze;function hn($e,An,Ue,gn,Wn){return $e++,An[$e]=rn,Ue[$e]=Wn,gn[$e]=void 0,$e}function Le($e,An,Ue){if(e.Debug.shouldAssert(2))for(;$e>=0;)e.Debug.assert(An[$e]!==Ue,"Circular traversal detected."),$e--}})(En||(En={}));var i=function(){function X(rn,$n,Vn,le,Pe,xe){this.onEnter=rn,this.onLeft=$n,this.onOperator=Vn,this.onRight=le,this.onExit=Pe,this.foldState=xe}return X}();function In(X,rn,$n,Vn,le,Pe){var xe=new i(X,rn,$n,Vn,le,Pe);return Ze;function Ze(hn,Le){for(var $e={value:void 0},An=[En.enter],Ue=[hn],gn=[void 0],Wn=0;An[Wn]!==En.done;)Wn=An[Wn](xe,Wn,An,Ue,gn,$e,Le);return e.Debug.assertEqual(Wn,0),$e.value}}e.createBinaryExpressionTrampoline=In})(vn||(vn={}));var vn;(function(e){function o(ue,$){return $?e.setTextRangePosEnd(ue,$.pos,$.end):ue}e.setTextRange=o})(vn||(vn={}));var vn;(function(e){var o;(function(p){p[p.None=0]="None",p[p.Yield=1]="Yield",p[p.Await=2]="Await",p[p.Type=4]="Type",p[p.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",p[p.JSDoc=32]="JSDoc"})(o||(o={}));var ue;(function(p){p[p.TryParse=0]="TryParse",p[p.Lookahead=1]="Lookahead",p[p.Reparse=2]="Reparse"})(ue||(ue={}));var $,Y,W,re,ye;e.parseBaseNodeFactory={createBaseSourceFileNode:function(p){return new(ye||(ye=e.objectAllocator.getSourceFileConstructor()))(p,-1,-1)},createBaseIdentifierNode:function(p){return new(W||(W=e.objectAllocator.getIdentifierConstructor()))(p,-1,-1)},createBasePrivateIdentifierNode:function(p){return new(re||(re=e.objectAllocator.getPrivateIdentifierConstructor()))(p,-1,-1)},createBaseTokenNode:function(p){return new(Y||(Y=e.objectAllocator.getTokenConstructor()))(p,-1,-1)},createBaseNode:function(p){return new($||($=e.objectAllocator.getNodeConstructor()))(p,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory);function O(p,f){return f&&p(f)}function A(p,f,T){if(T){if(f)return f(T);for(var m=0,N=T;m<N.length;m++){var P=N[m],x=p(P);if(x)return x}}}function D(p,f){return p.charCodeAt(f+1)===42&&p.charCodeAt(f+2)===42&&p.charCodeAt(f+3)!==47}e.isJSDocLikeText=D;function de(p,f,T){if(!(!p||p.kind<=158))switch(p.kind){case 159:return O(f,p.left)||O(f,p.right);case 161:return O(f,p.name)||O(f,p.constraint)||O(f,p.default)||O(f,p.expression);case 292:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.name)||O(f,p.questionToken)||O(f,p.exclamationToken)||O(f,p.equalsToken)||O(f,p.objectAssignmentInitializer);case 293:return O(f,p.expression);case 162:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.dotDotDotToken)||O(f,p.name)||O(f,p.questionToken)||O(f,p.type)||O(f,p.initializer);case 165:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.name)||O(f,p.questionToken)||O(f,p.exclamationToken)||O(f,p.type)||O(f,p.initializer);case 164:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.name)||O(f,p.questionToken)||O(f,p.type)||O(f,p.initializer);case 291:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.name)||O(f,p.questionToken)||O(f,p.initializer);case 252:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.name)||O(f,p.exclamationToken)||O(f,p.type)||O(f,p.initializer);case 201:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.dotDotDotToken)||O(f,p.propertyName)||O(f,p.name)||O(f,p.initializer);case 177:case 178:case 172:case 173:case 174:return A(f,T,p.decorators)||A(f,T,p.modifiers)||A(f,T,p.typeParameters)||A(f,T,p.parameters)||O(f,p.type);case 167:case 166:case 169:case 170:case 171:case 211:case 254:case 212:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.asteriskToken)||O(f,p.name)||O(f,p.questionToken)||O(f,p.exclamationToken)||A(f,T,p.typeParameters)||A(f,T,p.parameters)||O(f,p.type)||O(f,p.equalsGreaterThanToken)||O(f,p.body);case 168:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.body);case 176:return O(f,p.typeName)||A(f,T,p.typeArguments);case 175:return O(f,p.assertsModifier)||O(f,p.parameterName)||O(f,p.type);case 179:return O(f,p.exprName);case 180:return A(f,T,p.members);case 181:return O(f,p.elementType);case 182:return A(f,T,p.elements);case 185:case 186:return A(f,T,p.types);case 187:return O(f,p.checkType)||O(f,p.extendsType)||O(f,p.trueType)||O(f,p.falseType);case 188:return O(f,p.typeParameter);case 198:return O(f,p.argument)||O(f,p.qualifier)||A(f,T,p.typeArguments);case 189:case 191:return O(f,p.type);case 192:return O(f,p.objectType)||O(f,p.indexType);case 193:return O(f,p.readonlyToken)||O(f,p.typeParameter)||O(f,p.nameType)||O(f,p.questionToken)||O(f,p.type);case 194:return O(f,p.literal);case 195:return O(f,p.dotDotDotToken)||O(f,p.name)||O(f,p.questionToken)||O(f,p.type);case 199:case 200:return A(f,T,p.elements);case 202:return A(f,T,p.elements);case 203:return A(f,T,p.properties);case 204:return O(f,p.expression)||O(f,p.questionDotToken)||O(f,p.name);case 205:return O(f,p.expression)||O(f,p.questionDotToken)||O(f,p.argumentExpression);case 206:case 207:return O(f,p.expression)||O(f,p.questionDotToken)||A(f,T,p.typeArguments)||A(f,T,p.arguments);case 208:return O(f,p.tag)||O(f,p.questionDotToken)||A(f,T,p.typeArguments)||O(f,p.template);case 209:return O(f,p.type)||O(f,p.expression);case 210:return O(f,p.expression);case 213:return O(f,p.expression);case 214:return O(f,p.expression);case 215:return O(f,p.expression);case 217:return O(f,p.operand);case 222:return O(f,p.asteriskToken)||O(f,p.expression);case 216:return O(f,p.expression);case 218:return O(f,p.operand);case 219:return O(f,p.left)||O(f,p.operatorToken)||O(f,p.right);case 227:return O(f,p.expression)||O(f,p.type);case 228:return O(f,p.expression);case 229:return O(f,p.name);case 220:return O(f,p.condition)||O(f,p.questionToken)||O(f,p.whenTrue)||O(f,p.colonToken)||O(f,p.whenFalse);case 223:return O(f,p.expression);case 233:case 260:return A(f,T,p.statements);case 300:return A(f,T,p.statements)||O(f,p.endOfFileToken);case 235:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.declarationList);case 253:return A(f,T,p.declarations);case 236:return O(f,p.expression);case 237:return O(f,p.expression)||O(f,p.thenStatement)||O(f,p.elseStatement);case 238:return O(f,p.statement)||O(f,p.expression);case 239:return O(f,p.expression)||O(f,p.statement);case 240:return O(f,p.initializer)||O(f,p.condition)||O(f,p.incrementor)||O(f,p.statement);case 241:return O(f,p.initializer)||O(f,p.expression)||O(f,p.statement);case 242:return O(f,p.awaitModifier)||O(f,p.initializer)||O(f,p.expression)||O(f,p.statement);case 243:case 244:return O(f,p.label);case 245:return O(f,p.expression);case 246:return O(f,p.expression)||O(f,p.statement);case 247:return O(f,p.expression)||O(f,p.caseBlock);case 261:return A(f,T,p.clauses);case 287:return O(f,p.expression)||A(f,T,p.statements);case 288:return A(f,T,p.statements);case 248:return O(f,p.label)||O(f,p.statement);case 249:return O(f,p.expression);case 250:return O(f,p.tryBlock)||O(f,p.catchClause)||O(f,p.finallyBlock);case 290:return O(f,p.variableDeclaration)||O(f,p.block);case 163:return O(f,p.expression);case 255:case 224:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.name)||A(f,T,p.typeParameters)||A(f,T,p.heritageClauses)||A(f,T,p.members);case 256:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.name)||A(f,T,p.typeParameters)||A(f,T,p.heritageClauses)||A(f,T,p.members);case 257:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.name)||A(f,T,p.typeParameters)||O(f,p.type);case 258:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.name)||A(f,T,p.members);case 294:return O(f,p.name)||O(f,p.initializer);case 259:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.name)||O(f,p.body);case 263:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.name)||O(f,p.moduleReference);case 264:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.importClause)||O(f,p.moduleSpecifier);case 265:return O(f,p.name)||O(f,p.namedBindings);case 262:return O(f,p.name);case 266:return O(f,p.name);case 272:return O(f,p.name);case 267:case 271:return A(f,T,p.elements);case 270:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.exportClause)||O(f,p.moduleSpecifier);case 268:case 273:return O(f,p.propertyName)||O(f,p.name);case 269:return A(f,T,p.decorators)||A(f,T,p.modifiers)||O(f,p.expression);case 221:return O(f,p.head)||A(f,T,p.templateSpans);case 231:return O(f,p.expression)||O(f,p.literal);case 196:return O(f,p.head)||A(f,T,p.templateSpans);case 197:return O(f,p.type)||O(f,p.literal);case 160:return O(f,p.expression);case 289:return A(f,T,p.types);case 226:return O(f,p.expression)||A(f,T,p.typeArguments);case 275:return O(f,p.expression);case 274:return A(f,T,p.decorators);case 346:return A(f,T,p.elements);case 276:return O(f,p.openingElement)||A(f,T,p.children)||O(f,p.closingElement);case 280:return O(f,p.openingFragment)||A(f,T,p.children)||O(f,p.closingFragment);case 277:case 278:return O(f,p.tagName)||A(f,T,p.typeArguments)||O(f,p.attributes);case 284:return A(f,T,p.properties);case 283:return O(f,p.name)||O(f,p.initializer);case 285:return O(f,p.expression);case 286:return O(f,p.dotDotDotToken)||O(f,p.expression);case 279:return O(f,p.tagName);case 183:case 184:case 304:case 310:case 309:case 311:case 313:return O(f,p.type);case 312:return A(f,T,p.parameters)||O(f,p.type);case 315:return(typeof p.comment=="string"?void 0:A(f,T,p.comment))||A(f,T,p.tags);case 341:return O(f,p.tagName)||O(f,p.name)||(typeof p.comment=="string"?void 0:A(f,T,p.comment));case 305:return O(f,p.name);case 306:return O(f,p.left)||O(f,p.right);case 335:case 342:return O(f,p.tagName)||(p.isNameFirst?O(f,p.name)||O(f,p.typeExpression)||(typeof p.comment=="string"?void 0:A(f,T,p.comment)):O(f,p.typeExpression)||O(f,p.name)||(typeof p.comment=="string"?void 0:A(f,T,p.comment)));case 325:return O(f,p.tagName)||(typeof p.comment=="string"?void 0:A(f,T,p.comment));case 324:return O(f,p.tagName)||O(f,p.class)||(typeof p.comment=="string"?void 0:A(f,T,p.comment));case 323:return O(f,p.tagName)||O(f,p.class)||(typeof p.comment=="string"?void 0:A(f,T,p.comment));case 339:return O(f,p.tagName)||O(f,p.constraint)||A(f,T,p.typeParameters)||(typeof p.comment=="string"?void 0:A(f,T,p.comment));case 340:return O(f,p.tagName)||(p.typeExpression&&p.typeExpression.kind===304?O(f,p.typeExpression)||O(f,p.fullName)||(typeof p.comment=="string"?void 0:A(f,T,p.comment)):O(f,p.fullName)||O(f,p.typeExpression)||(typeof p.comment=="string"?void 0:A(f,T,p.comment)));case 333:return O(f,p.tagName)||O(f,p.fullName)||O(f,p.typeExpression)||(typeof p.comment=="string"?void 0:A(f,T,p.comment));case 336:case 338:case 337:case 334:return O(f,p.tagName)||O(f,p.typeExpression)||(typeof p.comment=="string"?void 0:A(f,T,p.comment));case 318:return e.forEach(p.typeParameters,f)||e.forEach(p.parameters,f)||O(f,p.type);case 319:case 320:case 321:return O(f,p.name);case 317:return e.forEach(p.jsDocPropertyTags,f);case 322:case 327:case 328:case 329:case 330:case 331:case 326:return O(f,p.tagName)||(typeof p.comment=="string"?void 0:A(f,T,p.comment));case 345:return O(f,p.expression)}}e.forEachChild=de;function _e(p,f,T){for(var m=y(p),N=[];N.length<m.length;)N.push(p);for(;m.length!==0;){var P=m.pop(),x=N.pop();if(e.isArray(P)){if(T){var M=T(P,x);if(M){if(M==="skip")continue;return M}}for(var me=P.length-1;me>=0;--me)m.push(P[me]),N.push(x)}else{var M=f(P,x);if(M){if(M==="skip")continue;return M}if(P.kind>=159)for(var z=0,K=y(P);z<K.length;z++){var I=K[z];m.push(I),N.push(P)}}}}e.forEachChildRecursively=_e;function y(p){var f=[];return de(p,T,T),f;function T(m){f.unshift(m)}}function V(p,f,T,m,N){m===void 0&&(m=!1),e.tracing===null||e.tracing===void 0||e.tracing.push("parse","createSourceFile",{path:p},!0),e.performance.mark("beforeParse");var P;return e.perfLogger.logStartParseSourceFile(p),T===100?P=b.parseSourceFile(p,f,T,void 0,m,6):P=b.parseSourceFile(p,f,T,void 0,m,N),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),P}e.createSourceFile=V;function Z(p,f){return b.parseIsolatedEntityName(p,f)}e.parseIsolatedEntityName=Z;function E(p,f){return b.parseJsonText(p,f)}e.parseJsonText=E;function H(p){return p.externalModuleIndicator!==void 0}e.isExternalModule=H;function L(p,f,T,m){m===void 0&&(m=!1);var N=ie.updateSourceFile(p,f,T,m);return N.flags|=p.flags&3145728,N}e.updateSourceFile=L;function ee(p,f,T){var m=b.JSDocParser.parseIsolatedJSDocComment(p,f,T);return m&&m.jsDoc&&b.fixupParentReferences(m.jsDoc),m}e.parseIsolatedJSDocComment=ee;function k(p,f,T){return b.JSDocParser.parseJSDocTypeExpressionForTests(p,f,T)}e.parseJSDocTypeExpressionForTests=k;var b;(function(p){var f=e.createScanner(99,!0),T=20480,m,N,P,x,M;function me(ke){return fe++,ke}var z={createBaseSourceFileNode:function(ke){return me(new M(ke,0,0))},createBaseIdentifierNode:function(ke){return me(new P(ke,0,0))},createBasePrivateIdentifierNode:function(ke){return me(new x(ke,0,0))},createBaseTokenNode:function(ke){return me(new N(ke,0,0))},createBaseNode:function(ke){return me(new m(ke,0,0))}},K=e.createNodeFactory(11,z),I,Ae,Oe,te,Se,be,Ce,Be,De,en,fe,Ne,qe,pe,we,pn,Qe,Re=!0,He=!1;function Ln(ke,bn,Yn,dr,Mr,lt){var Gt;if(Mr===void 0&&(Mr=!1),lt=e.ensureScriptKind(ke,lt),lt===6){var ta=fn(ke,bn,Yn,dr,Mr);return e.convertToObjectWorker(ta,(Gt=ta.statements[0])===null||Gt===void 0?void 0:Gt.expression,ta.parseDiagnostics,!1,void 0,void 0),ta.referencedFiles=e.emptyArray,ta.typeReferenceDirectives=e.emptyArray,ta.libReferenceDirectives=e.emptyArray,ta.amdDependencies=e.emptyArray,ta.hasNoDefaultLib=!1,ta.pragmas=e.emptyMap,ta}En(ke,bn,Yn,dr,lt);var pi=In(Yn,Mr,lt);return i(),pi}p.parseSourceFile=Ln;function Un(ke,bn){En("",ke,bn,void 0,1),cn();var Yn=Zi(!0),dr=J()===1&&!Ce.length;return i(),dr?Yn:void 0}p.parseIsolatedEntityName=Un;function fn(ke,bn,Yn,dr,Mr){Yn===void 0&&(Yn=2),Mr===void 0&&(Mr=!1),En(ke,bn,Yn,dr,6),Ae=Qe,cn();var lt=Fe(),Gt,ta;if(J()===1)Gt=vt([],lt,lt),ta=Zt();else{for(var pi=void 0;J()!==1;){var ka=void 0;switch(J()){case 22:ka=Qc();break;case 110:case 95:case 104:ka=Zt();break;case 40:Kr(function(){return cn()===8&&cn()!==58})?ka=Ud():ka=hu();break;case 8:case 10:if(Kr(function(){return cn()!==58})){ka=ps();break}default:ka=hu();break}pi&&e.isArray(pi)?pi.push(ka):pi?pi=[pi,ka]:(pi=ka,J()!==1&&Mn(e.Diagnostics.Unexpected_token))}var Do=e.isArray(pi)?or(K.createArrayLiteralExpression(pi),lt):e.Debug.checkDefined(pi),Is=K.createExpressionStatement(Do);or(Is,lt),Gt=vt([Is],lt),ta=Hr(1,e.Diagnostics.Unexpected_token)}var Lo=Pe(ke,2,6,!1,Gt,ta,Ae);Mr&&le(Lo),Lo.nodeCount=fe,Lo.identifierCount=pe,Lo.identifiers=Ne,Lo.parseDiagnostics=e.attachFileToDiagnostics(Ce,Lo),Be&&(Lo.jsDocDiagnostics=e.attachFileToDiagnostics(Be,Lo));var ms=Lo;return i(),ms}p.parseJsonText=fn;function En(ke,bn,Yn,dr,Mr){switch(m=e.objectAllocator.getNodeConstructor(),N=e.objectAllocator.getTokenConstructor(),P=e.objectAllocator.getIdentifierConstructor(),x=e.objectAllocator.getPrivateIdentifierConstructor(),M=e.objectAllocator.getSourceFileConstructor(),I=e.normalizePath(ke),Oe=bn,te=Yn,De=dr,Se=Mr,be=e.getLanguageVariant(Mr),Ce=[],we=0,Ne=new e.Map,qe=new e.Map,pe=0,fe=0,Ae=0,Re=!0,Se){case 1:case 2:Qe=131072;break;case 6:Qe=33685504;break;default:Qe=0;break}He=!1,f.setText(Oe),f.setOnError(cr),f.setScriptTarget(te),f.setLanguageVariant(be)}function i(){f.clearCommentDirectives(),f.setText(""),f.setOnError(void 0),Oe=void 0,te=void 0,De=void 0,Se=void 0,be=void 0,Ae=0,Ce=void 0,Be=void 0,we=0,Ne=void 0,pn=void 0,Re=!0}function In(ke,bn,Yn){var dr=q(I);dr&&(Qe|=8388608),Ae=Qe,cn();var Mr=$r(0,dl);e.Debug.assert(J()===1);var lt=$n(Zt()),Gt=Pe(I,ke,Yn,dr,Mr,lt,Ae);return oe(Gt,Oe),se(Gt,ta),Gt.commentDirectives=f.getCommentDirectives(),Gt.nodeCount=fe,Gt.identifierCount=pe,Gt.identifiers=Ne,Gt.parseDiagnostics=e.attachFileToDiagnostics(Ce,Gt),Be&&(Gt.jsDocDiagnostics=e.attachFileToDiagnostics(Be,Gt)),bn&&le(Gt),Gt;function ta(pi,ka,Do){Ce.push(e.createDetachedDiagnostic(I,pi,ka,Do))}}function X(ke,bn){return bn?$n(ke):ke}var rn=!1;function $n(ke){e.Debug.assert(!ke.jsDoc);var bn=e.mapDefined(e.getJSDocCommentRanges(ke,Oe),function(Yn){return Cd.parseJSDocComment(ke,Yn.pos,Yn.end-Yn.pos)});return bn.length&&(ke.jsDoc=bn),rn&&(rn=!1,ke.flags|=134217728),ke}function Vn(ke){var bn=De,Yn=ie.createSyntaxCursor(ke);De={currentNode:ms};var dr=[],Mr=Ce;Ce=[];for(var lt=0,Gt=Is(ke.statements,0),ta=function(){var Us=ke.statements[lt],yl=ke.statements[Gt];e.addRange(dr,ke.statements,lt,Gt),lt=Lo(ke.statements,Gt);var Cl=e.findIndex(Mr,function(tc){return tc.start>=Us.pos}),Pc=Cl>=0?e.findIndex(Mr,function(tc){return tc.start>=yl.pos},Cl):-1;Cl>=0&&e.addRange(Ce,Mr,Cl,Pc>=0?Pc:void 0),xt(function(){var tc=Qe;for(Qe|=32768,f.setTextPos(yl.pos),cn();J()!==1;){var Tf=f.getStartPos(),Ml=ia(0,dl);if(dr.push(Ml),Tf===f.getStartPos()&&cn(),lt>=0){var zl=ke.statements[lt];if(Ml.end===zl.pos)break;Ml.end>zl.pos&&(lt=Lo(ke.statements,lt+1))}}Qe=tc},2),Gt=lt>=0?Is(ke.statements,lt):-1};Gt!==-1;)ta();if(lt>=0){var pi=ke.statements[lt];e.addRange(dr,ke.statements,lt);var ka=e.findIndex(Mr,function(Us){return Us.start>=pi.pos});ka>=0&&e.addRange(Ce,Mr,ka)}return De=bn,K.updateSourceFile(ke,e.setTextRange(K.createNodeArray(dr),ke.statements));function Do(Us){return!(Us.flags&32768)&&!!(Us.transformFlags&16777216)}function Is(Us,yl){for(var Cl=yl;Cl<Us.length;Cl++)if(Do(Us[Cl]))return Cl;return-1}function Lo(Us,yl){for(var Cl=yl;Cl<Us.length;Cl++)if(!Do(Us[Cl]))return Cl;return-1}function ms(Us){var yl=Yn.currentNode(Us);return Re&&yl&&Do(yl)&&(yl.intersectsChange=!0),yl}}function le(ke){e.setParentRecursive(ke,!0)}p.fixupParentReferences=le;function Pe(ke,bn,Yn,dr,Mr,lt,Gt){var ta=K.createSourceFile(Mr,lt,Gt);return e.setTextRangePosWidth(ta,0,Oe.length),Up(ta),!dr&&H(ta)&&ta.transformFlags&16777216&&(ta=Vn(ta)),ta.text=Oe,ta.bindDiagnostics=[],ta.bindSuggestionDiagnostics=void 0,ta.languageVersion=bn,ta.fileName=ke,ta.languageVariant=e.getLanguageVariant(Yn),ta.isDeclarationFile=dr,ta.scriptKind=Yn,ta}function xe(ke,bn){ke?Qe|=bn:Qe&=~bn}function Ze(ke){xe(ke,4096)}function hn(ke){xe(ke,8192)}function Le(ke){xe(ke,16384)}function $e(ke){xe(ke,32768)}function An(ke,bn){var Yn=ke&Qe;if(Yn){xe(!1,Yn);var dr=bn();return xe(!0,Yn),dr}return bn()}function Ue(ke,bn){var Yn=ke&~Qe;if(Yn){xe(!0,Yn);var dr=bn();return xe(!1,Yn),dr}return bn()}function gn(ke){return An(4096,ke)}function Wn(ke){return Ue(4096,ke)}function ze(ke){return Ue(8192,ke)}function Tn(ke){return Ue(16384,ke)}function On(ke){return Ue(32768,ke)}function ur(ke){return An(32768,ke)}function hr(ke){return Ue(40960,ke)}function wr(ke){return An(40960,ke)}function Qr(ke){return(Qe&ke)!==0}function Ke(){return Qr(8192)}function jn(){return Qr(4096)}function Zn(){return Qr(16384)}function Me(){return Qr(32768)}function Mn(ke,bn){Xn(f.getTokenPos(),f.getTextPos(),ke,bn)}function ar(ke,bn,Yn,dr){var Mr=e.lastOrUndefined(Ce);(!Mr||ke!==Mr.start)&&Ce.push(e.createDetachedDiagnostic(I,ke,bn,Yn,dr)),He=!0}function Xn(ke,bn,Yn,dr){ar(ke,bn-ke,Yn,dr)}function yr(ke,bn,Yn){Xn(ke.pos,ke.end,bn,Yn)}function cr(ke,bn){ar(f.getTextPos(),bn,ke)}function Fe(){return f.getStartPos()}function Bn(){return f.hasPrecedingJSDocComment()}function J(){return en}function Cn(){return en=f.scan()}function Gn(ke){return cn(),ke()}function cn(){return e.isKeyword(en)&&(f.hasUnicodeEscape()||f.hasExtendedUnicodeEscape())&&Xn(f.getTokenPos(),f.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),Cn()}function Rn(){return en=f.scanJsDocToken()}function Ye(){return en=f.reScanGreaterToken()}function xn(){return en=f.reScanSlashToken()}function an(ke){return en=f.reScanTemplateToken(ke)}function zn(){return en=f.reScanTemplateHeadOrNoSubstitutionTemplate()}function ir(){return en=f.reScanLessThanToken()}function gr(){return en=f.reScanHashToken()}function Dr(){return en=f.scanJsxIdentifier()}function qr(){return en=f.scanJsxToken()}function ft(){return en=f.scanJsxAttributeValue()}function xt(ke,bn){var Yn=en,dr=Ce.length,Mr=He,lt=Qe,Gt=bn!==0?f.lookAhead(ke):f.tryScan(ke);return e.Debug.assert(lt===Qe),(!Gt||bn!==0)&&(en=Yn,bn!==2&&(Ce.length=dr),He=Mr),Gt}function Kr(ke){return xt(ke,1)}function dt(ke){return xt(ke,0)}function Ur(){return J()===79?!0:J()>116}function qt(){return J()===79?!0:J()===125&&Ke()||J()===131&&Me()?!1:J()>116}function Cr(ke,bn,Yn){return Yn===void 0&&(Yn=!0),J()===ke?(Yn&&cn(),!0):(bn?Mn(bn):Mn(e.Diagnostics._0_expected,e.tokenToString(ke)),!1)}var Jt=Object.keys(e.textToKeywordObj).filter(function(ke){return ke.length>2});function Ot(ke){var bn;if(e.isTaggedTemplateExpression(ke)){Xn(e.skipTrivia(Oe,ke.template.pos),ke.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);return}var Yn=e.isIdentifier(ke)?e.idText(ke):void 0;if(!Yn||!e.isIdentifierText(Yn,te)){Mn(e.Diagnostics._0_expected,e.tokenToString(26));return}var dr=e.skipTrivia(Oe,ke.pos);switch(Yn){case"const":case"let":case"var":Xn(dr,ke.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":ri(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);return;case"is":Xn(dr,f.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":ri(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);return;case"type":ri(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63);return}var Mr=(bn=e.getSpellingSuggestion(Yn,Jt,function(lt){return lt}))!==null&&bn!==void 0?bn:Ya(Yn);if(Mr){Xn(dr,ke.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,Mr);return}J()!==0&&Xn(dr,ke.end,e.Diagnostics.Unexpected_keyword_or_identifier)}function ri(ke,bn,Yn){J()===Yn?Mn(bn):Mn(ke,e.tokenToString(J()))}function Ya(ke){for(var bn=0,Yn=Jt;bn<Yn.length;bn++){var dr=Yn[bn];if(ke.length>dr.length+2&&e.startsWith(ke,dr))return dr+" "+ke.slice(dr.length)}}function eo(ke,bn,Yn){if(J()===59&&!f.hasPrecedingLineBreak()){Mn(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(J()===20){Mn(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),cn();return}if(bn&&!Lr()){Yn?Mn(e.Diagnostics._0_expected,e.tokenToString(26)):Mn(e.Diagnostics.Expected_for_property_initializer);return}if(!Xr()){if(Yn){J()===18&&Mn(e.Diagnostics._0_expected,e.tokenToString(26));return}Ot(ke)}}function za(ke){return J()===ke?(Rn(),!0):(Mn(e.Diagnostics._0_expected,e.tokenToString(ke)),!1)}function ua(ke){return J()===ke?(cn(),!0):!1}function Ar(ke){if(J()===ke)return Zt()}function at(ke){if(J()===ke)return Rr()}function Hr(ke,bn,Yn){return Ar(ke)||$t(ke,!1,bn||e.Diagnostics._0_expected,Yn||e.tokenToString(ke))}function Wt(ke){return at(ke)||$t(ke,!1,e.Diagnostics._0_expected,e.tokenToString(ke))}function Zt(){var ke=Fe(),bn=J();return cn(),or(K.createToken(bn),ke)}function Rr(){var ke=Fe(),bn=J();return Rn(),or(K.createToken(bn),ke)}function Lr(){return J()===26?!0:J()===19||J()===1||f.hasPrecedingLineBreak()}function Xr(){return Lr()?(J()===26&&cn(),!0):!1}function nt(){return Xr()||Cr(26)}function vt(ke,bn,Yn,dr){var Mr=K.createNodeArray(ke,dr);return e.setTextRangePosEnd(Mr,bn,Yn!=null?Yn:f.getStartPos()),Mr}function or(ke,bn,Yn){return e.setTextRangePosEnd(ke,bn,Yn!=null?Yn:f.getStartPos()),Qe&&(ke.flags|=Qe),He&&(He=!1,ke.flags|=65536),ke}function $t(ke,bn,Yn,dr){bn?ar(f.getStartPos(),0,Yn,dr):Yn&&Mn(Yn,dr);var Mr=Fe(),lt=ke===79?K.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(ke)?K.createTemplateLiteralLikeNode(ke,"","",void 0):ke===8?K.createNumericLiteral("",void 0):ke===10?K.createStringLiteral("",void 0):ke===274?K.createMissingDeclaration():K.createToken(ke);return or(lt,Mr)}function Va(ke){var bn=Ne.get(ke);return bn===void 0&&Ne.set(ke,bn=ke),bn}function li(ke,bn,Yn){if(ke){pe++;var dr=Fe(),Mr=J(),lt=Va(f.getTokenValue());return Cn(),or(K.createIdentifier(lt,void 0,Mr),dr)}if(J()===80)return Mn(Yn||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),li(!0);if(J()===0&&f.tryScan(function(){return f.reScanInvalidIdentifier()===79}))return li(!0);pe++;var Gt=J()===1,ta=f.isReservedWord(),pi=f.getTokenText(),ka=ta?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return $t(79,Gt,bn||ka,pi)}function zi(ke){return li(Ur(),void 0,ke)}function Ma(ke,bn){return li(qt(),ke,bn)}function di(ke){return li(e.tokenIsIdentifierOrKeyword(J()),ke)}function Yi(){return e.tokenIsIdentifierOrKeyword(J())||J()===10||J()===8}function uo(ke){if(J()===10||J()===8){var bn=ps();return bn.text=Va(bn.text),bn}return ke&&J()===22?Mi():J()===80?io():di()}function bi(){return uo(!0)}function Mi(){var ke=Fe();Cr(22);var bn=gn(Qs);return Cr(23),or(K.createComputedPropertyName(bn),ke)}function Go(ke){var bn=qe.get(ke);return bn===void 0&&qe.set(ke,bn=ke),bn}function io(){var ke=Fe(),bn=K.createPrivateIdentifier(Go(f.getTokenText()));return cn(),or(bn,ke)}function wi(ke){return J()===ke&&dt(qi)}function Ho(){return cn(),f.hasPrecedingLineBreak()?!1:Da()}function qi(){switch(J()){case 85:return cn()===92;case 93:return cn(),J()===88?Kr($a):J()===150?Kr(as):Qi();case 88:return $a();case 124:return Ho();case 135:case 147:return cn(),Da();default:return Ho()}}function Qi(){return J()!==41&&J()!==127&&J()!==18&&Da()}function as(){return cn(),Qi()}function gs(){return e.isModifierKind(J())&&dt(qi)}function Da(){return J()===22||J()===18||J()===41||J()===25||Yi()}function $a(){return cn(),J()===84||J()===98||J()===118||J()===126&&Kr(Nc)||J()===130&&Kr(kc)}function Ni(ke,bn){var Yn=ti(ke);if(Yn)return!0;switch(ke){case 0:case 1:case 3:return!(J()===26&&bn)&&fl();case 2:return J()===82||J()===88;case 4:return Kr(Ut);case 5:return Kr(Vf)||J()===26&&!bn;case 6:return J()===22||Yi();case 12:switch(J()){case 22:case 41:case 25:case 24:return!0;default:return Yi()}case 18:return Yi();case 9:return J()===22||J()===25||Yi();case 7:return J()===18?Kr(vo):bn?qt()&&!cs():xf()&&!cs();case 8:return vd();case 10:return J()===27||J()===25||vd();case 19:return qt();case 15:switch(J()){case 27:case 24:return!0}case 11:return J()===25||es();case 16:return Js(!1);case 17:return Js(!0);case 20:case 21:return J()===27||Rs();case 22:return Oc();case 23:return e.tokenIsIdentifierOrKeyword(J());case 13:return e.tokenIsIdentifierOrKeyword(J())||J()===18;case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function vo(){if(e.Debug.assert(J()===18),cn()===19){var ke=cn();return ke===27||ke===18||ke===94||ke===117}return!0}function Io(){return cn(),qt()}function Bo(){return cn(),e.tokenIsIdentifierOrKeyword(J())}function Uo(){return cn(),e.tokenIsIdentifierOrKeywordOrGreaterThan(J())}function cs(){return J()===117||J()===94?Kr(us):!1}function us(){return cn(),es()}function Jo(){return cn(),Rs()}function is(ke){if(J()===1)return!0;switch(ke){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return J()===19;case 3:return J()===19||J()===82||J()===88;case 7:return J()===18||J()===94||J()===117;case 8:return mn();case 19:return J()===31||J()===20||J()===18||J()===94||J()===117;case 11:return J()===21||J()===26;case 15:case 21:case 10:return J()===23;case 17:case 16:case 18:return J()===21||J()===23;case 20:return J()!==27;case 22:return J()===18||J()===19;case 13:return J()===31||J()===43;case 14:return J()===29&&Kr(mr);default:return!1}}function mn(){return!!(Lr()||Xc(J())||J()===38)}function _r(){for(var ke=0;ke<24;ke++)if(we&1<<ke&&(Ni(ke,!0)||is(ke)))return!0;return!1}function $r(ke,bn){var Yn=we;we|=1<<ke;for(var dr=[],Mr=Fe();!is(ke);){if(Ni(ke,!1)){dr.push(ia(ke,bn));continue}if(Sr(ke))break}return we=Yn,vt(dr,Mr)}function ia(ke,bn){var Yn=ti(ke);return Yn?va(Yn):bn()}function ti(ke){if(!(!De||!Ve(ke)||He)){var bn=De.currentNode(f.getStartPos());if(!(e.nodeIsMissing(bn)||bn.intersectsChange||e.containsParseError(bn))){var Yn=bn.flags&25358336;if(Yn===Qe&&ce(bn,ke))return bn.jsDocCache&&(bn.jsDocCache=void 0),bn}}}function va(ke){return f.setTextPos(ke.end),cn(),ke}function Ve(ke){switch(ke){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 ce(ke,bn){switch(bn){case 5:return dn(ke);case 2:return j(ke);case 0:case 1:case 3:return Ie(ke);case 6:return We(ke);case 4:return sn(ke);case 8:return Hn(ke);case 17:case 16:return vr(ke)}return!1}function dn(ke){if(ke)switch(ke.kind){case 169:case 174:case 170:case 171:case 165:case 232:return!0;case 167:var bn=ke,Yn=bn.name.kind===79&&bn.name.originalKeywordKind===133;return!Yn}return!1}function j(ke){if(ke)switch(ke.kind){case 287:case 288:return!0}return!1}function Ie(ke){if(ke)switch(ke.kind){case 254:case 235:case 233:case 237:case 236:case 249:case 245:case 247:case 244:case 243:case 241:case 242:case 240:case 239:case 246:case 234:case 250:case 248:case 238:case 251:case 264:case 263:case 270:case 269:case 259:case 255:case 256:case 258:case 257:return!0}return!1}function We(ke){return ke.kind===294}function sn(ke){if(ke)switch(ke.kind){case 173:case 166:case 174:case 164:case 172:return!0}return!1}function Hn(ke){if(ke.kind!==252)return!1;var bn=ke;return bn.initializer===void 0}function vr(ke){if(ke.kind!==162)return!1;var bn=ke;return bn.initializer===void 0}function Sr(ke){return ot(ke),_r()?!0:(cn(),!1)}function ot(ke){switch(ke){case 0:return J()===88?Mn(e.Diagnostics._0_expected,e.tokenToString(93)):Mn(e.Diagnostics.Declaration_or_statement_expected);case 1:return Mn(e.Diagnostics.Declaration_or_statement_expected);case 2:return Mn(e.Diagnostics.case_or_default_expected);case 3:return Mn(e.Diagnostics.Statement_expected);case 18:case 4:return Mn(e.Diagnostics.Property_or_signature_expected);case 5:return Mn(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Mn(e.Diagnostics.Enum_member_expected);case 7:return Mn(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(J())?Mn(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(J())):Mn(e.Diagnostics.Variable_declaration_expected);case 9:return Mn(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return Mn(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return Mn(e.Diagnostics.Argument_expression_expected);case 12:return Mn(e.Diagnostics.Property_assignment_expected);case 15:return Mn(e.Diagnostics.Expression_or_comma_expected);case 17:return Mn(e.Diagnostics.Parameter_declaration_expected);case 16:return Mn(e.Diagnostics.Parameter_declaration_expected);case 19:return Mn(e.Diagnostics.Type_parameter_declaration_expected);case 20:return Mn(e.Diagnostics.Type_argument_expected);case 21:return Mn(e.Diagnostics.Type_expected);case 22:return Mn(e.Diagnostics.Unexpected_token_expected);case 23:return Mn(e.Diagnostics.Identifier_expected);case 13:return Mn(e.Diagnostics.Identifier_expected);case 14:return Mn(e.Diagnostics.Identifier_expected);default:return[void 0]}}function Et(ke,bn,Yn){var dr=we;we|=1<<ke;for(var Mr=[],lt=Fe(),Gt=-1;;){if(Ni(ke,!1)){var ta=f.getStartPos();if(Mr.push(ia(ke,bn)),Gt=f.getTokenPos(),ua(27))continue;if(Gt=-1,is(ke))break;Cr(27,ra(ke)),Yn&&J()===26&&!f.hasPrecedingLineBreak()&&cn(),ta===f.getStartPos()&&cn();continue}if(is(ke)||Sr(ke))break}return we=dr,vt(Mr,lt,void 0,Gt>=0)}function ra(ke){return ke===6?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function Na(){var ke=vt([],Fe());return ke.isMissingList=!0,ke}function ei(ke){return!!ke.isMissingList}function Li(ke,bn,Yn,dr){if(Cr(Yn)){var Mr=Et(ke,bn);return Cr(dr),Mr}return Na()}function Zi(ke,bn){for(var Yn=Fe(),dr=ke?di(bn):Ma(bn),Mr=Fe();ua(24);){if(J()===29){dr.jsdocDotPos=Mr;break}Mr=Fe(),dr=or(K.createQualifiedName(dr,vs(ke,!1)),Yn)}return dr}function ho(ke,bn){return or(K.createQualifiedName(ke,bn),ke.pos)}function vs(ke,bn){if(f.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(J())){var Yn=Kr($c);if(Yn)return $t(79,!0,e.Diagnostics.Identifier_expected)}if(J()===80){var dr=io();return bn?dr:$t(79,!0,e.Diagnostics.Identifier_expected)}return ke?di():Ma()}function Ao(ke){var bn=Fe(),Yn=[],dr;do dr=ul(ke),Yn.push(dr);while(dr.literal.kind===16);return vt(Yn,bn)}function oo(ke){var bn=Fe();return or(K.createTemplateExpression(jl(ke),Ao(ke)),bn)}function Zo(){var ke=Fe();return or(K.createTemplateLiteralType(jl(!1),cl()),ke)}function cl(){var ke=Fe(),bn=[],Yn;do Yn=ws(),bn.push(Yn);while(Yn.literal.kind===16);return vt(bn,ke)}function ws(){var ke=Fe();return or(K.createTemplateLiteralTypeSpan($o(),vl(!1)),ke)}function vl(ke){return J()===19?(an(ke),Hl()):Hr(17,e.Diagnostics._0_expected,e.tokenToString(19))}function ul(ke){var bn=Fe();return or(K.createTemplateSpan(gn(Qs),vl(ke)),bn)}function ps(){return Fs(J())}function jl(ke){ke&&zn();var bn=Fs(J());return e.Debug.assert(bn.kind===15,"Template head has wrong token kind"),bn}function Hl(){var ke=Fs(J());return e.Debug.assert(ke.kind===16||ke.kind===17,"Template fragment has wrong token kind"),ke}function Hs(ke){var bn=ke===14||ke===17,Yn=f.getTokenText();return Yn.substring(1,Yn.length-(f.isUnterminated()?0:bn?1:2))}function Fs(ke){var bn=Fe(),Yn=e.isTemplateLiteralKind(ke)?K.createTemplateLiteralLikeNode(ke,f.getTokenValue(),Hs(ke),f.getTokenFlags()&2048):ke===8?K.createNumericLiteral(f.getTokenValue(),f.getNumericLiteralFlags()):ke===10?K.createStringLiteral(f.getTokenValue(),void 0,f.hasExtendedUnicodeEscape()):e.isLiteralKind(ke)?K.createLiteralLikeNode(ke,f.getTokenValue()):e.Debug.fail();return f.hasExtendedUnicodeEscape()&&(Yn.hasExtendedUnicodeEscape=!0),f.isUnterminated()&&(Yn.isUnterminated=!0),cn(),or(Yn,bn)}function ge(){return Zi(!0,e.Diagnostics.Type_expected)}function Kn(){if(!f.hasPrecedingLineBreak()&&ir()===29)return Li(20,$o,29,31)}function Te(){var ke=Fe();return or(K.createTypeReferenceNode(ge(),Kn()),ke)}function Fn(ke){switch(ke.kind){case 176:return e.nodeIsMissing(ke.typeName);case 177:case 178:{var bn=ke,Yn=bn.parameters,dr=bn.type;return ei(Yn)||Fn(dr)}case 189:return Fn(ke.type);default:return!1}}function et(ke){return cn(),or(K.createTypePredicateNode(void 0,ke,$o()),ke.pos)}function Xt(){var ke=Fe();return cn(),or(K.createThisTypeNode(),ke)}function ca(){var ke=Fe();return cn(),or(K.createJSDocAllType(),ke)}function ha(){var ke=Fe();return cn(),or(K.createJSDocNonNullableType(Es()),ke)}function To(){var ke=Fe();return cn(),J()===27||J()===19||J()===21||J()===31||J()===63||J()===51?or(K.createJSDocUnknownType(),ke):or(K.createJSDocNullableType($o()),ke)}function Pn(){var ke=Fe(),bn=Bn();if(Kr(v)){cn();var Yn=$l(36),dr=Zl(58,!1);return X(or(K.createJSDocFunctionType(Yn,dr),ke),bn)}return or(K.createTypeReferenceNode(di(),void 0),ke)}function Vo(){var ke=Fe(),bn;return(J()===108||J()===103)&&(bn=di(),Cr(58)),or(K.createParameterDeclaration(void 0,void 0,void 0,bn,void 0,Ko(),void 0),ke)}function Ko(){f.setInJSDocType(!0);var ke=Fe();if(ua(140)){var bn=K.createJSDocNamepathType(void 0);e:for(;;)switch(J()){case 19:case 1:case 27:case 5:break e;default:Rn()}return f.setInJSDocType(!1),or(bn,ke)}var Yn=ua(25),dr=Za();return f.setInJSDocType(!1),Yn&&(dr=or(K.createJSDocVariadicType(dr),ke)),J()===63?(cn(),or(K.createJSDocOptionalType(dr),ke)):dr}function hs(){var ke=Fe();return Cr(112),or(K.createTypeQueryNode(Zi(!0)),ke)}function hl(){var ke=Fe(),bn=Ma(),Yn,dr;ua(94)&&(Rs()||!es()?Yn=$o():dr=zs());var Mr=ua(63)?$o():void 0,lt=K.createTypeParameterDeclaration(bn,Yn,Mr);return lt.expression=dr,or(lt,ke)}function Bi(){if(J()===29)return Li(19,hl,29,31)}function Js(ke){return J()===25||vd()||e.isModifierKind(J())||J()===59||Rs(!ke)}function rl(ke){var bn=Eu(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return e.getFullWidth(bn)===0&&!e.some(ke)&&e.isModifierKind(J())&&cn(),bn}function Ol(){return Sc(!0)}function nc(){return Sc(!1)}function Sc(ke){var bn=Fe(),Yn=Bn(),dr=ke?On(of):of();if(J()===108){var Mr=K.createParameterDeclaration(dr,void 0,void 0,li(!0),void 0,Dc(),void 0);return dr&&yr(dr[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),X(or(Mr,bn),Yn)}var lt=Re;Re=!1;var Gt=sc(),ta=X(or(K.createParameterDeclaration(dr,Gt,Ar(25),rl(Gt),Ar(57),Dc(),Gc()),bn),Yn);return Re=lt,ta}function Zl(ke,bn){if(du(ke,bn))return Za()}function du(ke,bn){return ke===38?(Cr(ke),!0):ua(58)?!0:bn&&J()===38?(Mn(e.Diagnostics._0_expected,e.tokenToString(58)),cn(),!0):!1}function dc(ke){var bn=Ke(),Yn=Me();hn(!!(ke&1)),$e(!!(ke&2));var dr=ke&32?Et(17,Vo):Et(16,Yn?Ol:nc);return hn(bn),$e(Yn),dr}function $l(ke){if(!Cr(20))return Na();var bn=dc(ke);return Cr(21),bn}function kn(){ua(27)||nt()}function lr(ke){var bn=Fe(),Yn=Bn();ke===173&&Cr(103);var dr=Bi(),Mr=$l(4),lt=Zl(58,!0);kn();var Gt=ke===172?K.createCallSignature(dr,Mr,lt):K.createConstructSignature(dr,Mr,lt);return X(or(Gt,bn),Yn)}function Or(){return J()===22&&Kr(st)}function st(){if(cn(),J()===25||J()===23)return!0;if(e.isModifierKind(J())){if(cn(),qt())return!0}else if(qt())cn();else return!1;return J()===58||J()===27?!0:J()!==57?!1:(cn(),J()===58||J()===27||J()===23)}function yt(ke,bn,Yn,dr){var Mr=Li(16,nc,22,23),lt=Dc();kn();var Gt=K.createIndexSignature(Yn,dr,Mr,lt);return X(or(Gt,ke),bn)}function Tt(ke,bn,Yn){var dr=bi(),Mr=Ar(57),lt;if(J()===20||J()===29){var Gt=Bi(),ta=$l(4),pi=Zl(58,!0);lt=K.createMethodSignature(Yn,dr,Mr,Gt,ta,pi)}else{var pi=Dc();lt=K.createPropertySignature(Yn,dr,Mr,pi),J()===63&&(lt.initializer=Gc())}return kn(),X(or(lt,ke),bn)}function Ut(){if(J()===20||J()===29||J()===135||J()===147)return!0;for(var ke=!1;e.isModifierKind(J());)ke=!0,cn();return J()===22?!0:(Yi()&&(ke=!0,cn()),ke?J()===20||J()===29||J()===57||J()===58||J()===27||Lr():!1)}function ea(){if(J()===20||J()===29)return lr(172);if(J()===103&&Kr(zt))return lr(173);var ke=Fe(),bn=Bn(),Yn=sc();return wi(135)?Lt(ke,bn,void 0,Yn,170):wi(147)?Lt(ke,bn,void 0,Yn,171):Or()?yt(ke,bn,void 0,Yn):Tt(ke,bn,Yn)}function zt(){return cn(),J()===20||J()===29}function Ii(){return cn()===24}function ba(){switch(cn()){case 20:case 29:case 24:return!0}return!1}function wa(){var ke=Fe();return or(K.createTypeLiteralNode(Ui()),ke)}function Ui(){var ke;return Cr(18)?(ke=$r(4,ea),Cr(19)):ke=Na(),ke}function Fi(){return cn(),J()===39||J()===40?cn()===143:(J()===143&&cn(),J()===22&&Io()&&cn()===101)}function he(){var ke=Fe(),bn=di();Cr(101);var Yn=$o();return or(K.createTypeParameterDeclaration(bn,Yn,void 0),ke)}function un(){var ke=Fe();Cr(18);var bn;(J()===143||J()===39||J()===40)&&(bn=Zt(),bn.kind!==143&&Cr(143)),Cr(22);var Yn=he(),dr=ua(127)?$o():void 0;Cr(23);var Mr;(J()===57||J()===39||J()===40)&&(Mr=Zt(),Mr.kind!==57&&Cr(57));var lt=Dc();return nt(),Cr(19),or(K.createMappedTypeNode(bn,Yn,dr,Mr,lt),ke)}function Sn(){var ke=Fe();if(ua(25))return or(K.createRestTypeNode($o()),ke);var bn=$o();if(e.isJSDocNullableType(bn)&&bn.pos===bn.type.pos){var Yn=K.createOptionalTypeNode(bn.type);return e.setTextRange(Yn,bn),Yn.flags=bn.flags,Yn}return bn}function Tr(){return cn()===58||J()===57&&cn()===58}function Wr(){return J()===25?e.tokenIsIdentifierOrKeyword(cn())&&Tr():e.tokenIsIdentifierOrKeyword(J())&&Tr()}function Yt(){if(Kr(Wr)){var ke=Fe(),bn=Bn(),Yn=Ar(25),dr=di(),Mr=Ar(57);Cr(58);var lt=Sn(),Gt=K.createNamedTupleMember(Yn,dr,Mr,lt);return X(or(Gt,ke),bn)}return Sn()}function Ia(){var ke=Fe();return or(K.createTupleTypeNode(Li(21,Yt,22,23)),ke)}function hi(){var ke=Fe();Cr(20);var bn=$o();return Cr(21),or(K.createParenthesizedType(bn),ke)}function yo(){var ke;if(J()===126){var bn=Fe();cn();var Yn=or(K.createToken(126),bn);ke=vt([Yn],bn)}return ke}function Oo(){var ke=Fe(),bn=Bn(),Yn=yo(),dr=ua(103),Mr=Bi(),lt=$l(4),Gt=Zl(38,!1),ta=dr?K.createConstructorTypeNode(Yn,Mr,lt,Gt):K.createFunctionTypeNode(Mr,lt,Gt);return dr||(ta.modifiers=Yn),X(or(ta,ke),bn)}function ys(){var ke=Zt();return J()===24?void 0:ke}function Pi(ke){var bn=Fe();ke&&cn();var Yn=J()===110||J()===95||J()===104?Zt():Fs(J());return ke&&(Yn=or(K.createPrefixUnaryExpression(40,Yn),bn)),or(K.createLiteralTypeNode(Yn),bn)}function Po(){return cn(),J()===100}function Jn(){Ae|=1048576;var ke=Fe(),bn=ua(112);Cr(100),Cr(20);var Yn=$o();Cr(21);var dr=ua(24)?ge():void 0,Mr=Kn();return or(K.createImportTypeNode(Yn,dr,Mr,bn),ke)}function zo(){return cn(),J()===8||J()===9}function Es(){switch(J()){case 129:case 153:case 148:case 145:case 156:case 149:case 132:case 151:case 142:case 146:return dt(ys)||Te();case 66:f.reScanAsteriskEqualsToken();case 41:return ca();case 60:f.reScanQuestionToken();case 57:return To();case 98:return Pn();case 53:return ha();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return Pi();case 40:return Kr(zo)?Pi(!0):Te();case 114:return Zt();case 108:{var ke=Xt();return J()===138&&!f.hasPrecedingLineBreak()?et(ke):ke}case 112:return Kr(Po)?Jn():hs();case 18:return Kr(Fi)?un():wa();case 22:return Ia();case 20:return hi();case 100:return Jn();case 128:return Kr($c)?pc():Te();case 15:return Zo();default:return Te()}}function Rs(ke){switch(J()){case 129:case 153:case 148:case 145:case 156:case 132:case 143:case 149:case 152:case 114:case 151:case 104:case 108:case 112:case 142:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 146:case 41:case 57:case 53:case 25:case 136:case 100:case 128:case 14:case 15:return!0;case 98:return!ke;case 40:return!ke&&Kr(zo);case 20:return!ke&&Kr(pu);default:return qt()}}function pu(){return cn(),J()===21||Js(!1)||Rs()}function ol(){for(var ke=Fe(),bn=Es();!f.hasPrecedingLineBreak();)switch(J()){case 53:cn(),bn=or(K.createJSDocNonNullableType(bn),ke);break;case 57:if(Kr(Jo))return bn;cn(),bn=or(K.createJSDocNullableType(bn),ke);break;case 22:if(Cr(22),Rs()){var Yn=$o();Cr(23),bn=or(K.createIndexedAccessTypeNode(bn,Yn),ke)}else Cr(23),bn=or(K.createArrayTypeNode(bn),ke);break;default:return bn}return bn}function mu(ke){var bn=Fe();return Cr(ke),or(K.createTypeOperatorNode(ke,zc()),bn)}function fo(){var ke=Fe();return or(K.createTypeParameterDeclaration(Ma(),void 0,void 0),ke)}function tl(){var ke=Fe();return Cr(136),or(K.createInferTypeNode(fo()),ke)}function zc(){var ke=J();switch(ke){case 139:case 152:case 143:return mu(ke);case 136:return tl()}return ol()}function _u(ke){if(ic()){var bn=Oo(),Yn=void 0;return e.isFunctionTypeNode(bn)?Yn=ke?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Yn=ke?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,yr(bn,Yn),bn}}function qc(ke,bn,Yn){var dr=Fe(),Mr=ke===51,lt=ua(ke),Gt=lt&&_u(Mr)||bn();if(J()===ke||lt){for(var ta=[Gt];ua(ke);)ta.push(_u(Mr)||bn());Gt=or(Yn(vt(ta,dr)),dr)}return Gt}function gu(){return qc(50,zc,K.createIntersectionTypeNode)}function Xu(){return qc(51,gu,K.createUnionTypeNode)}function fd(){return cn(),J()===103}function ic(){return J()===29||J()===20&&Kr(Bd)?!0:J()===103||J()===126&&Kr(fd)}function Pu(){if(e.isModifierKind(J())&&sc(),qt()||J()===108)return cn(),!0;if(J()===22||J()===18){var ke=Ce.length;return Eu(),ke===Ce.length}return!1}function Bd(){return cn(),!!(J()===21||J()===25||Pu()&&(J()===58||J()===27||J()===57||J()===63||J()===21&&(cn(),J()===38)))}function Za(){var ke=Fe(),bn=qt()&&dt(da),Yn=$o();return bn?or(K.createTypePredicateNode(void 0,bn,Yn),ke):Yn}function da(){var ke=Ma();if(J()===138&&!f.hasPrecedingLineBreak())return cn(),ke}function pc(){var ke=Fe(),bn=Hr(128),Yn=J()===108?Xt():Ma(),dr=ua(138)?$o():void 0;return or(K.createTypePredicateNode(bn,Yn,dr),ke)}function $o(){return An(40960,Yu)}function Yu(ke){if(ic())return Oo();var bn=Fe(),Yn=Xu();if(!ke&&!f.hasPrecedingLineBreak()&&ua(94)){var dr=Yu(!0);Cr(57);var Mr=Yu();Cr(58);var lt=Yu();return or(K.createConditionalTypeNode(Yn,dr,Mr,lt),bn)}return Yn}function Dc(){return ua(58)?$o():void 0}function xf(){switch(J()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return Kr(ba);default:return qt()}}function es(){if(xf())return!0;switch(J()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 131:case 125:case 80:return!0;default:return Jl()?!0:qt()}}function If(){return J()!==18&&J()!==98&&J()!==84&&J()!==59&&es()}function Qs(){var ke=Zn();ke&&Le(!1);for(var bn=Fe(),Yn=Ks(),dr;dr=Ar(27);)Yn=$u(Yn,dr,Ks(),bn);return ke&&Le(!0),Yn}function Gc(){return ua(63)?Ks():void 0}function Ks(){if(rc())return _f();var ke=Qu()||dd();if(ke)return ke;var bn=Fe(),Yn=Zu(0);return Yn.kind===79&&J()===38?vu(bn,Yn,void 0):e.isLeftHandSideExpression(Yn)&&e.isAssignmentOperator(Ye())?$u(Yn,Zt(),Ks(),bn):md(Yn,bn)}function rc(){return J()===125?Ke()?!0:Kr(Pl):!1}function mf(){return cn(),!f.hasPrecedingLineBreak()&&qt()}function _f(){var ke=Fe();return cn(),!f.hasPrecedingLineBreak()&&(J()===41||es())?or(K.createYieldExpression(Ar(41),Ks()),ke):or(K.createYieldExpression(void 0,void 0),ke)}function vu(ke,bn,Yn){e.Debug.assert(J()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var dr=K.createParameterDeclaration(void 0,void 0,void 0,bn,void 0,void 0,void 0);or(dr,bn.pos);var Mr=vt([dr],dr.pos,dr.end),lt=Hr(38),Gt=Of(!!Yn),ta=K.createArrowFunction(Yn,void 0,Mr,void 0,lt,Gt);return $n(or(ta,ke))}function Qu(){var ke=gf();if(ke!==0)return ke===1?Rf(!0):dt(kf)}function gf(){return J()===20||J()===29||J()===130?Kr(Nf):J()===38?1:0}function Nf(){if(J()===130&&(cn(),f.hasPrecedingLineBreak()||J()!==20&&J()!==29))return 0;var ke=J(),bn=cn();if(ke===20){if(bn===21){var Yn=cn();switch(Yn){case 38:case 58:case 18:return 1;default:return 0}}if(bn===22||bn===18)return 2;if(bn===25||e.isModifierKind(bn)&&bn!==130&&Kr(Io))return 1;if(!qt()&&bn!==108)return 0;switch(cn()){case 58:return 1;case 57:return cn(),J()===58||J()===27||J()===63||J()===21?1:0;case 27:case 63:case 21:return 2}return 0}else{if(e.Debug.assert(ke===29),!qt())return 0;if(be===1){var dr=Kr(function(){var Mr=cn();if(Mr===94){var lt=cn();switch(lt){case 63:case 31:return!1;default:return!0}}else if(Mr===27)return!0;return!1});return dr?1:0}return 2}}function kf(){var ke=f.getTokenPos();if(!(pn!=null&&pn.has(ke))){var bn=Rf(!1);return bn||(pn||(pn=new e.Set)).add(ke),bn}}function dd(){if(J()===130&&Kr(pd)===1){var ke=Fe(),bn=Td(),Yn=Zu(0);return vu(ke,Yn,bn)}}function pd(){if(J()===130){if(cn(),f.hasPrecedingLineBreak()||J()===38)return 0;var ke=Zu(0);if(!f.hasPrecedingLineBreak()&&ke.kind===79&&J()===38)return 1}return 0}function Rf(ke){var bn=Fe(),Yn=Bn(),dr=Td(),Mr=e.some(dr,e.isAsyncModifier)?2:0,lt=Bi(),Gt;if(Cr(20)){if(Gt=dc(Mr),!Cr(21)&&!ke)return}else{if(!ke)return;Gt=Na()}var ta=Zl(58,!1);if(!(ta&&!ke&&Fn(ta))){var pi=ta&&e.isJSDocFunctionType(ta);if(!(!ke&&J()!==38&&(pi||J()!==18))){var ka=J(),Do=Hr(38),Is=ka===38||ka===18?Of(e.some(dr,e.isAsyncModifier)):Ma(),Lo=K.createArrowFunction(dr,lt,Gt,ta,Do,Is);return X(or(Lo,bn),Yn)}}}function Of(ke){if(J()===18)return ec(ke?2:0);if(J()!==26&&J()!==98&&J()!==84&&fl()&&!If())return ec(16|(ke?2:0));var bn=Re;Re=!1;var Yn=ke?On(Ks):ur(Ks);return Re=bn,Yn}function md(ke,bn){var Yn=Ar(57);if(!Yn)return ke;var dr;return or(K.createConditionalExpression(ke,Yn,An(T,Ks),dr=Hr(58),e.nodeIsPresent(dr)?Ks():$t(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),bn)}function Zu(ke){var bn=Fe(),Yn=zs();return Pf(ke,Yn,bn)}function Xc(ke){return ke===101||ke===158}function Pf(ke,bn,Yn){for(;;){Ye();var dr=e.getBinaryOperatorPrecedence(J()),Mr=J()===42?dr>=ke:dr>ke;if(!Mr||J()===101&&jn())break;if(J()===127){if(f.hasPrecedingLineBreak())break;cn(),bn=Yc(bn,$o())}else bn=$u(bn,Zt(),Zu(dr),Yn)}return bn}function Jl(){return jn()&&J()===101?!1:e.getBinaryOperatorPrecedence(J())>0}function $u(ke,bn,Yn,dr){return or(K.createBinaryExpression(ke,bn,Yn),dr)}function Yc(ke,bn){return or(K.createAsExpression(ke,bn),ke.pos)}function Ud(){var ke=Fe();return or(K.createPrefixUnaryExpression(J(),Gn(xs)),ke)}function Lc(){var ke=Fe();return or(K.createDeleteExpression(Gn(xs)),ke)}function mc(){var ke=Fe();return or(K.createTypeOfExpression(Gn(xs)),ke)}function oc(){var ke=Fe();return or(K.createVoidExpression(Gn(xs)),ke)}function Ti(){return J()===131?Me()?!0:Kr(Pl):!1}function vf(){var ke=Fe();return or(K.createAwaitExpression(Gn(xs)),ke)}function zs(){if(sl()){var ke=Fe(),bn=Mf();return J()===42?Pf(e.getBinaryOperatorPrecedence(J()),bn,ke):bn}var Yn=J(),dr=xs();if(J()===42){var ke=e.skipTrivia(Oe,dr.pos),Mr=dr.end;dr.kind===209?Xn(ke,Mr,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):Xn(ke,Mr,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(Yn))}return dr}function xs(){switch(J()){case 39:case 40:case 54:case 53:return Ud();case 89:return Lc();case 112:return mc();case 114:return oc();case 29:return Ba();case 131:if(Ti())return vf();default:return Mf()}}function sl(){switch(J()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 131:return!1;case 29:if(be!==1)return!1;default:return!0}}function Mf(){if(J()===45||J()===46){var ke=Fe();return or(K.createPrefixUnaryExpression(J(),Gn(wf)),ke)}else if(be===1&&J()===29&&Kr(Uo))return ae(!0);var bn=wf();if(e.Debug.assert(e.isLeftHandSideExpression(bn)),(J()===45||J()===46)&&!f.hasPrecedingLineBreak()){var Yn=J();return cn(),or(K.createPostfixUnaryExpression(bn,Yn),bn.pos)}return bn}function wf(){var ke=Fe(),bn;return J()===100?Kr(zt)?(Ae|=1048576,bn=Zt()):Kr(Ii)?(cn(),cn(),bn=or(K.createMetaProperty(100,di()),ke),Ae|=2097152):bn=c():bn=J()===106?h():c(),so(ke,bn)}function c(){var ke=Fe(),bn=Ds();return ni(ke,bn,!0)}function h(){var ke=Fe(),bn=Zt();if(J()===29){var Yn=Fe(),dr=dt(ki);dr!==void 0&&Xn(Yn,Fe(),e.Diagnostics.super_may_not_use_type_arguments)}return J()===20||J()===24||J()===22?bn:(Hr(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),or(K.createPropertyAccessExpression(bn,vs(!0,!0)),ke))}function ae(ke,bn,Yn){var dr=Fe(),Mr=pr(ke),lt;if(Mr.kind===278){var Gt=Nn(Mr),ta=void 0,pi=Gt[Gt.length-1];if((pi==null?void 0:pi.kind)===276&&!g(pi.openingElement.tagName,pi.closingElement.tagName)&&g(Mr.tagName,pi.closingElement.tagName)){var ka=pi.openingElement.end,Do=or(K.createJsxElement(pi.openingElement,vt([],ka,ka),or(K.createJsxClosingElement(or(K.createIdentifier(""),ka,ka)),ka,ka)),pi.openingElement.pos,ka);Gt=vt(Vr(Vr([],Gt.slice(0,Gt.length-1),!0),[Do],!1),Gt.pos,ka),ta=pi.closingElement}else ta=ma(Mr,ke),g(Mr.tagName,ta.tagName)||(Yn&&e.isJsxOpeningElement(Yn)&&g(ta.tagName,Yn.tagName)?yr(Mr.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(Oe,Mr.tagName)):yr(ta.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(Oe,Mr.tagName)));lt=or(K.createJsxElement(Mr,Gt,ta),dr)}else Mr.kind===281?lt=or(K.createJsxFragment(Mr,Nn(Mr),Ai(ke)),dr):(e.Debug.assert(Mr.kind===277),lt=Mr);if(ke&&J()===29){var Is=typeof bn=="undefined"?lt.pos:bn,Lo=dt(function(){return ae(!0,Is)});if(Lo){var ms=$t(27,!1);return e.setTextRangePosWidth(ms,Lo.pos,0),Xn(e.skipTrivia(Oe,Is),Lo.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),or(K.createBinaryExpression(lt,ms,Lo),dr)}}return lt}function je(){var ke=Fe(),bn=K.createJsxText(f.getTokenValue(),en===12);return en=f.scanJsxToken(),or(bn,ke)}function _n(ke,bn){switch(bn){case 1:if(e.isJsxOpeningFragment(ke))yr(ke,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var Yn=ke.tagName,dr=e.skipTrivia(Oe,Yn.pos);Xn(dr,Yn.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(Oe,ke.tagName))}return;case 30:case 7:return;case 11:case 12:return je();case 18:return Er(!1);case 29:return ae(!1,void 0,ke);default:return e.Debug.assertNever(bn)}}function Nn(ke){var bn=[],Yn=Fe(),dr=we;for(we|=16384;;){var Mr=_n(ke,en=f.reScanJsxToken());if(!Mr||(bn.push(Mr),e.isJsxOpeningElement(ke)&&(Mr==null?void 0:Mr.kind)===276&&!g(Mr.openingElement.tagName,Mr.closingElement.tagName)&&g(ke.tagName,Mr.closingElement.tagName)))break}return we=dr,vt(bn,Yn)}function er(){var ke=Fe();return or(K.createJsxAttributes($r(13,gt)),ke)}function pr(ke){var bn=Fe();if(Cr(29),J()===31)return qr(),or(K.createJsxOpeningFragment(),bn);var Yn=kr(),dr=Qe&131072?void 0:qd(),Mr=er(),lt;return J()===31?(qr(),lt=K.createJsxOpeningElement(Yn,dr,Mr)):(Cr(43),Cr(31,void 0,!1)&&(ke?cn():qr()),lt=K.createJsxSelfClosingElement(Yn,dr,Mr)),or(lt,bn)}function kr(){var ke=Fe();Dr();for(var bn=J()===108?Zt():di();ua(24);)bn=or(K.createPropertyAccessExpression(bn,vs(!0,!1)),ke);return bn}function Er(ke){var bn=Fe();if(Cr(18)){var Yn,dr;return J()!==19&&(Yn=Ar(25),dr=Qs()),ke?Cr(19):Cr(19,void 0,!1)&&qr(),or(K.createJsxExpression(Yn,dr),bn)}}function gt(){if(J()===18)return rt();Dr();var ke=Fe();return or(K.createJsxAttribute(di(),J()!==63?void 0:ft()===10?ps():Er(!0)),ke)}function rt(){var ke=Fe();Cr(18),Cr(25);var bn=Qs();return Cr(19),or(K.createJsxSpreadAttribute(bn),ke)}function ma(ke,bn){var Yn=Fe();Cr(30);var dr=kr();return Cr(31,void 0,!1)&&(bn||!g(ke.tagName,dr)?cn():qr()),or(K.createJsxClosingElement(dr),Yn)}function Ai(ke){var bn=Fe();return Cr(30),e.tokenIsIdentifierOrKeyword(J())&&yr(kr(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),Cr(31,void 0,!1)&&(ke?cn():qr()),or(K.createJsxJsxClosingFragment(),bn)}function Ba(){var ke=Fe();Cr(29);var bn=$o();Cr(31);var Yn=xs();return or(K.createTypeAssertion(bn,Yn),ke)}function _i(){return cn(),e.tokenIsIdentifierOrKeyword(J())||J()===22||Wa()}function No(){return J()===28&&Kr(_i)}function to(ke){if(ke.flags&32)return!0;if(e.isNonNullExpression(ke)){for(var bn=ke.expression;e.isNonNullExpression(bn)&&!(bn.flags&32);)bn=bn.expression;if(bn.flags&32){for(;e.isNonNullExpression(ke);)ke.flags|=32,ke=ke.expression;return!0}}return!1}function Ca(ke,bn,Yn){var dr=vs(!0,!0),Mr=Yn||to(bn),lt=Mr?K.createPropertyAccessChain(bn,Yn,dr):K.createPropertyAccessExpression(bn,dr);return Mr&&e.isPrivateIdentifier(lt.name)&&yr(lt.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),or(lt,ke)}function Qt(ke,bn,Yn){var dr;if(J()===23)dr=$t(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var Mr=gn(Qs);e.isStringOrNumericLiteralLike(Mr)&&(Mr.text=Va(Mr.text)),dr=Mr}Cr(23);var lt=Yn||to(bn)?K.createElementAccessChain(bn,Yn,dr):K.createElementAccessExpression(bn,dr);return or(lt,ke)}function ni(ke,bn,Yn){for(;;){var dr=void 0,Mr=!1;if(Yn&&No()?(dr=Hr(28),Mr=e.tokenIsIdentifierOrKeyword(J())):Mr=ua(24),Mr){bn=Ca(ke,bn,dr);continue}if(!dr&&J()===53&&!f.hasPrecedingLineBreak()){cn(),bn=or(K.createNonNullExpression(bn),ke);continue}if((dr||!Zn())&&ua(22)){bn=Qt(ke,bn,dr);continue}if(Wa()){bn=qa(ke,bn,dr,void 0);continue}return bn}}function Wa(){return J()===14||J()===15}function qa(ke,bn,Yn,dr){var Mr=K.createTaggedTemplateExpression(bn,dr,J()===14?(zn(),ps()):oo(!0));return(Yn||bn.flags&32)&&(Mr.flags|=32),Mr.questionDotToken=Yn,or(Mr,ke)}function so(ke,bn){for(;;){bn=ni(ke,bn,!0);var Yn=Ar(28);if(!(Qe&131072)&&(J()===29||J()===47)){var dr=dt(ki);if(dr){if(Wa()){bn=qa(ke,bn,Yn,dr);continue}var Mr=Vi(),lt=Yn||to(bn)?K.createCallChain(bn,Yn,dr,Mr):K.createCallExpression(bn,dr,Mr);bn=or(lt,ke);continue}}else if(J()===20){var Mr=Vi(),lt=Yn||to(bn)?K.createCallChain(bn,Yn,void 0,Mr):K.createCallExpression(bn,void 0,Mr);bn=or(lt,ke);continue}if(Yn){var Gt=$t(79,!1,e.Diagnostics.Identifier_expected);bn=or(K.createPropertyAccessChain(bn,Yn,Gt),ke)}break}return bn}function Vi(){Cr(20);var ke=Et(11,gi);return Cr(21),ke}function ki(){if(!(Qe&131072)&&ir()===29){cn();var ke=Et(20,$o);if(Cr(31))return ke&&Gs()?ke:void 0}}function Gs(){switch(J()){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 Ds(){switch(J()){case 8:case 9:case 10:case 14:return ps();case 108:case 106:case 104:case 110:case 95:return Zt();case 20:return ko();case 22:return Qc();case 18:return hu();case 130:if(!Kr(kc))break;return Dt();case 84:return vp();case 98:return Dt();case 103:return Ls();case 43:case 68:if(xn()===13)return ps();break;case 15:return oo(!1)}return Ma(e.Diagnostics.Expression_expected)}function ko(){var ke=Fe(),bn=Bn();Cr(20);var Yn=gn(Qs);return Cr(21),X(or(K.createParenthesizedExpression(Yn),ke),bn)}function Pt(){var ke=Fe();Cr(25);var bn=Ks();return or(K.createSpreadElement(bn),ke)}function wo(){return J()===25?Pt():J()===27?or(K.createOmittedExpression(),Fe()):Ks()}function gi(){return An(T,wo)}function Qc(){var ke=Fe();Cr(22);var bn=f.hasPrecedingLineBreak(),Yn=Et(15,wo);return Cr(23),or(K.createArrayLiteralExpression(Yn,bn),ke)}function Vd(){var ke=Fe(),bn=Bn();if(Ar(25)){var Yn=Ks();return X(or(K.createSpreadAssignment(Yn),ke),bn)}var dr=of(),Mr=sc();if(wi(135))return Lt(ke,bn,dr,Mr,170);if(wi(147))return Lt(ke,bn,dr,Mr,171);var lt=Ar(41),Gt=qt(),ta=bi(),pi=Ar(57),ka=Ar(53);if(lt||J()===20||J()===29)return gp(ke,bn,dr,Mr,lt,ta,pi,ka);var Do,Is=Gt&&J()!==58;if(Is){var Lo=Ar(63),ms=Lo?gn(Ks):void 0;Do=K.createShorthandPropertyAssignment(ta,ms),Do.equalsToken=Lo}else{Cr(58);var Us=gn(Ks);Do=K.createPropertyAssignment(ta,Us)}return Do.decorators=dr,Do.modifiers=Mr,Do.questionToken=pi,Do.exclamationToken=ka,X(or(Do,ke),bn)}function hu(){var ke=Fe(),bn=f.getTokenPos();Cr(18);var Yn=f.hasPrecedingLineBreak(),dr=Et(12,Vd,!0);if(!Cr(19)){var Mr=e.lastOrUndefined(Ce);Mr&&Mr.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(Mr,e.createDetachedDiagnostic(I,bn,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return or(K.createObjectLiteralExpression(dr,Yn),ke)}function Dt(){var ke=Zn();Le(!1);var bn=Fe(),Yn=Bn(),dr=sc();Cr(98);var Mr=Ar(41),lt=Mr?1:0,Gt=e.some(dr,e.isAsyncModifier)?2:0,ta=lt&&Gt?hr(hf):lt?ze(hf):Gt?On(hf):hf(),pi=Bi(),ka=$l(lt|Gt),Do=Zl(58,!1),Is=ec(lt|Gt);Le(ke);var Lo=K.createFunctionExpression(dr,Mr,ta,pi,ka,Do,Is);return X(or(Lo,bn),Yn)}function hf(){return Ur()?zi():void 0}function Ls(){var ke=Fe();if(Cr(103),ua(24)){var bn=di();return or(K.createMetaProperty(103,bn),ke)}for(var Yn=Fe(),dr=Ds(),Mr;;){dr=ni(Yn,dr,!1),Mr=dt(ki),Wa()&&(e.Debug.assert(!!Mr,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),dr=qa(Yn,dr,void 0,Mr),Mr=void 0);break}var lt;return J()===20?lt=Vi():Mr&&Xn(ke,f.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list),or(K.createNewExpression(dr,Mr,lt),ke)}function Dl(ke,bn){var Yn=Fe(),dr=Bn(),Mr=f.getTokenPos();if(Cr(18,bn)||ke){var lt=f.hasPrecedingLineBreak(),Gt=$r(1,dl);if(!Cr(19)){var ta=e.lastOrUndefined(Ce);ta&&ta.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(ta,e.createDetachedDiagnostic(I,Mr,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}var pi=X(or(K.createBlock(Gt,lt),Yn),dr);return J()===63&&(Mn(e.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses),cn()),pi}else{var Gt=Na();return X(or(K.createBlock(Gt,void 0),Yn),dr)}}function ec(ke,bn){var Yn=Ke();hn(!!(ke&1));var dr=Me();$e(!!(ke&2));var Mr=Re;Re=!1;var lt=Zn();lt&&Le(!1);var Gt=Dl(!!(ke&16),bn);return lt&&Le(!0),Re=Mr,hn(Yn),$e(dr),Gt}function Ff(){var ke=Fe(),bn=Bn();return Cr(26),X(or(K.createEmptyStatement(),ke),bn)}function dp(){var ke=Fe(),bn=Bn();Cr(99),Cr(20);var Yn=gn(Qs);Cr(21);var dr=dl(),Mr=ua(91)?dl():void 0;return X(or(K.createIfStatement(Yn,dr,Mr),ke),bn)}function Mu(){var ke=Fe(),bn=Bn();Cr(90);var Yn=dl();Cr(115),Cr(20);var dr=gn(Qs);return Cr(21),ua(26),X(or(K.createDoStatement(Yn,dr),ke),bn)}function Bc(){var ke=Fe(),bn=Bn();Cr(115),Cr(20);var Yn=gn(Qs);Cr(21);var dr=dl();return X(or(K.createWhileStatement(Yn,dr),ke),bn)}function Gf(){var ke=Fe(),bn=Bn();Cr(97);var Yn=Ar(131);Cr(20);var dr;J()!==26&&(J()===113||J()===119||J()===85?dr=tf(!0):dr=Wn(Qs));var Mr;if(Yn?Cr(158):ua(158)){var lt=gn(Ks);Cr(21),Mr=K.createForOfStatement(Yn,dr,lt,dl())}else if(ua(101)){var lt=gn(Qs);Cr(21),Mr=K.createForInStatement(dr,lt,dl())}else{Cr(26);var Gt=J()!==26&&J()!==21?gn(Qs):void 0;Cr(26);var ta=J()!==21?gn(Qs):void 0;Cr(21),Mr=K.createForStatement(dr,Gt,ta,dl())}return X(or(Mr,ke),bn)}function al(ke){var bn=Fe(),Yn=Bn();Cr(ke===244?81:86);var dr=Lr()?void 0:Ma();nt();var Mr=ke===244?K.createBreakStatement(dr):K.createContinueStatement(dr);return X(or(Mr,bn),Yn)}function Ic(){var ke=Fe(),bn=Bn();Cr(105);var Yn=Lr()?void 0:gn(Qs);return nt(),X(or(K.createReturnStatement(Yn),ke),bn)}function Wd(){var ke=Fe(),bn=Bn();Cr(116),Cr(20);var Yn=gn(Qs);Cr(21);var dr=Ue(16777216,dl);return X(or(K.createWithStatement(Yn,dr),ke),bn)}function yf(){var ke=Fe();Cr(82);var bn=gn(Qs);Cr(58);var Yn=$r(3,dl);return or(K.createCaseClause(bn,Yn),ke)}function Eo(){var ke=Fe();Cr(88),Cr(58);var bn=$r(3,dl);return or(K.createDefaultClause(bn),ke)}function wt(){return J()===82?yf():Eo()}function Kl(){var ke=Fe();Cr(18);var bn=$r(2,wt);return Cr(19),or(K.createCaseBlock(bn),ke)}function wp(){var ke=Fe(),bn=Bn();Cr(107),Cr(20);var Yn=gn(Qs);Cr(21);var dr=Kl();return X(or(K.createSwitchStatement(Yn,dr),ke),bn)}function ef(){var ke=Fe(),bn=Bn();Cr(109);var Yn=f.hasPrecedingLineBreak()?void 0:gn(Qs);return Yn===void 0&&(pe++,Yn=or(K.createIdentifier(""),Fe())),Xr()||Ot(Yn),X(or(K.createThrowStatement(Yn),ke),bn)}function Zc(){var ke=Fe(),bn=Bn();Cr(111);var Yn=Dl(!1),dr=J()===83?jd():void 0,Mr;return(!dr||J()===96)&&(Cr(96),Mr=Dl(!1)),X(or(K.createTryStatement(Yn,dr,Mr),ke),bn)}function jd(){var ke=Fe();Cr(83);var bn;ua(20)?(bn=Uf(),Cr(21)):bn=void 0;var Yn=Dl(!1);return or(K.createCatchClause(bn,Yn),ke)}function Bf(){var ke=Fe(),bn=Bn();return Cr(87),nt(),X(or(K.createDebuggerStatement(),ke),bn)}function _c(){var ke=Fe(),bn=Bn(),Yn,dr=J()===20,Mr=gn(Qs);return e.isIdentifier(Mr)&&ua(58)?Yn=K.createLabeledStatement(Mr,dl()):(Xr()||Ot(Mr),Yn=K.createExpressionStatement(Mr),dr&&(bn=!1)),X(or(Yn,ke),bn)}function $c(){return cn(),e.tokenIsIdentifierOrKeyword(J())&&!f.hasPrecedingLineBreak()}function Nc(){return cn(),J()===84&&!f.hasPrecedingLineBreak()}function kc(){return cn(),J()===98&&!f.hasPrecedingLineBreak()}function Pl(){return cn(),(e.tokenIsIdentifierOrKeyword(J())||J()===8||J()===9||J()===10)&&!f.hasPrecedingLineBreak()}function Bs(){for(;;)switch(J()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 150:return mf();case 140:case 141:return mp();case 126:case 130:case 134:case 121:case 122:case 123:case 143:if(cn(),f.hasPrecedingLineBreak())return!1;continue;case 155:return cn(),J()===18||J()===79||J()===93;case 100:return cn(),J()===10||J()===41||J()===18||e.tokenIsIdentifierOrKeyword(J());case 93:var ke=cn();if(ke===150&&(ke=Kr(cn)),ke===63||ke===41||ke===18||ke===88||ke===127)return!0;continue;case 124:cn();continue;default:return!1}}function As(){return Kr(Bs)}function fl(){switch(J()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return As()||Kr(ba);case 85:case 93:return As();case 130:case 134:case 118:case 140:case 141:case 150:case 155:return!0;case 123:case 121:case 122:case 124:case 143:return As()||!Kr($c);default:return es()}}function pp(){return cn(),Ur()||J()===18||J()===22}function Uc(){return Kr(pp)}function dl(){switch(J()){case 26:return Ff();case 18:return Dl(!1);case 113:return hd(Fe(),Bn(),void 0,void 0);case 119:if(Uc())return hd(Fe(),Bn(),void 0,void 0);break;case 98:return yd(Fe(),Bn(),void 0,void 0);case 84:return Sd(Fe(),Bn(),void 0,void 0);case 99:return dp();case 90:return Mu();case 115:return Bc();case 97:return Gf();case 86:return al(243);case 81:return al(244);case 105:return Ic();case 116:return Wd();case 107:return wp();case 109:return ef();case 111:case 83:case 96:return Zc();case 87:return Bf();case 59:return _d();case 130:case 118:case 150:case 140:case 141:case 134:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 143:case 155:if(As())return _d();break}return _c()}function nf(ke){return ke.kind===134}function _d(){var ke=e.some(Kr(function(){return of(),sc()}),nf);if(ke){var bn=el();if(bn)return bn}var Yn=Fe(),dr=Bn(),Mr=of(),lt=sc();if(ke){for(var Gt=0,ta=lt;Gt<ta.length;Gt++){var pi=ta[Gt];pi.flags|=8388608}return Ue(8388608,function(){return qo(Yn,dr,Mr,lt)})}else return qo(Yn,dr,Mr,lt)}function el(){return Ue(8388608,function(){var ke=ti(we);if(ke)return va(ke)})}function qo(ke,bn,Yn,dr){switch(J()){case 113:case 119:case 85:return hd(ke,bn,Yn,dr);case 98:return yd(ke,bn,Yn,dr);case 84:return Sd(ke,bn,Yn,dr);case 118:return bu(ke,bn,Yn,dr);case 150:return Os(ke,bn,Yn,dr);case 92:return no(ke,bn,Yn,dr);case 155:case 140:case 141:return Yd(ke,bn,Yn,dr);case 100:return ya(ke,bn,Yn,dr);case 93:switch(cn(),J()){case 88:case 63:return Bp(ke,bn,Yn,dr);case 127:return Br(ke,bn,Yn,dr);default:return Gp(ke,bn,Yn,dr)}default:if(Yn||dr){var Mr=$t(274,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(Mr,ke),Mr.decorators=Yn,Mr.modifiers=dr,Mr}return}}function mp(){return cn(),!f.hasPrecedingLineBreak()&&(qt()||J()===10)}function yu(ke,bn){if(J()!==18&&Lr()){nt();return}return ec(ke,bn)}function rf(){var ke=Fe();if(J()===27)return or(K.createOmittedExpression(),ke);var bn=Ar(25),Yn=Eu(),dr=Gc();return or(K.createBindingElement(bn,void 0,Yn,dr),ke)}function gd(){var ke=Fe(),bn=Ar(25),Yn=Ur(),dr=bi(),Mr;Yn&&J()!==58?(Mr=dr,dr=void 0):(Cr(58),Mr=Eu());var lt=Gc();return or(K.createBindingElement(bn,dr,Mr,lt),ke)}function Hd(){var ke=Fe();Cr(18);var bn=Et(9,gd);return Cr(19),or(K.createObjectBindingPattern(bn),ke)}function _p(){var ke=Fe();Cr(22);var bn=Et(10,rf);return Cr(23),or(K.createArrayBindingPattern(bn),ke)}function vd(){return J()===18||J()===22||J()===80||Ur()}function Eu(ke){return J()===22?_p():J()===18?Hd():zi(ke)}function Jd(){return Uf(!0)}function Uf(ke){var bn=Fe(),Yn=Bn(),dr=Eu(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations),Mr;ke&&dr.kind===79&&J()===53&&!f.hasPrecedingLineBreak()&&(Mr=Zt());var lt=Dc(),Gt=Xc(J())?void 0:Gc(),ta=K.createVariableDeclaration(dr,Mr,lt,Gt);return X(or(ta,bn),Yn)}function tf(ke){var bn=Fe(),Yn=0;switch(J()){case 113:break;case 119:Yn|=1;break;case 85:Yn|=2;break;default:e.Debug.fail()}cn();var dr;if(J()===158&&Kr(Ef))dr=Na();else{var Mr=jn();Ze(ke),dr=Et(8,ke?Uf:Jd),Ze(Mr)}return or(K.createVariableDeclarationList(dr,Yn),bn)}function Ef(){return Io()&&cn()===21}function hd(ke,bn,Yn,dr){var Mr=tf(!1);nt();var lt=K.createVariableStatement(dr,Mr);return lt.decorators=Yn,X(or(lt,ke),bn)}function yd(ke,bn,Yn,dr){var Mr=Me(),lt=e.modifiersToFlags(dr);Cr(98);var Gt=Ar(41),ta=lt&512?hf():zi(),pi=Gt?1:0,ka=lt&256?2:0,Do=Bi();lt&1&&$e(!0);var Is=$l(pi|ka),Lo=Zl(58,!1),ms=yu(pi|ka,e.Diagnostics.or_expected);$e(Mr);var Us=K.createFunctionDeclaration(Yn,dr,Gt,ta,Do,Is,Lo,ms);return X(or(Us,ke),bn)}function af(){if(J()===133)return Cr(133);if(J()===10&&Kr(cn)===20)return dt(function(){var ke=ps();return ke.text==="constructor"?ke:void 0})}function Kd(ke,bn,Yn,dr){return dt(function(){if(af()){var Mr=Bi(),lt=$l(0),Gt=Zl(58,!1),ta=yu(0,e.Diagnostics.or_expected),pi=K.createConstructorDeclaration(Yn,dr,lt,ta);return pi.typeParameters=Mr,pi.type=Gt,X(or(pi,ke),bn)}})}function gp(ke,bn,Yn,dr,Mr,lt,Gt,ta,pi){var ka=Mr?1:0,Do=e.some(dr,e.isAsyncModifier)?2:0,Is=Bi(),Lo=$l(ka|Do),ms=Zl(58,!1),Us=yu(ka|Do,pi),yl=K.createMethodDeclaration(Yn,dr,Mr,lt,Gt,Is,Lo,ms,Us);return yl.exclamationToken=ta,X(or(yl,ke),bn)}function Qa(ke,bn,Yn,dr,Mr,lt){var Gt=!lt&&!f.hasPrecedingLineBreak()?Ar(53):void 0,ta=Dc(),pi=An(45056,Gc);eo(Mr,ta,pi);var ka=K.createPropertyDeclaration(Yn,dr,Mr,lt||Gt,ta,pi);return X(or(ka,ke),bn)}function Rc(ke,bn,Yn,dr){var Mr=Ar(41),lt=bi(),Gt=Ar(57);return Mr||J()===20||J()===29?gp(ke,bn,Yn,dr,Mr,lt,Gt,void 0,e.Diagnostics.or_expected):Qa(ke,bn,Yn,dr,lt,Gt)}function Lt(ke,bn,Yn,dr,Mr){var lt=bi(),Gt=Bi(),ta=$l(0),pi=Zl(58,!1),ka=yu(0),Do=Mr===170?K.createGetAccessorDeclaration(Yn,dr,lt,ta,pi,ka):K.createSetAccessorDeclaration(Yn,dr,lt,ta,ka);return Do.typeParameters=Gt,pi&&Do.kind===171&&(Do.type=pi),X(or(Do,ke),bn)}function Vf(){var ke;if(J()===59)return!0;for(;e.isModifierKind(J());){if(ke=J(),e.isClassMemberModifier(ke))return!0;cn()}if(J()===41||(Yi()&&(ke=J(),cn()),J()===22))return!0;if(ke!==void 0){if(!e.isKeyword(ke)||ke===147||ke===135)return!0;switch(J()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return Lr()}}return!1}function wu(ke,bn,Yn,dr){Hr(124);var Mr=Ed();return X(or(K.createClassStaticBlockDeclaration(Yn,dr,Mr),ke),bn)}function Ed(){var ke=Ke(),bn=Me();hn(!1),$e(!0);var Yn=Dl(!1);return hn(ke),$e(bn),Yn}function Wf(){if(Me()&&J()===131){var ke=Fe(),bn=Ma(e.Diagnostics.Expression_expected);cn();var Yn=ni(ke,bn,!0);return so(ke,Yn)}return wf()}function bd(){var ke=Fe();if(ua(59)){var bn=Tn(Wf);return or(K.createDecorator(bn),ke)}}function of(){for(var ke=Fe(),bn,Yn;Yn=bd();)bn=e.append(bn,Yn);return bn&&vt(bn,ke)}function gc(ke,bn){var Yn=Fe(),dr=J();if(J()===85&&ke){if(!dt(Ho))return}else{if(bn&&J()===124&&Kr(nn))return;if(!gs())return}return or(K.createToken(dr),Yn)}function sc(ke,bn){for(var Yn=Fe(),dr,Mr;Mr=gc(ke,bn);)dr=e.append(dr,Mr);return dr&&vt(dr,Yn)}function Td(){var ke;if(J()===130){var bn=Fe();cn();var Yn=or(K.createToken(130),bn);ke=vt([Yn],bn)}return ke}function Fu(){var ke=Fe();if(J()===26)return cn(),or(K.createSemicolonClassElement(),ke);var bn=Bn(),Yn=of(),dr=sc(!0,!0);if(J()===124&&Kr(nn))return wu(ke,bn,Yn,dr);if(wi(135))return Lt(ke,bn,Yn,dr,170);if(wi(147))return Lt(ke,bn,Yn,dr,171);if(J()===133||J()===10){var Mr=Kd(ke,bn,Yn,dr);if(Mr)return Mr}if(Or())return yt(ke,bn,Yn,dr);if(e.tokenIsIdentifierOrKeyword(J())||J()===10||J()===8||J()===41||J()===22){var lt=e.some(dr,nf);if(lt){for(var Gt=0,ta=dr;Gt<ta.length;Gt++){var pi=ta[Gt];pi.flags|=8388608}return Ue(8388608,function(){return Rc(ke,bn,Yn,dr)})}else return Rc(ke,bn,Yn,dr)}if(Yn||dr){var ka=$t(79,!0,e.Diagnostics.Declaration_expected);return Qa(ke,bn,Yn,dr,ka,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function vp(){return Gu(Fe(),Bn(),void 0,void 0,224)}function Sd(ke,bn,Yn,dr){return Gu(ke,bn,Yn,dr,255)}function Gu(ke,bn,Yn,dr,Mr){var lt=Me();Cr(84);var Gt=sf(),ta=Bi();e.some(dr,e.isExportModifier)&&$e(!0);var pi=zd(),ka;Cr(18)?(ka=jf(),Cr(19)):ka=Na(),$e(lt);var Do=Mr===255?K.createClassDeclaration(Yn,dr,Gt,ta,pi,ka):K.createClassExpression(Yn,dr,Gt,ta,pi,ka);return X(or(Do,ke),bn)}function sf(){return Ur()&&!eu()?li(Ur()):void 0}function eu(){return J()===117&&Kr(Bo)}function zd(){if(Oc())return $r(22,Vc)}function Vc(){var ke=Fe(),bn=J();e.Debug.assert(bn===94||bn===117),cn();var Yn=Et(7,Dd);return or(K.createHeritageClause(bn,Yn),ke)}function Dd(){var ke=Fe(),bn=wf(),Yn=qd();return or(K.createExpressionWithTypeArguments(bn,Yn),ke)}function qd(){return J()===29?Li(20,$o,29,31):void 0}function Oc(){return J()===94||J()===117}function jf(){return $r(5,Fu)}function bu(ke,bn,Yn,dr){Cr(118);var Mr=Ma(),lt=Bi(),Gt=zd(),ta=Ui(),pi=K.createInterfaceDeclaration(Yn,dr,Mr,lt,Gt,ta);return X(or(pi,ke),bn)}function Os(ke,bn,Yn,dr){Cr(150);var Mr=Ma(),lt=Bi();Cr(63);var Gt=J()===137&&dt(ys)||$o();nt();var ta=K.createTypeAliasDeclaration(Yn,dr,Mr,lt,Gt);return X(or(ta,ke),bn)}function Fp(){var ke=Fe(),bn=Bn(),Yn=bi(),dr=gn(Gc);return X(or(K.createEnumMember(Yn,dr),ke),bn)}function no(ke,bn,Yn,dr){Cr(92);var Mr=Ma(),lt;Cr(18)?(lt=wr(function(){return Et(6,Fp)}),Cr(19)):lt=Na();var Gt=K.createEnumDeclaration(Yn,dr,Mr,lt);return X(or(Gt,ke),bn)}function Hf(){var ke=Fe(),bn;return Cr(18)?(bn=$r(1,dl),Cr(19)):bn=Na(),or(K.createModuleBlock(bn),ke)}function Ld(ke,bn,Yn,dr,Mr){var lt=Mr&16,Gt=Ma(),ta=ua(24)?Ld(Fe(),!1,void 0,void 0,4|lt):Hf(),pi=K.createModuleDeclaration(Yn,dr,Gt,ta,Mr);return X(or(pi,ke),bn)}function Xd(ke,bn,Yn,dr){var Mr=0,lt;J()===155?(lt=Ma(),Mr|=1024):(lt=ps(),lt.text=Va(lt.text));var Gt;J()===18?Gt=Hf():nt();var ta=K.createModuleDeclaration(Yn,dr,lt,Gt,Mr);return X(or(ta,ke),bn)}function Yd(ke,bn,Yn,dr){var Mr=0;if(J()===155)return Xd(ke,bn,Yn,dr);if(ua(141))Mr|=16;else if(Cr(140),J()===10)return Xd(ke,bn,Yn,dr);return Ld(ke,bn,Yn,dr,Mr)}function bf(){return J()===144&&Kr(v)}function v(){return cn()===20}function nn(){return cn()===18}function mr(){return cn()===43}function Br(ke,bn,Yn,dr){Cr(127),Cr(141);var Mr=Ma();nt();var lt=K.createNamespaceExportDeclaration(Mr);return lt.decorators=Yn,lt.modifiers=dr,X(or(lt,ke),bn)}function ya(ke,bn,Yn,dr){Cr(100);var Mr=f.getStartPos(),lt;qt()&&(lt=Ma());var Gt=!1;if(J()!==154&&(lt==null?void 0:lt.escapedText)==="type"&&(qt()||Pa())&&(Gt=!0,lt=qt()?Ma():void 0),lt&&!Ha())return ci(ke,bn,Yn,dr,lt,Gt);var ta;(lt||J()===41||J()===18)&&(ta=Xi(lt,Mr,Gt),Cr(154));var pi=pl();nt();var ka=K.createImportDeclaration(Yn,dr,ta,pi);return X(or(ka,ke),bn)}function Pa(){return J()===41||J()===18}function Ha(){return J()===27||J()===154}function ci(ke,bn,Yn,dr,Mr,lt){Cr(63);var Gt=ns();nt();var ta=K.createImportEqualsDeclaration(Yn,dr,lt,Mr,Gt),pi=X(or(ta,ke),bn);return pi}function Xi(ke,bn,Yn){var dr;return(!ke||ua(27))&&(dr=J()===41?Cs():Ll(267)),or(K.createImportClause(Yn,ke,dr),bn)}function ns(){return bf()?fs():Zi(!1)}function fs(){var ke=Fe();Cr(144),Cr(20);var bn=pl();return Cr(21),or(K.createExternalModuleReference(bn),ke)}function pl(){if(J()===10){var ke=ps();return ke.text=Va(ke.text),ke}else return Qs()}function Cs(){var ke=Fe();Cr(41),Cr(127);var bn=Ma();return or(K.createNamespaceImport(bn),ke)}function Ll(ke){var bn=Fe(),Yn=ke===267?K.createNamedImports(Li(23,Bu,18,19)):K.createNamedExports(Li(23,Wc,18,19));return or(Yn,bn)}function Wc(){return Al(273)}function Bu(){return Al(268)}function Al(ke){var bn=Fe(),Yn=e.isKeyword(J())&&!qt(),dr=f.getTokenPos(),Mr=f.getTextPos(),lt=di(),Gt,ta;J()===127?(Gt=lt,Cr(127),Yn=e.isKeyword(J())&&!qt(),dr=f.getTokenPos(),Mr=f.getTextPos(),ta=di()):ta=lt,ke===268&&Yn&&Xn(dr,Mr,e.Diagnostics.Identifier_expected);var pi=ke===268?K.createImportSpecifier(Gt,ta):K.createExportSpecifier(Gt,ta);return or(pi,bn)}function jc(ke){return or(K.createNamespaceExport(di()),ke)}function Gp(ke,bn,Yn,dr){var Mr=Me();$e(!0);var lt,Gt,ta=ua(150),pi=Fe();ua(41)?(ua(127)&&(lt=jc(pi)),Cr(154),Gt=pl()):(lt=Ll(271),(J()===154||J()===10&&!f.hasPrecedingLineBreak())&&(Cr(154),Gt=pl())),nt(),$e(Mr);var ka=K.createExportDeclaration(Yn,dr,ta,lt,Gt);return X(or(ka,ke),bn)}function Bp(ke,bn,Yn,dr){var Mr=Me();$e(!0);var lt;ua(63)?lt=!0:Cr(88);var Gt=Ks();nt(),$e(Mr);var ta=K.createExportAssignment(Yn,dr,lt,Gt);return X(or(ta,ke),bn)}function Up(ke){ke.externalModuleIndicator=e.forEach(ke.statements,Vp)||lf(ke)}function Vp(ke){return dm(ke,93)||e.isImportEqualsDeclaration(ke)&&e.isExternalModuleReference(ke.moduleReference)||e.isImportDeclaration(ke)||e.isExportAssignment(ke)||e.isExportDeclaration(ke)?ke:void 0}function lf(ke){return ke.flags&2097152?Cm(ke):void 0}function Cm(ke){return $m(ke)?ke:de(ke,Cm)}function dm(ke,bn){return e.some(ke.modifiers,function(Yn){return Yn.kind===bn})}function $m(ke){return e.isMetaProperty(ke)&&ke.keywordToken===100&&ke.name.escapedText==="meta"}var Wp;(function(ke){ke[ke.SourceElements=0]="SourceElements",ke[ke.BlockStatements=1]="BlockStatements",ke[ke.SwitchClauses=2]="SwitchClauses",ke[ke.SwitchClauseStatements=3]="SwitchClauseStatements",ke[ke.TypeMembers=4]="TypeMembers",ke[ke.ClassMembers=5]="ClassMembers",ke[ke.EnumMembers=6]="EnumMembers",ke[ke.HeritageClauseElement=7]="HeritageClauseElement",ke[ke.VariableDeclarations=8]="VariableDeclarations",ke[ke.ObjectBindingElements=9]="ObjectBindingElements",ke[ke.ArrayBindingElements=10]="ArrayBindingElements",ke[ke.ArgumentExpressions=11]="ArgumentExpressions",ke[ke.ObjectLiteralMembers=12]="ObjectLiteralMembers",ke[ke.JsxAttributes=13]="JsxAttributes",ke[ke.JsxChildren=14]="JsxChildren",ke[ke.ArrayLiteralMembers=15]="ArrayLiteralMembers",ke[ke.Parameters=16]="Parameters",ke[ke.JSDocParameters=17]="JSDocParameters",ke[ke.RestProperties=18]="RestProperties",ke[ke.TypeParameters=19]="TypeParameters",ke[ke.TypeArguments=20]="TypeArguments",ke[ke.TupleElementTypes=21]="TupleElementTypes",ke[ke.HeritageClauses=22]="HeritageClauses",ke[ke.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",ke[ke.Count=24]="Count"})(Wp||(Wp={}));var Ad;(function(ke){ke[ke.False=0]="False",ke[ke.True=1]="True",ke[ke.Unknown=2]="Unknown"})(Ad||(Ad={}));var Cd;(function(ke){function bn(ka,Do,Is){En("file.js",ka,99,void 0,1),f.setText(ka,Do,Is),en=f.scan();var Lo=Yn(),ms=Pe("file.js",99,1,!1,[],K.createToken(1),0),Us=e.attachFileToDiagnostics(Ce,ms);return Be&&(ms.jsDocDiagnostics=e.attachFileToDiagnostics(Be,ms)),i(),Lo?{jsDocTypeExpression:Lo,diagnostics:Us}:void 0}ke.parseJSDocTypeExpressionForTests=bn;function Yn(ka){var Do=Fe(),Is=(ka?ua:Cr)(18),Lo=Ue(4194304,Ko);(!ka||Is)&&za(19);var ms=K.createJSDocTypeExpression(Lo);return le(ms),or(ms,Do)}ke.parseJSDocTypeExpression=Yn;function dr(){for(var ka=Fe(),Do=ua(18),Is=Fe(),Lo=Zi(!1);J()===80;)gr(),Rn(),Lo=or(K.createJSDocMemberName(Lo,Ma()),Is);Do&&za(19);var ms=K.createJSDocNameReference(Lo);return le(ms),or(ms,ka)}ke.parseJSDocNameReference=dr;function Mr(ka,Do,Is){En("",ka,99,void 0,1);var Lo=Ue(4194304,function(){return pi(Do,Is)}),ms={languageVariant:0,text:ka},Us=e.attachFileToDiagnostics(Ce,ms);return i(),Lo?{jsDoc:Lo,diagnostics:Us}:void 0}ke.parseIsolatedJSDocComment=Mr;function lt(ka,Do,Is){var Lo=en,ms=Ce.length,Us=He,yl=Ue(4194304,function(){return pi(Do,Is)});return e.setParent(yl,ka),Qe&131072&&(Be||(Be=[]),Be.push.apply(Be,Ce)),en=Lo,Ce.length=ms,He=Us,yl}ke.parseJSDocComment=lt;var Gt;(function(ka){ka[ka.BeginningOfLine=0]="BeginningOfLine",ka[ka.SawAsterisk=1]="SawAsterisk",ka[ka.SavingComments=2]="SavingComments",ka[ka.SavingBackticks=3]="SavingBackticks"})(Gt||(Gt={}));var ta;(function(ka){ka[ka.Property=1]="Property",ka[ka.Parameter=2]="Parameter",ka[ka.CallbackParameter=4]="CallbackParameter"})(ta||(ta={}));function pi(ka,Do){ka===void 0&&(ka=0);var Is=Oe,Lo=Do===void 0?Is.length:ka+Do;if(Do=Lo-ka,e.Debug.assert(ka>=0),e.Debug.assert(ka<=Lo),e.Debug.assert(Lo<=Is.length),!D(Is,ka))return;var ms,Us,yl,Cl,Pc,tc=[],Tf=[];return f.scanRange(ka+3,Do-5,function(){var ht=1,ga,_a=ka-(Is.lastIndexOf(`
`,ka)+1)+4;function Fa(ru){ga||(ga=_a),tc.push(ru),_a+=ru.length}for(Rn();Hp(5););Hp(4)&&(ht=0,_a=0);e:for(;;){switch(J()){case 59:ht===0||ht===1?(zl(tc),Pc||(Pc=Fe()),Si(_(_a)),ht=0,ga=void 0):Fa(f.getTokenText());break;case 4:tc.push(f.getTokenText()),ht=0,_a=0;break;case 41:var ui=f.getTokenText();ht===1||ht===2?(ht=2,Fa(ui)):(ht=1,_a+=ui.length);break;case 5:var Gi=f.getTokenText();ht===2?tc.push(Gi):ga!==void 0&&_a+Gi.length>ga&&tc.push(Gi.slice(ga-_a)),_a+=Gi.length;break;case 1:break e;case 18:ht=2;var ds=f.getStartPos(),ml=f.getTextPos()-1,xl=qn(ml);if(xl){Cl||Ml(tc),Tf.push(or(K.createJSDocText(tc.join("")),Cl!=null?Cl:ka,ds)),Tf.push(xl),tc=[],Cl=f.getTextPos();break}default:ht=2,Fa(f.getTokenText());break}Rn()}zl(tc),Tf.length&&tc.length&&Tf.push(or(K.createJSDocText(tc.join("")),Cl!=null?Cl:ka,Pc)),Tf.length&&ms&&e.Debug.assertIsDefined(Pc,"having parsed tags implies that the end of the comment span should be set");var wl=ms&&vt(ms,Us,yl);return or(K.createJSDocComment(Tf.length?vt(Tf,ka,Pc):tc.length?tc.join(""):void 0,wl),ka,Lo)});function Ml(ht){for(;ht.length&&(ht[0]===`
`||ht[0]==="\r");)ht.shift()}function zl(ht){for(;ht.length&&ht[ht.length-1].trim()==="";)ht.pop()}function Jf(){for(;;){if(Rn(),J()===1)return!0;if(!(J()===5||J()===4))return!1}}function kt(){if(!((J()===5||J()===4)&&Kr(Jf)))for(;J()===5||J()===4;)Rn()}function El(){if((J()===5||J()===4)&&Kr(Jf))return"";for(var ht=f.hasPrecedingLineBreak(),ga=!1,_a="";ht&&J()===41||J()===5||J()===4;)_a+=f.getTokenText(),J()===4?(ht=!0,ga=!0,_a=""):J()===41&&(ht=!1),Rn();return ga?_a:""}function _(ht){e.Debug.assert(J()===59);var ga=f.getTokenPos();Rn();var _a=Zd(void 0),Fa=El(),ui;switch(_a.escapedText){case"author":ui=vc(ga,_a,ht,Fa);break;case"implements":ui=Bg(ga,_a,ht,Fa);break;case"augments":case"extends":ui=H_(ga,_a,ht,Fa);break;case"class":case"constructor":ui=hp(ga,K.createJSDocClassTag,_a,ht,Fa);break;case"public":ui=hp(ga,K.createJSDocPublicTag,_a,ht,Fa);break;case"private":ui=hp(ga,K.createJSDocPrivateTag,_a,ht,Fa);break;case"protected":ui=hp(ga,K.createJSDocProtectedTag,_a,ht,Fa);break;case"readonly":ui=hp(ga,K.createJSDocReadonlyTag,_a,ht,Fa);break;case"override":ui=hp(ga,K.createJSDocOverrideTag,_a,ht,Fa);break;case"deprecated":rn=!0,ui=hp(ga,K.createJSDocDeprecatedTag,_a,ht,Fa);break;case"this":ui=lc(ga,_a,ht,Fa);break;case"enum":ui=xm(ga,_a,ht,Fa);break;case"arg":case"argument":case"param":return Sf(ga,_a,2,ht);case"return":case"returns":ui=cf(ga,_a,ht,Fa);break;case"template":ui=_m(ga,_a,ht,Fa);break;case"type":ui=j_(ga,_a,ht,Fa);break;case"typedef":ui=pm(ga,_a,ht,Fa);break;case"callback":ui=Nm(ga,_a,ht,Fa);break;case"see":ui=e_(ga,_a,ht,Fa);break;default:ui=Nt(ga,_a,ht,Fa);break}return ui}function B(ht,ga,_a,Fa){return Fa||(_a+=ga-ht),Ee(_a,Fa.slice(_a))}function Ee(ht,ga){var _a=Fe(),Fa=[],ui=[],Gi,ds=0,ml=!0,xl;function wl(Hc){xl||(xl=ht),Fa.push(Hc),ht+=Hc.length}ga!==void 0&&(ga!==""&&wl(ga),ds=1);var ru=J();e:for(;;){switch(ru){case 4:ds=0,Fa.push(f.getTokenText()),ht=0;break;case 59:if(ds===3||ds===2&&(!ml||Kr(on))){Fa.push(f.getTokenText());break}f.setTextPos(f.getTextPos()-1);case 1:break e;case 5:if(ds===2||ds===3)wl(f.getTokenText());else{var ql=f.getTokenText();xl!==void 0&&ht+ql.length>xl&&Fa.push(ql.slice(xl-ht)),ht+=ql.length}break;case 18:ds=2;var yp=f.getStartPos(),Jp=f.getTextPos()-1,Kp=qn(Jp);Kp?(ui.push(or(K.createJSDocText(Fa.join("")),Gi!=null?Gi:_a,yp)),ui.push(Kp),Fa=[],Gi=f.getTextPos()):wl(f.getTokenText());break;case 61:ds===3?ds=2:ds=3,wl(f.getTokenText());break;case 41:if(ds===0){ds=1,ht+=1;break}default:ds!==3&&(ds=2),wl(f.getTokenText());break}ml=J()===5,ru=Rn()}if(Ml(Fa),zl(Fa),ui.length)return Fa.length&&ui.push(or(K.createJSDocText(Fa.join("")),Gi!=null?Gi:_a)),vt(ui,_a,f.getTextPos());if(Fa.length)return Fa.join("")}function on(){var ht=Rn();return ht===5||ht===4}function qn(ht){var ga=dt(Zr);if(ga){Rn(),kt();var _a=Fe(),Fa=e.tokenIsIdentifierOrKeyword(J())?Zi(!0):void 0;if(Fa)for(;J()===80;)gr(),Rn(),Fa=or(K.createJSDocMemberName(Fa,Ma()),_a);for(var ui=[];J()!==19&&J()!==4&&J()!==1;)ui.push(f.getTokenText()),Rn();var Gi=ga==="link"?K.createJSDocLink:ga==="linkcode"?K.createJSDocLinkCode:K.createJSDocLinkPlain;return or(Gi(Fa,ui.join("")),ht,f.getTextPos())}}function Zr(){if(El(),J()===18&&Rn()===59&&e.tokenIsIdentifierOrKeyword(Rn())){var ht=f.getTokenValue();if(ht==="link"||ht==="linkcode"||ht==="linkplain")return ht}}function Nt(ht,ga,_a,Fa){return or(K.createJSDocUnknownTag(ga,B(ht,Fe(),_a,Fa)),ht)}function Si(ht){ht&&(ms?ms.push(ht):(ms=[ht],Us=ht.pos),yl=ht.end)}function Yo(){return El(),J()===18?Yn():void 0}function nl(){var ht=Hp(22);ht&&kt();var ga=Hp(61),_a=t_();return ga&&Wt(61),ht&&(kt(),Ar(63)&&Qs(),Cr(23)),{name:_a,isBracketed:ht}}function nu(ht){switch(ht.kind){case 146:return!0;case 181:return nu(ht.elementType);default:return e.isTypeReferenceNode(ht)&&e.isIdentifier(ht.typeName)&&ht.typeName.escapedText==="Object"&&!ht.typeArguments}}function Sf(ht,ga,_a,Fa){var ui=Yo(),Gi=!ui;El();var ds=nl(),ml=ds.name,xl=ds.isBracketed,wl=El();Gi&&!Kr(Zr)&&(ui=Yo());var ru=B(ht,Fe(),Fa,wl),ql=_a!==4&&Kf(ui,ml,_a,Fa);ql&&(ui=ql,Gi=!0);var yp=_a===1?K.createJSDocPropertyTag(ga,ml,xl,ui,Gi,ru):K.createJSDocParameterTag(ga,ml,xl,ui,Gi,ru);return or(yp,ht)}function Kf(ht,ga,_a,Fa){if(ht&&nu(ht.type)){for(var ui=Fe(),Gi=void 0,ds=void 0;Gi=dt(function(){return zf(_a,Fa,ga)});)(Gi.kind===335||Gi.kind===342)&&(ds=e.append(ds,Gi));if(ds){var ml=or(K.createJSDocTypeLiteral(ds,ht.type.kind===181),ui);return or(K.createJSDocTypeExpression(ml),ui)}}}function cf(ht,ga,_a,Fa){e.some(ms,e.isJSDocReturnTag)&&Xn(ga.pos,f.getTokenPos(),e.Diagnostics._0_tag_already_specified,ga.escapedText);var ui=Yo();return or(K.createJSDocReturnTag(ga,ui,B(ht,Fe(),_a,Fa)),ht)}function j_(ht,ga,_a,Fa){e.some(ms,e.isJSDocTypeTag)&&Xn(ga.pos,f.getTokenPos(),e.Diagnostics._0_tag_already_specified,ga.escapedText);var ui=Yn(!0),Gi=_a!==void 0&&Fa!==void 0?B(ht,Fe(),_a,Fa):void 0;return or(K.createJSDocTypeTag(ga,ui,Gi),ht)}function e_(ht,ga,_a,Fa){var ui=Kr(function(){return Rn()===59&&e.tokenIsIdentifierOrKeyword(Rn())&&f.getTokenValue()==="link"}),Gi=ui?void 0:dr(),ds=_a!==void 0&&Fa!==void 0?B(ht,Fe(),_a,Fa):void 0;return or(K.createJSDocSeeTag(ga,Gi,ds),ht)}function vc(ht,ga,_a,Fa){var ui=Fe(),Gi=n_(),ds=f.getStartPos(),ml=B(ht,ds,_a,Fa);ml||(ds=f.getStartPos());var xl=typeof ml!="string"?vt(e.concatenate([or(Gi,ui,ds)],ml),ui):Gi.text+ml;return or(K.createJSDocAuthorTag(ga,xl),ht)}function n_(){for(var ht=[],ga=!1,_a=f.getToken();_a!==1&&_a!==4;){if(_a===29)ga=!0;else{if(_a===59&&!ga)break;if(_a===31&&ga){ht.push(f.getTokenText()),f.setTextPos(f.getTokenPos()+1);break}}ht.push(f.getTokenText()),_a=Rn()}return K.createJSDocText(ht.join(""))}function Bg(ht,ga,_a,Fa){var ui=jp();return or(K.createJSDocImplementsTag(ga,ui,B(ht,Fe(),_a,Fa)),ht)}function H_(ht,ga,_a,Fa){var ui=jp();return or(K.createJSDocAugmentsTag(ga,ui,B(ht,Fe(),_a,Fa)),ht)}function jp(){var ht=ua(18),ga=Fe(),_a=Ug(),Fa=qd(),ui=K.createExpressionWithTypeArguments(_a,Fa),Gi=or(ui,ga);return ht&&Cr(19),Gi}function Ug(){for(var ht=Fe(),ga=Zd();ua(24);){var _a=Zd();ga=or(K.createPropertyAccessExpression(ga,_a),ht)}return ga}function hp(ht,ga,_a,Fa,ui){return or(ga(_a,B(ht,Fe(),Fa,ui)),ht)}function lc(ht,ga,_a,Fa){var ui=Yn(!0);return kt(),or(K.createJSDocThisTag(ga,ui,B(ht,Fe(),_a,Fa)),ht)}function xm(ht,ga,_a,Fa){var ui=Yn(!0);return kt(),or(K.createJSDocEnumTag(ga,ui,B(ht,Fe(),_a,Fa)),ht)}function pm(ht,ga,_a,Fa){var ui,Gi=Yo();El();var ds=Im();kt();var ml=Ee(_a),xl;if(!Gi||nu(Gi.type)){for(var wl=void 0,ru=void 0,ql=void 0,yp=!1;wl=dt(function(){return Qd(_a)});)if(yp=!0,wl.kind===338)if(ru){Mn(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var Jp=e.lastOrUndefined(Ce);Jp&&e.addRelatedInfo(Jp,e.createDetachedDiagnostic(I,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}else ru=wl;else ql=e.append(ql,wl);if(yp){var Kp=Gi&&Gi.type.kind===181,Hc=K.createJSDocTypeLiteral(ql,Kp);Gi=ru&&ru.typeExpression&&!nu(ru.typeExpression.type)?ru.typeExpression:or(Hc,ht),xl=Gi.end}}xl=xl||ml!==void 0?Fe():((ui=ds!=null?ds:Gi)!==null&&ui!==void 0?ui:ga).end,ml||(ml=B(ht,xl,_a,Fa));var zp=K.createJSDocTypedefTag(ga,Gi,ds,ml);return or(zp,ht,xl)}function Im(ht){var ga=f.getTokenPos();if(e.tokenIsIdentifierOrKeyword(J())){var _a=Zd();if(ua(24)){var Fa=Im(!0),ui=K.createModuleDeclaration(void 0,void 0,_a,Fa,ht?4:void 0);return or(ui,ga)}return ht&&(_a.isInJSDocNamespace=!0),_a}}function mm(ht){for(var ga=Fe(),_a,Fa;_a=dt(function(){return zf(4,ht)});)Fa=e.append(Fa,_a);return vt(Fa||[],ga)}function Nm(ht,ga,_a,Fa){var ui=Im();kt();var Gi=Ee(_a),ds=mm(_a),ml=dt(function(){if(Hp(59)){var wl=_(_a);if(wl&&wl.kind===336)return wl}}),xl=or(K.createJSDocSignature(void 0,ds,ml),ht);return Gi||(Gi=B(ht,Fe(),_a,Fa)),or(K.createJSDocCallbackTag(ga,xl,ui,Gi),ht)}function r_(ht,ga){for(;!e.isIdentifier(ht)||!e.isIdentifier(ga);)if(!e.isIdentifier(ht)&&!e.isIdentifier(ga)&&ht.right.escapedText===ga.right.escapedText)ht=ht.left,ga=ga.left;else return!1;return ht.escapedText===ga.escapedText}function Qd(ht){return zf(1,ht)}function zf(ht,ga,_a){for(var Fa=!0,ui=!1;;)switch(Rn()){case 59:if(Fa){var Gi=Vg(ht,ga);return Gi&&(Gi.kind===335||Gi.kind===342)&&ht!==4&&_a&&(e.isIdentifier(Gi.name)||!r_(_a,Gi.name.left))?!1:Gi}ui=!1;break;case 4:Fa=!0,ui=!1;break;case 41:ui&&(Fa=!1),ui=!0;break;case 79:Fa=!1;break;case 1:return!1}}function Vg(ht,ga){e.Debug.assert(J()===59);var _a=f.getStartPos();Rn();var Fa=Zd();kt();var ui;switch(Fa.escapedText){case"type":return ht===1&&j_(_a,Fa);case"prop":case"property":ui=1;break;case"arg":case"argument":case"param":ui=6;break;default:return!1}return ht&ui?Sf(_a,Fa,ht,ga):!1}function rs(){var ht=Fe(),ga=Zd(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(!e.nodeIsMissing(ga))return or(K.createTypeParameterDeclaration(ga,void 0,void 0),ht)}function J_(){var ht=Fe(),ga=[];do{kt();var _a=rs();_a!==void 0&&ga.push(_a),El()}while(Hp(27));return vt(ga,ht)}function _m(ht,ga,_a,Fa){var ui=J()===18?Yn():void 0,Gi=J_();return or(K.createJSDocTemplateTag(ga,ui,Gi,B(ht,Fe(),_a,Fa)),ht)}function Hp(ht){return J()===ht?(Rn(),!0):!1}function t_(){var ht=Zd();for(ua(22)&&Cr(23);ua(24);){var ga=Zd();ua(22)&&Cr(23),ht=ho(ht,ga)}return ht}function Zd(ht){if(!e.tokenIsIdentifierOrKeyword(J()))return $t(79,!ht,ht||e.Diagnostics.Identifier_expected);pe++;var ga=f.getTokenPos(),_a=f.getTextPos(),Fa=J(),ui=Va(f.getTokenValue()),Gi=or(K.createIdentifier(ui,void 0,Fa),ga,_a);return Rn(),Gi}}})(Cd=p.JSDocParser||(p.JSDocParser={}))})(b||(b={}));var ie;(function(p){function f(Oe,te,Se,be){if(be=be||e.Debug.shouldAssert(2),K(Oe,te,Se,be),e.textChangeRangeIsUnchanged(Se))return Oe;if(Oe.statements.length===0)return b.parseSourceFile(Oe.fileName,te,Oe.languageVersion,void 0,!0,Oe.scriptKind);var Ce=Oe;e.Debug.assert(!Ce.hasBeenIncrementallyParsed),Ce.hasBeenIncrementallyParsed=!0,b.fixupParentReferences(Ce);var Be=Oe.text,De=I(Oe),en=me(Oe,Se);K(Oe,te,en,be),e.Debug.assert(en.span.start<=Se.span.start),e.Debug.assert(e.textSpanEnd(en.span)===e.textSpanEnd(Se.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(en))===e.textSpanEnd(e.textChangeRangeNewSpan(Se)));var fe=e.textChangeRangeNewSpan(en).length-en.span.length;M(Ce,en.span.start,e.textSpanEnd(en.span),e.textSpanEnd(e.textChangeRangeNewSpan(en)),fe,Be,te,be);var Ne=b.parseSourceFile(Oe.fileName,te,Oe.languageVersion,De,!0,Oe.scriptKind);return Ne.commentDirectives=T(Oe.commentDirectives,Ne.commentDirectives,en.span.start,e.textSpanEnd(en.span),fe,Be,te,be),Ne}p.updateSourceFile=f;function T(Oe,te,Se,be,Ce,Be,De,en){if(!Oe)return te;for(var fe,Ne=!1,qe=0,pe=Oe;qe<pe.length;qe++){var we=pe[qe],pn=we.range,Qe=we.type;if(pn.end<Se)fe=e.append(fe,we);else if(pn.pos>be){He();var Re={range:{pos:pn.pos+Ce,end:pn.end+Ce},type:Qe};fe=e.append(fe,Re),en&&e.Debug.assert(Be.substring(pn.pos,pn.end)===De.substring(Re.range.pos,Re.range.end))}}return He(),fe;function He(){Ne||(Ne=!0,fe?te&&fe.push.apply(fe,te):fe=te)}}function m(Oe,te,Se,be,Ce,Be){te?en(Oe):De(Oe);return;function De(fe){var Ne="";if(Be&&N(fe)&&(Ne=be.substring(fe.pos,fe.end)),fe._children&&(fe._children=void 0),e.setTextRangePosEnd(fe,fe.pos+Se,fe.end+Se),Be&&N(fe)&&e.Debug.assert(Ne===Ce.substring(fe.pos,fe.end)),de(fe,De,en),e.hasJSDocNodes(fe))for(var qe=0,pe=fe.jsDoc;qe<pe.length;qe++){var we=pe[qe];De(we)}x(fe,Be)}function en(fe){fe._children=void 0,e.setTextRangePosEnd(fe,fe.pos+Se,fe.end+Se);for(var Ne=0,qe=fe;Ne<qe.length;Ne++){var pe=qe[Ne];De(pe)}}}function N(Oe){switch(Oe.kind){case 10:case 8:case 79:return!0}return!1}function P(Oe,te,Se,be,Ce){e.Debug.assert(Oe.end>=te,"Adjusting an element that was entirely before the change range"),e.Debug.assert(Oe.pos<=Se,"Adjusting an element that was entirely after the change range"),e.Debug.assert(Oe.pos<=Oe.end);var Be=Math.min(Oe.pos,be),De=Oe.end>=Se?Oe.end+Ce:Math.min(Oe.end,be);e.Debug.assert(Be<=De),Oe.parent&&(e.Debug.assertGreaterThanOrEqual(Be,Oe.parent.pos),e.Debug.assertLessThanOrEqual(De,Oe.parent.end)),e.setTextRangePosEnd(Oe,Be,De)}function x(Oe,te){if(te){var Se=Oe.pos,be=function(en){e.Debug.assert(en.pos>=Se),Se=en.end};if(e.hasJSDocNodes(Oe))for(var Ce=0,Be=Oe.jsDoc;Ce<Be.length;Ce++){var De=Be[Ce];be(De)}de(Oe,be),e.Debug.assert(Se<=Oe.end)}}function M(Oe,te,Se,be,Ce,Be,De,en){fe(Oe);return;function fe(qe){if(e.Debug.assert(qe.pos<=qe.end),qe.pos>Se){m(qe,!1,Ce,Be,De,en);return}var pe=qe.end;if(pe>=te){if(qe.intersectsChange=!0,qe._children=void 0,P(qe,te,Se,be,Ce),de(qe,fe,Ne),e.hasJSDocNodes(qe))for(var we=0,pn=qe.jsDoc;we<pn.length;we++){var Qe=pn[we];fe(Qe)}x(qe,en);return}e.Debug.assert(pe<te)}function Ne(qe){if(e.Debug.assert(qe.pos<=qe.end),qe.pos>Se){m(qe,!0,Ce,Be,De,en);return}var pe=qe.end;if(pe>=te){qe.intersectsChange=!0,qe._children=void 0,P(qe,te,Se,be,Ce);for(var we=0,pn=qe;we<pn.length;we++){var Qe=pn[we];fe(Qe)}return}e.Debug.assert(pe<te)}}function me(Oe,te){for(var Se=1,be=te.span.start,Ce=0;be>0&&Ce<=Se;Ce++){var Be=z(Oe,be);e.Debug.assert(Be.pos<=be);var De=Be.pos;be=Math.max(0,De-1)}var en=e.createTextSpanFromBounds(be,e.textSpanEnd(te.span)),fe=te.newLength+(te.span.start-be);return e.createTextChangeRange(en,fe)}function z(Oe,te){var Se=Oe,be;if(de(Oe,De),be){var Ce=Be(be);Ce.pos>Se.pos&&(Se=Ce)}return Se;function Be(en){for(;;){var fe=e.getLastChild(en);if(fe)en=fe;else return en}}function De(en){if(!e.nodeIsMissing(en))if(en.pos<=te){if(en.pos>=Se.pos&&(Se=en),te<en.end)return de(en,De),!0;e.Debug.assert(en.end<=te),be=en}else return e.Debug.assert(en.pos>te),!0}}function K(Oe,te,Se,be){var Ce=Oe.text;if(Se&&(e.Debug.assert(Ce.length-Se.span.length+Se.newLength===te.length),be||e.Debug.shouldAssert(3))){var Be=Ce.substr(0,Se.span.start),De=te.substr(0,Se.span.start);e.Debug.assert(Be===De);var en=Ce.substring(e.textSpanEnd(Se.span),Ce.length),fe=te.substring(e.textSpanEnd(e.textChangeRangeNewSpan(Se)),te.length);e.Debug.assert(en===fe)}}function I(Oe){var te=Oe.statements,Se=0;e.Debug.assert(Se<te.length);var be=te[Se],Ce=-1;return{currentNode:function(De){return De!==Ce&&(be&&be.end===De&&Se<te.length-1&&(Se++,be=te[Se]),(!be||be.pos!==De)&&Be(De)),Ce=De,e.Debug.assert(!be||be.pos===De),be}};function Be(De){te=void 0,Se=-1,be=void 0,de(Oe,en,fe);return;function en(Ne){return De>=Ne.pos&&De<Ne.end?(de(Ne,en,fe),!0):!1}function fe(Ne){if(De>=Ne.pos&&De<Ne.end)for(var qe=0;qe<Ne.length;qe++){var pe=Ne[qe];if(pe){if(pe.pos===De)return te=Ne,Se=qe,be=pe,!0;if(pe.pos<De&&De<pe.end)return de(pe,en,fe),!0}}return!1}}}p.createSyntaxCursor=I;var Ae;(function(Oe){Oe[Oe.Value=-1]="Value"})(Ae||(Ae={}))})(ie||(ie={}));function q(p){return e.fileExtensionIs(p,".d.ts")}e.isDeclarationFileName=q;function oe(p,f){for(var T=[],m=0,N=e.getLeadingCommentRanges(f,0)||e.emptyArray;m<N.length;m++){var P=N[m],x=f.substring(P.pos,P.end);C(T,P,x)}p.pragmas=new e.Map;for(var M=0,me=T;M<me.length;M++){var z=me[M];if(p.pragmas.has(z.name)){var K=p.pragmas.get(z.name);K instanceof Array?K.push(z.args):p.pragmas.set(z.name,[K,z.args]);continue}p.pragmas.set(z.name,z.args)}}e.processCommentPragmas=oe;function se(p,f){p.checkJsDirective=void 0,p.referencedFiles=[],p.typeReferenceDirectives=[],p.libReferenceDirectives=[],p.amdDependencies=[],p.hasNoDefaultLib=!1,p.pragmas.forEach(function(T,m){switch(m){case"reference":{var N=p.referencedFiles,P=p.typeReferenceDirectives,x=p.libReferenceDirectives;e.forEach(e.toArray(T),function(K){var I=K.arguments,Ae=I.types,Oe=I.lib,te=I.path;K.arguments["no-default-lib"]?p.hasNoDefaultLib=!0:Ae?P.push({pos:Ae.pos,end:Ae.end,fileName:Ae.value}):Oe?x.push({pos:Oe.pos,end:Oe.end,fileName:Oe.value}):te?N.push({pos:te.pos,end:te.end,fileName:te.value}):f(K.range.pos,K.range.end-K.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)});break}case"amd-dependency":{p.amdDependencies=e.map(e.toArray(T),function(K){return{name:K.arguments.name,path:K.arguments.path}});break}case"amd-module":{if(T instanceof Array)for(var M=0,me=T;M<me.length;M++){var z=me[M];p.moduleName&&f(z.range.pos,z.range.end-z.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),p.moduleName=z.arguments.name}else p.moduleName=T.arguments.name;break}case"ts-nocheck":case"ts-check":{e.forEach(e.toArray(T),function(K){(!p.checkJsDirective||K.range.pos>p.checkJsDirective.pos)&&(p.checkJsDirective={enabled:m==="ts-check",end:K.range.end,pos:K.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}})}e.processPragmasIntoFields=se;var w=new e.Map;function R(p){if(w.has(p))return w.get(p);var f=new RegExp("(\\s"+p+`\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return w.set(p,f),f}var ne=/^\/\/\/\s*<(\S+)\s.*?\/>/im,U=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function C(p,f,T){var m=f.kind===2&&ne.exec(T);if(m){var N=m[1].toLowerCase(),P=e.commentPragmas[N];if(!P||!(P.kind&1))return;if(P.args){for(var x={},M=0,me=P.args;M<me.length;M++){var z=me[M],K=R(z.name),I=K.exec(T);if(!I&&!z.optional)return;if(I){var Ae=I[2]||I[3];if(z.captureSpan){var Oe=f.pos+I.index+I[1].length+1;x[z.name]={value:Ae,pos:Oe,end:Oe+Ae.length}}else x[z.name]=Ae}}p.push({name:N,args:{arguments:x,range:f}})}else p.push({name:N,args:{arguments:{},range:f}});return}var te=f.kind===2&&U.exec(T);if(te)return d(p,f,2,te);if(f.kind===3)for(var Se=/@(\S+)(\s+.*)?$/gim,be=void 0;be=Se.exec(T);)d(p,f,4,be)}function d(p,f,T,m){if(m){var N=m[1].toLowerCase(),P=e.commentPragmas[N];if(!(!P||!(P.kind&T))){var x=m[2],M=G(P,x);M!=="fail"&&p.push({name:N,args:{arguments:M,range:f}})}}}function G(p,f){if(!f)return{};if(!p.args)return{};for(var T=e.trimString(f).split(/\s+/),m={},N=0;N<p.args.length;N++){var P=p.args[N];if(!T[N]&&!P.optional)return"fail";if(P.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");m[P.name]=T[N]}return m}function g(p,f){return p.kind!==f.kind?!1:p.kind===79?p.escapedText===f.escapedText:p.kind===108?!0:p.name.escapedText===f.name.escapedText&&g(p.expression,f.expression)}e.tagNamesAreEquivalent=g})(vn||(vn={}));var vn;(function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var o=new e.Map(e.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));e.inverseJsxOptionMap=new e.Map(e.arrayFrom(e.mapIterator(o.entries(),function(Ye){var xn=Ye[0],an=Ye[1];return[""+an,xn]})));var ue=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["esnext.array","lib.es2019.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2021.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"]];e.libs=ue.map(function(Ye){return Ye[0]}),e.libMap=new e.Map(ue),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchFileKind.FixedChunkSizePolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_the_TypeScript_watch_mode_works},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchDirectoryKind.FixedChunkSizePolling})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority,fixedchunksize:e.PollingWatchKind.FixedChunkSize})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:Fe},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Fe},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:"n/a"},{name:"listFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:"false"},{name:"explainFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:"false"},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:"true"},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:"false"},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_compiler_performance_information_after_building,defaultValueDescription:"false"},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:"false"},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Projects,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it},{name:"locale",type:"string",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:e.Diagnostics.Platform_specific}],e.targetOptionDeclaration={name:"target",shortName:"t",type:new e.Map(e.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:"ES3"};var $=[{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",showInSimplifiedHelpView:!0,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},e.targetOptionDeclaration,{name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,esnext:e.ModuleKind.ESNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_what_module_code_is_generated},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:"false"},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:"false"},{name:"jsx",type:o,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_what_JSX_code_is_generated,defaultValueDescription:"undefined"},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,defaultValueDescription:"false",description:e.Diagnostics.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:"false"},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:"false",description:e.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0,defaultValueDescription:"n/a"},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_an_output_folder_for_all_emitted_files,defaultValueDescription:"n/a"},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_root_folder_within_your_source_files,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:"false",description:e.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:e.Diagnostics.Specify_the_folder_for_tsbuildinfo_incremental_compilation_files},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:"false",description:e.Diagnostics.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:"false"},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:"false"},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:"false"},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_all_strict_type_checking_options,defaultValueDescription:"false"},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Type_catch_clause_variables_as_unknown_instead_of_any},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_use_strict_is_always_emitted,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_a_local_variables_aren_t_read,defaultValueDescription:"false"},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:"false"},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:"false"},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Include_undefined_in_index_signature_results},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier},{name:"noPropertyAccessFromIndexSignature",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:"false"},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:e.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:e.Diagnostics.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:"false"},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:"n/a"},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:"false"},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:"false"},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:"false"},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files},{name:"jsxFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsModuleResolution:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Enable_importing_json_files,defaultValueDescription:"false"},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Backwards_Compatibility,paramType:e.Diagnostics.FILE,transpileOptionValue:void 0,defaultValueDescription:"n/a",description:e.Diagnostics.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:"false"},{name:"charset",type:"string",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:"false"},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Emit,description:e.Diagnostics.Set_the_newline_character_for_emitting_files,defaultValueDescription:e.Diagnostics.Platform_specific},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_truncating_types_in_error_messages,defaultValueDescription:"false"},{name:"noLib",type:"boolean",category:e.Diagnostics.Language_and_Environment,affectsProgramStructure:!0,description:e.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:e.Diagnostics.Editor_Support,description:e.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:"false"},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:"false"},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:"false"},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:"false"},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:"n/a"},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Specify_the_output_directory_for_generated_declaration_files,defaultValueDescription:"n/a"},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_all_d_ts_files,defaultValueDescription:"false"},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unused_labels,defaultValueDescription:"undefined"},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unreachable_code,defaultValueDescription:"undefined"},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:"false"},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:"false"},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:"false"},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:"0"},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:"false"},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:"false"},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:"false"},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins,category:e.Diagnostics.Editor_Support}];e.optionDeclarations=Vr(Vr([],e.commonOptionsWithBuild,!0),$,!0),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(Ye){return!!Ye.affectsSemanticDiagnostics}),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter(function(Ye){return!!Ye.affectsEmit}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(Ye){return!!Ye.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(Ye){return!!Ye.affectsSourceFile||!!Ye.affectsModuleResolution||!!Ye.affectsBindDiagnostics}),e.optionsAffectingProgramStructure=e.optionDeclarations.filter(function(Ye){return!!Ye.affectsProgramStructure}),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter(function(Ye){return e.hasProperty(Ye,"transpileOptionValue")}),e.optionsForBuild=[{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.buildOpts=Vr(Vr([],e.commonOptionsWithBuild,!0),e.optionsForBuild,!0),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"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean"}];function Y(Ye){var xn=new e.Map,an=new e.Map;return e.forEach(Ye,function(zn){xn.set(zn.name.toLowerCase(),zn),zn.shortName&&an.set(zn.shortName,zn.name)}),{optionsNameMap:xn,shortOptionNames:an}}e.createOptionNameMap=Y;var W;function re(){return W||(W=Y(e.optionDeclarations))}e.getOptionsNameMap=re;var ye={diagnostic:e.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:b};e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function O(Ye){return Ye&&Ye.enableAutoDiscovery!==void 0&&Ye.enable===void 0?{enable:Ye.enableAutoDiscovery,include:Ye.include||[],exclude:Ye.exclude||[]}:Ye}e.convertEnableAutoDiscoveryToEnable=O;function A(Ye){return D(Ye,e.createCompilerDiagnostic)}e.createCompilerDiagnosticForInvalidCustomType=A;function D(Ye,xn){var an=e.arrayFrom(Ye.type.keys()).map(function(zn){return"'"+zn+"'"}).join(", ");return xn(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+Ye.name,an)}function de(Ye,xn,an){return Qr(Ye,e.trimString(xn||""),an)}e.parseCustomTypeOption=de;function _e(Ye,xn,an){if(xn===void 0&&(xn=""),xn=e.trimString(xn),!e.startsWith(xn,"-")){if(xn==="")return[];var zn=xn.split(",");switch(Ye.element.type){case"number":return e.mapDefined(zn,function(ir){return wr(Ye.element,parseInt(ir),an)});case"string":return e.mapDefined(zn,function(ir){return wr(Ye.element,ir||"",an)});default:return e.mapDefined(zn,function(ir){return de(Ye.element,ir,an)})}}}e.parseListTypeOption=_e;function y(Ye){return Ye.name}function V(Ye,xn,an,zn){var ir;if(!((ir=xn.alternateMode)===null||ir===void 0)&&ir.getOptionsNameMap().optionsNameMap.has(Ye.toLowerCase()))return an(xn.alternateMode.diagnostic,Ye);var gr=e.getSpellingSuggestion(Ye,xn.optionDeclarations,y);return gr?an(xn.unknownDidYouMeanDiagnostic,zn||Ye,gr.name):an(xn.unknownOptionDiagnostic,zn||Ye)}function Z(Ye,xn,an){var zn={},ir,gr=[],Dr=[];return qr(xn),{options:zn,watchOptions:ir,fileNames:gr,errors:Dr};function qr(xt){for(var Kr=0;Kr<xt.length;){var dt=xt[Kr];if(Kr++,dt.charCodeAt(0)===64)ft(dt.slice(1));else if(dt.charCodeAt(0)===45){var Ur=dt.slice(dt.charCodeAt(1)===45?2:1),qt=ee(Ye.getOptionsNameMap,Ur,!0);if(qt)Kr=E(xt,Kr,Ye,qt,zn,Dr);else{var Cr=ee(f.getOptionsNameMap,Ur,!0);Cr?Kr=E(xt,Kr,f,Cr,ir||(ir={}),Dr):Dr.push(V(Ur,Ye,e.createCompilerDiagnostic,dt))}}else gr.push(dt)}}function ft(xt){var Kr=C(xt,an||function(Cr){return e.sys.readFile(Cr)});if(!e.isString(Kr)){Dr.push(Kr);return}for(var dt=[],Ur=0;;){for(;Ur<Kr.length&&Kr.charCodeAt(Ur)<=32;)Ur++;if(Ur>=Kr.length)break;var qt=Ur;if(Kr.charCodeAt(qt)===34){for(Ur++;Ur<Kr.length&&Kr.charCodeAt(Ur)!==34;)Ur++;Ur<Kr.length?(dt.push(Kr.substring(qt+1,Ur)),Ur++):Dr.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,xt))}else{for(;Kr.charCodeAt(Ur)>32;)Ur++;dt.push(Kr.substring(qt,Ur))}}qr(dt)}}e.parseCommandLineWorker=Z;function E(Ye,xn,an,zn,ir,gr){if(zn.isTSConfigOnly){var Dr=Ye[xn];Dr==="null"?(ir[zn.name]=void 0,xn++):zn.type==="boolean"?Dr==="false"?(ir[zn.name]=wr(zn,!1,gr),xn++):(Dr==="true"&&xn++,gr.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,zn.name))):(gr.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,zn.name)),Dr&&!e.startsWith(Dr,"-")&&xn++)}else if(!Ye[xn]&&zn.type!=="boolean"&&gr.push(e.createCompilerDiagnostic(an.optionTypeMismatchDiagnostic,zn.name,Oe(zn))),Ye[xn]!=="null")switch(zn.type){case"number":ir[zn.name]=wr(zn,parseInt(Ye[xn]),gr),xn++;break;case"boolean":var Dr=Ye[xn];ir[zn.name]=wr(zn,Dr!=="false",gr),(Dr==="false"||Dr==="true")&&xn++;break;case"string":ir[zn.name]=wr(zn,Ye[xn]||"",gr),xn++;break;case"list":var qr=_e(zn,Ye[xn],gr);ir[zn.name]=qr||[],qr&&xn++;break;default:ir[zn.name]=de(zn,Ye[xn],gr),xn++;break}else ir[zn.name]=void 0,xn++;return xn}e.compilerOptionsDidYouMeanDiagnostics={alternateMode:ye,getOptionsNameMap:re,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument};function H(Ye,xn){return Z(e.compilerOptionsDidYouMeanDiagnostics,Ye,xn)}e.parseCommandLine=H;function L(Ye,xn){return ee(re,Ye,xn)}e.getOptionFromName=L;function ee(Ye,xn,an){an===void 0&&(an=!1),xn=xn.toLowerCase();var zn=Ye(),ir=zn.optionsNameMap,gr=zn.shortOptionNames;if(an){var Dr=gr.get(xn);Dr!==void 0&&(xn=Dr)}return ir.get(xn)}var k;function b(){return k||(k=Y(e.buildOpts))}var ie={diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:re},q={alternateMode:ie,getOptionsNameMap:b,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function oe(Ye){var xn=Z(q,Ye),an=xn.options,zn=xn.watchOptions,ir=xn.fileNames,gr=xn.errors,Dr=an;return ir.length===0&&ir.push("."),Dr.clean&&Dr.force&&gr.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),Dr.clean&&Dr.verbose&&gr.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),Dr.clean&&Dr.watch&&gr.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),Dr.watch&&Dr.dry&&gr.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:Dr,watchOptions:zn,projects:ir,errors:gr}}e.parseBuildCommand=oe;function se(Ye){for(var xn=[],an=1;an<arguments.length;an++)xn[an-1]=arguments[an];var zn=e.createCompilerDiagnostic.apply(void 0,arguments);return zn.messageText}e.getDiagnosticText=se;function w(Ye,xn,an,zn,ir,gr){var Dr=C(Ye,function(xt){return an.readFile(xt)});if(!e.isString(Dr)){an.onUnRecoverableConfigFileDiagnostic(Dr);return}var qr=e.parseJsonText(Ye,Dr),ft=an.getCurrentDirectory();return qr.path=e.toPath(Ye,ft,e.createGetCanonicalFileName(an.useCaseSensitiveFileNames)),qr.resolvedPath=qr.path,qr.originalFileName=qr.fileName,Re(qr,an,e.getNormalizedAbsolutePath(e.getDirectoryPath(Ye),ft),xn,e.getNormalizedAbsolutePath(Ye,ft),void 0,gr,zn,ir)}e.getParsedCommandLineOfConfigFile=w;function R(Ye,xn){var an=C(Ye,xn);return e.isString(an)?ne(Ye,an):{config:{},error:an}}e.readConfigFile=R;function ne(Ye,xn){var an=e.parseJsonText(Ye,xn);return{config:K(an,an.parseDiagnostics,!1,void 0),error:an.parseDiagnostics.length?an.parseDiagnostics[0]:void 0}}e.parseConfigFileTextToJson=ne;function U(Ye,xn){var an=C(Ye,xn);return e.isString(an)?e.parseJsonText(Ye,an):{fileName:Ye,parseDiagnostics:[an]}}e.readJsonConfigFile=U;function C(Ye,xn){var an;try{an=xn(Ye)}catch(zn){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,Ye,zn.message)}return an===void 0?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,Ye):an}e.tryReadFile=C;function d(Ye){return e.arrayToMap(Ye,y)}var G={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1},g;function p(){return g||(g=Y(e.optionsForWatch))}var f={getOptionsNameMap:p,optionDeclarations:e.optionsForWatch,unknownOptionDiagnostic:e.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Watch_option_0_requires_a_value_of_type_1},T;function m(){return T||(T=d(e.optionDeclarations))}var N;function P(){return N||(N=d(e.optionsForWatch))}var x;function M(){return x||(x=d(e.typeAcquisitionDeclarations))}var me;function z(){return me===void 0&&(me={name:void 0,type:"object",elementOptions:d([{name:"compilerOptions",type:"object",elementOptions:m(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:P(),extraKeyDiagnostics:f},{name:"typingOptions",type:"object",elementOptions:M(),extraKeyDiagnostics:G},{name:"typeAcquisition",type:"object",elementOptions:M(),extraKeyDiagnostics:G},{name:"extends",type:"string",category:e.Diagnostics.File_Management},{name:"references",type:"list",element:{name:"references",type:"object"},category:e.Diagnostics.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:e.Diagnostics.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},e.compileOnSaveCommandLineOption])}),me}function K(Ye,xn,an,zn){var ir,gr=(ir=Ye.statements[0])===null||ir===void 0?void 0:ir.expression,Dr=an?z():void 0;if(gr&&gr.kind!==203){if(xn.push(e.createDiagnosticForNodeInSourceFile(Ye,gr,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,e.getBaseFileName(Ye.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(gr)){var qr=e.find(gr.elements,e.isObjectLiteralExpression);if(qr)return Ae(Ye,qr,xn,!0,Dr,zn)}return{}}return Ae(Ye,gr,xn,!0,Dr,zn)}function I(Ye,xn){var an;return Ae(Ye,(an=Ye.statements[0])===null||an===void 0?void 0:an.expression,xn,!0,void 0,void 0)}e.convertToObject=I;function Ae(Ye,xn,an,zn,ir,gr){if(!xn)return zn?{}:void 0;return xt(xn,ir);function Dr(dt){return ir&&ir.elementOptions===dt}function qr(dt,Ur,qt,Cr){for(var Jt=zn?{}:void 0,Ot=function(za){if(za.kind!==291)return an.push(e.createDiagnosticForNodeInSourceFile(Ye,za,e.Diagnostics.Property_assignment_expected)),"continue";za.questionToken&&an.push(e.createDiagnosticForNodeInSourceFile(Ye,za.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),Kr(za.name)||an.push(e.createDiagnosticForNodeInSourceFile(Ye,za.name,e.Diagnostics.String_literal_with_double_quotes_expected));var ua=e.isComputedNonLiteralName(za.name)?void 0:e.getTextOfPropertyName(za.name),Ar=ua&&e.unescapeLeadingUnderscores(ua),at=Ar&&Ur?Ur.get(Ar):void 0;Ar&&qt&&!at&&(Ur?an.push(V(Ar,qt,function(Zt,Rr,Lr){return e.createDiagnosticForNodeInSourceFile(Ye,za.name,Zt,Rr,Lr)})):an.push(e.createDiagnosticForNodeInSourceFile(Ye,za.name,qt.unknownOptionDiagnostic,Ar)));var Hr=xt(za.initializer,at);if(typeof Ar!="undefined"&&(zn&&(Jt[Ar]=Hr),gr&&(Cr||Dr(Ur)))){var Wt=te(at,Hr);Cr?Wt&&gr.onSetValidOptionKeyValueInParent(Cr,at,Hr):Dr(Ur)&&(Wt?gr.onSetValidOptionKeyValueInRoot(Ar,za.name,Hr,za.initializer):at||gr.onSetUnknownOptionKeyValueInRoot(Ar,za.name,Hr,za.initializer))}},ri=0,Ya=dt.properties;ri<Ya.length;ri++){var eo=Ya[ri];Ot(eo)}return Jt}function ft(dt,Ur){if(!zn){dt.forEach(function(qt){return xt(qt,Ur)});return}return e.filter(dt.map(function(qt){return xt(qt,Ur)}),function(qt){return qt!==void 0})}function xt(dt,Ur){var qt;switch(dt.kind){case 110:return Ar(Ur&&Ur.type!=="boolean"),ua(!0);case 95:return Ar(Ur&&Ur.type!=="boolean"),ua(!1);case 104:return Ar(Ur&&Ur.name==="extends"),ua(null);case 10:Kr(dt)||an.push(e.createDiagnosticForNodeInSourceFile(Ye,dt,e.Diagnostics.String_literal_with_double_quotes_expected)),Ar(Ur&&e.isString(Ur.type)&&Ur.type!=="string");var Cr=dt.text;if(Ur&&!e.isString(Ur.type)){var Jt=Ur;Jt.type.has(Cr.toLowerCase())||(an.push(D(Jt,function(at,Hr,Wt){return e.createDiagnosticForNodeInSourceFile(Ye,dt,at,Hr,Wt)})),qt=!0)}return ua(Cr);case 8:return Ar(Ur&&Ur.type!=="number"),ua(Number(dt.text));case 217:if(dt.operator!==40||dt.operand.kind!==8)break;return Ar(Ur&&Ur.type!=="number"),ua(-Number(dt.operand.text));case 203:Ar(Ur&&Ur.type!=="object");var Ot=dt;if(Ur){var ri=Ur,Ya=ri.elementOptions,eo=ri.extraKeyDiagnostics,za=ri.name;return ua(qr(Ot,Ya,eo,za))}else return ua(qr(Ot,void 0,void 0,void 0));case 202:return Ar(Ur&&Ur.type!=="list"),ua(ft(dt.elements,Ur&&Ur.element))}Ur?Ar(!0):an.push(e.createDiagnosticForNodeInSourceFile(Ye,dt,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));return;function ua(at){var Hr;if(!qt){var Wt=(Hr=Ur==null?void 0:Ur.extraValidation)===null||Hr===void 0?void 0:Hr.call(Ur,at);if(Wt){an.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,Vr([Ye,dt],Wt,!1)));return}}return at}function Ar(at){at&&(an.push(e.createDiagnosticForNodeInSourceFile(Ye,dt,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Ur.name,Oe(Ur))),qt=!0)}}function Kr(dt){return e.isStringLiteral(dt)&&e.isStringDoubleQuoted(dt,Ye)}}e.convertToObjectWorker=Ae;function Oe(Ye){return Ye.type==="list"?"Array":e.isString(Ye.type)?Ye.type:"string"}function te(Ye,xn){if(Ye){if(Ln(xn))return!0;if(Ye.type==="list")return e.isArray(xn);var an=e.isString(Ye.type)?Ye.type:"string";return typeof xn===an}return!1}function Se(Ye,xn,an){var zn,ir,gr,Dr=e.createGetCanonicalFileName(an.useCaseSensitiveFileNames),qr=e.map(e.filter(Ye.fileNames,!((ir=(zn=Ye.options.configFile)===null||zn===void 0?void 0:zn.configFileSpecs)===null||ir===void 0)&&ir.validatedIncludeSpecs?Be(xn,Ye.options.configFile.configFileSpecs.validatedIncludeSpecs,Ye.options.configFile.configFileSpecs.validatedExcludeSpecs,an):e.returnTrue),function(dt){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(xn,an.getCurrentDirectory()),e.getNormalizedAbsolutePath(dt,an.getCurrentDirectory()),Dr)}),ft=fe(Ye.options,{configFilePath:e.getNormalizedAbsolutePath(xn,an.getCurrentDirectory()),useCaseSensitiveFileNames:an.useCaseSensitiveFileNames}),xt=Ye.watchOptions&&Ne(Ye.watchOptions),Kr=Mt(Mt({compilerOptions:Mt(Mt({},be(ft)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:xt&&be(xt),references:e.map(Ye.projectReferences,function(dt){return Mt(Mt({},dt),{path:dt.originalPath?dt.originalPath:"",originalPath:void 0})}),files:e.length(qr)?qr:void 0},!((gr=Ye.options.configFile)===null||gr===void 0)&&gr.configFileSpecs?{include:Ce(Ye.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:Ye.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:Ye.compileOnSave?!0:void 0});return Kr}e.convertToTSConfig=Se;function be(Ye){return Mt({},e.arrayFrom(Ye.entries()).reduce(function(xn,an){var zn;return Mt(Mt({},xn),(zn={},zn[an[0]]=an[1],zn))},{}))}function Ce(Ye){if(e.length(Ye)){if(e.length(Ye)!==1)return Ye;if(Ye[0]!=="**/*")return Ye}}function Be(Ye,xn,an,zn){if(!xn)return e.returnTrue;var ir=e.getFileMatcherPatterns(Ye,an,xn,zn.useCaseSensitiveFileNames,zn.getCurrentDirectory()),gr=ir.excludePattern&&e.getRegexFromPattern(ir.excludePattern,zn.useCaseSensitiveFileNames),Dr=ir.includeFilePattern&&e.getRegexFromPattern(ir.includeFilePattern,zn.useCaseSensitiveFileNames);return Dr?gr?function(qr){return!(Dr.test(qr)&&!gr.test(qr))}:function(qr){return!Dr.test(qr)}:gr?function(qr){return gr.test(qr)}:e.returnTrue}function De(Ye){if(!(Ye.type==="string"||Ye.type==="number"||Ye.type==="boolean"||Ye.type==="object"))return Ye.type==="list"?De(Ye.element):Ye.type}function en(Ye,xn){return e.forEachEntry(xn,function(an,zn){if(an===Ye)return zn})}function fe(Ye,xn){return qe(Ye,re(),xn)}function Ne(Ye){return qe(Ye,p())}function qe(Ye,xn,an){var zn=xn.optionsNameMap,ir=new e.Map,gr=an&&e.createGetCanonicalFileName(an.useCaseSensitiveFileNames),Dr=function(ft){if(e.hasProperty(Ye,ft)){if(zn.has(ft)&&(zn.get(ft).category===e.Diagnostics.Command_line_Options||zn.get(ft).category===e.Diagnostics.Output_Formatting))return"continue";var xt=Ye[ft],Kr=zn.get(ft.toLowerCase());if(Kr){var dt=De(Kr);dt?Kr.type==="list"?ir.set(ft,xt.map(function(Ur){return en(Ur,dt)})):ir.set(ft,en(xt,dt)):an&&Kr.isFilePath?ir.set(ft,e.getRelativePathFromFile(an.configFilePath,e.getNormalizedAbsolutePath(xt,e.getDirectoryPath(an.configFilePath)),gr)):ir.set(ft,xt)}}};for(var qr in Ye)Dr(qr);return ir}function pe(Ye,xn,an){var zn=e.extend(Ye,e.defaultInitCompilerOptions),ir=fe(zn);return ft();function gr(xt){switch(xt.type){case"number":return 1;case"boolean":return!0;case"string":return xt.isFilePath?"./":"";case"list":return[];case"object":return{};default:var Kr=xt.type.keys().next();return Kr.done?e.Debug.fail("Expected 'option.type' to have entries."):Kr.value}}function Dr(xt){return Array(xt+1).join(" ")}function qr(xt){var Kr=xt.category,dt=xt.name,Ur=xt.isCommandLineOnly,qt=[e.Diagnostics.Command_line_Options,e.Diagnostics.Editor_Support,e.Diagnostics.Compiler_Diagnostics,e.Diagnostics.Backwards_Compatibility,e.Diagnostics.Watch_and_Build_Modes,e.Diagnostics.Output_Formatting];return!Ur&&Kr!==void 0&&(!qt.includes(Kr)||ir.has(dt))}function ft(){for(var xt=e.createMultiMap(),Kr=0,dt=e.optionDeclarations;Kr<dt.length;Kr++){var Ur=dt[Kr],qt=Ur.category;qr(Ur)&&xt.add(e.getLocaleSpecificMessage(qt),Ur)}var Cr=0,Jt=0,Ot=[];xt.forEach(function(Zt,Rr){Ot.length!==0&&Ot.push({value:""}),Ot.push({value:"/* "+Rr+" */"});for(var Lr=0,Xr=Zt;Lr<Xr.length;Lr++){var nt=Xr[Lr],vt=void 0;ir.has(nt.name)?vt='"'+nt.name+'": '+JSON.stringify(ir.get(nt.name))+((Jt+=1)===ir.size?"":","):vt='// "'+nt.name+'": '+JSON.stringify(gr(nt))+",",Ot.push({value:vt,description:"/* "+(nt.description&&e.getLocaleSpecificMessage(nt.description)||nt.name)+" */"}),Cr=Math.max(vt.length,Cr)}});var ri=Dr(2),Ya=[];Ya.push("{"),Ya.push(ri+'"compilerOptions": {'),Ya.push(""+ri+ri+"/* "+e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file)+" */"),Ya.push("");for(var eo=0,za=Ot;eo<za.length;eo++){var ua=za[eo],Ar=ua.value,at=ua.description,Hr=at===void 0?"":at;Ya.push(Ar&&""+ri+ri+Ar+(Hr&&Dr(Cr-Ar.length+2)+Hr))}if(xn.length){Ya.push(ri+"},"),Ya.push(ri+'"files": [');for(var Wt=0;Wt<xn.length;Wt++)Ya.push(""+ri+ri+JSON.stringify(xn[Wt])+(Wt===xn.length-1?"":","));Ya.push(ri+"]")}else Ya.push(ri+"}");return Ya.push("}"),Ya.join(an)+an}}e.generateTSConfig=pe;function we(Ye,xn){var an={},zn=re().optionsNameMap;for(var ir in Ye)e.hasProperty(Ye,ir)&&(an[ir]=pn(zn.get(ir.toLowerCase()),Ye[ir],xn));return an.configFilePath&&(an.configFilePath=xn(an.configFilePath)),an}e.convertToOptionsWithAbsolutePaths=we;function pn(Ye,xn,an){if(Ye&&!Ln(xn)){if(Ye.type==="list"){var zn=xn;if(Ye.element.isFilePath&&zn.length)return zn.map(an)}else if(Ye.isFilePath)return an(xn)}return xn}function Qe(Ye,xn,an,zn,ir,gr,Dr,qr,ft){return fn(Ye,void 0,xn,an,zn,ft,ir,gr,Dr,qr)}e.parseJsonConfigFileContent=Qe;function Re(Ye,xn,an,zn,ir,gr,Dr,qr,ft){return fn(void 0,Ye,xn,an,zn,ft,ir,gr,Dr,qr)}e.parseJsonSourceFileConfigFileContent=Re;function He(Ye,xn){xn&&Object.defineProperty(Ye,"configFile",{enumerable:!1,writable:!1,value:xn})}e.setConfigFileInOptions=He;function Ln(Ye){return Ye==null}function Un(Ye,xn){return e.getDirectoryPath(e.getNormalizedAbsolutePath(Ye,xn))}function fn(Ye,xn,an,zn,ir,gr,Dr,qr,ft,xt){ir===void 0&&(ir={}),qr===void 0&&(qr=[]),ft===void 0&&(ft=[]),e.Debug.assert(Ye===void 0&&xn!==void 0||Ye!==void 0&&xn===void 0);var Kr=[],dt=Vn(Ye,xn,an,zn,Dr,qr,Kr,xt),Ur=dt.raw,qt=e.extend(ir,dt.options||{}),Cr=gr&&dt.watchOptions?e.extend(gr,dt.watchOptions):dt.watchOptions||gr;qt.configFilePath=Dr&&e.normalizeSlashes(Dr);var Jt=ri();xn&&(xn.configFileSpecs=Jt),He(qt,xn);var Ot=e.normalizePath(Dr?Un(Dr,zn):zn);return{options:qt,watchOptions:Cr,fileNames:Ya(Ot),projectReferences:eo(Ot),typeAcquisition:dt.typeAcquisition||gn(),raw:Ur,errors:Kr,wildcardDirectories:Bn(Jt,Ot,an.useCaseSensitiveFileNames),compileOnSave:!!Ur.compileOnSave};function ri(){var Hr=Ar("references",function(Yi){return typeof Yi=="object"},"object"),Wt=za(ua("files"));if(Wt){var Zt=Hr==="no-prop"||e.isArray(Hr)&&Hr.length===0,Rr=e.hasProperty(Ur,"extends");if(Wt.length===0&&Zt&&!Rr)if(xn){var Lr=Dr||"tsconfig.json",Xr=e.Diagnostics.The_files_list_in_config_file_0_is_empty,nt=e.firstDefined(e.getTsConfigPropArray(xn,"files"),function(Yi){return Yi.initializer}),vt=nt?e.createDiagnosticForNodeInSourceFile(xn,nt,Xr,Lr):e.createCompilerDiagnostic(Xr,Lr);Kr.push(vt)}else at(e.Diagnostics.The_files_list_in_config_file_0_is_empty,Dr||"tsconfig.json")}var or=za(ua("include")),$t=ua("exclude"),Va=za($t);if($t==="no-prop"&&Ur.compilerOptions){var li=Ur.compilerOptions.outDir,zi=Ur.compilerOptions.declarationDir;(li||zi)&&(Va=[li,zi].filter(function(Yi){return!!Yi}))}Wt===void 0&&or===void 0&&(or=["**/*"]);var Ma,di;return or&&(Ma=cr(or,Kr,!0,xn,"include")),Va&&(di=cr(Va,Kr,!1,xn,"exclude")),{filesSpecs:Wt,includeSpecs:or,excludeSpecs:Va,validatedFilesSpec:e.filter(Wt,e.isString),validatedIncludeSpecs:Ma,validatedExcludeSpecs:di,pathPatterns:void 0}}function Ya(Hr){var Wt=Me(Jt,Hr,qt,an,ft);return In(Wt,X(Ur),qr)&&Kr.push(i(Jt,Dr)),Wt}function eo(Hr){var Wt,Zt=Ar("references",function(nt){return typeof nt=="object"},"object");if(e.isArray(Zt))for(var Rr=0,Lr=Zt;Rr<Lr.length;Rr++){var Xr=Lr[Rr];typeof Xr.path!="string"?at(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Wt||(Wt=[])).push({path:e.getNormalizedAbsolutePath(Xr.path,Hr),originalPath:Xr.path,prepend:Xr.prepend,circular:Xr.circular})}return Wt}function za(Hr){return e.isArray(Hr)?Hr:void 0}function ua(Hr){return Ar(Hr,e.isString,"string")}function Ar(Hr,Wt,Zt){if(e.hasProperty(Ur,Hr)&&!Ln(Ur[Hr]))if(e.isArray(Ur[Hr])){var Rr=Ur[Hr];return!xn&&!e.every(Rr,Wt)&&Kr.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Hr,Zt)),Rr}else return at(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Hr,"Array"),"not-array";return"no-prop"}function at(Hr,Wt,Zt){xn||Kr.push(e.createCompilerDiagnostic(Hr,Wt,Zt))}}function En(Ye){return Ye.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function i(Ye,xn){var an=Ye.includeSpecs,zn=Ye.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,xn||"tsconfig.json",JSON.stringify(an||[]),JSON.stringify(zn||[]))}function In(Ye,xn,an){return Ye.length===0&&xn&&(!an||an.length===0)}function X(Ye){return!e.hasProperty(Ye,"files")&&!e.hasProperty(Ye,"references")}e.canJsonReportNoInputFiles=X;function rn(Ye,xn,an,zn,ir){var gr=zn.length;return In(Ye,ir)?zn.push(i(an,xn)):e.filterMutate(zn,function(Dr){return!En(Dr)}),gr!==zn.length}e.updateErrorForNoInputFiles=rn;function $n(Ye){return!!Ye.options}function Vn(Ye,xn,an,zn,ir,gr,Dr,qr){var ft;zn=e.normalizeSlashes(zn);var xt=e.getNormalizedAbsolutePath(ir||"",zn);if(gr.indexOf(xt)>=0)return Dr.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,Vr(Vr([],gr,!0),[xt],!1).join(" -> "))),{raw:Ye||I(xn,Dr)};var Kr=Ye?le(Ye,an,zn,ir,Dr):Pe(xn,an,zn,ir,Dr);if(!((ft=Kr.options)===null||ft===void 0)&&ft.paths&&(Kr.options.pathsBasePath=zn),Kr.extendedConfigPath){gr=gr.concat([xt]);var dt=Ze(xn,Kr.extendedConfigPath,an,gr,Dr,qr);if(dt&&$n(dt)){var Ur=dt.raw,qt=Kr.raw,Cr,Jt=function(Ot){!qt[Ot]&&Ur[Ot]&&(qt[Ot]=e.map(Ur[Ot],function(ri){return e.isRootedDiskPath(ri)?ri:e.combinePaths(Cr||(Cr=e.convertToRelativePath(e.getDirectoryPath(Kr.extendedConfigPath),zn,e.createGetCanonicalFileName(an.useCaseSensitiveFileNames))),ri)}))};Jt("include"),Jt("exclude"),Jt("files"),qt.compileOnSave===void 0&&(qt.compileOnSave=Ur.compileOnSave),Kr.options=e.assign({},dt.options,Kr.options),Kr.watchOptions=Kr.watchOptions&&dt.watchOptions?e.assign({},dt.watchOptions,Kr.watchOptions):Kr.watchOptions||dt.watchOptions}}return Kr}function le(Ye,xn,an,zn,ir){e.hasProperty(Ye,"excludes")&&ir.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var gr=Ue(Ye.compilerOptions,an,ir,zn),Dr=Wn(Ye.typeAcquisition||Ye.typingOptions,an,ir,zn),qr=ze(Ye.watchOptions,an,ir);Ye.compileOnSave=hn(Ye,an,ir);var ft;if(Ye.extends)if(!e.isString(Ye.extends))ir.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));else{var xt=zn?Un(zn,an):an;ft=xe(Ye.extends,xn,xt,ir,e.createCompilerDiagnostic)}return{raw:Ye,options:gr,watchOptions:qr,typeAcquisition:Dr,extendedConfigPath:ft}}function Pe(Ye,xn,an,zn,ir){var gr=An(zn),Dr,qr,ft,xt,Kr={onSetValidOptionKeyValueInParent:function(Ur,qt,Cr){var Jt;switch(Ur){case"compilerOptions":Jt=gr;break;case"watchOptions":Jt=ft||(ft={});break;case"typeAcquisition":Jt=Dr||(Dr=gn(zn));break;case"typingOptions":Jt=qr||(qr=gn(zn));break;default:e.Debug.fail("Unknown option")}Jt[qt.name]=ur(qt,an,Cr)},onSetValidOptionKeyValueInRoot:function(Ur,qt,Cr,Jt){switch(Ur){case"extends":var Ot=zn?Un(zn,an):an;xt=xe(Cr,xn,Ot,ir,function(ri,Ya){return e.createDiagnosticForNodeInSourceFile(Ye,Jt,ri,Ya)});return}},onSetUnknownOptionKeyValueInRoot:function(Ur,qt,Cr,Jt){Ur==="excludes"&&ir.push(e.createDiagnosticForNodeInSourceFile(Ye,qt,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},dt=K(Ye,ir,!0,Kr);return Dr||(qr?Dr=qr.enableAutoDiscovery!==void 0?{enable:qr.enableAutoDiscovery,include:qr.include,exclude:qr.exclude}:qr:Dr=gn(zn)),{raw:dt,options:gr,watchOptions:ft,typeAcquisition:Dr,extendedConfigPath:xt}}function xe(Ye,xn,an,zn,ir){if(Ye=e.normalizeSlashes(Ye),e.isRootedDiskPath(Ye)||e.startsWith(Ye,"./")||e.startsWith(Ye,"../")){var gr=e.getNormalizedAbsolutePath(Ye,an);if(!xn.fileExists(gr)&&!e.endsWith(gr,".json")&&(gr=gr+".json",!xn.fileExists(gr))){zn.push(ir(e.Diagnostics.File_0_not_found,Ye));return}return gr}var Dr=e.nodeModuleNameResolver(Ye,e.combinePaths(an,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},xn,void 0,void 0,!0);if(Dr.resolvedModule)return Dr.resolvedModule.resolvedFileName;zn.push(ir(e.Diagnostics.File_0_not_found,Ye))}function Ze(Ye,xn,an,zn,ir,gr){var Dr,qr=an.useCaseSensitiveFileNames?xn:e.toFileNameLowerCase(xn),ft,xt,Kr;if(gr&&(ft=gr.get(qr))?(xt=ft.extendedResult,Kr=ft.extendedConfig):(xt=U(xn,function(dt){return an.readFile(dt)}),xt.parseDiagnostics.length||(Kr=Vn(void 0,xt,an,e.getDirectoryPath(xn),e.getBaseFileName(xn),zn,ir,gr)),gr&&gr.set(qr,{extendedResult:xt,extendedConfig:Kr})),Ye&&(Ye.extendedSourceFiles=[xt.fileName],xt.extendedSourceFiles&&(Dr=Ye.extendedSourceFiles).push.apply(Dr,xt.extendedSourceFiles)),xt.parseDiagnostics.length){ir.push.apply(ir,xt.parseDiagnostics);return}return Kr}function hn(Ye,xn,an){if(!e.hasProperty(Ye,e.compileOnSaveCommandLineOption.name))return!1;var zn=On(e.compileOnSaveCommandLineOption,Ye.compileOnSave,xn,an);return typeof zn=="boolean"&&zn}function Le(Ye,xn,an){var zn=[],ir=Ue(Ye,xn,zn,an);return{options:ir,errors:zn}}e.convertCompilerOptionsFromJson=Le;function $e(Ye,xn,an){var zn=[],ir=Wn(Ye,xn,zn,an);return{options:ir,errors:zn}}e.convertTypeAcquisitionFromJson=$e;function An(Ye){var xn=Ye&&e.getBaseFileName(Ye)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{};return xn}function Ue(Ye,xn,an,zn){var ir=An(zn);return Tn(m(),Ye,xn,ir,e.compilerOptionsDidYouMeanDiagnostics,an),zn&&(ir.configFilePath=e.normalizeSlashes(zn)),ir}function gn(Ye){return{enable:!!Ye&&e.getBaseFileName(Ye)==="jsconfig.json",include:[],exclude:[]}}function Wn(Ye,xn,an,zn){var ir=gn(zn),gr=O(Ye);return Tn(M(),gr,xn,ir,G,an),ir}function ze(Ye,xn,an){return Tn(P(),Ye,xn,void 0,f,an)}function Tn(Ye,xn,an,zn,ir,gr){if(xn){for(var Dr in xn){var qr=Ye.get(Dr);qr?(zn||(zn={}))[qr.name]=On(qr,xn[Dr],an,gr):gr.push(V(Dr,ir,e.createCompilerDiagnostic))}return zn}}function On(Ye,xn,an,zn){if(te(Ye,xn)){var ir=Ye.type;if(ir==="list"&&e.isArray(xn))return Ke(Ye,xn,an,zn);if(!e.isString(ir))return Qr(Ye,xn,zn);var gr=wr(Ye,xn,zn);return Ln(gr)?gr:hr(Ye,an,gr)}else zn.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Ye.name,Oe(Ye)))}e.convertJsonOption=On;function ur(Ye,xn,an){if(!Ln(an)){if(Ye.type==="list"){var zn=Ye;return zn.element.isFilePath||!e.isString(zn.element.type)?e.filter(e.map(an,function(ir){return ur(zn.element,xn,ir)}),function(ir){return!!ir}):an}else if(!e.isString(Ye.type))return Ye.type.get(e.isString(an)?an.toLowerCase():an);return hr(Ye,xn,an)}}function hr(Ye,xn,an){return Ye.isFilePath&&(an=e.getNormalizedAbsolutePath(an,xn),an===""&&(an=".")),an}function wr(Ye,xn,an){var zn;if(!Ln(xn)){var ir=(zn=Ye.extraValidation)===null||zn===void 0?void 0:zn.call(Ye,xn);if(!ir)return xn;an.push(e.createCompilerDiagnostic.apply(void 0,ir))}}function Qr(Ye,xn,an){if(!Ln(xn)){var zn=xn.toLowerCase(),ir=Ye.type.get(zn);if(ir!==void 0)return wr(Ye,ir,an);an.push(A(Ye))}}function Ke(Ye,xn,an,zn){return e.filter(e.map(xn,function(ir){return On(Ye.element,ir,an,zn)}),function(ir){return!!ir})}var jn=/(^|\/)\*\*\/?$/,Zn=/^[^*?]*(?=\/[^/]*[*?])/;function Me(Ye,xn,an,zn,ir){ir===void 0&&(ir=e.emptyArray),xn=e.normalizePath(xn);var gr=e.createGetCanonicalFileName(zn.useCaseSensitiveFileNames),Dr=new e.Map,qr=new e.Map,ft=new e.Map,xt=Ye.validatedFilesSpec,Kr=Ye.validatedIncludeSpecs,dt=Ye.validatedExcludeSpecs,Ur=e.getSupportedExtensions(an,ir),qt=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(an,Ur);if(xt)for(var Cr=0,Jt=xt;Cr<Jt.length;Cr++){var Ot=Jt[Cr],ri=e.getNormalizedAbsolutePath(Ot,xn);Dr.set(gr(ri),ri)}var Ya;if(Kr&&Kr.length>0)for(var eo=function(Hr){if(e.fileExtensionIs(Hr,".json")){if(!Ya){var Wt=Kr.filter(function(nt){return e.endsWith(nt,".json")}),Zt=e.map(e.getRegularExpressionsForWildcards(Wt,xn,"files"),function(nt){return"^"+nt+"$"});Ya=Zt?Zt.map(function(nt){return e.getRegexFromPattern(nt,zn.useCaseSensitiveFileNames)}):e.emptyArray}var Rr=e.findIndex(Ya,function(nt){return nt.test(Hr)});if(Rr!==-1){var Lr=gr(Hr);!Dr.has(Lr)&&!ft.has(Lr)&&ft.set(Lr,Hr)}return"continue"}if(Cn(Hr,Dr,qr,Ur,gr))return"continue";Gn(Hr,qr,Ur,gr);var Xr=gr(Hr);!Dr.has(Xr)&&!qr.has(Xr)&&qr.set(Xr,Hr)},za=0,ua=zn.readDirectory(xn,qt,dt,Kr,void 0);za<ua.length;za++){var ri=ua[za];eo(ri)}var Ar=e.arrayFrom(Dr.values()),at=e.arrayFrom(qr.values());return Ar.concat(at,e.arrayFrom(ft.values()))}e.getFileNamesFromConfigSpecs=Me;function Mn(Ye,xn,an,zn,ir){var gr=xn.validatedFilesSpec,Dr=xn.validatedIncludeSpecs,qr=xn.validatedExcludeSpecs;if(!e.length(Dr)||!e.length(qr))return!1;an=e.normalizePath(an);var ft=e.createGetCanonicalFileName(zn);if(gr)for(var xt=0,Kr=gr;xt<Kr.length;xt++){var dt=Kr[xt];if(ft(e.getNormalizedAbsolutePath(dt,an))===Ye)return!1}return yr(Ye,qr,zn,ir,an)}e.isExcludedFile=Mn;function ar(Ye){var xn=e.startsWith(Ye,"**/")?0:Ye.indexOf("/**/");if(xn===-1)return!1;var an=e.endsWith(Ye,"/..")?Ye.length:Ye.lastIndexOf("/../");return an>xn}function Xn(Ye,xn,an,zn){return yr(Ye,e.filter(xn,function(ir){return!ar(ir)}),an,zn)}e.matchesExclude=Xn;function yr(Ye,xn,an,zn,ir){var gr=e.getRegularExpressionForWildcard(xn,e.combinePaths(e.normalizePath(zn),ir),"exclude"),Dr=gr&&e.getRegexFromPattern(gr,an);return Dr?Dr.test(Ye)?!0:!e.hasExtension(Ye)&&Dr.test(e.ensureTrailingDirectorySeparator(Ye)):!1}function cr(Ye,xn,an,zn,ir){return Ye.filter(function(Dr){if(!e.isString(Dr))return!1;var qr=Fe(Dr,an);return qr!==void 0&&xn.push(gr.apply(void 0,qr)),qr===void 0});function gr(Dr,qr){var ft=e.getTsConfigPropArrayElementValue(zn,ir,qr);return ft?e.createDiagnosticForNodeInSourceFile(zn,ft,Dr,qr):e.createCompilerDiagnostic(Dr,qr)}}function Fe(Ye,xn){if(xn&&jn.test(Ye))return[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,Ye];if(ar(Ye))return[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,Ye]}function Bn(Ye,xn,an){var zn=Ye.validatedIncludeSpecs,ir=Ye.validatedExcludeSpecs,gr=e.getRegularExpressionForWildcard(ir,xn,"exclude"),Dr=gr&&new RegExp(gr,an?"":"i"),qr={};if(zn!==void 0){for(var ft=[],xt=0,Kr=zn;xt<Kr.length;xt++){var dt=Kr[xt],Ur=e.normalizePath(e.combinePaths(xn,dt));if(!(Dr&&Dr.test(Ur))){var qt=J(Ur,an);if(qt){var Cr=qt.key,Jt=qt.flags,Ot=qr[Cr];(Ot===void 0||Ot<Jt)&&(qr[Cr]=Jt,Jt===1&&ft.push(Cr))}}}for(var Cr in qr)if(e.hasProperty(qr,Cr))for(var ri=0,Ya=ft;ri<Ya.length;ri++){var eo=Ya[ri];Cr!==eo&&e.containsPath(eo,Cr,xn,!an)&&delete qr[Cr]}}return qr}function J(Ye,xn){var an=Zn.exec(Ye);if(an){var zn=Ye.indexOf("?"),ir=Ye.indexOf("*"),gr=Ye.lastIndexOf(e.directorySeparator);return{key:xn?an[0]:e.toFileNameLowerCase(an[0]),flags:zn!==-1&&zn<gr||ir!==-1&&ir<gr?1:0}}if(e.isImplicitGlob(Ye))return{key:xn?Ye:e.toFileNameLowerCase(Ye),flags:1}}function Cn(Ye,xn,an,zn,ir){for(var gr=e.getExtensionPriority(Ye,zn),Dr=e.adjustExtensionPriority(gr,zn),qr=0;qr<Dr;qr++){var ft=zn[qr],xt=ir(e.changeExtension(Ye,ft));if(xn.has(xt)||an.has(xt))return!0}return!1}function Gn(Ye,xn,an,zn){for(var ir=e.getExtensionPriority(Ye,an),gr=e.getNextLowestExtensionPriority(ir,an),Dr=gr;Dr<an.length;Dr++){var qr=an[Dr],ft=zn(e.changeExtension(Ye,qr));xn.delete(ft)}}function cn(Ye){var xn={};for(var an in Ye)if(Ye.hasOwnProperty(an)){var zn=L(an);zn!==void 0&&(xn[an]=Rn(Ye[an],zn))}return xn}e.convertCompilerOptionsForTelemetry=cn;function Rn(Ye,xn){switch(xn.type){case"object":return"";case"string":return"";case"number":return typeof Ye=="number"?Ye:"";case"boolean":return typeof Ye=="boolean"?Ye:"";case"list":var an=xn.element;return e.isArray(Ye)?Ye.map(function(zn){return Rn(zn,an)}):"";default:return e.forEachEntry(xn.type,function(zn,ir){if(zn===Ye)return ir})}}})(vn||(vn={}));var vn;(function(e){function o(xe){xe.trace(e.formatMessage.apply(void 0,arguments))}e.trace=o;function ue(xe,Ze){return!!xe.traceResolution&&Ze.trace!==void 0}e.isTraceEnabled=ue;function $(xe,Ze){var hn;if(Ze&&xe){var Le=xe.packageJsonContent;typeof Le.name=="string"&&typeof Le.version=="string"&&(hn={name:Le.name,subModuleName:Ze.path.slice(xe.packageDirectory.length+e.directorySeparator.length),version:Le.version})}return Ze&&{path:Ze.path,extension:Ze.ext,packageId:hn}}function Y(xe){return $(void 0,xe)}function W(xe){if(xe)return e.Debug.assert(xe.packageId===void 0),{path:xe.path,ext:xe.extension}}var re;(function(xe){xe[xe.TypeScript=0]="TypeScript",xe[xe.JavaScript=1]="JavaScript",xe[xe.Json=2]="Json",xe[xe.TSConfig=3]="TSConfig",xe[xe.DtsOnly=4]="DtsOnly"})(re||(re={}));function ye(xe){if(xe)return e.Debug.assert(e.extensionIsTS(xe.extension)),{fileName:xe.path,packageId:xe.packageId}}function O(xe,Ze,hn,Le){var $e;return Le?(($e=Le.failedLookupLocations).push.apply($e,hn),Le):{resolvedModule:xe&&{resolvedFileName:xe.path,originalPath:xe.originalPath===!0?void 0:xe.originalPath,extension:xe.extension,isExternalLibraryImport:Ze,packageId:xe.packageId},failedLookupLocations:hn}}function A(xe,Ze,hn,Le){if(!e.hasProperty(xe,Ze)){Le.traceEnabled&&o(Le.host,e.Diagnostics.package_json_does_not_have_a_0_field,Ze);return}var $e=xe[Ze];if(typeof $e!==hn||$e===null){Le.traceEnabled&&o(Le.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,Ze,hn,$e===null?"null":typeof $e);return}return $e}function D(xe,Ze,hn,Le){var $e=A(xe,Ze,"string",Le);if($e!==void 0){if(!$e){Le.traceEnabled&&o(Le.host,e.Diagnostics.package_json_had_a_falsy_0_field,Ze);return}var An=e.normalizePath(e.combinePaths(hn,$e));return Le.traceEnabled&&o(Le.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,Ze,$e,An),An}}function de(xe,Ze,hn){return D(xe,"typings",Ze,hn)||D(xe,"types",Ze,hn)}function _e(xe,Ze,hn){return D(xe,"tsconfig",Ze,hn)}function y(xe,Ze,hn){return D(xe,"main",Ze,hn)}function V(xe,Ze){var hn=A(xe,"typesVersions","object",Ze);if(hn!==void 0)return Ze.traceEnabled&&o(Ze.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),hn}function Z(xe,Ze){var hn=V(xe,Ze);if(hn!==void 0){if(Ze.traceEnabled)for(var Le in hn)e.hasProperty(hn,Le)&&!e.VersionRange.tryParse(Le)&&o(Ze.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,Le);var $e=H(hn);if(!$e){Ze.traceEnabled&&o(Ze.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor);return}var An=$e.version,Ue=$e.paths;if(typeof Ue!="object"){Ze.traceEnabled&&o(Ze.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['"+An+"']","object",typeof Ue);return}return $e}}var E;function H(xe){E||(E=new e.Version(e.version));for(var Ze in xe)if(e.hasProperty(xe,Ze)){var hn=e.VersionRange.tryParse(Ze);if(hn!==void 0&&hn.test(E))return{version:Ze,paths:xe[Ze]}}}e.getPackageJsonTypesVersionsPaths=H;function L(xe,Ze){if(xe.typeRoots)return xe.typeRoots;var hn;if(xe.configFilePath?hn=e.getDirectoryPath(xe.configFilePath):Ze.getCurrentDirectory&&(hn=Ze.getCurrentDirectory()),hn!==void 0)return ee(hn,Ze)}e.getEffectiveTypeRoots=L;function ee(xe,Ze){if(!Ze.directoryExists)return[e.combinePaths(xe,k)];var hn;return e.forEachAncestorDirectory(e.normalizePath(xe),function(Le){var $e=e.combinePaths(Le,k);Ze.directoryExists($e)&&(hn||(hn=[])).push($e)}),hn}var k=e.combinePaths("node_modules","@types");function b(xe,Ze,hn,Le,$e,An){var Ue=ue(hn,Le);$e&&(hn=$e.commandLine.options);var gn=Ze?e.getDirectoryPath(Ze):void 0,Wn=gn?An&&An.getOrCreateCacheForDirectory(gn,$e):void 0,ze=Wn&&Wn.get(xe);if(ze)return Ue&&(o(Le,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,xe,Ze),$e&&o(Le,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,$e.sourceFile.fileName),o(Le,e.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,xe,gn),Me(ze)),ze;var Tn=L(hn,Le);Ue&&(Ze===void 0?Tn===void 0?o(Le,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,xe):o(Le,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,xe,Tn):Tn===void 0?o(Le,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,xe,Ze):o(Le,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,xe,Ze,Tn),$e&&o(Le,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,$e.sourceFile.fileName));var On=[],ur={compilerOptions:hn,host:Le,traceEnabled:Ue,failedLookupLocations:On,packageJsonInfoCache:An},hr=Mn(),wr=!0;hr||(hr=ar(),wr=!1);var Qr;if(hr){var Ke=hr.fileName,jn=hr.packageId,Zn=hn.preserveSymlinks?Ke:I(Ke,Le,Ue);Qr={primary:wr,resolvedFileName:Zn,originalPath:Ke===Zn?void 0:Ke,packageId:jn,isExternalLibraryImport:Oe(Ke)}}return ze={resolvedTypeReferenceDirective:Qr,failedLookupLocations:On},Wn==null||Wn.set(xe,ze),Ue&&Me(ze),ze;function Me(Xn){var yr;!((yr=Xn.resolvedTypeReferenceDirective)===null||yr===void 0)&&yr.resolvedFileName?Xn.resolvedTypeReferenceDirective.packageId?o(Le,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,xe,Xn.resolvedTypeReferenceDirective.resolvedFileName,e.packageIdToString(Xn.resolvedTypeReferenceDirective.packageId),Xn.resolvedTypeReferenceDirective.primary):o(Le,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,xe,Xn.resolvedTypeReferenceDirective.resolvedFileName,Xn.resolvedTypeReferenceDirective.primary):o(Le,e.Diagnostics.Type_reference_directive_0_was_not_resolved,xe)}function Mn(){if(Tn&&Tn.length)return Ue&&o(Le,e.Diagnostics.Resolving_with_primary_search_path_0,Tn.join(", ")),e.firstDefined(Tn,function(Xn){var yr=e.combinePaths(Xn,xe),cr=e.getDirectoryPath(yr),Fe=e.directoryProbablyExists(cr,Le);return!Fe&&Ue&&o(Le,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,cr),ye(en(re.DtsOnly,yr,!Fe,ur))});Ue&&o(Le,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ar(){var Xn=Ze&&e.getDirectoryPath(Ze);if(Xn!==void 0){Ue&&o(Le,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,Xn);var yr;if(e.isExternalModuleNameRelative(xe)){var Fe=e.normalizePathAndParts(e.combinePaths(Xn,xe)).path;yr=Ae(re.DtsOnly,Fe,!1,ur,!0)}else{var cr=pn(re.DtsOnly,xe,Xn,ur,void 0,void 0);yr=cr&&cr.value}return ye(yr)}else Ue&&o(Le,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}e.resolveTypeReferenceDirective=b;function ie(xe,Ze){if(xe.types)return xe.types;var hn=[];if(Ze.directoryExists&&Ze.getDirectories){var Le=L(xe,Ze);if(Le)for(var $e=0,An=Le;$e<An.length;$e++){var Ue=An[$e];if(Ze.directoryExists(Ue))for(var gn=0,Wn=Ze.getDirectories(Ue);gn<Wn.length;gn++){var ze=Wn[gn],Tn=e.normalizePath(ze),On=e.combinePaths(Ue,Tn,"package.json"),ur=Ze.fileExists(On)&&e.readJson(On,Ze).typings===null;if(!ur){var hr=e.getBaseFileName(Tn);hr.charCodeAt(0)!==46&&hn.push(hr)}}}}return hn}e.getAutomaticTypeDirectiveNames=ie;function q(xe){var Ze=new e.Map,hn=new e.Map;return{getOwnMap:Le,redirectsMap:hn,getOrCreateMapOfCacheRedirects:Ue,clear:gn,setOwnOptions:$e,setOwnMap:An};function Le(){return Ze}function $e(Wn){xe=Wn}function An(Wn){Ze=Wn}function Ue(Wn){if(!Wn)return Ze;var ze=Wn.sourceFile.path,Tn=hn.get(ze);return Tn||(Tn=!xe||e.optionsHaveModuleResolutionChanges(xe,Wn.commandLine.options)?new e.Map:Ze,hn.set(ze,Tn)),Tn}function gn(){Ze.clear(),hn.clear()}}e.createCacheWithRedirects=q;function oe(xe,Ze){var hn;return{getPackageJsonInfo:Le,setPackageJsonInfo:$e,clear:An,entries:Ue};function Le(gn){return hn==null?void 0:hn.get(e.toPath(gn,xe,Ze))}function $e(gn,Wn){(hn||(hn=new e.Map)).set(e.toPath(gn,xe,Ze),Wn)}function An(){hn=void 0}function Ue(){var gn=hn==null?void 0:hn.entries();return gn?e.arrayFrom(gn):[]}}function se(xe,Ze,hn,Le){var $e=xe.getOrCreateMapOfCacheRedirects(Ze),An=$e.get(hn);return An||(An=Le(),$e.set(hn,An)),An}function w(xe,Ze,hn){if(xe.configFile){if(Ze.redirectsMap.size===0)e.Debug.assert(!hn||hn.redirectsMap.size===0),e.Debug.assert(Ze.getOwnMap().size===0),e.Debug.assert(!hn||hn.getOwnMap().size===0),Ze.redirectsMap.set(xe.configFile.path,Ze.getOwnMap()),hn==null||hn.redirectsMap.set(xe.configFile.path,hn.getOwnMap());else{e.Debug.assert(!hn||hn.redirectsMap.size>0);var Le={sourceFile:xe.configFile,commandLine:{options:xe}};Ze.setOwnMap(Ze.getOrCreateMapOfCacheRedirects(Le)),hn==null||hn.setOwnMap(hn.getOrCreateMapOfCacheRedirects(Le))}Ze.setOwnOptions(xe),hn==null||hn.setOwnOptions(xe)}}function R(xe,Ze,hn){return{getOrCreateCacheForDirectory:An,clear:Le,update:$e};function Le(){hn.clear()}function $e(Ue){w(Ue,hn)}function An(Ue,gn){var Wn=e.toPath(Ue,xe,Ze);return se(hn,gn,Wn,function(){return new e.Map})}}function ne(xe,Ze,hn,Le,$e){var An=R(xe,Ze,Le||(Le=q(hn)));$e||($e=q(hn));var Ue=oe(xe,Ze);return Mt(Mt(Mt({},Ue),An),{getOrCreateCacheForModuleName:ze,clear:gn,update:Wn,getPackageJsonInfoCache:function(){return Ue}});function gn(){An.clear(),$e.clear(),Ue.clear()}function Wn(On){w(On,Le,$e)}function ze(On,ur){return e.Debug.assert(!e.isExternalModuleNameRelative(On)),se($e,ur,On,Tn)}function Tn(){var On=new e.Map;return{get:ur,set:hr};function ur(Qr){return On.get(e.toPath(Qr,xe,Ze))}function hr(Qr,Ke){var jn=e.toPath(Qr,xe,Ze);if(!On.has(jn)){On.set(jn,Ke);for(var Zn=Ke.resolvedModule&&(Ke.resolvedModule.originalPath||Ke.resolvedModule.resolvedFileName),Me=Zn&&wr(jn,Zn),Mn=jn;Mn!==Me;){var ar=e.getDirectoryPath(Mn);if(ar===Mn||On.has(ar))break;On.set(ar,Ke),Mn=ar}}}function wr(Qr,Ke){for(var jn=e.toPath(e.getDirectoryPath(Ke),xe,Ze),Zn=0,Me=Math.min(Qr.length,jn.length);Zn<Me&&Qr.charCodeAt(Zn)===jn.charCodeAt(Zn);)Zn++;if(Zn===Qr.length&&(jn.length===Zn||jn[Zn]===e.directorySeparator))return Qr;var Mn=e.getRootLength(Qr);if(!(Zn<Mn)){var ar=Qr.lastIndexOf(e.directorySeparator,Zn-1);if(ar!==-1)return Qr.substr(0,Math.max(ar,Mn))}}}}e.createModuleResolutionCache=ne;function U(xe,Ze,hn,Le,$e){var An=R(xe,Ze,$e||($e=q(hn)));return Le||(Le=oe(xe,Ze)),Mt(Mt(Mt({},Le),An),{clear:Ue});function Ue(){An.clear(),Le.clear()}}e.createTypeReferenceDirectiveResolutionCache=U;function C(xe,Ze,hn){var Le=e.getDirectoryPath(Ze),$e=hn&&hn.getOrCreateCacheForDirectory(Le);return $e&&$e.get(xe)}e.resolveModuleNameFromCache=C;function d(xe,Ze,hn,Le,$e,An){var Ue=ue(hn,Le);An&&(hn=An.commandLine.options),Ue&&(o(Le,e.Diagnostics.Resolving_module_0_from_1,xe,Ze),An&&o(Le,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,An.sourceFile.fileName));var gn=e.getDirectoryPath(Ze),Wn=$e&&$e.getOrCreateCacheForDirectory(gn,An),ze=Wn&&Wn.get(xe);if(ze)Ue&&o(Le,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,xe,gn);else{var Tn=hn.moduleResolution;switch(Tn===void 0?(Tn=e.getEmitModuleKind(hn)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic,Ue&&o(Le,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[Tn])):Ue&&o(Le,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[Tn]),e.perfLogger.logStartResolveModule(xe),Tn){case e.ModuleResolutionKind.NodeJs:ze=z(xe,Ze,hn,Le,$e,An);break;case e.ModuleResolutionKind.Classic:ze=Vn(xe,Ze,hn,Le,$e,An);break;default:return e.Debug.fail("Unexpected moduleResolution: "+Tn)}ze&&ze.resolvedModule&&e.perfLogger.logInfoEvent('Module "'+xe+'" resolved to "'+ze.resolvedModule.resolvedFileName+'"'),e.perfLogger.logStopResolveModule(ze&&ze.resolvedModule?""+ze.resolvedModule.resolvedFileName:"null"),Wn&&(Wn.set(xe,ze),e.isExternalModuleNameRelative(xe)||$e.getOrCreateCacheForModuleName(xe,An).set(gn,ze))}return Ue&&(ze.resolvedModule?ze.resolvedModule.packageId?o(Le,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,xe,ze.resolvedModule.resolvedFileName,e.packageIdToString(ze.resolvedModule.packageId)):o(Le,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,xe,ze.resolvedModule.resolvedFileName):o(Le,e.Diagnostics.Module_name_0_was_not_resolved,xe)),ze}e.resolveModuleName=d;function G(xe,Ze,hn,Le,$e){var An=g(xe,Ze,Le,$e);return An?An.value:e.isExternalModuleNameRelative(Ze)?p(xe,Ze,hn,Le,$e):f(xe,Ze,Le,$e)}function g(xe,Ze,hn,Le){var $e,An=Le.compilerOptions,Ue=An.baseUrl,gn=An.paths,Wn=An.configFile;if(gn&&!e.pathIsRelative(Ze)){Le.traceEnabled&&(Ue&&o(Le.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,Ue,Ze),o(Le.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,Ze));var ze=e.getPathsBasePath(Le.compilerOptions,Le.host),Tn=Wn!=null&&Wn.configFileSpecs?($e=Wn.configFileSpecs).pathPatterns||($e.pathPatterns=e.tryParsePatterns(gn)):void 0;return Un(xe,Ze,ze,gn,Tn,hn,!1,Le)}}function p(xe,Ze,hn,Le,$e){if($e.compilerOptions.rootDirs){$e.traceEnabled&&o($e.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,Ze);for(var An=e.normalizePath(e.combinePaths(hn,Ze)),Ue,gn,Wn=0,ze=$e.compilerOptions.rootDirs;Wn<ze.length;Wn++){var Tn=ze[Wn],On=e.normalizePath(Tn);e.endsWith(On,e.directorySeparator)||(On+=e.directorySeparator);var ur=e.startsWith(An,On)&&(gn===void 0||gn.length<On.length);$e.traceEnabled&&o($e.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,On,An,ur),ur&&(gn=On,Ue=Tn)}if(gn){$e.traceEnabled&&o($e.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,An,gn);var hr=An.substr(gn.length);$e.traceEnabled&&o($e.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,hr,gn,An);var wr=Le(xe,An,!e.directoryProbablyExists(hn,$e.host),$e);if(wr)return wr;$e.traceEnabled&&o($e.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var Qr=0,Ke=$e.compilerOptions.rootDirs;Qr<Ke.length;Qr++){var Tn=Ke[Qr];if(Tn!==Ue){var jn=e.combinePaths(e.normalizePath(Tn),hr);$e.traceEnabled&&o($e.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,hr,Tn,jn);var Zn=e.getDirectoryPath(jn),Me=Le(xe,jn,!e.directoryProbablyExists(Zn,$e.host),$e);if(Me)return Me}}$e.traceEnabled&&o($e.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}}function f(xe,Ze,hn,Le){var $e=Le.compilerOptions.baseUrl;if($e){Le.traceEnabled&&o(Le.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,$e,Ze);var An=e.normalizePath(e.combinePaths($e,Ze));return Le.traceEnabled&&o(Le.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,Ze,$e,An),hn(xe,An,!e.directoryProbablyExists(e.getDirectoryPath(An),Le.host),Le)}}function T(xe,Ze,hn){var Le=me(xe,Ze,hn),$e=Le.resolvedModule,An=Le.failedLookupLocations;if(!$e)throw new Error("Could not resolve JS module '"+xe+"' starting at '"+Ze+"'. Looked in: "+An.join(", "));return $e.resolvedFileName}e.resolveJSModule=T;function m(xe,Ze,hn){var Le=me(xe,Ze,hn).resolvedModule;return Le&&Le.resolvedFileName}e.tryResolveJSModule=m;var N=[re.JavaScript],P=[re.TypeScript,re.JavaScript],x=Vr(Vr([],P,!0),[re.Json],!1),M=[re.TSConfig];function me(xe,Ze,hn){return K(xe,Ze,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},hn,void 0,N,void 0)}function z(xe,Ze,hn,Le,$e,An,Ue){return K(xe,e.getDirectoryPath(Ze),hn,Le,$e,Ue?M:hn.resolveJsonModule?x:P,An)}e.nodeModuleNameResolver=z;function K(xe,Ze,hn,Le,$e,An,Ue){var gn,Wn,ze=ue(hn,Le),Tn=[],On={compilerOptions:hn,host:Le,traceEnabled:ze,failedLookupLocations:Tn,packageJsonInfoCache:$e},ur=e.forEach(An,function(wr){return hr(wr)});return O((gn=ur==null?void 0:ur.value)===null||gn===void 0?void 0:gn.resolved,(Wn=ur==null?void 0:ur.value)===null||Wn===void 0?void 0:Wn.isExternalLibraryImport,Tn,On.resultFromCache);function hr(wr){var Qr=function(Fe,Bn,J,Cn){return Ae(Fe,Bn,J,Cn,!0)},Ke=G(wr,xe,Ze,Qr,On);if(Ke)return Pe({resolved:Ke,isExternalLibraryImport:Oe(Ke.path)});if(e.isExternalModuleNameRelative(xe)){var ar=e.normalizePathAndParts(e.combinePaths(Ze,xe)),Xn=ar.path,yr=ar.parts,cr=Ae(wr,Xn,!1,On,!0);return cr&&Pe({resolved:cr,isExternalLibraryImport:e.contains(yr,"node_modules")})}else{ze&&o(Le,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,xe,re[wr]);var jn=pn(wr,xe,Ze,On,$e,Ue);if(!jn)return;var Zn=jn.value;if(!hn.preserveSymlinks&&Zn&&!Zn.originalPath){var Me=I(Zn.path,Le,ze),Mn=Me===Zn.path?void 0:Zn.path;Zn=Mt(Mt({},Zn),{path:Me,originalPath:Mn})}return{value:Zn&&{resolved:Zn,isExternalLibraryImport:!0}}}}}function I(xe,Ze,hn){if(!Ze.realpath)return xe;var Le=e.normalizePath(Ze.realpath(xe));return hn&&o(Ze,e.Diagnostics.Resolving_real_path_for_0_result_1,xe,Le),e.Debug.assert(Ze.fileExists(Le),xe+" linked to nonexistent file "+Le),Le}function Ae(xe,Ze,hn,Le,$e){if(Le.traceEnabled&&o(Le.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,Ze,re[xe]),!e.hasTrailingDirectorySeparator(Ze)){if(!hn){var An=e.getDirectoryPath(Ze);e.directoryProbablyExists(An,Le.host)||(Le.traceEnabled&&o(Le.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,An),hn=!0)}var Ue=Ce(xe,Ze,hn,Le);if(Ue){var gn=$e?te(Ue.path):void 0,Wn=gn?fe(gn,!1,Le):void 0;return $(Wn,Ue)}}if(!hn){var ze=e.directoryProbablyExists(Ze,Le.host);ze||(Le.traceEnabled&&o(Le.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Ze),hn=!0)}return en(xe,Ze,hn,Le,$e)}e.nodeModulesPathPart="/node_modules/";function Oe(xe){return e.stringContains(xe,e.nodeModulesPathPart)}e.pathContainsNodeModules=Oe;function te(xe){var Ze=e.normalizePath(xe),hn=Ze.lastIndexOf(e.nodeModulesPathPart);if(hn!==-1){var Le=hn+e.nodeModulesPathPart.length,$e=Se(Ze,Le);return Ze.charCodeAt(Le)===64&&($e=Se(Ze,$e)),Ze.slice(0,$e)}}e.parseNodeModuleFromPath=te;function Se(xe,Ze){var hn=xe.indexOf(e.directorySeparator,Ze+1);return hn===-1?Ze:hn}function be(xe,Ze,hn,Le){return Y(Ce(xe,Ze,hn,Le))}function Ce(xe,Ze,hn,Le){if(xe===re.Json||xe===re.TSConfig){var $e=e.tryRemoveExtension(Ze,".json");return $e===void 0&&xe===re.Json?void 0:Be($e||Ze,xe,hn,Le)}var An=Be(Ze,xe,hn,Le);if(An)return An;if(e.hasJSFileExtension(Ze)){var Ue=e.removeFileExtension(Ze);if(Le.traceEnabled){var gn=Ze.substring(Ue.length);o(Le.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,Ze,gn)}return Be(Ue,xe,hn,Le)}}function Be(xe,Ze,hn,Le){if(!hn){var $e=e.getDirectoryPath(xe);$e&&(hn=!e.directoryProbablyExists($e,Le.host))}switch(Ze){case re.DtsOnly:return An(".d.ts");case re.TypeScript:return An(".ts")||An(".tsx")||An(".d.ts");case re.JavaScript:return An(".js")||An(".jsx");case re.TSConfig:case re.Json:return An(".json")}function An(Ue){var gn=De(xe+Ue,hn,Le);return gn===void 0?void 0:{path:gn,ext:Ue}}}function De(xe,Ze,hn){if(!Ze){if(hn.host.fileExists(xe))return hn.traceEnabled&&o(hn.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,xe),xe;hn.traceEnabled&&o(hn.host,e.Diagnostics.File_0_does_not_exist,xe)}hn.failedLookupLocations.push(xe)}function en(xe,Ze,hn,Le,$e){$e===void 0&&($e=!0);var An=$e?fe(Ze,hn,Le):void 0,Ue=An&&An.packageJsonContent,gn=An&&An.versionPaths;return $(An,Ne(xe,Ze,hn,Le,Ue,gn))}function fe(xe,Ze,hn){var Le,$e,An,Ue=hn.host,gn=hn.traceEnabled,Wn=e.combinePaths(xe,"package.json");if(Ze){hn.failedLookupLocations.push(Wn);return}var ze=(Le=hn.packageJsonInfoCache)===null||Le===void 0?void 0:Le.getPackageJsonInfo(Wn);if(ze!==void 0){if(typeof ze!="boolean")return gn&&o(Ue,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,Wn),ze;ze&&gn&&o(Ue,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,Wn),hn.failedLookupLocations.push(Wn);return}var Tn=e.directoryProbablyExists(xe,Ue);if(Tn&&Ue.fileExists(Wn)){var On=e.readJson(Wn,Ue);gn&&o(Ue,e.Diagnostics.Found_package_json_at_0,Wn);var ur=Z(On,hn),hr={packageDirectory:xe,packageJsonContent:On,versionPaths:ur};return($e=hn.packageJsonInfoCache)===null||$e===void 0||$e.setPackageJsonInfo(Wn,hr),hr}else Tn&&gn&&o(Ue,e.Diagnostics.File_0_does_not_exist,Wn),(An=hn.packageJsonInfoCache)===null||An===void 0||An.setPackageJsonInfo(Wn,Tn),hn.failedLookupLocations.push(Wn)}function Ne(xe,Ze,hn,Le,$e,An){var Ue;if($e)switch(xe){case re.JavaScript:case re.Json:Ue=y($e,Ze,Le);break;case re.TypeScript:Ue=de($e,Ze,Le)||y($e,Ze,Le);break;case re.DtsOnly:Ue=de($e,Ze,Le);break;case re.TSConfig:Ue=_e($e,Ze,Le);break;default:return e.Debug.assertNever(xe)}var gn=function(wr,Qr,Ke,jn){var Zn=De(Qr,Ke,jn);if(Zn){var Me=qe(wr,Zn);if(Me)return Y(Me);jn.traceEnabled&&o(jn.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,Zn)}var Mn=wr===re.DtsOnly?re.TypeScript:wr;return Ae(Mn,Qr,Ke,jn,!1)},Wn=Ue?!e.directoryProbablyExists(e.getDirectoryPath(Ue),Le.host):void 0,ze=hn||!e.directoryProbablyExists(Ze,Le.host),Tn=e.combinePaths(Ze,xe===re.TSConfig?"tsconfig":"index");if(An&&(!Ue||e.containsPath(Ze,Ue))){var On=e.getRelativePathFromDirectory(Ze,Ue||Tn,!1);Le.traceEnabled&&o(Le.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,An.version,e.version,On);var ur=Un(xe,On,Ze,An.paths,void 0,gn,Wn||ze,Le);if(ur)return W(ur.value)}var hr=Ue&&W(gn(xe,Ue,Wn,Le));return hr||Ce(xe,Tn,ze,Le)}function qe(xe,Ze){var hn=e.tryGetExtensionFromPath(Ze);return hn!==void 0&&pe(xe,hn)?{path:Ze,ext:hn}:void 0}function pe(xe,Ze){switch(xe){case re.JavaScript:return Ze===".js"||Ze===".jsx";case re.TSConfig:case re.Json:return Ze===".json";case re.TypeScript:return Ze===".ts"||Ze===".tsx"||Ze===".d.ts";case re.DtsOnly:return Ze===".d.ts"}}function we(xe){var Ze=xe.indexOf(e.directorySeparator);return xe[0]==="@"&&(Ze=xe.indexOf(e.directorySeparator,Ze+1)),Ze===-1?{packageName:xe,rest:""}:{packageName:xe.slice(0,Ze),rest:xe.slice(Ze+1)}}e.parsePackageName=we;function pn(xe,Ze,hn,Le,$e,An){return Re(xe,Ze,hn,Le,!1,$e,An)}function Qe(xe,Ze,hn){return Re(re.DtsOnly,xe,Ze,hn,!0,void 0,void 0)}function Re(xe,Ze,hn,Le,$e,An,Ue){var gn=An&&An.getOrCreateCacheForModuleName(Ze,Ue);return e.forEachAncestorDirectory(e.normalizeSlashes(hn),function(Wn){if(e.getBaseFileName(Wn)!=="node_modules"){var ze=$n(gn,Ze,Wn,Le);return ze||Pe(He(xe,Ze,Wn,Le,$e))}})}function He(xe,Ze,hn,Le,$e){var An=e.combinePaths(hn,"node_modules"),Ue=e.directoryProbablyExists(An,Le.host);!Ue&&Le.traceEnabled&&o(Le.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,An);var gn=$e?void 0:Ln(xe,Ze,An,Ue,Le);if(gn)return gn;if(xe===re.TypeScript||xe===re.DtsOnly){var Wn=e.combinePaths(An,"@types"),ze=Ue;return Ue&&!e.directoryProbablyExists(Wn,Le.host)&&(Le.traceEnabled&&o(Le.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Wn),ze=!1),Ln(re.DtsOnly,En(Ze,Le),Wn,ze,Le)}}function Ln(xe,Ze,hn,Le,$e){var An=e.normalizePath(e.combinePaths(hn,Ze)),Ue=fe(An,!Le,$e);if(Ue){var gn=Ce(xe,An,!Le,$e);if(gn)return Y(gn);var Wn=Ne(xe,An,!Le,$e,Ue.packageJsonContent,Ue.versionPaths);return $(Ue,Wn)}var ze=function(Ke,jn,Zn,Me){var Mn=Ce(Ke,jn,Zn,Me)||Ne(Ke,jn,Zn,Me,Ue&&Ue.packageJsonContent,Ue&&Ue.versionPaths);return $(Ue,Mn)},Tn=we(Ze),On=Tn.packageName,ur=Tn.rest;if(ur!==""){var hr=e.combinePaths(hn,On);if(Ue=fe(hr,!Le,$e),Ue&&Ue.versionPaths){$e.traceEnabled&&o($e.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,Ue.versionPaths.version,e.version,ur);var wr=Le&&e.directoryProbablyExists(hr,$e.host),Qr=Un(xe,ur,hr,Ue.versionPaths.paths,void 0,ze,!wr,$e);if(Qr)return Qr.value}}return ze(xe,An,!Le,$e)}function Un(xe,Ze,hn,Le,$e,An,Ue,gn){$e||($e=e.tryParsePatterns(Le));var Wn=e.matchPatternOrExact($e,Ze);if(Wn){var ze=e.isString(Wn)?void 0:e.matchedText(Wn,Ze),Tn=e.isString(Wn)?Wn:e.patternText(Wn);gn.traceEnabled&&o(gn.host,e.Diagnostics.Module_name_0_matched_pattern_1,Ze,Tn);var On=e.forEach(Le[Tn],function(ur){var hr=ze?ur.replace("*",ze):ur,wr=e.normalizePath(e.combinePaths(hn,hr));gn.traceEnabled&&o(gn.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,ur,hr);var Qr=e.tryGetExtensionFromPath(ur);if(Qr!==void 0){var Ke=De(wr,Ue,gn);if(Ke!==void 0)return Y({path:Ke,ext:Qr})}return An(xe,wr,Ue||!e.directoryProbablyExists(e.getDirectoryPath(wr),gn.host),gn)});return{value:On}}}var fn="__";function En(xe,Ze){var hn=In(xe);return Ze.traceEnabled&&hn!==xe&&o(Ze.host,e.Diagnostics.Scoped_package_detected_looking_in_0,hn),hn}function i(xe){return"@types/"+In(xe)}e.getTypesPackageName=i;function In(xe){if(e.startsWith(xe,"@")){var Ze=xe.replace(e.directorySeparator,fn);if(Ze!==xe)return Ze.slice(1)}return xe}e.mangleScopedPackageName=In;function X(xe){var Ze=e.removePrefix(xe,"@types/");return Ze!==xe?rn(Ze):xe}e.getPackageNameFromTypesPackageName=X;function rn(xe){return e.stringContains(xe,fn)?"@"+xe.replace(fn,e.directorySeparator):xe}e.unmangleScopedPackageName=rn;function $n(xe,Ze,hn,Le){var $e=xe&&xe.get(hn);if($e)return Le.traceEnabled&&o(Le.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,Ze,hn),Le.resultFromCache=$e,{value:$e.resolvedModule&&{path:$e.resolvedModule.resolvedFileName,originalPath:$e.resolvedModule.originalPath||!0,extension:$e.resolvedModule.extension,packageId:$e.resolvedModule.packageId}}}function Vn(xe,Ze,hn,Le,$e,An){var Ue=ue(hn,Le),gn=[],Wn={compilerOptions:hn,host:Le,traceEnabled:Ue,failedLookupLocations:gn,packageJsonInfoCache:$e},ze=e.getDirectoryPath(Ze),Tn=On(re.TypeScript)||On(re.JavaScript);return O(Tn&&Tn.value,!1,gn,Wn.resultFromCache);function On(ur){var hr=G(ur,xe,ze,be,Wn);if(hr)return{value:hr};if(e.isExternalModuleNameRelative(xe)){var Ke=e.normalizePath(e.combinePaths(ze,xe));return Pe(be(ur,Ke,!1,Wn))}else{var wr=$e&&$e.getOrCreateCacheForModuleName(xe,An),Qr=e.forEachAncestorDirectory(ze,function(jn){var Zn=$n(wr,xe,jn,Wn);if(Zn)return Zn;var Me=e.normalizePath(e.combinePaths(jn,xe));return Pe(be(ur,Me,!1,Wn))});if(Qr)return Qr;if(ur===re.TypeScript)return Qe(xe,ze,Wn)}}}e.classicNameResolver=Vn;function le(xe,Ze,hn,Le,$e,An){var Ue=ue(hn,Le);Ue&&o(Le,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,Ze,xe,$e);var gn=[],Wn={compilerOptions:hn,host:Le,traceEnabled:Ue,failedLookupLocations:gn,packageJsonInfoCache:An},ze=He(re.DtsOnly,xe,$e,Wn,!1);return O(ze,!0,gn,Wn.resultFromCache)}e.loadModuleFromGlobalCache=le;function Pe(xe){return xe!==void 0?{value:xe}:void 0}})(vn||(vn={}));var vn;(function(e){var o;(function(E){E[E.NonInstantiated=0]="NonInstantiated",E[E.Instantiated=1]="Instantiated",E[E.ConstEnumOnly=2]="ConstEnumOnly"})(o=e.ModuleInstanceState||(e.ModuleInstanceState={}));function ue(E,H){return E.body&&!E.body.parent&&(e.setParent(E.body,E),e.setParentRecursive(E.body,!1)),E.body?$(E.body,H):1}e.getModuleInstanceState=ue;function $(E,H){H===void 0&&(H=new e.Map);var L=e.getNodeId(E);if(H.has(L))return H.get(L)||0;H.set(L,void 0);var ee=Y(E,H);return H.set(L,ee),ee}function Y(E,H){switch(E.kind){case 256:case 257:return 0;case 258:if(e.isEnumConst(E))return 2;break;case 264:case 263:if(!e.hasSyntacticModifier(E,1))return 0;break;case 270:var L=E;if(!L.moduleSpecifier&&L.exportClause&&L.exportClause.kind===271){for(var ee=0,k=0,b=L.exportClause.elements;k<b.length;k++){var ie=b[k],q=W(ie,H);if(q>ee&&(ee=q),ee===1)return ee}return ee}break;case 260:{var oe=0;return e.forEachChild(E,function(se){var w=$(se,H);switch(w){case 0:return;case 2:oe=2;return;case 1:return oe=1,!0;default:e.Debug.assertNever(w)}}),oe}case 259:return ue(E,H);case 79:if(E.isInJSDocNamespace)return 0}return 1}function W(E,H){for(var L=E.propertyName||E.name,ee=E.parent;ee;){if(e.isBlock(ee)||e.isModuleBlock(ee)||e.isSourceFile(ee)){for(var k=ee.statements,b=void 0,ie=0,q=k;ie<q.length;ie++){var oe=q[ie];if(e.nodeHasName(oe,L)){oe.parent||(e.setParent(oe,ee),e.setParentRecursive(oe,!1));var se=$(oe,H);if((b===void 0||se>b)&&(b=se),b===1)return b}}if(b!==void 0)return b}ee=ee.parent}return 1}var re;(function(E){E[E.None=0]="None",E[E.IsContainer=1]="IsContainer",E[E.IsBlockScopedContainer=2]="IsBlockScopedContainer",E[E.IsControlFlowContainer=4]="IsControlFlowContainer",E[E.IsFunctionLike=8]="IsFunctionLike",E[E.IsFunctionExpression=16]="IsFunctionExpression",E[E.HasLocals=32]="HasLocals",E[E.IsInterface=64]="IsInterface",E[E.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"})(re||(re={}));function ye(E){return e.Debug.attachFlowNodeDebugInfo(E),E}var O=D();function A(E,H){e.tracing===null||e.tracing===void 0||e.tracing.push("bind","bindSourceFile",{path:E.path},!0),e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+E.fileName),O(E,H),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind"),e.tracing===null||e.tracing===void 0||e.tracing.pop()}e.bindSourceFile=A;function D(){var E,H,L,ee,k,b,ie,q,oe,se,w,R,ne,U,C,d,G,g,p,f,T,m,N=!1,P=0,x,M,me={flags:1},z={flags:1},K=Rn();function I(ge,Kn,Te,Fn,et){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(ge)||E,ge,Kn,Te,Fn,et)}function Ae(ge,Kn){E=ge,H=Kn,L=e.getEmitScriptTarget(H),m=Oe(E,Kn),M=new e.Set,P=0,x=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(me),e.Debug.attachFlowNodeDebugInfo(z),E.locals||(Da(E),E.symbolCount=P,E.classifiableNames=M,Xr()),E=void 0,H=void 0,L=void 0,ee=void 0,k=void 0,b=void 0,ie=void 0,q=void 0,oe=void 0,se=!1,w=void 0,R=void 0,ne=void 0,U=void 0,C=void 0,d=void 0,G=void 0,p=void 0,f=!1,N=!1,T=0}return Ae;function Oe(ge,Kn){return e.getStrictOptionValue(Kn,"alwaysStrict")&&!ge.isDeclarationFile?!0:!!ge.externalModuleIndicator}function te(ge,Kn){return P++,new x(ge,Kn)}function Se(ge,Kn,Te){ge.flags|=Te,Kn.symbol=ge,ge.declarations=e.appendIfUnique(ge.declarations,Kn),Te&1955&&!ge.exports&&(ge.exports=e.createSymbolTable()),Te&6240&&!ge.members&&(ge.members=e.createSymbolTable()),ge.constEnumOnlyModule&&ge.flags&304&&(ge.constEnumOnlyModule=!1),Te&111551&&e.setValueDeclaration(ge,Kn)}function be(ge){if(ge.kind===269)return ge.isExportEquals?"export=":"default";var Kn=e.getNameOfDeclaration(ge);if(Kn){if(e.isAmbientModule(ge)){var Te=e.getTextOfIdentifierOrLiteral(Kn);return e.isGlobalScopeAugmentation(ge)?"__global":'"'+Te+'"'}if(Kn.kind===160){var Fn=Kn.expression;if(e.isStringOrNumericLiteralLike(Fn))return e.escapeLeadingUnderscores(Fn.text);if(e.isSignedNumericLiteral(Fn))return e.tokenToString(Fn.operator)+Fn.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(Kn)){var et=e.getContainingClass(ge);if(!et)return;var Xt=et.symbol;return e.getSymbolNameForPrivateIdentifier(Xt,Kn.escapedText)}return e.isPropertyNameLiteral(Kn)?e.getEscapedTextOfIdentifierOrLiteral(Kn):void 0}switch(ge.kind){case 169:return"__constructor";case 177:case 172:case 318:return"__call";case 178:case 173:return"__new";case 174:return"__index";case 270:return"__export";case 300:return"export=";case 219:if(e.getAssignmentDeclarationKind(ge)===2)return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 312:return e.isJSDocConstructSignature(ge)?"__new":"__call";case 162:e.Debug.assert(ge.parent.kind===312,"Impossible parameter parent kind",function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[ge.parent.kind]:ge.parent.kind)+", expected JSDocFunctionType"});var ca=ge.parent,ha=ca.parameters.indexOf(ge);return"arg"+ha}}function Ce(ge){return e.isNamedDeclaration(ge)?e.declarationNameToString(ge.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(be(ge)))}function Be(ge,Kn,Te,Fn,et,Xt,ca){e.Debug.assert(ca||!e.hasDynamicName(Te));var ha=e.hasSyntacticModifier(Te,512)||e.isExportSpecifier(Te)&&Te.name.escapedText==="default",To=ca?"__computed":ha&&Kn?"default":be(Te),Pn;if(To===void 0)Pn=te(0,"__missing");else if(Pn=ge.get(To),Fn&2885600&&M.add(To),!Pn)ge.set(To,Pn=te(0,To)),Xt&&(Pn.isReplaceableByMethod=!0);else{if(Xt&&!Pn.isReplaceableByMethod)return Pn;if(Pn.flags&et){if(Pn.isReplaceableByMethod)ge.set(To,Pn=te(0,To));else if(!(Fn&3&&Pn.flags&67108864)){e.isNamedDeclaration(Te)&&e.setParent(Te.name,Te);var Vo=Pn.flags&2?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,Ko=!0;(Pn.flags&384||Fn&384)&&(Vo=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Ko=!1);var hs=!1;e.length(Pn.declarations)&&(ha||Pn.declarations&&Pn.declarations.length&&Te.kind===269&&!Te.isExportEquals)&&(Vo=e.Diagnostics.A_module_cannot_have_multiple_default_exports,Ko=!1,hs=!0);var hl=[];e.isTypeAliasDeclaration(Te)&&e.nodeIsMissing(Te.type)&&e.hasSyntacticModifier(Te,1)&&Pn.flags&2887656&&hl.push(I(Te,e.Diagnostics.Did_you_mean_0,"export type { "+e.unescapeLeadingUnderscores(Te.name.escapedText)+" }"));var Bi=e.getNameOfDeclaration(Te)||Te;e.forEach(Pn.declarations,function(rl,Ol){var nc=e.getNameOfDeclaration(rl)||rl,Sc=I(nc,Vo,Ko?Ce(rl):void 0);E.bindDiagnostics.push(hs?e.addRelatedInfo(Sc,I(Bi,Ol===0?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):Sc),hs&&hl.push(I(nc,e.Diagnostics.The_first_export_default_is_here))});var Js=I(Bi,Vo,Ko?Ce(Te):void 0);E.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,Vr([Js],hl,!1))),Pn=te(0,To)}}}return Se(Pn,Te,Fn),Pn.parent?e.Debug.assert(Pn.parent===Kn,"Existing symbol parent should match new one"):Pn.parent=Kn,Pn}function De(ge,Kn,Te){var Fn=!!(e.getCombinedModifierFlags(ge)&1)||en(ge);if(Kn&2097152)return ge.kind===273||ge.kind===263&&Fn?Be(k.symbol.exports,k.symbol,ge,Kn,Te):Be(k.locals,void 0,ge,Kn,Te);if(e.isJSDocTypeAlias(ge)&&e.Debug.assert(e.isInJSFile(ge)),!e.isAmbientModule(ge)&&(Fn||k.flags&64)){if(!k.locals||e.hasSyntacticModifier(ge,512)&&!be(ge))return Be(k.symbol.exports,k.symbol,ge,Kn,Te);var et=Kn&111551?1048576:0,Xt=Be(k.locals,void 0,ge,et,Te);return Xt.exportSymbol=Be(k.symbol.exports,k.symbol,ge,Kn,Te),ge.localSymbol=Xt,Xt}else return Be(k.locals,void 0,ge,Kn,Te)}function en(ge){if(ge.parent&&e.isModuleDeclaration(ge)&&(ge=ge.parent),!e.isJSDocTypeAlias(ge))return!1;if(!e.isJSDocEnumTag(ge)&&ge.fullName)return!0;var Kn=e.getNameOfDeclaration(ge);return Kn?!!(e.isPropertyAccessEntityNameExpression(Kn.parent)&&Na(Kn.parent)||e.isDeclaration(Kn.parent)&&e.getCombinedModifierFlags(Kn.parent)&1):!1}function fe(ge,Kn){var Te=k,Fn=b,et=ie;if(Kn&1?(ge.kind!==212&&(b=k),k=ie=ge,Kn&32&&(k.locals=e.createSymbolTable()),Jt(k)):Kn&2&&(ie=ge,ie.locals=void 0),Kn&4){var Xt=w,ca=R,ha=ne,To=U,Pn=G,Vo=p,Ko=f,hs=Kn&16&&!e.hasSyntacticModifier(ge,256)&&!ge.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(ge);hs||(w=ye({flags:2}),Kn&144&&(w.node=ge)),U=hs||ge.kind===169||ge.kind===168||e.isInJSFile(ge)&&(ge.kind===254||ge.kind===211)?En():void 0,G=void 0,R=void 0,ne=void 0,p=void 0,f=!1,we(ge),ge.flags&=-2817,!(w.flags&1)&&Kn&8&&e.nodeIsPresent(ge.body)&&(ge.flags|=256,f&&(ge.flags|=512),ge.endFlowNode=w),ge.kind===300&&(ge.flags|=T,ge.endFlowNode=w),U&&(rn(U,w),w=xe(U),(ge.kind===169||ge.kind===168||e.isInJSFile(ge)&&(ge.kind===254||ge.kind===211))&&(ge.returnFlowNode=w)),hs||(w=Xt),R=ca,ne=ha,U=To,G=Pn,p=Vo,f=Ko}else Kn&64?(se=!1,we(ge),ge.flags=se?ge.flags|128:ge.flags&-129):we(ge);k=Te,b=Fn,ie=et}function Ne(ge){qe(ge,function(Kn){return Kn.kind===254?Da(Kn):void 0}),qe(ge,function(Kn){return Kn.kind!==254?Da(Kn):void 0})}function qe(ge,Kn){Kn===void 0&&(Kn=Da),ge!==void 0&&e.forEach(ge,Kn)}function pe(ge){e.forEachChild(ge,Da,qe)}function we(ge){var Kn=N;if(N=!1,Fs(ge)){pe(ge),$a(ge),N=Kn;return}switch(ge.kind>=235&&ge.kind<=251&&!H.allowUnreachableCode&&(ge.flowNode=w),ge.kind){case 239:ze(ge);break;case 238:Tn(ge);break;case 240:On(ge);break;case 241:case 242:ur(ge);break;case 237:hr(ge);break;case 245:case 249:wr(ge);break;case 244:case 243:jn(ge);break;case 250:Zn(ge);break;case 247:Me(ge);break;case 261:Mn(ge);break;case 287:ar(ge);break;case 236:Xn(ge);break;case 248:cr(ge);break;case 217:Cn(ge);break;case 218:Gn(ge);break;case 219:if(e.isDestructuringAssignment(ge)){N=Kn,cn(ge);return}K(ge);break;case 213:Ye(ge);break;case 220:xn(ge);break;case 252:zn(ge);break;case 204:case 205:Ur(ge);break;case 206:qt(ge);break;case 228:dt(ge);break;case 340:case 333:case 334:gr(ge);break;case 300:{Ne(ge.statements),Da(ge.endOfFileToken);break}case 233:case 260:Ne(ge.statements);break;case 201:ir(ge);break;case 203:case 202:case 291:case 223:N=Kn;default:pe(ge);break}$a(ge),N=Kn}function pn(ge){switch(ge.kind){case 79:case 80:case 108:case 204:case 205:return Re(ge);case 206:return He(ge);case 210:case 228:return pn(ge.expression);case 219:return Un(ge);case 217:return ge.operator===53&&pn(ge.operand);case 214:return pn(ge.expression)}return!1}function Qe(ge){return e.isDottedName(ge)||(e.isPropertyAccessExpression(ge)||e.isNonNullExpression(ge)||e.isParenthesizedExpression(ge))&&Qe(ge.expression)||e.isBinaryExpression(ge)&&ge.operatorToken.kind===27&&Qe(ge.right)||e.isElementAccessExpression(ge)&&e.isStringOrNumericLiteralLike(ge.argumentExpression)&&Qe(ge.expression)||e.isAssignmentExpression(ge)&&Qe(ge.left)}function Re(ge){return Qe(ge)||e.isOptionalChain(ge)&&Re(ge.expression)}function He(ge){if(ge.arguments)for(var Kn=0,Te=ge.arguments;Kn<Te.length;Kn++){var Fn=Te[Kn];if(Re(Fn))return!0}return!!(ge.expression.kind===204&&Re(ge.expression.expression))}function Ln(ge,Kn){return e.isTypeOfExpression(ge)&&fn(ge.expression)&&e.isStringLiteralLike(Kn)}function Un(ge){switch(ge.operatorToken.kind){case 63:case 75:case 76:case 77:return Re(ge.left);case 34:case 35:case 36:case 37:return fn(ge.left)||fn(ge.right)||Ln(ge.right,ge.left)||Ln(ge.left,ge.right);case 102:return fn(ge.left);case 101:return pn(ge.right);case 27:return pn(ge.right)}return!1}function fn(ge){switch(ge.kind){case 210:return fn(ge.expression);case 219:switch(ge.operatorToken.kind){case 63:return fn(ge.left);case 27:return fn(ge.right)}}return Re(ge)}function En(){return ye({flags:4,antecedents:void 0})}function i(){return ye({flags:8,antecedents:void 0})}function In(ge,Kn,Te){return ye({flags:1024,target:ge,antecedents:Kn,antecedent:Te})}function X(ge){ge.flags|=ge.flags&2048?4096:2048}function rn(ge,Kn){!(Kn.flags&1)&&!e.contains(ge.antecedents,Kn)&&((ge.antecedents||(ge.antecedents=[])).push(Kn),X(Kn))}function $n(ge,Kn,Te){return Kn.flags&1?Kn:Te?(Te.kind===110&&ge&64||Te.kind===95&&ge&32)&&!e.isExpressionOfOptionalChainRoot(Te)&&!e.isNullishCoalesce(Te.parent)?me:pn(Te)?(X(Kn),ye({flags:ge,antecedent:Kn,node:Te})):Kn:ge&32?Kn:me}function Vn(ge,Kn,Te,Fn){return X(ge),ye({flags:128,antecedent:ge,switchStatement:Kn,clauseStart:Te,clauseEnd:Fn})}function le(ge,Kn,Te){X(Kn);var Fn=ye({flags:ge,antecedent:Kn,node:Te});return G&&rn(G,Fn),Fn}function Pe(ge,Kn){return X(ge),ye({flags:512,antecedent:ge,node:Kn})}function xe(ge){var Kn=ge.antecedents;return Kn?Kn.length===1?Kn[0]:ge:me}function Ze(ge){var Kn=ge.parent;switch(Kn.kind){case 237:case 239:case 238:return Kn.expression===ge;case 240:case 220:return Kn.condition===ge}return!1}function hn(ge){for(;;)if(ge.kind===210)ge=ge.expression;else if(ge.kind===217&&ge.operator===53)ge=ge.operand;else return ge.kind===219&&(ge.operatorToken.kind===55||ge.operatorToken.kind===56||ge.operatorToken.kind===60)}function Le(ge){return ge=e.skipParentheses(ge),e.isBinaryExpression(ge)&&e.isLogicalOrCoalescingAssignmentOperator(ge.operatorToken.kind)}function $e(ge){for(;e.isParenthesizedExpression(ge.parent)||e.isPrefixUnaryExpression(ge.parent)&&ge.parent.operator===53;)ge=ge.parent;return!Ze(ge)&&!Le(ge.parent)&&!hn(ge.parent)&&!(e.isOptionalChain(ge.parent)&&ge.parent.expression===ge)}function An(ge,Kn,Te,Fn){var et=C,Xt=d;C=Te,d=Fn,ge(Kn),C=et,d=Xt}function Ue(ge,Kn,Te){An(Da,ge,Kn,Te),(!ge||!Le(ge)&&!hn(ge)&&!(e.isOptionalChain(ge)&&e.isOutermostOptionalChain(ge)))&&(rn(Kn,$n(32,w,ge)),rn(Te,$n(64,w,ge)))}function gn(ge,Kn,Te){var Fn=R,et=ne;R=Kn,ne=Te,Da(ge),R=Fn,ne=et}function Wn(ge,Kn){for(var Te=p;Te&&ge.parent.kind===248;)Te.continueTarget=Kn,Te=Te.next,ge=ge.parent;return Kn}function ze(ge){var Kn=Wn(ge,i()),Te=En(),Fn=En();rn(Kn,w),w=Kn,Ue(ge.expression,Te,Fn),w=xe(Te),gn(ge.statement,Fn,Kn),rn(Kn,w),w=xe(Fn)}function Tn(ge){var Kn=i(),Te=Wn(ge,En()),Fn=En();rn(Kn,w),w=Kn,gn(ge.statement,Fn,Te),rn(Te,w),w=xe(Te),Ue(ge.expression,Kn,Fn),w=xe(Fn)}function On(ge){var Kn=Wn(ge,i()),Te=En(),Fn=En();Da(ge.initializer),rn(Kn,w),w=Kn,Ue(ge.condition,Te,Fn),w=xe(Te),gn(ge.statement,Fn,Kn),Da(ge.incrementor),rn(Kn,w),w=xe(Fn)}function ur(ge){var Kn=Wn(ge,i()),Te=En();Da(ge.expression),rn(Kn,w),w=Kn,ge.kind===242&&Da(ge.awaitModifier),rn(Te,w),Da(ge.initializer),ge.initializer.kind!==253&&Bn(ge.initializer),gn(ge.statement,Te,Kn),rn(Kn,w),w=xe(Te)}function hr(ge){var Kn=En(),Te=En(),Fn=En();Ue(ge.expression,Kn,Te),w=xe(Kn),Da(ge.thenStatement),rn(Fn,w),w=xe(Te),Da(ge.elseStatement),rn(Fn,w),w=xe(Fn)}function wr(ge){Da(ge.expression),ge.kind===245&&(f=!0,U&&rn(U,w)),w=me}function Qr(ge){for(var Kn=p;Kn;Kn=Kn.next)if(Kn.name===ge)return Kn}function Ke(ge,Kn,Te){var Fn=ge.kind===244?Kn:Te;Fn&&(rn(Fn,w),w=me)}function jn(ge){if(Da(ge.label),ge.label){var Kn=Qr(ge.label.escapedText);Kn&&(Kn.referenced=!0,Ke(ge,Kn.breakTarget,Kn.continueTarget))}else Ke(ge,R,ne)}function Zn(ge){var Kn=U,Te=G,Fn=En(),et=En(),Xt=En();if(ge.finallyBlock&&(U=et),rn(Xt,w),G=Xt,Da(ge.tryBlock),rn(Fn,w),ge.catchClause&&(w=xe(Xt),Xt=En(),rn(Xt,w),G=Xt,Da(ge.catchClause),rn(Fn,w)),U=Kn,G=Te,ge.finallyBlock){var ca=En();ca.antecedents=e.concatenate(e.concatenate(Fn.antecedents,Xt.antecedents),et.antecedents),w=ca,Da(ge.finallyBlock),w.flags&1?w=me:(U&&et.antecedents&&rn(U,In(ca,et.antecedents,w)),G&&Xt.antecedents&&rn(G,In(ca,Xt.antecedents,w)),w=Fn.antecedents?In(ca,Fn.antecedents,w):me)}else w=xe(Fn)}function Me(ge){var Kn=En();Da(ge.expression);var Te=R,Fn=g;R=Kn,g=w,Da(ge.caseBlock),rn(Kn,w);var et=e.forEach(ge.caseBlock.clauses,function(Xt){return Xt.kind===288});ge.possiblyExhaustive=!et&&!Kn.antecedents,et||rn(Kn,Vn(g,ge,0,0)),R=Te,g=Fn,w=xe(Kn)}function Mn(ge){for(var Kn=ge.clauses,Te=pn(ge.parent.expression),Fn=me,et=0;et<Kn.length;et++){for(var Xt=et;!Kn[et].statements.length&&et+1<Kn.length;)Da(Kn[et]),et++;var ca=En();rn(ca,Te?Vn(g,ge.parent,Xt,et+1):g),rn(ca,Fn),w=xe(ca);var ha=Kn[et];Da(ha),Fn=w,!(w.flags&1)&&et!==Kn.length-1&&H.noFallthroughCasesInSwitch&&(ha.fallthroughFlowNode=w)}}function ar(ge){var Kn=w;w=g,Da(ge.expression),w=Kn,qe(ge.statements)}function Xn(ge){Da(ge.expression),yr(ge.expression)}function yr(ge){if(ge.kind===206){var Kn=ge;Kn.expression.kind!==106&&e.isDottedName(Kn.expression)&&(w=Pe(w,Kn))}}function cr(ge){var Kn=En();p={next:p,name:ge.label.escapedText,breakTarget:Kn,continueTarget:void 0,referenced:!1},Da(ge.label),Da(ge.statement),!p.referenced&&!H.allowUnusedLabels&&Qi(e.unusedLabelIsError(H),ge.label,e.Diagnostics.Unused_label),p=p.next,rn(Kn,w),w=xe(Kn)}function Fe(ge){ge.kind===219&&ge.operatorToken.kind===63?Bn(ge.left):Bn(ge)}function Bn(ge){if(Qe(ge))w=le(16,w,ge);else if(ge.kind===202)for(var Kn=0,Te=ge.elements;Kn<Te.length;Kn++){var Fn=Te[Kn];Fn.kind===223?Bn(Fn.expression):Fe(Fn)}else if(ge.kind===203)for(var et=0,Xt=ge.properties;et<Xt.length;et++){var ca=Xt[et];ca.kind===291?Fe(ca.initializer):ca.kind===292?Bn(ca.name):ca.kind===293&&Bn(ca.expression)}}function J(ge,Kn,Te){var Fn=En();ge.operatorToken.kind===55||ge.operatorToken.kind===76?Ue(ge.left,Fn,Te):Ue(ge.left,Kn,Fn),w=xe(Fn),Da(ge.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(ge.operatorToken.kind)?(An(Da,ge.right,Kn,Te),Bn(ge.left),rn(Kn,$n(32,w,ge)),rn(Te,$n(64,w,ge))):Ue(ge.right,Kn,Te)}function Cn(ge){if(ge.operator===53){var Kn=C;C=d,d=Kn,pe(ge),d=C,C=Kn}else pe(ge),(ge.operator===45||ge.operator===46)&&Bn(ge.operand)}function Gn(ge){pe(ge),(ge.operator===45||ge.operator===46)&&Bn(ge.operand)}function cn(ge){N?(N=!1,Da(ge.operatorToken),Da(ge.right),N=!0,Da(ge.left)):(N=!0,Da(ge.left),N=!1,Da(ge.operatorToken),Da(ge.right)),Bn(ge.left)}function Rn(){return e.createBinaryExpressionTrampoline(ge,Kn,Te,Fn,et,void 0);function ge(ca,ha){if(ha){ha.stackIndex++,e.setParent(ca,ee);var To=m;Io(ca);var Pn=ee;ee=ca,ha.skip=!1,ha.inStrictModeStack[ha.stackIndex]=To,ha.parentStack[ha.stackIndex]=Pn}else ha={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var Vo=ca.operatorToken.kind;if(Vo===55||Vo===56||Vo===60||e.isLogicalOrCoalescingAssignmentOperator(Vo)){if($e(ca)){var Ko=En();J(ca,Ko,Ko),w=xe(Ko)}else J(ca,C,d);ha.skip=!0}return ha}function Kn(ca,ha,To){if(!ha.skip)return Xt(ca)}function Te(ca,ha,To){ha.skip||(ca.kind===27&&yr(To.left),Da(ca))}function Fn(ca,ha,To){if(!ha.skip)return Xt(ca)}function et(ca,ha){if(!ha.skip){var To=ca.operatorToken.kind;if(e.isAssignmentOperator(To)&&!e.isAssignmentTarget(ca)&&(Bn(ca.left),To===63&&ca.left.kind===205)){var Pn=ca.left;fn(Pn.expression)&&(w=le(256,w,ca))}}var Vo=ha.inStrictModeStack[ha.stackIndex],Ko=ha.parentStack[ha.stackIndex];Vo!==void 0&&(m=Vo),Ko!==void 0&&(ee=Ko),ha.skip=!1,ha.stackIndex--}function Xt(ca){if(ca&&e.isBinaryExpression(ca)&&!e.isDestructuringAssignment(ca))return ca;Da(ca)}}function Ye(ge){pe(ge),ge.expression.kind===204&&Bn(ge.expression)}function xn(ge){var Kn=En(),Te=En(),Fn=En();Ue(ge.condition,Kn,Te),w=xe(Kn),Da(ge.questionToken),Da(ge.whenTrue),rn(Fn,w),w=xe(Te),Da(ge.colonToken),Da(ge.whenFalse),rn(Fn,w),w=xe(Fn)}function an(ge){var Kn=e.isOmittedExpression(ge)?void 0:ge.name;if(e.isBindingPattern(Kn))for(var Te=0,Fn=Kn.elements;Te<Fn.length;Te++){var et=Fn[Te];an(et)}else w=le(16,w,ge)}function zn(ge){pe(ge),(ge.initializer||e.isForInOrOfStatement(ge.parent.parent))&&an(ge)}function ir(ge){e.isBindingPattern(ge.name)?(qe(ge.decorators),qe(ge.modifiers),Da(ge.dotDotDotToken),Da(ge.propertyName),Da(ge.initializer),Da(ge.name)):pe(ge)}function gr(ge){Da(ge.tagName),ge.kind!==334&&ge.fullName&&(e.setParent(ge.fullName,ge),e.setParentRecursive(ge.fullName,!1)),typeof ge.comment!="string"&&qe(ge.comment)}function Dr(ge){pe(ge);var Kn=e.getHostSignatureFromJSDoc(ge);Kn&&Kn.kind!==167&&Se(Kn.symbol,Kn,32)}function qr(ge,Kn,Te){An(Da,ge,Kn,Te),(!e.isOptionalChain(ge)||e.isOutermostOptionalChain(ge))&&(rn(Kn,$n(32,w,ge)),rn(Te,$n(64,w,ge)))}function ft(ge){switch(ge.kind){case 204:Da(ge.questionDotToken),Da(ge.name);break;case 205:Da(ge.questionDotToken),Da(ge.argumentExpression);break;case 206:Da(ge.questionDotToken),qe(ge.typeArguments),qe(ge.arguments);break}}function xt(ge,Kn,Te){var Fn=e.isOptionalChainRoot(ge)?En():void 0;qr(ge.expression,Fn||Kn,Te),Fn&&(w=xe(Fn)),An(ft,ge,Kn,Te),e.isOutermostOptionalChain(ge)&&(rn(Kn,$n(32,w,ge)),rn(Te,$n(64,w,ge)))}function Kr(ge){if($e(ge)){var Kn=En();xt(ge,Kn,Kn),w=xe(Kn)}else xt(ge,C,d)}function dt(ge){e.isOptionalChain(ge)?Kr(ge):pe(ge)}function Ur(ge){e.isOptionalChain(ge)?Kr(ge):pe(ge)}function qt(ge){if(e.isOptionalChain(ge))Kr(ge);else{var Kn=e.skipParentheses(ge.expression);Kn.kind===211||Kn.kind===212?(qe(ge.typeArguments),qe(ge.arguments),Da(ge.expression)):(pe(ge),ge.expression.kind===106&&(w=Pe(w,ge)))}if(ge.expression.kind===204){var Te=ge.expression;e.isIdentifier(Te.name)&&fn(Te.expression)&&e.isPushOrUnshiftIdentifier(Te.name)&&(w=le(256,w,ge))}}function Cr(ge){switch(ge.kind){case 224:case 255:case 258:case 203:case 180:case 317:case 284:return 1;case 256:return 65;case 259:case 257:case 193:return 33;case 300:return 37;case 167:if(e.isObjectLiteralOrClassExpressionMethod(ge))return 173;case 169:case 254:case 166:case 170:case 171:case 172:case 318:case 312:case 177:case 173:case 174:case 178:case 168:return 45;case 211:case 212:return 61;case 260:return 4;case 165:return ge.initializer?4:0;case 290:case 240:case 241:case 242:case 261:return 2;case 233:return e.isFunctionLike(ge.parent)||e.isClassStaticBlockDeclaration(ge.parent)?0:2}return 0}function Jt(ge){q&&(q.nextContainer=ge),q=ge}function Ot(ge,Kn,Te){switch(k.kind){case 259:return De(ge,Kn,Te);case 300:return Ya(ge,Kn,Te);case 224:case 255:return ri(ge,Kn,Te);case 258:return Be(k.symbol.exports,k.symbol,ge,Kn,Te);case 180:case 317:case 203:case 256:case 284:return Be(k.symbol.members,k.symbol,ge,Kn,Te);case 177:case 178:case 172:case 173:case 318:case 174:case 167:case 166:case 169:case 170:case 171:case 254:case 211:case 212:case 312:case 340:case 333:case 168:case 257:case 193:return Be(k.locals,void 0,ge,Kn,Te)}}function ri(ge,Kn,Te){return e.isStatic(ge)?Be(k.symbol.exports,k.symbol,ge,Kn,Te):Be(k.symbol.members,k.symbol,ge,Kn,Te)}function Ya(ge,Kn,Te){return e.isExternalModule(E)?De(ge,Kn,Te):Be(E.locals,void 0,ge,Kn,Te)}function eo(ge){var Kn=e.isSourceFile(ge)?ge:e.tryCast(ge.body,e.isModuleBlock);return!!Kn&&Kn.statements.some(function(Te){return e.isExportDeclaration(Te)||e.isExportAssignment(Te)})}function za(ge){ge.flags&8388608&&!eo(ge)?ge.flags|=64:ge.flags&=-65}function ua(ge){if(za(ge),e.isAmbientModule(ge))if(e.hasSyntacticModifier(ge,1)&&qi(ge,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(ge))Ar(ge);else{var Kn=void 0;if(ge.name.kind===10){var Te=ge.name.text;Kn=e.tryParsePattern(Te),Kn===void 0&&qi(ge.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,Te)}var Fn=Ot(ge,512,110735);E.patternAmbientModules=e.append(E.patternAmbientModules,Kn&&!e.isString(Kn)?{pattern:Kn,symbol:Fn}:void 0)}else{var et=Ar(ge);if(et!==0){var Fn=ge.symbol;Fn.constEnumOnlyModule=!(Fn.flags&304)&&et===2&&Fn.constEnumOnlyModule!==!1}}}function Ar(ge){var Kn=ue(ge),Te=Kn!==0;return Ot(ge,Te?512:1024,Te?110735:0),Kn}function at(ge){var Kn=te(131072,be(ge));Se(Kn,ge,131072);var Te=te(2048,"__type");Se(Te,ge,2048),Te.members=e.createSymbolTable(),Te.members.set(Kn.escapedName,Kn)}function Hr(ge){var Kn;if(function(Vo){Vo[Vo.Property=1]="Property",Vo[Vo.Accessor=2]="Accessor"}(Kn||(Kn={})),m&&!e.isAssignmentTarget(ge))for(var Te=new e.Map,Fn=0,et=ge.properties;Fn<et.length;Fn++){var Xt=et[Fn];if(!(Xt.kind===293||Xt.name.kind!==79)){var ca=Xt.name,ha=Xt.kind===291||Xt.kind===292||Xt.kind===167?1:2,To=Te.get(ca.escapedText);if(!To){Te.set(ca.escapedText,ha);continue}if(ha===1&&To===1){var Pn=e.getErrorSpanForNode(E,ca);E.bindDiagnostics.push(e.createFileDiagnostic(E,Pn.start,Pn.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}}return Rr(ge,4096,"__object")}function Wt(ge){return Rr(ge,4096,"__jsxAttributes")}function Zt(ge,Kn,Te){return Ot(ge,Kn,Te)}function Rr(ge,Kn,Te){var Fn=te(Kn,Te);return Kn&106508&&(Fn.parent=k.symbol),Se(Fn,ge,Kn),Fn}function Lr(ge,Kn,Te){switch(ie.kind){case 259:De(ge,Kn,Te);break;case 300:if(e.isExternalOrCommonJsModule(k)){De(ge,Kn,Te);break}default:ie.locals||(ie.locals=e.createSymbolTable(),Jt(ie)),Be(ie.locals,void 0,ge,Kn,Te)}}function Xr(){if(oe){for(var ge=k,Kn=q,Te=ie,Fn=ee,et=w,Xt=0,ca=oe;Xt<ca.length;Xt++){var ha=ca[Xt],To=ha.parent.parent;k=e.findAncestor(To.parent,function(hs){return!!(Cr(hs)&1)})||E,ie=e.getEnclosingBlockScopeContainer(To)||E,w=ye({flags:2}),ee=ha,Da(ha.typeExpression);var Pn=e.getNameOfDeclaration(ha);if((e.isJSDocEnumTag(ha)||!ha.fullName)&&Pn&&e.isPropertyAccessEntityNameExpression(Pn.parent)){var Vo=Na(Pn.parent);if(Vo){Et(E.symbol,Pn.parent,Vo,!!e.findAncestor(Pn,function(hs){return e.isPropertyAccessExpression(hs)&&hs.name.escapedText==="prototype"}),!1);var Ko=k;switch(e.getAssignmentDeclarationPropertyAccessKind(Pn.parent)){case 1:case 2:e.isExternalOrCommonJsModule(E)?k=E:k=void 0;break;case 4:k=Pn.parent.expression;break;case 3:k=Pn.parent.expression.name;break;case 5:k=V(E,Pn.parent.expression)?E:e.isPropertyAccessExpression(Pn.parent.expression)?Pn.parent.expression.name:Pn.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}k&&De(ha,524288,788968),k=Ko}}else e.isJSDocEnumTag(ha)||!ha.fullName||ha.fullName.kind===79?(ee=ha.parent,Lr(ha,524288,788968)):Da(ha.fullName)}k=ge,q=Kn,ie=Te,ee=Fn,w=et}}function nt(ge){!E.parseDiagnostics.length&&!(ge.flags&8388608)&&!(ge.flags&4194304)&&!e.isIdentifierName(ge)&&(m&&ge.originalKeywordKind>=117&&ge.originalKeywordKind<=125?E.bindDiagnostics.push(I(ge,vt(ge),e.declarationNameToString(ge))):ge.originalKeywordKind===131?e.isExternalModule(E)&&e.isInTopLevelContext(ge)?E.bindDiagnostics.push(I(ge,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(ge))):ge.flags&32768&&E.bindDiagnostics.push(I(ge,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(ge))):ge.originalKeywordKind===125&&ge.flags&8192&&E.bindDiagnostics.push(I(ge,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(ge))))}function vt(ge){return e.getContainingClass(ge)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:E.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 or(ge){ge.escapedText==="#constructor"&&(E.parseDiagnostics.length||E.bindDiagnostics.push(I(ge,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(ge))))}function $t(ge){m&&e.isLeftHandSideExpression(ge.left)&&e.isAssignmentOperator(ge.operatorToken.kind)&&Ma(ge,ge.left)}function Va(ge){m&&ge.variableDeclaration&&Ma(ge,ge.variableDeclaration.name)}function li(ge){if(m&&ge.expression.kind===79){var Kn=e.getErrorSpanForNode(E,ge.expression);E.bindDiagnostics.push(e.createFileDiagnostic(E,Kn.start,Kn.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function zi(ge){return e.isIdentifier(ge)&&(ge.escapedText==="eval"||ge.escapedText==="arguments")}function Ma(ge,Kn){if(Kn&&Kn.kind===79){var Te=Kn;if(zi(Te)){var Fn=e.getErrorSpanForNode(E,Kn);E.bindDiagnostics.push(e.createFileDiagnostic(E,Fn.start,Fn.length,di(ge),e.idText(Te)))}}}function di(ge){return e.getContainingClass(ge)?e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:E.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Yi(ge){m&&Ma(ge,ge.name)}function uo(ge){return e.getContainingClass(ge)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:E.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 bi(ge){if(L<2&&ie.kind!==300&&ie.kind!==259&&!e.isFunctionLikeOrClassStaticBlockDeclaration(ie)){var Kn=e.getErrorSpanForNode(E,ge);E.bindDiagnostics.push(e.createFileDiagnostic(E,Kn.start,Kn.length,uo(ge)))}}function Mi(ge){m&&ge.numericLiteralFlags&32&&E.bindDiagnostics.push(I(ge,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function Go(ge){m&&Ma(ge,ge.operand)}function io(ge){m&&(ge.operator===45||ge.operator===46)&&Ma(ge,ge.operand)}function wi(ge){m&&qi(ge,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function Ho(ge){m&&H.target>=2&&(e.isDeclarationStatement(ge.statement)||e.isVariableStatement(ge.statement))&&qi(ge.label,e.Diagnostics.A_label_is_not_allowed_here)}function qi(ge,Kn,Te,Fn,et){var Xt=e.getSpanOfTokenAtPosition(E,ge.pos);E.bindDiagnostics.push(e.createFileDiagnostic(E,Xt.start,Xt.length,Kn,Te,Fn,et))}function Qi(ge,Kn,Te){as(ge,Kn,Kn,Te)}function as(ge,Kn,Te,Fn){gs(ge,{pos:e.getTokenPosOfNode(Kn,E),end:Te.end},Fn)}function gs(ge,Kn,Te){var Fn=e.createFileDiagnostic(E,Kn.pos,Kn.end-Kn.pos,Te);ge?E.bindDiagnostics.push(Fn):E.bindSuggestionDiagnostics=e.append(E.bindSuggestionDiagnostics,Mt(Mt({},Fn),{category:e.DiagnosticCategory.Suggestion}))}function Da(ge){if(ge){e.setParent(ge,ee);var Kn=m;if(Io(ge),ge.kind>158){var Te=ee;ee=ge;var Fn=Cr(ge);Fn===0?we(ge):fe(ge,Fn),ee=Te}else{var Te=ee;ge.kind===1&&(ee=ge),$a(ge),ee=Te}m=Kn}}function $a(ge){if(e.hasJSDocNodes(ge))if(e.isInJSFile(ge))for(var Kn=0,Te=ge.jsDoc;Kn<Te.length;Kn++){var Fn=Te[Kn];Da(Fn)}else for(var et=0,Xt=ge.jsDoc;et<Xt.length;et++){var Fn=Xt[et];e.setParent(Fn,ge),e.setParentRecursive(Fn,!1)}}function Ni(ge){if(!m)for(var Kn=0,Te=ge;Kn<Te.length;Kn++){var Fn=Te[Kn];if(!e.isPrologueDirective(Fn))return;if(vo(Fn)){m=!0;return}}}function vo(ge){var Kn=e.getSourceTextOfNodeFromSourceFile(E,ge.expression);return Kn==='"use strict"'||Kn==="'use strict'"}function Io(ge){switch(ge.kind){case 79:if(ge.isInJSDocNamespace){for(var Kn=ge.parent;Kn&&!e.isJSDocTypeAlias(Kn);)Kn=Kn.parent;Lr(Kn,524288,788968);break}case 108:return w&&(e.isExpression(ge)||ee.kind===292)&&(ge.flowNode=w),nt(ge);case 159:w&&e.isPartOfTypeQuery(ge)&&(ge.flowNode=w);break;case 229:case 106:ge.flowNode=w;break;case 80:return or(ge);case 204:case 205:var Te=ge;w&&Qe(Te)&&(Te.flowNode=w),e.isSpecialPropertyDeclaration(Te)&&Ie(Te),e.isInJSFile(Te)&&E.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(Te)&&!Z(ie,"module")&&Be(E.locals,void 0,Te.expression,134217729,111550);break;case 219:var Fn=e.getAssignmentDeclarationKind(ge);switch(Fn){case 1:ti(ge);break;case 2:va(ge);break;case 3:Hn(ge.left,ge);break;case 6:We(ge);break;case 4:ce(ge);break;case 5:var et=ge.left.expression;if(e.isInJSFile(ge)&&e.isIdentifier(et)){var Xt=Z(ie,et.escapedText);if(e.isThisInitializedDeclaration(Xt==null?void 0:Xt.valueDeclaration)){ce(ge);break}}Sr(ge);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return $t(ge);case 290:return Va(ge);case 213:return li(ge);case 8:return Mi(ge);case 218:return Go(ge);case 217:return io(ge);case 246:return wi(ge);case 248:return Ho(ge);case 190:se=!0;return;case 175:break;case 161:return Hl(ge);case 162:return ws(ge);case 252:return cl(ge);case 201:return ge.flowNode=w,cl(ge);case 165:case 164:return Bo(ge);case 291:case 292:return ps(ge,4,0);case 294:return ps(ge,8,900095);case 172:case 173:case 174:return Ot(ge,131072,0);case 167:case 166:return ps(ge,8192|(ge.questionToken?16777216:0),e.isObjectLiteralMethod(ge)?0:103359);case 254:return vl(ge);case 169:return Ot(ge,16384,0);case 170:return ps(ge,32768,46015);case 171:return ps(ge,65536,78783);case 177:case 312:case 318:case 178:return at(ge);case 180:case 317:case 193:return Uo(ge);case 327:return Dr(ge);case 203:return Hr(ge);case 211:case 212:return ul(ge);case 206:var ca=e.getAssignmentDeclarationKind(ge);switch(ca){case 7:return vr(ge);case 8:return ia(ge);case 9:return sn(ge);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(ge)&&Ao(ge);break;case 224:case 255:return m=!0,oo(ge);case 256:return Lr(ge,64,788872);case 257:return Lr(ge,524288,788968);case 258:return Zo(ge);case 259:return ua(ge);case 284:return Wt(ge);case 283:return Zt(ge,4,0);case 263:case 266:case 268:case 273:return Ot(ge,2097152,2097152);case 262:return is(ge);case 265:return _r(ge);case 270:return mn(ge);case 269:return Jo(ge);case 300:return Ni(ge.statements),cs();case 233:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(ge.parent))return;case 260:return Ni(ge.statements);case 335:if(ge.parent.kind===318)return ws(ge);if(ge.parent.kind!==317)break;case 342:var ha=ge,To=ha.isBracketed||ha.typeExpression&&ha.typeExpression.type.kind===311?16777220:4;return Ot(ha,To,0);case 340:case 333:case 334:return(oe||(oe=[])).push(ge)}}function Bo(ge){return ps(ge,4|(ge.questionToken?16777216:0),0)}function Uo(ge){return Rr(ge,2048,"__type")}function cs(){if(za(E),e.isExternalModule(E))us();else if(e.isJsonSourceFile(E)){us();var ge=E.symbol;Be(E.symbol.exports,E.symbol,E,4,67108863),E.symbol=ge}}function us(){Rr(E,512,'"'+e.removeFileExtension(E.fileName)+'"')}function Jo(ge){if(!k.symbol||!k.symbol.exports)Rr(ge,111551,be(ge));else{var Kn=e.exportAssignmentIsAlias(ge)?2097152:4,Te=Be(k.symbol.exports,k.symbol,ge,Kn,67108863);ge.isExportEquals&&e.setValueDeclaration(Te,ge)}}function is(ge){ge.modifiers&&ge.modifiers.length&&E.bindDiagnostics.push(I(ge,e.Diagnostics.Modifiers_cannot_appear_here));var Kn=e.isSourceFile(ge.parent)?e.isExternalModule(ge.parent)?ge.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;Kn?E.bindDiagnostics.push(I(ge,Kn)):(E.symbol.globalExports=E.symbol.globalExports||e.createSymbolTable(),Be(E.symbol.globalExports,E.symbol,ge,2097152,2097152))}function mn(ge){!k.symbol||!k.symbol.exports?Rr(ge,8388608,be(ge)):ge.exportClause?e.isNamespaceExport(ge.exportClause)&&(e.setParent(ge.exportClause,ge),Be(k.symbol.exports,k.symbol,ge.exportClause,2097152,2097152)):Be(k.symbol.exports,k.symbol,ge,8388608,0)}function _r(ge){ge.name&&Ot(ge,2097152,2097152)}function $r(ge){return E.externalModuleIndicator?!1:(E.commonJsModuleIndicator||(E.commonJsModuleIndicator=ge,us()),!0)}function ia(ge){if($r(ge)){var Kn=vs(ge.arguments[0],void 0,function(Fn,et){return et&&Se(et,Fn,67110400),et});if(Kn){var Te=1048580;Be(Kn.exports,Kn,ge,Te,0)}}}function ti(ge){if($r(ge)){var Kn=vs(ge.left.expression,void 0,function(et,Xt){return Xt&&Se(Xt,et,67110400),Xt});if(Kn){var Te=e.isAliasableExpression(ge.right)&&(e.isExportsIdentifier(ge.left.expression)||e.isModuleExportsAccessExpression(ge.left.expression)),Fn=Te?2097152:1048580;e.setParent(ge.left,ge),Be(Kn.exports,Kn,ge.left,Fn,0)}}}function va(ge){if($r(ge)){var Kn=e.getRightMostAssignedExpression(ge.right);if(!(e.isEmptyObjectLiteral(Kn)||k===E&&V(E,Kn))){if(e.isObjectLiteralExpression(Kn)&&e.every(Kn.properties,e.isShorthandPropertyAssignment)){e.forEach(Kn.properties,Ve);return}var Te=e.exportAssignmentIsAlias(ge)?2097152:1049092,Fn=Be(E.symbol.exports,E.symbol,ge,Te|67108864,0);e.setValueDeclaration(Fn,ge)}}}function Ve(ge){Be(E.symbol.exports,E.symbol,ge,69206016,0)}function ce(ge){e.Debug.assert(e.isInJSFile(ge));var Kn=e.isBinaryExpression(ge)&&e.isPropertyAccessExpression(ge.left)&&e.isPrivateIdentifier(ge.left.name)||e.isPropertyAccessExpression(ge)&&e.isPrivateIdentifier(ge.name);if(!Kn){var Te=e.getThisContainer(ge,!1);switch(Te.kind){case 254:case 211:var Fn=Te.symbol;if(e.isBinaryExpression(Te.parent)&&Te.parent.operatorToken.kind===63){var et=Te.parent.left;e.isBindableStaticAccessExpression(et)&&e.isPrototypeAccess(et.expression)&&(Fn=ho(et.expression.expression,b))}Fn&&Fn.valueDeclaration&&(Fn.members=Fn.members||e.createSymbolTable(),e.hasDynamicName(ge)?dn(ge,Fn,Fn.members):Be(Fn.members,Fn,ge,67108868,0),Se(Fn,Fn.valueDeclaration,32));break;case 169:case 165:case 167:case 170:case 171:var Xt=Te.parent,ca=e.isStatic(Te)?Xt.symbol.exports:Xt.symbol.members;e.hasDynamicName(ge)?dn(ge,Xt.symbol,ca):Be(ca,Xt.symbol,ge,67108868,0,!0);break;case 300:if(e.hasDynamicName(ge))break;Te.commonJsModuleIndicator?Be(Te.symbol.exports,Te.symbol,ge,1048580,0):Ot(ge,1,111550);break;default:e.Debug.failBadSyntaxKind(Te)}}}function dn(ge,Kn,Te){Be(Te,Kn,ge,4,0,!0,!0),j(ge,Kn)}function j(ge,Kn){Kn&&(Kn.assignmentDeclarationMembers||(Kn.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(ge),ge)}function Ie(ge){ge.expression.kind===108?ce(ge):e.isBindableStaticAccessExpression(ge)&&ge.parent.parent.kind===300&&(e.isPrototypeAccess(ge.expression)?Hn(ge,ge.parent):ot(ge))}function We(ge){e.setParent(ge.left,ge),e.setParent(ge.right,ge),ei(ge.left.expression,ge.left,!1,!0)}function sn(ge){var Kn=ho(ge.arguments[0].expression);Kn&&Kn.valueDeclaration&&Se(Kn,Kn.valueDeclaration,32),ra(ge,Kn,!0)}function Hn(ge,Kn){var Te=ge.expression,Fn=Te.expression;e.setParent(Fn,Te),e.setParent(Te,ge),e.setParent(ge,Kn),ei(Fn,ge,!0,!0)}function vr(ge){var Kn=ho(ge.arguments[0]),Te=ge.parent.parent.kind===300;Kn=Et(Kn,ge.arguments[0],Te,!1,!1),ra(ge,Kn,!1)}function Sr(ge){var Kn,Te=ho(ge.left.expression,k)||ho(ge.left.expression,ie);if(!(!e.isInJSFile(ge)&&!e.isFunctionSymbol(Te))){var Fn=e.getLeftmostAccessExpression(ge.left);if(!(e.isIdentifier(Fn)&&((Kn=Z(k,Fn.escapedText))===null||Kn===void 0?void 0:Kn.flags)&2097152))if(e.setParent(ge.left,ge),e.setParent(ge.right,ge),e.isIdentifier(ge.left.expression)&&k===E&&V(E,ge.left.expression))ti(ge);else if(e.hasDynamicName(ge)){Rr(ge,67108868,"__computed");var et=Et(Te,ge.left.expression,Na(ge.left),!1,!1);j(ge,et)}else ot(e.cast(ge.left,e.isBindableStaticNameExpression))}}function ot(ge){e.Debug.assert(!e.isIdentifier(ge)),e.setParent(ge.expression,ge),ei(ge.expression,ge,!1,!1)}function Et(ge,Kn,Te,Fn,et){if((ge==null?void 0:ge.flags)&2097152)return ge;if(Te&&!Fn){var Xt=67110400,ca=110735;ge=vs(Kn,ge,function(ha,To,Pn){if(To)return Se(To,ha,Xt),To;var Vo=Pn?Pn.exports:E.jsGlobalAugmentations||(E.jsGlobalAugmentations=e.createSymbolTable());return Be(Vo,Pn,ha,Xt,ca)})}return et&&ge&&ge.valueDeclaration&&Se(ge,ge.valueDeclaration,32),ge}function ra(ge,Kn,Te){if(!(!Kn||!Li(Kn))){var Fn=Te?Kn.members||(Kn.members=e.createSymbolTable()):Kn.exports||(Kn.exports=e.createSymbolTable()),et=0,Xt=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(ge))?(et=8192,Xt=103359):e.isCallExpression(ge)&&e.isBindableObjectDefinePropertyCall(ge)&&(e.some(ge.arguments[2].properties,function(ca){var ha=e.getNameOfDeclaration(ca);return!!ha&&e.isIdentifier(ha)&&e.idText(ha)==="set"})&&(et|=65540,Xt|=78783),e.some(ge.arguments[2].properties,function(ca){var ha=e.getNameOfDeclaration(ca);return!!ha&&e.isIdentifier(ha)&&e.idText(ha)==="get"})&&(et|=32772,Xt|=46015)),et===0&&(et=4,Xt=0),Be(Fn,Kn,ge,et|67108864,Xt&-67108865)}}function Na(ge){return e.isBinaryExpression(ge.parent)?Zi(ge.parent).parent.kind===300:ge.parent.parent.kind===300}function ei(ge,Kn,Te,Fn){var et=ho(ge,k)||ho(ge,ie),Xt=Na(Kn);et=Et(et,Kn.expression,Xt,Te,Fn),ra(Kn,et,Te)}function Li(ge){if(ge.flags&1072)return!0;var Kn=ge.valueDeclaration;if(Kn&&e.isCallExpression(Kn))return!!e.getAssignedExpandoInitializer(Kn);var Te=Kn?e.isVariableDeclaration(Kn)?Kn.initializer:e.isBinaryExpression(Kn)?Kn.right:e.isPropertyAccessExpression(Kn)&&e.isBinaryExpression(Kn.parent)?Kn.parent.right:void 0:void 0;if(Te=Te&&e.getRightMostAssignedExpression(Te),Te){var Fn=e.isPrototypeAccess(e.isVariableDeclaration(Kn)?Kn.name:e.isBinaryExpression(Kn)?Kn.left:Kn);return!!e.getExpandoInitializer(e.isBinaryExpression(Te)&&(Te.operatorToken.kind===56||Te.operatorToken.kind===60)?Te.right:Te,Fn)}return!1}function Zi(ge){for(;e.isBinaryExpression(ge.parent);)ge=ge.parent;return ge.parent}function ho(ge,Kn){if(Kn===void 0&&(Kn=k),e.isIdentifier(ge))return Z(Kn,ge.escapedText);var Te=ho(ge.expression);return Te&&Te.exports&&Te.exports.get(e.getElementOrPropertyAccessName(ge))}function vs(ge,Kn,Te){if(V(E,ge))return E.symbol;if(e.isIdentifier(ge))return Te(ge,ho(ge),Kn);var Fn=vs(ge.expression,Kn,Te),et=e.getNameOrArgument(ge);return e.isPrivateIdentifier(et)&&e.Debug.fail("unexpected PrivateIdentifier"),Te(et,Fn&&Fn.exports&&Fn.exports.get(e.getElementOrPropertyAccessName(ge)),Fn)}function Ao(ge){!E.commonJsModuleIndicator&&e.isRequireCall(ge,!1)&&$r(ge)}function oo(ge){if(ge.kind===255)Lr(ge,32,899503);else{var Kn=ge.name?ge.name.escapedText:"__class";Rr(ge,32,Kn),ge.name&&M.add(ge.name.escapedText)}var Te=ge.symbol,Fn=te(4194308,"prototype"),et=Te.exports.get(Fn.escapedName);et&&(ge.name&&e.setParent(ge.name,ge),E.bindDiagnostics.push(I(et.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(Fn)))),Te.exports.set(Fn.escapedName,Fn),Fn.parent=Te}function Zo(ge){return e.isEnumConst(ge)?Lr(ge,128,899967):Lr(ge,256,899327)}function cl(ge){m&&Ma(ge,ge.name),e.isBindingPattern(ge.name)||(e.isInJSFile(ge)&&e.isRequireVariableDeclaration(ge)&&!e.getJSDocTypeTag(ge)?Ot(ge,2097152,2097152):e.isBlockOrCatchScoped(ge)?Lr(ge,2,111551):e.isParameterDeclaration(ge)?Ot(ge,1,111551):Ot(ge,1,111550))}function ws(ge){if(!(ge.kind===335&&k.kind!==318)&&(m&&!(ge.flags&8388608)&&Ma(ge,ge.name),e.isBindingPattern(ge.name)?Rr(ge,1,"__"+ge.parent.parameters.indexOf(ge)):Ot(ge,1,111551),e.isParameterPropertyDeclaration(ge,ge.parent))){var Kn=ge.parent.parent;Be(Kn.symbol.members,Kn.symbol,ge,4|(ge.questionToken?16777216:0),0)}}function vl(ge){!E.isDeclarationFile&&!(ge.flags&8388608)&&e.isAsyncFunction(ge)&&(T|=2048),Yi(ge),m?(bi(ge),Lr(ge,16,110991)):Ot(ge,16,110991)}function ul(ge){!E.isDeclarationFile&&!(ge.flags&8388608)&&e.isAsyncFunction(ge)&&(T|=2048),w&&(ge.flowNode=w),Yi(ge);var Kn=ge.name?ge.name.escapedText:"__function";return Rr(ge,16,Kn)}function ps(ge,Kn,Te){return!E.isDeclarationFile&&!(ge.flags&8388608)&&e.isAsyncFunction(ge)&&(T|=2048),w&&e.isObjectLiteralOrClassExpressionMethod(ge)&&(ge.flowNode=w),e.hasDynamicName(ge)?Rr(ge,Kn,"__computed"):Ot(ge,Kn,Te)}function jl(ge){var Kn=e.findAncestor(ge,function(Te){return Te.parent&&e.isConditionalTypeNode(Te.parent)&&Te.parent.extendsType===Te});return Kn&&Kn.parent}function Hl(ge){if(e.isJSDocTemplateTag(ge.parent)){var Kn=e.find(ge.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(ge.parent);Kn?(Kn.locals||(Kn.locals=e.createSymbolTable()),Be(Kn.locals,void 0,ge,262144,526824)):Ot(ge,262144,526824)}else if(ge.parent.kind===188){var Te=jl(ge.parent);Te?(Te.locals||(Te.locals=e.createSymbolTable()),Be(Te.locals,void 0,ge,262144,526824)):Rr(ge,262144,be(ge))}else Ot(ge,262144,526824)}function Hs(ge){var Kn=ue(ge);return Kn===1||Kn===2&&e.shouldPreserveConstEnums(H)}function Fs(ge){if(!(w.flags&1))return!1;if(w===me){var Kn=e.isStatementButNotDeclaration(ge)&&ge.kind!==234||ge.kind===255||ge.kind===259&&Hs(ge);if(Kn&&(w=z,!H.allowUnreachableCode)){var Te=e.unreachableCodeIsError(H)&&!(ge.flags&8388608)&&(!e.isVariableStatement(ge)||!!(e.getCombinedNodeFlags(ge.declarationList)&3)||ge.declarationList.declarations.some(function(Fn){return!!Fn.initializer}));de(ge,function(Fn,et){return as(Te,Fn,et,e.Diagnostics.Unreachable_code_detected)})}}return!0}}function de(E,H){if(e.isStatement(E)&&_e(E)&&e.isBlock(E.parent)){var L=E.parent.statements,ee=e.sliceAfter(L,E);e.getRangesWhere(ee,_e,function(k,b){return H(ee[k],ee[b-1])})}else H(E,E)}function _e(E){return!e.isFunctionDeclaration(E)&&!y(E)&&!e.isEnumDeclaration(E)&&!(e.isVariableStatement(E)&&!(e.getCombinedNodeFlags(E)&3)&&E.declarationList.declarations.some(function(H){return!H.initializer}))}function y(E){switch(E.kind){case 256:case 257:return!0;case 259:return ue(E)!==1;case 258:return e.hasSyntacticModifier(E,2048);default:return!1}}function V(E,H){for(var L=0,ee=[H];ee.length&&L<100;){if(L++,H=ee.shift(),e.isExportsIdentifier(H)||e.isModuleExportsAccessExpression(H))return!0;if(e.isIdentifier(H)){var k=Z(E,H.escapedText);if(k&&k.valueDeclaration&&e.isVariableDeclaration(k.valueDeclaration)&&k.valueDeclaration.initializer){var b=k.valueDeclaration.initializer;ee.push(b),e.isAssignmentExpression(b,!0)&&(ee.push(b.left),ee.push(b.right))}}}return!1}e.isExportsOrModuleExportsOrAlias=V;function Z(E,H){var L=E.locals&&E.locals.get(H);return L?L.exportSymbol||L:e.isSourceFile(E)&&E.jsGlobalAugmentations&&E.jsGlobalAugmentations.has(H)?E.jsGlobalAugmentations.get(H):E.symbol&&E.symbol.exports&&E.symbol.exports.get(H)}})(vn||(vn={}));var vn;(function(e){function o(ue,$,Y,W,re,ye,O,A,D,de){return _e;function _e(y){y===void 0&&(y=function(){return!0});var V=[],Z=[];return{walkType:function(R){try{return E(R),{visitedTypes:e.getOwnValues(V),visitedSymbols:e.getOwnValues(Z)}}finally{e.clear(V),e.clear(Z)}},walkSymbol:function(R){try{return w(R),{visitedTypes:e.getOwnValues(V),visitedSymbols:e.getOwnValues(Z)}}finally{e.clear(V),e.clear(Z)}}};function E(R){if(R&&!V[R.id]){V[R.id]=R;var ne=w(R.symbol);if(!ne){if(R.flags&524288){var U=R,C=U.objectFlags;C&4&&H(R),C&32&&ie(R),C&3&&oe(R),C&24&&se(U)}R.flags&262144&&L(R),R.flags&3145728&&ee(R),R.flags&4194304&&k(R),R.flags&8388608&&b(R)}}}function H(R){E(R.target),e.forEach(de(R),E)}function L(R){E(A(R))}function ee(R){e.forEach(R.types,E)}function k(R){E(R.type)}function b(R){E(R.objectType),E(R.indexType),E(R.constraint)}function ie(R){E(R.typeParameter),E(R.constraintType),E(R.templateType),E(R.modifiersType)}function q(R){var ne=$(R);ne&&E(ne.type),e.forEach(R.typeParameters,E);for(var U=0,C=R.parameters;U<C.length;U++){var d=C[U];w(d)}E(ue(R)),E(Y(R))}function oe(R){se(R),e.forEach(R.typeParameters,E),e.forEach(W(R),E),E(R.thisType)}function se(R){for(var ne=re(R),U=0,C=ne.indexInfos;U<C.length;U++){var d=C[U];E(d.keyType),E(d.type)}for(var G=0,g=ne.callSignatures;G<g.length;G++){var p=g[G];q(p)}for(var f=0,T=ne.constructSignatures;f<T.length;f++){var p=T[f];q(p)}for(var m=0,N=ne.properties;m<N.length;m++){var P=N[m];w(P)}}function w(R){if(!R)return!1;var ne=e.getSymbolId(R);if(Z[ne])return!1;if(Z[ne]=R,!y(R))return!0;var U=ye(R);return E(U),R.exports&&R.exports.forEach(w),e.forEach(R.declarations,function(C){if(C.type&&C.type.kind===179){var d=C.type,G=O(D(d.exprName));w(G)}}),!1}}}e.createGetSymbolWalker=o})(vn||(vn={}));var vn;(function(e){var o=/^".+"$/,ue="(anonymous)",$=1,Y=1,W=1,re=1,ye;(function(x){x[x.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",x[x.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",x[x.AllowsStringInputFlag=4]="AllowsStringInputFlag",x[x.ForOfFlag=8]="ForOfFlag",x[x.YieldStarFlag=16]="YieldStarFlag",x[x.SpreadFlag=32]="SpreadFlag",x[x.DestructuringFlag=64]="DestructuringFlag",x[x.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",x[x.Element=1]="Element",x[x.Spread=33]="Spread",x[x.Destructuring=65]="Destructuring",x[x.ForOf=13]="ForOf",x[x.ForAwaitOf=15]="ForAwaitOf",x[x.YieldStar=17]="YieldStar",x[x.AsyncYieldStar=19]="AsyncYieldStar",x[x.GeneratorReturnType=1]="GeneratorReturnType",x[x.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"})(ye||(ye={}));var O;(function(x){x[x.Yield=0]="Yield",x[x.Return=1]="Return",x[x.Next=2]="Next"})(O||(O={}));var A;(function(x){x[x.Normal=0]="Normal",x[x.FunctionReturn=1]="FunctionReturn",x[x.GeneratorNext=2]="GeneratorNext",x[x.GeneratorYield=3]="GeneratorYield"})(A||(A={}));var D;(function(x){x[x.None=0]="None",x[x.TypeofEQString=1]="TypeofEQString",x[x.TypeofEQNumber=2]="TypeofEQNumber",x[x.TypeofEQBigInt=4]="TypeofEQBigInt",x[x.TypeofEQBoolean=8]="TypeofEQBoolean",x[x.TypeofEQSymbol=16]="TypeofEQSymbol",x[x.TypeofEQObject=32]="TypeofEQObject",x[x.TypeofEQFunction=64]="TypeofEQFunction",x[x.TypeofEQHostObject=128]="TypeofEQHostObject",x[x.TypeofNEString=256]="TypeofNEString",x[x.TypeofNENumber=512]="TypeofNENumber",x[x.TypeofNEBigInt=1024]="TypeofNEBigInt",x[x.TypeofNEBoolean=2048]="TypeofNEBoolean",x[x.TypeofNESymbol=4096]="TypeofNESymbol",x[x.TypeofNEObject=8192]="TypeofNEObject",x[x.TypeofNEFunction=16384]="TypeofNEFunction",x[x.TypeofNEHostObject=32768]="TypeofNEHostObject",x[x.EQUndefined=65536]="EQUndefined",x[x.EQNull=131072]="EQNull",x[x.EQUndefinedOrNull=262144]="EQUndefinedOrNull",x[x.NEUndefined=524288]="NEUndefined",x[x.NENull=1048576]="NENull",x[x.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",x[x.Truthy=4194304]="Truthy",x[x.Falsy=8388608]="Falsy",x[x.All=16777215]="All",x[x.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",x[x.BaseStringFacts=12582401]="BaseStringFacts",x[x.StringStrictFacts=16317953]="StringStrictFacts",x[x.StringFacts=16776705]="StringFacts",x[x.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",x[x.EmptyStringFacts=12582401]="EmptyStringFacts",x[x.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",x[x.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",x[x.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",x[x.BaseNumberFacts=12582146]="BaseNumberFacts",x[x.NumberStrictFacts=16317698]="NumberStrictFacts",x[x.NumberFacts=16776450]="NumberFacts",x[x.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",x[x.ZeroNumberFacts=12582146]="ZeroNumberFacts",x[x.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",x[x.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",x[x.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",x[x.BaseBigIntFacts=12581636]="BaseBigIntFacts",x[x.BigIntStrictFacts=16317188]="BigIntStrictFacts",x[x.BigIntFacts=16775940]="BigIntFacts",x[x.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",x[x.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",x[x.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",x[x.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",x[x.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",x[x.BaseBooleanFacts=12580616]="BaseBooleanFacts",x[x.BooleanStrictFacts=16316168]="BooleanStrictFacts",x[x.BooleanFacts=16774920]="BooleanFacts",x[x.FalseStrictFacts=12121864]="FalseStrictFacts",x[x.FalseFacts=12580616]="FalseFacts",x[x.TrueStrictFacts=7927560]="TrueStrictFacts",x[x.TrueFacts=16774920]="TrueFacts",x[x.SymbolStrictFacts=7925520]="SymbolStrictFacts",x[x.SymbolFacts=16772880]="SymbolFacts",x[x.ObjectStrictFacts=7888800]="ObjectStrictFacts",x[x.ObjectFacts=16736160]="ObjectFacts",x[x.FunctionStrictFacts=7880640]="FunctionStrictFacts",x[x.FunctionFacts=16728e3]="FunctionFacts",x[x.UndefinedFacts=9830144]="UndefinedFacts",x[x.NullFacts=9363232]="NullFacts",x[x.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",x[x.AllTypeofNE=556800]="AllTypeofNE",x[x.EmptyObjectFacts=16777215]="EmptyObjectFacts"})(D||(D={}));var de=new e.Map(e.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),_e=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),y;(function(x){x[x.Type=0]="Type",x[x.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",x[x.DeclaredType=2]="DeclaredType",x[x.ResolvedReturnType=3]="ResolvedReturnType",x[x.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",x[x.EnumTagType=5]="EnumTagType",x[x.ResolvedTypeArguments=6]="ResolvedTypeArguments",x[x.ResolvedBaseTypes=7]="ResolvedBaseTypes"})(y||(y={}));var V;(function(x){x[x.Normal=0]="Normal",x[x.Contextual=1]="Contextual",x[x.Inferential=2]="Inferential",x[x.SkipContextSensitive=4]="SkipContextSensitive",x[x.SkipGenericFunctions=8]="SkipGenericFunctions",x[x.IsForSignatureHelp=16]="IsForSignatureHelp"})(V||(V={}));var Z;(function(x){x[x.BivariantCallback=1]="BivariantCallback",x[x.StrictCallback=2]="StrictCallback",x[x.IgnoreReturnTypes=4]="IgnoreReturnTypes",x[x.StrictArity=8]="StrictArity",x[x.Callback=3]="Callback"})(Z||(Z={}));var E;(function(x){x[x.None=0]="None",x[x.Source=1]="Source",x[x.Target=2]="Target",x[x.PropertyCheck=4]="PropertyCheck",x[x.UnionIntersectionCheck=8]="UnionIntersectionCheck",x[x.InPropertyCheck=16]="InPropertyCheck"})(E||(E={}));var H;(function(x){x[x.IncludeReadonly=1]="IncludeReadonly",x[x.ExcludeReadonly=2]="ExcludeReadonly",x[x.IncludeOptional=4]="IncludeOptional",x[x.ExcludeOptional=8]="ExcludeOptional"})(H||(H={}));var L;(function(x){x[x.None=0]="None",x[x.Source=1]="Source",x[x.Target=2]="Target",x[x.Both=3]="Both"})(L||(L={}));var ee;(function(x){x.resolvedExports="resolvedExports",x.resolvedMembers="resolvedMembers"})(ee||(ee={}));var k;(function(x){x[x.Local=0]="Local",x[x.Parameter=1]="Parameter"})(k||(k={}));var b=e.and(p,g),ie;(function(x){x[x.GetAccessor=1]="GetAccessor",x[x.SetAccessor=2]="SetAccessor",x[x.PropertyAssignment=4]="PropertyAssignment",x[x.Method=8]="Method",x[x.PrivateStatic=16]="PrivateStatic",x[x.GetOrSetAccessor=3]="GetOrSetAccessor",x[x.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"})(ie||(ie={}));var q;(function(x){x[x.None=0]="None",x[x.ExportValue=1]="ExportValue",x[x.ExportType=2]="ExportType",x[x.ExportNamespace=4]="ExportNamespace"})(q||(q={}));var oe;(function(x){x[x.None=0]="None",x[x.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",x[x.VoidIsNonOptional=2]="VoidIsNonOptional"})(oe||(oe={}));var se;(function(x){x[x.Uppercase=0]="Uppercase",x[x.Lowercase=1]="Lowercase",x[x.Capitalize=2]="Capitalize",x[x.Uncapitalize=3]="Uncapitalize"})(se||(se={}));var w=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function R(){}function ne(){this.flags=0}function U(x){return x.id||(x.id=Y,Y++),x.id}e.getNodeId=U;function C(x){return x.id||(x.id=$,$++),x.id}e.getSymbolId=C;function d(x,M){var me=e.getModuleInstanceState(x);return me===1||M&&me===2}e.isInstantiatedModule=d;function G(x,M){var me=e.memoize(function(){var n=new e.Set;return x.getSourceFiles().forEach(function(r){r.resolvedModules&&e.forEachEntry(r.resolvedModules,function(t){t&&t.packageId&&n.add(t.packageId.name)})}),n}),z,K,I,Ae=e.objectAllocator.getSymbolConstructor(),Oe=e.objectAllocator.getTypeConstructor(),te=e.objectAllocator.getSignatureConstructor(),Se=0,be=0,Ce=0,Be=0,De=0,en=0,fe,Ne=e.createSymbolTable(),qe=[1],pe=x.getCompilerOptions(),we=e.getEmitScriptTarget(pe),pn=e.getEmitModuleKind(pe),Qe=e.getUseDefineForClassFields(pe),Re=e.getAllowSyntheticDefaultImports(pe),He=e.getStrictOptionValue(pe,"strictNullChecks"),Ln=e.getStrictOptionValue(pe,"strictFunctionTypes"),Un=e.getStrictOptionValue(pe,"strictBindCallApply"),fn=e.getStrictOptionValue(pe,"strictPropertyInitialization"),En=e.getStrictOptionValue(pe,"noImplicitAny"),i=e.getStrictOptionValue(pe,"noImplicitThis"),In=e.getStrictOptionValue(pe,"useUnknownInCatchVariables"),X=!!pe.keyofStringsOnly,rn=pe.suppressExcessPropertyErrors?0:16384,$n=pe.exactOptionalPropertyTypes,Vn=ek(),le=mP(),Pe=of(),xe=e.createSymbolTable(),Ze=fo(4,"undefined");Ze.declarations=[];var hn=fo(1536,"globalThis",8);hn.exports=xe,hn.declarations=[],xe.set(hn.escapedName,hn);var Le=fo(4,"arguments"),$e=fo(4,"require"),An,Ue={getNodeCount:function(){return e.sum(x.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(x.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(x.getSourceFiles(),"symbolCount")+be},getTypeCount:function(){return Se},getInstantiationCount:function(){return Be},getRelationCacheSizes:function(){return{assignable:Tr.size,identity:Yt.size,subtype:un.size,strictSubtype:Sn.size}},isUndefinedSymbol:function(n){return n===Ze},isArgumentsSymbol:function(n){return n===Le},isUnknownSymbol:function(n){return n===Xn},getMergedSymbol:Eo,getDiagnostics:xD,getGlobalDiagnostics:NO,getRecursionIdentity:vv,getUnmatchedProperties:ub,getTypeOfSymbolAtLocation:function(n,r){var t=e.getParseTreeNode(r);return t?Ex(n,t):J},getSymbolsOfParameterPropertyDeclaration:function(n,r){var t=e.getParseTreeNode(n,e.isParameter);return t===void 0?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):Yu(t,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:rs,getPropertiesOfType:bo,getPropertyOfType:function(n,r){return wn(n,e.escapeLeadingUnderscores(r))},getPrivateIdentifierPropertyOfType:function(n,r,t){var a=e.getParseTreeNode(t);if(a){var s=e.escapeLeadingUnderscores(r),u=jb(s,a);return u?Hb(n,u):void 0}},getTypeOfPropertyOfType:function(n,r){return Os(n,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:function(n,r){return po(n,r===0?gr:Dr)},getIndexInfosOfType:Ei,getSignaturesOfType:zr,getIndexTypeOfType:function(n,r){return Ns(n,r===0?gr:Dr)},getBaseTypes:vc,getBaseTypeOfLiteralType:ju,getWidenedType:fc,getTypeFromTypeNode:function(n){var r=e.getParseTreeNode(n,e.isTypeNode);return r?Ra(r):J},getParameterType:fu,getParameterIdentifierNameAtPosition:kN,getPromisedTypeOfPromise:Fv,getAwaitedType:function(n){return ku(n)},getReturnTypeOfSignature:_o,isNullableType:Qh,getNullableType:$E,getNonNullableType:Rd,getNonOptionalType:eb,getTypeArguments:Co,typeToTypeNode:Pe.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Pe.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Pe.signatureToSignatureDeclaration,symbolToEntityName:Pe.symbolToEntityName,symbolToExpression:Pe.symbolToExpression,symbolToTypeParameterDeclarations:Pe.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Pe.symbolToParameterDeclaration,typeParameterToDeclaration:Pe.typeParameterToDeclaration,getSymbolsInScope:function(n,r){var t=e.getParseTreeNode(n);return t?kO(t,r):[]},getSymbolAtLocation:function(n){var r=e.getParseTreeNode(n);return r?Kc(r,!0):void 0},getIndexInfosAtLocation:function(n){var r=e.getParseTreeNode(n);return r?GO(r):void 0},getShorthandAssignmentValueSymbol:function(n){var r=e.getParseTreeNode(n);return r?BO(r):void 0},getExportSpecifierLocalTargetSymbol:function(n){var r=e.getParseTreeNode(n,e.isExportSpecifier);return r?UO(r):void 0},getExportSymbolOfSymbol:function(n){return Eo(n.exportSymbol||n)},getTypeAtLocation:function(n){var r=e.getParseTreeNode(n);return r?sm(r):J},getTypeOfAssignmentPattern:function(n){var r=e.getParseTreeNode(n,e.isAssignmentPattern);return r&&xy(r)||J},getPropertySymbolOfDestructuringAssignment:function(n){var r=e.getParseTreeNode(n,e.isIdentifier);return r?VO(r):void 0},signatureToString:function(n,r,t,a){return Rc(n,e.getParseTreeNode(r),t,a)},typeToString:function(n,r,t){return Lt(n,e.getParseTreeNode(r),t)},symbolToString:function(n,r,t,a){return Qa(n,e.getParseTreeNode(r),t,a)},typePredicateToString:function(n,r,t){return gc(n,e.getParseTreeNode(r),t)},writeSignature:function(n,r,t,a,s){return Rc(n,e.getParseTreeNode(r),t,a,s)},writeType:function(n,r,t,a){return Lt(n,e.getParseTreeNode(r),t,a)},writeSymbol:function(n,r,t,a,s){return Qa(n,e.getParseTreeNode(r),t,a,s)},writeTypePredicate:function(n,r,t,a){return gc(n,e.getParseTreeNode(r),t,a)},getAugmentedPropertiesOfType:R1,getRootSymbols:PD,getSymbolOfExpando:oy,getContextualType:function(n,r){var t=e.getParseTreeNode(n,e.isExpression);if(t){var a=e.findAncestor(t,e.isCallLikeExpression),s=a&&da(a).resolvedSignature;if(r&4&&a){var u=t;do da(u).skipDirectInference=!0,u=u.parent;while(u&&u!==a);da(a).resolvedSignature=void 0}var S=uu(t,r);if(r&4&&a){var u=t;do da(u).skipDirectInference=void 0,u=u.parent;while(u&&u!==a);da(a).resolvedSignature=s}return S}},getContextualTypeForObjectLiteralElement:function(n){var r=e.getParseTreeNode(n,e.isObjectLiteralElementLike);return r?Nb(r):void 0},getContextualTypeForArgumentAtIndex:function(n,r){var t=e.getParseTreeNode(n,e.isCallLikeExpression);return t&&Ib(t,r)},getContextualTypeForJsxAttribute:function(n){var r=e.getParseTreeNode(n,e.isJsxAttributeLike);return r&&_0(r)},isContextSensitive:Au,getTypeOfPropertyOfContextualType:am,getFullyQualifiedName:Vi,getResolvedSignature:function(n,r,t){return gn(n,r,t,0)},getResolvedSignatureForSignatureHelp:function(n,r,t){return gn(n,r,t,16)},getExpandedParameters:z_,hasEffectiveRestParameter:Ku,containsArgumentsReference:eg,getConstantValue:function(n){var r=e.getParseTreeNode(n,BD);return r?P1(r):void 0},isValidPropertyAccess:function(n,r){var t=e.getParseTreeNode(n,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!t&&KI(t,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(n,r,t){var a=e.getParseTreeNode(n,e.isPropertyAccessExpression);return!!a&&j0(a,r,t)},getSignatureFromDeclaration:function(n){var r=e.getParseTreeNode(n,e.isFunctionLike);return r?su(r):void 0},isImplementationOfOverload:function(n){var r=e.getParseTreeNode(n,e.isFunctionLike);return r?FD(r):void 0},getImmediateAliasedSymbol:E0,getAliasedSymbol:_i,getEmitResolver:Oo,getExportsOfModule:ec,getExportsAndPropertiesOfModule:Ff,forEachExportAndPropertyOfModule:dp,getSymbolWalker:e.createGetSymbolWalker(tE,Cc,_o,vc,Du,kt,xu,yc,e.getFirstIdentifier,Co),getAmbientModules:oM,getJsxIntrinsicTagNamesAt:xI,isOptionalParameter:function(n){var r=e.getParseTreeNode(n,e.isParameter);return r?Xf(r):!1},tryGetMemberInModuleExports:function(n,r){return Mu(e.escapeLeadingUnderscores(n),r)},tryGetMemberInModuleExportsAndProperties:function(n,r){return Bc(e.escapeLeadingUnderscores(n),r)},tryFindAmbientModule:function(n){return qp(n,!0)},tryFindAmbientModuleWithoutAugmentations:function(n){return qp(n,!1)},getApparentType:Il,getUnionType:Sa,isTypeAssignableTo:mo,createAnonymousType:qo,createSignature:Tu,createSymbol:fo,createIndexInfo:Uu,getAnyType:function(){return cr},getStringType:function(){return gr},getNumberType:function(){return Dr},createPromiseType:Ov,createArrayType:bl,getElementTypeOfArrayType:zE,getBooleanType:function(){return Ur},getFalseType:function(n){return n?ft:xt},getTrueType:function(n){return n?Kr:dt},getVoidType:function(){return Cr},getUndefinedType:function(){return Rn},getNullType:function(){return zn},getESSymbolType:function(){return qt},getNeverType:function(){return Jt},getOptionalType:function(){return xn},isSymbolAccessible:tf,isArrayType:Gl,isTupleType:ji,isArrayLikeType:lp,isTypeInvalidDueToUnionDiscriminant:Ky,getAllPossiblePropertiesOfTypes:zy,getSuggestedSymbolForNonexistentProperty:Kb,getSuggestionForNonexistentProperty:zb,getSuggestedSymbolForNonexistentJSXAttribute:V0,getSuggestedSymbolForNonexistentSymbol:function(n,r,t){return qb(n,e.escapeLeadingUnderscores(r),t)},getSuggestionForNonexistentSymbol:function(n,r,t){return jI(n,e.escapeLeadingUnderscores(r),t)},getSuggestedSymbolForNonexistentModule:Zh,getSuggestionForNonexistentExport:HI,getSuggestedSymbolForNonexistentClassMember:U0,getBaseConstraintOfType:Xl,getDefaultFromTypeParameter:function(n){return n&&n.flags&262144?ep(n):void 0},resolveName:function(n,r,t,a){return es(r,e.escapeLeadingUnderscores(n),t,void 0,void 0,!1,a)},getJsxNamespace:function(n){return e.unescapeLeadingUnderscores(yo(n))},getJsxFragmentFactory:function(n){var r=w1(n);return r&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(r).escapedText)},getAccessibleSymbolChain:gd,getTypePredicateOfSignature:Cc,resolveExternalModuleName:function(n){var r=e.getParseTreeNode(n,e.isExpression);return r&&wo(r,r,!0)},resolveExternalModuleSymbol:Dt,tryGetThisTypeAt:function(n,r){var t=e.getParseTreeNode(n);return t&&Db(t,r)},getTypeArgumentConstraint:function(n){var r=e.getParseTreeNode(n,e.isTypeNode);return r&&xk(r)},getSuggestionDiagnostics:function(n,r){var t=e.getParseTreeNode(n,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(t,pe,x))return e.emptyArray;var a;try{return z=r,N1(t),e.Debug.assert(!!(da(t).flags&1)),a=e.addRange(a,Ii.getDiagnostics(t.fileName)),Y2(CD(t),function(s,u,S){!e.containsParseError(s)&&!AD(u,!!(s.flags&8388608))&&(a||(a=[])).push(Mt(Mt({},S),{category:e.DiagnosticCategory.Suggestion}))}),a||e.emptyArray}finally{z=void 0}},runWithCancellationToken:function(n,r){try{return z=n,r(Ue)}finally{z=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Nt,isDeclarationVisible:eu};function gn(n,r,t,a){var s=e.getParseTreeNode(n,e.isCallLikeExpression);An=t;var u=s?N_(s,r,a):void 0;return An=void 0,u}var Wn=new e.Map,ze=new e.Map,Tn=new e.Map,On=new e.Map,ur=new e.Map,hr=new e.Map,wr=new e.Map,Qr=new e.Map,Ke=new e.Map,jn=new e.Map,Zn=new e.Map,Me=new e.Map,Mn=[],ar=new e.Map,Xn=fo(4,"unknown"),yr=fo(0,"__resolving__"),cr=As(1,"any"),Fe=As(1,"any"),Bn=As(1,"any"),J=As(1,"error"),Cn=As(1,"any",131072),Gn=As(1,"intrinsic"),cn=As(2,"unknown"),Rn=As(32768,"undefined"),Ye=He?Rn:As(32768,"undefined",131072),xn=As(32768,"undefined"),an=$n?As(32768,"undefined"):Rn,zn=As(65536,"null"),ir=He?zn:As(65536,"null",131072),gr=As(4,"string"),Dr=As(8,"number"),qr=As(64,"bigint"),ft=As(512,"false"),xt=As(512,"false"),Kr=As(512,"true"),dt=As(512,"true");Kr.regularType=dt,Kr.freshType=Kr,dt.regularType=dt,dt.freshType=Kr,ft.regularType=xt,ft.freshType=ft,xt.regularType=xt,xt.freshType=ft;var Ur=Sa([xt,dt]),qt=As(4096,"symbol"),Cr=As(16384,"void"),Jt=As(131072,"never"),Ot=As(131072,"never"),ri=As(131072,"never",524288),Ya=As(131072,"never"),eo=As(131072,"never"),za=As(67108864,"object"),ua=Sa([gr,Dr]),Ar=Sa([gr,Dr,qt]),at=X?gr:Ar,Hr=Sa([Dr,qr]),Wt=Sa([gr,Dr,Ur,qr,zn,Rn]),Zt=Zp(function(n){return n.flags&262144?kA(n):n}),Rr=Zp(function(n){return n.flags&262144?Bn:n}),Lr=qo(void 0,Ne,e.emptyArray,e.emptyArray,e.emptyArray),Xr=qo(void 0,Ne,e.emptyArray,e.emptyArray,e.emptyArray);Xr.objectFlags|=2048;var nt=fo(2048,"__type");nt.members=e.createSymbolTable();var vt=qo(nt,Ne,e.emptyArray,e.emptyArray,e.emptyArray),or=qo(void 0,Ne,e.emptyArray,e.emptyArray,e.emptyArray);or.instantiations=new e.Map;var $t=qo(void 0,Ne,e.emptyArray,e.emptyArray,e.emptyArray);$t.objectFlags|=524288;var Va=qo(void 0,Ne,e.emptyArray,e.emptyArray,e.emptyArray),li=qo(void 0,Ne,e.emptyArray,e.emptyArray,e.emptyArray),zi=qo(void 0,Ne,e.emptyArray,e.emptyArray,e.emptyArray),Ma=Uc(),di=Uc();di.constraint=Ma;var Yi=Uc(),uo=Xp(1,"<<unresolved>>",0,cr),bi=Tu(void 0,void 0,void 0,e.emptyArray,cr,void 0,0,0),Mi=Tu(void 0,void 0,void 0,e.emptyArray,J,void 0,0,0),Go=Tu(void 0,void 0,void 0,e.emptyArray,cr,void 0,0,0),io=Tu(void 0,void 0,void 0,e.emptyArray,Ot,void 0,0,0),wi=Uu(Dr,gr,!0),Ho=new e.Map,qi={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},Qi=sd(cr,cr,cr),as=sd(cr,cr,cn),gs=sd(Jt,cr,Rn),Da={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:TL,getGlobalIterableType:bL,getGlobalIterableIteratorType:SL,getGlobalGeneratorType:DL,resolveIterationType:ku,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},$a={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:LL,getGlobalIterableType:mT,getGlobalIterableIteratorType:AL,getGlobalGeneratorType:CL,resolveIterationType:function(n,r){return n},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Ni,vo=new e.Map,Io=!1,Bo,Uo,cs,us,Jo,is,mn,_r,$r,ia,ti,va,Ve,ce,dn,j,Ie,We,sn,Hn,vr,Sr,ot,Et,ra,Na,ei,Li,Zi,ho,vs,Ao,oo,Zo,cl,ws,vl,ul,ps,jl,Hl,Hs,Fs=new e.Map,ge=0,Kn=0,Te=0,Fn=!1,et=0,Xt,ca,ha,To=Jc(""),Pn=Zf(0),Vo=CE({negative:!1,base10Value:"0"}),Ko=[],hs=[],hl=[],Bi=0,Js=10,rl=[],Ol=[],nc=[],Sc=[],Zl=[],du=[],dc=[],$l=[],kn=[],lr=[],Or=[],st=[],yt=[],Tt=[],Ut=[],ea=[],zt=e.createDiagnosticCollection(),Ii=e.createDiagnosticCollection(),ba=new e.Map(e.getEntries({string:gr,number:Dr,bigint:qr,boolean:Ur,symbol:qt,undefined:Rn})),wa=pp(),Ui,Fi,he,un=new e.Map,Sn=new e.Map,Tr=new e.Map,Wr=new e.Map,Yt=new e.Map,Ia=new e.Map,hi=e.createSymbolTable();return hi.set(Ze.escapedName,Ze),_P(),Ue;function yo(n){if(n){var r=e.getSourceFileOfNode(n);if(r)if(e.isJsxOpeningFragment(n)){if(r.localJsxFragmentNamespace)return r.localJsxFragmentNamespace;var t=r.pragmas.get("jsxfrag");if(t){var a=e.isArray(t)?t[0]:t;if(r.localJsxFragmentFactory=e.parseIsolatedEntityName(a.arguments.factory,we),e.visitNode(r.localJsxFragmentFactory,S),r.localJsxFragmentFactory)return r.localJsxFragmentNamespace=e.getFirstIdentifier(r.localJsxFragmentFactory).escapedText}var s=w1(n);if(s)return r.localJsxFragmentFactory=s,r.localJsxFragmentNamespace=e.getFirstIdentifier(s).escapedText}else{if(r.localJsxNamespace)return r.localJsxNamespace;var u=r.pragmas.get("jsx");if(u){var a=e.isArray(u)?u[0]:u;if(r.localJsxFactory=e.parseIsolatedEntityName(a.arguments.factory,we),e.visitNode(r.localJsxFactory,S),r.localJsxFactory)return r.localJsxNamespace=e.getFirstIdentifier(r.localJsxFactory).escapedText}}}return Ui||(Ui="React",pe.jsxFactory?(Fi=e.parseIsolatedEntityName(pe.jsxFactory,we),e.visitNode(Fi,S),Fi&&(Ui=e.getFirstIdentifier(Fi).escapedText)):pe.reactNamespace&&(Ui=e.escapeLeadingUnderscores(pe.reactNamespace))),Fi||(Fi=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(Ui)),"createElement")),Ui;function S(F){return e.setTextRangePosEnd(F,-1,-1),e.visitEachChild(F,S,e.nullTransformationContext)}}function Oo(n,r){return xD(n,r),le}function ys(n,r,t,a,s,u){var S=n?e.createDiagnosticForNode(n,r,t,a,s,u):e.createCompilerDiagnostic(r,t,a,s,u),F=zt.lookup(S);return F||(zt.add(S),S)}function Pi(n,r,t,a,s,u,S){var F=Jn(r,t,a,s,u,S);return F.skippedOn=n,F}function Po(n,r,t,a,s,u){return n?e.createDiagnosticForNode(n,r,t,a,s,u):e.createCompilerDiagnostic(r,t,a,s,u)}function Jn(n,r,t,a,s,u){var S=Po(n,r,t,a,s,u);return zt.add(S),S}function zo(n,r){n?zt.add(r):Ii.add(Mt(Mt({},r),{category:e.DiagnosticCategory.Suggestion}))}function Es(n,r,t,a,s,u,S){if(r.pos<0||r.end<0){if(!n)return;var F=e.getSourceFileOfNode(r);zo(n,"message"in t?e.createFileDiagnostic(F,0,0,t,a,s,u,S):e.createDiagnosticForFileFromMessageChain(F,t));return}zo(n,"message"in t?e.createDiagnosticForNode(r,t,a,s,u,S):e.createDiagnosticForNodeFromMessageChain(r,t))}function Rs(n,r,t,a,s,u,S){var F=Jn(n,t,a,s,u,S);if(r){var ve=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(F,ve)}return F}function pu(n,r){var t=Array.isArray(n)?e.forEach(n,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(n);return t&&e.addRelatedInfo(r,e.createDiagnosticForNode(t,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),Ii.add(r),r}function ol(n,r,t){var a=e.createDiagnosticForNode(n,e.Diagnostics._0_is_deprecated,t);return pu(r,a)}function mu(n,r,t,a){var s=t?e.createDiagnosticForNode(n,e.Diagnostics.The_signature_0_of_1_is_deprecated,a,t):e.createDiagnosticForNode(n,e.Diagnostics._0_is_deprecated,a);return pu(r,s)}function fo(n,r,t){be++;var a=new Ae(n|33554432,r);return a.checkFlags=t||0,a}function tl(n){var r=0;return n&2&&(r|=111551),n&1&&(r|=111550),n&4&&(r|=0),n&8&&(r|=900095),n&16&&(r|=110991),n&32&&(r|=899503),n&64&&(r|=788872),n&256&&(r|=899327),n&128&&(r|=899967),n&512&&(r|=110735),n&8192&&(r|=103359),n&32768&&(r|=46015),n&65536&&(r|=78783),n&262144&&(r|=526824),n&524288&&(r|=788968),n&2097152&&(r|=2097152),r}function zc(n,r){r.mergeId||(r.mergeId=W,W++),rl[r.mergeId]=n}function _u(n){var r=fo(n.flags,n.escapedName);return r.declarations=n.declarations?n.declarations.slice():[],r.parent=n.parent,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),n.members&&(r.members=new e.Map(n.members)),n.exports&&(r.exports=new e.Map(n.exports)),zc(r,n),r}function qc(n,r,t){if(t===void 0&&(t=!1),!(n.flags&tl(r.flags))||(r.flags|n.flags)&67108864){if(r===n)return n;if(!(n.flags&33554432)){var a=Ba(n);if(a===Xn)return r;n=_u(a)}r.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!r.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=r.flags,r.valueDeclaration&&e.setValueDeclaration(n,r.valueDeclaration),e.addRange(n.declarations,r.declarations),r.members&&(n.members||(n.members=e.createSymbolTable()),ic(n.members,r.members,t)),r.exports&&(n.exports||(n.exports=e.createSymbolTable()),ic(n.exports,r.exports,t)),t||zc(n,r)}else if(n.flags&1024)n!==hn&&Jn(r.declarations&&e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Qa(n));else{var s=!!(n.flags&384||r.flags&384),u=!!(n.flags&2||r.flags&2),S=s?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:u?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,F=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),ve=n.declarations&&e.getSourceFileOfNode(n.declarations[0]),Ge=Qa(r);if(F&&ve&&Ni&&!s&&F!==ve){var Je=e.comparePaths(F.path,ve.path)===-1?F:ve,Xe=Je===F?ve:F,tn=e.getOrUpdate(Ni,Je.path+"|"+Xe.path,function(){return{firstFile:Je,secondFile:Xe,conflictingSymbols:new e.Map}}),Dn=e.getOrUpdate(tn.conflictingSymbols,Ge,function(){return{isBlockScoped:u,firstFileLocations:[],secondFileLocations:[]}});nr(Dn.firstFileLocations,r),nr(Dn.secondFileLocations,n)}else gu(r,S,Ge,n),gu(n,S,Ge,r)}return n;function nr(sr,Ir){if(Ir.declarations)for(var xr=0,Gr=Ir.declarations;xr<Gr.length;xr++){var ct=Gr[xr];e.pushIfUnique(sr,ct)}}}function gu(n,r,t,a){e.forEach(n.declarations,function(s){Xu(s,r,t,a.declarations)})}function Xu(n,r,t,a){for(var s=(e.getExpandoInitializer(n,!1)?e.getNameOfExpando(n):e.getNameOfDeclaration(n))||n,u=ys(s,r,t),S=function(Je){var Xe=(e.getExpandoInitializer(Je,!1)?e.getNameOfExpando(Je):e.getNameOfDeclaration(Je))||Je;if(Xe===s)return"continue";u.relatedInformation=u.relatedInformation||[];var tn=e.createDiagnosticForNode(Xe,e.Diagnostics._0_was_also_declared_here,t),Dn=e.createDiagnosticForNode(Xe,e.Diagnostics.and_here);if(e.length(u.relatedInformation)>=5||e.some(u.relatedInformation,function(nr){return e.compareDiagnostics(nr,Dn)===0||e.compareDiagnostics(nr,tn)===0}))return"continue";e.addRelatedInfo(u,e.length(u.relatedInformation)?Dn:tn)},F=0,ve=a||e.emptyArray;F<ve.length;F++){var Ge=ve[F];S(Ge)}}function fd(n,r){if(!(n!=null&&n.size))return r;if(!(r!=null&&r.size))return n;var t=e.createSymbolTable();return ic(t,n),ic(t,r),t}function ic(n,r,t){t===void 0&&(t=!1),r.forEach(function(a,s){var u=n.get(s);n.set(s,u?qc(u,a,t):a)})}function Pu(n){var r,t,a,s=n.parent;if(((r=s.symbol.declarations)===null||r===void 0?void 0:r[0])!==s){e.Debug.assert(s.symbol.declarations.length>1);return}if(e.isGlobalScopeAugmentation(s))ic(xe,s.symbol.exports);else{var u=n.parent.parent.flags&8388608?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,S=gi(n,n,u,!0);if(!S)return;if(S=Dt(S),S.flags&1920)if(e.some(Uo,function(nr){return S===nr.symbol})){var F=qc(s.symbol,S,!0);cs||(cs=new e.Map),cs.set(n.text,F)}else{if(!((t=S.exports)===null||t===void 0)&&t.get("__export")&&(!((a=s.symbol.exports)===null||a===void 0)&&a.size))for(var ve=Kp(S,"resolvedExports"),Ge=0,Je=e.arrayFrom(s.symbol.exports.entries());Ge<Je.length;Ge++){var Xe=Je[Ge],tn=Xe[0],Dn=Xe[1];ve.has(tn)&&!S.exports.has(tn)&&qc(ve.get(tn),Dn)}qc(S,s.symbol)}else Jn(n,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function Bd(n,r,t){r.forEach(function(s,u){var S=n.get(u);S?e.forEach(S.declarations,a(e.unescapeLeadingUnderscores(u),t)):n.set(u,s)});function a(s,u){return function(S){return zt.add(e.createDiagnosticForNode(S,u,s))}}}function Za(n){if(n.flags&33554432)return n;var r=C(n);return Ol[r]||(Ol[r]=new R)}function da(n){var r=U(n);return nc[r]||(nc[r]=new ne)}function pc(n){return n.kind===300&&!e.isExternalOrCommonJsModule(n)}function $o(n,r,t){if(t){var a=Eo(n.get(r));if(a){if(e.Debug.assert((e.getCheckFlags(a)&1)===0,"Should never get an instantiated symbol here."),a.flags&t)return a;if(a.flags&2097152){var s=_i(a);if(s===Xn||s.flags&t)return a}}}}function Yu(n,r){var t=n.parent,a=n.parent.parent,s=$o(t.locals,r,111551),u=$o(Hc(a.symbol),r,111551);return s&&u?[s,u]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Dc(n,r){var t=e.getSourceFileOfNode(n),a=e.getSourceFileOfNode(r),s=e.getEnclosingBlockScopeContainer(n);if(t!==a){if(pn&&(t.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(pe)||S_(r)||n.flags&8388608||Ge(r,n))return!0;var u=x.getSourceFiles();return u.indexOf(t)<=u.indexOf(a)}if(n.pos<=r.pos&&!(e.isPropertyDeclaration(n)&&e.isThisProperty(r.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===201){var S=e.getAncestor(r,201);return S?e.findAncestor(S,e.isBindingElement)!==e.findAncestor(n,e.isBindingElement)||n.pos<S.pos:Dc(e.getAncestor(n,252),r)}else{if(n.kind===252)return!ve(n,r);if(e.isClassDeclaration(n))return!e.findAncestor(r,function(Xe){return e.isComputedPropertyName(Xe)&&Xe.parent.parent===n});if(e.isPropertyDeclaration(n))return!Je(n,r,!1);if(e.isParameterPropertyDeclaration(n,n.parent))return!(pe.target===99&&Qe&&e.getContainingClass(n)===e.getContainingClass(r)&&Ge(r,n))}return!0}if(r.parent.kind===273||r.parent.kind===269&&r.parent.isExportEquals||r.kind===269&&r.isExportEquals||r.flags&4194304||S_(r)||F())return!0;if(Ge(r,n))return pe.target===99&&Qe&&e.getContainingClass(n)&&(e.isPropertyDeclaration(n)||e.isParameterPropertyDeclaration(n,n.parent))?!Je(n,r,!0):!0;return!1;function F(){return!!e.findAncestor(r,function(Xe){return e.isInterfaceDeclaration(Xe)||e.isTypeAliasDeclaration(Xe)})}function ve(Xe,tn){switch(Xe.parent.parent.kind){case 235:case 240:case 242:if(Xc(tn,Xe,s))return!0;break}var Dn=Xe.parent.parent;return e.isForInOrOfStatement(Dn)&&Xc(tn,Dn.expression,s)}function Ge(Xe,tn){return!!e.findAncestor(Xe,function(Dn){if(Dn===s)return"quit";if(e.isFunctionLike(Dn))return!0;if(e.isClassStaticBlockDeclaration(Dn))return tn.pos<Xe.pos;var nr=e.tryCast(Dn.parent,e.isPropertyDeclaration);if(nr){var sr=nr.initializer===Dn;if(sr)if(e.isStatic(Dn.parent)){if(tn.kind===167)return!0;if(e.isPropertyDeclaration(tn)&&e.getContainingClass(Xe)===e.getContainingClass(tn)){var Ir=tn.name;if(e.isIdentifier(Ir)||e.isPrivateIdentifier(Ir)){var xr=kt(wt(tn)),Gr=e.filter(tn.parent.members,e.isClassStaticBlockDeclaration);if(eO(Ir,xr,Gr,tn.parent.pos,Dn.pos))return!0}}}else{var ct=tn.kind===165&&!e.isStatic(tn);if(!ct||e.getContainingClass(Xe)!==e.getContainingClass(tn))return!0}}return!1})}function Je(Xe,tn,Dn){if(tn.end>Xe.end)return!1;var nr=e.findAncestor(tn,function(sr){if(sr===Xe)return"quit";switch(sr.kind){case 212:return!0;case 165:return Dn&&(e.isPropertyDeclaration(Xe)&&sr.parent===Xe.parent||e.isParameterPropertyDeclaration(Xe,Xe.parent)&&sr.parent===Xe.parent.parent)?"quit":!0;case 233:switch(sr.parent.kind){case 170:case 167:case 171:return!0;default:return!1}default:return!1}});return nr===void 0}}function xf(n,r,t){var a=e.getEmitScriptTarget(pe),s=r;if(e.isParameter(t)&&s.body&&n.valueDeclaration&&n.valueDeclaration.pos>=s.body.pos&&n.valueDeclaration.end<=s.body.end&&a>=2){var u=da(s);return u.declarationRequiresScopeChange===void 0&&(u.declarationRequiresScopeChange=e.forEach(s.parameters,S)||!1),!u.declarationRequiresScopeChange}return!1;function S(ve){return F(ve.name)||!!ve.initializer&&F(ve.initializer)}function F(ve){switch(ve.kind){case 212:case 211:case 254:case 169:return!1;case 167:case 170:case 171:case 291:return F(ve.name);case 165:return e.hasStaticModifier(ve)?a<99||!Qe:F(ve.name);default:return e.isNullishCoalesce(ve)||e.isOptionalChain(ve)?a<7:e.isBindingElement(ve)&&ve.dotDotDotToken&&e.isObjectBindingPattern(ve.parent)?a<4:e.isTypeNode(ve)?!1:e.forEachChild(ve,F)||!1}}}function es(n,r,t,a,s,u,S,F){return S===void 0&&(S=!1),If(n,r,t,a,s,u,S,$o,F)}function If(n,r,t,a,s,u,S,F,ve){var Ge,Je=n,Xe,tn,Dn,nr,sr,Ir=!1,xr=n,Gr,ct=!1;e:for(;n;){if(n.locals&&!pc(n)&&(Xe=F(n.locals,r,t))){var Vt=!0;if(e.isFunctionLike(n)&&tn&&tn!==n.body?(t&Xe.flags&788968&&tn.kind!==315&&(Vt=Xe.flags&262144?tn===n.type||tn.kind===162||tn.kind===161:!1),t&Xe.flags&3&&(xf(Xe,n,tn)?Vt=!1:Xe.flags&1&&(Vt=tn.kind===162||tn===n.type&&!!e.findAncestor(Xe.valueDeclaration,e.isParameter)))):n.kind===187&&(Vt=tn===n.trueType),Vt)break e;Xe=void 0}switch(Ir=Ir||Gc(n,tn),n.kind){case 300:if(!e.isExternalOrCommonJsModule(n))break;ct=!0;case 259:var _t=wt(n).exports||Ne;if(n.kind===300||e.isModuleDeclaration(n)&&n.flags&8388608&&!e.isGlobalScopeAugmentation(n)){if(Xe=_t.get("default")){var Ta=e.getLocalSymbolForExportDefault(Xe);if(Ta&&Xe.flags&t&&Ta.escapedName===r)break e;Xe=void 0}var sa=_t.get(r);if(sa&&sa.flags===2097152&&(e.getDeclarationOfKind(sa,273)||e.getDeclarationOfKind(sa,272)))break}if(r!=="default"&&(Xe=F(_t,r,t&2623475)))if(e.isSourceFile(n)&&n.commonJsModuleIndicator&&!(!((Ge=Xe.declarations)===null||Ge===void 0)&&Ge.some(e.isJSDocTypeAlias)))Xe=void 0;else break e;break;case 258:if(Xe=F(wt(n).exports,r,t&8))break e;break;case 165:if(!e.isStatic(n)){var mi=kc(n.parent);mi&&mi.locals&&F(mi.locals,r,t&111551)&&(nr=n)}break;case 255:case 224:case 256:if(Xe=F(wt(n).members||Ne,r,t&788968)){if(!mf(Xe,n)){Xe=void 0;break}if(tn&&e.isStatic(tn)){Jn(xr,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);return}break e}if(n.kind===224&&t&32){var ai=n.name;if(ai&&r===ai.escapedText){Xe=n.symbol;break e}}break;case 226:if(tn===n.expression&&n.parent.token===94){var Hi=n.parent.parent;if(e.isClassLike(Hi)&&(Xe=F(wt(Hi).members,r,t&788968))){a&&Jn(xr,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 160:if(Gr=n.parent.parent,(e.isClassLike(Gr)||Gr.kind===256)&&(Xe=F(wt(Gr).members,r,t&788968))){Jn(xr,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 212:if(pe.target>=2)break;case 167:case 169:case 170:case 171:case 254:if(t&3&&r==="arguments"){Xe=Le;break e}break;case 211:if(t&3&&r==="arguments"){Xe=Le;break e}if(t&16){var ii=n.name;if(ii&&r===ii.escapedText){Xe=n.symbol;break e}}break;case 163:n.parent&&n.parent.kind===162&&(n=n.parent),n.parent&&(e.isClassElement(n.parent)||n.parent.kind===255)&&(n=n.parent);break;case 340:case 333:case 334:var go=e.getJSDocRoot(n);go&&(n=go.parent);break;case 162:tn&&(tn===n.initializer||tn===n.name&&e.isBindingPattern(tn))&&(sr||(sr=n));break;case 201:tn&&(tn===n.initializer||tn===n.name&&e.isBindingPattern(tn))&&e.isParameterDeclaration(n)&&!sr&&(sr=n);break;case 188:if(t&262144){var xo=n.typeParameter.name;if(xo&&r===xo.escapedText){Xe=n.typeParameter.symbol;break e}}break}Ks(n)&&(Dn=n),tn=n,n=n.parent}if(u&&Xe&&(!Dn||Xe!==Dn.symbol)&&(Xe.isReferenced|=t),!Xe){if(tn&&(e.Debug.assert(tn.kind===300),tn.commonJsModuleIndicator&&r==="exports"&&t&tn.symbol.flags))return tn.symbol;S||(Xe=F(xe,r,t))}if(!Xe&&Je&&e.isInJSFile(Je)&&Je.parent&&e.isRequireCall(Je.parent,!1))return $e;if(!Xe){if(a&&(!xr||!_f(xr,r,s)&&!vu(xr)&&!gf(xr,r,t)&&!dd(xr,r)&&!pd(xr,r,t)&&!md(xr,r,t)&&!Nf(xr,r,t))){var Yr=void 0;if(ve&&Bi<Js){Yr=qb(Je,r,t);var Pr=(Yr==null?void 0:Yr.valueDeclaration)&&e.isAmbientModule(Yr.valueDeclaration)&&e.isGlobalScopeAugmentation(Yr.valueDeclaration);if(Pr&&(Yr=void 0),Yr){var Aa=Qa(Yr),Ga=w0(Je,Yr,!1),na=Ga?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,si=Po(xr,na,rc(s),Aa);zo(!Ga,si),Yr.valueDeclaration&&e.addRelatedInfo(si,e.createDiagnosticForNode(Yr.valueDeclaration,e.Diagnostics._0_is_declared_here,Aa))}}if(!Yr&&s){var jt=VI(s);jt?Jn(xr,a,rc(s),jt):Jn(xr,a,rc(s))}Bi++}return}if(a){if(nr&&!(pe.target===99&&Qe)){var Ji=nr.name;Jn(xr,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(Ji),rc(s));return}if(xr&&(t&2||(t&32||t&384)&&(t&111551)===111551)){var Wi=$c(Xe);(Wi.flags&2||Wi.flags&32||Wi.flags&384)&&Zu(Wi,xr)}if(Xe&&ct&&(t&111551)===111551&&!(Je.flags&4194304)){var rr=Eo(Xe);e.length(rr.declarations)&&e.every(rr.declarations,function(pt){return e.isNamespaceExportDeclaration(pt)||e.isSourceFile(pt)&&!!pt.symbol.globalExports})&&Es(!pe.allowUmdGlobalAccess,xr,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}if(Xe&&sr&&!Ir&&(t&111551)===111551){var yn=Eo(zp(Xe)),go=e.getRootDeclaration(sr);yn===wt(sr)?Jn(xr,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(sr.name)):yn.valueDeclaration&&yn.valueDeclaration.pos>sr.pos&&go.parent.locals&&F(go.parent.locals,yn.escapedName,t)===yn&&Jn(xr,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(sr.name),e.declarationNameToString(xr))}Xe&&xr&&t&111551&&Xe.flags&2097152&&Qs(Xe,r,xr)}return Xe}function Qs(n,r,t){if(!e.isValidTypeOnlyAliasUseSite(t)){var a=Qt(n);if(a){var s=e.typeOnlyDeclarationIsExport(a),u=s?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,S=s?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,F=e.unescapeLeadingUnderscores(r);e.addRelatedInfo(Jn(t,u,F),e.createDiagnosticForNode(a,S,F))}}}function Gc(n,r){return n.kind!==212&&n.kind!==211?e.isTypeQueryNode(n)||(e.isFunctionLikeDeclaration(n)||n.kind===165&&!e.isStatic(n))&&(!r||r!==n.name):r&&r===n.name?!1:n.asteriskToken||e.hasSyntacticModifier(n,256)?!0:!e.getImmediatelyInvokedFunctionExpression(n)}function Ks(n){switch(n.kind){case 254:case 255:case 256:case 258:case 257:case 259:return!0;default:return!1}}function rc(n){return e.isString(n)?e.unescapeLeadingUnderscores(n):e.declarationNameToString(n)}function mf(n,r){if(n.declarations)for(var t=0,a=n.declarations;t<a.length;t++){var s=a[t];if(s.kind===161){var u=e.isJSDocTemplateTag(s.parent)?e.getJSDocHost(s.parent):s.parent;if(u===r)return!(e.isJSDocTemplateTag(s.parent)&&e.find(s.parent.parent.tags,e.isJSDocTypeAlias))}}return!1}function _f(n,r,t){if(!e.isIdentifier(n)||n.escapedText!==r||ND(n)||S_(n))return!1;for(var a=e.getThisContainer(n,!1),s=a;s;){if(e.isClassLike(s.parent)){var u=wt(s.parent);if(!u)break;var S=kt(u);if(wn(S,r))return Jn(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,rc(t),Qa(u)),!0;if(s===a&&!e.isStatic(s)){var F=rs(u).thisType;if(wn(F,r))return Jn(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,rc(t)),!0}}s=s.parent}return!1}function vu(n){var r=Qu(n);return r&&ki(r,64,!0)?(Jn(n,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(r)),!0):!1}function Qu(n){switch(n.kind){case 79:case 204:return n.parent?Qu(n.parent):void 0;case 226:if(e.isEntityNameExpression(n.expression))return n.expression;default:return}}function gf(n,r,t){var a=1920|(e.isInJSFile(n)?111551:0);if(t===a){var s=Ba(es(n,r,788968&~a,void 0,void 0,!1)),u=n.parent;if(s){if(e.isQualifiedName(u)){e.Debug.assert(u.left===n,"Should only be resolving left side of qualified name as a namespace");var S=u.right.escapedText,F=wn(rs(s),S);if(F)return Jn(u,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(r),e.unescapeLeadingUnderscores(S)),!0}return Jn(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}function Nf(n,r,t){if(t&788584){var a=Ba(es(n,r,111127,void 0,void 0,!1));if(a&&!(a.flags&1920))return Jn(n,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(r)),!0}return!1}function kf(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function dd(n,r){return kf(r)&&n.parent.kind===273?(Jn(n,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r),!0):!1}function pd(n,r,t){if(t&111551){if(kf(r))return Jn(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var a=Ba(es(n,r,788544,void 0,void 0,!1));if(a&&!(a.flags&1024)){var s=e.unescapeLeadingUnderscores(r);return Of(r)?Jn(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,s):Rf(n,a)?Jn(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,s,s==="K"?"P":"K"):Jn(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,s),!0}}return!1}function Rf(n,r){var t=e.findAncestor(n.parent,function(s){return e.isComputedPropertyName(s)||e.isPropertySignature(s)?!1:e.isTypeLiteralNode(s)||"quit"});if(t&&t.members.length===1){var a=rs(r);return!!(a.flags&1048576)&&Ag(a,384,!0)}return!1}function Of(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function md(n,r,t){if(t&111127){var a=Ba(es(n,r,1024,void 0,void 0,!1));if(a)return Jn(n,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(t&788544){var a=Ba(es(n,r,1536,void 0,void 0,!1));if(a)return Jn(n,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0}return!1}function Zu(n,r){var t;if(e.Debug.assert(!!(n.flags&2||n.flags&32||n.flags&384)),!(n.flags&67108881&&n.flags&32)){var a=(t=n.declarations)===null||t===void 0?void 0:t.find(function(S){return e.isBlockOrCatchScoped(S)||e.isClassLike(S)||S.kind===258});if(a===void 0)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(a.flags&8388608)&&!Dc(a,r)){var s=void 0,u=e.declarationNameToString(e.getNameOfDeclaration(a));n.flags&2?s=Jn(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,u):n.flags&32?s=Jn(r,e.Diagnostics.Class_0_used_before_its_declaration,u):n.flags&256?s=Jn(r,e.Diagnostics.Enum_0_used_before_its_declaration,u):(e.Debug.assert(!!(n.flags&128)),e.shouldPreserveConstEnums(pe)&&(s=Jn(r,e.Diagnostics.Enum_0_used_before_its_declaration,u))),s&&e.addRelatedInfo(s,e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_here,u))}}}function Xc(n,r,t){return!!r&&!!e.findAncestor(n,function(a){return a===t||e.isFunctionLike(a)?"quit":a===r})}function Pf(n){switch(n.kind){case 263:return n;case 265:return n.parent;case 266:return n.parent.parent;case 268:return n.parent.parent.parent;default:return}}function Jl(n){return n.declarations&&e.findLast(n.declarations,$u)}function $u(n){return n.kind===263||n.kind===262||n.kind===265&&!!n.name||n.kind===266||n.kind===272||n.kind===268||n.kind===273||n.kind===269&&e.exportAssignmentIsAlias(n)||e.isBinaryExpression(n)&&e.getAssignmentDeclarationKind(n)===2&&e.exportAssignmentIsAlias(n)||e.isAccessExpression(n)&&e.isBinaryExpression(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===63&&Yc(n.parent.right)||n.kind===292||n.kind===291&&Yc(n.initializer)||e.isRequireVariableDeclaration(n)}function Yc(n){return e.isAliasableExpression(n)||e.isFunctionExpression(n)&&Nu(n)}function Ud(n,r){var t=Nn(n);if(t){var a=e.getLeftmostAccessExpression(t.expression).arguments[0];return e.isIdentifier(t.name)?Ba(wn(ng(a),t.name.escapedText)):void 0}if(e.isVariableDeclaration(n)||n.moduleReference.kind===275){var s=wo(n,e.getExternalModuleRequireArgument(n)||e.getExternalModuleImportEqualsDeclarationExpression(n)),u=Dt(s);return to(n,s,u,!1),u}var S=so(n.moduleReference,r);return Lc(n,S),S}function Lc(n,r){if(to(n,void 0,r,!1)&&!n.isTypeOnly){var t=Qt(wt(n)),a=e.typeOnlyDeclarationIsExport(t),s=a?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,u=a?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,S=e.unescapeLeadingUnderscores(t.name.escapedText);e.addRelatedInfo(Jn(n.moduleReference,s),e.createDiagnosticForNode(t,u,S))}}function mc(n,r,t,a){var s=n.exports.get("export="),u=s?wn(kt(s),r):n.exports.get(r),S=Ba(u,a);return to(t,u,S,!1),S}function oc(n){return e.isExportAssignment(n)&&!n.isExportEquals||e.hasSyntacticModifier(n,512)||e.isExportSpecifier(n)}function Ti(n,r,t){if(!Re)return!1;if(!n||n.isDeclarationFile){var a=mc(r,"default",void 0,!0);return!(a&&e.some(a.declarations,oc)||mc(r,e.escapeLeadingUnderscores("__esModule"),void 0,t))}return e.isSourceFileJS(n)?!n.externalModuleIndicator&&!mc(r,e.escapeLeadingUnderscores("__esModule"),void 0,t):Dl(r)}function vf(n,r){var t,a=wo(n,n.parent.moduleSpecifier);if(a){var s=void 0;e.isShorthandAmbientModuleSymbol(a)?s=a:s=mc(a,"default",n,r);var u=(t=a.declarations)===null||t===void 0?void 0:t.find(e.isSourceFile),S=Ti(u,a,r);if(!s&&!S)if(Dl(a)){var F=pn>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",ve=a.exports.get("export="),Ge=ve.valueDeclaration,Je=Jn(n.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Qa(a),F);Ge&&e.addRelatedInfo(Je,e.createDiagnosticForNode(Ge,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,F))}else zs(a,n);else if(S){var Xe=Dt(a,r)||Ba(a,r);return to(n,a,Xe,!1),Xe}return to(n,s,void 0,!1),s}}function zs(n,r){var t,a,s;if(!((t=n.exports)===null||t===void 0)&&t.has(r.symbol.escapedName))Jn(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Qa(n),Qa(r.symbol));else{var u=Jn(r.name,e.Diagnostics.Module_0_has_no_default_export,Qa(n)),S=(a=n.exports)===null||a===void 0?void 0:a.get("__export");if(S){var F=(s=S.declarations)===null||s===void 0?void 0:s.find(function(ve){var Ge,Je;return!!(e.isExportDeclaration(ve)&&ve.moduleSpecifier&&(!((Je=(Ge=wo(ve,ve.moduleSpecifier))===null||Ge===void 0?void 0:Ge.exports)===null||Je===void 0)&&Je.has("default")))});F&&e.addRelatedInfo(u,e.createDiagnosticForNode(F,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}function xs(n,r){var t=n.parent.parent.moduleSpecifier,a=wo(n,t),s=Ls(a,t,r,!1);return to(n,a,s,!1),s}function sl(n,r){var t=n.parent.moduleSpecifier,a=t&&wo(n,t),s=t&&Ls(a,t,r,!1);return to(n,a,s,!1),s}function Mf(n,r){if(n===Xn&&r===Xn)return Xn;if(n.flags&790504)return n;var t=fo(n.flags|r.flags,n.escapedName);return t.declarations=e.deduplicate(e.concatenate(n.declarations,r.declarations),e.equateValues),t.parent=n.parent||r.parent,n.valueDeclaration&&(t.valueDeclaration=n.valueDeclaration),r.members&&(t.members=new e.Map(r.members)),n.exports&&(t.exports=new e.Map(n.exports)),t}function wf(n,r,t,a){if(n.flags&1536){var s=al(n).get(r.escapedText),u=Ba(s,a);return to(t,s,u,!1),u}}function c(n,r){if(n.flags&3){var t=n.valueDeclaration.type;if(t)return Ba(wn(Ra(t),r))}}function h(n,r,t){var a,s;t===void 0&&(t=!1);var u=e.getExternalModuleRequireArgument(n)||n.moduleSpecifier,S=wo(n,u),F=!e.isPropertyAccessExpression(r)&&r.propertyName||r.name;if(e.isIdentifier(F)){var ve=F.escapedText==="default"&&!!(pe.allowSyntheticDefaultImports||pe.esModuleInterop),Ge=Ls(S,u,!1,ve);if(Ge&&F.escapedText){if(e.isShorthandAmbientModuleSymbol(S))return S;var Je=void 0;S&&S.exports&&S.exports.get("export=")?Je=wn(kt(Ge),F.escapedText,!0):Je=c(Ge,F.escapedText),Je=Ba(Je,t);var Xe=wf(Ge,F,r,t);if(Xe===void 0&&F.escapedText==="default"){var tn=(a=S.declarations)===null||a===void 0?void 0:a.find(e.isSourceFile);Ti(tn,S,t)&&(Xe=Dt(S,t)||Ba(S,t))}var Dn=Xe&&Je&&Xe!==Je?Mf(Je,Xe):Xe||Je;if(!Dn){var nr=Vi(S,n),sr=e.declarationNameToString(F),Ir=Zh(F,Ge);if(Ir!==void 0){var xr=Qa(Ir),Gr=Jn(F,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,nr,sr,xr);Ir.valueDeclaration&&e.addRelatedInfo(Gr,e.createDiagnosticForNode(Ir.valueDeclaration,e.Diagnostics._0_is_declared_here,xr))}else!((s=S.exports)===null||s===void 0)&&s.has("default")?Jn(F,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,nr,sr):ae(n,F,sr,S,nr)}return Dn}}}function ae(n,r,t,a,s){var u,S,F=(S=(u=a.valueDeclaration)===null||u===void 0?void 0:u.locals)===null||S===void 0?void 0:S.get(r.escapedText),ve=a.exports;if(F){var Ge=ve==null?void 0:ve.get("export=");if(Ge)_c(Ge,F)?je(n,r,t,s):Jn(r,e.Diagnostics.Module_0_has_no_exported_member_1,s,t);else{var Je=ve?e.find(ou(ve),function(tn){return!!_c(tn,F)}):void 0,Xe=Je?Jn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,s,t,Qa(Je)):Jn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,s,t);F.declarations&&e.addRelatedInfo.apply(void 0,Vr([Xe],e.map(F.declarations,function(tn,Dn){return e.createDiagnosticForNode(tn,Dn===0?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,t)}),!1))}}else Jn(r,e.Diagnostics.Module_0_has_no_exported_member_1,s,t)}function je(n,r,t,a){if(pn>=e.ModuleKind.ES2015){var s=pe.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Jn(r,s,t)}else if(e.isInJSFile(n)){var s=pe.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Jn(r,s,t)}else{var s=pe.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Jn(r,s,t,t,a)}}function _n(n,r){var t=e.isBindingElement(n)?e.getRootDeclaration(n):n.parent.parent.parent,a=Nn(t),s=h(t,a||n,r),u=n.propertyName||n.name;return a&&s&&e.isIdentifier(u)?Ba(wn(kt(s),u.escapedText),r):(to(n,void 0,s,!1),s)}function Nn(n){if(e.isVariableDeclaration(n)&&n.initializer&&e.isPropertyAccessExpression(n.initializer))return n.initializer}function er(n,r){var t=Dt(n.parent.symbol,r);return to(n,void 0,t,!1),t}function pr(n,r,t){var a=n.parent.parent.moduleSpecifier?h(n.parent.parent,n,t):ki(n.propertyName||n.name,r,!1,t);return to(n,void 0,a,!1),a}function kr(n,r){var t=e.isExportAssignment(n)?n.expression:n.right,a=Er(t,r);return to(n,void 0,a,!1),a}function Er(n,r){if(e.isClassExpression(n))return ll(n).symbol;if(!(!e.isEntityName(n)&&!e.isEntityNameExpression(n))){var t=ki(n,901119,!0,r);return t||(ll(n),da(n).resolvedSymbol)}}function gt(n,r){var t=n.initializer;return Er(t,r)}function rt(n,r){if(e.isBinaryExpression(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===63)return Er(n.parent.right,r)}function ma(n,r){switch(r===void 0&&(r=!1),n.kind){case 263:case 252:return Ud(n,r);case 265:return vf(n,r);case 266:return xs(n,r);case 272:return sl(n,r);case 268:case 201:return _n(n,r);case 273:return pr(n,901119,r);case 269:case 219:return kr(n,r);case 262:return er(n,r);case 292:return ki(n.name,901119,!0,r);case 291:return gt(n,r);case 205:case 204:return rt(n,r);default:return e.Debug.fail()}}function Ai(n,r){return r===void 0&&(r=901119),n?(n.flags&(2097152|r))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Ba(n,r){return!r&&Ai(n)?_i(n):n}function _i(n){e.Debug.assert((n.flags&2097152)!==0,"Should only get Alias here.");var r=Za(n);if(r.target)r.target===yr&&(r.target=Xn);else{r.target=yr;var t=Jl(n);if(!t)return e.Debug.fail();var a=ma(t);r.target===yr?r.target=a||Xn:Jn(t,e.Diagnostics.Circular_definition_of_import_alias_0,Qa(n))}return r.target}function No(n){var r=Za(n);if(r.target!==yr)return _i(n)}function to(n,r,t,a){if(!n||e.isPropertyAccessExpression(n))return!1;var s=wt(n);if(e.isTypeOnlyImportOrExportDeclaration(n)){var u=Za(s);return u.typeOnlyDeclaration=n,!0}var S=Za(s);return Ca(S,r,a)||Ca(S,t,a)}function Ca(n,r,t){var a,s,u;if(r&&(n.typeOnlyDeclaration===void 0||t&&n.typeOnlyDeclaration===!1)){var S=(s=(a=r.exports)===null||a===void 0?void 0:a.get("export="))!==null&&s!==void 0?s:r,F=S.declarations&&e.find(S.declarations,e.isTypeOnlyImportOrExportDeclaration);n.typeOnlyDeclaration=(u=F!=null?F:Za(S).typeOnlyDeclaration)!==null&&u!==void 0?u:!1}return!!n.typeOnlyDeclaration}function Qt(n){if(n.flags&2097152){var r=Za(n);return r.typeOnlyDeclaration||void 0}}function ni(n){var r=wt(n),t=_i(r);if(t){var a=t===Xn||t.flags&111551&&!Pg(t)&&!Qt(r);a&&Wa(r)}}function Wa(n){var r=Za(n);if(!r.referenced){r.referenced=!0;var t=Jl(n);if(!t)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(t)){var a=Ba(n);(a===Xn||a.flags&111551)&&ll(t.moduleReference)}}}function qa(n){var r=Za(n);r.constEnumReferenced||(r.constEnumReferenced=!0)}function so(n,r){return n.kind===79&&e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),n.kind===79||n.parent.kind===159?ki(n,1920,!1,r):(e.Debug.assert(n.parent.kind===263),ki(n,901119,!1,r))}function Vi(n,r){return n.parent?Vi(n.parent,r)+"."+Qa(n):Qa(n,r,void 0,20)}function ki(n,r,t,a,s){if(!e.nodeIsMissing(n)){var u=1920|(e.isInJSFile(n)?r&111551:0),S;if(n.kind===79){var F=r===u||e.nodeIsSynthesized(n)?e.Diagnostics.Cannot_find_namespace_0:MS(e.getFirstIdentifier(n)),ve=e.isInJSFile(n)&&!e.nodeIsSynthesized(n)?Gs(n,r):void 0;if(S=Eo(es(s||n,n.escapedText,r,t||ve?void 0:F,n,!0)),!S)return Eo(ve)}else if(n.kind===159||n.kind===204){var Ge=n.kind===159?n.left:n.expression,Je=n.kind===159?n.right:n.name,Xe=ki(Ge,u,t,!1,s);if(!Xe||e.nodeIsMissing(Je))return;if(Xe===Xn)return Xe;if(Xe.valueDeclaration&&e.isInJSFile(Xe.valueDeclaration)&&e.isVariableDeclaration(Xe.valueDeclaration)&&Xe.valueDeclaration.initializer&&f2(Xe.valueDeclaration.initializer)){var tn=Xe.valueDeclaration.initializer.arguments[0],Dn=wo(tn,tn);if(Dn){var nr=Dt(Dn);nr&&(Xe=nr)}}if(S=Eo($o(al(Xe),Je.escapedText,r)),!S){if(!t){var sr=Vi(Xe),Ir=e.declarationNameToString(Je),xr=Zh(Je,Xe);xr?Jn(Je,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,sr,Ir,Qa(xr)):Jn(Je,e.Diagnostics.Namespace_0_has_no_exported_member_1,sr,Ir)}return}}else throw e.Debug.assertNever(n,"Unknown entity name kind.");return e.Debug.assert((e.getCheckFlags(S)&1)===0,"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(n)&&e.isEntityName(n)&&(S.flags&2097152||n.parent.kind===269)&&to(e.getAliasDeclarationFromName(n),S,void 0,!0),S.flags&r||a?S:_i(S)}}function Gs(n,r){if(uh(n.parent)){var t=Ds(n.parent);if(t)return es(t,n.escapedText,r,void 0,n,!0)}}function Ds(n){var r=e.findAncestor(n,function(u){return e.isJSDocNode(u)||u.flags&4194304?e.isJSDocTypeAlias(u):"quit"});if(!r){var t=e.getJSDocHost(n);if(t&&e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&e.getAssignmentDeclarationKind(t.expression)===3){var a=wt(t.expression.left);if(a)return ko(a)}if(t&&(e.isObjectLiteralMethod(t)||e.isPropertyAssignment(t))&&e.isBinaryExpression(t.parent.parent)&&e.getAssignmentDeclarationKind(t.parent.parent)===6){var a=wt(t.parent.parent.left);if(a)return ko(a)}var s=e.getEffectiveJSDocHost(n);if(s&&e.isFunctionLike(s)){var a=wt(s);return a&&a.valueDeclaration}}}function ko(n){var r=n.parent.valueDeclaration;if(r){var t=e.isAssignmentDeclaration(r)?e.getAssignedExpandoInitializer(r):e.hasOnlyExpressionInitializer(r)?e.getDeclaredExpandoInitializer(r):void 0;return t||r}}function Pt(n){var r=n.valueDeclaration;if(!(!r||!e.isInJSFile(r)||n.flags&524288||e.getExpandoInitializer(r,!1))){var t=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);if(t){var a=wt(t);if(a)return e1(a,n)}}}function wo(n,r,t){var a=e.getEmitModuleResolutionKind(pe)===e.ModuleResolutionKind.Classic,s=a?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return gi(n,r,t?void 0:s)}function gi(n,r,t,a){return a===void 0&&(a=!1),e.isStringLiteralLike(r)?Qc(n,r.text,t,r,a):void 0}function Qc(n,r,t,a,s){if(s===void 0&&(s=!1),e.startsWith(r,"@types/")){var u=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,S=e.removePrefix(r,"@types/");Jn(a,u,S,r)}var F=qp(r,!0);if(F)return F;var ve=e.getSourceFileOfNode(n),Ge=e.getResolvedModule(ve,r),Je=Ge&&e.getResolutionDiagnostic(pe,Ge),Xe=Ge&&!Je&&x.getSourceFile(Ge.resolvedFileName);if(Xe){if(Xe.symbol)return Ge.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(Ge.extension)&&Vd(!1,a,Ge,r),Eo(Xe.symbol);t&&Jn(a,e.Diagnostics.File_0_is_not_a_module,Xe.fileName);return}if(Uo){var tn=e.findBestPatternMatch(Uo,function(ct){return ct.pattern},r);if(tn){var Dn=cs&&cs.get(r);return Eo(Dn||tn.symbol)}}if(Ge&&!e.resolutionExtensionIsTSOrJson(Ge.extension)&&Je===void 0||Je===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(s){var u=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Jn(a,u,r,Ge.resolvedFileName)}else Vd(En&&!!t,a,Ge,r);return}if(t){if(Ge){var nr=x.getProjectReferenceRedirect(Ge.resolvedFileName);if(nr){Jn(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,nr,Ge.resolvedFileName);return}}if(Je)Jn(a,Je,r,Ge.resolvedFileName);else{var sr=e.tryExtractTSExtension(r);if(sr){var u=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,Ir=e.removeExtension(r,sr),xr=Ir,Gr=e.getEmitModuleKind(pe);Gr>=e.ModuleKind.ES2015&&(xr+=".js"),Jn(a,u,sr,xr)}else!pe.resolveJsonModule&&e.fileExtensionIs(r,".json")&&e.getEmitModuleResolutionKind(pe)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(pe)?Jn(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,r):Jn(a,t,r)}}}function Vd(n,r,t,a){var s=t.packageId,u=t.resolvedFileName,S=!e.isExternalModuleNameRelative(a)&&s?hu(s.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,s.name,e.mangleScopedPackageName(s.name)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,a,e.mangleScopedPackageName(s.name)):void 0;Es(n,r,e.chainDiagnosticMessages(S,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,a,u))}function hu(n){return me().has(e.getTypesPackageName(n))}function Dt(n,r){if(n!=null&&n.exports){var t=Ba(n.exports.get("export="),r),a=hf(Eo(t),Eo(n));return Eo(a)||n}}function hf(n,r){if(!n||n===Xn||n===r||r.exports.size===1||n.flags&2097152)return n;var t=Za(n);if(t.cjsExportMerged)return t.cjsExportMerged;var a=n.flags&33554432?n:_u(n);return a.flags=a.flags|512,a.exports===void 0&&(a.exports=e.createSymbolTable()),r.exports.forEach(function(s,u){u!=="export="&&a.exports.set(u,a.exports.has(u)?qc(a.exports.get(u),s):s)}),Za(a).cjsExportMerged=a,t.cjsExportMerged=a}function Ls(n,r,t,a){var s=Dt(n,t);if(!t&&s){if(!a&&!(s.flags&1539)&&!e.getDeclarationOfKind(s,300)){var u=pn>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Jn(r,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,u),s}if(pe.esModuleInterop){var S=r.parent;if(e.isImportDeclaration(S)&&e.getNamespaceDeclarationNode(S)||e.isImportCall(S)){var F=kt(s),ve=Fr(F,0);if((!ve||!ve.length)&&(ve=Fr(F,1)),ve&&ve.length){var Ge=u2(F,s,n),Je=fo(s.flags,s.escapedName);Je.declarations=s.declarations?s.declarations.slice():[],Je.parent=s.parent,Je.target=s,Je.originatingImport=S,s.valueDeclaration&&(Je.valueDeclaration=s.valueDeclaration),s.constEnumOnlyModule&&(Je.constEnumOnlyModule=!0),s.members&&(Je.members=new e.Map(s.members)),s.exports&&(Je.exports=new e.Map(s.exports));var Xe=Du(Ge);return Je.type=qo(Je,Xe.members,e.emptyArray,e.emptyArray,Xe.indexInfos),Je}}}}return s}function Dl(n){return n.exports.get("export=")!==void 0}function ec(n){return ou(Ic(n))}function Ff(n){var r=ec(n),t=Dt(n);if(t!==n){var a=kt(t);Gf(a)&&e.addRange(r,bo(a))}return r}function dp(n,r){var t=Ic(n);t.forEach(function(u,S){dl(S)||r(u,S)});var a=Dt(n);if(a!==n){var s=kt(a);Gf(s)&&bo(s).forEach(function(u){r(u,u.escapedName)})}}function Mu(n,r){var t=Ic(r);if(t)return t.get(n)}function Bc(n,r){var t=Mu(n,r);if(t)return t;var a=Dt(r);if(a!==r){var s=kt(a);return Gf(s)?wn(s,n):void 0}}function Gf(n){return!(n.flags&131068||e.getObjectFlags(n)&1||Gl(n)||ji(n))}function al(n){return n.flags&6256?Kp(n,"resolvedExports"):n.flags&1536?Ic(n):n.exports||Ne}function Ic(n){var r=Za(n);return r.resolvedExports||(r.resolvedExports=yf(n))}function Wd(n,r,t,a){r&&r.forEach(function(s,u){if(u!=="default"){var S=n.get(u);if(!S)n.set(u,s),t&&a&&t.set(u,{specifierText:e.getTextOfNode(a.moduleSpecifier)});else if(t&&a&&S&&Ba(S)!==Ba(s)){var F=t.get(u);F.exportsWithDuplicate?F.exportsWithDuplicate.push(a):F.exportsWithDuplicate=[a]}}})}function yf(n){var r=[];return n=Dt(n),t(n)||Ne;function t(a){if(a&&a.exports&&e.pushIfUnique(r,a)){var s=new e.Map(a.exports),u=a.exports.get("__export");if(u){var S=e.createSymbolTable(),F=new e.Map;if(u.declarations)for(var ve=0,Ge=u.declarations;ve<Ge.length;ve++){var Je=Ge[ve],Xe=wo(Je,Je.moduleSpecifier),tn=t(Xe);Wd(S,tn,F,Je)}F.forEach(function(Dn,nr){var sr=Dn.exportsWithDuplicate;if(!(nr==="export="||!(sr&&sr.length)||s.has(nr)))for(var Ir=0,xr=sr;Ir<xr.length;Ir++){var Gr=xr[Ir];zt.add(e.createDiagnosticForNode(Gr,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,F.get(nr).specifierText,e.unescapeLeadingUnderscores(nr)))}}),Wd(s,S)}return s}}}function Eo(n){var r;return n&&n.mergeId&&(r=rl[n.mergeId])?r:n}function wt(n){return Eo(n.symbol&&zp(n.symbol))}function Kl(n){return Eo(n.parent&&zp(n.parent))}function wp(n,r){var t=e.getSourceFileOfNode(r),a=U(t),s=Za(n),u;if(s.extendedContainersByFile&&(u=s.extendedContainersByFile.get(a)))return u;if(t&&t.imports){for(var S=0,F=t.imports;S<F.length;S++){var ve=F[S];if(!e.nodeIsSynthesized(ve)){var Ge=wo(r,ve,!0);if(Ge){var Je=Bf(Ge,n);Je&&(u=e.append(u,Ge))}}}if(e.length(u))return(s.extendedContainersByFile||(s.extendedContainersByFile=new e.Map)).set(a,u),u}if(s.extendedContainers)return s.extendedContainers;for(var Xe=x.getSourceFiles(),tn=0,Dn=Xe;tn<Dn.length;tn++){var nr=Dn[tn];if(e.isExternalModule(nr)){var sr=wt(nr),Je=Bf(sr,n);Je&&(u=e.append(u,sr))}}return s.extendedContainers=u||e.emptyArray}function ef(n,r,t){var a=Kl(n);if(a&&!(n.flags&262144)){var s=e.mapDefined(a.declarations,Je),u=r&&wp(n,r),S=Zc(a,t);if(r&&a.flags&rf(t)&&gd(a,r,1920,!1))return e.append(e.concatenate(e.concatenate([a],s),u),S);var F=!(a.flags&rf(t))&&a.flags&788968&&rs(a).flags&524288&&t===111551?yu(r,function(Xe){return e.forEachEntry(Xe,function(tn){if(tn.flags&rf(t)&&kt(tn)===rs(a))return tn})}):void 0,ve=F?Vr(Vr([F],s,!0),[a],!1):Vr(Vr([],s,!0),[a],!1);return ve=e.append(ve,S),ve=e.addRange(ve,u),ve}var Ge=e.mapDefined(n.declarations,function(Xe){if(!e.isAmbientModule(Xe)&&Xe.parent&&af(Xe.parent))return wt(Xe.parent);if(e.isClassExpression(Xe)&&e.isBinaryExpression(Xe.parent)&&Xe.parent.operatorToken.kind===63&&e.isAccessExpression(Xe.parent.left)&&e.isEntityNameExpression(Xe.parent.left.expression))return e.isModuleExportsAccessExpression(Xe.parent.left)||e.isExportsIdentifier(Xe.parent.left.expression)?wt(e.getSourceFileOfNode(Xe)):(ll(Xe.parent.left.expression),da(Xe.parent.left.expression).resolvedSymbol)});if(!e.length(Ge))return;return e.mapDefined(Ge,function(Xe){return Bf(Xe,n)?Xe:void 0});function Je(Xe){return a&&jd(Xe,a)}}function Zc(n,r){var t=!!e.length(n.declarations)&&e.first(n.declarations);if(r&111551&&t&&t.parent&&e.isVariableDeclaration(t.parent)&&(e.isObjectLiteralExpression(t)&&t===t.parent.initializer||e.isTypeLiteralNode(t)&&t===t.parent.type))return wt(t.parent)}function jd(n,r){var t=hd(n),a=t&&t.exports&&t.exports.get("export=");return a&&_c(a,r)?t:void 0}function Bf(n,r){if(n===Kl(r))return r;var t=n.exports&&n.exports.get("export=");if(t&&_c(t,r))return n;var a=al(n),s=a.get(r.escapedName);return s&&_c(s,r)?s:e.forEachEntry(a,function(u){if(_c(u,r))return u})}function _c(n,r){if(Eo(Ba(Eo(n)))===Eo(Ba(Eo(r))))return n}function $c(n){return Eo(n&&n.flags&1048576?n.exportSymbol:n)}function Nc(n){return!!(n.flags&111551||n.flags&2097152&&_i(n).flags&111551&&!Qt(n))}function kc(n){for(var r=n.members,t=0,a=r;t<a.length;t++){var s=a[t];if(s.kind===169&&e.nodeIsPresent(s.body))return s}}function Pl(n){var r=new Oe(Ue,n);return Se++,r.id=Se,M&&(e.tracing===null||e.tracing===void 0||e.tracing.recordType(r)),r}function Bs(n){return new Oe(Ue,n)}function As(n,r,t){t===void 0&&(t=0);var a=Pl(n);return a.intrinsicName=r,a.objectFlags=t,a}function fl(n,r){var t=Pl(524288);return t.objectFlags=n,t.symbol=r,t.members=void 0,t.properties=void 0,t.callSignatures=void 0,t.constructSignatures=void 0,t.indexInfos=void 0,t}function pp(){return Sa(e.arrayFrom(de.keys(),Jc))}function Uc(n){var r=Pl(262144);return n&&(r.symbol=n),r}function dl(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function nf(n){var r;return n.forEach(function(t,a){!dl(a)&&Nc(t)&&(r||(r=[])).push(t)}),r||e.emptyArray}function _d(n){var r=nf(n),t=iE(n);return t?e.concatenate(r,[t]):r}function el(n,r,t,a,s){var u=n;return u.members=r,u.properties=e.emptyArray,u.callSignatures=t,u.constructSignatures=a,u.indexInfos=s,r!==Ne&&(u.properties=nf(r)),u}function qo(n,r,t,a,s){return el(fl(16,n),r,t,a,s)}function mp(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;var r=e.filter(n.constructSignatures,function(a){return!(a.flags&4)});if(n.constructSignatures===r)return n;var t=qo(n.symbol,n.members,n.callSignatures,e.some(r)?r:e.emptyArray,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=t,t.objectTypeWithoutAbstractConstructSignatures=t,t}function yu(n,r){for(var t,a=function(S){if(S.locals&&!pc(S)&&(t=r(S.locals,void 0,!0,S)))return{value:t};switch(S.kind){case 300:if(!e.isExternalOrCommonJsModule(S))break;case 259:var F=wt(S);if(t=r((F==null?void 0:F.exports)||Ne,void 0,!0,S))return{value:t};break;case 255:case 224:case 256:var ve;if((wt(S).members||Ne).forEach(function(Ge,Je){Ge.flags&788968&&(ve||(ve=e.createSymbolTable())).set(Je,Ge)}),ve&&(t=r(ve,void 0,!1,S)))return{value:t};break}},s=n;s;s=s.parent){var u=a(s);if(typeof u=="object")return u.value}return r(xe,void 0,!0)}function rf(n){return n===111551?111551:1920}function gd(n,r,t,a,s){if(s===void 0&&(s=new e.Map),!(n&&!_p(n)))return;var u=Za(n),S=u.accessibleChainCache||(u.accessibleChainCache=new e.Map),F=yu(r,function(xr,Gr,ct,Vt){return Vt}),ve=(a?0:1)+"|"+(F&&U(F))+"|"+t;if(S.has(ve))return S.get(ve);var Ge=C(n),Je=s.get(Ge);Je||s.set(Ge,Je=[]);var Xe=yu(r,tn);return S.set(ve,Xe),Xe;function tn(xr,Gr,ct){if(e.pushIfUnique(Je,xr)){var Vt=sr(xr,Gr,ct);return Je.pop(),Vt}}function Dn(xr,Gr){return!Hd(xr,r,Gr)||!!gd(xr.parent,r,rf(Gr),a,s)}function nr(xr,Gr,ct){return(n===(Gr||xr)||Eo(n)===Eo(Gr||xr))&&!e.some(xr.declarations,af)&&(ct||Dn(Eo(xr),t))}function sr(xr,Gr,ct){if(nr(xr.get(n.escapedName),void 0,Gr))return[n];var Vt=e.forEachEntry(xr,function(_t){if(_t.flags&2097152&&_t.escapedName!=="export="&&_t.escapedName!=="default"&&!(e.isUMDExportSymbol(_t)&&r&&e.isExternalModule(e.getSourceFileOfNode(r)))&&(!a||e.some(_t.declarations,e.isExternalModuleImportEqualsDeclaration))&&(!ct||!e.some(_t.declarations,e.isNamespaceReexportDeclaration))&&(Gr||!e.getDeclarationOfKind(_t,273))){var Ta=_i(_t),sa=Ir(_t,Ta,Gr);if(sa)return sa}if(_t.escapedName===n.escapedName&&_t.exportSymbol&&nr(Eo(_t.exportSymbol),void 0,Gr))return[n]});return Vt||(xr===xe?Ir(hn,hn,Gr):void 0)}function Ir(xr,Gr,ct){if(nr(xr,Gr,ct))return[xr];var Vt=al(Gr),_t=Vt&&tn(Vt,!0);if(_t&&Dn(xr,rf(t)))return[xr].concat(_t)}}function Hd(n,r,t){var a=!1;return yu(r,function(s){var u=Eo(s.get(n.escapedName));return u?u===n?!0:(u=u.flags&2097152&&!e.getDeclarationOfKind(u,273)?_i(u):u,u.flags&t?(a=!0,!0):!1):!1}),a}function _p(n){if(n.declarations&&n.declarations.length){for(var r=0,t=n.declarations;r<t.length;r++){var a=t[r];switch(a.kind){case 165:case 167:case 170:case 171:continue;default:return!1}}return!0}return!1}function vd(n,r){var t=Ef(n,r,788968,!1,!0);return t.accessibility===0}function Eu(n,r){var t=Ef(n,r,111551,!1,!0);return t.accessibility===0}function Jd(n,r,t){var a=Ef(n,r,t,!1,!1);return a.accessibility===0}function Uf(n,r,t,a,s,u){if(e.length(n)){for(var S,F=!1,ve=0,Ge=n;ve<Ge.length;ve++){var Je=Ge[ve],Xe=gd(Je,r,a,!1);if(Xe){S=Je;var tn=Kd(Xe[0],s);if(tn)return tn}if(u&&e.some(Je.declarations,af)){if(s){F=!0;continue}return{accessibility:0}}var Dn=ef(Je,r,a),nr=Uf(Dn,r,t,t===Je?rf(a):a,s,u);if(nr)return nr}if(F)return{accessibility:0};if(S)return{accessibility:1,errorSymbolName:Qa(t,r,a),errorModuleName:S!==t?Qa(S,r,1920):void 0}}}function tf(n,r,t,a){return Ef(n,r,t,a,!0)}function Ef(n,r,t,a,s){if(n&&r){var u=Uf([n],r,n,t,a,s);if(u)return u;var S=e.forEach(n.declarations,hd);if(S){var F=hd(r);if(S!==F)return{accessibility:2,errorSymbolName:Qa(n,r,t),errorModuleName:Qa(S),errorNode:e.isInJSFile(r)?r:void 0}}return{accessibility:1,errorSymbolName:Qa(n,r,t)}}return{accessibility:0}}function hd(n){var r=e.findAncestor(n,yd);return r&&wt(r)}function yd(n){return e.isAmbientModule(n)||n.kind===300&&e.isExternalOrCommonJsModule(n)}function af(n){return e.isModuleWithStringLiteralName(n)||n.kind===300&&e.isExternalOrCommonJsModule(n)}function Kd(n,r){var t;if(!e.every(e.filter(n.declarations,function(u){return u.kind!==79}),a))return;return{accessibility:0,aliasesToMakeVisible:t};function a(u){var S,F;if(!eu(u)){var ve=Pf(u);return ve&&!e.hasSyntacticModifier(ve,1)&&eu(ve.parent)?s(u,ve):e.isVariableDeclaration(u)&&e.isVariableStatement(u.parent.parent)&&!e.hasSyntacticModifier(u.parent.parent,1)&&eu(u.parent.parent.parent)?s(u,u.parent.parent):e.isLateVisibilityPaintedStatement(u)&&!e.hasSyntacticModifier(u,1)&&eu(u.parent)?s(u,u):n.flags&2097152&&e.isBindingElement(u)&&e.isInJSFile(u)&&(!((S=u.parent)===null||S===void 0)&&S.parent)&&e.isVariableDeclaration(u.parent.parent)&&(!((F=u.parent.parent.parent)===null||F===void 0)&&F.parent)&&e.isVariableStatement(u.parent.parent.parent.parent)&&!e.hasSyntacticModifier(u.parent.parent.parent.parent,1)&&u.parent.parent.parent.parent.parent&&eu(u.parent.parent.parent.parent.parent)?s(u,u.parent.parent.parent.parent):!1}return!0}function s(u,S){return r&&(da(u).isVisible=!0,t=e.appendIfUnique(t,S)),!0}}function gp(n,r){var t;n.parent.kind===179||e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)||n.parent.kind===160?t=1160127:n.kind===159||n.kind===204||n.parent.kind===263?t=1920:t=788968;var a=e.getFirstIdentifier(n),s=es(r,a.escapedText,t,void 0,void 0,!1);return s&&s.flags&262144&&t&788968?{accessibility:0}:s&&Kd(s,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(a),errorNode:a}}function Qa(n,r,t,a,s){a===void 0&&(a=4);var u=70221824;a&2&&(u|=128),a&1&&(u|=512),a&8&&(u|=16384),a&16&&(u|=134217728);var S=a&4?Pe.symbolToExpression:Pe.symbolToEntityName;return s?F(s).getText():e.usingSingleLineStringWriter(F);function F(ve){var Ge=S(n,t,r,u),Je=(r==null?void 0:r.kind)===300?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),Xe=r&&e.getSourceFileOfNode(r);return Je.writeNode(4,Ge,Xe,ve),ve}}function Rc(n,r,t,a,s){return t===void 0&&(t=0),s?u(s).getText():e.usingSingleLineStringWriter(u);function u(S){var F;t&262144?F=a===1?178:177:F=a===1?173:172;var ve=Pe.signatureToSignatureDeclaration(n,F,r,Wf(t)|70221824|512),Ge=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),Je=r&&e.getSourceFileOfNode(r);return Ge.writeNode(4,ve,Je,e.getTrailingSemicolonDeferringWriter(S)),S}}function Lt(n,r,t,a){t===void 0&&(t=1064960),a===void 0&&(a=e.createTextWriter(""));var s=pe.noErrorTruncation||t&1,u=Pe.typeToTypeNode(n,r,Wf(t)|70221824|(s?1:0),a);if(u===void 0)return e.Debug.fail("should always get typenode");var S={removeComments:!0},F=e.createPrinter(S),ve=r&&e.getSourceFileOfNode(r);F.writeNode(4,u,ve,a);var Ge=a.getText(),Je=s?e.noTruncationMaximumTruncationLength*2:e.defaultMaximumTruncationLength*2;return Je&&Ge&&Ge.length>=Je?Ge.substr(0,Je-3)+"...":Ge}function Vf(n,r){var t=Ed(n.symbol)?Lt(n,n.symbol.valueDeclaration):Lt(n),a=Ed(r.symbol)?Lt(r,r.symbol.valueDeclaration):Lt(r);return t===a&&(t=wu(n),a=wu(r)),[t,a]}function wu(n){return Lt(n,void 0,64)}function Ed(n){return n&&!!n.valueDeclaration&&e.isExpression(n.valueDeclaration)&&!Au(n.valueDeclaration)}function Wf(n){return n===void 0&&(n=0),n&814775659}function bd(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===lc(n.symbol)||!!(n.flags&524288)&&!!(e.getObjectFlags(n)&16777216))}function of(){return{typeToTypeNode:function(rr,yn,pt,mt){return n(yn,pt,mt,function(Ft){return a(rr,Ft)})},indexInfoToIndexSignatureDeclaration:function(rr,yn,pt,mt){return n(yn,pt,mt,function(Ft){return Ge(rr,Ft,void 0)})},signatureToSignatureDeclaration:function(rr,yn,pt,mt,Ft){return n(pt,mt,Ft,function(Bt){return Je(rr,yn,Bt)})},symbolToEntityName:function(rr,yn,pt,mt,Ft){return n(pt,mt,Ft,function(Bt){return mi(rr,Bt,yn,!1)})},symbolToExpression:function(rr,yn,pt,mt,Ft){return n(pt,mt,Ft,function(Bt){return ai(rr,Bt,yn)})},symbolToTypeParameterDeclarations:function(rr,yn,pt,mt){return n(yn,pt,mt,function(Ft){return xr(rr,Ft)})},symbolToParameterDeclaration:function(rr,yn,pt,mt){return n(yn,pt,mt,function(Ft){return Dn(rr,Ft)})},typeParameterToDeclaration:function(rr,yn,pt,mt){return n(yn,pt,mt,function(Ft){return tn(rr,Ft)})},symbolTableToDeclarationStatements:function(rr,yn,pt,mt,Ft){return n(yn,pt,mt,function(Bt){return Wi(rr,Bt,Ft)})}};function n(rr,yn,pt,mt){var Ft,Bt;e.Debug.assert(rr===void 0||(rr.flags&8)===0);var Ht={enclosingDeclaration:rr,flags:yn||0,tracker:pt&&pt.trackSymbol?pt:{trackSymbol:function(){return!1},moduleResolverHost:yn&134217728?{getCommonSourceDirectory:x.getCommonSourceDirectory?function(){return x.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return x.getCurrentDirectory()},getSymlinkCache:e.maybeBind(x,x.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(x,x.useCaseSensitiveFileNames),redirectTargetsMap:x.redirectTargetsMap,getProjectReferenceRedirect:function(Qn){return x.getProjectReferenceRedirect(Qn)},isSourceOfProjectReferenceRedirect:function(Qn){return x.isSourceOfProjectReferenceRedirect(Qn)},fileExists:function(Qn){return x.fileExists(Qn)},getFileIncludeReasons:function(){return x.getFileIncludeReasons()}}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};Ht.tracker=r(Ht,Ht.tracker);var fa=mt(Ht);return Ht.truncating&&Ht.flags&1&&((Bt=(Ft=Ht.tracker)===null||Ft===void 0?void 0:Ft.reportTruncationError)===null||Bt===void 0||Bt.call(Ft)),Ht.encounteredError?void 0:fa}function r(rr,yn){var pt=yn.trackSymbol;return Mt(Mt({},yn),{reportCyclicStructureError:mt(yn.reportCyclicStructureError),reportInaccessibleThisError:mt(yn.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:mt(yn.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:mt(yn.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:mt(yn.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:mt(yn.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:mt(yn.reportNonSerializableProperty),trackSymbol:pt&&function(){for(var Ft=[],Bt=0;Bt<arguments.length;Bt++)Ft[Bt]=arguments[Bt];var Ht=pt.apply(void 0,Ft);return Ht&&(rr.reportedDiagnostic=!0),Ht}});function mt(Ft){return Ft&&function(){for(var Bt=[],Ht=0;Ht<arguments.length;Ht++)Bt[Ht]=arguments[Ht];return rr.reportedDiagnostic=!0,Ft.apply(void 0,Bt)}}}function t(rr){return rr.truncating?rr.truncating:rr.truncating=rr.approximateLength>(rr.flags&1?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function a(rr,yn){z&&z.throwIfCancellationRequested&&z.throwIfCancellationRequested();var pt=yn.flags&8388608;if(yn.flags&=-8388609,!rr){if(!(yn.flags&262144)){yn.encounteredError=!0;return}return yn.approximateLength+=3,e.factory.createKeywordTypeNode(129)}if(yn.flags&536870912||(rr=iu(rr)),rr.flags&1)return yn.approximateLength+=3,e.factory.createKeywordTypeNode(rr===Gn?137:129);if(rr.flags&2)return e.factory.createKeywordTypeNode(153);if(rr.flags&4)return yn.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(rr.flags&8)return yn.approximateLength+=6,e.factory.createKeywordTypeNode(145);if(rr.flags&64)return yn.approximateLength+=6,e.factory.createKeywordTypeNode(156);if(rr.flags&16&&!rr.aliasSymbol)return yn.approximateLength+=7,e.factory.createKeywordTypeNode(132);if(rr.flags&1024&&!(rr.flags&1048576)){var mt=Kl(rr.symbol),Ft=_t(mt,yn,788968);if(rs(mt)===rr)return Ft;var Bt=e.symbolName(rr.symbol);return e.isIdentifierText(Bt,0)?Rp(Ft,e.factory.createTypeReferenceNode(Bt,void 0)):e.isImportTypeNode(Ft)?(Ft.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(Ft,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Bt)))):e.isTypeReferenceNode(Ft)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(Ft.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Bt))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(rr.flags&1056)return _t(rr.symbol,yn,788968);if(rr.flags&128)return yn.approximateLength+=rr.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(rr.value,!!(yn.flags&268435456)),16777216));if(rr.flags&256){var Ht=rr.value;return yn.approximateLength+=(""+Ht).length,e.factory.createLiteralTypeNode(Ht<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-Ht)):e.factory.createNumericLiteral(Ht))}if(rr.flags&2048)return yn.approximateLength+=e.pseudoBigIntToString(rr.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(rr.value));if(rr.flags&512)return yn.approximateLength+=rr.intrinsicName.length,e.factory.createLiteralTypeNode(rr.intrinsicName==="true"?e.factory.createTrue():e.factory.createFalse());if(rr.flags&8192){if(!(yn.flags&1048576)){if(Eu(rr.symbol,yn.enclosingDeclaration))return yn.approximateLength+=6,_t(rr.symbol,yn,111551);yn.tracker.reportInaccessibleUniqueSymbolError&&yn.tracker.reportInaccessibleUniqueSymbolError()}return yn.approximateLength+=13,e.factory.createTypeOperatorNode(152,e.factory.createKeywordTypeNode(149))}if(rr.flags&16384)return yn.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(rr.flags&32768)return yn.approximateLength+=9,e.factory.createKeywordTypeNode(151);if(rr.flags&65536)return yn.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(rr.flags&131072)return yn.approximateLength+=5,e.factory.createKeywordTypeNode(142);if(rr.flags&4096)return yn.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(rr.flags&67108864)return yn.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(uv(rr))return yn.flags&4194304&&(!yn.encounteredError&&!(yn.flags&32768)&&(yn.encounteredError=!0),yn.tracker.reportInaccessibleThisError&&yn.tracker.reportInaccessibleThisError()),yn.approximateLength+=4,e.factory.createThisTypeNode();if(!pt&&rr.aliasSymbol&&(yn.flags&16384||vd(rr.aliasSymbol,yn.enclosingDeclaration))){var fa=F(rr.aliasTypeArguments,yn);return dl(rr.aliasSymbol.escapedName)&&!(rr.aliasSymbol.flags&32)?e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),fa):_t(rr.aliasSymbol,yn,788968,fa)}var Qn=e.getObjectFlags(rr);if(Qn&4)return e.Debug.assert(!!(rr.flags&524288)),rr.node?Ws(rr,Xs):Xs(rr);if(rr.flags&262144||Qn&3){if(rr.flags&262144&&e.contains(yn.inferTypeParameters,rr))return yn.approximateLength+=e.symbolName(rr.symbol).length+6,e.factory.createInferTypeNode(Xe(rr,yn,void 0));if(yn.flags&4&&rr.flags&262144&&!vd(rr.symbol,yn.enclosingDeclaration)){var Nr=sa(rr,yn);return yn.approximateLength+=e.idText(Nr).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(Nr)),void 0)}return rr.symbol?_t(rr.symbol,yn,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(rr.flags&1048576&&rr.origin&&(rr=rr.origin),rr.flags&3145728){var Jr=rr.flags&1048576?sc(rr.types):rr.types;if(e.length(Jr)===1)return a(Jr[0],yn);var tt=F(Jr,yn,!0);if(tt&&tt.length>0)return rr.flags&1048576?e.factory.createUnionTypeNode(tt):e.factory.createIntersectionTypeNode(tt);!yn.encounteredError&&!(yn.flags&262144)&&(yn.encounteredError=!0);return}if(Qn&48)return e.Debug.assert(!!(rr.flags&524288)),il(rr);if(rr.flags&4194304){var ut=rr.type;yn.approximateLength+=6;var Ct=a(ut,yn);return e.factory.createTypeOperatorNode(139,Ct)}if(rr.flags&134217728){var pa=rr.texts,Oa=rr.types,Di=e.factory.createTemplateHead(pa[0]),xa=e.factory.createNodeArray(e.map(Oa,function(ja,Ki){return e.factory.createTemplateLiteralTypeSpan(a(ja,yn),(Ki<Oa.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(pa[Ki+1]))}));return yn.approximateLength+=2,e.factory.createTemplateLiteralType(Di,xa)}if(rr.flags&268435456){var lo=a(rr.type,yn);return _t(rr.symbol,yn,788968,[lo])}if(rr.flags&8388608){var Wo=a(rr.objectType,yn),Ct=a(rr.indexType,yn);return yn.approximateLength+=2,e.factory.createIndexedAccessTypeNode(Wo,Ct)}if(rr.flags&16777216)return Ws(rr,function(ja){return Mo(ja)});if(rr.flags&33554432)return a(rr.baseType,yn);return e.Debug.fail("Should be unreachable.");function Mo(ja){var Ki=a(ja.checkType,yn),Ts=yn.inferTypeParameters;yn.inferTypeParameters=ja.root.inferTypeParameters;var So=a(ja.extendsType,yn);yn.inferTypeParameters=Ts;var tr=Qo(ip(ja)),br=Qo(op(ja));return yn.approximateLength+=15,e.factory.createConditionalTypeNode(Ki,So,tr,br)}function Qo(ja){var Ki,Ts,So;return ja.flags&1048576?!((Ki=yn.visitedTypes)===null||Ki===void 0)&&Ki.has(cu(ja))?(yn.flags&131072||(yn.encounteredError=!0,(So=(Ts=yn.tracker)===null||Ts===void 0?void 0:Ts.reportCyclicStructureError)===null||So===void 0||So.call(Ts)),s(yn)):Ws(ja,function(tr){return a(tr,yn)}):a(ja,yn)}function Zs(ja){e.Debug.assert(!!(ja.flags&524288));var Ki=ja.declaration.readonlyToken?e.factory.createToken(ja.declaration.readonlyToken.kind):void 0,Ts=ja.declaration.questionToken?e.factory.createToken(ja.declaration.questionToken.kind):void 0,So;Y_(ja)?So=e.factory.createTypeOperatorNode(139,a(Q_(ja),yn)):So=a(tu(ja),yn);var tr=Xe(Su(ja),yn,So),br=ja.declaration.nameType?a($d(ja),yn):void 0,jr=a(Bm(Mc(ja),!!(au(ja)&4)),yn),it=e.factory.createMappedTypeNode(Ki,tr,br,Ts,jr);return yn.approximateLength+=10,e.setEmitFlags(it,1)}function il(ja){var Ki,Ts=ja.id,So=ja.symbol;if(So){var tr=bd(ja)?788968:111551;if(Nu(So.valueDeclaration))return _t(So,yn,tr);if(So.flags&32&&!Us(So)&&!(So.valueDeclaration&&So.valueDeclaration.kind===224&&yn.flags&2048)||So.flags&896||jr())return _t(So,yn,tr);if(!((Ki=yn.visitedTypes)===null||Ki===void 0)&&Ki.has(Ts)){var br=Fu(ja);return br?_t(br,yn,788968):s(yn)}else return Ws(ja,ld)}else return ld(ja);function jr(){var it,Kt=!!(So.flags&8192)&&e.some(So.declarations,function(bt){return e.isStatic(bt)}),St=!!(So.flags&16)&&(So.parent||e.forEach(So.declarations,function(bt){return bt.parent.kind===300||bt.parent.kind===260}));if(Kt||St)return(!!(yn.flags&4096)||((it=yn.visitedTypes)===null||it===void 0?void 0:it.has(Ts)))&&(!(yn.flags&8)||Eu(So,yn.enclosingDeclaration))}}function Ws(ja,Ki){var Ts,So,tr=ja.id,br=e.getObjectFlags(ja)&16&&ja.symbol&&ja.symbol.flags&32,jr=e.getObjectFlags(ja)&4&&ja.node?"N"+U(ja.node):ja.flags&16777216?"N"+U(ja.root.node):ja.symbol?(br?"+":"")+C(ja.symbol):void 0;yn.visitedTypes||(yn.visitedTypes=new e.Set),jr&&!yn.symbolDepth&&(yn.symbolDepth=new e.Map);var it=yn.enclosingDeclaration&&da(yn.enclosingDeclaration),Kt=cu(ja)+"|"+yn.flags;it&&(it.serializedTypes||(it.serializedTypes=new e.Map));var St=(Ts=it==null?void 0:it.serializedTypes)===null||Ts===void 0?void 0:Ts.get(Kt);if(St)return St.truncating&&(yn.truncating=!0),yn.approximateLength+=St.addedLength,Oi(St);var bt;if(jr){if(bt=yn.symbolDepth.get(jr)||0,bt>10)return s(yn);yn.symbolDepth.set(jr,bt+1)}yn.visitedTypes.add(tr);var It=yn.approximateLength,Ja=Ki(ja),Ri=yn.approximateLength-It;return!yn.reportedDiagnostic&&!yn.encounteredError&&(yn.truncating&&(Ja.truncating=!0),Ja.addedLength=Ri,(So=it==null?void 0:it.serializedTypes)===null||So===void 0||So.set(Kt,Ja)),yn.visitedTypes.delete(tr),jr&&yn.symbolDepth.set(jr,bt),Ja;function Oi(ro){return!e.nodeIsSynthesized(ro)&&e.getParseTreeNode(ro)===ro?ro:e.setTextRange(e.factory.cloneNode(e.visitEachChild(ro,Oi,e.nullTransformationContext)),ro)}}function ld(ja){if(hc(ja)||ja.containsError)return Zs(ja);var Ki=Du(ja);if(!Ki.properties.length&&!Ki.indexInfos.length){if(!Ki.callSignatures.length&&!Ki.constructSignatures.length)return yn.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(Ki.callSignatures.length===1&&!Ki.constructSignatures.length){var Ts=Ki.callSignatures[0],So=Je(Ts,177,yn);return So}if(Ki.constructSignatures.length===1&&!Ki.callSignatures.length){var Ts=Ki.constructSignatures[0],So=Je(Ts,178,yn);return So}}var tr=e.filter(Ki.constructSignatures,function(bt){return!!(bt.flags&4)});if(e.some(tr)){var br=e.map(tr,f_),jr=Ki.callSignatures.length+(Ki.constructSignatures.length-tr.length)+Ki.indexInfos.length+(yn.flags&2048?e.countWhere(Ki.properties,function(bt){return!(bt.flags&4194304)}):e.length(Ki.properties));return jr&&br.push(mp(Ki)),a(Ro(br),yn)}var it=yn.flags;yn.flags|=4194304;var Kt=U_(Ki);yn.flags=it;var St=e.factory.createTypeLiteralNode(Kt);return yn.approximateLength+=2,e.setEmitFlags(St,yn.flags&1024?0:1),St}function Xs(ja){var Ki=Co(ja);if(ja.target===_r||ja.target===$r){if(yn.flags&2){var Ts=a(Ki[0],yn);return e.factory.createTypeReferenceNode(ja.target===_r?"Array":"ReadonlyArray",[Ts])}var So=a(Ki[0],yn),tr=e.factory.createArrayTypeNode(So);return ja.target===_r?tr:e.factory.createTypeOperatorNode(143,tr)}else if(ja.target.objectFlags&8){if(Ki=e.sameMap(Ki,function(ss,Ss){return Bm(ss,!!(ja.target.elementFlags[Ss]&2))}),Ki.length>0){var br=rp(ja),jr=F(Ki.slice(0,br),yn);if(jr){if(ja.target.labeledElementDeclarations)for(var it=0;it<jr.length;it++){var Kt=ja.target.elementFlags[it];jr[it]=e.factory.createNamedTupleMember(Kt&12?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(ly(ja.target.labeledElementDeclarations[it]))),Kt&2?e.factory.createToken(57):void 0,Kt&4?e.factory.createArrayTypeNode(jr[it]):jr[it])}else for(var it=0;it<Math.min(br,jr.length);it++){var Kt=ja.target.elementFlags[it];jr[it]=Kt&12?e.factory.createRestTypeNode(Kt&4?e.factory.createArrayTypeNode(jr[it]):jr[it]):Kt&2?e.factory.createOptionalTypeNode(jr[it]):jr[it]}var St=e.setEmitFlags(e.factory.createTupleTypeNode(jr),1);return ja.target.readonly?e.factory.createTypeOperatorNode(143,St):St}}if(yn.encounteredError||yn.flags&524288){var St=e.setEmitFlags(e.factory.createTupleTypeNode([]),1);return ja.target.readonly?e.factory.createTypeOperatorNode(143,St):St}yn.encounteredError=!0;return}else{if(yn.flags&2048&&ja.symbol.valueDeclaration&&e.isClassLike(ja.symbol.valueDeclaration)&&!Eu(ja.symbol,yn.enclosingDeclaration))return il(ja);var bt=ja.target.outerTypeParameters,it=0,It=void 0;if(bt)for(var Ja=bt.length;it<Ja;){var Ri=it,Oi=Z1(bt[it]);do it++;while(it<Ja&&Z1(bt[it])===Oi);if(!e.rangeEquals(bt,Ki,Ri,it)){var ro=F(Ki.slice(Ri,it),yn),$i=yn.flags;yn.flags|=16;var Ms=_t(Oi,yn,788968,ro);yn.flags=$i,It=It?Rp(It,Ms):Ms}}var _s=void 0;if(Ki.length>0){var js=(ja.target.typeParameters||e.emptyArray).length;_s=F(Ki.slice(it,js),yn)}var Kt=yn.flags;yn.flags|=16;var os=_t(ja.symbol,yn,788968,_s);return yn.flags=Kt,It?Rp(It,os):os}}function Rp(ja,Ki){if(e.isImportTypeNode(ja)){var Ts=ja.typeArguments,So=ja.qualifier;So&&(e.isIdentifier(So)?So=e.factory.updateIdentifier(So,Ts):So=e.factory.updateQualifiedName(So,So.left,e.factory.updateIdentifier(So.right,Ts))),Ts=Ki.typeArguments;for(var tr=Mg(Ki),br=0,jr=tr;br<jr.length;br++){var it=jr[br];So=So?e.factory.createQualifiedName(So,it):it}return e.factory.updateImportTypeNode(ja,ja.argument,So,Ts,ja.isTypeOf)}else{var Ts=ja.typeArguments,Kt=ja.typeName;e.isIdentifier(Kt)?Kt=e.factory.updateIdentifier(Kt,Ts):Kt=e.factory.updateQualifiedName(Kt,Kt.left,e.factory.updateIdentifier(Kt.right,Ts)),Ts=Ki.typeArguments;for(var tr=Mg(Ki),St=0,bt=tr;St<bt.length;St++){var it=bt[St];Kt=e.factory.createQualifiedName(Kt,it)}return e.factory.updateTypeReferenceNode(ja,Kt,Ts)}}function Mg(ja){for(var Ki=ja.typeName,Ts=[];!e.isIdentifier(Ki);)Ts.unshift(Ki.right),Ki=Ki.left;return Ts.unshift(Ki),Ts}function U_(ja){if(t(yn))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var Ki=[],Ts=0,So=ja.callSignatures;Ts<So.length;Ts++){var tr=So[Ts];Ki.push(Je(tr,172,yn))}for(var br=0,jr=ja.constructSignatures;br<jr.length;br++){var tr=jr[br];tr.flags&4||Ki.push(Je(tr,173,yn))}for(var it=0,Kt=ja.indexInfos;it<Kt.length;it++){var St=Kt[it];Ki.push(Ge(St,yn,ja.objectFlags&1024?s(yn):void 0))}var bt=ja.properties;if(!bt)return Ki;for(var It=0,Ja=0,Ri=bt;Ja<Ri.length;Ja++){var Oi=Ri[Ja];if(It++,yn.flags&2048){if(Oi.flags&4194304)continue;e.getDeclarationModifierFlagsFromSymbol(Oi)&24&&yn.tracker.reportPrivateInBaseOfClassExpression&&yn.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(Oi.escapedName))}if(t(yn)&&It+2<bt.length-1){Ki.push(e.factory.createPropertySignature(void 0,"... "+(bt.length-It)+" more ...",void 0,void 0)),S(bt[bt.length-1],yn,Ki);break}S(Oi,yn,Ki)}return Ki.length?Ki:void 0}}function s(rr){return rr.approximateLength+=3,rr.flags&1?e.factory.createKeywordTypeNode(129):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function u(rr,yn){var pt;return!!(e.getCheckFlags(rr)&8192)&&(e.contains(yn.reverseMappedStack,rr)||((pt=yn.reverseMappedStack)===null||pt===void 0?void 0:pt[0])&&!(e.getObjectFlags(e.last(yn.reverseMappedStack).propertyType)&16))}function S(rr,yn,pt){var mt,Ft,Bt=!!(e.getCheckFlags(rr)&8192),Ht=u(rr,yn)?cr:El(rr),fa=yn.enclosingDeclaration;if(yn.enclosingDeclaration=void 0,yn.tracker.trackSymbol&&e.getCheckFlags(rr)&4096&&ml(rr.escapedName))if(rr.declarations){var Qn=e.first(rr.declarations);if(xl(Qn))if(e.isBinaryExpression(Qn)){var Nr=e.getNameOfDeclaration(Qn);Nr&&e.isElementAccessExpression(Nr)&&e.isPropertyAccessEntityNameExpression(Nr.argumentExpression)&&nr(Nr.argumentExpression,fa,yn)}else nr(Qn.name.expression,fa,yn)}else!((mt=yn.tracker)===null||mt===void 0)&&mt.reportNonSerializableProperty&&yn.tracker.reportNonSerializableProperty(Qa(rr));yn.enclosingDeclaration=rr.valueDeclaration||((Ft=rr.declarations)===null||Ft===void 0?void 0:Ft[0])||fa;var Jr=go(rr,yn);yn.enclosingDeclaration=fa,yn.approximateLength+=e.symbolName(rr).length+1;var tt=rr.flags&16777216?e.factory.createToken(57):void 0;if(rr.flags&8208&&!qf(Ht).length&&!df(rr))for(var ut=zr(Nl(Ht,function(Qo){return!(Qo.flags&32768)}),0),Ct=0,pa=ut;Ct<pa.length;Ct++){var Oa=pa[Ct],Di=Je(Oa,166,yn,{name:Jr,questionToken:tt});pt.push(Mo(Di))}else{var xa=void 0;u(rr,yn)?xa=s(yn):(Bt&&(yn.reverseMappedStack||(yn.reverseMappedStack=[]),yn.reverseMappedStack.push(rr)),xa=Ht?na(yn,Ht,rr,fa):e.factory.createKeywordTypeNode(129),Bt&&yn.reverseMappedStack.pop());var lo=df(rr)?[e.factory.createToken(143)]:void 0;lo&&(yn.approximateLength+=9);var Wo=e.factory.createPropertySignature(lo,Jr,tt,xa);pt.push(Mo(Wo))}function Mo(Qo){var Zs;if(e.some(rr.declarations,function(ld){return ld.kind===342})){var il=(Zs=rr.declarations)===null||Zs===void 0?void 0:Zs.find(function(ld){return ld.kind===342}),Ws=e.getTextOfJSDocComment(il.comment);Ws&&e.setSyntheticLeadingComments(Qo,[{kind:3,text:`*
* `+Ws.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else rr.valueDeclaration&&e.setCommentRange(Qo,rr.valueDeclaration);return Qo}}function F(rr,yn,pt){if(e.some(rr)){if(t(yn))if(pt){if(rr.length>2)return[a(rr[0],yn),e.factory.createTypeReferenceNode("... "+(rr.length-2)+" more ...",void 0),a(rr[rr.length-1],yn)]}else return[e.factory.createTypeReferenceNode("...",void 0)];for(var mt=!(yn.flags&64),Ft=mt?e.createUnderscoreEscapedMultiMap():void 0,Bt=[],Ht=0,fa=0,Qn=rr;fa<Qn.length;fa++){var Nr=Qn[fa];if(Ht++,t(yn)&&Ht+2<rr.length-1){Bt.push(e.factory.createTypeReferenceNode("... "+(rr.length-Ht)+" more ...",void 0));var Jr=a(rr[rr.length-1],yn);Jr&&Bt.push(Jr);break}yn.approximateLength+=2;var tt=a(Nr,yn);tt&&(Bt.push(tt),Ft&&e.isIdentifierTypeReference(tt)&&Ft.add(tt.typeName.escapedText,[Nr,Bt.length-1]))}if(Ft){var ut=yn.flags;yn.flags|=64,Ft.forEach(function(Ct){if(!e.arrayIsHomogeneous(Ct,function(Wo,Mo){var Qo=Wo[0],Zs=Mo[0];return ve(Qo,Zs)}))for(var pa=0,Oa=Ct;pa<Oa.length;pa++){var Di=Oa[pa],xa=Di[0],lo=Di[1];Bt[lo]=a(xa,yn)}}),yn.flags=ut}return Bt}}function ve(rr,yn){return rr===yn||!!rr.symbol&&rr.symbol===yn.symbol||!!rr.aliasSymbol&&rr.aliasSymbol===yn.aliasSymbol}function Ge(rr,yn,pt){var mt=e.getNameFromIndexInfo(rr)||"x",Ft=a(rr.keyType,yn),Bt=e.factory.createParameterDeclaration(void 0,void 0,void 0,mt,void 0,Ft,void 0);return pt||(pt=a(rr.type||cr,yn)),!rr.type&&!(yn.flags&2097152)&&(yn.encounteredError=!0),yn.approximateLength+=mt.length+4,e.factory.createIndexSignature(void 0,rr.isReadonly?[e.factory.createToken(143)]:void 0,[Bt],pt)}function Je(rr,yn,pt,mt){var Ft,Bt,Ht,fa,Qn=pt.flags&256;Qn&&(pt.flags&=-257),pt.approximateLength+=3;var Nr,Jr;pt.flags&32&&rr.target&&rr.mapper&&rr.target.typeParameters?Jr=rr.target.typeParameters.map(function(il){return a(fi(il,rr.mapper),pt)}):Nr=rr.typeParameters&&rr.typeParameters.map(function(il){return tn(il,pt)});var tt=z_(rr,!0)[0],ut=(e.some(tt,function(il){return il!==tt[tt.length-1]&&!!(e.getCheckFlags(il)&32768)})?rr.parameters:tt).map(function(il){return Dn(il,pt,yn===169,mt==null?void 0:mt.privateSymbolVisitor,mt==null?void 0:mt.bundledImports)});if(rr.thisParameter){var Ct=Dn(rr.thisParameter,pt);ut.unshift(Ct)}var pa,Oa=Cc(rr);if(Oa){var Di=Oa.kind===2||Oa.kind===3?e.factory.createToken(128):void 0,xa=Oa.kind===1||Oa.kind===3?e.setEmitFlags(e.factory.createIdentifier(Oa.parameterName),16777216):e.factory.createThisTypeNode(),lo=Oa.type&&a(Oa.type,pt);pa=e.factory.createTypePredicateNode(Di,xa,lo)}else{var Wo=_o(rr);Wo&&!(Qn&&no(Wo))?pa=si(pt,Wo,rr,mt==null?void 0:mt.privateSymbolVisitor,mt==null?void 0:mt.bundledImports):Qn||(pa=e.factory.createKeywordTypeNode(129))}var Mo=mt==null?void 0:mt.modifiers;if(yn===178&&rr.flags&4){var Qo=e.modifiersToFlags(Mo);Mo=e.factory.createModifiersFromModifierFlags(Qo|128)}var Zs=yn===172?e.factory.createCallSignature(Nr,ut,pa):yn===173?e.factory.createConstructSignature(Nr,ut,pa):yn===166?e.factory.createMethodSignature(Mo,(Ft=mt==null?void 0:mt.name)!==null&&Ft!==void 0?Ft:e.factory.createIdentifier(""),mt==null?void 0:mt.questionToken,Nr,ut,pa):yn===167?e.factory.createMethodDeclaration(void 0,Mo,void 0,(Bt=mt==null?void 0:mt.name)!==null&&Bt!==void 0?Bt:e.factory.createIdentifier(""),void 0,Nr,ut,pa,void 0):yn===169?e.factory.createConstructorDeclaration(void 0,Mo,ut,void 0):yn===170?e.factory.createGetAccessorDeclaration(void 0,Mo,(Ht=mt==null?void 0:mt.name)!==null&&Ht!==void 0?Ht:e.factory.createIdentifier(""),ut,pa,void 0):yn===171?e.factory.createSetAccessorDeclaration(void 0,Mo,(fa=mt==null?void 0:mt.name)!==null&&fa!==void 0?fa:e.factory.createIdentifier(""),ut,void 0):yn===174?e.factory.createIndexSignature(void 0,Mo,ut,pa):yn===312?e.factory.createJSDocFunctionType(ut,pa):yn===177?e.factory.createFunctionTypeNode(Nr,ut,pa!=null?pa:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):yn===178?e.factory.createConstructorTypeNode(Mo,Nr,ut,pa!=null?pa:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):yn===254?e.factory.createFunctionDeclaration(void 0,Mo,void 0,mt!=null&&mt.name?e.cast(mt.name,e.isIdentifier):e.factory.createIdentifier(""),Nr,ut,pa,void 0):yn===211?e.factory.createFunctionExpression(Mo,void 0,mt!=null&&mt.name?e.cast(mt.name,e.isIdentifier):e.factory.createIdentifier(""),Nr,ut,pa,e.factory.createBlock([])):yn===212?e.factory.createArrowFunction(Mo,Nr,ut,pa,void 0,e.factory.createBlock([])):e.Debug.assertNever(yn);return Jr&&(Zs.typeArguments=e.factory.createNodeArray(Jr)),Zs}function Xe(rr,yn,pt){var mt=yn.flags;yn.flags&=-513;var Ft=sa(rr,yn),Bt=ep(rr),Ht=Bt&&a(Bt,yn);return yn.flags=mt,e.factory.createTypeParameterDeclaration(Ft,pt,Ht)}function tn(rr,yn,pt){pt===void 0&&(pt=yc(rr));var mt=pt&&a(pt,yn);return Xe(rr,yn,mt)}function Dn(rr,yn,pt,mt,Ft){var Bt=e.getDeclarationOfKind(rr,162);!Bt&&!e.isTransientSymbol(rr)&&(Bt=e.getDeclarationOfKind(rr,335));var Ht=kt(rr);Bt&&GD(Bt)&&(Ht=td(Ht)),yn.flags&1073741824&&Bt&&!e.isJSDocParameterTag(Bt)&&rP(Bt)&&(Ht=gl(Ht,524288));var fa=na(yn,Ht,rr,yn.enclosingDeclaration,mt,Ft),Qn=!(yn.flags&8192)&&pt&&Bt&&Bt.modifiers?Bt.modifiers.map(e.factory.cloneNode):void 0,Nr=Bt&&e.isRestParameter(Bt)||e.getCheckFlags(rr)&32768,Jr=Nr?e.factory.createToken(25):void 0,tt=Bt&&Bt.name?Bt.name.kind===79?e.setEmitFlags(e.factory.cloneNode(Bt.name),16777216):Bt.name.kind===159?e.setEmitFlags(e.factory.cloneNode(Bt.name.right),16777216):Oa(Bt.name):e.symbolName(rr),ut=Bt&&Xf(Bt)||e.getCheckFlags(rr)&16384,Ct=ut?e.factory.createToken(57):void 0,pa=e.factory.createParameterDeclaration(void 0,Qn,Jr,tt,Ct,fa,void 0);return yn.approximateLength+=e.symbolName(rr).length+3,pa;function Oa(Di){return xa(Di);function xa(lo){yn.tracker.trackSymbol&&e.isComputedPropertyName(lo)&&ds(lo)&&nr(lo.expression,yn.enclosingDeclaration,yn);var Wo=e.visitEachChild(lo,xa,e.nullTransformationContext,void 0,xa);return e.isBindingElement(Wo)&&(Wo=e.factory.updateBindingElement(Wo,Wo.dotDotDotToken,Wo.propertyName,Wo.name,void 0)),e.nodeIsSynthesized(Wo)||(Wo=e.factory.cloneNode(Wo)),e.setEmitFlags(Wo,16777217)}}}function nr(rr,yn,pt){if(pt.tracker.trackSymbol){var mt=e.getFirstIdentifier(rr),Ft=es(mt,mt.escapedText,1160127,void 0,void 0,!0);Ft&&pt.tracker.trackSymbol(Ft,yn,111551)}}function sr(rr,yn,pt,mt){return yn.tracker.trackSymbol(rr,yn.enclosingDeclaration,pt),Ir(rr,yn,pt,mt)}function Ir(rr,yn,pt,mt){var Ft,Bt=rr.flags&262144;return!Bt&&(yn.enclosingDeclaration||yn.flags&64)&&!(yn.flags&134217728)?(Ft=e.Debug.checkDefined(Ht(rr,pt,!0)),e.Debug.assert(Ft&&Ft.length>0)):Ft=[rr],Ft;function Ht(fa,Qn,Nr){var Jr=gd(fa,yn.enclosingDeclaration,Qn,!!(yn.flags&128)),tt;if(!Jr||Hd(Jr[0],yn.enclosingDeclaration,Jr.length===1?Qn:rf(Qn))){var ut=ef(Jr?Jr[0]:fa,yn.enclosingDeclaration,Qn);if(e.length(ut)){tt=ut.map(function(Mo){return e.some(Mo.declarations,af)?Vt(Mo,yn):void 0});var Ct=ut.map(function(Mo,Qo){return Qo});Ct.sort(Wo);for(var pa=Ct.map(function(Mo){return ut[Mo]}),Oa=0,Di=pa;Oa<Di.length;Oa++){var xa=Di[Oa],lo=Ht(xa,rf(Qn),!1);if(lo){if(xa.exports&&xa.exports.get("export=")&&_c(xa.exports.get("export="),fa)){Jr=lo;break}Jr=lo.concat(Jr||[Bf(xa,fa)||fa]);break}}}}if(Jr)return Jr;if(Nr||!(fa.flags&6144))return!Nr&&!mt&&e.forEach(fa.declarations,af)?void 0:[fa];function Wo(Mo,Qo){var Zs=tt[Mo],il=tt[Qo];if(Zs&&il){var Ws=e.pathIsRelative(il);return e.pathIsRelative(Zs)===Ws?e.moduleSpecifiers.countPathComponents(Zs)-e.moduleSpecifiers.countPathComponents(il):Ws?-1:1}return 0}}}function xr(rr,yn){var pt,mt=Ym(rr);return mt.flags&524384&&(pt=e.factory.createNodeArray(e.map(Nt(rr),function(Ft){return tn(Ft,yn)}))),pt}function Gr(rr,yn,pt){var mt;e.Debug.assert(rr&&0<=yn&&yn<rr.length);var Ft=rr[yn],Bt=C(Ft);if(!(!((mt=pt.typeParameterSymbolList)===null||mt===void 0)&&mt.has(Bt))){(pt.typeParameterSymbolList||(pt.typeParameterSymbolList=new e.Set)).add(Bt);var Ht;if(pt.flags&512&&yn<rr.length-1){var fa=Ft,Qn=rr[yn+1];if(e.getCheckFlags(Qn)&1){var Nr=Si(fa.flags&2097152?_i(fa):fa);Ht=F(e.map(Nr,function(Jr){return Qp(Jr,Qn.mapper)}),pt)}else Ht=xr(Ft,pt)}return Ht}}function ct(rr){return e.isIndexedAccessTypeNode(rr.objectType)?ct(rr.objectType):rr}function Vt(rr,yn){var pt,mt=e.getDeclarationOfKind(rr,300);if(!mt){var Ft=e.firstDefined(rr.declarations,function(Oa){return jd(Oa,rr)});Ft&&(mt=e.getDeclarationOfKind(Ft,300))}if(mt&&mt.moduleName!==void 0)return mt.moduleName;if(!mt){if(yn.tracker.trackReferencedAmbientModule){var Bt=e.filter(rr.declarations,e.isAmbientModule);if(e.length(Bt))for(var Ht=0,fa=Bt;Ht<fa.length;Ht++){var Qn=fa[Ht];yn.tracker.trackReferencedAmbientModule(Qn,rr)}}if(o.test(rr.escapedName))return rr.escapedName.substring(1,rr.escapedName.length-1)}if(!yn.enclosingDeclaration||!yn.tracker.moduleResolverHost)return o.test(rr.escapedName)?rr.escapedName.substring(1,rr.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(rr)).fileName;var Nr=e.getSourceFileOfNode(e.getOriginalNode(yn.enclosingDeclaration)),Jr=Za(rr),tt=Jr.specifierCache&&Jr.specifierCache.get(Nr.path);if(!tt){var ut=!!e.outFile(pe),Ct=yn.tracker.moduleResolverHost,pa=ut?Mt(Mt({},pe),{baseUrl:Ct.getCommonSourceDirectory()}):pe;tt=e.first(e.moduleSpecifiers.getModuleSpecifiers(rr,Ue,pa,Nr,Ct,{importModuleSpecifierPreference:ut?"non-relative":"project-relative",importModuleSpecifierEnding:ut?"minimal":void 0})),(pt=Jr.specifierCache)!==null&&pt!==void 0||(Jr.specifierCache=new e.Map),Jr.specifierCache.set(Nr.path,tt)}return tt}function _t(rr,yn,pt,mt){var Ft=sr(rr,yn,pt,!(yn.flags&16384)),Bt=pt===111551;if(e.some(Ft[0].declarations,af)){var Ht=Ft.length>1?Oa(Ft,Ft.length-1,1):void 0,fa=mt||Gr(Ft,0,yn),Qn=Vt(Ft[0],yn);!(yn.flags&67108864)&&e.getEmitModuleResolutionKind(pe)===e.ModuleResolutionKind.NodeJs&&Qn.indexOf("/node_modules/")>=0&&(yn.encounteredError=!0,yn.tracker.reportLikelyUnsafeImportRequiredError&&yn.tracker.reportLikelyUnsafeImportRequiredError(Qn));var Nr=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Qn));if(yn.tracker.trackExternalModuleSymbolOfImportTypeNode&&yn.tracker.trackExternalModuleSymbolOfImportTypeNode(Ft[0]),yn.approximateLength+=Qn.length+10,!Ht||e.isEntityName(Ht)){if(Ht){var Jr=e.isIdentifier(Ht)?Ht:Ht.right;Jr.typeArguments=void 0}return e.factory.createImportTypeNode(Nr,Ht,fa,Bt)}else{var tt=ct(Ht),ut=tt.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(Nr,ut,fa,Bt),tt.indexType)}}var Ct=Oa(Ft,Ft.length-1,0);if(e.isIndexedAccessTypeNode(Ct))return Ct;if(Bt)return e.factory.createTypeQueryNode(Ct);var Jr=e.isIdentifier(Ct)?Ct:Ct.right,pa=Jr.typeArguments;return Jr.typeArguments=void 0,e.factory.createTypeReferenceNode(Ct,pa);function Oa(Di,xa,lo){var Wo=xa===Di.length-1?mt:Gr(Di,xa,yn),Mo=Di[xa],Qo=Di[xa-1],Zs;if(xa===0)yn.flags|=16777216,Zs=sf(Mo,yn),yn.approximateLength+=(Zs?Zs.length:0)+1,yn.flags^=16777216;else if(Qo&&al(Qo)){var il=al(Qo);e.forEachEntry(il,function(Xs,Rp){if(_c(Xs,Mo)&&!ml(Rp)&&Rp!=="export=")return Zs=e.unescapeLeadingUnderscores(Rp),!0})}if(Zs||(Zs=sf(Mo,yn)),yn.approximateLength+=Zs.length+1,!(yn.flags&16)&&Qo&&Hc(Qo)&&Hc(Qo).get(Mo.escapedName)&&_c(Hc(Qo).get(Mo.escapedName),Mo)){var Ws=Oa(Di,xa-1,lo);return e.isIndexedAccessTypeNode(Ws)?e.factory.createIndexedAccessTypeNode(Ws,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Zs))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(Ws,Wo),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Zs)))}var ld=e.setEmitFlags(e.factory.createIdentifier(Zs,Wo),16777216);if(ld.symbol=Mo,xa>lo){var Ws=Oa(Di,xa-1,lo);return e.isEntityName(Ws)?e.factory.createQualifiedName(Ws,ld):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return ld}}function Ta(rr,yn,pt){var mt=es(yn.enclosingDeclaration,rr,788968,void 0,rr,!1);return mt?!(mt.flags&262144&&mt===pt.symbol):!1}function sa(rr,yn){var pt,mt;if(yn.flags&4&&yn.typeParameterNames){var Ft=yn.typeParameterNames.get(cu(rr));if(Ft)return Ft}var Bt=mi(rr.symbol,yn,788968,!0);if(!(Bt.kind&79))return e.factory.createIdentifier("(Missing type parameter)");if(yn.flags&4){for(var Ht=Bt.escapedText,fa=((pt=yn.typeParameterNamesByTextNextNameCount)===null||pt===void 0?void 0:pt.get(Ht))||0,Qn=Ht;!((mt=yn.typeParameterNamesByText)===null||mt===void 0)&&mt.has(Qn)||Ta(Qn,yn,rr);)fa++,Qn=Ht+"_"+fa;Qn!==Ht&&(Bt=e.factory.createIdentifier(Qn,Bt.typeArguments)),(yn.typeParameterNamesByTextNextNameCount||(yn.typeParameterNamesByTextNextNameCount=new e.Map)).set(Ht,fa),(yn.typeParameterNames||(yn.typeParameterNames=new e.Map)).set(cu(rr),Bt),(yn.typeParameterNamesByText||(yn.typeParameterNamesByText=new e.Set)).add(Ht)}return Bt}function mi(rr,yn,pt,mt){var Ft=sr(rr,yn,pt);return mt&&Ft.length!==1&&!yn.encounteredError&&!(yn.flags&65536)&&(yn.encounteredError=!0),Bt(Ft,Ft.length-1);function Bt(Ht,fa){var Qn=Gr(Ht,fa,yn),Nr=Ht[fa];fa===0&&(yn.flags|=16777216);var Jr=sf(Nr,yn);fa===0&&(yn.flags^=16777216);var tt=e.setEmitFlags(e.factory.createIdentifier(Jr,Qn),16777216);return tt.symbol=Nr,fa>0?e.factory.createQualifiedName(Bt(Ht,fa-1),tt):tt}}function ai(rr,yn,pt){var mt=sr(rr,yn,pt);return Ft(mt,mt.length-1);function Ft(Bt,Ht){var fa=Gr(Bt,Ht,yn),Qn=Bt[Ht];Ht===0&&(yn.flags|=16777216);var Nr=sf(Qn,yn);Ht===0&&(yn.flags^=16777216);var Jr=Nr.charCodeAt(0);if(e.isSingleOrDoubleQuote(Jr)&&e.some(Qn.declarations,af))return e.factory.createStringLiteral(Vt(Qn,yn));var tt=Jr===35?Nr.length>1&&e.isIdentifierStart(Nr.charCodeAt(1),we):e.isIdentifierStart(Jr,we);if(Ht===0||tt){var ut=e.setEmitFlags(e.factory.createIdentifier(Nr,fa),16777216);return ut.symbol=Qn,Ht>0?e.factory.createPropertyAccessExpression(Ft(Bt,Ht-1),ut):ut}else{Jr===91&&(Nr=Nr.substring(1,Nr.length-1),Jr=Nr.charCodeAt(0));var Ct=void 0;return e.isSingleOrDoubleQuote(Jr)?Ct=e.factory.createStringLiteral(Nr.substring(1,Nr.length-1).replace(/\\./g,function(pa){return pa.substring(1)}),Jr===39):""+ +Nr===Nr&&(Ct=e.factory.createNumericLiteral(+Nr)),Ct||(Ct=e.setEmitFlags(e.factory.createIdentifier(Nr,fa),16777216),Ct.symbol=Qn),e.factory.createElementAccessExpression(Ft(Bt,Ht-1),Ct)}}}function Hi(rr){var yn=e.getNameOfDeclaration(rr);return!!yn&&e.isStringLiteral(yn)}function ii(rr){var yn=e.getNameOfDeclaration(rr);return!!(yn&&e.isStringLiteral(yn)&&(yn.singleQuote||!e.nodeIsSynthesized(yn)&&e.startsWith(e.getTextOfNode(yn,!1),"'")))}function go(rr,yn){var pt=!!e.length(rr.declarations)&&e.every(rr.declarations,ii),mt=xo(rr,yn,pt);if(mt)return mt;var Ft=e.unescapeLeadingUnderscores(rr.escapedName),Bt=!!e.length(rr.declarations)&&e.every(rr.declarations,Hi);return Yr(Ft,Bt,pt)}function xo(rr,yn,pt){var mt=Za(rr).nameType;if(mt){if(mt.flags&384){var Ft=""+mt.value;return!e.isIdentifierText(Ft,pe.target)&&!id(Ft)?e.factory.createStringLiteral(Ft,!!pt):id(Ft)&&e.startsWith(Ft,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+Ft)):Yr(Ft)}if(mt.flags&8192)return e.factory.createComputedPropertyName(ai(mt.symbol,yn,111551))}}function Yr(rr,yn,pt){return e.isIdentifierText(rr,pe.target)?e.factory.createIdentifier(rr):!yn&&id(rr)&&+rr>=0?e.factory.createNumericLiteral(+rr):e.factory.createStringLiteral(rr,!!pt)}function Pr(rr){var yn=Mt({},rr);return yn.typeParameterNames&&(yn.typeParameterNames=new e.Map(yn.typeParameterNames)),yn.typeParameterNamesByText&&(yn.typeParameterNamesByText=new e.Set(yn.typeParameterNamesByText)),yn.typeParameterSymbolList&&(yn.typeParameterSymbolList=new e.Set(yn.typeParameterSymbolList)),yn.tracker=r(yn,yn.tracker),yn}function Aa(rr,yn){return rr.declarations&&e.find(rr.declarations,function(pt){return!!e.getEffectiveTypeAnnotationNode(pt)&&(!yn||!!e.findAncestor(pt,function(mt){return mt===yn}))})}function Ga(rr,yn){return!(e.getObjectFlags(yn)&4)||!e.isTypeReferenceNode(rr)||e.length(rr.typeArguments)>=Lu(yn.target.typeParameters)}function na(rr,yn,pt,mt,Ft,Bt){if(yn!==J&&mt){var Ht=Aa(pt,mt);if(Ht&&!e.isFunctionLikeDeclaration(Ht)&&!e.isGetAccessorDeclaration(Ht)){var fa=e.getEffectiveTypeAnnotationNode(Ht);if(Ra(fa)===yn&&Ga(fa,yn)){var Qn=Ji(rr,fa,Ft,Bt);if(Qn)return Qn}}}var Nr=rr.flags;yn.flags&8192&&yn.symbol===pt&&(!rr.enclosingDeclaration||e.some(pt.declarations,function(tt){return e.getSourceFileOfNode(tt)===e.getSourceFileOfNode(rr.enclosingDeclaration)}))&&(rr.flags|=1048576);var Jr=a(yn,rr);return rr.flags=Nr,Jr}function si(rr,yn,pt,mt,Ft){if(yn!==J&&rr.enclosingDeclaration){var Bt=pt.declaration&&e.getEffectiveReturnTypeNode(pt.declaration);if(e.findAncestor(Bt,function(Nr){return Nr===rr.enclosingDeclaration})&&Bt){var Ht=Ra(Bt),fa=Ht.flags&262144&&Ht.isThisType?fi(Ht,pt.mapper):Ht;if(fa===yn&&Ga(Bt,yn)){var Qn=Ji(rr,Bt,mt,Ft);if(Qn)return Qn}}}return a(yn,rr)}function jt(rr,yn,pt){var mt,Ft,Bt=!1,Ht=e.getFirstIdentifier(rr);if(e.isInJSFile(rr)&&(e.isExportsIdentifier(Ht)||e.isModuleExportsAccessExpression(Ht.parent)||e.isQualifiedName(Ht.parent)&&e.isModuleIdentifier(Ht.parent.left)&&e.isExportsIdentifier(Ht.parent.right)))return Bt=!0,{introducesError:Bt,node:rr};var fa=ki(Ht,67108863,!0,!0);if(fa&&(tf(fa,yn.enclosingDeclaration,67108863,!1).accessibility!==0?Bt=!0:((Ft=(mt=yn.tracker)===null||mt===void 0?void 0:mt.trackSymbol)===null||Ft===void 0||Ft.call(mt,fa,yn.enclosingDeclaration,67108863),pt==null||pt(fa)),e.isIdentifier(rr))){var Qn=fa.flags&262144?sa(rs(fa),yn):e.factory.cloneNode(rr);return Qn.symbol=fa,{introducesError:Bt,node:e.setEmitFlags(e.setOriginalNode(Qn,rr),16777216)}}return{introducesError:Bt,node:rr}}function Ji(rr,yn,pt,mt){z&&z.throwIfCancellationRequested&&z.throwIfCancellationRequested();var Ft=!1,Bt=e.getSourceFileOfNode(yn),Ht=e.visitNode(yn,fa);if(Ft)return;return Ht===yn?e.setTextRange(e.factory.cloneNode(yn),yn):Ht;function fa(Qn){if(e.isJSDocAllType(Qn)||Qn.kind===314)return e.factory.createKeywordTypeNode(129);if(e.isJSDocUnknownType(Qn))return e.factory.createKeywordTypeNode(153);if(e.isJSDocNullableType(Qn))return e.factory.createUnionTypeNode([e.visitNode(Qn.type,fa),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(Qn))return e.factory.createUnionTypeNode([e.visitNode(Qn.type,fa),e.factory.createKeywordTypeNode(151)]);if(e.isJSDocNonNullableType(Qn))return e.visitNode(Qn.type,fa);if(e.isJSDocVariadicType(Qn))return e.factory.createArrayTypeNode(e.visitNode(Qn.type,fa));if(e.isJSDocTypeLiteral(Qn))return e.factory.createTypeLiteralNode(e.map(Qn.jsDocPropertyTags,function(xa){var lo=e.isIdentifier(xa.name)?xa.name:xa.name.right,Wo=Os(Ra(Qn),lo.escapedText),Mo=Wo&&xa.typeExpression&&Ra(xa.typeExpression.type)!==Wo?a(Wo,rr):void 0;return e.factory.createPropertySignature(void 0,lo,xa.isBracketed||xa.typeExpression&&e.isJSDocOptionalType(xa.typeExpression.type)?e.factory.createToken(57):void 0,Mo||xa.typeExpression&&e.visitNode(xa.typeExpression.type,fa)||e.factory.createKeywordTypeNode(129))}));if(e.isTypeReferenceNode(Qn)&&e.isIdentifier(Qn.typeName)&&Qn.typeName.escapedText==="")return e.setOriginalNode(e.factory.createKeywordTypeNode(129),Qn);if((e.isExpressionWithTypeArguments(Qn)||e.isTypeReferenceNode(Qn))&&e.isJSDocIndexSignature(Qn))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,e.visitNode(Qn.typeArguments[0],fa))],e.visitNode(Qn.typeArguments[1],fa))]);if(e.isJSDocFunctionType(Qn))if(e.isJSDocConstructSignature(Qn)){var Nr;return e.factory.createConstructorTypeNode(Qn.modifiers,e.visitNodes(Qn.typeParameters,fa),e.mapDefined(Qn.parameters,function(xa,lo){return xa.name&&e.isIdentifier(xa.name)&&xa.name.escapedText==="new"?(Nr=xa.type,void 0):e.factory.createParameterDeclaration(void 0,void 0,pa(xa),Oa(xa,lo),xa.questionToken,e.visitNode(xa.type,fa),void 0)}),e.visitNode(Nr||Qn.type,fa)||e.factory.createKeywordTypeNode(129))}else return e.factory.createFunctionTypeNode(e.visitNodes(Qn.typeParameters,fa),e.map(Qn.parameters,function(xa,lo){return e.factory.createParameterDeclaration(void 0,void 0,pa(xa),Oa(xa,lo),xa.questionToken,e.visitNode(xa.type,fa),void 0)}),e.visitNode(Qn.type,fa)||e.factory.createKeywordTypeNode(129));if(e.isTypeReferenceNode(Qn)&&e.isInJSDoc(Qn)&&(!Ga(Qn,Ra(Qn))||oT(Qn)||Xn===m_(ig(Qn),788968,!0)))return e.setOriginalNode(a(Ra(Qn),rr),Qn);if(e.isLiteralImportTypeNode(Qn)){var Jr=da(Qn).resolvedSymbol;return e.isInJSDoc(Qn)&&Jr&&(!Qn.isTypeOf&&!(Jr.flags&788968)||!(e.length(Qn.typeArguments)>=Lu(Nt(Jr))))?e.setOriginalNode(a(Ra(Qn),rr),Qn):e.factory.updateImportTypeNode(Qn,e.factory.updateLiteralTypeNode(Qn.argument,Di(Qn,Qn.argument.literal)),Qn.qualifier,e.visitNodes(Qn.typeArguments,fa,e.isTypeNode),Qn.isTypeOf)}if(e.isEntityName(Qn)||e.isEntityNameExpression(Qn)){var tt=jt(Qn,rr,pt),ut=tt.introducesError,Ct=tt.node;if(Ft=Ft||ut,Ct!==Qn)return Ct}return Bt&&e.isTupleTypeNode(Qn)&&e.getLineAndCharacterOfPosition(Bt,Qn.pos).line===e.getLineAndCharacterOfPosition(Bt,Qn.end).line&&e.setEmitFlags(Qn,1),e.visitEachChild(Qn,fa,e.nullTransformationContext);function pa(xa){return xa.dotDotDotToken||(xa.type&&e.isJSDocVariadicType(xa.type)?e.factory.createToken(25):void 0)}function Oa(xa,lo){return xa.name&&e.isIdentifier(xa.name)&&xa.name.escapedText==="this"?"this":pa(xa)?"args":"arg"+lo}function Di(xa,lo){if(mt){if(rr.tracker&&rr.tracker.moduleResolverHost){var Wo=F1(xa);if(Wo){var Mo=e.createGetCanonicalFileName(!!x.useCaseSensitiveFileNames),Qo={getCanonicalFileName:Mo,getCurrentDirectory:function(){return rr.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return rr.tracker.moduleResolverHost.getCommonSourceDirectory()}},Zs=e.getResolvedExternalModuleName(Qo,Wo);return e.factory.createStringLiteral(Zs)}}}else if(rr.tracker&&rr.tracker.trackExternalModuleSymbolOfImportTypeNode){var il=gi(lo,lo,void 0);il&&rr.tracker.trackExternalModuleSymbolOfImportTypeNode(il)}return lo}}}function Wi(rr,yn,pt){var mt=Ri(e.factory.createPropertyDeclaration,167,!0),Ft=Ri(function(fr,Rt,Ea,aa,la){return e.factory.createPropertySignature(Rt,Ea,aa,la)},166,!1),Bt=yn.enclosingDeclaration,Ht=[],fa=new e.Set,Qn=[],Nr=yn;yn=Mt(Mt({},Nr),{usedSymbolNames:new e.Set(Nr.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:Mt(Mt({},Nr.tracker),{trackSymbol:function(fr,Rt,Ea){var aa=tf(fr,Rt,Ea,!1);if(aa.accessibility===0){var la=Ir(fr,yn,Ea);fr.flags&4||Ws(la[0])}else if(Nr.tracker&&Nr.tracker.trackSymbol)return Nr.tracker.trackSymbol(fr,Rt,Ea);return!1}})}),yn.tracker=r(yn,yn.tracker),e.forEachEntry(rr,function(fr,Rt){var Ea=e.unescapeLeadingUnderscores(Rt);Ss(fr,Ea)});var Jr=!pt,tt=rr.get("export=");return tt&&rr.size>1&&tt.flags&2097152&&(rr=e.createSymbolTable(),rr.set("export=",tt)),Qo(rr),xa(Ht);function ut(fr){return!!fr&&fr.kind===79}function Ct(fr){return e.isVariableStatement(fr)?e.filter(e.map(fr.declarationList.declarations,e.getNameOfDeclaration),ut):e.filter([e.getNameOfDeclaration(fr)],ut)}function pa(fr){var Rt=e.find(fr,e.isExportAssignment),Ea=e.findIndex(fr,e.isModuleDeclaration),aa=Ea!==-1?fr[Ea]:void 0;if(aa&&Rt&&Rt.isExportEquals&&e.isIdentifier(Rt.expression)&&e.isIdentifier(aa.name)&&e.idText(aa.name)===e.idText(Rt.expression)&&aa.body&&e.isModuleBlock(aa.body)){var la=e.filter(fr,function(Xa){return!!(e.getEffectiveModifierFlags(Xa)&1)}),oi=aa.name,Ka=aa.body;if(e.length(la)&&(aa=e.factory.updateModuleDeclaration(aa,aa.decorators,aa.modifiers,aa.name,Ka=e.factory.updateModuleBlock(Ka,e.factory.createNodeArray(Vr(Vr([],aa.body.statements,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(la,function(Xa){return Ct(Xa)}),function(Xa){return e.factory.createExportSpecifier(void 0,Xa)})),void 0)],!1)))),fr=Vr(Vr(Vr([],fr.slice(0,Ea),!0),[aa],!1),fr.slice(Ea+1),!0)),!e.find(fr,function(Xa){return Xa!==aa&&e.nodeHasName(Xa,oi)})){Ht=[];var xi=!e.some(Ka.statements,function(Xa){return e.hasSyntacticModifier(Xa,1)||e.isExportAssignment(Xa)||e.isExportDeclaration(Xa)});e.forEach(Ka.statements,function(Xa){Xs(Xa,xi?1:0)}),fr=Vr(Vr([],e.filter(fr,function(Xa){return Xa!==aa&&Xa!==Rt}),!0),Ht,!0)}}return fr}function Oa(fr){var Rt=e.filter(fr,function(Ua){return e.isExportDeclaration(Ua)&&!Ua.moduleSpecifier&&!!Ua.exportClause&&e.isNamedExports(Ua.exportClause)});if(e.length(Rt)>1){var Ea=e.filter(fr,function(Ua){return!e.isExportDeclaration(Ua)||!!Ua.moduleSpecifier||!Ua.exportClause});fr=Vr(Vr([],Ea,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(Rt,function(Ua){return e.cast(Ua.exportClause,e.isNamedExports).elements})),void 0)],!1)}var aa=e.filter(fr,function(Ua){return e.isExportDeclaration(Ua)&&!!Ua.moduleSpecifier&&!!Ua.exportClause&&e.isNamedExports(Ua.exportClause)});if(e.length(aa)>1){var la=e.group(aa,function(Ua){return e.isStringLiteral(Ua.moduleSpecifier)?">"+Ua.moduleSpecifier.text:">"});if(la.length!==aa.length)for(var oi=function(Ua){Ua.length>1&&(fr=Vr(Vr([],e.filter(fr,function(co){return Ua.indexOf(co)===-1}),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(Ua,function(co){return e.cast(co.exportClause,e.isNamedExports).elements})),Ua[0].moduleSpecifier)],!1))},Ka=0,xi=la;Ka<xi.length;Ka++){var Xa=xi[Ka];oi(Xa)}}return fr}function Di(fr){var Rt=e.findIndex(fr,function(la){return e.isExportDeclaration(la)&&!la.moduleSpecifier&&!!la.exportClause&&e.isNamedExports(la.exportClause)});if(Rt>=0){var Ea=fr[Rt],aa=e.mapDefined(Ea.exportClause.elements,function(la){if(!la.propertyName){var oi=e.indicesOf(fr),Ka=e.filter(oi,function(co){return e.nodeHasName(fr[co],la.name)});if(e.length(Ka)&&e.every(Ka,function(co){return lo(fr[co])})){for(var xi=0,Xa=Ka;xi<Xa.length;xi++){var Ua=Xa[xi];fr[Ua]=Wo(fr[Ua])}return}}return la});e.length(aa)?fr[Rt]=e.factory.updateExportDeclaration(Ea,Ea.decorators,Ea.modifiers,Ea.isTypeOnly,e.factory.updateNamedExports(Ea.exportClause,aa),Ea.moduleSpecifier):e.orderedRemoveItemAt(fr,Rt)}return fr}function xa(fr){return fr=pa(fr),fr=Oa(fr),fr=Di(fr),Bt&&(e.isSourceFile(Bt)&&e.isExternalOrCommonJsModule(Bt)||e.isModuleDeclaration(Bt))&&(!e.some(fr,e.isExternalModuleIndicator)||!e.hasScopeMarker(fr)&&e.some(fr,e.needsScopeMarker))&&fr.push(e.createEmptyExports(e.factory)),fr}function lo(fr){return e.isEnumDeclaration(fr)||e.isVariableStatement(fr)||e.isFunctionDeclaration(fr)||e.isClassDeclaration(fr)||e.isModuleDeclaration(fr)&&!e.isExternalModuleAugmentation(fr)&&!e.isGlobalScopeAugmentation(fr)||e.isInterfaceDeclaration(fr)||Jv(fr)}function Wo(fr){var Rt=(e.getEffectiveModifierFlags(fr)|1)&-3;return e.factory.updateModifiers(fr,Rt)}function Mo(fr){var Rt=e.getEffectiveModifierFlags(fr)&-2;return e.factory.updateModifiers(fr,Rt)}function Qo(fr,Rt,Ea){Rt||Qn.push(new e.Map),fr.forEach(function(aa){Zs(aa,!1,!!Ea)}),Rt||(Qn[Qn.length-1].forEach(function(aa){Zs(aa,!0,!!Ea)}),Qn.pop())}function Zs(fr,Rt,Ea){var aa=Eo(fr);if(!fa.has(C(aa))){fa.add(C(aa));var la=!Rt;if(la||e.length(fr.declarations)&&e.some(fr.declarations,function(xi){return!!e.findAncestor(xi,function(Xa){return Xa===Bt})})){var oi=yn;yn=Pr(yn);var Ka=il(fr,Rt,Ea);return yn.reportedDiagnostic&&(Nr.reportedDiagnostic=yn.reportedDiagnostic),yn=oi,Ka}}}function il(fr,Rt,Ea){var aa,la,oi=e.unescapeLeadingUnderscores(fr.escapedName),Ka=fr.escapedName==="default";if(Rt&&!(yn.flags&131072)&&e.isStringANonContextualKeyword(oi)&&!Ka){yn.encounteredError=!0;return}var xi=Ka&&!!(fr.flags&-113||fr.flags&16&&e.length(bo(kt(fr))))&&!(fr.flags&2097152),Xa=!xi&&!Rt&&e.isStringANonContextualKeyword(oi)&&!Ka;(xi||Xa)&&(Rt=!0);var Ua=(Rt?0:1)|(Ka&&!xi?512:0),co=fr.flags&1536&&fr.flags&7&&fr.escapedName!=="export=",Fo=co&&Ja(kt(fr),fr);if((fr.flags&8208||Fo)&&So(kt(fr),fr,Ss(fr,oi),Ua),fr.flags&524288&&Rp(fr,oi,Ua),fr.flags&7&&fr.escapedName!=="export="&&!(fr.flags&4194304)&&!(fr.flags&32)&&!Fo)if(Ea){var ls=It(fr);ls&&(Xa=!1,xi=!1)}else{var Xo=kt(fr),jo=Ss(fr,oi);if(!(fr.flags&16)&&Ja(Xo,fr))So(Xo,fr,jo,Ua);else{var $s=fr.flags&2?Sv(fr)?2:1:void 0,Ul=xi||!(fr.flags&4)?jo:os(jo,fr),Vl=fr.declarations&&e.find(fr.declarations,function(Zm){return e.isVariableDeclaration(Zm)});Vl&&e.isVariableDeclarationList(Vl.parent)&&Vl.parent.declarations.length===1&&(Vl=Vl.parent.parent);var bc=(aa=fr.declarations)===null||aa===void 0?void 0:aa.find(e.isPropertyAccessExpression);if(bc&&e.isBinaryExpression(bc.parent)&&e.isIdentifier(bc.parent.right)&&(!((la=Xo.symbol)===null||la===void 0)&&la.valueDeclaration)&&e.isSourceFile(Xo.symbol.valueDeclaration)){var cm=jo===bc.parent.right.escapedText?void 0:bc.parent.right;Xs(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(cm,jo)])),0),yn.tracker.trackSymbol(Xo.symbol,yn.enclosingDeclaration,111551)}else{var Op=e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Ul,void 0,na(yn,Xo,fr,Bt,Ws,pt))],$s)),Vl);Xs(Op,Ul!==jo?Ua&-2:Ua),Ul!==jo&&!Rt&&(Xs(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(Ul,jo)])),0),Xa=!1,xi=!1)}}}if(fr.flags&384&&Ts(fr,oi,Ua),fr.flags&32&&(fr.flags&4&&fr.valueDeclaration&&e.isBinaryExpression(fr.valueDeclaration.parent)&&e.isClassExpression(fr.valueDeclaration.parent.right)?St(fr,Ss(fr,oi),Ua):Kt(fr,Ss(fr,oi),Ua)),(fr.flags&1536&&(!co||ja(fr))||Fo)&&Ki(fr,oi,Ua),fr.flags&64&&!(fr.flags&32)&&Mg(fr,oi,Ua),fr.flags&2097152&&St(fr,Ss(fr,oi),Ua),fr.flags&4&&fr.escapedName==="export="&&It(fr),fr.flags&8388608&&fr.declarations)for(var Pp=0,Md=fr.declarations;Pp<Md.length;Pp++){var um=Md[Pp],cd=wo(um,um.moduleSpecifier);cd&&Xs(e.factory.createExportDeclaration(void 0,void 0,!1,void 0,e.factory.createStringLiteral(Vt(cd,yn))),0)}xi?Xs(e.factory.createExportAssignment(void 0,void 0,!1,e.factory.createIdentifier(Ss(fr,oi))),0):Xa&&Xs(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(Ss(fr,oi),oi)])),0)}function Ws(fr){if(!e.some(fr.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(Qn[Qn.length-1]),os(e.unescapeLeadingUnderscores(fr.escapedName),fr);var Rt=!!(fr.flags&2097152)&&!e.some(fr.declarations,function(Ea){return!!e.findAncestor(Ea,e.isExportDeclaration)||e.isNamespaceExport(Ea)||e.isImportEqualsDeclaration(Ea)&&!e.isExternalModuleReference(Ea.moduleReference)});Qn[Rt?0:Qn.length-1].set(C(fr),fr)}}function ld(fr){return e.isSourceFile(fr)&&(e.isExternalOrCommonJsModule(fr)||e.isJsonSourceFile(fr))||e.isAmbientModule(fr)&&!e.isGlobalScopeAugmentation(fr)}function Xs(fr,Rt){if(e.canHaveModifiers(fr)){var Ea=0,aa=yn.enclosingDeclaration&&(e.isJSDocTypeAlias(yn.enclosingDeclaration)?e.getSourceFileOfNode(yn.enclosingDeclaration):yn.enclosingDeclaration);Rt&1&&aa&&(ld(aa)||e.isModuleDeclaration(aa))&&lo(fr)&&(Ea|=1),Jr&&!(Ea&1)&&(!aa||!(aa.flags&8388608))&&(e.isEnumDeclaration(fr)||e.isVariableStatement(fr)||e.isFunctionDeclaration(fr)||e.isClassDeclaration(fr)||e.isModuleDeclaration(fr))&&(Ea|=2),Rt&512&&(e.isClassDeclaration(fr)||e.isInterfaceDeclaration(fr)||e.isFunctionDeclaration(fr))&&(Ea|=512),Ea&&(fr=e.factory.updateModifiers(fr,Ea|e.getEffectiveModifierFlags(fr)))}Ht.push(fr)}function Rp(fr,Rt,Ea){var aa,la=xm(fr),oi=Za(fr).typeParameters,Ka=e.map(oi,function(ls){return tn(ls,yn)}),xi=(aa=fr.declarations)===null||aa===void 0?void 0:aa.find(e.isJSDocTypeAlias),Xa=e.getTextOfJSDocComment(xi?xi.comment||xi.parent.comment:void 0),Ua=yn.flags;yn.flags|=8388608;var co=yn.enclosingDeclaration;yn.enclosingDeclaration=xi;var Fo=xi&&xi.typeExpression&&e.isJSDocTypeExpression(xi.typeExpression)&&Ji(yn,xi.typeExpression.type,Ws,pt)||a(la,yn);Xs(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,void 0,Ss(fr,Rt),Ka,Fo),Xa?[{kind:3,text:`*
* `+Xa.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Ea),yn.flags=Ua,yn.enclosingDeclaration=co}function Mg(fr,Rt,Ea){var aa=lc(fr),la=Nt(fr),oi=e.map(la,function(Xo){return tn(Xo,yn)}),Ka=vc(aa),xi=e.length(Ka)?Ro(Ka):void 0,Xa=e.flatMap(bo(aa),function(Xo){return Oi(Xo,xi)}),Ua=ro(0,aa,xi,172),co=ro(1,aa,xi,173),Fo=$i(aa,xi),ls=e.length(Ka)?[e.factory.createHeritageClause(94,e.mapDefined(Ka,function(Xo){return _s(Xo,111551)}))]:void 0;Xs(e.factory.createInterfaceDeclaration(void 0,void 0,Ss(fr,Rt),oi,ls,Vr(Vr(Vr(Vr([],Fo,!0),co,!0),Ua,!0),Xa,!0)),Ea)}function U_(fr){return fr.exports?e.filter(e.arrayFrom(fr.exports.values()),jr):[]}function ja(fr){return e.every(U_(fr),function(Rt){return!(Ba(Rt).flags&111551)})}function Ki(fr,Rt,Ea){var aa=U_(fr),la=e.arrayToMultiMap(aa,function(co){return co.parent&&co.parent===fr?"real":"merged"}),oi=la.get("real")||e.emptyArray,Ka=la.get("merged")||e.emptyArray;if(e.length(oi)){var xi=Ss(fr,Rt);br(oi,xi,Ea,!!(fr.flags&67108880))}if(e.length(Ka)){var Xa=e.getSourceFileOfNode(yn.enclosingDeclaration),xi=Ss(fr,Rt),Ua=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(Ka,function(Fo){return Fo.escapedName!=="export="}),function(Fo){var ls,Xo,jo=e.unescapeLeadingUnderscores(Fo.escapedName),$s=Ss(Fo,jo),Ul=Fo.declarations&&Jl(Fo);if(Xa&&(Ul?Xa!==e.getSourceFileOfNode(Ul):!e.some(Fo.declarations,function(cm){return e.getSourceFileOfNode(cm)===Xa}))){(Xo=(ls=yn.tracker)===null||ls===void 0?void 0:ls.reportNonlocalAugmentation)===null||Xo===void 0||Xo.call(ls,Xa,fr,Fo);return}var Vl=Ul&&ma(Ul,!0);Ws(Vl||Fo);var bc=Vl?Ss(Vl,e.unescapeLeadingUnderscores(Vl.escapedName)):$s;return e.factory.createExportSpecifier(jo===bc?void 0:bc,jo)})))]);Xs(e.factory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(xi),Ua,16),0)}}function Ts(fr,Rt,Ea){Xs(e.factory.createEnumDeclaration(void 0,e.factory.createModifiersFromModifierFlags(l1(fr)?2048:0),Ss(fr,Rt),e.map(e.filter(bo(kt(fr)),function(aa){return!!(aa.flags&8)}),function(aa){var la=aa.declarations&&aa.declarations[0]&&e.isEnumMember(aa.declarations[0])?P1(aa.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(aa.escapedName),la===void 0?void 0:typeof la=="string"?e.factory.createStringLiteral(la):e.factory.createNumericLiteral(la))})),Ea)}function So(fr,Rt,Ea,aa){for(var la=zr(fr,0),oi=0,Ka=la;oi<Ka.length;oi++){var xi=Ka[oi],Xa=Je(xi,254,yn,{name:e.factory.createIdentifier(Ea),privateSymbolVisitor:Ws,bundledImports:pt});Xs(e.setTextRange(Xa,tr(xi)),aa)}if(!(Rt.flags&1536&&Rt.exports&&Rt.exports.size)){var Ua=e.filter(bo(fr),jr);br(Ua,Ea,aa,!0)}}function tr(fr){if(fr.declaration&&fr.declaration.parent){if(e.isBinaryExpression(fr.declaration.parent)&&e.getAssignmentDeclarationKind(fr.declaration.parent)===5)return fr.declaration.parent;if(e.isVariableDeclaration(fr.declaration.parent)&&fr.declaration.parent.parent)return fr.declaration.parent.parent}return fr.declaration}function br(fr,Rt,Ea,aa){if(e.length(fr)){var la=e.arrayToMultiMap(fr,function(jo){return!e.length(jo.declarations)||e.some(jo.declarations,function($s){return e.getSourceFileOfNode($s)===e.getSourceFileOfNode(yn.enclosingDeclaration)})?"local":"remote"}),oi=la.get("local")||e.emptyArray,Ka=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(Rt),e.factory.createModuleBlock([]),16);e.setParent(Ka,Bt),Ka.locals=e.createSymbolTable(fr),Ka.symbol=fr[0].parent;var xi=Ht;Ht=[];var Xa=Jr;Jr=!1;var Ua=Mt(Mt({},yn),{enclosingDeclaration:Ka}),co=yn;yn=Ua,Qo(e.createSymbolTable(oi),aa,!0),yn=co,Jr=Xa;var Fo=Ht;Ht=xi;var ls=e.map(Fo,function(jo){return e.isExportAssignment(jo)&&!jo.isExportEquals&&e.isIdentifier(jo.expression)?e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(jo.expression,e.factory.createIdentifier("default"))])):jo}),Xo=e.every(ls,function(jo){return e.hasSyntacticModifier(jo,1)})?e.map(ls,Mo):ls;Ka=e.factory.updateModuleDeclaration(Ka,Ka.decorators,Ka.modifiers,Ka.name,e.factory.createModuleBlock(Xo)),Xs(Ka,Ea)}}function jr(fr){return!!(fr.flags&2887656)||!(fr.flags&4194304||fr.escapedName==="prototype"||fr.valueDeclaration&&e.isStatic(fr.valueDeclaration)&&e.isClassLike(fr.valueDeclaration.parent))}function it(fr){var Rt=e.mapDefined(fr,function(Ea){var aa,la=yn.enclosingDeclaration;yn.enclosingDeclaration=Ea;var oi=Ea.expression;if(e.isEntityNameExpression(oi)){if(e.isIdentifier(oi)&&e.idText(oi)==="")return xi(void 0);var Ka=void 0;if(aa=jt(oi,yn,Ws),Ka=aa.introducesError,oi=aa.node,Ka)return xi(void 0)}return xi(e.factory.createExpressionWithTypeArguments(oi,e.map(Ea.typeArguments,function(Xa){return Ji(yn,Xa,Ws,pt)||a(Ra(Xa),yn)})));function xi(Xa){return yn.enclosingDeclaration=la,Xa}});if(Rt.length===fr.length)return Rt}function Kt(fr,Rt,Ea){var aa,la,oi=(aa=fr.declarations)===null||aa===void 0?void 0:aa.find(e.isClassLike),Ka=yn.enclosingDeclaration;yn.enclosingDeclaration=oi||Ka;var xi=Nt(fr),Xa=e.map(xi,function(Tc){return tn(Tc,yn)}),Ua=lc(fr),co=vc(Ua),Fo=oi&&e.getEffectiveImplementsTypeNodes(oi),ls=Fo&&it(Fo)||e.mapDefined(j_(Ua),js),Xo=kt(fr),jo=!!(!((la=Xo.symbol)===null||la===void 0)&&la.valueDeclaration)&&e.isClassLike(Xo.symbol.valueDeclaration),$s=jo?cf(Xo):cr,Ul=Vr(Vr([],e.length(co)?[e.factory.createHeritageClause(94,e.map(co,function(Tc){return Ms(Tc,$s,Rt)}))]:[],!0),e.length(ls)?[e.factory.createHeritageClause(117,ls)]:[],!0),Vl=QR(Ua,co,bo(Ua)),bc=e.filter(Vl,function(Tc){var fm=Tc.valueDeclaration;return!!fm&&!(e.isNamedDeclaration(fm)&&e.isPrivateIdentifier(fm.name))}),cm=e.some(Vl,function(Tc){var fm=Tc.valueDeclaration;return!!fm&&e.isNamedDeclaration(fm)&&e.isPrivateIdentifier(fm.name)}),Op=cm?[e.factory.createPropertyDeclaration(void 0,void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,Pp=e.flatMap(bc,function(Tc){return mt(Tc,!1,co[0])}),Md=e.flatMap(e.filter(bo(Xo),function(Tc){return!(Tc.flags&4194304)&&Tc.escapedName!=="prototype"&&!jr(Tc)}),function(Tc){return mt(Tc,!0,$s)}),um=!jo&&!!fr.valueDeclaration&&e.isInJSFile(fr.valueDeclaration)&&!e.some(zr(Xo,1)),cd=um?[e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(8),[],void 0)]:ro(1,Xo,$s,169),Zm=$i(Ua,co[0]);yn.enclosingDeclaration=Ka,Xs(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,Rt,Xa,Ul,Vr(Vr(Vr(Vr(Vr([],Zm,!0),Md,!0),cd,!0),Pp,!0),Op,!0)),fr.declarations&&e.filter(fr.declarations,function(Tc){return e.isClassDeclaration(Tc)||e.isClassExpression(Tc)})[0]),Ea)}function St(fr,Rt,Ea){var aa,la,oi,Ka,xi,Xa=Jl(fr);if(!Xa)return e.Debug.fail();var Ua=Eo(ma(Xa,!0));if(Ua){var co=e.unescapeLeadingUnderscores(Ua.escapedName);co==="export="&&(pe.esModuleInterop||pe.allowSyntheticDefaultImports)&&(co="default");var Fo=Ss(Ua,co);switch(Ws(Ua),Xa.kind){case 201:if(((la=(aa=Xa.parent)===null||aa===void 0?void 0:aa.parent)===null||la===void 0?void 0:la.kind)===252){var ls=Vt(Ua.parent||Ua,yn),Xo=Xa.propertyName;Xs(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(Xo&&e.isIdentifier(Xo)?e.factory.createIdentifier(e.idText(Xo)):void 0,e.factory.createIdentifier(Rt))])),e.factory.createStringLiteral(ls)),0);break}e.Debug.failBadSyntaxKind(((oi=Xa.parent)===null||oi===void 0?void 0:oi.parent)||Xa,"Unhandled binding element grandparent kind in declaration serialization");break;case 292:((xi=(Ka=Xa.parent)===null||Ka===void 0?void 0:Ka.parent)===null||xi===void 0?void 0:xi.kind)===219&&bt(e.unescapeLeadingUnderscores(fr.escapedName),Fo);break;case 252:if(e.isPropertyAccessExpression(Xa.initializer)){var jo=Xa.initializer,$s=e.factory.createUniqueName(Rt),Ul=Vt(Ua.parent||Ua,yn);Xs(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,$s,e.factory.createExternalModuleReference(e.factory.createStringLiteral(Ul))),0),Xs(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(Rt),e.factory.createQualifiedName($s,jo.name)),Ea);break}case 263:if(Ua.escapedName==="export="&&e.some(Ua.declarations,e.isJsonSourceFile)){It(fr);break}var Vl=!(Ua.flags&512)&&!e.isVariableDeclaration(Xa);Xs(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(Rt),Vl?mi(Ua,yn,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(Vt(Ua,yn)))),Vl?Ea:0);break;case 262:Xs(e.factory.createNamespaceExportDeclaration(e.idText(Xa.name)),0);break;case 265:Xs(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(Rt),void 0),e.factory.createStringLiteral(Vt(Ua.parent||Ua,yn))),0);break;case 266:Xs(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(Rt))),e.factory.createStringLiteral(Vt(Ua,yn))),0);break;case 272:Xs(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(Rt)),e.factory.createStringLiteral(Vt(Ua,yn))),0);break;case 268:Xs(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(Rt!==co?e.factory.createIdentifier(co):void 0,e.factory.createIdentifier(Rt))])),e.factory.createStringLiteral(Vt(Ua.parent||Ua,yn))),0);break;case 273:var bc=Xa.parent.parent.moduleSpecifier;bt(e.unescapeLeadingUnderscores(fr.escapedName),bc?co:Fo,bc&&e.isStringLiteralLike(bc)?e.factory.createStringLiteral(bc.text):void 0);break;case 269:It(fr);break;case 219:case 204:case 205:fr.escapedName==="default"||fr.escapedName==="export="?It(fr):bt(Rt,Fo);break;default:return e.Debug.failBadSyntaxKind(Xa,"Unhandled alias declaration kind in symbol serializer!")}}}function bt(fr,Rt,Ea){Xs(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(fr!==Rt?Rt:void 0,fr)]),Ea),0)}function It(fr){if(fr.flags&4194304)return!1;var Rt=e.unescapeLeadingUnderscores(fr.escapedName),Ea=Rt==="export=",aa=Rt==="default",la=Ea||aa,oi=fr.declarations&&Jl(fr),Ka=oi&&ma(oi,!0);if(Ka&&e.length(Ka.declarations)&&e.some(Ka.declarations,function(jo){return e.getSourceFileOfNode(jo)===e.getSourceFileOfNode(Bt)})){var xi=oi&&(e.isExportAssignment(oi)||e.isBinaryExpression(oi)?e.getExportAssignmentExpression(oi):e.getPropertyAssignmentAliasLikeExpression(oi)),Xa=xi&&e.isEntityNameExpression(xi)?uO(xi):void 0,Ua=Xa&&ki(Xa,67108863,!0,!0,Bt);(Ua||Ka)&&Ws(Ua||Ka);var co=yn.tracker.trackSymbol;if(yn.tracker.trackSymbol=function(){return!1},la)Ht.push(e.factory.createExportAssignment(void 0,void 0,Ea,ai(Ka,yn,67108863)));else if(Xa===xi&&Xa)bt(Rt,e.idText(Xa));else if(xi&&e.isClassExpression(xi))bt(Rt,Ss(Ka,e.symbolName(Ka)));else{var Fo=os(Rt,fr);Xs(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(Fo),mi(Ka,yn,67108863,!1)),0),bt(Rt,Fo)}return yn.tracker.trackSymbol=co,!0}else{var Fo=os(Rt,fr),ls=fc(kt(Eo(fr)));if(Ja(ls,fr))So(ls,fr,Fo,la?0:1);else{var Xo=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Fo,void 0,na(yn,ls,fr,Bt,Ws,pt))],2));Xs(Xo,Ka&&Ka.flags&4&&Ka.escapedName==="export="?2:Rt===Fo?1:0)}return la?(Ht.push(e.factory.createExportAssignment(void 0,void 0,Ea,e.factory.createIdentifier(Fo))),!0):Rt!==Fo?(bt(Rt,Fo),!0):!1}}function Ja(fr,Rt){var Ea=e.getSourceFileOfNode(yn.enclosingDeclaration);return e.getObjectFlags(fr)&48&&!e.length(Ei(fr))&&!bd(fr)&&!!(e.length(e.filter(bo(fr),jr))||e.length(zr(fr,0)))&&!e.length(zr(fr,1))&&!Aa(Rt,Bt)&&!(fr.symbol&&e.some(fr.symbol.declarations,function(aa){return e.getSourceFileOfNode(aa)!==Ea}))&&!e.some(bo(fr),function(aa){return ml(aa.escapedName)})&&!e.some(bo(fr),function(aa){return e.some(aa.declarations,function(la){return e.getSourceFileOfNode(la)!==Ea})})&&e.every(bo(fr),function(aa){return e.isIdentifierText(e.symbolName(aa),we)})}function Ri(fr,Rt,Ea){return function(la,oi,Ka){var xi,Xa,Ua,co,Fo,ls=e.getDeclarationModifierFlagsFromSymbol(la),Xo=!!(ls&8);if(oi&&la.flags&2887656)return[];if(la.flags&4194304||Ka&&wn(Ka,la.escapedName)&&df(wn(Ka,la.escapedName))===df(la)&&(la.flags&16777216)===(wn(Ka,la.escapedName).flags&16777216)&&$f(kt(la),Os(Ka,la.escapedName)))return[];var jo=ls&-257|(oi?32:0),$s=go(la,yn),Ul=(xi=la.declarations)===null||xi===void 0?void 0:xi.find(e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(la.flags&98304&&Ea){var Vl=[];if(la.flags&65536&&Vl.push(e.setTextRange(e.factory.createSetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(jo),$s,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,Xo?void 0:na(yn,kt(la),la,Bt,Ws,pt))],void 0),((Xa=la.declarations)===null||Xa===void 0?void 0:Xa.find(e.isSetAccessor))||Ul)),la.flags&32768){var bc=ls&8;Vl.push(e.setTextRange(e.factory.createGetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(jo),$s,[],bc?void 0:na(yn,kt(la),la,Bt,Ws,pt),void 0),((Ua=la.declarations)===null||Ua===void 0?void 0:Ua.find(e.isGetAccessor))||Ul))}return Vl}else if(la.flags&98311)return e.setTextRange(fr(void 0,e.factory.createModifiersFromModifierFlags((df(la)?64:0)|jo),$s,la.flags&16777216?e.factory.createToken(57):void 0,Xo?void 0:na(yn,kt(la),la,Bt,Ws,pt),void 0),((co=la.declarations)===null||co===void 0?void 0:co.find(e.or(e.isPropertyDeclaration,e.isVariableDeclaration)))||Ul);if(la.flags&8208){var cm=kt(la),Op=zr(cm,0);if(jo&8)return e.setTextRange(fr(void 0,e.factory.createModifiersFromModifierFlags((df(la)?64:0)|jo),$s,la.flags&16777216?e.factory.createToken(57):void 0,void 0,void 0),((Fo=la.declarations)===null||Fo===void 0?void 0:Fo.find(e.isFunctionLikeDeclaration))||Op[0]&&Op[0].declaration||la.declarations&&la.declarations[0]);for(var Pp=[],Md=0,um=Op;Md<um.length;Md++){var cd=um[Md],Zm=Je(cd,Rt,yn,{name:$s,questionToken:la.flags&16777216?e.factory.createToken(57):void 0,modifiers:jo?e.factory.createModifiersFromModifierFlags(jo):void 0}),Tc=cd.declaration&&e.isPrototypePropertyAssignment(cd.declaration.parent)?cd.declaration.parent:cd.declaration;Pp.push(e.setTextRange(Zm,Tc))}return Pp}return e.Debug.fail("Unhandled class member kind! "+(la.__debugFlags||la.flags))}}function Oi(fr,Rt){return Ft(fr,!1,Rt)}function ro(fr,Rt,Ea,aa){var la=zr(Rt,fr);if(fr===1){if(!Ea&&e.every(la,function(Vl){return e.length(Vl.parameters)===0}))return[];if(Ea){var oi=zr(Ea,1);if(!e.length(oi)&&e.every(la,function(Vl){return e.length(Vl.parameters)===0}))return[];if(oi.length===la.length){for(var Ka=!1,xi=0;xi<oi.length;xi++)if(!hv(la[xi],oi[xi],!1,!1,!0,ug)){Ka=!0;break}if(!Ka)return[]}}for(var Xa=0,Ua=0,co=la;Ua<co.length;Ua++){var Fo=co[Ua];Fo.declaration&&(Xa|=e.getSelectedEffectiveModifierFlags(Fo.declaration,24))}if(Xa)return[e.setTextRange(e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Xa),[],void 0),la[0].declaration)]}for(var ls=[],Xo=0,jo=la;Xo<jo.length;Xo++){var $s=jo[Xo],Ul=Je($s,aa,yn);ls.push(e.setTextRange(Ul,$s.declaration))}return ls}function $i(fr,Rt){for(var Ea=[],aa=0,la=Ei(fr);aa<la.length;aa++){var oi=la[aa];if(Rt){var Ka=po(Rt,oi.keyType);if(Ka&&$f(oi.type,Ka.type))continue}Ea.push(Ge(oi,yn,void 0))}return Ea}function Ms(fr,Rt,Ea){var aa=_s(fr,111551);if(aa)return aa;var la=os(Ea+"_base"),oi=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(la,void 0,a(Rt,yn))],2));return Xs(oi,0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(la),void 0)}function _s(fr,Rt){var Ea,aa;if(fr.target&&Jd(fr.target.symbol,Bt,Rt)?(Ea=e.map(Co(fr),function(la){return a(la,yn)}),aa=ai(fr.target.symbol,yn,788968)):fr.symbol&&Jd(fr.symbol,Bt,Rt)&&(aa=ai(fr.symbol,yn,788968)),aa)return e.factory.createExpressionWithTypeArguments(aa,Ea)}function js(fr){var Rt=_s(fr,788968);if(Rt)return Rt;if(fr.symbol)return e.factory.createExpressionWithTypeArguments(ai(fr.symbol,yn,788968),void 0)}function os(fr,Rt){var Ea,aa,la=Rt?C(Rt):void 0;if(la&&yn.remappedSymbolNames.has(la))return yn.remappedSymbolNames.get(la);Rt&&(fr=ss(Rt,fr));for(var oi=0,Ka=fr;!((Ea=yn.usedSymbolNames)===null||Ea===void 0)&&Ea.has(fr);)oi++,fr=Ka+"_"+oi;return(aa=yn.usedSymbolNames)===null||aa===void 0||aa.add(fr),la&&yn.remappedSymbolNames.set(la,fr),fr}function ss(fr,Rt){if(Rt==="default"||Rt==="__class"||Rt==="__function"){var Ea=yn.flags;yn.flags|=16777216;var aa=sf(fr,yn);yn.flags=Ea,Rt=aa.length>0&&e.isSingleOrDoubleQuote(aa.charCodeAt(0))?e.stripQuotes(aa):aa}return Rt==="default"?Rt="_default":Rt==="export="&&(Rt="_exports"),Rt=e.isIdentifierText(Rt,we)&&!e.isStringANonContextualKeyword(Rt)?Rt:"_"+Rt.replace(/[^a-zA-Z0-9]/g,"_"),Rt}function Ss(fr,Rt){var Ea=C(fr);return yn.remappedSymbolNames.has(Ea)?yn.remappedSymbolNames.get(Ea):(Rt=ss(fr,Rt),yn.remappedSymbolNames.set(Ea,Rt),Rt)}}}function gc(n,r,t,a){return t===void 0&&(t=16384),a?s(a).getText():e.usingSingleLineStringWriter(s);function s(u){var S=e.factory.createTypePredicateNode(n.kind===2||n.kind===3?e.factory.createToken(128):void 0,n.kind===1||n.kind===3?e.factory.createIdentifier(n.parameterName):e.factory.createThisTypeNode(),n.type&&Pe.typeToTypeNode(n.type,r,Wf(t)|70221824|512)),F=e.createPrinter({removeComments:!0}),ve=r&&e.getSourceFileOfNode(r);return F.writeNode(4,S,ve,u),u}}function sc(n){for(var r=[],t=0,a=0;a<n.length;a++){var s=n[a];if(t|=s.flags,!(s.flags&98304)){if(s.flags&1536){var u=s.flags&512?Ur:Nm(s);if(u.flags&1048576){var S=u.types.length;if(a+S<=n.length&&cc(n[a+S-1])===cc(u.types[S-1])){r.push(u),a+=S-1;continue}}}r.push(s)}}return t&65536&&r.push(zn),t&32768&&r.push(Rn),r||n}function Td(n){return n===8?"private":n===16?"protected":"public"}function Fu(n){if(n.symbol&&n.symbol.flags&2048&&n.symbol.declarations){var r=e.walkUpParenthesizedTypes(n.symbol.declarations[0].parent);if(r.kind===257)return wt(r)}}function vp(n){return n&&n.parent&&n.parent.kind===260&&e.isExternalModuleAugmentation(n.parent.parent)}function Sd(n){return n.kind===300||e.isAmbientModule(n)}function Gu(n,r){var t=Za(n).nameType;if(t){if(t.flags&384){var a=""+t.value;return!e.isIdentifierText(a,pe.target)&&!id(a)?'"'+e.escapeString(a,34)+'"':id(a)&&e.startsWith(a,"-")?"["+a+"]":a}if(t.flags&8192)return"["+sf(t.symbol,r)+"]"}}function sf(n,r){if(r&&n.escapedName==="default"&&!(r.flags&16384)&&(!(r.flags&16777216)||!n.declarations||r.enclosingDeclaration&&e.findAncestor(n.declarations[0],Sd)!==e.findAncestor(r.enclosingDeclaration,Sd)))return"default";if(n.declarations&&n.declarations.length){var t=e.firstDefined(n.declarations,function(F){return e.getNameOfDeclaration(F)?F:void 0}),a=t&&e.getNameOfDeclaration(t);if(t&&a){if(e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t))return e.symbolName(n);if(e.isComputedPropertyName(a)&&!(e.getCheckFlags(n)&4096)){var s=Za(n).nameType;if(s&&s.flags&384){var u=Gu(n,r);if(u!==void 0)return u}}return e.declarationNameToString(a)}if(t||(t=n.declarations[0]),t.parent&&t.parent.kind===252)return e.declarationNameToString(t.parent.name);switch(t.kind){case 224:case 211:case 212:return r&&!r.encounteredError&&!(r.flags&131072)&&(r.encounteredError=!0),t.kind===224?"(Anonymous class)":"(Anonymous function)"}}var S=Gu(n,r);return S!==void 0?S:e.symbolName(n)}function eu(n){if(n){var r=da(n);return r.isVisible===void 0&&(r.isVisible=!!t()),r.isVisible}return!1;function t(){switch(n.kind){case 333:case 340:case 334:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&e.isSourceFile(n.parent.parent.parent));case 201:return eu(n.parent.parent);case 252:if(e.isBindingPattern(n.name)&&!n.name.elements.length)return!1;case 259:case 255:case 256:case 257:case 254:case 258:case 263:if(e.isExternalModuleAugmentation(n))return!0;var a=jf(n);return!(e.getCombinedModifierFlags(n)&1)&&!(n.kind!==263&&a.kind!==300&&a.flags&8388608)?pc(a):eu(a);case 165:case 164:case 170:case 171:case 167:case 166:if(e.hasEffectiveModifier(n,24))return!1;case 169:case 173:case 172:case 174:case 162:case 260:case 177:case 178:case 180:case 176:case 181:case 182:case 185:case 186:case 189:case 195:return eu(n.parent);case 265:case 266:case 268:return!1;case 161:case 300:case 262:return!0;case 269:return!1;default:return!1}}}function zd(n,r){var t;n.parent&&n.parent.kind===269?t=es(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===273&&(t=pr(n.parent,2998271));var a,s;return t&&(s=new e.Set,s.add(C(t)),u(t.declarations)),a;function u(S){e.forEach(S,function(F){var ve=Pf(F)||F;if(r?da(F).isVisible=!0:(a=a||[],e.pushIfUnique(a,ve)),e.isInternalModuleImportEqualsDeclaration(F)){var Ge=F.moduleReference,Je=e.getFirstIdentifier(Ge),Xe=es(F,Je.escapedText,901119,void 0,void 0,!1);Xe&&s&&e.tryAddToSet(s,C(Xe))&&u(Xe.declarations)}})}}function Vc(n,r){var t=Dd(n,r);if(t>=0){for(var a=Ko.length,s=t;s<a;s++)hs[s]=!1;return!1}return Ko.push(n),hs.push(!0),hl.push(r),!0}function Dd(n,r){for(var t=Ko.length-1;t>=0;t--){if(qd(Ko[t],hl[t]))return-1;if(Ko[t]===n&&hl[t]===r)return t}return-1}function qd(n,r){switch(r){case 0:return!!Za(n).type;case 5:return!!da(n).resolvedEnumType;case 2:return!!Za(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved}return e.Debug.assertNever(r)}function Oc(){return Ko.pop(),hl.pop(),hs.pop()}function jf(n){return e.findAncestor(e.getRootDeclaration(n),function(r){switch(r.kind){case 252:case 253:case 268:case 267:case 266:case 265:return!1;default:return!0}}).parent}function bu(n){var r=rs(Kl(n));return r.typeParameters?Yf(r,e.map(r.typeParameters,function(t){return cr})):r}function Os(n,r){var t=wn(n,r);return t?kt(t):void 0}function Fp(n,r){var t;return Os(n,r)||((t=Yl(n,r))===null||t===void 0?void 0:t.type)||cn}function no(n){return n&&(n.flags&1)!==0}function Hf(n){var r=wt(n);return r&&Za(r).type||ns(n,!1)}function Ld(n,r,t){if(n=Nl(n,function(Je){return!(Je.flags&98304)}),n.flags&131072)return Lr;if(n.flags&1048576)return Ps(n,function(Je){return Ld(Je,r,t)});var a=Sa(e.map(r,tp));if(vm(n)||Pm(a)){if(a.flags&131072)return n;var s=kL();return s?ag(s,[n,a]):J}for(var u=e.createSymbolTable(),S=0,F=bo(n);S<F.length;S++){var ve=F[S];!mo(Om(ve,8576),a)&&!(e.getDeclarationModifierFlagsFromSymbol(ve)&24)&&_h(ve)&&u.set(ve.escapedName,AE(ve,!1))}var Ge=qo(t,u,e.emptyArray,e.emptyArray,Ei(n));return Ge.objectFlags|=8388608,Ge}function Xd(n){return!!(n.flags&465829888)&&bs(Xl(n)||cn,32768)}function Yd(n){var r=D_(n,Xd)?Ps(n,function(t){return t.flags&465829888?s_(t):t}):n;return gl(r,524288)}function bf(n,r){var t=v(n);return t?tm(t,r):r}function v(n){var r=nn(n);if(r&&r.flowNode){var t=mr(n);if(t){var a=e.setTextRange(e.parseNodeFactory.createStringLiteral(t),n),s=e.isLeftHandSideExpression(r)?r:e.parseNodeFactory.createParenthesizedExpression(r),u=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(s,a),n);return e.setParent(a,u),e.setParent(u,n),s!==r&&e.setParent(s,u),u.flowNode=r.flowNode,u}}}function nn(n){var r=n.parent.parent;switch(r.kind){case 201:case 291:return v(r);case 202:return v(n.parent);case 252:return r.initializer;case 219:return r.right}}function mr(n){var r=n.parent;return n.kind===201&&r.kind===199?Br(n.propertyName||n.name):n.kind===291||n.kind===292?Br(n.name):""+r.elements.indexOf(n)}function Br(n){var r=tp(n);return r.flags&384?""+r.value:void 0}function ya(n){var r=n.parent,t=Hf(r.parent);if(!t||no(t))return t;He&&n.flags&8388608&&e.isParameterDeclaration(n)?t=Rd(t):He&&r.parent.initializer&&!(cp(JS(r.parent.initializer))&65536)&&(t=gl(t,524288));var a;if(r.kind===199)if(n.dotDotDotToken){if(t=iu(t),t.flags&2||!A_(t))return Jn(n,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),J;for(var s=[],u=0,S=r.elements;u<S.length;u++){var F=S[u];F.dotDotDotToken||s.push(F.propertyName||F.name)}a=Ld(t,s,n.symbol)}else{var ve=n.propertyName||n.name,Ge=tp(ve),Je=Ec(t,Ge,32,ve);a=bf(n,Je)}else{var Xe=Pd(65|(n.dotDotDotToken?0:128),t,Rn,r),tn=r.elements.indexOf(n);if(n.dotDotDotToken)a=ad(t,ji)?Ps(t,function(nr){return sg(nr,tn)}):bl(Xe);else if(lp(t)){var Ge=Zf(tn),Dn=32|(L_(n)?16:0),Je=ap(t,Ge,Dn,n.name)||J;a=bf(n,Je)}else a=Xe}return n.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(n))?He&&!(wc(wv(n))&32768)?Yd(a):a:u1(n,Sa([Yd(a),wv(n)],2)):a}function Pa(n){var r=e.getJSDocType(n);if(r)return Ra(r)}function Ha(n){var r=e.skipParentheses(n);return r.kind===104||r.kind===79&&xu(r)===Ze}function ci(n){var r=e.skipParentheses(n);return r.kind===202&&r.elements.length===0}function Xi(n,r,t){return r===void 0&&(r=!1),t===void 0&&(t=!0),He&&t?td(n,r):n}function ns(n,r){if(e.isVariableDeclaration(n)&&n.parent.parent.kind===241){var t=ff(Wb(vi(n.parent.parent.expression)));return t.flags&4456448?NT(t):gr}if(e.isVariableDeclaration(n)&&n.parent.parent.kind===242){var a=n.parent.parent;return Wv(a)||cr}if(e.isBindingPattern(n.parent))return ya(n);var s=e.isPropertyDeclaration(n)||e.isPropertySignature(n),u=r&&(s&&!!n.questionToken||e.isParameter(n)&&(!!n.questionToken||xd(n))||u_(n)),S=dr(n);if(S)return Xi(S,s,u);if((En||e.isInJSFile(n))&&e.isVariableDeclaration(n)&&!e.isBindingPattern(n.name)&&!(e.getCombinedModifierFlags(n)&1)&&!(n.flags&8388608)){if(!(e.getCombinedNodeFlags(n)&2)&&(!n.initializer||Ha(n.initializer)))return Fe;if(n.initializer&&ci(n.initializer))return j}if(e.isParameter(n)){var F=n.parent;if(F.kind===171&&wl(F)){var ve=e.getDeclarationOfKind(wt(n.parent),170);if(ve){var Ge=su(ve),Je=U1(F);return Je&&n===Je?(e.Debug.assert(!Je.type),kt(Ge.thisParameter)):_o(Ge)}}if(e.isInJSFile(n)){var Xe=e.getJSDocType(F);if(Xe&&e.isFunctionTypeNode(Xe)){var tn=su(Xe),Dn=F.parameters.indexOf(n);return n.dotDotDotToken?R_(tn,Dn):fu(tn,Dn)}}var nr=n.symbol.escapedName==="this"?u0(F):f0(n);if(nr)return Xi(nr,!1,u)}if(e.hasOnlyExpressionInitializer(n)&&n.initializer){if(e.isInJSFile(n)&&!e.isParameter(n)){var sr=Gp(n,wt(n),e.getDeclaredExpandoInitializer(n));if(sr)return sr}var nr=u1(n,wv(n));return Xi(nr,s,u)}if(e.isPropertyDeclaration(n)&&(En||e.isInJSFile(n)))if(e.hasStaticModifier(n)){var xr=e.filter(n.parent.members,e.isClassStaticBlockDeclaration),nr=xr.length?Wc(n.symbol,xr):e.getEffectiveModifierFlags(n)&2?Sh(n.symbol):void 0;return nr&&Xi(nr,!0,u)}else{var Ir=kc(n.parent),nr=Ir?Bu(n.symbol,Ir):e.getEffectiveModifierFlags(n)&2?Sh(n.symbol):void 0;return nr&&Xi(nr,!0,u)}if(e.isJsxAttribute(n))return Kr;if(e.isBindingPattern(n.name))return Ad(n.name,!1,!0)}function fs(n){if(n.valueDeclaration&&e.isBinaryExpression(n.valueDeclaration)){var r=Za(n);return r.isConstructorDeclaredProperty===void 0&&(r.isConstructorDeclaredProperty=!1,r.isConstructorDeclaredProperty=!!Cs(n)&&e.every(n.declarations,function(t){return e.isBinaryExpression(t)&&Hh(t)&&(t.left.kind!==205||e.isStringOrNumericLiteralLike(t.left.argumentExpression))&&!Bp(void 0,t,n,t)})),r.isConstructorDeclaredProperty}return!1}function pl(n){var r=n.valueDeclaration;return r&&e.isPropertyDeclaration(r)&&!e.getEffectiveTypeAnnotationNode(r)&&!r.initializer&&(En||e.isInJSFile(r))}function Cs(n){if(n.declarations)for(var r=0,t=n.declarations;r<t.length;r++){var a=t[r],s=e.getThisContainer(a,!1);if(s&&(s.kind===169||Nu(s)))return s}}function Ll(n){var r=e.getSourceFileOfNode(n.declarations[0]),t=e.unescapeLeadingUnderscores(n.escapedName),a=n.declarations.every(function(u){return e.isInJSFile(u)&&e.isAccessExpression(u)&&e.isModuleExportsAccessExpression(u.expression)}),s=a?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),t):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),t);return a&&e.setParent(s.expression.expression,s.expression),e.setParent(s.expression,s),e.setParent(s,r),s.flowNode=r.endFlowNode,tm(s,Fe,Rn)}function Wc(n,r){for(var t=e.startsWith(n.escapedName,"__#")?e.factory.createPrivateIdentifier(n.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(n.escapedName),a=0,s=r;a<s.length;a++){var u=s[a],S=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);e.setParent(S.expression,S),e.setParent(S,u),S.flowNode=u.returnFlowNode;var F=Al(S,n);if(En&&(F===Fe||F===j)&&Jn(n.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Qa(n),Lt(F)),!ad(F,Qh))return Rg(F)}}function Bu(n,r){var t=e.startsWith(n.escapedName,"__#")?e.factory.createPrivateIdentifier(n.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(n.escapedName),a=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);e.setParent(a.expression,a),e.setParent(a,r),a.flowNode=r.returnFlowNode;var s=Al(a,n);return En&&(s===Fe||s===j)&&Jn(n.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Qa(n),Lt(s)),ad(s,Qh)?void 0:Rg(s)}function Al(n,r){var t=(r==null?void 0:r.valueDeclaration)&&(!pl(r)||e.getEffectiveModifierFlags(r.valueDeclaration)&2)&&Sh(r)||Rn;return tm(n,Fe,t)}function jc(n,r){var t=e.getAssignedExpandoInitializer(n.valueDeclaration);if(t){var a=e.getJSDocTypeTag(t);if(a&&a.typeExpression)return Ra(a.typeExpression);var s=n.valueDeclaration&&Gp(n.valueDeclaration,n,t);return s||Ap(ll(t))}var u,S=!1,F=!1;if(fs(n)&&(u=Bu(n,Cs(n))),!u){var ve=void 0;if(n.declarations){for(var Ge=void 0,Je=0,Xe=n.declarations;Je<Xe.length;Je++){var tn=Xe[Je],Dn=e.isBinaryExpression(tn)||e.isCallExpression(tn)?tn:e.isAccessExpression(tn)?e.isBinaryExpression(tn.parent)?tn.parent:tn:void 0;if(Dn){var nr=e.isAccessExpression(Dn)?e.getAssignmentDeclarationPropertyAccessKind(Dn):e.getAssignmentDeclarationKind(Dn);(nr===4||e.isBinaryExpression(Dn)&&Hh(Dn,nr))&&(lf(Dn)?S=!0:F=!0),e.isCallExpression(Dn)||(Ge=Bp(Ge,Dn,n,tn)),Ge||(ve||(ve=[])).push(e.isBinaryExpression(Dn)||e.isCallExpression(Dn)?Up(n,r,Dn,nr):Jt)}}u=Ge}if(!u){if(!e.length(ve))return J;var sr=S&&n.declarations?Cm(ve,n.declarations):void 0;if(F){var Ir=Sh(n);Ir&&((sr||(sr=[])).push(Ir),S=!0)}var xr=e.some(sr,function(ct){return!!(ct.flags&-98305)})?sr:ve;u=Sa(xr,2)}}var Gr=fc(Xi(u,!1,F&&!S));return n.valueDeclaration&&Nl(Gr,function(ct){return!!(ct.flags&-98305)})===Jt?(Cp(n.valueDeclaration,cr),cr):Gr}function Gp(n,r,t){var a,s;if(!(!e.isInJSFile(n)||!t||!e.isObjectLiteralExpression(t)||t.properties.length)){for(var u=e.createSymbolTable();e.isBinaryExpression(n)||e.isPropertyAccessExpression(n);){var S=wt(n);!((a=S==null?void 0:S.exports)===null||a===void 0)&&a.size&&ic(u,S.exports),n=e.isBinaryExpression(n)?n.parent:n.parent.parent}var F=wt(n);!((s=F==null?void 0:F.exports)===null||s===void 0)&&s.size&&ic(u,F.exports);var ve=qo(r,u,e.emptyArray,e.emptyArray,e.emptyArray);return ve.objectFlags|=8192,ve}}function Bp(n,r,t,a){var s,u=e.getEffectiveTypeAnnotationNode(r.parent);if(u){var S=fc(Ra(u));if(n)n!==J&&S!==J&&!$f(n,S)&&nD(void 0,n,a,S);else return S}if(!((s=t.parent)===null||s===void 0)&&s.valueDeclaration){var F=e.getEffectiveTypeAnnotationNode(t.parent.valueDeclaration);if(F){var ve=wn(Ra(F),t.escapedName);if(ve)return El(ve)}}return n}function Up(n,r,t,a){if(e.isCallExpression(t)){if(r)return kt(r);var s=ll(t.arguments[2]),u=Os(s,"value");if(u)return u;var S=Os(s,"get");if(S){var F=Dm(S);if(F)return _o(F)}var ve=Os(s,"set");if(ve){var Ge=Dm(ve);if(Ge)return r1(Ge)}return cr}if(Vp(t.left,t.right))return cr;var Je=r?kt(r):Ap(ll(t.right));if(Je.flags&524288&&a===2&&n.escapedName==="export="){var Xe=Du(Je),tn=e.createSymbolTable();e.copyEntries(Xe.members,tn);var Dn=tn.size;r&&!r.exports&&(r.exports=e.createSymbolTable()),(r||n).exports.forEach(function(sr,Ir){var xr,Gr=tn.get(Ir);if(Gr&&Gr!==sr)if(sr.flags&111551&&Gr.flags&111551){if(sr.valueDeclaration&&Gr.valueDeclaration&&e.getSourceFileOfNode(sr.valueDeclaration)!==e.getSourceFileOfNode(Gr.valueDeclaration)){var ct=e.unescapeLeadingUnderscores(sr.escapedName),Vt=((xr=e.tryCast(Gr.valueDeclaration,e.isNamedDeclaration))===null||xr===void 0?void 0:xr.name)||Gr.valueDeclaration;e.addRelatedInfo(Jn(sr.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,ct),e.createDiagnosticForNode(Vt,e.Diagnostics._0_was_also_declared_here,ct)),e.addRelatedInfo(Jn(Vt,e.Diagnostics.Duplicate_identifier_0,ct),e.createDiagnosticForNode(sr.valueDeclaration,e.Diagnostics._0_was_also_declared_here,ct))}var _t=fo(sr.flags|Gr.flags,Ir);_t.type=Sa([kt(sr),kt(Gr)]),_t.valueDeclaration=Gr.valueDeclaration,_t.declarations=e.concatenate(Gr.declarations,sr.declarations),tn.set(Ir,_t)}else tn.set(Ir,qc(sr,Gr));else tn.set(Ir,sr)});var nr=qo(Dn!==tn.size?void 0:Xe.symbol,tn,Xe.callSignatures,Xe.constructSignatures,Xe.indexInfos);return nr.objectFlags|=e.getObjectFlags(Je)&8192,nr.symbol&&nr.symbol.flags&32&&Je===lc(nr.symbol)&&(nr.objectFlags|=16777216),nr}return XE(Je)?(Cp(t,dn),dn):Je}function Vp(n,r){return e.isPropertyAccessExpression(n)&&n.expression.kind===108&&e.forEachChildRecursively(r,function(t){return Tl(n,t)})}function lf(n){var r=e.getThisContainer(n,!1);return r.kind===169||r.kind===254||r.kind===211&&!e.isPrototypePropertyAssignment(r.parent)}function Cm(n,r){return e.Debug.assert(n.length===r.length),n.filter(function(t,a){var s=r[a],u=e.isBinaryExpression(s)?s:e.isBinaryExpression(s.parent)?s.parent:void 0;return u&&lf(u)})}function dm(n,r,t){if(n.initializer){var a=e.isBindingPattern(n.name)?Ad(n.name,!0,!1):cn;return Xi(u1(n,wv(n,a)))}return e.isBindingPattern(n.name)?Ad(n.name,r,t):(t&&!Yn(n)&&Cp(n,cr),r?Cn:cr)}function $m(n,r,t){var a=e.createSymbolTable(),s,u=262272;e.forEach(n.elements,function(F){var ve=F.propertyName||F.name;if(F.dotDotDotToken){s=Uu(gr,cr,!1);return}var Ge=tp(ve);if(!Gi(Ge)){u|=512;return}var Je=ql(Ge),Xe=4|(F.initializer?16777216:0),tn=fo(Xe,Je);tn.type=dm(F,r,t),tn.bindingElement=F,a.set(tn.escapedName,tn)});var S=qo(void 0,a,e.emptyArray,e.emptyArray,s?[s]:e.emptyArray);return S.objectFlags|=u,r&&(S.pattern=n,S.objectFlags|=262144),S}function Wp(n,r,t){var a=n.elements,s=e.lastOrUndefined(a),u=s&&s.kind===201&&s.dotDotDotToken?s:void 0;if(a.length===0||a.length===1&&u)return we>=2?OL(cr):dn;var S=e.map(a,function(Je){return e.isOmittedExpression(Je)?cr:dm(Je,r,t)}),F=e.findLastIndex(a,function(Je){return!(Je===u||e.isOmittedExpression(Je)||L_(Je))},a.length-1)+1,ve=e.map(a,function(Je,Xe){return Je===u?4:Xe>=F?2:1}),Ge=Vu(S,ve);return r&&(Ge=$1(Ge),Ge.pattern=n,Ge.objectFlags|=262144),Ge}function Ad(n,r,t){return r===void 0&&(r=!1),t===void 0&&(t=!1),n.kind===199?$m(n,r,t):Wp(n,r,t)}function Cd(n,r){return bn(ns(n,!0),n,r)}function ke(n){var r=wt(n),t=hL(!1);return t&&r&&r===t}function bn(n,r,t){return n?(n.flags&4096&&ke(r.parent)&&(n=xE(r)),t&&Ih(r,n),n.flags&8192&&(e.isBindingElement(r)||!r.type)&&n.symbol!==wt(r)&&(n=qt),fc(n)):(n=e.isParameter(r)&&r.dotDotDotToken?dn:cr,t&&(Yn(r)||Cp(r,n)),n)}function Yn(n){var r=e.getRootDeclaration(n),t=r.kind===162?r.parent:r;return py(t)}function dr(n){var r=e.getEffectiveTypeAnnotationNode(n);if(r)return Ra(r)}function Mr(n){var r=Za(n);if(!r.type){var t=lt(n);r.type||(r.type=t)}return r.type}function lt(n){if(n.flags&4194304)return bu(n);if(n===$e)return cr;if(n.flags&134217728&&n.valueDeclaration){var r=wt(e.getSourceFileOfNode(n.valueDeclaration)),t=fo(r.flags,"exports");t.declarations=r.declarations?r.declarations.slice():[],t.parent=n,t.target=r,r.valueDeclaration&&(t.valueDeclaration=r.valueDeclaration),r.members&&(t.members=new e.Map(r.members)),r.exports&&(t.exports=new e.Map(r.exports));var a=e.createSymbolTable();return a.set("exports",t),qo(n,a,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(n.valueDeclaration);var s=n.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var u=e.getEffectiveTypeAnnotationNode(s);if(u===void 0)return In?cn:cr;var S=sm(u);return no(S)||S===cn?S:J}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?fc(Ap(vi(s.statements[0].expression))):Lr;if(!Vc(n,0))return n.flags&512&&!(n.flags&67108864)?yl(n):Ml(n);var F;if(s.kind===269)F=bn(ll(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))F=jc(n);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(n.flags&9136)return yl(n);F=e.isBinaryExpression(s.parent)?jc(n):dr(s)||cr}else if(e.isPropertyAssignment(s))F=dr(s)||k2(s);else if(e.isJsxAttribute(s))F=dr(s)||b0(s);else if(e.isShorthandPropertyAssignment(s))F=dr(s)||P_(s.name,0);else if(e.isObjectLiteralMethod(s))F=dr(s)||R2(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))F=Cd(s,!0);else if(e.isEnumDeclaration(s))F=yl(n);else if(e.isEnumMember(s))F=Pc(n);else if(e.isAccessor(s))F=ms(n)||e.Debug.fail("Non-write accessor resolution must always produce a type");else return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(n));return Oc()?F:n.flags&512&&!(n.flags&67108864)?yl(n):Ml(n)}function Gt(n){if(n)if(n.kind===170){var r=e.getEffectiveReturnTypeNode(n);return r}else{var t=e.getEffectiveSetAccessorTypeAnnotationNode(n);return t}}function ta(n){var r=Gt(n);return r&&Ra(r)}function pi(n){var r=U1(n);return r&&r.symbol}function ka(n){return Id(su(n))}function Do(n){var r=Za(n);return r.type||(r.type=Lo(n)||e.Debug.fail("Read type of accessor must always produce a type"))}function Is(n){var r=Za(n);return r.writeType||(r.writeType=Lo(n,!0))}function Lo(n,r){if(r===void 0&&(r=!1),!Vc(n,0))return J;var t=ms(n,r);if(!Oc()&&(t=cr,En)){var a=e.getDeclarationOfKind(n,170);Jn(a,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,Qa(n))}return t}function ms(n,r){r===void 0&&(r=!1);var t=e.getDeclarationOfKind(n,170),a=e.getDeclarationOfKind(n,171),s=ta(a);if(r&&s)return ve(s,n);if(t&&e.isInJSFile(t)){var u=Pa(t);if(u)return ve(u,n)}var S=ta(t);if(S)return ve(S,n);if(s)return s;if(t&&t.body){var F=cy(t);return ve(F,n)}if(a)return py(a)||Es(En,a,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Qa(n)),cr;if(t)return e.Debug.assert(!!t,"there must exist a getter as we are current checking either setter or getter in this function"),py(t)||Es(En,t,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Qa(n)),cr;return;function ve(Ge,Je){if(e.getCheckFlags(Je)&1){var Xe=Za(Je);return fi(Ge,Xe.mapper)}return Ge}}function Us(n){var r=cf(lc(n));return r.flags&8650752?r:r.flags&2097152?e.find(r.types,function(t){return!!(t.flags&8650752)}):void 0}function yl(n){var r=Za(n),t=r;if(!r.type){var a=n.valueDeclaration&&oy(n.valueDeclaration,!1);if(a){var s=e1(n,a);s&&(n=r=s)}t.type=r.type=Cl(n)}return r.type}function Cl(n){var r=n.valueDeclaration;if(n.flags&1536&&e.isShorthandAmbientModuleSymbol(n))return cr;if(r&&(r.kind===219||e.isAccessExpression(r)&&r.parent.kind===219))return jc(n);if(n.flags&512&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var t=Dt(n);if(t!==n){if(!Vc(n,0))return J;var a=Eo(n.exports.get("export=")),s=jc(a,a===t?void 0:t);return Oc()?s:Ml(n)}}var u=fl(16,n);if(n.flags&32){var S=Us(n);return S?Ro([u,S]):u}else return He&&n.flags&16777216?td(u):u}function Pc(n){var r=Za(n);return r.type||(r.type=Qd(n))}function tc(n){var r=Za(n);if(!r.type){var t=_i(n),a=n.declarations&&ma(Jl(n),!0);r.type=a!=null&&a.declarations&&Ly(a.declarations)&&n.declarations.length?Ll(a):Ly(n.declarations)?Fe:t.flags&111551?kt(t):J}return r.type}function Tf(n){var r=Za(n);if(!r.type){if(!Vc(n,0))return r.type=J;var t=fi(kt(r.target),r.mapper);Oc()||(t=Ml(n)),r.type=t}return r.type}function Ml(n){var r=n.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(Jn(n.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Qa(n)),J):(En&&(r.kind!==162||r.initializer)&&Jn(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,Qa(n)),cr)}function zl(n){var r=Za(n);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=r.deferralParent.flags&1048576?Sa(r.deferralConstituents):Ro(r.deferralConstituents)),r.type}function Jf(n){if(n.flags&98304){var r=Is(n);if(r)return r}return kt(n)}function kt(n){var r=e.getCheckFlags(n);return r&65536?zl(n):r&1?Tf(n):r&262144?Jy(n):r&8192?wC(n):n.flags&7?Mr(n):n.flags&9136?yl(n):n.flags&8?Pc(n):n.flags&98304?Do(n):n.flags&2097152?tc(n):J}function El(n){return Bm(kt(n),!!(n.flags&16777216))}function _(n,r){return n!==void 0&&r!==void 0&&(e.getObjectFlags(n)&4)!==0&&n.target===r}function B(n){return e.getObjectFlags(n)&4?n.target:n}function Ee(n,r){return t(n);function t(a){if(e.getObjectFlags(a)&7){var s=B(a);return s===r||e.some(vc(s),t)}else if(a.flags&2097152)return e.some(a.types,t);return!1}}function on(n,r){for(var t=0,a=r;t<a.length;t++){var s=a[t];n=e.appendIfUnique(n,zf(wt(s)))}return n}function qn(n,r){for(;;){if(n=n.parent,n&&e.isBinaryExpression(n)){var t=e.getAssignmentDeclarationKind(n);if(t===6||t===3){var a=wt(n.left);a&&a.parent&&!e.findAncestor(a.parent.valueDeclaration,function(ve){return n===ve})&&(n=a.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 255:case 224:case 256:case 172:case 173:case 166:case 177:case 178:case 312:case 254:case 167:case 211:case 212:case 257:case 339:case 340:case 334:case 333:case 193:case 187:{var s=qn(n,r);if(n.kind===193)return e.append(s,zf(wt(n.typeParameter)));if(n.kind===187)return e.concatenate(s,UT(n));var u=on(s,e.getEffectiveTypeParameterDeclarations(n)),S=r&&(n.kind===255||n.kind===224||n.kind===256||Nu(n))&&lc(wt(n)).thisType;return S?e.append(u,S):u}case 335:var F=e.getParameterSymbolFromJSDoc(n);F&&(n=F.valueDeclaration);break;case 315:{var s=qn(n,r);return n.tags?on(s,e.flatMap(n.tags,function(Ge){return e.isJSDocTemplateTag(Ge)?Ge.typeParameters:void 0})):s}}}}function Zr(n){var r=n.flags&32?n.valueDeclaration:e.getDeclarationOfKind(n,256);return e.Debug.assert(!!r,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),qn(r)}function Nt(n){if(n.declarations){for(var r,t=0,a=n.declarations;t<a.length;t++){var s=a[t];if(s.kind===256||s.kind===255||s.kind===224||Nu(s)||e.isTypeAlias(s)){var u=s;r=on(r,e.getEffectiveTypeParameterDeclarations(u))}}return r}}function Si(n){return e.concatenate(Zr(n),Nt(n))}function Yo(n){var r=zr(n,1);if(r.length===1){var t=r[0];if(!t.typeParameters&&t.parameters.length===1&&N(t)){var a=Tg(t.parameters[0]);return no(a)||zE(a)===cr}}return!1}function nl(n){if(zr(n,1).length>0)return!0;if(n.flags&8650752){var r=Xl(n);return!!r&&Yo(r)}return!1}function nu(n){return e.getEffectiveBaseTypeNode(n.symbol.valueDeclaration)}function Sf(n,r,t){var a=e.length(r),s=e.isInJSFile(t);return e.filter(zr(n,1),function(u){return(s||a>=Lu(u.typeParameters))&&a<=e.length(u.typeParameters)})}function Kf(n,r,t){var a=Sf(n,r,t),s=e.map(r,Ra);return e.sameMap(a,function(u){return e.some(u.typeParameters)?ov(u,s,e.isInJSFile(t)):u})}function cf(n){if(!n.resolvedBaseConstructorType){var r=n.symbol.valueDeclaration,t=e.getEffectiveBaseTypeNode(r),a=nu(n);if(!a)return n.resolvedBaseConstructorType=Rn;if(!Vc(n,1))return J;var s=vi(a.expression);if(t&&a!==t&&(e.Debug.assert(!t.typeArguments),vi(t.expression)),s.flags&2621440&&Du(s),!Oc())return Jn(n.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Qa(n.symbol)),n.resolvedBaseConstructorType=J;if(!(s.flags&1)&&s!==ir&&!nl(s)){var u=Jn(a.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Lt(s));if(s.flags&262144){var S=d_(s),F=cn;if(S){var ve=zr(S,1);ve[0]&&(F=_o(ve[0]))}s.symbol.declarations&&e.addRelatedInfo(u,e.createDiagnosticForNode(s.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Qa(s.symbol),Lt(F)))}return n.resolvedBaseConstructorType=J}n.resolvedBaseConstructorType=s}return n.resolvedBaseConstructorType}function j_(n){var r=e.emptyArray;if(n.symbol.declarations)for(var t=0,a=n.symbol.declarations;t<a.length;t++){var s=a[t],u=e.getEffectiveImplementsTypeNodes(s);if(u)for(var S=0,F=u;S<F.length;S++){var ve=F[S],Ge=Ra(ve);Ge!==J&&(r===e.emptyArray?r=[Ge]:r.push(Ge))}}return r}function e_(n,r){Jn(n,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Lt(r,void 0,2))}function vc(n){if(!n.baseTypesResolved){if(Vc(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[n_(n)]:n.symbol.flags&96?(n.symbol.flags&32&&Bg(n),n.symbol.flags&64&&Ug(n)):e.Debug.fail("type must be class or interface"),!Oc()&&n.symbol.declarations))for(var r=0,t=n.symbol.declarations;r<t.length;r++){var a=t[r];(a.kind===255||a.kind===256)&&e_(a,n)}n.baseTypesResolved=!0}return n.resolvedBaseTypes}function n_(n){var r=e.sameMap(n.typeParameters,function(t,a){return n.elementFlags[a]&8?Ec(t,Dr):t});return bl(Sa(r||e.emptyArray),n.readonly)}function Bg(n){n.resolvedBaseTypes=e.resolvingEmptyArray;var r=Il(cf(n));if(!(r.flags&2621441))return n.resolvedBaseTypes=e.emptyArray;var t=nu(n),a,s=r.symbol?rs(r.symbol):void 0;if(r.symbol&&r.symbol.flags&32&&H_(s))a=eT(t,r.symbol);else if(r.flags&1)a=r;else{var u=Kf(r,t.typeArguments,t);if(!u.length)return Jn(t.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=e.emptyArray;a=_o(u[0])}if(a===J)return n.resolvedBaseTypes=e.emptyArray;var S=iu(a);if(!jp(S)){var F=ln(void 0,a),ve=e.chainDiagnosticMessages(F,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Lt(S));return zt.add(e.createDiagnosticForNodeFromMessageChain(t.expression,ve)),n.resolvedBaseTypes=e.emptyArray}return n===S||Ee(S,n)?(Jn(n.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Lt(n,void 0,2)),n.resolvedBaseTypes=e.emptyArray):(n.resolvedBaseTypes===e.resolvingEmptyArray&&(n.members=void 0),n.resolvedBaseTypes=[S])}function H_(n){var r=n.outerTypeParameters;if(r){var t=r.length-1,a=Co(n);return r[t].symbol!==a[t].symbol}return!0}function jp(n){if(n.flags&262144){var r=Xl(n);if(r)return jp(r)}return!!(n.flags&67633153&&!hc(n)||n.flags&2097152&&e.every(n.types,jp))}function Ug(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||e.emptyArray,n.symbol.declarations)for(var r=0,t=n.symbol.declarations;r<t.length;r++){var a=t[r];if(a.kind===256&&e.getInterfaceBaseTypeNodes(a))for(var s=0,u=e.getInterfaceBaseTypeNodes(a);s<u.length;s++){var S=u[s],F=iu(Ra(S));F!==J&&(jp(F)?n!==F&&!Ee(F,n)?n.resolvedBaseTypes===e.emptyArray?n.resolvedBaseTypes=[F]:n.resolvedBaseTypes.push(F):e_(a,n):Jn(S,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function hp(n){if(!n.declarations)return!0;for(var r=0,t=n.declarations;r<t.length;r++){var a=t[r];if(a.kind===256){if(a.flags&128)return!1;var s=e.getInterfaceBaseTypeNodes(a);if(s)for(var u=0,S=s;u<S.length;u++){var F=S[u];if(e.isEntityNameExpression(F.expression)){var ve=ki(F.expression,788968,!0);if(!ve||!(ve.flags&64)||lc(ve).thisType)return!1}}}}return!0}function lc(n){var r=Za(n),t=r;if(!r.declaredType){var a=n.flags&32?1:2,s=e1(n,n.valueDeclaration&&bN(n.valueDeclaration));s&&(n=r=s);var u=t.declaredType=r.declaredType=fl(a,n),S=Zr(n),F=Nt(n);(S||F||a===1||!hp(n))&&(u.objectFlags|=4,u.typeParameters=e.concatenate(S,F),u.outerTypeParameters=S,u.localTypeParameters=F,u.instantiations=new e.Map,u.instantiations.set(lu(u.typeParameters),u),u.target=u,u.resolvedTypeArguments=u.typeParameters,u.thisType=Uc(n),u.thisType.isThisType=!0,u.thisType.constraint=u)}return r.declaredType}function xm(n){var r,t=Za(n);if(!t.declaredType){if(!Vc(n,2))return J;var a=e.Debug.checkDefined((r=n.declarations)===null||r===void 0?void 0:r.find(e.isTypeAlias),"Type alias symbol with no valid declaration found"),s=e.isJSDocTypeAlias(a)?a.typeExpression:a.type,u=s?Ra(s):J;if(Oc()){var S=Nt(n);S&&(t.typeParameters=S,t.instantiations=new e.Map,t.instantiations.set(lu(S),u))}else u=J,a.kind===334?Jn(a.typeExpression.type,e.Diagnostics.Type_alias_0_circularly_references_itself,Qa(n)):Jn(e.isNamedDeclaration(a)?a.name:a||a,e.Diagnostics.Type_alias_0_circularly_references_itself,Qa(n));t.declaredType=u}return t.declaredType}function pm(n){return e.isStringLiteralLike(n)?!0:n.kind===219?pm(n.left)&&pm(n.right):!1}function Im(n){var r=n.initializer;if(!r)return!(n.flags&8388608);switch(r.kind){case 10:case 8:case 14:return!0;case 217:return r.operator===40&&r.operand.kind===8;case 79:return e.nodeIsMissing(r)||!!wt(n.parent).exports.get(r.escapedText);case 219:return pm(r);default:return!1}}function mm(n){var r=Za(n);if(r.enumKind!==void 0)return r.enumKind;var t=!1;if(n.declarations)for(var a=0,s=n.declarations;a<s.length;a++){var u=s[a];if(u.kind===258)for(var S=0,F=u.members;S<F.length;S++){var ve=F[S];if(ve.initializer&&e.isStringLiteralLike(ve.initializer))return r.enumKind=1;Im(ve)||(t=!0)}}return r.enumKind=t?0:1}function Nm(n){return n.flags&1024&&!(n.flags&1048576)?rs(Kl(n.symbol)):n}function r_(n){var r=Za(n);if(r.declaredType)return r.declaredType;if(mm(n)===1){Ce++;var t=[];if(n.declarations)for(var a=0,s=n.declarations;a<s.length;a++){var u=s[a];if(u.kind===258)for(var S=0,F=u.members;S<F.length;S++){var ve=F[S],Ge=ky(ve),Je=wm(SA(Ge!==void 0?Ge:0,Ce,wt(ve)));Za(wt(ve)).declaredType=Je,t.push(cc(Je))}}if(t.length){var Xe=Sa(t,1,n,void 0);return Xe.flags&1048576&&(Xe.flags|=1024,Xe.symbol=n),r.declaredType=Xe}}var tn=Pl(32);return tn.symbol=n,r.declaredType=tn}function Qd(n){var r=Za(n);if(!r.declaredType){var t=r_(Kl(n));r.declaredType||(r.declaredType=t)}return r.declaredType}function zf(n){var r=Za(n);return r.declaredType||(r.declaredType=Uc(n))}function Vg(n){var r=Za(n);return r.declaredType||(r.declaredType=rs(_i(n)))}function rs(n){return J_(n)||J}function J_(n){if(n.flags&96)return lc(n);if(n.flags&524288)return xm(n);if(n.flags&262144)return zf(n);if(n.flags&384)return r_(n);if(n.flags&8)return Qd(n);if(n.flags&2097152)return Vg(n)}function _m(n){switch(n.kind){case 129:case 153:case 148:case 145:case 156:case 132:case 149:case 146:case 114:case 151:case 142:case 194:return!0;case 181:return _m(n.elementType);case 176:return!n.typeArguments||n.typeArguments.every(_m)}return!1}function Hp(n){var r=e.getEffectiveConstraintOfTypeParameter(n);return!r||_m(r)}function t_(n){var r=e.getEffectiveTypeAnnotationNode(n);return r?_m(r):!e.hasInitializer(n)}function Zd(n){var r=e.getEffectiveReturnTypeNode(n),t=e.getEffectiveTypeParameterDeclarations(n);return(n.kind===169||!!r&&_m(r))&&n.parameters.every(t_)&&t.every(Hp)}function ht(n){if(n.declarations&&n.declarations.length===1){var r=n.declarations[0];if(r)switch(r.kind){case 165:case 164:return t_(r);case 167:case 166:case 169:case 170:case 171:return Zd(r)}}return!1}function ga(n,r,t){for(var a=e.createSymbolTable(),s=0,u=n;s<u.length;s++){var S=u[s];a.set(S.escapedName,t&&ht(S)?S:NE(S,r))}return a}function _a(n,r){for(var t=0,a=r;t<a.length;t++){var s=a[t];!n.has(s.escapedName)&&!Fa(s)&&n.set(s.escapedName,s)}}function Fa(n){return!!n.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(n.valueDeclaration)&&e.isStatic(n.valueDeclaration)}function ui(n){if(!n.declaredProperties){var r=n.symbol,t=Hc(r);n.declaredProperties=nf(t),n.declaredCallSignatures=e.emptyArray,n.declaredConstructSignatures=e.emptyArray,n.declaredIndexInfos=e.emptyArray,n.declaredCallSignatures=uf(t.get("__call")),n.declaredConstructSignatures=uf(t.get("__new")),n.declaredIndexInfos=X1(r)}return n}function Gi(n){return!!(n.flags&8576)}function ds(n){if(!e.isComputedPropertyName(n)&&!e.isElementAccessExpression(n))return!1;var r=e.isComputedPropertyName(n)?n.expression:n.argumentExpression;return e.isEntityNameExpression(r)&&Gi(e.isComputedPropertyName(n)?od(n):ll(r))}function ml(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function xl(n){var r=e.getNameOfDeclaration(n);return!!r&&ds(r)}function wl(n){return!e.hasDynamicName(n)||xl(n)}function ru(n){return e.isDynamicName(n)&&!ds(n)}function ql(n){return n.flags&8192?n.escapedName:n.flags&384?e.escapeLeadingUnderscores(""+n.value):e.Debug.fail()}function yp(n,r,t){e.Debug.assert(!!(e.getCheckFlags(n)&4096),"Expected a late-bound symbol."),n.flags|=t,Za(r.symbol).lateSymbol=n,n.declarations?r.symbol.isReplaceableByMethod||n.declarations.push(r):n.declarations=[r],t&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==r.kind)&&(n.valueDeclaration=r)}function Jp(n,r,t,a){e.Debug.assert(!!a.symbol,"The member is expected to have a symbol.");var s=da(a);if(!s.resolvedSymbol){s.resolvedSymbol=a.symbol;var u=e.isBinaryExpression(a)?a.left:a.name,S=e.isElementAccessExpression(u)?ll(u.argumentExpression):od(u);if(Gi(S)){var F=ql(S),ve=a.symbol.flags,Ge=t.get(F);Ge||t.set(F,Ge=fo(0,F,4096));var Je=r&&r.get(F);if(Ge.flags&tl(ve)||Je){var Xe=Je?e.concatenate(Je.declarations,Ge.declarations):Ge.declarations,tn=!(S.flags&8192)&&e.unescapeLeadingUnderscores(F)||e.declarationNameToString(u);e.forEach(Xe,function(Dn){return Jn(e.getNameOfDeclaration(Dn)||Dn,e.Diagnostics.Property_0_was_also_declared_here,tn)}),Jn(u||a,e.Diagnostics.Duplicate_property_0,tn),Ge=fo(0,F,4096)}return Ge.nameType=S,yp(Ge,a,ve),Ge.parent?e.Debug.assert(Ge.parent===n,"Existing symbol parent should match new one"):Ge.parent=n,s.resolvedSymbol=Ge}}return s.resolvedSymbol}function Kp(n,r){var t=Za(n);if(!t[r]){var a=r==="resolvedExports",s=a?n.flags&1536?yf(n):n.exports:n.members;t[r]=s||Ne;for(var u=e.createSymbolTable(),S=0,F=n.declarations||e.emptyArray;S<F.length;S++){var ve=F[S],Ge=e.getMembersOfDeclaration(ve);if(Ge)for(var Je=0,Xe=Ge;Je<Xe.length;Je++){var tn=Xe[Je];a===e.hasStaticModifier(tn)&&xl(tn)&&Jp(n,s,u,tn)}}var Dn=n.assignmentDeclarationMembers;if(Dn)for(var nr=e.arrayFrom(Dn.values()),sr=0,Ir=nr;sr<Ir.length;sr++){var tn=Ir[sr],xr=e.getAssignmentDeclarationKind(tn),Gr=xr===3||e.isBinaryExpression(tn)&&Hh(tn,xr)||xr===9||xr===6;a===!Gr&&xl(tn)&&Jp(n,s,u,tn)}t[r]=fd(s,u)||Ne}return t[r]}function Hc(n){return n.flags&6256?Kp(n,"resolvedMembers"):n.members||Ne}function zp(n){if(n.flags&106500&&n.escapedName==="__computed"){var r=Za(n);if(!r.lateSymbol&&e.some(n.declarations,xl)){var t=Eo(n.parent);e.some(n.declarations,e.hasStaticModifier)?al(t):Hc(t)}return r.lateSymbol||(r.lateSymbol=n)}return n}function Ac(n,r,t){if(e.getObjectFlags(n)&4){var a=n.target,s=Co(n);if(e.length(a.typeParameters)===e.length(s)){var u=Yf(a,e.concatenate(s,[r||a.thisType]));return t?Il(u):u}}else if(n.flags&2097152){var S=e.sameMap(n.types,function(F){return Ac(F,r,t)});return S!==n.types?Ro(S):n}return t?Il(n):n}function qv(n,r,t,a){var s,u,S,F,ve;e.rangeEquals(t,a,0,t.length)?(u=r.symbol?Hc(r.symbol):e.createSymbolTable(r.declaredProperties),S=r.declaredCallSignatures,F=r.declaredConstructSignatures,ve=r.declaredIndexInfos):(s=uc(t,a),u=ga(r.declaredProperties,s,t.length===1),S=hh(r.declaredCallSignatures,s),F=hh(r.declaredConstructSignatures,s),ve=KT(r.declaredIndexInfos,s));var Ge=vc(r);if(Ge.length){r.symbol&&u===Hc(r.symbol)&&(u=e.createSymbolTable(r.declaredProperties)),el(n,u,S,F,ve);for(var Je=e.lastOrUndefined(a),Xe=0,tn=Ge;Xe<tn.length;Xe++){var Dn=tn[Xe],nr=Je?Ac(fi(Dn,s),Je):Dn;_a(u,bo(nr)),S=e.concatenate(S,zr(nr,0)),F=e.concatenate(F,zr(nr,1));var sr=nr!==cr?Ei(nr):[Uu(gr,cr,!1)];ve=e.concatenate(ve,e.filter(sr,function(Ir){return!oa(ve,Ir.keyType)}))}}el(n,u,S,F,ve)}function wy(n){qv(n,ui(n),e.emptyArray,e.emptyArray)}function Wg(n){var r=ui(n.target),t=e.concatenate(r.typeParameters,[r.thisType]),a=Co(n),s=a.length===t.length?a:e.concatenate(a,[n]);qv(n,r,t,s)}function Tu(n,r,t,a,s,u,S,F){var ve=new te(Ue,F);return ve.declaration=n,ve.typeParameters=r,ve.parameters=a,ve.thisParameter=t,ve.resolvedReturnType=s,ve.resolvedTypePredicate=u,ve.minArgumentCount=S,ve.resolvedMinArgumentCount=void 0,ve.target=void 0,ve.mapper=void 0,ve.compositeSignatures=void 0,ve.compositeKind=void 0,ve}function gm(n){var r=Tu(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&39);return r.target=n.target,r.mapper=n.mapper,r.compositeSignatures=n.compositeSignatures,r.compositeKind=n.compositeKind,r}function jg(n,r){var t=gm(n);return t.compositeSignatures=r,t.compositeKind=1048576,t.target=void 0,t.mapper=void 0,t}function Xv(n,r){if((n.flags&24)===r)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});var t=r===8?"inner":"outer";return n.optionalCallSignatureCache[t]||(n.optionalCallSignatureCache[t]=K_(n,r))}function K_(n,r){e.Debug.assert(r===8||r===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var t=gm(n);return t.flags|=r,t}function z_(n,r){if(N(n)){var t=n.parameters.length-1,a=kt(n.parameters[t]);if(ji(a))return[s(a,t)];if(!r&&a.flags&1048576&&e.every(a.types,ji))return e.map(a.types,function(u){return s(u,t)})}return[n.parameters];function s(u,S){var F=Co(u),ve=u.target.labeledElementDeclarations,Ge=e.map(F,function(Je,Xe){var tn=!!ve&&ly(ve[Xe]),Dn=tn||k_(n,S+Xe,u),nr=u.target.elementFlags[Xe],sr=nr&12?32768:nr&2?16384:0,Ir=fo(1,Dn,sr);return Ir.type=nr&4?bl(Je):Je,Ir});return e.concatenate(n.parameters.slice(0,S),Ge)}}function Yv(n){var r=cf(n),t=zr(r,1),a=e.getClassLikeDeclarationOfSymbol(n.symbol),s=!!a&&e.hasSyntacticModifier(a,128);if(t.length===0)return[Tu(void 0,n.localTypeParameters,void 0,e.emptyArray,n,void 0,0,s?4:0)];for(var u=nu(n),S=e.isInJSFile(u),F=lE(u),ve=e.length(F),Ge=[],Je=0,Xe=t;Je<Xe.length;Je++){var tn=Xe[Je],Dn=Lu(tn.typeParameters),nr=e.length(tn.typeParameters);if(S||ve>=Dn&&ve<=nr){var sr=nr?sh(tn,np(F,tn.typeParameters,Dn,S)):gm(tn);sr.typeParameters=n.localTypeParameters,sr.resolvedReturnType=n,sr.flags=s?sr.flags|4:sr.flags&-5,Ge.push(sr)}}return Ge}function Hg(n,r,t,a,s){for(var u=0,S=n;u<S.length;u++){var F=S[u];if(hv(F,r,t,a,s,t?jA:ug))return F}}function Qv(n,r,t){if(r.typeParameters){if(t>0)return;for(var a=1;a<n.length;a++)if(!Hg(n[a],r,!1,!1,!1))return;return[r]}for(var s,a=0;a<n.length;a++){var u=a===t?r:Hg(n[a],r,!0,!1,!0);if(!u)return;s=e.appendIfUnique(s,u)}return s}function a_(n){for(var r,t,a=0;a<n.length;a++){if(n[a].length===0)return e.emptyArray;n[a].length>1&&(t=t===void 0?a:-1);for(var s=0,u=n[a];s<u.length;s++){var S=u[s];if(!r||!Hg(r,S,!1,!1,!0)){var F=Qv(n,S,a);if(F){var ve=S;if(F.length>1){var Ge=S.thisParameter,Je=e.forEach(F,function(ct){return ct.thisParameter});if(Je){var Xe=Ro(e.mapDefined(F,function(ct){return ct.thisParameter&&kt(ct.thisParameter)}));Ge=Sm(Je,Xe)}ve=jg(S,F),ve.thisParameter=Ge}(r||(r=[])).push(ve)}}}}if(!e.length(r)&&t!==-1){for(var tn=n[t!==void 0?t:0],Dn=tn.slice(),nr=function(ct){if(ct!==tn){var Vt=ct[0];if(e.Debug.assert(!!Vt,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),Dn=Vt.typeParameters&&e.some(Dn,function(_t){return!!_t.typeParameters&&!Jg(Vt.typeParameters,_t.typeParameters)})?void 0:e.map(Dn,function(_t){return Gy(_t,Vt)}),!Dn)return"break"}},sr=0,Ir=n;sr<Ir.length;sr++){var xr=Ir[sr],Gr=nr(xr);if(Gr==="break")break}r=Dn}return r||e.emptyArray}function Jg(n,r){if(e.length(n)!==e.length(r))return!1;if(!n||!r)return!0;for(var t=uc(r,n),a=0;a<n.length;a++){var s=n[a],u=r[a];if(s!==u&&!$f(d_(s)||cn,fi(d_(u)||cn,t)))return!1}return!0}function q_(n,r,t){if(!n||!r)return n||r;var a=Ro([kt(n),fi(kt(r),t)]);return Sm(n,a)}function Fy(n,r,t){for(var a=ac(n),s=ac(r),u=a>=s?n:r,S=u===n?r:n,F=u===n?a:s,ve=Ku(n)||Ku(r),Ge=ve&&!Ku(u),Je=new Array(F+(Ge?1:0)),Xe=0;Xe<F;Xe++){var tn=im(u,Xe);u===r&&(tn=fi(tn,t));var Dn=im(S,Xe)||cn;S===r&&(Dn=fi(Dn,t));var nr=Ro([tn,Dn]),sr=ve&&!Ge&&Xe===F-1,Ir=Xe>=Ju(u)&&Xe>=Ju(S),xr=Xe>=a?void 0:k_(n,Xe),Gr=Xe>=s?void 0:k_(r,Xe),ct=xr===Gr?xr:xr?Gr?void 0:xr:Gr,Vt=fo(1|(Ir&&!sr?16777216:0),ct||"arg"+Xe);Vt.type=sr?bl(nr):nr,Je[Xe]=Vt}if(Ge){var _t=fo(1,"args");_t.type=bl(fu(S,F)),S===r&&(_t.type=fi(_t.type,t)),Je[F]=_t}return Je}function Gy(n,r){var t=n.typeParameters||r.typeParameters,a;n.typeParameters&&r.typeParameters&&(a=uc(r.typeParameters,n.typeParameters));var s=n.declaration,u=Fy(n,r,a),S=q_(n.thisParameter,r.thisParameter,a),F=Math.max(n.minArgumentCount,r.minArgumentCount),ve=Tu(s,t,S,u,void 0,void 0,F,(n.flags|r.flags)&39);return ve.compositeKind=1048576,ve.compositeSignatures=e.concatenate(n.compositeKind!==2097152&&n.compositeSignatures||[n],[r]),a&&(ve.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?Em(n.mapper,a):a),ve}function Zv(n){var r=Ei(n[0]);if(r){for(var t=[],a=function(F){var ve=F.keyType;e.every(n,function(Ge){return!!po(Ge,ve)})&&t.push(Uu(ve,Sa(e.map(n,function(Ge){return Ns(Ge,ve)})),e.some(n,function(Ge){return po(Ge,ve).isReadonly})))},s=0,u=r;s<u.length;s++){var S=u[s];a(S)}return t}return e.emptyArray}function By(n){var r=a_(e.map(n.types,function(s){return s===Jo?[Mi]:zr(s,0)})),t=a_(e.map(n.types,function(s){return zr(s,1)})),a=Zv(n.types);el(n,Ne,r,t,a)}function km(n,r){return n?r?Ro([n,r]):n:r}function X_(n){var r=e.countWhere(n,function(s){return zr(s,1).length>0}),t=e.map(n,Yo);if(r>0&&r===e.countWhere(t,function(s){return s})){var a=t.indexOf(!0);t[a]=!1}return t}function Uy(n,r,t,a){for(var s=[],u=0;u<r.length;u++)u===a?s.push(n):t[u]&&s.push(_o(zr(r[u],1)[0]));return Ro(s)}function $v(n){for(var r,t,a,s=n.types,u=X_(s),S=e.countWhere(u,function(Ge){return Ge}),F=function(Ge){var Je=n.types[Ge];if(!u[Ge]){var Xe=zr(Je,1);Xe.length&&S>0&&(Xe=e.map(Xe,function(tn){var Dn=gm(tn);return Dn.resolvedReturnType=Uy(_o(tn),s,u,Ge),Dn})),t=Kg(t,Xe)}r=Kg(r,zr(Je,0)),a=e.reduceLeft(Ei(Je),function(tn,Dn){return eh(tn,Dn,!1)},a)},ve=0;ve<s.length;ve++)F(ve);el(n,Ne,r||e.emptyArray,t||e.emptyArray,a||e.emptyArray)}function Kg(n,r){for(var t=function(S){(!n||e.every(n,function(F){return!hv(F,S,!1,!1,!1,ug)}))&&(n=e.append(n,S))},a=0,s=r;a<s.length;a++){var u=s[a];t(u)}return n}function eh(n,r,t){if(n)for(var a=0;a<n.length;a++){var s=n[a];if(s.keyType===r.keyType)return n[a]=Uu(s.keyType,t?Sa([s.type,r.type]):Ro([s.type,r.type]),t?s.isReadonly||r.isReadonly:s.isReadonly&&r.isReadonly),n}return e.append(n,r)}function Vy(n){var r=Eo(n.symbol);if(n.target){el(n,Ne,e.emptyArray,e.emptyArray,e.emptyArray);var t=ga(qf(n.target),n.mapper,!1),a=hh(zr(n.target,0),n.mapper),s=hh(zr(n.target,1),n.mapper),u=KT(Ei(n.target),n.mapper);el(n,t,a,s,u)}else if(r.flags&2048){el(n,Ne,e.emptyArray,e.emptyArray,e.emptyArray);var t=Hc(r),a=uf(t.get("__call")),s=uf(t.get("__new")),u=X1(r);el(n,t,a,s,u)}else{var t=Ne,u=void 0;if(r.exports&&(t=al(r),r===hn)){var S=new e.Map;t.forEach(function(nr){nr.flags&418||S.set(nr.escapedName,nr)}),t=S}var F=void 0;if(el(n,t,e.emptyArray,e.emptyArray,e.emptyArray),r.flags&32){var ve=lc(r),Ge=cf(ve);Ge.flags&11272192?(t=e.createSymbolTable(_d(t)),_a(t,bo(Ge))):Ge===cr&&(F=Uu(gr,cr,!1))}var Je=iE(t);if(Je?u=Y1(Je):(F&&(u=e.append(u,F)),r.flags&384&&(rs(r).flags&32||e.some(n.properties,function(nr){return!!(kt(nr).flags&296)}))&&(u=e.append(u,wi))),el(n,t,e.emptyArray,e.emptyArray,u||e.emptyArray),r.flags&8208&&(n.callSignatures=uf(r)),r.flags&32){var Xe=lc(r),s=r.members?uf(r.members.get("__constructor")):e.emptyArray;r.flags&16&&(s=e.addRange(s.slice(),e.mapDefined(n.callSignatures,function(sr){return Nu(sr.declaration)?Tu(sr.declaration,sr.typeParameters,sr.thisParameter,sr.parameters,Xe,void 0,sr.minArgumentCount,sr.flags&39):void 0}))),s.length||(s=Yv(Xe)),n.constructSignatures=s}}}function Wy(n,r,t){return fi(n,uc([r.indexType,r.objectType],[Zf(0),Vu([t])]))}function jy(n){for(var r=po(n.source,gr),t=au(n.mappedType),a=!(t&1),s=t&4?0:16777216,u=r?[Uu(gr,kh(r.type,n.mappedType,n.constraintType),a&&r.isReadonly)]:e.emptyArray,S=e.createSymbolTable(),F=0,ve=bo(n.source);F<ve.length;F++){var Ge=ve[F],Je=8192|(a&&df(Ge)?8:0),Xe=fo(4|Ge.flags&s,Ge.escapedName,Je);if(Xe.declarations=Ge.declarations,Xe.nameType=Za(Ge).nameType,Xe.propertyType=kt(Ge),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){var tn=n.constraintType.type.objectType,Dn=Wy(n.mappedType,n.constraintType.type,tn);Xe.mappedType=Dn,Xe.constraintType=ff(tn)}else Xe.mappedType=n.mappedType,Xe.constraintType=n.constraintType;S.set(Ge.escapedName,Xe)}el(n,S,e.emptyArray,e.emptyArray,u)}function i_(n){if(n.flags&4194304){var r=Il(n.type);return b_(r)?bT(r):ff(r)}if(n.flags&16777216){if(n.root.isDistributive){var t=n.checkType,a=i_(t);if(a!==t)return PE(n,bm(n.root.checkType,a,n.mapper))}return n}return n.flags&1048576?Ps(n,i_):n.flags&2097152?Ro(e.sameMap(n.types,i_)):n}function zg(n){return e.getCheckFlags(n)&4096}function Hy(n){var r=e.createSymbolTable(),t;el(n,Ne,e.emptyArray,e.emptyArray,e.emptyArray);var a=Su(n),s=tu(n),u=$d(n.target||n),S=Mc(n.target||n),F=Il(Q_(n)),ve=au(n),Ge=X?128:8576;if(Y_(n)){for(var Je=0,Xe=bo(F);Je<Xe.length;Je++){var tn=Xe[Je];Ir(Om(tn,Ge))}if(F.flags&1)Ir(gr);else for(var Dn=0,nr=Ei(F);Dn<nr.length;Dn++){var sr=nr[Dn];(!X||sr.keyType.flags&134217732)&&Ir(sr.keyType)}}else Wm(i_(s),Ir);el(n,r,e.emptyArray,e.emptyArray,t||e.emptyArray);function Ir(Gr){var ct=u?fi(u,pv(n.mapper,a,Gr)):Gr;Wm(ct,function(Vt){return xr(Gr,Vt)})}function xr(Gr,ct){if(Gi(ct)){var Vt=ql(ct),_t=r.get(Vt);if(_t)_t.nameType=Sa([_t.nameType,ct]),_t.keyType=Sa([_t.keyType,Gr]);else{var Ta=Gi(Gr)?wn(F,ql(Gr)):void 0,sa=!!(ve&4||!(ve&8)&&Ta&&Ta.flags&16777216),mi=!!(ve&1||!(ve&2)&&Ta&&df(Ta)),ai=He&&!sa&&Ta&&Ta.flags&16777216,Hi=Ta?zg(Ta):0,ii=fo(4|(sa?16777216:0),Vt,Hi|262144|(mi?8:0)|(ai?524288:0));ii.mappedType=n,ii.nameType=ct,ii.keyType=Gr,Ta&&(ii.syntheticOrigin=Ta,ii.declarations=u?void 0:Ta.declarations),r.set(Vt,ii)}}else if(lh(ct)||ct.flags&33){var go=ct.flags&5?gr:ct.flags&40?Dr:ct,xo=fi(S,pv(n.mapper,a,Gr)),Yr=Uu(go,xo,!!(ve&1));t=eh(t,Yr,!0)}}}function Jy(n){if(!n.type){var r=n.mappedType;if(!Vc(n,0))return r.containsError=!0,J;var t=Mc(r.target||r),a=pv(r.mapper,Su(r),n.keyType),s=fi(t,a),u=He&&n.flags&16777216&&!bs(s,49152)?td(s,!0):n.checkFlags&524288?nb(s):s;Oc()||(Jn(fe,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Qa(n),Lt(r)),u=J),n.type=u}return n.type}function Su(n){return n.typeParameter||(n.typeParameter=zf(wt(n.declaration.typeParameter)))}function tu(n){return n.constraintType||(n.constraintType=yc(Su(n))||J)}function $d(n){return n.declaration.nameType?n.nameType||(n.nameType=fi(Ra(n.declaration.nameType),n.mapper)):void 0}function Mc(n){return n.templateType||(n.templateType=n.declaration.type?fi(Xi(Ra(n.declaration.type),!0,!!(au(n)&4)),n.mapper):J)}function qg(n){return e.getEffectiveConstraintOfTypeParameter(n.declaration.typeParameter)}function Y_(n){var r=qg(n);return r.kind===191&&r.operator===139}function Q_(n){if(!n.modifiersType)if(Y_(n))n.modifiersType=fi(Ra(qg(n).type),n.mapper);else{var r=EE(n.declaration),t=tu(r),a=t&&t.flags&262144?yc(t):t;n.modifiersType=a&&a.flags&4194304?fi(a.type,n.mapper):cn}return n.modifiersType}function au(n){var r=n.declaration;return(r.readonlyToken?r.readonlyToken.kind===40?2:1:0)|(r.questionToken?r.questionToken.kind===40?8:4:0)}function nh(n){var r=au(n);return r&8?-1:r&4?1:0}function Rm(n){var r=nh(n),t=Q_(n);return r||(hc(t)?nh(t):0)}function rh(n){return!!(e.getObjectFlags(n)&32&&au(n)&4)}function hc(n){return!!(e.getObjectFlags(n)&32)&&Pm(tu(n))}function Du(n){return n.members||(n.flags&524288?n.objectFlags&4?Wg(n):n.objectFlags&3?wy(n):n.objectFlags&1024?jy(n):n.objectFlags&16?Vy(n):n.objectFlags&32&&Hy(n):n.flags&1048576?By(n):n.flags&2097152&&$v(n)),n}function qf(n){return n.flags&524288?Du(n).properties:e.emptyArray}function Df(n,r){if(n.flags&524288){var t=Du(n),a=t.members.get(r);if(a&&Nc(a))return a}}function o_(n){if(!n.resolvedProperties){for(var r=e.createSymbolTable(),t=0,a=n.types;t<a.length;t++){for(var s=a[t],u=0,S=bo(s);u<S.length;u++){var F=S[u];if(!r.has(F.escapedName)){var ve=$_(n,F.escapedName);ve&&r.set(F.escapedName,ve)}}if(n.flags&1048576&&Ei(s).length===0)break}n.resolvedProperties=nf(r)}return n.resolvedProperties}function bo(n){return n=l_(n),n.flags&3145728?o_(n):qf(n)}function Ky(n,r){var t=r.properties;return t.some(function(a){var s=a.name&&tp(a.name),u=s&&Gi(s)?ql(s):void 0,S=u===void 0?void 0:Os(n,u);return!!S&&Gm(S)&&!mo(sm(a),S)})}function zy(n){var r=Sa(n);if(!(r.flags&1048576))return R1(r);for(var t=e.createSymbolTable(),a=0,s=n;a<s.length;a++)for(var u=s[a],S=0,F=R1(u);S<F.length;S++){var ve=F[S].escapedName;if(!t.has(ve)){var Ge=oh(r,ve);Ge&&t.set(ve,Ge)}}return e.arrayFrom(t.values())}function Ep(n){return n.flags&262144?yc(n):n.flags&8388608?qy(n):n.flags&16777216?Xy(n):Xl(n)}function yc(n){return Zg(n)?d_(n):void 0}function qy(n){return Zg(n)?Yg(n):void 0}function Xg(n){var r=Qf(n,!1);return r!==n?r:Ep(n)}function Yg(n){var r=Xg(n.indexType);if(r&&r!==n.indexType){var t=ap(n.objectType,r,n.accessFlags);if(t)return t}var a=Xg(n.objectType);if(a&&a!==n.objectType)return ap(a,n.indexType,n.accessFlags)}function Qg(n){if(!n.resolvedDefaultConstraint){var r=hA(n),t=op(n);n.resolvedDefaultConstraint=no(r)?t:no(t)?r:Sa([r,t])}return n.resolvedDefaultConstraint}function th(n){if(n.root.isDistributive&&n.restrictiveInstantiation!==n){var r=Qf(n.checkType,!1),t=r===n.checkType?Ep(r):r;if(t&&t!==n.checkType){var a=PE(n,bm(n.root.checkType,t,n.mapper));if(!(a.flags&131072))return a}}}function ah(n){return th(n)||Qg(n)}function Xy(n){return Zg(n)?ah(n):void 0}function Yy(n,r){for(var t,a=!1,s=0,u=n;s<u.length;s++){var S=u[s];if(S.flags&465829888){for(var F=Ep(S);F&&F.flags&21233664;)F=Ep(F);F&&(t=e.append(t,F),r&&(t=e.append(t,S)))}else S.flags&469892092&&(a=!0)}if(t&&(r||a)){if(a)for(var ve=0,Ge=n;ve<Ge.length;ve++){var S=Ge[ve];S.flags&469892092&&(t=e.append(t,S))}return Ro(t)}}function Xl(n){if(n.flags&464781312){var r=$g(n);return r!==Va&&r!==li?r:void 0}return n.flags&4194304?at:void 0}function s_(n){return Xl(n)||n}function Zg(n){return $g(n)!==li}function $g(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;var r=[];return n.resolvedBaseConstraint=Ac(t(n),n);function t(u){if(!u.immediateBaseConstraint){if(!Vc(u,4))return li;var S=void 0;if((r.length<10||r.length<50&&!JE(u,r,r.length))&&(r.push(u),S=s(Qf(u,!1)),r.pop()),!Oc()){if(u.flags&262144){var F=Q1(u);if(F){var ve=Jn(F,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Lt(u));fe&&!e.isNodeDescendantOf(F,fe)&&!e.isNodeDescendantOf(fe,F)&&e.addRelatedInfo(ve,e.createDiagnosticForNode(fe,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}S=li}u.immediateBaseConstraint=S||Va}return u.immediateBaseConstraint}function a(u){var S=t(u);return S!==Va&&S!==li?S:void 0}function s(u){if(u.flags&262144){var S=d_(u);return u.isThisType||!S?S:a(S)}if(u.flags&3145728){for(var F=u.types,ve=[],Ge=!1,Je=0,Xe=F;Je<Xe.length;Je++){var tn=Xe[Je],Dn=a(tn);Dn?(Dn!==tn&&(Ge=!0),ve.push(Dn)):Ge=!0}return Ge?u.flags&1048576&&ve.length===F.length?Sa(ve):u.flags&2097152&&ve.length?Ro(ve):void 0:u}if(u.flags&4194304)return at;if(u.flags&134217728){var F=u.types,nr=e.mapDefined(F,a);return nr.length===F.length?g_(u.texts,nr):gr}if(u.flags&268435456){var S=a(u.type);return S?ph(u.symbol,S):gr}if(u.flags&8388608){var sr=a(u.objectType),Ir=a(u.indexType),xr=sr&&Ir&&ap(sr,Ir,u.accessFlags);return xr&&a(xr)}if(u.flags&16777216){var S=ah(u);return S&&a(S)}return u.flags&33554432?a(u.substitute):u}}function ih(n){return n.resolvedApparentType||(n.resolvedApparentType=Ac(n,n,!0))}function Z_(n){if(n.default)n.default===zi&&(n.default=li);else if(n.target){var r=Z_(n.target);n.default=r?fi(r,n.mapper):Va}else{n.default=zi;var t=n.symbol&&e.forEach(n.symbol.declarations,function(s){return e.isTypeParameterDeclaration(s)&&s.default}),a=t?Ra(t):Va;n.default===zi&&(n.default=a)}return n.default}function ep(n){var r=Z_(n);return r!==Va&&r!==li?r:void 0}function Qy(n){return Z_(n)!==li}function Zy(n){return!!(n.symbol&&e.forEach(n.symbol.declarations,function(r){return e.isTypeParameterDeclaration(r)&&r.default}))}function ev(n){return n.resolvedApparentType||(n.resolvedApparentType=$y(n))}function $y(n){var r=kE(n);if(r&&!n.declaration.nameType){var t=yc(r);if(t&&(Gl(t)||ji(t)))return fi(n,bm(r,t,n.mapper))}return n}function Il(n){var r=n.flags&465829888?Xl(n)||cn:n;return e.getObjectFlags(r)&32?ev(r):r.flags&2097152?ih(r):r.flags&402653316?ia:r.flags&296?ti:r.flags&2112?RL(we>=7):r.flags&528?va:r.flags&12288?pT(we>=2):r.flags&67108864?Lr:r.flags&4194304?at:r.flags&2&&!He?Lr:r}function l_(n){return iu(Il(iu(n)))}function oh(n,r,t){for(var a,s,u,S,F,ve=n.flags&1048576,Ge=ve?0:16777216,Je=4,Xe=0,tn=!1,Dn=0,nr=n.types;Dn<nr.length;Dn++){var sr=nr[Dn],Ir=Il(sr);if(!(Ir===J||Ir.flags&131072)){var xr=wn(Ir,r,t),Gr=xr?e.getDeclarationModifierFlagsFromSymbol(xr):0;if(xr){if(ve?Ge|=xr.flags&16777216:Ge&=xr.flags,!u)u=xr;else if(xr!==u){var ct=(Ym(xr)||xr)===(Ym(u)||u);if(ct&&KE(u,xr,function(Ga,na){return Ga===na?-1:0})===-1)tn=!!u.parent&&!!e.length(Nt(u.parent));else{S||(S=new e.Map,S.set(C(u),u));var Vt=C(xr);S.has(Vt)||S.set(Vt,xr)}}Xe|=(df(xr)?8:0)|(Gr&24?0:256)|(Gr&16?512:0)|(Gr&8?1024:0)|(Gr&32?2048:0),Vb(xr)||(Je=2)}else if(ve){var _t=!ml(r)&&Yl(Ir,r);_t?(Xe|=32|(_t.isReadonly?8:0),F=e.append(F,ji(Ir)?dg(Ir)||Rn:_t.type)):xp(Ir)&&!(e.getObjectFlags(Ir)&4194304)?(Xe|=32,F=e.append(F,Rn)):Xe|=16}}}if(!(!u||ve&&(S||Xe&48)&&Xe&1536)){if(!S&&!(Xe&16)&&!F)if(tn){var Ta=Sm(u,u.type);return Ta.parent=(s=(a=u.valueDeclaration)===null||a===void 0?void 0:a.symbol)===null||s===void 0?void 0:s.parent,Ta.containingType=n,Ta.mapper=u.mapper,Ta}else return u;for(var sa=S?e.arrayFrom(S.values()):[u],mi,ai,Hi,ii=[],go,xo=!1,Yr=0,Pr=sa;Yr<Pr.length;Yr++){var xr=Pr[Yr];go?xr.valueDeclaration&&xr.valueDeclaration!==go&&(xo=!0):go=xr.valueDeclaration,mi=e.addRange(mi,xr.declarations);var Ir=kt(xr);ai?Ir!==ai&&(Xe|=64):(ai=Ir,Hi=Za(xr).nameType),Gm(Ir)&&(Xe|=128),Ir.flags&131072&&(Xe|=131072),ii.push(Ir)}e.addRange(ii,F);var Aa=fo(4|Ge,r,Je|Xe);return Aa.containingType=n,!xo&&go&&(Aa.valueDeclaration=go,go.symbol.parent&&(Aa.parent=go.symbol.parent)),Aa.declarations=mi,Aa.nameType=Hi,ii.length>2?(Aa.checkFlags|=65536,Aa.deferralParent=n,Aa.deferralConstituents=ii):Aa.type=ve?Sa(ii):Ro(ii),Aa}}function nv(n,r,t){var a,s,u=!((a=n.propertyCacheWithoutObjectFunctionPropertyAugment)===null||a===void 0)&&a.get(r)||!t?(s=n.propertyCache)===null||s===void 0?void 0:s.get(r):void 0;if(!u&&(u=oh(n,r,t),u)){var S=t?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):n.propertyCache||(n.propertyCache=e.createSymbolTable());S.set(r,u)}return u}function $_(n,r,t){var a=nv(n,r,t);return a&&!(e.getCheckFlags(a)&16)?a:void 0}function iu(n){return n.flags&1048576&&n.objectFlags&33554432?n.resolvedReducedType||(n.resolvedReducedType=eE(n)):n.flags&2097152?(n.objectFlags&33554432||(n.objectFlags|=33554432|(e.some(o_(n),nE)?67108864:0)),n.objectFlags&67108864?Jt:n):n}function eE(n){var r=e.sameMap(n.types,iu);if(r===n.types)return n;var t=Sa(r);return t.flags&1048576&&(t.resolvedReducedType=t),t}function nE(n){return l(n)||Q(n)}function l(n){return!(n.flags&16777216)&&(e.getCheckFlags(n)&131264)===192&&!!(kt(n).flags&131072)}function Q(n){return!n.valueDeclaration&&!!(e.getCheckFlags(n)&1024)}function ln(n,r){if(r.flags&2097152&&e.getObjectFlags(r)&67108864){var t=e.find(o_(r),l);if(t)return e.chainDiagnosticMessages(n,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Lt(r,void 0,536870912),Qa(t));var a=e.find(o_(r),Q);if(a)return e.chainDiagnosticMessages(n,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Lt(r,void 0,536870912),Qa(a))}return n}function wn(n,r,t){if(n=l_(n),n.flags&524288){var a=Du(n),s=a.members.get(r);if(s&&Nc(s))return s;if(t)return;var u=a===$t?Jo:a.callSignatures.length?is:a.constructSignatures.length?mn:void 0;if(u){var S=Df(u,r);if(S)return S}return Df(us,r)}if(n.flags&3145728)return $_(n,r,t)}function Fr(n,r){if(n.flags&3670016){var t=Du(n);return r===0?t.callSignatures:t.constructSignatures}return e.emptyArray}function zr(n,r){return Fr(l_(n),r)}function oa(n,r){return e.find(n,function(t){return t.keyType===r})}function La(n,r){for(var t,a,s,u=0,S=n;u<S.length;u++){var F=S[u];F.keyType===gr?t=F:yi(r,F.keyType)&&(a?(s||(s=[a])).push(F):a=F)}return s?Uu(cn,Ro(e.map(s,function(ve){return ve.type})),e.reduceLeft(s,function(ve,Ge){return ve&&Ge.isReadonly},!0)):a||(t&&yi(r,gr)?t:void 0)}function yi(n,r){return mo(n,r)||r===gr&&mo(n,Dr)||r===Dr&&!!(n.flags&128)&&id(n.value)}function Ci(n){if(n.flags&3670016){var r=Du(n);return r.indexInfos}return e.emptyArray}function Ei(n){return Ci(l_(n))}function po(n,r){return oa(Ei(n),r)}function Ns(n,r){var t;return(t=po(n,r))===null||t===void 0?void 0:t.type}function _l(n,r){return Ei(n).filter(function(t){return yi(r,t.keyType)})}function ks(n,r){return La(Ei(n),r)}function Yl(n,r){return ks(n,ml(r)?qt:Jc(e.unescapeLeadingUnderscores(r)))}function Vs(n){for(var r,t=0,a=e.getEffectiveTypeParameterDeclarations(n);t<a.length;t++){var s=a[t];r=e.appendIfUnique(r,zf(s.symbol))}return r}function ou(n){var r=[];return n.forEach(function(t,a){dl(a)||r.push(t)}),r}function xd(n){return e.isInJSFile(n)&&(n.type&&n.type.kind===311||e.getJSDocParameterTags(n).some(function(r){var t=r.isBracketed,a=r.typeExpression;return t||!!a&&a.type.kind===311}))}function qp(n,r){if(!e.isExternalModuleNameRelative(n)){var t=$o(xe,'"'+n+'"',512);return t&&r?Eo(t):t}}function Xf(n){if(e.hasQuestionToken(n)||u_(n)||xd(n))return!0;if(n.initializer){var r=su(n.parent),t=n.parent.parameters.indexOf(n);return e.Debug.assert(t>=0),t>=Ju(r,3)}var a=e.getImmediatelyInvokedFunctionExpression(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=a.arguments.length:!1}function c_(n){return e.isPropertyDeclaration(n)&&n.questionToken}function u_(n){if(!e.isJSDocPropertyLikeTag(n))return!1;var r=n.isBracketed,t=n.typeExpression;return r||!!t&&t.type.kind===311}function Xp(n,r,t,a){return{kind:n,parameterName:r,parameterIndex:t,type:a}}function Lu(n){var r=0;if(n)for(var t=0;t<n.length;t++)Zy(n[t])||(r=t+1);return r}function np(n,r,t,a){var s=e.length(r);if(!s)return[];var u=e.length(n);if(a||u>=t&&u<=s){for(var S=n?n.slice():[],F=u;F<s;F++)S[F]=J;for(var ve=pb(a),F=u;F<s;F++){var Ge=ep(r[F]);a&&Ge&&($f(Ge,cn)||$f(Ge,Lr))&&(Ge=cr),S[F]=Ge?fi(Ge,uc(r,S)):ve}return S.length=r.length,S}return n&&n.slice()}function su(n){var r=da(n);if(!r.resolvedSignature){var t=[],a=0,s=0,u=void 0,S=!1,F=e.getImmediatelyInvokedFunctionExpression(n),ve=e.isJSDocConstructSignature(n),Ge=!F&&e.isInJSFile(n)&&e.isValueSignatureDeclaration(n)&&!e.hasJSDocParameterTags(n)&&!e.getJSDocType(n);Ge&&(a|=32);for(var Je=ve?1:0;Je<n.parameters.length;Je++){var Xe=n.parameters[Je],tn=Xe.symbol,Dn=e.isJSDocParameterTag(Xe)?Xe.typeExpression&&Xe.typeExpression.type:Xe.type;if(tn&&tn.flags&4&&!e.isBindingPattern(Xe.name)){var nr=es(Xe,tn.escapedName,111551,void 0,void 0,!1);tn=nr}Je===0&&tn.escapedName==="this"?(S=!0,u=Xe.symbol):t.push(tn),Dn&&Dn.kind===194&&(a|=2);var sr=u_(Xe)||Xe.initializer||Xe.questionToken||e.isRestParameter(Xe)||F&&t.length>F.arguments.length&&!Dn||xd(Xe);sr||(s=t.length)}if((n.kind===170||n.kind===171)&&wl(n)&&(!S||!u)){var Ir=n.kind===170?171:170,xr=e.getDeclarationOfKind(wt(n),Ir);xr&&(u=pi(xr))}var Gr=n.kind===169?lc(Eo(n.parent.symbol)):void 0,ct=Gr?Gr.localTypeParameters:Vs(n);(e.hasRestParameter(n)||e.isInJSFile(n)&&rE(n,t))&&(a|=1),(e.isConstructorTypeNode(n)&&e.hasSyntacticModifier(n,128)||e.isConstructorDeclaration(n)&&e.hasSyntacticModifier(n.parent,128))&&(a|=4),r.resolvedSignature=Tu(n,ct,u,t,void 0,void 0,s,a)}return r.resolvedSignature}function rE(n,r){if(e.isJSDocSignature(n)||!eg(n))return!1;var t=e.lastOrUndefined(n.parameters),a=t?e.getJSDocParameterTags(t):e.getJSDocTags(n).filter(e.isJSDocParameterTag),s=e.firstDefined(a,function(S){return S.typeExpression&&e.isJSDocVariadicType(S.typeExpression.type)?S.typeExpression.type:void 0}),u=fo(3,"args",32768);return u.type=s?bl(Ra(s.type)):dn,s&&r.pop(),r.push(u),!0}function rv(n){if(e.isInJSFile(n)&&e.isFunctionLikeDeclaration(n)){var r=e.getJSDocTypeTag(n);return(r==null?void 0:r.typeExpression)&&Dm(Ra(r.typeExpression))}}function tv(n){var r=rv(n);return r&&_o(r)}function eg(n){var r=da(n);return r.containsArgumentsReference===void 0&&(r.flags&8192?r.containsArgumentsReference=!0:r.containsArgumentsReference=t(n.body)),r.containsArgumentsReference;function t(a){if(!a)return!1;switch(a.kind){case 79:return a.escapedText===Le.escapedName&&xu(a)===Le;case 165:case 167:case 170:case 171:return a.name.kind===160&&t(a.name);case 204:case 205:return t(a.expression);default:return!e.nodeStartsNewLexicalEnvironment(a)&&!e.isPartOfTypeNode(a)&&!!e.forEachChild(a,t)}}}function uf(n){if(!n||!n.declarations)return e.emptyArray;for(var r=[],t=0;t<n.declarations.length;t++){var a=n.declarations[t];if(e.isFunctionLike(a)){if(t>0&&a.body){var s=n.declarations[t-1];if(a.parent===s.parent&&a.kind===s.kind&&a.pos===s.end)continue}r.push(su(a))}}return r}function ng(n){var r=wo(n,n);if(r){var t=Dt(r);if(t)return kt(t)}return cr}function Id(n){if(n.thisParameter)return kt(n.thisParameter)}function Cc(n){if(!n.resolvedTypePredicate){if(n.target){var r=Cc(n.target);n.resolvedTypePredicate=r?RA(r,n.mapper):uo}else if(n.compositeSignatures)n.resolvedTypePredicate=HL(n.compositeSignatures,n.compositeKind)||uo;else{var t=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration),a=void 0;if(!t&&e.isInJSFile(n.declaration)){var s=rv(n.declaration);s&&n!==s&&(a=Cc(s))}n.resolvedTypePredicate=t&&e.isTypePredicateNode(t)?av(t,n):a||uo}e.Debug.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===uo?void 0:n.resolvedTypePredicate}function av(n,r){var t=n.parameterName,a=n.type&&Ra(n.type);return t.kind===190?Xp(n.assertsModifier?2:0,void 0,void 0,a):Xp(n.assertsModifier?3:1,t.escapedText,e.findIndex(r.parameters,function(s){return s.escapedName===t.escapedText}),a)}function iv(n,r,t){return r!==2097152?Sa(n,t):Ro(n)}function _o(n){if(!n.resolvedReturnType){if(!Vc(n,3))return J;var r=n.target?fi(_o(n.target),n.mapper):n.compositeSignatures?fi(iv(e.map(n.compositeSignatures,_o),n.compositeKind,2),n.mapper):bp(n.declaration)||(e.nodeIsMissing(n.declaration.body)?cr:cy(n.declaration));if(n.flags&8?r=TS(r):n.flags&16&&(r=td(r)),!Oc()){if(n.declaration){var t=e.getEffectiveReturnTypeNode(n.declaration);if(t)Jn(t,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(En){var a=n.declaration,s=e.getNameOfDeclaration(a);s?Jn(s,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(s)):Jn(a,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}r=cr}n.resolvedReturnType=r}return n.resolvedReturnType}function bp(n){if(n.kind===169)return lc(Eo(n.parent.symbol));if(e.isJSDocConstructSignature(n))return Ra(n.parameters[0].type);var r=e.getEffectiveReturnTypeNode(n);if(r)return Ra(r);if(n.kind===170&&wl(n)){var t=e.isInJSFile(n)&&Pa(n);if(t)return t;var a=e.getDeclarationOfKind(wt(n),171),s=ta(a);if(s)return s}return tv(n)}function rg(n){return!n.resolvedReturnType&&Dd(n,3)>=0}function tE(n){return z1(n)||cr}function z1(n){if(N(n)){var r=kt(n.parameters[n.parameters.length-1]),t=ji(r)?dg(r):r;return t&&Ns(t,Dr)}}function ov(n,r,t,a){var s=aE(n,np(r,n.typeParameters,Lu(n.typeParameters),t));if(a){var u=q0(_o(s));if(u){var S=gm(u);S.typeParameters=a;var F=gm(s);return F.resolvedReturnType=f_(S),F}}return s}function aE(n,r){var t=n.instantiations||(n.instantiations=new e.Map),a=lu(r),s=t.get(a);return s||t.set(a,s=sh(n,r)),s}function sh(n,r){return Fm(n,oL(n,r),!0)}function oL(n,r){return uc(n.typeParameters,r)}function tg(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=sL(n)):n}function sL(n){return Fm(n,zT(n.typeParameters),!0)}function lL(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=cL(n)):n}function cL(n){return ov(n,e.map(n.typeParameters,function(r){return r.target&&!yc(r.target)?r.target:r}),e.isInJSFile(n.declaration))}function uL(n){var r=n.typeParameters;if(r){if(n.baseSignatureCache)return n.baseSignatureCache;for(var t=zT(r),a=uc(r,e.map(r,function(S){return yc(S)||cn})),s=e.map(r,function(S){return fi(S,a)||cn}),u=0;u<r.length-1;u++)s=kd(s,a);return s=kd(s,t),n.baseSignatureCache=Fm(n,uc(r,s),!0)}return n}function f_(n){if(!n.isolatedSignatureType){var r=n.declaration?n.declaration.kind:0,t=r===169||r===173||r===178,a=fl(16);a.members=Ne,a.properties=e.emptyArray,a.callSignatures=t?e.emptyArray:[n],a.constructSignatures=t?[n]:e.emptyArray,a.indexInfos=e.emptyArray,n.isolatedSignatureType=a}return n.isolatedSignatureType}function q1(n){return n.members?iE(n.members):void 0}function iE(n){return n.get("__index")}function Uu(n,r,t,a){return{keyType:n,type:r,isReadonly:t,declaration:a}}function X1(n){var r=q1(n);return r?Y1(r):e.emptyArray}function Y1(n){if(n.declarations){for(var r=[],t=function(S){if(S.parameters.length===1){var F=S.parameters[0];F.type&&Wm(Ra(F.type),function(ve){lh(ve)&&!oa(r,ve)&&r.push(Uu(ve,S.type?Ra(S.type):cr,e.hasEffectiveModifier(S,64),S))})}},a=0,s=n.declarations;a<s.length;a++){var u=s[a];t(u)}return r}return e.emptyArray}function lh(n){return!!(n.flags&4108)||cv(n)||!!(n.flags&2097152)&&!Pm(n)&&!vm(n)&&e.some(n.types,lh)}function Q1(n){return e.mapDefined(e.filter(n.symbol&&n.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function fL(n){var r,t;if(!((r=n.symbol)===null||r===void 0)&&r.declarations)for(var a=0,s=n.symbol.declarations;a<s.length;a++){var u=s[a];if(u.parent.kind===188){var S=e.walkUpParenthesizedTypesAndGetParentAndChild(u.parent.parent),F=S[0],ve=F===void 0?u.parent:F,Ge=S[1];if(Ge.kind===176){var Je=Ge,Xe=_1(Je);if(Xe){var tn=Je.typeArguments.indexOf(ve);if(tn<Xe.length){var Dn=yc(Xe[tn]);if(Dn){var nr=uc(Xe,dy(Je,Xe)),sr=fi(Dn,nr);sr!==n&&(t=e.append(t,sr))}}}}else if(Ge.kind===162&&Ge.dotDotDotToken||Ge.kind===184||Ge.kind===195&&Ge.dotDotDotToken)t=e.append(t,bl(cn));else if(Ge.kind===197)t=e.append(t,gr);else if(Ge.kind===161&&Ge.parent.kind===193)t=e.append(t,at);else if(Ge.kind===193&&Ge.type&&e.skipParentheses(Ge.type)===u.parent&&Ge.parent.kind===187&&Ge.parent.extendsType===Ge&&Ge.parent.checkType.kind===193&&Ge.parent.checkType.type){var Ir=Ge.parent.checkType,xr=Ra(Ir.type);t=e.append(t,fi(xr,ym(zf(wt(Ir.typeParameter)),Ir.typeParameter.constraint?Ra(Ir.typeParameter.constraint):at)))}}}return t&&Ro(t)}function d_(n){if(!n.constraint)if(n.target){var r=yc(n.target);n.constraint=r?fi(r,n.mapper):Va}else{var t=Q1(n);if(!t)n.constraint=fL(n)||Va;else{var a=Ra(t);a.flags&1&&a!==J&&(a=t.parent.parent.kind===193?at:cn),n.constraint=a}}return n.constraint===Va?void 0:n.constraint}function Z1(n){var r=e.getDeclarationOfKind(n.symbol,161),t=e.isJSDocTemplateTag(r.parent)?e.getHostSignatureFromJSDoc(r.parent):r.parent;return t&&wt(t)}function lu(n){var r="";if(n)for(var t=n.length,a=0;a<t;){for(var s=n[a].id,u=1;a+u<t&&n[a+u].id===s+u;)u++;r.length&&(r+=","),r+=s,u>1&&(r+=":"+u),a+=u}return r}function p_(n,r){return n?"@"+C(n)+(r?":"+lu(r):""):""}function oE(n,r){for(var t=0,a=0,s=n;a<s.length;a++){var u=s[a];u.flags&r||(t|=e.getObjectFlags(u))}return t&917504}function Yf(n,r){var t=lu(r),a=n.instantiations.get(t);return a||(a=fl(4,n.symbol),n.instantiations.set(t,a),a.objectFlags|=r?oE(r,0):0,a.target=n,a.resolvedTypeArguments=r),a}function $1(n){var r=Pl(n.flags);return r.symbol=n.symbol,r.objectFlags=n.objectFlags,r.target=n.target,r.resolvedTypeArguments=n.resolvedTypeArguments,r}function sE(n,r,t,a,s){if(!a){a=hm(r);var u=Mm(a);s=t?kd(u,t):u}var S=fl(4,n.symbol);return S.target=n,S.node=r,S.mapper=t,S.aliasSymbol=a,S.aliasTypeArguments=s,S}function Co(n){var r,t;if(!n.resolvedTypeArguments){if(!Vc(n,6))return((r=n.target.localTypeParameters)===null||r===void 0?void 0:r.map(function(){return J}))||e.emptyArray;var a=n.node,s=a?a.kind===176?e.concatenate(n.target.outerTypeParameters,dy(a,n.target.localTypeParameters)):a.kind===181?[Ra(a.elementType)]:e.map(a.elements,Ra):e.emptyArray;Oc()?n.resolvedTypeArguments=n.mapper?kd(s,n.mapper):s:(n.resolvedTypeArguments=((t=n.target.localTypeParameters)===null||t===void 0?void 0:t.map(function(){return J}))||e.emptyArray,Jn(n.node||fe,n.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&Qa(n.target.symbol)))}return n.resolvedTypeArguments}function rp(n){return e.length(n.target.typeParameters)}function eT(n,r){var t=rs(Eo(r)),a=t.localTypeParameters;if(a){var s=e.length(n.typeArguments),u=Lu(a),S=e.isInJSFile(n),F=!En&&S;if(!F&&(s<u||s>a.length)){var ve=S&&e.isExpressionWithTypeArguments(n)&&!e.isJSDocAugmentsTag(n.parent),Ge=u===a.length?ve?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:ve?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Je=Lt(t,void 0,2);if(Jn(n,Ge,Je,u,a.length),!S)return J}if(n.kind===176&&hT(n,e.length(n.typeArguments)!==a.length))return sE(t,n,void 0);var Xe=e.concatenate(t.outerTypeParameters,np(lE(n),a,u,S));return Yf(t,Xe)}return Tp(n,r)?t:J}function ag(n,r,t,a){var s=rs(n);if(s===Gn&&w.has(n.escapedName)&&r&&r.length===1)return ph(n,r[0]);var u=Za(n),S=u.typeParameters,F=lu(r)+p_(t,a),ve=u.instantiations.get(F);return ve||u.instantiations.set(F,ve=QT(s,uc(S,np(r,S,Lu(S),e.isInJSFile(n.valueDeclaration))),t,a)),ve}function dL(n,r){var t=rs(r),a=Za(r).typeParameters;if(a){var s=e.length(n.typeArguments),u=Lu(a);if(s<u||s>a.length)return Jn(n,u===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Qa(r),u,a.length),J;var S=hm(n),F=S&&(nT(r)||!nT(S))?S:void 0;return ag(r,lE(n),F,Mm(F))}return Tp(n,r)?t:J}function nT(n){var r,t=(r=n.declarations)===null||r===void 0?void 0:r.find(e.isTypeAlias);return!!(t&&e.getContainingFunction(t))}function ig(n){switch(n.kind){case 176:return n.typeName;case 226:var r=n.expression;if(e.isEntityNameExpression(r))return r}}function m_(n,r,t){return n&&ki(n,r,t)||Xn}function ch(n,r){if(r===Xn)return J;if(r=Pt(r)||r,r.flags&96)return eT(n,r);if(r.flags&524288)return dL(n,r);var t=J_(r);if(t)return Tp(n,r)?cc(t):J;if(r.flags&111551&&uh(n)){var a=pL(n,r);return a||(m_(ig(n),788968),kt(r))}return J}function pL(n,r){var t=da(n);if(!t.resolvedJSDocType){var a=kt(r),s=a;if(r.valueDeclaration){var u=n.kind===198&&n.qualifier;a.symbol&&a.symbol!==r&&u&&(s=ch(n,a.symbol))}t.resolvedJSDocType=s}return t.resolvedJSDocType}function rT(n,r){if(r.flags&3||r===n)return n;var t=cu(n)+">"+cu(r),a=Zn.get(t);if(a)return a;var s=Pl(33554432);return s.baseType=n,s.substitute=r,Zn.set(t,s),s}function tT(n){return n.kind===182&&n.elements.length===1}function aT(n,r,t){return tT(r)&&tT(t)?aT(n,r.elements[0],t.elements[0]):Sp(Ra(r))===n?Ra(t):void 0}function iT(n,r){for(var t,a=!0;r&&!e.isStatement(r)&&r.kind!==315;){var s=r.parent;if(s.kind===162&&(a=!a),(a||n.flags&8650752)&&s.kind===187&&r===s.trueType){var u=aT(n,s.checkType,s.extendsType);u&&(t=e.append(t,u))}r=s}return t?rT(n,Ro(e.append(t,n))):n}function uh(n){return!!(n.flags&4194304)&&(n.kind===176||n.kind===198)}function Tp(n,r){return n.typeArguments?(Jn(n,e.Diagnostics.Type_0_is_not_generic,r?Qa(r):n.typeName?e.declarationNameToString(n.typeName):ue),!1):!0}function oT(n){if(e.isIdentifier(n.typeName)){var r=n.typeArguments;switch(n.typeName.escapedText){case"String":return Tp(n),gr;case"Number":return Tp(n),Dr;case"Boolean":return Tp(n),Ur;case"Void":return Tp(n),Cr;case"Undefined":return Tp(n),Rn;case"Null":return Tp(n),zn;case"Function":case"function":return Tp(n),Jo;case"array":return(!r||!r.length)&&!En?dn:void 0;case"promise":return(!r||!r.length)&&!En?Ov(cr):void 0;case"Object":if(r&&r.length===2){if(e.isJSDocIndexSignature(n)){var t=Ra(r[0]),a=Ra(r[1]),s=t===gr||t===Dr?[Uu(t,a,!1)]:e.emptyArray;return qo(void 0,Ne,e.emptyArray,e.emptyArray,s)}return cr}return Tp(n),En?void 0:cr}}}function mL(n){var r=Ra(n.type);return He?$E(r,65536):r}function sv(n){var r=da(n);if(!r.resolvedType){if(e.isConstTypeReference(n)&&e.isAssertionExpression(n.parent))return r.resolvedSymbol=Xn,r.resolvedType=ll(n.parent.expression);var t=void 0,a=void 0,s=788968;uh(n)&&(a=oT(n),a||(t=m_(ig(n),s,!0),t===Xn?t=m_(ig(n),s|111551):m_(ig(n),s),a=ch(n,t))),a||(t=m_(ig(n),s),a=ch(n,t)),r.resolvedSymbol=t,r.resolvedType=a}return r.resolvedType}function lE(n){return e.map(n.typeArguments,Ra)}function sT(n){var r=da(n);if(!r.resolvedType){var t=e.isThisIdentifier(n.exprName)?jh(n.exprName):vi(n.exprName);r.resolvedType=cc(fc(t))}return r.resolvedType}function lT(n,r){function t(s){var u=s.declarations;if(u)for(var S=0,F=u;S<F.length;S++){var ve=F[S];switch(ve.kind){case 255:case 256:case 258:return ve}}}if(!n)return r?or:Lr;var a=rs(n);return a.flags&524288?e.length(a.typeParameters)!==r?(Jn(t(n),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(n),r),r?or:Lr):a:(Jn(t(n),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(n)),r?or:Lr)}function cT(n,r){return __(n,111551,r?e.Diagnostics.Cannot_find_global_value_0:void 0)}function uT(n,r){return __(n,788968,r?e.Diagnostics.Cannot_find_global_type_0:void 0)}function __(n,r,t){return es(void 0,n,r,t,n,!1)}function Fl(n,r,t){var a=uT(n,t);return a||t?lT(a,r):void 0}function _L(){return Sr||(Sr=Fl("TypedPropertyDescriptor",1,!0))||or}function gL(){return vl||(vl=Fl("TemplateStringsArray",0,!0))||Lr}function fT(){return ul||(ul=Fl("ImportMeta",0,!0))||Lr}function vL(){if(!ps){var n=fo(0,"ImportMetaExpression"),r=fT(),t=fo(4,"meta",8);t.parent=n,t.type=r;var a=e.createSymbolTable([t]);n.members=a,ps=qo(n,a,e.emptyArray,e.emptyArray,e.emptyArray)}return ps}function dT(n){return sn||(sn=cT("Symbol",n))}function hL(n){return Hn||(Hn=uT("SymbolConstructor",n))}function pT(n){return vr||(vr=Fl("Symbol",0,n))||Lr}function fh(n){return ot||(ot=Fl("Promise",1,n))||or}function yL(n){return Et||(Et=Fl("PromiseLike",1,n))||or}function cE(n){return ra||(ra=cT("Promise",n))}function EL(n){return Na||(Na=Fl("PromiseConstructorLike",0,n))||Lr}function bL(n){return oo||(oo=Fl("AsyncIterable",1,n))||or}function TL(n){return Zo||(Zo=Fl("AsyncIterator",3,n))||or}function SL(n){return cl||(cl=Fl("AsyncIterableIterator",1,n))||or}function DL(n){return ws||(ws=Fl("AsyncGenerator",3,n))||or}function mT(n){return ei||(ei=Fl("Iterable",1,n))||or}function LL(n){return Li||(Li=Fl("Iterator",3,n))||or}function AL(n){return Zi||(Zi=Fl("IterableIterator",1,n))||or}function CL(n){return ho||(ho=Fl("Generator",3,n))||or}function xL(n){return vs||(vs=Fl("IteratorYieldResult",1,n))||or}function IL(n){return Ao||(Ao=Fl("IteratorReturnResult",1,n))||or}function _T(n,r){r===void 0&&(r=0);var t=__(n,788968,void 0);return t&&lT(t,r)}function NL(){return jl||(jl=__("Extract",524288,e.Diagnostics.Cannot_find_global_type_0))}function kL(){return Hl||(Hl=__("Omit",524288,e.Diagnostics.Cannot_find_global_type_0))}function RL(n){return Hs||(Hs=Fl("BigInt",0,n))||Lr}function og(n,r){return n!==or?Yf(n,r):Lr}function gT(n){return og(_L(),[n])}function OL(n){return og(mT(!0),[n])}function bl(n,r){return og(r?$r:_r,[n])}function uE(n){switch(n.kind){case 183:return 2;case 184:return vT(n);case 195:return n.questionToken?2:n.dotDotDotToken?vT(n):1;default:return 1}}function vT(n){return dv(n.type)?4:8}function PL(n){var r=wL(n.parent),t=dv(n);if(t)return r?$r:_r;var a=e.map(n.elements,uE),s=e.some(n.elements,function(u){return u.kind!==195});return fE(a,r,s?void 0:n.elements)}function hT(n,r){return!!hm(n)||yT(n)&&(n.kind===181?Nd(n.elementType):n.kind===182?e.some(n.elements,Nd):r||e.some(n.typeArguments,Nd))}function yT(n){var r=n.parent;switch(r.kind){case 189:case 195:case 176:case 185:case 186:case 192:case 187:case 191:case 181:case 182:return yT(r);case 257:return!0}return!1}function Nd(n){switch(n.kind){case 176:return uh(n)||!!(m_(n.typeName,788968).flags&524288);case 179:return!0;case 191:return n.operator!==152&&Nd(n.type);case 189:case 183:case 195:case 311:case 309:case 310:case 304:return Nd(n.type);case 184:return n.type.kind!==181||Nd(n.type.elementType);case 185:case 186:return e.some(n.types,Nd);case 192:return Nd(n.objectType)||Nd(n.indexType);case 187:return Nd(n.checkType)||Nd(n.extendsType)||Nd(n.trueType)||Nd(n.falseType)}return!1}function ML(n){var r=da(n);if(!r.resolvedType){var t=PL(n);if(t===or)r.resolvedType=Lr;else if(!(n.kind===182&&e.some(n.elements,function(s){return!!(uE(s)&8)}))&&hT(n))r.resolvedType=n.kind===182&&n.elements.length===0?t:sE(t,n,void 0);else{var a=n.kind===181?[Ra(n.elementType)]:e.map(n.elements,Ra);r.resolvedType=dE(t,a)}}return r.resolvedType}function wL(n){return e.isTypeOperatorNode(n)&&n.operator===143}function Vu(n,r,t,a){t===void 0&&(t=!1);var s=fE(r||e.map(n,function(u){return 1}),t,a);return s===or?Lr:n.length?dE(s,n):s}function fE(n,r,t){if(n.length===1&&n[0]&4)return r?$r:_r;var a=e.map(n,function(u){return u&1?"#":u&2?"?":u&4?".":"*"}).join()+(r?"R":"")+(t&&t.length?","+e.map(t,U).join(","):""),s=Wn.get(a);return s||Wn.set(a,s=FL(n,r,t)),s}function FL(n,r,t){var a=n.length,s=e.countWhere(n,function(Ir){return!!(Ir&9)}),u,S=[],F=0;if(a){u=new Array(a);for(var ve=0;ve<a;ve++){var Ge=u[ve]=Uc(),Je=n[ve];if(F|=Je,!(F&12)){var Xe=fo(4|(Je&2?16777216:0),""+ve,r?8:0);Xe.tupleLabelDeclaration=t==null?void 0:t[ve],Xe.type=Ge,S.push(Xe)}}}var tn=S.length,Dn=fo(4,"length");if(F&12)Dn.type=Dr;else{for(var nr=[],ve=s;ve<=a;ve++)nr.push(Zf(ve));Dn.type=Sa(nr)}S.push(Dn);var sr=fl(12);return sr.typeParameters=u,sr.outerTypeParameters=void 0,sr.localTypeParameters=u,sr.instantiations=new e.Map,sr.instantiations.set(lu(sr.typeParameters),sr),sr.target=sr,sr.resolvedTypeArguments=sr.typeParameters,sr.thisType=Uc(),sr.thisType.isThisType=!0,sr.thisType.constraint=sr,sr.declaredProperties=S,sr.declaredCallSignatures=e.emptyArray,sr.declaredConstructSignatures=e.emptyArray,sr.declaredIndexInfos=e.emptyArray,sr.elementFlags=n,sr.minLength=s,sr.fixedLength=tn,sr.hasRestElement=!!(F&12),sr.combinedFlags=F,sr.readonly=r,sr.labeledElementDeclarations=t,sr}function dE(n,r){return n.objectFlags&8?ET(n,r):Yf(n,r)}function ET(n,r){var t,a,s;if(!(n.combinedFlags&14))return Yf(n,r);if(n.combinedFlags&8){var u=e.findIndex(r,function(xr,Gr){return!!(n.elementFlags[Gr]&8&&xr.flags&1179648)});if(u>=0)return lv(e.map(r,function(xr,Gr){return n.elementFlags[Gr]&8?xr:cn}))?Ps(r[u],function(xr){return ET(n,e.replaceElement(r,u,xr))}):J}for(var S=[],F=[],ve=[],Ge=-1,Je=-1,Xe=-1,tn=function(xr){var Gr=r[xr],ct=n.elementFlags[xr];if(ct&8)if(Gr.flags&58982400||hc(Gr))Ir(Gr,8,(t=n.labeledElementDeclarations)===null||t===void 0?void 0:t[xr]);else if(ji(Gr)){var Vt=Co(Gr);if(Vt.length+S.length>=1e4)return Jn(fe,e.isPartOfTypeNode(fe)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:J};e.forEach(Vt,function(_t,Ta){var sa;return Ir(_t,Gr.target.elementFlags[Ta],(sa=Gr.target.labeledElementDeclarations)===null||sa===void 0?void 0:sa[Ta])})}else Ir(lp(Gr)&&Ns(Gr,Dr)||J,4,(a=n.labeledElementDeclarations)===null||a===void 0?void 0:a[xr]);else Ir(Gr,ct,(s=n.labeledElementDeclarations)===null||s===void 0?void 0:s[xr])},Dn=0;Dn<r.length;Dn++){var nr=tn(Dn);if(typeof nr=="object")return nr.value}for(var Dn=0;Dn<Ge;Dn++)F[Dn]&2&&(F[Dn]=1);Je>=0&&Je<Xe&&(S[Je]=Sa(e.sameMap(S.slice(Je,Xe+1),function(xr,Gr){return F[Je+Gr]&8?Ec(xr,Dr):xr})),S.splice(Je+1,Xe-Je),F.splice(Je+1,Xe-Je),ve==null||ve.splice(Je+1,Xe-Je));var sr=fE(F,n.readonly,ve);return sr===or?Lr:F.length?Yf(sr,S):sr;function Ir(xr,Gr,ct){Gr&1&&(Ge=F.length),Gr&4&&Je<0&&(Je=F.length),Gr&6&&(Xe=F.length),S.push(xr),F.push(Gr),ve&&ct?ve.push(ct):ve=void 0}}function sg(n,r,t){t===void 0&&(t=0);var a=n.target,s=rp(n)-t;return r>a.fixedLength?bC(n)||Vu(e.emptyArray):Vu(Co(n).slice(r,s),a.elementFlags.slice(r,s),!1,a.labeledElementDeclarations&&a.labeledElementDeclarations.slice(r,s))}function bT(n){return Sa(e.append(e.arrayOf(n.target.fixedLength,function(r){return Jc(""+r)}),ff(n.target.readonly?$r:_r)))}function TT(n,r){var t=e.findIndex(n.elementFlags,function(a){return!(a&r)});return t>=0?t:n.elementFlags.length}function dh(n,r){return n.elementFlags.length-e.findLastIndex(n.elementFlags,function(t){return!(t&r)})-1}function GL(n){return Xi(Ra(n.type),!0)}function cu(n){return n.id}function Yp(n,r){return e.binarySearch(n,r,cu,e.compareValues)>=0}function pE(n,r){var t=e.binarySearch(n,r,cu,e.compareValues);return t<0?(n.splice(~t,0,r),!0):!1}function BL(n,r,t){var a=t.flags;if(a&1048576)return ST(n,r|(jL(t)?1048576:0),t.types);if(!(a&131072))if(r|=a&205258751,a&469499904&&(r|=262144),t===Bn&&(r|=8388608),!He&&a&98304)e.getObjectFlags(t)&131072||(r|=4194304);else{var s=n.length,u=s&&t.id>n[s-1].id?~s:e.binarySearch(n,t,cu,e.compareValues);u<0&&n.splice(~u,0,t)}return r}function ST(n,r,t){for(var a=0,s=t;a<s.length;a++){var u=s[a];r=BL(n,r,u)}return r}function UL(n,r){var t=lu(n),a=Me.get(t);if(a)return a;for(var s=r&&e.some(n,function(Ir){return!!(Ir.flags&524288)&&!hc(Ir)&&GE(Du(Ir))}),u=n.length,S=u,F=0;S>0;){S--;var ve=n[S];if(s||ve.flags&469499904)for(var Ge=ve.flags&61603840?e.find(bo(ve),function(Ir){return Wu(kt(Ir))}):void 0,Je=Ge&&cc(kt(Ge)),Xe=0,tn=n;Xe<tn.length;Xe++){var Dn=tn[Xe];if(ve!==Dn){if(F===1e5){var nr=F/(u-S)*u;if(nr>1e6){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:n.map(function(Ir){return Ir.id})}),Jn(fe,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}}if(F++,Ge&&Dn.flags&61603840){var sr=Os(Dn,Ge.escapedName);if(sr&&Wu(sr)&&cc(sr)!==Je)continue}if(rd(ve,Dn,Sn)&&(!(e.getObjectFlags(B(ve))&1)||!(e.getObjectFlags(B(Dn))&1)||v_(ve,Dn))){e.orderedRemoveItemAt(n,S);break}}}}return Me.set(t,n),n}function VL(n,r,t){for(var a=n.length;a>0;){a--;var s=n[a],u=s.flags,S=u&402653312&&r&4||u&256&&r&8||u&2048&&r&64||u&8192&&r&4096||t&&u&32768&&r&16384||Lp(s)&&Yp(n,s.regularType);S&&e.orderedRemoveItemAt(n,a)}}function WL(n){var r=e.filter(n,cv);if(r.length)for(var t=n.length,a=function(){t--;var s=n[t];s.flags&128&&e.some(r,function(u){return ed(s,u)})&&e.orderedRemoveItemAt(n,t)};t>0;)a()}function jL(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function DT(n,r){for(var t=0,a=r;t<a.length;t++){var s=a[t];if(s.flags&1048576){var u=s.origin;s.aliasSymbol||u&&!(u.flags&1048576)?e.pushIfUnique(n,s):u&&u.flags&1048576&&DT(n,u.types)}}}function mE(n,r){var t=Bs(n);return t.types=r,t}function Sa(n,r,t,a,s){if(r===void 0&&(r=1),n.length===0)return Jt;if(n.length===1)return n[0];var u=[],S=ST(u,0,n);if(r!==0){if(S&3)return S&1?S&8388608?Bn:cr:cn;if($n&&S&32768){var F=e.binarySearch(u,an,cu,e.compareValues);F>=0&&Yp(u,Rn)&&e.orderedRemoveItemAt(u,F)}if((S&402664320||S&16384&&S&32768)&&VL(u,S,!!(r&2)),S&128&&S&134217728&&WL(u),r===2&&(u=UL(u,!!(S&524288)),!u))return J;if(u.length===0)return S&65536?S&4194304?zn:ir:S&32768?S&4194304?Rn:Ye:Jt}if(!s&&S&1048576){var ve=[];DT(ve,n);for(var Ge=[],Je=function(Gr){e.some(ve,function(ct){return Yp(ct.types,Gr)})||Ge.push(Gr)},Xe=0,tn=u;Xe<tn.length;Xe++){var Dn=tn[Xe];Je(Dn)}if(!t&&ve.length===1&&Ge.length===0)return ve[0];var nr=e.reduceLeft(ve,function(Gr,ct){return Gr+ct.types.length},0);if(nr+Ge.length===u.length){for(var sr=0,Ir=ve;sr<Ir.length;sr++){var Dn=Ir[sr];pE(Ge,Dn)}s=mE(1048576,Ge)}}var xr=(S&468598819?0:65536)|(S&2097152?33554432:0);return gE(u,xr,t,a,s)}function HL(n,r){for(var t,a=[],s=0,u=n;s<u.length;s++){var S=u[s],F=Cc(S);if(!F||F.kind===2||F.kind===3){if(r!==2097152)continue;return}if(t){if(!_E(t,F))return}else t=F;a.push(F.type)}if(t){var ve=iv(a,r);return Xp(t.kind,t.parameterName,t.parameterIndex,ve)}}function _E(n,r){return n.kind===r.kind&&n.parameterIndex===r.parameterIndex}function gE(n,r,t,a,s){if(n.length===0)return Jt;if(n.length===1)return n[0];var u=s?s.flags&1048576?"|"+lu(s.types):s.flags&2097152?"&"+lu(s.types):"#"+s.type.id+"|"+lu(n):lu(n),S=u+p_(t,a),F=ze.get(S);return F||(F=Pl(1048576),F.objectFlags=r|oE(n,98304),F.types=n,F.origin=s,F.aliasSymbol=t,F.aliasTypeArguments=a,n.length===2&&n[0].flags&512&&n[1].flags&512&&(F.flags|=16,F.intrinsicName="boolean"),ze.set(S,F)),F}function JL(n){var r=da(n);if(!r.resolvedType){var t=hm(n);r.resolvedType=Sa(e.map(n.types,Ra),1,t,Mm(t))}return r.resolvedType}function KL(n,r,t){var a=t.flags;return a&2097152?LT(n,r,t.types):(iS(t)?r&16777216||(r|=16777216,n.set(t.id.toString(),t)):(a&3?t===Bn&&(r|=8388608):(He||!(a&98304))&&!n.has(t.id.toString())&&(t.flags&109440&&r&109440&&(r|=67108864),n.set(t.id.toString(),t)),r|=a&205258751),r)}function LT(n,r,t){for(var a=0,s=t;a<s.length;a++){var u=s[a];r=KL(n,r,cc(u))}return r}function zL(n,r){for(var t=n.length;t>0;){t--;var a=n[t],s=a.flags&4&&r&128||a.flags&8&&r&256||a.flags&64&&r&2048||a.flags&4096&&r&8192;s&&e.orderedRemoveItemAt(n,t)}}function qL(n,r){for(var t=0,a=n;t<a.length;t++){var s=a[t];if(!Yp(s.types,r)){var u=r.flags&128?gr:r.flags&256?Dr:r.flags&2048?qr:r.flags&8192?qt:void 0;if(!u||!Yp(s.types,u))return!1}}return!0}function XL(n){for(var r=n.length,t=e.filter(n,function(F){return!!(F.flags&128)});r>0;){r--;var a=n[r];if(a.flags&134217728)for(var s=0,u=t;s<u.length;s++){var S=u[s];if(ed(S,a)){e.orderedRemoveItemAt(n,r);break}else if(cv(a))return!0}}return!1}function AT(n,r){if(e.every(n,function(a){return!!(a.flags&1048576)&&e.some(a.types,function(s){return!!(s.flags&r)})})){for(var t=0;t<n.length;t++)n[t]=Nl(n[t],function(a){return!(a.flags&r)});return!0}return!1}function YL(n){var r,t=e.findIndex(n,function(tn){return!!(e.getObjectFlags(tn)&65536)});if(t<0)return!1;for(var a=t+1;a<n.length;){var s=n[a];e.getObjectFlags(s)&65536?((r||(r=[n[t]])).push(s),e.orderedRemoveItemAt(n,a)):a++}if(!r)return!1;for(var u=[],S=[],F=0,ve=r;F<ve.length;F++)for(var Ge=ve[F],Je=0,Xe=Ge.types;Je<Xe.length;Je++){var s=Xe[Je];pE(u,s)&&qL(r,s)&&pE(S,s)}return n[t]=gE(S,65536),!0}function QL(n,r,t){var a=Pl(2097152);return a.objectFlags=oE(n,98304),a.types=n,a.aliasSymbol=r,a.aliasTypeArguments=t,a}function Ro(n,r,t){var a=new e.Map,s=LT(a,0,n),u=e.arrayFrom(a.values());if(s&131072)return e.contains(u,Ot)?Ot:Jt;if(He&&s&98304&&s&84410368||s&67108864&&s&402783228||s&402653316&&s&67238776||s&296&&s&469891796||s&2112&&s&469889980||s&12288&&s&469879804||s&49152&&s&469842940||s&134217728&&s&128&&XL(u))return Jt;if(s&1)return s&8388608?Bn:cr;if(!He&&s&98304)return s&32768?Rn:zn;if((s&4&&s&128||s&8&&s&256||s&64&&s&2048||s&4096&&s&8192)&&zL(u,s),s&16777216&&s&524288&&e.orderedRemoveItemAt(u,e.findIndex(u,iS)),u.length===0)return cn;if(u.length===1)return u[0];var S=lu(u)+p_(r,t),F=Tn.get(S);if(!F){if(s&1048576)if(YL(u))F=Ro(u,r,t);else if(AT(u,32768))F=Sa([Ro(u),Rn],1,r,t);else if(AT(u,65536))F=Sa([Ro(u),zn],1,r,t);else{if(!lv(u))return J;var ve=ZL(u),Ge=e.some(ve,function(Je){return!!(Je.flags&2097152)})?mE(2097152,u):void 0;F=Sa(ve,1,r,t,Ge)}else F=QL(u,r,t);Tn.set(S,F)}return F}function CT(n){return e.reduceLeft(n,function(r,t){return t.flags&1048576?r*t.types.length:t.flags&131072?0:r},1)}function lv(n){var r=CT(n);return r>=1e5?(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:n.map(function(t){return t.id}),size:r}),Jn(fe,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function ZL(n){for(var r=CT(n),t=[],a=0;a<r;a++){for(var s=n.slice(),u=a,S=n.length-1;S>=0;S--)if(n[S].flags&1048576){var F=n[S].types,ve=F.length;s[S]=F[u%ve],u=Math.floor(u/ve)}var Ge=Ro(s);Ge.flags&131072||t.push(Ge)}return t}function $L(n){var r=da(n);if(!r.resolvedType){var t=hm(n);r.resolvedType=Ro(e.map(n.types,Ra),t,Mm(t))}return r.resolvedType}function xT(n,r){var t=Pl(4194304);return t.type=n,t.stringsOnly=r,t}function eA(n){var r=Bs(4194304);return r.type=n,r}function nA(n,r){return r?n.resolvedStringIndexType||(n.resolvedStringIndexType=xT(n,!0)):n.resolvedIndexType||(n.resolvedIndexType=xT(n,!1))}function IT(n,r,t){return fi(n,pv(r.mapper,Su(r),t))}function rA(n,r){var t=Nl(tu(n),function(u){return!(r&&u.flags&5)}),a=n.declaration.nameType&&Ra(n.declaration.nameType),s=a&&ad(t,function(u){return!!(u.flags&131084)})&&bo(Il(Q_(n)));return a?Sa([Ps(t,function(u){return IT(a,n,u)}),Ps(Sa(e.map(s||e.emptyArray,function(u){return Om(u,8576)})),function(u){return IT(a,n,u)})]):t}function tA(n){var r=Su(n);return t($d(n)||r);function t(a){return a.flags&68157439?!0:a.flags&16777216?a.root.isDistributive&&a.checkType===r:a.flags&137363456?e.every(a.types,t):a.flags&8388608?t(a.objectType)&&t(a.indexType):a.flags&33554432?t(a.substitute):a.flags&268435456?t(a.type):!1}}function tp(n){return e.isPrivateIdentifier(n)?Jt:e.isIdentifier(n)?Jc(e.unescapeLeadingUnderscores(n.escapedText)):cc(e.isComputedPropertyName(n)?od(n):vi(n))}function Om(n,r,t){if(t||!(e.getDeclarationModifierFlagsFromSymbol(n)&24)){var a=Za(zp(n)).nameType;if(!a){var s=e.getNameOfDeclaration(n.valueDeclaration);a=n.escapedName==="default"?Jc("default"):s&&tp(s)||(e.isKnownSymbol(n)?void 0:Jc(e.symbolName(n)))}if(a&&a.flags&r)return a}return Jt}function aA(n,r,t){var a=t&&(e.getObjectFlags(n)&7||n.aliasSymbol)?eA(n):void 0,s=e.map(bo(n),function(S){return Om(S,r)}),u=e.map(Ei(n),function(S){return S!==wi&&S.keyType.flags&r?S.keyType===gr&&r&8?ua:S.keyType:Jt});return Sa(e.concatenate(s,u),1,void 0,void 0,a)}function ff(n,r,t){return r===void 0&&(r=X),n=iu(n),n.flags&1048576?Ro(e.map(n.types,function(a){return ff(a,r,t)})):n.flags&2097152?Sa(e.map(n.types,function(a){return ff(a,r,t)})):n.flags&58982400||b_(n)||hc(n)&&!tA(n)?nA(n,r):e.getObjectFlags(n)&32?rA(n,t):n===Bn?Bn:n.flags&2?Jt:n.flags&131073?at:aA(n,(t?128:402653316)|(r?0:12584),r===X&&!t)}function NT(n){if(X)return n;var r=NL();return r?ag(r,[n,gr]):gr}function iA(n){var r=NT(ff(n));return r.flags&131072?gr:r}function oA(n){var r=da(n);if(!r.resolvedType)switch(n.operator){case 139:r.resolvedType=ff(Ra(n.type));break;case 152:r.resolvedType=n.type.kind===149?xE(e.walkUpParenthesizedTypes(n.parent)):J;break;case 143:r.resolvedType=Ra(n.type);break;default:throw e.Debug.assertNever(n.operator)}return r.resolvedType}function sA(n){var r=da(n);return r.resolvedType||(r.resolvedType=g_(Vr([n.head.text],e.map(n.templateSpans,function(t){return t.literal.text}),!0),e.map(n.templateSpans,function(t){return Ra(t.type)}))),r.resolvedType}function g_(n,r){var t=e.findIndex(r,function(Ge){return!!(Ge.flags&1179648)});if(t>=0)return lv(r)?Ps(r[t],function(Ge){return g_(n,e.replaceElement(r,t,Ge))}):J;if(e.contains(r,Bn))return Bn;var a=[],s=[],u=n[0];if(!ve(n,r))return gr;if(a.length===0)return Jc(u);if(s.push(u),e.every(s,function(Ge){return Ge===""})&&e.every(a,function(Ge){return!!(Ge.flags&4)}))return gr;var S=lu(a)+"|"+e.map(s,function(Ge){return Ge.length}).join(",")+"|"+s.join(""),F=Ke.get(S);return F||Ke.set(S,F=cA(s,a)),F;function ve(Ge,Je){for(var Xe=0;Xe<Je.length;Xe++){var tn=Je[Xe];if(tn.flags&101248)u+=lA(tn)||"",u+=Ge[Xe+1];else if(tn.flags&134217728){if(u+=tn.texts[0],!ve(tn.texts,tn.types))return!1;u+=Ge[Xe+1]}else if(Pm(tn)||RT(tn))a.push(tn),s.push(u),u=Ge[Xe+1];else return!1}return!0}}function lA(n){return n.flags&128?n.value:n.flags&256?""+n.value:n.flags&2048?e.pseudoBigIntToString(n.value):n.flags&98816?n.intrinsicName:void 0}function cA(n,r){var t=Pl(134217728);return t.texts=n,t.types=r,t}function ph(n,r){return r.flags&1179648?Ps(r,function(t){return ph(n,t)}):Pm(r)?fA(n,r):r.flags&128?Jc(uA(n,r.value)):r}function uA(n,r){switch(w.get(n.escapedName)){case 0:return r.toUpperCase();case 1:return r.toLowerCase();case 2:return r.charAt(0).toUpperCase()+r.slice(1);case 3:return r.charAt(0).toLowerCase()+r.slice(1)}return r}function fA(n,r){var t=C(n)+","+cu(r),a=jn.get(t);return a||jn.set(t,a=dA(n,r)),a}function dA(n,r){var t=Pl(268435456);return t.symbol=n,t.type=r,t}function pA(n,r,t,a,s){var u=Pl(8388608);return u.objectType=n,u.indexType=r,u.accessFlags=t,u.aliasSymbol=a,u.aliasTypeArguments=s,u}function lg(n){if(En)return!1;if(e.getObjectFlags(n)&8192)return!0;if(n.flags&1048576)return e.every(n.types,lg);if(n.flags&2097152)return e.some(n.types,lg);if(n.flags&465829888){var r=$g(n);return r!==n&&lg(r)}return!1}function vE(n,r){return Gi(n)?ql(n):r&&e.isPropertyName(r)?e.getPropertyNameForPropertyNameNode(r):void 0}function hE(n,r){if(r.flags&8208){var t=e.findAncestor(n.parent,function(a){return!e.isAccessExpression(a)})||n.parent;return e.isCallLikeExpression(t)?e.isCallOrNewExpression(t)&&e.isIdentifier(n)&&US(t,n):e.every(r.declarations,function(a){return!e.isFunctionLike(a)||!!(e.getCombinedNodeFlags(a)&134217728)})}return!0}function kT(n,r,t,a,s,u){var S,F=s&&s.kind===205?s:void 0,ve=s&&e.isPrivateIdentifier(s)?void 0:vE(t,s);if(ve!==void 0){if(u&256)return am(r,ve)||cr;var Ge=wn(r,ve);if(Ge){if(u&64&&s&&Ge.declarations&&Eg(Ge)&134217728&&hE(s,Ge)){var Je=(S=F==null?void 0:F.argumentExpression)!==null&&S!==void 0?S:e.isIndexedAccessTypeNode(s)?s.indexType:s;ol(Je,Ge.declarations,ve)}if(F){if($h(Ge,F,W0(F.expression,r.symbol)),A2(F,Ge,e.getAssignmentTargetKind(F))){Jn(F.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Qa(Ge));return}if(u&8&&(da(s).resolvedSymbol=Ge),M0(F,Ge))return Fe}var Xe=kt(Ge);return F&&e.getAssignmentTargetKind(F)!==1?tm(F,Xe):Xe}if(ad(r,ji)&&id(ve)&&+ve>=0){if(s&&ad(r,function(_t){return!_t.target.hasRestElement})&&!(u&16)){var tn=yE(s);ji(r)?Jn(tn,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Lt(r),rp(r),e.unescapeLeadingUnderscores(ve)):Jn(tn,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(ve),Lt(r))}return Vt(po(r,Dr)),Ps(r,function(_t){var Ta=dg(_t)||Rn;return u&1?Sa([Ta,Rn]):Ta})}}if(!(t.flags&98304)&&qs(t,402665900)){if(r.flags&131073)return r;var Dn=ks(r,t)||po(r,gr);if(Dn){if(u&2&&Dn.keyType!==Dr){F&&Jn(F,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Lt(t),Lt(n));return}if(s&&Dn.keyType===gr&&!qs(t,12)){var tn=yE(s);return Jn(tn,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Lt(t)),u&1?Sa([Dn.type,Rn]):Dn.type}return Vt(Dn),u&1?Sa([Dn.type,Rn]):Dn.type}if(t.flags&131072)return Jt;if(lg(r))return cr;if(F&&!s1(r)){if(xp(r)){if(En&&t.flags&384)return zt.add(e.createDiagnosticForNode(F,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,Lt(r))),Rn;if(t.flags&12){var nr=e.map(r.properties,function(_t){return kt(_t)});return Sa(e.append(nr,Rn))}}if(r.symbol===hn&&ve!==void 0&&hn.exports.has(ve)&&hn.exports.get(ve).flags&418)Jn(F,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(ve),Lt(r));else if(En&&!pe.suppressImplicitAnyIndexErrors&&!(u&128))if(ve!==void 0&&B0(ve,r)){var sr=Lt(r);Jn(F,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,ve,sr,sr+"["+e.getTextOfNode(F.argumentExpression)+"]")}else if(Ns(r,Dr))Jn(F.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var Ir=void 0;if(ve!==void 0&&(Ir=zb(ve,r)))Ir!==void 0&&Jn(F.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,ve,Lt(r),Ir);else{var xr=JI(r,F,t);if(xr!==void 0)Jn(F,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Lt(r),xr);else{var Gr=void 0;if(t.flags&1024)Gr=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Lt(t)+"]",Lt(r));else if(t.flags&8192){var ct=Vi(t.symbol,F);Gr=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+ct+"]",Lt(r))}else t.flags&128||t.flags&256?Gr=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,Lt(r)):t.flags&12&&(Gr=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Lt(t),Lt(r)));Gr=e.chainDiagnosticMessages(Gr,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Lt(a),Lt(r)),zt.add(e.createDiagnosticForNodeFromMessageChain(F,Gr))}}}return}}if(lg(r))return cr;if(s){var tn=yE(s);t.flags&384?Jn(tn,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+t.value,Lt(r)):t.flags&12?Jn(tn,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Lt(r),Lt(t)):Jn(tn,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Lt(t))}if(no(t))return t;return;function Vt(_t){_t&&_t.isReadonly&&F&&(e.isAssignmentTarget(F)||e.isDeleteTarget(F))&&Jn(F,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Lt(r))}}function yE(n){return n.kind===205?n.argumentExpression:n.kind===192?n.indexType:n.kind===160?n.expression:n}function RT(n){return!!(n.flags&77)}function cv(n){return!!(n.flags&134217728)&&e.every(n.types,RT)}function mh(n){return!!cg(n)}function vm(n){return!!(cg(n)&8388608)}function Pm(n){return!!(cg(n)&16777216)}function cg(n){return n.flags&3145728?(n.objectFlags&4194304||(n.objectFlags|=4194304|e.reduceLeft(n.types,function(r,t){return r|cg(t)},0)),n.objectFlags&25165824):n.flags&33554432?(n.objectFlags&4194304||(n.objectFlags|=4194304|cg(n.substitute)|cg(n.baseType)),n.objectFlags&25165824):(n.flags&58982400||hc(n)||b_(n)?8388608:0)|(n.flags&465829888&&!cv(n)?16777216:0)}function uv(n){return!!(n.flags&262144&&n.isThisType)}function Qf(n,r){return n.flags&8388608?_A(n,r):n.flags&16777216?vA(n,r):n}function OT(n,r,t){if(n.flags&3145728){var a=e.map(n.types,function(s){return Qf(Ec(s,r),t)});return n.flags&2097152||t?Ro(a):Sa(a)}}function mA(n,r,t){if(r.flags&1048576){var a=e.map(r.types,function(s){return Qf(Ec(n,s),t)});return t?Ro(a):Sa(a)}}function _A(n,r){var t=r?"simplifiedForWriting":"simplifiedForReading";if(n[t])return n[t]===li?n:n[t];n[t]=li;var a=Qf(n.objectType,r),s=Qf(n.indexType,r),u=mA(a,s,r);if(u)return n[t]=u;if(!(s.flags&465829888)){var S=OT(a,s,r);if(S)return n[t]=S}if(b_(a)&&s.flags&296){var F=Lh(a,s.flags&8?0:a.target.fixedLength,0,r);if(F)return n[t]=F}return hc(a)?n[t]=Ps(MT(a,n.indexType),function(ve){return Qf(ve,r)}):n[t]=n}function gA(n){var r=n.root.inferTypeParameters&&uc(n.root.inferTypeParameters,e.map(n.root.inferTypeParameters,function(){return Bn})),t=n.checkType,a=n.extendsType;return mo($p(t),$p(fi(a,r)))}function vA(n,r){var t=n.checkType,a=n.extendsType,s=ip(n),u=op(n);if(u.flags&131072&&Sp(s)===Sp(t)){if(t.flags&1||mo($p(t),$p(a)))return Qf(s,r);if(PT(t,a))return Jt}else if(s.flags&131072&&Sp(u)===Sp(t)){if(!(t.flags&1)&&mo($p(t),$p(a)))return Jt;if(t.flags&1||PT(t,a))return Qf(u,r)}return n}function PT(n,r){return!!(Sa([km(n,r),Jt]).flags&131072)}function MT(n,r){var t=uc([Su(n)],[r]),a=Em(n.mapper,t);return fi(Mc(n),a)}function Ec(n,r,t,a,s,u){return t===void 0&&(t=0),ap(n,r,t,a,s,u)||(a?J:cn)}function wT(n,r){return ad(n,function(t){if(t.flags&384){var a=ql(t);if(id(a)){var s=+a;return s>=0&&s<r}}return!1})}function ap(n,r,t,a,s,u){if(t===void 0&&(t=0),n===Bn||r===Bn)return Bn;if(oS(n)&&!(r.flags&98304)&&qs(r,12)&&(r=gr),pe.noUncheckedIndexedAccess&&t&32&&(t|=1),Pm(r)||(a&&a.kind!==192?b_(n)&&!wT(r,n.target.fixedLength):vm(n)&&!(ji(n)&&wT(r,n.target.fixedLength)))){if(n.flags&3)return n;var S=t&1,F=n.id+","+r.id+","+S+p_(s,u),ve=Qr.get(F);return ve||Qr.set(F,ve=pA(n,r,S,s,u)),ve}var Ge=l_(n);if(r.flags&1048576&&!(r.flags&16)){for(var Je=[],Xe=!1,tn=0,Dn=r.types;tn<Dn.length;tn++){var nr=Dn[tn],sr=kT(n,Ge,nr,r,a,t|(Xe?128:0));if(sr)Je.push(sr);else if(a)Xe=!0;else return}return Xe?void 0:t&4?Ro(Je,s,u):Sa(Je,1,s,u)}return kT(n,Ge,r,r,a,t|8|64)}function FT(n){var r=da(n);if(!r.resolvedType){var t=Ra(n.objectType),a=Ra(n.indexType),s=hm(n),u=Ec(t,a,0,n,s,Mm(s));r.resolvedType=u.flags&8388608&&u.objectType===t&&u.indexType===a?iT(u,n):u}return r.resolvedType}function EE(n){var r=da(n);if(!r.resolvedType){var t=fl(32,n.symbol);t.declaration=n,t.aliasSymbol=hm(n),t.aliasTypeArguments=Mm(t.aliasSymbol),r.resolvedType=t,tu(t)}return r.resolvedType}function Sp(n){return n.flags&33554432?n.baseType:n.flags&8388608&&(n.objectType.flags&33554432||n.indexType.flags&33554432)?Ec(Sp(n.objectType),Sp(n.indexType)):n}function GT(n){return!n.isDistributive&&BT(n.node.checkType)&&BT(n.node.extendsType)}function BT(n){return e.isTupleTypeNode(n)&&e.length(n.elements)===1&&!e.isOptionalTypeNode(n.elements[0])&&!e.isRestTypeNode(n.elements[0])}function bE(n,r){return GT(n)&&ji(r)?Co(r)[0]:r}function TE(n,r,t,a){for(var s,u;;){var S=GT(n),F=fi(bE(n,Sp(n.checkType)),r),ve=mh(F),Ge=fi(bE(n,n.extendsType),r);if(F===Bn||Ge===Bn)return Bn;var Je=void 0;if(n.inferTypeParameters){var Xe=mg(n.inferTypeParameters,void 0,0);ve||Lf(Xe.inferences,F,Ge,1536),Je=r?Em(Xe.mapper,r):Xe.mapper}var tn=Je?fi(bE(n,n.extendsType),Je):Ge;if(!ve&&!mh(tn)){if(!(tn.flags&3)&&(F.flags&1&&!S||!mo(Eh(F),Eh(tn)))){F.flags&1&&!S&&(u||(u=[])).push(fi(Ra(n.node.trueType),Je||r));var Dn=Ra(n.node.falseType);if(Dn.flags&16777216){var nr=Dn.root;if(nr.node.parent===n.node&&(!nr.isDistributive||nr.checkType===n.checkType)){n=nr;continue}}s=fi(Dn,r);break}if(tn.flags&3||mo($p(F),$p(tn))){s=fi(Ra(n.node.trueType),Je||r);break}}s=Pl(16777216),s.root=n,s.checkType=fi(n.checkType,r),s.extendsType=fi(n.extendsType,r),s.mapper=r,s.combinedMapper=Je,s.aliasSymbol=t||n.aliasSymbol,s.aliasTypeArguments=t?a:kd(n.aliasTypeArguments,r);break}return u?Sa(e.append(u,s)):s}function ip(n){return n.resolvedTrueType||(n.resolvedTrueType=fi(Ra(n.root.node.trueType),n.mapper))}function op(n){return n.resolvedFalseType||(n.resolvedFalseType=fi(Ra(n.root.node.falseType),n.mapper))}function hA(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?fi(Ra(n.root.node.trueType),n.combinedMapper):ip(n))}function UT(n){var r;return n.locals&&n.locals.forEach(function(t){t.flags&262144&&(r=e.append(r,rs(t)))}),r}function yA(n){var r=da(n);if(!r.resolvedType){var t=Ra(n.checkType),a=hm(n),s=Mm(a),u=qn(n,!0),S=s?u:e.filter(u,function(ve){return qT(ve,n)}),F={node:n,checkType:t,extendsType:Ra(n.extendsType),isDistributive:!!(t.flags&262144),inferTypeParameters:UT(n),outerTypeParameters:S,instantiations:void 0,aliasSymbol:a,aliasTypeArguments:s};r.resolvedType=TE(F,void 0),S&&(F.instantiations=new e.Map,F.instantiations.set(lu(S),r.resolvedType))}return r.resolvedType}function EA(n){var r=da(n);return r.resolvedType||(r.resolvedType=zf(wt(n.typeParameter))),r.resolvedType}function VT(n){return e.isIdentifier(n)?[n]:e.append(VT(n.left),n.right)}function bA(n){var r=da(n);if(!r.resolvedType){if(n.isTypeOf&&n.typeArguments)return Jn(n,e.Diagnostics.Type_arguments_cannot_be_used_here),r.resolvedSymbol=Xn,r.resolvedType=J;if(!e.isLiteralImportTypeNode(n))return Jn(n.argument,e.Diagnostics.String_literal_expected),r.resolvedSymbol=Xn,r.resolvedType=J;var t=n.isTypeOf?111551:n.flags&4194304?900095:788968,a=wo(n,n.argument.literal);if(!a)return r.resolvedSymbol=Xn,r.resolvedType=J;var s=Dt(a,!1);if(e.nodeIsMissing(n.qualifier))if(s.flags&t)r.resolvedType=WT(n,r,s,t);else{var Xe=t===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;Jn(n,Xe,n.argument.literal.text),r.resolvedSymbol=Xn,r.resolvedType=J}else{for(var u=VT(n.qualifier),S=s,F=void 0;F=u.shift();){var ve=u.length?1920:t,Ge=Eo(Ba(S)),Je=n.isTypeOf?wn(kt(Ge),F.escapedText):$o(al(Ge),F.escapedText,ve);if(!Je)return Jn(F,e.Diagnostics.Namespace_0_has_no_exported_member_1,Vi(S),e.declarationNameToString(F)),r.resolvedType=J;da(F).resolvedSymbol=Je,da(F.parent).resolvedSymbol=Je,S=Je}r.resolvedType=WT(n,r,S,t)}}return r.resolvedType}function WT(n,r,t,a){var s=Ba(t);return r.resolvedSymbol=s,a===111551?kt(t):ch(n,s)}function jT(n){var r=da(n);if(!r.resolvedType){var t=hm(n);if(Hc(n.symbol).size===0&&!t)r.resolvedType=vt;else{var a=fl(16,n.symbol);a.aliasSymbol=t,a.aliasTypeArguments=Mm(t),e.isJSDocTypeLiteral(n)&&n.isArrayType&&(a=bl(a)),r.resolvedType=a}}return r.resolvedType}function hm(n){for(var r=n.parent;e.isParenthesizedTypeNode(r)||e.isJSDocTypeExpression(r)||e.isTypeOperatorNode(r)&&r.operator===143;)r=r.parent;return e.isTypeAlias(r)?wt(r):void 0}function Mm(n){return n?Nt(n):void 0}function SE(n){return!!(n.flags&524288)&&!hc(n)}function DE(n){return nd(n)||!!(n.flags&474058748)}function LE(n,r){if(!(n.flags&1048576))return n;if(e.every(n.types,DE))return e.find(n.types,nd)||Lr;var t=e.find(n.types,function(u){return!DE(u)});if(!t)return n;var a=e.find(n.types,function(u){return u!==t&&!DE(u)});if(a)return n;return s(t);function s(u){for(var S=e.createSymbolTable(),F=0,ve=bo(u);F<ve.length;F++){var Ge=ve[F];if(!(e.getDeclarationModifierFlagsFromSymbol(Ge)&24)){if(_h(Ge)){var Je=Ge.flags&65536&&!(Ge.flags&32768),Xe=16777220,tn=fo(Xe,Ge.escapedName,zg(Ge)|(r?8:0));tn.type=Je?Rn:Xi(kt(Ge),!0),tn.declarations=Ge.declarations,tn.nameType=Za(Ge).nameType,tn.syntheticOrigin=Ge,S.set(Ge.escapedName,tn)}}}var Dn=qo(u.symbol,S,e.emptyArray,e.emptyArray,Ei(u));return Dn.objectFlags|=262272,Dn}}function Dp(n,r,t,a,s){if(n.flags&1||r.flags&1)return cr;if(n.flags&2||r.flags&2)return cn;if(n.flags&131072)return r;if(r.flags&131072)return n;if(n=LE(n,s),n.flags&1048576)return lv([n,r])?Ps(n,function(_t){return Dp(_t,r,t,a,s)}):J;if(r=LE(r,s),r.flags&1048576)return lv([n,r])?Ps(r,function(_t){return Dp(n,_t,t,a,s)}):J;if(r.flags&473960444)return n;if(vm(n)||vm(r)){if(nd(n))return r;if(n.flags&2097152){var u=n.types,S=u[u.length-1];if(SE(S)&&SE(r))return Ro(e.concatenate(u.slice(0,u.length-1),[Dp(S,r,t,a,s)]))}return Ro([n,r])}for(var F=e.createSymbolTable(),ve=new e.Set,Ge=n===Lr?Ei(r):Zv([n,r]),Je=0,Xe=bo(r);Je<Xe.length;Je++){var tn=Xe[Je];e.getDeclarationModifierFlagsFromSymbol(tn)&24?ve.add(tn.escapedName):_h(tn)&&F.set(tn.escapedName,AE(tn,s))}for(var Dn=0,nr=bo(n);Dn<nr.length;Dn++){var sr=nr[Dn];if(!(ve.has(sr.escapedName)||!_h(sr)))if(F.has(sr.escapedName)){var tn=F.get(sr.escapedName),Ir=kt(tn);if(tn.flags&16777216){var xr=e.concatenate(sr.declarations,tn.declarations),Gr=4|sr.flags&16777216,ct=fo(Gr,sr.escapedName);ct.type=Sa([kt(sr),nb(Ir)]),ct.leftSpread=sr,ct.rightSpread=tn,ct.declarations=xr,ct.nameType=Za(sr).nameType,F.set(sr.escapedName,ct)}}else F.set(sr.escapedName,AE(sr,s))}var Vt=qo(t,F,e.emptyArray,e.emptyArray,e.sameMap(Ge,function(_t){return TA(_t,s)}));return Vt.objectFlags|=4456576|a,Vt}function _h(n){var r;return!e.some(n.declarations,e.isPrivateIdentifierClassElementDeclaration)&&(!(n.flags&106496)||!(!((r=n.declarations)===null||r===void 0)&&r.some(function(t){return e.isClassLike(t.parent)})))}function AE(n,r){var t=n.flags&65536&&!(n.flags&32768);if(!t&&r===df(n))return n;var a=4|n.flags&16777216,s=fo(a,n.escapedName,zg(n)|(r?8:0));return s.type=t?Rn:kt(n),s.declarations=n.declarations,s.nameType=Za(n).nameType,s.syntheticOrigin=n,s}function TA(n,r){return n.isReadonly!==r?Uu(n.keyType,n.type,r,n.declaration):n}function fv(n,r,t,a){var s=Pl(n);return s.symbol=t,s.value=r,s.regularType=a||s,s}function wm(n){if(n.flags&2944){if(!n.freshType){var r=fv(n.flags,n.value,n.symbol,n);r.freshType=r,n.freshType=r}return n.freshType}return n}function cc(n){return n.flags&2944?n.regularType:n.flags&1048576?n.regularType||(n.regularType=Ps(n,cc)):n}function Lp(n){return!!(n.flags&2944)&&n.freshType===n}function Jc(n){var r;return On.get(n)||(On.set(n,r=fv(128,n)),r)}function Zf(n){var r;return ur.get(n)||(ur.set(n,r=fv(256,n)),r)}function CE(n){var r,t=e.pseudoBigIntToString(n);return hr.get(t)||(hr.set(t,r=fv(2048,n)),r)}function SA(n,r,t){var a,s=typeof n=="string"?"@":"#",u=r+s+n,S=1024|(typeof n=="string"?128:256);return wr.get(u)||(wr.set(u,a=fv(S,n,t)),a)}function DA(n){if(n.literal.kind===104)return zn;var r=da(n);return r.resolvedType||(r.resolvedType=cc(vi(n.literal))),r.resolvedType}function LA(n){var r=Pl(8192);return r.symbol=n,r.escapedName="__@"+r.symbol.escapedName+"@"+C(r.symbol),r}function xE(n){if(e.isValidESSymbolDeclaration(n)){var r=wt(n),t=Za(r);return t.uniqueESSymbolType||(t.uniqueESSymbolType=LA(r))}return qt}function AA(n){var r=e.getThisContainer(n,!1),t=r&&r.parent;if(t&&(e.isClassLike(t)||t.kind===256)&&!e.isStatic(r)&&(!e.isConstructorDeclaration(r)||e.isNodeDescendantOf(n,r.body)))return lc(wt(t)).thisType;if(t&&e.isObjectLiteralExpression(t)&&e.isBinaryExpression(t.parent)&&e.getAssignmentDeclarationKind(t.parent)===6)return lc(wt(t.parent.left).parent).thisType;var a=n.flags&4194304?e.getHostSignatureFromJSDoc(n):void 0;return a&&e.isFunctionExpression(a)&&e.isBinaryExpression(a.parent)&&e.getAssignmentDeclarationKind(a.parent)===3?lc(wt(a.parent.left).parent).thisType:Nu(r)&&e.isNodeDescendantOf(n,r.body)?lc(wt(r)).thisType:(Jn(n,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),J)}function gh(n){var r=da(n);return r.resolvedType||(r.resolvedType=AA(n)),r.resolvedType}function HT(n){return Ra(dv(n.type)||n.type)}function dv(n){switch(n.kind){case 189:return dv(n.type);case 182:if(n.elements.length===1&&(n=n.elements[0],n.kind===184||n.kind===195&&n.dotDotDotToken))return dv(n.type);break;case 181:return n.elementType}}function CA(n){var r=da(n);return r.resolvedType||(r.resolvedType=n.dotDotDotToken?HT(n):Xi(Ra(n.type),!0,!!n.questionToken))}function Ra(n){return iT(JT(n),n)}function JT(n){switch(n.kind){case 129:case 307:case 308:return cr;case 153:return cn;case 148:return gr;case 145:return Dr;case 156:return qr;case 132:return Ur;case 149:return qt;case 114:return Cr;case 151:return Rn;case 104:return zn;case 142:return Jt;case 146:return n.flags&131072&&!En?cr:za;case 137:return Gn;case 190:case 108:return gh(n);case 194:return DA(n);case 176:return sv(n);case 175:return n.assertsModifier?Cr:Ur;case 226:return sv(n);case 179:return sT(n);case 181:case 182:return ML(n);case 183:return GL(n);case 185:return JL(n);case 186:return $L(n);case 309:return mL(n);case 311:return Xi(Ra(n.type));case 195:return CA(n);case 189:case 310:case 304:return Ra(n.type);case 184:return HT(n);case 313:return LO(n);case 177:case 178:case 180:case 317:case 312:case 318:return jT(n);case 191:return oA(n);case 192:return FT(n);case 193:return EE(n);case 187:return yA(n);case 188:return EA(n);case 196:return sA(n);case 198:return bA(n);case 79:case 159:case 204:var r=Kc(n);return r?rs(r):J;default:return J}}function vh(n,r,t){if(n&&n.length)for(var a=0;a<n.length;a++){var s=n[a],u=t(s,r);if(s!==u){var S=a===0?[]:n.slice(0,a);for(S.push(u),a++;a<n.length;a++)S.push(t(n[a],r));return S}}return n}function kd(n,r){return vh(n,r,fi)}function hh(n,r){return vh(n,r,Fm)}function KT(n,r){return vh(n,r,VA)}function uc(n,r){return n.length===1?ym(n[0],r?r[0]:cr):xA(n,r)}function Qp(n,r){switch(r.kind){case 0:return n===r.source?r.target:n;case 1:for(var t=r.sources,a=r.targets,s=0;s<t.length;s++)if(n===t[s])return a?a[s]:cr;return n;case 2:return r.func(n);case 3:case 4:var u=Qp(n,r.mapper1);return u!==n&&r.kind===3?fi(u,r.mapper2):Qp(u,r.mapper2)}}function ym(n,r){return{kind:0,source:n,target:r}}function xA(n,r){return{kind:1,sources:n,targets:r}}function Zp(n){return{kind:2,func:n}}function yh(n,r,t){return{kind:n,mapper1:r,mapper2:t}}function zT(n){return uc(n,void 0)}function IA(n,r){return Zp(function(t){return e.findIndex(n.inferences,function(a){return a.typeParameter===t})>=r?cn:t})}function Em(n,r){return n?yh(3,n,r):r}function NA(n,r){return n?yh(4,n,r):r}function bm(n,r,t){return t?yh(4,ym(n,r),t):ym(n,r)}function pv(n,r,t){return n?yh(4,n,ym(r,t)):ym(r,t)}function kA(n){return n.constraint===cn?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=Uc(n.symbol),n.restrictiveInstantiation.constraint=cn,n.restrictiveInstantiation)}function IE(n){var r=Uc(n.symbol);return r.target=n,r}function RA(n,r){return Xp(n.kind,n.parameterName,n.parameterIndex,fi(n.type,r))}function Fm(n,r,t){var a;if(n.typeParameters&&!t){a=e.map(n.typeParameters,IE),r=Em(uc(n.typeParameters,a),r);for(var s=0,u=a;s<u.length;s++){var S=u[s];S.mapper=r}}var F=Tu(n.declaration,a,n.thisParameter&&NE(n.thisParameter,r),vh(n.parameters,r,NE),void 0,void 0,n.minArgumentCount,n.flags&39);return F.target=n,F.mapper=r,F}function NE(n,r){var t=Za(n);if(t.type&&!_g(t.type))return n;e.getCheckFlags(n)&1&&(n=t.target,r=Em(t.mapper,r));var a=fo(n.flags,n.escapedName,1|e.getCheckFlags(n)&53256);return a.declarations=n.declarations,a.parent=n.parent,a.target=n,a.mapper=r,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),t.nameType&&(a.nameType=t.nameType),a}function OA(n,r,t,a){var s=n.objectFlags&4?n.node:n.symbol.declarations[0],u=da(s),S=n.objectFlags&4?u.resolvedType:n.objectFlags&64?n.target:n,F=u.outerTypeParameters;if(!F){var ve=qn(s,!0);if(Nu(s)){var Ge=Vs(s);ve=e.addRange(ve,Ge)}F=ve||e.emptyArray;var Je=n.objectFlags&4?[s]:n.symbol.declarations;F=(S.objectFlags&4||S.symbol.flags&8192||S.symbol.flags&2048)&&!S.aliasTypeArguments?e.filter(F,function(Gr){return e.some(Je,function(ct){return qT(Gr,ct)})}):F,u.outerTypeParameters=F}if(F.length){var Xe=Em(n.mapper,r),tn=e.map(F,function(Gr){return Qp(Gr,Xe)}),Dn=t||n.aliasSymbol,nr=t?a:kd(n.aliasTypeArguments,r),sr=lu(tn)+p_(Dn,nr);S.instantiations||(S.instantiations=new e.Map,S.instantiations.set(lu(F)+p_(S.aliasSymbol,S.aliasTypeArguments),S));var Ir=S.instantiations.get(sr);if(!Ir){var xr=uc(F,tn);Ir=S.objectFlags&4?sE(n.target,n.node,xr,Dn,nr):S.objectFlags&32?XT(S,xr,Dn,nr):OE(S,xr,Dn,nr),S.instantiations.set(sr,Ir)}return Ir}return n}function PA(n){return!(n.parent.kind===176&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===198&&n.parent.typeArguments&&n===n.parent.qualifier)}function qT(n,r){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){for(var t=n.symbol.declarations[0].parent,a=r;a!==t;a=a.parent)if(!a||a.kind===233||a.kind===187&&e.forEachChild(a.extendsType,s))return!0;return s(r)}return!0;function s(u){switch(u.kind){case 190:return!!n.isThisType;case 79:return!n.isThisType&&e.isPartOfTypeNode(u)&&PA(u)&&JT(u)===n;case 179:return!0;case 167:case 166:return!u.type&&!!u.body||e.some(u.typeParameters,s)||e.some(u.parameters,s)||!!u.type&&s(u.type)}return!!e.forEachChild(u,s)}}function kE(n){var r=tu(n);if(r.flags&4194304){var t=Sp(r.type);if(t.flags&262144)return t}}function XT(n,r,t,a){var s=kE(n);if(s){var u=fi(s,r);if(s!==u)return XS(iu(u),function(S){if(S.flags&61603843&&S!==Bn&&S!==J){if(!n.declaration.nameType){if(Gl(S))return wA(S,n,bm(s,S,r));if(b_(S))return MA(S,n,s,r);if(ji(S))return FA(S,n,bm(s,S,r))}return OE(n,bm(s,S,r))}return S},t,a)}return fi(tu(n),r)===Bn?Bn:OE(n,r,t,a)}function RE(n,r){return r&1?!0:r&2?!1:n}function MA(n,r,t,a){var s=n.target.elementFlags,u=e.map(Co(n),function(F,ve){var Ge=s[ve]&8?F:s[ve]&4?bl(F):Vu([F],[s[ve]]);return XT(r,bm(t,Ge,a))}),S=RE(n.target.readonly,au(r));return Vu(u,e.map(u,function(F){return 8}),S)}function wA(n,r,t){var a=YT(r,Dr,!0,t);return a===J?J:bl(a,RE(y_(n),au(r)))}function FA(n,r,t){var a=n.target.elementFlags,s=e.map(Co(n),function(ve,Ge){return YT(r,Jc(""+Ge),!!(a[Ge]&2),t)}),u=au(r),S=u&4?e.map(a,function(ve){return ve&1?2:ve}):u&8?e.map(a,function(ve){return ve&2?1:ve}):a,F=RE(n.target.readonly,u);return e.contains(s,J)?J:Vu(s,S,F,n.target.labeledElementDeclarations)}function YT(n,r,t,a){var s=pv(a,Su(n),r),u=fi(Mc(n.target||n),s),S=au(n);return He&&S&4&&!bs(u,49152)?td(u,!0):He&&S&8&&t?gl(u,524288):u}function OE(n,r,t,a){var s=fl(n.objectFlags|64,n.symbol);if(n.objectFlags&32){s.declaration=n.declaration;var u=Su(n),S=IE(u);s.typeParameter=S,r=Em(ym(u,S),r),S.mapper=r}return s.target=n,s.mapper=r,s.aliasSymbol=t||n.aliasSymbol,s.aliasTypeArguments=t?a:kd(n.aliasTypeArguments,r),s}function PE(n,r,t,a){var s=n.root;if(s.outerTypeParameters){var u=e.map(s.outerTypeParameters,function(Ge){return Qp(Ge,r)}),S=lu(u)+p_(t,a),F=s.instantiations.get(S);if(!F){var ve=uc(s.outerTypeParameters,u);F=GA(s,ve,t,a),s.instantiations.set(S,F)}return F}return n}function GA(n,r,t,a){if(n.isDistributive){var s=n.checkType,u=Qp(s,r);if(s!==u&&u.flags&1179648)return XS(u,function(S){return TE(n,bm(s,S,r))},t,a)}return TE(n,r,t,a)}function fi(n,r){return n&&r?QT(n,r,void 0,void 0):n}function QT(n,r,t,a){if(!_g(n))return n;if(en===50||De>=5e6)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:en,instantiationCount:De}),Jn(fe,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),J;Be++,De++,en++;var s=BA(n,r,t,a);return en--,s}function BA(n,r,t,a){var s=n.flags;if(s&262144)return Qp(n,r);if(s&524288){var u=n.objectFlags;if(u&52){if(u&4&&!n.node){var S=n.resolvedTypeArguments,F=kd(S,r);return F!==S?dE(n.target,F):n}return u&1024?UA(n,r):OA(n,r,t,a)}return n}if(s&3145728){var ve=n.flags&1048576?n.origin:void 0,Ge=ve&&ve.flags&3145728?ve.types:n.types,Je=kd(Ge,r);if(Je===Ge&&t===n.aliasSymbol)return n;var Xe=t||n.aliasSymbol,tn=t?a:kd(n.aliasTypeArguments,r);return s&2097152||ve&&ve.flags&2097152?Ro(Je,Xe,tn):Sa(Je,1,Xe,tn)}if(s&4194304)return ff(fi(n.type,r));if(s&134217728)return g_(n.texts,kd(n.types,r));if(s&268435456)return ph(n.symbol,fi(n.type,r));if(s&8388608){var Xe=t||n.aliasSymbol,tn=t?a:kd(n.aliasTypeArguments,r);return Ec(fi(n.objectType,r),fi(n.indexType,r),n.accessFlags,void 0,Xe,tn)}if(s&16777216)return PE(n,Em(n.mapper,r),t,a);if(s&33554432){var Dn=fi(n.baseType,r);if(Dn.flags&8650752)return rT(Dn,fi(n.substitute,r));var nr=fi(n.substitute,r);return nr.flags&3||mo($p(Dn),$p(nr))?Dn:nr}return n}function UA(n,r){var t=fi(n.mappedType,r);if(!(e.getObjectFlags(t)&32))return n;var a=fi(n.constraintType,r);if(!(a.flags&4194304))return n;var s=IS(fi(n.source,r),t,a);return s||n}function Eh(n){return n.flags&262143?n:n.permissiveInstantiation||(n.permissiveInstantiation=fi(n,Rr))}function $p(n){return n.flags&262143?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=fi(n,Zt),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function VA(n,r){return Uu(n.keyType,fi(n.type,r),n.isReadonly,n.declaration)}function Au(n){switch(e.Debug.assert(n.kind!==167||e.isObjectLiteralMethod(n)),n.kind){case 211:case 212:case 167:case 254:return ZT(n);case 203:return e.some(n.properties,Au);case 202:return e.some(n.elements,Au);case 220:return Au(n.whenTrue)||Au(n.whenFalse);case 219:return(n.operatorToken.kind===56||n.operatorToken.kind===60)&&(Au(n.left)||Au(n.right));case 291:return Au(n.initializer);case 210:return Au(n.expression);case 284:return e.some(n.properties,Au)||e.isJsxOpeningElement(n.parent)&&e.some(n.parent.parent.children,Au);case 283:{var r=n.initializer;return!!r&&Au(r)}case 286:{var t=n.expression;return!!t&&Au(t)}}return!1}function ZT(n){return(!e.isFunctionDeclaration(n)||e.isInJSFile(n)&&!!Pa(n))&&(e.hasContextSensitiveParameters(n)||WA(n))}function WA(n){return!n.typeParameters&&!e.getEffectiveReturnTypeNode(n)&&!!n.body&&n.body.kind!==233&&Au(n.body)}function $T(n){return(e.isInJSFile(n)&&e.isFunctionDeclaration(n)||Ob(n)||e.isObjectLiteralMethod(n))&&ZT(n)}function eS(n){if(n.flags&524288){var r=Du(n);if(r.constructSignatures.length||r.callSignatures.length){var t=fl(16,n.symbol);return t.members=r.members,t.properties=r.properties,t.callSignatures=e.emptyArray,t.constructSignatures=e.emptyArray,t.indexInfos=e.emptyArray,t}}else if(n.flags&2097152)return Ro(e.map(n.types,eS));return n}function $f(n,r){return rd(n,r,Yt)}function ug(n,r){return rd(n,r,Yt)?-1:0}function ME(n,r){return rd(n,r,Tr)?-1:0}function jA(n,r){return rd(n,r,un)?-1:0}function ed(n,r){return rd(n,r,un)}function mo(n,r){return rd(n,r,Tr)}function v_(n,r){return n.flags&1048576?e.every(n.types,function(t){return v_(t,r)}):r.flags&1048576?e.some(r.types,function(t){return v_(n,t)}):n.flags&58982400?v_(Xl(n)||cn,r):r===us?!!(n.flags&67633152):r===Jo?!!(n.flags&524288)&&vb(n):Ee(n,B(r))||Gl(r)&&!y_(r)&&v_(n,$r)}function h_(n,r){return rd(n,r,Wr)}function bh(n,r){return h_(n,r)||h_(r,n)}function xc(n,r,t,a,s,u){return Cu(n,r,Tr,t,a,s,u)}function sp(n,r,t,a,s,u){return wE(n,r,Tr,t,a,s,u,void 0)}function wE(n,r,t,a,s,u,S,F){return rd(n,r,t)?!0:!a||!mv(s,n,r,t,u,S,F)?Cu(n,r,t,a,u,S,F):!1}function nS(n){return!!(n.flags&16777216||n.flags&2097152&&e.some(n.types,nS))}function mv(n,r,t,a,s,u,S){if(!n||nS(t))return!1;if(!Cu(r,t,a,void 0)&&HA(n,r,t,a,s,u,S))return!0;switch(n.kind){case 286:case 210:return mv(n.expression,r,t,a,s,u,S);case 219:switch(n.operatorToken.kind){case 63:case 27:return mv(n.right,r,t,a,s,u,S)}break;case 203:return $A(n,r,t,a,u,S);case 202:return QA(n,r,t,a,u,S);case 284:return YA(n,r,t,a,u,S);case 212:return JA(n,r,t,a,u,S)}return!1}function HA(n,r,t,a,s,u,S){for(var F=zr(r,0),ve=zr(r,1),Ge=0,Je=[ve,F];Ge<Je.length;Ge++){var Xe=Je[Ge];if(e.some(Xe,function(nr){var sr=_o(nr);return!(sr.flags&131073)&&Cu(sr,t,a,void 0)})){var tn=S||{};xc(r,t,n,s,u,tn);var Dn=tn.errors[tn.errors.length-1];return e.addRelatedInfo(Dn,e.createDiagnosticForNode(n,Xe===ve?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}function JA(n,r,t,a,s,u){if(e.isBlock(n.body)||e.some(n.parameters,e.hasType))return!1;var S=Dm(r);if(!S)return!1;var F=zr(t,0);if(!e.length(F))return!1;var ve=n.body,Ge=_o(S),Je=Sa(e.map(F,_o));if(!Cu(Ge,Je,a,void 0)){var Xe=ve&&mv(ve,Ge,Je,a,void 0,s,u);if(Xe)return Xe;var tn=u||{};if(Cu(Ge,Je,a,ve,void 0,s,tn),tn.errors)return t.symbol&&e.length(t.symbol.declarations)&&e.addRelatedInfo(tn.errors[tn.errors.length-1],e.createDiagnosticForNode(t.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),!(e.getFunctionFlags(n)&2)&&!Os(Ge,"then")&&Cu(Ov(Ge),Je,a,void 0)&&e.addRelatedInfo(tn.errors[tn.errors.length-1],e.createDiagnosticForNode(n,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function KA(n,r,t){var a=ap(r,t);if(a)return a;if(r.flags&1048576){var s=lS(n,r);if(s)return ap(s,t)}}function zA(n,r){n.contextualType=r;try{return P_(n,1,r)}finally{n.contextualType=void 0}}function fg(n,r,t,a,s,u){for(var S=!1,F=n.next();!F.done;F=n.next()){var ve=F.value,Ge=ve.errorNode,Je=ve.innerExpression,Xe=ve.nameType,tn=ve.errorMessage,Dn=KA(r,t,Xe);if(!(!Dn||Dn.flags&8388608)){var nr=ap(r,Xe);if(nr){var sr=vE(Xe,void 0),Ir=!!(sr&&(wn(t,sr)||Xn).flags&16777216),xr=!!(sr&&(wn(r,sr)||Xn).flags&16777216);if(Dn=Bm(Dn,Ir),nr=Bm(nr,Ir&&xr),!Cu(nr,Dn,a,void 0)){var Gr=Je&&mv(Je,nr,Dn,a,void 0,s,u);if(Gr)S=!0;else{var ct=u||{},Vt=Je?zA(Je,nr):nr,_t=Cu(Vt,Dn,a,Ge,tn,s,ct);if(_t&&Vt!==nr&&Cu(nr,Dn,a,Ge,tn,s,ct),ct.errors){var Ta=ct.errors[ct.errors.length-1],sa=Gi(Xe)?ql(Xe):void 0,mi=sa!==void 0?wn(t,sa):void 0,ai=!1;if(!mi){var Hi=ks(t,Xe);Hi&&Hi.declaration&&!e.getSourceFileOfNode(Hi.declaration).hasNoDefaultLib&&(ai=!0,e.addRelatedInfo(Ta,e.createDiagnosticForNode(Hi.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!ai&&(mi&&e.length(mi.declarations)||t.symbol&&e.length(t.symbol.declarations))){var ii=mi&&e.length(mi.declarations)?mi.declarations[0]:t.symbol.declarations[0];e.getSourceFileOfNode(ii).hasNoDefaultLib||e.addRelatedInfo(Ta,e.createDiagnosticForNode(ii,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,sa&&!(Xe.flags&8192)?e.unescapeLeadingUnderscores(sa):Lt(Xe),Lt(t)))}}S=!0}}}}}return S}function qA(n){var r,t,a;return Ou(this,function(s){switch(s.label){case 0:if(!e.length(n.properties))return[2];r=0,t=n.properties,s.label=1;case 1:return r<t.length?(a=t[r],e.isJsxSpreadAttribute(a)||wb(e.idText(a.name))?[3,3]:[4,{errorNode:a.name,innerExpression:a.initializer,nameType:Jc(e.idText(a.name))}]):[3,4];case 2:s.sent(),s.label=3;case 3:return r++,[3,1];case 4:return[2]}})}function XA(n,r){var t,a,s,u,S;return Ou(this,function(F){switch(F.label){case 0:if(!e.length(n.children))return[2];t=0,a=0,F.label=1;case 1:return a<n.children.length?(s=n.children[a],u=Zf(a-t),S=rS(s,u,r),S?[4,S]:[3,3]):[3,5];case 2:return F.sent(),[3,4];case 3:t++,F.label=4;case 4:return a++,[3,1];case 5:return[2]}})}function rS(n,r,t){switch(n.kind){case 286:return{errorNode:n,innerExpression:n.expression,nameType:r};case 11:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:r,errorMessage:t()};case 276:case 277:case 280:return{errorNode:n,innerExpression:n,nameType:r};default:return e.Debug.assertNever(n,"Found invalid jsx child")}}function YA(n,r,t,a,s,u){var S=fg(qA(n),r,t,a,s,u),F;if(e.isJsxOpeningElement(n.parent)&&e.isJsxElement(n.parent.parent)){var ve=n.parent.parent,Ge=Xh(Km(n)),Je=Ge===void 0?"children":e.unescapeLeadingUnderscores(Ge),Xe=Jc(Je),tn=Ec(t,Xe),Dn=e.getSemanticJsxChildren(ve.children);if(!e.length(Dn))return S;var nr=e.length(Dn)>1,sr=Nl(tn,gS),Ir=Nl(tn,function(sa){return!gS(sa)});if(nr){if(sr!==Jt){var xr=Vu(qh(ve,0)),Gr=XA(ve,Ta);S=fg(Gr,xr,sr,a,s,u)||S}else if(!rd(Ec(r,Xe),tn,a)){S=!0;var ct=Jn(ve.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Je,Lt(tn));u&&u.skipLogging&&(u.errors||(u.errors=[])).push(ct)}}else if(Ir!==Jt){var Vt=Dn[0],_t=rS(Vt,Xe,Ta);_t&&(S=fg(function(){return Ou(this,function(sa){switch(sa.label){case 0:return[4,_t];case 1:return sa.sent(),[2]}})}(),r,t,a,s,u)||S)}else if(!rd(Ec(r,Xe),tn,a)){S=!0;var ct=Jn(ve.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Je,Lt(tn));u&&u.skipLogging&&(u.errors||(u.errors=[])).push(ct)}}return S;function Ta(){if(!F){var sa=e.getTextOfNode(n.parent.tagName),mi=Xh(Km(n)),ai=mi===void 0?"children":e.unescapeLeadingUnderscores(mi),Hi=Ec(t,Jc(ai)),ii=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;F=Mt(Mt({},ii),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,ii,sa,ai,Lt(Hi))})}return F}}function tS(n,r){var t,a,s,u;return Ou(this,function(S){switch(S.label){case 0:if(t=e.length(n.elements),!t)return[2];a=0,S.label=1;case 1:return a<t?E_(r)&&!wn(r,""+a)?[3,3]:(s=n.elements[a],e.isOmittedExpression(s)?[3,3]:(u=Zf(a),[4,{errorNode:s,innerExpression:s,nameType:u}])):[3,4];case 2:S.sent(),S.label=3;case 3:return a++,[3,1];case 4:return[2]}})}function QA(n,r,t,a,s,u){if(t.flags&131068)return!1;if(E_(r))return fg(tS(n,t),r,t,a,s,u);var S=n.contextualType;n.contextualType=t;try{var F=v0(n,1,!0);return n.contextualType=S,E_(F)?fg(tS(n,t),F,t,a,s,u):!1}finally{n.contextualType=S}}function ZA(n){var r,t,a,s,u;return Ou(this,function(S){switch(S.label){case 0:if(!e.length(n.properties))return[2];r=0,t=n.properties,S.label=1;case 1:if(!(r<t.length))return[3,8];if(a=t[r],e.isSpreadAssignment(a))return[3,7];if(s=Om(wt(a),8576),!s||s.flags&131072)return[3,7];switch(u=a.kind,u){case 171:return[3,2];case 170:return[3,2];case 167:return[3,2];case 292:return[3,2];case 291:return[3,4]}return[3,6];case 2:return[4,{errorNode:a.name,innerExpression:void 0,nameType:s}];case 3:return S.sent(),[3,7];case 4:return[4,{errorNode:a.name,innerExpression:a.initializer,nameType:s,errorMessage:e.isComputedNonLiteralName(a.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return S.sent(),[3,7];case 6:e.Debug.assertNever(a),S.label=7;case 7:return r++,[3,1];case 8:return[2]}})}function $A(n,r,t,a,s,u){return t.flags&131068?!1:fg(ZA(n),r,t,a,s,u)}function aS(n,r,t,a,s){return Cu(n,r,Wr,t,a,s)}function eC(n,r,t){return FE(n,r,t?4:0,!1,void 0,void 0,ME,void 0)!==0}function nC(n){return!n.typeParameters&&(!n.thisParameter||no(Tg(n.thisParameter)))&&n.parameters.length===1&&N(n)&&(Tg(n.parameters[0])===dn||no(Tg(n.parameters[0])))&&no(_o(n))}function FE(n,r,t,a,s,u,S,F){if(n===r||nC(r))return-1;var ve=ac(r),Ge=!Ku(r)&&(t&8?Ku(n)||ac(n)>ve:Ju(n)>ve);if(Ge)return 0;n.typeParameters&&n.typeParameters!==r.typeParameters&&(r=lL(r),n=X0(n,r,void 0,S));var Je=ac(n),Xe=Dg(n),tn=Dg(r);if((Xe||tn)&&fi(Xe||tn,F),Xe&&tn&&Je!==ve)return 0;var Dn=r.declaration?r.declaration.kind:0,nr=!(t&3)&&Ln&&Dn!==167&&Dn!==166&&Dn!==169,sr=-1,Ir=Id(n);if(Ir&&Ir!==Cr){var xr=Id(r);if(xr){var Gr=!nr&&S(Ir,xr,!1)||S(xr,Ir,a);if(!Gr)return a&&s(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;sr&=Gr}}for(var ct=Xe||tn?Math.min(Je,ve):Math.max(Je,ve),Vt=Xe||tn?ct-1:-1,_t=0;_t<ct;_t++){var Ta=_t===Vt?R_(n,_t):im(n,_t),sa=_t===Vt?R_(r,_t):im(r,_t);if(Ta&&sa){var mi=t&3?void 0:Dm(Rd(Ta)),ai=t&3?void 0:Dm(Rd(sa)),Hi=mi&&ai&&!Cc(mi)&&!Cc(ai)&&(wc(Ta)&98304)===(wc(sa)&98304),Gr=Hi?FE(ai,mi,t&8|(nr?2:1),a,s,u,S,F):!(t&3)&&!nr&&S(Ta,sa,!1)||S(sa,Ta,a);if(Gr&&t&8&&_t>=Ju(n)&&_t<Ju(r)&&S(Ta,sa,!1)&&(Gr=0),!Gr)return a&&s(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(k_(n,_t)),e.unescapeLeadingUnderscores(k_(r,_t))),0;sr&=Gr}}if(!(t&4)){var ii=rg(r)?cr:r.declaration&&Nu(r.declaration)?lc(Eo(r.declaration.symbol)):_o(r);if(ii===Cr)return sr;var go=rg(n)?cr:n.declaration&&Nu(n.declaration)?lc(Eo(n.declaration.symbol)):_o(n),xo=Cc(r);if(xo){var Yr=Cc(n);if(Yr)sr&=rC(Yr,xo,a,s,S);else if(e.isIdentifierTypePredicate(xo))return a&&s(e.Diagnostics.Signature_0_must_be_a_type_predicate,Rc(n)),0}else sr&=t&1&&S(ii,go,!1)||S(go,ii,a),!sr&&a&&u&&u(go,ii)}return sr}function rC(n,r,t,a,s){if(n.kind!==r.kind)return t&&(a(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),a(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,gc(n),gc(r))),0;if((n.kind===1||n.kind===3)&&n.parameterIndex!==r.parameterIndex)return t&&(a(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,r.parameterName),a(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,gc(n),gc(r))),0;var u=n.type===r.type?-1:n.type&&r.type?s(n.type,r.type,t):0;return u===0&&t&&a(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,gc(n),gc(r)),u}function tC(n,r){var t=tg(n),a=tg(r),s=_o(t),u=_o(a);return u===Cr||rd(u,s,Tr)||rd(s,u,Tr)?eC(t,a,!0):!1}function GE(n){return n!==$t&&n.properties.length===0&&n.callSignatures.length===0&&n.constructSignatures.length===0&&n.indexInfos.length===0}function nd(n){return n.flags&524288?!hc(n)&&GE(Du(n)):n.flags&67108864?!0:n.flags&1048576?e.some(n.types,nd):n.flags&2097152?e.every(n.types,nd):!1}function iS(n){return!!(e.getObjectFlags(n)&16&&(n.members&&GE(n)||n.symbol&&n.symbol.flags&2048&&Hc(n.symbol).size===0))}function oS(n){return n.flags&524288&&!hc(n)&&bo(n).length===0&&Ei(n).length===1&&!!po(n,gr)||n.flags&3145728&&e.every(n.types,oS)||!1}function BE(n,r,t){if(n===r)return!0;var a=C(n)+","+C(r),s=Ia.get(a);if(s!==void 0&&!(!(s&4)&&s&2&&t))return!!(s&1);if(n.escapedName!==r.escapedName||!(n.flags&256)||!(r.flags&256))return Ia.set(a,6),!1;for(var u=kt(r),S=0,F=bo(kt(n));S<F.length;S++){var ve=F[S];if(ve.flags&8){var Ge=wn(u,ve.escapedName);if(!Ge||!(Ge.flags&8))return t?(t(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(ve),Lt(rs(r),void 0,64)),Ia.set(a,6)):Ia.set(a,2),!1}}return Ia.set(a,1),!0}function _v(n,r,t,a){var s=n.flags,u=r.flags;return u&3||s&131072||n===Bn?!0:u&131072?!1:!!(s&402653316&&u&4||s&128&&s&1024&&u&128&&!(u&1024)&&n.value===r.value||s&296&&u&8||s&256&&s&1024&&u&256&&!(u&1024)&&n.value===r.value||s&2112&&u&64||s&528&&u&16||s&12288&&u&4096||s&32&&u&32&&BE(n.symbol,r.symbol,a)||s&1024&&u&1024&&(s&1048576&&u&1048576&&BE(n.symbol,r.symbol,a)||s&2944&&u&2944&&n.value===r.value&&BE(Kl(n.symbol),Kl(r.symbol),a))||s&32768&&(!He||u&49152)||s&65536&&(!He||u&65536)||s&524288&&u&67108864||(t===Tr||t===Wr)&&(s&1||s&264&&!(s&1024)&&(u&32||t===Tr&&u&256&&u&1024)))}function rd(n,r,t){if(Lp(n)&&(n=n.regularType),Lp(r)&&(r=r.regularType),n===r)return!0;if(t!==Yt){if(t===Wr&&!(r.flags&131072)&&_v(r,n,t)||_v(n,r,t))return!0}else{if(n.flags!==r.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&r.flags&524288){var a=t.get(dS(n,r,0,t));if(a!==void 0)return!!(a&1)}return n.flags&469499904||r.flags&469499904?Cu(n,r,t,void 0):!1}function sS(n,r){return e.getObjectFlags(n)&2048&&wb(r.escapedName)}function UE(n,r){for(;;){var t=Lp(n)?n.regularType:e.getObjectFlags(n)&4&&n.node?Yf(n.target,Co(n)):n.flags&3145728?iu(n):n.flags&33554432?r?n.baseType:n.substitute:n.flags&25165824?Qf(n,r):n;if(t=qE(t)||t,t===n)break;n=t}return n}function Cu(n,r,t,a,s,u,S){var F,ve,Ge,Je,Xe,tn=0,Dn=0,nr=0,sr=!1,Ir=0,xr,Gr=[],ct=!1;e.Debug.assert(t!==Yt||!a,"no error reporting in identity checking");var Vt=jt(n,r,!!a,s);if(Gr.length&&Yr(),sr){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:r.id,depth:Dn});var _t=Jn(a||fe,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Lt(n),Lt(r));S&&(S.errors||(S.errors=[])).push(_t)}else if(F){if(u){var Ta=u();Ta&&(e.concatenateDiagnosticMessageChains(Ta,F),F=Ta)}var sa=void 0;if(s&&a&&!Vt&&n.symbol){var mi=Za(n.symbol);if(mi.originatingImport&&!e.isImportCall(mi.originatingImport)){var ai=Cu(kt(mi.target),r,t,void 0);if(ai){var Hi=e.createDiagnosticForNode(mi.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);sa=e.append(sa,Hi)}}}var _t=e.createDiagnosticForNodeFromMessageChain(a,F,sa);ve&&e.addRelatedInfo.apply(void 0,Vr([_t],ve,!1)),S&&(S.errors||(S.errors=[])).push(_t),(!S||!S.skipLogging)&&zt.add(_t)}return a&&S&&S.skipLogging&&Vt===0&&e.Debug.assert(!!S.errors,"missed opportunity to interact with error."),Vt!==0;function ii(tr){F=tr.errorInfo,xr=tr.lastSkippedInfo,Gr=tr.incompatibleStack,Ir=tr.overrideNextErrorInfo,ve=tr.relatedInfo}function go(){return{errorInfo:F,lastSkippedInfo:xr,incompatibleStack:Gr.slice(),overrideNextErrorInfo:Ir,relatedInfo:ve?ve.slice():void 0}}function xo(tr,br,jr,it,Kt){Ir++,xr=void 0,Gr.push([tr,br,jr,it,Kt])}function Yr(){var tr=Gr;Gr=[];var br=xr;if(xr=void 0,tr.length===1){Pr.apply(void 0,tr[0]),br&&Ga.apply(void 0,Vr([void 0],br,!1));return}for(var jr="",it=[];tr.length;){var Kt=tr.pop(),St=Kt[0],bt=Kt.slice(1);switch(St.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:{jr.indexOf("new ")===0&&(jr="("+jr+")");var It=""+bt[0];jr.length===0?jr=""+It:e.isIdentifierText(It,pe.target)?jr=jr+"."+It:It[0]==="["&&It[It.length-1]==="]"?jr=""+jr+It:jr=jr+"["+It+"]";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(jr.length===0){var Ja=St;St.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?Ja=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:St.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(Ja=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),it.unshift([Ja,bt[0],bt[1]])}else{var Ri=St.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||St.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Oi=St.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||St.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";jr=""+Ri+jr+"("+Oi+")"}break}case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{it.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,bt[0],bt[1]]);break}case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{it.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,bt[0],bt[1],bt[2]]);break}default:return e.Debug.fail("Unhandled Diagnostic: "+St.code)}}jr?Pr(jr[jr.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,jr):it.shift();for(var ro=0,$i=it;ro<$i.length;ro++){var Ms=$i[ro],St=Ms[0],bt=Ms.slice(1),_s=St.elidedInCompatabilityPyramid;St.elidedInCompatabilityPyramid=!1,Pr.apply(void 0,Vr([St],bt,!1)),St.elidedInCompatabilityPyramid=_s}br&&Ga.apply(void 0,Vr([void 0],br,!1))}function Pr(tr,br,jr,it,Kt){e.Debug.assert(!!a),Gr.length&&Yr(),!tr.elidedInCompatabilityPyramid&&(F=e.chainDiagnosticMessages(F,tr,br,jr,it,Kt))}function Aa(tr){e.Debug.assert(!!F),ve?ve.push(tr):ve=[tr]}function Ga(tr,br,jr){Gr.length&&Yr();var it=Vf(br,jr),Kt=it[0],St=it[1],bt=br,It=Kt;if(Gm(br)&&!VE(jr)&&(bt=ju(br),e.Debug.assert(!mo(bt,jr),"generalized source shouldn't be assignable"),It=wu(bt)),jr.flags&262144){var Ja=Xl(jr),Ri=void 0;Ja&&(mo(bt,Ja)||(Ri=mo(br,Ja)))?Pr(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Ri?Kt:It,St,Lt(Ja)):(F=void 0,Pr(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,St,It))}tr||(t===Wr?tr=e.Diagnostics.Type_0_is_not_comparable_to_type_1:Kt===St?tr=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:tr=e.Diagnostics.Type_0_is_not_assignable_to_type_1),Pr(tr,It,St)}function na(tr,br){var jr=Ed(tr.symbol)?Lt(tr,tr.symbol.valueDeclaration):Lt(tr),it=Ed(br.symbol)?Lt(br,br.symbol.valueDeclaration):Lt(br);(ia===tr&&gr===br||ti===tr&&Dr===br||va===tr&&Ur===br||pT(!1)===tr&&qt===br)&&Pr(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,it,jr)}function si(tr,br,jr){return ji(tr)?tr.target.readonly&&Dh(br)?(jr&&Pr(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Lt(tr),Lt(br)),!1):ji(br)||Gl(br):y_(tr)&&Dh(br)?(jr&&Pr(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Lt(tr),Lt(br)),!1):ji(br)?Gl(tr):!0}function jt(tr,br,jr,it,Kt){if(jr===void 0&&(jr=!1),Kt===void 0&&(Kt=0),tr.flags&524288&&br.flags&131068)return _v(tr,br,t,jr?Pr:void 0)?-1:(Ss(tr,br,0,!!(e.getObjectFlags(tr)&2048)),0);var St=UE(tr,!1),bt=UE(br,!0);if(St===bt)return-1;if(t===Yt)return Wi(St,bt);if(St.flags&262144&&Ep(St)===bt)return-1;if(bt.flags&1048576&&St.flags&524288&&bt.types.length<=3&&bs(bt,98304)){var It=jm(bt,-98305);if(It.flags&1179648||(bt=UE(It,!0)),St===It)return-1}if(t===Wr&&!(bt.flags&131072)&&_v(bt,St,t)||_v(St,bt,t,jr?Pr:void 0))return-1;var Ja=!!(e.getObjectFlags(St)&2048),Ri=!(Kt&2)&&xp(St)&&e.getObjectFlags(St)&16384;if(Ri&&yn(St,bt,jr))return jr&&Ga(it,St,br.aliasSymbol?br:bt),0;var Oi=t!==Wr&&!(Kt&2)&&St.flags&2752508&&St!==us&&bt.flags&2621440&&cS(bt)&&(bo(St).length>0||O1(St));if(Oi&&!aC(St,bt,Ja)){if(jr){var ro=Lt(tr.aliasSymbol?tr:St),$i=Lt(br.aliasSymbol?br:bt),Ms=zr(St,0),_s=zr(St,1);Ms.length>0&&jt(_o(Ms[0]),bt,!1)||_s.length>0&&jt(_o(_s[0]),bt,!1)?Pr(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,ro,$i):Pr(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,ro,$i)}return 0}Ji(St,bt);var js=0,os=go();if((St.flags&3145728||bt.flags&3145728)&&(js=YS(St)*YS(bt)>=4?Jr(St,bt,jr,Kt|8):tt(St,bt,jr,Kt|8)),!js&&!(St.flags&1048576)&&(St.flags&469499904||bt.flags&469499904)&&(js=Jr(St,bt,jr,Kt))&&ii(os),!js&&St.flags&2359296){var ss=Yy(St.flags&2097152?St.types:[St],!!(bt.flags&1048576));ss&&(St.flags&2097152||bt.flags&1048576)&&ad(ss,function(fr){return fr!==St})&&(js=jt(ss,bt,!1,void 0,Kt))&&ii(os)}return js&&!ct&&(bt.flags&2097152&&(Ri||Oi)||SE(bt)&&!Gl(bt)&&!ji(bt)&&St.flags&2097152&&Il(St).flags&3670016&&!e.some(St.types,function(fr){return!!(e.getObjectFlags(fr)&524288)}))&&(ct=!0,js&=Jr(St,bt,jr,4),ct=!1),Ss(St,bt,js,Ja),js;function Ss(fr,Rt,Ea,aa){if(!Ea&&jr){var la=!!qE(tr),oi=!!qE(br);fr=tr.aliasSymbol||la?tr:fr,Rt=br.aliasSymbol||oi?br:Rt;var Ka=Ir>0;if(Ka&&Ir--,fr.flags&524288&&Rt.flags&524288){var xi=F;si(fr,Rt,jr),F!==xi&&(Ka=!!F)}if(fr.flags&524288&&Rt.flags&131068)na(fr,Rt);else if(fr.symbol&&fr.flags&524288&&us===fr)Pr(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(aa&&Rt.flags&2097152){var Xa=Rt.types,Ua=Np(T.IntrinsicAttributes,a),co=Np(T.IntrinsicClassAttributes,a);if(Ua!==J&&co!==J&&(e.contains(Xa,Ua)||e.contains(Xa,co)))return Ea}else F=ln(F,br);if(!it&&Ka)return xr=[fr,Rt],Ea;Ga(it,fr,Rt)}}}function Ji(tr,br){if(e.tracing&&tr.flags&3145728&&br.flags&3145728){var jr=tr,it=br;if(jr.objectFlags&it.objectFlags&65536)return;var Kt=jr.types.length,St=it.types.length;Kt*St>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:tr.id,sourceSize:Kt,targetId:br.id,targetSize:St,pos:a==null?void 0:a.pos,end:a==null?void 0:a.end})}}function Wi(tr,br){if(tr.flags!==br.flags)return 0;if(tr.flags&67358815)return-1;if(Ji(tr,br),tr.flags&3145728){var jr=mt(tr,br);return jr&&(jr&=mt(br,tr)),jr}return Jr(tr,br,!1,0)}function rr(tr,br){var jr=function(it,Kt){var St;Kt=Il(Kt);var bt=Kt.flags&3145728?$_(Kt,br):Df(Kt,br),It=bt&&kt(bt)||((St=Yl(Kt,br))===null||St===void 0?void 0:St.type)||Rn;return e.append(it,It)};return Sa(e.reduceLeft(tr,jr,void 0)||e.emptyArray)}function yn(tr,br,jr){var it;if(!Cv(br)||!En&&e.getObjectFlags(br)&8192)return!1;var Kt=!!(e.getObjectFlags(tr)&2048);if((t===Tr||t===Wr)&&(Vm(us,br)||!Kt&&nd(br)))return!1;var St=br,bt;br.flags&1048576&&(St=$D(tr,br,jt)||pM(br),bt=St.flags&1048576?St.types:[St]);for(var It=function($i){if(pt($i,tr.symbol)&&!sS(tr,$i)){if(!Ub(St,$i.escapedName,Kt)){if(jr){var Ms=Nl(St,Cv);if(!a)return{value:e.Debug.fail()};if(e.isJsxAttributes(a)||e.isJsxOpeningLikeElement(a)||e.isJsxOpeningLikeElement(a.parent)){$i.valueDeclaration&&e.isJsxAttribute($i.valueDeclaration)&&e.getSourceFileOfNode(a)===e.getSourceFileOfNode($i.valueDeclaration.name)&&(a=$i.valueDeclaration.name);var _s=Qa($i),js=V0(_s,Ms),os=js?Qa(js):void 0;os?Pr(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,_s,Lt(Ms),os):Pr(e.Diagnostics.Property_0_does_not_exist_on_type_1,_s,Lt(Ms))}else{var ss=((it=tr.symbol)===null||it===void 0?void 0:it.declarations)&&e.firstOrUndefined(tr.symbol.declarations),os=void 0;if($i.valueDeclaration&&e.findAncestor($i.valueDeclaration,function(Ea){return Ea===ss})&&e.getSourceFileOfNode(ss)===e.getSourceFileOfNode(a)){var Ss=$i.valueDeclaration;e.Debug.assertNode(Ss,e.isObjectLiteralElementLike),a=Ss;var fr=Ss.name;e.isIdentifier(fr)&&(os=zb(fr,Ms))}os!==void 0?Pr(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Qa($i),Lt(Ms),os):Pr(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Qa($i),Lt(Ms))}}return{value:!0}}if(bt&&!jt(kt($i),rr(bt,$i.escapedName),jr))return jr&&xo(e.Diagnostics.Types_of_property_0_are_incompatible,Qa($i)),{value:!0}}},Ja=0,Ri=bo(tr);Ja<Ri.length;Ja++){var Oi=Ri[Ja],ro=It(Oi);if(typeof ro=="object")return ro.value}return!1}function pt(tr,br){return tr.valueDeclaration&&br.valueDeclaration&&tr.valueDeclaration.parent===br.valueDeclaration}function mt(tr,br){for(var jr=-1,it=tr.types,Kt=0,St=it;Kt<St.length;Kt++){var bt=St[Kt],It=Ft(bt,br,!1);if(!It)return 0;jr&=It}return jr}function Ft(tr,br,jr){var it=br.types;if(br.flags&1048576){if(Yp(it,tr))return-1;var Kt=GS(br,tr);if(Kt){var St=jt(tr,Kt,!1);if(St)return St}}for(var bt=0,It=it;bt<It.length;bt++){var Ja=It[bt],St=jt(tr,Ja,!1);if(St)return St}if(jr){var Ri=lS(tr,br,jt);jt(tr,Ri||it[it.length-1],!0)}return 0}function Bt(tr,br,jr,it){for(var Kt=-1,St=br.types,bt=0,It=St;bt<It.length;bt++){var Ja=It[bt],Ri=jt(tr,Ja,jr,void 0,it);if(!Ri)return 0;Kt&=Ri}return Kt}function Ht(tr,br,jr,it){var Kt=tr.types;if(tr.flags&1048576&&Yp(Kt,br))return-1;for(var St=Kt.length,bt=0;bt<St;bt++){var It=jt(Kt[bt],br,jr&&bt===St-1,void 0,it);if(It)return It}return 0}function fa(tr,br){return tr.flags&1048576&&br.flags&1048576&&!(tr.types[0].flags&32768)&&br.types[0].flags&32768?jm(br,-32769):br}function Qn(tr,br,jr,it){for(var Kt=-1,St=tr.types,bt=fa(tr,br),It=0;It<St.length;It++){var Ja=St[It];if(bt.flags&1048576&&St.length>=bt.types.length&&St.length%bt.types.length===0){var Ri=jt(Ja,bt.types[It%bt.types.length],!1,void 0,it);if(Ri){Kt&=Ri;continue}}var Oi=jt(Ja,br,jr,void 0,it);if(!Oi)return 0;Kt&=Oi}return Kt}function Nr(tr,br,jr,it,Kt){if(tr===void 0&&(tr=e.emptyArray),br===void 0&&(br=e.emptyArray),jr===void 0&&(jr=e.emptyArray),tr.length!==br.length&&t===Yt)return 0;for(var St=tr.length<=br.length?tr.length:br.length,bt=-1,It=0;It<St;It++){var Ja=It<jr.length?jr[It]:1,Ri=Ja&7;if(Ri!==4){var Oi=tr[It],ro=br[It],$i=-1;if(Ja&8?$i=t===Yt?jt(Oi,ro,!1):ug(Oi,ro):Ri===1?$i=jt(Oi,ro,it,void 0,Kt):Ri===2?$i=jt(ro,Oi,it,void 0,Kt):Ri===3?($i=jt(ro,Oi,!1),$i||($i=jt(Oi,ro,it,void 0,Kt))):($i=jt(Oi,ro,it,void 0,Kt),$i&&($i&=jt(ro,Oi,it,void 0,Kt))),!$i)return 0;bt&=$i}}return bt}function Jr(tr,br,jr,it){if(sr)return 0;var Kt=dS(tr,br,it|(ct?16:0),t),St=t.get(Kt);if(St!==void 0&&!(jr&&St&2&&!(St&4))){if(he){var bt=St&24;bt&8&&fi(tr,Zp(Ct)),bt&16&&fi(tr,Zp(pa))}return St&1?-1:0}if(!Ge)Ge=[],Je=[],Xe=[];else{for(var It=Kt.split(",").map(function(_s){return _s.replace(/-\d+/g,function(js,os){var ss=e.length(Kt.slice(0,os).match(/[-=]/g)||void 0);return"="+ss})}).join(","),Ja=0;Ja<tn;Ja++)if(Kt===Ge[Ja]||It===Ge[Ja])return 3;if(Dn===100)return sr=!0,0}var Ri=tn;Ge[tn]=Kt,tn++,Je[Dn]=tr,Xe[Dn]=br,Dn++;var Oi=nr;!(nr&1)&&JE(tr,Je,Dn)&&(nr|=1),!(nr&2)&&JE(br,Xe,Dn)&&(nr|=2);var ro,$i=0;he&&(ro=he,he=function(_s){return $i|=_s?16:8,ro(_s)}),nr===3&&(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:tr.id,sourceIdStack:Je.map(function(_s){return _s.id}),targetId:br.id,targetIdStack:Xe.map(function(_s){return _s.id}),depth:Dn}));var Ms=nr!==3?tt(tr,br,jr,it):3;if(he&&(he=ro),nr=Oi,Dn--,Ms){if(Ms===-1||Dn===0){if(Ms===-1||Ms===3)for(var Ja=Ri;Ja<tn;Ja++)t.set(Ge[Ja],1|$i);tn=Ri}}else t.set(Kt,(jr?4:0)|2|$i),tn=Ri;return Ms}function tt(tr,br,jr,it){e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:tr.id,targetId:br.id});var Kt=ut(tr,br,jr,it);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),Kt}function ut(tr,br,jr,it){if(it&4)return Qo(tr,br,jr,void 0,0);if(it&8){if(tr.flags&1048576)return t===Wr?Ht(tr,br,jr&&!(tr.flags&131068),it&-9):Qn(tr,br,jr&&!(tr.flags&131068),it&-9);if(br.flags&1048576)return Ft(T_(tr),br,jr&&!(tr.flags&131068)&&!(br.flags&131068));if(br.flags&2097152)return Bt(T_(tr),br,jr,2);if(t===Wr&&br.flags&131068){var Kt=e.sameMap(tr.types,s_);if(Kt!==tr.types&&(tr=Ro(Kt),!(tr.flags&2097152)))return jt(tr,br,!1)}return Ht(tr,br,!1,1)}var St=tr.flags&br.flags;if(t===Yt&&!(St&524288)){if(St&4194304)return jt(tr.type,br.type,!1);var bt=0;return St&8388608&&(bt=jt(tr.objectType,br.objectType,!1))&&(bt&=jt(tr.indexType,br.indexType,!1))||St&16777216&&tr.root.isDistributive===br.root.isDistributive&&(bt=jt(tr.checkType,br.checkType,!1))&&(bt&=jt(tr.extendsType,br.extendsType,!1))&&(bt&=jt(ip(tr),ip(br),!1))&&(bt&=jt(op(tr),op(br),!1))?bt:St&33554432?jt(tr.substitute,br.substitute,!1):0}var It,Ja,Ri=!1,Oi=go();if(tr.flags&17301504&&tr.aliasSymbol&&tr.aliasTypeArguments&&tr.aliasSymbol===br.aliasSymbol&&!(tr.aliasTypeArgumentsContainsMarker||br.aliasTypeArgumentsContainsMarker)){var ro=uS(tr.aliasSymbol);if(ro===e.emptyArray)return 1;var $i=rL(tr.aliasTypeArguments,br.aliasTypeArguments,ro,it);if($i!==void 0)return $i}if(yS(tr)&&!tr.target.readonly&&(It=jt(Co(tr)[0],br))||yS(br)&&(br.target.readonly||Dh(Xl(tr)||tr))&&(It=jt(tr,Co(br)[0])))return It;if(br.flags&262144){if(e.getObjectFlags(tr)&32&&!tr.declaration.nameType&&jt(ff(br),tu(tr))&&!(au(tr)&4)){var Ms=Mc(tr),_s=Ec(br,Su(tr));if(It=jt(Ms,_s,jr))return It}}else if(br.flags&4194304){var js=br.type;if(tr.flags&4194304&&(It=jt(js,tr.type,!1)))return It;if(ji(js)){if(It=jt(tr,bT(js),jr))return It}else{var os=Xg(js);if(os&&jt(tr,ff(os,br.stringsOnly),jr)===-1)return-1}}else if(br.flags&8388608){if(tr.flags&8388608){if((It=jt(tr.objectType,br.objectType,jr))&&(It&=jt(tr.indexType,br.indexType,jr)),It)return ii(Oi),It;jr&&(Ja=F)}if(t===Tr||t===Wr){var ss=br.objectType,Ss=br.indexType,fr=Xl(ss)||ss,Rt=Xl(Ss)||Ss;if(!vm(fr)&&!Pm(Rt)){var Ea=4|(fr!==ss?2:0),os=ap(fr,Rt,Ea);if(os){if(jr&&Ja&&ii(Oi),It=jt(tr,os,jr))return It;jr&&Ja&&F&&(F=j1([Ja])<=j1([F])?Ja:F)}}}jr&&(Ja=void 0)}else if(hc(br)&&!br.declaration.nameType){var aa=Mc(br),la=au(br);if(!(la&8)){if(aa.flags&8388608&&aa.objectType===tr&&aa.indexType===Su(br))return-1;if(!hc(tr)){var oi=tu(br),Ka=ff(tr,void 0,!0),xi=la&4,Xa=xi?km(oi,Ka):void 0;if(xi?!(Xa.flags&131072):jt(oi,Ka)){var Ms=Mc(br),Ua=Su(br),co=jm(Ms,-98305);if(co.flags&8388608&&co.indexType===Ua){if(It=jt(tr,co.objectType,jr))return It}else{var Fo=Xa?Ro([Xa,Ua]):Ua,_s=Ec(tr,Fo);if(It=jt(_s,Ms,jr))return It}}Ja=F,ii(Oi)}}}else if(br.flags&16777216){var ls=br,Xo=!mo(Eh(ls.checkType),Eh(ls.extendsType)),jo=!Xo&&gA(ls),$s=void 0,Ul=Sp(ls.root.checkType);if(ls.root.isDistributive&&Ul.flags&262144){var Vl=IE(Ul);$s=bm(Ul,Vl,ls.mapper),Vl.mapper=$s}var bc=void 0;if((Xo||(bc=jt(tr,$s?fi(Ra(ls.root.node.trueType),$s):ip(ls),!1)))&&(jo||(bc=(bc||3)&jt(tr,$s?fi(Ra(ls.root.node.falseType),$s):op(ls),!1))),bc)return ii(Oi),bc}else if(br.flags&134217728){tr.flags&134217728&&fi(tr,Zp(pa));var cm=RS(tr,br);if(cm&&e.every(cm,function(wg,V_){return VC(wg,br.types[V_])}))return-1}if(tr.flags&8650752){if(!(tr.flags&8388608&&br.flags&8388608)){var os=Ep(tr);if(!os||tr.flags&262144&&os.flags&1){if(It=jt(Lr,jm(br,-67108865)))return ii(Oi),It}else{if(It=jt(os,br,!1,void 0,it))return ii(Oi),It;if(It=jt(Ac(os,tr),br,jr&&!(br.flags&tr.flags&262144),void 0,it))return ii(Oi),It}}}else if(tr.flags&4194304){if(It=jt(at,br,jr))return ii(Oi),It}else if(tr.flags&134217728){if(!(br.flags&134217728)){var Op=Xl(tr),os=Op&&Op!==tr?Op:gr;if(It=jt(os,br,jr))return ii(Oi),It}}else if(tr.flags&268435456)if(br.flags&268435456&&tr.symbol===br.symbol){if(It=jt(tr.type,br.type,jr))return ii(Oi),It}else{var os=Xl(tr);if(os&&(It=jt(os,br,jr)))return ii(Oi),It}else if(tr.flags&16777216){if(br.flags&16777216){var Pp=tr.root.inferTypeParameters,Md=tr.extendsType,um=void 0;if(Pp){var cd=mg(Pp,void 0,0,jt);Lf(cd.inferences,br.extendsType,Md,1536),Md=fi(Md,cd.mapper),um=cd.mapper}if($f(Md,br.extendsType)&&(jt(tr.checkType,br.checkType)||jt(br.checkType,tr.checkType))&&((It=jt(fi(ip(tr),um),ip(br),jr))&&(It&=jt(op(tr),op(br),jr)),It))return ii(Oi),It}else{var Zm=th(tr);if(Zm&&(It=jt(Zm,br,jr)))return ii(Oi),It}var Tc=Qg(tr);if(Tc&&(It=jt(Tc,br,jr)))return ii(Oi),It}else{if(t!==un&&t!==Sn&&rh(br)&&nd(tr))return-1;if(hc(br))return hc(tr)&&(It=Oa(tr,br,jr))?(ii(Oi),It):0;var fm=!!(tr.flags&131068);if(t!==Yt)tr=Il(tr);else if(hc(tr))return 0;if(e.getObjectFlags(tr)&4&&e.getObjectFlags(br)&4&&tr.target===br.target&&!ji(tr)&&!(e.getObjectFlags(tr)&4096||e.getObjectFlags(br)&4096)){var ro=jE(tr.target);if(ro===e.emptyArray)return 1;var $i=rL(Co(tr),Co(br),ro,it);if($i!==void 0)return $i}else{if(y_(br)?Gl(tr)||ji(tr):Gl(br)&&ji(tr)&&!tr.target.readonly)return t!==Yt?jt(Ns(tr,Dr)||cr,Ns(br,Dr)||cr,jr):0;if((t===un||t===Sn)&&nd(br)&&e.getObjectFlags(br)&16384&&!nd(tr))return 0}if(tr.flags&2621440&&br.flags&524288){var Py=jr&&F===Oi.errorInfo&&!fm;if(It=Qo(tr,br,Py,void 0,it),It&&(It&=il(tr,br,0,Py),It&&(It&=il(tr,br,1,Py),It&&(It&=ja(tr,br,fm,Py,it)))),Ri&&It)F=Ja||F||Oi.errorInfo;else if(It)return It}if(tr.flags&2621440&&br.flags&1048576){var eL=jm(br,36175872);if(eL.flags&1048576){var nL=Di(tr,eL);if(nL)return nL}}}return 0;function j1(wg){return wg?e.reduceLeft(wg,function(V_,W_){return V_+1+j1(W_.next)},0):0}function rL(wg,V_,W_,mM){if(It=Nr(wg,V_,W_,jr,mM))return It;if(e.some(W_,function(H1){return!!(H1&24)})){Ja=void 0,ii(Oi);return}var tL=V_&&oC(V_,W_);if(Ri=!tL,W_!==e.emptyArray&&!tL){if(Ri&&!(jr&&e.some(W_,function(H1){return(H1&7)===0})))return 0;Ja=F,ii(Oi)}}}function Ct(tr){return he&&(tr===Ma||tr===di||tr===Yi)&&he(!1),tr}function pa(tr){return he&&(tr===Ma||tr===di||tr===Yi)&&he(!0),tr}function Oa(tr,br,jr){var it=t===Wr||(t===Yt?au(tr)===au(br):Rm(tr)<=Rm(br));if(it){var Kt,St=tu(br),bt=fi(tu(tr),Zp(Rm(tr)<0?Ct:pa));if(Kt=jt(St,bt,jr)){var It=uc([Su(tr)],[Su(br)]);if(fi($d(tr),It)===fi($d(br),It))return Kt&jt(fi(Mc(tr),It),Mc(br),jr)}}return 0}function Di(tr,br){var jr=bo(tr),it=FS(jr,br);if(!it)return 0;for(var Kt=1,St=0,bt=it;St<bt.length;St++){var It=bt[St];if(Kt*=fx(El(It)),Kt>25)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:tr.id,targetId:br.id,numCombinations:Kt}),0}for(var Ja=new Array(it.length),Ri=new e.Set,Oi=0;Oi<it.length;Oi++){var It=it[Oi],ro=El(It);Ja[Oi]=ro.flags&1048576?ro.types:[ro],Ri.add(It.escapedName)}for(var $i=e.cartesianProduct(Ja),Ms=[],_s=function(la){var oi=!1;e:for(var Ka=0,xi=br.types;Ka<xi.length;Ka++){for(var Xa=xi[Ka],Ua=function(ls){var Xo=it[ls],jo=wn(Xa,Xo.escapedName);if(!jo)return"continue-outer";if(Xo===jo)return"continue";var $s=Wo(tr,br,Xo,jo,function(Ul){return la[ls]},!1,0,He||t===Wr);if(!$s)return"continue-outer"},co=0;co<it.length;co++){var Fo=Ua(co);switch(Fo){case"continue-outer":continue e}}e.pushIfUnique(Ms,Xa,e.equateValues),oi=!0}if(!oi)return{value:0}},js=0,os=$i;js<os.length;js++){var ss=os[js],Ss=_s(ss);if(typeof Ss=="object")return Ss.value}for(var fr=-1,Rt=0,Ea=Ms;Rt<Ea.length;Rt++){var aa=Ea[Rt];if(fr&=Qo(tr,aa,!1,Ri,0),fr&&(fr&=il(tr,aa,0,!1),fr&&(fr&=il(tr,aa,1,!1),fr&&!(ji(tr)&&ji(aa))&&(fr&=ja(tr,aa,!1,!1,0)))),!fr)return fr}return fr}function xa(tr,br){if(!br||tr.length===0)return tr;for(var jr,it=0;it<tr.length;it++)br.has(tr[it].escapedName)?jr||(jr=tr.slice(0,it)):jr&&jr.push(tr[it]);return jr||tr}function lo(tr,br,jr,it,Kt){var St=He&&!!(e.getCheckFlags(br)&48),bt=Xi(El(br),!1,St),It=jr(tr);return jt(It,bt,it,void 0,Kt)}function Wo(tr,br,jr,it,Kt,St,bt,It){var Ja=e.getDeclarationModifierFlagsFromSymbol(jr),Ri=e.getDeclarationModifierFlagsFromSymbol(it);if(Ja&8||Ri&8){if(jr.valueDeclaration!==it.valueDeclaration)return St&&(Ja&8&&Ri&8?Pr(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Qa(it)):Pr(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Qa(it),Lt(Ja&8?tr:br),Lt(Ja&8?br:tr))),0}else if(Ri&16){if(!uC(jr,it))return St&&Pr(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Qa(it),Lt(Tm(jr)||tr),Lt(Tm(it)||br)),0}else if(Ja&16)return St&&Pr(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Qa(it),Lt(tr),Lt(br)),0;var Oi=lo(jr,it,Kt,St,bt);return Oi?!It&&jr.flags&16777216&&!(it.flags&16777216)?(St&&Pr(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Qa(it),Lt(tr),Lt(br)),0):Oi:(St&&xo(e.Diagnostics.Types_of_property_0_are_incompatible,Qa(it)),0)}function Mo(tr,br,jr,it){var Kt=!1;if(jr.valueDeclaration&&e.isNamedDeclaration(jr.valueDeclaration)&&e.isPrivateIdentifier(jr.valueDeclaration.name)&&tr.symbol&&tr.symbol.flags&32){var St=jr.valueDeclaration.name.escapedText,bt=e.getSymbolNameForPrivateIdentifier(tr.symbol,St);if(bt&&wn(tr,bt)){var It=e.factory.getDeclarationName(tr.symbol.valueDeclaration),Ja=e.factory.getDeclarationName(br.symbol.valueDeclaration);Pr(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,rc(St),rc(It.escapedText===""?ue:It),rc(Ja.escapedText===""?ue:Ja));return}}var Ri=e.arrayFrom(ub(tr,br,it,!1));if((!s||s.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&s.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(Kt=!0),Ri.length===1){var Oi=Qa(jr);Pr.apply(void 0,Vr([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,Oi],Vf(tr,br),!1)),e.length(jr.declarations)&&Aa(e.createDiagnosticForNode(jr.declarations[0],e.Diagnostics._0_is_declared_here,Oi)),Kt&&F&&Ir++}else si(tr,br,!1)&&(Ri.length>5?Pr(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Lt(tr),Lt(br),e.map(Ri.slice(0,4),function(ro){return Qa(ro)}).join(", "),Ri.length-4):Pr(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Lt(tr),Lt(br),e.map(Ri,function(ro){return Qa(ro)}).join(", ")),Kt&&F&&Ir++)}function Qo(tr,br,jr,it,Kt){if(t===Yt)return Zs(tr,br,it);var St=-1;if(ji(br)){if(Gl(tr)||ji(tr)){if(!br.target.readonly&&(y_(tr)||ji(tr)&&tr.target.readonly))return 0;var bt=rp(tr),It=rp(br),Ja=ji(tr)?tr.target.combinedFlags&4:4,Ri=br.target.combinedFlags&4,Oi=ji(tr)?tr.target.minLength:0,ro=br.target.minLength;if(!Ja&&bt<ro)return jr&&Pr(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,bt,ro),0;if(!Ri&&It<Oi)return jr&&Pr(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,Oi,It),0;if(!Ri&&(Ja||It<bt))return jr&&(Oi<ro?Pr(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,ro):Pr(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,It)),0;for(var $i=Co(tr),Ms=Co(br),_s=Math.min(ji(tr)?TT(tr.target,11):0,TT(br.target,11)),js=Math.min(ji(tr)?dh(tr.target,11):0,Ri?dh(br.target,11):0),os=!!it,ss=0;ss<It;ss++){var Ss=ss<It-js?ss:ss+bt-It,fr=ji(tr)&&(ss<_s||ss>=It-js)?tr.target.elementFlags[Ss]:4,Rt=br.target.elementFlags[ss];if(Rt&8&&!(fr&8))return jr&&Pr(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,ss),0;if(fr&8&&!(Rt&12))return jr&&Pr(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,Ss,ss),0;if(Rt&1&&!(fr&1))return jr&&Pr(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,ss),0;if(!(os&&((fr&12||Rt&12)&&(os=!1),os&&(it!=null&&it.has(""+ss))))){var Ea=ji(tr)?ss<_s||ss>=It-js?Bm($i[Ss],!!(fr&Rt&2)):Lh(tr,_s,js)||Jt:$i[0],aa=Ms[ss],la=fr&8&&Rt&4?bl(aa):Bm(aa,!!(Rt&2)),oi=jt(Ea,la,jr,void 0,Kt);if(!oi)return jr&&(It>1||bt>1)&&(ss<_s||ss>=It-js||bt-_s-js===1?xo(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Ss,ss):xo(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,_s,bt-js-1,ss)),0;St&=oi}}return St}if(br.target.combinedFlags&12)return 0}var Ka=(t===un||t===Sn)&&!xp(tr)&&!XE(tr)&&!ji(tr),xi=fb(tr,br,Ka,!1);if(xi)return jr&&Mo(tr,br,xi,Ka),0;if(xp(br))for(var Xa=0,Ua=xa(bo(tr),it);Xa<Ua.length;Xa++){var co=Ua[Xa];if(!Df(br,co.escapedName)){var Ea=kt(co);if(!(Ea.flags&32768))return jr&&Pr(e.Diagnostics.Property_0_does_not_exist_on_type_1,Qa(co),Lt(br)),0}}for(var Fo=bo(br),ls=ji(tr)&&ji(br),Xo=0,jo=xa(Fo,it);Xo<jo.length;Xo++){var $s=jo[Xo],Ul=$s.escapedName;if(!($s.flags&4194304)&&(!ls||id(Ul)||Ul==="length")){var co=wn(tr,Ul);if(co&&co!==$s){var oi=Wo(tr,br,co,$s,El,jr,Kt,t===Wr);if(!oi)return 0;St&=oi}}}return St}function Zs(tr,br,jr){if(!(tr.flags&524288&&br.flags&524288))return 0;var it=xa(qf(tr),jr),Kt=xa(qf(br),jr);if(it.length!==Kt.length)return 0;for(var St=-1,bt=0,It=it;bt<It.length;bt++){var Ja=It[bt],Ri=Df(br,Ja.escapedName);if(!Ri)return 0;var Oi=KE(Ja,Ri,jt);if(!Oi)return 0;St&=Oi}return St}function il(tr,br,jr,it){var Kt,St;if(t===Yt)return Rp(tr,br,jr);if(br===$t||tr===$t)return-1;var bt=tr.symbol&&Nu(tr.symbol.valueDeclaration),It=br.symbol&&Nu(br.symbol.valueDeclaration),Ja=zr(tr,bt&&jr===1?0:jr),Ri=zr(br,It&&jr===1?0:jr);if(jr===1&&Ja.length&&Ri.length){var Oi=!!(Ja[0].flags&4),ro=!!(Ri[0].flags&4);if(Oi&&!ro)return it&&Pr(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!So(Ja[0],Ri[0],it))return 0}var $i=-1,Ms=go(),_s=jr===1?ld:Ws,js=e.getObjectFlags(tr),os=e.getObjectFlags(br);if(js&64&&os&64&&tr.symbol===br.symbol)for(var ss=0;ss<Ri.length;ss++){var Ss=Xs(Ja[ss],Ri[ss],!0,it,_s(Ja[ss],Ri[ss]));if(!Ss)return 0;$i&=Ss}else if(Ja.length===1&&Ri.length===1){var fr=t===Wr||!!pe.noStrictGenericChecks,Rt=e.first(Ja),Ea=e.first(Ri);if($i=Xs(Rt,Ea,fr,it,_s(Rt,Ea)),!$i&&it&&jr===1&&js&os&&(((Kt=Ea.declaration)===null||Kt===void 0?void 0:Kt.kind)===169||((St=Rt.declaration)===null||St===void 0?void 0:St.kind)===169)){var aa=function(Fo){return Rc(Fo,void 0,262144,jr)};return Pr(e.Diagnostics.Type_0_is_not_assignable_to_type_1,aa(Rt),aa(Ea)),Pr(e.Diagnostics.Types_of_construct_signatures_are_incompatible),$i}}else e:for(var la=0,oi=Ri;la<oi.length;la++){for(var Ka=oi[la],xi=it,Xa=0,Ua=Ja;Xa<Ua.length;Xa++){var co=Ua[Xa],Ss=Xs(co,Ka,!0,xi,_s(co,Ka));if(Ss){$i&=Ss,ii(Ms);continue e}xi=!1}return xi&&Pr(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Lt(tr),Rc(Ka,void 0,void 0,jr)),0}return $i}function Ws(tr,br){return tr.parameters.length===0&&br.parameters.length===0?function(jr,it){return xo(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Lt(jr),Lt(it))}:function(jr,it){return xo(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,Lt(jr),Lt(it))}}function ld(tr,br){return tr.parameters.length===0&&br.parameters.length===0?function(jr,it){return xo(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Lt(jr),Lt(it))}:function(jr,it){return xo(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,Lt(jr),Lt(it))}}function Xs(tr,br,jr,it,Kt){return FE(jr?tg(tr):tr,jr?tg(br):br,t===Sn?8:0,it,Pr,Kt,jt,Zp(pa))}function Rp(tr,br,jr){var it=zr(tr,jr),Kt=zr(br,jr);if(it.length!==Kt.length)return 0;for(var St=-1,bt=0;bt<it.length;bt++){var It=hv(it[bt],Kt[bt],!1,!1,!1,jt);if(!It)return 0;St&=It}return St}function Mg(tr,br,jr){for(var it=-1,Kt=br.keyType,St=tr.flags&2097152?o_(tr):qf(tr),bt=0,It=St;bt<It.length;bt++){var Ja=It[bt];if(!sS(tr,Ja)&&yi(Om(Ja,8576),Kt)){var Ri=El(Ja),Oi=$n||Ri.flags&32768||Kt===Dr||!(Ja.flags&16777216)?Ri:gl(Ri,524288),ro=jt(Oi,br.type,jr);if(!ro)return jr&&Pr(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Qa(Ja)),0;it&=ro}}for(var $i=0,Ms=Ei(tr);$i<Ms.length;$i++){var _s=Ms[$i];if(yi(_s.keyType,Kt)){var ro=U_(_s,br,jr);if(!ro)return 0;it&=ro}}return it}function U_(tr,br,jr){var it=jt(tr.type,br.type,jr);return!it&&jr&&(tr.keyType===br.keyType?Pr(e.Diagnostics._0_index_signatures_are_incompatible,Lt(tr.keyType)):Pr(e.Diagnostics._0_and_1_index_signatures_are_incompatible,Lt(tr.keyType),Lt(br.keyType))),it}function ja(tr,br,jr,it,Kt){if(t===Yt)return Ts(tr,br);for(var St=Ei(br),bt=e.some(St,function($i){return $i.keyType===gr}),It=-1,Ja=0,Ri=St;Ja<Ri.length;Ja++){var Oi=Ri[Ja],ro=!jr&&bt&&Oi.type.flags&1?-1:hc(tr)&&bt?jt(Mc(tr),Oi.type,it):Ki(tr,Oi,it,Kt);if(!ro)return 0;It&=ro}return It}function Ki(tr,br,jr,it){var Kt=ks(tr,br.keyType);return Kt?U_(Kt,br,jr):!(it&1)&&Ch(tr)?Mg(tr,br,jr):(jr&&Pr(e.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,Lt(br.keyType),Lt(tr)),0)}function Ts(tr,br){var jr=Ei(tr),it=Ei(br);if(jr.length!==it.length)return 0;for(var Kt=0,St=it;Kt<St.length;Kt++){var bt=St[Kt],It=po(tr,bt.keyType);if(!(It&&jt(It.type,bt.type)&&It.isReadonly===bt.isReadonly))return 0}return-1}function So(tr,br,jr){if(!tr.declaration||!br.declaration)return!0;var it=e.getSelectedEffectiveModifierFlags(tr.declaration,24),Kt=e.getSelectedEffectiveModifierFlags(br.declaration,24);return Kt===8||Kt===16&&it!==8||Kt!==16&&!it?!0:(jr&&Pr(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,Td(it),Td(Kt)),!1)}}function VE(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!e.forEach(n.types,VE);if(n.flags&465829888){var r=Ep(n);if(r&&r!==n)return VE(r)}return Wu(n)||!!(n.flags&134217728)}function lS(n,r,t){return t===void 0&&(t=ME),$D(n,r,t,!0)||cM(n,r)||uM(n,r)||fM(n,r)||dM(n,r)}function WE(n,r,t,a,s){for(var u=n.types.map(function(ct){}),S=0,F=r;S<F.length;S++){var ve=F[S],Ge=ve[0],Je=ve[1],Xe=nv(n,Je);if(!(s&&Xe&&e.getCheckFlags(Xe)&16))for(var tn=0,Dn=0,nr=n.types;Dn<nr.length;Dn++){var sr=nr[Dn],Ir=Os(sr,Je);Ir&&t(Ge(),Ir)?u[tn]=u[tn]===void 0?!0:u[tn]:u[tn]=!1,tn++}}var xr=u.indexOf(!0);if(xr===-1)return a;for(var Gr=u.indexOf(!0,xr+1);Gr!==-1;){if(!$f(n.types[xr],n.types[Gr]))return a;Gr=u.indexOf(!0,Gr+1)}return n.types[xr]}function cS(n){if(n.flags&524288){var r=Du(n);return r.callSignatures.length===0&&r.constructSignatures.length===0&&r.indexInfos.length===0&&r.properties.length>0&&e.every(r.properties,function(t){return!!(t.flags&16777216)})}return n.flags&2097152?e.every(n.types,cS):!1}function aC(n,r,t){for(var a=0,s=bo(n);a<s.length;a++){var u=s[a];if(Ub(r,u.escapedName,t))return!0}return!1}function iC(n,r,t){var a=Yf(n,e.map(n.typeParameters,function(s){return s===r?t:s}));return a.objectFlags|=4096,a}function uS(n){var r=Za(n);return fS(r.typeParameters,r,function(t,a,s){var u=ag(n,kd(r.typeParameters,ym(a,s)));return u.aliasTypeArgumentsContainsMarker=!0,u})}function fS(n,r,t){var a,s,u;n===void 0&&(n=e.emptyArray);var S=r.variances;if(!S){e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","getVariancesWorker",{arity:n.length,id:(u=(a=r.id)!==null&&a!==void 0?a:(s=r.declaredType)===null||s===void 0?void 0:s.id)!==null&&u!==void 0?u:-1}),r.variances=e.emptyArray,S=[];for(var F=function(Xe){var tn=!1,Dn=!1,nr=he;he=function(Gr){return Gr?Dn=!0:tn=!0};var sr=t(r,Xe,Ma),Ir=t(r,Xe,di),xr=(mo(Ir,sr)?1:0)|(mo(sr,Ir)?2:0);xr===3&&mo(t(r,Xe,Yi),sr)&&(xr=4),he=nr,(tn||Dn)&&(tn&&(xr|=8),Dn&&(xr|=16)),S.push(xr)},ve=0,Ge=n;ve<Ge.length;ve++){var Je=Ge[ve];F(Je)}r.variances=S,e.tracing===null||e.tracing===void 0||e.tracing.pop()}return S}function jE(n){return n===_r||n===$r||n.objectFlags&8?qe:fS(n.typeParameters,n,iC)}function oC(n,r){for(var t=0;t<r.length;t++)if((r[t]&7)===1&&n[t].flags&16384)return!0;return!1}function sC(n){return n.flags&262144&&!yc(n)}function lC(n){return!!(e.getObjectFlags(n)&4)&&!n.node}function Th(n){return lC(n)&&e.some(Co(n),function(r){return!!(r.flags&262144)||Th(r)})}function HE(n,r,t){t===void 0&&(t=0);for(var a=""+n.target.id,s=0,u=Co(n);s<u.length;s++){var S=u[s];if(sC(S)){var F=r.indexOf(S);F<0&&(F=r.length,r.push(S)),a+="="+F}else t<4&&Th(S)?a+="<"+HE(S,r,t+1)+">":a+="-"+S.id}return a}function dS(n,r,t,a){if(a===Yt&&n.id>r.id){var s=n;n=r,r=s}var u=t?":"+t:"";if(Th(n)&&Th(r)){var S=[];return HE(n,S)+","+HE(r,S)+u}return n.id+","+r.id+u}function gv(n,r){if(e.getCheckFlags(n)&6){for(var t=0,a=n.containingType.types;t<a.length;t++){var s=a[t],u=wn(s,n.escapedName),S=u&&gv(u,r);if(S)return S}return}return r(n)}function Tm(n){return n.parent&&n.parent.flags&32?rs(Kl(n)):void 0}function Sh(n){var r=Tm(n),t=r&&vc(r)[0];return t&&Os(t,n.escapedName)}function cC(n,r){return gv(n,function(t){var a=Tm(t);return a?Ee(a,r):!1})}function uC(n,r){return!gv(r,function(t){return e.getDeclarationModifierFlagsFromSymbol(t)&16?!cC(n,Tm(t)):!1})}function fC(n,r,t){return gv(r,function(a){return e.getDeclarationModifierFlagsFromSymbol(a,t)&16?!Ee(n,Tm(a)):!1})?void 0:n}function JE(n,r,t){if(t>=5){for(var a=vv(n),s=0,u=0;u<t;u++)if(vv(r[u])===a&&(s++,s>=5))return!0}return!1}function vv(n){if(n.flags&524288&&!db(n)){if(e.getObjectFlags(n)&&n.node)return n.node;if(n.symbol&&!(e.getObjectFlags(n)&16&&n.symbol.flags&32))return n.symbol;if(ji(n))return n.target}if(n.flags&262144)return n.symbol;if(n.flags&8388608){do n=n.objectType;while(n.flags&8388608);return n}return n.flags&16777216?n.root:n}function pS(n,r){return KE(n,r,ug)!==0}function KE(n,r,t){if(n===r)return-1;var a=e.getDeclarationModifierFlagsFromSymbol(n)&24,s=e.getDeclarationModifierFlagsFromSymbol(r)&24;if(a!==s)return 0;if(a){if(Ym(n)!==Ym(r))return 0}else if((n.flags&16777216)!==(r.flags&16777216))return 0;return df(n)!==df(r)?0:t(kt(n),kt(r))}function dC(n,r,t){var a=ac(n),s=ac(r),u=Ju(n),S=Ju(r),F=Ku(n),ve=Ku(r);return!!(a===s&&u===S&&F===ve||t&&u<=S)}function hv(n,r,t,a,s,u){if(n===r)return-1;if(!dC(n,r,t)||e.length(n.typeParameters)!==e.length(r.typeParameters))return 0;if(r.typeParameters){for(var S=uc(n.typeParameters,r.typeParameters),F=0;F<r.typeParameters.length;F++){var ve=n.typeParameters[F],Ge=r.typeParameters[F];if(!(ve===Ge||u(fi(d_(ve),S)||cn,d_(Ge)||cn)&&u(fi(ep(ve),S)||cn,ep(Ge)||cn)))return 0}n=Fm(n,S,!0)}var Je=-1;if(!a){var Xe=Id(n);if(Xe){var tn=Id(r);if(tn){var Dn=u(Xe,tn);if(!Dn)return 0;Je&=Dn}}}for(var nr=ac(r),F=0;F<nr;F++){var ve=fu(n,F),Ge=fu(r,F),Dn=u(Ge,ve);if(!Dn)return 0;Je&=Dn}if(!s){var sr=Cc(n),Ir=Cc(r);Je&=sr||Ir?pC(sr,Ir,u):u(_o(n),_o(r))}return Je}function pC(n,r,t){return n&&r&&_E(n,r)?n.type===r.type?-1:n.type&&r.type?t(n.type,r.type):0:0}function mC(n){for(var r,t=0,a=n;t<a.length;t++){var s=a[t],u=ju(s);if(r||(r=u),u===s||u!==r)return!1}return!0}function mS(n){return n.length===1?n[0]:mC(n)?Sa(n):e.reduceLeft(n,function(r,t){return ed(r,t)?t:r})}function _C(n){if(!He)return mS(n);var r=e.filter(n,function(t){return!(t.flags&98304)});return r.length?$E(mS(r),ES(n)&98304):Sa(n,2)}function gC(n){return e.reduceLeft(n,function(r,t){return ed(t,r)?t:r})}function Gl(n){return!!(e.getObjectFlags(n)&4)&&(n.target===_r||n.target===$r)}function y_(n){return!!(e.getObjectFlags(n)&4)&&n.target===$r}function Dh(n){return Gl(n)&&!y_(n)||ji(n)&&!n.target.readonly}function zE(n){return Gl(n)?Co(n)[0]:void 0}function lp(n){return Gl(n)||!(n.flags&98304)&&mo(n,Ie)}function qE(n){if(!(!(e.getObjectFlags(n)&4)||!(e.getObjectFlags(n.target)&3))){if(e.getObjectFlags(n)&33554432)return e.getObjectFlags(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;var r=n.target;if(e.getObjectFlags(r)&1){var t=nu(r);if(t&&t.expression.kind!==79&&t.expression.kind!==204)return}var a=vc(r);if(a.length===1&&!Hc(n.symbol).size){var s=e.length(r.typeParameters)?fi(a[0],uc(r.typeParameters,Co(n).slice(0,r.typeParameters.length))):a[0];return e.length(Co(n))>e.length(r.typeParameters)&&(s=Ac(s,e.last(Co(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=s}}}function _S(n){return He?n===Ya:n===Ye}function XE(n){var r=zE(n);return!!r&&_S(r)}function E_(n){return ji(n)||!!wn(n,"0")}function gS(n){return lp(n)||E_(n)}function vC(n,r){var t=Os(n,""+r);if(t)return t;if(ad(n,ji))return Ps(n,function(a){return dg(a)||Rn})}function hC(n){return!(n.flags&240512)}function Wu(n){return!!(n.flags&109440)}function vS(n){return n.flags&2097152?e.some(n.types,Wu):!!(n.flags&109440)}function yC(n){return n.flags&2097152&&e.find(n.types,Wu)||n}function Gm(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:e.every(n.types,Wu):Wu(n)}function ju(n){return n.flags&1024?Nm(n):n.flags&128?gr:n.flags&256?Dr:n.flags&2048?qr:n.flags&512?Ur:n.flags&1048576?Ps(n,ju):n}function Ap(n){return n.flags&1024&&Lp(n)?Nm(n):n.flags&128&&Lp(n)?gr:n.flags&256&&Lp(n)?Dr:n.flags&2048&&Lp(n)?qr:n.flags&512&&Lp(n)?Ur:n.flags&1048576?Ps(n,Ap):n}function hS(n){return n.flags&8192?qt:n.flags&1048576?Ps(n,hS):n}function YE(n,r){return fy(n,r)||(n=hS(Ap(n))),n}function EC(n,r,t){if(n&&Wu(n)){var a=r?t?Fv(r):r:void 0;n=YE(n,a)}return n}function QE(n,r,t,a){if(n&&Wu(n)){var s=r?Xm(t,r,a):void 0;n=YE(n,s)}return n}function ji(n){return!!(e.getObjectFlags(n)&4&&n.target.objectFlags&8)}function b_(n){return ji(n)&&!!(n.target.combinedFlags&8)}function yS(n){return b_(n)&&n.target.elementFlags.length===1}function dg(n){return Lh(n,n.target.fixedLength)}function bC(n){var r=dg(n);return r&&bl(r)}function Lh(n,r,t,a){t===void 0&&(t=0),a===void 0&&(a=!1);var s=rp(n)-t;if(r<s){for(var u=Co(n),S=[],F=r;F<s;F++){var ve=u[F];S.push(n.target.elementFlags[F]&8?Ec(ve,Dr):ve)}return a?Ro(S):Sa(S)}}function TC(n,r){return rp(n)===rp(r)&&e.every(n.target.elementFlags,function(t,a){return(t&12)===(r.target.elementFlags[a]&12)})}function ZE(n){var r=n.value;return r.base10Value==="0"}function ES(n){for(var r=0,t=0,a=n;t<a.length;t++){var s=a[t];r|=wc(s)}return r}function wc(n){return n.flags&1048576?ES(n.types):n.flags&128?n.value===""?128:0:n.flags&256?n.value===0?256:0:n.flags&2048?ZE(n)?2048:0:n.flags&512?n===ft||n===xt?512:0:n.flags&117724}function bS(n){return wc(n)&117632?Nl(n,function(r){return!(wc(r)&117632)}):n}function SC(n){return Ps(n,DC)}function DC(n){return n.flags&4?To:n.flags&8?Pn:n.flags&64?Vo:n===xt||n===ft||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&ZE(n)?n:Jt}function $E(n,r){var t=r&~n.flags&98304;return t===0?n:Sa(t===32768?[n,Rn]:t===65536?[n,zn]:[n,Rn,zn])}function td(n,r){return r===void 0&&(r=!1),e.Debug.assert(He),n.flags&32768?n:Sa([n,r?an:Rn])}function LC(n){var r=gl(n,2097152);return We||(We=__("NonNullable",524288,void 0)||Xn),We!==Xn?ag(We,[r]):r}function Rd(n){return He?LC(n):n}function TS(n){return He?Sa([n,xn]):n}function eb(n){return He?wh(n,xn):n}function Ah(n,r,t){return t?e.isOutermostOptionalChain(r)?td(n):TS(n):n}function pg(n,r){return e.isExpressionOfOptionalChainRoot(r)?Rd(n):e.isOptionalChain(r)?eb(n):n}function Bm(n,r){return $n&&r?wh(n,an):n}function SS(n){return $n&&(n===an||n.flags&1048576&&Yp(n.types,an))}function nb(n){return $n?wh(n,an):gl(n,524288)}function AC(n,r){return(n.flags&524)!==0&&(r.flags&28)!==0}function Ch(n){return n.flags&2097152?e.every(n.types,Ch):!!(n.symbol&&n.symbol.flags&7040&&!O1(n))||!!(e.getObjectFlags(n)&1024&&Ch(n.source))}function Sm(n,r){var t=fo(n.flags,n.escapedName,e.getCheckFlags(n)&8);t.declarations=n.declarations,t.parent=n.parent,t.type=r,t.target=n,n.valueDeclaration&&(t.valueDeclaration=n.valueDeclaration);var a=Za(n).nameType;return a&&(t.nameType=a),t}function CC(n,r){for(var t=e.createSymbolTable(),a=0,s=qf(n);a<s.length;a++){var u=s[a],S=kt(u),F=r(S);t.set(u.escapedName,F===S?u:Sm(u,F))}return t}function T_(n){if(!(xp(n)&&e.getObjectFlags(n)&16384))return n;var r=n.regularType;if(r)return r;var t=n,a=CC(n,T_),s=qo(t.symbol,a,t.callSignatures,t.constructSignatures,t.indexInfos);return s.flags=t.flags,s.objectFlags|=t.objectFlags&-16385,n.regularType=s,s}function DS(n,r,t){return{parent:n,propertyName:r,siblings:t,resolvedProperties:void 0}}function LS(n){if(!n.siblings){for(var r=[],t=0,a=LS(n.parent);t<a.length;t++){var s=a[t];if(xp(s)){var u=Df(s,n.propertyName);u&&Wm(kt(u),function(S){r.push(S)})}}n.siblings=r}return n.siblings}function xC(n){if(!n.resolvedProperties){for(var r=new e.Map,t=0,a=LS(n);t<a.length;t++){var s=a[t];if(xp(s)&&!(e.getObjectFlags(s)&4194304))for(var u=0,S=bo(s);u<S.length;u++){var F=S[u];r.set(F.escapedName,F)}}n.resolvedProperties=e.arrayFrom(r.values())}return n.resolvedProperties}function IC(n,r){if(!(n.flags&4))return n;var t=kt(n),a=r&&DS(r,n.escapedName,void 0),s=rb(t,a);return s===t?n:Sm(n,s)}function NC(n){var r=ar.get(n.escapedName);if(r)return r;var t=Sm(n,an);return t.flags|=16777216,ar.set(n.escapedName,t),t}function kC(n,r){for(var t=e.createSymbolTable(),a=0,s=qf(n);a<s.length;a++){var u=s[a];t.set(u.escapedName,IC(u,r))}if(r)for(var S=0,F=xC(r);S<F.length;S++){var u=F[S];t.has(u.escapedName)||t.set(u.escapedName,NC(u))}var ve=qo(n.symbol,t,e.emptyArray,e.emptyArray,e.sameMap(Ei(n),function(Ge){return Uu(Ge.keyType,fc(Ge.type),Ge.isReadonly)}));return ve.objectFlags|=e.getObjectFlags(n)&532480,ve}function fc(n){return rb(n,void 0)}function rb(n,r){if(e.getObjectFlags(n)&393216){if(r===void 0&&n.widened)return n.widened;var t=void 0;if(n.flags&98305)t=cr;else if(xp(n))t=kC(n,r);else if(n.flags&1048576){var a=r||DS(void 0,void 0,n.types),s=e.sameMap(n.types,function(u){return u.flags&98304?u:rb(u,a)});t=Sa(s,e.some(s,nd)?2:1)}else n.flags&2097152?t=Ro(e.sameMap(n.types,fc)):(Gl(n)||ji(n))&&(t=Yf(n.target,e.sameMap(Co(n),fc)));return t&&r===void 0&&(n.widened=t),t||n}return n}function xh(n){var r=!1;if(e.getObjectFlags(n)&131072){if(n.flags&1048576)if(e.some(n.types,nd))r=!0;else for(var t=0,a=n.types;t<a.length;t++){var s=a[t];xh(s)&&(r=!0)}if(Gl(n)||ji(n))for(var u=0,S=Co(n);u<S.length;u++){var s=S[u];xh(s)&&(r=!0)}if(xp(n))for(var F=0,ve=qf(n);F<ve.length;F++){var Ge=ve[F],s=kt(Ge);e.getObjectFlags(s)&131072&&(xh(s)||Jn(Ge.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Qa(Ge),Lt(fc(s))),r=!0)}}return r}function Cp(n,r,t){var a=Lt(fc(r));if(!(e.isInJSFile(n)&&!e.isCheckJsEnabledForFile(e.getSourceFileOfNode(n),pe))){var s;switch(n.kind){case 219:case 165:case 164:s=En?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 162:var u=n;if(e.isIdentifier(u.name)&&(e.isCallSignatureDeclaration(u.parent)||e.isMethodSignature(u.parent)||e.isFunctionTypeNode(u.parent))&&u.parent.parameters.indexOf(u)>-1&&(es(u,u.name.escapedText,788968,void 0,u.name.escapedText,!0)||u.name.originalKeywordKind&&e.isTypeNodeKind(u.name.originalKeywordKind))){var S="arg"+u.parent.parameters.indexOf(u);Es(En,n,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,S,e.declarationNameToString(u.name));return}s=n.dotDotDotToken?En?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:En?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 201:if(s=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!En)return;break;case 312:Jn(n,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,a);return;case 254:case 167:case 166:case 170:case 171:case 211:case 212:if(En&&!n.name){t===3?Jn(n,e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,a):Jn(n,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,a);return}s=En?t===3?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 193:En&&Jn(n,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);return;default:s=En?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}Es(En,n,s,e.declarationNameToString(e.getNameOfDeclaration(n)),a)}}function Ih(n,r,t){M&&En&&e.getObjectFlags(r)&131072&&(!t||!Pb(n))&&(xh(r)||Cp(n,r,t))}function tb(n,r,t){var a=ac(n),s=ac(r),u=Sg(n),S=Sg(r),F=S?s-1:s,ve=u?F:Math.min(a,F),Ge=Id(n);if(Ge){var Je=Id(r);Je&&t(Ge,Je)}for(var Xe=0;Xe<ve;Xe++)t(fu(n,Xe),fu(r,Xe));S&&t(R_(n,ve),S)}function ab(n,r,t){var a=Cc(n),s=Cc(r);a&&s&&_E(a,s)&&a.type&&s.type?t(a.type,s.type):t(_o(n),_o(r))}function mg(n,r,t,a){return ib(n.map(ob),r,t,a||ME)}function RC(n,r){return r===void 0&&(r=0),n&&ib(e.map(n.inferences,CS),n.signature,n.flags|r,n.compareTypes)}function ib(n,r,t,a){var s={inferences:n,signature:r,flags:t,compareTypes:a,mapper:Zp(function(u){return AS(s,u,!0)}),nonFixingMapper:Zp(function(u){return AS(s,u,!1)})};return s}function AS(n,r,t){for(var a=n.inferences,s=0;s<a.length;s++){var u=a[s];if(r===u.typeParameter)return t&&!u.isFixed&&(Nh(a),u.isFixed=!0),PS(n,s)}return r}function Nh(n){for(var r=0,t=n;r<t.length;r++){var a=t[r];a.isFixed||(a.inferredType=void 0)}}function ob(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function CS(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed,impliedArity:n.impliedArity}}function OC(n){var r=e.filter(n.inferences,Lm);return r.length?ib(e.map(r,CS),n.signature,n.flags,n.compareTypes):void 0}function sb(n){return n&&n.mapper}function _g(n){var r=e.getObjectFlags(n);if(r&1048576)return!!(r&2097152);var t=!!(n.flags&465829888||n.flags&524288&&!xS(n)&&(r&4&&(n.node||e.forEach(Co(n),_g))||r&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||r&8389664)||n.flags&3145728&&!(n.flags&1024)&&!xS(n)&&e.some(n.types,_g));return n.flags&3899393&&(n.objectFlags|=1048576|(t?2097152:0)),t}function xS(n){if(n.aliasSymbol&&!n.aliasTypeArguments){var r=e.getDeclarationOfKind(n.aliasSymbol,257);return!!(r&&e.findAncestor(r.parent,function(t){return t.kind===300?!0:t.kind===259?!1:"quit"}))}return!1}function lb(n,r){return!!(n===r||n.flags&3145728&&e.some(n.types,function(t){return lb(t,r)})||n.flags&16777216&&(ip(n)===r||op(n)===r))}function PC(n){var r=e.createSymbolTable();Wm(n,function(a){if(a.flags&128){var s=e.escapeLeadingUnderscores(a.value),u=fo(4,s);u.type=cr,a.symbol&&(u.declarations=a.symbol.declarations,u.valueDeclaration=a.symbol.valueDeclaration),r.set(s,u)}});var t=n.flags&4?[Uu(gr,Lr,!1)]:e.emptyArray;return qo(void 0,r,e.emptyArray,e.emptyArray,t)}function IS(n,r,t){if(!Io){var a=n.id+","+r.id+","+t.id;if(vo.has(a))return vo.get(a);Io=!0;var s=MC(n,r,t);return Io=!1,vo.set(a,s),s}}function cb(n){return!(e.getObjectFlags(n)&524288)||xp(n)&&e.some(bo(n),function(r){return cb(kt(r))})||ji(n)&&e.some(Co(n),cb)}function MC(n,r,t){if(po(n,gr)||bo(n).length!==0&&cb(n)){if(Gl(n))return bl(kh(Co(n)[0],r,t),y_(n));if(ji(n)){var a=e.map(Co(n),function(S){return kh(S,r,t)}),s=au(r)&4?e.sameMap(n.target.elementFlags,function(S){return S&2?1:S}):n.target.elementFlags;return Vu(a,s,n.target.readonly,n.target.labeledElementDeclarations)}var u=fl(1040,void 0);return u.source=n,u.mappedType=r,u.constraintType=t,u}}function wC(n){var r=Za(n);return r.type||(r.type=kh(n.propertyType,n.mappedType,n.constraintType)),r.type}function kh(n,r,t){var a=Ec(t.type,Su(r)),s=Mc(r),u=ob(a);return Lf([u],n,s),NS(u)||cn}function ub(n,r,t,a){var s,u,S,F,ve,Ge,Je;return Ou(this,function(Xe){switch(Xe.label){case 0:s=bo(r),u=0,S=s,Xe.label=1;case 1:return u<S.length?(F=S[u],Fa(F)?[3,5]:t||!(F.flags&16777216||e.getCheckFlags(F)&48)?(ve=wn(n,F.escapedName),ve?[3,3]:[4,F]):[3,5]):[3,6];case 2:return Xe.sent(),[3,5];case 3:return a?(Ge=kt(F),Ge.flags&109440?(Je=kt(ve),Je.flags&1||cc(Je)===cc(Ge)?[3,5]:[4,F]):[3,5]):[3,5];case 4:Xe.sent(),Xe.label=5;case 5:return u++,[3,1];case 6:return[2]}})}function fb(n,r,t,a){var s=ub(n,r,t,a).next();if(!s.done)return s.value}function FC(n,r){return!(r.target.combinedFlags&8)&&r.target.minLength>n.target.minLength||!r.target.hasRestElement&&(n.target.hasRestElement||r.target.fixedLength<n.target.fixedLength)}function GC(n,r){return ji(n)&&ji(r)?FC(n,r):!!fb(n,r,!1,!0)&&!!fb(r,n,!1,!1)}function NS(n){return n.candidates?Sa(n.candidates,2):n.contraCandidates?Ro(n.contraCandidates):void 0}function BC(n){return!!da(n).skipDirectInference}function kS(n){return!!(n.symbol&&e.some(n.symbol.declarations,BC))}function UC(n){var r=e.createScanner(99,!1),t=!0;r.setOnError(function(){return t=!1}),r.setText(n+"n");var a=r.scan();a===40&&(a=r.scan());var s=r.getTokenFlags();return t&&a===9&&r.getTextPos()===n.length+1&&!(s&512)}function VC(n,r){if(n===r||r.flags&5)return!0;if(n.flags&128){var t=n.value;return!!(r.flags&8&&t!==""&&isFinite(+t)||r.flags&64&&t!==""&&UC(t)||r.flags&98816&&t===r.intrinsicName)}if(n.flags&134217728){var a=n.texts;return a.length===2&&a[0]===""&&a[1]===""&&mo(n.types[0],r)}return mo(n,r)}function RS(n,r){return n.flags&128?OS([n.value],e.emptyArray,r):n.flags&134217728?e.arraysEqual(n.texts,r.texts)?e.map(n.types,WC):OS(n.texts,n.types,r):void 0}function WC(n){return n.flags&402653317?n:g_(["",""],[n])}function OS(n,r,t){var a=n.length-1,s=n[0],u=n[a],S=t.texts,F=S.length-1,ve=S[0],Ge=S[F];if(a===0&&s.length<ve.length+Ge.length||!s.startsWith(ve)||!u.endsWith(Ge))return;for(var Je=u.slice(0,u.length-Ge.length),Xe=[],tn=0,Dn=ve.length,nr=1;nr<F;nr++){var sr=S[nr];if(sr.length>0){for(var Ir=tn,xr=Dn;xr=Gr(Ir).indexOf(sr,xr),!(xr>=0);){if(Ir++,Ir===n.length)return;xr=0}ct(Ir,xr),Dn+=sr.length}else if(Dn<Gr(tn).length)ct(tn,Dn+1);else if(tn<a)ct(tn+1,0);else return}return ct(a,Gr(a).length),Xe;function Gr(Vt){return Vt<a?n[Vt]:Je}function ct(Vt,_t){var Ta=Vt===tn?Jc(Gr(Vt).slice(Dn,_t)):g_(Vr(Vr([n[tn].slice(Dn)],n.slice(tn+1,Vt),!0),[Gr(Vt).slice(0,_t)],!1),r.slice(tn,Vt));Xe.push(Ta),tn=Vt,Dn=_t}}function Lf(n,r,t,a,s){a===void 0&&(a=0),s===void 0&&(s=!1);var u=!1,S,F=2048,ve=!0,Ge,Je,Xe,tn=0;Dn(r,t);function Dn(Yr,Pr){if(_g(Pr)){if(Yr===Bn){var Aa=S;S=Yr,Dn(Pr,Pr),S=Aa;return}if(Yr.aliasSymbol&&Yr.aliasTypeArguments&&Yr.aliasSymbol===Pr.aliasSymbol){xr(Yr.aliasTypeArguments,Pr.aliasTypeArguments,uS(Yr.aliasSymbol));return}if(Yr===Pr&&Yr.flags&3145728){for(var Ga=0,na=Yr.types;Ga<na.length;Ga++){var si=na[Ga];Dn(si,si)}return}if(Pr.flags&1048576){var jt=Ir(Yr.flags&1048576?Yr.types:[Yr],Pr.types,jC),Ji=jt[0],Wi=jt[1],rr=Ir(Ji,Wi,HC),yn=rr[0],pt=rr[1];if(pt.length===0)return;if(Pr=Sa(pt),yn.length===0){nr(Yr,Pr,1);return}Yr=Sa(yn)}else if(Pr.flags&2097152&&e.some(Pr.types,function(Di){return!!ct(Di)||hc(Di)&&!!ct(kE(Di)||Jt)})){if(!(Yr.flags&1048576)){var mt=Ir(Yr.flags&2097152?Yr.types:[Yr],Pr.types,$f),yn=mt[0],pt=mt[1];if(yn.length===0||pt.length===0)return;Yr=Ro(yn),Pr=Ro(pt)}}else Pr.flags&41943040&&(Pr=Sp(Pr));if(Pr.flags&8650752){if(e.getObjectFlags(Yr)&524288||Yr===Cn||Yr===Ot||a&128&&(Yr===Fe||Yr===j)||kS(Yr))return;var Ft=ct(Pr);if(Ft){if(!Ft.isFixed){if((Ft.priority===void 0||a<Ft.priority)&&(Ft.candidates=void 0,Ft.contraCandidates=void 0,Ft.topLevel=!0,Ft.priority=a),a===Ft.priority){var Bt=S||Yr;s&&!u?e.contains(Ft.contraCandidates,Bt)||(Ft.contraCandidates=e.append(Ft.contraCandidates,Bt),Nh(n)):e.contains(Ft.candidates,Bt)||(Ft.candidates=e.append(Ft.candidates,Bt),Nh(n))}!(a&128)&&Pr.flags&262144&&Ft.topLevel&&!lb(t,Pr)&&(Ft.topLevel=!1,Nh(n))}F=Math.min(F,a);return}else{var Ht=Qf(Pr,!1);if(Ht!==Pr)sr(Yr,Ht,Dn);else if(Pr.flags&8388608){var fa=Qf(Pr.indexType,!1);if(fa.flags&465829888){var Qn=OT(Qf(Pr.objectType,!1),fa,!1);Qn&&Qn!==Pr&&sr(Yr,Qn,Dn)}}}}if(e.getObjectFlags(Yr)&4&&e.getObjectFlags(Pr)&4&&(Yr.target===Pr.target||Gl(Yr)&&Gl(Pr))&&!(Yr.node&&Pr.node))xr(Co(Yr),Co(Pr),jE(Yr.target));else if(Yr.flags&4194304&&Pr.flags&4194304)s=!s,Dn(Yr.type,Pr.type),s=!s;else if((Gm(Yr)||Yr.flags&4)&&Pr.flags&4194304){var Nr=PC(Yr);s=!s,nr(Nr,Pr.type,256),s=!s}else if(Yr.flags&8388608&&Pr.flags&8388608)Dn(Yr.objectType,Pr.objectType),Dn(Yr.indexType,Pr.indexType);else if(Yr.flags&268435456&&Pr.flags&268435456)Yr.symbol===Pr.symbol&&Dn(Yr.type,Pr.type);else if(Yr.flags&33554432){Dn(Yr.baseType,Pr);var Jr=a;a|=4,Dn(Yr.substitute,Pr),a=Jr}else if(Pr.flags&16777216)sr(Yr,Pr,sa);else if(Pr.flags&3145728)_t(Yr,Pr.types,Pr.flags);else if(Yr.flags&1048576)for(var tt=Yr.types,ut=0,Ct=tt;ut<Ct.length;ut++){var pa=Ct[ut];Dn(pa,Pr)}else if(Pr.flags&134217728)mi(Yr,Pr);else{if(Yr=iu(Yr),!(a&512&&Yr.flags&467927040)){var Oa=Il(Yr);if(Oa!==Yr&&ve&&!(Oa.flags&2621440))return ve=!1,Dn(Oa,Pr);Yr=Oa}Yr.flags&2621440&&sr(Yr,Pr,ai)}}}function nr(Yr,Pr,Aa){var Ga=a;a|=Aa,Dn(Yr,Pr),a=Ga}function sr(Yr,Pr,Aa){var Ga=Yr.id+","+Pr.id,na=Ge&&Ge.get(Ga);if(na!==void 0){F=Math.min(F,na);return}(Ge||(Ge=new e.Map)).set(Ga,-1);var si=F;F=2048;var jt=tn,Ji=vv(Yr),Wi=vv(Pr);e.contains(Je,Ji)&&(tn|=1),e.contains(Xe,Wi)&&(tn|=2),tn!==3?((Je||(Je=[])).push(Ji),(Xe||(Xe=[])).push(Wi),Aa(Yr,Pr),Xe.pop(),Je.pop()):F=-1,tn=jt,Ge.set(Ga,F),F=Math.min(F,si)}function Ir(Yr,Pr,Aa){for(var Ga,na,si=0,jt=Pr;si<jt.length;si++)for(var Ji=jt[si],Wi=0,rr=Yr;Wi<rr.length;Wi++){var yn=rr[Wi];Aa(yn,Ji)&&(Dn(yn,Ji),Ga=e.appendIfUnique(Ga,yn),na=e.appendIfUnique(na,Ji))}return[Ga?e.filter(Yr,function(pt){return!e.contains(Ga,pt)}):Yr,na?e.filter(Pr,function(pt){return!e.contains(na,pt)}):Pr]}function xr(Yr,Pr,Aa){for(var Ga=Yr.length<Pr.length?Yr.length:Pr.length,na=0;na<Ga;na++)na<Aa.length&&(Aa[na]&7)===2?Gr(Yr[na],Pr[na]):Dn(Yr[na],Pr[na])}function Gr(Yr,Pr){Ln||a&1024?(s=!s,Dn(Yr,Pr),s=!s):Dn(Yr,Pr)}function ct(Yr){if(Yr.flags&8650752)for(var Pr=0,Aa=n;Pr<Aa.length;Pr++){var Ga=Aa[Pr];if(Yr===Ga.typeParameter)return Ga}}function Vt(Yr){for(var Pr,Aa=0,Ga=Yr;Aa<Ga.length;Aa++){var na=Ga[Aa],si=na.flags&2097152&&e.find(na.types,function(jt){return!!ct(jt)});if(!si||Pr&&si!==Pr)return;Pr=si}return Pr}function _t(Yr,Pr,Aa){var Ga=0;if(Aa&1048576){for(var na=void 0,si=Yr.flags&1048576?Yr.types:[Yr],jt=new Array(si.length),Ji=!1,Wi=0,rr=Pr;Wi<rr.length;Wi++){var yn=rr[Wi];if(ct(yn))na=yn,Ga++;else for(var pt=0;pt<si.length;pt++){var mt=F;F=2048,Dn(si[pt],yn),F===a&&(jt[pt]=!0),Ji=Ji||F===-1,F=Math.min(F,mt)}}if(Ga===0){var Ft=Vt(Pr);Ft&&nr(Yr,Ft,1);return}if(Ga===1&&!Ji){var Bt=e.flatMap(si,function(Jr,tt){return jt[tt]?void 0:Jr});if(Bt.length){Dn(Sa(Bt),na);return}}}else for(var Ht=0,fa=Pr;Ht<fa.length;Ht++){var yn=fa[Ht];ct(yn)?Ga++:Dn(Yr,yn)}if(Aa&2097152?Ga===1:Ga>0)for(var Qn=0,Nr=Pr;Qn<Nr.length;Qn++){var yn=Nr[Qn];ct(yn)&&nr(Yr,yn,1)}}function Ta(Yr,Pr,Aa){if(Aa.flags&1048576){for(var Ga=!1,na=0,si=Aa.types;na<si.length;na++){var jt=si[na];Ga=Ta(Yr,Pr,jt)||Ga}return Ga}if(Aa.flags&4194304){var Ji=ct(Aa.type);if(Ji&&!Ji.isFixed&&!kS(Yr)){var Wi=IS(Yr,Pr,Aa);Wi&&nr(Wi,Ji.typeParameter,e.getObjectFlags(Yr)&524288?16:8)}return!0}if(Aa.flags&262144){nr(ff(Yr),Aa,32);var rr=Ep(Aa);if(rr&&Ta(Yr,Pr,rr))return!0;var yn=e.map(bo(Yr),kt),pt=e.map(Ei(Yr),function(mt){return mt!==wi?mt.type:Jt});return Dn(Sa(e.concatenate(yn,pt)),Mc(Pr)),!0}return!1}function sa(Yr,Pr){if(Yr.flags&16777216)Dn(Yr.checkType,Pr.checkType),Dn(Yr.extendsType,Pr.extendsType),Dn(ip(Yr),ip(Pr)),Dn(op(Yr),op(Pr));else{var Aa=a;a|=s?64:0;var Ga=[ip(Pr),op(Pr)];_t(Yr,Ga,Pr.flags),a=Aa}}function mi(Yr,Pr){for(var Aa=RS(Yr,Pr),Ga=Pr.types,na=0;na<Ga.length;na++)Dn(Aa?Aa[na]:Jt,Ga[na])}function ai(Yr,Pr){if(e.getObjectFlags(Yr)&4&&e.getObjectFlags(Pr)&4&&(Yr.target===Pr.target||Gl(Yr)&&Gl(Pr))){xr(Co(Yr),Co(Pr),jE(Yr.target));return}if(hc(Yr)&&hc(Pr)){Dn(tu(Yr),tu(Pr)),Dn(Mc(Yr),Mc(Pr));var Aa=$d(Yr),Ga=$d(Pr);Aa&&Ga&&Dn(Aa,Ga)}if(e.getObjectFlags(Pr)&32&&!Pr.declaration.nameType){var na=tu(Pr);if(Ta(Yr,Pr,na))return}if(!GC(Yr,Pr)){if(Gl(Yr)||ji(Yr)){if(ji(Pr)){var si=rp(Yr),jt=rp(Pr),Ji=Co(Pr),Wi=Pr.target.elementFlags;if(ji(Yr)&&TC(Yr,Pr)){for(var rr=0;rr<jt;rr++)Dn(Co(Yr)[rr],Ji[rr]);return}for(var yn=ji(Yr)?Math.min(Yr.target.fixedLength,Pr.target.fixedLength):0,pt=Math.min(ji(Yr)?dh(Yr.target,3):0,Pr.target.hasRestElement?dh(Pr.target,3):0),rr=0;rr<yn;rr++)Dn(Co(Yr)[rr],Ji[rr]);if(!ji(Yr)||si-yn-pt===1&&Yr.target.elementFlags[yn]&4)for(var mt=Co(Yr)[yn],rr=yn;rr<jt-pt;rr++)Dn(Wi[rr]&8?bl(mt):mt,Ji[rr]);else{var Ft=jt-yn-pt;if(Ft===2&&Wi[yn]&Wi[yn+1]&8&&ji(Yr)){var Bt=ct(Ji[yn]);Bt&&Bt.impliedArity!==void 0&&(Dn(sg(Yr,yn,pt+si-Bt.impliedArity),Ji[yn]),Dn(sg(Yr,yn+Bt.impliedArity,pt),Ji[yn+1]))}else if(Ft===1&&Wi[yn]&8){var Ht=Pr.target.elementFlags[jt-1]&2,fa=ji(Yr)?sg(Yr,yn,pt):bl(Co(Yr)[0]);nr(fa,Ji[yn],Ht?2:0)}else if(Ft===1&&Wi[yn]&4){var mt=ji(Yr)?Lh(Yr,yn,pt):Co(Yr)[0];mt&&Dn(mt,Ji[yn])}}for(var rr=0;rr<pt;rr++)Dn(Co(Yr)[si-rr-1],Ji[jt-rr-1]);return}if(Gl(Pr)){xo(Yr,Pr);return}}Hi(Yr,Pr),ii(Yr,Pr,0),ii(Yr,Pr,1),xo(Yr,Pr)}}function Hi(Yr,Pr){for(var Aa=qf(Pr),Ga=0,na=Aa;Ga<na.length;Ga++){var si=na[Ga],jt=wn(Yr,si.escapedName);jt&&Dn(kt(jt),kt(si))}}function ii(Yr,Pr,Aa){for(var Ga=zr(Yr,Aa),na=zr(Pr,Aa),si=Ga.length,jt=na.length,Ji=si<jt?si:jt,Wi=!!(e.getObjectFlags(Yr)&524288),rr=0;rr<Ji;rr++)go(uL(Ga[si-Ji+rr]),tg(na[jt-Ji+rr]),Wi)}function go(Yr,Pr,Aa){if(!Aa){var Ga=u,na=Pr.declaration?Pr.declaration.kind:0;u=u||na===167||na===166||na===169,tb(Yr,Pr,Gr),u=Ga}ab(Yr,Pr,Dn)}function xo(Yr,Pr){var Aa=e.getObjectFlags(Yr)&e.getObjectFlags(Pr)&32?8:0,Ga=Ei(Pr);if(Ch(Yr))for(var na=0,si=Ga;na<si.length;na++){for(var jt=si[na],Ji=[],Wi=0,rr=bo(Yr);Wi<rr.length;Wi++){var yn=rr[Wi];if(yi(Om(yn,8576),jt.keyType)){var pt=kt(yn);Ji.push(yn.flags&16777216?nb(pt):pt)}}for(var mt=0,Ft=Ei(Yr);mt<Ft.length;mt++){var Bt=Ft[mt];yi(Bt.keyType,jt.keyType)&&Ji.push(Bt.type)}Ji.length&&nr(Sa(Ji),jt.type,Aa)}for(var Ht=0,fa=Ga;Ht<fa.length;Ht++){var jt=fa[Ht],Qn=ks(Yr,jt.keyType);Qn&&nr(Qn.type,jt.type,Aa)}}}function jC(n,r){return $n&&r===an?n===r:$f(n,r)||!!(r.flags&4&&n.flags&128||r.flags&8&&n.flags&256)}function HC(n,r){return!!(n.flags&524288&&r.flags&524288&&n.symbol&&n.symbol===r.symbol||n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===r.aliasSymbol)}function JC(n){var r=yc(n);return!!r&&bs(r.flags&16777216?Qg(r):r,406978556)}function xp(n){return!!(e.getObjectFlags(n)&128)}function db(n){return!!(e.getObjectFlags(n)&32896)}function KC(n){if(n.length>1){var r=e.filter(n,db);if(r.length){var t=Sa(r,2);return e.concatenate(e.filter(n,function(a){return!db(a)}),[t])}}return n}function zC(n){return n.priority&416?Ro(n.contraCandidates):gC(n.contraCandidates)}function qC(n,r){var t=KC(n.candidates),a=JC(n.typeParameter),s=!a&&n.topLevel&&(n.isFixed||!lb(_o(r),n.typeParameter)),u=a?e.sameMap(t,cc):s?e.sameMap(t,Ap):t,S=n.priority&416?Sa(u,2):_C(u);return fc(S)}function PS(n,r){var t=n.inferences[r];if(!t.inferredType){var a=void 0,s=n.signature;if(s){var u=t.candidates?qC(t,s):void 0;if(t.contraCandidates){var S=zC(t);a=u&&!(u.flags&131072)&&ed(u,S)?u:S}else if(u)a=u;else if(n.flags&1)a=Ot;else{var F=ep(t.typeParameter);F&&(a=fi(F,NA(IA(n,r),n.nonFixingMapper)))}}else a=NS(t);t.inferredType=a||pb(!!(n.flags&2));var ve=yc(t.typeParameter);if(ve){var Ge=fi(ve,n.nonFixingMapper);(!a||!n.compareTypes(a,Ac(Ge,a)))&&(t.inferredType=a=Ge)}}return t.inferredType}function pb(n){return n?cr:cn}function mb(n){for(var r=[],t=0;t<n.inferences.length;t++)r.push(PS(n,t));return r}function MS(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 pe.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return pe.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return pe.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;default:return n.parent.kind===292?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 xu(n){var r=da(n);return r.resolvedSymbol||(r.resolvedSymbol=!e.nodeIsMissing(n)&&es(n,n.escapedText,1160127,MS(n),n,!e.isWriteOnlyAccess(n),!1,!0)||Xn),r.resolvedSymbol}function S_(n){return!!e.findAncestor(n,function(r){return r.kind===179?!0:r.kind===79||r.kind===159?!1:"quit"})}function Rh(n,r,t,a){switch(n.kind){case 79:var s=xu(n);return s!==Xn?(a?U(a):"-1")+"|"+cu(r)+"|"+cu(t)+"|"+C(s):void 0;case 108:return"0|"+(a?U(a):"-1")+"|"+cu(r)+"|"+cu(t);case 228:case 210:return Rh(n.expression,r,t,a);case 159:var u=Rh(n.left,r,t,a);return u&&u+"."+n.right.escapedText;case 204:case 205:var S=em(n);if(S!==void 0){var F=Rh(n.expression,r,t,a);return F&&F+"."+S}}}function Tl(n,r){switch(r.kind){case 210:case 228:return Tl(n,r.expression);case 219:return e.isAssignmentExpression(r)&&Tl(n,r.left)||e.isBinaryExpression(r)&&r.operatorToken.kind===27&&Tl(n,r.right)}switch(n.kind){case 229:return r.kind===229&&n.keywordToken===r.keywordToken&&n.name.escapedText===r.name.escapedText;case 79:case 80:return e.isThisInTypeQuery(n)?r.kind===108:r.kind===79&&xu(n)===xu(r)||(r.kind===252||r.kind===201)&&$c(xu(n))===wt(r);case 108:return r.kind===108;case 106:return r.kind===106;case 228:case 210:return Tl(n.expression,r);case 204:case 205:return e.isAccessExpression(r)&&em(n)===em(r)&&Tl(n.expression,r.expression);case 159:return e.isAccessExpression(r)&&n.right.escapedText===em(r)&&Tl(n.left,r.expression);case 219:return e.isBinaryExpression(n)&&n.operatorToken.kind===27&&Tl(n.right,r)}return!1}function _b(n,r){return Tl(n,r)||r.kind===219&&r.operatorToken.kind===55&&(_b(n,r.left)||_b(n,r.right))}function XC(n){if(e.isAccessExpression(n))return n;if(e.isIdentifier(n)){var r=xu(n);if(Sv(r)){var t=r.valueDeclaration;if(e.isVariableDeclaration(t)&&!t.type&&t.initializer&&e.isAccessExpression(t.initializer))return t.initializer;if(e.isBindingElement(t)&&!t.initializer){var a=t.parent.parent;if(e.isVariableDeclaration(a)&&!a.type&&a.initializer&&(e.isIdentifier(a.initializer)||e.isAccessExpression(a.initializer)))return t}}}}function em(n){var r;return n.kind===204?n.name.escapedText:n.kind===205&&e.isStringOrNumericLiteralLike(n.argumentExpression)?e.escapeLeadingUnderscores(n.argumentExpression.text):n.kind===201&&(r=mr(n))?e.escapeLeadingUnderscores(r):void 0}function wS(n,r){for(;e.isAccessExpression(n);)if(n=n.expression,Tl(n,r))return!0;return!1}function Um(n,r){for(;e.isOptionalChain(n);)if(n=n.expression,Tl(n,r))return!0;return!1}function gg(n,r){if(n&&n.flags&1048576){var t=nv(n,r);if(t&&e.getCheckFlags(t)&2)return t.isDiscriminantProperty===void 0&&(t.isDiscriminantProperty=(t.checkFlags&192)===192&&!bs(kt(t),331612160)),!!t.isDiscriminantProperty}return!1}function FS(n,r){for(var t,a=0,s=n;a<s.length;a++){var u=s[a];if(gg(r,u.escapedName)){if(t){t.push(u);continue}t=[u]}}return t}function YC(n,r){for(var t=new e.Map,a=0,s=function(Ge){if(Ge.flags&61603840){var Je=Os(Ge,r);if(Je){if(!Gm(Je))return{value:void 0};var Xe=!1;Wm(Je,function(tn){var Dn=cu(cc(tn)),nr=t.get(Dn);nr?nr!==cn&&(t.set(Dn,cn),Xe=!0):t.set(Dn,Ge)}),Xe||a++}}},u=0,S=n;u<S.length;u++){var F=S[u],ve=s(F);if(typeof ve=="object")return ve.value}return a>=10&&a*2>=n.length?t:void 0}function Oh(n){var r=n.types;if(!(r.length<10||e.getObjectFlags(n)&65536)){if(n.keyPropertyName===void 0){var t=e.forEach(r,function(s){return s.flags&59506688?e.forEach(bo(s),function(u){return Wu(kt(u))?u.escapedName:void 0}):void 0}),a=t&&YC(r,t);n.keyPropertyName=a?t:"",n.constituentMap=a}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function Ph(n,r){var t,a=(t=n.constituentMap)===null||t===void 0?void 0:t.get(cu(cc(r)));return a!==cn?a:void 0}function GS(n,r){var t=Oh(n),a=t&&Os(r,t);return a&&Ph(n,a)}function QC(n,r){var t=Oh(n),a=t&&e.find(r.properties,function(u){return u.symbol&&u.kind===291&&u.symbol.escapedName===t&&Dv(u.initializer)}),s=a&&kl(a.initializer);return s&&Ph(n,s)}function BS(n,r){return Tl(n,r)||wS(n,r)}function US(n,r){if(n.arguments)for(var t=0,a=n.arguments;t<a.length;t++){var s=a[t];if(BS(r,s))return!0}return!!(n.expression.kind===204&&BS(r,n.expression.expression))}function gb(n){return(!n.id||n.id<0)&&(n.id=re,re++),n.id}function ZC(n,r){if(!(n.flags&1048576))return mo(n,r);for(var t=0,a=n.types;t<a.length;t++){var s=a[t];if(mo(s,r))return!0}return!1}function $C(n,r){if(n!==r){if(r.flags&131072)return r;var t=Nl(n,function(a){return ZC(r,a)});if(r.flags&512&&Lp(r)&&(t=Ps(t,wm)),mo(r,t))return t}return n}function vb(n){var r=Du(n);return!!(r.callSignatures.length||r.constructSignatures.length||r.members.get("bind")&&ed(n,Jo))}function cp(n,r){r===void 0&&(r=!1);var t=n.flags;if(t&4)return He?16317953:16776705;if(t&128){var a=n.value==="";return He?a?12123649:7929345:a?12582401:16776705}if(t&40)return He?16317698:16776450;if(t&256){var s=n.value===0;return He?s?12123394:7929090:s?12582146:16776450}if(t&64)return He?16317188:16775940;if(t&2048){var s=ZE(n);return He?s?12122884:7928580:s?12581636:16775940}return t&16?He?16316168:16774920:t&528?He?n===ft||n===xt?12121864:7927560:n===ft||n===xt?12580616:16774920:t&524288&&!r?e.getObjectFlags(n)&16&&nd(n)?He?16318463:16777215:vb(n)?He?7880640:16728e3:He?7888800:16736160:t&49152?9830144:t&65536?9363232:t&12288?He?7925520:16772880:t&67108864?He?7888800:16736160:t&131072?0:t&465829888?cv(n)?He?7929345:16776705:cp(Xl(n)||cn,r):t&1048576?e.reduceLeft(n.types,function(u,S){return u|cp(S,r)},0):t&2097152?(r||(r=bs(n,131068)),e.reduceLeft(n.types,function(u,S){return u&cp(S,r)},16777215)):16777215}function gl(n,r){return Nl(n,function(t){return(cp(t)&r)!==0})}function hb(n,r){return r?Sa([Yd(n),kl(r)]):n}function VS(n,r){var t,a=tp(r);if(!Gi(a))return J;var s=ql(a);return Os(n,s)||vg((t=Yl(n,s))===null||t===void 0?void 0:t.type)||J}function WS(n,r){return ad(n,E_)&&vC(n,r)||vg(Pd(65,n,Rn,void 0))||J}function vg(n){return n&&(pe.noUncheckedIndexedAccess?Sa([n,Rn]):n)}function jS(n){return bl(Pd(65,n,Rn,void 0)||J)}function ex(n){var r=n.parent.kind===202&&yb(n.parent)||n.parent.kind===291&&yb(n.parent.parent);return r?hb(yv(n),n.right):kl(n.right)}function yb(n){return n.parent.kind===219&&n.parent.left===n||n.parent.kind===242&&n.parent.initializer===n}function nx(n,r){return WS(yv(n),n.elements.indexOf(r))}function rx(n){return jS(yv(n.parent))}function HS(n){return VS(yv(n.parent),n.name)}function tx(n){return hb(HS(n),n.objectAssignmentInitializer)}function yv(n){var r=n.parent;switch(r.kind){case 241:return gr;case 242:return Wv(r)||J;case 219:return ex(r);case 213:return Rn;case 202:return nx(r,n);case 223:return rx(r);case 291:return HS(r);case 292:return tx(r)}return J}function ax(n){var r=n.parent,t=KS(r.parent),a=r.kind===199?VS(t,n.propertyName||n.name):n.dotDotDotToken?jS(t):WS(t,r.elements.indexOf(n));return hb(a,n.initializer)}function JS(n){var r=da(n);return r.resolvedType||kl(n)}function ix(n){return n.initializer?JS(n.initializer):n.parent.parent.kind===241?gr:n.parent.parent.kind===242&&Wv(n.parent.parent)||J}function KS(n){return n.kind===252?ix(n):ax(n)}function ox(n){return n.kind===252&&n.initializer&&ci(n.initializer)||n.kind!==201&&n.parent.kind===219&&ci(n.parent.right)}function nm(n){switch(n.kind){case 210:return nm(n.expression);case 219:switch(n.operatorToken.kind){case 63:case 75:case 76:case 77:return nm(n.left);case 27:return nm(n.right)}}return n}function zS(n){var r=n.parent;return r.kind===210||r.kind===219&&r.operatorToken.kind===63&&r.left===n||r.kind===219&&r.operatorToken.kind===27&&r.right===n?zS(r):n}function sx(n){return n.kind===287?cc(kl(n.expression)):Jt}function Mh(n){var r=da(n);if(!r.switchTypes){r.switchTypes=[];for(var t=0,a=n.caseBlock.clauses;t<a.length;t++){var s=a[t];r.switchTypes.push(sx(s))}}return r.switchTypes}function qS(n,r){for(var t=[],a=0,s=n.caseBlock.clauses;a<s.length;a++){var u=s[a];if(u.kind===287){if(e.isStringLiteralLike(u.expression)){t.push(u.expression.text);continue}return e.emptyArray}r&&t.push(void 0)}return t}function lx(n,r){return n.flags&1048576?!e.forEach(n.types,function(t){return!e.contains(r,t)}):e.contains(r,n)}function Vm(n,r){return n===r||r.flags&1048576&&cx(n,r)}function cx(n,r){if(n.flags&1048576){for(var t=0,a=n.types;t<a.length;t++){var s=a[t];if(!Yp(r.types,s))return!1}return!0}return n.flags&1024&&Nm(n)===r?!0:Yp(r.types,n)}function Wm(n,r){return n.flags&1048576?e.forEach(n.types,r):r(n)}function D_(n,r){return n.flags&1048576?e.some(n.types,r):r(n)}function ad(n,r){return n.flags&1048576?e.every(n.types,r):r(n)}function ux(n,r){return n.flags&3145728?e.every(n.types,r):r(n)}function Nl(n,r){if(n.flags&1048576){var t=n.types,a=e.filter(t,r);if(a===t)return n;var s=n.origin,u=void 0;if(s&&s.flags&1048576){var S=s.types,F=e.filter(S,function(ve){return!!(ve.flags&1048576)||r(ve)});if(S.length-F.length===t.length-a.length){if(F.length===1)return F[0];u=mE(1048576,F)}}return gE(a,n.objectFlags,void 0,void 0,u)}return n.flags&131072||r(n)?n:Jt}function wh(n,r){return Nl(n,function(t){return t!==r})}function fx(n){return n.flags&1048576?n.types.length:1}function Ps(n,r,t){if(n.flags&131072)return n;if(!(n.flags&1048576))return r(n);for(var a=n.origin,s=a&&a.flags&1048576?a.types:n.types,u,S=!1,F=0,ve=s;F<ve.length;F++){var Ge=ve[F],Je=Ge.flags&1048576?Ps(Ge,r,t):r(Ge);S||(S=Ge!==Je),Je&&(u?u.push(Je):u=[Je])}return S?u&&Sa(u,t?0:1):n}function XS(n,r,t,a){return n.flags&1048576&&t?Sa(e.map(n.types,r),1,t,a):Ps(n,r)}function YS(n){return n.flags&3145728?n.types.length:1}function jm(n,r){return Nl(n,function(t){return(t.flags&r)!==0})}function QS(n,r){return Vm(gr,n)&&bs(r,128)||Vm(Dr,n)&&bs(r,256)||Vm(qr,n)&&bs(r,2048)?Ps(n,function(t){return t.flags&4?jm(r,132):t.flags&8?jm(r,264):t.flags&64?jm(r,2112):t}):n}function Hm(n){return n.flags===0}function rm(n){return n.flags===0?n.type:n}function Jm(n,r){return r?{flags:0,type:n.flags&131072?Ot:n}:n}function dx(n){var r=fl(256);return r.elementType=n,r}function Eb(n){return Mn[n.id]||(Mn[n.id]=dx(n))}function ZS(n,r){var t=T_(ju(d1(r)));return Vm(t,n.elementType)?n:Eb(Sa([n.elementType,t]))}function px(n){return n.flags&131072?j:bl(n.flags&1048576?Sa(n.types,2):n)}function mx(n){return n.finalArrayType||(n.finalArrayType=px(n.elementType))}function Fh(n){return e.getObjectFlags(n)&256?mx(n):n}function _x(n){return e.getObjectFlags(n)&256?n.elementType:Jt}function gx(n){for(var r=!1,t=0,a=n;t<a.length;t++){var s=a[t];if(!(s.flags&131072)){if(!(e.getObjectFlags(s)&256))return!1;r=!0}}return r}function $S(n){var r=zS(n),t=r.parent,a=e.isPropertyAccessExpression(t)&&(t.name.escapedText==="length"||t.parent.kind===206&&e.isIdentifier(t.name)&&e.isPushOrUnshiftIdentifier(t.name)),s=t.kind===205&&t.expression===r&&t.parent.kind===219&&t.parent.operatorToken.kind===63&&t.parent.left===t&&!e.isAssignmentTarget(t.parent)&&qs(kl(t.argumentExpression),296);return a||s}function vx(n){return(n.kind===252||n.kind===162||n.kind===165||n.kind===164)&&!!e.getEffectiveTypeAnnotationNode(n)}function Gh(n,r){if(n.flags&8752)return kt(n);if(n.flags&7){if(e.getCheckFlags(n)&262144){var t=n.syntheticOrigin;if(t&&Gh(t))return kt(n)}var a=n.valueDeclaration;if(a){if(vx(a))return kt(n);if(e.isVariableDeclaration(a)&&a.parent.parent.kind===242){var s=a.parent.parent,u=Ev(s.expression,void 0);if(u){var S=s.awaitModifier?15:13;return Pd(S,u,Rn,void 0)}}r&&e.addRelatedInfo(r,e.createDiagnosticForNode(a,e.Diagnostics._0_needs_an_explicit_type_annotation,Qa(n)))}}}function Ev(n,r){if(!(n.flags&16777216))switch(n.kind){case 79:var t=$c(xu(n));return Gh(t.flags&2097152?_i(t):t,r);case 108:return Px(n);case 106:return Lb(n);case 204:{var a=Ev(n.expression,r);if(a){var s=n.name,u=void 0;if(e.isPrivateIdentifier(s)){if(!a.symbol)return;u=wn(a,e.getSymbolNameForPrivateIdentifier(a.symbol,s.escapedText))}else u=wn(a,s.escapedText);return u&&Gh(u,r)}return}case 210:return Ev(n.expression,r)}}function Bh(n){var r=da(n),t=r.effectsSignature;if(t===void 0){var a=void 0;n.parent.kind===236?a=Ev(n.expression,void 0):n.expression.kind!==106&&(e.isOptionalChain(n)?a=Iu(pg(vi(n.expression),n.expression),n.expression):a=x_(n.expression));var s=zr(a&&Il(a)||cn,0),u=s.length===1&&!s[0].typeParameters?s[0]:e.some(s,e0)?N_(n):void 0;t=r.effectsSignature=u&&e0(u)?u:Mi}return t===Mi?void 0:t}function e0(n){return!!(Cc(n)||n.declaration&&(bp(n.declaration)||cn).flags&131072)}function hx(n,r){if(n.kind===1||n.kind===3)return r.arguments[n.parameterIndex];var t=e.skipParentheses(r.expression);return e.isAccessExpression(t)?e.skipParentheses(t.expression):void 0}function yx(n){var r=e.findAncestor(n,e.isFunctionOrModuleBlock),t=e.getSourceFileOfNode(n),a=e.getSpanOfTokenAtPosition(t,r.statements.pos);zt.add(e.createFileDiagnostic(t,a.start,a.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function bv(n){var r=Uh(n,!1);return Xt=n,ca=r,r}function Tv(n){var r=e.skipParentheses(n);return r.kind===95||r.kind===219&&(r.operatorToken.kind===55&&(Tv(r.left)||Tv(r.right))||r.operatorToken.kind===56&&Tv(r.left)&&Tv(r.right))}function Uh(n,r){for(;;){if(n===Xt)return ca;var t=n.flags;if(t&4096){if(!r){var a=gb(n),s=lr[a];return s!==void 0?s:lr[a]=Uh(n,!0)}r=!1}if(t&368)n=n.antecedent;else if(t&512){var u=Bh(n.node);if(u){var S=Cc(u);if(S&&S.kind===3&&!S.type){var F=n.node.arguments[S.parameterIndex];if(F&&Tv(F))return!1}if(_o(u).flags&131072)return!1}n=n.antecedent}else{if(t&4)return e.some(n.antecedents,function(tn){return Uh(tn,!1)});if(t&8){var ve=n.antecedents;if(ve===void 0||ve.length===0)return!1;n=ve[0]}else if(t&128){if(n.clauseStart===n.clauseEnd&&T2(n.switchStatement))return!1;n=n.antecedent}else if(t&1024){Xt=void 0;var Ge=n.target,Je=Ge.antecedents;Ge.antecedents=n.antecedents;var Xe=Uh(n.antecedent,!1);return Ge.antecedents=Je,Xe}else return!(t&1)}}}function Vh(n,r){for(;;){var t=n.flags;if(t&4096){if(!r){var a=gb(n),s=Or[a];return s!==void 0?s:Or[a]=Vh(n,!0)}r=!1}if(t&496)n=n.antecedent;else if(t&512){if(n.node.expression.kind===106)return!0;n=n.antecedent}else{if(t&4)return e.every(n.antecedents,function(ve){return Vh(ve,!1)});if(t&8)n=n.antecedents[0];else if(t&1024){var u=n.target,S=u.antecedents;u.antecedents=n.antecedents;var F=Vh(n.antecedent,!1);return u.antecedents=S,F}else return!!(t&1)}}}function n0(n){switch(n.kind){case 79:var r=xu(n);return Sv(r)||!!r.valueDeclaration&&e.getRootDeclaration(r.valueDeclaration).kind===162&&!r0(r);case 204:case 205:return n0(n.expression)&&df(da(n).resolvedSymbol||Xn)}return!1}function tm(n,r,t,a){t===void 0&&(t=r);var s,u=!1,S=0,F=0;if(Fn)return J;if(!n.flowNode)return r;et++;var ve=Te,Ge=rm(tn(n.flowNode));Te=ve;var Je=e.getObjectFlags(Ge)&256&&$S(n)?j:Fh(Ge);if(Je===eo||n.parent&&n.parent.kind===228&&!(Je.flags&131072)&&gl(Je,2097152).flags&131072)return r;return Je;function Xe(){return u?s:(u=!0,s=Rh(n,r,t,a))}function tn(Qn){if(S===2e3)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:Qn.id}),Fn=!0,yx(n),J;S++;for(var Nr;;){var Jr=Qn.flags;if(Jr&4096){for(var tt=ve;tt<Te;tt++)if($l[tt]===Qn)return S--,kn[tt];Nr=Qn}var ut=void 0;if(Jr&16){if(ut=nr(Qn),!ut){Qn=Qn.antecedent;continue}}else if(Jr&512){if(ut=Ir(Qn),!ut){Qn=Qn.antecedent;continue}}else if(Jr&96)ut=Gr(Qn);else if(Jr&128)ut=ct(Qn);else if(Jr&12){if(Qn.antecedents.length===1){Qn=Qn.antecedents[0];continue}ut=Jr&4?Vt(Qn):_t(Qn)}else if(Jr&256){if(ut=xr(Qn),!ut){Qn=Qn.antecedent;continue}}else if(Jr&1024){var Ct=Qn.target,pa=Ct.antecedents;Ct.antecedents=Qn.antecedents,ut=tn(Qn.antecedent),Ct.antecedents=pa}else if(Jr&2){var Oa=Qn.node;if(Oa&&Oa!==a&&n.kind!==204&&n.kind!==205&&n.kind!==108){Qn=Oa.flowNode;continue}ut=t}else ut=Rg(r);return Nr&&($l[Te]=Nr,kn[Te]=ut,Te++),S--,ut}}function Dn(Qn){var Nr=Qn.node;return bb(Nr.kind===252||Nr.kind===201?KS(Nr):yv(Nr),n)}function nr(Qn){var Nr=Qn.node;if(Tl(n,Nr)){if(!bv(Qn))return eo;if(e.getAssignmentTargetKind(Nr)===2){var Jr=tn(Qn.antecedent);return Jm(ju(rm(Jr)),Hm(Jr))}if(r===Fe||r===j){if(ox(Nr))return Eb(Jt);var tt=Ap(Dn(Qn));return mo(tt,r)?tt:dn}return r.flags&1048576?$C(r,Dn(Qn)):r}if(wS(n,Nr)){if(!bv(Qn))return eo;if(e.isVariableDeclaration(Nr)&&(e.isInJSFile(Nr)||e.isVarConst(Nr))){var ut=e.getDeclaredExpandoInitializer(Nr);if(ut&&(ut.kind===211||ut.kind===212))return tn(Qn.antecedent)}return r}if(e.isVariableDeclaration(Nr)&&Nr.parent.parent.kind===241&&Tl(n,Nr.parent.parent.expression))return Wb(rm(tn(Qn.antecedent)))}function sr(Qn,Nr){var Jr=e.skipParentheses(Nr);if(Jr.kind===95)return eo;if(Jr.kind===219){if(Jr.operatorToken.kind===55)return sr(sr(Qn,Jr.left),Jr.right);if(Jr.operatorToken.kind===56)return Sa([sr(Qn,Jr.left),sr(Qn,Jr.right)])}return Ht(Qn,Jr,!0)}function Ir(Qn){var Nr=Bh(Qn.node);if(Nr){var Jr=Cc(Nr);if(Jr&&(Jr.kind===2||Jr.kind===3)){var tt=tn(Qn.antecedent),ut=Fh(rm(tt)),Ct=Jr.type?Bt(ut,Jr,Qn.node,!0):Jr.kind===3&&Jr.parameterIndex>=0&&Jr.parameterIndex<Qn.node.arguments.length?sr(ut,Qn.node.arguments[Jr.parameterIndex]):ut;return Ct===ut?tt:Jm(Ct,Hm(tt))}if(_o(Nr).flags&131072)return eo}}function xr(Qn){if(r===Fe||r===j){var Nr=Qn.node,Jr=Nr.kind===206?Nr.expression.expression:Nr.left.expression;if(Tl(n,nm(Jr))){var tt=tn(Qn.antecedent),ut=rm(tt);if(e.getObjectFlags(ut)&256){var Ct=ut;if(Nr.kind===206)for(var pa=0,Oa=Nr.arguments;pa<Oa.length;pa++){var Di=Oa[pa];Ct=ZS(Ct,Di)}else{var xa=d1(Nr.left.argumentExpression);qs(xa,296)&&(Ct=ZS(Ct,Nr.right))}return Ct===ut?tt:Jm(Ct,Hm(tt))}return tt}}}function Gr(Qn){var Nr=tn(Qn.antecedent),Jr=rm(Nr);if(Jr.flags&131072)return Nr;var tt=(Qn.flags&32)!==0,ut=Fh(Jr),Ct=Ht(ut,Qn.node,tt);return Ct===ut?Nr:Jm(Ct,Hm(Nr))}function ct(Qn){var Nr=Qn.switchStatement.expression,Jr=tn(Qn.antecedent),tt=rm(Jr);if(Tl(n,Nr))tt=si(tt,Qn.switchStatement,Qn.clauseStart,Qn.clauseEnd);else if(Nr.kind===214&&Tl(n,Nr.expression))tt=Wi(tt,Qn.switchStatement,Qn.clauseStart,Qn.clauseEnd);else{He&&(Um(Nr,n)?tt=na(tt,Qn.switchStatement,Qn.clauseStart,Qn.clauseEnd,function(Ct){return!(Ct.flags&163840)}):Nr.kind===214&&Um(Nr.expression,n)&&(tt=na(tt,Qn.switchStatement,Qn.clauseStart,Qn.clauseEnd,function(Ct){return!(Ct.flags&131072||Ct.flags&128&&Ct.value==="undefined")})));var ut=sa(Nr,tt);ut&&(tt=Hi(tt,ut,Qn.switchStatement,Qn.clauseStart,Qn.clauseEnd))}return Jm(tt,Hm(Jr))}function Vt(Qn){for(var Nr=[],Jr=!1,tt=!1,ut,Ct=0,pa=Qn.antecedents;Ct<pa.length;Ct++){var Oa=pa[Ct];if(!ut&&Oa.flags&128&&Oa.clauseStart===Oa.clauseEnd){ut=Oa;continue}var Di=tn(Oa),xa=rm(Di);if(xa===r&&r===t)return xa;e.pushIfUnique(Nr,xa),Vm(xa,r)||(Jr=!0),Hm(Di)&&(tt=!0)}if(ut){var Di=tn(ut),xa=rm(Di);if(!e.contains(Nr,xa)&&!T2(ut.switchStatement)){if(xa===r&&r===t)return xa;Nr.push(xa),Vm(xa,r)||(Jr=!0),Hm(Di)&&(tt=!0)}}return Jm(Ta(Nr,Jr?2:1),tt)}function _t(Qn){var Nr=gb(Qn),Jr=Sc[Nr]||(Sc[Nr]=new e.Map),tt=Xe();if(!tt)return r;var ut=Jr.get(tt);if(ut)return ut;for(var Ct=ge;Ct<Kn;Ct++)if(Zl[Ct]===Qn&&du[Ct]===tt&&dc[Ct].length)return Jm(Ta(dc[Ct],1),!0);for(var pa=[],Oa=!1,Di,xa=0,lo=Qn.antecedents;xa<lo.length;xa++){var Wo=lo[xa],Mo=void 0;if(!Di)Mo=Di=tn(Wo);else{Zl[Kn]=Qn,du[Kn]=tt,dc[Kn]=pa,Kn++;var Qo=ha;ha=void 0,Mo=tn(Wo),ha=Qo,Kn--;var Zs=Jr.get(tt);if(Zs)return Zs}var il=rm(Mo);if(e.pushIfUnique(pa,il),Vm(il,r)||(Oa=!0),il===r)break}var Ws=Ta(pa,Oa?2:1);return Hm(Di)?Jm(Ws,!0):(Jr.set(tt,Ws),Ws)}function Ta(Qn,Nr){if(gx(Qn))return Eb(Sa(e.map(Qn,_x)));var Jr=Sa(e.sameMap(Qn,Fh),Nr);return Jr!==r&&Jr.flags&r.flags&1048576&&e.arraysEqual(Jr.types,r.types)?r:Jr}function sa(Qn,Nr){var Jr,tt,ut=r.flags&1048576?r:Nr;return ut.flags&1048576&&(Jr=XC(Qn))&&(tt=em(Jr))&&Tl(n,e.isAccessExpression(Jr)?Jr.expression:Jr.parent.parent.initializer)&&gg(ut,tt)?Jr:void 0}function mi(Qn,Nr,Jr){var tt=em(Nr);if(tt===void 0)return Qn;var ut=He&&e.isOptionalChain(Nr)&&bs(Qn,98304),Ct=Os(ut?gl(Qn,2097152):Qn,tt);if(!Ct)return Qn;Ct=ut?td(Ct):Ct;var pa=Jr(Ct);return Nl(Qn,function(Oa){var Di=Fp(Oa,tt);return!(Di.flags&131072)&&h_(Di,pa)})}function ai(Qn,Nr,Jr,tt,ut){if((Jr===36||Jr===37)&&Qn.flags&1048576){var Ct=Oh(Qn);if(Ct&&Ct===em(Nr)){var pa=Ph(Qn,kl(tt));if(pa)return Jr===(ut?36:37)?pa:Wu(Os(pa,Ct)||cn)?wh(Qn,pa):Qn}}return mi(Qn,Nr,function(Oa){return Aa(Oa,Jr,tt,ut)})}function Hi(Qn,Nr,Jr,tt,ut){if(tt<ut&&Qn.flags&1048576&&Oh(Qn)===em(Nr)){var Ct=Mh(Jr).slice(tt,ut),pa=Sa(e.map(Ct,function(Oa){return Ph(Qn,Oa)||cn}));if(pa!==cn)return pa}return mi(Qn,Nr,function(Oa){return si(Oa,Jr,tt,ut)})}function ii(Qn,Nr,Jr){if(Tl(n,Nr))return gl(Qn,Jr?4194304:8388608);He&&Jr&&Um(Nr,n)&&(Qn=gl(Qn,2097152));var tt=sa(Nr,Qn);return tt?mi(Qn,tt,function(ut){return gl(ut,Jr?4194304:8388608)}):Qn}function go(Qn,Nr,Jr){var tt=wn(Qn,Nr);return tt?tt.flags&16777216?!0:Jr:Yl(Qn,Nr)?!0:!Jr}function xo(Qn,Nr,Jr){return Qn.flags&1048576||Qn.flags&524288&&r!==Qn||uv(Qn)||Qn.flags&2097152&&e.every(Qn.types,function(tt){return tt.symbol!==hn})?Nl(Qn,function(tt){return go(tt,Nr,Jr)}):Qn}function Yr(Qn,Nr,Jr){switch(Nr.operatorToken.kind){case 63:case 75:case 76:case 77:return ii(Ht(Qn,Nr.right,Jr),Nr.left,Jr);case 34:case 35:case 36:case 37:var tt=Nr.operatorToken.kind,ut=nm(Nr.left),Ct=nm(Nr.right);if(ut.kind===214&&e.isStringLiteralLike(Ct))return Ga(Qn,ut,tt,Ct,Jr);if(Ct.kind===214&&e.isStringLiteralLike(ut))return Ga(Qn,Ct,tt,ut,Jr);if(Tl(n,ut))return Aa(Qn,tt,Ct,Jr);if(Tl(n,Ct))return Aa(Qn,tt,ut,Jr);He&&(Um(ut,n)?Qn=Pr(Qn,tt,Ct,Jr):Um(Ct,n)&&(Qn=Pr(Qn,tt,ut,Jr)));var pa=sa(ut,Qn);if(pa)return ai(Qn,pa,tt,Ct,Jr);var Oa=sa(Ct,Qn);if(Oa)return ai(Qn,Oa,tt,ut,Jr);if(rr(ut))return yn(Qn,tt,Ct,Jr);if(rr(Ct))return yn(Qn,tt,ut,Jr);break;case 102:return pt(Qn,Nr,Jr);case 101:var Di=nm(Nr.right),xa=sm(Nr.left);if(xa.flags&128){var lo=e.escapeLeadingUnderscores(xa.value);if(SS(Qn)&&e.isAccessExpression(n)&&Tl(n.expression,Di)&&em(n)===lo)return gl(Qn,Jr?524288:65536);if(Tl(n,Di))return xo(Qn,lo,Jr)}break;case 27:return Ht(Qn,Nr.right,Jr);case 55:return Jr?Ht(Ht(Qn,Nr.left,!0),Nr.right,!0):Sa([Ht(Qn,Nr.left,!1),Ht(Qn,Nr.right,!1)]);case 56:return Jr?Sa([Ht(Qn,Nr.left,!0),Ht(Qn,Nr.right,!0)]):Ht(Ht(Qn,Nr.left,!1),Nr.right,!1)}return Qn}function Pr(Qn,Nr,Jr,tt){var ut=Nr===34||Nr===36,Ct=Nr===34||Nr===35?98304:32768,pa=kl(Jr),Oa=ut!==tt&&ad(pa,function(Di){return!!(Di.flags&Ct)})||ut===tt&&ad(pa,function(Di){return!(Di.flags&(3|Ct))});return Oa?gl(Qn,2097152):Qn}function Aa(Qn,Nr,Jr,tt){if(Qn.flags&1)return Qn;(Nr===35||Nr===37)&&(tt=!tt);var ut=kl(Jr);if(Qn.flags&2&&tt&&(Nr===36||Nr===37))return ut.flags&67239932?ut:ut.flags&524288?za:Qn;if(ut.flags&98304){if(!He)return Qn;var Ct=Nr===34||Nr===35,pa=Ct?tt?262144:2097152:ut.flags&65536?tt?131072:1048576:tt?65536:524288;return gl(Qn,pa)}if(tt){var Oa=Nr===34?function(Di){return bh(Di,ut)||AC(Di,ut)}:function(Di){return bh(Di,ut)};return QS(Nl(Qn,Oa),ut)}return Wu(ut)?Nl(Qn,function(Di){return!(vS(Di)&&bh(Di,ut))}):Qn}function Ga(Qn,Nr,Jr,tt,ut){(Jr===35||Jr===37)&&(ut=!ut);var Ct=nm(Nr.expression);if(!Tl(n,Ct))return He&&Um(Ct,n)&&ut===(tt.text!=="undefined")?gl(Qn,2097152):Qn;if(Qn.flags&1&&tt.text==="function")return Qn;if(ut&&Qn.flags&2&&tt.text==="object"){if(Nr.parent.parent.kind===219){var pa=Nr.parent.parent;if(pa.operatorToken.kind===55&&pa.right===Nr.parent&&_b(n,pa.left))return za}return Sa([za,zn])}var Oa=ut?de.get(tt.text)||128:_e.get(tt.text)||32768,Di=jt(Qn,tt.text);return gl(ut&&Di?Ps(Qn,Ji(Di)):Qn,Oa)}function na(Qn,Nr,Jr,tt,ut){var Ct=Jr!==tt&&e.every(Mh(Nr).slice(Jr,tt),ut);return Ct?gl(Qn,2097152):Qn}function si(Qn,Nr,Jr,tt){var ut=Mh(Nr);if(!ut.length)return Qn;var Ct=ut.slice(Jr,tt),pa=Jr===tt||e.contains(Ct,Jt);if(Qn.flags&2&&!pa){for(var Oa=void 0,Di=0;Di<Ct.length;Di+=1){var xa=Ct[Di];if(xa.flags&67239932)Oa!==void 0&&Oa.push(xa);else if(xa.flags&524288)Oa===void 0&&(Oa=Ct.slice(0,Di)),Oa.push(za);else return Qn}return Sa(Oa===void 0?Ct:Oa)}var lo=Sa(Ct),Wo=lo.flags&131072?Jt:QS(Nl(Qn,function(Qo){return bh(lo,Qo)}),lo);if(!pa)return Wo;var Mo=Nl(Qn,function(Qo){return!(vS(Qo)&&e.contains(ut,cc(yC(Qo))))});return Wo.flags&131072?Mo:Sa([Wo,Mo])}function jt(Qn,Nr){switch(Nr){case"function":return Qn.flags&1?Qn:Jo;case"object":return Qn.flags&2?Sa([za,zn]):Qn;default:return ba.get(Nr)}}function Ji(Qn){return function(Nr){if(ed(Nr,Qn))return Nr;if(ed(Qn,Nr))return Qn;if(Nr.flags&465829888){var Jr=Xl(Nr)||cr;if(ed(Qn,Jr))return Ro([Nr,Qn])}return Nr}}function Wi(Qn,Nr,Jr,tt){var ut=qS(Nr,!0);if(!ut.length)return Qn;var Ct=e.findIndex(ut,function(Qo){return Qo===void 0}),pa=Jr===tt||Ct>=Jr&&Ct<tt,Oa,Di;if(Ct>-1){var xa=ut.filter(function(Qo){return Qo!==void 0}),lo=Ct<Jr?Jr-1:Jr,Wo=Ct<tt?tt-1:tt;Oa=xa.slice(lo,Wo),Di=a1(lo,Wo,xa,pa)}else Oa=ut.slice(Jr,tt),Di=a1(Jr,tt,ut,pa);if(pa)return Nl(Qn,function(Qo){return(cp(Qo)&Di)===Di});var Mo=gl(Sa(Oa.map(function(Qo){return jt(Qn,Qo)||Qn})),Di);return gl(Ps(Qn,Ji(Mo)),Di)}function rr(Qn){return(e.isPropertyAccessExpression(Qn)&&e.idText(Qn.name)==="constructor"||e.isElementAccessExpression(Qn)&&e.isStringLiteralLike(Qn.argumentExpression)&&Qn.argumentExpression.text==="constructor")&&Tl(n,Qn.expression)}function yn(Qn,Nr,Jr,tt){if(tt?Nr!==34&&Nr!==36:Nr!==35&&Nr!==37)return Qn;var ut=kl(Jr);if(!M1(ut)&&!nl(ut))return Qn;var Ct=wn(ut,"prototype");if(!Ct)return Qn;var pa=kt(Ct),Oa=no(pa)?void 0:pa;if(!Oa||Oa===us||Oa===Jo)return Qn;if(no(Qn))return Oa;return Nl(Qn,function(xa){return Di(xa,Oa)});function Di(xa,lo){return xa.flags&524288&&e.getObjectFlags(xa)&1||lo.flags&524288&&e.getObjectFlags(lo)&1?xa.symbol===lo.symbol:ed(xa,lo)}}function pt(Qn,Nr,Jr){var tt=nm(Nr.left);if(!Tl(n,tt))return Jr&&He&&Um(tt,n)?gl(Qn,2097152):Qn;var ut=kl(Nr.right);if(!v_(ut,Jo))return Qn;var Ct,pa=wn(ut,"prototype");if(pa){var Oa=kt(pa);no(Oa)||(Ct=Oa)}if(no(Qn)&&(Ct===us||Ct===Jo))return Qn;if(!Ct){var Di=zr(ut,1);Ct=Di.length?Sa(e.map(Di,function(lo){return _o(tg(lo))})):Lr}if(!Jr&&ut.flags&1048576){var xa=e.find(ut.types,function(lo){return!nl(lo)});if(!xa)return Qn}return mt(Qn,Ct,Jr,v_)}function mt(Qn,Nr,Jr,tt){if(!Jr)return Nl(Qn,function(Ct){if(!tt(Ct,Nr))return!0;var pa=Xl(Ct);return pa&&pa!==Ct?!tt(pa,Nr):!1});if(Qn.flags&1048576){var ut=Nl(Qn,function(Ct){return tt(Ct,Nr)});if(!(ut.flags&131072))return ut}return ed(Nr,Qn)?Nr:mo(Qn,Nr)?Qn:mo(Nr,Qn)?Nr:Ro([Qn,Nr])}function Ft(Qn,Nr,Jr){if(US(Nr,n)){var tt=Jr||!e.isCallChain(Nr)?Bh(Nr):void 0,ut=tt&&Cc(tt);if(ut&&(ut.kind===0||ut.kind===1))return Bt(Qn,ut,Nr,Jr)}if(SS(Qn)&&e.isAccessExpression(n)&&e.isPropertyAccessExpression(Nr.expression)){var Ct=Nr.expression;if(Tl(n.expression,nm(Ct.expression))&&e.isIdentifier(Ct.name)&&Ct.name.escapedText==="hasOwnProperty"&&Nr.arguments.length===1){var pa=Nr.arguments[0];if(e.isStringLiteralLike(pa)&&em(n)===e.escapeLeadingUnderscores(pa.text))return gl(Qn,Jr?524288:65536)}}return Qn}function Bt(Qn,Nr,Jr,tt){if(Nr.type&&!(no(Qn)&&(Nr.type===us||Nr.type===Jo))){var ut=hx(Nr,Jr);if(ut){if(Tl(n,ut))return mt(Qn,Nr.type,tt,ed);He&&tt&&Um(ut,n)&&!(cp(Nr.type)&65536)&&(Qn=gl(Qn,2097152));var Ct=sa(ut,Qn);if(Ct)return mi(Qn,Ct,function(pa){return mt(pa,Nr.type,tt,ed)})}}return Qn}function Ht(Qn,Nr,Jr){if(e.isExpressionOfOptionalChainRoot(Nr)||e.isBinaryExpression(Nr.parent)&&Nr.parent.operatorToken.kind===60&&Nr.parent.left===Nr)return fa(Qn,Nr,Jr);switch(Nr.kind){case 79:if(!Tl(n,Nr)&&F<5){var tt=xu(Nr);if(Sv(tt)){var ut=tt.valueDeclaration;if(ut&&e.isVariableDeclaration(ut)&&!ut.type&&ut.initializer&&n0(n)){F++;var Ct=Ht(Qn,ut.initializer,Jr);return F--,Ct}}}case 108:case 106:case 204:case 205:return ii(Qn,Nr,Jr);case 206:return Ft(Qn,Nr,Jr);case 210:case 228:return Ht(Qn,Nr.expression,Jr);case 219:return Yr(Qn,Nr,Jr);case 217:if(Nr.operator===53)return Ht(Qn,Nr.operand,!Jr);break}return Qn}function fa(Qn,Nr,Jr){if(Tl(n,Nr))return gl(Qn,Jr?2097152:262144);var tt=sa(Nr,Qn);return tt?mi(Qn,tt,function(ut){return gl(ut,Jr?2097152:262144)}):Qn}}function Ex(n,r){if(n=n.exportSymbol||n,(r.kind===79||r.kind===80)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&(!e.isAssignmentTarget(r)||e.isWriteAccess(r)))){var t=kl(r);if($c(da(r).resolvedSymbol)===n)return t}return e.isDeclarationName(r)&&e.isSetAccessor(r.parent)&&Gt(r.parent)?ms(r.parent.symbol,!0):El(n)}function hg(n){return e.findAncestor(n.parent,function(r){return e.isFunctionLike(r)&&!e.getImmediatelyInvokedFunctionExpression(r)||r.kind===260||r.kind===300||r.kind===165})}function r0(n){if(!n.valueDeclaration)return!1;var r=e.getRootDeclaration(n.valueDeclaration).parent,t=da(r);return t.flags&8388608||(t.flags|=8388608,bx(r)||t0(r)),n.isAssigned||!1}function bx(n){return!!e.findAncestor(n.parent,function(r){return e.isFunctionLike(r)&&!!(da(r).flags&8388608)})}function t0(n){if(n.kind===79){if(e.isAssignmentTarget(n)){var r=xu(n);r.valueDeclaration&&e.getRootDeclaration(r.valueDeclaration).kind===162&&(r.isAssigned=!0)}}else e.forEachChild(n,t0)}function Sv(n){return n.flags&3&&(Eg(n)&2)!==0}function Tx(n,r){if(Vc(r.symbol,2)){var t=He&&r.kind===162&&r.initializer&&wc(n)&32768&&!(wc(vi(r.initializer))&32768);return Oc(),t?gl(n,524288):n}else return Ml(r.symbol),n}function Sx(n,r){var t=r.parent;return t.kind===204||t.kind===206&&t.expression===r||t.kind===205&&t.expression===r&&!(Lx(n)&&Pm(kl(t.argumentExpression)))}function Dx(n){return!!(n.flags&465829888&&s_(n).flags&1146880)}function Lx(n){return!!(n.flags&465829888&&!bs(s_(n),98304))}function Ax(n){var r=(e.isIdentifier(n)||e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n))&&!((e.isJsxOpeningElement(n.parent)||e.isJsxSelfClosingElement(n.parent))&&n.parent.tagName===n)&&uu(n,8);return r&&!mh(r)}function bb(n,r,t){var a=!(t&&t&2)&&D_(n,Dx)&&(Sx(n,r)||Ax(r));return a?Ps(n,function(s){return s.flags&465829888?s_(s):s}):n}function a0(n){return!!e.findAncestor(n,function(r){return r.parent&&e.isExportAssignment(r.parent)&&r.parent.expression===r&&e.isEntityNameExpression(r)})}function Wh(n,r){if(Ai(n,111551)&&!S_(r)&&!Qt(n)){var t=_i(n);t.flags&111551&&(pe.isolatedModules||e.shouldPreserveConstEnums(pe)&&a0(r)||!Pg(t)?Wa(n):qa(n))}}function Cx(n,r){var t=xu(n);if(t===Xn)return J;if(t===Le){if(G0(n))return Jn(n,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),J;var a=e.getContainingFunction(n);return we<2&&(a.kind===212?Jn(n,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(a,256)&&Jn(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)),da(a).flags|=8192,kt(t)}n.parent&&e.isPropertyAccessExpression(n.parent)&&n.parent.expression===n||Wh(t,n);var s=$c(t),u=s.flags&2097152?_i(s):s;u.declarations&&Eg(u)&134217728&&hE(n,u)&&ol(n,u.declarations,n.escapedText);var S=s.valueDeclaration;if(S&&s.flags&32){if(S.kind===255&&e.nodeIsDecorated(S))for(var a=e.getContainingClass(n);a!==void 0;){if(a===S&&a.name!==n){da(S).flags|=16777216,da(n).flags|=33554432;break}a=e.getContainingClass(a)}else if(S.kind===224)for(var a=e.getThisContainer(n,!1);a.kind!==300;){if(a.parent===S){(e.isPropertyDeclaration(a)&&e.isStatic(a)||e.isClassStaticBlockDeclaration(a))&&(da(S).flags|=16777216,da(n).flags|=33554432);break}a=e.getThisContainer(a,!1)}}Nx(n,t);var F=kt(s),ve=e.getAssignmentTargetKind(n);if(ve){if(!(s.flags&3)&&!(e.isInJSFile(n)&&s.flags&512)){var Ge=s.flags&384?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:s.flags&32?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:s.flags&1536?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:s.flags&16?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:s.flags&2097152?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable;return Jn(n,Ge,Qa(t)),J}if(df(s))return s.flags&3?Jn(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Qa(t)):Jn(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Qa(t)),J}var Je=s.flags&2097152;if(s.flags&3){if(ve===1)return F}else if(Je)S=Jl(t);else return F;if(!S)return F;F=bb(F,n,r);for(var Xe=e.getRootDeclaration(S).kind===162,tn=hg(S),Dn=hg(n),nr=Dn!==tn,sr=n.parent&&n.parent.parent&&e.isSpreadAssignment(n.parent)&&yb(n.parent.parent),Ir=t.flags&134217728;Dn!==tn&&(Dn.kind===211||Dn.kind===212||e.isObjectLiteralOrClassExpressionMethod(Dn))&&(Sv(s)&&F!==j||Xe&&!r0(s));)Dn=hg(Dn);var xr=Xe||Je||nr||sr||Ir||e.isBindingElement(S)||F!==Fe&&F!==j&&(!He||(F.flags&16387)!==0||S_(n)||n.parent.kind===273)||n.parent.kind===228||S.kind===252&&S.exclamationToken||S.flags&8388608,Gr=xr?Xe?Tx(F,S):F:F===Fe||F===j?Rn:td(F),ct=tm(n,F,Gr,Dn);if(!$S(n)&&(F===Fe||F===j)){if(ct===Fe||ct===j)return En&&(Jn(e.getNameOfDeclaration(S),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Qa(t),Lt(ct)),Jn(n,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Qa(t),Lt(ct))),Rg(ct)}else if(!xr&&!(wc(F)&32768)&&wc(ct)&32768)return Jn(n,e.Diagnostics.Variable_0_is_used_before_being_assigned,Qa(t)),F;return ve?ju(ct):ct}function xx(n,r){return!!e.findAncestor(n,function(t){return t===r?"quit":e.isFunctionLike(t)||t.parent&&e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&t.parent.initializer===t})}function Ix(n,r){return e.findAncestor(n,function(t){return t===r?"quit":t===r.initializer||t===r.condition||t===r.incrementor||t===r.statement})}function Tb(n){return e.findAncestor(n,function(r){return!r||e.nodeStartsNewLexicalEnvironment(r)?"quit":e.isIterationStatement(r,!1)})}function Nx(n,r){if(!(we>=2||!(r.flags&34)||!r.valueDeclaration||e.isSourceFile(r.valueDeclaration)||r.valueDeclaration.parent.kind===290)){var t=e.getEnclosingBlockScopeContainer(r.valueDeclaration),a=xx(n,t),s=Tb(t);if(s){if(a){var u=!0;if(e.isForStatement(t)){var S=e.getAncestor(r.valueDeclaration,253);if(S&&S.parent===t){var F=Ix(n.parent,t);if(F){var ve=da(F);ve.flags|=131072;var Ge=ve.capturedBlockScopeBindings||(ve.capturedBlockScopeBindings=[]);e.pushIfUnique(Ge,r),F===t.initializer&&(u=!1)}}}u&&(da(s).flags|=65536)}if(e.isForStatement(t)){var S=e.getAncestor(r.valueDeclaration,253);S&&S.parent===t&&Rx(n,t)&&(da(r.valueDeclaration).flags|=4194304)}da(r.valueDeclaration).flags|=524288}a&&(da(r.valueDeclaration).flags|=262144)}}function kx(n,r){var t=da(n);return!!t&&e.contains(t.capturedBlockScopeBindings,wt(r))}function Rx(n,r){for(var t=n;t.parent.kind===210;)t=t.parent;var a=!1;if(e.isAssignmentTarget(t))a=!0;else if(t.parent.kind===217||t.parent.kind===218){var s=t.parent;a=s.operator===45||s.operator===46}return a?!!e.findAncestor(t,function(u){return u===r?"quit":u===r.statement}):!1}function Sb(n,r){if(da(n).flags|=2,r.kind===165||r.kind===169){var t=r.parent;da(t).flags|=4}else da(r).flags|=4}function i0(n){return e.isSuperCall(n)?n:e.isFunctionLike(n)?void 0:e.forEachChild(n,i0)}function o0(n){var r=wt(n),t=rs(r),a=cf(t);return a===ir}function s0(n,r,t){var a=r.parent,s=e.getClassExtendsHeritageElement(a);s&&!o0(a)&&n.flowNode&&!Vh(n.flowNode,!1)&&Jn(n,t)}function Ox(n,r){e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)&&r.initializer&&e.textRangeContainsPositionInclusive(r.initializer,n.pos)&&e.length(r.parent.decorators)&&Jn(n,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function jh(n){var r=S_(n),t=e.getThisContainer(n,!0),a=!1;switch(t.kind===169&&s0(n,t,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),t.kind===212&&(t=e.getThisContainer(t,!1),a=!0),Ox(n,t),t.kind){case 259:Jn(n,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 258:Jn(n,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 169:l0(n,t)&&Jn(n,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 160:Jn(n,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);break}!r&&a&&we<2&&Sb(n,t);var s=Db(n,!0,t);if(i){var u=kt(hn);if(s===u&&a)Jn(n,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!s){var S=Jn(n,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(t)){var F=Db(t);F&&F!==u&&e.addRelatedInfo(S,e.createDiagnosticForNode(t,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return s||cr}function Db(n,r,t){r===void 0&&(r=!0),t===void 0&&(t=e.getThisContainer(n,!1));var a=e.isInJSFile(n);if(e.isFunctionLike(t)&&(!Cb(n)||e.getThisParameter(t))){var s=ka(t)||a&&wx(t);if(!s){var u=Mx(t);if(a&&u){var S=vi(u).symbol;S&&S.members&&S.flags&16&&(s=rs(S).thisType)}else Nu(t)&&(s=rs(Eo(t.symbol)).thisType);s||(s=u0(t))}if(s)return tm(n,s)}if(e.isClassLike(t.parent)){var F=wt(t.parent),ve=e.isStatic(t)?kt(F):rs(F).thisType;return tm(n,ve)}if(e.isSourceFile(t))if(t.commonJsModuleIndicator){var Ge=wt(t);return Ge&&kt(Ge)}else{if(t.externalModuleIndicator)return Rn;if(r)return kt(hn)}}function Px(n){var r=e.getThisContainer(n,!1);if(e.isFunctionLike(r)){var t=su(r);if(t.thisParameter)return Gh(t.thisParameter)}if(e.isClassLike(r.parent)){var a=wt(r.parent);return e.isStatic(r)?kt(a):rs(a).thisType}}function Mx(n){if(n.kind===211&&e.isBinaryExpression(n.parent)&&e.getAssignmentDeclarationKind(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===167&&n.parent.kind===203&&e.isBinaryExpression(n.parent.parent)&&e.getAssignmentDeclarationKind(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===211&&n.parent.kind===291&&n.parent.parent.kind===203&&e.isBinaryExpression(n.parent.parent.parent)&&e.getAssignmentDeclarationKind(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===211&&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 wx(n){var r=e.getJSDocType(n);if(r&&r.kind===312){var t=r;if(t.parameters.length>0&&t.parameters[0].name&&t.parameters[0].name.escapedText==="this")return Ra(t.parameters[0].type)}var a=e.getJSDocThisTag(n);if(a&&a.typeExpression)return Ra(a.typeExpression)}function l0(n,r){return!!e.findAncestor(n,function(t){return e.isFunctionLikeDeclaration(t)?"quit":t.kind===162&&t.parent===r})}function Lb(n){var r=n.parent.kind===206&&n.parent.expression===n,t=e.getSuperContainer(n,!0),a=t,s=!1;if(!r)for(;a&&a.kind===212;)a=e.getSuperContainer(a,!0),s=we<2;var u=Xe(a),S=0;if(!u){var F=e.findAncestor(n,function(tn){return tn===a?"quit":tn.kind===160});return F&&F.kind===160?Jn(n,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?Jn(n,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!a||!a.parent||!(e.isClassLike(a.parent)||a.parent.kind===203)?Jn(n,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Jn(n,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),J}if(!r&&t.kind===169&&s0(n,a,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(a)||r?(S=512,!r&&we>=2&&we<=8&&(e.isPropertyDeclaration(a)||e.isClassStaticBlockDeclaration(a))&&e.forEachEnclosingBlockScopeContainer(n.parent,function(tn){(!e.isSourceFile(tn)||e.isExternalOrCommonJsModule(tn))&&(da(tn).flags|=134217728)})):S=256,da(n).flags|=S,a.kind===167&&e.hasSyntacticModifier(a,256)&&(e.isSuperProperty(n.parent)&&e.isAssignmentTarget(n.parent)?da(a).flags|=4096:da(a).flags|=2048),s&&Sb(n.parent,a),a.parent.kind===203)return we<2?(Jn(n,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),J):cr;var ve=a.parent;if(!e.getClassExtendsHeritageElement(ve))return Jn(n,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),J;var Ge=rs(wt(ve)),Je=Ge&&vc(Ge)[0];if(!Je)return J;if(a.kind===169&&l0(n,a))return Jn(n,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),J;return S===512?cf(Ge):Ac(Je,Ge.thisType);function Xe(tn){return tn?r?tn.kind===169:e.isClassLike(tn.parent)||tn.parent.kind===203?e.isStatic(tn)?tn.kind===167||tn.kind===166||tn.kind===170||tn.kind===171||tn.kind===165||tn.kind===168:tn.kind===167||tn.kind===166||tn.kind===170||tn.kind===171||tn.kind===165||tn.kind===164||tn.kind===169:!1:!1}}function Fx(n){return(n.kind===167||n.kind===170||n.kind===171)&&n.parent.kind===203?n.parent:n.kind===211&&n.parent.kind===291?n.parent.parent:void 0}function c0(n){return e.getObjectFlags(n)&4&&n.target===ce?Co(n)[0]:void 0}function Gx(n){return Ps(n,function(r){return r.flags&2097152?e.forEach(r.types,c0):c0(r)})}function u0(n){if(n.kind!==212){if($T(n)){var r=Lv(n);if(r){var t=r.thisParameter;if(t)return kt(t)}}var a=e.isInJSFile(n);if(i||a){var s=Fx(n);if(s){for(var u=Ip(s),S=s,F=u;F;){var ve=Gx(F);if(ve)return fi(ve,sb(yg(s)));if(S.parent.kind!==291)break;S=S.parent.parent,F=Ip(S)}return fc(u?Rd(u):ll(s))}var Ge=e.walkUpParenthesizedExpressions(n.parent);if(Ge.kind===219&&Ge.operatorToken.kind===63){var Je=Ge.left;if(e.isAccessExpression(Je)){var Xe=Je.expression;if(a&&e.isIdentifier(Xe)){var tn=e.getSourceFileOfNode(Ge);if(tn.commonJsModuleIndicator&&xu(Xe)===tn.symbol)return}return fc(ll(Xe))}}}}}function f0(n){var r=n.parent;if($T(r)){var t=e.getImmediatelyInvokedFunctionExpression(r);if(t&&t.arguments){var a=Qb(t),s=r.parameters.indexOf(n);if(n.dotDotDotToken)return Yb(a,s,a.length,cr,void 0,0);var u=da(t),S=u.resolvedSignature;u.resolvedSignature=bi;var F=s<a.length?Ap(vi(a[s])):n.initializer?void 0:Ye;return u.resolvedSignature=S,F}var ve=Lv(r);if(ve){var Ge=r.parameters.indexOf(n)-(e.getThisParameter(r)?1:0);return n.dotDotDotToken&&e.lastOrUndefined(r.parameters)===n?R_(ve,Ge):im(ve,Ge)}}}function Ab(n){var r=e.getEffectiveTypeAnnotationNode(n);if(r)return Ra(r);switch(n.kind){case 162:return f0(n);case 201:return Bx(n);case 165:if(e.isStatic(n))return Ux(n)}}function Bx(n){var r=n.parent.parent,t=n.propertyName||n.name,a=Ab(r)||r.kind!==201&&r.initializer&&wv(r);if(!(!a||e.isBindingPattern(t)||e.isComputedNonLiteralName(t))){if(r.name.kind===200){var s=e.indexOfNode(n.parent.elements,n);return s<0?void 0:kb(a,s)}var u=tp(t);if(Gi(u)){var S=ql(u);return Os(a,S)}}}function Ux(n){var r=e.isExpression(n.parent)&&uu(n.parent);if(r)return am(r,wt(n).escapedName)}function Vx(n,r){var t=n.parent;if(e.hasInitializer(t)&&n===t.initializer){var a=Ab(t);if(a)return a;if(!(r&8)&&e.isBindingPattern(t.name))return Ad(t.name,!0,!1)}}function Wx(n){var r=e.getContainingFunction(n);if(r){var t=xb(r);if(t){var a=e.getFunctionFlags(r);if(a&1){var s=a&2?2:1,u=jv(t,s,void 0);if(!u)return;t=u.returnType}if(a&2){var S=Ps(t,ku);return S&&Sa([S,y2(S)])}return t}}}function jx(n,r){var t=uu(n,r);if(t){var a=ku(t);return a&&Sa([a,y2(a)])}}function Hx(n){var r=e.getContainingFunction(n);if(r){var t=e.getFunctionFlags(r),a=xb(r);if(a)return n.asteriskToken?a:Xm(0,a,(t&2)!==0)}}function Cb(n){for(var r=!1;n.parent&&!e.isFunctionLike(n.parent);){if(e.isParameter(n.parent)&&(r||n.parent.initializer===n))return!0;e.isBindingElement(n.parent)&&n.parent.initializer===n&&(r=!0),n=n.parent}return!1}function d0(n,r){var t=!!(e.getFunctionFlags(r)&2),a=xb(r);if(a)return Xm(n,a,t)||void 0}function xb(n){var r=bp(n);if(r)return r;var t=Pb(n);if(t&&!rg(t))return _o(t)}function p0(n,r){var t=Qb(n),a=t.indexOf(r);return a===-1?void 0:Ib(n,a)}function Ib(n,r){var t=da(n).resolvedSignature===Go?Go:N_(n);if(e.isJsxOpeningLikeElement(n)&&r===0)return zh(t,n);var a=t.parameters.length-1;return N(t)&&r>=a?Ec(kt(t.parameters[a]),Zf(r-a),256):fu(t,r)}function Jx(n,r){if(n.parent.kind===208)return p0(n.parent,r)}function Kx(n,r){var t=n.parent,a=t.left,s=t.operatorToken,u=t.right;switch(s.kind){case 63:case 76:case 75:case 77:return n===u?qx(t):void 0;case 56:case 60:var S=uu(t,r);return n===u&&(S&&S.pattern||!S&&!e.isDefaultedExpandoInitializer(t))?kl(a):S;case 55:case 27:return n===u?uu(t,r):void 0;default:return}}function zx(n){if(n.symbol)return n.symbol;if(e.isIdentifier(n))return xu(n);if(e.isPropertyAccessExpression(n)){var r=kl(n.expression);return e.isPrivateIdentifier(n.name)?t(r,n.name):wn(r,n.name.escapedText)}return;function t(a,s){var u=jb(s.escapedText,s);return u&&Hb(a,u)}}function qx(n){var r,t,a=e.getAssignmentDeclarationKind(n);switch(a){case 0:case 4:var s=zx(n.left),u=s&&s.valueDeclaration;if(u&&(e.isPropertyDeclaration(u)||e.isPropertySignature(u))){var S=e.getEffectiveTypeAnnotationNode(u);return S&&fi(Ra(S),Za(s).mapper)||u.initializer&&kl(n.left)}return a===0?kl(n.left):m0(n);case 5:if(Hh(n,a))return m0(n);if(n.left.symbol){var F=n.left.symbol.valueDeclaration;if(!F)return;var ve=e.cast(n.left,e.isAccessExpression),S=e.getEffectiveTypeAnnotationNode(F);if(S)return Ra(S);if(e.isIdentifier(ve.expression)){var Ge=ve.expression,Je=es(Ge,Ge.escapedText,111551,void 0,Ge.escapedText,!0);if(Je){var Xe=Je.valueDeclaration&&e.getEffectiveTypeAnnotationNode(Je.valueDeclaration);if(Xe){var tn=e.getElementOrPropertyAccessName(ve);if(tn!==void 0)return am(Ra(Xe),tn)}return}}return e.isInJSFile(F)?void 0:kl(n.left)}else return kl(n.left);case 1:case 6:case 3:var Dn=(r=n.left.symbol)===null||r===void 0?void 0:r.valueDeclaration;case 2:Dn||(Dn=(t=n.symbol)===null||t===void 0?void 0:t.valueDeclaration);var nr=Dn&&e.getEffectiveTypeAnnotationNode(Dn);return nr?Ra(nr):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(a)}}function Hh(n,r){if(r===void 0&&(r=e.getAssignmentDeclarationKind(n)),r===4)return!0;if(!e.isInJSFile(n)||r!==5||!e.isIdentifier(n.left.expression))return!1;var t=n.left.expression.escapedText,a=es(n.left,t,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(a==null?void 0:a.valueDeclaration)}function m0(n){if(!n.symbol)return kl(n.left);if(n.symbol.valueDeclaration){var r=e.getEffectiveTypeAnnotationNode(n.symbol.valueDeclaration);if(r){var t=Ra(r);if(t)return t}}var a=e.cast(n.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(a.expression,!1))){var s=jh(a.expression),u=e.getElementOrPropertyAccessName(a);return u!==void 0&&am(s,u)||void 0}}function Xx(n){return!!(e.getCheckFlags(n)&262144&&!n.type&&Dd(n,0)>=0)}function am(n,r){return Ps(n,function(t){var a;if(hc(t)){var s=tu(t),u=Xl(s)||s,S=Jc(e.unescapeLeadingUnderscores(r));if(mo(S,u))return MT(t,S)}else if(t.flags&3670016){var F=wn(t,r);if(F)return Xx(F)?void 0:kt(F);if(ji(t)){var ve=dg(t);if(ve&&id(r)&&+r>=0)return ve}return(a=La(Ci(t),Jc(e.unescapeLeadingUnderscores(r))))===null||a===void 0?void 0:a.type}},!0)}function Yx(n,r){if(e.Debug.assert(e.isObjectLiteralMethod(n)),!(n.flags&16777216))return Nb(n,r)}function Nb(n,r){var t=n.parent,a=e.isPropertyAssignment(n)&&Ab(n);if(a)return a;var s=Ip(t,r);if(s){if(wl(n))return am(s,wt(n).escapedName);if(n.name){var u=tp(n.name);return Ps(s,function(S){var F;return(F=La(Ci(S),u))===null||F===void 0?void 0:F.type},!0)}}}function kb(n,r){return n&&(am(n,""+r)||Ps(n,function(t){return T1(1,t,Rn,void 0,!1)},!0))}function Qx(n,r){var t=n.parent;return n===t.whenTrue||n===t.whenFalse?uu(t,r):void 0}function Zx(n,r){var t=Ip(n.openingElement.tagName),a=Xh(Km(n));if(t&&!no(t)&&a&&a!==""){var s=e.getSemanticJsxChildren(n.children),u=s.indexOf(r),S=am(t,a);return S&&(s.length===1?S:Ps(S,function(F){return lp(F)?Ec(F,Zf(u)):F},!0))}}function $x(n){var r=n.parent;return e.isJsxAttributeLike(r)?uu(n):e.isJsxElement(r)?Zx(r,n):void 0}function _0(n){if(e.isJsxAttribute(n)){var r=Ip(n.parent);return!r||no(r)?void 0:am(r,n.name.escapedText)}else return uu(n.parent)}function Dv(n){switch(n.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 151:return!0;case 204:case 210:return Dv(n.expression);case 286:return!n.expression||Dv(n.expression)}return!1}function eI(n,r){return QC(r,n)||WE(r,e.concatenate(e.map(e.filter(n.properties,function(t){return!!t.symbol&&t.kind===291&&Dv(t.initializer)&&gg(r,t.symbol.escapedName)}),function(t){return[function(){return d1(t.initializer)},t.symbol.escapedName]}),e.map(e.filter(bo(r),function(t){var a;return!!(t.flags&16777216)&&!!(!((a=n==null?void 0:n.symbol)===null||a===void 0)&&a.members)&&!n.symbol.members.has(t.escapedName)&&gg(r,t.escapedName)}),function(t){return[function(){return Rn},t.escapedName]})),mo,r)}function nI(n,r){return WE(r,e.concatenate(e.map(e.filter(n.properties,function(t){return!!t.symbol&&t.kind===283&&gg(r,t.symbol.escapedName)&&(!t.initializer||Dv(t.initializer))}),function(t){return[t.initializer?function(){return vi(t.initializer)}:function(){return Kr},t.symbol.escapedName]}),e.map(e.filter(bo(r),function(t){var a;return!!(t.flags&16777216)&&!!(!((a=n==null?void 0:n.symbol)===null||a===void 0)&&a.members)&&!n.symbol.members.has(t.escapedName)&&gg(r,t.escapedName)}),function(t){return[function(){return Rn},t.escapedName]})),mo,r)}function Ip(n,r){var t=e.isObjectLiteralMethod(n)?Yx(n,r):uu(n,r),a=Jh(t,n,r);if(a&&!(r&&r&2&&a.flags&8650752)){var s=Ps(a,Il,!0);return s.flags&1048576&&e.isObjectLiteralExpression(n)?eI(n,s):s.flags&1048576&&e.isJsxAttributes(n)?nI(n,s):s}}function Jh(n,r,t){if(n&&bs(n,465829888)){var a=yg(r);if(a&&e.some(a.inferences,Lm)){if(t&&t&1)return Kh(n,a.nonFixingMapper);if(a.returnMapper)return Kh(n,a.returnMapper)}}return n}function Kh(n,r){return n.flags&465829888?fi(n,r):n.flags&1048576?Sa(e.map(n.types,function(t){return Kh(t,r)}),0):n.flags&2097152?Ro(e.map(n.types,function(t){return Kh(t,r)})):n}function uu(n,r){if(n.flags&16777216)return;if(n.contextualType)return n.contextualType;var t=n.parent;switch(t.kind){case 252:case 162:case 165:case 164:case 201:return Vx(n,r);case 212:case 245:return Wx(n);case 222:return Hx(t);case 216:return jx(t,r);case 206:if(t.expression.kind===100)return gr;case 207:return p0(t,n);case 209:case 227:return e.isConstTypeReference(t.type)?S(t):Ra(t.type);case 219:return Kx(n,r);case 291:case 292:return Nb(t,r);case 293:return uu(t.parent,r);case 202:{var a=t,s=Ip(a,r);return kb(s,e.indexOfNode(a.elements,n))}case 220:return Qx(n,r);case 231:return e.Debug.assert(t.parent.kind===221),Jx(t.parent,n);case 210:{var u=e.isInJSFile(t)?e.getJSDocTypeTag(t):void 0;return u?Ra(u.typeExpression.type):uu(t,r)}case 228:return uu(t,r);case 286:return $x(t);case 283:case 285:return _0(t);case 278:case 277:return rI(t,r)}return;function S(F){return uu(F)}}function yg(n){var r=e.findAncestor(n,function(t){return!!t.inferenceContext});return r&&r.inferenceContext}function rI(n,r){return e.isJsxOpeningElement(n)&&n.parent.contextualType&&r!==4?n.parent.contextualType:Ib(n,0)}function zh(n,r){return $0(r)!==0?tI(n,r):oI(n,r)}function tI(n,r){var t=t1(n,cn);t=g0(r,Km(r),t);var a=Np(T.IntrinsicAttributes,r);return a!==J&&(t=km(a,t)),t}function aI(n,r){if(n.compositeSignatures){for(var t=[],a=0,s=n.compositeSignatures;a<s.length;a++){var u=s[a],S=_o(u);if(no(S))return S;var F=Os(S,r);if(!F)return;t.push(F)}return Ro(t)}var ve=_o(n);return no(ve)?ve:Os(ve,r)}function iI(n){if(C_(n.tagName)){var r=A0(n),t=iy(n,r);return f_(t)}var a=ll(n.tagName);if(a.flags&128){var r=L0(a,n);if(!r)return J;var t=iy(n,r);return f_(t)}return a}function g0(n,r,t){var a=LI(r);if(a){var s=rs(a),u=iI(n);if(a.flags&524288){var S=Za(a).typeParameters;if(e.length(S)>=2){var F=np([u,t],S,2,e.isInJSFile(n));return ag(a,F)}}if(e.length(s.typeParameters)>=2){var F=np([u,t],s.typeParameters,2,e.isInJSFile(n));return Yf(s,F)}}return t}function oI(n,r){var t=Km(r),a=AI(t),s=a===void 0?t1(n,cn):a===""?_o(n):aI(n,a);if(!s)return a&&e.length(r.attributes.properties)&&Jn(r,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(a)),cn;if(s=g0(r,t,s),no(s))return s;var u=s,S=Np(T.IntrinsicClassAttributes,r);if(S!==J){var F=Nt(S.symbol),ve=_o(n);u=km(F?Yf(S,np([ve],F,Lu(F),e.isInJSFile(r))):S,u)}var Ge=Np(T.IntrinsicAttributes,r);return Ge!==J&&(u=km(Ge,u)),u}function sI(n){return e.getStrictOptionValue(pe,"noImplicitAny")?e.reduceLeft(n,function(r,t){return r===t||!r?r:Jg(r.typeParameters,t.typeParameters)?uI(r,t):void 0}):void 0}function lI(n,r,t){if(!n||!r)return n||r;var a=Sa([kt(n),fi(kt(r),t)]);return Sm(n,a)}function cI(n,r,t){for(var a=ac(n),s=ac(r),u=a>=s?n:r,S=u===n?r:n,F=u===n?a:s,ve=Ku(n)||Ku(r),Ge=ve&&!Ku(u),Je=new Array(F+(Ge?1:0)),Xe=0;Xe<F;Xe++){var tn=im(u,Xe);u===r&&(tn=fi(tn,t));var Dn=im(S,Xe)||cn;S===r&&(Dn=fi(Dn,t));var nr=Sa([tn,Dn]),sr=ve&&!Ge&&Xe===F-1,Ir=Xe>=Ju(u)&&Xe>=Ju(S),xr=Xe>=a?void 0:k_(n,Xe),Gr=Xe>=s?void 0:k_(r,Xe),ct=xr===Gr?xr:xr?Gr?void 0:xr:Gr,Vt=fo(1|(Ir&&!sr?16777216:0),ct||"arg"+Xe);Vt.type=sr?bl(nr):nr,Je[Xe]=Vt}if(Ge){var _t=fo(1,"args");_t.type=bl(fu(S,F)),S===r&&(_t.type=fi(_t.type,t)),Je[F]=_t}return Je}function uI(n,r){var t=n.typeParameters||r.typeParameters,a;n.typeParameters&&r.typeParameters&&(a=uc(r.typeParameters,n.typeParameters));var s=n.declaration,u=cI(n,r,a),S=lI(n.thisParameter,r.thisParameter,a),F=Math.max(n.minArgumentCount,r.minArgumentCount),ve=Tu(s,t,S,u,void 0,void 0,F,(n.flags|r.flags)&39);return ve.compositeKind=2097152,ve.compositeSignatures=e.concatenate(n.compositeKind===2097152&&n.compositeSignatures||[n],[r]),a&&(ve.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?Em(n.mapper,a):a),ve}function Rb(n,r){var t=zr(n,0),a=e.filter(t,function(s){return!fI(s,r)});return a.length===1?a[0]:sI(a)}function fI(n,r){for(var t=0;t<r.parameters.length;t++){var a=r.parameters[t];if(a.initializer||a.questionToken||a.dotDotDotToken||xd(a))break}return r.parameters.length&&e.parameterIsThisKeyword(r.parameters[0])&&t--,!Ku(n)&&ac(n)<t}function Ob(n){return n.kind===211||n.kind===212}function Pb(n){return Ob(n)||e.isObjectLiteralMethod(n)?Lv(n):void 0}function Lv(n){e.Debug.assert(n.kind!==167||e.isObjectLiteralMethod(n));var r=rv(n);if(r)return r;var t=Ip(n,1);if(t){if(!(t.flags&1048576))return Rb(t,n);for(var a,s=t.types,u=0,S=s;u<S.length;u++){var F=S[u],ve=Rb(F,n);if(ve)if(!a)a=[ve];else if(hv(a[0],ve,!1,!0,!0,ug))a.push(ve);else return}if(a)return a.length===1?a[0]:jg(a[0],a)}}function dI(n,r){we<2&&Bl(n,pe.downlevelIteration?1536:1024);var t=vi(n.expression,r);return Pd(33,t,Rn,n.expression)}function pI(n){return n.isSpread?Ec(n.type,Dr):n.type}function L_(n){return n.kind===201&&!!n.initializer||n.kind===219&&n.operatorToken.kind===63}function v0(n,r,t){for(var a=n.elements,s=a.length,u=[],S=[],F=Ip(n),ve=e.isAssignmentTarget(n),Ge=O_(n),Je=!1,Xe=0;Xe<s;Xe++){var tn=a[Xe];if(tn.kind===223){we<2&&Bl(tn,pe.downlevelIteration?1536:1024);var Dn=vi(tn.expression,r,t);if(lp(Dn))u.push(Dn),S.push(8);else if(ve){var nr=Ns(Dn,Dr)||T1(65,Dn,Rn,void 0,!1)||cn;u.push(nr),S.push(4)}else u.push(Pd(33,Dn,Rn,tn.expression)),S.push(4)}else if($n&&tn.kind===225)Je=!0,u.push(an),S.push(2);else{var sr=kb(F,u.length),Ir=P_(tn,r,sr,t);u.push(Xi(Ir,!0,Je)),S.push(Je?2:1)}}return ve?Vu(u,S):t||Ge||F&&D_(F,E_)?h0(Vu(u,S,Ge)):h0(bl(u.length?Sa(e.sameMap(u,function(xr,Gr){return S[Gr]&8?ap(xr,Dr)||cr:xr}),2):He?Ya:Ye,Ge))}function h0(n){if(!(e.getObjectFlags(n)&4))return n;var r=n.literalType;return r||(r=n.literalType=$1(n),r.objectFlags|=294912),r}function mI(n){switch(n.kind){case 160:return _I(n);case 79:return id(n.escapedText);case 8:case 10:return id(n.text);default:return!1}}function _I(n){return qs(od(n),296)}function id(n){return(+n).toString()===n}function od(n){var r=da(n.expression);if(!r.resolvedType){if(r.resolvedType=vi(n.expression),e.isPropertyDeclaration(n.parent)&&!e.hasStaticModifier(n.parent)&&e.isClassExpression(n.parent.parent)){var t=e.getEnclosingBlockScopeContainer(n.parent.parent),a=Tb(t);a&&(da(a).flags|=65536,da(n).flags|=524288,da(n.parent.parent).flags|=524288)}(r.resolvedType.flags&98304||!qs(r.resolvedType,402665900)&&!mo(r.resolvedType,Ar))&&Jn(n,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return r.resolvedType}function gI(n){var r,t=(r=n.declarations)===null||r===void 0?void 0:r[0];return id(n.escapedName)||t&&e.isNamedDeclaration(t)&&mI(t.name)}function y0(n){var r,t=(r=n.declarations)===null||r===void 0?void 0:r[0];return e.isKnownSymbol(n)||t&&e.isNamedDeclaration(t)&&e.isComputedPropertyName(t.name)&&qs(od(t.name),4096)}function Mb(n,r,t,a){for(var s=[],u=r;u<t.length;u++){var S=t[u];(a===gr&&!y0(S)||a===Dr&&gI(S)||a===qt&&y0(S))&&s.push(kt(t[u]))}var F=s.length?Sa(s,2):Rn;return Uu(a,F,O_(n))}function E0(n){e.Debug.assert((n.flags&2097152)!==0,"Should only get Alias here.");var r=Za(n);if(!r.immediateTarget){var t=Jl(n);if(!t)return e.Debug.fail();r.immediateTarget=ma(t,!0)}return r.immediateTarget}function vI(n,r){var t=e.isAssignmentTarget(n);wP(n,t);for(var a=He?e.createSymbolTable():void 0,s=e.createSymbolTable(),u=[],S=Lr,F=Ip(n),ve=F&&F.pattern&&(F.pattern.kind===199||F.pattern.kind===203),Ge=O_(n),Je=Ge?8:0,Xe=e.isInJSFile(n)&&!e.isInJsonFile(n),tn=e.getJSDocEnumTag(n),Dn=!F&&Xe&&!tn,nr=rn,sr=!1,Ir=!1,xr=!1,Gr=!1,ct=0,Vt=n.properties;ct<Vt.length;ct++){var _t=Vt[ct];_t.name&&e.isComputedPropertyName(_t.name)&&od(_t.name)}for(var Ta=0,sa=0,mi=n.properties;sa<mi.length;sa++){var ai=mi[sa],Hi=wt(ai),ii=ai.name&&ai.name.kind===160?od(ai.name):void 0;if(ai.kind===291||ai.kind===292||e.isObjectLiteralMethod(ai)){var go=ai.kind===291?k2(ai,r):ai.kind===292?P_(!t&&ai.objectAssignmentInitializer?ai.objectAssignmentInitializer:ai.name,r):R2(ai,r);if(Xe){var xo=Pa(ai);xo?(xc(go,xo,ai),go=xo):tn&&tn.typeExpression&&xc(go,Ra(tn.typeExpression),ai)}nr|=e.getObjectFlags(go)&917504;var Yr=ii&&Gi(ii)?ii:void 0,Pr=Yr?fo(4|Hi.flags,ql(Yr),Je|4096):fo(4|Hi.flags,Hi.escapedName,Je);if(Yr&&(Pr.nameType=Yr),t){var Aa=ai.kind===291&&L_(ai.initializer)||ai.kind===292&&ai.objectAssignmentInitializer;Aa&&(Pr.flags|=16777216)}else if(ve&&!(e.getObjectFlags(F)&512)){var Ga=wn(F,Hi.escapedName);Ga?Pr.flags|=Ga.flags&16777216:!pe.suppressExcessPropertyErrors&&!po(F,gr)&&Jn(ai.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Qa(Hi),Lt(F))}Pr.declarations=Hi.declarations,Pr.parent=Hi.parent,Hi.valueDeclaration&&(Pr.valueDeclaration=Hi.valueDeclaration),Pr.type=go,Pr.target=Hi,Hi=Pr,a==null||a.set(Pr.escapedName,Pr)}else if(ai.kind===293){we<2&&Bl(ai,2),u.length>0&&(S=Dp(S,Ji(),n.symbol,nr,Ge),u=[],s=e.createSymbolTable(),Ir=!1,xr=!1,Gr=!1);var go=iu(vi(ai.expression));if(A_(go)){var na=LE(go,Ge);if(a&&T0(na,a,ai),Ta=u.length,S===J)continue;S=Dp(S,na,n.symbol,nr,Ge)}else Jn(ai,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),S=J;continue}else e.Debug.assert(ai.kind===170||ai.kind===171),Og(ai);ii&&!(ii.flags&8576)?mo(ii,Ar)&&(mo(ii,Dr)?xr=!0:mo(ii,qt)?Gr=!0:Ir=!0,t&&(sr=!0)):s.set(Hi.escapedName,Hi),u.push(Hi)}if(ve&&n.parent.kind!==293)for(var si=0,jt=bo(F);si<jt.length;si++){var Pr=jt[si];!s.get(Pr.escapedName)&&!wn(S,Pr.escapedName)&&(Pr.flags&16777216||Jn(Pr.valueDeclaration||Pr.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),s.set(Pr.escapedName,Pr),u.push(Pr))}if(S===J)return J;if(S!==Lr)return u.length>0&&(S=Dp(S,Ji(),n.symbol,nr,Ge),u=[],s=e.createSymbolTable(),Ir=!1,xr=!1),Ps(S,function(Wi){return Wi===Lr?Ji():Wi});return Ji();function Ji(){var Wi=[];Ir&&Wi.push(Mb(n,Ta,u,gr)),xr&&Wi.push(Mb(n,Ta,u,Dr)),Gr&&Wi.push(Mb(n,Ta,u,qt));var rr=qo(n.symbol,s,e.emptyArray,e.emptyArray,Wi);return rr.objectFlags|=nr|128|262144,Dn&&(rr.objectFlags|=8192),sr&&(rr.objectFlags|=512),t&&(rr.pattern=n),rr}}function A_(n){if(n.flags&465829888){var r=Xl(n);if(r!==void 0)return A_(r)}return!!(n.flags&126615553||wc(n)&117632&&A_(bS(n))||n.flags&3145728&&e.every(n.types,A_))}function hI(n){Bb(n)}function yI(n,r){return Og(n),Av(n)||cr}function EI(n){Bb(n.openingElement),C_(n.closingElement.tagName)?Fb(n.closingElement):vi(n.closingElement.tagName),qh(n)}function bI(n,r){return Og(n),Av(n)||cr}function TI(n){Bb(n.openingFragment);var r=e.getSourceFileOfNode(n);return e.getJSXTransformEnabled(pe)&&(pe.jsxFactory||r.pragmas.has("jsx"))&&!pe.jsxFragmentFactory&&!r.pragmas.has("jsxfrag")&&Jn(n,pe.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),qh(n),Av(n)||cr}function wb(n){return e.stringContains(n,"-")}function C_(n){return n.kind===79&&e.isIntrinsicJsxName(n.escapedText)}function b0(n,r){return n.initializer?P_(n.initializer,r):Kr}function SI(n,r){for(var t=n.attributes,a=He?e.createSymbolTable():void 0,s=e.createSymbolTable(),u=Xr,S=!1,F,ve=!1,Ge=2048,Je=Xh(Km(n)),Xe=0,tn=t.properties;Xe<tn.length;Xe++){var Dn=tn[Xe],nr=Dn.symbol;if(e.isJsxAttribute(Dn)){var sr=b0(Dn,r);Ge|=e.getObjectFlags(sr)&917504;var Ir=fo(4|nr.flags,nr.escapedName);Ir.declarations=nr.declarations,Ir.parent=nr.parent,nr.valueDeclaration&&(Ir.valueDeclaration=nr.valueDeclaration),Ir.type=sr,Ir.target=nr,s.set(Ir.escapedName,Ir),a==null||a.set(Ir.escapedName,Ir),Dn.name.escapedText===Je&&(ve=!0)}else{e.Debug.assert(Dn.kind===285),s.size>0&&(u=Dp(u,sa(),t.symbol,Ge,!1),s=e.createSymbolTable());var sr=iu(ll(Dn.expression,r));no(sr)&&(S=!0),A_(sr)?(u=Dp(u,sr,t.symbol,Ge,!1),a&&T0(sr,a,Dn)):F=F?Ro([F,sr]):sr}}S||s.size>0&&(u=Dp(u,sa(),t.symbol,Ge,!1));var xr=n.parent.kind===276?n.parent:void 0;if(xr&&xr.openingElement===n&&xr.children.length>0){var Gr=qh(xr,r);if(!S&&Je&&Je!==""){ve&&Jn(t,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(Je));var ct=Ip(n.attributes),Vt=ct&&am(ct,Je),_t=fo(4,Je);_t.type=Gr.length===1?Gr[0]:Vt&&D_(Vt,E_)?Vu(Gr):bl(Sa(Gr)),_t.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(Je),void 0,void 0),e.setParent(_t.valueDeclaration,t),_t.valueDeclaration.symbol=_t;var Ta=e.createSymbolTable();Ta.set(Je,_t),u=Dp(u,qo(t.symbol,Ta,e.emptyArray,e.emptyArray,e.emptyArray),t.symbol,Ge,!1)}}if(S)return cr;if(F&&u!==Xr)return Ro([F,u]);return F||(u===Xr?sa():u);function sa(){Ge|=rn;var mi=qo(t.symbol,s,e.emptyArray,e.emptyArray,e.emptyArray);return mi.objectFlags|=Ge|128|262144,mi}}function qh(n,r){for(var t=[],a=0,s=n.children;a<s.length;a++){var u=s[a];if(u.kind===11)u.containsOnlyTriviaWhiteSpaces||t.push(gr);else{if(u.kind===286&&!u.expression)continue;t.push(P_(u,r))}}return t}function T0(n,r,t){for(var a=0,s=bo(n);a<s.length;a++){var u=s[a];if(!(u.flags&16777216)){var S=r.get(u.escapedName);if(S){var F=Jn(S.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(S.escapedName));e.addRelatedInfo(F,e.createDiagnosticForNode(t,e.Diagnostics.This_spread_always_overwrites_this_property))}}}}function DI(n,r){return SI(n.parent,r)}function Np(n,r){var t=Km(r),a=t&&al(t),s=a&&$o(a,n,788968);return s?rs(s):J}function Fb(n){var r=da(n);if(!r.resolvedSymbol){var t=Np(T.IntrinsicElements,n);if(t!==J){if(!e.isIdentifier(n.tagName))return e.Debug.fail();var a=wn(t,n.tagName.escapedText);if(a)return r.jsxFlags|=1,r.resolvedSymbol=a;var s=Ns(t,gr);return s?(r.jsxFlags|=2,r.resolvedSymbol=t.symbol):(Jn(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(n.tagName),"JSX."+T.IntrinsicElements),r.resolvedSymbol=Xn)}else return En&&Jn(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(T.IntrinsicElements)),r.resolvedSymbol=Xn}return r.resolvedSymbol}function Gb(n){var r=n&&e.getSourceFileOfNode(n),t=r&&da(r);if(!(t&&t.jsxImplicitImportContainer===!1)){if(t&&t.jsxImplicitImportContainer)return t.jsxImplicitImportContainer;var a=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(pe,r),pe);if(a){var s=e.getEmitModuleResolutionKind(pe)===e.ModuleResolutionKind.Classic,u=s?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,S=Qc(n,a,u,n),F=S&&S!==Xn?Eo(Ba(S)):void 0;return t&&(t.jsxImplicitImportContainer=F||!1),F}}}function Km(n){var r=n&&da(n);if(r&&r.jsxNamespace)return r.jsxNamespace;if(!r||r.jsxNamespace!==!1){var t=Gb(n);if(!t||t===Xn){var a=yo(n);t=es(n,a,1920,void 0,a,!1)}if(t){var s=Ba($o(al(Ba(t)),T.JSX,1920));if(s&&s!==Xn)return r&&(r.jsxNamespace=s),s}r&&(r.jsxNamespace=!1)}var u=Ba(__(T.JSX,1920,void 0));if(u!==Xn)return u}function S0(n,r){var t=r&&$o(r.exports,n,788968),a=t&&rs(t),s=a&&bo(a);if(s){if(s.length===0)return"";if(s.length===1)return s[0].escapedName;s.length>1&&t.declarations&&Jn(t.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(n))}}function LI(n){return n&&$o(n.exports,T.LibraryManagedAttributes,788968)}function AI(n){return S0(T.ElementAttributesPropertyNameContainer,n)}function Xh(n){return S0(T.ElementChildrenAttributeNameContainer,n)}function D0(n,r){if(n.flags&4)return[bi];if(n.flags&128){var t=L0(n,r);if(t){var a=iy(r,t);return[a]}else return Jn(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,"JSX."+T.IntrinsicElements),e.emptyArray}var s=Il(n),u=zr(s,1);return u.length===0&&(u=zr(s,0)),u.length===0&&s.flags&1048576&&(u=a_(e.map(s.types,function(S){return D0(S,r)}))),u}function L0(n,r){var t=Np(T.IntrinsicElements,r);if(t!==J){var a=n.value,s=wn(t,e.escapeLeadingUnderscores(a));if(s)return kt(s);var u=Ns(t,gr);return u||void 0}return cr}function CI(n,r,t){if(n===1){var a=x0(t);a&&Cu(r,a,Tr,t.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,S)}else if(n===0){var s=C0(t);s&&Cu(r,s,Tr,t.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,S)}else{var a=x0(t),s=C0(t);if(!a||!s)return;var u=Sa([a,s]);Cu(r,u,Tr,t.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,S)}function S(){var F=e.getTextOfNode(t.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,F)}}function A0(n){e.Debug.assert(C_(n.tagName));var r=da(n);if(!r.resolvedJsxElementAttributesType){var t=Fb(n);return r.jsxFlags&1?r.resolvedJsxElementAttributesType=kt(t)||J:r.jsxFlags&2?r.resolvedJsxElementAttributesType=Ns(Np(T.IntrinsicElements,n),gr)||J:r.resolvedJsxElementAttributesType=J}return r.resolvedJsxElementAttributesType}function C0(n){var r=Np(T.ElementClass,n);if(r!==J)return r}function Av(n){return Np(T.Element,n)}function x0(n){var r=Av(n);if(r)return Sa([r,zn])}function xI(n){var r=Np(T.IntrinsicElements,n);return r?bo(r):e.emptyArray}function II(n){(pe.jsx||0)===0&&Jn(n,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),Av(n)===void 0&&En&&Jn(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Bb(n){var r=e.isJsxOpeningLikeElement(n);if(r&&FP(n),II(n),!Gb(n)){var t=zt&&pe.jsx===2?e.Diagnostics.Cannot_find_name_0:void 0,a=yo(n),s=r?n.tagName:n,u=void 0;e.isJsxOpeningFragment(n)&&a==="null"||(u=es(s,a,111551,t,a,!0)),u&&(u.isReferenced=67108863,u.flags&2097152&&!Qt(u)&&Wa(u))}if(r){var S=n,F=N_(S);sy(F,n),CI($0(S),_o(F),S)}}function Ub(n,r,t){if(n.flags&524288){if(Df(n,r)||Yl(n,r)||ml(r)&&po(n,gr)||t&&wb(r))return!0}else if(n.flags&3145728&&Cv(n))for(var a=0,s=n.types;a<s.length;a++){var u=s[a];if(Ub(u,r,t))return!0}return!1}function Cv(n){return!!(n.flags&524288&&!(e.getObjectFlags(n)&512)||n.flags&67108864||n.flags&1048576&&e.some(n.types,Cv)||n.flags&2097152&&e.every(n.types,Cv))}function NI(n,r){if(BP(n),n.expression){var t=vi(n.expression,r);return n.dotDotDotToken&&t!==cr&&!Gl(t)&&Jn(n,e.Diagnostics.JSX_spread_child_must_be_an_array_type),t}else return J}function Eg(n){return n.valueDeclaration?e.getCombinedNodeFlags(n.valueDeclaration):0}function Vb(n){if(n.flags&8192||e.getCheckFlags(n)&4)return!0;if(e.isInJSFile(n.valueDeclaration)){var r=n.valueDeclaration.parent;return r&&e.isBinaryExpression(r)&&e.getAssignmentDeclarationKind(r)===3}}function Yh(n,r,t,a,s,u){u===void 0&&(u=!0);var S=e.getDeclarationModifierFlagsFromSymbol(s,t),F=n.kind===159?n.right:n.kind===198?n:n.kind===201&&n.propertyName?n.propertyName:n.name;if(r){if(we<2&&I0(s))return u&&Jn(F,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(S&128)return u&&Jn(F,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Qa(s),Lt(Tm(s))),!1}if(S&128&&I0(s)&&(e.isThisProperty(n)||e.isThisInitializedObjectBindingExpression(n)||e.isObjectBindingPattern(n.parent)&&e.isThisInitializedDeclaration(n.parent.parent))){var ve=e.getClassLikeDeclarationOfSymbol(Kl(s));if(ve&&PO(n))return u&&Jn(F,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Qa(s),e.getTextOfIdentifierOrLiteral(ve.name)),!1}if(!(S&24))return!0;if(S&8){var ve=e.getClassLikeDeclarationOfSymbol(Kl(s));return k1(n,ve)?!0:(u&&Jn(F,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Qa(s),Lt(Tm(s))),!1)}if(r)return!0;var Ge=kD(n,function(tn){var Dn=rs(wt(tn));return fC(Dn,s,t)?Dn:void 0});if(!Ge){var Je=void 0;if(S&32||!(Je=kI(n))||!Je.type)return u&&Jn(F,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Qa(s),Lt(Tm(s)||a)),!1;var Xe=Ra(Je.type);Ge=(Xe.flags&262144?yc(Xe):Xe).target}return S&32?!0:(a.flags&262144&&(a=a.isThisType?yc(a):Xl(a)),!a||!Ee(a,Ge)?(u&&Jn(F,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Qa(s),Lt(Ge),Lt(a)),!1):!0)}function kI(n){var r=e.getThisContainer(n,!1);return r&&e.isFunctionLike(r)?e.getThisParameter(r):void 0}function I0(n){return!!gv(n,function(r){return!(r.flags&8192)})}function x_(n){return Iu(vi(n),n)}function Qh(n){return!!((He?wc(n):n.flags)&98304)}function Wb(n){return Qh(n)?Rd(n):n}function RI(n,r){Jn(n,r&32768?r&65536?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function OI(n,r){Jn(n,r&32768?r&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 N0(n,r,t){if(He&&n.flags&2)return Jn(r,e.Diagnostics.Object_is_of_type_unknown),J;var a=(He?wc(n):n.flags)&98304;if(a){t(r,a);var s=Rd(n);return s.flags&229376?J:s}return n}function Iu(n,r){return N0(n,r,RI)}function k0(n,r){var t=Iu(n,r);return t!==J&&t.flags&16384&&Jn(r,e.Diagnostics.Object_is_possibly_undefined),t}function R0(n,r){return n.flags&32?PI(n,r):Jb(n,n.expression,x_(n.expression),n.name,r)}function PI(n,r){var t=vi(n.expression),a=pg(t,n.expression);return Ah(Jb(n,n.expression,Iu(a,n.expression),n.name,r),n,a!==t)}function O0(n,r){var t=e.isPartOfTypeQuery(n)&&e.isThisIdentifier(n.left)?Iu(jh(n.left),n.left):x_(n.left);return Jb(n,n.left,t,n.right,r)}function P0(n){for(;n.parent.kind===210;)n=n.parent;return e.isCallOrNewExpression(n.parent)&&n.parent.expression===n}function jb(n,r){for(var t=e.getContainingClass(r);t;t=e.getContainingClass(t)){var a=t.symbol,s=e.getSymbolNameForPrivateIdentifier(a,n),u=a.members&&a.members.get(s)||a.exports&&a.exports.get(s);if(u)return u}}function Hb(n,r){return wn(n,r.escapedName)}function MI(n,r,t){var a,s=bo(n);s&&e.forEach(s,function(Xe){var tn=Xe.valueDeclaration;if(tn&&e.isNamedDeclaration(tn)&&e.isPrivateIdentifier(tn.name)&&tn.name.escapedText===r.escapedText)return a=Xe,!0});var u=rc(r);if(a){var S=e.Debug.checkDefined(a.valueDeclaration),F=e.Debug.checkDefined(e.getContainingClass(S));if(t!=null&&t.valueDeclaration){var ve=t.valueDeclaration,Ge=e.getContainingClass(ve);if(e.Debug.assert(!!Ge),e.findAncestor(Ge,function(Xe){return F===Xe})){var Je=Jn(r,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,u,Lt(n));return e.addRelatedInfo(Je,e.createDiagnosticForNode(ve,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,u),e.createDiagnosticForNode(S,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,u)),!0}}return Jn(r,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,u,rc(F.name||ue)),!0}return!1}function M0(n,r){return(fs(r)||e.isThisProperty(n)&&pl(r))&&e.getThisContainer(n,!0)===Cs(r)}function Jb(n,r,t,a,s){var u=da(r).resolvedSymbol,S=e.getAssignmentTargetKind(n),F=Il(S!==0||P0(n)?fc(t):t),ve=no(F)||F===Ot,Ge;if(e.isPrivateIdentifier(a)){we<99&&(S!==0&&Bl(n,1048576),S!==1&&Bl(n,524288));var Je=jb(a.escapedText,a);if(S&&Je&&Je.valueDeclaration&&e.isMethodDeclaration(Je.valueDeclaration)&&At(a,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(a)),Je!=null&&Je.valueDeclaration&&pe.target===99&&!Qe){var Xe=e.getContainingClass(Je.valueDeclaration),tn=e.findAncestor(n,function(Vt){return Vt===Xe?"quit":!!(e.isPropertyDeclaration(Vt.parent)&&e.hasStaticModifier(Vt.parent)&&Vt.parent.initializer===Vt&&Vt.parent.parent===Xe)});if(tn){var Dn=wt(tn.parent);e.Debug.assert(Dn,"Initializer without declaration symbol");var nr=Jn(n,e.Diagnostics.Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false,e.symbolName(Je));e.addRelatedInfo(nr,e.createDiagnosticForNode(tn.parent,e.Diagnostics.Initializer_for_property_0,e.symbolName(Dn)))}}if(ve){if(Je)return F;if(!e.getContainingClass(a))return At(a,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),cr}if(Ge=Je?Hb(t,Je):void 0,!Ge&&MI(t,a,Je))return J;var sr=Ge&&Ge.flags&65536&&!(Ge.flags&32768);sr&&S!==1&&Jn(n,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(ve)return e.isIdentifier(r)&&u&&Wh(u,n),F;Ge=wn(F,a.escapedText)}e.isIdentifier(r)&&u&&(pe.isolatedModules||!(Ge&&Pg(Ge))||e.shouldPreserveConstEnums(pe)&&a0(n))&&Wh(u,n);var Ir;if(Ge){Ge.declarations&&Eg(Ge)&134217728&&hE(n,Ge)&&ol(a,Ge.declarations,a.escapedText),wI(Ge,n,a),$h(Ge,n,W0(r,u)),da(n).resolvedSymbol=Ge;var ct=e.isWriteAccess(n);if(Yh(n,r.kind===106,ct,F,Ge),A2(n,Ge,S))return Jn(a,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(a)),J;Ir=M0(n,Ge)?Fe:ct?Jf(Ge):kt(Ge)}else{var xr=!e.isPrivateIdentifier(a)&&(S===0||!vm(t)||uv(t))?Yl(F,a.escapedText):void 0;if(!(xr&&xr.type)){var Gr=w0(n,t.symbol,!0);return!Gr&&lg(t)?cr:t.symbol===hn?(hn.exports.has(a.escapedText)&&hn.exports.get(a.escapedText).flags&418?Jn(a,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(a.escapedText),Lt(t)):En&&Jn(a,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Lt(t)),cr):(a.escapedText&&!vu(n)&&BI(a,uv(t)?F:t,Gr),J)}xr.isReadonly&&(e.isAssignmentTarget(n)||e.isDeleteTarget(n))&&Jn(n,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Lt(F)),Ir=pe.noUncheckedIndexedAccess&&!e.isAssignmentTarget(n)?Sa([xr.type,Rn]):xr.type,pe.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(n)&&Jn(a,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(a.escapedText))}return F0(n,Ge,Ir,a,s)}function w0(n,r,t){var a=e.getSourceFileOfNode(n);if(a&&pe.checkJs===void 0&&a.checkJsDirective===void 0&&(a.scriptKind===1||a.scriptKind===2)){var s=e.forEach(r==null?void 0:r.declarations,e.getSourceFileOfNode);return!(a!==s&&s&&pc(s))&&!(t&&r&&r.flags&32)&&!(n&&t&&e.isPropertyAccessExpression(n)&&n.expression.kind===108)}return!1}function F0(n,r,t,a,s){var u=e.getAssignmentTargetKind(n);if(u===1)return Bm(t,!!(r&&r.flags&16777216));if(r&&!(r.flags&98311)&&!(r.flags&8192&&t.flags&1048576)&&!Ly(r.declarations))return t;if(t===Fe)return Al(n,r);t=bb(t,n,s);var S=!1;if(He&&fn&&e.isAccessExpression(n)&&n.expression.kind===108){var F=r&&r.valueDeclaration;if(F&&bD(F)&&!e.isStatic(F)){var ve=hg(n);ve.kind===169&&ve.parent===F.parent&&!(F.flags&8388608)&&(S=!0)}}else He&&r&&r.valueDeclaration&&e.isPropertyAccessExpression(r.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(r.valueDeclaration)&&hg(n)===hg(r.valueDeclaration)&&(S=!0);var Ge=tm(n,t,S?td(t):t);return S&&!(wc(t)&32768)&&wc(Ge)&32768?(Jn(a,e.Diagnostics.Property_0_is_used_before_being_assigned,Qa(r)),t):u?ju(Ge):Ge}function wI(n,r,t){var a=n.valueDeclaration;if(!(!a||e.getSourceFileOfNode(r).isDeclarationFile)){var s,u=e.idText(t);G0(r)&&!c_(a)&&!(e.isAccessExpression(r)&&e.isAccessExpression(r.expression))&&!Dc(a,t)&&(pe.useDefineForClassFields||!FI(n))?s=Jn(t,e.Diagnostics.Property_0_is_used_before_its_initialization,u):a.kind===255&&r.parent.kind!==176&&!(a.flags&8388608)&&!Dc(a,t)&&(s=Jn(t,e.Diagnostics.Class_0_used_before_its_declaration,u)),s&&e.addRelatedInfo(s,e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_here,u))}}function G0(n){return!!e.findAncestor(n,function(r){switch(r.kind){case 165:return!0;case 291:case 167:case 170:case 171:case 293:case 160:case 231:case 286:case 283:case 284:case 285:case 278:case 226:case 289:return!1;case 212:case 236:return e.isBlock(r.parent)&&e.isClassStaticBlockDeclaration(r.parent.parent)?!0:"quit";default:return e.isExpressionNode(r)?!1:"quit"}})}function FI(n){if(!(n.parent.flags&32))return!1;for(var r=kt(n.parent);;){if(r=r.symbol&&GI(r),!r)return!1;var t=wn(r,n.escapedName);if(t&&t.valueDeclaration)return!0}}function GI(n){var r=vc(n);if(r.length!==0)return Ro(r)}function BI(n,r,t){var a,s;if(!e.isPrivateIdentifier(n)&&r.flags&1048576&&!(r.flags&131068))for(var u=0,S=r.types;u<S.length;u++){var F=S[u];if(!wn(F,n.escapedText)&&!Yl(F,n.escapedText)){a=e.chainDiagnosticMessages(a,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),Lt(F));break}}if(B0(n.escapedText,r)){var ve=e.declarationNameToString(n),Ge=Lt(r);a=e.chainDiagnosticMessages(a,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,ve,Ge,Ge+"."+ve)}else{var Je=Fv(r);if(Je&&wn(Je,n.escapedText))a=e.chainDiagnosticMessages(a,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(n),Lt(r)),s=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await);else{var Xe=e.declarationNameToString(n),tn=Lt(r),Dn=WI(Xe,r);if(Dn!==void 0)a=e.chainDiagnosticMessages(a,e.Diagnostics.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,Xe,tn,Dn);else{var nr=Kb(n,r);if(nr!==void 0){var sr=e.symbolName(nr),Ir=t?e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2:e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;a=e.chainDiagnosticMessages(a,Ir,Xe,tn,sr),s=nr.valueDeclaration&&e.createDiagnosticForNode(nr.valueDeclaration,e.Diagnostics._0_is_declared_here,sr)}else{var xr=UI(r)?e.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:e.Diagnostics.Property_0_does_not_exist_on_type_1;a=e.chainDiagnosticMessages(ln(a,r),xr,Xe,tn)}}}}var Gr=e.createDiagnosticForNodeFromMessageChain(n,a);s&&e.addRelatedInfo(Gr,s),zo(!t,Gr)}function UI(n){return pe.lib&&!pe.lib.includes("dom")&&ux(n,function(r){return r.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(e.unescapeLeadingUnderscores(r.symbol.escapedName))})&&nd(n)}function B0(n,r){var t=r.symbol&&wn(kt(r.symbol),n);return t!==void 0&&!!t.valueDeclaration&&e.isStatic(t.valueDeclaration)}function VI(n){for(var r=rc(n),t=e.getScriptTargetFeatures(),a=e.getOwnKeys(t),s=0,u=a;s<u.length;s++){var S=u[s],F=e.getOwnKeys(t[S]);if(F!==void 0&&e.contains(F,r))return S}}function WI(n,r){var t=Il(r).symbol;if(t)for(var a=e.getScriptTargetFeatures(),s=e.getOwnKeys(a),u=0,S=s;u<S.length;u++){var F=S[u],ve=a[F],Ge=ve[e.symbolName(t)];if(Ge!==void 0&&e.contains(Ge,n))return F}}function U0(n,r){return xv(n,bo(r),106500)}function Kb(n,r){var t=bo(r);if(typeof n!="string"){var a=n.parent;e.isPropertyAccessExpression(a)&&(t=e.filter(t,function(s){return j0(a,r,s)})),n=e.idText(n)}return xv(n,t,111551)}function V0(n,r){var t=e.isString(n)?n:e.idText(n),a=bo(r),s=t==="for"?e.find(a,function(u){return e.symbolName(u)==="htmlFor"}):t==="class"?e.find(a,function(u){return e.symbolName(u)==="className"}):void 0;return s!=null?s:xv(t,a,111551)}function zb(n,r){var t=Kb(n,r);return t&&e.symbolName(t)}function qb(n,r,t){e.Debug.assert(r!==void 0,"outername should always be defined");var a=If(n,r,t,void 0,r,!1,!1,function(s,u,S){e.Debug.assertEqual(r,u,"name should equal outerName");var F=$o(s,u,S);return F||xv(e.unescapeLeadingUnderscores(u),e.arrayFrom(s.values()),S)});return a}function jI(n,r,t){var a=qb(n,r,t);return a&&e.symbolName(a)}function Zh(n,r){return r.exports&&xv(e.idText(n),ec(r),2623475)}function HI(n,r){var t=Zh(n,r);return t&&e.symbolName(t)}function JI(n,r,t){function a(S){var F=Df(n,S);if(F){var ve=Dm(kt(F));return!!ve&&Ju(ve)>=1&&mo(t,fu(ve,0))}return!1}var s=e.isAssignmentTarget(r)?"set":"get";if(a(s)){var u=e.tryGetPropertyAccessOrIdentifierToString(r.expression);return u===void 0?u=s:u+="."+s,u}}function xv(n,r,t){return e.getSpellingSuggestion(n,r,a);function a(s){var u=e.symbolName(s);if(!e.startsWith(u,'"')){if(s.flags&t)return u;if(s.flags&2097152){var S=No(s);if(S&&S.flags&t)return u}}}}function $h(n,r,t){var a=n&&n.flags&106500&&n.valueDeclaration;if(a){var s=e.hasEffectiveModifier(a,8),u=n.valueDeclaration&&e.isNamedDeclaration(n.valueDeclaration)&&e.isPrivateIdentifier(n.valueDeclaration.name);if(!(!s&&!u)&&!(r&&e.isWriteOnlyAccess(r)&&!(n.flags&65536))){if(t){var S=e.findAncestor(r,e.isFunctionLikeDeclaration);if(S&&S.symbol===n)return}(e.getCheckFlags(n)&1?Za(n).target:n).isReferenced=67108863}}}function W0(n,r){return n.kind===108||!!r&&e.isEntityNameExpression(n)&&r===xu(e.getFirstIdentifier(n))}function KI(n,r){switch(n.kind){case 204:return Iv(n,n.expression.kind===106,r,fc(vi(n.expression)));case 159:return Iv(n,!1,r,fc(vi(n.left)));case 198:return Iv(n,!1,r,Ra(n))}}function j0(n,r,t){return Iv(n,n.kind===204&&n.expression.kind===106,t.escapedName,r)}function Iv(n,r,t,a){if(a===J||no(a))return!0;var s=wn(a,t);if(s){if(s.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(s.valueDeclaration)){var u=e.getContainingClass(s.valueDeclaration);return!e.isOptionalChain(n)&&!!e.findAncestor(n,function(S){return S===u})}return Yh(n,r,!1,a,s,!1)}return e.isInJSFile(n)&&(a.flags&1048576)!==0&&a.types.some(function(S){return Iv(n,r,t,S)})}function zI(n){var r=n.initializer;if(r.kind===253){var t=r.declarations[0];if(t&&!e.isBindingPattern(t.name))return wt(t)}else if(r.kind===79)return xu(r)}function qI(n){return Ei(n).length===1&&!!po(n,Dr)}function XI(n){var r=e.skipParentheses(n);if(r.kind===79){var t=xu(r);if(t.flags&3)for(var a=n,s=n.parent;s;){if(s.kind===241&&a===s.statement&&zI(s)===t&&qI(kl(s.expression)))return!0;a=s,s=s.parent}}return!1}function YI(n,r){return n.flags&32?QI(n,r):H0(n,x_(n.expression),r)}function QI(n,r){var t=vi(n.expression),a=pg(t,n.expression);return Ah(H0(n,Iu(a,n.expression),r),n,a!==t)}function H0(n,r,t){var a=e.getAssignmentTargetKind(n)!==0||P0(n)?fc(r):r,s=n.argumentExpression,u=vi(s);if(a===J||a===Ot)return a;if(s1(a)&&!e.isStringLiteralLike(s))return Jn(s,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),J;var S=XI(s)?Dr:u,F=e.isAssignmentTarget(n)?4|(vm(a)&&!uv(a)?2:0):32,ve=ap(a,S,F,n)||J;return H2(F0(n,da(n).resolvedSymbol,ve,s,t),n)}function J0(n){return e.isCallOrNewExpression(n)||e.isTaggedTemplateExpression(n)||e.isJsxOpeningLikeElement(n)}function zm(n){return J0(n)&&e.forEach(n.typeArguments,ao),n.kind===208?vi(n.template):e.isJsxOpeningLikeElement(n)?vi(n.attributes):n.kind!==163&&e.forEach(n.arguments,function(r){vi(r)}),bi}function Hu(n){return zm(n),Mi}function ZI(n,r,t){var a,s,u=0,S,F=-1,ve;e.Debug.assert(!r.length);for(var Ge=0,Je=n;Ge<Je.length;Ge++){var Xe=Je[Ge],tn=Xe.declaration&&wt(Xe.declaration),Dn=Xe.declaration&&Xe.declaration.parent;!s||tn===s?a&&Dn===a?S=S+1:(a=Dn,S=u):(S=u=r.length,a=Dn),s=tn,P(Xe)?(F++,ve=F,u++):ve=S,r.splice(ve,0,t?Xv(Xe,t):Xe)}}function ey(n){return!!n&&(n.kind===223||n.kind===230&&n.isSpread)}function ny(n){return e.findIndex(n,ey)}function K0(n){return!!(n.flags&16384)}function $I(n){return!!(n.flags&49155)}function ry(n,r,t,a){a===void 0&&(a=!1);var s,u=!1,S=ac(t),F=Ju(t);if(n.kind===208)if(s=r.length,n.template.kind===221){var ve=e.last(n.template.templateSpans);u=e.nodeIsMissing(ve.literal)||!!ve.literal.isUnterminated}else{var Ge=n.template;e.Debug.assert(Ge.kind===14),u=!!Ge.isUnterminated}else if(n.kind===163)s=n2(n,t);else if(e.isJsxOpeningLikeElement(n)){if(u=n.attributes.end===n.end,u)return!0;s=F===0?r.length:1,S=r.length===0?S:1,F=Math.min(F,1)}else if(n.arguments){s=a?r.length+1:r.length,u=n.arguments.end===n.end;var Je=ny(r);if(Je>=0)return Je>=Ju(t)&&(Ku(t)||Je<ac(t))}else return e.Debug.assert(n.kind===207),Ju(t)===0;if(!Ku(t)&&s>S)return!1;if(u||s>=F)return!0;for(var Xe=s;Xe<F;Xe++){var tn=fu(t,Xe);if(Nl(tn,e.isInJSFile(n)&&!He?$I:K0).flags&131072)return!1}return!0}function z0(n,r){var t=e.length(n.typeParameters),a=Lu(n.typeParameters);return!e.some(r)||r.length>=a&&r.length<=t}function Dm(n){return bg(n,0,!1)}function q0(n){return bg(n,0,!1)||bg(n,1,!1)}function bg(n,r,t){if(n.flags&524288){var a=Du(n);if(t||a.properties.length===0&&a.indexInfos.length===0){if(r===0&&a.callSignatures.length===1&&a.constructSignatures.length===0)return a.callSignatures[0];if(r===1&&a.constructSignatures.length===1&&a.callSignatures.length===0)return a.constructSignatures[0]}}}function X0(n,r,t,a){var s=mg(n.typeParameters,n,0,a),u=Sg(r),S=t&&(u&&u.flags&262144?t.nonFixingMapper:t.mapper),F=S?Fm(r,S):r;return tb(F,n,function(ve,Ge){Lf(s.inferences,ve,Ge)}),t||ab(r,n,function(ve,Ge){Lf(s.inferences,ve,Ge,128)}),ov(n,mb(s),e.isInJSFile(r.declaration))}function eN(n,r,t,a){var s=zh(r,n),u=qm(n.attributes,s,a,t);return Lf(a.inferences,u,s),mb(a)}function Y0(n){if(!n)return Cr;var r=vi(n);return e.isOptionalChainRoot(n.parent)?Rd(r):e.isOptionalChain(n.parent)?eb(r):r}function Xb(n,r,t,a,s){if(e.isJsxOpeningLikeElement(n))return eN(n,r,a,s);if(n.kind!==163){var u=uu(n,e.every(r.typeParameters,function(mi){return!!ep(mi)})?8:0);if(u){var S=yg(n),F=sb(RC(S,1)),ve=fi(u,F),Ge=Dm(ve),Je=Ge&&Ge.typeParameters?f_(aE(Ge,Ge.typeParameters)):ve,Xe=_o(r);Lf(s.inferences,Je,Xe,128);var tn=mg(r.typeParameters,r,s.flags),Dn=fi(u,S&&S.returnMapper);Lf(tn.inferences,Dn,Xe),s.returnMapper=e.some(tn.inferences,Lm)?sb(OC(tn)):void 0}}var nr=Dg(r),sr=nr?Math.min(ac(r)-1,t.length):t.length;if(nr&&nr.flags&262144){var Ir=e.find(s.inferences,function(mi){return mi.typeParameter===nr});Ir&&(Ir.impliedArity=e.findIndex(t,ey,sr)<0?t.length-sr:void 0)}var xr=Id(r);if(xr){var Gr=e2(n);Lf(s.inferences,Y0(Gr),xr)}for(var ct=0;ct<sr;ct++){var Vt=t[ct];if(Vt.kind!==225){var _t=fu(r,ct),Ta=qm(Vt,_t,s,a);Lf(s.inferences,Ta,_t)}}if(nr){var sa=Yb(t,sr,t.length,nr,s,a);Lf(s.inferences,sa,nr)}return mb(s)}function Q0(n){return n.flags&1048576?Ps(n,Q0):n.flags&1||Dh(Xl(n)||n)?n:ji(n)?Vu(Co(n),n.target.elementFlags,!1,n.target.labeledElementDeclarations):Vu([n],[8])}function Yb(n,r,t,a,s,u){if(r>=t-1){var S=n[t-1];if(ey(S))return Q0(S.kind===230?S.type:qm(S.expression,a,s,u))}for(var F=[],ve=[],Ge=[],Je=r;Je<t;Je++){var S=n[Je];if(ey(S)){var Xe=S.kind===230?S.type:vi(S.expression);lp(Xe)?(F.push(Xe),ve.push(8)):(F.push(Pd(33,Xe,Rn,S.kind===223?S.expression:S)),ve.push(4))}else{var tn=Ec(a,Zf(Je-r),256),Dn=qm(S,tn,s,u),nr=bs(tn,406978556);F.push(nr?cc(Dn):Ap(Dn)),ve.push(1)}S.kind===230&&S.tupleNameSource&&Ge.push(S.tupleNameSource)}return Vu(F,ve,!1,e.length(Ge)===e.length(F)?Ge:void 0)}function Z0(n,r,t,a){for(var s=e.isInJSFile(n.declaration),u=n.typeParameters,S=np(e.map(r,Ra),u,Lu(u),s),F,ve=0;ve<r.length;ve++){e.Debug.assert(u[ve]!==void 0,"Should not call checkTypeArguments with too many type arguments");var Ge=yc(u[ve]);if(Ge){var Je=t&&a?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,Xe=a||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;F||(F=uc(u,S));var tn=S[ve];if(!xc(tn,Ac(fi(Ge,F),tn),t?r[ve]:void 0,Xe,Je))return}}return S}function $0(n){if(C_(n.tagName))return 2;var r=Il(vi(n.tagName));return e.length(zr(r,1))?0:e.length(zr(r,0))?1:2}function nN(n,r,t,a,s,u,S){var F=zh(r,n),ve=qm(n.attributes,F,void 0,a);return Ge()&&wE(ve,F,t,s?n.tagName:void 0,n.attributes,void 0,u,S);function Ge(){var Je;if(Gb(n))return!0;var Xe=e.isJsxOpeningElement(n)||e.isJsxSelfClosingElement(n)&&!C_(n.tagName)?vi(n.tagName):void 0;if(!Xe)return!0;var tn=zr(Xe,0);if(!e.length(tn))return!0;var Dn=UD(n);if(!Dn)return!0;var nr=ki(Dn,111551,!0,!1,n);if(!nr)return!0;var sr=kt(nr),Ir=zr(sr,0);if(!e.length(Ir))return!0;for(var xr=!1,Gr=0,ct=0,Vt=Ir;ct<Vt.length;ct++){var _t=Vt[ct],Ta=fu(_t,0),sa=zr(Ta,0);if(e.length(sa))for(var mi=0,ai=sa;mi<ai.length;mi++){var Hi=ai[mi];if(xr=!0,Ku(Hi))return!0;var ii=ac(Hi);ii>Gr&&(Gr=ii)}}if(!xr)return!0;for(var go=1/0,xo=0,Yr=tn;xo<Yr.length;xo++){var Pr=Yr[xo],Aa=Ju(Pr);Aa<go&&(go=Aa)}if(go<=Gr)return!0;if(s){var Ga=e.createDiagnosticForNode(n.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(n.tagName),go,e.entityNameToString(Dn),Gr),na=(Je=Kc(n.tagName))===null||Je===void 0?void 0:Je.valueDeclaration;na&&e.addRelatedInfo(Ga,e.createDiagnosticForNode(na,e.Diagnostics._0_is_declared_here,e.entityNameToString(n.tagName))),S&&S.skipLogging&&(S.errors||(S.errors=[])).push(Ga),S.skipLogging||zt.add(Ga)}return!1}}function Nv(n,r,t,a,s,u,S){var F={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(n))return nN(n,t,a,s,u,S,F)?void 0:(e.Debug.assert(!u||!!F.errors,"jsx should have errors when reporting errors"),F.errors||e.emptyArray);var ve=Id(t);if(ve&&ve!==Cr&&n.kind!==207){var Ge=e2(n),Je=Y0(Ge),Xe=u?Ge||n:void 0,tn=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Cu(Je,ve,a,Xe,tn,S,F))return e.Debug.assert(!u||!!F.errors,"this parameter should have errors when reporting errors"),F.errors||e.emptyArray}for(var Dn=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,nr=Dg(t),sr=nr?Math.min(ac(t)-1,r.length):r.length,Ir=0;Ir<sr;Ir++){var xr=r[Ir];if(xr.kind!==225){var Gr=fu(t,Ir),ct=qm(xr,Gr,void 0,s),Vt=s&4?T_(ct):ct;if(!wE(Vt,Gr,a,u?xr:void 0,xr,Dn,S,F))return e.Debug.assert(!u||!!F.errors,"parameter should have errors when reporting errors"),sa(xr,Vt,Gr),F.errors||e.emptyArray}}if(nr){var _t=Yb(r,sr,r.length,nr,void 0,s),Ta=r.length-sr,Xe=u?Ta===0?n:Ta===1?r[sr]:e.setTextRangePosEnd(kp(n,_t),r[sr].pos,r[r.length-1].end):void 0;if(!Cu(_t,nr,a,Xe,Dn,void 0,F))return e.Debug.assert(!u||!!F.errors,"rest parameter should have errors when reporting errors"),sa(Xe,_t,nr),F.errors||e.emptyArray}return;function sa(mi,ai,Hi){if(mi&&u&&F.errors&&F.errors.length){if(Ig(Hi))return;var ii=Ig(ai);ii&&rd(ii,Hi,a)&&e.addRelatedInfo(F.errors[0],e.createDiagnosticForNode(mi,e.Diagnostics.Did_you_forget_to_use_await))}}}function e2(n){var r=n.kind===206?n.expression:n.kind===208?n.tag:void 0;if(r){var t=e.skipOuterExpressions(r);if(e.isAccessExpression(t))return t.expression}}function kp(n,r,t,a){var s=e.parseNodeFactory.createSyntheticExpression(r,t,a);return e.setTextRange(s,n),e.setParent(s,n),s}function Qb(n){if(n.kind===208){var r=n.template,t=[kp(r,gL())];return r.kind===221&&e.forEach(r.templateSpans,function(ve){t.push(ve.expression)}),t}if(n.kind===163)return rN(n);if(e.isJsxOpeningLikeElement(n))return n.attributes.properties.length>0||e.isJsxOpeningElement(n)&&n.parent.children.length>0?[n.attributes]:e.emptyArray;var a=n.arguments||e.emptyArray,s=ny(a);if(s>=0){for(var u=a.slice(0,s),S=function(ve){var Ge=a[ve],Je=Ge.kind===223&&(Kn?vi(Ge.expression):ll(Ge.expression));Je&&ji(Je)?e.forEach(Co(Je),function(Xe,tn){var Dn,nr=Je.target.elementFlags[tn],sr=kp(Ge,nr&4?bl(Xe):Xe,!!(nr&12),(Dn=Je.target.labeledElementDeclarations)===null||Dn===void 0?void 0:Dn[tn]);u.push(sr)}):u.push(Ge)},F=s;F<a.length;F++)S(F);return u}return a}function rN(n){var r=n.parent,t=n.expression;switch(r.kind){case 255:case 224:return[kp(t,kt(wt(r)))];case 162:var a=r.parent;return[kp(t,r.parent.kind===169?kt(wt(a)):J),kp(t,cr),kp(t,Dr)];case 165:case 167:case 170:case 171:var s=r.kind!==165&&we!==0;return[kp(t,WO(r)),kp(t,jO(r)),kp(t,s?gT(sm(r)):cr)]}return e.Debug.fail()}function n2(n,r){switch(n.parent.kind){case 255:case 224:return 1;case 165:return 2;case 167:case 170:case 171:return we===0||r.parameters.length<=2?2:3;case 162:return 3;default:return e.Debug.fail()}}function r2(n,r){var t,a,s=e.getSourceFileOfNode(n);if(e.isPropertyAccessExpression(n.expression)){var u=e.getErrorSpanForNode(s,n.expression.name);t=u.start,a=r?u.length:n.end-t}else{var S=e.getErrorSpanForNode(s,n.expression);t=S.start,a=r?S.length:n.end-t}return{start:t,length:a,sourceFile:s}}function ty(n,r,t,a,s,u){if(e.isCallExpression(n)){var S=r2(n),F=S.sourceFile,ve=S.start,Ge=S.length;return e.createFileDiagnostic(F,ve,Ge,r,t,a,s,u)}else return e.createDiagnosticForNode(n,r,t,a,s,u)}function tN(n){if(!e.isCallExpression(n)||!e.isIdentifier(n.expression))return!1;var r=es(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),t=r==null?void 0:r.valueDeclaration;if(!t||!e.isParameter(t)||!Ob(t.parent)||!e.isNewExpression(t.parent.parent)||!e.isIdentifier(t.parent.parent.expression))return!1;var a=cE(!1);if(!a)return!1;var s=Kc(t.parent.parent.expression,!0);return s===a}function t2(n,r,t){var a,s=ny(t);if(s>-1)return e.createDiagnosticForNode(t[s],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var u=Number.POSITIVE_INFINITY,S=Number.NEGATIVE_INFINITY,F=Number.NEGATIVE_INFINITY,ve=Number.POSITIVE_INFINITY,Ge,Je=0,Xe=r;Je<Xe.length;Je++){var tn=Xe[Je],Dn=Ju(tn),nr=ac(tn);Dn<u&&(u=Dn,Ge=tn),S=Math.max(S,nr),Dn<t.length&&Dn>F&&(F=Dn),t.length<nr&&nr<ve&&(ve=nr)}var sr=e.some(r,Ku),Ir=sr?u:u<S?u+"-"+S:u,xr=sr?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:Ir===1&&t.length===0&&tN(n)?e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:e.Diagnostics.Expected_0_arguments_but_got_1;if(u<t.length&&t.length<S)return ty(n,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,t.length,F,ve);if(t.length<u){var Gr=ty(n,xr,Ir,t.length),ct=(a=Ge==null?void 0:Ge.declaration)===null||a===void 0?void 0:a.parameters[Ge.thisParameter?t.length+1:t.length];if(ct){var Vt=e.createDiagnosticForNode(ct,e.isBindingPattern(ct.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(ct)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,ct.name?e.isBindingPattern(ct.name)?void 0:e.idText(e.getFirstIdentifier(ct.name)):t.length);return e.addRelatedInfo(Gr,Vt)}return Gr}else{var _t=e.factory.createNodeArray(t.slice(S)),Ta=e.first(_t).pos,sa=e.last(_t).end;return sa===Ta&&sa++,e.setTextRangePosEnd(_t,Ta,sa),e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),_t,xr,Ir,t.length)}}function aN(n,r,t){var a=t.length;if(r.length===1){var s=r[0],u=Lu(s.typeParameters),S=e.length(s.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),t,e.Diagnostics.Expected_0_type_arguments_but_got_1,u<S?u+"-"+S:u,a)}for(var F=-1/0,ve=1/0,Ge=0,Je=r;Ge<Je.length;Ge++){var s=Je[Ge],Xe=Lu(s.typeParameters),S=e.length(s.typeParameters);Xe>a?ve=Math.min(ve,Xe):S<a&&(F=Math.max(F,S))}return F!==-1/0&&ve!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),t,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,a,F,ve):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),t,e.Diagnostics.Expected_0_type_arguments_but_got_1,F===-1/0?ve:F,a)}function I_(n,r,t,a,s,u){var S=n.kind===208,F=n.kind===163,ve=e.isJsxOpeningLikeElement(n),Ge=!t&&M,Je;F||(Je=n.typeArguments,(S||ve||n.expression.kind!==106)&&e.forEach(Je,ao));var Xe=t||[];if(ZI(r,Xe,s),!Xe.length)return Ge&&zt.add(ty(n,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Hu(n);var tn=Qb(n),Dn=Xe.length===1&&!Xe[0].typeParameters,nr=!F&&!Dn&&e.some(tn,Au)?4:0,sr,Ir,xr,Gr,ct=!!(a&16)&&n.kind===206&&n.arguments.hasTrailingComma;if(Xe.length>1&&(Gr=Ht(Xe,un,Dn,ct)),Gr||(Gr=Ht(Xe,Tr,Dn,ct)),Gr)return Gr;if(Ge)if(sr)if(sr.length===1||sr.length>3){var Vt=sr[sr.length-1],_t;sr.length>3&&(_t=e.chainDiagnosticMessages(_t,e.Diagnostics.The_last_overload_gave_the_following_error),_t=e.chainDiagnosticMessages(_t,e.Diagnostics.No_overload_matches_this_call));var Ta=Nv(n,tn,Vt,Tr,0,!0,function(){return _t});if(Ta)for(var sa=0,mi=Ta;sa<mi.length;sa++){var ai=mi[sa];Vt.declaration&&sr.length>3&&e.addRelatedInfo(ai,e.createDiagnosticForNode(Vt.declaration,e.Diagnostics.The_last_overload_is_declared_here)),Bt(Vt,ai),zt.add(ai)}else e.Debug.fail("No error for last overload signature")}else{for(var Hi=[],ii=0,go=Number.MAX_VALUE,xo=0,Yr=0,Pr=function(fa){var Qn=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,Yr+1,Xe.length,Rc(fa))},Nr=Nv(n,tn,fa,Tr,0,!0,Qn);Nr?(Nr.length<=go&&(go=Nr.length,xo=Yr),ii=Math.max(ii,Nr.length),Hi.push(Nr)):e.Debug.fail("No error for 3 or fewer overload signatures"),Yr++},Aa=0,Ga=sr;Aa<Ga.length;Aa++){var na=Ga[Aa];Pr(na)}var si=ii>1?Hi[xo]:e.flatten(Hi);e.Debug.assert(si.length>0,"No errors reported for 3 or fewer overload signatures");var jt=e.chainDiagnosticMessages(e.map(si,function(fa){return typeof fa.messageText=="string"?fa:fa.messageText}),e.Diagnostics.No_overload_matches_this_call),Ji=Vr([],e.flatMap(si,function(fa){return fa.relatedInformation}),!0),Wi=void 0;if(e.every(si,function(fa){return fa.start===si[0].start&&fa.length===si[0].length&&fa.file===si[0].file})){var rr=si[0],yn=rr.file,pt=rr.start,mt=rr.length;Wi={file:yn,start:pt,length:mt,code:jt.code,category:jt.category,messageText:jt,relatedInformation:Ji}}else Wi=e.createDiagnosticForNodeFromMessageChain(n,jt,Ji);Bt(sr[0],Wi),zt.add(Wi)}else if(Ir)zt.add(t2(n,[Ir],tn));else if(xr)Z0(xr,n.typeArguments,!0,u);else{var Ft=e.filter(r,function(fa){return z0(fa,Je)});Ft.length===0?zt.add(aN(n,r,Je)):F?u&&zt.add(ty(n,u)):zt.add(t2(n,Ft,tn))}return iN(n,Xe,tn,!!t);function Bt(fa,Qn){var Nr,Jr,tt=sr,ut=Ir,Ct=xr,pa=((Jr=(Nr=fa.declaration)===null||Nr===void 0?void 0:Nr.symbol)===null||Jr===void 0?void 0:Jr.declarations)||e.emptyArray,Oa=pa.length>1,Di=Oa?e.find(pa,function(Wo){return e.isFunctionLikeDeclaration(Wo)&&e.nodeIsPresent(Wo.body)}):void 0;if(Di){var xa=su(Di),lo=!xa.typeParameters;Ht([xa],Tr,lo)&&e.addRelatedInfo(Qn,e.createDiagnosticForNode(Di,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}sr=tt,Ir=ut,xr=Ct}function Ht(fa,Qn,Nr,Jr){if(Jr===void 0&&(Jr=!1),sr=void 0,Ir=void 0,xr=void 0,Nr){var tt=fa[0];if(e.some(Je)||!ry(n,tn,tt,Jr))return;if(Nv(n,tn,tt,Qn,0,!1,void 0)){sr=[tt];return}return tt}for(var ut=0;ut<fa.length;ut++){var tt=fa[ut];if(!(!z0(tt,Je)||!ry(n,tn,tt,Jr))){var Ct=void 0,pa=void 0;if(tt.typeParameters){var Oa=void 0;if(e.some(Je)){if(Oa=Z0(tt,Je,!1),!Oa){xr=tt;continue}}else pa=mg(tt.typeParameters,tt,e.isInJSFile(n)?2:0),Oa=Xb(n,tt,tn,nr|8,pa),nr|=pa.flags&4?8:0;if(Ct=ov(tt,Oa,e.isInJSFile(tt.declaration),pa&&pa.inferredTypeParameters),Dg(tt)&&!ry(n,tn,Ct,Jr)){Ir=Ct;continue}}else Ct=tt;if(Nv(n,tn,Ct,Qn,nr,!1,void 0)){(sr||(sr=[])).push(Ct);continue}if(nr){if(nr=0,pa){var Oa=Xb(n,tt,tn,nr,pa);if(Ct=ov(tt,Oa,e.isInJSFile(tt.declaration),pa&&pa.inferredTypeParameters),Dg(tt)&&!ry(n,tn,Ct,Jr)){Ir=Ct;continue}}if(Nv(n,tn,Ct,Qn,nr,!1,void 0)){(sr||(sr=[])).push(Ct);continue}}return fa[ut]=Ct,Ct}}}}function iN(n,r,t,a){return e.Debug.assert(r.length>0),Og(n),a||r.length===1||r.some(function(s){return!!s.typeParameters})?lN(n,r,t):oN(r)}function oN(n){var r=e.mapDefined(n,function(tn){return tn.thisParameter}),t;r.length&&(t=a2(r,r.map(Tg)));for(var a=e.minAndMax(n,sN),s=a.min,u=a.max,S=[],F=function(tn){var Dn=e.mapDefined(n,function(nr){return N(nr)?tn<nr.parameters.length-1?nr.parameters[tn]:e.last(nr.parameters):tn<nr.parameters.length?nr.parameters[tn]:void 0});e.Debug.assert(Dn.length!==0),S.push(a2(Dn,e.mapDefined(n,function(nr){return im(nr,tn)})))},ve=0;ve<u;ve++)F(ve);var Ge=e.mapDefined(n,function(tn){return N(tn)?e.last(tn.parameters):void 0}),Je=0;if(Ge.length!==0){var Xe=bl(Sa(e.mapDefined(n,z1),2));S.push(i2(Ge,Xe)),Je|=1}return n.some(P)&&(Je|=2),Tu(n[0].declaration,void 0,t,S,Ro(n.map(_o)),void 0,s,Je)}function sN(n){var r=n.parameters.length;return N(n)?r-1:r}function a2(n,r){return i2(n,Sa(r,2))}function i2(n,r){return Sm(e.first(n),r)}function lN(n,r,t){var a=fN(r,An===void 0?t.length:An),s=r[a],u=s.typeParameters;if(!u)return s;var S=J0(n)?n.typeArguments:void 0,F=S?sh(s,cN(S,u,e.isInJSFile(n))):uN(n,u,s,t);return r[a]=F,F}function cN(n,r,t){for(var a=n.map(sm);a.length>r.length;)a.pop();for(;a.length<r.length;)a.push(yc(r[a.length])||pb(t));return a}function uN(n,r,t,a){var s=mg(r,t,e.isInJSFile(n)?2:0),u=Xb(n,t,a,12,s);return sh(t,u)}function fN(n,r){for(var t=-1,a=-1,s=0;s<n.length;s++){var u=n[s],S=ac(u);if(Ku(u)||S>=r)return s;S>a&&(a=S,t=s)}return t}function dN(n,r,t){if(n.expression.kind===106){var a=Lb(n.expression);if(no(a)){for(var s=0,u=n.arguments;s<u.length;s++){var S=u[s];vi(S)}return bi}if(a!==J){var F=e.getEffectiveBaseTypeNode(e.getContainingClass(n));if(F){var ve=Kf(a,F.typeArguments,F);return I_(n,ve,r,t,0)}}return zm(n)}var Ge,Je=vi(n.expression);if(e.isCallChain(n)){var Xe=pg(Je,n.expression);Ge=Xe===Je?0:e.isOutermostOptionalChain(n)?16:8,Je=Xe}else Ge=0;if(Je=N0(Je,n.expression,OI),Je===Ot)return io;var tn=Il(Je);if(tn===J)return Hu(n);var Dn=zr(tn,0),nr=zr(tn,1).length;if(ay(Je,tn,Dn.length,nr))return Je!==J&&n.typeArguments&&Jn(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),zm(n);if(!Dn.length){if(nr)Jn(n,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Lt(Je));else{var sr=void 0;if(n.arguments.length===1){var Ir=e.getSourceFileOfNode(n).text;e.isLineBreak(Ir.charCodeAt(e.skipTrivia(Ir,n.expression.end,!0)-1))&&(sr=e.createDiagnosticForNode(n.expression,e.Diagnostics.Are_you_missing_a_semicolon))}$b(n.expression,tn,0,sr)}return Hu(n)}return t&8&&!n.typeArguments&&Dn.some(pN)?(P2(n,t),Go):Dn.some(function(xr){return e.isInJSFile(xr.declaration)&&!!e.getJSDocClassTag(xr.declaration)})?(Jn(n,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Lt(Je)),Hu(n)):I_(n,Dn,r,t,Ge)}function pN(n){return!!(n.typeParameters&&M1(_o(n)))}function ay(n,r,t,a){return no(n)||no(r)&&!!(n.flags&262144)||!t&&!a&&!(r.flags&1048576)&&!(iu(r).flags&131072)&&mo(n,Jo)}function mN(n,r,t){if(n.arguments&&we<1){var a=ny(n.arguments);a>=0&&Jn(n.arguments[a],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var s=x_(n.expression);if(s===Ot)return io;if(s=Il(s),s===J)return Hu(n);if(no(s))return n.typeArguments&&Jn(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),zm(n);var u=zr(s,1);if(u.length){if(!_N(n,u[0]))return Hu(n);if(u.some(function(Ge){return Ge.flags&4}))return Jn(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Hu(n);var S=s.symbol&&e.getClassLikeDeclarationOfSymbol(s.symbol);return S&&e.hasSyntacticModifier(S,128)?(Jn(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Hu(n)):I_(n,u,r,t,0)}var F=zr(s,0);if(F.length){var ve=I_(n,F,r,t,0);return En||(ve.declaration&&!Nu(ve.declaration)&&_o(ve)!==Cr&&Jn(n,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Id(ve)===Cr&&Jn(n,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),ve}return $b(n.expression,s,1),Hu(n)}function Zb(n,r){var t=vc(r);if(!e.length(t))return!1;var a=t[0];if(a.flags&2097152){for(var s=a.types,u=X_(s),S=0,F=0,ve=a.types;F<ve.length;F++){var Ge=ve[F];if(!u[S]&&e.getObjectFlags(Ge)&3&&(Ge.symbol===n||Zb(n,Ge)))return!0;S++}return!1}return a.symbol===n?!0:Zb(n,a)}function _N(n,r){if(!r||!r.declaration)return!0;var t=r.declaration,a=e.getSelectedEffectiveModifierFlags(t,24);if(!a||t.kind!==169)return!0;var s=e.getClassLikeDeclarationOfSymbol(t.parent.symbol),u=rs(t.parent.symbol);if(!k1(n,s)){var S=e.getContainingClass(n);if(S&&a&16){var F=sm(S);if(Zb(t.parent.symbol,F))return!0}return a&8&&Jn(n,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Lt(u)),a&16&&Jn(n,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Lt(u)),!1}return!0}function o2(n,r,t){var a,s=t===0,u=ku(r),S=u&&zr(u,t).length>0;if(r.flags&1048576){for(var F=r.types,ve=!1,Ge=0,Je=F;Ge<Je.length;Ge++){var Xe=Je[Ge],tn=zr(Xe,t);if(tn.length!==0){if(ve=!0,a)break}else if(a||(a=e.chainDiagnosticMessages(a,s?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Lt(Xe)),a=e.chainDiagnosticMessages(a,s?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,Lt(r))),ve)break}ve||(a=e.chainDiagnosticMessages(void 0,s?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,Lt(r))),a||(a=e.chainDiagnosticMessages(a,s?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Lt(r)))}else a=e.chainDiagnosticMessages(a,s?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Lt(r));var Dn=s?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(n.parent)&&n.parent.arguments.length===0){var nr=da(n).resolvedSymbol;nr&&nr.flags&32768&&(Dn=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(a,Dn),relatedMessage:S?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function $b(n,r,t,a){var s=o2(n,r,t),u=s.messageChain,S=s.relatedMessage,F=e.createDiagnosticForNodeFromMessageChain(n,u);if(S&&e.addRelatedInfo(F,e.createDiagnosticForNode(n,S)),e.isCallExpression(n.parent)){var ve=r2(n.parent,!0),Ge=ve.start,Je=ve.length;F.start=Ge,F.length=Je}zt.add(F),s2(r,t,a?e.addRelatedInfo(F,a):F)}function s2(n,r,t){if(n.symbol){var a=Za(n.symbol).originatingImport;if(a&&!e.isImportCall(a)){var s=zr(kt(Za(n.symbol).target),r);if(!s||!s.length)return;e.addRelatedInfo(t,e.createDiagnosticForNode(a,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 gN(n,r,t){var a=vi(n.tag),s=Il(a);if(s===J)return Hu(n);var u=zr(s,0),S=zr(s,1).length;if(ay(a,s,u.length,S))return zm(n);if(!u.length){if(e.isArrayLiteralExpression(n.parent)){var F=e.createDiagnosticForNode(n.tag,e.Diagnostics.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return zt.add(F),Hu(n)}return $b(n.tag,s,0),Hu(n)}return I_(n,u,r,t,0)}function l2(n){switch(n.parent.kind){case 255:case 224:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 162:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 165:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 167:case 170:case 171:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function vN(n,r,t){var a=vi(n.expression),s=Il(a);if(s===J)return Hu(n);var u=zr(s,0),S=zr(s,1).length;if(ay(a,s,u.length,S))return zm(n);if(yN(n,u)){var F=e.getTextOfNode(n.expression,!1);return Jn(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,F),Hu(n)}var ve=l2(n);if(!u.length){var Ge=o2(n.expression,s,0),Je=e.chainDiagnosticMessages(Ge.messageChain,ve),Xe=e.createDiagnosticForNodeFromMessageChain(n.expression,Je);return Ge.relatedMessage&&e.addRelatedInfo(Xe,e.createDiagnosticForNode(n.expression,Ge.relatedMessage)),zt.add(Xe),s2(s,0,Xe),Hu(n)}return I_(n,u,r,t,0,ve)}function iy(n,r){var t=Km(n),a=t&&al(t),s=a&&$o(a,T.Element,788968),u=s&&Pe.symbolToEntityName(s,788968,n),S=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,Pe.typeToTypeNode(r,n))],u?e.factory.createTypeReferenceNode(u,void 0):e.factory.createKeywordTypeNode(129)),F=fo(1,"props");return F.type=r,Tu(S,void 0,void 0,[F],s?rs(s):J,void 0,1,0)}function hN(n,r,t){if(C_(n.tagName)){var a=A0(n),s=iy(n,a);return sp(qm(n.attributes,zh(s,n),void 0,0),a,n.tagName,n.attributes),e.length(n.typeArguments)&&(e.forEach(n.typeArguments,ao),zt.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),n.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(n.typeArguments)))),s}var u=vi(n.tagName),S=Il(u);if(S===J)return Hu(n);var F=D0(u,n);return ay(u,S,F.length,0)?zm(n):F.length===0?(Jn(n.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(n.tagName)),Hu(n)):I_(n,F,r,t,0)}function yN(n,r){return r.length&&e.every(r,function(t){return t.minArgumentCount===0&&!N(t)&&t.parameters.length<n2(n,t)})}function EN(n,r,t){switch(n.kind){case 206:return dN(n,r,t);case 207:return mN(n,r,t);case 208:return gN(n,r,t);case 163:return vN(n,r,t);case 278:case 277:return hN(n,r,t)}throw e.Debug.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function N_(n,r,t){var a=da(n),s=a.resolvedSignature;if(s&&s!==Go&&!r)return s;a.resolvedSignature=Go;var u=EN(n,r,t||0);return u!==Go&&(a.resolvedSignature=ge===Kn?u:s),u}function Nu(n){var r;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 a=wt(t);return!!(!((r=a==null?void 0:a.members)===null||r===void 0)&&r.size)}return!1}function e1(n,r){var t,a;if(r){var s=Za(r);if(!s.inferredClassSymbol||!s.inferredClassSymbol.has(C(n))){var u=e.isTransientSymbol(n)?n:_u(n);return u.exports=u.exports||e.createSymbolTable(),u.members=u.members||e.createSymbolTable(),u.flags|=r.flags&32,!((t=r.exports)===null||t===void 0)&&t.size&&ic(u.exports,r.exports),!((a=r.members)===null||a===void 0)&&a.size&&ic(u.members,r.members),(s.inferredClassSymbol||(s.inferredClassSymbol=new e.Map)).set(C(u),u),u}return s.inferredClassSymbol.get(C(n))}}function bN(n){var r,t=n&&oy(n,!0),a=(r=t==null?void 0:t.exports)===null||r===void 0?void 0:r.get("prototype"),s=(a==null?void 0:a.valueDeclaration)&&TN(a.valueDeclaration);return s?wt(s):void 0}function oy(n,r){if(n.parent){var t,a;if(e.isVariableDeclaration(n.parent)&&n.parent.initializer===n){if(!e.isInJSFile(n)&&!(e.isVarConst(n.parent)&&e.isFunctionLikeDeclaration(n)))return;t=n.parent.name,a=n.parent}else if(e.isBinaryExpression(n.parent)){var s=n.parent,u=n.parent.operatorToken.kind;if(u===63&&(r||s.right===n))t=s.left,a=t;else if((u===56||u===60)&&(e.isVariableDeclaration(s.parent)&&s.parent.initializer===s?(t=s.parent.name,a=s.parent):e.isBinaryExpression(s.parent)&&s.parent.operatorToken.kind===63&&(r||s.parent.right===s)&&(t=s.parent.left,a=t),!t||!e.isBindableStaticNameExpression(t)||!e.isSameEntityName(t,s.left)))return}else r&&e.isFunctionDeclaration(n)&&(t=n.name,a=n);if(!(!a||!t||!r&&!e.getExpandoInitializer(n,e.isPrototypeAccess(t))))return wt(a)}}function TN(n){if(!n.parent)return!1;for(var r=n.parent;r&&r.kind===204;)r=r.parent;if(r&&e.isBinaryExpression(r)&&e.isPrototypeAccess(r.left)&&r.operatorToken.kind===63){var t=e.getInitializerOfBinaryExpression(r);return e.isObjectLiteralExpression(t)&&t}}function SN(n,r){var t;zv(n,n.typeArguments)||WD(n.arguments);var a=N_(n,void 0,r);if(a===Go)return ri;if(sy(a,n),n.expression.kind===106)return Cr;if(n.kind===207){var s=a.declaration;if(s&&s.kind!==169&&s.kind!==173&&s.kind!==178&&!e.isJSDocConstructSignature(s)&&!Nu(s))return En&&Jn(n,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),cr}if(e.isInJSFile(n)&&f2(n))return ng(n.arguments[0]);var u=_o(a);if(u.flags&12288&&c2(n))return xE(e.walkUpParenthesizedExpressions(n.parent));if(n.kind===206&&!n.questionDotToken&&n.parent.kind===236&&u.flags&16384&&Cc(a)){if(!e.isDottedName(n.expression))Jn(n.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!Bh(n)){var S=Jn(n.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);Ev(n.expression,S)}}if(e.isInJSFile(n)){var F=oy(n,!1);if(!((t=F==null?void 0:F.exports)===null||t===void 0)&&t.size){var ve=qo(F,F.exports,e.emptyArray,e.emptyArray,e.emptyArray);return ve.objectFlags|=8192,Ro([u,ve])}}return u}function sy(n,r){if(n.declaration&&n.declaration.flags&134217728){var t=kv(r),a=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(r));mu(t,n.declaration,a,Rc(n))}}function kv(n){switch(n=e.skipParentheses(n),n.kind){case 206:case 163:case 207:return kv(n.expression);case 208:return kv(n.tag);case 278:case 277:return kv(n.tagName);case 205:return n.argumentExpression;case 204:return n.name;case 176:var r=n;return e.isQualifiedName(r.typeName)?r.typeName.right:r;default:return n}}function c2(n){if(!e.isCallExpression(n))return!1;var r=n.expression;if(e.isPropertyAccessExpression(r)&&r.name.escapedText==="for"&&(r=r.expression),!e.isIdentifier(r)||r.escapedText!=="Symbol")return!1;var t=dT(!1);return t?t===es(r,"Symbol",111551,void 0,void 0,!1):!1}function DN(n){if(WD(n.arguments)||lM(n),n.arguments.length===0)return Pv(n,cr);for(var r=n.arguments[0],t=ll(r),a=1;a<n.arguments.length;++a)ll(n.arguments[a]);(t.flags&32768||t.flags&65536||!mo(t,gr))&&Jn(r,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Lt(t));var s=wo(n,r);if(s){var u=Ls(s,r,!0,!1);if(u)return Pv(n,u2(kt(u),u,s))}return Pv(n,cr)}function u2(n,r,t){var a;if(Re&&n&&n!==J){var s=n;if(!s.syntheticType){var u=(a=t.declarations)===null||a===void 0?void 0:a.find(e.isSourceFile),S=Ti(u,t,!1);if(S){var F=e.createSymbolTable(),ve=fo(2097152,"default");ve.parent=t,ve.nameType=Jc("default"),ve.target=Ba(r),F.set("default",ve);var Ge=fo(2048,"__type"),Je=qo(Ge,F,e.emptyArray,e.emptyArray,e.emptyArray);Ge.type=Je,s.syntheticType=A_(n)?Dp(n,Je,Ge,0,!1):Je}else s.syntheticType=n}return s.syntheticType}return n}function f2(n){if(!e.isRequireCall(n,!0))return!1;if(!e.isIdentifier(n.expression))return e.Debug.fail();var r=es(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(r===$e)return!0;if(r.flags&2097152)return!1;var t=r.flags&16?254:r.flags&3?252:0;if(t!==0){var a=e.getDeclarationOfKind(r,t);return!!a&&!!(a.flags&8388608)}return!1}function LN(n){kP(n)||zv(n,n.typeArguments),we<2&&Bl(n,262144);var r=N_(n);return sy(r,n),_o(r)}function AN(n){return p2(n,n.type,n.expression)}function d2(n){switch(n.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 202:case 203:case 221:return!0;case 210:return d2(n.expression);case 217:var r=n.operator,t=n.operand;return r===40&&(t.kind===8||t.kind===9)||r===39&&t.kind===8;case 204:case 205:var a=n.expression;if(e.isIdentifier(a)){var s=Kc(a);return s&&s.flags&2097152&&(s=_i(s)),!!(s&&s.flags&384&&mm(s)===1)}}return!1}function p2(n,r,t,a){var s=vi(t,a);if(e.isConstTypeReference(r))return d2(t)||Jn(t,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),cc(s);ao(r),s=T_(ju(s));var u=Ra(r);if(M&&u!==J){var S=fc(s);h_(u,S)||aS(s,u,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 u}function CN(n){var r=vi(n.expression),t=pg(r,n.expression);return Ah(Rd(t),n,t!==r)}function xN(n){return n.flags&32?CN(n):Rd(vi(n.expression))}function IN(n){return XP(n),n.keywordToken===103?n1(n):n.keywordToken===100?NN(n):e.Debug.assertNever(n.keywordToken)}function m2(n){switch(n.keywordToken){case 100:return vL();case 103:var r=n1(n);return r===J?J:MN(r);default:e.Debug.assertNever(n.keywordToken)}}function n1(n){var r=e.getNewTargetContainer(n);if(r)if(r.kind===169){var t=wt(r.parent);return kt(t)}else{var t=wt(r);return kt(t)}else return Jn(n,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),J}function NN(n){pn!==e.ModuleKind.ES2020&&pn!==e.ModuleKind.ESNext&&pn!==e.ModuleKind.System&&Jn(n,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system);var r=e.getSourceFileOfNode(n);return e.Debug.assert(!!(r.flags&2097152),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?fT():J}function Tg(n){var r=kt(n);if(He){var t=n.valueDeclaration;if(t&&e.hasInitializer(t))return td(r)}return r}function ly(n){return e.Debug.assert(e.isIdentifier(n.name)),n.name.escapedText}function k_(n,r,t){var a=n.parameters.length-(N(n)?1:0);if(r<a)return n.parameters[r].escapedName;var s=n.parameters[a]||Xn,u=t||kt(s);if(ji(u)){var S=u.target.labeledElementDeclarations,F=r-a;return S&&ly(S[F])||s.escapedName+"_"+F}return s.escapedName}function kN(n,r){var t=n.parameters.length-(N(n)?1:0);if(r<t){var a=n.parameters[r];return _2(a)?[a.escapedName,!1]:void 0}var s=n.parameters[t]||Xn;if(_2(s)){var u=kt(s);if(ji(u)){var S=u.target.labeledElementDeclarations,F=r-t,ve=S==null?void 0:S[F],Ge=!!(ve!=null&&ve.dotDotDotToken);return ve?[ly(ve),Ge]:void 0}if(r===t)return[s.escapedName,!0]}}function _2(n){return n.valueDeclaration&&e.isParameter(n.valueDeclaration)&&e.isIdentifier(n.valueDeclaration.name)}function g2(n){return n.kind===195||e.isParameter(n)&&n.name&&e.isIdentifier(n.name)}function RN(n,r){var t=n.parameters.length-(N(n)?1:0);if(r<t){var a=n.parameters[r].valueDeclaration;return a&&g2(a)?a:void 0}var s=n.parameters[t]||Xn,u=kt(s);if(ji(u)){var S=u.target.labeledElementDeclarations,F=r-t;return S&&S[F]}return s.valueDeclaration&&g2(s.valueDeclaration)?s.valueDeclaration:void 0}function fu(n,r){return im(n,r)||cr}function im(n,r){var t=n.parameters.length-(N(n)?1:0);if(r<t)return Tg(n.parameters[r]);if(N(n)){var a=kt(n.parameters[t]),s=r-t;if(!ji(a)||a.target.hasRestElement||s<a.target.fixedLength)return Ec(a,Zf(s))}}function R_(n,r){var t=ac(n),a=Ju(n),s=Sg(n);if(s&&r>=t-1)return r===t-1?s:bl(Ec(s,Dr));for(var u=[],S=[],F=[],ve=r;ve<t;ve++){!s||ve<t-1?(u.push(fu(n,ve)),S.push(ve<a?1:2)):(u.push(s),S.push(8));var Ge=RN(n,ve);Ge&&F.push(Ge)}return Vu(u,S,!1,e.length(F)===e.length(u)?F:void 0)}function ac(n){var r=n.parameters.length;if(N(n)){var t=kt(n.parameters[r-1]);if(ji(t))return r+t.target.fixedLength-(t.target.hasRestElement?0:1)}return r}function Ju(n,r){var t=r&1,a=r&2;if(a||n.resolvedMinArgumentCount===void 0){var s=void 0;if(N(n)){var u=kt(n.parameters[n.parameters.length-1]);if(ji(u)){var S=e.findIndex(u.target.elementFlags,function(Je){return!(Je&1)}),F=S<0?u.target.fixedLength:S;F>0&&(s=n.parameters.length-1+F)}}if(s===void 0){if(!t&&n.flags&32)return 0;s=n.minArgumentCount}if(a)return s;for(var ve=s-1;ve>=0;ve--){var Ge=fu(n,ve);if(Nl(Ge,K0).flags&131072)break;s=ve}n.resolvedMinArgumentCount=s}return n.resolvedMinArgumentCount}function Ku(n){if(N(n)){var r=kt(n.parameters[n.parameters.length-1]);return!ji(r)||r.target.hasRestElement}return!1}function Sg(n){if(N(n)){var r=kt(n.parameters[n.parameters.length-1]);if(!ji(r))return r;if(r.target.hasRestElement)return sg(r,r.target.fixedLength)}}function Dg(n){var r=Sg(n);return r&&!Gl(r)&&!no(r)&&!(iu(r).flags&131072)?r:void 0}function r1(n){return t1(n,Jt)}function t1(n,r){return n.parameters.length>0?fu(n,0):r}function ON(n,r,t){for(var a=n.parameters.length-(N(n)?1:0),s=0;s<a;s++){var u=n.parameters[s].valueDeclaration;if(u.type){var S=e.getEffectiveTypeAnnotationNode(u);S&&Lf(t.inferences,Ra(S),fu(r,s))}}var F=Sg(r);if(F&&F.flags&262144){var ve=Fm(r,t.nonFixingMapper);v2(n,ve);var Ge=ac(r)-1;Lf(t.inferences,R_(n,Ge),F)}}function v2(n,r){if(r.typeParameters)if(!n.typeParameters)n.typeParameters=r.typeParameters;else return;if(r.thisParameter){var t=n.thisParameter;(!t||t.valueDeclaration&&!t.valueDeclaration.type)&&(t||(n.thisParameter=Sm(r.thisParameter,void 0)),Rv(n.thisParameter,kt(r.thisParameter)))}for(var a=n.parameters.length-(N(n)?1:0),s=0;s<a;s++){var t=n.parameters[s];if(!e.getEffectiveTypeAnnotationNode(t.valueDeclaration)){var u=im(r,s);Rv(t,u)}}if(N(n)){var t=e.last(n.parameters);if(e.isTransientSymbol(t)||!e.getEffectiveTypeAnnotationNode(t.valueDeclaration)){var u=R_(r,a);Rv(t,u)}}}function PN(n){n.thisParameter&&Rv(n.thisParameter);for(var r=0,t=n.parameters;r<t.length;r++){var a=t[r];Rv(a)}}function Rv(n,r){var t=Za(n);if(!t.type){var a=n.valueDeclaration;t.type=r||Cd(a,!0),a.name.kind!==79&&(t.type===cn&&(t.type=Ad(a.name)),h2(a.name))}}function h2(n){for(var r=0,t=n.elements;r<t.length;r++){var a=t[r];e.isOmittedExpression(a)||(a.name.kind===79?Za(wt(a)).type=ya(a):h2(a.name))}}function Ov(n){var r=fh(!0);return r!==or?(n=ku(n)||cn,Yf(r,[n])):cn}function y2(n){var r=yL(!0);return r!==or?(n=ku(n)||cn,Yf(r,[n])):cn}function Pv(n,r){var t=Ov(r);return t===cn?(Jn(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),J):(cE(!0)||Jn(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),t)}function MN(n){var r=fo(0,"NewTargetExpression"),t=fo(4,"target",8);t.parent=r,t.type=n;var a=e.createSymbolTable([t]);return r.members=a,qo(r,a,e.emptyArray,e.emptyArray,e.emptyArray)}function cy(n,r){if(!n.body)return J;var t=e.getFunctionFlags(n),a=(t&2)!==0,s=(t&1)!==0,u,S,F,ve=Cr;if(n.body.kind!==233)u=ll(n.body,r&&r&-9),a&&(u=Ng(u,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(s){var Ge=D2(n,r);Ge?Ge.length>0&&(u=Sa(Ge,2)):ve=Jt;var Je=wN(n,r),Xe=Je.yieldTypes,tn=Je.nextTypes;S=e.some(Xe)?Sa(Xe,2):void 0,F=e.some(tn)?Ro(tn):void 0}else{var Dn=D2(n,r);if(!Dn)return t&2?Pv(n,Jt):Jt;if(Dn.length===0)return t&2?Pv(n,Cr):Cr;u=Sa(Dn,2)}if(u||S||F){if(S&&Ih(n,S,3),u&&Ih(n,u,1),F&&Ih(n,F,2),u&&Wu(u)||S&&Wu(S)||F&&Wu(F)){var nr=Pb(n),sr=nr?nr===su(n)?s?void 0:u:Jh(_o(nr),n):void 0;s?(S=QE(S,sr,0,a),u=QE(u,sr,1,a),F=QE(F,sr,2,a)):u=EC(u,sr,a)}S&&(S=fc(S)),u&&(u=fc(u)),F&&(F=fc(F))}return s?E2(S||Jt,u||ve,F||d0(2,n)||cn,a):a?Ov(u||ve):u||ve}function E2(n,r,t,a){var s=a?Da:$a,u=s.getGlobalGeneratorType(!1);if(n=s.resolveIterationType(n,void 0)||cn,r=s.resolveIterationType(r,void 0)||cn,t=s.resolveIterationType(t,void 0)||cn,u===or){var S=s.getGlobalIterableIteratorType(!1),F=S!==or?cD(S,s):void 0,ve=F?F.returnType:cr,Ge=F?F.nextType:Rn;return mo(r,ve)&&mo(Ge,t)?S!==or?og(S,[n]):(s.getGlobalIterableIteratorType(!0),Lr):(s.getGlobalGeneratorType(!0),Lr)}return og(u,[n,r,t])}function wN(n,r){var t=[],a=[],s=(e.getFunctionFlags(n)&2)!==0;return e.forEachYieldExpression(n.body,function(u){var S=u.expression?vi(u.expression,r):Ye;e.pushIfUnique(t,b2(u,S,cr,s));var F;if(u.asteriskToken){var ve=jv(S,s?19:17,u.expression);F=ve&&ve.nextType}else F=uu(u);F&&e.pushIfUnique(a,F)}),{yieldTypes:t,nextTypes:a}}function b2(n,r,t,a){var s=n.expression||n,u=n.asteriskToken?Pd(a?19:17,r,t,s):r;return a?ku(u,s,n.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):u}function a1(n,r,t,a){var s=0;if(a){for(var u=r;u<t.length;u++)s|=_e.get(t[u])||32768;for(var u=n;u<r;u++)s&=~(_e.get(t[u])||0);for(var u=0;u<n;u++)s|=_e.get(t[u])||32768}else{for(var u=n;u<r;u++)s|=de.get(t[u])||128;for(var u=0;u<n;u++)s&=~(de.get(t[u])||0)}return s}function T2(n){var r=da(n);return r.isExhaustive!==void 0?r.isExhaustive:r.isExhaustive=FN(n)}function FN(n){if(n.expression.kind===214){var r=kl(n.expression.expression),t=qS(n,!1),a=a1(0,0,t,!0),s=Xl(r)||r;return s.flags&3?(556800&a)===556800:!!(Nl(s,function(F){return(cp(F)&a)===a}).flags&131072)}var u=kl(n.expression);if(!Gm(u))return!1;var S=Mh(n);return!S.length||e.some(S,hC)?!1:lx(Ps(u,cc),S)}function S2(n){return n.endFlowNode&&bv(n.endFlowNode)}function D2(n,r){var t=e.getFunctionFlags(n),a=[],s=S2(n),u=!1;if(e.forEachReturnStatement(n.body,function(S){var F=S.expression;if(F){var ve=ll(F,r&&r&-9);t&2&&(ve=Ng(ve,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),ve.flags&131072&&(u=!0),e.pushIfUnique(a,ve)}else s=!0}),!(a.length===0&&!s&&(u||GN(n))))return He&&a.length&&s&&!(Nu(n)&&a.some(function(S){return S.symbol===n.symbol}))&&e.pushIfUnique(a,Rn),a}function GN(n){switch(n.kind){case 211:case 212:return!0;case 167:return n.parent.kind===203;default:return!1}}function i1(n,r){if(M){var t=e.getFunctionFlags(n),a=r&&Ey(r,t);if(!(a&&bs(a,16385))&&!(n.kind===166||e.nodeIsMissing(n.body)||n.body.kind!==233||!S2(n))){var s=n.flags&512,u=e.getEffectiveReturnTypeNode(n)||n;if(a&&a.flags&131072)Jn(u,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(a&&!s)Jn(u,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(a&&He&&!mo(Rn,a))Jn(u,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(pe.noImplicitReturns){if(!a){if(!s)return;var S=_o(su(n));if(gD(n,S))return}Jn(u,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function L2(n,r){if(e.Debug.assert(n.kind!==167||e.isObjectLiteralMethod(n)),Og(n),e.isFunctionExpression(n)&&w_(n,n.name),r&&r&4&&Au(n)){if(!e.getEffectiveReturnTypeNode(n)&&!e.hasContextSensitiveParameters(n)){var t=Lv(n);if(t&&_g(_o(t))){var a=da(n);if(a.contextFreeType)return a.contextFreeType;var s=cy(n,r),u=Tu(void 0,void 0,void 0,e.emptyArray,s,void 0,0,0),S=qo(n.symbol,Ne,[u],e.emptyArray,e.emptyArray);return S.objectFlags|=524288,a.contextFreeType=S}}return $t}var F=Ry(n);return!F&&n.kind===211&&B1(n),BN(n,r),kt(wt(n))}function BN(n,r){var t=da(n);if(!(t.flags&1024)){var a=Lv(n);if(!(t.flags&1024)){t.flags|=1024;var s=e.firstOrUndefined(zr(kt(wt(n)),0));if(!s)return;if(Au(n))if(a){var u=yg(n);r&&r&2&&ON(s,a,u);var S=u?Fm(a,u.mapper):a;v2(s,S)}else PN(s);if(a&&!bp(n)&&!s.resolvedReturnType){var F=cy(n,r);s.resolvedReturnType||(s.resolvedReturnType=F)}Cg(n)}}}function UN(n){e.Debug.assert(n.kind!==167||e.isObjectLiteralMethod(n));var r=e.getFunctionFlags(n),t=bp(n);if(i1(n,t),n.body)if(e.getEffectiveReturnTypeNode(n)||_o(su(n)),n.body.kind===233)ao(n.body);else{var a=vi(n.body),s=t&&Ey(t,r);if(s)if((r&3)===2){var u=Ng(a,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);sp(u,s,n.body,n.body)}else sp(a,s,n.body,n.body)}}function uy(n,r,t,a){if(a===void 0&&(a=!1),!mo(r,Hr)){var s=a&&Ig(r);return Rs(n,!!s&&mo(s,Hr),t),!1}return!0}function VN(n){if(!e.isCallExpression(n)||!e.isBindableObjectDefinePropertyCall(n))return!1;var r=ll(n.arguments[2]),t=Os(r,"value");if(t){var a=wn(r,"writable"),s=a&&kt(a);if(!s||s===ft||s===xt)return!0;if(a&&a.valueDeclaration&&e.isPropertyAssignment(a.valueDeclaration)){var u=a.valueDeclaration.initializer,S=vi(u);if(S===ft||S===xt)return!0}return!1}var F=wn(r,"set");return!F}function df(n){return!!(e.getCheckFlags(n)&8||n.flags&4&&e.getDeclarationModifierFlagsFromSymbol(n)&64||n.flags&3&&Eg(n)&2||n.flags&98304&&!(n.flags&65536)||n.flags&8||e.some(n.declarations,VN))}function A2(n,r,t){var a,s;if(t===0)return!1;if(df(r)){if(r.flags&4&&e.isAccessExpression(n)&&n.expression.kind===108){var u=e.getContainingFunction(n);if(!(u&&(u.kind===169||Nu(u))))return!0;if(r.valueDeclaration){var S=e.isBinaryExpression(r.valueDeclaration),F=u.parent===r.valueDeclaration.parent,ve=u===r.valueDeclaration.parent,Ge=S&&((a=r.parent)===null||a===void 0?void 0:a.valueDeclaration)===u.parent,Je=S&&((s=r.parent)===null||s===void 0?void 0:s.valueDeclaration)===u,Xe=F||ve||Ge||Je;return!Xe}}return!0}if(e.isAccessExpression(n)){var tn=e.skipParentheses(n.expression);if(tn.kind===79){var Dn=da(tn).resolvedSymbol;if(Dn.flags&2097152){var nr=Jl(Dn);return!!nr&&nr.kind===266}}}return!1}function Lg(n,r,t){var a=e.skipOuterExpressions(n,7);return a.kind!==79&&!e.isAccessExpression(a)?(Jn(n,r),!1):a.flags&32?(Jn(n,t),!1):!0}function WN(n){vi(n.expression);var r=e.skipParentheses(n.expression);if(!e.isAccessExpression(r))return Jn(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Ur;e.isPropertyAccessExpression(r)&&e.isPrivateIdentifier(r.name)&&Jn(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var t=da(r),a=$c(t.resolvedSymbol);return a&&(df(a)&&Jn(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),jN(r,a)),Ur}function jN(n,r){var t=kt(r);He&&!(t.flags&131075)&&!($n?r.flags&16777216:wc(t)&32768)&&Jn(n,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)}function HN(n){return vi(n.expression),wa}function JN(n){return vi(n.expression),Ye}function KN(n){if(M){var r=e.getContainingFunctionOrClassStaticBlock(n);if(r&&e.isClassStaticBlockDeclaration(r))Jn(n,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(n.flags&32768))if(e.isInTopLevelContext(n)){var t=e.getSourceFileOfNode(n);if(!lm(t)){var a=void 0;if(!e.isEffectiveExternalModule(t,pe)){a||(a=e.getSpanOfTokenAtPosition(t,n.pos));var s=e.createFileDiagnostic(t,a.start,a.length,e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);zt.add(s)}if(pn!==e.ModuleKind.ESNext&&pn!==e.ModuleKind.System||we<4){a=e.getSpanOfTokenAtPosition(t,n.pos);var s=e.createFileDiagnostic(t,a.start,a.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher);zt.add(s)}}}else{var t=e.getSourceFileOfNode(n);if(!lm(t)){var a=e.getSpanOfTokenAtPosition(t,n.pos),s=e.createFileDiagnostic(t,a.start,a.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(r&&r.kind!==169&&!(e.getFunctionFlags(r)&2)){var u=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(s,u)}zt.add(s)}}Cb(n)&&Jn(n,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var S=vi(n.expression),F=Ng(S,n,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return F===S&&F!==J&&!(S.flags&3)&&zo(!1,e.createDiagnosticForNode(n,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),F}function zN(n){var r=vi(n.operand);if(r===Ot)return Ot;switch(n.operand.kind){case 8:switch(n.operator){case 40:return wm(Zf(-n.operand.text));case 39:return wm(Zf(+n.operand.text))}break;case 9:if(n.operator===40)return wm(CE({negative:!0,base10Value:e.parsePseudoBigInt(n.operand.text)}))}switch(n.operator){case 39:case 40:case 54:return Iu(r,n.operand),bs(r,12288)&&Jn(n.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(n.operator)),n.operator===39?(bs(r,2112)&&Jn(n.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(n.operator),Lt(ju(r))),Dr):o1(r);case 53:F_(n.operand);var t=cp(r)&12582912;return t===4194304?ft:t===8388608?Kr:Ur;case 45:case 46:var a=uy(n.operand,Iu(r,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return a&&Lg(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),o1(r)}return J}function qN(n){var r=vi(n.operand);if(r===Ot)return Ot;var t=uy(n.operand,Iu(r,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return t&&Lg(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),o1(r)}function o1(n){return bs(n,2112)?qs(n,3)||bs(n,296)?Hr:qr:Dr}function bs(n,r){if(n.flags&r)return!0;if(n.flags&3145728)for(var t=n.types,a=0,s=t;a<s.length;a++){var u=s[a];if(bs(u,r))return!0}return!1}function qs(n,r,t){return n.flags&r?!0:t&&n.flags&114691?!1:!!(r&296)&&mo(n,Dr)||!!(r&2112)&&mo(n,qr)||!!(r&402653316)&&mo(n,gr)||!!(r&528)&&mo(n,Ur)||!!(r&16384)&&mo(n,Cr)||!!(r&131072)&&mo(n,Jt)||!!(r&65536)&&mo(n,zn)||!!(r&32768)&&mo(n,Rn)||!!(r&4096)&&mo(n,qt)||!!(r&67108864)&&mo(n,za)}function Ag(n,r,t){return n.flags&1048576?e.every(n.types,function(a){return Ag(a,r,t)}):qs(n,r,t)}function s1(n){return!!(e.getObjectFlags(n)&16)&&!!n.symbol&&l1(n.symbol)}function l1(n){return(n.flags&128)!==0}function XN(n,r,t,a){return t===Ot||a===Ot?Ot:(!no(t)&&Ag(t,131068)&&Jn(n,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),no(a)||O1(a)||ed(a,Jo)||Jn(r,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),Ur)}function YN(n,r,t,a){if(t===Ot||a===Ot)return Ot;t=Iu(t,n),a=Iu(a,r),Ag(t,402665900)||qs(t,407109632)||Jn(n,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol);var s=Ep(a);return(!Ag(a,126091264)||s&&(qs(a,3145728)&&!Ag(s,126091264)||!bs(s,126615552)))&&Jn(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),Ur}function QN(n,r,t){var a=n.properties;if(He&&a.length===0)return Iu(r,n);for(var s=0;s<a.length;s++)C2(n,r,s,a,t);return r}function C2(n,r,t,a,s){s===void 0&&(s=!1);var u=n.properties,S=u[t];if(S.kind===291||S.kind===292){var F=S.name,ve=tp(F);if(Gi(ve)){var Ge=ql(ve),Je=wn(r,Ge);Je&&($h(Je,S,s),Yh(S,!1,!0,r,Je))}var Xe=Ec(r,ve,32,F),tn=bf(S,Xe);return om(S.kind===292?S:S.initializer,tn)}else if(S.kind===293)if(t<u.length-1)Jn(S,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{we<99&&Bl(S,4);var Dn=[];if(a)for(var nr=0,sr=a;nr<sr.length;nr++){var Ir=sr[nr];e.isSpreadAssignment(Ir)||Dn.push(Ir.name)}var tn=Ld(r,Dn,r.symbol);return Am(a,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),om(S.expression,tn)}else Jn(S,e.Diagnostics.Property_assignment_expected)}function ZN(n,r,t){var a=n.elements;we<2&&pe.downlevelIteration&&Bl(n,512);for(var s=Pd(193,r,Rn,n)||J,u=pe.noUncheckedIndexedAccess?void 0:s,S=0;S<a.length;S++){var F=s;n.elements[S].kind===223&&(F=u=u!=null?u:Pd(65,r,Rn,n)||J),x2(n,r,S,F,t)}return r}function x2(n,r,t,a,s){var u=n.elements,S=u[t];if(S.kind!==225){if(S.kind!==223){var F=Zf(t);if(lp(r)){var ve=32|(L_(S)?16:0),Ge=ap(r,F,ve,kp(S,F))||J,Je=L_(S)?gl(Ge,524288):Ge,Xe=bf(S,Je);return om(S,Xe,s)}return om(S,a,s)}if(t<u.length-1)Jn(S,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var tn=S.expression;if(tn.kind===219&&tn.operatorToken.kind===63)Jn(tn.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer);else{Am(n.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);var Xe=ad(r,ji)?Ps(r,function(nr){return sg(nr,t)}):bl(a);return om(tn,Xe,s)}}}}function om(n,r,t,a){var s;if(n.kind===292){var u=n;u.objectAssignmentInitializer&&(He&&!(wc(vi(u.objectAssignmentInitializer))&32768)&&(r=gl(r,524288)),rk(u.name,u.equalsToken,u.objectAssignmentInitializer,t)),s=n.name}else s=n;return s.kind===219&&s.operatorToken.kind===63&&(Vn(s,t),s=s.left),s.kind===203?QN(s,r,a):s.kind===202?ZN(s,r,t):$N(s,r,t)}function $N(n,r,t){var a=vi(n,t),s=n.parent.kind===293?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,u=n.parent.kind===293?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 Lg(n,s,u)&&sp(r,a,n,n),e.isPrivateIdentifierPropertyAccessExpression(n)&&Bl(n.parent,1048576),r}function Mv(n){switch(n=e.skipParentheses(n),n.kind){case 79:case 10:case 13:case 208:case 221:case 14:case 8:case 9:case 110:case 95:case 104:case 151:case 211:case 224:case 212:case 202:case 203:case 214:case 228:case 277:case 276:return!0;case 220:return Mv(n.whenTrue)&&Mv(n.whenFalse);case 219:return e.isAssignmentOperator(n.operatorToken.kind)?!1:Mv(n.left)&&Mv(n.right);case 217:case 218:switch(n.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 215:case 209:case 227:default:return!1}}function c1(n,r){return(r.flags&98304)!==0||h_(n,r)}function ek(){var n=e.createBinaryExpressionTrampoline(r,t,a,s,u,S);return function(tn,Dn){var nr=n(tn,Dn);return e.Debug.assertIsDefined(nr),nr};function r(tn,Dn,nr){if(Dn?(Dn.stackIndex++,Dn.skip=!1,Ge(Dn,void 0),Xe(Dn,void 0)):Dn={checkMode:nr,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},e.isInJSFile(tn)&&e.getAssignedExpandoInitializer(tn))return Dn.skip=!0,Xe(Dn,vi(tn.right,nr)),Dn;nk(tn);var sr=tn.operatorToken.kind;return sr===63&&(tn.left.kind===203||tn.left.kind===202)&&(Dn.skip=!0,Xe(Dn,om(tn.left,vi(tn.right,nr),nr,tn.right.kind===108))),Dn}function t(tn,Dn,nr){if(!Dn.skip)return F(Dn,tn)}function a(tn,Dn,nr){if(!Dn.skip){var sr=Je(Dn);e.Debug.assertIsDefined(sr),Ge(Dn,sr),Xe(Dn,void 0);var Ir=tn.kind;if(Ir===55||Ir===56||Ir===60){if(Ir===55){var xr=e.walkUpParenthesizedExpressions(nr.parent);b1(nr.left,sr,e.isIfStatement(xr)?xr.thenStatement:void 0)}tD(sr,nr.left)}}}function s(tn,Dn,nr){if(!Dn.skip)return F(Dn,tn)}function u(tn,Dn){var nr;if(Dn.skip)nr=Je(Dn);else{var sr=ve(Dn);e.Debug.assertIsDefined(sr);var Ir=Je(Dn);e.Debug.assertIsDefined(Ir),nr=I2(tn.left,tn.operatorToken,tn.right,sr,Ir,tn)}return Dn.skip=!1,Ge(Dn,void 0),Xe(Dn,void 0),Dn.stackIndex--,nr}function S(tn,Dn,nr){return Xe(tn,Dn),tn}function F(tn,Dn){if(e.isBinaryExpression(Dn))return Dn;Xe(tn,vi(Dn,tn.checkMode))}function ve(tn){return tn.typeStack[tn.stackIndex]}function Ge(tn,Dn){tn.typeStack[tn.stackIndex]=Dn}function Je(tn){return tn.typeStack[tn.stackIndex+1]}function Xe(tn,Dn){tn.typeStack[tn.stackIndex+1]=Dn}}function nk(n){var r=n.left,t=n.operatorToken,a=n.right;t.kind===60&&(e.isBinaryExpression(r)&&(r.operatorToken.kind===56||r.operatorToken.kind===55)&&At(r,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(r.operatorToken.kind),e.tokenToString(t.kind)),e.isBinaryExpression(a)&&(a.operatorToken.kind===56||a.operatorToken.kind===55)&&At(a,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(a.operatorToken.kind),e.tokenToString(t.kind)))}function rk(n,r,t,a,s){var u=r.kind;if(u===63&&(n.kind===203||n.kind===202))return om(n,vi(t,a),a,t.kind===108);var S;u===55||u===56||u===60?S=F_(n,a):S=vi(n,a);var F=vi(t,a);return I2(n,r,t,S,F,s)}function I2(n,r,t,a,s,u){var S=r.kind;switch(S){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(a===Ot||s===Ot)return Ot;a=Iu(a,n),s=Iu(s,t);var F=void 0;if(a.flags&528&&s.flags&528&&(F=ai(r.kind))!==void 0)return Jn(u||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(F)),Dr;var ve=uy(n,a,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Ge=uy(t,s,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Je;if(qs(a,3)&&qs(s,3)||!(bs(a,2112)||bs(s,2112)))Je=Dr;else if(_t(a,s)){switch(S){case 49:case 72:xo();break;case 42:case 67:we<3&&Jn(u,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}Je=qr}else xo(_t),Je=J;return ve&&Ge&&Hi(Je),Je;case 39:case 64:if(a===Ot||s===Ot)return Ot;!qs(a,402653316)&&!qs(s,402653316)&&(a=Iu(a,n),s=Iu(s,t));var Xe=void 0;if(qs(a,296,!0)&&qs(s,296,!0)?Xe=Dr:qs(a,2112,!0)&&qs(s,2112,!0)?Xe=qr:qs(a,402653316,!0)||qs(s,402653316,!0)?Xe=gr:(no(a)||no(s))&&(Xe=a===J||s===J?J:cr),Xe&&!mi(S))return Xe;if(!Xe){var tn=402655727;return xo(function(Pr,Aa){return qs(Pr,tn)&&qs(Aa,tn)}),cr}return S===64&&Hi(Xe),Xe;case 29:case 31:case 32:case 33:return mi(S)&&(a=ju(Iu(a,n)),s=ju(Iu(s,t)),go(function(Pr,Aa){return h_(Pr,Aa)||h_(Aa,Pr)||mo(Pr,Hr)&&mo(Aa,Hr)})),Ur;case 34:case 35:case 36:case 37:return go(function(Pr,Aa){return c1(Pr,Aa)||c1(Aa,Pr)}),Ur;case 102:return XN(n,t,a,s);case 101:return YN(n,t,a,s);case 55:case 76:{var Dn=cp(a)&4194304?Sa([SC(He?a:ju(s)),s]):a;return S===76&&Hi(s),Dn}case 56:case 75:{var nr=cp(a)&8388608?Sa([bS(a),s],2):a;return S===75&&Hi(s),nr}case 60:case 77:{var sr=cp(a)&262144?Sa([Rd(a),s],2):a;return S===77&&Hi(s),sr}case 63:var Ir=e.isBinaryExpression(n.parent)?e.getAssignmentDeclarationKind(n.parent):0;return Ta(Ir,s),ii(Ir)?((!(s.flags&524288)||Ir!==2&&Ir!==6&&!nd(s)&&!vb(s)&&!(e.getObjectFlags(s)&1))&&Hi(s),a):(Hi(s),T_(s));case 27:if(!pe.allowUnreachableCode&&Mv(n)&&!sa(t)){var xr=e.getSourceFileOfNode(n),Gr=xr.text,ct=e.skipTrivia(Gr,n.pos),Vt=xr.parseDiagnostics.some(function(Pr){return Pr.code!==e.Diagnostics.JSX_expressions_must_have_one_parent_element.code?!1:e.textSpanContainsPosition(Pr,ct)});Vt||Jn(n,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return s;default:return e.Debug.fail()}function _t(Pr,Aa){return qs(Pr,2112)&&qs(Aa,2112)}function Ta(Pr,Aa){if(Pr===2)for(var Ga=0,na=qf(Aa);Ga<na.length;Ga++){var si=na[Ga],jt=kt(si);if(jt.symbol&&jt.symbol.flags&32){var Ji=si.escapedName,Wi=es(si.valueDeclaration,Ji,788968,void 0,Ji,!1);Wi!=null&&Wi.declarations&&Wi.declarations.some(e.isJSDocTypedefTag)&&(gu(Wi,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(Ji),si),gu(si,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(Ji),Wi))}}}function sa(Pr){return Pr.kind===79&&Pr.escapedText==="eval"}function mi(Pr){var Aa=bs(a,12288)?n:bs(s,12288)?t:void 0;return Aa?(Jn(Aa,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(Pr)),!1):!0}function ai(Pr){switch(Pr){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}function Hi(Pr){M&&e.isAssignmentOperator(S)&&Lg(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")&&sp(Pr,a,n,t)}function ii(Pr){var Aa;switch(Pr){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var Ga=wt(n),na=e.getAssignedExpandoInitializer(t);return!!na&&e.isObjectLiteralExpression(na)&&!!(!((Aa=Ga==null?void 0:Ga.exports)===null||Aa===void 0)&&Aa.size);default:return!1}}function go(Pr){return Pr(a,s)?!1:(xo(Pr),!0)}function xo(Pr){var Aa,Ga=!1,na=u||r;if(Pr){var si=ku(a),jt=ku(s);Ga=!(si===a&&jt===s)&&!!(si&&jt)&&Pr(si,jt)}var Ji=a,Wi=s;!Ga&&Pr&&(Aa=tk(a,s,Pr),Ji=Aa[0],Wi=Aa[1]);var rr=Vf(Ji,Wi),yn=rr[0],pt=rr[1];Yr(na,Ga,yn,pt)||Rs(na,Ga,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(r.kind),yn,pt)}function Yr(Pr,Aa,Ga,na){var si;switch(r.kind){case 36:case 34:si="false";break;case 37:case 35:si="true"}if(si)return Rs(Pr,Aa,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,si,Ga,na)}}function tk(n,r,t){var a=n,s=r,u=ju(n),S=ju(r);return t(u,S)||(a=u,s=S),[a,s]}function ak(n){M&&(n.flags&8192||Sl(n,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),Cb(n)&&Jn(n,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var r=e.getContainingFunction(n);if(!r)return cr;var t=e.getFunctionFlags(r);if(!(t&1))return cr;var a=(t&2)!==0;n.asteriskToken&&(a&&we<99&&Bl(n,26624),!a&&we<2&&pe.downlevelIteration&&Bl(n,256));var s=bp(r),u=s&&_D(s,a),S=u&&u.yieldType||cr,F=u&&u.nextType||cr,ve=a?ku(F)||cr:F,Ge=n.expression?vi(n.expression):Ye,Je=b2(n,Ge,ve,a);if(s&&Je&&sp(Je,S,n.expression||n,n.expression),n.asteriskToken){var Xe=a?19:17;return iD(Xe,1,Ge,n.expression)||cr}else if(s)return Xm(2,s,a)||cr;var tn=d0(2,r);if(!tn&&(tn=cr,M&&En&&!e.expressionResultIsUnused(n))){var Dn=uu(n);(!Dn||no(Dn))&&Jn(n,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}return tn}function ik(n,r){var t=F_(n.condition);b1(n.condition,t,n.whenTrue);var a=vi(n.whenTrue,r),s=vi(n.whenFalse,r);return Sa([a,s],2)}function N2(n){var r=n.parent;return e.isParenthesizedExpression(r)&&N2(r)||e.isElementAccessExpression(r)&&r.argumentExpression===n}function ok(n){for(var r=[n.head.text],t=[],a=0,s=n.templateSpans;a<s.length;a++){var u=s[a],S=vi(u.expression);bs(S,12288)&&Jn(u.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),r.push(u.literal.text),t.push(mo(S,Wt)?S:gr)}return O_(n)||N2(n)||D_(uu(n)||cn,sk)?g_(r,t):gr}function sk(n){return!!(n.flags&134217856||n.flags&58982400&&bs(Xl(n)||cn,402653316))}function lk(n){return n.kind===284&&!e.isJsxSelfClosingElement(n.parent)?n.parent.parent:n}function qm(n,r,t,a){var s=lk(n),u=s.contextualType,S=s.inferenceContext;try{s.contextualType=r,s.inferenceContext=t;var F=vi(n,a|1|(t?2:0)),ve=bs(F,2944)&&fy(F,Jh(r,n))?cc(F):F;return ve}finally{s.contextualType=u,s.inferenceContext=S}}function ll(n,r){var t=da(n);if(!t.resolvedType){if(r&&r!==0)return vi(n,r);var a=ge,s=ha;ge=Kn,ha=void 0,t.resolvedType=vi(n,r),ha=s,ge=a}return t.resolvedType}function ck(n){return n=e.skipParentheses(n),n.kind===209||n.kind===227}function wv(n,r){var t=e.getEffectiveInitializer(n),a=w2(t)||(r?qm(t,r,void 0,0):ll(t));return e.isParameter(n)&&n.name.kind===200&&ji(a)&&!a.target.hasRestElement&&rp(a)<n.name.elements.length?uk(a,n.name):a}function uk(n,r){for(var t=r.elements,a=Co(n).slice(),s=n.target.elementFlags.slice(),u=rp(n);u<t.length;u++){var S=t[u];(u<t.length-1||!(S.kind===201&&S.dotDotDotToken))&&(a.push(!e.isOmittedExpression(S)&&L_(S)?dm(S,!1,!1):cr),s.push(2),!e.isOmittedExpression(S)&&!L_(S)&&Cp(S,cr))}return Vu(a,s,n.target.readonly)}function u1(n,r){var t=e.getCombinedNodeFlags(n)&2||e.isDeclarationReadonly(n)?r:Ap(r);if(e.isInJSFile(n)){if(_S(t))return Cp(n,cr),cr;if(XE(t))return Cp(n,dn),dn}return t}function fy(n,r){if(r){if(r.flags&3145728){var t=r.types;return e.some(t,function(s){return fy(n,s)})}if(r.flags&58982400){var a=Xl(r)||cn;return bs(a,4)&&bs(n,128)||bs(a,8)&&bs(n,256)||bs(a,64)&&bs(n,2048)||bs(a,4096)&&bs(n,8192)||fy(n,a)}return!!(r.flags&406847616&&bs(n,128)||r.flags&256&&bs(n,256)||r.flags&2048&&bs(n,2048)||r.flags&512&&bs(n,512)||r.flags&8192&&bs(n,8192))}return!1}function O_(n){var r=n.parent;return e.isAssertionExpression(r)&&e.isConstTypeReference(r.type)||(e.isParenthesizedExpression(r)||e.isArrayLiteralExpression(r)||e.isSpreadElement(r))&&O_(r)||(e.isPropertyAssignment(r)||e.isShorthandPropertyAssignment(r)||e.isTemplateSpan(r))&&O_(r.parent)}function P_(n,r,t,a){var s=vi(n,r,a);return O_(n)?cc(s):ck(n)?s:YE(s,Jh(arguments.length===2?uu(n):t,n))}function k2(n,r){return n.name.kind===160&&od(n.name),P_(n.initializer,r)}function R2(n,r){zD(n),n.name.kind===160&&od(n.name);var t=L2(n,r);return O2(n,t,r)}function O2(n,r,t){if(t&&t&10){var a=bg(r,0,!0),s=bg(r,1,!0),u=a||s;if(u&&u.typeParameters){var S=Ip(n,2);if(S){var F=bg(Rd(S),a?0:1,!1);if(F&&!F.typeParameters){if(t&8)return P2(n,t),$t;var ve=yg(n),Ge=ve.signature&&_o(ve.signature),Je=Ge&&q0(Ge);if(Je&&!Je.typeParameters&&!e.every(ve.inferences,Lm)){var Xe=pk(ve,u.typeParameters),tn=aE(u,Xe),Dn=e.map(ve.inferences,function(nr){return ob(nr.typeParameter)});if(tb(tn,F,function(nr,sr){Lf(Dn,nr,sr,0,!0)}),e.some(Dn,Lm)&&(ab(tn,F,function(nr,sr){Lf(Dn,nr,sr)}),!fk(ve.inferences,Dn)))return dk(ve.inferences,Dn),ve.inferredTypeParameters=e.concatenate(ve.inferredTypeParameters,Xe),f_(tn)}return f_(X0(u,F,ve))}}}}return r}function P2(n,r){if(r&2){var t=yg(n);t.flags|=4}}function Lm(n){return!!(n.candidates||n.contraCandidates)}function fk(n,r){for(var t=0;t<n.length;t++)if(Lm(n[t])&&Lm(r[t]))return!0;return!1}function dk(n,r){for(var t=0;t<n.length;t++)!Lm(n[t])&&Lm(r[t])&&(n[t]=r[t])}function pk(n,r){for(var t=[],a,s,u=0,S=r;u<S.length;u++){var F=S[u],ve=F.symbol.escapedName;if(f1(n.inferredTypeParameters,ve)||f1(t,ve)){var Ge=mk(e.concatenate(n.inferredTypeParameters,t),ve),Je=fo(262144,Ge),Xe=Uc(Je);Xe.target=F,a=e.append(a,F),s=e.append(s,Xe),t.push(Xe)}else t.push(F)}if(s)for(var tn=uc(a,s),Dn=0,nr=s;Dn<nr.length;Dn++){var F=nr[Dn];F.mapper=tn}return t}function f1(n,r){return e.some(n,function(t){return t.symbol.escapedName===r})}function mk(n,r){for(var t=r.length;t>1&&r.charCodeAt(t-1)>=48&&r.charCodeAt(t-1)<=57;)t--;for(var a=r.slice(0,t),s=1;;s++){var u=a+s;if(!f1(n,u))return u}}function M2(n){var r=Dm(n);if(r&&!r.typeParameters)return _o(r)}function _k(n){var r=vi(n.expression),t=pg(r,n.expression),a=M2(r);return a&&Ah(a,n,t!==r)}function kl(n){var r=w2(n);if(r)return r;if(n.flags&67108864&&ha){var t=ha[U(n)];if(t)return t}var a=et,s=vi(n);if(et!==a){var u=ha||(ha=[]);u[U(n)]=s,e.setNodeFlags(n,n.flags|67108864)}return s}function w2(n){var r=e.skipParentheses(n);if(e.isCallExpression(r)&&r.expression.kind!==106&&!e.isRequireCall(r,!0)&&!c2(r)){var t=e.isCallChain(r)?_k(r):M2(x_(r.expression));if(t)return t}else{if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return Ra(r.type);if(n.kind===8||n.kind===10||n.kind===110||n.kind===95)return vi(n)}}function d1(n){var r=da(n);if(r.contextFreeType)return r.contextFreeType;var t=n.contextualType;n.contextualType=cr;try{var a=r.contextFreeType=vi(n,4);return a}finally{n.contextualType=t}}function vi(n,r,t){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkExpression",{kind:n.kind,pos:n.pos,end:n.end});var a=fe;fe=n,De=0;var s=hk(n,r,t),u=O2(n,s,r);return s1(u)&&gk(n,u),fe=a,e.tracing===null||e.tracing===void 0||e.tracing.pop(),u}function gk(n,r){var t=n.parent.kind===204&&n.parent.expression===n||n.parent.kind===205&&n.parent.expression===n||(n.kind===79||n.kind===159)&&Ay(n)||n.parent.kind===179&&n.parent.exprName===n||n.parent.kind===273;if(t||Jn(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),pe.isolatedModules){e.Debug.assert(!!(r.symbol.flags&128));var a=r.symbol.valueDeclaration;a.flags&8388608&&Jn(n,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}function vk(n,r){var t=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return t?p2(t.typeExpression.type,t.typeExpression.type,n.expression,r):vi(n.expression,r)}function hk(n,r,t){var a=n.kind;if(z)switch(a){case 224:case 211:case 212:z.throwIfCancellationRequested()}switch(a){case 79:return Cx(n,r);case 108:return jh(n);case 106:return Lb(n);case 104:return ir;case 14:case 10:return wm(Jc(n.text));case 8:return W1(n),wm(Zf(+n.text));case 9:return aM(n),wm(CE({negative:!1,base10Value:e.parsePseudoBigInt(n.text)}));case 110:return Kr;case 95:return ft;case 221:return ok(n);case 13:return Ve;case 202:return v0(n,r,t);case 203:return vI(n,r);case 204:return R0(n,r);case 159:return O0(n,r);case 205:return YI(n,r);case 206:if(n.expression.kind===100)return DN(n);case 207:return SN(n,r);case 208:return LN(n);case 210:return vk(n,r);case 224:return HR(n);case 211:case 212:return L2(n,r);case 214:return HN(n);case 209:case 227:return AN(n);case 228:return xN(n);case 229:return IN(n);case 213:return WN(n);case 215:return JN(n);case 216:return KN(n);case 217:return zN(n);case 218:return qN(n);case 219:return Vn(n,r);case 220:return ik(n,r);case 223:return dI(n,r);case 225:return Ye;case 222:return ak(n);case 230:return pI(n);case 286:return NI(n,r);case 276:return bI(n,r);case 277:return yI(n,r);case 280:return TI(n);case 284:return DI(n,r);case 278:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return J}function F2(n){n.expression&&Sl(n.expression,e.Diagnostics.Type_expected),ao(n.constraint),ao(n.default);var r=zf(wt(n));Xl(r),Qy(r)||Jn(n.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Lt(r));var t=yc(r),a=ep(r);t&&a&&xc(a,Ac(fi(t,ym(r,a)),a),n.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),M&&G_(n.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function G2(n){Af(n),hy(n);var r=e.getContainingFunction(n);e.hasSyntacticModifier(n,16476)&&(r.kind===169&&e.nodeIsPresent(r.body)||Jn(n,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),r.kind===169&&e.isIdentifier(n.name)&&n.name.escapedText==="constructor"&&Jn(n.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),n.questionToken&&e.isBindingPattern(n.name)&&r.body&&Jn(n,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&e.isIdentifier(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(r.parameters.indexOf(n)!==0&&Jn(n,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(r.kind===169||r.kind===173||r.kind===178)&&Jn(n,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),r.kind===212&&Jn(n,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),(r.kind===170||r.kind===171)&&Jn(n,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!e.isBindingPattern(n.name)&&!mo(iu(kt(n.symbol)),Ie)&&Jn(n,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function yk(n){var r=Ek(n);if(!r){Jn(n,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}var t=su(r),a=Cc(t);if(a){ao(n.type);var s=n.parameterName;if(a.kind===0||a.kind===2)gh(s);else if(a.parameterIndex>=0){if(N(t)&&a.parameterIndex===t.parameters.length-1)Jn(s,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else if(a.type){var u=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)};xc(a.type,kt(t.parameters[a.parameterIndex]),n.type,void 0,u)}}else if(s){for(var S=!1,F=0,ve=r.parameters;F<ve.length;F++){var Ge=ve[F].name;if(e.isBindingPattern(Ge)&&B2(Ge,s,a.parameterName)){S=!0;break}}S||Jn(n.parameterName,e.Diagnostics.Cannot_find_parameter_0,a.parameterName)}}}function Ek(n){switch(n.parent.kind){case 212:case 172:case 254:case 211:case 177:case 167:case 166:var r=n.parent;if(n===r.type)return r}}function B2(n,r,t){for(var a=0,s=n.elements;a<s.length;a++){var u=s[a];if(!e.isOmittedExpression(u)){var S=u.name;if(S.kind===79&&S.escapedText===t)return Jn(r,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,t),!0;if((S.kind===200||S.kind===199)&&B2(S,r,t))return!0}}}function Cg(n){n.kind===174?IP(n):(n.kind===177||n.kind===254||n.kind===178||n.kind===172||n.kind===169||n.kind===173)&&Ry(n);var r=e.getFunctionFlags(n);if(r&4||((r&3)===3&&we<99&&Bl(n,6144),(r&3)===2&&we<4&&Bl(n,64),r&3&&we<2&&Bl(n,128)),Ty(n.typeParameters),e.forEach(n.parameters,G2),n.type&&ao(n.type),M){oR(n);var t=e.getEffectiveReturnTypeNode(n);if(En&&!t)switch(n.kind){case 173:Jn(n,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 172:Jn(n,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(t){var a=e.getFunctionFlags(n);if((a&5)===1){var s=Ra(t);if(s===Cr)Jn(t,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var u=Xm(0,s,(a&2)!==0)||cr,S=Xm(1,s,(a&2)!==0)||u,F=Xm(2,s,(a&2)!==0)||cn,ve=E2(u,S,F,!!(a&2));xc(ve,s,t)}}else(a&3)===2&&Hk(n,t)}n.kind!==174&&n.kind!==312&&Od(n)}}function bk(n){for(var r=new e.Map,t=new e.Map,a=new e.Map,s=0,u=n.members;s<u.length;s++){var S=u[s];if(S.kind===169)for(var F=0,ve=S.parameters;F<ve.length;F++){var Ge=ve[F];e.isParameterPropertyDeclaration(Ge,S)&&!e.isBindingPattern(Ge.name)&&Ir(r,Ge.name,Ge.name.escapedText,3)}else{var Je=e.isStatic(S),Xe=S.name;if(!Xe)continue;var tn=e.isPrivateIdentifier(Xe),Dn=tn&&Je?16:0,nr=tn?a:Je?t:r,sr=Xe&&e.getPropertyNameForPropertyNameNode(Xe);if(sr)switch(S.kind){case 170:Ir(nr,Xe,sr,1|Dn);break;case 171:Ir(nr,Xe,sr,2|Dn);break;case 165:Ir(nr,Xe,sr,3|Dn);break;case 167:Ir(nr,Xe,sr,8|Dn);break}}}function Ir(xr,Gr,ct,Vt){var _t=xr.get(ct);if(_t)if((_t&16)!==(Vt&16))Jn(Gr,e.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,e.getTextOfNode(Gr));else{var Ta=!!(_t&8),sa=!!(Vt&8);Ta||sa?Ta!==sa&&Jn(Gr,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(Gr)):_t&Vt&-17?Jn(Gr,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(Gr)):xr.set(ct,_t|Vt)}else xr.set(ct,Vt)}}function Tk(n){for(var r=0,t=n.members;r<t.length;r++){var a=t[r],s=a.name,u=e.isStatic(a);if(u&&s){var S=e.getPropertyNameForPropertyNameNode(s);switch(S){case"name":case"length":case"caller":case"arguments":case"prototype":var F=e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,ve=sf(wt(n));Jn(s,F,S,ve);break}}}}function U2(n){for(var r=new e.Map,t=0,a=n.members;t<a.length;t++){var s=a[t];if(s.kind===164){var u=void 0,S=s.name;switch(S.kind){case 10:case 8:u=S.text;break;case 79:u=e.idText(S);break;default:continue}r.get(u)?(Jn(e.getNameOfDeclaration(s.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,u),Jn(s.name,e.Diagnostics.Duplicate_identifier_0,u)):r.set(u,!0)}}}function p1(n){if(n.kind===256){var r=wt(n);if(r.declarations&&r.declarations.length>0&&r.declarations[0]!==n)return}var t=q1(wt(n));if(t!=null&&t.declarations){for(var a=new e.Map,s=function(ve){ve.parameters.length===1&&ve.parameters[0].type&&Wm(Ra(ve.parameters[0].type),function(Ge){var Je=a.get(cu(Ge));Je?Je.declarations.push(ve):a.set(cu(Ge),{type:Ge,declarations:[ve]})})},u=0,S=t.declarations;u<S.length;u++){var F=S[u];s(F)}a.forEach(function(ve){if(ve.declarations.length>1)for(var Ge=0,Je=ve.declarations;Ge<Je.length;Ge++){var Xe=Je[Ge];Jn(Xe,e.Diagnostics.Duplicate_index_signature_for_type_0,Lt(ve.type))}})}}function V2(n){!Af(n)&&!$P(n)&&Oy(n.name),hy(n),m1(n),e.isPrivateIdentifier(n.name)&&e.hasStaticModifier(n)&&n.initializer&&we===99&&!pe.useDefineForClassFields&&Jn(n.initializer,e.Diagnostics.Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag),e.hasSyntacticModifier(n,128)&&n.kind===165&&n.initializer&&Jn(n,e.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,e.declarationNameToString(n.name))}function Sk(n){return e.isPrivateIdentifier(n.name)&&Jn(n,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),V2(n)}function Dk(n){zD(n)||Oy(n.name),X2(n),e.hasSyntacticModifier(n,128)&&n.kind===167&&n.body&&Jn(n,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(n.name)),e.isPrivateIdentifier(n.name)&&!e.getContainingClass(n)&&Jn(n,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),m1(n)}function m1(n){if(e.isPrivateIdentifier(n.name)&&we<99){for(var r=e.getEnclosingBlockScopeContainer(n);r;r=e.getEnclosingBlockScopeContainer(r))da(r).flags|=67108864;if(e.isClassExpression(n.parent)){var t=Tb(n.parent);t&&(da(n.name).flags|=524288,da(t).flags|=65536)}}}function Lk(n){Af(n),e.forEachChild(n,ao)}function Ak(n){Cg(n),QP(n)||ZP(n),ao(n.body);var r=wt(n),t=e.getDeclarationOfKind(r,n.kind);if(n===t&&_y(r),e.nodeIsMissing(n.body)||!M)return;function a(Dn){return e.isPrivateIdentifierClassElementDeclaration(Dn)?!0:Dn.kind===165&&!e.isStatic(Dn)&&!!Dn.initializer}var s=n.parent;if(e.getClassExtendsHeritageElement(s)){Sb(n.parent,s);var u=o0(s),S=i0(n.body);if(S){u&&Jn(S,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);var F=(pe.target!==99||!Qe)&&(e.some(n.parent.members,a)||e.some(n.parameters,function(Dn){return e.hasSyntacticModifier(Dn,16476)}));if(F){for(var ve=n.body.statements,Ge=void 0,Je=0,Xe=ve;Je<Xe.length;Je++){var tn=Xe[Je];if(tn.kind===236&&e.isSuperCall(tn.expression)){Ge=tn;break}if(!e.isPrologueDirective(tn))break}Ge||Jn(n,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else u||Jn(n,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}function W2(n){if(M){if(!Ry(n)&&!UP(n)&&Oy(n.name),Gv(n),Cg(n),n.kind===170&&!(n.flags&8388608)&&e.nodeIsPresent(n.body)&&n.flags&256&&(n.flags&512||Jn(n.name,e.Diagnostics.A_get_accessor_must_return_a_value)),n.name.kind===160&&od(n.name),wl(n)){var r=wt(n),t=e.getDeclarationOfKind(r,170),a=e.getDeclarationOfKind(r,171);if(t&&a&&!(Qm(t)&1)){da(t).flags|=1;var s=e.getEffectiveModifierFlags(t),u=e.getEffectiveModifierFlags(a);(s&128)!==(u&128)&&(Jn(t.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Jn(a.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(s&16&&!(u&24)||s&8&&!(u&8))&&(Jn(t.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Jn(a.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));var S=ta(t),F=ta(a);S&&F&&xc(S,F,t,e.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}var ve=Do(wt(n));n.kind===170&&i1(n,ve)}ao(n.body),m1(n)}function Ck(n){Gv(n)}function dy(n,r){return np(e.map(n.typeArguments,Ra),r,Lu(r),e.isInJSFile(n))}function j2(n,r){for(var t,a,s=!0,u=0;u<r.length;u++){var S=yc(r[u]);S&&(t||(t=dy(n,r),a=uc(r,t)),s=s&&xc(t[u],fi(S,a),n.typeArguments[u],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return s}function _1(n){var r=sv(n);if(r!==J){var t=da(n).resolvedSymbol;if(t)return t.flags&524288&&Za(t).typeParameters||(e.getObjectFlags(r)&4?r.target.localTypeParameters:void 0)}}function g1(n){zv(n,n.typeArguments),n.kind===176&&n.typeName.jsdocDotPos!==void 0&&!e.isInJSFile(n)&&!e.isInJSDoc(n)&&up(n,n.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(n.typeArguments,ao);var r=sv(n);if(r!==J){if(n.typeArguments&&M){var t=_1(n);t&&j2(n,t)}var a=da(n).resolvedSymbol;a&&(e.some(a.declarations,function(s){return Jv(s)&&!!(s.flags&134217728)})&&ol(kv(n),a.declarations,a.escapedName),r.flags&32&&a.flags&8&&Jn(n,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Lt(r)))}}function xk(n){var r=e.tryCast(n.parent,e.isTypeReferenceType);if(r){var t=_1(r),a=yc(t[r.typeArguments.indexOf(n)]);return a&&fi(a,uc(t,dy(r,t)))}}function Ik(n){sT(n)}function Nk(n){if(e.forEach(n.members,ao),M){var r=jT(n);by(r),p1(n),U2(n)}}function kk(n){ao(n.elementType)}function Rk(n){for(var r=n.elements,t=!1,a=!1,s=e.some(r,e.isNamedTupleMember),u=0,S=r;u<S.length;u++){var F=S[u];if(F.kind!==195&&s){At(F,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var ve=uE(F);if(ve&8){var Ge=Ra(F.type);if(!lp(Ge)){Jn(F,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(Gl(Ge)||ji(Ge)&&Ge.target.combinedFlags&4)&&(a=!0)}else if(ve&4){if(a){At(F,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}a=!0}else if(ve&2){if(a){At(F,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}t=!0}else if(t){At(F,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(n.elements,ao),Ra(n)}function Ok(n){e.forEach(n.types,ao),Ra(n)}function H2(n,r){if(!(n.flags&8388608))return n;var t=n.objectType,a=n.indexType;if(mo(a,ff(t,!1)))return r.kind===205&&e.isAssignmentTarget(r)&&e.getObjectFlags(t)&32&&au(t)&1&&Jn(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Lt(t)),n;var s=Il(t);if(po(s,Dr)&&qs(a,296))return n;if(vm(t)){var u=vE(a,r);if(u){var S=Wm(s,function(F){return wn(F,u)});if(S&&e.getDeclarationModifierFlagsFromSymbol(S)&24)return Jn(r,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(u)),J}}return Jn(r,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Lt(a),Lt(t)),J}function Pk(n){ao(n.objectType),ao(n.indexType),H2(FT(n),n)}function Mk(n){ao(n.typeParameter),ao(n.nameType),ao(n.type),n.type||Cp(n,cr);var r=EE(n),t=$d(r);if(t)xc(t,at,n.nameType);else{var a=tu(r);xc(a,at,e.getEffectiveConstraintOfTypeParameter(n.typeParameter))}}function wk(n){gh(n)}function Fk(n){WP(n),ao(n.type)}function Gk(n){e.forEachChild(n,ao)}function Bk(n){e.findAncestor(n,function(r){return r.parent&&r.parent.kind===187&&r.parent.extendsType===r})||At(n,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),ao(n.typeParameter),Od(n)}function Uk(n){for(var r=0,t=n.templateSpans;r<t.length;r++){var a=t[r];ao(a.type);var s=Ra(a.type);xc(s,Wt,a.type)}Ra(n)}function Vk(n){ao(n.argument),Ra(n)}function Wk(n){n.dotDotDotToken&&n.questionToken&&At(n,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===183&&At(n.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===184&&At(n.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),ao(n.type),Ra(n)}function py(n){return(e.hasEffectiveModifier(n,8)||e.isPrivateIdentifierClassElementDeclaration(n))&&!!(n.flags&8388608)}function my(n,r){var t=e.getCombinedModifierFlags(n);return n.parent.kind!==256&&n.parent.kind!==255&&n.parent.kind!==224&&n.flags&8388608&&(!(t&2)&&!(e.isModuleBlock(n.parent)&&e.isModuleDeclaration(n.parent.parent)&&e.isGlobalScopeAugmentation(n.parent.parent))&&(t|=1),t|=2),t&r}function _y(n){if(!M)return;function r(na,si){var jt=si!==void 0&&si.parent===na[0].parent;return jt?si:na[0]}function t(na,si,jt,Ji,Wi){var rr=Ji^Wi;if(rr!==0){var yn=my(r(na,si),jt);e.forEach(na,function(pt){var mt=my(pt,jt)^yn;mt&1?Jn(e.getNameOfDeclaration(pt),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):mt&2?Jn(e.getNameOfDeclaration(pt),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):mt&24?Jn(e.getNameOfDeclaration(pt)||pt,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):mt&128&&Jn(e.getNameOfDeclaration(pt),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function a(na,si,jt,Ji){if(jt!==Ji){var Wi=e.hasQuestionToken(r(na,si));e.forEach(na,function(rr){var yn=e.hasQuestionToken(rr)!==Wi;yn&&Jn(e.getNameOfDeclaration(rr),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}var s=155,u=0,S=s,F=!1,ve=!0,Ge=!1,Je,Xe,tn,Dn=n.declarations,nr=(n.flags&16384)!==0;function sr(na){if(!(na.name&&e.nodeIsMissing(na.name))){var si=!1,jt=e.forEachChild(na.parent,function(mt){if(si)return mt;si=mt===na});if(jt&&jt.pos===na.end&&jt.kind===na.kind){var Ji=jt.name||jt,Wi=jt.name;if(na.name&&Wi&&(e.isPrivateIdentifier(na.name)&&e.isPrivateIdentifier(Wi)&&na.name.escapedText===Wi.escapedText||e.isComputedPropertyName(na.name)&&e.isComputedPropertyName(Wi)||e.isPropertyNameLiteral(na.name)&&e.isPropertyNameLiteral(Wi)&&e.getEscapedTextOfIdentifierOrLiteral(na.name)===e.getEscapedTextOfIdentifierOrLiteral(Wi))){var rr=(na.kind===167||na.kind===166)&&e.isStatic(na)!==e.isStatic(jt);if(rr){var yn=e.isStatic(na)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static;Jn(Ji,yn)}return}if(e.nodeIsPresent(jt.body)){Jn(Ji,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(na.name));return}}var pt=na.name||na;nr?Jn(pt,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(na,128)?Jn(pt,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):Jn(pt,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}var Ir=!1,xr=!1,Gr=!1,ct=[];if(Dn)for(var Vt=0,_t=Dn;Vt<_t.length;Vt++){var Ta=_t[Vt],sa=Ta,mi=sa.flags&8388608,ai=sa.parent&&(sa.parent.kind===256||sa.parent.kind===180)||mi;if(ai&&(tn=void 0),(sa.kind===255||sa.kind===224)&&!mi&&(Gr=!0),sa.kind===254||sa.kind===167||sa.kind===166||sa.kind===169){ct.push(sa);var Hi=my(sa,s);u|=Hi,S&=Hi,F=F||e.hasQuestionToken(sa),ve=ve&&e.hasQuestionToken(sa);var ii=e.nodeIsPresent(sa.body);ii&&Je?nr?xr=!0:Ir=!0:(tn==null?void 0:tn.parent)===sa.parent&&tn.end!==sa.pos&&sr(tn),ii?Je||(Je=sa):Ge=!0,tn=sa,ai||(Xe=sa)}}if(xr&&e.forEach(ct,function(na){Jn(na,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),Ir&&e.forEach(ct,function(na){Jn(e.getNameOfDeclaration(na)||na,e.Diagnostics.Duplicate_function_implementation)}),Gr&&!nr&&n.flags&16&&Dn){var go=e.filter(Dn,function(na){return na.kind===255}).map(function(na){return e.createDiagnosticForNode(na,e.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)});e.forEach(Dn,function(na){var si=na.kind===255?e.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:na.kind===254?e.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;si&&e.addRelatedInfo.apply(void 0,Vr([Jn(e.getNameOfDeclaration(na)||na,si,e.symbolName(n))],go,!1))})}if(Xe&&!Xe.body&&!e.hasSyntacticModifier(Xe,128)&&!Xe.questionToken&&sr(Xe),Ge&&(Dn&&(t(Dn,Je,s,u,S),a(Dn,Je,F,ve)),Je))for(var xo=uf(n),Yr=su(Je),Pr=0,Aa=xo;Pr<Aa.length;Pr++){var Ga=Aa[Pr];if(!tC(Yr,Ga)){e.addRelatedInfo(Jn(Ga.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(Je,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}function xg(n){if(!M)return;var r=n.localSymbol;if(!r&&(r=wt(n),!r.exportSymbol)||e.getDeclarationOfKind(r,n.kind)!==n)return;for(var t=0,a=0,s=0,u=0,S=r.declarations;u<S.length;u++){var F=S[u],ve=Ir(F),Ge=my(F,513);Ge&1?Ge&512?s|=ve:t|=ve:a|=ve}var Je=t|a,Xe=t&a,tn=s&Je;if(Xe||tn)for(var Dn=0,nr=r.declarations;Dn<nr.length;Dn++){var F=nr[Dn],ve=Ir(F),sr=e.getNameOfDeclaration(F);ve&tn?Jn(sr,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(sr)):ve&Xe&&Jn(sr,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(sr))}function Ir(xr){var Gr=xr;switch(Gr.kind){case 256:case 257:case 340:case 333:case 334:return 2;case 259:return e.isAmbientModule(Gr)||e.getModuleInstanceState(Gr)!==0?5:4;case 255:case 258:case 294:return 3;case 300:return 7;case 269:case 219:var ct=Gr,Vt=e.isExportAssignment(ct)?ct.expression:ct.right;if(!e.isEntityNameExpression(Vt))return 1;Gr=Vt;case 263:case 266:case 265:var _t=0,Ta=_i(wt(Gr));return e.forEach(Ta.declarations,function(sa){_t|=Ir(sa)}),_t;case 252:case 201:case 254:case 268:case 79:return 1;default:return e.Debug.failBadSyntaxKind(Gr)}}}function Ig(n,r,t,a){var s=Fv(n,r);return s&&ku(s,r,t,a)}function Fv(n,r){if(!no(n)){var t=n;if(t.promisedTypeOfPromise)return t.promisedTypeOfPromise;if(_(n,fh(!1)))return t.promisedTypeOfPromise=Co(n)[0];var a=Os(n,"then");if(!no(a)){var s=a?zr(a,0):e.emptyArray;if(s.length===0){r&&Jn(r,e.Diagnostics.A_promise_must_have_a_then_method);return}var u=gl(Sa(e.map(s,r1)),2097152);if(!no(u)){var S=zr(u,0);if(S.length===0){r&&Jn(r,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return t.promisedTypeOfPromise=Sa(e.map(S,r1),2)}}}}function Ng(n,r,t,a){var s=ku(n,r,t,a);return s||J}function jk(n){var r=Os(n,"then");return!!r&&zr(gl(r,2097152),0).length>0}function ku(n,r,t,a){if(no(n))return n;var s=n;return s.awaitedTypeOfType?s.awaitedTypeOfType:s.awaitedTypeOfType=Ps(n,r?function(u){return J2(u,r,t,a)}:J2)}function J2(n,r,t,a){var s=n;if(s.awaitedTypeOfType)return s.awaitedTypeOfType;var u=Fv(n);if(u){if(n.id===u.id||ea.lastIndexOf(u.id)>=0){r&&Jn(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}ea.push(n.id);var S=ku(u,r,t,a);return ea.pop(),S?s.awaitedTypeOfType=S:void 0}if(jk(n)){if(r){if(!t)return e.Debug.fail();Jn(r,t,a)}return}return s.awaitedTypeOfType=n}function Hk(n,r){var t=Ra(r);if(we>=2){if(t===J)return;var a=fh(!0);if(a!==or&&!_(t,a)){Jn(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,Lt(ku(t)||Cr));return}}else{if(Kk(r),t===J)return;var s=e.getEntityNameFromTypeNode(r);if(s===void 0){Jn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Lt(t));return}var u=ki(s,111551,!0),S=u?kt(u):J;if(S===J){s.kind===79&&s.escapedText==="Promise"&&B(t)===fh(!1)?Jn(r,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):Jn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(s));return}var F=EL(!0);if(F===Lr){Jn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(s));return}if(!xc(S,F,r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var ve=s&&e.getFirstIdentifier(s),Ge=$o(n.locals,ve.escapedText,111551);if(Ge){Jn(Ge.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(ve),e.entityNameToString(s));return}}Ng(t,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 Jk(n){var r=N_(n);sy(r,n);var t=_o(r);if(!(t.flags&1)){var a,s=l2(n),u;switch(n.parent.kind){case 255:var S=wt(n.parent),F=kt(S);a=Sa([F,Cr]);break;case 162:a=Cr,u=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 165:a=Cr,u=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 167:case 170:case 171:var ve=sm(n.parent),Ge=gT(ve);a=Sa([Ge,Cr]);break;default:return e.Debug.fail()}xc(t,a,n,s,function(){return u})}}function Kk(n){K2(n&&e.getEntityNameFromTypeNode(n))}function K2(n){if(n){var r=e.getFirstIdentifier(n),t=(n.kind===79?788968:1920)|2097152,a=es(r,r.escapedText,t,void 0,void 0,!0);a&&a.flags&2097152&&Nc(a)&&!Pg(_i(a))&&!Qt(a)&&Wa(a)}}function M_(n){var r=v1(n);r&&e.isEntityName(r)&&K2(r)}function v1(n){if(n)switch(n.kind){case 186:case 185:return z2(n.types);case 187:return z2([n.trueType,n.falseType]);case 189:case 195:return v1(n.type);case 176:return n.typeName}}function z2(n){for(var r,t=0,a=n;t<a.length;t++){for(var s=a[t];s.kind===189||s.kind===195;)s=s.type;if(s.kind!==142&&!(!He&&(s.kind===194&&s.literal.kind===104||s.kind===151))){var u=v1(s);if(!u)return;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(u)||r.escapedText!==u.escapedText)return}else r=u}}return r}function gy(n){var r=e.getEffectiveTypeAnnotationNode(n);return e.isRestParameter(n)?e.getRestParameterElementType(r):r}function Gv(n){if(n.decorators&&e.nodeCanBeDecorated(n,n.parent,n.parent.parent)){pe.experimentalDecorators||Jn(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 r=n.decorators[0];if(Bl(r,8),n.kind===162&&Bl(r,32),pe.emitDecoratorMetadata)switch(Bl(r,16),n.kind){case 255:var t=e.getFirstConstructorWithBody(n);if(t)for(var a=0,s=t.parameters;a<s.length;a++){var u=s[a];M_(gy(u))}break;case 170:case 171:var S=n.kind===170?171:170,F=e.getDeclarationOfKind(wt(n),S);M_(Gt(n)||F&&Gt(F));break;case 167:for(var ve=0,Ge=n.parameters;ve<Ge.length;ve++){var u=Ge[ve];M_(gy(u))}M_(e.getEffectiveReturnTypeNode(n));break;case 165:M_(e.getEffectiveTypeAnnotationNode(n));break;case 162:M_(gy(n));for(var Je=n.parent,Xe=0,tn=Je.parameters;Xe<tn.length;Xe++){var u=tn[Xe];M_(gy(u))}break}e.forEach(n.decorators,Jk)}}function zk(n){M&&(X2(n),B1(n),w_(n,n.name))}function qk(n){n.typeExpression||Jn(n.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&G_(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),ao(n.typeExpression)}function Xk(n){ao(n.constraint);for(var r=0,t=n.typeParameters;r<t.length;r++){var a=t[r];ao(a)}}function Yk(n){ao(n.typeExpression)}function Qk(n){if(ao(n.typeExpression),!e.getParameterSymbolFromJSDoc(n)){var r=e.getHostSignatureFromJSDoc(n);if(r){var t=e.getJSDocTags(r).filter(e.isJSDocParameterTag).indexOf(n);if(t>-1&&t<r.parameters.length&&e.isBindingPattern(r.parameters[t].name))return;eg(r)?e.findLast(e.getJSDocTags(r),e.isJSDocParameterTag)===n&&n.typeExpression&&n.typeExpression.type&&!Gl(Ra(n.typeExpression.type))&&Jn(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===159?n.name.right:n.name)):e.isQualifiedName(n.name)?Jn(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)):Jn(n.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(n.name))}}}function Zk(n){ao(n.typeExpression)}function $k(n){M&&!n.type&&!e.isJSDocConstructSignature(n)&&Cp(n,cr),Cg(n)}function eR(n){var r=e.getEffectiveJSDocHost(n);(!r||!e.isClassDeclaration(r)&&!e.isClassExpression(r))&&Jn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName))}function nR(n){var r=e.getEffectiveJSDocHost(n);if(!r||!e.isClassDeclaration(r)&&!e.isClassExpression(r)){Jn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName));return}var t=e.getJSDocTags(r).filter(e.isJSDocAugmentsTag);e.Debug.assert(t.length>0),t.length>1&&Jn(t[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var a=q2(n.class.expression),s=e.getClassExtendsHeritageElement(r);if(s){var u=q2(s.expression);u&&a.escapedText!==u.escapedText&&Jn(a,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(n.tagName),e.idText(a),e.idText(u))}}function q2(n){switch(n.kind){case 79:return n;case 204:return n.name;default:return}}function X2(n){var r;Gv(n),Cg(n);var t=e.getFunctionFlags(n);if(n.name&&n.name.kind===160&&od(n.name),wl(n)){var a=wt(n),s=n.localSymbol||a,u=(r=s.declarations)===null||r===void 0?void 0:r.find(function(ve){return ve.kind===n.kind&&!(ve.flags&131072)});n===u&&_y(s),a.parent&&_y(a)}var S=n.kind===166?void 0:n.body;if(ao(S),i1(n,bp(n)),M&&!e.getEffectiveReturnTypeNode(n)&&(e.nodeIsMissing(S)&&!py(n)&&Cp(n,cr),t&1&&e.nodeIsPresent(S)&&_o(su(n))),e.isInJSFile(n)){var F=e.getJSDocTypeTag(n);F&&F.typeExpression&&!Rb(Ra(F.typeExpression),n)&&Jn(F.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function Od(n){if(M){var r=e.getSourceFileOfNode(n),t=Fs.get(r.path);t||(t=[],Fs.set(r.path,t)),t.push(n)}}function Y2(n,r){for(var t=0,a=n;t<a.length;t++){var s=a[t];switch(s.kind){case 255:case 224:rR(s,r),h1(s,r);break;case 300:case 259:case 233:case 261:case 240:case 241:case 242:$2(s,r);break;case 169:case 211:case 254:case 212:case 167:case 170:case 171:s.body&&$2(s,r),h1(s,r);break;case 166:case 172:case 173:case 177:case 178:case 257:case 256:h1(s,r);break;case 188:tR(s,r);break;default:e.Debug.assertNever(s,"Node should not have been registered for unused identifiers check")}}}function Q2(n,r,t){var a=e.getNameOfDeclaration(n)||n,s=Jv(n)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;t(n,0,e.createDiagnosticForNode(a,s,r))}function Bv(n){return e.isIdentifier(n)&&e.idText(n).charCodeAt(0)===95}function rR(n,r){for(var t=0,a=n.members;t<a.length;t++){var s=a[t];switch(s.kind){case 167:case 165:case 170:case 171:if(s.kind===171&&s.symbol.flags&32768)break;var u=wt(s);!u.isReferenced&&(e.hasEffectiveModifier(s,8)||e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name))&&!(s.flags&8388608)&&r(s,0,e.createDiagnosticForNode(s.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Qa(u)));break;case 169:for(var S=0,F=s.parameters;S<F.length;S++){var ve=F[S];!ve.symbol.isReferenced&&e.hasSyntacticModifier(ve,8)&&r(ve,0,e.createDiagnosticForNode(ve.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(ve.symbol)))}break;case 174:case 232:case 168:break;default:e.Debug.fail("Unexpected class member")}}}function tR(n,r){var t=n.typeParameter;y1(t)&&r(n,1,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(t.name)))}function h1(n,r){var t=wt(n).declarations;if(!(!t||e.last(t)!==n))for(var a=e.getEffectiveTypeParameterDeclarations(n),s=new e.Set,u=0,S=a;u<S.length;u++){var F=S[u];if(y1(F)){var ve=e.idText(F.name),Ge=F.parent;if(Ge.kind!==188&&Ge.typeParameters.every(y1)){if(e.tryAddToSet(s,Ge)){var Je=e.getSourceFileOfNode(Ge),Xe=e.isJSDocTemplateTag(Ge)?e.rangeOfNode(Ge):e.rangeOfTypeParameters(Je,Ge.typeParameters),tn=Ge.typeParameters.length===1,Dn=tn?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,nr=tn?ve:void 0;r(F,1,e.createFileDiagnostic(Je,Xe.pos,Xe.end-Xe.pos,Dn,nr))}}else r(F,1,e.createDiagnosticForNode(F,e.Diagnostics._0_is_declared_but_its_value_is_never_read,ve))}}}function y1(n){return!(Eo(n.symbol).isReferenced&262144)&&!Bv(n.name)}function Uv(n,r,t,a){var s=String(a(r)),u=n.get(s);u?u[1].push(t):n.set(s,[r,[t]])}function Z2(n){return e.tryCast(e.getRootDeclaration(n),e.isParameter)}function aR(n){return e.isBindingElement(n)?e.isObjectBindingPattern(n.parent)?!!(n.propertyName&&Bv(n.name)):Bv(n.name):e.isAmbientModule(n)||(e.isVariableDeclaration(n)&&e.isForInOrOfStatement(n.parent.parent)||eD(n))&&Bv(n.name)}function $2(n,r){var t=new e.Map,a=new e.Map,s=new e.Map;n.locals.forEach(function(u){if(!(u.flags&262144?!(u.flags&3&&!(u.isReferenced&3)):u.isReferenced||u.exportSymbol)&&u.declarations)for(var S=0,F=u.declarations;S<F.length;S++){var ve=F[S];if(!aR(ve))if(eD(ve))Uv(t,iR(ve),ve,U);else if(e.isBindingElement(ve)&&e.isObjectBindingPattern(ve.parent)){var Ge=e.last(ve.parent.elements);(ve===Ge||!e.last(ve.parent.elements).dotDotDotToken)&&Uv(a,ve.parent,ve,U)}else if(e.isVariableDeclaration(ve))Uv(s,ve.parent,ve,U);else{var Je=u.valueDeclaration&&Z2(u.valueDeclaration),Xe=u.valueDeclaration&&e.getNameOfDeclaration(u.valueDeclaration);Je&&Xe?!e.isParameterPropertyDeclaration(Je,Je.parent)&&!e.parameterIsThisKeyword(Je)&&!Bv(Xe)&&(e.isBindingElement(ve)&&e.isArrayBindingPattern(ve.parent)?Uv(a,ve.parent,ve,U):r(Je,1,e.createDiagnosticForNode(Xe,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(u)))):Q2(ve,e.symbolName(u),r)}}}),t.forEach(function(u){var S=u[0],F=u[1],ve=S.parent,Ge=(S.name?1:0)+(S.namedBindings?S.namedBindings.kind===266?1:S.namedBindings.elements.length:0);if(Ge===F.length)r(ve,0,F.length===1?e.createDiagnosticForNode(ve,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(F).name)):e.createDiagnosticForNode(ve,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var Je=0,Xe=F;Je<Xe.length;Je++){var tn=Xe[Je];Q2(tn,e.idText(tn.name),r)}}),a.forEach(function(u){var S=u[0],F=u[1],ve=Z2(S.parent)?1:0;if(S.elements.length===F.length)F.length===1&&S.parent.kind===252&&S.parent.parent.kind===253?Uv(s,S.parent.parent,S.parent,U):r(S,ve,F.length===1?e.createDiagnosticForNode(S,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Vv(e.first(F).name)):e.createDiagnosticForNode(S,e.Diagnostics.All_destructured_elements_are_unused));else for(var Ge=0,Je=F;Ge<Je.length;Ge++){var Xe=Je[Ge];r(Xe,ve,e.createDiagnosticForNode(Xe,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Vv(Xe.name)))}}),s.forEach(function(u){var S=u[0],F=u[1];if(S.declarations.length===F.length)r(S,0,F.length===1?e.createDiagnosticForNode(e.first(F).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Vv(e.first(F).name)):e.createDiagnosticForNode(S.parent.kind===235?S.parent:S,e.Diagnostics.All_variables_are_unused));else for(var ve=0,Ge=F;ve<Ge.length;ve++){var Je=Ge[ve];r(Je,0,e.createDiagnosticForNode(Je,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Vv(Je.name)))}})}function Vv(n){switch(n.kind){case 79:return e.idText(n);case 200:case 199:return Vv(e.cast(e.first(n.elements),e.isBindingElement).name);default:return e.Debug.assertNever(n)}}function eD(n){return n.kind===265||n.kind===268||n.kind===266}function iR(n){return n.kind===265?n:n.kind===266?n.parent:n.parent.parent}function vy(n){if(n.kind===233&&Cf(n),e.isFunctionOrModuleBlock(n)){var r=Fn;e.forEach(n.statements,ao),Fn=r}else e.forEach(n.statements,ao);n.locals&&Od(n)}function oR(n){we>=2||!e.hasRestParameter(n)||n.flags&8388608||e.nodeIsMissing(n.body)||e.forEach(n.parameters,function(r){r.name&&!e.isBindingPattern(r.name)&&r.name.escapedText===Le.escapedName&&Pi("noEmit",r,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function kg(n,r,t){if((r==null?void 0:r.escapedText)!==t||n.kind===165||n.kind===164||n.kind===167||n.kind===166||n.kind===170||n.kind===171||n.kind===291||n.flags&8388608||(e.isImportClause(n)||e.isImportEqualsDeclaration(n)||e.isImportSpecifier(n))&&e.isTypeOnlyImportOrExportDeclaration(n))return!1;var a=e.getRootDeclaration(n);return!(e.isParameter(a)&&e.nodeIsMissing(a.parent.body))}function sR(n){e.findAncestor(n,function(r){if(Qm(r)&4){var t=n.kind!==79;return t?Jn(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Jn(n,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1})}function lR(n){e.findAncestor(n,function(r){if(Qm(r)&8){var t=n.kind!==79;return t?Jn(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Jn(n,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1})}function cR(n,r){if(!(pn>=e.ModuleKind.ES2015)&&!(!r||!kg(n,r,"require")&&!kg(n,r,"exports"))&&!(e.isModuleDeclaration(n)&&e.getModuleInstanceState(n)!==1)){var t=jf(n);t.kind===300&&e.isExternalOrCommonJsModule(t)&&Pi("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function uR(n,r){if(!(!r||we>=4||!kg(n,r,"Promise"))&&!(e.isModuleDeclaration(n)&&e.getModuleInstanceState(n)!==1)){var t=jf(n);t.kind===300&&e.isExternalOrCommonJsModule(t)&&t.flags&2048&&Pi("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}function fR(n,r){we<=8&&(kg(n,r,"WeakMap")||kg(n,r,"WeakSet"))&&Tt.push(n)}function dR(n){var r=e.getEnclosingBlockScopeContainer(n);Qm(r)&67108864&&(e.Debug.assert(e.isNamedDeclaration(n)&&e.isIdentifier(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),Pi("noEmit",n,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function pR(n,r){r&&we>=2&&we<=8&&kg(n,r,"Reflect")&&Ut.push(n)}function mR(n){var r=!1;if(e.isClassExpression(n))for(var t=0,a=n.members;t<a.length;t++){var s=a[t];if(Qm(s)&134217728){r=!0;break}}else if(e.isFunctionExpression(n))Qm(n)&134217728&&(r=!0);else{var u=e.getEnclosingBlockScopeContainer(n);u&&Qm(u)&134217728&&(r=!0)}r&&(e.Debug.assert(e.isNamedDeclaration(n)&&e.isIdentifier(n.name),"The target of a Reflect collision check should be an identifier"),Pi("noEmit",n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,e.declarationNameToString(n.name),"Reflect"))}function w_(n,r){r&&(cR(n,r),uR(n,r),fR(n,r),pR(n,r),e.isClassLike(n)?(G_(r,e.Diagnostics.Class_name_cannot_be_0),n.flags&8388608||VR(r)):e.isEnumDeclaration(n)&&G_(r,e.Diagnostics.Enum_name_cannot_be_0))}function _R(n){if(!(e.getCombinedNodeFlags(n)&3||e.isParameterDeclaration(n))&&!(n.kind===252&&!n.initializer)){var r=wt(n);if(r.flags&1){if(!e.isIdentifier(n.name))return e.Debug.fail();var t=es(n,n.name.escapedText,3,void 0,void 0,!1);if(t&&t!==r&&t.flags&2&&Eg(t)&3){var a=e.getAncestor(t.valueDeclaration,253),s=a.parent.kind===235&&a.parent.parent?a.parent.parent:void 0,u=s&&(s.kind===233&&e.isFunctionLike(s.parent)||s.kind===260||s.kind===259||s.kind===300);if(!u){var S=Qa(t);Jn(n,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,S,S)}}}}}function Rg(n){return n===Fe?cr:n===j?dn:n}function hy(n){var r;if(Gv(n),e.isBindingElement(n)||ao(n.type),!!n.name){if(n.name.kind===160&&(od(n.name),n.initializer&&ll(n.initializer)),e.isBindingElement(n)){e.isObjectBindingPattern(n.parent)&&n.dotDotDotToken&&we<5&&Bl(n,4),n.propertyName&&n.propertyName.kind===160&&od(n.propertyName);var t=n.parent.parent,a=Hf(t),s=n.propertyName||n.name;if(a&&!e.isBindingPattern(s)){var u=tp(s);if(Gi(u)){var S=ql(u),F=wn(a,S);F&&($h(F,void 0,!1),Yh(n,!!t.initializer&&t.initializer.kind===106,!1,a,F))}}}if(e.isBindingPattern(n.name)&&(n.name.kind===200&&we<2&&pe.downlevelIteration&&Bl(n,512),e.forEach(n.name.elements,ao)),n.initializer&&e.isParameterDeclaration(n)&&e.nodeIsMissing(e.getContainingFunction(n).body)){Jn(n,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(e.isBindingPattern(n.name)){var ve=n.initializer&&n.parent.parent.kind!==241,Ge=n.name.elements.length===0;if(ve||Ge){var Je=Cd(n);if(ve){var Xe=ll(n.initializer);He&&Ge?k0(Xe,n):sp(Xe,Cd(n),n,n.initializer)}Ge&&(e.isArrayBindingPattern(n.name)?Pd(65,Je,Rn,n):He&&k0(Je,n))}return}var tn=wt(n);if(tn.flags&2097152&&e.isRequireVariableDeclaration(n)){Sy(n);return}var Dn=Rg(kt(tn));if(n===tn.valueDeclaration){var nr=e.getEffectiveInitializer(n);if(nr){var sr=e.isInJSFile(n)&&e.isObjectLiteralExpression(nr)&&(nr.properties.length===0||e.isPrototypeAccess(n.name))&&!!(!((r=tn.exports)===null||r===void 0)&&r.size);!sr&&n.parent.parent.kind!==241&&sp(ll(nr),Dn,n,nr,void 0)}tn.declarations&&tn.declarations.length>1&&e.some(tn.declarations,function(xr){return xr!==n&&e.isVariableLike(xr)&&!rD(xr,n)})&&Jn(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}else{var Ir=Rg(Cd(n));Dn!==J&&Ir!==J&&!$f(Dn,Ir)&&!(tn.flags&67108864)&&nD(tn.valueDeclaration,Dn,n,Ir),n.initializer&&sp(ll(n.initializer),Ir,n,n.initializer,void 0),tn.valueDeclaration&&!rD(n,tn.valueDeclaration)&&Jn(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}n.kind!==165&&n.kind!==164&&(xg(n),(n.kind===252||n.kind===201)&&_R(n),w_(n,n.name))}}function nD(n,r,t,a){var s=e.getNameOfDeclaration(t),u=t.kind===165||t.kind===164?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,S=e.declarationNameToString(s),F=Jn(s,u,S,Lt(r),Lt(a));n&&e.addRelatedInfo(F,e.createDiagnosticForNode(n,e.Diagnostics._0_was_also_declared_here,S))}function rD(n,r){if(n.kind===162&&r.kind===252||n.kind===252&&r.kind===162)return!0;if(e.hasQuestionToken(n)!==e.hasQuestionToken(r))return!1;var t=504;return e.getSelectedEffectiveModifierFlags(n,t)===e.getSelectedEffectiveModifierFlags(r,t)}function E1(n){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end}),zP(n),hy(n),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function gR(n){return HP(n),hy(n)}function vR(n){!Af(n)&&!V1(n.declarationList)&&qP(n),e.forEach(n.declarationList.declarations,ao)}function hR(n){Cf(n),vi(n.expression)}function yR(n){Cf(n);var r=F_(n.expression);b1(n.expression,r,n.thenStatement),ao(n.thenStatement),n.thenStatement.kind===234&&Jn(n.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),ao(n.elseStatement)}function b1(n,r,t){if(He&&!wc(r)){var a=e.isBinaryExpression(n)?n.right:n;if(!(e.isPropertyAccessExpression(a)&&e.isAssertionExpression(e.skipParentheses(a.expression)))){var s=e.isIdentifier(a)?a:e.isPropertyAccessExpression(a)?a.name:e.isBinaryExpression(a)&&e.isIdentifier(a.right)?a.right:void 0,u=zr(r,0),S=!!Ig(r);if(!(u.length===0&&!S)){var F=s&&Kc(s);if(!(!F&&!S)){var ve=F&&e.isBinaryExpression(n.parent)&&bR(n.parent,F)||F&&t&&ER(n,t,s,F);ve||(S?Rs(a,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,wu(r)):Jn(a,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}}}}function ER(n,r,t,a){return!!e.forEachChild(r,function s(u){if(e.isIdentifier(u)){var S=Kc(u);if(S&&S===a){if(e.isIdentifier(n))return!0;for(var F=t.parent,ve=u.parent;F&&ve;){if(e.isIdentifier(F)&&e.isIdentifier(ve)||F.kind===108&&ve.kind===108)return Kc(F)===Kc(ve);if(e.isPropertyAccessExpression(F)&&e.isPropertyAccessExpression(ve)){if(Kc(F.name)!==Kc(ve.name))return!1;ve=ve.expression,F=F.expression}else if(e.isCallExpression(F)&&e.isCallExpression(ve))ve=ve.expression,F=F.expression;else return!1}}}return e.forEachChild(u,s)})}function bR(n,r){for(;e.isBinaryExpression(n)&&n.operatorToken.kind===55;){var t=e.forEachChild(n.right,function a(s){if(e.isIdentifier(s)){var u=Kc(s);if(u&&u===r)return!0}return e.forEachChild(s,a)});if(t)return!0;n=n.parent}return!1}function TR(n){Cf(n),ao(n.statement),F_(n.expression)}function SR(n){Cf(n),F_(n.expression),ao(n.statement)}function tD(n,r){return n.flags&16384&&Jn(r,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function F_(n,r){return tD(vi(n,r),n)}function DR(n){Cf(n)||n.initializer&&n.initializer.kind===253&&V1(n.initializer),n.initializer&&(n.initializer.kind===253?e.forEach(n.initializer.declarations,E1):vi(n.initializer)),n.condition&&F_(n.condition),n.incrementor&&vi(n.incrementor),ao(n.statement),n.locals&&Od(n)}function LR(n){KD(n);var r=e.getContainingFunctionOrClassStaticBlock(n);if(n.awaitModifier)if(r&&e.isClassStaticBlockDeclaration(r))At(n.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block);else{var t=e.getFunctionFlags(r);(t&6)===2&&we<99&&Bl(n,16384)}else pe.downlevelIteration&&we<2&&Bl(n,256);if(n.initializer.kind===253)aD(n);else{var a=n.initializer,s=Wv(n);if(a.kind===202||a.kind===203)om(a,s||J);else{var u=vi(a);Lg(a,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),s&&sp(s,u,a,n.expression)}}ao(n.statement),n.locals&&Od(n)}function AR(n){KD(n);var r=Wb(vi(n.expression));if(n.initializer.kind===253){var t=n.initializer.declarations[0];t&&e.isBindingPattern(t.name)&&Jn(t.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),aD(n)}else{var a=n.initializer,s=vi(a);a.kind===202||a.kind===203?Jn(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):mo(iA(r),s)?Lg(a,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):Jn(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(r===Jt||!qs(r,126091264))&&Jn(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,Lt(r)),ao(n.statement),n.locals&&Od(n)}function aD(n){var r=n.initializer;if(r.declarations.length>=1){var t=r.declarations[0];E1(t)}}function Wv(n){var r=n.awaitModifier?15:13;return Pd(r,x_(n.expression),Rn,n.expression)}function Pd(n,r,t,a){return no(r)?r:T1(n,r,t,a,!0)||cr}function T1(n,r,t,a,s){var u=(n&2)!==0;if(r===Jt){L1(a,r,u);return}var S=we>=2,F=!S&&pe.downlevelIteration,ve=pe.noUncheckedIndexedAccess&&!!(n&128);if(S||F||u){var Ge=jv(r,n,S?a:void 0);if(s&&Ge){var Je=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;Je&&xc(t,Ge.nextType,a,Je)}if(Ge||S)return ve?vg(Ge&&Ge.yieldType):Ge&&Ge.yieldType}var Xe=r,tn=!1,Dn=!1;if(n&4){if(Xe.flags&1048576){var nr=r.types,sr=e.filter(nr,function(Ta){return!(Ta.flags&402653316)});sr!==nr&&(Xe=Sa(sr,2))}else Xe.flags&402653316&&(Xe=Jt);if(Dn=Xe!==r,Dn&&(we<1&&a&&(Jn(a,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),tn=!0),Xe.flags&131072))return ve?vg(gr):gr}if(!lp(Xe)){if(a&&!tn){var Ir=!!(n&4)&&!Dn,xr=_t(Ir,F),Gr=xr[0],ct=xr[1];Rs(a,ct&&!!Ig(Xe),Gr,Lt(Xe))}return Dn?ve?vg(gr):gr:void 0}var Vt=Ns(Xe,Dr);if(Dn&&Vt)return Vt.flags&402653316&&!pe.noUncheckedIndexedAccess?gr:Sa(ve?[Vt,gr,Rn]:[Vt,gr],2);return n&128?vg(Vt):Vt;function _t(Ta,sa){var mi;if(sa)return Ta?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];var ai=iD(n,0,r,void 0);return ai?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:CR((mi=r.symbol)===null||mi===void 0?void 0:mi.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:Ta?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}}function CR(n){switch(n){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function iD(n,r,t,a){if(!no(t)){var s=jv(t,n,a);return s&&s[m(r)]}}function sd(n,r,t){if(n===void 0&&(n=Jt),r===void 0&&(r=Jt),t===void 0&&(t=cn),n.flags&67359327&&r.flags&180227&&t.flags&180227){var a=lu([n,r,t]),s=Ho.get(a);return s||(s={yieldType:n,returnType:r,nextType:t},Ho.set(a,s)),s}return{yieldType:n,returnType:r,nextType:t}}function oD(n){for(var r,t,a,s=0,u=n;s<u.length;s++){var S=u[s];if(!(S===void 0||S===qi)){if(S===Qi)return Qi;r=e.append(r,S.yieldType),t=e.append(t,S.returnType),a=e.append(a,S.nextType)}}return r||t||a?sd(r&&Sa(r),t&&Sa(t),a&&Ro(a)):qi}function yy(n,r){return n[r]}function pf(n,r,t){return n[r]=t}function jv(n,r,t){if(no(n))return Qi;if(!(n.flags&1048576)){var a=lD(n,r,t);if(a===qi){t&&L1(t,n,!!(r&2));return}return a}var s=r&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",u=yy(n,s);if(u)return u===qi?void 0:u;for(var S,F=0,ve=n.types;F<ve.length;F++){var Ge=ve[F],Je=lD(Ge,r,t);if(Je===qi){t&&L1(t,n,!!(r&2)),pf(n,s,qi);return}else S=e.append(S,Je)}var Xe=S?oD(S):qi;return pf(n,s,Xe),Xe===qi?void 0:Xe}function sD(n,r){if(n===qi)return qi;if(n===Qi)return Qi;var t=n.yieldType,a=n.returnType,s=n.nextType;return sd(ku(t,r)||cr,ku(a,r)||cr,s)}function lD(n,r,t){if(no(n))return Qi;if(r&2){var a=S1(n,Da)||uD(n,Da);if(a)return a}if(r&1){var a=S1(n,$a)||uD(n,$a);if(a)if(r&2){if(a!==qi)return pf(n,"iterationTypesOfAsyncIterable",sD(a,t))}else return a}if(r&2){var a=D1(n,Da,t);if(a!==qi)return a}if(r&1){var a=D1(n,$a,t);if(a!==qi)return r&2?pf(n,"iterationTypesOfAsyncIterable",a?sD(a,t):qi):a}return qi}function S1(n,r){return yy(n,r.iterableCacheKey)}function cD(n,r){var t=S1(n,r)||D1(n,r,void 0);return t===qi?gs:t}function uD(n,r){var t;if(_(n,t=r.getGlobalIterableType(!1))||_(n,t=r.getGlobalIterableIteratorType(!1))){var a=Co(n)[0],s=cD(t,r),u=s.returnType,S=s.nextType;return pf(n,r.iterableCacheKey,sd(a,u,S))}if(_(n,r.getGlobalGeneratorType(!1))){var F=Co(n),a=F[0],u=F[1],S=F[2];return pf(n,r.iterableCacheKey,sd(a,u,S))}}function xR(n){var r=dT(!1),t=r&&Os(kt(r),e.escapeLeadingUnderscores(n));return t&&Gi(t)?ql(t):"__@"+n}function D1(n,r,t){var a,s=wn(n,xR(r.iteratorSymbolName)),u=s&&!(s.flags&16777216)?kt(s):void 0;if(no(u))return pf(n,r.iterableCacheKey,Qi);var S=u?zr(u,0):void 0;if(!e.some(S))return pf(n,r.iterableCacheKey,qi);var F=Ro(e.map(S,_o)),ve=(a=fD(F,r,t))!==null&&a!==void 0?a:qi;return pf(n,r.iterableCacheKey,ve)}function L1(n,r,t){var a=t?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;Rs(n,!!Ig(r),a,Lt(r))}function fD(n,r,t){if(no(n))return Qi;var a=dD(n,r)||IR(n,r)||mD(n,r,t);return a===qi?void 0:a}function dD(n,r){return yy(n,r.iteratorCacheKey)}function IR(n,r){var t=r.getGlobalIterableIteratorType(!1);if(_(n,t)){var a=Co(n)[0],s=dD(t,r)||mD(t,r,void 0),u=s===qi?gs:s,S=u.returnType,F=u.nextType;return pf(n,r.iteratorCacheKey,sd(a,S,F))}if(_(n,r.getGlobalIteratorType(!1))||_(n,r.getGlobalGeneratorType(!1))){var ve=Co(n),a=ve[0],S=ve[1],F=ve[2];return pf(n,r.iteratorCacheKey,sd(a,S,F))}}function pD(n,r){var t=Os(n,"done")||ft;return mo(r===0?ft:Kr,t)}function NR(n){return pD(n,0)}function kR(n){return pD(n,1)}function RR(n){if(no(n))return Qi;var r=yy(n,"iterationTypesOfIteratorResult");if(r)return r;if(_(n,xL(!1))){var t=Co(n)[0];return pf(n,"iterationTypesOfIteratorResult",sd(t,void 0,void 0))}if(_(n,IL(!1))){var a=Co(n)[0];return pf(n,"iterationTypesOfIteratorResult",sd(void 0,a,void 0))}var s=Nl(n,NR),u=s!==Jt?Os(s,"value"):void 0,S=Nl(n,kR),F=S!==Jt?Os(S,"value"):void 0;return!u&&!F?pf(n,"iterationTypesOfIteratorResult",qi):pf(n,"iterationTypesOfIteratorResult",sd(u,F||Cr,void 0))}function A1(n,r,t,a){var s,u,S,F,ve=wn(n,t);if(!(!ve&&t!=="next")){var Ge=ve&&!(t==="next"&&ve.flags&16777216)?t==="next"?kt(ve):gl(kt(ve),2097152):void 0;if(no(Ge))return t==="next"?Qi:as;var Je=Ge?zr(Ge,0):e.emptyArray;if(Je.length===0){if(a){var Xe=t==="next"?r.mustHaveANextMethodDiagnostic:r.mustBeAMethodDiagnostic;Jn(a,Xe,t)}return t==="next"?Qi:void 0}if(Ge!=null&&Ge.symbol&&Je.length===1){var tn=r.getGlobalGeneratorType(!1),Dn=r.getGlobalIteratorType(!1),nr=((u=(s=tn.symbol)===null||s===void 0?void 0:s.members)===null||u===void 0?void 0:u.get(t))===Ge.symbol,sr=!nr&&((F=(S=Dn.symbol)===null||S===void 0?void 0:S.members)===null||F===void 0?void 0:F.get(t))===Ge.symbol;if(nr||sr){var Ir=nr?tn:Dn,xr=Ge.mapper;return sd(Qp(Ir.typeParameters[0],xr),Qp(Ir.typeParameters[1],xr),t==="next"?Qp(Ir.typeParameters[2],xr):void 0)}}for(var Gr,ct,Vt=0,_t=Je;Vt<_t.length;Vt++){var Ta=_t[Vt];t!=="throw"&&e.some(Ta.parameters)&&(Gr=e.append(Gr,fu(Ta,0))),ct=e.append(ct,_o(Ta))}var sa,mi;if(t!=="throw"){var ai=Gr?Sa(Gr):cn;if(t==="next")mi=ai;else if(t==="return"){var Hi=r.resolveIterationType(ai,a)||cr;sa=e.append(sa,Hi)}}var ii,go=ct?Ro(ct):Jt,xo=r.resolveIterationType(go,a)||cr,Yr=RR(xo);return Yr===qi?(a&&Jn(a,r.mustHaveAValueDiagnostic,t),ii=cr,sa=e.append(sa,cr)):(ii=Yr.yieldType,sa=e.append(sa,Yr.returnType)),sd(ii,Sa(sa),mi)}}function mD(n,r,t){var a=oD([A1(n,r,"next",t),A1(n,r,"return",t),A1(n,r,"throw",t)]);return pf(n,r.iteratorCacheKey,a)}function Xm(n,r,t){if(!no(r)){var a=_D(r,t);return a&&a[m(n)]}}function _D(n,r){if(no(n))return Qi;var t=r?2:1,a=r?Da:$a;return jv(n,t,void 0)||fD(n,a,void 0)}function OR(n){Cf(n)||jP(n)}function Ey(n,r){var t,a,s=!!(r&1),u=!!(r&2);return s?(t=Xm(1,n,u))!==null&&t!==void 0?t:J:u?(a=ku(n))!==null&&a!==void 0?a:J:n}function gD(n,r){var t=Ey(r,e.getFunctionFlags(n));return!!t&&bs(t,16387)}function PR(n){var r;if(!Cf(n)){var t=e.getContainingFunctionOrClassStaticBlock(n);if(t&&e.isClassStaticBlockDeclaration(t)){Sl(n,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!t){Sl(n,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);return}var a=su(t),s=_o(a),u=e.getFunctionFlags(t);if(He||n.expression||s.flags&131072){var S=n.expression?ll(n.expression):Rn;if(t.kind===171)n.expression&&Jn(n,e.Diagnostics.Setters_cannot_return_a_value);else if(t.kind===169)n.expression&&!sp(S,s,n,n.expression)&&Jn(n,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(bp(t)){var F=(r=Ey(s,u))!==null&&r!==void 0?r:s,ve=u&2?Ng(S,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):S;F&&sp(ve,F,n,n.expression)}}else t.kind!==169&&pe.noImplicitReturns&&!gD(t,s)&&Jn(n,e.Diagnostics.Not_all_code_paths_return_a_value)}}function MR(n){Cf(n)||n.flags&32768&&Sl(n,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),vi(n.expression);var r=e.getSourceFileOfNode(n);if(!lm(r)){var t=e.getSpanOfTokenAtPosition(r,n.pos).start,a=n.statement.pos;up(r,t,a-t,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function wR(n){Cf(n);var r,t=!1,a=vi(n.expression),s=Gm(a);e.forEach(n.caseBlock.clauses,function(u){if(u.kind===288&&!t&&(r===void 0?r=u:(At(u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),t=!0)),M&&u.kind===287){var S=vi(u.expression),F=Gm(S),ve=a;(!F||!s)&&(S=F?ju(S):S,ve=ju(a)),c1(ve,S)||aS(S,ve,u.expression,void 0)}e.forEach(u.statements,ao),pe.noFallthroughCasesInSwitch&&u.fallthroughFlowNode&&bv(u.fallthroughFlowNode)&&Jn(u,e.Diagnostics.Fallthrough_case_in_switch)}),n.caseBlock.locals&&Od(n.caseBlock)}function FR(n){Cf(n)||e.findAncestor(n.parent,function(r){return e.isFunctionLike(r)?"quit":r.kind===248&&r.label.escapedText===n.label.escapedText?(At(n.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(n.label)),!0):!1}),ao(n.statement)}function GR(n){Cf(n)||e.isIdentifier(n.expression)&&!n.expression.escapedText&&iM(n,e.Diagnostics.Line_break_not_permitted_here),n.expression&&vi(n.expression)}function BR(n){Cf(n),vy(n.tryBlock);var r=n.catchClause;if(r){if(r.variableDeclaration){var t=r.variableDeclaration,a=e.getEffectiveTypeAnnotationNode(e.getRootDeclaration(t));if(a){var s=ns(t,!1);s&&!(s.flags&3)&&Sl(a,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(t.initializer)Sl(t.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var u=r.block.locals;u&&e.forEachKey(r.locals,function(S){var F=u.get(S);F!=null&&F.valueDeclaration&&F.flags&2&&At(F.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,S)})}}vy(r.block)}n.finallyBlock&&vy(n.finallyBlock)}function by(n,r){var t=Ei(n);if(t.length!==0){for(var a=0,s=qf(n);a<s.length;a++){var u=s[a];r&&u.flags&4194304||vD(n,u,Om(u,8576,!0),El(u))}var S=n.symbol.valueDeclaration;if(S&&e.isClassLike(S))for(var F=0,ve=S.members;F<ve.length;F++){var Ge=ve[F];if(!e.isStatic(Ge)&&!wl(Ge)){var Je=wt(Ge);vD(n,Je,kl(Ge.name.expression),El(Je))}}if(t.length>1)for(var Xe=0,tn=t;Xe<tn.length;Xe++){var Dn=tn[Xe];UR(n,Dn)}}}function vD(n,r,t,a){var s=r.valueDeclaration,u=e.getNameOfDeclaration(s);if(!(u&&e.isPrivateIdentifier(u)))for(var S=_l(n,t),F=e.getObjectFlags(n)&2?e.getDeclarationOfKind(n.symbol,256):void 0,ve=s&&s.kind===219||u&&u.kind===160||Kl(r)===n.symbol?s:void 0,Ge=function(Dn){var nr=Dn.declaration&&Kl(wt(Dn.declaration))===n.symbol?Dn.declaration:void 0,sr=ve||nr||(F&&!e.some(vc(n),function(Ir){return!!Df(Ir,r.escapedName)&&!!Ns(Ir,Dn.keyType)})?F:void 0);sr&&!mo(a,Dn.type)&&Jn(sr,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Qa(r),Lt(a),Lt(Dn.keyType),Lt(Dn.type))},Je=0,Xe=S;Je<Xe.length;Je++){var tn=Xe[Je];Ge(tn)}}function UR(n,r){for(var t=r.declaration,a=_l(n,r.keyType),s=e.getObjectFlags(n)&2?e.getDeclarationOfKind(n.symbol,256):void 0,u=t&&Kl(wt(t))===n.symbol?t:void 0,S=function(Je){if(Je===r)return"continue";var Xe=Je.declaration&&Kl(wt(Je.declaration))===n.symbol?Je.declaration:void 0,tn=u||Xe||(s&&!e.some(vc(n),function(Dn){return!!po(Dn,r.keyType)&&!!Ns(Dn,Je.keyType)})?s:void 0);tn&&!mo(r.type,Je.type)&&Jn(tn,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,Lt(r.keyType),Lt(r.type),Lt(Je.keyType),Lt(Je.type))},F=0,ve=a;F<ve.length;F++){var Ge=ve[F];S(Ge)}}function G_(n,r){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Jn(n,r,n.escapedText)}}function VR(n){we===1&&n.escapedText==="Object"&&pn<e.ModuleKind.ES2015&&Jn(n,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[pn])}function Ty(n){if(n)for(var r=!1,t=0;t<n.length;t++){var a=n[t];if(F2(a),M){a.default?(r=!0,WR(a.default,n,t)):r&&Jn(a,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var s=0;s<t;s++)n[s].symbol===a.symbol&&Jn(a.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(a.name))}}}function WR(n,r,t){a(n);function a(s){if(s.kind===176){var u=sv(s);if(u.flags&262144)for(var S=t;S<r.length;S++)u.symbol===wt(r[S])&&Jn(s,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(s,a)}}function hD(n){if(!(n.declarations&&n.declarations.length===1)){var r=Za(n);if(!r.typeParametersChecked){r.typeParametersChecked=!0;var t=XR(n);if(!t||t.length<=1)return;var a=rs(n);if(!jR(t,a.localTypeParameters))for(var s=Qa(n),u=0,S=t;u<S.length;u++){var F=S[u];Jn(F.name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,s)}}}}function jR(n,r){for(var t=e.length(r),a=Lu(r),s=0,u=n;s<u.length;s++){var S=u[s],F=e.getEffectiveTypeParameterDeclarations(S),ve=F.length;if(ve<a||ve>t)return!1;for(var Ge=0;Ge<ve;Ge++){var Je=F[Ge],Xe=r[Ge];if(Je.name.escapedText!==Xe.symbol.escapedName)return!1;var tn=e.getEffectiveConstraintOfTypeParameter(Je),Dn=tn&&Ra(tn),nr=yc(Xe);if(Dn&&nr&&!$f(Dn,nr))return!1;var sr=Je.default&&Ra(Je.default),Ir=ep(Xe);if(sr&&Ir&&!$f(sr,Ir))return!1}}return!0}function HR(n){return yD(n),Og(n),kt(wt(n))}function JR(n){e.forEach(n.members,ao),Od(n)}function KR(n){e.some(n.decorators)&&e.some(n.members,function(r){return e.hasStaticModifier(r)&&e.isPrivateIdentifierClassElementDeclaration(r)})&&At(n.decorators[0],e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!e.hasSyntacticModifier(n,512)&&Sl(n,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),yD(n),e.forEach(n.members,ao),Od(n)}function yD(n){AP(n),Gv(n),w_(n,n.name),Ty(e.getEffectiveTypeParameterDeclarations(n)),xg(n);var r=wt(n),t=rs(r),a=Ac(t),s=kt(r);hD(r),_y(r),bk(n);var u=!!(n.flags&8388608);u||Tk(n);var S=e.getEffectiveBaseTypeNode(n);if(S){e.forEach(S.typeArguments,ao),we<2&&Bl(S.parent,1);var F=e.getClassExtendsHeritageElement(n);F&&F!==S&&vi(F.expression);var ve=vc(t);if(ve.length&&M){var Ge=ve[0],Je=cf(t),Xe=Il(Je);if(qR(Xe,S),ao(S.expression),e.some(S.typeArguments)){e.forEach(S.typeArguments,ao);for(var tn=0,Dn=Sf(Xe,S.typeArguments,S);tn<Dn.length;tn++){var nr=Dn[tn];if(!j2(S,nr.typeParameters))break}}var sr=Ac(Ge,t.thisType);if(xc(a,sr,void 0)?xc(s,eS(Xe),n.name||n,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):ED(n,a,sr,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),Je.flags&8650752)if(!Yo(s))Jn(n.name||n,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);else{var Ir=zr(Je,1);Ir.some(function(mi){return mi.flags&4})&&!e.hasSyntacticModifier(n,128)&&Jn(n.name||n,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract)}if(!(Xe.symbol&&Xe.symbol.flags&32)&&!(Je.flags&8650752)){var xr=Kf(Xe,S.typeArguments,S);e.forEach(xr,function(mi){return!Nu(mi.declaration)&&!$f(_o(mi),Ge)})&&Jn(S.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}YR(t,Ge)}}zR(n,t,a,s);var Gr=e.getEffectiveImplementsTypeNodes(n);if(Gr)for(var ct=0,Vt=Gr;ct<Vt.length;ct++){var _t=Vt[ct];if((!e.isEntityNameExpression(_t.expression)||e.isOptionalChain(_t.expression))&&Jn(_t.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),g1(_t),M){var Ta=iu(Ra(_t));if(Ta!==J)if(jp(Ta)){var sa=Ta.symbol&&Ta.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,sr=Ac(Ta,t.thisType);xc(a,sr,void 0)||ED(n,a,sr,sa)}else Jn(_t,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}M&&(by(t),by(s,!0),p1(n),$R(n))}function zR(n,r,t,a){for(var s=!!(n.flags&8388608),u=e.getEffectiveBaseTypeNode(n),S=u&&vc(r),F=S!=null&&S.length?Ac(e.first(S),r.thisType):void 0,ve=cf(r),Ge=function(nr){if(e.hasAmbientModifier(nr))return"continue";e.isConstructorDeclaration(nr)&&e.forEach(nr.parameters,function(sr){e.isParameterPropertyDeclaration(sr,nr)&&Dn(sr,!0)}),Dn(nr)},Je=0,Xe=n.members;Je<Xe.length;Je++){var tn=Xe[Je];Ge(tn)}function Dn(nr,sr){var Ir=e.hasOverrideModifier(nr),xr=e.isStatic(nr);if(F&&(Ir||pe.noImplicitOverride)){var Gr=nr.name&&Kc(nr.name)||Kc(nr);if(!Gr)return;var ct=xr?a:t,Vt=xr?ve:F,_t=wn(ct,Gr.escapedName),Ta=wn(Vt,Gr.escapedName),sa=Lt(F);if(_t&&!Ta&&Ir){var mi=U0(e.symbolName(Gr),Vt);mi?Jn(nr,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,sa,Qa(mi)):Jn(nr,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,sa)}else if(_t&&(Ta!=null&&Ta.declarations)&&pe.noImplicitOverride&&!s){var ai=e.some(Ta.declarations,function(go){return e.hasAbstractModifier(go)});if(Ir)return;if(ai)e.hasAbstractModifier(nr)&&ai&&Jn(nr,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,sa);else{var Hi=sr?e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Jn(nr,Hi,sa)}}}else if(Ir){var ii=Lt(r);Jn(nr,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,ii)}}}function ED(n,r,t,a){for(var s=!1,u=function(Ge){if(e.isStatic(Ge))return"continue";var Je=Ge.name&&Kc(Ge.name)||Kc(Ge);if(Je){var Xe=wn(r,Je.escapedName),tn=wn(t,Je.escapedName);if(Xe&&tn){var Dn=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Qa(Je),Lt(r),Lt(t))};xc(kt(Xe),kt(tn),Ge.name||Ge,void 0,Dn)||(s=!0)}}},S=0,F=n.members;S<F.length;S++){var ve=F[S];u(ve)}s||xc(r,t,n.name||n,a)}function qR(n,r){var t=zr(n,1);if(t.length){var a=t[0].declaration;if(a&&e.hasEffectiveModifier(a,8)){var s=e.getClassLikeDeclarationOfSymbol(n.symbol);k1(r,s)||Jn(r,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Vi(n.symbol))}}}function Ym(n){return e.getCheckFlags(n)&1?n.target:n}function XR(n){return e.filter(n.declarations,function(r){return r.kind===255||r.kind===256})}function YR(n,r){var t,a,s=bo(r);e:for(var u=0,S=s;u<S.length;u++){var F=S[u],ve=Ym(F);if(!(ve.flags&4194304)){var Ge=Df(n,ve.escapedName);if(Ge){var Je=Ym(Ge),Xe=e.getDeclarationModifierFlagsFromSymbol(ve);if(e.Debug.assert(!!Je,"derived should point to something, even if it is the base class' declaration."),Je===ve){var tn=e.getClassLikeDeclarationOfSymbol(n.symbol);if(Xe&128&&(!tn||!e.hasSyntacticModifier(tn,128))){for(var Dn=0,nr=vc(n);Dn<nr.length;Dn++){var sr=nr[Dn];if(sr!==r){var Ir=Df(sr,ve.escapedName),xr=Ir&&Ym(Ir);if(xr&&xr!==ve)continue e}}tn.kind===224?Jn(tn,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Qa(F),Lt(r)):Jn(tn,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Lt(n),Qa(F),Lt(r))}}else{var Gr=e.getDeclarationModifierFlagsFromSymbol(Je);if(Xe&8||Gr&8)continue;var ct=void 0,Vt=ve.flags&98308,_t=Je.flags&98308;if(Vt&&_t){if(Xe&128&&!(ve.valueDeclaration&&e.isPropertyDeclaration(ve.valueDeclaration)&&ve.valueDeclaration.initializer)||ve.valueDeclaration&&ve.valueDeclaration.parent.kind===256||Je.valueDeclaration&&e.isBinaryExpression(Je.valueDeclaration))continue;var Ta=Vt!==4&&_t===4,sa=Vt===4&&_t!==4;if(Ta||sa){var mi=Ta?e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Jn(e.getNameOfDeclaration(Je.valueDeclaration)||Je.valueDeclaration,mi,Qa(ve),Lt(r),Lt(n))}else if(Qe){var ai=(t=Je.declarations)===null||t===void 0?void 0:t.find(function(xo){return xo.kind===165&&!xo.initializer});if(ai&&!(Je.flags&33554432)&&!(Xe&128)&&!(Gr&128)&&!(!((a=Je.declarations)===null||a===void 0)&&a.some(function(xo){return!!(xo.flags&8388608)}))){var Hi=kc(e.getClassLikeDeclarationOfSymbol(n.symbol)),ii=ai.name;if(ai.exclamationToken||!Hi||!e.isIdentifier(ii)||!He||!TD(ii,n,Hi)){var go=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;Jn(e.getNameOfDeclaration(Je.valueDeclaration)||Je.valueDeclaration,go,Qa(ve),Lt(r))}}}continue}else if(Vb(ve)){if(Vb(Je)||Je.flags&4)continue;e.Debug.assert(!!(Je.flags&98304)),ct=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else ve.flags&98304?ct=e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:ct=e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Jn(e.getNameOfDeclaration(Je.valueDeclaration)||Je.valueDeclaration,ct,Lt(r),Qa(ve),Lt(n))}}}}}function QR(n,r,t){if(!e.length(r))return t;var a=new e.Map;e.forEach(t,function(tn){a.set(tn.escapedName,tn)});for(var s=0,u=r;s<u.length;s++)for(var S=u[s],F=bo(Ac(S,n.thisType)),ve=0,Ge=F;ve<Ge.length;ve++){var Je=Ge[ve],Xe=a.get(Je.escapedName);Xe&&!pS(Xe,Je)&&a.delete(Je.escapedName)}return e.arrayFrom(a.values())}function ZR(n,r){var t=vc(n);if(t.length<2)return!0;var a=new e.Map;e.forEach(ui(n).declaredProperties,function(xr){a.set(xr.escapedName,{prop:xr,containingType:n})});for(var s=!0,u=0,S=t;u<S.length;u++)for(var F=S[u],ve=bo(Ac(F,n.thisType)),Ge=0,Je=ve;Ge<Je.length;Ge++){var Xe=Je[Ge],tn=a.get(Xe.escapedName);if(!tn)a.set(Xe.escapedName,{prop:Xe,containingType:F});else{var Dn=tn.containingType!==n;if(Dn&&!pS(tn.prop,Xe)){s=!1;var nr=Lt(tn.containingType),sr=Lt(F),Ir=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Qa(Xe),nr,sr);Ir=e.chainDiagnosticMessages(Ir,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Lt(n),nr,sr),zt.add(e.createDiagnosticForNodeFromMessageChain(r,Ir))}}}return s}function $R(n){if(!(!He||!fn||n.flags&8388608))for(var r=kc(n),t=0,a=n.members;t<a.length;t++){var s=a[t];if(!(e.getEffectiveModifierFlags(s)&2)&&!e.isStatic(s)&&bD(s)){var u=s.name;if(e.isIdentifier(u)||e.isPrivateIdentifier(u)){var S=kt(wt(s));S.flags&3||wc(S)&32768||(!r||!TD(u,S,r))&&Jn(s.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(u))}}}}function bD(n){return n.kind===165&&!e.hasAbstractModifier(n)&&!n.exclamationToken&&!n.initializer}function eO(n,r,t,a,s){for(var u=0,S=t;u<S.length;u++){var F=S[u];if(F.pos>=a&&F.pos<=s){var ve=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(ve.expression,ve),e.setParent(ve,F),ve.flowNode=F.returnFlowNode;var Ge=tm(ve,r,td(r));if(!(wc(Ge)&32768))return!0}}return!1}function TD(n,r,t){var a=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(a.expression,a),e.setParent(a,t),a.flowNode=t.returnFlowNode;var s=tm(a,r,td(r));return!(wc(s)&32768)}function nO(n){if(Af(n)||MP(n),Ty(n.typeParameters),M){G_(n.name,e.Diagnostics.Interface_name_cannot_be_0),xg(n);var r=wt(n);hD(r);var t=e.getDeclarationOfKind(r,256);if(n===t){var a=rs(r),s=Ac(a);if(ZR(a,n.name)){for(var u=0,S=vc(a);u<S.length;u++){var F=S[u];xc(s,Ac(F,a.thisType),n.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}by(a)}}U2(n)}e.forEach(e.getInterfaceBaseTypeNodes(n),function(ve){(!e.isEntityNameExpression(ve.expression)||e.isOptionalChain(ve.expression))&&Jn(ve.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),g1(ve)}),e.forEach(n.members,ao),M&&(p1(n),Od(n))}function rO(n){Af(n),G_(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),xg(n),Ty(n.typeParameters),n.type.kind===137?(!w.has(n.name.escapedText)||e.length(n.typeParameters)!==1)&&Jn(n.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(ao(n.type),Od(n))}function SD(n){var r=da(n);if(!(r.flags&16384)){r.flags|=16384;for(var t=0,a=0,s=n.members;a<s.length;a++){var u=s[a],S=tO(u,t);da(u).enumMemberValue=S,t=typeof S=="number"?S+1:void 0}}}function tO(n,r){if(e.isComputedNonLiteralName(n.name))Jn(n.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var t=e.getTextOfPropertyName(n.name);id(t)&&!e.isInfinityOrNaNString(t)&&Jn(n.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return aO(n);if(!(n.parent.flags&8388608&&!e.isEnumConst(n.parent)&&mm(wt(n.parent))===0)){if(r!==void 0)return r;Jn(n.name,e.Diagnostics.Enum_member_must_have_initializer)}}function aO(n){var r=mm(wt(n.parent)),t=e.isEnumConst(n.parent),a=n.initializer,s=r===1&&!Im(n)?void 0:S(a);if(s!==void 0)t&&typeof s=="number"&&!isFinite(s)&&Jn(a,isNaN(s)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(r===1)return Jn(a,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(t)Jn(a,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(n.parent.flags&8388608)Jn(a,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var u=vi(a);qs(u,296)?xc(u,rs(wt(n.parent)),a,void 0):Jn(a,e.Diagnostics.Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead,Lt(u))}}return s;function S(ve){switch(ve.kind){case 217:var Ge=S(ve.operand);if(typeof Ge=="number")switch(ve.operator){case 39:return Ge;case 40:return-Ge;case 54:return~Ge}break;case 219:var Je=S(ve.left),Xe=S(ve.right);if(typeof Je=="number"&&typeof Xe=="number")switch(ve.operatorToken.kind){case 51:return Je|Xe;case 50:return Je&Xe;case 48:return Je>>Xe;case 49:return Je>>>Xe;case 47:return Je<<Xe;case 52:return Je^Xe;case 41:return Je*Xe;case 43:return Je/Xe;case 39:return Je+Xe;case 40:return Je-Xe;case 44:return Je%Xe;case 42:return Math.pow(Je,Xe)}else if(typeof Je=="string"&&typeof Xe=="string"&&ve.operatorToken.kind===39)return Je+Xe;break;case 10:case 14:return ve.text;case 8:return W1(ve),+ve.text;case 210:return S(ve.expression);case 79:var tn=ve;return e.isInfinityOrNaNString(tn.escapedText)?+tn.escapedText:e.nodeIsMissing(ve)?0:F(ve,wt(n.parent),tn.escapedText);case 205:case 204:var Dn=ve;if(C1(Dn)){var nr=kl(Dn.expression);if(nr.symbol&&nr.symbol.flags&384){var sr=void 0;return Dn.kind===204?sr=Dn.name.escapedText:sr=e.escapeLeadingUnderscores(e.cast(Dn.argumentExpression,e.isLiteralExpression).text),F(ve,nr.symbol,sr)}}break}}function F(ve,Ge,Je){var Xe=Ge.exports.get(Je);if(Xe){var tn=Xe.valueDeclaration;if(tn!==n)return tn&&Dc(tn,n)?ky(tn):(Jn(ve,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);Jn(ve,e.Diagnostics.Property_0_is_used_before_being_assigned,Qa(Xe))}}}function C1(n){return n.kind===79||n.kind===204&&C1(n.expression)||n.kind===205&&C1(n.expression)&&e.isStringLiteralLike(n.argumentExpression)}function iO(n){if(M){Af(n),w_(n,n.name),xg(n),n.members.forEach(oO),SD(n);var r=wt(n),t=e.getDeclarationOfKind(r,n.kind);if(n===t){if(r.declarations&&r.declarations.length>1){var a=e.isEnumConst(n);e.forEach(r.declarations,function(u){e.isEnumDeclaration(u)&&e.isEnumConst(u)!==a&&Jn(e.getNameOfDeclaration(u),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var s=!1;e.forEach(r.declarations,function(u){if(u.kind!==258)return!1;var S=u;if(!S.members.length)return!1;var F=S.members[0];F.initializer||(s?Jn(F.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):s=!0)})}}}function oO(n){e.isPrivateIdentifier(n.name)&&Jn(n,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function sO(n){var r=n.declarations;if(r)for(var t=0,a=r;t<a.length;t++){var s=a[t];if((s.kind===255||s.kind===254&&e.nodeIsPresent(s.body))&&!(s.flags&8388608))return s}}function lO(n,r){var t=e.getEnclosingBlockScopeContainer(n),a=e.getEnclosingBlockScopeContainer(r);return pc(t)?pc(a):pc(a)?!1:t===a}function cO(n){if(M){var r=e.isGlobalScopeAugmentation(n),t=n.flags&8388608;r&&!t&&Jn(n.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var a=e.isAmbientModule(n),s=a?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(Hv(n,s))return;Af(n)||!t&&n.name.kind===10&&At(n.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(n.name)&&w_(n,n.name),xg(n);var u=wt(n);if(u.flags&512&&!t&&u.declarations&&u.declarations.length>1&&d(n,e.shouldPreserveConstEnums(pe))){var S=sO(u);S&&(e.getSourceFileOfNode(n)!==e.getSourceFileOfNode(S)?Jn(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<S.pos&&Jn(n.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var F=e.getDeclarationOfKind(u,255);F&&lO(n,F)&&(da(n).flags|=32768)}if(a)if(e.isExternalModuleAugmentation(n)){var ve=r||wt(n).flags&33554432;if(ve&&n.body)for(var Ge=0,Je=n.body.statements;Ge<Je.length;Ge++){var Xe=Je[Ge];x1(Xe,r)}}else pc(n.parent)?r?Jn(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))&&Jn(n.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):r?Jn(n.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Jn(n.name,e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}n.body&&(ao(n.body),e.isGlobalScopeAugmentation(n)||Od(n))}function x1(n,r){var t;switch(n.kind){case 235:for(var a=0,s=n.declarationList.declarations;a<s.length;a++){var u=s[a];x1(u,r)}break;case 269:case 270:Sl(n,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 263:case 264:Sl(n,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 201:case 252:var S=n.name;if(e.isBindingPattern(S)){for(var F=0,ve=S.elements;F<ve.length;F++){var Ge=ve[F];x1(Ge,r)}break}case 255:case 258:case 254:case 256:case 259:case 257:if(r)return;var Je=wt(n);if(Je){var Xe=!(Je.flags&33554432);Xe||(Xe=!!(!((t=Je.parent)===null||t===void 0)&&t.declarations)&&e.isExternalModuleAugmentation(Je.parent.declarations[0]))}break}}function uO(n){switch(n.kind){case 79:return n;case 159:do n=n.left;while(n.kind!==79);return n;case 204:do{if(e.isModuleExportsAccessExpression(n.expression)&&!e.isPrivateIdentifier(n.name))return n.name;n=n.expression}while(n.kind!==79);return n}}function I1(n){var r=e.getExternalModuleName(n);if(!r||e.nodeIsMissing(r))return!1;if(!e.isStringLiteral(r))return Jn(r,e.Diagnostics.String_literal_expected),!1;var t=n.parent.kind===260&&e.isAmbientModule(n.parent.parent);return n.parent.kind!==300&&!t?(Jn(r,n.kind===270?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1):t&&e.isExternalModuleNameRelative(r.text)&&!vp(n)?(Jn(n,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1):!0}function Sy(n){var r,t=wt(n),a=_i(t);if(a!==Xn){t=Eo(t.exportSymbol||t);var s=(t.flags&1160127?111551:0)|(t.flags&788968?788968:0)|(t.flags&1920?1920:0);if(a.flags&s){var u=n.kind===273?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;Jn(n,u,Qa(t))}pe.isolatedModules&&n.kind===273&&!n.parent.parent.isTypeOnly&&!(a.flags&111551)&&!(n.flags&8388608)&&Jn(n,e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type),e.isImportSpecifier(n)&&(!((r=a.declarations)===null||r===void 0)&&r.every(function(S){return!!(e.getCombinedNodeFlags(S)&134217728)}))&&ol(n.name,a.declarations,t.escapedName)}}function Dy(n){w_(n,n.name),Sy(n),n.kind===268&&e.idText(n.propertyName||n.name)==="default"&&pe.esModuleInterop&&pn!==e.ModuleKind.System&&pn<e.ModuleKind.ES2015&&Bl(n,131072)}function fO(n){if(!Hv(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!Af(n)&&e.hasEffectiveModifiers(n)&&Sl(n,e.Diagnostics.An_import_declaration_cannot_have_modifiers),I1(n))){var r=n.importClause;if(r&&!sM(r)&&(r.name&&Dy(r),r.namedBindings))if(r.namedBindings.kind===266)Dy(r.namedBindings),pn!==e.ModuleKind.System&&pn<e.ModuleKind.ES2015&&pe.esModuleInterop&&Bl(n,65536);else{var t=wo(n,n.moduleSpecifier);t&&e.forEach(r.namedBindings.elements,Dy)}}}function dO(n){if(!Hv(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(Af(n),e.isInternalModuleImportEqualsDeclaration(n)||I1(n)))if(Dy(n),e.hasSyntacticModifier(n,1)&&ni(n),n.moduleReference.kind!==275){var r=_i(wt(n));if(r!==Xn){if(r.flags&111551){var t=e.getFirstIdentifier(n.moduleReference);ki(t,112575).flags&1920||Jn(t,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(t))}r.flags&788968&&G_(n.name,e.Diagnostics.Import_name_cannot_be_0)}n.isTypeOnly&&At(n,e.Diagnostics.An_import_alias_cannot_use_import_type)}else pn>=e.ModuleKind.ES2015&&!n.isTypeOnly&&!(n.flags&8388608)&&At(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 pO(n){if(!Hv(n,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!Af(n)&&e.hasEffectiveModifiers(n)&&Sl(n,e.Diagnostics.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&e.isNamedExports(n.exportClause)&&e.length(n.exportClause.elements)&&we===0&&Bl(n,2097152),mO(n),!n.moduleSpecifier||I1(n)))if(n.exportClause&&!e.isNamespaceExport(n.exportClause)){e.forEach(n.exportClause.elements,EO);var r=n.parent.kind===260&&e.isAmbientModule(n.parent.parent),t=!r&&n.parent.kind===260&&!n.moduleSpecifier&&n.flags&8388608;n.parent.kind!==300&&!r&&!t&&Jn(n,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var a=wo(n,n.moduleSpecifier);a&&Dl(a)?Jn(n.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Qa(a)):n.exportClause&&Sy(n.exportClause),pn!==e.ModuleKind.System&&pn<e.ModuleKind.ES2015&&(n.exportClause?pe.esModuleInterop&&Bl(n,65536):Bl(n,32768))}}function mO(n){var r,t=n.isTypeOnly&&((r=n.exportClause)===null||r===void 0?void 0:r.kind)!==271;return t&&At(n,e.Diagnostics.Only_named_exports_may_use_export_type),!t}function Hv(n,r){var t=n.parent.kind===300||n.parent.kind===260||n.parent.kind===259;return t||Sl(n,r),!t}function _O(n){return e.forEachImportClauseDeclaration(n,function(r){return!!wt(r).isReferenced})}function gO(n){return e.forEachImportClauseDeclaration(n,function(r){return!!Za(wt(r)).constEnumReferenced})}function vO(n){return e.isImportDeclaration(n)&&n.importClause&&!n.importClause.isTypeOnly&&_O(n.importClause)&&!Ny(n.importClause,!0)&&!gO(n.importClause)}function hO(n){return e.isImportEqualsDeclaration(n)&&e.isExternalModuleReference(n.moduleReference)&&!n.isTypeOnly&&wt(n).isReferenced&&!Ny(n,!1)&&!Za(wt(n)).constEnumReferenced}function yO(n){for(var r=0,t=n.statements;r<t.length;r++){var a=t[r];(vO(a)||hO(a))&&Jn(a,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}}function EO(n){if(Sy(n),e.getEmitDeclarations(pe)&&zd(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)pe.esModuleInterop&&pn!==e.ModuleKind.System&&pn<e.ModuleKind.ES2015&&e.idText(n.propertyName||n.name)==="default"&&Bl(n,131072);else{var r=n.propertyName||n.name,t=es(r,r.escapedText,2998271,void 0,void 0,!0);if(t&&(t===Ze||t===hn||t.declarations&&pc(jf(t.declarations[0]))))Jn(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(r));else{ni(n);var a=t&&(t.flags&2097152?_i(t):t);(!a||a===Xn||a.flags&111551)&&ll(n.propertyName||n.name)}}}function bO(n){var r=n.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(!Hv(n,r)){var t=n.parent.kind===300?n.parent:n.parent.parent;if(t.kind===259&&!e.isAmbientModule(t)){n.isExportEquals?Jn(n,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Jn(n,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}if(!Af(n)&&e.hasEffectiveModifiers(n)&&Sl(n,e.Diagnostics.An_export_assignment_cannot_have_modifiers),n.expression.kind===79){var a=n.expression,s=ki(a,67108863,!0,!0,n);if(s){Wh(s,a);var u=s.flags&2097152?_i(s):s;(u===Xn||u.flags&111551)&&ll(n.expression)}else ll(n.expression);e.getEmitDeclarations(pe)&&zd(n.expression,!0)}else ll(n.expression);DD(t),n.flags&8388608&&!e.isEntityNameExpression(n.expression)&&At(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)&&(pn>=e.ModuleKind.ES2015?At(n,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):pn===e.ModuleKind.System&&At(n,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}}function TO(n){return e.forEachEntry(n.exports,function(r,t){return t!=="export="})}function DD(n){var r=wt(n),t=Za(r);if(!t.exportsChecked){var a=r.exports.get("export=");if(a&&TO(r)){var s=Jl(a)||a.valueDeclaration;s&&!vp(s)&&!e.isInJSFile(s)&&Jn(s,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var u=Ic(r);u&&u.forEach(function(S,F){var ve=S.declarations,Ge=S.flags;if(F!=="__export"&&!(Ge&1984)){var Je=e.countWhere(ve,b);if(!(Ge&524288&&Je<=2)&&Je>1&&!Ly(ve))for(var Xe=0,tn=ve;Xe<tn.length;Xe++){var Dn=tn[Xe];p(Dn)&&zt.add(e.createDiagnosticForNode(Dn,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(F)))}}}),t.exportsChecked=!0}}function Ly(n){return n&&n.length>1&&n.every(function(r){return e.isInJSFile(r)&&e.isAccessExpression(r)&&(e.isExportsIdentifier(r.expression)||e.isModuleExportsAccessExpression(r.expression))})}function ao(n){if(n){var r=fe;fe=n,De=0,SO(n),fe=r}}function SO(n){e.isInJSFile(n)&&e.forEach(n.jsDoc,function(t){var a=t.tags;return e.forEach(a,ao)});var r=n.kind;if(z)switch(r){case 259:case 255:case 256:case 254:z.throwIfCancellationRequested()}switch(r>=235&&r<=251&&n.flowNode&&!bv(n.flowNode)&&Es(pe.allowUnreachableCode===!1,n,e.Diagnostics.Unreachable_code_detected),r){case 161:return F2(n);case 162:return G2(n);case 165:return V2(n);case 164:return Sk(n);case 178:case 177:case 172:case 173:case 174:return Cg(n);case 167:case 166:return Dk(n);case 168:return Lk(n);case 169:return Ak(n);case 170:case 171:return W2(n);case 176:return g1(n);case 175:return yk(n);case 179:return Ik(n);case 180:return Nk(n);case 181:return kk(n);case 182:return Rk(n);case 185:case 186:return Ok(n);case 189:case 183:case 184:return ao(n.type);case 190:return wk(n);case 191:return Fk(n);case 187:return Gk(n);case 188:return Bk(n);case 196:return Uk(n);case 198:return Vk(n);case 195:return Wk(n);case 323:return nR(n);case 324:return eR(n);case 340:case 333:case 334:return qk(n);case 339:return Xk(n);case 338:return Yk(n);case 335:return Qk(n);case 342:return Zk(n);case 312:$k(n);case 310:case 309:case 307:case 308:case 317:LD(n),e.forEachChild(n,ao);return;case 313:DO(n);return;case 304:return ao(n.type);case 192:return Pk(n);case 193:return Mk(n);case 254:return zk(n);case 233:case 260:return vy(n);case 235:return vR(n);case 236:return hR(n);case 237:return yR(n);case 238:return TR(n);case 239:return SR(n);case 240:return DR(n);case 241:return AR(n);case 242:return LR(n);case 243:case 244:return OR(n);case 245:return PR(n);case 246:return MR(n);case 247:return wR(n);case 248:return FR(n);case 249:return GR(n);case 250:return BR(n);case 252:return E1(n);case 201:return gR(n);case 255:return KR(n);case 256:return nO(n);case 257:return rO(n);case 258:return iO(n);case 259:return cO(n);case 264:return fO(n);case 263:return dO(n);case 270:return pO(n);case 269:return bO(n);case 234:case 251:Cf(n);return;case 274:return Ck(n)}}function LD(n){e.isInJSFile(n)||At(n,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function DO(n){LD(n),ao(n.type);var r=n.parent;if(e.isParameter(r)&&e.isJSDocFunctionType(r.parent)){e.last(r.parent.parameters)!==r&&Jn(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);return}e.isJSDocTypeExpression(r)||Jn(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var t=n.parent.parent;if(!e.isJSDocParameterTag(t)){Jn(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}var a=e.getParameterSymbolFromJSDoc(t);if(a){var s=e.getHostSignatureFromJSDoc(t);(!s||e.last(s.parameters).symbol!==a)&&Jn(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}function LO(n){var r=Ra(n.type),t=n.parent,a=n.parent.parent;if(e.isJSDocTypeExpression(n.parent)&&e.isJSDocParameterTag(a)){var s=e.getHostSignatureFromJSDoc(a),u=e.isJSDocCallbackTag(a.parent.parent);if(s||u){var S=u?e.lastOrUndefined(a.parent.parent.typeExpression.parameters):e.lastOrUndefined(s.parameters),F=e.getParameterSymbolFromJSDoc(a);if(!S||F&&S.symbol===F&&e.isRestParameter(S))return bl(r)}}return e.isParameter(t)&&e.isJSDocFunctionType(t.parent)?bl(r):Xi(r)}function Og(n){var r=e.getSourceFileOfNode(n),t=da(r);if(!(t.flags&1)){t.deferredNodes=t.deferredNodes||new e.Map;var a=U(n);t.deferredNodes.set(a,n)}}function AO(n){var r=da(n);r.deferredNodes&&r.deferredNodes.forEach(CO)}function CO(n){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end});var r=fe;switch(fe=n,De=0,n.kind){case 206:case 207:case 208:case 163:case 278:zm(n);break;case 211:case 212:case 167:case 166:UN(n);break;case 170:case 171:W2(n);break;case 224:JR(n);break;case 277:hI(n);break;case 276:EI(n);break}fe=r,e.tracing===null||e.tracing===void 0||e.tracing.pop()}function N1(n){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkSourceFile",{path:n.path},!0),e.performance.mark("beforeCheck"),xO(n),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function AD(n,r){if(r)return!1;switch(n){case 0:return!!pe.noUnusedLocals;case 1:return!!pe.noUnusedParameters;default:return e.Debug.assertNever(n)}}function CD(n){return Fs.get(n.path)||e.emptyArray}function xO(n){var r=da(n);if(!(r.flags&1)){if(e.skipTypeChecking(n,pe,x))return;rM(n),e.clear(st),e.clear(yt),e.clear(Tt),e.clear(Ut),e.forEach(n.statements,ao),ao(n.endOfFileToken),AO(n),e.isExternalOrCommonJsModule(n)&&Od(n),!n.isDeclarationFile&&(pe.noUnusedLocals||pe.noUnusedParameters)&&Y2(CD(n),function(t,a,s){!e.containsParseError(t)&&AD(a,!!(t.flags&8388608))&&zt.add(s)}),pe.importsNotUsedAsValues===2&&!n.isDeclarationFile&&e.isExternalModule(n)&&yO(n),e.isExternalOrCommonJsModule(n)&&DD(n),st.length&&(e.forEach(st,sR),e.clear(st)),yt.length&&(e.forEach(yt,lR),e.clear(yt)),Tt.length&&(e.forEach(Tt,dR),e.clear(Tt)),Ut.length&&(e.forEach(Ut,mR),e.clear(Ut)),r.flags|=1}}function xD(n,r){try{return z=r,IO(n)}finally{z=void 0}}function IO(n){if(ID(),n){var r=zt.getGlobalDiagnostics(),t=r.length;N1(n);var a=zt.getDiagnostics(n.fileName),s=zt.getGlobalDiagnostics();if(s!==r){var u=e.relativeComplement(r,s,e.compareDiagnostics);return e.concatenate(u,a)}else if(t===0&&s.length>0)return e.concatenate(s,a);return a}return e.forEach(x.getSourceFiles(),N1),zt.getDiagnostics()}function NO(){return ID(),zt.getGlobalDiagnostics()}function ID(){if(!M)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function kO(n,r){if(n.flags&16777216)return[];var t=e.createSymbolTable(),a=!1;return s(),t.delete("this"),ou(t);function s(){for(;n;){switch(n.locals&&!pc(n)&&S(n.locals,r),n.kind){case 300:if(!e.isExternalModule(n))break;case 259:F(wt(n).exports,r&2623475);break;case 258:S(wt(n).exports,r&8);break;case 224:var ve=n.name;ve&&u(n.symbol,r);case 255:case 256:a||S(Hc(wt(n)),r&788968);break;case 211:var Ge=n.name;Ge&&u(n.symbol,r);break}e.introducesArgumentsExoticObject(n)&&u(Le,r),a=e.isStatic(n),n=n.parent}S(xe,r)}function u(ve,Ge){if(e.getCombinedLocalAndExportSymbolFlags(ve)&Ge){var Je=ve.escapedName;t.has(Je)||t.set(Je,ve)}}function S(ve,Ge){Ge&&ve.forEach(function(Je){u(Je,Ge)})}function F(ve,Ge){Ge&&ve.forEach(function(Je){!e.getDeclarationOfKind(Je,273)&&!e.getDeclarationOfKind(Je,272)&&u(Je,Ge)})}}function RO(n){return n.kind===79&&Jv(n.parent)&&e.getNameOfDeclaration(n.parent)===n}function Jv(n){switch(n.kind){case 161:case 255:case 256:case 257:case 258:case 340:case 333:case 334:return!0;case 265:return n.isTypeOnly;case 268:case 273:return n.parent.parent.isTypeOnly;default:return!1}}function ND(n){for(;n.parent.kind===159;)n=n.parent;return n.parent.kind===176}function OO(n){for(;n.parent.kind===204;)n=n.parent;return n.parent.kind===226}function kD(n,r){for(var t;n=e.getContainingClass(n),!(!n||(t=r(n))););return t}function PO(n){return!!e.findAncestor(n,function(r){return e.isConstructorDeclaration(r)&&e.nodeIsPresent(r.body)||e.isPropertyDeclaration(r)?!0:e.isClassLike(r)||e.isFunctionLikeDeclaration(r)?"quit":!1})}function k1(n,r){return!!kD(n,function(t){return t===r})}function MO(n){for(;n.parent.kind===159;)n=n.parent;if(n.parent.kind===263)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===269)return n.parent.expression===n?n.parent:void 0}function Ay(n){return MO(n)!==void 0}function wO(n){var r=e.getAssignmentDeclarationKind(n.parent.parent);switch(r){case 1:case 3:return wt(n.parent);case 4:case 2:case 5:return wt(n.parent.parent)}}function FO(n){for(var r=n.parent;e.isQualifiedName(r);)n=r,r=r.parent;if(r&&r.kind===198&&r.qualifier===n)return r}function RD(n){if(e.isDeclarationName(n))return wt(n.parent);if(e.isInJSFile(n)&&n.parent.kind===204&&n.parent===n.parent.parent.left&&!e.isPrivateIdentifier(n)&&!e.isJSDocMemberName(n)){var r=wO(n);if(r)return r}if(n.parent.kind===269&&e.isEntityNameExpression(n)){var t=ki(n,2998271,!0);if(t&&t!==Xn)return t}else if(e.isEntityName(n)&&Ay(n)){var a=e.getAncestor(n,263);return e.Debug.assert(a!==void 0),so(n,!0)}if(e.isEntityName(n)){var s=FO(n);if(s){Ra(s);var u=da(n).resolvedSymbol;return u===Xn?void 0:u}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(n);)n=n.parent;if(OO(n)){var S=0;n.parent.kind===226?(S=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)&&(S|=111551)):S=1920,S|=2097152;var F=e.isEntityNameExpression(n)?ki(n,S):void 0;if(F)return F}if(n.parent.kind===335)return e.getParameterSymbolFromJSDoc(n.parent);if(n.parent.kind===161&&n.parent.parent.kind===339){e.Debug.assert(!e.isInJSFile(n));var ve=e.getTypeParameterFromJsDoc(n.parent);return ve&&ve.symbol}if(e.isExpressionNode(n)){if(e.nodeIsMissing(n))return;var Ge=e.findAncestor(n,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName)),S=Ge?901119:111551;if(n.kind===79){if(e.isJSXTagName(n)&&C_(n)){var Je=Fb(n.parent);return Je===Xn?void 0:Je}var Xe=ki(n,S,!1,!Ge,e.getHostSignatureFromJSDoc(n));if(!Xe&&Ge){var tn=e.findAncestor(n,e.or(e.isClassLike,e.isInterfaceDeclaration));if(tn)return Cy(n,wt(tn))}return Xe}else if(n.kind===204||n.kind===159){var Dn=da(n);return Dn.resolvedSymbol?Dn.resolvedSymbol:(n.kind===204?R0(n,0):O0(n,0),!Dn.resolvedSymbol&&Ge&&e.isQualifiedName(n)?Cy(n):Dn.resolvedSymbol)}else if(e.isJSDocMemberName(n))return Cy(n)}else if(ND(n)){var S=n.parent.kind===176?788968:1920;return ki(n,S,!1,!0)}if(n.parent.kind===175)return ki(n,1)}function Cy(n,r){if(e.isEntityName(n)){var t=901119,a=ki(n,t,!1,!0,e.getHostSignatureFromJSDoc(n));if(!a&&e.isIdentifier(n)&&r&&(a=Eo($o(al(r),n.escapedText,t))),a)return a}var s=e.isIdentifier(n)?r:Cy(n.left),u=e.isIdentifier(n)?n.escapedText:n.right.escapedText;if(s){var S=s.flags&111551&&wn(kt(s),"prototype"),F=S?kt(S):rs(s);return wn(F,u)}}function Kc(n,r){if(n.kind===300)return e.isExternalModule(n)?Eo(n.symbol):void 0;var t=n.parent,a=t.parent;if(!(n.flags&16777216)){if(f(n)){var s=wt(t);return e.isImportOrExportSpecifier(n.parent)&&n.parent.propertyName===n?E0(s):s}else if(e.isLiteralComputedPropertyDeclarationName(n))return wt(t.parent);if(n.kind===79){if(Ay(n))return RD(n);if(t.kind===201&&a.kind===199&&n===t.propertyName){var u=sm(a),S=wn(u,n.escapedText);if(S)return S}else if(e.isMetaProperty(t)){var F=sm(t),S=wn(F,n.escapedText);if(S)return S;if(t.keywordToken===103)return n1(t).symbol}}switch(n.kind){case 79:case 80:case 204:case 159:return RD(n);case 108:var ve=e.getThisContainer(n,!1);if(e.isFunctionLike(ve)){var Ge=su(ve);if(Ge.thisParameter)return Ge.thisParameter}if(e.isInExpressionContext(n))return vi(n).symbol;case 190:return gh(n).symbol;case 106:return vi(n).symbol;case 133:var Je=n.parent;return Je&&Je.kind===169?Je.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n||(n.parent.kind===264||n.parent.kind===270)&&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 wo(n,n,r);if(e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&t.arguments[1]===n)return wt(t);case 8:var Xe=e.isElementAccessExpression(t)?t.argumentExpression===n?kl(t.expression):void 0:e.isLiteralTypeNode(t)&&e.isIndexedAccessTypeNode(a)?Ra(a.objectType):void 0;return Xe&&wn(Xe,e.escapeLeadingUnderscores(n.text));case 88:case 98:case 38:case 84:return wt(n.parent);case 198:return e.isLiteralImportTypeNode(n)?Kc(n.argument.literal,r):void 0;case 93:return e.isExportAssignment(n.parent)?e.Debug.checkDefined(n.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(n.parent)?m2(n.parent).symbol:void 0;case 229:return vi(n).symbol;default:return}}}function GO(n){if(e.isIdentifier(n)&&e.isPropertyAccessExpression(n.parent)&&n.parent.name===n){var r=tp(n),t=kl(n.parent.expression),a=t.flags&1048576?t.types:[t];return e.flatMap(a,function(s){return e.filter(Ei(s),function(u){return yi(r,u.keyType)})})}}function BO(n){if(n&&n.kind===292)return ki(n.name,2208703)}function UO(n){return e.isExportSpecifier(n)?n.parent.parent.moduleSpecifier?h(n.parent.parent,n):ki(n.propertyName||n.name,2998271):ki(n,2998271)}function sm(n){if(e.isSourceFile(n)&&!e.isExternalModule(n)||n.flags&16777216)return J;var r=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(n),t=r&&lc(wt(r.class));if(e.isPartOfTypeNode(n)){var a=Ra(n);return t?Ac(a,t.thisType):a}if(e.isExpressionNode(n))return OD(n);if(t&&!r.isImplements){var s=e.firstOrUndefined(vc(t));return s?Ac(s,t.thisType):J}if(Jv(n)){var u=wt(n);return rs(u)}if(RO(n)){var u=Kc(n);return u?rs(u):J}if(e.isDeclaration(n)){var u=wt(n);return kt(u)}if(f(n)){var u=Kc(n);return u?kt(u):J}if(e.isBindingPattern(n))return ns(n.parent,!0)||J;if(Ay(n)){var u=Kc(n);if(u){var S=rs(u);return S!==J?S:kt(u)}}return e.isMetaProperty(n.parent)&&n.parent.keywordToken===n.kind?m2(n.parent):J}function xy(n){if(e.Debug.assert(n.kind===203||n.kind===202),n.parent.kind===242){var r=Wv(n.parent);return om(n,r||J)}if(n.parent.kind===219){var r=kl(n.parent.right);return om(n,r||J)}if(n.parent.kind===291){var t=e.cast(n.parent.parent,e.isObjectLiteralExpression),a=xy(t)||J,s=e.indexOfNode(t.properties,n.parent);return C2(t,a,s)}var u=e.cast(n.parent,e.isArrayLiteralExpression),S=xy(u)||J,F=Pd(65,S,Rn,n.parent)||J;return x2(u,S,u.elements.indexOf(n),F)}function VO(n){var r=xy(e.cast(n.parent.parent,e.isAssignmentPattern));return r&&wn(r,n.escapedText)}function OD(n){return e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),cc(kl(n))}function WO(n){var r=wt(n.parent);return e.isStatic(n)?kt(r):rs(r)}function jO(n){var r=n.name;switch(r.kind){case 79:return Jc(e.idText(r));case 8:case 10:return Jc(r.text);case 160:var t=od(r);return qs(t,12288)?t:gr;default:return e.Debug.fail("Unsupported property name.")}}function R1(n){n=Il(n);var r=e.createSymbolTable(bo(n)),t=zr(n,0).length?is:zr(n,1).length?mn:void 0;return t&&e.forEach(bo(t),function(a){r.has(a.escapedName)||r.set(a.escapedName,a)}),nf(r)}function O1(n){return e.typeHasCallOrConstructSignatures(n,Ue)}function PD(n){var r=HO(n);return r?e.flatMap(r,PD):[n]}function HO(n){if(e.getCheckFlags(n)&6)return e.mapDefined(Za(n).containingType.types,function(u){return wn(u,n.escapedName)});if(n.flags&33554432){var r=n,t=r.leftSpread,a=r.rightSpread,s=r.syntheticOrigin;return t?[t,a]:s?[s]:e.singleElementArray(JO(n))}}function JO(n){for(var r,t=n;t=Za(t).target;)r=t;return r}function KO(n){if(e.isGeneratedIdentifier(n))return!1;var r=e.getParseTreeNode(n,e.isIdentifier);if(!r)return!1;var t=r.parent;if(!t)return!1;var a=(e.isPropertyAccessExpression(t)||e.isPropertyAssignment(t))&&t.name===r;return!a&&Kv(r)===Le}function zO(n){var r=wo(n.parent,n);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var t=Dl(r);r=Dt(r);var a=Za(r);return a.exportsSomeValue===void 0&&(a.exportsSomeValue=t?!!(r.flags&111551):e.forEachEntry(Ic(r),s)),a.exportsSomeValue;function s(u){return u=Ba(u),u&&!!(u.flags&111551)}}function qO(n){return e.isModuleOrEnumDeclaration(n.parent)&&n===n.parent.name}function XO(n,r){var t,a=e.getParseTreeNode(n,e.isIdentifier);if(a){var s=Kv(a,qO(a));if(s){if(s.flags&1048576){var u=Eo(s.exportSymbol);if(!r&&u.flags&944&&!(u.flags&3))return;s=u}var S=Kl(s);if(S){if(S.flags&512&&((t=S.valueDeclaration)===null||t===void 0?void 0:t.kind)===300){var F=S.valueDeclaration,ve=e.getSourceFileOfNode(a),Ge=F!==ve;return Ge?void 0:F}return e.findAncestor(a.parent,function(Je){return e.isModuleOrEnumDeclaration(Je)&&wt(Je)===S})}}}}function YO(n){if(n.generatedImportReference)return n.generatedImportReference;var r=e.getParseTreeNode(n,e.isIdentifier);if(r){var t=Kv(r);if(Ai(t,111551)&&!Qt(t))return Jl(t)}}function QO(n){return n.valueDeclaration&&e.isBindingElement(n.valueDeclaration)&&e.walkUpBindingElementsAndPatterns(n.valueDeclaration).parent.kind===290}function MD(n){if(n.flags&418&&n.valueDeclaration&&!e.isSourceFile(n.valueDeclaration)){var r=Za(n);if(r.isDeclarationWithCollidingName===void 0){var t=e.getEnclosingBlockScopeContainer(n.valueDeclaration);if(e.isStatementWithLocals(t)||QO(n)){var a=da(n.valueDeclaration);if(es(t.parent,n.escapedName,111551,void 0,void 0,!1))r.isDeclarationWithCollidingName=!0;else if(a.flags&262144){var s=a.flags&524288,u=e.isIterationStatement(t,!1),S=t.kind===233&&e.isIterationStatement(t.parent,!1);r.isDeclarationWithCollidingName=!e.isBlockScopedContainerTopLevel(t)&&(!s||!u&&!S)}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function ZO(n){if(!e.isGeneratedIdentifier(n)){var r=e.getParseTreeNode(n,e.isIdentifier);if(r){var t=Kv(r);if(t&&MD(t))return t.valueDeclaration}}}function $O(n){var r=e.getParseTreeNode(n,e.isDeclaration);if(r){var t=wt(r);if(t)return MD(t)}return!1}function wD(n){switch(n.kind){case 263:return Iy(wt(n)||Xn);case 265:case 266:case 268:case 273:var r=wt(n)||Xn;return Iy(r)&&!Qt(r);case 270:var t=n.exportClause;return!!t&&(e.isNamespaceExport(t)||e.some(t.elements,wD));case 269:return n.expression&&n.expression.kind===79?Iy(wt(n)||Xn):!0}return!1}function eP(n){var r=e.getParseTreeNode(n,e.isImportEqualsDeclaration);if(r===void 0||r.parent.kind!==300||!e.isInternalModuleImportEqualsDeclaration(r))return!1;var t=Iy(wt(r));return t&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference)}function Iy(n){var r=_i(n);return r===Xn?!0:!!(r.flags&111551)&&(e.shouldPreserveConstEnums(pe)||!Pg(r))}function Pg(n){return l1(n)||!!n.constEnumOnlyModule}function Ny(n,r){if($u(n)){var t=wt(n),a=t&&Za(t);if(a!=null&&a.referenced)return!0;var s=Za(t).target;if(s&&e.getEffectiveModifierFlags(n)&1&&s.flags&111551&&(e.shouldPreserveConstEnums(pe)||!Pg(s)))return!0}return r?!!e.forEachChild(n,function(u){return Ny(u,r)}):!1}function FD(n){if(e.nodeIsPresent(n.body)){if(e.isGetAccessor(n)||e.isSetAccessor(n))return!1;var r=wt(n),t=uf(r);return t.length>1||t.length===1&&t[0].declaration!==n}return!1}function GD(n){return!!He&&!Xf(n)&&!e.isJSDocParameterTag(n)&&!!n.initializer&&!e.hasSyntacticModifier(n,16476)}function nP(n){return He&&Xf(n)&&!n.initializer&&e.hasSyntacticModifier(n,16476)}function rP(n){return!!He&&Xf(n)&&!n.initializer}function tP(n){var r=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!r)return!1;var t=wt(r);return!t||!(t.flags&16)?!1:!!e.forEachEntry(al(t),function(a){return a.flags&111551&&a.valueDeclaration&&e.isPropertyAccessExpression(a.valueDeclaration)})}function aP(n){var r=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!r)return e.emptyArray;var t=wt(r);return t&&bo(kt(t))||e.emptyArray}function Qm(n){var r,t=n.id||0;return t<0||t>=nc.length?0:((r=nc[t])===null||r===void 0?void 0:r.flags)||0}function ky(n){return SD(n.parent),da(n).enumMemberValue}function BD(n){switch(n.kind){case 294:case 204:case 205:return!0}return!1}function P1(n){if(n.kind===294)return ky(n);var r=da(n).resolvedSymbol;if(r&&r.flags&8){var t=r.valueDeclaration;if(e.isEnumConst(t.parent))return ky(t)}}function M1(n){return!!(n.flags&524288)&&zr(n,0).length>0}function iP(n,r){var t,a,s=e.getParseTreeNode(n,e.isEntityName);if(!s||r&&(r=e.getParseTreeNode(r),!r))return e.TypeReferenceSerializationKind.Unknown;var u=!1;if(e.isQualifiedName(s)){var S=ki(e.getFirstIdentifier(s),111551,!0,!0,r);u=!!(!((t=S==null?void 0:S.declarations)===null||t===void 0)&&t.every(e.isTypeOnlyImportOrExportDeclaration))}var F=ki(s,111551,!0,!0,r),ve=F&&F.flags&2097152?_i(F):F;u||(u=!!(!((a=F==null?void 0:F.declarations)===null||a===void 0)&&a.every(e.isTypeOnlyImportOrExportDeclaration)));var Ge=ki(s,788968,!0,!1,r);if(ve&&ve===Ge){var Je=cE(!1);if(Je&&ve===Je)return e.TypeReferenceSerializationKind.Promise;var Xe=kt(ve);if(Xe&&nl(Xe))return u?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!Ge)return u?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var tn=rs(Ge);return tn===J?u?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:tn.flags&3?e.TypeReferenceSerializationKind.ObjectType:qs(tn,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:qs(tn,528)?e.TypeReferenceSerializationKind.BooleanType:qs(tn,296)?e.TypeReferenceSerializationKind.NumberLikeType:qs(tn,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:qs(tn,402653316)?e.TypeReferenceSerializationKind.StringLikeType:ji(tn)?e.TypeReferenceSerializationKind.ArrayLikeType:qs(tn,12288)?e.TypeReferenceSerializationKind.ESSymbolType:M1(tn)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Gl(tn)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function oP(n,r,t,a,s){var u=e.getParseTreeNode(n,e.isVariableLikeOrAccessor);if(!u)return e.factory.createToken(129);var S=wt(u),F=S&&!(S.flags&133120)?Ap(kt(S)):J;return F.flags&8192&&F.symbol===S&&(t|=1048576),s&&(F=td(F)),Pe.typeToTypeNode(F,r,t|1024,a)}function sP(n,r,t,a){var s=e.getParseTreeNode(n,e.isFunctionLike);if(!s)return e.factory.createToken(129);var u=su(s);return Pe.typeToTypeNode(_o(u),r,t|1024,a)}function lP(n,r,t,a){var s=e.getParseTreeNode(n,e.isExpression);if(!s)return e.factory.createToken(129);var u=fc(OD(s));return Pe.typeToTypeNode(u,r,t|1024,a)}function cP(n){return xe.has(e.escapeLeadingUnderscores(n))}function Kv(n,r){var t=da(n).resolvedSymbol;if(t)return t;var a=n;if(r){var s=n.parent;e.isDeclaration(s)&&n===s.name&&(a=jf(s))}return es(a,n.escapedText,3257279,void 0,void 0,!0)}function uP(n){if(!e.isGeneratedIdentifier(n)){var r=e.getParseTreeNode(n,e.isIdentifier);if(r){var t=Kv(r);if(t)return $c(t).valueDeclaration}}}function fP(n){return e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n)?Lp(kt(wt(n))):!1}function dP(n,r,t){var a=n.flags&1024?Pe.symbolToExpression(n.symbol,111551,r,void 0,t):n===Kr?e.factory.createTrue():n===ft&&e.factory.createFalse();if(a)return a;var s=n.value;return typeof s=="object"?e.factory.createBigIntLiteral(s):typeof s=="number"?e.factory.createNumericLiteral(s):e.factory.createStringLiteral(s)}function pP(n,r){var t=kt(wt(n));return dP(t,n,r)}function UD(n){return n?(yo(n),e.getSourceFileOfNode(n).localJsxFactory||Fi):Fi}function w1(n){if(n){var r=e.getSourceFileOfNode(n);if(r){if(r.localJsxFragmentFactory)return r.localJsxFragmentFactory;var t=r.pragmas.get("jsxfrag"),a=e.isArray(t)?t[0]:t;if(a)return r.localJsxFragmentFactory=e.parseIsolatedEntityName(a.arguments.factory,we),r.localJsxFragmentFactory}}if(pe.jsxFragmentFactory)return e.parseIsolatedEntityName(pe.jsxFragmentFactory,we)}function mP(){var n=x.getResolvedTypeReferenceDirectives(),r;return n&&(r=new e.Map,n.forEach(function(ve,Ge){if(!(!ve||!ve.resolvedFileName)){var Je=x.getSourceFile(ve.resolvedFileName);Je&&F(Je,Ge)}})),{getReferencedExportContainer:XO,getReferencedImportDeclaration:YO,getReferencedDeclarationWithCollidingName:ZO,isDeclarationWithCollidingName:$O,isValueAliasDeclaration:function(ve){var Ge=e.getParseTreeNode(ve);return Ge?wD(Ge):!0},hasGlobalName:cP,isReferencedAliasDeclaration:function(ve,Ge){var Je=e.getParseTreeNode(ve);return Je?Ny(Je,Ge):!0},getNodeCheckFlags:function(ve){var Ge=e.getParseTreeNode(ve);return Ge?Qm(Ge):0},isTopLevelValueImportEqualsWithEntityName:eP,isDeclarationVisible:eu,isImplementationOfOverload:FD,isRequiredInitializedParameter:GD,isOptionalUninitializedParameterProperty:nP,isExpandoFunctionDeclaration:tP,getPropertiesOfContainerFunction:aP,createTypeOfDeclaration:oP,createReturnTypeOfSignatureDeclaration:sP,createTypeOfExpression:lP,createLiteralConstValue:pP,isSymbolAccessible:tf,isEntityNameVisible:gp,getConstantValue:function(ve){var Ge=e.getParseTreeNode(ve,BD);return Ge?P1(Ge):void 0},collectLinkedAliases:zd,getReferencedValueDeclaration:uP,getTypeReferenceSerializationKind:iP,isOptionalParameter:Xf,moduleExportsSomeValue:zO,isArgumentsLocalBinding:KO,getExternalModuleFileFromDeclaration:function(ve){var Ge=e.getParseTreeNode(ve,e.hasPossibleExternalModuleReference);return Ge&&F1(Ge)},getTypeReferenceDirectivesForEntityName:s,getTypeReferenceDirectivesForSymbol:u,isLiteralConstDeclaration:fP,isLateBound:function(ve){var Ge=e.getParseTreeNode(ve,e.isDeclaration),Je=Ge&&wt(Ge);return!!(Je&&e.getCheckFlags(Je)&4096)},getJsxFactoryEntity:UD,getJsxFragmentFactoryEntity:w1,getAllAccessorDeclarations:function(ve){ve=e.getParseTreeNode(ve,e.isGetOrSetAccessorDeclaration);var Ge=ve.kind===171?170:171,Je=e.getDeclarationOfKind(wt(ve),Ge),Xe=Je&&Je.pos<ve.pos?Je:ve,tn=Je&&Je.pos<ve.pos?ve:Je,Dn=ve.kind===171?ve:Je,nr=ve.kind===170?ve:Je;return{firstAccessor:Xe,secondAccessor:tn,setAccessor:Dn,getAccessor:nr}},getSymbolOfExternalModuleSpecifier:function(ve){return gi(ve,ve,void 0)},isBindingCapturedByNode:function(ve,Ge){var Je=e.getParseTreeNode(ve),Xe=e.getParseTreeNode(Ge);return!!Je&&!!Xe&&(e.isVariableDeclaration(Xe)||e.isBindingElement(Xe))&&kx(Je,Xe)},getDeclarationStatementsForSourceFile:function(ve,Ge,Je,Xe){var tn=e.getParseTreeNode(ve);e.Debug.assert(tn&&tn.kind===300,"Non-sourcefile node passed into getDeclarationsForSourceFile");var Dn=wt(ve);return Dn?Dn.exports?Pe.symbolTableToDeclarationStatements(Dn.exports,ve,Ge,Je,Xe):[]:ve.locals?Pe.symbolTableToDeclarationStatements(ve.locals,ve,Ge,Je,Xe):[]},isImportRequiredByAugmentation:t};function t(ve){var Ge=e.getSourceFileOfNode(ve);if(!Ge.symbol)return!1;var Je=F1(ve);if(!Je||Je===Ge)return!1;for(var Xe=Ic(Ge.symbol),tn=0,Dn=e.arrayFrom(Xe.values());tn<Dn.length;tn++){var nr=Dn[tn];if(nr.mergeId){var sr=Eo(nr);if(sr.declarations)for(var Ir=0,xr=sr.declarations;Ir<xr.length;Ir++){var Gr=xr[Ir],ct=e.getSourceFileOfNode(Gr);if(ct===Je)return!0}}}return!1}function a(ve){return ve.parent&&ve.parent.kind===226&&ve.parent.parent&&ve.parent.parent.kind===289}function s(ve){if(r){var Ge=790504;(ve.kind===79&&S_(ve)||ve.kind===204&&!a(ve))&&(Ge=1160127);var Je=ki(ve,Ge,!0);return Je&&Je!==Xn?u(Je,Ge):void 0}}function u(ve,Ge){if(!(!r||!S(ve))){for(var Je,Xe=0,tn=ve.declarations;Xe<tn.length;Xe++){var Dn=tn[Xe];if(Dn.symbol&&Dn.symbol.flags&Ge){var nr=e.getSourceFileOfNode(Dn),sr=r.get(nr.path);if(sr)(Je||(Je=[])).push(sr);else return}}return Je}}function S(ve){if(!ve.declarations)return!1;for(var Ge=ve;;){var Je=Kl(Ge);if(Je)Ge=Je;else break}if(Ge.valueDeclaration&&Ge.valueDeclaration.kind===300&&Ge.flags&512)return!1;for(var Xe=0,tn=ve.declarations;Xe<tn.length;Xe++){var Dn=tn[Xe],nr=e.getSourceFileOfNode(Dn);if(r.has(nr.path))return!0}return!1}function F(ve,Ge){if(!r.has(ve.path)){r.set(ve.path,Ge);for(var Je=0,Xe=ve.referencedFiles;Je<Xe.length;Je++){var tn=Xe[Je].fileName,Dn=e.resolveTripleslashReference(tn,ve.fileName),nr=x.getSourceFile(Dn);nr&&F(nr,Ge)}}}}function F1(n){var r=n.kind===259?e.tryCast(n.name,e.isStringLiteral):e.getExternalModuleName(n),t=gi(r,r,void 0);if(t)return e.getDeclarationOfKind(t,300)}function _P(){for(var n=0,r=x.getSourceFiles();n<r.length;n++){var t=r[n];e.bindSourceFile(t,pe)}Ni=new e.Map;for(var a,s=0,u=x.getSourceFiles();s<u.length;s++){var t=u[s];if(!t.redirectInfo){if(!e.isExternalOrCommonJsModule(t)){var S=t.locals.get("globalThis");if(S!=null&&S.declarations)for(var F=0,ve=S.declarations;F<ve.length;F++){var Ge=ve[F];zt.add(e.createDiagnosticForNode(Ge,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}ic(xe,t.locals)}if(t.jsGlobalAugmentations&&ic(xe,t.jsGlobalAugmentations),t.patternAmbientModules&&t.patternAmbientModules.length&&(Uo=e.concatenate(Uo,t.patternAmbientModules)),t.moduleAugmentations.length&&(a||(a=[])).push(t.moduleAugmentations),t.symbol&&t.symbol.globalExports){var Je=t.symbol.globalExports;Je.forEach(function(Ta,sa){xe.has(sa)||xe.set(sa,Ta)})}}}if(a)for(var Xe=0,tn=a;Xe<tn.length;Xe++)for(var Dn=tn[Xe],nr=0,sr=Dn;nr<sr.length;nr++){var Ir=sr[nr];e.isGlobalScopeAugmentation(Ir.parent)&&Pu(Ir)}if(Bd(xe,hi,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),Za(Ze).type=Ye,Za(Le).type=Fl("IArguments",0,!0),Za(Xn).type=J,Za(hn).type=fl(16,hn),_r=Fl("Array",1,!0),us=Fl("Object",0,!0),Jo=Fl("Function",0,!0),is=Un&&Fl("CallableFunction",0,!0)||Jo,mn=Un&&Fl("NewableFunction",0,!0)||Jo,ia=Fl("String",0,!0),ti=Fl("Number",0,!0),va=Fl("Boolean",0,!0),Ve=Fl("RegExp",0,!0),dn=bl(cr),j=bl(Fe),j===Lr&&(j=qo(void 0,Ne,e.emptyArray,e.emptyArray,e.emptyArray)),$r=_T("ReadonlyArray",1)||_r,Ie=$r?og($r,[cr]):dn,ce=_T("ThisType",1),a)for(var xr=0,Gr=a;xr<Gr.length;xr++)for(var Dn=Gr[xr],ct=0,Vt=Dn;ct<Vt.length;ct++){var Ir=Vt[ct];e.isGlobalScopeAugmentation(Ir.parent)||Pu(Ir)}Ni.forEach(function(_t){var Ta=_t.firstFile,sa=_t.secondFile,mi=_t.conflictingSymbols;if(mi.size<8)mi.forEach(function(Hi,ii){for(var go=Hi.isBlockScoped,xo=Hi.firstFileLocations,Yr=Hi.secondFileLocations,Pr=go?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,Aa=0,Ga=xo;Aa<Ga.length;Aa++){var na=Ga[Aa];Xu(na,Pr,ii,Yr)}for(var si=0,jt=Yr;si<jt.length;si++){var na=jt[si];Xu(na,Pr,ii,xo)}});else{var ai=e.arrayFrom(mi.keys()).join(", ");zt.add(e.addRelatedInfo(e.createDiagnosticForNode(Ta,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,ai),e.createDiagnosticForNode(sa,e.Diagnostics.Conflicts_are_in_this_file))),zt.add(e.addRelatedInfo(e.createDiagnosticForNode(sa,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,ai),e.createDiagnosticForNode(Ta,e.Diagnostics.Conflicts_are_in_this_file)))}}),Ni=void 0}function Bl(n,r){if((K&r)!==r&&pe.importHelpers){var t=e.getSourceFileOfNode(n);if(e.isEffectiveExternalModule(t,pe)&&!(n.flags&8388608)){var a=vP(t,n);if(a!==Xn){for(var s=r&~K,u=1;u<=2097152;u<<=1)if(s&u){var S=gP(u),F=$o(a.exports,e.escapeLeadingUnderscores(S),111551);F?u&524288?e.some(uf(F),function(ve){return ac(ve)>3})||Jn(n,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,S,4):u&1048576?e.some(uf(F),function(ve){return ac(ve)>4})||Jn(n,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,S,5):u&1024&&(e.some(uf(F),function(ve){return ac(ve)>2})||Jn(n,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,S,3)):Jn(n,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,S)}}K|=r}}}function gP(n){switch(n){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function vP(n,r){return I||(I=Qc(n,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||Xn),I}function Af(n){return hP(n)||yP(n)}function hP(n){if(!n.decorators)return!1;if(e.nodeCanBeDecorated(n,n.parent,n.parent.parent)){if(n.kind===170||n.kind===171){var r=e.getAllAccessorDeclarations(n.parent.members,n);if(r.firstAccessor.decorators&&n===r.secondAccessor)return Sl(n,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===167&&!e.nodeIsPresent(n.body)?Sl(n,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Sl(n,e.Diagnostics.Decorators_are_not_valid_here);return!1}function yP(n){var r=EP(n);if(r!==void 0)return r;for(var t,a,s,u,S,F=0,ve=0,Ge=n.modifiers;ve<Ge.length;ve++){var Je=Ge[ve];if(Je.kind!==143){if(n.kind===164||n.kind===166)return At(Je,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(Je.kind));if(n.kind===174&&(Je.kind!==124||!e.isClassLike(n.parent)))return At(Je,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(Je.kind))}switch(Je.kind){case 85:if(n.kind!==258)return At(n,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(85));break;case 157:if(F&16384)return At(Je,e.Diagnostics._0_modifier_already_seen,"override");if(F&2)return At(Je,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(F&64)return At(Je,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(F&256)return At(Je,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");F|=16384,S=Je;break;case 123:case 122:case 121:var Xe=Td(e.modifierToFlag(Je.kind));if(F&28)return At(Je,e.Diagnostics.Accessibility_modifier_already_seen);if(F&16384)return At(Je,e.Diagnostics._0_modifier_must_precede_1_modifier,Xe,"override");if(F&32)return At(Je,e.Diagnostics._0_modifier_must_precede_1_modifier,Xe,"static");if(F&64)return At(Je,e.Diagnostics._0_modifier_must_precede_1_modifier,Xe,"readonly");if(F&256)return At(Je,e.Diagnostics._0_modifier_must_precede_1_modifier,Xe,"async");if(n.parent.kind===260||n.parent.kind===300)return At(Je,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,Xe);if(F&128)return Je.kind===121?At(Je,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,Xe,"abstract"):At(Je,e.Diagnostics._0_modifier_must_precede_1_modifier,Xe,"abstract");if(e.isPrivateIdentifierClassElementDeclaration(n))return At(Je,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);F|=e.modifierToFlag(Je.kind);break;case 124:if(F&32)return At(Je,e.Diagnostics._0_modifier_already_seen,"static");if(F&64)return At(Je,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(F&256)return At(Je,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(n.parent.kind===260||n.parent.kind===300)return At(Je,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===162)return At(Je,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(F&128)return At(Je,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(F&16384)return At(Je,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");F|=32,t=Je;break;case 143:if(F&64)return At(Je,e.Diagnostics._0_modifier_already_seen,"readonly");if(n.kind!==165&&n.kind!==164&&n.kind!==174&&n.kind!==162)return At(Je,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);F|=64,u=Je;break;case 93:if(F&1)return At(Je,e.Diagnostics._0_modifier_already_seen,"export");if(F&2)return At(Je,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(F&128)return At(Je,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(F&256)return At(Je,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(n.parent))return At(Je,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===162)return At(Je,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");F|=1;break;case 88:var tn=n.parent.kind===300?n.parent:n.parent.parent;if(tn.kind===259&&!e.isAmbientModule(tn))return At(Je,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(F&1))return At(Je,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");F|=512;break;case 134:if(F&2)return At(Je,e.Diagnostics._0_modifier_already_seen,"declare");if(F&256)return At(Je,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(F&16384)return At(Je,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(e.isClassLike(n.parent)&&!e.isPropertyDeclaration(n))return At(Je,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===162)return At(Je,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(n.parent.flags&8388608&&n.parent.kind===260)return At(Je,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierClassElementDeclaration(n))return At(Je,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");F|=2,a=Je;break;case 126:if(F&128)return At(Je,e.Diagnostics._0_modifier_already_seen,"abstract");if(n.kind!==255&&n.kind!==178){if(n.kind!==167&&n.kind!==165&&n.kind!==170&&n.kind!==171)return At(Je,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===255&&e.hasSyntacticModifier(n.parent,128)))return At(Je,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(F&32)return At(Je,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(F&8)return At(Je,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(F&256&&s)return At(s,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(F&16384)return At(Je,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override")}if(e.isNamedDeclaration(n)&&n.name.kind===80)return At(Je,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");F|=128;break;case 130:if(F&256)return At(Je,e.Diagnostics._0_modifier_already_seen,"async");if(F&2||n.parent.flags&8388608)return At(Je,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===162)return At(Je,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(F&128)return At(Je,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");F|=256,s=Je;break}}return n.kind===169?F&32?At(t,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):F&128?At(t,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):F&16384?At(S,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):F&256?At(s,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):F&64?At(u,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):!1:(n.kind===264||n.kind===263)&&F&2?At(a,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===162&&F&16476&&e.isBindingPattern(n.name)?At(n,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===162&&F&16476&&n.dotDotDotToken?At(n,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):F&256?TP(n,s):!1}function EP(n){return n.modifiers?bP(n)?Sl(n,e.Diagnostics.Modifiers_cannot_appear_here):void 0:!1}function bP(n){switch(n.kind){case 170:case 171:case 169:case 165:case 164:case 167:case 166:case 174:case 259:case 264:case 263:case 270:case 269:case 211:case 212:case 162:return!1;default:if(n.parent.kind===260||n.parent.kind===300)return!1;switch(n.kind){case 254:return G1(n,130);case 255:case 178:return G1(n,126);case 256:case 235:case 257:case 168:return!0;case 258:return G1(n,85);default:e.Debug.fail()}}}function G1(n,r){return n.modifiers.length>1||n.modifiers[0].kind!==r}function TP(n,r){switch(n.kind){case 167:case 254:case 211:case 212:return!1}return At(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function Am(n,r){return r===void 0&&(r=e.Diagnostics.Trailing_comma_not_allowed),n&&n.hasTrailingComma?up(n[0],n.end-1,1,r):!1}function VD(n,r){if(n&&n.length===0){var t=n.pos-1,a=e.skipTrivia(r.text,n.end)+1;return up(r,t,a-t,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function SP(n){for(var r=!1,t=n.length,a=0;a<t;a++){var s=n[a];if(s.dotDotDotToken){if(a!==t-1)return At(s.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(s.flags&8388608||Am(n,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),s.questionToken)return At(s.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(s.initializer)return At(s.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(Xf(s)){if(r=!0,s.questionToken&&s.initializer)return At(s.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(r&&!s.initializer)return At(s.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}function DP(n){return e.filter(n,function(r){return!!r.initializer||e.isBindingPattern(r.name)||e.isRestParameter(r)})}function LP(n){if(we>=3){var r=n.body&&e.isBlock(n.body)&&e.findUseStrictPrologue(n.body.statements);if(r){var t=DP(n.parameters);if(e.length(t)){e.forEach(t,function(s){e.addRelatedInfo(Jn(s,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))});var a=t.map(function(s,u){return u===0?e.createDiagnosticForNode(s,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(s,e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,Vr([Jn(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a,!1)),!0}}}return!1}function Ry(n){var r=e.getSourceFileOfNode(n);return Af(n)||VD(n.typeParameters,r)||SP(n.parameters)||CP(n,r)||e.isFunctionLikeDeclaration(n)&&LP(n)}function AP(n){var r=e.getSourceFileOfNode(n);return PP(n)||VD(n.typeParameters,r)}function CP(n,r){if(!e.isArrowFunction(n))return!1;var t=n.equalsGreaterThanToken,a=e.getLineAndCharacterOfPosition(r,t.pos).line,s=e.getLineAndCharacterOfPosition(r,t.end).line;return a!==s&&At(t,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}function xP(n){var r=n.parameters[0];if(n.parameters.length!==1)return At(r?r.name:n,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(Am(n.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),r.dotDotDotToken)return At(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(r))return At(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(r.questionToken)return At(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(r.initializer)return At(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!r.type)return At(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var t=Ra(r.type);return D_(t,function(a){return!!(a.flags&8576)})||mh(t)?At(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):ad(t,lh)?n.type?!1:At(n,e.Diagnostics.An_index_signature_must_have_a_type_annotation):At(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function IP(n){return Af(n)||xP(n)}function NP(n,r){if(r&&r.length===0){var t=e.getSourceFileOfNode(n),a=r.pos-1,s=e.skipTrivia(t.text,r.end)+1;return up(t,a,s-a,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}function zv(n,r){return Am(r)||NP(n,r)}function kP(n){return n.questionDotToken||n.flags&32?At(n.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function RP(n){if(n)for(var r=0,t=n;r<t.length;r++){var a=t[r];if(a.kind===225)return up(a,a.pos,0,e.Diagnostics.Argument_expression_expected)}return!1}function WD(n){return RP(n)}function jD(n){var r=n.types;if(Am(r))return!0;if(r&&r.length===0){var t=e.tokenToString(n.token);return up(n,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,t)}return e.some(r,OP)}function OP(n){return zv(n,n.typeArguments)}function PP(n){var r=!1,t=!1;if(!Af(n)&&n.heritageClauses)for(var a=0,s=n.heritageClauses;a<s.length;a++){var u=s[a];if(u.token===94){if(r)return Sl(u,e.Diagnostics.extends_clause_already_seen);if(t)return Sl(u,e.Diagnostics.extends_clause_must_precede_implements_clause);if(u.types.length>1)return Sl(u.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(u.token===117),t)return Sl(u,e.Diagnostics.implements_clause_already_seen);t=!0}jD(u)}}function MP(n){var r=!1;if(n.heritageClauses)for(var t=0,a=n.heritageClauses;t<a.length;t++){var s=a[t];if(s.token===94){if(r)return Sl(s,e.Diagnostics.extends_clause_already_seen);r=!0}else return e.Debug.assert(s.token===117),Sl(s,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);jD(s)}return!1}function Oy(n){if(n.kind!==160)return!1;var r=n;return r.expression.kind===219&&r.expression.operatorToken.kind===27?At(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function B1(n){if(n.asteriskToken){if(e.Debug.assert(n.kind===254||n.kind===211||n.kind===167),n.flags&8388608)return At(n.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return At(n.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function HD(n,r){return!!n&&At(n,r)}function JD(n,r){return!!n&&At(n,r)}function wP(n,r){for(var t=new e.Map,a=0,s=n.properties;a<s.length;a++){var u=s[a];if(u.kind===293){if(r){var S=e.skipParentheses(u.expression);if(e.isArrayLiteralExpression(S)||e.isObjectLiteralExpression(S))return At(u.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}continue}var F=u.name;if(F.kind===160&&Oy(F),u.kind===292&&!r&&u.objectAssignmentInitializer)return At(u.equalsToken,e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern);if(F.kind===80&&At(F,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),u.modifiers)for(var ve=0,Ge=u.modifiers;ve<Ge.length;ve++){var Je=Ge[ve];(Je.kind!==130||u.kind!==167)&&At(Je,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(Je))}var Xe=void 0;switch(u.kind){case 292:JD(u.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 291:HD(u.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),F.kind===8&&W1(F),Xe=4;break;case 167:Xe=8;break;case 170:Xe=1;break;case 171:Xe=2;break;default:throw e.Debug.assertNever(u,"Unexpected syntax kind:"+u.kind)}if(!r){var tn=e.getPropertyNameForPropertyNameNode(F);if(tn===void 0)continue;var Dn=t.get(tn);if(!Dn)t.set(tn,Xe);else if(Xe&12&&Dn&12)At(F,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(F));else if(Xe&3&&Dn&3)if(Dn!==3&&Xe!==Dn)t.set(tn,Xe|Dn);else return At(F,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return At(F,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function FP(n){GP(n.tagName),zv(n,n.typeArguments);for(var r=new e.Map,t=0,a=n.attributes.properties;t<a.length;t++){var s=a[t];if(s.kind!==285){var u=s.name,S=s.initializer;if(!r.get(u.escapedText))r.set(u.escapedText,!0);else return At(u,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(S&&S.kind===286&&!S.expression)return At(S,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}function GP(n){if(e.isPropertyAccessExpression(n)){var r=n;do{var t=s(r.name);if(t)return t;r=r.expression}while(e.isPropertyAccessExpression(r));var a=s(r);if(a)return a}function s(u){if(e.isIdentifier(u)&&e.idText(u).indexOf(":")!==-1)return At(u,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}}function BP(n){if(n.expression&&e.isCommaSequence(n.expression))return At(n.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function KD(n){if(Cf(n))return!0;if(n.kind===242&&n.awaitModifier&&!(n.flags&32768)){var r=e.getSourceFileOfNode(n);if(e.isInTopLevelContext(n))lm(r)||(e.isEffectiveExternalModule(r,pe)||zt.add(e.createDiagnosticForNode(n.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),(pn!==e.ModuleKind.ESNext&&pn!==e.ModuleKind.System||we<4)&&zt.add(e.createDiagnosticForNode(n.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher)));else if(!lm(r)){var t=e.createDiagnosticForNode(n.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),a=e.getContainingFunction(n);if(a&&a.kind!==169){e.Debug.assert((e.getFunctionFlags(a)&2)===0,"Enclosing function should never be an async function.");var s=e.createDiagnosticForNode(a,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(t,s)}return zt.add(t),!0}return!1}if(e.isForOfStatement(n)&&!(n.flags&32768)&&e.isIdentifier(n.initializer)&&n.initializer.escapedText==="async")return At(n.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===253){var u=n.initializer;if(!V1(u)){var S=u.declarations;if(!S.length)return!1;if(S.length>1){var t=n.kind===241?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 Sl(u.declarations[1],t)}var F=S[0];if(F.initializer){var t=n.kind===241?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 At(F.name,t)}if(F.type){var t=n.kind===241?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 At(F,t)}}}return!1}function UP(n){if(!(n.flags&8388608)&&n.parent.kind!==180&&n.parent.kind!==256){if(we<1)return At(n.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(we<2&&e.isPrivateIdentifier(n.name))return At(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!e.hasSyntacticModifier(n,128))return up(n,n.end-1,1,e.Diagnostics._0_expected,"{")}if(n.body){if(e.hasSyntacticModifier(n,128))return At(n,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===180||n.parent.kind===256)return At(n.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return At(n.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!VP(n))return At(n.name,n.kind===170?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===171){if(n.type)return At(n.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=e.Debug.checkDefined(e.getSetAccessorValueParameter(n),"Return value does not match parameter count assertion.");if(r.dotDotDotToken)return At(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return At(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return At(n.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function VP(n){return U1(n)||n.parameters.length===(n.kind===170?0:1)}function U1(n){if(n.parameters.length===(n.kind===170?1:2))return e.getThisParameter(n)}function WP(n){if(n.operator===152){if(n.type.kind!==149)return At(n.type,e.Diagnostics._0_expected,e.tokenToString(149));var r=e.walkUpParenthesizedTypes(n.parent);switch(e.isInJSFile(r)&&e.isJSDocTypeExpression(r)&&(r=r.parent,e.isJSDocTypeTag(r)&&(r=r.parent.parent)),r.kind){case 252:var t=r;if(t.name.kind!==79)return At(n,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(t))return At(n,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(t.parent.flags&2))return At(r.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 165:if(!e.isStatic(r)||!e.hasEffectiveReadonlyModifier(r))return At(r.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 164:if(!e.hasSyntacticModifier(r,64))return At(r.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return At(n,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===143&&n.type.kind!==181&&n.type.kind!==182)return Sl(n,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(149))}function B_(n,r){if(ru(n))return At(n,r)}function zD(n){if(Ry(n))return!0;if(n.kind===167){if(n.parent.kind===203){if(n.modifiers&&!(n.modifiers.length===1&&e.first(n.modifiers).kind===130))return Sl(n,e.Diagnostics.Modifiers_cannot_appear_here);if(HD(n.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(JD(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return up(n,n.end-1,1,e.Diagnostics._0_expected,"{")}if(B1(n))return!0}if(e.isClassLike(n.parent)){if(we<2&&e.isPrivateIdentifier(n.name))return At(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&8388608)return B_(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===167&&!n.body)return B_(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===256)return B_(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===180)return B_(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 jP(n){for(var r=n;r;){if(e.isFunctionLikeOrClassStaticBlockDeclaration(r))return At(n,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 248:if(n.label&&r.label.escapedText===n.label.escapedText){var t=n.kind===243&&!e.isIterationStatement(r.statement,!0);return t?At(n,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1}break;case 247:if(n.kind===244&&!n.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!n.label)return!1;break}r=r.parent}if(n.label){var a=n.kind===244?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 At(n,a)}else{var a=n.kind===244?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 At(n,a)}}function HP(n){if(n.dotDotDotToken){var r=n.parent.elements;if(n!==e.last(r))return At(n,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Am(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return At(n.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return up(n,n.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}function qD(n){return e.isStringOrNumericLiteralLike(n)||n.kind===217&&n.operator===40&&n.operand.kind===8}function JP(n){return n.kind===9||n.kind===217&&n.operator===40&&n.operand.kind===9}function KP(n){if((e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)&&qD(n.argumentExpression))&&e.isEntityNameExpression(n.expression))return!!(ll(n).flags&1024)}function XD(n){var r=n.initializer;if(r){var t=!(qD(r)||KP(r)||r.kind===110||r.kind===95||JP(r)),a=e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n);if(a&&!n.type){if(t)return At(r,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return At(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(!a||t)return At(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function zP(n){if(n.parent.parent.kind!==241&&n.parent.parent.kind!==242){if(n.flags&8388608)XD(n);else if(!n.initializer){if(e.isBindingPattern(n.name)&&!e.isBindingPattern(n.parent))return At(n,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(n))return At(n,e.Diagnostics.const_declarations_must_be_initialized)}}if(n.exclamationToken&&(n.parent.parent.kind!==235||!n.type||n.initializer||n.flags&8388608)){var r=n.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return At(n.exclamationToken,r)}var t=e.getEmitModuleKind(pe);t<e.ModuleKind.ES2015&&t!==e.ModuleKind.System&&!(n.parent.parent.flags&8388608)&&e.hasSyntacticModifier(n.parent.parent,1)&&YD(n.name);var a=e.isLet(n)||e.isVarConst(n);return a&&QD(n.name)}function YD(n){if(n.kind===79){if(e.idText(n)==="__esModule")return YP("noEmit",n,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var r=n.elements,t=0,a=r;t<a.length;t++){var s=a[t];if(!e.isOmittedExpression(s))return YD(s.name)}return!1}function QD(n){if(n.kind===79){if(n.originalKeywordKind===119)return At(n,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var r=n.elements,t=0,a=r;t<a.length;t++){var s=a[t];e.isOmittedExpression(s)||QD(s.name)}return!1}function V1(n){var r=n.declarations;return Am(n.declarations)?!0:n.declarations.length?!1:up(n,r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function ZD(n){switch(n.kind){case 237:case 238:case 239:case 246:case 240:case 241:case 242:return!1;case 248:return ZD(n.parent)}return!0}function qP(n){if(!ZD(n.parent)){if(e.isLet(n.declarationList))return At(n,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isVarConst(n.declarationList))return At(n,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}function XP(n){var r=n.name.escapedText;switch(n.keywordToken){case 103:if(r!=="target")return At(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 100:if(r!=="meta")return At(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 lm(n){return n.parseDiagnostics.length>0}function Sl(n,r,t,a,s){var u=e.getSourceFileOfNode(n);if(!lm(u)){var S=e.getSpanOfTokenAtPosition(u,n.pos);return zt.add(e.createFileDiagnostic(u,S.start,S.length,r,t,a,s)),!0}return!1}function up(n,r,t,a,s,u,S){var F=e.getSourceFileOfNode(n);return lm(F)?!1:(zt.add(e.createFileDiagnostic(F,r,t,a,s,u,S)),!0)}function YP(n,r,t,a,s,u){var S=e.getSourceFileOfNode(r);return lm(S)?!1:(Pi(n,r,t,a,s,u),!0)}function At(n,r,t,a,s){var u=e.getSourceFileOfNode(n);return lm(u)?!1:(zt.add(e.createDiagnosticForNode(n,r,t,a,s)),!0)}function QP(n){var r=e.isInJSFile(n)?e.getJSDocTypeParameterDeclarations(n):void 0,t=n.typeParameters||r&&e.firstOrUndefined(r);if(t){var a=t.pos===t.end?t.pos:e.skipTrivia(e.getSourceFileOfNode(n).text,t.pos);return up(n,a,t.end-a,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function ZP(n){var r=e.getEffectiveReturnTypeNode(n);if(r)return At(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function $P(n){if(e.isClassLike(n.parent)){if(e.isStringLiteral(n.name)&&n.name.text==="constructor")return At(n.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(B_(n.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(we<2&&e.isPrivateIdentifier(n.name))return At(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(n.parent.kind===256){if(B_(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 At(n.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(n.parent.kind===180){if(B_(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 At(n.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&8388608&&XD(n),e.isPropertyDeclaration(n)&&n.exclamationToken&&(!e.isClassLike(n.parent)||!n.type||n.initializer||n.flags&8388608||e.isStatic(n)||e.hasAbstractModifier(n))){var r=n.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return At(n.exclamationToken,r)}}function eM(n){return n.kind===256||n.kind===257||n.kind===264||n.kind===263||n.kind===270||n.kind===269||n.kind===262||e.hasSyntacticModifier(n,515)?!1:Sl(n,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function nM(n){for(var r=0,t=n.statements;r<t.length;r++){var a=t[r];if((e.isDeclaration(a)||a.kind===235)&&eM(a))return!0}return!1}function rM(n){return!!(n.flags&8388608)&&nM(n)}function Cf(n){if(n.flags&8388608){var r=da(n);if(!r.hasReportedStatementInAmbientContext&&(e.isFunctionLike(n.parent)||e.isAccessor(n.parent)))return da(n).hasReportedStatementInAmbientContext=Sl(n,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===233||n.parent.kind===260||n.parent.kind===300){var t=da(n.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=Sl(n,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function W1(n){if(n.numericLiteralFlags&32){var r=void 0;if(we>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(n,194)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(n,294)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var t=e.isPrefixUnaryExpression(n.parent)&&n.parent.operator===40,a=(t?"-":"")+"0o"+n.text;return At(t?n.parent:n,r,a)}}return tM(n),!1}function tM(n){if(!(n.numericLiteralFlags&16||n.text.length<=15||n.text.indexOf(".")!==-1)){var r=+e.getTextOfNode(n);r<=Math.pow(2,53)-1&&r+1>r||zo(!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 aM(n){var r=e.isLiteralTypeNode(n.parent)||e.isPrefixUnaryExpression(n.parent)&&e.isLiteralTypeNode(n.parent.parent);return!!(!r&&we<7&&At(n,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function iM(n,r,t,a,s){var u=e.getSourceFileOfNode(n);if(!lm(u)){var S=e.getSpanOfTokenAtPosition(u,n.pos);return zt.add(e.createFileDiagnostic(u,e.textSpanEnd(S),0,r,t,a,s)),!0}return!1}function oM(){return Bo||(Bo=[],xe.forEach(function(n,r){o.test(r)&&Bo.push(n)})),Bo}function sM(n){return n.isTypeOnly&&n.name&&n.namedBindings?At(n,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):!1}function lM(n){if(pn===e.ModuleKind.ES2015)return At(n,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd);if(n.typeArguments)return At(n,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var r=n.arguments;return r.length!==1?At(n,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):(Am(r),e.isSpreadElement(r[0])?At(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element):!1)}function cM(n,r){var t=e.getObjectFlags(n);if(t&20&&r.flags&1048576)return e.find(r.types,function(a){if(a.flags&524288){var s=t&e.getObjectFlags(a);if(s&4)return n.target===a.target;if(s&16)return!!n.aliasSymbol&&n.aliasSymbol===a.aliasSymbol}return!1})}function uM(n,r){if(e.getObjectFlags(n)&128&&D_(r,lp))return e.find(r.types,function(t){return!lp(t)})}function fM(n,r){var t=0,a=zr(n,t).length>0||(t=1,zr(n,t).length>0);if(a)return e.find(r.types,function(s){return zr(s,t).length>0})}function dM(n,r){for(var t,a=0,s=0,u=r.types;s<u.length;s++){var S=u[s],F=Ro([ff(n),ff(S)]);if(F.flags&4194304)t=S,a=1/0;else if(F.flags&1048576){var ve=e.length(e.filter(F.types,Wu));ve>=a&&(t=S,a=ve)}else Wu(F)&&1>=a&&(t=S,a=1)}return t}function pM(n){if(bs(n,67108864)){var r=Nl(n,function(t){return!(t.flags&131068)});if(!(r.flags&131072))return r}return n}function $D(n,r,t,a){if(r.flags&1048576&&n.flags&2621440){var s=GS(r,n);if(s)return s;var u=bo(n);if(u){var S=FS(u,r);if(S)return WE(r,e.map(S,function(F){return[function(){return kt(F)},F.escapedName]}),t,void 0,a)}}}}e.createTypeChecker=G;function g(x){return!e.isAccessor(x)}function p(x){return x.kind!==254&&x.kind!==167||!!x.body}function f(x){switch(x.parent.kind){case 268:case 273:return e.isIdentifier(x);default:return e.isDeclarationName(x)}}var T;(function(x){x.JSX="JSX",x.IntrinsicElements="IntrinsicElements",x.ElementClass="ElementClass",x.ElementAttributesPropertyNameContainer="ElementAttributesProperty",x.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",x.Element="Element",x.IntrinsicAttributes="IntrinsicAttributes",x.IntrinsicClassAttributes="IntrinsicClassAttributes",x.LibraryManagedAttributes="LibraryManagedAttributes"})(T||(T={}));function m(x){switch(x){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function N(x){return!!(x.flags&1)}e.signatureHasRestParameter=N;function P(x){return!!(x.flags&2)}e.signatureHasLiteralTypes=P})(vn||(vn={}));var vn;(function(e){function o(y,V,Z,E){if(y===void 0||V===void 0)return y;var H=V(y);if(H===y)return y;var L;if(H!==void 0)return e.isArray(H)?L=(E||_e)(H):L=H,e.Debug.assertNode(L,Z),L}e.visitNode=o;function ue(y,V,Z,E,H){if(y===void 0||V===void 0)return y;var L,ee=y.length;(E===void 0||E<0)&&(E=0),(H===void 0||H>ee-E)&&(H=ee-E);var k,b=-1,ie=-1;(E>0||H<ee)&&(L=[],k=y.hasTrailingComma&&E+H===ee);for(var q=0;q<H;q++){var oe=y[q+E],se=oe!==void 0?V(oe):void 0;if((L!==void 0||se===void 0||se!==oe)&&(L===void 0&&(L=y.slice(0,q),k=y.hasTrailingComma,b=y.pos,ie=y.end),se))if(e.isArray(se))for(var w=0,R=se;w<R.length;w++){var ne=R[w];e.Debug.assertNode(ne,Z),L.push(ne)}else e.Debug.assertNode(se,Z),L.push(se)}if(L){var U=e.factory.createNodeArray(L,k);return e.setTextRangePosEnd(U,b,ie),U}return y}e.visitNodes=ue;function $(y,V,Z,E,H,L){return L===void 0&&(L=ue),Z.startLexicalEnvironment(),y=L(y,V,e.isStatement,E),H&&(y=Z.factory.ensureUseStrict(y)),e.factory.mergeLexicalEnvironment(y,Z.endLexicalEnvironment())}e.visitLexicalEnvironment=$;function Y(y,V,Z,E){E===void 0&&(E=ue);var H;return Z.startLexicalEnvironment(),y&&(Z.setLexicalEnvironmentFlags(1,!0),H=E(y,V,e.isParameterDeclaration),Z.getLexicalEnvironmentFlags()&2&&e.getEmitScriptTarget(Z.getCompilerOptions())>=2&&(H=W(H,Z)),Z.setLexicalEnvironmentFlags(1,!1)),Z.suspendLexicalEnvironment(),H}e.visitParameterList=Y;function W(y,V){for(var Z,E=0;E<y.length;E++){var H=y[E],L=re(H,V);(Z||L!==H)&&(Z||(Z=y.slice(0,E)),Z[E]=L)}return Z?e.setTextRange(V.factory.createNodeArray(Z,y.hasTrailingComma),y):y}function re(y,V){return y.dotDotDotToken?y:e.isBindingPattern(y.name)?ye(y,V):y.initializer?O(y,y.name,y.initializer,V):y}function ye(y,V){var Z=V.factory;return V.addInitializationStatement(Z.createVariableStatement(void 0,Z.createVariableDeclarationList([Z.createVariableDeclaration(y.name,void 0,y.type,y.initializer?Z.createConditionalExpression(Z.createStrictEquality(Z.getGeneratedNameForNode(y),Z.createVoidZero()),void 0,y.initializer,void 0,Z.getGeneratedNameForNode(y)):Z.getGeneratedNameForNode(y))]))),Z.updateParameterDeclaration(y,y.decorators,y.modifiers,y.dotDotDotToken,Z.getGeneratedNameForNode(y),y.questionToken,y.type,void 0)}function O(y,V,Z,E){var H=E.factory;return E.addInitializationStatement(H.createIfStatement(H.createTypeCheck(H.cloneNode(V),"undefined"),e.setEmitFlags(e.setTextRange(H.createBlock([H.createExpressionStatement(e.setEmitFlags(e.setTextRange(H.createAssignment(e.setEmitFlags(H.cloneNode(V),48),e.setEmitFlags(Z,48|e.getEmitFlags(Z)|1536)),y),1536))]),y),1953))),H.updateParameterDeclaration(y,y.decorators,y.modifiers,y.dotDotDotToken,y.name,y.questionToken,y.type,void 0)}function A(y,V,Z,E){E===void 0&&(E=o),Z.resumeLexicalEnvironment();var H=E(y,V,e.isConciseBody),L=Z.endLexicalEnvironment();if(e.some(L)){if(!H)return Z.factory.createBlock(L);var ee=Z.factory.converters.convertToFunctionBlock(H),k=e.factory.mergeLexicalEnvironment(ee.statements,L);return Z.factory.updateBlock(ee,k)}return H}e.visitFunctionBody=A;function D(y,V,Z){Z.startBlockScope();var E=o(y,V,e.isStatement,Z.factory.liftToBlock),H=Z.endBlockScope();return e.some(H)?e.isBlock(E)?(H.push.apply(H,E.statements),Z.factory.updateBlock(E,H)):(H.push(E),Z.factory.createBlock(H)):E}e.visitIterationBody=D;function de(y,V,Z,E,H,L){if(E===void 0&&(E=ue),L===void 0&&(L=o),y!==void 0){var ee=y.kind;if(ee>0&&ee<=158||ee===190)return y;var k=Z.factory;switch(ee){case 79:return e.Debug.type(y),k.updateIdentifier(y,E(y.typeArguments,V,e.isTypeNodeOrTypeParameterDeclaration));case 159:return e.Debug.type(y),k.updateQualifiedName(y,L(y.left,V,e.isEntityName),L(y.right,V,e.isIdentifier));case 160:return e.Debug.type(y),k.updateComputedPropertyName(y,L(y.expression,V,e.isExpression));case 161:return e.Debug.type(y),k.updateTypeParameterDeclaration(y,L(y.name,V,e.isIdentifier),L(y.constraint,V,e.isTypeNode),L(y.default,V,e.isTypeNode));case 162:return e.Debug.type(y),k.updateParameterDeclaration(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),L(y.dotDotDotToken,H,e.isDotDotDotToken),L(y.name,V,e.isBindingName),L(y.questionToken,H,e.isQuestionToken),L(y.type,V,e.isTypeNode),L(y.initializer,V,e.isExpression));case 163:return e.Debug.type(y),k.updateDecorator(y,L(y.expression,V,e.isExpression));case 164:return e.Debug.type(y),k.updatePropertySignature(y,E(y.modifiers,V,e.isModifier),L(y.name,V,e.isPropertyName),L(y.questionToken,H,e.isToken),L(y.type,V,e.isTypeNode));case 165:return e.Debug.type(y),k.updatePropertyDeclaration(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),L(y.name,V,e.isPropertyName),L(y.questionToken||y.exclamationToken,H,e.isQuestionOrExclamationToken),L(y.type,V,e.isTypeNode),L(y.initializer,V,e.isExpression));case 166:return e.Debug.type(y),k.updateMethodSignature(y,E(y.modifiers,V,e.isModifier),L(y.name,V,e.isPropertyName),L(y.questionToken,H,e.isQuestionToken),E(y.typeParameters,V,e.isTypeParameterDeclaration),E(y.parameters,V,e.isParameterDeclaration),L(y.type,V,e.isTypeNode));case 167:return e.Debug.type(y),k.updateMethodDeclaration(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),L(y.asteriskToken,H,e.isAsteriskToken),L(y.name,V,e.isPropertyName),L(y.questionToken,H,e.isQuestionToken),E(y.typeParameters,V,e.isTypeParameterDeclaration),Y(y.parameters,V,Z,E),L(y.type,V,e.isTypeNode),A(y.body,V,Z,L));case 169:return e.Debug.type(y),k.updateConstructorDeclaration(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),Y(y.parameters,V,Z,E),A(y.body,V,Z,L));case 170:return e.Debug.type(y),k.updateGetAccessorDeclaration(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),L(y.name,V,e.isPropertyName),Y(y.parameters,V,Z,E),L(y.type,V,e.isTypeNode),A(y.body,V,Z,L));case 171:return e.Debug.type(y),k.updateSetAccessorDeclaration(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),L(y.name,V,e.isPropertyName),Y(y.parameters,V,Z,E),A(y.body,V,Z,L));case 168:return e.Debug.type(y),Z.startLexicalEnvironment(),Z.suspendLexicalEnvironment(),k.updateClassStaticBlockDeclaration(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),A(y.body,V,Z,L));case 172:return e.Debug.type(y),k.updateCallSignature(y,E(y.typeParameters,V,e.isTypeParameterDeclaration),E(y.parameters,V,e.isParameterDeclaration),L(y.type,V,e.isTypeNode));case 173:return e.Debug.type(y),k.updateConstructSignature(y,E(y.typeParameters,V,e.isTypeParameterDeclaration),E(y.parameters,V,e.isParameterDeclaration),L(y.type,V,e.isTypeNode));case 174:return e.Debug.type(y),k.updateIndexSignature(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),E(y.parameters,V,e.isParameterDeclaration),L(y.type,V,e.isTypeNode));case 175:return e.Debug.type(y),k.updateTypePredicateNode(y,L(y.assertsModifier,V,e.isAssertsKeyword),L(y.parameterName,V,e.isIdentifierOrThisTypeNode),L(y.type,V,e.isTypeNode));case 176:return e.Debug.type(y),k.updateTypeReferenceNode(y,L(y.typeName,V,e.isEntityName),E(y.typeArguments,V,e.isTypeNode));case 177:return e.Debug.type(y),k.updateFunctionTypeNode(y,E(y.typeParameters,V,e.isTypeParameterDeclaration),E(y.parameters,V,e.isParameterDeclaration),L(y.type,V,e.isTypeNode));case 178:return e.Debug.type(y),k.updateConstructorTypeNode(y,E(y.modifiers,V,e.isModifier),E(y.typeParameters,V,e.isTypeParameterDeclaration),E(y.parameters,V,e.isParameterDeclaration),L(y.type,V,e.isTypeNode));case 179:return e.Debug.type(y),k.updateTypeQueryNode(y,L(y.exprName,V,e.isEntityName));case 180:return e.Debug.type(y),k.updateTypeLiteralNode(y,E(y.members,V,e.isTypeElement));case 181:return e.Debug.type(y),k.updateArrayTypeNode(y,L(y.elementType,V,e.isTypeNode));case 182:return e.Debug.type(y),k.updateTupleTypeNode(y,E(y.elements,V,e.isTypeNode));case 183:return e.Debug.type(y),k.updateOptionalTypeNode(y,L(y.type,V,e.isTypeNode));case 184:return e.Debug.type(y),k.updateRestTypeNode(y,L(y.type,V,e.isTypeNode));case 185:return e.Debug.type(y),k.updateUnionTypeNode(y,E(y.types,V,e.isTypeNode));case 186:return e.Debug.type(y),k.updateIntersectionTypeNode(y,E(y.types,V,e.isTypeNode));case 187:return e.Debug.type(y),k.updateConditionalTypeNode(y,L(y.checkType,V,e.isTypeNode),L(y.extendsType,V,e.isTypeNode),L(y.trueType,V,e.isTypeNode),L(y.falseType,V,e.isTypeNode));case 188:return e.Debug.type(y),k.updateInferTypeNode(y,L(y.typeParameter,V,e.isTypeParameterDeclaration));case 198:return e.Debug.type(y),k.updateImportTypeNode(y,L(y.argument,V,e.isTypeNode),L(y.qualifier,V,e.isEntityName),ue(y.typeArguments,V,e.isTypeNode),y.isTypeOf);case 195:return e.Debug.type(y),k.updateNamedTupleMember(y,o(y.dotDotDotToken,V,e.isDotDotDotToken),o(y.name,V,e.isIdentifier),o(y.questionToken,V,e.isQuestionToken),o(y.type,V,e.isTypeNode));case 189:return e.Debug.type(y),k.updateParenthesizedType(y,L(y.type,V,e.isTypeNode));case 191:return e.Debug.type(y),k.updateTypeOperatorNode(y,L(y.type,V,e.isTypeNode));case 192:return e.Debug.type(y),k.updateIndexedAccessTypeNode(y,L(y.objectType,V,e.isTypeNode),L(y.indexType,V,e.isTypeNode));case 193:return e.Debug.type(y),k.updateMappedTypeNode(y,L(y.readonlyToken,H,e.isReadonlyKeywordOrPlusOrMinusToken),L(y.typeParameter,V,e.isTypeParameterDeclaration),L(y.nameType,V,e.isTypeNode),L(y.questionToken,H,e.isQuestionOrPlusOrMinusToken),L(y.type,V,e.isTypeNode));case 194:return e.Debug.type(y),k.updateLiteralTypeNode(y,L(y.literal,V,e.isExpression));case 196:return e.Debug.type(y),k.updateTemplateLiteralType(y,L(y.head,V,e.isTemplateHead),E(y.templateSpans,V,e.isTemplateLiteralTypeSpan));case 197:return e.Debug.type(y),k.updateTemplateLiteralTypeSpan(y,L(y.type,V,e.isTypeNode),L(y.literal,V,e.isTemplateMiddleOrTemplateTail));case 199:return e.Debug.type(y),k.updateObjectBindingPattern(y,E(y.elements,V,e.isBindingElement));case 200:return e.Debug.type(y),k.updateArrayBindingPattern(y,E(y.elements,V,e.isArrayBindingElement));case 201:return e.Debug.type(y),k.updateBindingElement(y,L(y.dotDotDotToken,H,e.isDotDotDotToken),L(y.propertyName,V,e.isPropertyName),L(y.name,V,e.isBindingName),L(y.initializer,V,e.isExpression));case 202:return e.Debug.type(y),k.updateArrayLiteralExpression(y,E(y.elements,V,e.isExpression));case 203:return e.Debug.type(y),k.updateObjectLiteralExpression(y,E(y.properties,V,e.isObjectLiteralElementLike));case 204:return y.flags&32?(e.Debug.type(y),k.updatePropertyAccessChain(y,L(y.expression,V,e.isExpression),L(y.questionDotToken,H,e.isQuestionDotToken),L(y.name,V,e.isMemberName))):(e.Debug.type(y),k.updatePropertyAccessExpression(y,L(y.expression,V,e.isExpression),L(y.name,V,e.isMemberName)));case 205:return y.flags&32?(e.Debug.type(y),k.updateElementAccessChain(y,L(y.expression,V,e.isExpression),L(y.questionDotToken,H,e.isQuestionDotToken),L(y.argumentExpression,V,e.isExpression))):(e.Debug.type(y),k.updateElementAccessExpression(y,L(y.expression,V,e.isExpression),L(y.argumentExpression,V,e.isExpression)));case 206:return y.flags&32?(e.Debug.type(y),k.updateCallChain(y,L(y.expression,V,e.isExpression),L(y.questionDotToken,H,e.isQuestionDotToken),E(y.typeArguments,V,e.isTypeNode),E(y.arguments,V,e.isExpression))):(e.Debug.type(y),k.updateCallExpression(y,L(y.expression,V,e.isExpression),E(y.typeArguments,V,e.isTypeNode),E(y.arguments,V,e.isExpression)));case 207:return e.Debug.type(y),k.updateNewExpression(y,L(y.expression,V,e.isExpression),E(y.typeArguments,V,e.isTypeNode),E(y.arguments,V,e.isExpression));case 208:return e.Debug.type(y),k.updateTaggedTemplateExpression(y,L(y.tag,V,e.isExpression),ue(y.typeArguments,V,e.isTypeNode),L(y.template,V,e.isTemplateLiteral));case 209:return e.Debug.type(y),k.updateTypeAssertion(y,L(y.type,V,e.isTypeNode),L(y.expression,V,e.isExpression));case 210:return e.Debug.type(y),k.updateParenthesizedExpression(y,L(y.expression,V,e.isExpression));case 211:return e.Debug.type(y),k.updateFunctionExpression(y,E(y.modifiers,V,e.isModifier),L(y.asteriskToken,H,e.isAsteriskToken),L(y.name,V,e.isIdentifier),E(y.typeParameters,V,e.isTypeParameterDeclaration),Y(y.parameters,V,Z,E),L(y.type,V,e.isTypeNode),A(y.body,V,Z,L));case 212:return e.Debug.type(y),k.updateArrowFunction(y,E(y.modifiers,V,e.isModifier),E(y.typeParameters,V,e.isTypeParameterDeclaration),Y(y.parameters,V,Z,E),L(y.type,V,e.isTypeNode),L(y.equalsGreaterThanToken,H,e.isEqualsGreaterThanToken),A(y.body,V,Z,L));case 213:return e.Debug.type(y),k.updateDeleteExpression(y,L(y.expression,V,e.isExpression));case 214:return e.Debug.type(y),k.updateTypeOfExpression(y,L(y.expression,V,e.isExpression));case 215:return e.Debug.type(y),k.updateVoidExpression(y,L(y.expression,V,e.isExpression));case 216:return e.Debug.type(y),k.updateAwaitExpression(y,L(y.expression,V,e.isExpression));case 217:return e.Debug.type(y),k.updatePrefixUnaryExpression(y,L(y.operand,V,e.isExpression));case 218:return e.Debug.type(y),k.updatePostfixUnaryExpression(y,L(y.operand,V,e.isExpression));case 219:return e.Debug.type(y),k.updateBinaryExpression(y,L(y.left,V,e.isExpression),L(y.operatorToken,H,e.isBinaryOperatorToken),L(y.right,V,e.isExpression));case 220:return e.Debug.type(y),k.updateConditionalExpression(y,L(y.condition,V,e.isExpression),L(y.questionToken,H,e.isQuestionToken),L(y.whenTrue,V,e.isExpression),L(y.colonToken,H,e.isColonToken),L(y.whenFalse,V,e.isExpression));case 221:return e.Debug.type(y),k.updateTemplateExpression(y,L(y.head,V,e.isTemplateHead),E(y.templateSpans,V,e.isTemplateSpan));case 222:return e.Debug.type(y),k.updateYieldExpression(y,L(y.asteriskToken,H,e.isAsteriskToken),L(y.expression,V,e.isExpression));case 223:return e.Debug.type(y),k.updateSpreadElement(y,L(y.expression,V,e.isExpression));case 224:return e.Debug.type(y),k.updateClassExpression(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),L(y.name,V,e.isIdentifier),E(y.typeParameters,V,e.isTypeParameterDeclaration),E(y.heritageClauses,V,e.isHeritageClause),E(y.members,V,e.isClassElement));case 226:return e.Debug.type(y),k.updateExpressionWithTypeArguments(y,L(y.expression,V,e.isExpression),E(y.typeArguments,V,e.isTypeNode));case 227:return e.Debug.type(y),k.updateAsExpression(y,L(y.expression,V,e.isExpression),L(y.type,V,e.isTypeNode));case 228:return y.flags&32?(e.Debug.type(y),k.updateNonNullChain(y,L(y.expression,V,e.isExpression))):(e.Debug.type(y),k.updateNonNullExpression(y,L(y.expression,V,e.isExpression)));case 229:return e.Debug.type(y),k.updateMetaProperty(y,L(y.name,V,e.isIdentifier));case 231:return e.Debug.type(y),k.updateTemplateSpan(y,L(y.expression,V,e.isExpression),L(y.literal,V,e.isTemplateMiddleOrTemplateTail));case 233:return e.Debug.type(y),k.updateBlock(y,E(y.statements,V,e.isStatement));case 235:return e.Debug.type(y),k.updateVariableStatement(y,E(y.modifiers,V,e.isModifier),L(y.declarationList,V,e.isVariableDeclarationList));case 236:return e.Debug.type(y),k.updateExpressionStatement(y,L(y.expression,V,e.isExpression));case 237:return e.Debug.type(y),k.updateIfStatement(y,L(y.expression,V,e.isExpression),L(y.thenStatement,V,e.isStatement,k.liftToBlock),L(y.elseStatement,V,e.isStatement,k.liftToBlock));case 238:return e.Debug.type(y),k.updateDoStatement(y,D(y.statement,V,Z),L(y.expression,V,e.isExpression));case 239:return e.Debug.type(y),k.updateWhileStatement(y,L(y.expression,V,e.isExpression),D(y.statement,V,Z));case 240:return e.Debug.type(y),k.updateForStatement(y,L(y.initializer,V,e.isForInitializer),L(y.condition,V,e.isExpression),L(y.incrementor,V,e.isExpression),D(y.statement,V,Z));case 241:return e.Debug.type(y),k.updateForInStatement(y,L(y.initializer,V,e.isForInitializer),L(y.expression,V,e.isExpression),D(y.statement,V,Z));case 242:return e.Debug.type(y),k.updateForOfStatement(y,L(y.awaitModifier,H,e.isAwaitKeyword),L(y.initializer,V,e.isForInitializer),L(y.expression,V,e.isExpression),D(y.statement,V,Z));case 243:return e.Debug.type(y),k.updateContinueStatement(y,L(y.label,V,e.isIdentifier));case 244:return e.Debug.type(y),k.updateBreakStatement(y,L(y.label,V,e.isIdentifier));case 245:return e.Debug.type(y),k.updateReturnStatement(y,L(y.expression,V,e.isExpression));case 246:return e.Debug.type(y),k.updateWithStatement(y,L(y.expression,V,e.isExpression),L(y.statement,V,e.isStatement,k.liftToBlock));case 247:return e.Debug.type(y),k.updateSwitchStatement(y,L(y.expression,V,e.isExpression),L(y.caseBlock,V,e.isCaseBlock));case 248:return e.Debug.type(y),k.updateLabeledStatement(y,L(y.label,V,e.isIdentifier),L(y.statement,V,e.isStatement,k.liftToBlock));case 249:return e.Debug.type(y),k.updateThrowStatement(y,L(y.expression,V,e.isExpression));case 250:return e.Debug.type(y),k.updateTryStatement(y,L(y.tryBlock,V,e.isBlock),L(y.catchClause,V,e.isCatchClause),L(y.finallyBlock,V,e.isBlock));case 252:return e.Debug.type(y),k.updateVariableDeclaration(y,L(y.name,V,e.isBindingName),L(y.exclamationToken,H,e.isExclamationToken),L(y.type,V,e.isTypeNode),L(y.initializer,V,e.isExpression));case 253:return e.Debug.type(y),k.updateVariableDeclarationList(y,E(y.declarations,V,e.isVariableDeclaration));case 254:return e.Debug.type(y),k.updateFunctionDeclaration(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),L(y.asteriskToken,H,e.isAsteriskToken),L(y.name,V,e.isIdentifier),E(y.typeParameters,V,e.isTypeParameterDeclaration),Y(y.parameters,V,Z,E),L(y.type,V,e.isTypeNode),A(y.body,V,Z,L));case 255:return e.Debug.type(y),k.updateClassDeclaration(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),L(y.name,V,e.isIdentifier),E(y.typeParameters,V,e.isTypeParameterDeclaration),E(y.heritageClauses,V,e.isHeritageClause),E(y.members,V,e.isClassElement));case 256:return e.Debug.type(y),k.updateInterfaceDeclaration(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),L(y.name,V,e.isIdentifier),E(y.typeParameters,V,e.isTypeParameterDeclaration),E(y.heritageClauses,V,e.isHeritageClause),E(y.members,V,e.isTypeElement));case 257:return e.Debug.type(y),k.updateTypeAliasDeclaration(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),L(y.name,V,e.isIdentifier),E(y.typeParameters,V,e.isTypeParameterDeclaration),L(y.type,V,e.isTypeNode));case 258:return e.Debug.type(y),k.updateEnumDeclaration(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),L(y.name,V,e.isIdentifier),E(y.members,V,e.isEnumMember));case 259:return e.Debug.type(y),k.updateModuleDeclaration(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),L(y.name,V,e.isModuleName),L(y.body,V,e.isModuleBody));case 260:return e.Debug.type(y),k.updateModuleBlock(y,E(y.statements,V,e.isStatement));case 261:return e.Debug.type(y),k.updateCaseBlock(y,E(y.clauses,V,e.isCaseOrDefaultClause));case 262:return e.Debug.type(y),k.updateNamespaceExportDeclaration(y,L(y.name,V,e.isIdentifier));case 263:return e.Debug.type(y),k.updateImportEqualsDeclaration(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),y.isTypeOnly,L(y.name,V,e.isIdentifier),L(y.moduleReference,V,e.isModuleReference));case 264:return e.Debug.type(y),k.updateImportDeclaration(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),L(y.importClause,V,e.isImportClause),L(y.moduleSpecifier,V,e.isExpression));case 265:return e.Debug.type(y),k.updateImportClause(y,y.isTypeOnly,L(y.name,V,e.isIdentifier),L(y.namedBindings,V,e.isNamedImportBindings));case 266:return e.Debug.type(y),k.updateNamespaceImport(y,L(y.name,V,e.isIdentifier));case 272:return e.Debug.type(y),k.updateNamespaceExport(y,L(y.name,V,e.isIdentifier));case 267:return e.Debug.type(y),k.updateNamedImports(y,E(y.elements,V,e.isImportSpecifier));case 268:return e.Debug.type(y),k.updateImportSpecifier(y,L(y.propertyName,V,e.isIdentifier),L(y.name,V,e.isIdentifier));case 269:return e.Debug.type(y),k.updateExportAssignment(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),L(y.expression,V,e.isExpression));case 270:return e.Debug.type(y),k.updateExportDeclaration(y,E(y.decorators,V,e.isDecorator),E(y.modifiers,V,e.isModifier),y.isTypeOnly,L(y.exportClause,V,e.isNamedExportBindings),L(y.moduleSpecifier,V,e.isExpression));case 271:return e.Debug.type(y),k.updateNamedExports(y,E(y.elements,V,e.isExportSpecifier));case 273:return e.Debug.type(y),k.updateExportSpecifier(y,L(y.propertyName,V,e.isIdentifier),L(y.name,V,e.isIdentifier));case 275:return e.Debug.type(y),k.updateExternalModuleReference(y,L(y.expression,V,e.isExpression));case 276:return e.Debug.type(y),k.updateJsxElement(y,L(y.openingElement,V,e.isJsxOpeningElement),E(y.children,V,e.isJsxChild),L(y.closingElement,V,e.isJsxClosingElement));case 277:return e.Debug.type(y),k.updateJsxSelfClosingElement(y,L(y.tagName,V,e.isJsxTagNameExpression),E(y.typeArguments,V,e.isTypeNode),L(y.attributes,V,e.isJsxAttributes));case 278:return e.Debug.type(y),k.updateJsxOpeningElement(y,L(y.tagName,V,e.isJsxTagNameExpression),E(y.typeArguments,V,e.isTypeNode),L(y.attributes,V,e.isJsxAttributes));case 279:return e.Debug.type(y),k.updateJsxClosingElement(y,L(y.tagName,V,e.isJsxTagNameExpression));case 280:return e.Debug.type(y),k.updateJsxFragment(y,L(y.openingFragment,V,e.isJsxOpeningFragment),E(y.children,V,e.isJsxChild),L(y.closingFragment,V,e.isJsxClosingFragment));case 283:return e.Debug.type(y),k.updateJsxAttribute(y,L(y.name,V,e.isIdentifier),L(y.initializer,V,e.isStringLiteralOrJsxExpression));case 284:return e.Debug.type(y),k.updateJsxAttributes(y,E(y.properties,V,e.isJsxAttributeLike));case 285:return e.Debug.type(y),k.updateJsxSpreadAttribute(y,L(y.expression,V,e.isExpression));case 286:return e.Debug.type(y),k.updateJsxExpression(y,L(y.expression,V,e.isExpression));case 287:return e.Debug.type(y),k.updateCaseClause(y,L(y.expression,V,e.isExpression),E(y.statements,V,e.isStatement));case 288:return e.Debug.type(y),k.updateDefaultClause(y,E(y.statements,V,e.isStatement));case 289:return e.Debug.type(y),k.updateHeritageClause(y,E(y.types,V,e.isExpressionWithTypeArguments));case 290:return e.Debug.type(y),k.updateCatchClause(y,L(y.variableDeclaration,V,e.isVariableDeclaration),L(y.block,V,e.isBlock));case 291:return e.Debug.type(y),k.updatePropertyAssignment(y,L(y.name,V,e.isPropertyName),L(y.initializer,V,e.isExpression));case 292:return e.Debug.type(y),k.updateShorthandPropertyAssignment(y,L(y.name,V,e.isIdentifier),L(y.objectAssignmentInitializer,V,e.isExpression));case 293:return e.Debug.type(y),k.updateSpreadAssignment(y,L(y.expression,V,e.isExpression));case 294:return e.Debug.type(y),k.updateEnumMember(y,L(y.name,V,e.isPropertyName),L(y.initializer,V,e.isExpression));case 300:return e.Debug.type(y),k.updateSourceFile(y,$(y.statements,V,Z));case 345:return e.Debug.type(y),k.updatePartiallyEmittedExpression(y,L(y.expression,V,e.isExpression));case 346:return e.Debug.type(y),k.updateCommaListExpression(y,E(y.elements,V,e.isExpression));default:return y}}}e.visitEachChild=de;function _e(y){return e.Debug.assert(y.length<=1,"Too many nodes written to output."),e.singleOrUndefined(y)}})(vn||(vn={}));var vn;(function(e){function o(b,ie,q,oe,se){var w=se.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,R=w.enter,ne=w.exit,U=[],C=[],d=new e.Map,G,g=[],p,f=[],T="",m=0,N=0,P=0,x=0,M=0,me=0,z=!1,K=0,I=0,Ae=0,Oe=0,te=0,Se=0,be=!1,Ce=!1,Be=!1;return{getSources:function(){return U},addSource:De,setSourceContent:en,addName:fe,addMapping:pe,appendSourceMap:we,toJSON:Ln,toString:function(){return JSON.stringify(Ln())}};function De(fn){R();var En=e.getRelativePathToDirectoryOrUrl(oe,fn,b.getCurrentDirectory(),b.getCanonicalFileName,!0),i=d.get(En);return i===void 0&&(i=C.length,C.push(En),U.push(fn),d.set(En,i)),ne(),i}function en(fn,En){if(R(),En!==null){for(G||(G=[]);G.length<fn;)G.push(null);G[fn]=En}ne()}function fe(fn){R(),p||(p=new e.Map);var En=p.get(fn);return En===void 0&&(En=g.length,g.push(fn),p.set(fn,En)),ne(),En}function Ne(fn,En){return!be||K!==fn||I!==En}function qe(fn,En,i){return fn!==void 0&&En!==void 0&&i!==void 0&&Ae===fn&&(Oe>En||Oe===En&&te>i)}function pe(fn,En,i,In,X,rn){e.Debug.assert(fn>=K,"generatedLine cannot backtrack"),e.Debug.assert(En>=0,"generatedCharacter cannot be negative"),e.Debug.assert(i===void 0||i>=0,"sourceIndex cannot be negative"),e.Debug.assert(In===void 0||In>=0,"sourceLine cannot be negative"),e.Debug.assert(X===void 0||X>=0,"sourceCharacter cannot be negative"),R(),(Ne(fn,En)||qe(i,In,X))&&(Re(),K=fn,I=En,Ce=!1,Be=!1,be=!0),i!==void 0&&In!==void 0&&X!==void 0&&(Ae=i,Oe=In,te=X,Ce=!0,rn!==void 0&&(Se=rn,Be=!0)),ne()}function we(fn,En,i,In,X,rn){e.Debug.assert(fn>=K,"generatedLine cannot backtrack"),e.Debug.assert(En>=0,"generatedCharacter cannot be negative"),R();for(var $n=[],Vn,le=A(i.mappings),Pe=le.next();!Pe.done;Pe=le.next()){var xe=Pe.value;if(rn&&(xe.generatedLine>rn.line||xe.generatedLine===rn.line&&xe.generatedCharacter>rn.character))break;if(!(X&&(xe.generatedLine<X.line||X.line===xe.generatedLine&&xe.generatedCharacter<X.character))){var Ze=void 0,hn=void 0,Le=void 0,$e=void 0;if(xe.sourceIndex!==void 0){if(Ze=$n[xe.sourceIndex],Ze===void 0){var An=i.sources[xe.sourceIndex],Ue=i.sourceRoot?e.combinePaths(i.sourceRoot,An):An,gn=e.combinePaths(e.getDirectoryPath(In),Ue);$n[xe.sourceIndex]=Ze=De(gn),i.sourcesContent&&typeof i.sourcesContent[xe.sourceIndex]=="string"&&en(Ze,i.sourcesContent[xe.sourceIndex])}hn=xe.sourceLine,Le=xe.sourceCharacter,i.names&&xe.nameIndex!==void 0&&(Vn||(Vn=[]),$e=Vn[xe.nameIndex],$e===void 0&&(Vn[xe.nameIndex]=$e=fe(i.names[xe.nameIndex])))}var Wn=xe.generatedLine-(X?X.line:0),ze=Wn+fn,Tn=X&&X.line===xe.generatedLine?xe.generatedCharacter-X.character:xe.generatedCharacter,On=Wn===0?Tn+En:Tn;pe(ze,On,Ze,hn,Le,$e)}}ne()}function pn(){return!z||m!==K||N!==I||P!==Ae||x!==Oe||M!==te||me!==Se}function Qe(fn){f.push(fn),f.length>=1024&&He()}function Re(){if(!(!be||!pn())){if(R(),m<K){do Qe(59),m++;while(m<K);N=0}else e.Debug.assertEqual(m,K,"generatedLine cannot backtrack"),z&&Qe(44);Un(I-N),N=I,Ce&&(Un(Ae-P),P=Ae,Un(Oe-x),x=Oe,Un(te-M),M=te,Be&&(Un(Se-me),me=Se)),z=!0,ne()}}function He(){f.length>0&&(T+=String.fromCharCode.apply(void 0,f),f.length=0)}function Ln(){return Re(),He(),{version:3,file:ie,sourceRoot:q,sources:C,names:g,mappings:T,sourcesContent:G}}function Un(fn){fn<0?fn=(-fn<<1)+1:fn=fn<<1;do{var En=fn&31;fn=fn>>5,fn>0&&(En=En|32),Qe(_e(En))}while(fn>0)}}e.createSourceMapGenerator=o;var ue=/^\/\/[@#] source[M]appingURL=(.+)$/,$=/^\s*(\/\/[@#] .*)?$/;function Y(b,ie){return{getLineCount:function(){return ie.length},getLineText:function(q){return b.substring(ie[q],ie[q+1])}}}e.getLineInfo=Y;function W(b){for(var ie=b.getLineCount()-1;ie>=0;ie--){var q=b.getLineText(ie),oe=ue.exec(q);if(oe)return e.trimStringEnd(oe[1]);if(!q.match($))break}}e.tryGetSourceMappingURL=W;function re(b){return typeof b=="string"||b===null}function ye(b){return b!==null&&typeof b=="object"&&b.version===3&&typeof b.file=="string"&&typeof b.mappings=="string"&&e.isArray(b.sources)&&e.every(b.sources,e.isString)&&(b.sourceRoot===void 0||b.sourceRoot===null||typeof b.sourceRoot=="string")&&(b.sourcesContent===void 0||b.sourcesContent===null||e.isArray(b.sourcesContent)&&e.every(b.sourcesContent,re))&&(b.names===void 0||b.names===null||e.isArray(b.names)&&e.every(b.names,e.isString))}e.isRawSourceMap=ye;function O(b){try{var ie=JSON.parse(b);if(ye(ie))return ie}catch(q){}}e.tryParseRawSourceMap=O;function A(b){var ie=!1,q=0,oe=0,se=0,w=0,R=0,ne=0,U=0,C;return{get pos(){return q},get error(){return C},get state(){return d(!0,!0)},next:function(){for(;!ie&&q<b.length;){var N=b.charCodeAt(q);if(N===59){oe++,se=0,q++;continue}if(N===44){q++;continue}var P=!1,x=!1;if(se+=m(),f())return G();if(se<0)return p("Invalid generatedCharacter found");if(!T()){if(P=!0,w+=m(),f())return G();if(w<0)return p("Invalid sourceIndex found");if(T())return p("Unsupported Format: No entries after sourceIndex");if(R+=m(),f())return G();if(R<0)return p("Invalid sourceLine found");if(T())return p("Unsupported Format: No entries after sourceLine");if(ne+=m(),f())return G();if(ne<0)return p("Invalid sourceCharacter found");if(!T()){if(x=!0,U+=m(),f())return G();if(U<0)return p("Invalid nameIndex found");if(!T())return p("Unsupported Error Format: Entries after nameIndex")}}return{value:d(P,x),done:ie}}return G()}};function d(N,P){return{generatedLine:oe,generatedCharacter:se,sourceIndex:N?w:void 0,sourceLine:N?R:void 0,sourceCharacter:N?ne:void 0,nameIndex:P?U:void 0}}function G(){return ie=!0,{value:void 0,done:!0}}function g(N){C===void 0&&(C=N)}function p(N){return g(N),G()}function f(){return C!==void 0}function T(){return q===b.length||b.charCodeAt(q)===44||b.charCodeAt(q)===59}function m(){for(var N=!0,P=0,x=0;N;q++){if(q>=b.length)return g("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var M=y(b.charCodeAt(q));if(M===-1)return g("Invalid character in VLQ"),-1;N=(M&32)!==0,x=x|(M&31)<<P,P+=5}return x&1?(x=x>>1,x=-x):x=x>>1,x}}e.decodeMappings=A;function D(b,ie){return b===ie||b.generatedLine===ie.generatedLine&&b.generatedCharacter===ie.generatedCharacter&&b.sourceIndex===ie.sourceIndex&&b.sourceLine===ie.sourceLine&&b.sourceCharacter===ie.sourceCharacter&&b.nameIndex===ie.nameIndex}e.sameMapping=D;function de(b){return b.sourceIndex!==void 0&&b.sourceLine!==void 0&&b.sourceCharacter!==void 0}e.isSourceMapping=de;function _e(b){return b>=0&&b<26?65+b:b>=26&&b<52?97+b-26:b>=52&&b<62?48+b-52:b===62?43:b===63?47:e.Debug.fail(b+": not a base64 value")}function y(b){return b>=65&&b<=90?b-65:b>=97&&b<=122?b-97+26:b>=48&&b<=57?b-48+52:b===43?62:b===47?63:-1}function V(b){return b.sourceIndex!==void 0&&b.sourcePosition!==void 0}function Z(b,ie){return b.generatedPosition===ie.generatedPosition&&b.sourceIndex===ie.sourceIndex&&b.sourcePosition===ie.sourcePosition}function E(b,ie){return e.Debug.assert(b.sourceIndex===ie.sourceIndex),e.compareValues(b.sourcePosition,ie.sourcePosition)}function H(b,ie){return e.compareValues(b.generatedPosition,ie.generatedPosition)}function L(b){return b.sourcePosition}function ee(b){return b.generatedPosition}function k(b,ie,q){var oe=e.getDirectoryPath(q),se=ie.sourceRoot?e.getNormalizedAbsolutePath(ie.sourceRoot,oe):oe,w=e.getNormalizedAbsolutePath(ie.file,oe),R=b.getSourceFileLike(w),ne=ie.sources.map(function(P){return e.getNormalizedAbsolutePath(P,se)}),U=new e.Map(ne.map(function(P,x){return[b.getCanonicalFileName(P),x]})),C,d,G;return{getSourcePosition:N,getGeneratedPosition:m};function g(P){var x=R!==void 0?e.getPositionOfLineAndCharacter(R,P.generatedLine,P.generatedCharacter,!0):-1,M,me;if(de(P)){var z=b.getSourceFileLike(ne[P.sourceIndex]);M=ie.sources[P.sourceIndex],me=z!==void 0?e.getPositionOfLineAndCharacter(z,P.sourceLine,P.sourceCharacter,!0):-1}return{generatedPosition:x,source:M,sourceIndex:P.sourceIndex,sourcePosition:me,nameIndex:P.nameIndex}}function p(){if(C===void 0){var P=A(ie.mappings),x=e.arrayFrom(P,g);P.error!==void 0?(b.log&&b.log("Encountered error while decoding sourcemap: "+P.error),C=e.emptyArray):C=x}return C}function f(P){if(G===void 0){for(var x=[],M=0,me=p();M<me.length;M++){var z=me[M];if(V(z)){var K=x[z.sourceIndex];K||(x[z.sourceIndex]=K=[]),K.push(z)}}G=x.map(function(I){return e.sortAndDeduplicate(I,E,Z)})}return G[P]}function T(){if(d===void 0){for(var P=[],x=0,M=p();x<M.length;x++){var me=M[x];P.push(me)}d=e.sortAndDeduplicate(P,H,Z)}return d}function m(P){var x=U.get(b.getCanonicalFileName(P.fileName));if(x===void 0)return P;var M=f(x);if(!e.some(M))return P;var me=e.binarySearchKey(M,P.pos,L,e.compareValues);me<0&&(me=~me);var z=M[me];return z===void 0||z.sourceIndex!==x?P:{fileName:w,pos:z.generatedPosition}}function N(P){var x=T();if(!e.some(x))return P;var M=e.binarySearchKey(x,P.pos,ee,e.compareValues);M<0&&(M=~M);var me=x[M];return me===void 0||!V(me)?P:{fileName:ne[me.sourceIndex],pos:me.sourcePosition}}}e.createDocumentPositionMapper=k,e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}})(vn||(vn={}));var vn;(function(e){function o(q){return q=e.getOriginalNode(q),q?e.getNodeId(q):0}e.getOriginalNodeId=o;function ue(q){return!q||!e.isNamedImports(q)?!1:e.some(q.elements,$)}function $(q){return q.propertyName!==void 0&&q.propertyName.escapedText==="default"}function Y(q,oe){return se;function se(R){return R.kind===300?oe(R):w(R)}function w(R){return q.factory.createBundle(e.map(R.sourceFiles,oe),R.prepends)}}e.chainBundle=Y;function W(q){return!!e.getNamespaceDeclarationNode(q)}e.getExportNeedsImportStarHelper=W;function re(q){if(e.getNamespaceDeclarationNode(q))return!0;var oe=q.importClause&&q.importClause.namedBindings;if(!oe||!e.isNamedImports(oe))return!1;for(var se=0,w=0,R=oe.elements;w<R.length;w++){var ne=R[w];$(ne)&&se++}return se>0&&se!==oe.elements.length||!!(oe.elements.length-se)&&e.isDefaultImport(q)}e.getImportNeedsImportStarHelper=re;function ye(q){return!re(q)&&(e.isDefaultImport(q)||!!q.importClause&&e.isNamedImports(q.importClause.namedBindings)&&ue(q.importClause.namedBindings))}e.getImportNeedsImportDefaultHelper=ye;function O(q,oe,se,w){for(var R=[],ne=e.createMultiMap(),U=[],C=new e.Map,d,G=!1,g,p=!1,f=!1,T=!1,m=0,N=oe.statements;m<N.length;m++){var P=N[m];switch(P.kind){case 264:R.push(P),!f&&re(P)&&(f=!0),!T&&ye(P)&&(T=!0);break;case 263:P.moduleReference.kind===275&&R.push(P);break;case 270:if(P.moduleSpecifier)if(!P.exportClause)R.push(P),p=!0;else if(R.push(P),e.isNamedExports(P.exportClause))I(P);else{var x=P.exportClause.name;C.get(e.idText(x))||(D(U,o(P),x),C.set(e.idText(x),!0),d=e.append(d,x)),f=!0}else I(P);break;case 269:P.isExportEquals&&!g&&(g=P);break;case 235:if(e.hasSyntacticModifier(P,1))for(var M=0,me=P.declarationList.declarations;M<me.length;M++){var z=me[M];d=A(z,C,d)}break;case 254:if(e.hasSyntacticModifier(P,1))if(e.hasSyntacticModifier(P,512))G||(D(U,o(P),q.factory.getDeclarationName(P)),G=!0);else{var x=P.name;C.get(e.idText(x))||(D(U,o(P),x),C.set(e.idText(x),!0),d=e.append(d,x))}break;case 255:if(e.hasSyntacticModifier(P,1))if(e.hasSyntacticModifier(P,512))G||(D(U,o(P),q.factory.getDeclarationName(P)),G=!0);else{var x=P.name;x&&!C.get(e.idText(x))&&(D(U,o(P),x),C.set(e.idText(x),!0),d=e.append(d,x))}break}}var K=e.createExternalHelpersImportDeclarationIfNeeded(q.factory,q.getEmitHelperFactory(),oe,w,p,f,T);return K&&R.unshift(K),{externalImports:R,exportSpecifiers:ne,exportEquals:g,hasExportStarsToExportValues:p,exportedBindings:U,exportedNames:d,externalHelpersImportDeclaration:K};function I(Ae){for(var Oe=0,te=e.cast(Ae.exportClause,e.isNamedExports).elements;Oe<te.length;Oe++){var Se=te[Oe];if(!C.get(e.idText(Se.name))){var be=Se.propertyName||Se.name;Ae.moduleSpecifier||ne.add(e.idText(be),Se);var Ce=se.getReferencedImportDeclaration(be)||se.getReferencedValueDeclaration(be);Ce&&D(U,o(Ce),Se.name),C.set(e.idText(Se.name),!0),d=e.append(d,Se.name)}}}}e.collectExternalModuleInfo=O;function A(q,oe,se){if(e.isBindingPattern(q.name))for(var w=0,R=q.name.elements;w<R.length;w++){var ne=R[w];e.isOmittedExpression(ne)||(se=A(ne,oe,se))}else if(!e.isGeneratedIdentifier(q.name)){var U=e.idText(q.name);oe.get(U)||(oe.set(U,!0),se=e.append(se,q.name))}return se}function D(q,oe,se){var w=q[oe];return w?w.push(se):q[oe]=w=[se],w}function de(q){return e.isStringLiteralLike(q)||q.kind===8||e.isKeyword(q.kind)||e.isIdentifier(q)}e.isSimpleCopiableExpression=de;function _e(q){return!e.isIdentifier(q)&&de(q)}e.isSimpleInlineableExpression=_e;function y(q){return q>=64&&q<=78}e.isCompoundAssignment=y;function V(q){switch(q){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}}e.getNonAssignmentOperatorForCompoundAssignment=V;function Z(q,oe,se,w){if(oe.body){var R=oe.body.statements,ne=q.copyPrologue(R,se,!1,w);if(ne===R.length)return ne;var U=e.findIndex(R,function(d){return e.isExpressionStatement(d)&&e.isSuperCall(d.expression)},ne);if(U>-1){for(var C=ne;C<=U;C++)se.push(e.visitNode(R[C],w,e.isStatement));return U+1}return ne}return 0}e.addPrologueDirectivesAndInitialSuperCall=Z;function E(q,oe,se){return e.filter(q.members,function(w){return ee(w,oe,se)})}e.getProperties=E;function H(q){return k(q)||e.isClassStaticBlockDeclaration(q)}function L(q){return e.filter(q.members,H)}e.getStaticPropertiesAndClassStaticBlock=L;function ee(q,oe,se){return e.isPropertyDeclaration(q)&&(!!q.initializer||!oe)&&e.hasStaticModifier(q)===se}function k(q){return e.isPropertyDeclaration(q)&&e.hasStaticModifier(q)}function b(q){return q.kind===165&&q.initializer!==void 0}e.isInitializedProperty=b;function ie(q){return!e.isStatic(q)&&e.isMethodOrAccessor(q)&&e.isPrivateIdentifier(q.name)}e.isNonStaticMethodOrAccessorWithPrivateName=ie})(vn||(vn={}));var vn;(function(e){var o;(function(b){b[b.All=0]="All",b[b.ObjectRest=1]="ObjectRest"})(o=e.FlattenLevel||(e.FlattenLevel={}));function ue(b,ie,q,oe,se,w){var R=b,ne;if(e.isDestructuringAssignment(b))for(ne=b.right;e.isEmptyArrayLiteral(b.left)||e.isEmptyObjectLiteral(b.left);)if(e.isDestructuringAssignment(ne))R=b=ne,ne=b.right;else return e.visitNode(ne,ie,e.isExpression);var U,C={context:q,level:oe,downlevelIteration:!!q.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:d,emitBindingOrAssignment:G,createArrayBindingOrAssignmentPattern:function(g){return E(q.factory,g)},createObjectBindingOrAssignmentPattern:function(g){return L(q.factory,g)},createArrayBindingOrAssignmentElement:k,visitor:ie};if(ne&&(ne=e.visitNode(ne,ie,e.isExpression),e.isIdentifier(ne)&&$(b,ne.escapedText)||W(b)?ne=V(C,ne,!1,R):se?ne=V(C,ne,!0,R):e.nodeIsSynthesized(b)&&(R=ne)),O(C,b,ne,R,e.isDestructuringAssignment(b)),ne&&se){if(!e.some(U))return ne;U.push(ne)}return q.factory.inlineExpressions(U)||q.factory.createOmittedExpression();function d(g){U=e.append(U,g)}function G(g,p,f,T){e.Debug.assertNode(g,w?e.isIdentifier:e.isExpression);var m=w?w(g,p,f):e.setTextRange(q.factory.createAssignment(e.visitNode(g,ie,e.isExpression),p),f);m.original=T,d(m)}}e.flattenDestructuringAssignment=ue;function $(b,ie){var q=e.getTargetOfBindingOrAssignmentElement(b);return e.isBindingOrAssignmentPattern(q)?Y(q,ie):e.isIdentifier(q)?q.escapedText===ie:!1}function Y(b,ie){for(var q=e.getElementsOfBindingOrAssignmentPattern(b),oe=0,se=q;oe<se.length;oe++){var w=se[oe];if($(w,ie))return!0}return!1}function W(b){var ie=e.tryGetPropertyNameOfBindingOrAssignmentElement(b);if(ie&&e.isComputedPropertyName(ie)&&!e.isLiteralExpression(ie.expression))return!0;var q=e.getTargetOfBindingOrAssignmentElement(b);return!!q&&e.isBindingOrAssignmentPattern(q)&&re(q)}function re(b){return!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(b),W)}function ye(b,ie,q,oe,se,w,R){w===void 0&&(w=!1);var ne,U=[],C=[],d={context:q,level:oe,downlevelIteration:!!q.getCompilerOptions().downlevelIteration,hoistTempVariables:w,emitExpression:K,emitBindingOrAssignment:I,createArrayBindingOrAssignmentPattern:function(Ae){return Z(q.factory,Ae)},createObjectBindingOrAssignmentPattern:function(Ae){return H(q.factory,Ae)},createArrayBindingOrAssignmentElement:function(Ae){return ee(q.factory,Ae)},visitor:ie};if(e.isVariableDeclaration(b)){var G=e.getInitializerOfBindingOrAssignmentElement(b);G&&(e.isIdentifier(G)&&$(b,G.escapedText)||W(b))&&(G=V(d,e.visitNode(G,d.visitor),!1,G),b=q.factory.updateVariableDeclaration(b,b.name,void 0,void 0,G))}if(O(d,b,se,b,R),ne){var g=q.factory.createTempVariable(void 0);if(w){var p=q.factory.inlineExpressions(ne);ne=void 0,I(g,p,void 0,void 0)}else{q.hoistVariableDeclaration(g);var f=e.last(U);f.pendingExpressions=e.append(f.pendingExpressions,q.factory.createAssignment(g,f.value)),e.addRange(f.pendingExpressions,ne),f.value=g}}for(var T=0,m=U;T<m.length;T++){var N=m[T],P=N.pendingExpressions,x=N.name,p=N.value,M=N.location,me=N.original,z=q.factory.createVariableDeclaration(x,void 0,void 0,P?q.factory.inlineExpressions(e.append(P,p)):p);z.original=me,e.setTextRange(z,M),C.push(z)}return C;function K(Ae){ne=e.append(ne,Ae)}function I(Ae,Oe,te,Se){e.Debug.assertNode(Ae,e.isBindingName),ne&&(Oe=q.factory.inlineExpressions(e.append(ne,Oe)),ne=void 0),U.push({pendingExpressions:ne,name:Ae,value:Oe,location:te,original:Se})}}e.flattenDestructuringBinding=ye;function O(b,ie,q,oe,se){var w=e.getTargetOfBindingOrAssignmentElement(ie);if(!se){var R=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(ie),b.visitor,e.isExpression);R?q?(q=_e(b,q,R,oe),!e.isSimpleInlineableExpression(R)&&e.isBindingOrAssignmentPattern(w)&&(q=V(b,q,!0,oe))):q=R:q||(q=b.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(w)?A(b,ie,w,q,oe):e.isArrayBindingOrAssignmentPattern(w)?D(b,ie,w,q,oe):b.emitBindingOrAssignment(w,q,oe,ie)}function A(b,ie,q,oe,se){var w=e.getElementsOfBindingOrAssignmentPattern(q),R=w.length;if(R!==1){var ne=!e.isDeclarationBindingElement(ie)||R!==0;oe=V(b,oe,ne,se)}for(var U,C,d=0;d<R;d++){var G=w[d];if(e.getRestIndicatorOfBindingOrAssignmentElement(G)){if(d===R-1){U&&(b.emitBindingOrAssignment(b.createObjectBindingOrAssignmentPattern(U),oe,se,q),U=void 0);var p=b.context.getEmitHelperFactory().createRestHelper(oe,w,C,q);O(b,G,p,G)}}else{var g=e.getPropertyNameOfBindingOrAssignmentElement(G);if(b.level>=1&&!(G.transformFlags&49152)&&!(e.getTargetOfBindingOrAssignmentElement(G).transformFlags&49152)&&!e.isComputedPropertyName(g))U=e.append(U,e.visitNode(G,b.visitor));else{U&&(b.emitBindingOrAssignment(b.createObjectBindingOrAssignmentPattern(U),oe,se,q),U=void 0);var p=y(b,oe,g);e.isComputedPropertyName(g)&&(C=e.append(C,p.argumentExpression)),O(b,G,p,G)}}}U&&b.emitBindingOrAssignment(b.createObjectBindingOrAssignmentPattern(U),oe,se,q)}function D(b,ie,q,oe,se){var w=e.getElementsOfBindingOrAssignmentPattern(q),R=w.length;if(b.level<1&&b.downlevelIteration)oe=V(b,e.setTextRange(b.context.getEmitHelperFactory().createReadHelper(oe,R>0&&e.getRestIndicatorOfBindingOrAssignmentElement(w[R-1])?void 0:R),se),!1,se);else if(R!==1&&(b.level<1||R===0)||e.every(w,e.isOmittedExpression)){var ne=!e.isDeclarationBindingElement(ie)||R!==0;oe=V(b,oe,ne,se)}for(var U,C,d=0;d<R;d++){var G=w[d];if(b.level>=1)if(G.transformFlags&32768||b.hasTransformedPriorElement&&!de(G)){b.hasTransformedPriorElement=!0;var g=b.context.factory.createTempVariable(void 0);b.hoistTempVariables&&b.context.hoistVariableDeclaration(g),C=e.append(C,[g,G]),U=e.append(U,b.createArrayBindingOrAssignmentElement(g))}else U=e.append(U,G);else{if(e.isOmittedExpression(G))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(G)){if(d===R-1){var p=b.context.factory.createArraySliceCall(oe,d);O(b,G,p,G)}}else{var p=b.context.factory.createElementAccessExpression(oe,d);O(b,G,p,G)}}}if(U&&b.emitBindingOrAssignment(b.createArrayBindingOrAssignmentPattern(U),oe,se,q),C)for(var f=0,T=C;f<T.length;f++){var m=T[f],N=m[0],G=m[1];O(b,G,N,G)}}function de(b){var ie=e.getTargetOfBindingOrAssignmentElement(b);if(!ie||e.isOmittedExpression(ie))return!0;var q=e.tryGetPropertyNameOfBindingOrAssignmentElement(b);if(q&&!e.isPropertyNameLiteral(q))return!1;var oe=e.getInitializerOfBindingOrAssignmentElement(b);return oe&&!e.isSimpleInlineableExpression(oe)?!1:e.isBindingOrAssignmentPattern(ie)?e.every(e.getElementsOfBindingOrAssignmentPattern(ie),de):e.isIdentifier(ie)}function _e(b,ie,q,oe){return ie=V(b,ie,!0,oe),b.context.factory.createConditionalExpression(b.context.factory.createTypeCheck(ie,"undefined"),void 0,q,void 0,ie)}function y(b,ie,q){if(e.isComputedPropertyName(q)){var oe=V(b,e.visitNode(q.expression,b.visitor),!1,q);return b.context.factory.createElementAccessExpression(ie,oe)}else if(e.isStringOrNumericLiteralLike(q)){var oe=e.factory.cloneNode(q);return b.context.factory.createElementAccessExpression(ie,oe)}else{var se=b.context.factory.createIdentifier(e.idText(q));return b.context.factory.createPropertyAccessExpression(ie,se)}}function V(b,ie,q,oe){if(e.isIdentifier(ie)&&q)return ie;var se=b.context.factory.createTempVariable(void 0);return b.hoistTempVariables?(b.context.hoistVariableDeclaration(se),b.emitExpression(e.setTextRange(b.context.factory.createAssignment(se,ie),oe))):b.emitBindingOrAssignment(se,ie,oe,void 0),se}function Z(b,ie){return e.Debug.assertEachNode(ie,e.isArrayBindingElement),b.createArrayBindingPattern(ie)}function E(b,ie){return b.createArrayLiteralExpression(e.map(ie,b.converters.convertToArrayAssignmentElement))}function H(b,ie){return e.Debug.assertEachNode(ie,e.isBindingElement),b.createObjectBindingPattern(ie)}function L(b,ie){return b.createObjectLiteralExpression(e.map(ie,b.converters.convertToObjectAssignmentElement))}function ee(b,ie){return b.createBindingElement(void 0,void 0,ie)}function k(b){return b}})(vn||(vn={}));var vn;(function(e){var o;(function(W){W[W.LiftRestriction=0]="LiftRestriction",W[W.All=1]="All"})(o=e.ProcessLevel||(e.ProcessLevel={}));function ue(W,re,ye,O,A,D){var de=e.visitNode(re.tag,ye,e.isExpression),_e=[void 0],y=[],V=[],Z=re.template;if(D===o.LiftRestriction&&!e.hasInvalidEscape(Z))return e.visitEachChild(re,ye,W);if(e.isNoSubstitutionTemplateLiteral(Z))y.push($(Z)),V.push(Y(Z,O));else{y.push($(Z.head)),V.push(Y(Z.head,O));for(var E=0,H=Z.templateSpans;E<H.length;E++){var L=H[E];y.push($(L.literal)),V.push(Y(L.literal,O)),_e.push(e.visitNode(L.expression,ye,e.isExpression))}}var ee=W.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(y),e.factory.createArrayLiteralExpression(V));if(e.isExternalModule(O)){var k=e.factory.createUniqueName("templateObject");A(k),_e[0]=e.factory.createLogicalOr(k,e.factory.createAssignment(k,ee))}else _e[0]=ee;return e.factory.createCallExpression(de,void 0,_e)}e.processTaggedTemplateExpression=ue;function $(W){return W.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(W.text)}function Y(W,re){var ye=W.rawText;if(ye===void 0){e.Debug.assertIsDefined(re,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),ye=e.getSourceTextOfNodeFromSourceFile(re,W);var O=W.kind===14||W.kind===17;ye=ye.substring(1,ye.length-(O?1:2))}return ye=ye.replace(/\r\n?/g,`
`),e.setTextRange(e.factory.createStringLiteral(ye),W)}})(vn||(vn={}));var vn;(function(e){var o=!1,ue;(function(W){W[W.ClassAliases=1]="ClassAliases",W[W.NamespaceExports=2]="NamespaceExports",W[W.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"})(ue||(ue={}));var $;(function(W){W[W.None=0]="None",W[W.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",W[W.HasConstructorDecorators=2]="HasConstructorDecorators",W[W.HasMemberDecorators=4]="HasMemberDecorators",W[W.IsExportOfNamespace=8]="IsExportOfNamespace",W[W.IsNamedExternalExport=16]="IsNamedExternalExport",W[W.IsDefaultExternalExport=32]="IsDefaultExternalExport",W[W.IsDerivedClass=64]="IsDerivedClass",W[W.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",W[W.HasAnyDecorators=6]="HasAnyDecorators",W[W.NeedsName=5]="NeedsName",W[W.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",W[W.IsExported=56]="IsExported"})($||($={}));function Y(W){var re=W.factory,ye=W.getEmitHelperFactory,O=W.startLexicalEnvironment,A=W.resumeLexicalEnvironment,D=W.endLexicalEnvironment,de=W.hoistVariableDeclaration,_e=W.getEmitResolver(),y=W.getCompilerOptions(),V=e.getStrictOptionValue(y,"strictNullChecks"),Z=e.getEmitScriptTarget(y),E=e.getEmitModuleKind(y),H=W.onEmitNode,L=W.onSubstituteNode;W.onEmitNode=Uo,W.onSubstituteNode=cs,W.enableSubstitution(204),W.enableSubstitution(205);var ee,k,b,ie,q,oe,se,w,R,ne;return U;function U(Ve){return Ve.kind===301?C(Ve):d(Ve)}function C(Ve){return re.createBundle(Ve.sourceFiles.map(d),e.mapDefined(Ve.prepends,function(ce){return ce.kind===303?e.createUnparsedSourceFile(ce,"js"):ce}))}function d(Ve){if(Ve.isDeclarationFile)return Ve;ee=Ve;var ce=G(Ve,I);return e.addEmitHelpers(ce,W.readEmitHelpers()),ee=void 0,ce}function G(Ve,ce){var dn=ie,j=q,Ie=oe,We=se;g(Ve);var sn=ce(Ve);return ie!==dn&&(oe=Ie),ie=dn,q=j,se=We,sn}function g(Ve){switch(Ve.kind){case 300:case 261:case 260:case 233:ie=Ve,q=void 0,oe=void 0;break;case 255:case 254:if(e.hasSyntacticModifier(Ve,2))break;Ve.name?eo(Ve):e.Debug.assert(Ve.kind===255||e.hasSyntacticModifier(Ve,512)),e.isClassDeclaration(Ve)&&(q=Ve);break}}function p(Ve){return G(Ve,f)}function f(Ve){return Ve.transformFlags&1?K(Ve):Ve}function T(Ve){return G(Ve,m)}function m(Ve){switch(Ve.kind){case 264:case 263:case 269:case 270:return N(Ve);default:return f(Ve)}}function N(Ve){var ce=e.getParseTreeNode(Ve);if(ce!==Ve)return Ve.transformFlags&1?e.visitEachChild(Ve,p,W):Ve;switch(Ve.kind){case 264:return Zt(Ve);case 263:return Ma(Ve);case 269:return nt(Ve);case 270:return vt(Ve);default:e.Debug.fail("Unhandled ellided statement")}}function P(Ve){return G(Ve,x)}function x(Ve){if(!(Ve.kind===270||Ve.kind===264||Ve.kind===265||Ve.kind===263&&Ve.moduleReference.kind===275))return Ve.transformFlags&1||e.hasSyntacticModifier(Ve,1)?K(Ve):Ve}function M(Ve){return G(Ve,me)}function me(Ve){switch(Ve.kind){case 169:return Xn(Ve);case 165:return ar(Ve);case 174:case 170:case 171:case 167:case 168:return f(Ve);case 232:return Ve;default:return e.Debug.failBadSyntaxKind(Ve)}}function z(Ve){if(!(e.modifierToFlag(Ve.kind)&18654)&&!(k&&Ve.kind===93))return Ve}function K(Ve){if(e.isStatement(Ve)&&e.hasSyntacticModifier(Ve,2))return re.createNotEmittedStatement(Ve);switch(Ve.kind){case 93:case 88:return k?void 0:Ve;case 123:case 121:case 122:case 126:case 157:case 85:case 134:case 143:case 181:case 182:case 183:case 184:case 180:case 175:case 161:case 129:case 153:case 132:case 148:case 145:case 142:case 114:case 149:case 178:case 177:case 179:case 176:case 185:case 186:case 187:case 189:case 190:case 191:case 192:case 193:case 194:case 174:case 163:return;case 257:return re.createNotEmittedStatement(Ve);case 165:return ar(Ve);case 262:return;case 169:return Xn(Ve);case 256:return re.createNotEmittedStatement(Ve);case 255:return Se(Ve);case 224:return Be(Ve);case 289:return Zn(Ve);case 226:return Me(Ve);case 167:return Fe(Ve);case 170:return J(Ve);case 171:return Cn(Ve);case 254:return Gn(Ve);case 211:return cn(Ve);case 212:return Rn(Ve);case 162:return Ye(Ve);case 210:return ir(Ve);case 209:case 227:return gr(Ve);case 206:return qr(Ve);case 207:return ft(Ve);case 208:return xt(Ve);case 228:return Dr(Ve);case 258:return qt(Ve);case 235:return xn(Ve);case 252:return zn(Ve);case 259:return at(Ve);case 263:return Ma(Ve);case 277:return Kr(Ve);case 278:return dt(Ve);default:return e.visitEachChild(Ve,p,W)}}function I(Ve){var ce=e.getStrictOptionValue(y,"alwaysStrict")&&!(e.isExternalModule(Ve)&&E>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(Ve);return re.updateSourceFile(Ve,e.visitLexicalEnvironment(Ve.statements,T,W,0,ce))}function Ae(Ve,ce){var dn=0;e.some(ce)&&(dn|=1);var j=e.getEffectiveBaseTypeNode(Ve);return j&&e.skipOuterExpressions(j.expression).kind!==104&&(dn|=64),e.classOrConstructorParameterIsDecorated(Ve)&&(dn|=2),e.childIsDecorated(Ve)&&(dn|=4),di(Ve)?dn|=8:bi(Ve)?dn|=32:uo(Ve)&&(dn|=16),Z<=1&&dn&7&&(dn|=128),dn}function Oe(Ve){return!!(Ve.transformFlags&4096)}function te(Ve){return e.some(Ve.decorators)||e.some(Ve.typeParameters)||e.some(Ve.heritageClauses,Oe)||e.some(Ve.members,Oe)}function Se(Ve){if(!te(Ve)&&!(k&&e.hasSyntacticModifier(Ve,1)))return e.visitEachChild(Ve,p,W);var ce=e.getProperties(Ve,!0,!0),dn=Ae(Ve,ce);dn&128&&W.startLexicalEnvironment();var j=Ve.name||(dn&5?re.getGeneratedNameForNode(Ve):void 0),Ie=dn&2?Ce(Ve,j):be(Ve,j,dn),We=[Ie];if(Un(We,Ve,!1),Un(We,Ve,!0),i(We,Ve),dn&128){var sn=e.createTokenRange(e.skipTrivia(ee.text,Ve.members.end),19),Hn=re.getInternalName(Ve),vr=re.createPartiallyEmittedExpression(Hn);e.setTextRangeEnd(vr,sn.end),e.setEmitFlags(vr,1536);var Sr=re.createReturnStatement(vr);e.setTextRangePos(Sr,sn.pos),e.setEmitFlags(Sr,1920),We.push(Sr),e.insertStatementsAfterStandardPrologue(We,W.endLexicalEnvironment());var ot=re.createImmediatelyInvokedArrowFunction(We);e.setEmitFlags(ot,33554432);var Et=re.createVariableStatement(void 0,re.createVariableDeclarationList([re.createVariableDeclaration(re.getLocalName(Ve,!1,!1),void 0,void 0,ot)]));e.setOriginalNode(Et,Ve),e.setCommentRange(Et,Ve),e.setSourceMapRange(Et,e.moveRangePastDecorators(Ve)),e.startOnNewLine(Et),We=[Et]}return dn&8?Go(We,Ve):(dn&128||dn&2)&&(dn&32?We.push(re.createExportDefault(re.getLocalName(Ve,!1,!0))):dn&16&&We.push(re.createExternalModuleExport(re.getLocalName(Ve,!1,!0)))),We.length>1&&(We.push(re.createEndOfDeclarationMarker(Ve)),e.setEmitFlags(Ie,e.getEmitFlags(Ie)|4194304)),e.singleOrMany(We)}function be(Ve,ce,dn){var j=dn&128?void 0:e.visitNodes(Ve.modifiers,z,e.isModifier),Ie=re.createClassDeclaration(void 0,j,ce,void 0,e.visitNodes(Ve.heritageClauses,p,e.isHeritageClause),De(Ve)),We=e.getEmitFlags(Ve);return dn&1&&(We|=32),e.setTextRange(Ie,Ve),e.setOriginalNode(Ie,Ve),e.setEmitFlags(Ie,We),Ie}function Ce(Ve,ce){var dn=e.moveRangePastDecorators(Ve),j=as(Ve),Ie=Z<=2?re.getInternalName(Ve,!1,!0):re.getLocalName(Ve,!1,!0),We=e.visitNodes(Ve.heritageClauses,p,e.isHeritageClause),sn=De(Ve),Hn=re.createClassExpression(void 0,void 0,ce,void 0,We,sn);e.setOriginalNode(Hn,Ve),e.setTextRange(Hn,dn);var vr=re.createVariableStatement(void 0,re.createVariableDeclarationList([re.createVariableDeclaration(Ie,void 0,void 0,j?re.createAssignment(j,Hn):Hn)],1));return e.setOriginalNode(vr,Ve),e.setTextRange(vr,dn),e.setCommentRange(vr,Ve),vr}function Be(Ve){if(!te(Ve))return e.visitEachChild(Ve,p,W);var ce=re.createClassExpression(void 0,void 0,Ve.name,void 0,e.visitNodes(Ve.heritageClauses,p,e.isHeritageClause),De(Ve));return e.setOriginalNode(ce,Ve),e.setTextRange(ce,Ve),ce}function De(Ve){var ce=[],dn=e.getFirstConstructorWithBody(Ve),j=dn&&e.filter(dn.parameters,function(Hn){return e.isParameterPropertyDeclaration(Hn,dn)});if(j)for(var Ie=0,We=j;Ie<We.length;Ie++){var sn=We[Ie];e.isIdentifier(sn.name)&&ce.push(e.setOriginalNode(re.createPropertyDeclaration(void 0,void 0,sn.name,void 0,void 0,void 0),sn))}return e.addRange(ce,e.visitNodes(Ve.members,M,e.isClassElement)),e.setTextRange(re.createNodeArray(ce),Ve.members)}function en(Ve,ce){return e.filter(Ve.members,ce?function(dn){return fe(dn,Ve)}:function(dn){return Ne(dn,Ve)})}function fe(Ve,ce){return qe(Ve,!0,ce)}function Ne(Ve,ce){return qe(Ve,!1,ce)}function qe(Ve,ce,dn){return e.nodeOrChildIsDecorated(Ve,dn)&&ce===e.isStatic(Ve)}function pe(Ve){var ce;if(Ve)for(var dn=Ve.parameters,j=dn.length>0&&e.parameterIsThisKeyword(dn[0]),Ie=j?1:0,We=j?dn.length-1:dn.length,sn=0;sn<We;sn++){var Hn=dn[sn+Ie];(ce||Hn.decorators)&&(ce||(ce=new Array(We)),ce[sn]=Hn.decorators)}return ce}function we(Ve){var ce=Ve.decorators,dn=pe(e.getFirstConstructorWithBody(Ve));if(!(!ce&&!dn))return{decorators:ce,parameters:dn}}function pn(Ve,ce){switch(ce.kind){case 170:case 171:return Qe(Ve,ce);case 167:return Re(ce);case 165:return He(ce);default:return}}function Qe(Ve,ce){if(ce.body){var dn=e.getAllAccessorDeclarations(Ve.members,ce),j=dn.firstAccessor,Ie=dn.secondAccessor,We=dn.setAccessor,sn=j.decorators?j:Ie&&Ie.decorators?Ie:void 0;if(!(!sn||ce!==sn)){var Hn=sn.decorators,vr=pe(We);if(!(!Hn&&!vr))return{decorators:Hn,parameters:vr}}}}function Re(Ve){if(Ve.body){var ce=Ve.decorators,dn=pe(Ve);if(!(!ce&&!dn))return{decorators:ce,parameters:dn}}}function He(Ve){var ce=Ve.decorators;if(ce)return{decorators:ce}}function Ln(Ve,ce,dn){if(dn){var j=[];return e.addRange(j,e.map(dn.decorators,X)),e.addRange(j,e.flatMap(dn.parameters,rn)),$n(Ve,ce,j),j}}function Un(Ve,ce,dn){e.addRange(Ve,e.map(fn(ce,dn),Mi))}function fn(Ve,ce){for(var dn=en(Ve,ce),j,Ie=0,We=dn;Ie<We.length;Ie++){var sn=We[Ie],Hn=En(Ve,sn);Hn&&(j?j.push(Hn):j=[Hn])}return j}function En(Ve,ce){var dn=pn(Ve,ce),j=Ln(ce,Ve,dn);if(j){var Ie=Da(Ve,ce),We=Ke(ce,!0),sn=Z>0?ce.kind===165?re.createVoidZero():re.createNull():void 0,Hn=ye().createDecorateHelper(j,Ie,We,sn);return e.setTextRange(Hn,e.moveRangePastDecorators(ce)),e.setEmitFlags(Hn,1536),Hn}}function i(Ve,ce){var dn=In(ce);dn&&Ve.push(e.setOriginalNode(re.createExpressionStatement(dn),ce))}function In(Ve){var ce=we(Ve),dn=Ln(Ve,Ve,ce);if(dn){var j=R&&R[e.getOriginalNodeId(Ve)],Ie=Z<=2?re.getInternalName(Ve,!1,!0):re.getLocalName(Ve,!1,!0),We=ye().createDecorateHelper(dn,Ie),sn=re.createAssignment(Ie,j?re.createAssignment(j,We):We);return e.setEmitFlags(sn,1536),e.setSourceMapRange(sn,e.moveRangePastDecorators(Ve)),sn}}function X(Ve){return e.visitNode(Ve.expression,p,e.isExpression)}function rn(Ve,ce){var dn;if(Ve){dn=[];for(var j=0,Ie=Ve;j<Ie.length;j++){var We=Ie[j],sn=ye().createParamHelper(X(We),ce);e.setTextRange(sn,We.expression),e.setEmitFlags(sn,1536),dn.push(sn)}}return dn}function $n(Ve,ce,dn){o?le(Ve,ce,dn):Vn(Ve,ce,dn)}function Vn(Ve,ce,dn){y.emitDecoratorMetadata&&(Pe(Ve)&&dn.push(ye().createMetadataHelper("design:type",Le(Ve))),Ze(Ve)&&dn.push(ye().createMetadataHelper("design:paramtypes",$e(Ve,ce))),xe(Ve)&&dn.push(ye().createMetadataHelper("design:returntype",Ue(Ve))))}function le(Ve,ce,dn){if(y.emitDecoratorMetadata){var j=void 0;Pe(Ve)&&(j||(j=[])).push(re.createPropertyAssignment("type",re.createArrowFunction(void 0,void 0,[],void 0,re.createToken(38),Le(Ve)))),Ze(Ve)&&(j||(j=[])).push(re.createPropertyAssignment("paramTypes",re.createArrowFunction(void 0,void 0,[],void 0,re.createToken(38),$e(Ve,ce)))),xe(Ve)&&(j||(j=[])).push(re.createPropertyAssignment("returnType",re.createArrowFunction(void 0,void 0,[],void 0,re.createToken(38),Ue(Ve)))),j&&dn.push(ye().createMetadataHelper("design:typeinfo",re.createObjectLiteralExpression(j,!0)))}}function Pe(Ve){var ce=Ve.kind;return ce===167||ce===170||ce===171||ce===165}function xe(Ve){return Ve.kind===167}function Ze(Ve){switch(Ve.kind){case 255:case 224:return e.getFirstConstructorWithBody(Ve)!==void 0;case 167:case 170:case 171:return!0}return!1}function hn(Ve){var ce=_e.getAllAccessorDeclarations(Ve);return ce.setAccessor&&e.getSetAccessorTypeAnnotationNode(ce.setAccessor)||ce.getAccessor&&e.getEffectiveReturnTypeNode(ce.getAccessor)}function Le(Ve){switch(Ve.kind){case 165:case 162:return gn(Ve.type);case 171:case 170:return gn(hn(Ve));case 255:case 224:case 167:return re.createIdentifier("Function");default:return re.createVoidZero()}}function $e(Ve,ce){var dn=e.isClassLike(Ve)?e.getFirstConstructorWithBody(Ve):e.isFunctionLike(Ve)&&e.nodeIsPresent(Ve.body)?Ve:void 0,j=[];if(dn)for(var Ie=An(dn,ce),We=Ie.length,sn=0;sn<We;sn++){var Hn=Ie[sn];sn===0&&e.isIdentifier(Hn.name)&&Hn.name.escapedText==="this"||(Hn.dotDotDotToken?j.push(gn(e.getRestParameterElementType(Hn.type))):j.push(Le(Hn)))}return re.createArrayLiteralExpression(j)}function An(Ve,ce){if(ce&&Ve.kind===170){var dn=e.getAllAccessorDeclarations(ce.members,Ve).setAccessor;if(dn)return dn.parameters}return Ve.parameters}function Ue(Ve){return e.isFunctionLike(Ve)&&Ve.type?gn(Ve.type):e.isAsyncFunction(Ve)?re.createIdentifier("Promise"):re.createVoidZero()}function gn(Ve){if(Ve===void 0)return re.createIdentifier("Object");switch(Ve.kind){case 114:case 151:case 142:return re.createVoidZero();case 189:return gn(Ve.type);case 177:case 178:return re.createIdentifier("Function");case 181:case 182:return re.createIdentifier("Array");case 175:case 132:return re.createIdentifier("Boolean");case 148:return re.createIdentifier("String");case 146:return re.createIdentifier("Object");case 194:switch(Ve.literal.kind){case 10:case 14:return re.createIdentifier("String");case 217:case 8:return re.createIdentifier("Number");case 9:return Qr();case 110:case 95:return re.createIdentifier("Boolean");case 104:return re.createVoidZero();default:return e.Debug.failBadSyntaxKind(Ve.literal)}case 145:return re.createIdentifier("Number");case 156:return Qr();case 149:return Z<2?wr():re.createIdentifier("Symbol");case 176:return ze(Ve);case 186:case 185:return Wn(Ve.types);case 187:return Wn([Ve.trueType,Ve.falseType]);case 191:if(Ve.operator===143)return gn(Ve.type);break;case 179:case 192:case 193:case 180:case 129:case 153:case 190:case 198:break;case 307:case 308:case 312:case 313:case 314:break;case 309:case 310:case 311:return gn(Ve.type);default:return e.Debug.failBadSyntaxKind(Ve)}return re.createIdentifier("Object")}function Wn(Ve){for(var ce,dn=0,j=Ve;dn<j.length;dn++){for(var Ie=j[dn];Ie.kind===189;)Ie=Ie.type;if(Ie.kind!==142&&!(!V&&(Ie.kind===194&&Ie.literal.kind===104||Ie.kind===151))){var We=gn(Ie);if(e.isIdentifier(We)&&We.escapedText==="Object")return We;if(ce){if(!e.isIdentifier(ce)||!e.isIdentifier(We)||ce.escapedText!==We.escapedText)return re.createIdentifier("Object")}else ce=We}}return ce||re.createVoidZero()}function ze(Ve){var ce=_e.getTypeReferenceSerializationKind(Ve.typeName,q||ie);switch(ce){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(Ve,function(Ie){return Ie.parent&&e.isConditionalTypeNode(Ie.parent)&&(Ie.parent.trueType===Ie||Ie.parent.falseType===Ie)}))return re.createIdentifier("Object");var dn=On(Ve.typeName),j=re.createTempVariable(de);return re.createConditionalExpression(re.createTypeCheck(re.createAssignment(j,dn),"function"),void 0,j,void 0,re.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return ur(Ve.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return re.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return Qr();case e.TypeReferenceSerializationKind.BooleanType:return re.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return re.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return re.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return re.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return Z<2?wr():re.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return re.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return re.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return re.createIdentifier("Object");default:return e.Debug.assertNever(ce)}}function Tn(Ve,ce){return re.createLogicalAnd(re.createStrictInequality(re.createTypeOfExpression(Ve),re.createStringLiteral("undefined")),ce)}function On(Ve){if(Ve.kind===79){var ce=ur(Ve);return Tn(ce,ce)}if(Ve.left.kind===79)return Tn(ur(Ve.left),ur(Ve));var dn=On(Ve.left),j=re.createTempVariable(de);return re.createLogicalAnd(re.createLogicalAnd(dn.left,re.createStrictInequality(re.createAssignment(j,dn.right),re.createVoidZero())),re.createPropertyAccessExpression(j,Ve.right))}function ur(Ve){switch(Ve.kind){case 79:var ce=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(Ve),Ve),Ve.parent);return ce.original=void 0,e.setParent(ce,e.getParseTreeNode(ie)),ce;case 159:return hr(Ve)}}function hr(Ve){return re.createPropertyAccessExpression(ur(Ve.left),Ve.right)}function wr(){return re.createConditionalExpression(re.createTypeCheck(re.createIdentifier("Symbol"),"function"),void 0,re.createIdentifier("Symbol"),void 0,re.createIdentifier("Object"))}function Qr(){return Z<99?re.createConditionalExpression(re.createTypeCheck(re.createIdentifier("BigInt"),"function"),void 0,re.createIdentifier("BigInt"),void 0,re.createIdentifier("Object")):re.createIdentifier("BigInt")}function Ke(Ve,ce){var dn=Ve.name;return e.isPrivateIdentifier(dn)?re.createIdentifier(""):e.isComputedPropertyName(dn)?ce&&!e.isSimpleInlineableExpression(dn.expression)?re.getGeneratedNameForNode(dn):dn.expression:e.isIdentifier(dn)?re.createStringLiteral(e.idText(dn)):re.cloneNode(dn)}function jn(Ve){var ce=Ve.name;if(e.isComputedPropertyName(ce)&&(!e.hasStaticModifier(Ve)&&se||e.some(Ve.decorators))){var dn=e.visitNode(ce.expression,p,e.isExpression),j=e.skipPartiallyEmittedExpressions(dn);if(!e.isSimpleInlineableExpression(j)){var Ie=re.getGeneratedNameForNode(ce);return de(Ie),re.updateComputedPropertyName(ce,re.createAssignment(Ie,dn))}}return e.visitNode(ce,p,e.isPropertyName)}function Zn(Ve){if(Ve.token!==117)return e.visitEachChild(Ve,p,W)}function Me(Ve){return re.updateExpressionWithTypeArguments(Ve,e.visitNode(Ve.expression,p,e.isLeftHandSideExpression),void 0)}function Mn(Ve){return!e.nodeIsMissing(Ve.body)}function ar(Ve){if(!(Ve.flags&8388608||e.hasSyntacticModifier(Ve,128))){var ce=re.updatePropertyDeclaration(Ve,void 0,e.visitNodes(Ve.modifiers,p,e.isModifier),jn(Ve),void 0,void 0,e.visitNode(Ve.initializer,p));return ce!==Ve&&(e.setCommentRange(ce,Ve),e.setSourceMapRange(ce,e.moveRangePastDecorators(Ve))),ce}}function Xn(Ve){if(Mn(Ve))return re.updateConstructorDeclaration(Ve,void 0,void 0,e.visitParameterList(Ve.parameters,p,W),yr(Ve.body,Ve))}function yr(Ve,ce){var dn=ce&&e.filter(ce.parameters,function(sn){return e.isParameterPropertyDeclaration(sn,ce)});if(!e.some(dn))return e.visitFunctionBody(Ve,p,W);var j=[],Ie=0;A(),Ie=e.addPrologueDirectivesAndInitialSuperCall(re,ce,j,p),e.addRange(j,e.map(dn,cr)),e.addRange(j,e.visitNodes(Ve.statements,p,e.isStatement,Ie)),j=re.mergeLexicalEnvironment(j,D());var We=re.createBlock(e.setTextRange(re.createNodeArray(j),Ve.statements),!0);return e.setTextRange(We,Ve),e.setOriginalNode(We,Ve),We}function cr(Ve){var ce=Ve.name;if(e.isIdentifier(ce)){var dn=e.setParent(e.setTextRange(re.cloneNode(ce),ce),ce.parent);e.setEmitFlags(dn,1584);var j=e.setParent(e.setTextRange(re.cloneNode(ce),ce),ce.parent);return e.setEmitFlags(j,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(re.createExpressionStatement(re.createAssignment(e.setTextRange(re.createPropertyAccessExpression(re.createThis(),dn),Ve.name),j)),Ve),e.moveRangePos(Ve,-1))))}}function Fe(Ve){if(Mn(Ve)){var ce=re.updateMethodDeclaration(Ve,void 0,e.visitNodes(Ve.modifiers,z,e.isModifier),Ve.asteriskToken,jn(Ve),void 0,void 0,e.visitParameterList(Ve.parameters,p,W),void 0,e.visitFunctionBody(Ve.body,p,W));return ce!==Ve&&(e.setCommentRange(ce,Ve),e.setSourceMapRange(ce,e.moveRangePastDecorators(Ve))),ce}}function Bn(Ve){return!(e.nodeIsMissing(Ve.body)&&e.hasSyntacticModifier(Ve,128))}function J(Ve){if(Bn(Ve)){var ce=re.updateGetAccessorDeclaration(Ve,void 0,e.visitNodes(Ve.modifiers,z,e.isModifier),jn(Ve),e.visitParameterList(Ve.parameters,p,W),void 0,e.visitFunctionBody(Ve.body,p,W)||re.createBlock([]));return ce!==Ve&&(e.setCommentRange(ce,Ve),e.setSourceMapRange(ce,e.moveRangePastDecorators(Ve))),ce}}function Cn(Ve){if(Bn(Ve)){var ce=re.updateSetAccessorDeclaration(Ve,void 0,e.visitNodes(Ve.modifiers,z,e.isModifier),jn(Ve),e.visitParameterList(Ve.parameters,p,W),e.visitFunctionBody(Ve.body,p,W)||re.createBlock([]));return ce!==Ve&&(e.setCommentRange(ce,Ve),e.setSourceMapRange(ce,e.moveRangePastDecorators(Ve))),ce}}function Gn(Ve){if(!Mn(Ve))return re.createNotEmittedStatement(Ve);var ce=re.updateFunctionDeclaration(Ve,void 0,e.visitNodes(Ve.modifiers,z,e.isModifier),Ve.asteriskToken,Ve.name,void 0,e.visitParameterList(Ve.parameters,p,W),void 0,e.visitFunctionBody(Ve.body,p,W)||re.createBlock([]));if(di(Ve)){var dn=[ce];return Go(dn,Ve),dn}return ce}function cn(Ve){if(!Mn(Ve))return re.createOmittedExpression();var ce=re.updateFunctionExpression(Ve,e.visitNodes(Ve.modifiers,z,e.isModifier),Ve.asteriskToken,Ve.name,void 0,e.visitParameterList(Ve.parameters,p,W),void 0,e.visitFunctionBody(Ve.body,p,W)||re.createBlock([]));return ce}function Rn(Ve){var ce=re.updateArrowFunction(Ve,e.visitNodes(Ve.modifiers,z,e.isModifier),void 0,e.visitParameterList(Ve.parameters,p,W),void 0,Ve.equalsGreaterThanToken,e.visitFunctionBody(Ve.body,p,W));return ce}function Ye(Ve){if(!e.parameterIsThisKeyword(Ve)){var ce=re.updateParameterDeclaration(Ve,void 0,void 0,Ve.dotDotDotToken,e.visitNode(Ve.name,p,e.isBindingName),void 0,void 0,e.visitNode(Ve.initializer,p,e.isExpression));return ce!==Ve&&(e.setCommentRange(ce,Ve),e.setTextRange(ce,e.moveRangePastModifiers(Ve)),e.setSourceMapRange(ce,e.moveRangePastModifiers(Ve)),e.setEmitFlags(ce.name,32)),ce}}function xn(Ve){if(di(Ve)){var ce=e.getInitializedVariables(Ve.declarationList);return ce.length===0?void 0:e.setTextRange(re.createExpressionStatement(re.inlineExpressions(e.map(ce,an))),Ve)}else return e.visitEachChild(Ve,p,W)}function an(Ve){var ce=Ve.name;return e.isBindingPattern(ce)?e.flattenDestructuringAssignment(Ve,p,W,0,!1,wi):e.setTextRange(re.createAssignment(Ho(ce),e.visitNode(Ve.initializer,p,e.isExpression)),Ve)}function zn(Ve){return re.updateVariableDeclaration(Ve,e.visitNode(Ve.name,p,e.isBindingName),void 0,void 0,e.visitNode(Ve.initializer,p,e.isExpression))}function ir(Ve){var ce=e.skipOuterExpressions(Ve.expression,-7);if(e.isAssertionExpression(ce)){var dn=e.visitNode(Ve.expression,p,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(dn,ee))?re.updateParenthesizedExpression(Ve,dn):re.createPartiallyEmittedExpression(dn,Ve)}return e.visitEachChild(Ve,p,W)}function gr(Ve){var ce=e.visitNode(Ve.expression,p,e.isExpression);return re.createPartiallyEmittedExpression(ce,Ve)}function Dr(Ve){var ce=e.visitNode(Ve.expression,p,e.isLeftHandSideExpression);return re.createPartiallyEmittedExpression(ce,Ve)}function qr(Ve){return re.updateCallExpression(Ve,e.visitNode(Ve.expression,p,e.isExpression),void 0,e.visitNodes(Ve.arguments,p,e.isExpression))}function ft(Ve){return re.updateNewExpression(Ve,e.visitNode(Ve.expression,p,e.isExpression),void 0,e.visitNodes(Ve.arguments,p,e.isExpression))}function xt(Ve){return re.updateTaggedTemplateExpression(Ve,e.visitNode(Ve.tag,p,e.isExpression),void 0,e.visitNode(Ve.template,p,e.isExpression))}function Kr(Ve){return re.updateJsxSelfClosingElement(Ve,e.visitNode(Ve.tagName,p,e.isJsxTagNameExpression),void 0,e.visitNode(Ve.attributes,p,e.isJsxAttributes))}function dt(Ve){return re.updateJsxOpeningElement(Ve,e.visitNode(Ve.tagName,p,e.isJsxTagNameExpression),void 0,e.visitNode(Ve.attributes,p,e.isJsxAttributes))}function Ur(Ve){return!e.isEnumConst(Ve)||e.shouldPreserveConstEnums(y)}function qt(Ve){if(!Ur(Ve))return re.createNotEmittedStatement(Ve);var ce=[],dn=2,j=Ar(ce,Ve);j&&(E!==e.ModuleKind.System||ie!==ee)&&(dn|=512);var Ie=qi(Ve),We=Qi(Ve),sn=e.hasSyntacticModifier(Ve,1)?re.getExternalModuleOrNamespaceExportName(b,Ve,!1,!0):re.getLocalName(Ve,!1,!0),Hn=re.createLogicalOr(sn,re.createAssignment(sn,re.createObjectLiteralExpression()));if(Ya(Ve)){var vr=re.getLocalName(Ve,!1,!0);Hn=re.createAssignment(vr,Hn)}var Sr=re.createExpressionStatement(re.createCallExpression(re.createFunctionExpression(void 0,void 0,void 0,void 0,[re.createParameterDeclaration(void 0,void 0,void 0,Ie)],void 0,Cr(Ve,We)),void 0,[Hn]));return e.setOriginalNode(Sr,Ve),j&&(e.setSyntheticLeadingComments(Sr,void 0),e.setSyntheticTrailingComments(Sr,void 0)),e.setTextRange(Sr,Ve),e.addEmitFlags(Sr,dn),ce.push(Sr),ce.push(re.createEndOfDeclarationMarker(Ve)),ce}function Cr(Ve,ce){var dn=b;b=ce;var j=[];O();var Ie=e.map(Ve.members,Jt);return e.insertStatementsAfterStandardPrologue(j,D()),e.addRange(j,Ie),b=dn,re.createBlock(e.setTextRange(re.createNodeArray(j),Ve.members),!0)}function Jt(Ve){var ce=Ke(Ve,!1),dn=Ot(Ve),j=re.createAssignment(re.createElementAccessExpression(b,ce),dn),Ie=dn.kind===10?j:re.createAssignment(re.createElementAccessExpression(b,j),ce);return e.setTextRange(re.createExpressionStatement(e.setTextRange(Ie,Ve)),Ve)}function Ot(Ve){var ce=_e.getConstantValue(Ve);return ce!==void 0?typeof ce=="string"?re.createStringLiteral(ce):re.createNumericLiteral(ce):($a(),Ve.initializer?e.visitNode(Ve.initializer,p,e.isExpression):re.createVoidZero())}function ri(Ve){var ce=e.getParseTreeNode(Ve,e.isModuleDeclaration);return ce?e.isInstantiatedModule(ce,e.shouldPreserveConstEnums(y)):!0}function Ya(Ve){return di(Ve)||Yi(Ve)&&E!==e.ModuleKind.ES2015&&E!==e.ModuleKind.ES2020&&E!==e.ModuleKind.ESNext&&E!==e.ModuleKind.System}function eo(Ve){oe||(oe=new e.Map);var ce=ua(Ve);oe.has(ce)||oe.set(ce,Ve)}function za(Ve){if(oe){var ce=ua(Ve);return oe.get(ce)===Ve}return!0}function ua(Ve){return e.Debug.assertNode(Ve.name,e.isIdentifier),Ve.name.escapedText}function Ar(Ve,ce){var dn=re.createVariableStatement(e.visitNodes(ce.modifiers,z,e.isModifier),re.createVariableDeclarationList([re.createVariableDeclaration(re.getLocalName(ce,!1,!0))],ie.kind===300?0:1));if(e.setOriginalNode(dn,ce),eo(ce),za(ce))return ce.kind===258?e.setSourceMapRange(dn.declarationList,ce):e.setSourceMapRange(dn,ce),e.setCommentRange(dn,ce),e.addEmitFlags(dn,4195328),Ve.push(dn),!0;var j=re.createMergeDeclarationMarker(dn);return e.setEmitFlags(j,4195840),Ve.push(j),!1}function at(Ve){if(!ri(Ve))return re.createNotEmittedStatement(Ve);e.Debug.assertNode(Ve.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),vo();var ce=[],dn=2,j=Ar(ce,Ve);j&&(E!==e.ModuleKind.System||ie!==ee)&&(dn|=512);var Ie=qi(Ve),We=Qi(Ve),sn=e.hasSyntacticModifier(Ve,1)?re.getExternalModuleOrNamespaceExportName(b,Ve,!1,!0):re.getLocalName(Ve,!1,!0),Hn=re.createLogicalOr(sn,re.createAssignment(sn,re.createObjectLiteralExpression()));if(Ya(Ve)){var vr=re.getLocalName(Ve,!1,!0);Hn=re.createAssignment(vr,Hn)}var Sr=re.createExpressionStatement(re.createCallExpression(re.createFunctionExpression(void 0,void 0,void 0,void 0,[re.createParameterDeclaration(void 0,void 0,void 0,Ie)],void 0,Hr(Ve,We)),void 0,[Hn]));return e.setOriginalNode(Sr,Ve),j&&(e.setSyntheticLeadingComments(Sr,void 0),e.setSyntheticTrailingComments(Sr,void 0)),e.setTextRange(Sr,Ve),e.addEmitFlags(Sr,dn),ce.push(Sr),ce.push(re.createEndOfDeclarationMarker(Ve)),ce}function Hr(Ve,ce){var dn=b,j=k,Ie=oe;b=ce,k=Ve,oe=void 0;var We=[];O();var sn,Hn;if(Ve.body)if(Ve.body.kind===260)G(Ve.body,function(Et){return e.addRange(We,e.visitNodes(Et.statements,P,e.isStatement))}),sn=Ve.body.statements,Hn=Ve.body;else{var vr=at(Ve.body);vr&&(e.isArray(vr)?e.addRange(We,vr):We.push(vr));var Sr=Wt(Ve).body;sn=e.moveRangePos(Sr.statements,-1)}e.insertStatementsAfterStandardPrologue(We,D()),b=dn,k=j,oe=Ie;var ot=re.createBlock(e.setTextRange(re.createNodeArray(We),sn),!0);return e.setTextRange(ot,Hn),(!Ve.body||Ve.body.kind!==260)&&e.setEmitFlags(ot,e.getEmitFlags(ot)|1536),ot}function Wt(Ve){if(Ve.body.kind===259){var ce=Wt(Ve.body);return ce||Ve.body}}function Zt(Ve){if(!Ve.importClause)return Ve;if(!Ve.importClause.isTypeOnly){var ce=e.visitNode(Ve.importClause,Rr,e.isImportClause);return ce||y.importsNotUsedAsValues===1||y.importsNotUsedAsValues===2?re.updateImportDeclaration(Ve,void 0,void 0,ce,Ve.moduleSpecifier):void 0}}function Rr(Ve){if(!Ve.isTypeOnly){var ce=_e.isReferencedAliasDeclaration(Ve)?Ve.name:void 0,dn=e.visitNode(Ve.namedBindings,Lr,e.isNamedImportBindings);return ce||dn?re.updateImportClause(Ve,!1,ce,dn):void 0}}function Lr(Ve){if(Ve.kind===266)return _e.isReferencedAliasDeclaration(Ve)?Ve:void 0;var ce=e.visitNodes(Ve.elements,Xr,e.isImportSpecifier);return e.some(ce)?re.updateNamedImports(Ve,ce):void 0}function Xr(Ve){return _e.isReferencedAliasDeclaration(Ve)?Ve:void 0}function nt(Ve){return _e.isValueAliasDeclaration(Ve)?e.visitEachChild(Ve,p,W):void 0}function vt(Ve){if(!Ve.isTypeOnly){if(!Ve.exportClause||e.isNamespaceExport(Ve.exportClause))return Ve;if(_e.isValueAliasDeclaration(Ve)){var ce=e.visitNode(Ve.exportClause,Va,e.isNamedExportBindings);return ce?re.updateExportDeclaration(Ve,void 0,void 0,Ve.isTypeOnly,ce,Ve.moduleSpecifier):void 0}}}function or(Ve){var ce=e.visitNodes(Ve.elements,li,e.isExportSpecifier);return e.some(ce)?re.updateNamedExports(Ve,ce):void 0}function $t(Ve){return re.updateNamespaceExport(Ve,e.visitNode(Ve.name,p,e.isIdentifier))}function Va(Ve){return e.isNamespaceExport(Ve)?$t(Ve):or(Ve)}function li(Ve){return _e.isValueAliasDeclaration(Ve)?Ve:void 0}function zi(Ve){return _e.isReferencedAliasDeclaration(Ve)||!e.isExternalModule(ee)&&_e.isTopLevelValueImportEqualsWithEntityName(Ve)}function Ma(Ve){if(!Ve.isTypeOnly){if(e.isExternalModuleImportEqualsDeclaration(Ve)){var ce=_e.isReferencedAliasDeclaration(Ve);return!ce&&y.importsNotUsedAsValues===1?e.setOriginalNode(e.setTextRange(re.createImportDeclaration(void 0,void 0,void 0,Ve.moduleReference.expression),Ve),Ve):ce?e.visitEachChild(Ve,p,W):void 0}if(zi(Ve)){var dn=e.createExpressionFromEntityName(re,Ve.moduleReference);return e.setEmitFlags(dn,3584),uo(Ve)||!di(Ve)?e.setOriginalNode(e.setTextRange(re.createVariableStatement(e.visitNodes(Ve.modifiers,z,e.isModifier),re.createVariableDeclarationList([e.setOriginalNode(re.createVariableDeclaration(Ve.name,void 0,void 0,dn),Ve)])),Ve),Ve):e.setOriginalNode(io(Ve.name,dn,Ve),Ve)}}}function di(Ve){return k!==void 0&&e.hasSyntacticModifier(Ve,1)}function Yi(Ve){return k===void 0&&e.hasSyntacticModifier(Ve,1)}function uo(Ve){return Yi(Ve)&&!e.hasSyntacticModifier(Ve,512)}function bi(Ve){return Yi(Ve)&&e.hasSyntacticModifier(Ve,512)}function Mi(Ve){return re.createExpressionStatement(Ve)}function Go(Ve,ce){var dn=re.createAssignment(re.getExternalModuleOrNamespaceExportName(b,ce,!1,!0),re.getLocalName(ce));e.setSourceMapRange(dn,e.createRange(ce.name?ce.name.pos:ce.pos,ce.end));var j=re.createExpressionStatement(dn);e.setSourceMapRange(j,e.createRange(-1,ce.end)),Ve.push(j)}function io(Ve,ce,dn){return e.setTextRange(re.createExpressionStatement(re.createAssignment(re.getNamespaceMemberName(b,Ve,!1,!0),ce)),dn)}function wi(Ve,ce,dn){return e.setTextRange(re.createAssignment(Ho(Ve),ce),dn)}function Ho(Ve){return re.getNamespaceMemberName(b,Ve,!1,!0)}function qi(Ve){var ce=re.getGeneratedNameForNode(Ve);return e.setSourceMapRange(ce,Ve.name),ce}function Qi(Ve){return re.getGeneratedNameForNode(Ve)}function as(Ve){if(_e.getNodeCheckFlags(Ve)&16777216){Ni();var ce=re.createUniqueName(Ve.name&&!e.isGeneratedIdentifier(Ve.name)?e.idText(Ve.name):"default");return R[e.getOriginalNodeId(Ve)]=ce,de(ce),ce}}function gs(Ve){return re.createPropertyAccessExpression(re.getDeclarationName(Ve),"prototype")}function Da(Ve,ce){return e.isStatic(ce)?re.getDeclarationName(Ve):gs(Ve)}function $a(){w&8||(w|=8,W.enableSubstitution(79))}function Ni(){w&1||(w|=1,W.enableSubstitution(79),R=[])}function vo(){w&2||(w|=2,W.enableSubstitution(79),W.enableSubstitution(292),W.enableEmitNotification(259))}function Io(Ve){return e.getOriginalNode(Ve).kind===259}function Bo(Ve){return e.getOriginalNode(Ve).kind===258}function Uo(Ve,ce,dn){var j=ne,Ie=ee;e.isSourceFile(ce)&&(ee=ce),w&2&&Io(ce)&&(ne|=2),w&8&&Bo(ce)&&(ne|=8),H(Ve,ce,dn),ne=j,ee=Ie}function cs(Ve,ce){return ce=L(Ve,ce),Ve===1?Jo(ce):e.isShorthandPropertyAssignment(ce)?us(ce):ce}function us(Ve){if(w&2){var ce=Ve.name,dn=_r(ce);if(dn){if(Ve.objectAssignmentInitializer){var j=re.createAssignment(dn,Ve.objectAssignmentInitializer);return e.setTextRange(re.createPropertyAssignment(ce,j),Ve)}return e.setTextRange(re.createPropertyAssignment(ce,dn),Ve)}}return Ve}function Jo(Ve){switch(Ve.kind){case 79:return is(Ve);case 204:return $r(Ve);case 205:return ia(Ve)}return Ve}function is(Ve){return mn(Ve)||_r(Ve)||Ve}function mn(Ve){if(w&1&&_e.getNodeCheckFlags(Ve)&33554432){var ce=_e.getReferencedValueDeclaration(Ve);if(ce){var dn=R[ce.id];if(dn){var j=re.cloneNode(dn);return e.setSourceMapRange(j,Ve),e.setCommentRange(j,Ve),j}}}}function _r(Ve){if(w&ne&&!e.isGeneratedIdentifier(Ve)&&!e.isLocalName(Ve)){var ce=_e.getReferencedExportContainer(Ve,!1);if(ce&&ce.kind!==300){var dn=ne&2&&ce.kind===259||ne&8&&ce.kind===258;if(dn)return e.setTextRange(re.createPropertyAccessExpression(re.getGeneratedNameForNode(ce),Ve),Ve)}}}function $r(Ve){return ti(Ve)}function ia(Ve){return ti(Ve)}function ti(Ve){var ce=va(Ve);if(ce!==void 0){e.setConstantValue(Ve,ce);var dn=typeof ce=="string"?re.createStringLiteral(ce):re.createNumericLiteral(ce);if(!y.removeComments){var j=e.getOriginalNode(Ve,e.isAccessExpression),Ie=e.isPropertyAccessExpression(j)?e.declarationNameToString(j.name):e.getTextOfNode(j.argumentExpression);e.addSyntheticTrailingComment(dn,3," "+Ie+" ")}return dn}return Ve}function va(Ve){if(!y.isolatedModules)return e.isPropertyAccessExpression(Ve)||e.isElementAccessExpression(Ve)?_e.getConstantValue(Ve):void 0}}e.transformTypeScript=Y})(vn||(vn={}));var vn;(function(e){var o;(function(A){A[A.ClassAliases=1]="ClassAliases",A[A.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference"})(o||(o={}));var ue;(function(A){A.Field="f",A.Method="m",A.Accessor="a"})(ue=e.PrivateIdentifierKind||(e.PrivateIdentifierKind={}));var $;(function(A){A[A.None=0]="None",A[A.ClassWasDecorated=1]="ClassWasDecorated",A[A.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",A[A.NeedsClassSuperReference=4]="NeedsClassSuperReference",A[A.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField"})($||($={}));function Y(A){var D=A.factory,de=A.hoistVariableDeclaration,_e=A.endLexicalEnvironment,y=A.startLexicalEnvironment,V=A.resumeLexicalEnvironment,Z=A.addBlockScopedVariable,E=A.getEmitResolver(),H=A.getCompilerOptions(),L=e.getEmitScriptTarget(H),ee=e.getUseDefineForClassFields(H),k=L<99,b=(L<=8||!ee)&&L>=2,ie=L<=8||!ee,q=A.onSubstituteNode;A.onSubstituteNode=Ue;var oe=A.onEmitNode;A.onEmitNode=An;var se,w,R,ne,U=[],C=new e.Map,d,G,g;return e.chainBundle(A,p);function p(Fe){var Bn=A.getCompilerOptions();if(Fe.isDeclarationFile||ee&&Bn.target===99)return Fe;var J=e.visitEachChild(Fe,m,A);return e.addEmitHelpers(J,A.readEmitHelpers()),J}function f(Fe,Bn){if(Fe.transformFlags&8388608)switch(Fe.kind){case 224:case 255:return pn(Fe);case 165:return Ae(Fe);case 235:return me(Fe);case 80:return x(Fe);case 168:return En(Fe)}if(Fe.transformFlags&8388608||Fe.transformFlags&33554432&&b&&g&&d)switch(Fe.kind){case 217:case 218:return Ce(Fe,Bn);case 219:return pe(Fe,Bn);case 206:return fe(Fe);case 208:return Ne(Fe);case 204:return Se(Fe);case 205:return be(Fe);case 236:return De(Fe);case 240:return Be(Fe);case 254:case 211:case 169:case 167:case 170:case 171:{var J=g;g=void 0;var Cn=e.visitEachChild(Fe,m,A);return g=J,Cn}}return e.visitEachChild(Fe,m,A)}function T(Fe){return f(Fe,!0)}function m(Fe){return f(Fe,!1)}function N(Fe){switch(Fe.kind){case 289:return e.visitEachChild(Fe,N,A);case 226:return Ln(Fe)}return m(Fe)}function P(Fe){switch(Fe.kind){case 203:case 202:return cr(Fe);default:return m(Fe)}}function x(Fe){return k?e.setOriginalNode(D.createIdentifier(""),Fe):Fe}function M(Fe){switch(Fe.kind){case 169:return;case 170:case 171:case 167:return K(Fe);case 165:return Ae(Fe);case 160:return z(Fe);case 232:return Fe;default:return m(Fe)}}function me(Fe){var Bn=ne;ne=[];var J=e.visitEachChild(Fe,m,A),Cn=e.some(ne)?Vr([J],ne,!0):J;return ne=Bn,Cn}function z(Fe){var Bn=e.visitEachChild(Fe,m,A);if(e.some(R)){var J=R;J.push(Bn.expression),R=[],Bn=D.updateComputedPropertyName(Bn,D.inlineExpressions(J))}return Bn}function K(Fe){if(e.Debug.assert(!e.some(Fe.decorators)),!k||!e.isPrivateIdentifier(Fe.name))return e.visitEachChild(Fe,M,A);var Bn=Mn(Fe.name);if(e.Debug.assert(Bn,"Undeclared private name for property declaration."),!Bn.isValid)return Fe;var J=I(Fe);J&&Ke().push(D.createAssignment(J,D.createFunctionExpression(e.filter(Fe.modifiers,function(Cn){return!e.isStaticModifier(Cn)}),Fe.asteriskToken,J,void 0,e.visitParameterList(Fe.parameters,M,A),void 0,e.visitFunctionBody(Fe.body,M,A))))}function I(Fe){e.Debug.assert(e.isPrivateIdentifier(Fe.name));var Bn=Mn(Fe.name);if(e.Debug.assert(Bn,"Undeclared private name for property declaration."),Bn.kind==="m")return Bn.methodName;if(Bn.kind==="a"){if(e.isGetAccessor(Fe))return Bn.getterName;if(e.isSetAccessor(Fe))return Bn.setterName}}function Ae(Fe){if(e.Debug.assert(!e.some(Fe.decorators)),e.isPrivateIdentifier(Fe.name)){if(!k)return D.updatePropertyDeclaration(Fe,void 0,e.visitNodes(Fe.modifiers,m,e.isModifier),Fe.name,void 0,void 0,void 0);var Bn=Mn(Fe.name);if(e.Debug.assert(Bn,"Undeclared private name for property declaration."),!Bn.isValid)return Fe}var J=On(Fe.name,!!Fe.initializer||ee);J&&!e.isSimpleInlineableExpression(J)&&Ke().push(J)}function Oe(Fe,Bn){return te(Fe,e.visitNode(Bn,m,e.isExpression))}function te(Fe,Bn){switch(e.setCommentRange(Bn,e.moveRangePos(Bn,-1)),Fe.kind){case"a":return A.getEmitHelperFactory().createClassPrivateFieldGetHelper(Bn,Fe.brandCheckIdentifier,Fe.kind,Fe.getterName);case"m":return A.getEmitHelperFactory().createClassPrivateFieldGetHelper(Bn,Fe.brandCheckIdentifier,Fe.kind,Fe.methodName);case"f":return A.getEmitHelperFactory().createClassPrivateFieldGetHelper(Bn,Fe.brandCheckIdentifier,Fe.kind,Fe.variableName);default:e.Debug.assertNever(Fe,"Unknown private element type")}}function Se(Fe){if(k&&e.isPrivateIdentifier(Fe.name)){var Bn=Mn(Fe.name);if(Bn)return e.setTextRange(e.setOriginalNode(Oe(Bn,Fe.expression),Fe),Fe)}if(b&&e.isSuperProperty(Fe)&&e.isIdentifier(Fe.name)&&g&&d){var J=d.classConstructor,Cn=d.superClassReference,Gn=d.facts;if(Gn&1)return $e(Fe);if(J&&Cn){var cn=D.createReflectGetCall(Cn,D.createStringLiteralFromNode(Fe.name),J);return e.setOriginalNode(cn,Fe.expression),e.setTextRange(cn,Fe.expression),cn}}return e.visitEachChild(Fe,m,A)}function be(Fe){if(b&&e.isSuperProperty(Fe)&&g&&d){var Bn=d.classConstructor,J=d.superClassReference,Cn=d.facts;if(Cn&1)return $e(Fe);if(Bn&&J){var Gn=D.createReflectGetCall(J,e.visitNode(Fe.argumentExpression,m,e.isExpression),Bn);return e.setOriginalNode(Gn,Fe.expression),e.setTextRange(Gn,Fe.expression),Gn}}return e.visitEachChild(Fe,m,A)}function Ce(Fe,Bn){if(Fe.operator===45||Fe.operator===46){if(k&&e.isPrivateIdentifierPropertyAccessExpression(Fe.operand)){var J=void 0;if(J=Mn(Fe.operand.name)){var Cn=e.visitNode(Fe.operand.expression,m,e.isExpression),Gn=en(Cn),cn=Gn.readExpression,Rn=Gn.initializeExpression,Ye=Oe(J,cn),xn=e.isPrefixUnaryExpression(Fe)||Bn?void 0:D.createTempVariable(de);return Ye=e.expandPreOrPostfixIncrementOrDecrementExpression(D,Fe,Ye,de,xn),Ye=we(J,Rn||cn,Ye,63),e.setOriginalNode(Ye,Fe),e.setTextRange(Ye,Fe),xn&&(Ye=D.createComma(Ye,xn),e.setTextRange(Ye,Fe)),Ye}}else if(b&&e.isSuperProperty(Fe.operand)&&g&&d){var an=d.classConstructor,zn=d.superClassReference,ir=d.facts;if(ir&1){var gr=$e(Fe.operand);return e.isPrefixUnaryExpression(Fe)?D.updatePrefixUnaryExpression(Fe,gr):D.updatePostfixUnaryExpression(Fe,gr)}if(an&&zn){var Dr=void 0,qr=void 0;if(e.isPropertyAccessExpression(Fe.operand)?e.isIdentifier(Fe.operand.name)&&(qr=Dr=D.createStringLiteralFromNode(Fe.operand.name)):e.isSimpleInlineableExpression(Fe.operand.argumentExpression)?qr=Dr=Fe.operand.argumentExpression:(qr=D.createTempVariable(de),Dr=D.createAssignment(qr,e.visitNode(Fe.operand.argumentExpression,m,e.isExpression))),Dr&&qr){var Ye=D.createReflectGetCall(zn,qr,an);e.setTextRange(Ye,Fe.operand);var xn=Bn?void 0:D.createTempVariable(de);return Ye=e.expandPreOrPostfixIncrementOrDecrementExpression(D,Fe,Ye,de,xn),Ye=D.createReflectSetCall(zn,Dr,Ye,an),e.setOriginalNode(Ye,Fe),e.setTextRange(Ye,Fe),xn&&(Ye=D.createComma(Ye,xn),e.setTextRange(Ye,Fe)),Ye}}}}return e.visitEachChild(Fe,m,A)}function Be(Fe){return D.updateForStatement(Fe,e.visitNode(Fe.initializer,T,e.isForInitializer),e.visitNode(Fe.condition,m,e.isExpression),e.visitNode(Fe.incrementor,T,e.isExpression),e.visitIterationBody(Fe.statement,m,A))}function De(Fe){return D.updateExpressionStatement(Fe,e.visitNode(Fe.expression,T,e.isExpression))}function en(Fe){var Bn=e.nodeIsSynthesized(Fe)?Fe:D.cloneNode(Fe);if(e.isSimpleInlineableExpression(Fe))return{readExpression:Bn,initializeExpression:void 0};var J=D.createTempVariable(de),Cn=D.createAssignment(J,Bn);return{readExpression:J,initializeExpression:Cn}}function fe(Fe){if(k&&e.isPrivateIdentifierPropertyAccessExpression(Fe.expression)){var Bn=D.createCallBinding(Fe.expression,de,L),J=Bn.thisArg,Cn=Bn.target;return e.isCallChain(Fe)?D.updateCallChain(Fe,D.createPropertyAccessChain(e.visitNode(Cn,m),Fe.questionDotToken,"call"),void 0,void 0,Vr([e.visitNode(J,m,e.isExpression)],e.visitNodes(Fe.arguments,m,e.isExpression),!0)):D.updateCallExpression(Fe,D.createPropertyAccessExpression(e.visitNode(Cn,m),"call"),void 0,Vr([e.visitNode(J,m,e.isExpression)],e.visitNodes(Fe.arguments,m,e.isExpression),!0))}if(b&&e.isSuperProperty(Fe.expression)&&g&&(d!=null&&d.classConstructor)){var Gn=D.createFunctionCallCall(e.visitNode(Fe.expression,m,e.isExpression),d.classConstructor,e.visitNodes(Fe.arguments,m,e.isExpression));return e.setOriginalNode(Gn,Fe),e.setTextRange(Gn,Fe),Gn}return e.visitEachChild(Fe,m,A)}function Ne(Fe){if(k&&e.isPrivateIdentifierPropertyAccessExpression(Fe.tag)){var Bn=D.createCallBinding(Fe.tag,de,L),J=Bn.thisArg,Cn=Bn.target;return D.updateTaggedTemplateExpression(Fe,D.createCallExpression(D.createPropertyAccessExpression(e.visitNode(Cn,m),"bind"),void 0,[e.visitNode(J,m,e.isExpression)]),void 0,e.visitNode(Fe.template,m,e.isTemplateLiteral))}if(b&&e.isSuperProperty(Fe.tag)&&g&&(d!=null&&d.classConstructor)){var Gn=D.createFunctionBindCall(e.visitNode(Fe.tag,m,e.isExpression),d.classConstructor,[]);return e.setOriginalNode(Gn,Fe),e.setTextRange(Gn,Fe),D.updateTaggedTemplateExpression(Fe,Gn,void 0,e.visitNode(Fe.template,m,e.isTemplateLiteral))}return e.visitEachChild(Fe,m,A)}function qe(Fe){if(k){d&&C.set(e.getOriginalNodeId(Fe),d),y();var Bn=g;g=Fe;var J=e.visitNodes(Fe.body.statements,m,e.isStatement);J=D.mergeLexicalEnvironment(J,_e()),g=Bn;var Cn=D.createImmediatelyInvokedArrowFunction(J);return e.setOriginalNode(Cn,Fe),e.setTextRange(Cn,Fe),e.addEmitFlags(Cn,2),Cn}}function pe(Fe,Bn){if(e.isDestructuringAssignment(Fe)){var J=R;R=void 0,Fe=D.updateBinaryExpression(Fe,e.visitNode(Fe.left,P),Fe.operatorToken,e.visitNode(Fe.right,m));var Cn=e.some(R)?D.inlineExpressions(e.compact(Vr(Vr([],R,!0),[Fe],!1))):Fe;return R=J,Cn}if(e.isAssignmentExpression(Fe)){if(k&&e.isPrivateIdentifierPropertyAccessExpression(Fe.left)){var Gn=Mn(Fe.left.name);if(Gn)return e.setTextRange(e.setOriginalNode(we(Gn,Fe.left.expression,Fe.right,Fe.operatorToken.kind),Fe),Fe)}else if(b&&e.isSuperProperty(Fe.left)&&g&&d){var cn=d.classConstructor,Rn=d.superClassReference,Ye=d.facts;if(Ye&1)return D.updateBinaryExpression(Fe,$e(Fe.left),Fe.operatorToken,e.visitNode(Fe.right,m,e.isExpression));if(cn&&Rn){var xn=e.isElementAccessExpression(Fe.left)?e.visitNode(Fe.left.argumentExpression,m,e.isExpression):e.isIdentifier(Fe.left.name)?D.createStringLiteralFromNode(Fe.left.name):void 0;if(xn){var an=e.visitNode(Fe.right,m,e.isExpression);if(e.isCompoundAssignment(Fe.operatorToken.kind)){var zn=xn;e.isSimpleInlineableExpression(xn)||(zn=D.createTempVariable(de),xn=D.createAssignment(zn,xn));var ir=D.createReflectGetCall(Rn,zn,cn);e.setOriginalNode(ir,Fe.left),e.setTextRange(ir,Fe.left),an=D.createBinaryExpression(ir,e.getNonAssignmentOperatorForCompoundAssignment(Fe.operatorToken.kind),an),e.setTextRange(an,Fe)}var gr=Bn?void 0:D.createTempVariable(de);return gr&&(an=D.createAssignment(gr,an),e.setTextRange(gr,Fe)),an=D.createReflectSetCall(Rn,xn,an,cn),e.setOriginalNode(an,Fe),e.setTextRange(an,Fe),gr&&(an=D.createComma(an,gr),e.setTextRange(an,Fe)),an}}}}return e.visitEachChild(Fe,m,A)}function we(Fe,Bn,J,Cn){if(Bn=e.visitNode(Bn,m,e.isExpression),J=e.visitNode(J,m,e.isExpression),e.isCompoundAssignment(Cn)){var Gn=en(Bn),cn=Gn.readExpression,Rn=Gn.initializeExpression;Bn=Rn||cn,J=D.createBinaryExpression(te(Fe,cn),e.getNonAssignmentOperatorForCompoundAssignment(Cn),J)}switch(e.setCommentRange(Bn,e.moveRangePos(Bn,-1)),Fe.kind){case"a":return A.getEmitHelperFactory().createClassPrivateFieldSetHelper(Bn,Fe.brandCheckIdentifier,J,Fe.kind,Fe.setterName);case"m":return A.getEmitHelperFactory().createClassPrivateFieldSetHelper(Bn,Fe.brandCheckIdentifier,J,Fe.kind,void 0);case"f":return A.getEmitHelperFactory().createClassPrivateFieldSetHelper(Bn,Fe.brandCheckIdentifier,J,Fe.kind,Fe.variableName);default:e.Debug.assertNever(Fe,"Unknown private element type")}}function pn(Fe){if(!e.forEach(Fe.members,Qe))return e.visitEachChild(Fe,m,A);var Bn=R;if(R=void 0,ur(),k){var J=e.getNameOfDeclaration(Fe);J&&e.isIdentifier(J)&&(Qr().className=e.idText(J));var Cn=Re(Fe);e.some(Cn)&&(Qr().weakSetName=Zn("instances",Cn[0].name))}var Gn=e.isClassDeclaration(Fe)?Un(Fe):fn(Fe);return hr(),R=Bn,Gn}function Qe(Fe){return e.isPropertyDeclaration(Fe)||e.isClassStaticBlockDeclaration(Fe)||k&&Fe.name&&e.isPrivateIdentifier(Fe.name)}function Re(Fe){return e.filter(Fe.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function He(Fe){var Bn=0,J=e.getOriginalNode(Fe);e.isClassDeclaration(J)&&e.classOrConstructorParameterIsDecorated(J)&&(Bn|=1);for(var Cn=0,Gn=Fe.members;Cn<Gn.length;Cn++){var cn=Gn[Cn];e.isStatic(cn)&&(cn.name&&e.isPrivateIdentifier(cn.name)&&k&&(Bn|=2),(e.isPropertyDeclaration(cn)||e.isClassStaticBlockDeclaration(cn))&&(ie&&cn.transformFlags&8192&&(Bn|=8,Bn&1||(Bn|=2)),b&&cn.transformFlags&33554432&&(Bn&1||(Bn|=6))))}return Bn}function Ln(Fe){var Bn=(d==null?void 0:d.facts)||0;if(Bn&4){var J=D.createTempVariable(de,!0);return wr().superClassReference=J,D.updateExpressionWithTypeArguments(Fe,D.createAssignment(J,e.visitNode(Fe.expression,m,e.isExpression)),void 0)}return e.visitEachChild(Fe,m,A)}function Un(Fe){var Bn=He(Fe);Bn&&(wr().facts=Bn),Bn&8&&hn();var J=e.getStaticPropertiesAndClassStaticBlock(Fe),Cn;if(Bn&2){var Gn=D.createTempVariable(de,!0);wr().classConstructor=D.cloneNode(Gn),Cn=D.createAssignment(Gn,D.getInternalName(Fe))}var cn=e.getEffectiveBaseTypeNode(Fe),Rn=!!(cn&&e.skipOuterExpressions(cn.expression).kind!==104),Ye=[D.updateClassDeclaration(Fe,void 0,Fe.modifiers,Fe.name,void 0,e.visitNodes(Fe.heritageClauses,N,e.isHeritageClause),i(Fe,Rn))];return Cn&&Ke().unshift(Cn),e.some(R)&&Ye.push(D.createExpressionStatement(D.inlineExpressions(R))),e.some(J)&&Vn(Ye,J,D.getInternalName(Fe)),Ye}function fn(Fe){var Bn=He(Fe);Bn&&(wr().facts=Bn),Bn&8&&hn();var J=!!(Bn&1),Cn=e.getStaticPropertiesAndClassStaticBlock(Fe),Gn=e.getEffectiveBaseTypeNode(Fe),cn=!!(Gn&&e.skipOuterExpressions(Gn.expression).kind!==104),Rn=E.getNodeCheckFlags(Fe)&16777216,Ye;function xn(){var Dr=E.getNodeCheckFlags(Fe),qr=Dr&16777216,ft=Dr&524288;return D.createTempVariable(ft?Z:de,!!qr)}Bn&2&&(Ye=xn(),wr().classConstructor=D.cloneNode(Ye));var an=D.updateClassExpression(Fe,e.visitNodes(Fe.decorators,m,e.isDecorator),Fe.modifiers,Fe.name,void 0,e.visitNodes(Fe.heritageClauses,N,e.isHeritageClause),i(Fe,cn)),zn=e.some(Cn,function(Dr){return e.isClassStaticBlockDeclaration(Dr)||!!Dr.initializer||k&&e.isPrivateIdentifier(Dr.name)});if(zn||e.some(R)){if(J)return e.Debug.assertIsDefined(ne,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),ne&&R&&e.some(R)&&ne.push(D.createExpressionStatement(D.inlineExpressions(R))),ne&&e.some(Cn)&&Vn(ne,Cn,D.getInternalName(Fe)),Ye?D.inlineExpressions([D.createAssignment(Ye,an),Ye]):an;var ir=[];if(Ye||(Ye=xn()),Rn){Ze();var gr=D.cloneNode(Ye);gr.autoGenerateFlags&=-9,w[e.getOriginalNodeId(Fe)]=gr}return e.setEmitFlags(an,65536|e.getEmitFlags(an)),ir.push(e.startOnNewLine(D.createAssignment(Ye,an))),e.addRange(ir,e.map(R,e.startOnNewLine)),e.addRange(ir,le(Cn,Ye)),ir.push(e.startOnNewLine(Ye)),D.inlineExpressions(ir)}return an}function En(Fe){if(!k)return e.visitEachChild(Fe,M,A)}function i(Fe,Bn){if(k){for(var J=0,Cn=Fe.members;J<Cn.length;J++){var Gn=Cn[J];e.isPrivateIdentifierClassElementDeclaration(Gn)&&jn(Gn)}e.some(Re(Fe))&&In()}var cn=[],Rn=rn(Fe,Bn);return Rn&&cn.push(Rn),e.addRange(cn,e.visitNodes(Fe.members,M,e.isClassElement)),e.setTextRange(D.createNodeArray(cn),Fe.members)}function In(){var Fe=Qr().weakSetName;e.Debug.assert(Fe,"weakSetName should be set in private identifier environment"),Ke().push(D.createAssignment(Fe,D.createNewExpression(D.createIdentifier("WeakSet"),void 0,[])))}function X(Fe){return e.isStatic(Fe)||e.hasSyntacticModifier(e.getOriginalNode(Fe),128)?!1:ee?L<99:e.isInitializedProperty(Fe)||k&&e.isPrivateIdentifierClassElementDeclaration(Fe)}function rn(Fe,Bn){var J=e.visitNode(e.getFirstConstructorWithBody(Fe),m,e.isConstructorDeclaration),Cn=Fe.members.filter(X);if(!e.some(Cn))return J;var Gn=e.visitParameterList(J?J.parameters:void 0,m,A),cn=$n(Fe,J,Bn);if(cn)return e.startOnNewLine(e.setOriginalNode(e.setTextRange(D.createConstructorDeclaration(void 0,void 0,Gn!=null?Gn:[],cn),J||Fe),J))}function $n(Fe,Bn,J){var Cn=e.getProperties(Fe,!1,!1);ee||(Cn=e.filter(Cn,function(zn){return!!zn.initializer||e.isPrivateIdentifier(zn.name)}));var Gn=Re(Fe),cn=e.some(Cn)||e.some(Gn);if(!Bn&&!cn)return e.visitFunctionBody(void 0,m,A);V();var Rn=0,Ye=[];if(!Bn&&J&&Ye.push(D.createExpressionStatement(D.createCallExpression(D.createSuper(),void 0,[D.createSpreadElement(D.createIdentifier("arguments"))]))),Bn&&(Rn=e.addPrologueDirectivesAndInitialSuperCall(D,Bn,Ye,m)),Bn!=null&&Bn.body){var xn=e.findIndex(Bn.body.statements,function(zn){return!e.isParameterPropertyDeclaration(e.getOriginalNode(zn),Bn)},Rn);xn===-1&&(xn=Bn.body.statements.length),xn>Rn&&(ee||e.addRange(Ye,e.visitNodes(Bn.body.statements,m,e.isStatement,Rn,xn-Rn)),Rn=xn)}var an=D.createThis();return Le(Ye,Gn,an),Vn(Ye,Cn,an),Bn&&e.addRange(Ye,e.visitNodes(Bn.body.statements,m,e.isStatement,Rn)),Ye=D.mergeLexicalEnvironment(Ye,_e()),e.setTextRange(D.createBlock(e.setTextRange(D.createNodeArray(Ye),Bn?Bn.body.statements:Fe.members),!0),Bn?Bn.body:void 0)}function Vn(Fe,Bn,J){for(var Cn=0,Gn=Bn;Cn<Gn.length;Cn++){var cn=Gn[Cn],Rn=e.isClassStaticBlockDeclaration(cn)?qe(cn):Pe(cn,J);if(Rn){var Ye=D.createExpressionStatement(Rn);e.setSourceMapRange(Ye,e.moveRangePastModifiers(cn)),e.setCommentRange(Ye,cn),e.setOriginalNode(Ye,cn),Fe.push(Ye)}}}function le(Fe,Bn){for(var J=[],Cn=0,Gn=Fe;Cn<Gn.length;Cn++){var cn=Gn[Cn],Rn=e.isClassStaticBlockDeclaration(cn)?qe(cn):Pe(cn,Bn);Rn&&(e.startOnNewLine(Rn),e.setSourceMapRange(Rn,e.moveRangePastModifiers(cn)),e.setCommentRange(Rn,cn),e.setOriginalNode(Rn,cn),J.push(Rn))}return J}function Pe(Fe,Bn){var J=g,Cn=xe(Fe,Bn);return Cn&&e.hasStaticModifier(Fe)&&(d!=null&&d.facts)&&(e.setOriginalNode(Cn,Fe),e.addEmitFlags(Cn,2),C.set(e.getOriginalNodeId(Cn),d)),g=J,Cn}function xe(Fe,Bn){var J,Cn=!ee,Gn=e.isComputedPropertyName(Fe.name)&&!e.isSimpleInlineableExpression(Fe.name.expression)?D.updateComputedPropertyName(Fe.name,D.getGeneratedNameForNode(Fe.name)):Fe.name;if(e.hasStaticModifier(Fe)&&(g=Fe),k&&e.isPrivateIdentifier(Gn)){var cn=Mn(Gn);if(cn)return cn.kind==="f"?cn.isStatic?W(cn.variableName,e.visitNode(Fe.initializer,m,e.isExpression)):re(Bn,e.visitNode(Fe.initializer,m,e.isExpression),cn.brandCheckIdentifier):void 0;e.Debug.fail("Undeclared private name for property declaration.")}if(!((e.isPrivateIdentifier(Gn)||e.hasStaticModifier(Fe))&&!Fe.initializer)){var Rn=e.getOriginalNode(Fe);if(!e.hasSyntacticModifier(Rn,128)){var Ye=Fe.initializer||Cn?(J=e.visitNode(Fe.initializer,m,e.isExpression))!==null&&J!==void 0?J:D.createVoidZero():e.isParameterPropertyDeclaration(Rn,Rn.parent)&&e.isIdentifier(Gn)?Gn:D.createVoidZero();if(Cn||e.isPrivateIdentifier(Gn)){var xn=e.createMemberAccessForPropertyName(D,Bn,Gn,Gn);return D.createAssignment(xn,Ye)}else{var an=e.isComputedPropertyName(Gn)?Gn.expression:e.isIdentifier(Gn)?D.createStringLiteral(e.unescapeLeadingUnderscores(Gn.escapedText)):Gn,zn=D.createPropertyDescriptor({value:Ye,configurable:!0,writable:!0,enumerable:!0});return D.createObjectDefinePropertyCall(Bn,an,zn)}}}}function Ze(){se&1||(se|=1,A.enableSubstitution(79),w=[])}function hn(){se&2||(se|=2,A.enableSubstitution(108),A.enableEmitNotification(254),A.enableEmitNotification(211),A.enableEmitNotification(169),A.enableEmitNotification(170),A.enableEmitNotification(171),A.enableEmitNotification(167),A.enableEmitNotification(165),A.enableEmitNotification(160))}function Le(Fe,Bn,J){if(!(!k||!e.some(Bn))){var Cn=Qr().weakSetName;e.Debug.assert(Cn,"weakSetName should be set in private identifier environment"),Fe.push(D.createExpressionStatement(ye(J,Cn)))}}function $e(Fe){return e.isPropertyAccessExpression(Fe)?D.updatePropertyAccessExpression(Fe,D.createVoidZero(),Fe.name):D.updateElementAccessExpression(Fe,D.createVoidZero(),e.visitNode(Fe.argumentExpression,m,e.isExpression))}function An(Fe,Bn,J){var Cn=e.getOriginalNode(Bn);if(Cn.id){var Gn=C.get(Cn.id);if(Gn){var cn=d,Rn=G;d=Gn,G=Gn,oe(Fe,Bn,J),d=cn,G=Rn;return}}switch(Bn.kind){case 211:if(e.isArrowFunction(Cn)||e.getEmitFlags(Bn)&262144)break;case 254:case 169:{var cn=d,Rn=G;d=void 0,G=void 0,oe(Fe,Bn,J),d=cn,G=Rn;return}case 170:case 171:case 167:case 165:{var cn=d,Rn=G;G=d,d=void 0,oe(Fe,Bn,J),d=cn,G=Rn;return}case 160:{var cn=d,Rn=G;d=G,G=void 0,oe(Fe,Bn,J),d=cn,G=Rn;return}}oe(Fe,Bn,J)}function Ue(Fe,Bn){return Bn=q(Fe,Bn),Fe===1?gn(Bn):Bn}function gn(Fe){switch(Fe.kind){case 79:return ze(Fe);case 108:return Wn(Fe)}return Fe}function Wn(Fe){if(se&2&&d){var Bn=d.facts,J=d.classConstructor;if(Bn&1)return D.createParenthesizedExpression(D.createVoidZero());if(J)return e.setTextRange(e.setOriginalNode(D.cloneNode(J),Fe),Fe)}return Fe}function ze(Fe){return Tn(Fe)||Fe}function Tn(Fe){if(se&1&&E.getNodeCheckFlags(Fe)&33554432){var Bn=E.getReferencedValueDeclaration(Fe);if(Bn){var J=w[Bn.id];if(J){var Cn=D.cloneNode(J);return e.setSourceMapRange(Cn,Fe),e.setCommentRange(Cn,Fe),Cn}}}}function On(Fe,Bn){if(e.isComputedPropertyName(Fe)){var J=e.visitNode(Fe.expression,m,e.isExpression),Cn=e.skipPartiallyEmittedExpressions(J),Gn=e.isSimpleInlineableExpression(Cn),cn=e.isAssignmentExpression(Cn)&&e.isGeneratedIdentifier(Cn.left);if(!cn&&!Gn&&Bn){var Rn=D.getGeneratedNameForNode(Fe);return E.getNodeCheckFlags(Fe)&524288?Z(Rn):de(Rn),D.createAssignment(Rn,J)}return Gn||e.isIdentifier(Cn)?void 0:J}}function ur(){U.push(d),d=void 0}function hr(){d=U.pop()}function wr(){return d||(d={facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0})}function Qr(){var Fe=wr();return Fe.privateIdentifierEnvironment||(Fe.privateIdentifierEnvironment={className:"",identifiers:new e.Map}),Fe.privateIdentifierEnvironment}function Ke(){return R||(R=[])}function jn(Fe){var Bn,J=e.getTextOfPropertyName(Fe.name),Cn=wr(),Gn=Cn.classConstructor,cn=Qr(),Rn=cn.weakSetName,Ye=[],xn=Fe.name.escapedText,an=cn.identifiers.get(xn),zn=!O(Fe.name)&&an===void 0;if(e.hasStaticModifier(Fe))if(e.Debug.assert(Gn,"weakSetName should be set in private identifier environment"),e.isPropertyDeclaration(Fe)){var ir=Me(J,Fe);cn.identifiers.set(xn,{kind:"f",variableName:ir,brandCheckIdentifier:Gn,isStatic:!0,isValid:zn})}else if(e.isMethodDeclaration(Fe)){var gr=Me(J,Fe);cn.identifiers.set(xn,{kind:"m",methodName:gr,brandCheckIdentifier:Gn,isStatic:!0,isValid:zn})}else if(e.isGetAccessorDeclaration(Fe)){var Dr=Me(J+"_get",Fe);(an==null?void 0:an.kind)==="a"&&an.isStatic&&!an.getterName?an.getterName=Dr:cn.identifiers.set(xn,{kind:"a",getterName:Dr,setterName:void 0,brandCheckIdentifier:Gn,isStatic:!0,isValid:zn})}else if(e.isSetAccessorDeclaration(Fe)){var qr=Me(J+"_set",Fe);(an==null?void 0:an.kind)==="a"&&an.isStatic&&!an.setterName?an.setterName=qr:cn.identifiers.set(xn,{kind:"a",getterName:void 0,setterName:qr,brandCheckIdentifier:Gn,isStatic:!0,isValid:zn})}else e.Debug.assertNever(Fe,"Unknown class element type.");else if(e.isPropertyDeclaration(Fe)){var ft=Me(J,Fe);cn.identifiers.set(xn,{kind:"f",brandCheckIdentifier:ft,isStatic:!1,variableName:void 0,isValid:zn}),Ye.push(D.createAssignment(ft,D.createNewExpression(D.createIdentifier("WeakMap"),void 0,[])))}else if(e.isMethodDeclaration(Fe))e.Debug.assert(Rn,"weakSetName should be set in private identifier environment"),cn.identifiers.set(xn,{kind:"m",methodName:Me(J,Fe),brandCheckIdentifier:Rn,isStatic:!1,isValid:zn});else if(e.isAccessor(Fe))if(e.Debug.assert(Rn,"weakSetName should be set in private identifier environment"),e.isGetAccessor(Fe)){var Dr=Me(J+"_get",Fe);(an==null?void 0:an.kind)==="a"&&!an.isStatic&&!an.getterName?an.getterName=Dr:cn.identifiers.set(xn,{kind:"a",getterName:Dr,setterName:void 0,brandCheckIdentifier:Rn,isStatic:!1,isValid:zn})}else{var qr=Me(J+"_set",Fe);(an==null?void 0:an.kind)==="a"&&!an.isStatic&&!an.setterName?an.setterName=qr:cn.identifiers.set(xn,{kind:"a",getterName:void 0,setterName:qr,brandCheckIdentifier:Rn,isStatic:!1,isValid:zn})}else e.Debug.assertNever(Fe,"Unknown class element type.");(Bn=Ke()).push.apply(Bn,Ye)}function Zn(Fe,Bn){var J=Qr().className,Cn=J?"_"+J:"",Gn=D.createUniqueName(Cn+"_"+Fe,16);return E.getNodeCheckFlags(Bn)&524288?Z(Gn):de(Gn),Gn}function Me(Fe,Bn){return Zn(Fe.substring(1),Bn.name)}function Mn(Fe){var Bn;if(d!=null&&d.privateIdentifierEnvironment){var J=d.privateIdentifierEnvironment.identifiers.get(Fe.escapedText);if(J)return J}for(var Cn=U.length-1;Cn>=0;--Cn){var Gn=U[Cn];if(Gn){var J=(Bn=Gn.privateIdentifierEnvironment)===null||Bn===void 0?void 0:Bn.identifiers.get(Fe.escapedText);if(J)return J}}}function ar(Fe){var Bn=D.getGeneratedNameForNode(Fe),J=Mn(Fe.name);if(!J)return e.visitEachChild(Fe,m,A);var Cn=Fe.expression;return(e.isThisProperty(Fe)||e.isSuperProperty(Fe)||!e.isSimpleCopiableExpression(Fe.expression))&&(Cn=D.createTempVariable(de,!0),Ke().push(D.createBinaryExpression(Cn,63,e.visitNode(Fe.expression,m,e.isExpression)))),D.createAssignmentTargetWrapper(Bn,we(J,Cn,Bn,63))}function Xn(Fe){var Bn=e.getTargetOfBindingOrAssignmentElement(Fe);if(Bn){var J=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(Bn))J=ar(Bn);else if(b&&e.isSuperProperty(Bn)&&g&&d){var Cn=d.classConstructor,Gn=d.superClassReference,cn=d.facts;if(cn&1)J=$e(Bn);else if(Cn&&Gn){var Rn=e.isElementAccessExpression(Bn)?e.visitNode(Bn.argumentExpression,m,e.isExpression):e.isIdentifier(Bn.name)?D.createStringLiteralFromNode(Bn.name):void 0;if(Rn){var Ye=D.createTempVariable(void 0);J=D.createAssignmentTargetWrapper(Ye,D.createReflectSetCall(Gn,Rn,Ye,Cn))}}}if(J)return e.isAssignmentExpression(Fe)?D.updateBinaryExpression(Fe,J,Fe.operatorToken,e.visitNode(Fe.right,m,e.isExpression)):e.isSpreadElement(Fe)?D.updateSpreadElement(Fe,J):J}return e.visitNode(Fe,P)}function yr(Fe){if(e.isObjectBindingOrAssignmentElement(Fe)&&!e.isShorthandPropertyAssignment(Fe)){var Bn=e.getTargetOfBindingOrAssignmentElement(Fe),J=void 0;if(Bn){if(e.isPrivateIdentifierPropertyAccessExpression(Bn))J=ar(Bn);else if(b&&e.isSuperProperty(Bn)&&g&&d){var Cn=d.classConstructor,Gn=d.superClassReference,cn=d.facts;if(cn&1)J=$e(Bn);else if(Cn&&Gn){var Rn=e.isElementAccessExpression(Bn)?e.visitNode(Bn.argumentExpression,m,e.isExpression):e.isIdentifier(Bn.name)?D.createStringLiteralFromNode(Bn.name):void 0;if(Rn){var Ye=D.createTempVariable(void 0);J=D.createAssignmentTargetWrapper(Ye,D.createReflectSetCall(Gn,Rn,Ye,Cn))}}}}if(e.isPropertyAssignment(Fe)){var xn=e.getInitializerOfBindingOrAssignmentElement(Fe);return D.updatePropertyAssignment(Fe,e.visitNode(Fe.name,m,e.isPropertyName),J?xn?D.createAssignment(J,e.visitNode(xn,m)):J:e.visitNode(Fe.initializer,P,e.isExpression))}if(e.isSpreadAssignment(Fe))return D.updateSpreadAssignment(Fe,J||e.visitNode(Fe.expression,P,e.isExpression));e.Debug.assert(J===void 0,"Should not have generated a wrapped target")}return e.visitNode(Fe,m)}function cr(Fe){return e.isArrayLiteralExpression(Fe)?D.updateArrayLiteralExpression(Fe,e.visitNodes(Fe.elements,Xn,e.isExpression)):D.updateObjectLiteralExpression(Fe,e.visitNodes(Fe.properties,yr,e.isObjectLiteralElementLike))}}e.transformClassFields=Y;function W(A,D){return e.factory.createAssignment(A,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",D||e.factory.createVoidZero())]))}function re(A,D,de){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(de,"set"),void 0,[A,D||e.factory.createVoidZero()])}function ye(A,D){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(D,"add"),void 0,[A])}function O(A){return A.escapedText==="#constructor"}})(vn||(vn={}));var vn;(function(e){var o;(function(W){W[W.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(o||(o={}));var ue;(function(W){W[W.NonTopLevel=1]="NonTopLevel",W[W.HasLexicalThis=2]="HasLexicalThis"})(ue||(ue={}));function $(W){var re=W.factory,ye=W.getEmitHelperFactory,O=W.resumeLexicalEnvironment,A=W.endLexicalEnvironment,D=W.hoistVariableDeclaration,de=W.getEmitResolver(),_e=W.getCompilerOptions(),y=e.getEmitScriptTarget(_e),V,Z=0,E,H,L,ee=[],k=0,b=W.onEmitNode,ie=W.onSubstituteNode;return W.onEmitNode=De,W.onSubstituteNode=en,e.chainBundle(W,q);function q(Qe){if(Qe.isDeclarationFile)return Qe;oe(1,!1),oe(2,!e.isEffectiveStrictModeSourceFile(Qe,_e));var Re=e.visitEachChild(Qe,C,W);return e.addEmitHelpers(Re,W.readEmitHelpers()),Re}function oe(Qe,Re){k=Re?k|Qe:k&~Qe}function se(Qe){return(k&Qe)!==0}function w(){return!se(1)}function R(){return se(2)}function ne(Qe,Re,He){var Ln=Qe&~k;if(Ln){oe(Ln,!0);var Un=Re(He);return oe(Ln,!1),Un}return Re(He)}function U(Qe){return e.visitEachChild(Qe,C,W)}function C(Qe){if(!(Qe.transformFlags&128))return Qe;switch(Qe.kind){case 130:return;case 216:return m(Qe);case 167:return ne(3,N,Qe);case 254:return ne(3,P,Qe);case 211:return ne(3,x,Qe);case 212:return ne(1,M,Qe);case 204:return H&&e.isPropertyAccessExpression(Qe)&&Qe.expression.kind===106&&H.add(Qe.name.escapedText),e.visitEachChild(Qe,C,W);case 205:return H&&Qe.expression.kind===106&&(L=!0),e.visitEachChild(Qe,C,W);case 170:case 171:case 169:case 255:case 224:return ne(3,U,Qe);default:return e.visitEachChild(Qe,C,W)}}function d(Qe){if(e.isNodeWithPossibleHoistedDeclaration(Qe))switch(Qe.kind){case 235:return g(Qe);case 240:return T(Qe);case 241:return p(Qe);case 242:return f(Qe);case 290:return G(Qe);case 233:case 247:case 261:case 287:case 288:case 250:case 238:case 239:case 237:case 246:case 248:return e.visitEachChild(Qe,d,W);default:return e.Debug.assertNever(Qe,"Unhandled node.")}return C(Qe)}function G(Qe){var Re=new e.Set;me(Qe.variableDeclaration,Re);var He;if(Re.forEach(function(fn,En){E.has(En)&&(He||(He=new e.Set(E)),He.delete(En))}),He){var Ln=E;E=He;var Un=e.visitEachChild(Qe,d,W);return E=Ln,Un}else return e.visitEachChild(Qe,d,W)}function g(Qe){if(z(Qe.declarationList)){var Re=K(Qe.declarationList,!1);return Re?re.createExpressionStatement(Re):void 0}return e.visitEachChild(Qe,C,W)}function p(Qe){return re.updateForInStatement(Qe,z(Qe.initializer)?K(Qe.initializer,!0):e.visitNode(Qe.initializer,C,e.isForInitializer),e.visitNode(Qe.expression,C,e.isExpression),e.visitIterationBody(Qe.statement,d,W))}function f(Qe){return re.updateForOfStatement(Qe,e.visitNode(Qe.awaitModifier,C,e.isToken),z(Qe.initializer)?K(Qe.initializer,!0):e.visitNode(Qe.initializer,C,e.isForInitializer),e.visitNode(Qe.expression,C,e.isExpression),e.visitIterationBody(Qe.statement,d,W))}function T(Qe){var Re=Qe.initializer;return re.updateForStatement(Qe,z(Re)?K(Re,!1):e.visitNode(Qe.initializer,C,e.isForInitializer),e.visitNode(Qe.condition,C,e.isExpression),e.visitNode(Qe.incrementor,C,e.isExpression),e.visitIterationBody(Qe.statement,d,W))}function m(Qe){return w()?e.visitEachChild(Qe,C,W):e.setOriginalNode(e.setTextRange(re.createYieldExpression(void 0,e.visitNode(Qe.expression,C,e.isExpression)),Qe),Qe)}function N(Qe){return re.updateMethodDeclaration(Qe,void 0,e.visitNodes(Qe.modifiers,C,e.isModifier),Qe.asteriskToken,Qe.name,void 0,void 0,e.visitParameterList(Qe.parameters,C,W),void 0,e.getFunctionFlags(Qe)&2?Se(Qe):e.visitFunctionBody(Qe.body,C,W))}function P(Qe){return re.updateFunctionDeclaration(Qe,void 0,e.visitNodes(Qe.modifiers,C,e.isModifier),Qe.asteriskToken,Qe.name,void 0,e.visitParameterList(Qe.parameters,C,W),void 0,e.getFunctionFlags(Qe)&2?Se(Qe):e.visitFunctionBody(Qe.body,C,W))}function x(Qe){return re.updateFunctionExpression(Qe,e.visitNodes(Qe.modifiers,C,e.isModifier),Qe.asteriskToken,Qe.name,void 0,e.visitParameterList(Qe.parameters,C,W),void 0,e.getFunctionFlags(Qe)&2?Se(Qe):e.visitFunctionBody(Qe.body,C,W))}function M(Qe){return re.updateArrowFunction(Qe,e.visitNodes(Qe.modifiers,C,e.isModifier),void 0,e.visitParameterList(Qe.parameters,C,W),void 0,Qe.equalsGreaterThanToken,e.getFunctionFlags(Qe)&2?Se(Qe):e.visitFunctionBody(Qe.body,C,W))}function me(Qe,Re){var He=Qe.name;if(e.isIdentifier(He))Re.add(He.escapedText);else for(var Ln=0,Un=He.elements;Ln<Un.length;Ln++){var fn=Un[Ln];e.isOmittedExpression(fn)||me(fn,Re)}}function z(Qe){return!!Qe&&e.isVariableDeclarationList(Qe)&&!(Qe.flags&3)&&Qe.declarations.some(te)}function K(Qe,Re){I(Qe);var He=e.getInitializedVariables(Qe);return He.length===0?Re?e.visitNode(re.converters.convertToAssignmentElementTarget(Qe.declarations[0].name),C,e.isExpression):void 0:re.inlineExpressions(e.map(He,Oe))}function I(Qe){e.forEach(Qe.declarations,Ae)}function Ae(Qe){var Re=Qe.name;if(e.isIdentifier(Re))D(Re);else for(var He=0,Ln=Re.elements;He<Ln.length;He++){var Un=Ln[He];e.isOmittedExpression(Un)||Ae(Un)}}function Oe(Qe){var Re=e.setSourceMapRange(re.createAssignment(re.converters.convertToAssignmentElementTarget(Qe.name),Qe.initializer),Qe);return e.visitNode(Re,C,e.isExpression)}function te(Qe){var Re=Qe.name;if(e.isIdentifier(Re))return E.has(Re.escapedText);for(var He=0,Ln=Re.elements;He<Ln.length;He++){var Un=Ln[He];if(!e.isOmittedExpression(Un)&&te(Un))return!0}return!1}function Se(Qe){O();var Re=e.getOriginalNode(Qe,e.isFunctionLike),He=Re.type,Ln=y<2?Ce(He):void 0,Un=Qe.kind===212,fn=(de.getNodeCheckFlags(Qe)&8192)!==0,En=E;E=new e.Set;for(var i=0,In=Qe.parameters;i<In.length;i++){var X=In[i];me(X,E)}var rn=H,$n=L;Un||(H=new e.Set,L=!1);var Vn;if(Un){var Le=ye().createAwaiterHelper(R(),fn,Ln,be(Qe.body)),$e=A();if(e.some($e)){var hn=re.converters.convertToFunctionBlock(Le);Vn=re.updateBlock(hn,e.setTextRange(re.createNodeArray(e.concatenate($e,hn.statements)),hn.statements))}else Vn=Le}else{var le=[],Pe=re.copyPrologue(Qe.body.statements,le,!1,C);le.push(re.createReturnStatement(ye().createAwaiterHelper(R(),fn,Ln,be(Qe.body,Pe)))),e.insertStatementsAfterStandardPrologue(le,A());var xe=y>=2&&de.getNodeCheckFlags(Qe)&6144;if(xe&&(Be(),H.size)){var Ze=Y(re,de,Qe,H);ee[e.getNodeId(Ze)]=!0,e.insertStatementsAfterStandardPrologue(le,[Ze])}var hn=re.createBlock(le,!0);e.setTextRange(hn,Qe.body),xe&&L&&(de.getNodeCheckFlags(Qe)&4096?e.addEmitHelper(hn,e.advancedAsyncSuperHelper):de.getNodeCheckFlags(Qe)&2048&&e.addEmitHelper(hn,e.asyncSuperHelper)),Vn=hn}return E=En,Un||(H=rn,L=$n),Vn}function be(Qe,Re){return e.isBlock(Qe)?re.updateBlock(Qe,e.visitNodes(Qe.statements,d,e.isStatement,Re)):re.converters.convertToFunctionBlock(e.visitNode(Qe,d,e.isConciseBody))}function Ce(Qe){var Re=Qe&&e.getEntityNameFromTypeNode(Qe);if(Re&&e.isEntityName(Re)){var He=de.getTypeReferenceSerializationKind(Re);if(He===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||He===e.TypeReferenceSerializationKind.Unknown)return Re}}function Be(){V&1||(V|=1,W.enableSubstitution(206),W.enableSubstitution(204),W.enableSubstitution(205),W.enableEmitNotification(255),W.enableEmitNotification(167),W.enableEmitNotification(170),W.enableEmitNotification(171),W.enableEmitNotification(169),W.enableEmitNotification(235))}function De(Qe,Re,He){if(V&1&&we(Re)){var Ln=de.getNodeCheckFlags(Re)&6144;if(Ln!==Z){var Un=Z;Z=Ln,b(Qe,Re,He),Z=Un;return}}else if(V&&ee[e.getNodeId(Re)]){var Un=Z;Z=0,b(Qe,Re,He),Z=Un;return}b(Qe,Re,He)}function en(Qe,Re){return Re=ie(Qe,Re),Qe===1&&Z?fe(Re):Re}function fe(Qe){switch(Qe.kind){case 204:return Ne(Qe);case 205:return qe(Qe);case 206:return pe(Qe)}return Qe}function Ne(Qe){return Qe.expression.kind===106?e.setTextRange(re.createPropertyAccessExpression(re.createUniqueName("_super",48),Qe.name),Qe):Qe}function qe(Qe){return Qe.expression.kind===106?pn(Qe.argumentExpression,Qe):Qe}function pe(Qe){var Re=Qe.expression;if(e.isSuperProperty(Re)){var He=e.isPropertyAccessExpression(Re)?Ne(Re):qe(Re);return re.createCallExpression(re.createPropertyAccessExpression(He,"call"),void 0,Vr([re.createThis()],Qe.arguments,!0))}return Qe}function we(Qe){var Re=Qe.kind;return Re===255||Re===169||Re===167||Re===170||Re===171}function pn(Qe,Re){return Z&4096?e.setTextRange(re.createPropertyAccessExpression(re.createCallExpression(re.createUniqueName("_superIndex",48),void 0,[Qe]),"value"),Re):e.setTextRange(re.createCallExpression(re.createUniqueName("_superIndex",48),void 0,[Qe]),Re)}}e.transformES2017=$;function Y(W,re,ye,O){var A=(re.getNodeCheckFlags(ye)&4096)!==0,D=[];return O.forEach(function(de,_e){var y=e.unescapeLeadingUnderscores(_e),V=[];V.push(W.createPropertyAssignment("get",W.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(W.createPropertyAccessExpression(e.setEmitFlags(W.createSuper(),4),y),4)))),A&&V.push(W.createPropertyAssignment("set",W.createArrowFunction(void 0,void 0,[W.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,W.createAssignment(e.setEmitFlags(W.createPropertyAccessExpression(e.setEmitFlags(W.createSuper(),4),y),4),W.createIdentifier("v"))))),D.push(W.createPropertyAssignment(y,W.createObjectLiteralExpression(V)))}),W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(W.createUniqueName("_super",48),void 0,void 0,W.createCallExpression(W.createPropertyAccessExpression(W.createIdentifier("Object"),"create"),void 0,[W.createNull(),W.createObjectLiteralExpression(D,!0)]))],2))}e.createSuperAccessVariableStatement=Y})(vn||(vn={}));var vn;(function(e){var o;(function(Y){Y[Y.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(o||(o={}));var ue;(function(Y){Y[Y.None=0]="None",Y[Y.HasLexicalThis=1]="HasLexicalThis",Y[Y.IterationContainer=2]="IterationContainer",Y[Y.AncestorFactsMask=3]="AncestorFactsMask",Y[Y.SourceFileIncludes=1]="SourceFileIncludes",Y[Y.SourceFileExcludes=2]="SourceFileExcludes",Y[Y.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",Y[Y.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",Y[Y.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",Y[Y.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",Y[Y.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",Y[Y.IterationStatementIncludes=2]="IterationStatementIncludes",Y[Y.IterationStatementExcludes=0]="IterationStatementExcludes"})(ue||(ue={}));function $(Y){var W=Y.factory,re=Y.getEmitHelperFactory,ye=Y.resumeLexicalEnvironment,O=Y.endLexicalEnvironment,A=Y.hoistVariableDeclaration,D=Y.getEmitResolver(),de=Y.getCompilerOptions(),_e=e.getEmitScriptTarget(de),y=Y.onEmitNode;Y.onEmitNode=rn;var V=Y.onSubstituteNode;Y.onSubstituteNode=$n;var Z=!1,E,H,L=0,ee=0,k,b,ie,q,oe=[];return e.chainBundle(Y,U);function se(Le,$e){return ee!==(ee&~Le|$e)}function w(Le,$e){var An=ee;return ee=(ee&~Le|$e)&3,An}function R(Le){ee=Le}function ne(Le){b=e.append(b,W.createVariableDeclaration(Le))}function U(Le){if(Le.isDeclarationFile)return Le;k=Le;var $e=K(Le);return e.addEmitHelpers($e,Y.readEmitHelpers()),k=void 0,b=void 0,$e}function C(Le){return f(Le,!1)}function d(Le){return f(Le,!0)}function G(Le){if(Le.kind!==130)return Le}function g(Le,$e,An,Ue){if(se(An,Ue)){var gn=w(An,Ue),Wn=Le($e);return R(gn),Wn}return Le($e)}function p(Le){return e.visitEachChild(Le,C,Y)}function f(Le,$e){if(!(Le.transformFlags&64))return Le;switch(Le.kind){case 216:return T(Le);case 222:return m(Le);case 245:return N(Le);case 248:return P(Le);case 203:return M(Le);case 219:return Ae(Le,$e);case 346:return Oe(Le,$e);case 290:return te(Le);case 235:return Se(Le);case 252:return be(Le);case 238:case 239:case 241:return g(p,Le,0,2);case 242:return en(Le,void 0);case 240:return g(Be,Le,0,2);case 215:return De(Le);case 169:return g(pn,Le,2,1);case 167:return g(He,Le,2,1);case 170:return g(Qe,Le,2,1);case 171:return g(Re,Le,2,1);case 254:return g(Ln,Le,2,1);case 211:return g(fn,Le,2,1);case 212:return g(Un,Le,2,0);case 162:return we(Le);case 236:return me(Le);case 210:return z(Le,$e);case 208:return I(Le);case 204:return ie&&e.isPropertyAccessExpression(Le)&&Le.expression.kind===106&&ie.add(Le.name.escapedText),e.visitEachChild(Le,C,Y);case 205:return ie&&Le.expression.kind===106&&(q=!0),e.visitEachChild(Le,C,Y);case 255:case 224:return g(p,Le,2,1);default:return e.visitEachChild(Le,C,Y)}}function T(Le){return H&2&&H&1?e.setOriginalNode(e.setTextRange(W.createYieldExpression(void 0,re().createAwaitHelper(e.visitNode(Le.expression,C,e.isExpression))),Le),Le):e.visitEachChild(Le,C,Y)}function m(Le){if(H&2&&H&1){if(Le.asteriskToken){var $e=e.visitNode(e.Debug.assertDefined(Le.expression),C,e.isExpression);return e.setOriginalNode(e.setTextRange(W.createYieldExpression(void 0,re().createAwaitHelper(W.updateYieldExpression(Le,Le.asteriskToken,e.setTextRange(re().createAsyncDelegatorHelper(e.setTextRange(re().createAsyncValuesHelper($e),$e)),$e)))),Le),Le)}return e.setOriginalNode(e.setTextRange(W.createYieldExpression(void 0,qe(Le.expression?e.visitNode(Le.expression,C,e.isExpression):W.createVoidZero())),Le),Le)}return e.visitEachChild(Le,C,Y)}function N(Le){return H&2&&H&1?W.updateReturnStatement(Le,qe(Le.expression?e.visitNode(Le.expression,C,e.isExpression):W.createVoidZero())):e.visitEachChild(Le,C,Y)}function P(Le){if(H&2){var $e=e.unwrapInnermostStatementOfLabel(Le);return $e.kind===242&&$e.awaitModifier?en($e,Le):W.restoreEnclosingLabel(e.visitNode($e,C,e.isStatement,W.liftToBlock),Le)}return e.visitEachChild(Le,C,Y)}function x(Le){for(var $e,An=[],Ue=0,gn=Le;Ue<gn.length;Ue++){var Wn=gn[Ue];if(Wn.kind===293){$e&&(An.push(W.createObjectLiteralExpression($e)),$e=void 0);var ze=Wn.expression;An.push(e.visitNode(ze,C,e.isExpression))}else $e=e.append($e,Wn.kind===291?W.createPropertyAssignment(Wn.name,e.visitNode(Wn.initializer,C,e.isExpression)):e.visitNode(Wn,C,e.isObjectLiteralElementLike))}return $e&&An.push(W.createObjectLiteralExpression($e)),An}function M(Le){if(Le.transformFlags&32768){var $e=x(Le.properties);$e.length&&$e[0].kind!==203&&$e.unshift(W.createObjectLiteralExpression());var An=$e[0];if($e.length>1){for(var Ue=1;Ue<$e.length;Ue++)An=re().createAssignHelper([An,$e[Ue]]);return An}else return re().createAssignHelper($e)}return e.visitEachChild(Le,C,Y)}function me(Le){return e.visitEachChild(Le,d,Y)}function z(Le,$e){return e.visitEachChild(Le,$e?d:C,Y)}function K(Le){var $e=w(2,e.isEffectiveStrictModeSourceFile(Le,de)?0:1);Z=!1;var An=e.visitEachChild(Le,C,Y),Ue=e.concatenate(An.statements,b&&[W.createVariableStatement(void 0,W.createVariableDeclarationList(b))]),gn=W.updateSourceFile(An,e.setTextRange(W.createNodeArray(Ue),Le.statements));return R($e),gn}function I(Le){return e.processTaggedTemplateExpression(Y,Le,C,k,ne,e.ProcessLevel.LiftRestriction)}function Ae(Le,$e){return e.isDestructuringAssignment(Le)&&Le.left.transformFlags&32768?e.flattenDestructuringAssignment(Le,C,Y,1,!$e):Le.operatorToken.kind===27?W.updateBinaryExpression(Le,e.visitNode(Le.left,d,e.isExpression),Le.operatorToken,e.visitNode(Le.right,$e?d:C,e.isExpression)):e.visitEachChild(Le,C,Y)}function Oe(Le,$e){if($e)return e.visitEachChild(Le,d,Y);for(var An,Ue=0;Ue<Le.elements.length;Ue++){var gn=Le.elements[Ue],Wn=e.visitNode(gn,Ue<Le.elements.length-1?d:C,e.isExpression);(An||Wn!==gn)&&(An||(An=Le.elements.slice(0,Ue)),An.push(Wn))}var ze=An?e.setTextRange(W.createNodeArray(An),Le.elements):Le.elements;return W.updateCommaListExpression(Le,ze)}function te(Le){if(Le.variableDeclaration&&e.isBindingPattern(Le.variableDeclaration.name)&&Le.variableDeclaration.name.transformFlags&32768){var $e=W.getGeneratedNameForNode(Le.variableDeclaration.name),An=W.updateVariableDeclaration(Le.variableDeclaration,Le.variableDeclaration.name,void 0,void 0,$e),Ue=e.flattenDestructuringBinding(An,C,Y,1),gn=e.visitNode(Le.block,C,e.isBlock);return e.some(Ue)&&(gn=W.updateBlock(gn,Vr([W.createVariableStatement(void 0,Ue)],gn.statements,!0))),W.updateCatchClause(Le,W.updateVariableDeclaration(Le.variableDeclaration,$e,void 0,void 0,void 0),gn)}return e.visitEachChild(Le,C,Y)}function Se(Le){if(e.hasSyntacticModifier(Le,1)){var $e=Z;Z=!0;var An=e.visitEachChild(Le,C,Y);return Z=$e,An}return e.visitEachChild(Le,C,Y)}function be(Le){if(Z){var $e=Z;Z=!1;var An=Ce(Le,!0);return Z=$e,An}return Ce(Le,!1)}function Ce(Le,$e){return e.isBindingPattern(Le.name)&&Le.name.transformFlags&32768?e.flattenDestructuringBinding(Le,C,Y,1,void 0,$e):e.visitEachChild(Le,C,Y)}function Be(Le){return W.updateForStatement(Le,e.visitNode(Le.initializer,d,e.isForInitializer),e.visitNode(Le.condition,C,e.isExpression),e.visitNode(Le.incrementor,d,e.isExpression),e.visitIterationBody(Le.statement,C,Y))}function De(Le){return e.visitEachChild(Le,d,Y)}function en(Le,$e){var An=w(0,2);Le.initializer.transformFlags&32768&&(Le=fe(Le));var Ue=Le.awaitModifier?pe(Le,$e,An):W.restoreEnclosingLabel(e.visitEachChild(Le,C,Y),$e);return R(An),Ue}function fe(Le){var $e=e.skipParentheses(Le.initializer);if(e.isVariableDeclarationList($e)||e.isAssignmentPattern($e)){var An=void 0,Ue=void 0,gn=W.createTempVariable(void 0),Wn=[e.createForOfBindingStatement(W,$e,gn)];return e.isBlock(Le.statement)?(e.addRange(Wn,Le.statement.statements),An=Le.statement,Ue=Le.statement.statements):Le.statement&&(e.append(Wn,Le.statement),An=Le.statement,Ue=Le.statement),W.updateForOfStatement(Le,Le.awaitModifier,e.setTextRange(W.createVariableDeclarationList([e.setTextRange(W.createVariableDeclaration(gn),Le.initializer)],1),Le.initializer),Le.expression,e.setTextRange(W.createBlock(e.setTextRange(W.createNodeArray(Wn),Ue),!0),An))}return Le}function Ne(Le,$e){var An=e.createForOfBindingStatement(W,Le.initializer,$e),Ue,gn,Wn=[e.visitNode(An,C,e.isStatement)],ze=e.visitIterationBody(Le.statement,C,Y);return e.isBlock(ze)?(e.addRange(Wn,ze.statements),Ue=ze,gn=ze.statements):Wn.push(ze),e.setEmitFlags(e.setTextRange(W.createBlock(e.setTextRange(W.createNodeArray(Wn),gn),!0),Ue),432)}function qe(Le){return H&1?W.createYieldExpression(void 0,re().createAwaitHelper(Le)):W.createAwaitExpression(Le)}function pe(Le,$e,An){var Ue=e.visitNode(Le.expression,C,e.isExpression),gn=e.isIdentifier(Ue)?W.getGeneratedNameForNode(Ue):W.createTempVariable(void 0),Wn=e.isIdentifier(Ue)?W.getGeneratedNameForNode(gn):W.createTempVariable(void 0),ze=W.createUniqueName("e"),Tn=W.getGeneratedNameForNode(ze),On=W.createTempVariable(void 0),ur=e.setTextRange(re().createAsyncValuesHelper(Ue),Le.expression),hr=W.createCallExpression(W.createPropertyAccessExpression(gn,"next"),void 0,[]),wr=W.createPropertyAccessExpression(Wn,"done"),Qr=W.createPropertyAccessExpression(Wn,"value"),Ke=W.createFunctionCallCall(On,gn,[]);A(ze),A(On);var jn=An&2?W.inlineExpressions([W.createAssignment(ze,W.createVoidZero()),ur]):ur,Zn=e.setEmitFlags(e.setTextRange(W.createForStatement(e.setEmitFlags(e.setTextRange(W.createVariableDeclarationList([e.setTextRange(W.createVariableDeclaration(gn,void 0,void 0,jn),Le.expression),W.createVariableDeclaration(Wn)]),Le.expression),2097152),W.createComma(W.createAssignment(Wn,qe(hr)),W.createLogicalNot(wr)),void 0,Ne(Le,Qr)),Le),256);return W.createTryStatement(W.createBlock([W.restoreEnclosingLabel(Zn,$e)]),W.createCatchClause(W.createVariableDeclaration(Tn),e.setEmitFlags(W.createBlock([W.createExpressionStatement(W.createAssignment(ze,W.createObjectLiteralExpression([W.createPropertyAssignment("error",Tn)])))]),1)),W.createBlock([W.createTryStatement(W.createBlock([e.setEmitFlags(W.createIfStatement(W.createLogicalAnd(W.createLogicalAnd(Wn,W.createLogicalNot(wr)),W.createAssignment(On,W.createPropertyAccessExpression(gn,"return"))),W.createExpressionStatement(qe(Ke))),1)]),void 0,e.setEmitFlags(W.createBlock([e.setEmitFlags(W.createIfStatement(ze,W.createThrowStatement(W.createPropertyAccessExpression(ze,"error"))),1)]),1))]))}function we(Le){return Le.transformFlags&32768?W.updateParameterDeclaration(Le,void 0,void 0,Le.dotDotDotToken,W.getGeneratedNameForNode(Le),void 0,void 0,e.visitNode(Le.initializer,C,e.isExpression)):e.visitEachChild(Le,C,Y)}function pn(Le){var $e=H;H=0;var An=W.updateConstructorDeclaration(Le,void 0,Le.modifiers,e.visitParameterList(Le.parameters,C,Y),i(Le));return H=$e,An}function Qe(Le){var $e=H;H=0;var An=W.updateGetAccessorDeclaration(Le,void 0,Le.modifiers,e.visitNode(Le.name,C,e.isPropertyName),e.visitParameterList(Le.parameters,C,Y),void 0,i(Le));return H=$e,An}function Re(Le){var $e=H;H=0;var An=W.updateSetAccessorDeclaration(Le,void 0,Le.modifiers,e.visitNode(Le.name,C,e.isPropertyName),e.visitParameterList(Le.parameters,C,Y),i(Le));return H=$e,An}function He(Le){var $e=H;H=e.getFunctionFlags(Le);var An=W.updateMethodDeclaration(Le,void 0,H&1?e.visitNodes(Le.modifiers,G,e.isModifier):Le.modifiers,H&2?void 0:Le.asteriskToken,e.visitNode(Le.name,C,e.isPropertyName),e.visitNode(void 0,C,e.isToken),void 0,e.visitParameterList(Le.parameters,C,Y),void 0,H&2&&H&1?En(Le):i(Le));return H=$e,An}function Ln(Le){var $e=H;H=e.getFunctionFlags(Le);var An=W.updateFunctionDeclaration(Le,void 0,H&1?e.visitNodes(Le.modifiers,G,e.isModifier):Le.modifiers,H&2?void 0:Le.asteriskToken,Le.name,void 0,e.visitParameterList(Le.parameters,C,Y),void 0,H&2&&H&1?En(Le):i(Le));return H=$e,An}function Un(Le){var $e=H;H=e.getFunctionFlags(Le);var An=W.updateArrowFunction(Le,Le.modifiers,void 0,e.visitParameterList(Le.parameters,C,Y),void 0,Le.equalsGreaterThanToken,i(Le));return H=$e,An}function fn(Le){var $e=H;H=e.getFunctionFlags(Le);var An=W.updateFunctionExpression(Le,H&1?e.visitNodes(Le.modifiers,G,e.isModifier):Le.modifiers,H&2?void 0:Le.asteriskToken,Le.name,void 0,e.visitParameterList(Le.parameters,C,Y),void 0,H&2&&H&1?En(Le):i(Le));return H=$e,An}function En(Le){ye();var $e=[],An=W.copyPrologue(Le.body.statements,$e,!1,C);In($e,Le);var Ue=ie,gn=q;ie=new e.Set,q=!1;var Wn=W.createReturnStatement(re().createAsyncGeneratorHelper(W.createFunctionExpression(void 0,W.createToken(41),Le.name&&W.getGeneratedNameForNode(Le.name),void 0,[],void 0,W.updateBlock(Le.body,e.visitLexicalEnvironment(Le.body.statements,C,Y,An))),!!(ee&1))),ze=_e>=2&&D.getNodeCheckFlags(Le)&6144;if(ze){X();var Tn=e.createSuperAccessVariableStatement(W,D,Le,ie);oe[e.getNodeId(Tn)]=!0,e.insertStatementsAfterStandardPrologue($e,[Tn])}$e.push(Wn),e.insertStatementsAfterStandardPrologue($e,O());var On=W.updateBlock(Le.body,$e);return ze&&q&&(D.getNodeCheckFlags(Le)&4096?e.addEmitHelper(On,e.advancedAsyncSuperHelper):D.getNodeCheckFlags(Le)&2048&&e.addEmitHelper(On,e.asyncSuperHelper)),ie=Ue,q=gn,On}function i(Le){var $e;ye();var An=0,Ue=[],gn=($e=e.visitNode(Le.body,C,e.isConciseBody))!==null&&$e!==void 0?$e:W.createBlock([]);e.isBlock(gn)&&(An=W.copyPrologue(gn.statements,Ue,!1,C)),e.addRange(Ue,In(void 0,Le));var Wn=O();if(An>0||e.some(Ue)||e.some(Wn)){var ze=W.converters.convertToFunctionBlock(gn,!0);return e.insertStatementsAfterStandardPrologue(Ue,Wn),e.addRange(Ue,ze.statements.slice(An)),W.updateBlock(ze,e.setTextRange(W.createNodeArray(Ue),ze.statements))}return gn}function In(Le,$e){for(var An=0,Ue=$e.parameters;An<Ue.length;An++){var gn=Ue[An];if(gn.transformFlags&32768){var Wn=W.getGeneratedNameForNode(gn),ze=e.flattenDestructuringBinding(gn,C,Y,1,Wn,!1,!0);if(e.some(ze)){var Tn=W.createVariableStatement(void 0,W.createVariableDeclarationList(ze));e.setEmitFlags(Tn,1048576),Le=e.append(Le,Tn)}}}return Le}function X(){E&1||(E|=1,Y.enableSubstitution(206),Y.enableSubstitution(204),Y.enableSubstitution(205),Y.enableEmitNotification(255),Y.enableEmitNotification(167),Y.enableEmitNotification(170),Y.enableEmitNotification(171),Y.enableEmitNotification(169),Y.enableEmitNotification(235))}function rn(Le,$e,An){if(E&1&&Ze($e)){var Ue=D.getNodeCheckFlags($e)&6144;if(Ue!==L){var gn=L;L=Ue,y(Le,$e,An),L=gn;return}}else if(E&&oe[e.getNodeId($e)]){var gn=L;L=0,y(Le,$e,An),L=gn;return}y(Le,$e,An)}function $n(Le,$e){return $e=V(Le,$e),Le===1&&L?Vn($e):$e}function Vn(Le){switch(Le.kind){case 204:return le(Le);case 205:return Pe(Le);case 206:return xe(Le)}return Le}function le(Le){return Le.expression.kind===106?e.setTextRange(W.createPropertyAccessExpression(W.createUniqueName("_super",48),Le.name),Le):Le}function Pe(Le){return Le.expression.kind===106?hn(Le.argumentExpression,Le):Le}function xe(Le){var $e=Le.expression;if(e.isSuperProperty($e)){var An=e.isPropertyAccessExpression($e)?le($e):Pe($e);return W.createCallExpression(W.createPropertyAccessExpression(An,"call"),void 0,Vr([W.createThis()],Le.arguments,!0))}return Le}function Ze(Le){var $e=Le.kind;return $e===255||$e===169||$e===167||$e===170||$e===171}function hn(Le,$e){return L&4096?e.setTextRange(W.createPropertyAccessExpression(W.createCallExpression(W.createIdentifier("_superIndex"),void 0,[Le]),"value"),$e):e.setTextRange(W.createCallExpression(W.createIdentifier("_superIndex"),void 0,[Le]),$e)}}e.transformES2018=$})(vn||(vn={}));var vn;(function(e){function o(ue){var $=ue.factory;return e.chainBundle(ue,Y);function Y(ye){return ye.isDeclarationFile?ye:e.visitEachChild(ye,W,ue)}function W(ye){if(!(ye.transformFlags&32))return ye;switch(ye.kind){case 290:return re(ye);default:return e.visitEachChild(ye,W,ue)}}function re(ye){return ye.variableDeclaration?e.visitEachChild(ye,W,ue):$.updateCatchClause(ye,$.createVariableDeclaration($.createTempVariable(void 0)),e.visitNode(ye.block,W,e.isBlock))}}e.transformES2019=o})(vn||(vn={}));var vn;(function(e){function o(ue){var $=ue.factory,Y=ue.hoistVariableDeclaration;return e.chainBundle(ue,W);function W(E){return E.isDeclarationFile?E:e.visitEachChild(E,re,ue)}function re(E){if(!(E.transformFlags&16))return E;switch(E.kind){case 206:{var H=D(E,!1);return e.Debug.assertNotNode(H,e.isSyntheticReference),H}case 204:case 205:if(e.isOptionalChain(E)){var H=_e(E,!1,!1);return e.Debug.assertNotNode(H,e.isSyntheticReference),H}return e.visitEachChild(E,re,ue);case 219:return E.operatorToken.kind===60?V(E):e.visitEachChild(E,re,ue);case 213:return Z(E);default:return e.visitEachChild(E,re,ue)}}function ye(E){e.Debug.assertNotNode(E,e.isNonNullChain);for(var H=[E];!E.questionDotToken&&!e.isTaggedTemplateExpression(E);)E=e.cast(e.skipPartiallyEmittedExpressions(E.expression),e.isOptionalChain),e.Debug.assertNotNode(E,e.isNonNullChain),H.unshift(E);return{expression:E.expression,chain:H}}function O(E,H,L){var ee=de(E.expression,H,L);return e.isSyntheticReference(ee)?$.createSyntheticReferenceExpression($.updateParenthesizedExpression(E,ee.expression),ee.thisArg):$.updateParenthesizedExpression(E,ee)}function A(E,H,L){if(e.isOptionalChain(E))return _e(E,H,L);var ee=e.visitNode(E.expression,re,e.isExpression);e.Debug.assertNotNode(ee,e.isSyntheticReference);var k;return H&&(e.isSimpleCopiableExpression(ee)?k=ee:(k=$.createTempVariable(Y),ee=$.createAssignment(k,ee))),ee=E.kind===204?$.updatePropertyAccessExpression(E,ee,e.visitNode(E.name,re,e.isIdentifier)):$.updateElementAccessExpression(E,ee,e.visitNode(E.argumentExpression,re,e.isExpression)),k?$.createSyntheticReferenceExpression(ee,k):ee}function D(E,H){if(e.isOptionalChain(E))return _e(E,H,!1);if(e.isParenthesizedExpression(E.expression)&&e.isOptionalChain(e.skipParentheses(E.expression))){var L=O(E.expression,!0,!1),ee=e.visitNodes(E.arguments,re,e.isExpression);return e.isSyntheticReference(L)?e.setTextRange($.createFunctionCallCall(L.expression,L.thisArg,ee),E):$.updateCallExpression(E,L,void 0,ee)}return e.visitEachChild(E,re,ue)}function de(E,H,L){switch(E.kind){case 210:return O(E,H,L);case 204:case 205:return A(E,H,L);case 206:return D(E,H);default:return e.visitNode(E,re,e.isExpression)}}function _e(E,H,L){var ee=ye(E),k=ee.expression,b=ee.chain,ie=de(k,e.isCallChain(b[0]),!1),q=e.isSyntheticReference(ie)?ie.thisArg:void 0,oe=e.isSyntheticReference(ie)?ie.expression:ie,se=oe;e.isSimpleCopiableExpression(oe)||(se=$.createTempVariable(Y),oe=$.createAssignment(se,oe));for(var w=se,R,ne=0;ne<b.length;ne++){var U=b[ne];switch(U.kind){case 204:case 205:ne===b.length-1&&H&&(e.isSimpleCopiableExpression(w)?R=w:(R=$.createTempVariable(Y),w=$.createAssignment(R,w))),w=U.kind===204?$.createPropertyAccessExpression(w,e.visitNode(U.name,re,e.isIdentifier)):$.createElementAccessExpression(w,e.visitNode(U.argumentExpression,re,e.isExpression));break;case 206:ne===0&&q?w=$.createFunctionCallCall(w,q.kind===106?$.createThis():q,e.visitNodes(U.arguments,re,e.isExpression)):w=$.createCallExpression(w,void 0,e.visitNodes(U.arguments,re,e.isExpression));break}e.setOriginalNode(w,U)}var C=L?$.createConditionalExpression(y(oe,se,!0),void 0,$.createTrue(),void 0,$.createDeleteExpression(w)):$.createConditionalExpression(y(oe,se,!0),void 0,$.createVoidZero(),void 0,w);return e.setTextRange(C,E),R?$.createSyntheticReferenceExpression(C,R):C}function y(E,H,L){return $.createBinaryExpression($.createBinaryExpression(E,$.createToken(L?36:37),$.createNull()),$.createToken(L?56:55),$.createBinaryExpression(H,$.createToken(L?36:37),$.createVoidZero()))}function V(E){var H=e.visitNode(E.left,re,e.isExpression),L=H;return e.isSimpleCopiableExpression(H)||(L=$.createTempVariable(Y),H=$.createAssignment(L,H)),e.setTextRange($.createConditionalExpression(y(H,L),void 0,L,void 0,e.visitNode(E.right,re,e.isExpression)),E)}function Z(E){return e.isOptionalChain(e.skipParentheses(E.expression))?e.setOriginalNode(de(E.expression,!1,!0),E):$.updateDeleteExpression(E,e.visitNode(E.expression,re,e.isExpression))}}e.transformES2020=o})(vn||(vn={}));var vn;(function(e){function o(ue){var $=ue.hoistVariableDeclaration,Y=ue.factory;return e.chainBundle(ue,W);function W(O){return O.isDeclarationFile?O:e.visitEachChild(O,re,ue)}function re(O){if(!(O.transformFlags&8))return O;switch(O.kind){case 219:var A=O;if(e.isLogicalOrCoalescingAssignmentExpression(A))return ye(A);default:return e.visitEachChild(O,re,ue)}}function ye(O){var A=O.operatorToken,D=e.getNonAssignmentOperatorForCompoundAssignment(A.kind),de=e.skipParentheses(e.visitNode(O.left,re,e.isLeftHandSideExpression)),_e=de,y=e.skipParentheses(e.visitNode(O.right,re,e.isExpression));if(e.isAccessExpression(de)){var V=e.isSimpleCopiableExpression(de.expression),Z=V?de.expression:Y.createTempVariable($),E=V?de.expression:Y.createAssignment(Z,de.expression);if(e.isPropertyAccessExpression(de))_e=Y.createPropertyAccessExpression(Z,de.name),de=Y.createPropertyAccessExpression(E,de.name);else{var H=e.isSimpleCopiableExpression(de.argumentExpression),L=H?de.argumentExpression:Y.createTempVariable($);_e=Y.createElementAccessExpression(Z,L),de=Y.createElementAccessExpression(E,H?de.argumentExpression:Y.createAssignment(L,de.argumentExpression))}}return Y.createBinaryExpression(de,D,Y.createParenthesizedExpression(Y.createAssignment(_e,y)))}}e.transformES2021=o})(vn||(vn={}));var vn;(function(e){function o(ue){return e.chainBundle(ue,$);function $(W){return W.isDeclarationFile?W:e.visitEachChild(W,Y,ue)}function Y(W){if(!(W.transformFlags&4))return W;switch(W.kind){default:return e.visitEachChild(W,Y,ue)}}}e.transformESNext=o})(vn||(vn={}));var vn;(function(e){function o($){var Y=$.factory,W=$.getEmitHelperFactory,re=$.getCompilerOptions(),ye,O;return e.chainBundle($,V);function A(){if(O.filenameDeclaration)return O.filenameDeclaration.name;var M=Y.createVariableDeclaration(Y.createUniqueName("_jsxFileName",48),void 0,void 0,Y.createStringLiteral(ye.fileName));return O.filenameDeclaration=M,O.filenameDeclaration.name}function D(M){return re.jsx===5?"jsxDEV":M>1?"jsxs":"jsx"}function de(M){var me=D(M);return y(me)}function _e(){return y("Fragment")}function y(M){var me,z,K=M==="createElement"?O.importSpecifier:e.getJSXRuntimeImport(O.importSpecifier,re),I=(z=(me=O.utilizedImplicitRuntimeImports)===null||me===void 0?void 0:me.get(K))===null||z===void 0?void 0:z.get(M);if(I)return I.name;O.utilizedImplicitRuntimeImports||(O.utilizedImplicitRuntimeImports=e.createMap());var Ae=O.utilizedImplicitRuntimeImports.get(K);Ae||(Ae=e.createMap(),O.utilizedImplicitRuntimeImports.set(K,Ae));var Oe=Y.createUniqueName("_"+M,112),te=Y.createImportSpecifier(Y.createIdentifier(M),Oe);return Oe.generatedImportReference=te,Ae.set(M,te),Oe}function V(M){if(M.isDeclarationFile)return M;ye=M,O={},O.importSpecifier=e.getJSXImplicitImportBase(re,M);var me=e.visitEachChild(M,Z,$);e.addEmitHelpers(me,$.readEmitHelpers());var z=me.statements;if(O.filenameDeclaration&&(z=e.insertStatementAfterCustomPrologue(z.slice(),Y.createVariableStatement(void 0,Y.createVariableDeclarationList([O.filenameDeclaration],2)))),O.utilizedImplicitRuntimeImports)for(var K=0,I=e.arrayFrom(O.utilizedImplicitRuntimeImports.entries());K<I.length;K++){var Ae=I[K],Oe=Ae[0],te=Ae[1];if(e.isExternalModule(M)){var Se=Y.createImportDeclaration(void 0,void 0,Y.createImportClause(!1,void 0,Y.createNamedImports(e.arrayFrom(te.values()))),Y.createStringLiteral(Oe));e.setParentRecursive(Se,!1),z=e.insertStatementAfterCustomPrologue(z.slice(),Se)}else if(e.isExternalOrCommonJsModule(M)){var be=Y.createVariableStatement(void 0,Y.createVariableDeclarationList([Y.createVariableDeclaration(Y.createObjectBindingPattern(e.map(e.arrayFrom(te.values()),function(Ce){return Y.createBindingElement(void 0,Ce.propertyName,Ce.name)})),void 0,void 0,Y.createCallExpression(Y.createIdentifier("require"),void 0,[Y.createStringLiteral(Oe)]))],2));e.setParentRecursive(be,!1),z=e.insertStatementAfterCustomPrologue(z.slice(),be)}}return z!==me.statements&&(me=Y.updateSourceFile(me,z)),O=void 0,me}function Z(M){return M.transformFlags&2?E(M):M}function E(M){switch(M.kind){case 276:return k(M,!1);case 277:return b(M,!1);case 280:return ie(M,!1);case 286:return x(M);default:return e.visitEachChild(M,Z,$)}}function H(M){switch(M.kind){case 11:return g(M);case 286:return x(M);case 276:return k(M,!0);case 277:return b(M,!0);case 280:return ie(M,!0);default:return e.Debug.failBadSyntaxKind(M)}}function L(M){for(var me=!1,z=0,K=M.attributes.properties;z<K.length;z++){var I=K[z];if(e.isJsxSpreadAttribute(I))me=!0;else if(me&&e.isJsxAttribute(I)&&I.name.escapedText==="key")return!0}return!1}function ee(M){return O.importSpecifier===void 0||L(M)}function k(M,me){var z=ee(M.openingElement)?w:oe;return z(M.openingElement,M.children,me,M)}function b(M,me){var z=ee(M)?w:oe;return z(M,void 0,me,M)}function ie(M,me){var z=O.importSpecifier===void 0?ne:R;return z(M.openingFragment,M.children,me,M)}function q(M){var me=e.getSemanticJsxChildren(M);if(e.length(me)===1){var z=H(me[0]);return z&&Y.createObjectLiteralExpression([Y.createPropertyAssignment("children",z)])}var K=e.mapDefined(M,H);return K.length?Y.createObjectLiteralExpression([Y.createPropertyAssignment("children",Y.createArrayLiteralExpression(K))]):void 0}function oe(M,me,z,K){var I=N(M),Ae,Oe=e.find(M.attributes.properties,function(Ce){return!!Ce.name&&e.isIdentifier(Ce.name)&&Ce.name.escapedText==="key"}),te=Oe?e.filter(M.attributes.properties,function(Ce){return Ce!==Oe}):M.attributes.properties,Se=[];if(te.length&&(Se=e.flatten(e.spanMap(te,e.isJsxSpreadAttribute,function(Ce,Be){return Be?e.map(Ce,C):Y.createObjectLiteralExpression(e.map(Ce,d))})),e.isJsxSpreadAttribute(te[0])&&Se.unshift(Y.createObjectLiteralExpression())),me&&me.length){var be=q(me);be&&Se.push(be)}return Se.length===0?Ae=Y.createObjectLiteralExpression([]):Ae=e.singleOrUndefined(Se)||W().createAssignHelper(Se),se(I,Ae,Oe,e.length(e.getSemanticJsxChildren(me||e.emptyArray)),z,K)}function se(M,me,z,K,I,Ae){var Oe=[M,me,z?G(z.initializer):Y.createVoidZero()];if(re.jsx===5){var te=e.getOriginalNode(ye);if(te&&e.isSourceFile(te)){Oe.push(K>1?Y.createTrue():Y.createFalse());var Se=e.getLineAndCharacterOfPosition(te,Ae.pos);Oe.push(Y.createObjectLiteralExpression([Y.createPropertyAssignment("fileName",A()),Y.createPropertyAssignment("lineNumber",Y.createNumericLiteral(Se.line+1)),Y.createPropertyAssignment("columnNumber",Y.createNumericLiteral(Se.character+1))])),Oe.push(Y.createThis())}}var be=e.setTextRange(Y.createCallExpression(de(K),void 0,Oe),Ae);return I&&e.startOnNewLine(be),be}function w(M,me,z,K){var I=N(M),Ae,Oe=M.attributes.properties;if(Oe.length===0)Ae=Y.createNull();else{var te=re.target;if(te&&te>=5)Ae=Y.createObjectLiteralExpression(e.flatten(e.spanMap(Oe,e.isJsxSpreadAttribute,function(Be,De){return De?e.map(Be,U):e.map(Be,d)})));else{var Se=e.flatten(e.spanMap(Oe,e.isJsxSpreadAttribute,function(Be,De){return De?e.map(Be,C):Y.createObjectLiteralExpression(e.map(Be,d))}));e.isJsxSpreadAttribute(Oe[0])&&Se.unshift(Y.createObjectLiteralExpression()),Ae=e.singleOrUndefined(Se),Ae||(Ae=W().createAssignHelper(Se))}}var be=O.importSpecifier===void 0?e.createJsxFactoryExpression(Y,$.getEmitResolver().getJsxFactoryEntity(ye),re.reactNamespace,M):y("createElement"),Ce=e.createExpressionForJsxElement(Y,be,I,Ae,e.mapDefined(me,H),K);return z&&e.startOnNewLine(Ce),Ce}function R(M,me,z,K){var I;if(me&&me.length){var Ae=q(me);Ae&&(I=Ae)}return se(_e(),I||Y.createObjectLiteralExpression([]),void 0,e.length(e.getSemanticJsxChildren(me)),z,K)}function ne(M,me,z,K){var I=e.createExpressionForJsxFragment(Y,$.getEmitResolver().getJsxFactoryEntity(ye),$.getEmitResolver().getJsxFragmentFactoryEntity(ye),re.reactNamespace,e.mapDefined(me,H),M,K);return z&&e.startOnNewLine(I),I}function U(M){return Y.createSpreadAssignment(e.visitNode(M.expression,Z,e.isExpression))}function C(M){return e.visitNode(M.expression,Z,e.isExpression)}function d(M){var me=P(M),z=G(M.initializer);return Y.createPropertyAssignment(me,z)}function G(M){if(M===void 0)return Y.createTrue();if(M.kind===10){var me=M.singleQuote!==void 0?M.singleQuote:!e.isStringDoubleQuoted(M,ye),z=Y.createStringLiteral(m(M.text)||M.text,me);return e.setTextRange(z,M)}else return M.kind===286?M.expression===void 0?Y.createTrue():e.visitNode(M.expression,Z,e.isExpression):e.Debug.failBadSyntaxKind(M)}function g(M){var me=p(M.text);return me===void 0?void 0:Y.createStringLiteral(me)}function p(M){for(var me,z=0,K=-1,I=0;I<M.length;I++){var Ae=M.charCodeAt(I);e.isLineBreak(Ae)?(z!==-1&&K!==-1&&(me=f(me,M.substr(z,K-z+1))),z=-1):e.isWhiteSpaceSingleLine(Ae)||(K=I,z===-1&&(z=I))}return z!==-1?f(me,M.substr(z)):me}function f(M,me){var z=T(me);return M===void 0?z:M+" "+z}function T(M){return M.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(me,z,K,I,Ae,Oe,te){if(Ae)return e.utf16EncodeAsString(parseInt(Ae,10));if(Oe)return e.utf16EncodeAsString(parseInt(Oe,16));var Se=ue.get(te);return Se?e.utf16EncodeAsString(Se):me})}function m(M){var me=T(M);return me===M?void 0:me}function N(M){if(M.kind===276)return N(M.openingElement);var me=M.tagName;return e.isIdentifier(me)&&e.isIntrinsicJsxName(me.escapedText)?Y.createStringLiteral(e.idText(me)):e.createExpressionFromEntityName(Y,me)}function P(M){var me=M.name,z=e.idText(me);return/^[A-Za-z_]\w*$/.test(z)?me:Y.createStringLiteral(z)}function x(M){return e.visitNode(M.expression,Z,e.isExpression)}}e.transformJsx=o;var ue=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))})(vn||(vn={}));var vn;(function(e){function o(ue){var $=ue.factory,Y=ue.hoistVariableDeclaration;return e.chainBundle(ue,W);function W(D){return D.isDeclarationFile?D:e.visitEachChild(D,re,ue)}function re(D){if(!(D.transformFlags&256))return D;switch(D.kind){case 219:return ye(D);default:return e.visitEachChild(D,re,ue)}}function ye(D){switch(D.operatorToken.kind){case 67:return O(D);case 42:return A(D);default:return e.visitEachChild(D,re,ue)}}function O(D){var de,_e,y=e.visitNode(D.left,re,e.isExpression),V=e.visitNode(D.right,re,e.isExpression);if(e.isElementAccessExpression(y)){var Z=$.createTempVariable(Y),E=$.createTempVariable(Y);de=e.setTextRange($.createElementAccessExpression(e.setTextRange($.createAssignment(Z,y.expression),y.expression),e.setTextRange($.createAssignment(E,y.argumentExpression),y.argumentExpression)),y),_e=e.setTextRange($.createElementAccessExpression(Z,E),y)}else if(e.isPropertyAccessExpression(y)){var Z=$.createTempVariable(Y);de=e.setTextRange($.createPropertyAccessExpression(e.setTextRange($.createAssignment(Z,y.expression),y.expression),y.name),y),_e=e.setTextRange($.createPropertyAccessExpression(Z,y.name),y)}else de=y,_e=y;return e.setTextRange($.createAssignment(de,e.setTextRange($.createGlobalMethodCall("Math","pow",[_e,V]),D)),D)}function A(D){var de=e.visitNode(D.left,re,e.isExpression),_e=e.visitNode(D.right,re,e.isExpression);return e.setTextRange($.createGlobalMethodCall("Math","pow",[de,_e]),D)}}e.transformES2016=o})(vn||(vn={}));var vn;(function(e){var o;(function(A){A[A.CapturedThis=1]="CapturedThis",A[A.BlockScopedBindings=2]="BlockScopedBindings"})(o||(o={}));var ue;(function(A){A[A.Body=1]="Body",A[A.Initializer=2]="Initializer"})(ue||(ue={}));var $;(function(A){A[A.ToOriginal=0]="ToOriginal",A[A.ToOutParameter=1]="ToOutParameter"})($||($={}));var Y;(function(A){A[A.Break=2]="Break",A[A.Continue=4]="Continue",A[A.Return=8]="Return"})(Y||(Y={}));var W;(function(A){A[A.None=0]="None",A[A.Function=1]="Function",A[A.ArrowFunction=2]="ArrowFunction",A[A.AsyncFunctionBody=4]="AsyncFunctionBody",A[A.NonStaticClassElement=8]="NonStaticClassElement",A[A.CapturesThis=16]="CapturesThis",A[A.ExportedVariableStatement=32]="ExportedVariableStatement",A[A.TopLevel=64]="TopLevel",A[A.Block=128]="Block",A[A.IterationStatement=256]="IterationStatement",A[A.IterationStatementBlock=512]="IterationStatementBlock",A[A.IterationContainer=1024]="IterationContainer",A[A.ForStatement=2048]="ForStatement",A[A.ForInOrForOfStatement=4096]="ForInOrForOfStatement",A[A.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",A[A.StaticInitializer=16384]="StaticInitializer",A[A.AncestorFactsMask=32767]="AncestorFactsMask",A[A.BlockScopeIncludes=0]="BlockScopeIncludes",A[A.BlockScopeExcludes=7104]="BlockScopeExcludes",A[A.SourceFileIncludes=64]="SourceFileIncludes",A[A.SourceFileExcludes=8064]="SourceFileExcludes",A[A.FunctionIncludes=65]="FunctionIncludes",A[A.FunctionExcludes=32670]="FunctionExcludes",A[A.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",A[A.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",A[A.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",A[A.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",A[A.ConstructorIncludes=73]="ConstructorIncludes",A[A.ConstructorExcludes=32662]="ConstructorExcludes",A[A.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",A[A.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",A[A.ForStatementIncludes=3328]="ForStatementIncludes",A[A.ForStatementExcludes=5056]="ForStatementExcludes",A[A.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",A[A.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",A[A.BlockIncludes=128]="BlockIncludes",A[A.BlockExcludes=6976]="BlockExcludes",A[A.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",A[A.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",A[A.StaticInitializerIncludes=16449]="StaticInitializerIncludes",A[A.StaticInitializerExcludes=32670]="StaticInitializerExcludes",A[A.NewTarget=32768]="NewTarget",A[A.CapturedLexicalThis=65536]="CapturedLexicalThis",A[A.SubtreeFactsMask=-32768]="SubtreeFactsMask",A[A.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",A[A.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"})(W||(W={}));var re;(function(A){A[A.None=0]="None",A[A.UnpackedSpread=1]="UnpackedSpread",A[A.PackedSpread=2]="PackedSpread"})(re||(re={}));function ye(A,D){return{kind:A,expression:D}}function O(A){var D=A.factory,de=A.getEmitHelperFactory,_e=A.startLexicalEnvironment,y=A.resumeLexicalEnvironment,V=A.endLexicalEnvironment,Z=A.hoistVariableDeclaration,E=A.getCompilerOptions(),H=A.getEmitResolver(),L=A.onSubstituteNode,ee=A.onEmitNode;A.onEmitNode=Uo,A.onSubstituteNode=Jo;var k,b,ie,q;function oe(ce){q=e.append(q,D.createVariableDeclaration(ce))}var se,w;return e.chainBundle(A,R);function R(ce){if(ce.isDeclarationFile)return ce;k=ce,b=ce.text;var dn=N(ce);return e.addEmitHelpers(dn,A.readEmitHelpers()),k=void 0,b=void 0,q=void 0,ie=0,dn}function ne(ce,dn){var j=ie;return ie=(ie&~ce|dn)&32767,j}function U(ce,dn,j){ie=(ie&~dn|j)&-32768|ce}function C(ce){return(ie&8192)!==0&&ce.kind===245&&!ce.expression}function d(ce){return ce.transformFlags&2097152&&(e.isReturnStatement(ce)||e.isIfStatement(ce)||e.isWithStatement(ce)||e.isSwitchStatement(ce)||e.isCaseBlock(ce)||e.isCaseClause(ce)||e.isDefaultClause(ce)||e.isTryStatement(ce)||e.isCatchClause(ce)||e.isLabeledStatement(ce)||e.isIterationStatement(ce,!1)||e.isBlock(ce))}function G(ce){return(ce.transformFlags&512)!==0||se!==void 0||ie&8192&&d(ce)||e.isIterationStatement(ce,!1)&&an(ce)||(e.getEmitFlags(ce)&33554432)!==0}function g(ce){return G(ce)?m(ce,!1):ce}function p(ce){return G(ce)?m(ce,!0):ce}function f(ce){if(G(ce)){var dn=e.getOriginalNode(ce);if(e.isPropertyDeclaration(dn)&&e.hasStaticModifier(dn)){var j=ne(32670,16449),Ie=m(ce,!1);return U(j,98304,0),Ie}return m(ce,!1)}return ce}function T(ce){return ce.kind===106?Io(!0):g(ce)}function m(ce,dn){switch(ce.kind){case 124:return;case 255:return Oe(ce);case 224:return te(ce);case 162:return we(ce);case 254:return xe(ce);case 212:return le(ce);case 211:return Pe(ce);case 252:return wr(ce);case 79:return I(ce);case 253:return Tn(ce);case 247:return P(ce);case 261:return x(ce);case 233:return Le(ce,!1);case 244:case 243:return Ae(ce);case 248:return jn(ce);case 238:case 239:return Mn(ce,void 0);case 240:return ar(ce,void 0);case 241:return yr(ce,void 0);case 242:return cr(ce,void 0);case 236:return $e(ce);case 203:return Gn(ce);case 290:return Lr(ce);case 292:return or(ce);case 160:return $t(ce);case 202:return li(ce);case 206:return zi(ce);case 207:return uo(ce);case 210:return An(ce,dn);case 219:return Ue(ce,dn);case 346:return gn(ce,dn);case 14:case 15:case 16:case 17:return qi(ce);case 10:return Qi(ce);case 8:return as(ce);case 208:return gs(ce);case 221:return Da(ce);case 222:return Va(ce);case 223:return Ho(ce);case 106:return Io(!1);case 108:return z(ce);case 229:return Bo(ce);case 167:return nt(ce);case 170:case 171:return vt(ce);case 235:return ze(ce);case 245:return me(ce);case 215:return K(ce);default:return e.visitEachChild(ce,g,A)}}function N(ce){var dn=ne(8064,64),j=[],Ie=[];_e();var We=D.copyPrologue(ce.statements,j,!1,g);return e.addRange(Ie,e.visitNodes(ce.statements,g,e.isStatement,We)),q&&Ie.push(D.createVariableStatement(void 0,D.createVariableDeclarationList(q))),D.mergeLexicalEnvironment(j,V()),fn(j,ce),U(dn,0,0),D.updateSourceFile(ce,e.setTextRange(D.createNodeArray(e.concatenate(j,Ie)),ce.statements))}function P(ce){if(se!==void 0){var dn=se.allowedNonLabeledJumps;se.allowedNonLabeledJumps|=2;var j=e.visitEachChild(ce,g,A);return se.allowedNonLabeledJumps=dn,j}return e.visitEachChild(ce,g,A)}function x(ce){var dn=ne(7104,0),j=e.visitEachChild(ce,g,A);return U(dn,0,0),j}function M(ce){return e.setOriginalNode(D.createReturnStatement(D.createUniqueName("_this",48)),ce)}function me(ce){return se?(se.nonLocalJumps|=8,C(ce)&&(ce=M(ce)),D.createReturnStatement(D.createObjectLiteralExpression([D.createPropertyAssignment(D.createIdentifier("value"),ce.expression?e.visitNode(ce.expression,g,e.isExpression):D.createVoidZero())]))):C(ce)?M(ce):e.visitEachChild(ce,g,A)}function z(ce){return ie&2&&!(ie&16384)&&(ie|=65536),se?ie&2?(se.containsLexicalThis=!0,ce):se.thisName||(se.thisName=D.createUniqueName("this")):ce}function K(ce){return e.visitEachChild(ce,p,A)}function I(ce){return se&&H.isArgumentsLocalBinding(ce)?se.argumentsName||(se.argumentsName=D.createUniqueName("arguments")):ce}function Ae(ce){if(se){var dn=ce.kind===244?2:4,j=ce.label&&se.labels&&se.labels.get(e.idText(ce.label))||!ce.label&&se.allowedNonLabeledJumps&dn;if(!j){var Ie=void 0,We=ce.label;We?ce.kind===244?(Ie="break-"+We.escapedText,ua(se,!0,e.idText(We),Ie)):(Ie="continue-"+We.escapedText,ua(se,!1,e.idText(We),Ie)):ce.kind===244?(se.nonLocalJumps|=2,Ie="break"):(se.nonLocalJumps|=4,Ie="continue");var sn=D.createStringLiteral(Ie);if(se.loopOutParameters.length){for(var Hn=se.loopOutParameters,vr=void 0,Sr=0;Sr<Hn.length;Sr++){var ot=ri(Hn[Sr],1);Sr===0?vr=ot:vr=D.createBinaryExpression(vr,27,ot)}sn=D.createBinaryExpression(vr,27,sn)}return D.createReturnStatement(sn)}}return e.visitEachChild(ce,g,A)}function Oe(ce){var dn=D.createVariableDeclaration(D.getLocalName(ce,!0),void 0,void 0,Se(ce));e.setOriginalNode(dn,ce);var j=[],Ie=D.createVariableStatement(void 0,D.createVariableDeclarationList([dn]));if(e.setOriginalNode(Ie,ce),e.setTextRange(Ie,ce),e.startOnNewLine(Ie),j.push(Ie),e.hasSyntacticModifier(ce,1)){var We=e.hasSyntacticModifier(ce,512)?D.createExportDefault(D.getLocalName(ce)):D.createExternalModuleExport(D.getLocalName(ce));e.setOriginalNode(We,Ie),j.push(We)}var sn=e.getEmitFlags(ce);return sn&4194304||(j.push(D.createEndOfDeclarationMarker(ce)),e.setEmitFlags(Ie,sn|4194304)),e.singleOrMany(j)}function te(ce){return Se(ce)}function Se(ce){ce.name&&cs();var dn=e.getClassExtendsHeritageElement(ce),j=D.createFunctionExpression(void 0,void 0,void 0,void 0,dn?[D.createParameterDeclaration(void 0,void 0,void 0,D.createUniqueName("_super",48))]:[],void 0,be(ce,dn));e.setEmitFlags(j,e.getEmitFlags(ce)&65536|524288);var Ie=D.createPartiallyEmittedExpression(j);e.setTextRangeEnd(Ie,ce.end),e.setEmitFlags(Ie,1536);var We=D.createPartiallyEmittedExpression(Ie);e.setTextRangeEnd(We,e.skipTrivia(b,ce.pos)),e.setEmitFlags(We,1536);var sn=D.createParenthesizedExpression(D.createCallExpression(We,void 0,dn?[e.visitNode(dn.expression,g,e.isExpression)]:[]));return e.addSyntheticLeadingComment(sn,3,"* @class "),sn}function be(ce,dn){var j=[],Ie=D.getInternalName(ce),We=e.isIdentifierANonContextualKeyword(Ie)?D.getGeneratedNameForNode(Ie):Ie;_e(),Ce(j,ce,dn),Be(j,ce,We,dn),In(j,ce);var sn=e.createTokenRange(e.skipTrivia(b,ce.members.end),19),Hn=D.createPartiallyEmittedExpression(We);e.setTextRangeEnd(Hn,sn.end),e.setEmitFlags(Hn,1536);var vr=D.createReturnStatement(Hn);e.setTextRangePos(vr,sn.pos),e.setEmitFlags(vr,1920),j.push(vr),e.insertStatementsAfterStandardPrologue(j,V());var Sr=D.createBlock(e.setTextRange(D.createNodeArray(j),ce.members),!0);return e.setEmitFlags(Sr,1536),Sr}function Ce(ce,dn,j){j&&ce.push(e.setTextRange(D.createExpressionStatement(de().createExtendsHelper(D.getInternalName(dn))),j))}function Be(ce,dn,j,Ie){var We=se;se=void 0;var sn=ne(32662,73),Hn=e.getFirstConstructorWithBody(dn),vr=Ve(Hn,Ie!==void 0),Sr=D.createFunctionDeclaration(void 0,void 0,void 0,j,void 0,De(Hn,vr),void 0,fe(Hn,dn,Ie,vr));e.setTextRange(Sr,Hn||dn),Ie&&e.setEmitFlags(Sr,8),ce.push(Sr),U(sn,98304,0),se=We}function De(ce,dn){return e.visitParameterList(ce&&!dn?ce.parameters:void 0,g,A)||[]}function en(ce,dn){var j=[];y(),D.mergeLexicalEnvironment(j,V()),dn&&j.push(D.createReturnStatement(pe()));var Ie=D.createNodeArray(j);e.setTextRange(Ie,ce.members);var We=D.createBlock(Ie,!0);return e.setTextRange(We,ce),e.setEmitFlags(We,1536),We}function fe(ce,dn,j,Ie){var We=!!j&&e.skipOuterExpressions(j.expression).kind!==104;if(!ce)return en(dn,We);var sn=[],Hn=[];y();var vr=0;Ie||(vr=D.copyStandardPrologue(ce.body.statements,sn,!1)),Qe(Hn,ce),Un(Hn,ce,Ie),Ie||(vr=D.copyCustomPrologue(ce.body.statements,Hn,vr,g));var Sr;if(Ie)Sr=pe();else if(We&&vr<ce.body.statements.length){var ot=ce.body.statements[vr];e.isExpressionStatement(ot)&&e.isSuperCall(ot.expression)&&(Sr=di(ot.expression))}if(Sr&&(ie|=8192,vr++),e.addRange(Hn,e.visitNodes(ce.body.statements,g,e.isStatement,vr)),D.mergeLexicalEnvironment(sn,V()),i(sn,ce,!1),We)if(Sr&&vr===ce.body.statements.length&&!(ce.body.transformFlags&8192)){var Et=e.cast(e.cast(Sr,e.isBinaryExpression).left,e.isCallExpression),ra=D.createReturnStatement(Sr);e.setCommentRange(ra,e.getCommentRange(Et)),e.setEmitFlags(Et,1536),Hn.push(ra)}else En(Hn,ce,Sr||qe()),Ne(ce.body)||Hn.push(D.createReturnStatement(D.createUniqueName("_this",48)));else fn(sn,ce);var Na=D.createBlock(e.setTextRange(D.createNodeArray(e.concatenate(sn,Hn)),ce.body.statements),!0);return e.setTextRange(Na,ce.body),Na}function Ne(ce){if(ce.kind===245)return!0;if(ce.kind===237){var dn=ce;if(dn.elseStatement)return Ne(dn.thenStatement)&&Ne(dn.elseStatement)}else if(ce.kind===233){var j=e.lastOrUndefined(ce.statements);if(j&&Ne(j))return!0}return!1}function qe(){return e.setEmitFlags(D.createThis(),4)}function pe(){return D.createLogicalOr(D.createLogicalAnd(D.createStrictInequality(D.createUniqueName("_super",48),D.createNull()),D.createFunctionApplyCall(D.createUniqueName("_super",48),qe(),D.createIdentifier("arguments"))),qe())}function we(ce){if(!ce.dotDotDotToken)return e.isBindingPattern(ce.name)?e.setOriginalNode(e.setTextRange(D.createParameterDeclaration(void 0,void 0,void 0,D.getGeneratedNameForNode(ce),void 0,void 0,void 0),ce),ce):ce.initializer?e.setOriginalNode(e.setTextRange(D.createParameterDeclaration(void 0,void 0,void 0,ce.name,void 0,void 0,void 0),ce),ce):ce}function pn(ce){return ce.initializer!==void 0||e.isBindingPattern(ce.name)}function Qe(ce,dn){if(!e.some(dn.parameters,pn))return!1;for(var j=!1,Ie=0,We=dn.parameters;Ie<We.length;Ie++){var sn=We[Ie],Hn=sn.name,vr=sn.initializer,Sr=sn.dotDotDotToken;Sr||(e.isBindingPattern(Hn)?j=Re(ce,sn,Hn,vr)||j:vr&&(He(ce,sn,Hn,vr),j=!0))}return j}function Re(ce,dn,j,Ie){return j.elements.length>0?(e.insertStatementAfterCustomPrologue(ce,e.setEmitFlags(D.createVariableStatement(void 0,D.createVariableDeclarationList(e.flattenDestructuringBinding(dn,g,A,0,D.getGeneratedNameForNode(dn)))),1048576)),!0):Ie?(e.insertStatementAfterCustomPrologue(ce,e.setEmitFlags(D.createExpressionStatement(D.createAssignment(D.getGeneratedNameForNode(dn),e.visitNode(Ie,g,e.isExpression))),1048576)),!0):!1}function He(ce,dn,j,Ie){Ie=e.visitNode(Ie,g,e.isExpression);var We=D.createIfStatement(D.createTypeCheck(D.cloneNode(j),"undefined"),e.setEmitFlags(e.setTextRange(D.createBlock([D.createExpressionStatement(e.setEmitFlags(e.setTextRange(D.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(D.cloneNode(j),j),j.parent),48),e.setEmitFlags(Ie,48|e.getEmitFlags(Ie)|1536)),dn),1536))]),dn),1953));e.startOnNewLine(We),e.setTextRange(We,dn),e.setEmitFlags(We,1050528),e.insertStatementAfterCustomPrologue(ce,We)}function Ln(ce,dn){return!!(ce&&ce.dotDotDotToken&&!dn)}function Un(ce,dn,j){var Ie=[],We=e.lastOrUndefined(dn.parameters);if(!Ln(We,j))return!1;var sn=We.name.kind===79?e.setParent(e.setTextRange(D.cloneNode(We.name),We.name),We.name.parent):D.createTempVariable(void 0);e.setEmitFlags(sn,48);var Hn=We.name.kind===79?D.cloneNode(We.name):sn,vr=dn.parameters.length-1,Sr=D.createLoopVariable();Ie.push(e.setEmitFlags(e.setTextRange(D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(sn,void 0,void 0,D.createArrayLiteralExpression([]))])),We),1048576));var ot=D.createForStatement(e.setTextRange(D.createVariableDeclarationList([D.createVariableDeclaration(Sr,void 0,void 0,D.createNumericLiteral(vr))]),We),e.setTextRange(D.createLessThan(Sr,D.createPropertyAccessExpression(D.createIdentifier("arguments"),"length")),We),e.setTextRange(D.createPostfixIncrement(Sr),We),D.createBlock([e.startOnNewLine(e.setTextRange(D.createExpressionStatement(D.createAssignment(D.createElementAccessExpression(Hn,vr===0?Sr:D.createSubtract(Sr,D.createNumericLiteral(vr))),D.createElementAccessExpression(D.createIdentifier("arguments"),Sr))),We))]));return e.setEmitFlags(ot,1048576),e.startOnNewLine(ot),Ie.push(ot),We.name.kind!==79&&Ie.push(e.setEmitFlags(e.setTextRange(D.createVariableStatement(void 0,D.createVariableDeclarationList(e.flattenDestructuringBinding(We,g,A,0,Hn))),We),1048576)),e.insertStatementsAfterCustomPrologue(ce,Ie),!0}function fn(ce,dn){return ie&65536&&dn.kind!==212?(En(ce,dn,D.createThis()),!0):!1}function En(ce,dn,j){us();var Ie=D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(D.createUniqueName("_this",48),void 0,void 0,j)]));e.setEmitFlags(Ie,1050112),e.setSourceMapRange(Ie,dn),e.insertStatementAfterCustomPrologue(ce,Ie)}function i(ce,dn,j){if(ie&32768){var Ie=void 0;switch(dn.kind){case 212:return ce;case 167:case 170:case 171:Ie=D.createVoidZero();break;case 169:Ie=D.createPropertyAccessExpression(e.setEmitFlags(D.createThis(),4),"constructor");break;case 254:case 211:Ie=D.createConditionalExpression(D.createLogicalAnd(e.setEmitFlags(D.createThis(),4),D.createBinaryExpression(e.setEmitFlags(D.createThis(),4),102,D.getLocalName(dn))),void 0,D.createPropertyAccessExpression(e.setEmitFlags(D.createThis(),4),"constructor"),void 0,D.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(dn)}var We=D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(D.createUniqueName("_newTarget",48),void 0,void 0,Ie)]));e.setEmitFlags(We,1050112),j&&(ce=ce.slice()),e.insertStatementAfterCustomPrologue(ce,We)}return ce}function In(ce,dn){for(var j=0,Ie=dn.members;j<Ie.length;j++){var We=Ie[j];switch(We.kind){case 232:ce.push(X(We));break;case 167:ce.push(rn(va(dn,We),We,dn));break;case 170:case 171:var sn=e.getAllAccessorDeclarations(dn.members,We);We===sn.firstAccessor&&ce.push($n(va(dn,We),sn,dn));break;case 169:case 168:break;default:e.Debug.failBadSyntaxKind(We,k&&k.fileName);break}}}function X(ce){return e.setTextRange(D.createEmptyStatement(),ce)}function rn(ce,dn,j){var Ie=e.getCommentRange(dn),We=e.getSourceMapRange(dn),sn=Ze(dn,dn,void 0,j),Hn=e.visitNode(dn.name,g,e.isPropertyName),vr;if(!e.isPrivateIdentifier(Hn)&&e.getUseDefineForClassFields(A.getCompilerOptions())){var Sr=e.isComputedPropertyName(Hn)?Hn.expression:e.isIdentifier(Hn)?D.createStringLiteral(e.unescapeLeadingUnderscores(Hn.escapedText)):Hn;vr=D.createObjectDefinePropertyCall(ce,Sr,D.createPropertyDescriptor({value:sn,enumerable:!1,writable:!0,configurable:!0}))}else{var ot=e.createMemberAccessForPropertyName(D,ce,Hn,dn.name);vr=D.createAssignment(ot,sn)}e.setEmitFlags(sn,1536),e.setSourceMapRange(sn,We);var Et=e.setTextRange(D.createExpressionStatement(vr),dn);return e.setOriginalNode(Et,dn),e.setCommentRange(Et,Ie),e.setEmitFlags(Et,48),Et}function $n(ce,dn,j){var Ie=D.createExpressionStatement(Vn(ce,dn,j,!1));return e.setEmitFlags(Ie,1536),e.setSourceMapRange(Ie,e.getSourceMapRange(dn.firstAccessor)),Ie}function Vn(ce,dn,j,Ie){var We=dn.firstAccessor,sn=dn.getAccessor,Hn=dn.setAccessor,vr=e.setParent(e.setTextRange(D.cloneNode(ce),ce),ce.parent);e.setEmitFlags(vr,1568),e.setSourceMapRange(vr,We.name);var Sr=e.visitNode(We.name,g,e.isPropertyName);if(e.isPrivateIdentifier(Sr))return e.Debug.failBadSyntaxKind(Sr,"Encountered unhandled private identifier while transforming ES2015.");var ot=e.createExpressionForPropertyName(D,Sr);e.setEmitFlags(ot,1552),e.setSourceMapRange(ot,We.name);var Et=[];if(sn){var ra=Ze(sn,void 0,void 0,j);e.setSourceMapRange(ra,e.getSourceMapRange(sn)),e.setEmitFlags(ra,512);var Na=D.createPropertyAssignment("get",ra);e.setCommentRange(Na,e.getCommentRange(sn)),Et.push(Na)}if(Hn){var ei=Ze(Hn,void 0,void 0,j);e.setSourceMapRange(ei,e.getSourceMapRange(Hn)),e.setEmitFlags(ei,512);var Li=D.createPropertyAssignment("set",ei);e.setCommentRange(Li,e.getCommentRange(Hn)),Et.push(Li)}Et.push(D.createPropertyAssignment("enumerable",sn||Hn?D.createFalse():D.createTrue()),D.createPropertyAssignment("configurable",D.createTrue()));var Zi=D.createCallExpression(D.createPropertyAccessExpression(D.createIdentifier("Object"),"defineProperty"),void 0,[vr,ot,D.createObjectLiteralExpression(Et,!0)]);return Ie&&e.startOnNewLine(Zi),Zi}function le(ce){ce.transformFlags&8192&&!(ie&16384)&&(ie|=65536);var dn=se;se=void 0;var j=ne(15232,66),Ie=D.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(ce.parameters,g,A),void 0,hn(ce));return e.setTextRange(Ie,ce),e.setOriginalNode(Ie,ce),e.setEmitFlags(Ie,8),U(j,0,0),se=dn,Ie}function Pe(ce){var dn=e.getEmitFlags(ce)&262144?ne(32662,69):ne(32670,65),j=se;se=void 0;var Ie=e.visitParameterList(ce.parameters,g,A),We=hn(ce),sn=ie&32768?D.getLocalName(ce):ce.name;return U(dn,98304,0),se=j,D.updateFunctionExpression(ce,void 0,ce.asteriskToken,sn,void 0,Ie,void 0,We)}function xe(ce){var dn=se;se=void 0;var j=ne(32670,65),Ie=e.visitParameterList(ce.parameters,g,A),We=hn(ce),sn=ie&32768?D.getLocalName(ce):ce.name;return U(j,98304,0),se=dn,D.updateFunctionDeclaration(ce,void 0,e.visitNodes(ce.modifiers,g,e.isModifier),ce.asteriskToken,sn,void 0,Ie,void 0,We)}function Ze(ce,dn,j,Ie){var We=se;se=void 0;var sn=Ie&&e.isClassLike(Ie)&&!e.isStatic(ce)?ne(32670,73):ne(32670,65),Hn=e.visitParameterList(ce.parameters,g,A),vr=hn(ce);return ie&32768&&!j&&(ce.kind===254||ce.kind===211)&&(j=D.getGeneratedNameForNode(ce)),U(sn,98304,0),se=We,e.setOriginalNode(e.setTextRange(D.createFunctionExpression(void 0,ce.asteriskToken,j,void 0,Hn,void 0,vr),dn),ce)}function hn(ce){var dn=!1,j=!1,Ie,We,sn=[],Hn=[],vr=ce.body,Sr;if(y(),e.isBlock(vr)&&(Sr=D.copyStandardPrologue(vr.statements,sn,!1),Sr=D.copyCustomPrologue(vr.statements,Hn,Sr,g,e.isHoistedFunction),Sr=D.copyCustomPrologue(vr.statements,Hn,Sr,g,e.isHoistedVariableStatement)),dn=Qe(Hn,ce)||dn,dn=Un(Hn,ce,!1)||dn,e.isBlock(vr))Sr=D.copyCustomPrologue(vr.statements,Hn,Sr,g),Ie=vr.statements,e.addRange(Hn,e.visitNodes(vr.statements,g,e.isStatement,Sr)),!dn&&vr.multiLine&&(dn=!0);else{e.Debug.assert(ce.kind===212),Ie=e.moveRangeEnd(vr,-1);var ot=ce.equalsGreaterThanToken;!e.nodeIsSynthesized(ot)&&!e.nodeIsSynthesized(vr)&&(e.rangeEndIsOnSameLineAsRangeStart(ot,vr,k)?j=!0:dn=!0);var Et=e.visitNode(vr,g,e.isExpression),ra=D.createReturnStatement(Et);e.setTextRange(ra,vr),e.moveSyntheticComments(ra,vr),e.setEmitFlags(ra,1440),Hn.push(ra),We=vr}if(D.mergeLexicalEnvironment(sn,V()),i(sn,ce,!1),fn(sn,ce),e.some(sn)&&(dn=!0),Hn.unshift.apply(Hn,sn),e.isBlock(vr)&&e.arrayIsEqualTo(Hn,vr.statements))return vr;var Na=D.createBlock(e.setTextRange(D.createNodeArray(Hn),Ie),dn);return e.setTextRange(Na,ce.body),!dn&&j&&e.setEmitFlags(Na,1),We&&e.setTokenSourceMapRange(Na,19,We),e.setOriginalNode(Na,ce.body),Na}function Le(ce,dn){if(dn)return e.visitEachChild(ce,g,A);var j=ie&256?ne(7104,512):ne(6976,128),Ie=e.visitEachChild(ce,g,A);return U(j,0,0),Ie}function $e(ce){return e.visitEachChild(ce,p,A)}function An(ce,dn){return e.visitEachChild(ce,dn?p:g,A)}function Ue(ce,dn){return e.isDestructuringAssignment(ce)?e.flattenDestructuringAssignment(ce,g,A,0,!dn):ce.operatorToken.kind===27?D.updateBinaryExpression(ce,e.visitNode(ce.left,p,e.isExpression),ce.operatorToken,e.visitNode(ce.right,dn?p:g,e.isExpression)):e.visitEachChild(ce,g,A)}function gn(ce,dn){if(dn)return e.visitEachChild(ce,p,A);for(var j,Ie=0;Ie<ce.elements.length;Ie++){var We=ce.elements[Ie],sn=e.visitNode(We,Ie<ce.elements.length-1?p:g,e.isExpression);(j||sn!==We)&&(j||(j=ce.elements.slice(0,Ie)),j.push(sn))}var Hn=j?e.setTextRange(D.createNodeArray(j),ce.elements):ce.elements;return D.updateCommaListExpression(ce,Hn)}function Wn(ce){return ce.declarationList.declarations.length===1&&!!ce.declarationList.declarations[0].initializer&&!!(e.getEmitFlags(ce.declarationList.declarations[0].initializer)&33554432)}function ze(ce){var dn=ne(0,e.hasSyntacticModifier(ce,1)?32:0),j;if(se&&!(ce.declarationList.flags&3)&&!Wn(ce)){for(var Ie=void 0,We=0,sn=ce.declarationList.declarations;We<sn.length;We++){var Hn=sn[We];if(ir(se,Hn),Hn.initializer){var vr=void 0;e.isBindingPattern(Hn.name)?vr=e.flattenDestructuringAssignment(Hn,g,A,0):(vr=D.createBinaryExpression(Hn.name,63,e.visitNode(Hn.initializer,g,e.isExpression)),e.setTextRange(vr,Hn)),Ie=e.append(Ie,vr)}}Ie?j=e.setTextRange(D.createExpressionStatement(D.inlineExpressions(Ie)),ce):j=void 0}else j=e.visitEachChild(ce,g,A);return U(dn,0,0),j}function Tn(ce){if(ce.flags&3||ce.transformFlags&262144){ce.flags&3&&cs();var dn=e.flatMap(ce.declarations,ce.flags&1?hr:wr),j=D.createVariableDeclarationList(dn);return e.setOriginalNode(j,ce),e.setTextRange(j,ce),e.setCommentRange(j,ce),ce.transformFlags&262144&&(e.isBindingPattern(ce.declarations[0].name)||e.isBindingPattern(e.last(ce.declarations).name))&&e.setSourceMapRange(j,On(dn)),j}return e.visitEachChild(ce,g,A)}function On(ce){for(var dn=-1,j=-1,Ie=0,We=ce;Ie<We.length;Ie++){var sn=We[Ie];dn=dn===-1?sn.pos:sn.pos===-1?dn:Math.min(dn,sn.pos),j=Math.max(j,sn.end)}return e.createRange(dn,j)}function ur(ce){var dn=H.getNodeCheckFlags(ce),j=dn&262144,Ie=dn&524288,We=(ie&64)!==0||j&&Ie&&(ie&512)!==0,sn=!We&&(ie&4096)===0&&(!H.isDeclarationWithCollidingName(ce)||Ie&&!j&&(ie&6144)===0);return sn}function hr(ce){var dn=ce.name;return e.isBindingPattern(dn)?wr(ce):!ce.initializer&&ur(ce)?D.updateVariableDeclaration(ce,ce.name,void 0,void 0,D.createVoidZero()):e.visitEachChild(ce,g,A)}function wr(ce){var dn=ne(32,0),j;return e.isBindingPattern(ce.name)?j=e.flattenDestructuringBinding(ce,g,A,0,void 0,(dn&32)!==0):j=e.visitEachChild(ce,g,A),U(dn,0,0),j}function Qr(ce){se.labels.set(e.idText(ce.label),!0)}function Ke(ce){se.labels.set(e.idText(ce.label),!1)}function jn(ce){se&&!se.labels&&(se.labels=new e.Map);var dn=e.unwrapInnermostStatementOfLabel(ce,se&&Qr);return e.isIterationStatement(dn,!1)?Zn(dn,ce):D.restoreEnclosingLabel(e.visitNode(dn,g,e.isStatement,D.liftToBlock),ce,se&&Ke)}function Zn(ce,dn){switch(ce.kind){case 238:case 239:return Mn(ce,dn);case 240:return ar(ce,dn);case 241:return yr(ce,dn);case 242:return cr(ce,dn)}}function Me(ce,dn,j,Ie,We){var sn=ne(ce,dn),Hn=gr(j,Ie,sn,We);return U(sn,0,0),Hn}function Mn(ce,dn){return Me(0,1280,ce,dn)}function ar(ce,dn){return Me(5056,3328,ce,dn)}function Xn(ce){return D.updateForStatement(ce,e.visitNode(ce.initializer,p,e.isForInitializer),e.visitNode(ce.condition,g,e.isExpression),e.visitNode(ce.incrementor,p,e.isExpression),e.visitNode(ce.statement,g,e.isStatement,D.liftToBlock))}function yr(ce,dn){return Me(3008,5376,ce,dn)}function cr(ce,dn){return Me(3008,5376,ce,dn,E.downlevelIteration?Cn:J)}function Fe(ce,dn,j){var Ie=[],We=ce.initializer;if(e.isVariableDeclarationList(We)){ce.initializer.flags&3&&cs();var sn=e.firstOrUndefined(We.declarations);if(sn&&e.isBindingPattern(sn.name)){var Hn=e.flattenDestructuringBinding(sn,g,A,0,dn),vr=e.setTextRange(D.createVariableDeclarationList(Hn),ce.initializer);e.setOriginalNode(vr,ce.initializer),e.setSourceMapRange(vr,e.createRange(Hn[0].pos,e.last(Hn).end)),Ie.push(D.createVariableStatement(void 0,vr))}else Ie.push(e.setTextRange(D.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(D.createVariableDeclarationList([D.createVariableDeclaration(sn?sn.name:D.createTempVariable(void 0),void 0,void 0,dn)]),e.moveRangePos(We,-1)),We)),e.moveRangeEnd(We,-1)))}else{var Sr=D.createAssignment(We,dn);e.isDestructuringAssignment(Sr)?Ie.push(D.createExpressionStatement(Ue(Sr,!0))):(e.setTextRangeEnd(Sr,We.end),Ie.push(e.setTextRange(D.createExpressionStatement(e.visitNode(Sr,g,e.isExpression)),e.moveRangeEnd(We,-1))))}if(j)return Bn(e.addRange(Ie,j));var ot=e.visitNode(ce.statement,g,e.isStatement,D.liftToBlock);return e.isBlock(ot)?D.updateBlock(ot,e.setTextRange(D.createNodeArray(e.concatenate(Ie,ot.statements)),ot.statements)):(Ie.push(ot),Bn(Ie))}function Bn(ce){return e.setEmitFlags(D.createBlock(D.createNodeArray(ce),!0),432)}function J(ce,dn,j){var Ie=e.visitNode(ce.expression,g,e.isExpression),We=D.createLoopVariable(),sn=e.isIdentifier(Ie)?D.getGeneratedNameForNode(Ie):D.createTempVariable(void 0);e.setEmitFlags(Ie,48|e.getEmitFlags(Ie));var Hn=e.setTextRange(D.createForStatement(e.setEmitFlags(e.setTextRange(D.createVariableDeclarationList([e.setTextRange(D.createVariableDeclaration(We,void 0,void 0,D.createNumericLiteral(0)),e.moveRangePos(ce.expression,-1)),e.setTextRange(D.createVariableDeclaration(sn,void 0,void 0,Ie),ce.expression)]),ce.expression),2097152),e.setTextRange(D.createLessThan(We,D.createPropertyAccessExpression(sn,"length")),ce.expression),e.setTextRange(D.createPostfixIncrement(We),ce.expression),Fe(ce,D.createElementAccessExpression(sn,We),j)),ce);return e.setEmitFlags(Hn,256),e.setTextRange(Hn,ce),D.restoreEnclosingLabel(Hn,dn,se&&Ke)}function Cn(ce,dn,j,Ie){var We=e.visitNode(ce.expression,g,e.isExpression),sn=e.isIdentifier(We)?D.getGeneratedNameForNode(We):D.createTempVariable(void 0),Hn=e.isIdentifier(We)?D.getGeneratedNameForNode(sn):D.createTempVariable(void 0),vr=D.createUniqueName("e"),Sr=D.getGeneratedNameForNode(vr),ot=D.createTempVariable(void 0),Et=e.setTextRange(de().createValuesHelper(We),ce.expression),ra=D.createCallExpression(D.createPropertyAccessExpression(sn,"next"),void 0,[]);Z(vr),Z(ot);var Na=Ie&1024?D.inlineExpressions([D.createAssignment(vr,D.createVoidZero()),Et]):Et,ei=e.setEmitFlags(e.setTextRange(D.createForStatement(e.setEmitFlags(e.setTextRange(D.createVariableDeclarationList([e.setTextRange(D.createVariableDeclaration(sn,void 0,void 0,Na),ce.expression),D.createVariableDeclaration(Hn,void 0,void 0,ra)]),ce.expression),2097152),D.createLogicalNot(D.createPropertyAccessExpression(Hn,"done")),D.createAssignment(Hn,ra),Fe(ce,D.createPropertyAccessExpression(Hn,"value"),j)),ce),256);return D.createTryStatement(D.createBlock([D.restoreEnclosingLabel(ei,dn,se&&Ke)]),D.createCatchClause(D.createVariableDeclaration(Sr),e.setEmitFlags(D.createBlock([D.createExpressionStatement(D.createAssignment(vr,D.createObjectLiteralExpression([D.createPropertyAssignment("error",Sr)])))]),1)),D.createBlock([D.createTryStatement(D.createBlock([e.setEmitFlags(D.createIfStatement(D.createLogicalAnd(D.createLogicalAnd(Hn,D.createLogicalNot(D.createPropertyAccessExpression(Hn,"done"))),D.createAssignment(ot,D.createPropertyAccessExpression(sn,"return"))),D.createExpressionStatement(D.createFunctionCallCall(ot,sn,[]))),1)]),void 0,e.setEmitFlags(D.createBlock([e.setEmitFlags(D.createIfStatement(vr,D.createThrowStatement(D.createPropertyAccessExpression(vr,"error"))),1)]),1))]))}function Gn(ce){for(var dn=ce.properties,j=-1,Ie=!1,We=0;We<dn.length;We++){var sn=dn[We];if(sn.transformFlags&524288&&ie&4||(Ie=e.Debug.checkDefined(sn.name).kind===160)){j=We;break}}if(j<0)return e.visitEachChild(ce,g,A);var Hn=D.createTempVariable(Z),vr=[],Sr=D.createAssignment(Hn,e.setEmitFlags(D.createObjectLiteralExpression(e.visitNodes(dn,g,e.isObjectLiteralElementLike,0,j),ce.multiLine),Ie?65536:0));return ce.multiLine&&e.startOnNewLine(Sr),vr.push(Sr),Hr(vr,ce,Hn,j),vr.push(ce.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(D.cloneNode(Hn),Hn),Hn.parent)):Hn),D.inlineExpressions(vr)}function cn(ce){return(H.getNodeCheckFlags(ce)&131072)!==0}function Rn(ce){return e.isForStatement(ce)&&!!ce.initializer&&cn(ce.initializer)}function Ye(ce){return e.isForStatement(ce)&&!!ce.condition&&cn(ce.condition)}function xn(ce){return e.isForStatement(ce)&&!!ce.incrementor&&cn(ce.incrementor)}function an(ce){return zn(ce)||Rn(ce)}function zn(ce){return(H.getNodeCheckFlags(ce)&65536)!==0}function ir(ce,dn){ce.hoistedLocalVariables||(ce.hoistedLocalVariables=[]),j(dn.name);function j(Ie){if(Ie.kind===79)ce.hoistedLocalVariables.push(Ie);else for(var We=0,sn=Ie.elements;We<sn.length;We++){var Hn=sn[We];e.isOmittedExpression(Hn)||j(Hn.name)}}}function gr(ce,dn,j,Ie){if(!an(ce)){var We=void 0;se&&(We=se.allowedNonLabeledJumps,se.allowedNonLabeledJumps=6);var sn=Ie?Ie(ce,dn,void 0,j):D.restoreEnclosingLabel(e.isForStatement(ce)?Xn(ce):e.visitEachChild(ce,g,A),dn,se&&Ke);return se&&(se.allowedNonLabeledJumps=We),sn}var Hn=Ur(ce),vr=[],Sr=se;se=Hn;var ot=Rn(ce)?Jt(ce,Hn):void 0,Et=zn(ce)?Ot(ce,Hn,Sr):void 0;se=Sr,ot&&vr.push(ot.functionDeclaration),Et&&vr.push(Et.functionDeclaration),qt(vr,Hn,Sr),ot&&vr.push(eo(ot.functionName,ot.containsYield));var ra;if(Et)if(Ie)ra=Ie(ce,dn,Et.part,j);else{var Na=Dr(ce,ot,D.createBlock(Et.part,!0));ra=D.restoreEnclosingLabel(Na,dn,se&&Ke)}else{var ei=Dr(ce,ot,e.visitNode(ce.statement,g,e.isStatement,D.liftToBlock));ra=D.restoreEnclosingLabel(ei,dn,se&&Ke)}return vr.push(ra),vr}function Dr(ce,dn,j){switch(ce.kind){case 240:return qr(ce,dn,j);case 241:return xt(ce,j);case 242:return ft(ce,j);case 238:return Kr(ce,j);case 239:return dt(ce,j);default:return e.Debug.failBadSyntaxKind(ce,"IterationStatement expected")}}function qr(ce,dn,j){var Ie=ce.condition&&cn(ce.condition),We=Ie||ce.incrementor&&cn(ce.incrementor);return D.updateForStatement(ce,e.visitNode(dn?dn.part:ce.initializer,p,e.isForInitializer),e.visitNode(Ie?void 0:ce.condition,g,e.isExpression),e.visitNode(We?void 0:ce.incrementor,p,e.isExpression),j)}function ft(ce,dn){return D.updateForOfStatement(ce,void 0,e.visitNode(ce.initializer,g,e.isForInitializer),e.visitNode(ce.expression,g,e.isExpression),dn)}function xt(ce,dn){return D.updateForInStatement(ce,e.visitNode(ce.initializer,g,e.isForInitializer),e.visitNode(ce.expression,g,e.isExpression),dn)}function Kr(ce,dn){return D.updateDoStatement(ce,dn,e.visitNode(ce.expression,g,e.isExpression))}function dt(ce,dn){return D.updateWhileStatement(ce,e.visitNode(ce.expression,g,e.isExpression),dn)}function Ur(ce){var dn;switch(ce.kind){case 240:case 241:case 242:var j=ce.initializer;j&&j.kind===253&&(dn=j);break}var Ie=[],We=[];if(dn&&e.getCombinedNodeFlags(dn)&3)for(var sn=Rn(ce),Hn=0,vr=dn.declarations;Hn<vr.length;Hn++){var Sr=vr[Hn];at(ce,Sr,Ie,We,sn)}var ot={loopParameters:Ie,loopOutParameters:We};return se&&(se.argumentsName&&(ot.argumentsName=se.argumentsName),se.thisName&&(ot.thisName=se.thisName),se.hoistedLocalVariables&&(ot.hoistedLocalVariables=se.hoistedLocalVariables)),ot}function qt(ce,dn,j){var Ie;if(dn.argumentsName&&(j?j.argumentsName=dn.argumentsName:(Ie||(Ie=[])).push(D.createVariableDeclaration(dn.argumentsName,void 0,void 0,D.createIdentifier("arguments")))),dn.thisName&&(j?j.thisName=dn.thisName:(Ie||(Ie=[])).push(D.createVariableDeclaration(dn.thisName,void 0,void 0,D.createIdentifier("this")))),dn.hoistedLocalVariables)if(j)j.hoistedLocalVariables=dn.hoistedLocalVariables;else{Ie||(Ie=[]);for(var We=0,sn=dn.hoistedLocalVariables;We<sn.length;We++){var Hn=sn[We];Ie.push(D.createVariableDeclaration(Hn))}}if(dn.loopOutParameters.length){Ie||(Ie=[]);for(var vr=0,Sr=dn.loopOutParameters;vr<Sr.length;vr++){var ot=Sr[vr];Ie.push(D.createVariableDeclaration(ot.outParamName))}}dn.conditionVariable&&(Ie||(Ie=[]),Ie.push(D.createVariableDeclaration(dn.conditionVariable,void 0,void 0,D.createFalse()))),Ie&&ce.push(D.createVariableStatement(void 0,D.createVariableDeclarationList(Ie)))}function Cr(ce){return D.createVariableDeclaration(ce.originalName,void 0,void 0,ce.outParamName)}function Jt(ce,dn){var j=D.createUniqueName("_loop_init"),Ie=(ce.initializer.transformFlags&524288)!==0,We=0;dn.containsLexicalThis&&(We|=8),Ie&&ie&4&&(We|=262144);var sn=[];sn.push(D.createVariableStatement(void 0,ce.initializer)),Ya(dn.loopOutParameters,2,1,sn);var Hn=D.createVariableStatement(void 0,e.setEmitFlags(D.createVariableDeclarationList([D.createVariableDeclaration(j,void 0,void 0,e.setEmitFlags(D.createFunctionExpression(void 0,Ie?D.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(D.createBlock(sn,!0),g,e.isBlock)),We))]),2097152)),vr=D.createVariableDeclarationList(e.map(dn.loopOutParameters,Cr));return{functionName:j,containsYield:Ie,functionDeclaration:Hn,part:vr}}function Ot(ce,dn,j){var Ie=D.createUniqueName("_loop");_e();var We=e.visitNode(ce.statement,g,e.isStatement,D.liftToBlock),sn=V(),Hn=[];(Ye(ce)||xn(ce))&&(dn.conditionVariable=D.createUniqueName("inc"),ce.incrementor?Hn.push(D.createIfStatement(dn.conditionVariable,D.createExpressionStatement(e.visitNode(ce.incrementor,g,e.isExpression)),D.createExpressionStatement(D.createAssignment(dn.conditionVariable,D.createTrue())))):Hn.push(D.createIfStatement(D.createLogicalNot(dn.conditionVariable),D.createExpressionStatement(D.createAssignment(dn.conditionVariable,D.createTrue())))),Ye(ce)&&Hn.push(D.createIfStatement(D.createPrefixUnaryExpression(53,e.visitNode(ce.condition,g,e.isExpression)),e.visitNode(D.createBreakStatement(),g,e.isStatement)))),e.isBlock(We)?e.addRange(Hn,We.statements):Hn.push(We),Ya(dn.loopOutParameters,1,1,Hn),e.insertStatementsAfterStandardPrologue(Hn,sn);var vr=D.createBlock(Hn,!0);e.isBlock(We)&&e.setOriginalNode(vr,We);var Sr=(ce.statement.transformFlags&524288)!==0,ot=524288;dn.containsLexicalThis&&(ot|=8),Sr&&ie&4&&(ot|=262144);var Et=D.createVariableStatement(void 0,e.setEmitFlags(D.createVariableDeclarationList([D.createVariableDeclaration(Ie,void 0,void 0,e.setEmitFlags(D.createFunctionExpression(void 0,Sr?D.createToken(41):void 0,void 0,void 0,dn.loopParameters,void 0,vr),ot))]),2097152)),ra=za(Ie,dn,j,Sr);return{functionName:Ie,containsYield:Sr,functionDeclaration:Et,part:ra}}function ri(ce,dn){var j=dn===0?ce.outParamName:ce.originalName,Ie=dn===0?ce.originalName:ce.outParamName;return D.createBinaryExpression(Ie,63,j)}function Ya(ce,dn,j,Ie){for(var We=0,sn=ce;We<sn.length;We++){var Hn=sn[We];Hn.flags&dn&&Ie.push(D.createExpressionStatement(ri(Hn,j)))}}function eo(ce,dn){var j=D.createCallExpression(ce,void 0,[]),Ie=dn?D.createYieldExpression(D.createToken(41),e.setEmitFlags(j,8388608)):j;return D.createExpressionStatement(Ie)}function za(ce,dn,j,Ie){var We=[],sn=!(dn.nonLocalJumps&-5)&&!dn.labeledNonLocalBreaks&&!dn.labeledNonLocalContinues,Hn=D.createCallExpression(ce,void 0,e.map(dn.loopParameters,function(Na){return Na.name})),vr=Ie?D.createYieldExpression(D.createToken(41),e.setEmitFlags(Hn,8388608)):Hn;if(sn)We.push(D.createExpressionStatement(vr)),Ya(dn.loopOutParameters,1,0,We);else{var Sr=D.createUniqueName("state"),ot=D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(Sr,void 0,void 0,vr)]));if(We.push(ot),Ya(dn.loopOutParameters,1,0,We),dn.nonLocalJumps&8){var Et=void 0;j?(j.nonLocalJumps|=8,Et=D.createReturnStatement(Sr)):Et=D.createReturnStatement(D.createPropertyAccessExpression(Sr,"value")),We.push(D.createIfStatement(D.createTypeCheck(Sr,"object"),Et))}if(dn.nonLocalJumps&2&&We.push(D.createIfStatement(D.createStrictEquality(Sr,D.createStringLiteral("break")),D.createBreakStatement())),dn.labeledNonLocalBreaks||dn.labeledNonLocalContinues){var ra=[];Ar(dn.labeledNonLocalBreaks,!0,Sr,j,ra),Ar(dn.labeledNonLocalContinues,!1,Sr,j,ra),We.push(D.createSwitchStatement(Sr,D.createCaseBlock(ra)))}}return We}function ua(ce,dn,j,Ie){dn?(ce.labeledNonLocalBreaks||(ce.labeledNonLocalBreaks=new e.Map),ce.labeledNonLocalBreaks.set(j,Ie)):(ce.labeledNonLocalContinues||(ce.labeledNonLocalContinues=new e.Map),ce.labeledNonLocalContinues.set(j,Ie))}function Ar(ce,dn,j,Ie,We){ce&&ce.forEach(function(sn,Hn){var vr=[];if(!Ie||Ie.labels&&Ie.labels.get(Hn)){var Sr=D.createIdentifier(Hn);vr.push(dn?D.createBreakStatement(Sr):D.createContinueStatement(Sr))}else ua(Ie,dn,Hn,sn),vr.push(D.createReturnStatement(j));We.push(D.createCaseClause(D.createStringLiteral(sn),vr))})}function at(ce,dn,j,Ie,We){var sn=dn.name;if(e.isBindingPattern(sn))for(var Hn=0,vr=sn.elements;Hn<vr.length;Hn++){var Sr=vr[Hn];e.isOmittedExpression(Sr)||at(ce,Sr,j,Ie,We)}else{j.push(D.createParameterDeclaration(void 0,void 0,void 0,sn));var ot=H.getNodeCheckFlags(dn);if(ot&4194304||We){var Et=D.createUniqueName("out_"+e.idText(sn)),ra=0;ot&4194304&&(ra|=1),e.isForStatement(ce)&&ce.initializer&&H.isBindingCapturedByNode(ce.initializer,dn)&&(ra|=2),Ie.push({flags:ra,originalName:sn,outParamName:Et})}}}function Hr(ce,dn,j,Ie){for(var We=dn.properties,sn=We.length,Hn=Ie;Hn<sn;Hn++){var vr=We[Hn];switch(vr.kind){case 170:case 171:var Sr=e.getAllAccessorDeclarations(dn.properties,vr);vr===Sr.firstAccessor&&ce.push(Vn(j,Sr,dn,!!dn.multiLine));break;case 167:ce.push(Rr(vr,j,dn,dn.multiLine));break;case 291:ce.push(Wt(vr,j,dn.multiLine));break;case 292:ce.push(Zt(vr,j,dn.multiLine));break;default:e.Debug.failBadSyntaxKind(dn);break}}}function Wt(ce,dn,j){var Ie=D.createAssignment(e.createMemberAccessForPropertyName(D,dn,e.visitNode(ce.name,g,e.isPropertyName)),e.visitNode(ce.initializer,g,e.isExpression));return e.setTextRange(Ie,ce),j&&e.startOnNewLine(Ie),Ie}function Zt(ce,dn,j){var Ie=D.createAssignment(e.createMemberAccessForPropertyName(D,dn,e.visitNode(ce.name,g,e.isPropertyName)),D.cloneNode(ce.name));return e.setTextRange(Ie,ce),j&&e.startOnNewLine(Ie),Ie}function Rr(ce,dn,j,Ie){var We=D.createAssignment(e.createMemberAccessForPropertyName(D,dn,e.visitNode(ce.name,g,e.isPropertyName)),Ze(ce,ce,void 0,j));return e.setTextRange(We,ce),Ie&&e.startOnNewLine(We),We}function Lr(ce){var dn=ne(7104,0),j;if(e.Debug.assert(!!ce.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(ce.variableDeclaration.name)){var Ie=D.createTempVariable(void 0),We=D.createVariableDeclaration(Ie);e.setTextRange(We,ce.variableDeclaration);var sn=e.flattenDestructuringBinding(ce.variableDeclaration,g,A,0,Ie),Hn=D.createVariableDeclarationList(sn);e.setTextRange(Hn,ce.variableDeclaration);var vr=D.createVariableStatement(void 0,Hn);j=D.updateCatchClause(ce,We,Xr(ce.block,vr))}else j=e.visitEachChild(ce,g,A);return U(dn,0,0),j}function Xr(ce,dn){var j=e.visitNodes(ce.statements,g,e.isStatement);return D.updateBlock(ce,Vr([dn],j,!0))}function nt(ce){e.Debug.assert(!e.isComputedPropertyName(ce.name));var dn=Ze(ce,e.moveRangePos(ce,-1),void 0,void 0);return e.setEmitFlags(dn,512|e.getEmitFlags(dn)),e.setTextRange(D.createPropertyAssignment(ce.name,dn),ce)}function vt(ce){e.Debug.assert(!e.isComputedPropertyName(ce.name));var dn=se;se=void 0;var j=ne(32670,65),Ie,We=e.visitParameterList(ce.parameters,g,A),sn=hn(ce);return ce.kind===170?Ie=D.updateGetAccessorDeclaration(ce,ce.decorators,ce.modifiers,ce.name,We,ce.type,sn):Ie=D.updateSetAccessorDeclaration(ce,ce.decorators,ce.modifiers,ce.name,We,sn),U(j,98304,0),se=dn,Ie}function or(ce){return e.setTextRange(D.createPropertyAssignment(ce.name,I(D.cloneNode(ce.name))),ce)}function $t(ce){return e.visitEachChild(ce,g,A)}function Va(ce){return e.visitEachChild(ce,g,A)}function li(ce){return e.some(ce.elements,e.isSpreadElement)?bi(ce.elements,!1,!!ce.multiLine,!!ce.elements.hasTrailingComma):e.visitEachChild(ce,g,A)}function zi(ce){if(e.getEmitFlags(ce)&33554432)return Ma(ce);var dn=e.skipOuterExpressions(ce.expression);return dn.kind===106||e.isSuperProperty(dn)||e.some(ce.arguments,e.isSpreadElement)?Yi(ce,!0):D.updateCallExpression(ce,e.visitNode(ce.expression,T,e.isExpression),void 0,e.visitNodes(ce.arguments,g,e.isExpression))}function Ma(ce){var dn=e.cast(e.cast(e.skipOuterExpressions(ce.expression),e.isArrowFunction).body,e.isBlock),j=function(Ao){return e.isVariableStatement(Ao)&&!!e.first(Ao.declarationList.declarations).initializer},Ie=se;se=void 0;var We=e.visitNodes(dn.statements,f,e.isStatement);se=Ie;var sn=e.filter(We,j),Hn=e.filter(We,function(Ao){return!j(Ao)}),vr=e.cast(e.first(sn),e.isVariableStatement),Sr=vr.declarationList.declarations[0],ot=e.skipOuterExpressions(Sr.initializer),Et=e.tryCast(ot,e.isAssignmentExpression);!Et&&e.isBinaryExpression(ot)&&ot.operatorToken.kind===27&&(Et=e.tryCast(ot.left,e.isAssignmentExpression));var ra=e.cast(Et?e.skipOuterExpressions(Et.right):ot,e.isCallExpression),Na=e.cast(e.skipOuterExpressions(ra.expression),e.isFunctionExpression),ei=Na.body.statements,Li=0,Zi=-1,ho=[];if(Et){var vs=e.tryCast(ei[Li],e.isExpressionStatement);vs&&(ho.push(vs),Li++),ho.push(ei[Li]),Li++,ho.push(D.createExpressionStatement(D.createAssignment(Et.left,e.cast(Sr.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(ei,Zi));)Zi--;return e.addRange(ho,ei,Li,Zi),Zi<-1&&e.addRange(ho,ei,Zi+1),e.addRange(ho,Hn),e.addRange(ho,sn,1),D.restoreOuterExpressions(ce.expression,D.restoreOuterExpressions(Sr.initializer,D.restoreOuterExpressions(Et&&Et.right,D.updateCallExpression(ra,D.restoreOuterExpressions(ra.expression,D.updateFunctionExpression(Na,void 0,void 0,void 0,void 0,Na.parameters,void 0,D.updateBlock(Na.body,ho))),void 0,ra.arguments))))}function di(ce){return Yi(ce,!1)}function Yi(ce,dn){if(ce.transformFlags&16384||ce.expression.kind===106||e.isSuperProperty(e.skipOuterExpressions(ce.expression))){var j=D.createCallBinding(ce.expression,Z),Ie=j.target,We=j.thisArg;ce.expression.kind===106&&e.setEmitFlags(We,4);var sn=void 0;if(ce.transformFlags&16384?sn=D.createFunctionApplyCall(e.visitNode(Ie,T,e.isExpression),ce.expression.kind===106?We:e.visitNode(We,g,e.isExpression),bi(ce.arguments,!0,!1,!1)):sn=e.setTextRange(D.createFunctionCallCall(e.visitNode(Ie,T,e.isExpression),ce.expression.kind===106?We:e.visitNode(We,g,e.isExpression),e.visitNodes(ce.arguments,g,e.isExpression)),ce),ce.expression.kind===106){var Hn=D.createLogicalOr(sn,qe());sn=dn?D.createAssignment(D.createUniqueName("_this",48),Hn):Hn}return e.setOriginalNode(sn,ce)}return e.visitEachChild(ce,g,A)}function uo(ce){if(e.some(ce.arguments,e.isSpreadElement)){var dn=D.createCallBinding(D.createPropertyAccessExpression(ce.expression,"bind"),Z),j=dn.target,Ie=dn.thisArg;return D.createNewExpression(D.createFunctionApplyCall(e.visitNode(j,g,e.isExpression),Ie,bi(D.createNodeArray(Vr([D.createVoidZero()],ce.arguments,!0)),!0,!1,!1)),void 0,[])}return e.visitEachChild(ce,g,A)}function bi(ce,dn,j,Ie){var We=ce.length,sn=e.flatten(e.spanMap(ce,Mi,function(Na,ei,Li,Zi){return ei(Na,j,Ie&&Zi===We)}));if(sn.length===1){var Hn=sn[0];if(dn&&!E.downlevelIteration||e.isPackedArrayLiteral(Hn.expression)||e.isCallToHelper(Hn.expression,"___spreadArray"))return Hn.expression}for(var vr=de(),Sr=sn[0].kind!==0,ot=Sr?D.createArrayLiteralExpression():sn[0].expression,Et=Sr?0:1;Et<sn.length;Et++){var ra=sn[Et];ot=vr.createSpreadArrayHelper(ot,ra.expression,ra.kind===1&&!dn)}return ot}function Mi(ce){return e.isSpreadElement(ce)?Go:wi}function Go(ce){return e.map(ce,io)}function io(ce){var dn=e.visitNode(ce.expression,g,e.isExpression),j=e.isCallToHelper(dn,"___read"),Ie=j||e.isPackedArrayLiteral(dn)?2:1;return E.downlevelIteration&&Ie===1&&!e.isArrayLiteralExpression(dn)&&!j&&(dn=de().createReadHelper(dn,void 0),Ie=2),ye(Ie,dn)}function wi(ce,dn,j){var Ie=D.createArrayLiteralExpression(e.visitNodes(D.createNodeArray(ce,j),g,e.isExpression),dn);return ye(0,Ie)}function Ho(ce){return e.visitNode(ce.expression,g,e.isExpression)}function qi(ce){return e.setTextRange(D.createStringLiteral(ce.text),ce)}function Qi(ce){return ce.hasExtendedUnicodeEscape?e.setTextRange(D.createStringLiteral(ce.text),ce):ce}function as(ce){return ce.numericLiteralFlags&384?e.setTextRange(D.createNumericLiteral(ce.text),ce):ce}function gs(ce){return e.processTaggedTemplateExpression(A,ce,g,k,oe,e.ProcessLevel.All)}function Da(ce){var dn=[];Ni(dn,ce),vo(dn,ce);var j=e.reduceLeft(dn,D.createAdd);return e.nodeIsSynthesized(j)&&e.setTextRange(j,ce),j}function $a(ce){return e.Debug.assert(ce.templateSpans.length!==0),ce.head.text.length!==0||ce.templateSpans[0].literal.text.length===0}function Ni(ce,dn){$a(dn)&&ce.push(D.createStringLiteral(dn.head.text))}function vo(ce,dn){for(var j=0,Ie=dn.templateSpans;j<Ie.length;j++){var We=Ie[j];ce.push(e.visitNode(We.expression,g,e.isExpression)),We.literal.text.length!==0&&ce.push(D.createStringLiteral(We.literal.text))}}function Io(ce){return ie&8&&!ce?D.createPropertyAccessExpression(D.createUniqueName("_super",48),"prototype"):D.createUniqueName("_super",48)}function Bo(ce){return ce.keywordToken===103&&ce.name.escapedText==="target"?(ie|=32768,D.createUniqueName("_newTarget",48)):ce}function Uo(ce,dn,j){if(w&1&&e.isFunctionLike(dn)){var Ie=ne(32670,e.getEmitFlags(dn)&8?81:65);ee(ce,dn,j),U(Ie,0,0);return}ee(ce,dn,j)}function cs(){w&2||(w|=2,A.enableSubstitution(79))}function us(){w&1||(w|=1,A.enableSubstitution(108),A.enableEmitNotification(169),A.enableEmitNotification(167),A.enableEmitNotification(170),A.enableEmitNotification(171),A.enableEmitNotification(212),A.enableEmitNotification(211),A.enableEmitNotification(254))}function Jo(ce,dn){return dn=L(ce,dn),ce===1?_r(dn):e.isIdentifier(dn)?is(dn):dn}function is(ce){if(w&2&&!e.isInternalName(ce)){var dn=e.getParseTreeNode(ce,e.isIdentifier);if(dn&&mn(dn))return e.setTextRange(D.getGeneratedNameForNode(dn),ce)}return ce}function mn(ce){switch(ce.parent.kind){case 201:case 255:case 258:case 252:return ce.parent.name===ce&&H.isDeclarationWithCollidingName(ce.parent)}return!1}function _r(ce){switch(ce.kind){case 79:return $r(ce);case 108:return ti(ce)}return ce}function $r(ce){if(w&2&&!e.isInternalName(ce)){var dn=H.getReferencedDeclarationWithCollidingName(ce);if(dn&&!(e.isClassLike(dn)&&ia(dn,ce)))return e.setTextRange(D.getGeneratedNameForNode(e.getNameOfDeclaration(dn)),ce)}return ce}function ia(ce,dn){var j=e.getParseTreeNode(dn);if(!j||j===ce||j.end<=ce.pos||j.pos>=ce.end)return!1;for(var Ie=e.getEnclosingBlockScopeContainer(ce);j;){if(j===Ie||j===ce)return!1;if(e.isClassElement(j)&&j.parent===ce)return!0;j=j.parent}return!1}function ti(ce){return w&1&&ie&16?e.setTextRange(D.createUniqueName("_this",48),ce):ce}function va(ce,dn){return e.isStatic(dn)?D.getInternalName(ce):D.createPropertyAccessExpression(D.getInternalName(ce),"prototype")}function Ve(ce,dn){if(!ce||!dn||e.some(ce.parameters))return!1;var j=e.firstOrUndefined(ce.body.statements);if(!j||!e.nodeIsSynthesized(j)||j.kind!==236)return!1;var Ie=j.expression;if(!e.nodeIsSynthesized(Ie)||Ie.kind!==206)return!1;var We=Ie.expression;if(!e.nodeIsSynthesized(We)||We.kind!==106)return!1;var sn=e.singleOrUndefined(Ie.arguments);if(!sn||!e.nodeIsSynthesized(sn)||sn.kind!==223)return!1;var Hn=sn.expression;return e.isIdentifier(Hn)&&Hn.escapedText==="arguments"}}e.transformES2015=O})(vn||(vn={}));var vn;(function(e){function o(ue){var $=ue.factory,Y=ue.getCompilerOptions(),W,re;(Y.jsx===1||Y.jsx===3)&&(W=ue.onEmitNode,ue.onEmitNode=A,ue.enableEmitNotification(278),ue.enableEmitNotification(279),ue.enableEmitNotification(277),re=[]);var ye=ue.onSubstituteNode;return ue.onSubstituteNode=D,ue.enableSubstitution(204),ue.enableSubstitution(291),e.chainBundle(ue,O);function O(V){return V}function A(V,Z,E){switch(Z.kind){case 278:case 279:case 277:var H=Z.tagName;re[e.getOriginalNodeId(H)]=!0;break}W(V,Z,E)}function D(V,Z){return Z.id&&re&&re[Z.id]?ye(V,Z):(Z=ye(V,Z),e.isPropertyAccessExpression(Z)?de(Z):e.isPropertyAssignment(Z)?_e(Z):Z)}function de(V){if(e.isPrivateIdentifier(V.name))return V;var Z=y(V.name);return Z?e.setTextRange($.createElementAccessExpression(V.expression,Z),V):V}function _e(V){var Z=e.isIdentifier(V.name)&&y(V.name);return Z?$.updatePropertyAssignment(V,Z,V.initializer):V}function y(V){var Z=V.originalKeywordKind||(e.nodeIsSynthesized(V)?e.stringToToken(e.idText(V)):void 0);if(Z!==void 0&&Z>=81&&Z<=116)return e.setTextRange($.createStringLiteralFromNode(V),V)}}e.transformES5=o})(vn||(vn={}));var vn;(function(e){var o;(function(O){O[O.Nop=0]="Nop",O[O.Statement=1]="Statement",O[O.Assign=2]="Assign",O[O.Break=3]="Break",O[O.BreakWhenTrue=4]="BreakWhenTrue",O[O.BreakWhenFalse=5]="BreakWhenFalse",O[O.Yield=6]="Yield",O[O.YieldStar=7]="YieldStar",O[O.Return=8]="Return",O[O.Throw=9]="Throw",O[O.Endfinally=10]="Endfinally"})(o||(o={}));var ue;(function(O){O[O.Open=0]="Open",O[O.Close=1]="Close"})(ue||(ue={}));var $;(function(O){O[O.Exception=0]="Exception",O[O.With=1]="With",O[O.Switch=2]="Switch",O[O.Loop=3]="Loop",O[O.Labeled=4]="Labeled"})($||($={}));var Y;(function(O){O[O.Try=0]="Try",O[O.Catch=1]="Catch",O[O.Finally=2]="Finally",O[O.Done=3]="Done"})(Y||(Y={}));var W;(function(O){O[O.Next=0]="Next",O[O.Throw=1]="Throw",O[O.Return=2]="Return",O[O.Break=3]="Break",O[O.Yield=4]="Yield",O[O.YieldStar=5]="YieldStar",O[O.Catch=6]="Catch",O[O.Endfinally=7]="Endfinally"})(W||(W={}));function re(O){switch(O){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function ye(O){var A=O.factory,D=O.getEmitHelperFactory,de=O.resumeLexicalEnvironment,_e=O.endLexicalEnvironment,y=O.hoistFunctionDeclaration,V=O.hoistVariableDeclaration,Z=O.getCompilerOptions(),E=e.getEmitScriptTarget(Z),H=O.getEmitResolver(),L=O.onSubstituteNode;O.onSubstituteNode=Fe;var ee,k,b,ie,q,oe,se,w,R,ne,U=1,C,d,G,g,p=0,f=0,T,m,N,P,x,M,me,z;return e.chainBundle(O,K);function K(mn){if(mn.isDeclarationFile||!(mn.transformFlags&1024))return mn;var _r=e.visitEachChild(mn,I,O);return e.addEmitHelpers(_r,O.readEmitHelpers()),_r}function I(mn){var _r=mn.transformFlags;return ie?Ae(mn):b?Oe(mn):e.isFunctionLikeDeclaration(mn)&&mn.asteriskToken?Se(mn):_r&1024?e.visitEachChild(mn,I,O):mn}function Ae(mn){switch(mn.kind){case 238:return Le(mn);case 239:return An(mn);case 247:return Zn(mn);case 248:return Mn(mn);default:return Oe(mn)}}function Oe(mn){switch(mn.kind){case 254:return be(mn);case 211:return Ce(mn);case 170:case 171:return Be(mn);case 235:return en(mn);case 240:return gn(mn);case 241:return ze(mn);case 244:return hr(mn);case 243:return On(mn);case 245:return Qr(mn);default:return mn.transformFlags&524288?te(mn):mn.transformFlags&2098176?e.visitEachChild(mn,I,O):mn}}function te(mn){switch(mn.kind){case 219:return fe(mn);case 346:return we(mn);case 220:return Qe(mn);case 222:return Re(mn);case 202:return He(mn);case 203:return Un(mn);case 205:return fn(mn);case 206:return En(mn);case 207:return i(mn);default:return e.visitEachChild(mn,I,O)}}function Se(mn){switch(mn.kind){case 254:return be(mn);case 211:return Ce(mn);default:return e.Debug.failBadSyntaxKind(mn)}}function be(mn){if(mn.asteriskToken)mn=e.setOriginalNode(e.setTextRange(A.createFunctionDeclaration(void 0,mn.modifiers,void 0,mn.name,void 0,e.visitParameterList(mn.parameters,I,O),void 0,De(mn.body)),mn),mn);else{var _r=b,$r=ie;b=!1,ie=!1,mn=e.visitEachChild(mn,I,O),b=_r,ie=$r}if(b){y(mn);return}else return mn}function Ce(mn){if(mn.asteriskToken)mn=e.setOriginalNode(e.setTextRange(A.createFunctionExpression(void 0,void 0,mn.name,void 0,e.visitParameterList(mn.parameters,I,O),void 0,De(mn.body)),mn),mn);else{var _r=b,$r=ie;b=!1,ie=!1,mn=e.visitEachChild(mn,I,O),b=_r,ie=$r}return mn}function Be(mn){var _r=b,$r=ie;return b=!1,ie=!1,mn=e.visitEachChild(mn,I,O),b=_r,ie=$r,mn}function De(mn){var _r=[],$r=b,ia=ie,ti=q,va=oe,Ve=se,ce=w,dn=R,j=ne,Ie=U,We=C,sn=d,Hn=G,vr=g;b=!0,ie=!1,q=void 0,oe=void 0,se=void 0,w=void 0,R=void 0,ne=void 0,U=1,C=void 0,d=void 0,G=void 0,g=A.createTempVariable(void 0),de();var Sr=A.copyPrologue(mn.statements,_r,!1,I);In(mn.statements,Sr);var ot=Mi();return e.insertStatementsAfterStandardPrologue(_r,_e()),_r.push(A.createReturnStatement(ot)),b=$r,ie=ia,q=ti,oe=va,se=Ve,w=ce,R=dn,ne=j,U=Ie,C=We,d=sn,G=Hn,g=vr,e.setTextRange(A.createBlock(_r,mn.multiLine),mn)}function en(mn){if(mn.transformFlags&524288){Pe(mn.declarationList);return}else{if(e.getEmitFlags(mn)&1048576)return mn;for(var _r=0,$r=mn.declarationList.declarations;_r<$r.length;_r++){var ia=$r[_r];V(ia.name)}var ti=e.getInitializedVariables(mn.declarationList);return ti.length===0?void 0:e.setSourceMapRange(A.createExpressionStatement(A.inlineExpressions(e.map(ti,xe))),mn)}}function fe(mn){var _r=e.getExpressionAssociativity(mn);switch(_r){case 0:return qe(mn);case 1:return Ne(mn);default:return e.Debug.assertNever(_r)}}function Ne(mn){var _r=mn.left,$r=mn.right;if(yr($r)){var ia=void 0;switch(_r.kind){case 204:ia=A.updatePropertyAccessExpression(_r,Cn(e.visitNode(_r.expression,I,e.isLeftHandSideExpression)),_r.name);break;case 205:ia=A.updateElementAccessExpression(_r,Cn(e.visitNode(_r.expression,I,e.isLeftHandSideExpression)),Cn(e.visitNode(_r.argumentExpression,I,e.isExpression)));break;default:ia=e.visitNode(_r,I,e.isExpression);break}var ti=mn.operatorToken.kind;return e.isCompoundAssignment(ti)?e.setTextRange(A.createAssignment(ia,e.setTextRange(A.createBinaryExpression(Cn(ia),e.getNonAssignmentOperatorForCompoundAssignment(ti),e.visitNode($r,I,e.isExpression)),mn)),mn):A.updateBinaryExpression(mn,ia,mn.operatorToken,e.visitNode($r,I,e.isExpression))}return e.visitEachChild(mn,I,O)}function qe(mn){return yr(mn.right)?e.isLogicalOperator(mn.operatorToken.kind)?pn(mn):mn.operatorToken.kind===27?pe(mn):A.updateBinaryExpression(mn,Cn(e.visitNode(mn.left,I,e.isExpression)),mn.operatorToken,e.visitNode(mn.right,I,e.isExpression)):e.visitEachChild(mn,I,O)}function pe(mn){var _r=[];return $r(mn.left),$r(mn.right),A.inlineExpressions(_r);function $r(ia){e.isBinaryExpression(ia)&&ia.operatorToken.kind===27?($r(ia.left),$r(ia.right)):(yr(ia)&&_r.length>0&&(bi(1,[A.createExpressionStatement(A.inlineExpressions(_r))]),_r=[]),_r.push(e.visitNode(ia,I,e.isExpression)))}}function we(mn){for(var _r=[],$r=0,ia=mn.elements;$r<ia.length;$r++){var ti=ia[$r];e.isBinaryExpression(ti)&&ti.operatorToken.kind===27?_r.push(pe(ti)):(yr(ti)&&_r.length>0&&(bi(1,[A.createExpressionStatement(A.inlineExpressions(_r))]),_r=[]),_r.push(e.visitNode(ti,I,e.isExpression)))}return A.inlineExpressions(_r)}function pn(mn){var _r=cn(),$r=Gn();return or($r,e.visitNode(mn.left,I,e.isExpression),mn.left),mn.operatorToken.kind===55?li(_r,$r,mn.left):Va(_r,$r,mn.left),or($r,e.visitNode(mn.right,I,e.isExpression),mn.right),Rn(_r),$r}function Qe(mn){if(yr(mn.whenTrue)||yr(mn.whenFalse)){var _r=cn(),$r=cn(),ia=Gn();return li(_r,e.visitNode(mn.condition,I,e.isExpression),mn.condition),or(ia,e.visitNode(mn.whenTrue,I,e.isExpression),mn.whenTrue),$t($r),Rn(_r),or(ia,e.visitNode(mn.whenFalse,I,e.isExpression),mn.whenFalse),Rn($r),ia}return e.visitEachChild(mn,I,O)}function Re(mn){var _r=cn(),$r=e.visitNode(mn.expression,I,e.isExpression);if(mn.asteriskToken){var ia=e.getEmitFlags(mn.expression)&8388608?$r:e.setTextRange(D().createValuesHelper($r),mn);zi(ia,mn)}else Ma($r,mn);return Rn(_r),Xr(mn)}function He(mn){return Ln(mn.elements,void 0,void 0,mn.multiLine)}function Ln(mn,_r,$r,ia){var ti=cr(mn),va;if(ti>0){va=Gn();var Ve=e.visitNodes(mn,I,e.isExpression,0,ti);or(va,A.createArrayLiteralExpression(_r?Vr([_r],Ve,!0):Ve)),_r=void 0}var ce=e.reduceLeft(mn,dn,[],ti);return va?A.createArrayConcatCall(va,[A.createArrayLiteralExpression(ce,ia)]):e.setTextRange(A.createArrayLiteralExpression(_r?Vr([_r],ce,!0):ce,ia),$r);function dn(j,Ie){if(yr(Ie)&&j.length>0){var We=va!==void 0;va||(va=Gn()),or(va,We?A.createArrayConcatCall(va,[A.createArrayLiteralExpression(j,ia)]):A.createArrayLiteralExpression(_r?Vr([_r],j,!0):j,ia)),_r=void 0,j=[]}return j.push(e.visitNode(Ie,I,e.isExpression)),j}}function Un(mn){var _r=mn.properties,$r=mn.multiLine,ia=cr(_r),ti=Gn();or(ti,A.createObjectLiteralExpression(e.visitNodes(_r,I,e.isObjectLiteralElementLike,0,ia),$r));var va=e.reduceLeft(_r,Ve,[],ia);return va.push($r?e.startOnNewLine(e.setParent(e.setTextRange(A.cloneNode(ti),ti),ti.parent)):ti),A.inlineExpressions(va);function Ve(ce,dn){yr(dn)&&ce.length>0&&(vt(A.createExpressionStatement(A.inlineExpressions(ce))),ce=[]);var j=e.createExpressionForObjectLiteralElementLike(A,mn,dn,ti),Ie=e.visitNode(j,I,e.isExpression);return Ie&&($r&&e.startOnNewLine(Ie),ce.push(Ie)),ce}}function fn(mn){return yr(mn.argumentExpression)?A.updateElementAccessExpression(mn,Cn(e.visitNode(mn.expression,I,e.isLeftHandSideExpression)),e.visitNode(mn.argumentExpression,I,e.isExpression)):e.visitEachChild(mn,I,O)}function En(mn){if(!e.isImportCall(mn)&&e.forEach(mn.arguments,yr)){var _r=A.createCallBinding(mn.expression,V,E,!0),$r=_r.target,ia=_r.thisArg;return e.setOriginalNode(e.setTextRange(A.createFunctionApplyCall(Cn(e.visitNode($r,I,e.isLeftHandSideExpression)),ia,Ln(mn.arguments)),mn),mn)}return e.visitEachChild(mn,I,O)}function i(mn){if(e.forEach(mn.arguments,yr)){var _r=A.createCallBinding(A.createPropertyAccessExpression(mn.expression,"bind"),V),$r=_r.target,ia=_r.thisArg;return e.setOriginalNode(e.setTextRange(A.createNewExpression(A.createFunctionApplyCall(Cn(e.visitNode($r,I,e.isExpression)),ia,Ln(mn.arguments,A.createVoidZero())),void 0,[]),mn),mn)}return e.visitEachChild(mn,I,O)}function In(mn,_r){_r===void 0&&(_r=0);for(var $r=mn.length,ia=_r;ia<$r;ia++)rn(mn[ia])}function X(mn){e.isBlock(mn)?In(mn.statements):rn(mn)}function rn(mn){var _r=ie;ie||(ie=yr(mn)),$n(mn),ie=_r}function $n(mn){switch(mn.kind){case 233:return Vn(mn);case 236:return le(mn);case 237:return Ze(mn);case 238:return hn(mn);case 239:return $e(mn);case 240:return Ue(mn);case 241:return Wn(mn);case 243:return Tn(mn);case 244:return ur(mn);case 245:return wr(mn);case 246:return Ke(mn);case 247:return jn(mn);case 248:return Me(mn);case 249:return ar(mn);case 250:return Xn(mn);default:return vt(e.visitNode(mn,I,e.isStatement))}}function Vn(mn){yr(mn)?In(mn.statements):vt(e.visitNode(mn,I,e.isStatement))}function le(mn){vt(e.visitNode(mn,I,e.isStatement))}function Pe(mn){for(var _r=0,$r=mn.declarations;_r<$r.length;_r++){var ia=$r[_r],ti=A.cloneNode(ia.name);e.setCommentRange(ti,ia.name),V(ti)}for(var va=e.getInitializedVariables(mn),Ve=va.length,ce=0,dn=[];ce<Ve;){for(var j=ce;j<Ve;j++){var ia=va[j];if(yr(ia.initializer)&&dn.length>0)break;dn.push(xe(ia))}dn.length&&(vt(A.createExpressionStatement(A.inlineExpressions(dn))),ce+=dn.length,dn=[])}}function xe(mn){return e.setSourceMapRange(A.createAssignment(e.setSourceMapRange(A.cloneNode(mn.name),mn.name),e.visitNode(mn.initializer,I,e.isExpression)),mn)}function Ze(mn){if(yr(mn))if(yr(mn.thenStatement)||yr(mn.elseStatement)){var _r=cn(),$r=mn.elseStatement?cn():void 0;li(mn.elseStatement?$r:_r,e.visitNode(mn.expression,I,e.isExpression),mn.expression),X(mn.thenStatement),mn.elseStatement&&($t(_r),Rn($r),X(mn.elseStatement)),Rn(_r)}else vt(e.visitNode(mn,I,e.isStatement));else vt(e.visitNode(mn,I,e.isStatement))}function hn(mn){if(yr(mn)){var _r=cn(),$r=cn();dt(_r),Rn($r),X(mn.statement),Rn(_r),Va($r,e.visitNode(mn.expression,I,e.isExpression)),Ur()}else vt(e.visitNode(mn,I,e.isStatement))}function Le(mn){return ie?(Kr(),mn=e.visitEachChild(mn,I,O),Ur(),mn):e.visitEachChild(mn,I,O)}function $e(mn){if(yr(mn)){var _r=cn(),$r=dt(_r);Rn(_r),li($r,e.visitNode(mn.expression,I,e.isExpression)),X(mn.statement),$t(_r),Ur()}else vt(e.visitNode(mn,I,e.isStatement))}function An(mn){return ie?(Kr(),mn=e.visitEachChild(mn,I,O),Ur(),mn):e.visitEachChild(mn,I,O)}function Ue(mn){if(yr(mn)){var _r=cn(),$r=cn(),ia=dt($r);if(mn.initializer){var ti=mn.initializer;e.isVariableDeclarationList(ti)?Pe(ti):vt(e.setTextRange(A.createExpressionStatement(e.visitNode(ti,I,e.isExpression)),ti))}Rn(_r),mn.condition&&li(ia,e.visitNode(mn.condition,I,e.isExpression)),X(mn.statement),Rn($r),mn.incrementor&&vt(e.setTextRange(A.createExpressionStatement(e.visitNode(mn.incrementor,I,e.isExpression)),mn.incrementor)),$t(_r),Ur()}else vt(e.visitNode(mn,I,e.isStatement))}function gn(mn){ie&&Kr();var _r=mn.initializer;if(_r&&e.isVariableDeclarationList(_r)){for(var $r=0,ia=_r.declarations;$r<ia.length;$r++){var ti=ia[$r];V(ti.name)}var va=e.getInitializedVariables(_r);mn=A.updateForStatement(mn,va.length>0?A.inlineExpressions(e.map(va,xe)):void 0,e.visitNode(mn.condition,I,e.isExpression),e.visitNode(mn.incrementor,I,e.isExpression),e.visitIterationBody(mn.statement,I,O))}else mn=e.visitEachChild(mn,I,O);return ie&&Ur(),mn}function Wn(mn){if(yr(mn)){var _r=Gn(),$r=Gn(),ia=A.createLoopVariable(),ti=mn.initializer;V(ia),or(_r,A.createArrayLiteralExpression()),vt(A.createForInStatement($r,e.visitNode(mn.expression,I,e.isExpression),A.createExpressionStatement(A.createCallExpression(A.createPropertyAccessExpression(_r,"push"),void 0,[$r])))),or(ia,A.createNumericLiteral(0));var va=cn(),Ve=cn(),ce=dt(Ve);Rn(va),li(ce,A.createLessThan(ia,A.createPropertyAccessExpression(_r,"length")));var dn=void 0;if(e.isVariableDeclarationList(ti)){for(var j=0,Ie=ti.declarations;j<Ie.length;j++){var We=Ie[j];V(We.name)}dn=A.cloneNode(ti.declarations[0].name)}else dn=e.visitNode(ti,I,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(dn));or(dn,A.createElementAccessExpression(_r,ia)),X(mn.statement),Rn(Ve),vt(A.createExpressionStatement(A.createPostfixIncrement(ia))),$t(va),Ur()}else vt(e.visitNode(mn,I,e.isStatement))}function ze(mn){ie&&Kr();var _r=mn.initializer;if(e.isVariableDeclarationList(_r)){for(var $r=0,ia=_r.declarations;$r<ia.length;$r++){var ti=ia[$r];V(ti.name)}mn=A.updateForInStatement(mn,_r.declarations[0].name,e.visitNode(mn.expression,I,e.isExpression),e.visitNode(mn.statement,I,e.isStatement,A.liftToBlock))}else mn=e.visitEachChild(mn,I,O);return ie&&Ur(),mn}function Tn(mn){var _r=Hr(mn.label?e.idText(mn.label):void 0);_r>0?$t(_r,mn):vt(mn)}function On(mn){if(ie){var _r=Hr(mn.label&&e.idText(mn.label));if(_r>0)return Rr(_r,mn)}return e.visitEachChild(mn,I,O)}function ur(mn){var _r=at(mn.label?e.idText(mn.label):void 0);_r>0?$t(_r,mn):vt(mn)}function hr(mn){if(ie){var _r=at(mn.label&&e.idText(mn.label));if(_r>0)return Rr(_r,mn)}return e.visitEachChild(mn,I,O)}function wr(mn){di(e.visitNode(mn.expression,I,e.isExpression),mn)}function Qr(mn){return Lr(e.visitNode(mn.expression,I,e.isExpression),mn)}function Ke(mn){yr(mn)?(ir(Cn(e.visitNode(mn.expression,I,e.isExpression))),X(mn.statement),gr()):vt(e.visitNode(mn,I,e.isStatement))}function jn(mn){if(yr(mn.caseBlock)){for(var _r=mn.caseBlock,$r=_r.clauses.length,ia=Cr(),ti=Cn(e.visitNode(mn.expression,I,e.isExpression)),va=[],Ve=-1,ce=0;ce<$r;ce++){var dn=_r.clauses[ce];va.push(cn()),dn.kind===288&&Ve===-1&&(Ve=ce)}for(var j=0,Ie=[];j<$r;){for(var We=0,ce=j;ce<$r;ce++){var dn=_r.clauses[ce];if(dn.kind===287){if(yr(dn.expression)&&Ie.length>0)break;Ie.push(A.createCaseClause(e.visitNode(dn.expression,I,e.isExpression),[Rr(va[ce],dn.expression)]))}else We++}Ie.length&&(vt(A.createSwitchStatement(ti,A.createCaseBlock(Ie))),j+=Ie.length,Ie=[]),We>0&&(j+=We,We=0)}Ve>=0?$t(va[Ve]):$t(ia);for(var ce=0;ce<$r;ce++)Rn(va[ce]),In(_r.clauses[ce].statements);Jt()}else vt(e.visitNode(mn,I,e.isStatement))}function Zn(mn){return ie&&qt(),mn=e.visitEachChild(mn,I,O),ie&&Jt(),mn}function Me(mn){yr(mn)?(ri(e.idText(mn.label)),X(mn.statement),Ya()):vt(e.visitNode(mn,I,e.isStatement))}function Mn(mn){return ie&&Ot(e.idText(mn.label)),mn=e.visitEachChild(mn,I,O),ie&&Ya(),mn}function ar(mn){var _r;Yi(e.visitNode((_r=mn.expression)!==null&&_r!==void 0?_r:A.createVoidZero(),I,e.isExpression),mn)}function Xn(mn){yr(mn)?(Dr(),X(mn.tryBlock),mn.catchClause&&(qr(mn.catchClause.variableDeclaration),X(mn.catchClause.block)),mn.finallyBlock&&(ft(),X(mn.finallyBlock)),xt()):vt(e.visitEachChild(mn,I,O))}function yr(mn){return!!mn&&(mn.transformFlags&524288)!==0}function cr(mn){for(var _r=mn.length,$r=0;$r<_r;$r++)if(yr(mn[$r]))return $r;return-1}function Fe(mn,_r){return _r=L(mn,_r),mn===1?Bn(_r):_r}function Bn(mn){return e.isIdentifier(mn)?J(mn):mn}function J(mn){if(!e.isGeneratedIdentifier(mn)&&ee&&ee.has(e.idText(mn))){var _r=e.getOriginalNode(mn);if(e.isIdentifier(_r)&&_r.parent){var $r=H.getReferencedValueDeclaration(_r);if($r){var ia=k[e.getOriginalNodeId($r)];if(ia){var ti=e.setParent(e.setTextRange(A.cloneNode(ia),ia),ia.parent);return e.setSourceMapRange(ti,mn),e.setCommentRange(ti,mn),ti}}}}return mn}function Cn(mn){if(e.isGeneratedIdentifier(mn)||e.getEmitFlags(mn)&4096)return mn;var _r=A.createTempVariable(V);return or(_r,mn,mn),_r}function Gn(mn){var _r=mn?A.createUniqueName(mn):A.createTempVariable(void 0);return V(_r),_r}function cn(){R||(R=[]);var mn=U;return U++,R[mn]=-1,mn}function Rn(mn){e.Debug.assert(R!==void 0,"No labels were defined."),R[mn]=C?C.length:0}function Ye(mn){q||(q=[],se=[],oe=[],w=[]);var _r=se.length;return se[_r]=0,oe[_r]=C?C.length:0,q[_r]=mn,w.push(mn),_r}function xn(){var mn=an();if(mn===void 0)return e.Debug.fail("beginBlock was never called.");var _r=se.length;return se[_r]=1,oe[_r]=C?C.length:0,q[_r]=mn,w.pop(),mn}function an(){return e.lastOrUndefined(w)}function zn(){var mn=an();return mn&&mn.kind}function ir(mn){var _r=cn(),$r=cn();Rn(_r),Ye({kind:1,expression:mn,startLabel:_r,endLabel:$r})}function gr(){e.Debug.assert(zn()===1);var mn=xn();Rn(mn.endLabel)}function Dr(){var mn=cn(),_r=cn();return Rn(mn),Ye({kind:0,state:0,startLabel:mn,endLabel:_r}),nt(),_r}function qr(mn){e.Debug.assert(zn()===0);var _r;if(e.isGeneratedIdentifier(mn.name))_r=mn.name,V(mn.name);else{var $r=e.idText(mn.name);_r=Gn($r),ee||(ee=new e.Map,k=[],O.enableSubstitution(79)),ee.set($r,!0),k[e.getOriginalNodeId(mn)]=_r}var ia=an();e.Debug.assert(ia.state<1);var ti=ia.endLabel;$t(ti);var va=cn();Rn(va),ia.state=1,ia.catchVariable=_r,ia.catchLabel=va,or(_r,A.createCallExpression(A.createPropertyAccessExpression(g,"sent"),void 0,[])),nt()}function ft(){e.Debug.assert(zn()===0);var mn=an();e.Debug.assert(mn.state<2);var _r=mn.endLabel;$t(_r);var $r=cn();Rn($r),mn.state=2,mn.finallyLabel=$r}function xt(){e.Debug.assert(zn()===0);var mn=xn(),_r=mn.state;_r<2?$t(mn.endLabel):uo(),Rn(mn.endLabel),nt(),mn.state=3}function Kr(){Ye({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function dt(mn){var _r=cn();return Ye({kind:3,isScript:!1,breakLabel:_r,continueLabel:mn}),_r}function Ur(){e.Debug.assert(zn()===3);var mn=xn(),_r=mn.breakLabel;mn.isScript||Rn(_r)}function qt(){Ye({kind:2,isScript:!0,breakLabel:-1})}function Cr(){var mn=cn();return Ye({kind:2,isScript:!1,breakLabel:mn}),mn}function Jt(){e.Debug.assert(zn()===2);var mn=xn(),_r=mn.breakLabel;mn.isScript||Rn(_r)}function Ot(mn){Ye({kind:4,isScript:!0,labelText:mn,breakLabel:-1})}function ri(mn){var _r=cn();Ye({kind:4,isScript:!1,labelText:mn,breakLabel:_r})}function Ya(){e.Debug.assert(zn()===4);var mn=xn();mn.isScript||Rn(mn.breakLabel)}function eo(mn){return mn.kind===2||mn.kind===3}function za(mn){return mn.kind===4}function ua(mn){return mn.kind===3}function Ar(mn,_r){for(var $r=_r;$r>=0;$r--){var ia=w[$r];if(za(ia)){if(ia.labelText===mn)return!0}else break}return!1}function at(mn){if(w)if(mn)for(var _r=w.length-1;_r>=0;_r--){var $r=w[_r];if(za($r)&&$r.labelText===mn)return $r.breakLabel;if(eo($r)&&Ar(mn,_r-1))return $r.breakLabel}else for(var _r=w.length-1;_r>=0;_r--){var $r=w[_r];if(eo($r))return $r.breakLabel}return 0}function Hr(mn){if(w)if(mn)for(var _r=w.length-1;_r>=0;_r--){var $r=w[_r];if(ua($r)&&Ar(mn,_r-1))return $r.continueLabel}else for(var _r=w.length-1;_r>=0;_r--){var $r=w[_r];if(ua($r))return $r.continueLabel}return 0}function Wt(mn){if(mn!==void 0&&mn>0){ne===void 0&&(ne=[]);var _r=A.createNumericLiteral(-1);return ne[mn]===void 0?ne[mn]=[_r]:ne[mn].push(_r),_r}return A.createOmittedExpression()}function Zt(mn){var _r=A.createNumericLiteral(mn);return e.addSyntheticTrailingComment(_r,3,re(mn)),_r}function Rr(mn,_r){return e.Debug.assertLessThan(0,mn,"Invalid label"),e.setTextRange(A.createReturnStatement(A.createArrayLiteralExpression([Zt(3),Wt(mn)])),_r)}function Lr(mn,_r){return e.setTextRange(A.createReturnStatement(A.createArrayLiteralExpression(mn?[Zt(2),mn]:[Zt(2)])),_r)}function Xr(mn){return e.setTextRange(A.createCallExpression(A.createPropertyAccessExpression(g,"sent"),void 0,[]),mn)}function nt(){bi(0)}function vt(mn){mn?bi(1,[mn]):nt()}function or(mn,_r,$r){bi(2,[mn,_r],$r)}function $t(mn,_r){bi(3,[mn],_r)}function Va(mn,_r,$r){bi(4,[mn,_r],$r)}function li(mn,_r,$r){bi(5,[mn,_r],$r)}function zi(mn,_r){bi(7,[mn],_r)}function Ma(mn,_r){bi(6,[mn],_r)}function di(mn,_r){bi(8,[mn],_r)}function Yi(mn,_r){bi(9,[mn],_r)}function uo(){bi(10)}function bi(mn,_r,$r){C===void 0&&(C=[],d=[],G=[]),R===void 0&&Rn(cn());var ia=C.length;C[ia]=mn,d[ia]=_r,G[ia]=$r}function Mi(){p=0,f=0,T=void 0,m=!1,N=!1,P=void 0,x=void 0,M=void 0,me=void 0,z=void 0;var mn=Go();return D().createGeneratorHelper(e.setEmitFlags(A.createFunctionExpression(void 0,void 0,void 0,void 0,[A.createParameterDeclaration(void 0,void 0,void 0,g)],void 0,A.createBlock(mn,mn.length>0)),524288))}function Go(){if(C){for(var mn=0;mn<C.length;mn++)Da(mn);wi(C.length)}else wi(0);if(P){var _r=A.createPropertyAccessExpression(g,"label"),$r=A.createSwitchStatement(_r,A.createCaseBlock(P));return[e.startOnNewLine($r)]}return x||[]}function io(){x&&(qi(!m),m=!1,N=!1,f++)}function wi(mn){Ho(mn)&&(Qi(mn),z=void 0,Io(void 0,void 0)),x&&P&&qi(!1),as()}function Ho(mn){if(!N)return!0;if(!R||!ne)return!1;for(var _r=0;_r<R.length;_r++)if(R[_r]===mn&&ne[_r])return!0;return!1}function qi(mn){if(P||(P=[]),x){if(z)for(var _r=z.length-1;_r>=0;_r--){var $r=z[_r];x=[A.createWithStatement($r.expression,A.createBlock(x))]}if(me){var ia=me.startLabel,ti=me.catchLabel,va=me.finallyLabel,Ve=me.endLabel;x.unshift(A.createExpressionStatement(A.createCallExpression(A.createPropertyAccessExpression(A.createPropertyAccessExpression(g,"trys"),"push"),void 0,[A.createArrayLiteralExpression([Wt(ia),Wt(ti),Wt(va),Wt(Ve)])]))),me=void 0}mn&&x.push(A.createExpressionStatement(A.createAssignment(A.createPropertyAccessExpression(g,"label"),A.createNumericLiteral(f+1))))}P.push(A.createCaseClause(A.createNumericLiteral(f),x||[])),x=void 0}function Qi(mn){if(R)for(var _r=0;_r<R.length;_r++)R[_r]===mn&&(io(),T===void 0&&(T=[]),T[f]===void 0?T[f]=[_r]:T[f].push(_r))}function as(){if(ne!==void 0&&T!==void 0)for(var mn=0;mn<T.length;mn++){var _r=T[mn];if(_r!==void 0)for(var $r=0,ia=_r;$r<ia.length;$r++){var ti=ia[$r],va=ne[ti];if(va!==void 0)for(var Ve=0,ce=va;Ve<ce.length;Ve++){var dn=ce[Ve];dn.text=String(mn)}}}}function gs(mn){if(q)for(;p<se.length&&oe[p]<=mn;p++){var _r=q[p],$r=se[p];switch(_r.kind){case 0:$r===0?(M||(M=[]),x||(x=[]),M.push(me),me=_r):$r===1&&(me=M.pop());break;case 1:$r===0?(z||(z=[]),z.push(_r)):$r===1&&z.pop();break}}}function Da(mn){if(Qi(mn),gs(mn),!m){m=!1,N=!1;var _r=C[mn];if(_r!==0){if(_r===10)return is();var $r=d[mn];if(_r===1)return $a($r[0]);var ia=G[mn];switch(_r){case 2:return Ni($r[0],$r[1],ia);case 3:return Bo($r[0],ia);case 4:return Uo($r[0],$r[1],ia);case 5:return cs($r[0],$r[1],ia);case 6:return us($r[0],ia);case 7:return Jo($r[0],ia);case 8:return Io($r[0],ia);case 9:return vo($r[0],ia)}}}}function $a(mn){mn&&(x?x.push(mn):x=[mn])}function Ni(mn,_r,$r){$a(e.setTextRange(A.createExpressionStatement(A.createAssignment(mn,_r)),$r))}function vo(mn,_r){m=!0,N=!0,$a(e.setTextRange(A.createThrowStatement(mn),_r))}function Io(mn,_r){m=!0,N=!0,$a(e.setEmitFlags(e.setTextRange(A.createReturnStatement(A.createArrayLiteralExpression(mn?[Zt(2),mn]:[Zt(2)])),_r),384))}function Bo(mn,_r){m=!0,$a(e.setEmitFlags(e.setTextRange(A.createReturnStatement(A.createArrayLiteralExpression([Zt(3),Wt(mn)])),_r),384))}function Uo(mn,_r,$r){$a(e.setEmitFlags(A.createIfStatement(_r,e.setEmitFlags(e.setTextRange(A.createReturnStatement(A.createArrayLiteralExpression([Zt(3),Wt(mn)])),$r),384)),1))}function cs(mn,_r,$r){$a(e.setEmitFlags(A.createIfStatement(A.createLogicalNot(_r),e.setEmitFlags(e.setTextRange(A.createReturnStatement(A.createArrayLiteralExpression([Zt(3),Wt(mn)])),$r),384)),1))}function us(mn,_r){m=!0,$a(e.setEmitFlags(e.setTextRange(A.createReturnStatement(A.createArrayLiteralExpression(mn?[Zt(4),mn]:[Zt(4)])),_r),384))}function Jo(mn,_r){m=!0,$a(e.setEmitFlags(e.setTextRange(A.createReturnStatement(A.createArrayLiteralExpression([Zt(5),mn])),_r),384))}function is(){m=!0,$a(A.createReturnStatement(A.createArrayLiteralExpression([Zt(7)])))}}e.transformGenerators=ye})(vn||(vn={}));var vn;(function(e){function o($){function Y(Ue){switch(Ue){case e.ModuleKind.AMD:return w;case e.ModuleKind.UMD:return R;default:return se}}var W=$.factory,re=$.getEmitHelperFactory,ye=$.startLexicalEnvironment,O=$.endLexicalEnvironment,A=$.hoistVariableDeclaration,D=$.getCompilerOptions(),de=$.getEmitResolver(),_e=$.getEmitHost(),y=e.getEmitScriptTarget(D),V=e.getEmitModuleKind(D),Z=$.onSubstituteNode,E=$.onEmitNode;$.onSubstituteNode=le,$.onEmitNode=Vn,$.enableSubstitution(206),$.enableSubstitution(208),$.enableSubstitution(79),$.enableSubstitution(219),$.enableSubstitution(292),$.enableEmitNotification(300);var H=[],L=[],ee,k,b=[],ie;return e.chainBundle($,q);function q(Ue){if(Ue.isDeclarationFile||!(e.isEffectiveExternalModule(Ue,D)||Ue.transformFlags&4194304||e.isJsonSourceFile(Ue)&&e.hasJsonModuleEmitEnabled(D)&&e.outFile(D)))return Ue;ee=Ue,k=e.collectExternalModuleInfo($,Ue,de,D),H[e.getOriginalNodeId(Ue)]=k;var gn=Y(V),Wn=gn(Ue);return ee=void 0,k=void 0,ie=!1,Wn}function oe(){return!!(!k.exportEquals&&e.isExternalModule(ee))}function se(Ue){ye();var gn=[],Wn=e.getStrictOptionValue(D,"alwaysStrict")||!D.noImplicitUseStrict&&e.isExternalModule(ee),ze=W.copyPrologue(Ue.statements,gn,Wn&&!e.isJsonSourceFile(Ue),G);if(oe()&&e.append(gn,In()),e.length(k.exportedNames))for(var Tn=50,On=0;On<k.exportedNames.length;On+=Tn)e.append(gn,W.createExpressionStatement(e.reduceLeft(k.exportedNames.slice(On,On+Tn),function(hr,wr){return W.createAssignment(W.createPropertyAccessExpression(W.createIdentifier("exports"),W.createIdentifier(e.idText(wr))),hr)},W.createVoidZero())));e.append(gn,e.visitNode(k.externalHelpersImportDeclaration,G,e.isStatement)),e.addRange(gn,e.visitNodes(Ue.statements,G,e.isStatement,ze)),d(gn,!1),e.insertStatementsAfterStandardPrologue(gn,O());var ur=W.updateSourceFile(Ue,e.setTextRange(W.createNodeArray(gn),Ue.statements));return e.addEmitHelpers(ur,$.readEmitHelpers()),ur}function w(Ue){var gn=W.createIdentifier("define"),Wn=e.tryGetModuleNameFromFile(W,Ue,_e,D),ze=e.isJsonSourceFile(Ue)&&Ue,Tn=ne(Ue,!0),On=Tn.aliasedModuleNames,ur=Tn.unaliasedModuleNames,hr=Tn.importAliasNames,wr=W.updateSourceFile(Ue,e.setTextRange(W.createNodeArray([W.createExpressionStatement(W.createCallExpression(gn,void 0,Vr(Vr([],Wn?[Wn]:[],!0),[W.createArrayLiteralExpression(ze?e.emptyArray:Vr(Vr([W.createStringLiteral("require"),W.createStringLiteral("exports")],On,!0),ur,!0)),ze?ze.statements.length?ze.statements[0].expression:W.createObjectLiteralExpression():W.createFunctionExpression(void 0,void 0,void 0,void 0,Vr([W.createParameterDeclaration(void 0,void 0,void 0,"require"),W.createParameterDeclaration(void 0,void 0,void 0,"exports")],hr,!0),void 0,C(Ue))],!1)))]),Ue.statements));return e.addEmitHelpers(wr,$.readEmitHelpers()),wr}function R(Ue){var gn=ne(Ue,!1),Wn=gn.aliasedModuleNames,ze=gn.unaliasedModuleNames,Tn=gn.importAliasNames,On=e.tryGetModuleNameFromFile(W,Ue,_e,D),ur=W.createFunctionExpression(void 0,void 0,void 0,void 0,[W.createParameterDeclaration(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(W.createBlock([W.createIfStatement(W.createLogicalAnd(W.createTypeCheck(W.createIdentifier("module"),"object"),W.createTypeCheck(W.createPropertyAccessExpression(W.createIdentifier("module"),"exports"),"object")),W.createBlock([W.createVariableStatement(void 0,[W.createVariableDeclaration("v",void 0,void 0,W.createCallExpression(W.createIdentifier("factory"),void 0,[W.createIdentifier("require"),W.createIdentifier("exports")]))]),e.setEmitFlags(W.createIfStatement(W.createStrictInequality(W.createIdentifier("v"),W.createIdentifier("undefined")),W.createExpressionStatement(W.createAssignment(W.createPropertyAccessExpression(W.createIdentifier("module"),"exports"),W.createIdentifier("v")))),1)]),W.createIfStatement(W.createLogicalAnd(W.createTypeCheck(W.createIdentifier("define"),"function"),W.createPropertyAccessExpression(W.createIdentifier("define"),"amd")),W.createBlock([W.createExpressionStatement(W.createCallExpression(W.createIdentifier("define"),void 0,Vr(Vr([],On?[On]:[],!0),[W.createArrayLiteralExpression(Vr(Vr([W.createStringLiteral("require"),W.createStringLiteral("exports")],Wn,!0),ze,!0)),W.createIdentifier("factory")],!1)))])))],!0),void 0)),hr=W.updateSourceFile(Ue,e.setTextRange(W.createNodeArray([W.createExpressionStatement(W.createCallExpression(ur,void 0,[W.createFunctionExpression(void 0,void 0,void 0,void 0,Vr([W.createParameterDeclaration(void 0,void 0,void 0,"require"),W.createParameterDeclaration(void 0,void 0,void 0,"exports")],Tn,!0),void 0,C(Ue))]))]),Ue.statements));return e.addEmitHelpers(hr,$.readEmitHelpers()),hr}function ne(Ue,gn){for(var Wn=[],ze=[],Tn=[],On=0,ur=Ue.amdDependencies;On<ur.length;On++){var hr=ur[On];hr.name?(Wn.push(W.createStringLiteral(hr.path)),Tn.push(W.createParameterDeclaration(void 0,void 0,void 0,hr.name))):ze.push(W.createStringLiteral(hr.path))}for(var wr=0,Qr=k.externalImports;wr<Qr.length;wr++){var Ke=Qr[wr],jn=e.getExternalModuleNameLiteral(W,Ke,ee,_e,de,D),Zn=e.getLocalNameForExternalImport(W,Ke,ee);jn&&(gn&&Zn?(e.setEmitFlags(Zn,4),Wn.push(jn),Tn.push(W.createParameterDeclaration(void 0,void 0,void 0,Zn))):ze.push(jn))}return{aliasedModuleNames:Wn,unaliasedModuleNames:ze,importAliasNames:Tn}}function U(Ue){if(!(e.isImportEqualsDeclaration(Ue)||e.isExportDeclaration(Ue)||!e.getExternalModuleNameLiteral(W,Ue,ee,_e,de,D))){var gn=e.getLocalNameForExternalImport(W,Ue,ee),Wn=te(Ue,gn);if(Wn!==gn)return W.createExpressionStatement(W.createAssignment(gn,Wn))}}function C(Ue){ye();var gn=[],Wn=W.copyPrologue(Ue.statements,gn,!D.noImplicitUseStrict,G);oe()&&e.append(gn,In()),e.length(k.exportedNames)&&e.append(gn,W.createExpressionStatement(e.reduceLeft(k.exportedNames,function(Tn,On){return W.createAssignment(W.createPropertyAccessExpression(W.createIdentifier("exports"),W.createIdentifier(e.idText(On))),Tn)},W.createVoidZero()))),e.append(gn,e.visitNode(k.externalHelpersImportDeclaration,G,e.isStatement)),V===e.ModuleKind.AMD&&e.addRange(gn,e.mapDefined(k.externalImports,U)),e.addRange(gn,e.visitNodes(Ue.statements,G,e.isStatement,Wn)),d(gn,!0),e.insertStatementsAfterStandardPrologue(gn,O());var ze=W.createBlock(gn,!0);return ie&&e.addEmitHelper(ze,ue),ze}function d(Ue,gn){if(k.exportEquals){var Wn=e.visitNode(k.exportEquals.expression,p);if(Wn)if(gn){var ze=W.createReturnStatement(Wn);e.setTextRange(ze,k.exportEquals),e.setEmitFlags(ze,1920),Ue.push(ze)}else{var ze=W.createExpressionStatement(W.createAssignment(W.createPropertyAccessExpression(W.createIdentifier("module"),"exports"),Wn));e.setTextRange(ze,k.exportEquals),e.setEmitFlags(ze,1536),Ue.push(ze)}}}function G(Ue){switch(Ue.kind){case 264:return Se(Ue);case 263:return Ce(Ue);case 270:return Be(Ue);case 269:return De(Ue);case 235:return Ne(Ue);case 254:return en(Ue);case 255:return fe(Ue);case 347:return we(Ue);case 348:return Qe(Ue);default:return p(Ue)}}function g(Ue,gn){if(!(Ue.transformFlags&71305216))return Ue;switch(Ue.kind){case 240:return N(Ue);case 236:return P(Ue);case 210:return x(Ue,gn);case 345:return M(Ue,gn);case 206:if(e.isImportCall(Ue))return z(Ue);break;case 219:if(e.isDestructuringAssignment(Ue))return m(Ue,gn);break;case 217:case 218:return me(Ue,gn)}return e.visitEachChild(Ue,p,$)}function p(Ue){return g(Ue,!1)}function f(Ue){return g(Ue,!0)}function T(Ue){if(e.isObjectLiteralExpression(Ue))for(var gn=0,Wn=Ue.properties;gn<Wn.length;gn++){var ze=Wn[gn];switch(ze.kind){case 291:if(T(ze.initializer))return!0;break;case 292:if(T(ze.name))return!0;break;case 293:if(T(ze.expression))return!0;break;case 167:case 170:case 171:return!1;default:e.Debug.assertNever(ze,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(Ue))for(var Tn=0,On=Ue.elements;Tn<On.length;Tn++){var ze=On[Tn];if(e.isSpreadElement(ze)){if(T(ze.expression))return!0}else if(T(ze))return!0}else if(e.isIdentifier(Ue))return e.length(An(Ue))>(e.isExportName(Ue)?1:0);return!1}function m(Ue,gn){return T(Ue.left)?e.flattenDestructuringAssignment(Ue,p,$,0,!gn,qe):e.visitEachChild(Ue,p,$)}function N(Ue){return W.updateForStatement(Ue,e.visitNode(Ue.initializer,f,e.isForInitializer),e.visitNode(Ue.condition,p,e.isExpression),e.visitNode(Ue.incrementor,f,e.isExpression),e.visitIterationBody(Ue.statement,p,$))}function P(Ue){return W.updateExpressionStatement(Ue,e.visitNode(Ue.expression,f,e.isExpression))}function x(Ue,gn){return W.updateParenthesizedExpression(Ue,e.visitNode(Ue.expression,gn?f:p,e.isExpression))}function M(Ue,gn){return W.updatePartiallyEmittedExpression(Ue,e.visitNode(Ue.expression,gn?f:p,e.isExpression))}function me(Ue,gn){if((Ue.operator===45||Ue.operator===46)&&e.isIdentifier(Ue.operand)&&!e.isGeneratedIdentifier(Ue.operand)&&!e.isLocalName(Ue.operand)&&!e.isDeclarationNameOfEnumOrNamespace(Ue.operand)){var Wn=An(Ue.operand);if(Wn){var ze=void 0,Tn=e.visitNode(Ue.operand,p,e.isExpression);e.isPrefixUnaryExpression(Ue)?Tn=W.updatePrefixUnaryExpression(Ue,Tn):(Tn=W.updatePostfixUnaryExpression(Ue,Tn),gn||(ze=W.createTempVariable(A),Tn=W.createAssignment(ze,Tn),e.setTextRange(Tn,Ue)),Tn=W.createComma(Tn,W.cloneNode(Ue.operand)),e.setTextRange(Tn,Ue));for(var On=0,ur=Wn;On<ur.length;On++){var hr=ur[On];b[e.getNodeId(Tn)]=!0,Tn=rn(hr,Tn),e.setTextRange(Tn,Ue)}return ze&&(b[e.getNodeId(Tn)]=!0,Tn=W.createComma(Tn,ze),e.setTextRange(Tn,Ue)),Tn}}return e.visitEachChild(Ue,p,$)}function z(Ue){var gn=e.getExternalModuleNameLiteral(W,Ue,ee,_e,de,D),Wn=e.visitNode(e.firstOrUndefined(Ue.arguments),p),ze=gn&&(!Wn||!e.isStringLiteral(Wn)||Wn.text!==gn.text)?gn:Wn,Tn=!!(Ue.transformFlags&8192);switch(D.module){case e.ModuleKind.AMD:return I(ze,Tn);case e.ModuleKind.UMD:return K(ze!=null?ze:W.createVoidZero(),Tn);case e.ModuleKind.CommonJS:default:return Ae(ze,Tn)}}function K(Ue,gn){if(ie=!0,e.isSimpleCopiableExpression(Ue)){var Wn=e.isGeneratedIdentifier(Ue)?Ue:e.isStringLiteral(Ue)?W.createStringLiteralFromNode(Ue):e.setEmitFlags(e.setTextRange(W.cloneNode(Ue),Ue),1536);return W.createConditionalExpression(W.createIdentifier("__syncRequire"),void 0,Ae(Ue,gn),void 0,I(Wn,gn))}else{var ze=W.createTempVariable(A);return W.createComma(W.createAssignment(ze,Ue),W.createConditionalExpression(W.createIdentifier("__syncRequire"),void 0,Ae(ze,gn),void 0,I(ze,gn)))}}function I(Ue,gn){var Wn=W.createUniqueName("resolve"),ze=W.createUniqueName("reject"),Tn=[W.createParameterDeclaration(void 0,void 0,void 0,Wn),W.createParameterDeclaration(void 0,void 0,void 0,ze)],On=W.createBlock([W.createExpressionStatement(W.createCallExpression(W.createIdentifier("require"),void 0,[W.createArrayLiteralExpression([Ue||W.createOmittedExpression()]),Wn,ze]))]),ur;y>=2?ur=W.createArrowFunction(void 0,void 0,Tn,void 0,void 0,On):(ur=W.createFunctionExpression(void 0,void 0,void 0,void 0,Tn,void 0,On),gn&&e.setEmitFlags(ur,8));var hr=W.createNewExpression(W.createIdentifier("Promise"),void 0,[ur]);return D.esModuleInterop?W.createCallExpression(W.createPropertyAccessExpression(hr,W.createIdentifier("then")),void 0,[re().createImportStarCallbackHelper()]):hr}function Ae(Ue,gn){var Wn=W.createCallExpression(W.createPropertyAccessExpression(W.createIdentifier("Promise"),"resolve"),void 0,[]),ze=W.createCallExpression(W.createIdentifier("require"),void 0,Ue?[Ue]:[]);D.esModuleInterop&&(ze=re().createImportStarHelper(ze));var Tn;return y>=2?Tn=W.createArrowFunction(void 0,void 0,[],void 0,void 0,ze):(Tn=W.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,W.createBlock([W.createReturnStatement(ze)])),gn&&e.setEmitFlags(Tn,8)),W.createCallExpression(W.createPropertyAccessExpression(Wn,"then"),void 0,[Tn])}function Oe(Ue,gn){return!D.esModuleInterop||e.getEmitFlags(Ue)&67108864?gn:e.getExportNeedsImportStarHelper(Ue)?re().createImportStarHelper(gn):gn}function te(Ue,gn){return!D.esModuleInterop||e.getEmitFlags(Ue)&67108864?gn:e.getImportNeedsImportStarHelper(Ue)?re().createImportStarHelper(gn):e.getImportNeedsImportDefaultHelper(Ue)?re().createImportDefaultHelper(gn):gn}function Se(Ue){var gn,Wn=e.getNamespaceDeclarationNode(Ue);if(V!==e.ModuleKind.AMD)if(Ue.importClause){var ze=[];Wn&&!e.isDefaultImport(Ue)?ze.push(W.createVariableDeclaration(W.cloneNode(Wn.name),void 0,void 0,te(Ue,be(Ue)))):(ze.push(W.createVariableDeclaration(W.getGeneratedNameForNode(Ue),void 0,void 0,te(Ue,be(Ue)))),Wn&&e.isDefaultImport(Ue)&&ze.push(W.createVariableDeclaration(W.cloneNode(Wn.name),void 0,void 0,W.getGeneratedNameForNode(Ue)))),gn=e.append(gn,e.setOriginalNode(e.setTextRange(W.createVariableStatement(void 0,W.createVariableDeclarationList(ze,y>=2?2:0)),Ue),Ue))}else return e.setOriginalNode(e.setTextRange(W.createExpressionStatement(be(Ue)),Ue),Ue);else Wn&&e.isDefaultImport(Ue)&&(gn=e.append(gn,W.createVariableStatement(void 0,W.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(W.createVariableDeclaration(W.cloneNode(Wn.name),void 0,void 0,W.getGeneratedNameForNode(Ue)),Ue),Ue)],y>=2?2:0))));if(pn(Ue)){var Tn=e.getOriginalNodeId(Ue);L[Tn]=Re(L[Tn],Ue)}else gn=Re(gn,Ue);return e.singleOrMany(gn)}function be(Ue){var gn=e.getExternalModuleNameLiteral(W,Ue,ee,_e,de,D),Wn=[];return gn&&Wn.push(gn),W.createCallExpression(W.createIdentifier("require"),void 0,Wn)}function Ce(Ue){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(Ue),"import= for internal module references should be handled in an earlier transformer.");var gn;if(V!==e.ModuleKind.AMD?e.hasSyntacticModifier(Ue,1)?gn=e.append(gn,e.setOriginalNode(e.setTextRange(W.createExpressionStatement(rn(Ue.name,be(Ue))),Ue),Ue)):gn=e.append(gn,e.setOriginalNode(e.setTextRange(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(W.cloneNode(Ue.name),void 0,void 0,be(Ue))],y>=2?2:0)),Ue),Ue)):e.hasSyntacticModifier(Ue,1)&&(gn=e.append(gn,e.setOriginalNode(e.setTextRange(W.createExpressionStatement(rn(W.getExportName(Ue),W.getLocalName(Ue))),Ue),Ue))),pn(Ue)){var Wn=e.getOriginalNodeId(Ue);L[Wn]=He(L[Wn],Ue)}else gn=He(gn,Ue);return e.singleOrMany(gn)}function Be(Ue){if(Ue.moduleSpecifier){var gn=W.getGeneratedNameForNode(Ue);if(Ue.exportClause&&e.isNamedExports(Ue.exportClause)){var Wn=[];V!==e.ModuleKind.AMD&&Wn.push(e.setOriginalNode(e.setTextRange(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(gn,void 0,void 0,be(Ue))])),Ue),Ue));for(var ze=0,Tn=Ue.exportClause.elements;ze<Tn.length;ze++){var On=Tn[ze];if(y===0)Wn.push(e.setOriginalNode(e.setTextRange(W.createExpressionStatement(re().createCreateBindingHelper(gn,W.createStringLiteralFromNode(On.propertyName||On.name),On.propertyName?W.createStringLiteralFromNode(On.name):void 0)),On),On));else{var ur=!!D.esModuleInterop&&!(e.getEmitFlags(Ue)&67108864)&&e.idText(On.propertyName||On.name)==="default",hr=W.createPropertyAccessExpression(ur?re().createImportDefaultHelper(gn):gn,On.propertyName||On.name);Wn.push(e.setOriginalNode(e.setTextRange(W.createExpressionStatement(rn(W.getExportName(On),hr,void 0,!0)),On),On))}}return e.singleOrMany(Wn)}else if(Ue.exportClause){var Wn=[];return Wn.push(e.setOriginalNode(e.setTextRange(W.createExpressionStatement(rn(W.cloneNode(Ue.exportClause.name),Oe(Ue,V!==e.ModuleKind.AMD?be(Ue):e.isExportNamespaceAsDefaultDeclaration(Ue)?gn:W.createIdentifier(e.idText(Ue.exportClause.name))))),Ue),Ue)),e.singleOrMany(Wn)}else return e.setOriginalNode(e.setTextRange(W.createExpressionStatement(re().createExportStarHelper(V!==e.ModuleKind.AMD?be(Ue):gn)),Ue),Ue)}}function De(Ue){if(!Ue.isExportEquals){var gn,Wn=Ue.original;if(Wn&&pn(Wn)){var ze=e.getOriginalNodeId(Ue);L[ze]=i(L[ze],W.createIdentifier("default"),e.visitNode(Ue.expression,p),Ue,!0)}else gn=i(gn,W.createIdentifier("default"),e.visitNode(Ue.expression,p),Ue,!0);return e.singleOrMany(gn)}}function en(Ue){var gn;if(e.hasSyntacticModifier(Ue,1)?gn=e.append(gn,e.setOriginalNode(e.setTextRange(W.createFunctionDeclaration(void 0,e.visitNodes(Ue.modifiers,$n,e.isModifier),Ue.asteriskToken,W.getDeclarationName(Ue,!0,!0),void 0,e.visitNodes(Ue.parameters,p),void 0,e.visitEachChild(Ue.body,p,$)),Ue),Ue)):gn=e.append(gn,e.visitEachChild(Ue,p,$)),pn(Ue)){var Wn=e.getOriginalNodeId(Ue);L[Wn]=fn(L[Wn],Ue)}else gn=fn(gn,Ue);return e.singleOrMany(gn)}function fe(Ue){var gn;if(e.hasSyntacticModifier(Ue,1)?gn=e.append(gn,e.setOriginalNode(e.setTextRange(W.createClassDeclaration(void 0,e.visitNodes(Ue.modifiers,$n,e.isModifier),W.getDeclarationName(Ue,!0,!0),void 0,e.visitNodes(Ue.heritageClauses,p),e.visitNodes(Ue.members,p)),Ue),Ue)):gn=e.append(gn,e.visitEachChild(Ue,p,$)),pn(Ue)){var Wn=e.getOriginalNodeId(Ue);L[Wn]=fn(L[Wn],Ue)}else gn=fn(gn,Ue);return e.singleOrMany(gn)}function Ne(Ue){var gn,Wn,ze;if(e.hasSyntacticModifier(Ue,1)){for(var Tn=void 0,On=!1,ur=0,hr=Ue.declarationList.declarations;ur<hr.length;ur++){var wr=hr[ur];if(e.isIdentifier(wr.name)&&e.isLocalName(wr.name))Tn||(Tn=e.visitNodes(Ue.modifiers,$n,e.isModifier)),Wn=e.append(Wn,wr);else if(wr.initializer)if(!e.isBindingPattern(wr.name)&&(e.isArrowFunction(wr.initializer)||e.isFunctionExpression(wr.initializer)||e.isClassExpression(wr.initializer))){var Qr=W.createAssignment(e.setTextRange(W.createPropertyAccessExpression(W.createIdentifier("exports"),wr.name),wr.name),W.createIdentifier(e.getTextOfIdentifierOrLiteral(wr.name))),Ke=W.createVariableDeclaration(wr.name,wr.exclamationToken,wr.type,e.visitNode(wr.initializer,p));Wn=e.append(Wn,Ke),ze=e.append(ze,Qr),On=!0}else ze=e.append(ze,pe(wr))}if(Wn&&(gn=e.append(gn,W.updateVariableStatement(Ue,Tn,W.updateVariableDeclarationList(Ue.declarationList,Wn)))),ze){var jn=e.setOriginalNode(e.setTextRange(W.createExpressionStatement(W.inlineExpressions(ze)),Ue),Ue);On&&e.removeAllComments(jn),gn=e.append(gn,jn)}}else gn=e.append(gn,e.visitEachChild(Ue,p,$));if(pn(Ue)){var Zn=e.getOriginalNodeId(Ue);L[Zn]=Ln(L[Zn],Ue)}else gn=Ln(gn,Ue);return e.singleOrMany(gn)}function qe(Ue,gn,Wn){var ze=An(Ue);if(ze){for(var Tn=e.isExportName(Ue)?gn:W.createAssignment(Ue,gn),On=0,ur=ze;On<ur.length;On++){var hr=ur[On];e.setEmitFlags(Tn,4),Tn=rn(hr,Tn,Wn)}return Tn}return W.createAssignment(Ue,gn)}function pe(Ue){return e.isBindingPattern(Ue.name)?e.flattenDestructuringAssignment(e.visitNode(Ue,p),void 0,$,0,!1,qe):W.createAssignment(e.setTextRange(W.createPropertyAccessExpression(W.createIdentifier("exports"),Ue.name),Ue.name),Ue.initializer?e.visitNode(Ue.initializer,p):W.createVoidZero())}function we(Ue){if(pn(Ue)&&Ue.original.kind===235){var gn=e.getOriginalNodeId(Ue);L[gn]=Ln(L[gn],Ue.original)}return Ue}function pn(Ue){return(e.getEmitFlags(Ue)&4194304)!==0}function Qe(Ue){var gn=e.getOriginalNodeId(Ue),Wn=L[gn];return Wn?(delete L[gn],e.append(Wn,Ue)):Ue}function Re(Ue,gn){if(k.exportEquals)return Ue;var Wn=gn.importClause;if(!Wn)return Ue;Wn.name&&(Ue=En(Ue,Wn));var ze=Wn.namedBindings;if(ze)switch(ze.kind){case 266:Ue=En(Ue,ze);break;case 267:for(var Tn=0,On=ze.elements;Tn<On.length;Tn++){var ur=On[Tn];Ue=En(Ue,ur,!0)}break}return Ue}function He(Ue,gn){return k.exportEquals?Ue:En(Ue,gn)}function Ln(Ue,gn){if(k.exportEquals)return Ue;for(var Wn=0,ze=gn.declarationList.declarations;Wn<ze.length;Wn++){var Tn=ze[Wn];Ue=Un(Ue,Tn)}return Ue}function Un(Ue,gn){if(k.exportEquals)return Ue;if(e.isBindingPattern(gn.name))for(var Wn=0,ze=gn.name.elements;Wn<ze.length;Wn++){var Tn=ze[Wn];e.isOmittedExpression(Tn)||(Ue=Un(Ue,Tn))}else e.isGeneratedIdentifier(gn.name)||(Ue=En(Ue,gn));return Ue}function fn(Ue,gn){if(k.exportEquals)return Ue;if(e.hasSyntacticModifier(gn,1)){var Wn=e.hasSyntacticModifier(gn,512)?W.createIdentifier("default"):W.getDeclarationName(gn);Ue=i(Ue,Wn,W.getLocalName(gn),gn)}return gn.name&&(Ue=En(Ue,gn)),Ue}function En(Ue,gn,Wn){var ze=W.getDeclarationName(gn),Tn=k.exportSpecifiers.get(e.idText(ze));if(Tn)for(var On=0,ur=Tn;On<ur.length;On++){var hr=ur[On];Ue=i(Ue,hr.name,ze,hr.name,void 0,Wn)}return Ue}function i(Ue,gn,Wn,ze,Tn,On){return Ue=e.append(Ue,X(gn,Wn,ze,Tn,On)),Ue}function In(){var Ue;return y===0?Ue=W.createExpressionStatement(rn(W.createIdentifier("__esModule"),W.createTrue())):Ue=W.createExpressionStatement(W.createCallExpression(W.createPropertyAccessExpression(W.createIdentifier("Object"),"defineProperty"),void 0,[W.createIdentifier("exports"),W.createStringLiteral("__esModule"),W.createObjectLiteralExpression([W.createPropertyAssignment("value",W.createTrue())])])),e.setEmitFlags(Ue,1048576),Ue}function X(Ue,gn,Wn,ze,Tn){var On=e.setTextRange(W.createExpressionStatement(rn(Ue,gn,void 0,Tn)),Wn);return e.startOnNewLine(On),ze||e.setEmitFlags(On,1536),On}function rn(Ue,gn,Wn,ze){return e.setTextRange(ze&&y!==0?W.createCallExpression(W.createPropertyAccessExpression(W.createIdentifier("Object"),"defineProperty"),void 0,[W.createIdentifier("exports"),W.createStringLiteralFromNode(Ue),W.createObjectLiteralExpression([W.createPropertyAssignment("enumerable",W.createTrue()),W.createPropertyAssignment("get",W.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,W.createBlock([W.createReturnStatement(gn)])))])]):W.createAssignment(W.createPropertyAccessExpression(W.createIdentifier("exports"),W.cloneNode(Ue)),gn),Wn)}function $n(Ue){switch(Ue.kind){case 93:case 88:return}return Ue}function Vn(Ue,gn,Wn){gn.kind===300?(ee=gn,k=H[e.getOriginalNodeId(ee)],E(Ue,gn,Wn),ee=void 0,k=void 0):E(Ue,gn,Wn)}function le(Ue,gn){return gn=Z(Ue,gn),gn.id&&b[gn.id]?gn:Ue===1?xe(gn):e.isShorthandPropertyAssignment(gn)?Pe(gn):gn}function Pe(Ue){var gn=Ue.name,Wn=Le(gn);if(Wn!==gn){if(Ue.objectAssignmentInitializer){var ze=W.createAssignment(Wn,Ue.objectAssignmentInitializer);return e.setTextRange(W.createPropertyAssignment(gn,ze),Ue)}return e.setTextRange(W.createPropertyAssignment(gn,Wn),Ue)}return Ue}function xe(Ue){switch(Ue.kind){case 79:return Le(Ue);case 206:return Ze(Ue);case 208:return hn(Ue);case 219:return $e(Ue)}return Ue}function Ze(Ue){if(e.isIdentifier(Ue.expression)){var gn=Le(Ue.expression);if(b[e.getNodeId(gn)]=!0,!e.isIdentifier(gn))return e.addEmitFlags(W.updateCallExpression(Ue,gn,void 0,Ue.arguments),536870912)}return Ue}function hn(Ue){if(e.isIdentifier(Ue.tag)){var gn=Le(Ue.tag);if(b[e.getNodeId(gn)]=!0,!e.isIdentifier(gn))return e.addEmitFlags(W.updateTaggedTemplateExpression(Ue,gn,void 0,Ue.template),536870912)}return Ue}function Le(Ue){var gn,Wn;if(e.getEmitFlags(Ue)&4096){var ze=e.getExternalHelpersModuleName(ee);return ze?W.createPropertyAccessExpression(ze,Ue):Ue}else if(!(e.isGeneratedIdentifier(Ue)&&!(Ue.autoGenerateFlags&64))&&!e.isLocalName(Ue)){var Tn=de.getReferencedExportContainer(Ue,e.isExportName(Ue));if(Tn&&Tn.kind===300)return e.setTextRange(W.createPropertyAccessExpression(W.createIdentifier("exports"),W.cloneNode(Ue)),Ue);var On=de.getReferencedImportDeclaration(Ue);if(On){if(e.isImportClause(On))return e.setTextRange(W.createPropertyAccessExpression(W.getGeneratedNameForNode(On.parent),W.createIdentifier("default")),Ue);if(e.isImportSpecifier(On)){var ur=On.propertyName||On.name;return e.setTextRange(W.createPropertyAccessExpression(W.getGeneratedNameForNode(((Wn=(gn=On.parent)===null||gn===void 0?void 0:gn.parent)===null||Wn===void 0?void 0:Wn.parent)||On),W.cloneNode(ur)),Ue)}}}return Ue}function $e(Ue){if(e.isAssignmentOperator(Ue.operatorToken.kind)&&e.isIdentifier(Ue.left)&&!e.isGeneratedIdentifier(Ue.left)&&!e.isLocalName(Ue.left)&&!e.isDeclarationNameOfEnumOrNamespace(Ue.left)){var gn=An(Ue.left);if(gn){for(var Wn=Ue,ze=0,Tn=gn;ze<Tn.length;ze++){var On=Tn[ze];b[e.getNodeId(Wn)]=!0,Wn=rn(On,Wn,Ue)}return Wn}}return Ue}function An(Ue){if(!e.isGeneratedIdentifier(Ue)){var gn=de.getReferencedImportDeclaration(Ue)||de.getReferencedValueDeclaration(Ue);if(gn)return k&&k.exportedBindings[e.getOriginalNodeId(gn)]}}}e.transformModule=o;var ue={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}})(vn||(vn={}));var vn;(function(e){function o(ue){var $=ue.factory,Y=ue.startLexicalEnvironment,W=ue.endLexicalEnvironment,re=ue.hoistVariableDeclaration,ye=ue.getCompilerOptions(),O=ue.getEmitResolver(),A=ue.getEmitHost(),D=ue.onSubstituteNode,de=ue.onEmitNode;ue.onSubstituteNode=ze,ue.onEmitNode=Wn,ue.enableSubstitution(79),ue.enableSubstitution(292),ue.enableSubstitution(219),ue.enableSubstitution(229),ue.enableEmitNotification(300);var _e=[],y=[],V=[],Z=[],E=[],H,L,ee,k,b,ie,q;return e.chainBundle(ue,oe);function oe(Me){if(Me.isDeclarationFile||!(e.isEffectiveExternalModule(Me,ye)||Me.transformFlags&4194304))return Me;var Mn=e.getOriginalNodeId(Me);H=Me,ie=Me,L=_e[Mn]=e.collectExternalModuleInfo(ue,Me,O,ye),ee=$.createUniqueName("exports"),V[Mn]=ee,k=E[Mn]=$.createUniqueName("context");var ar=se(L.externalImports),Xn=w(Me,ar),yr=$.createFunctionExpression(void 0,void 0,void 0,void 0,[$.createParameterDeclaration(void 0,void 0,void 0,ee),$.createParameterDeclaration(void 0,void 0,void 0,k)],void 0,Xn),cr=e.tryGetModuleNameFromFile($,Me,A,ye),Fe=$.createArrayLiteralExpression(e.map(ar,function(J){return J.name})),Bn=e.setEmitFlags($.updateSourceFile(Me,e.setTextRange($.createNodeArray([$.createExpressionStatement($.createCallExpression($.createPropertyAccessExpression($.createIdentifier("System"),"register"),void 0,cr?[cr,Fe,yr]:[Fe,yr]))]),Me.statements)),1024);return e.outFile(ye)||e.moveEmitHelpers(Bn,Xn,function(J){return!J.scoped}),q&&(Z[Mn]=q,q=void 0),H=void 0,L=void 0,ee=void 0,k=void 0,b=void 0,ie=void 0,Bn}function se(Me){for(var Mn=new e.Map,ar=[],Xn=0,yr=Me;Xn<yr.length;Xn++){var cr=yr[Xn],Fe=e.getExternalModuleNameLiteral($,cr,H,A,O,ye);if(Fe){var Bn=Fe.text,J=Mn.get(Bn);J!==void 0?ar[J].externalImports.push(cr):(Mn.set(Bn,ar.length),ar.push({name:Fe,externalImports:[cr]}))}}return ar}function w(Me,Mn){var ar=[];Y();var Xn=e.getStrictOptionValue(ye,"alwaysStrict")||!ye.noImplicitUseStrict&&e.isExternalModule(H),yr=$.copyPrologue(Me.statements,ar,Xn,C);ar.push($.createVariableStatement(void 0,$.createVariableDeclarationList([$.createVariableDeclaration("__moduleName",void 0,void 0,$.createLogicalAnd(k,$.createPropertyAccessExpression(k,"id")))]))),e.visitNode(L.externalHelpersImportDeclaration,C,e.isStatement);var cr=e.visitNodes(Me.statements,C,e.isStatement,yr);e.addRange(ar,b),e.insertStatementsAfterStandardPrologue(ar,W());var Fe=R(ar),Bn=Me.transformFlags&1048576?$.createModifiersFromModifierFlags(256):void 0,J=$.createObjectLiteralExpression([$.createPropertyAssignment("setters",U(Fe,Mn)),$.createPropertyAssignment("execute",$.createFunctionExpression(Bn,void 0,void 0,void 0,[],void 0,$.createBlock(cr,!0)))],!0);return ar.push($.createReturnStatement(J)),$.createBlock(ar,!0)}function R(Me){if(L.hasExportStarsToExportValues){if(!L.exportedNames&&L.exportSpecifiers.size===0){for(var Mn=!1,ar=0,Xn=L.externalImports;ar<Xn.length;ar++){var yr=Xn[ar];if(yr.kind===270&&yr.exportClause){Mn=!0;break}}if(!Mn){var cr=ne(void 0);return Me.push(cr),cr.name}}var Fe=[];if(L.exportedNames)for(var Bn=0,J=L.exportedNames;Bn<J.length;Bn++){var Cn=J[Bn];Cn.escapedText!=="default"&&Fe.push($.createPropertyAssignment($.createStringLiteralFromNode(Cn),$.createTrue()))}var Gn=$.createUniqueName("exportedNames");Me.push($.createVariableStatement(void 0,$.createVariableDeclarationList([$.createVariableDeclaration(Gn,void 0,void 0,$.createObjectLiteralExpression(Fe,!0))])));var cn=ne(Gn);return Me.push(cn),cn.name}}function ne(Me){var Mn=$.createUniqueName("exportStar"),ar=$.createIdentifier("m"),Xn=$.createIdentifier("n"),yr=$.createIdentifier("exports"),cr=$.createStrictInequality(Xn,$.createStringLiteral("default"));return Me&&(cr=$.createLogicalAnd(cr,$.createLogicalNot($.createCallExpression($.createPropertyAccessExpression(Me,"hasOwnProperty"),void 0,[Xn])))),$.createFunctionDeclaration(void 0,void 0,void 0,Mn,void 0,[$.createParameterDeclaration(void 0,void 0,void 0,ar)],void 0,$.createBlock([$.createVariableStatement(void 0,$.createVariableDeclarationList([$.createVariableDeclaration(yr,void 0,void 0,$.createObjectLiteralExpression([]))])),$.createForInStatement($.createVariableDeclarationList([$.createVariableDeclaration(Xn)]),ar,$.createBlock([e.setEmitFlags($.createIfStatement(cr,$.createExpressionStatement($.createAssignment($.createElementAccessExpression(yr,Xn),$.createElementAccessExpression(ar,Xn)))),1)])),$.createExpressionStatement($.createCallExpression(ee,void 0,[yr]))],!0))}function U(Me,Mn){for(var ar=[],Xn=0,yr=Mn;Xn<yr.length;Xn++){for(var cr=yr[Xn],Fe=e.forEach(cr.externalImports,function(ir){return e.getLocalNameForExternalImport($,ir,H)}),Bn=Fe?$.getGeneratedNameForNode(Fe):$.createUniqueName(""),J=[],Cn=0,Gn=cr.externalImports;Cn<Gn.length;Cn++){var cn=Gn[Cn],Rn=e.getLocalNameForExternalImport($,cn,H);switch(cn.kind){case 264:if(!cn.importClause)break;case 263:e.Debug.assert(Rn!==void 0),J.push($.createExpressionStatement($.createAssignment(Rn,Bn)));break;case 270:if(e.Debug.assert(Rn!==void 0),cn.exportClause)if(e.isNamedExports(cn.exportClause)){for(var Ye=[],xn=0,an=cn.exportClause.elements;xn<an.length;xn++){var zn=an[xn];Ye.push($.createPropertyAssignment($.createStringLiteral(e.idText(zn.name)),$.createElementAccessExpression(Bn,$.createStringLiteral(e.idText(zn.propertyName||zn.name)))))}J.push($.createExpressionStatement($.createCallExpression(ee,void 0,[$.createObjectLiteralExpression(Ye,!0)])))}else J.push($.createExpressionStatement($.createCallExpression(ee,void 0,[$.createStringLiteral(e.idText(cn.exportClause.name)),Bn])));else J.push($.createExpressionStatement($.createCallExpression(Me,void 0,[Bn])));break}}ar.push($.createFunctionExpression(void 0,void 0,void 0,void 0,[$.createParameterDeclaration(void 0,void 0,void 0,Bn)],void 0,$.createBlock(J,!0)))}return $.createArrayLiteralExpression(ar,!0)}function C(Me){switch(Me.kind){case 264:return d(Me);case 263:return g(Me);case 270:return G(Me);case 269:return p(Me);default:return Ne(Me)}}function d(Me){var Mn;if(Me.importClause&&re(e.getLocalNameForExternalImport($,Me,H)),I(Me)){var ar=e.getOriginalNodeId(Me);y[ar]=Oe(y[ar],Me)}else Mn=Oe(Mn,Me);return e.singleOrMany(Mn)}function G(Me){e.Debug.assertIsDefined(Me)}function g(Me){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(Me),"import= for internal module references should be handled in an earlier transformer.");var Mn;if(re(e.getLocalNameForExternalImport($,Me,H)),I(Me)){var ar=e.getOriginalNodeId(Me);y[ar]=te(y[ar],Me)}else Mn=te(Mn,Me);return e.singleOrMany(Mn)}function p(Me){if(!Me.isExportEquals){var Mn=e.visitNode(Me.expression,le,e.isExpression),ar=Me.original;if(ar&&I(ar)){var Xn=e.getOriginalNodeId(Me);y[Xn]=De(y[Xn],$.createIdentifier("default"),Mn,!0)}else return en($.createIdentifier("default"),Mn,!0)}}function f(Me){if(e.hasSyntacticModifier(Me,1)?b=e.append(b,$.updateFunctionDeclaration(Me,Me.decorators,e.visitNodes(Me.modifiers,gn,e.isModifier),Me.asteriskToken,$.getDeclarationName(Me,!0,!0),void 0,e.visitNodes(Me.parameters,le,e.isParameterDeclaration),void 0,e.visitNode(Me.body,le,e.isBlock))):b=e.append(b,e.visitEachChild(Me,le,ue)),I(Me)){var Mn=e.getOriginalNodeId(Me);y[Mn]=Ce(y[Mn],Me)}else b=Ce(b,Me)}function T(Me){var Mn,ar=$.getLocalName(Me);if(re(ar),Mn=e.append(Mn,e.setTextRange($.createExpressionStatement($.createAssignment(ar,e.setTextRange($.createClassExpression(e.visitNodes(Me.decorators,le,e.isDecorator),void 0,Me.name,void 0,e.visitNodes(Me.heritageClauses,le,e.isHeritageClause),e.visitNodes(Me.members,le,e.isClassElement)),Me))),Me)),I(Me)){var Xn=e.getOriginalNodeId(Me);y[Xn]=Ce(y[Xn],Me)}else Mn=Ce(Mn,Me);return e.singleOrMany(Mn)}function m(Me){if(!P(Me.declarationList))return e.visitNode(Me,le,e.isStatement);for(var Mn,ar=e.hasSyntacticModifier(Me,1),Xn=I(Me),yr=0,cr=Me.declarationList.declarations;yr<cr.length;yr++){var Fe=cr[yr];Fe.initializer?Mn=e.append(Mn,x(Fe,ar&&!Xn)):N(Fe)}var Bn;if(Mn&&(Bn=e.append(Bn,e.setTextRange($.createExpressionStatement($.inlineExpressions(Mn)),Me))),Xn){var J=e.getOriginalNodeId(Me);y[J]=Se(y[J],Me,ar)}else Bn=Se(Bn,Me,!1);return e.singleOrMany(Bn)}function N(Me){if(e.isBindingPattern(Me.name))for(var Mn=0,ar=Me.name.elements;Mn<ar.length;Mn++){var Xn=ar[Mn];e.isOmittedExpression(Xn)||N(Xn)}else re($.cloneNode(Me.name))}function P(Me){return(e.getEmitFlags(Me)&2097152)===0&&(ie.kind===300||(e.getOriginalNode(Me).flags&3)===0)}function x(Me,Mn){var ar=Mn?M:me;return e.isBindingPattern(Me.name)?e.flattenDestructuringAssignment(Me,le,ue,0,!1,ar):Me.initializer?ar(Me.name,e.visitNode(Me.initializer,le,e.isExpression)):Me.name}function M(Me,Mn,ar){return z(Me,Mn,ar,!0)}function me(Me,Mn,ar){return z(Me,Mn,ar,!1)}function z(Me,Mn,ar,Xn){return re($.cloneNode(Me)),Xn?fe(Me,jn(e.setTextRange($.createAssignment(Me,Mn),ar))):jn(e.setTextRange($.createAssignment(Me,Mn),ar))}function K(Me){if(I(Me)&&Me.original.kind===235){var Mn=e.getOriginalNodeId(Me),ar=e.hasSyntacticModifier(Me.original,1);y[Mn]=Se(y[Mn],Me.original,ar)}return Me}function I(Me){return(e.getEmitFlags(Me)&4194304)!==0}function Ae(Me){var Mn=e.getOriginalNodeId(Me),ar=y[Mn];if(ar)return delete y[Mn],e.append(ar,Me);var Xn=e.getOriginalNode(Me);return e.isModuleOrEnumDeclaration(Xn)?e.append(Be(ar,Xn),Me):Me}function Oe(Me,Mn){if(L.exportEquals)return Me;var ar=Mn.importClause;if(!ar)return Me;ar.name&&(Me=Be(Me,ar));var Xn=ar.namedBindings;if(Xn)switch(Xn.kind){case 266:Me=Be(Me,Xn);break;case 267:for(var yr=0,cr=Xn.elements;yr<cr.length;yr++){var Fe=cr[yr];Me=Be(Me,Fe)}break}return Me}function te(Me,Mn){return L.exportEquals?Me:Be(Me,Mn)}function Se(Me,Mn,ar){if(L.exportEquals)return Me;for(var Xn=0,yr=Mn.declarationList.declarations;Xn<yr.length;Xn++){var cr=yr[Xn];(cr.initializer||ar)&&(Me=be(Me,cr,ar))}return Me}function be(Me,Mn,ar){if(L.exportEquals)return Me;if(e.isBindingPattern(Mn.name))for(var Xn=0,yr=Mn.name.elements;Xn<yr.length;Xn++){var cr=yr[Xn];e.isOmittedExpression(cr)||(Me=be(Me,cr,ar))}else if(!e.isGeneratedIdentifier(Mn.name)){var Fe=void 0;ar&&(Me=De(Me,Mn.name,$.getLocalName(Mn)),Fe=e.idText(Mn.name)),Me=Be(Me,Mn,Fe)}return Me}function Ce(Me,Mn){if(L.exportEquals)return Me;var ar;if(e.hasSyntacticModifier(Mn,1)){var Xn=e.hasSyntacticModifier(Mn,512)?$.createStringLiteral("default"):Mn.name;Me=De(Me,Xn,$.getLocalName(Mn)),ar=e.getTextOfIdentifierOrLiteral(Xn)}return Mn.name&&(Me=Be(Me,Mn,ar)),Me}function Be(Me,Mn,ar){if(L.exportEquals)return Me;var Xn=$.getDeclarationName(Mn),yr=L.exportSpecifiers.get(e.idText(Xn));if(yr)for(var cr=0,Fe=yr;cr<Fe.length;cr++){var Bn=Fe[cr];Bn.name.escapedText!==ar&&(Me=De(Me,Bn.name,Xn))}return Me}function De(Me,Mn,ar,Xn){return Me=e.append(Me,en(Mn,ar,Xn)),Me}function en(Me,Mn,ar){var Xn=$.createExpressionStatement(fe(Me,Mn));return e.startOnNewLine(Xn),ar||e.setEmitFlags(Xn,1536),Xn}function fe(Me,Mn){var ar=e.isIdentifier(Me)?$.createStringLiteralFromNode(Me):Me;return e.setEmitFlags(Mn,e.getEmitFlags(Mn)|1536),e.setCommentRange($.createCallExpression(ee,void 0,[ar,Mn]),Mn)}function Ne(Me){switch(Me.kind){case 235:return m(Me);case 254:return f(Me);case 255:return T(Me);case 240:return qe(Me,!0);case 241:return pe(Me);case 242:return we(Me);case 238:return Re(Me);case 239:return He(Me);case 248:return Ln(Me);case 246:return Un(Me);case 247:return fn(Me);case 261:return En(Me);case 287:return i(Me);case 288:return In(Me);case 250:return X(Me);case 290:return rn(Me);case 233:return $n(Me);case 347:return K(Me);case 348:return Ae(Me);default:return le(Me)}}function qe(Me,Mn){var ar=ie;return ie=Me,Me=$.updateForStatement(Me,e.visitNode(Me.initializer,Mn?Qe:Pe,e.isForInitializer),e.visitNode(Me.condition,le,e.isExpression),e.visitNode(Me.incrementor,Pe,e.isExpression),e.visitIterationBody(Me.statement,Mn?Ne:le,ue)),ie=ar,Me}function pe(Me){var Mn=ie;return ie=Me,Me=$.updateForInStatement(Me,Qe(Me.initializer),e.visitNode(Me.expression,le,e.isExpression),e.visitIterationBody(Me.statement,Ne,ue)),ie=Mn,Me}function we(Me){var Mn=ie;return ie=Me,Me=$.updateForOfStatement(Me,Me.awaitModifier,Qe(Me.initializer),e.visitNode(Me.expression,le,e.isExpression),e.visitIterationBody(Me.statement,Ne,ue)),ie=Mn,Me}function pn(Me){return e.isVariableDeclarationList(Me)&&P(Me)}function Qe(Me){if(pn(Me)){for(var Mn=void 0,ar=0,Xn=Me.declarations;ar<Xn.length;ar++){var yr=Xn[ar];Mn=e.append(Mn,x(yr,!1)),yr.initializer||N(yr)}return Mn?$.inlineExpressions(Mn):$.createOmittedExpression()}else return e.visitNode(Me,Pe,e.isExpression)}function Re(Me){return $.updateDoStatement(Me,e.visitIterationBody(Me.statement,Ne,ue),e.visitNode(Me.expression,le,e.isExpression))}function He(Me){return $.updateWhileStatement(Me,e.visitNode(Me.expression,le,e.isExpression),e.visitIterationBody(Me.statement,Ne,ue))}function Ln(Me){return $.updateLabeledStatement(Me,Me.label,e.visitNode(Me.statement,Ne,e.isStatement,$.liftToBlock))}function Un(Me){return $.updateWithStatement(Me,e.visitNode(Me.expression,le,e.isExpression),e.visitNode(Me.statement,Ne,e.isStatement,$.liftToBlock))}function fn(Me){return $.updateSwitchStatement(Me,e.visitNode(Me.expression,le,e.isExpression),e.visitNode(Me.caseBlock,Ne,e.isCaseBlock))}function En(Me){var Mn=ie;return ie=Me,Me=$.updateCaseBlock(Me,e.visitNodes(Me.clauses,Ne,e.isCaseOrDefaultClause)),ie=Mn,Me}function i(Me){return $.updateCaseClause(Me,e.visitNode(Me.expression,le,e.isExpression),e.visitNodes(Me.statements,Ne,e.isStatement))}function In(Me){return e.visitEachChild(Me,Ne,ue)}function X(Me){return e.visitEachChild(Me,Ne,ue)}function rn(Me){var Mn=ie;return ie=Me,Me=$.updateCatchClause(Me,Me.variableDeclaration,e.visitNode(Me.block,Ne,e.isBlock)),ie=Mn,Me}function $n(Me){var Mn=ie;return ie=Me,Me=e.visitEachChild(Me,Ne,ue),ie=Mn,Me}function Vn(Me,Mn){if(!(Me.transformFlags&71305216))return Me;switch(Me.kind){case 240:return qe(Me,!1);case 236:return xe(Me);case 210:return Ze(Me,Mn);case 345:return hn(Me,Mn);case 219:if(e.isDestructuringAssignment(Me))return $e(Me,Mn);break;case 206:if(e.isImportCall(Me))return Le(Me);break;case 217:case 218:return Ue(Me,Mn)}return e.visitEachChild(Me,le,ue)}function le(Me){return Vn(Me,!1)}function Pe(Me){return Vn(Me,!0)}function xe(Me){return $.updateExpressionStatement(Me,e.visitNode(Me.expression,Pe,e.isExpression))}function Ze(Me,Mn){return $.updateParenthesizedExpression(Me,e.visitNode(Me.expression,Mn?Pe:le,e.isExpression))}function hn(Me,Mn){return $.updatePartiallyEmittedExpression(Me,e.visitNode(Me.expression,Mn?Pe:le,e.isExpression))}function Le(Me){var Mn=e.getExternalModuleNameLiteral($,Me,H,A,O,ye),ar=e.visitNode(e.firstOrUndefined(Me.arguments),le),Xn=Mn&&(!ar||!e.isStringLiteral(ar)||ar.text!==Mn.text)?Mn:ar;return $.createCallExpression($.createPropertyAccessExpression(k,$.createIdentifier("import")),void 0,Xn?[Xn]:[])}function $e(Me,Mn){return An(Me.left)?e.flattenDestructuringAssignment(Me,le,ue,0,!Mn):e.visitEachChild(Me,le,ue)}function An(Me){if(e.isAssignmentExpression(Me,!0))return An(Me.left);if(e.isSpreadElement(Me))return An(Me.expression);if(e.isObjectLiteralExpression(Me))return e.some(Me.properties,An);if(e.isArrayLiteralExpression(Me))return e.some(Me.elements,An);if(e.isShorthandPropertyAssignment(Me))return An(Me.name);if(e.isPropertyAssignment(Me))return An(Me.initializer);if(e.isIdentifier(Me)){var Mn=O.getReferencedExportContainer(Me);return Mn!==void 0&&Mn.kind===300}else return!1}function Ue(Me,Mn){if((Me.operator===45||Me.operator===46)&&e.isIdentifier(Me.operand)&&!e.isGeneratedIdentifier(Me.operand)&&!e.isLocalName(Me.operand)&&!e.isDeclarationNameOfEnumOrNamespace(Me.operand)){var ar=Ke(Me.operand);if(ar){var Xn=void 0,yr=e.visitNode(Me.operand,le,e.isExpression);e.isPrefixUnaryExpression(Me)?yr=$.updatePrefixUnaryExpression(Me,yr):(yr=$.updatePostfixUnaryExpression(Me,yr),Mn||(Xn=$.createTempVariable(re),yr=$.createAssignment(Xn,yr),e.setTextRange(yr,Me)),yr=$.createComma(yr,$.cloneNode(Me.operand)),e.setTextRange(yr,Me));for(var cr=0,Fe=ar;cr<Fe.length;cr++){var Bn=Fe[cr];yr=fe(Bn,jn(yr))}return Xn&&(yr=$.createComma(yr,Xn),e.setTextRange(yr,Me)),yr}}return e.visitEachChild(Me,le,ue)}function gn(Me){switch(Me.kind){case 93:case 88:return}return Me}function Wn(Me,Mn,ar){if(Mn.kind===300){var Xn=e.getOriginalNodeId(Mn);H=Mn,L=_e[Xn],ee=V[Xn],q=Z[Xn],k=E[Xn],q&&delete Z[Xn],de(Me,Mn,ar),H=void 0,L=void 0,ee=void 0,k=void 0,q=void 0}else de(Me,Mn,ar)}function ze(Me,Mn){return Mn=D(Me,Mn),Zn(Mn)?Mn:Me===1?ur(Mn):Me===4?Tn(Mn):Mn}function Tn(Me){switch(Me.kind){case 292:return On(Me)}return Me}function On(Me){var Mn,ar,Xn=Me.name;if(!e.isGeneratedIdentifier(Xn)&&!e.isLocalName(Xn)){var yr=O.getReferencedImportDeclaration(Xn);if(yr){if(e.isImportClause(yr))return e.setTextRange($.createPropertyAssignment($.cloneNode(Xn),$.createPropertyAccessExpression($.getGeneratedNameForNode(yr.parent),$.createIdentifier("default"))),Me);if(e.isImportSpecifier(yr))return e.setTextRange($.createPropertyAssignment($.cloneNode(Xn),$.createPropertyAccessExpression($.getGeneratedNameForNode(((ar=(Mn=yr.parent)===null||Mn===void 0?void 0:Mn.parent)===null||ar===void 0?void 0:ar.parent)||yr),$.cloneNode(yr.propertyName||yr.name))),Me)}}return Me}function ur(Me){switch(Me.kind){case 79:return hr(Me);case 219:return wr(Me);case 229:return Qr(Me)}return Me}function hr(Me){var Mn,ar;if(e.getEmitFlags(Me)&4096){var Xn=e.getExternalHelpersModuleName(H);return Xn?$.createPropertyAccessExpression(Xn,Me):Me}if(!e.isGeneratedIdentifier(Me)&&!e.isLocalName(Me)){var yr=O.getReferencedImportDeclaration(Me);if(yr){if(e.isImportClause(yr))return e.setTextRange($.createPropertyAccessExpression($.getGeneratedNameForNode(yr.parent),$.createIdentifier("default")),Me);if(e.isImportSpecifier(yr))return e.setTextRange($.createPropertyAccessExpression($.getGeneratedNameForNode(((ar=(Mn=yr.parent)===null||Mn===void 0?void 0:Mn.parent)===null||ar===void 0?void 0:ar.parent)||yr),$.cloneNode(yr.propertyName||yr.name)),Me)}}return Me}function wr(Me){if(e.isAssignmentOperator(Me.operatorToken.kind)&&e.isIdentifier(Me.left)&&!e.isGeneratedIdentifier(Me.left)&&!e.isLocalName(Me.left)&&!e.isDeclarationNameOfEnumOrNamespace(Me.left)){var Mn=Ke(Me.left);if(Mn){for(var ar=Me,Xn=0,yr=Mn;Xn<yr.length;Xn++){var cr=yr[Xn];ar=fe(cr,jn(ar))}return ar}}return Me}function Qr(Me){return e.isImportMeta(Me)?$.createPropertyAccessExpression(k,$.createIdentifier("meta")):Me}function Ke(Me){var Mn;if(!e.isGeneratedIdentifier(Me)){var ar=O.getReferencedImportDeclaration(Me)||O.getReferencedValueDeclaration(Me);if(ar){var Xn=O.getReferencedExportContainer(Me,!1);Xn&&Xn.kind===300&&(Mn=e.append(Mn,$.getDeclarationName(ar))),Mn=e.addRange(Mn,L&&L.exportedBindings[e.getOriginalNodeId(ar)])}}return Mn}function jn(Me){return q===void 0&&(q=[]),q[e.getNodeId(Me)]=!0,Me}function Zn(Me){return q&&Me.id&&q[Me.id]}}e.transformSystemModule=o})(vn||(vn={}));var vn;(function(e){function o(ue){var $=ue.factory,Y=ue.getEmitHelperFactory,W=ue.getCompilerOptions(),re=ue.onEmitNode,ye=ue.onSubstituteNode;ue.onEmitNode=V,ue.onSubstituteNode=Z,ue.enableEmitNotification(300),ue.enableSubstitution(79);var O;return e.chainBundle(ue,A);function A(H){if(H.isDeclarationFile)return H;if(e.isExternalModule(H)||W.isolatedModules){var L=D(H);return!e.isExternalModule(H)||e.some(L.statements,e.isExternalModuleIndicator)?L:$.updateSourceFile(L,e.setTextRange($.createNodeArray(Vr(Vr([],L.statements,!0),[e.createEmptyExports($)],!1)),L.statements))}return H}function D(H){var L=e.createExternalHelpersImportDeclarationIfNeeded($,Y(),H,W);if(L){var ee=[],k=$.copyPrologue(H.statements,ee);return e.append(ee,L),e.addRange(ee,e.visitNodes(H.statements,de,e.isStatement,k)),$.updateSourceFile(H,e.setTextRange($.createNodeArray(ee),H.statements))}else return e.visitEachChild(H,de,ue)}function de(H){switch(H.kind){case 263:return;case 269:return _e(H);case 270:var L=H;return y(L)}return H}function _e(H){return H.isExportEquals?void 0:H}function y(H){if(W.module!==void 0&&W.module>e.ModuleKind.ES2015||!H.exportClause||!e.isNamespaceExport(H.exportClause)||!H.moduleSpecifier)return H;var L=H.exportClause.name,ee=$.getGeneratedNameForNode(L),k=$.createImportDeclaration(void 0,void 0,$.createImportClause(!1,void 0,$.createNamespaceImport(ee)),H.moduleSpecifier);e.setOriginalNode(k,H.exportClause);var b=e.isExportNamespaceAsDefaultDeclaration(H)?$.createExportDefault(ee):$.createExportDeclaration(void 0,void 0,!1,$.createNamedExports([$.createExportSpecifier(ee,L)]));return e.setOriginalNode(b,H),[k,b]}function V(H,L,ee){e.isSourceFile(L)?((e.isExternalModule(L)||W.isolatedModules)&&W.importHelpers&&(O=new e.Map),re(H,L,ee),O=void 0):re(H,L,ee)}function Z(H,L){return L=ye(H,L),O&&e.isIdentifier(L)&&e.getEmitFlags(L)&4096?E(L):L}function E(H){var L=e.idText(H),ee=O.get(L);return ee||O.set(L,ee=$.createUniqueName(L,48)),ee}}e.transformECMAScriptModule=o})(vn||(vn={}));var vn;(function(e){function o(Y){return e.isVariableDeclaration(Y)||e.isPropertyDeclaration(Y)||e.isPropertySignature(Y)||e.isBindingElement(Y)||e.isSetAccessor(Y)||e.isGetAccessor(Y)||e.isConstructSignatureDeclaration(Y)||e.isCallSignatureDeclaration(Y)||e.isMethodDeclaration(Y)||e.isMethodSignature(Y)||e.isFunctionDeclaration(Y)||e.isParameter(Y)||e.isTypeParameterDeclaration(Y)||e.isExpressionWithTypeArguments(Y)||e.isImportEqualsDeclaration(Y)||e.isTypeAliasDeclaration(Y)||e.isConstructorDeclaration(Y)||e.isIndexSignatureDeclaration(Y)||e.isPropertyAccessExpression(Y)||e.isJSDocTypeAlias(Y)}e.canProduceDiagnostics=o;function ue(Y){if(e.isSetAccessor(Y)||e.isGetAccessor(Y))return W;return e.isMethodSignature(Y)||e.isMethodDeclaration(Y)?ye:$(Y);function W(A){var D=re(A);return D!==void 0?{diagnosticMessage:D,errorNode:Y,typeName:Y.name}:void 0}function re(A){return e.isStatic(Y)?A.errorModuleName?A.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:Y.parent.kind===255?A.errorModuleName?A.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:A.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 ye(A){var D=O(A);return D!==void 0?{diagnosticMessage:D,errorNode:Y,typeName:Y.name}:void 0}function O(A){return e.isStatic(Y)?A.errorModuleName?A.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:Y.parent.kind===255?A.errorModuleName?A.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:A.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=ue;function $(Y){if(e.isVariableDeclaration(Y)||e.isPropertyDeclaration(Y)||e.isPropertySignature(Y)||e.isPropertyAccessExpression(Y)||e.isBindingElement(Y)||e.isConstructorDeclaration(Y))return re;return e.isSetAccessor(Y)||e.isGetAccessor(Y)?ye:e.isConstructSignatureDeclaration(Y)||e.isCallSignatureDeclaration(Y)||e.isMethodDeclaration(Y)||e.isMethodSignature(Y)||e.isFunctionDeclaration(Y)||e.isIndexSignatureDeclaration(Y)?O:e.isParameter(Y)?e.isParameterPropertyDeclaration(Y,Y.parent)&&e.hasSyntacticModifier(Y.parent,8)?re:A:e.isTypeParameterDeclaration(Y)?de:e.isExpressionWithTypeArguments(Y)?_e:e.isImportEqualsDeclaration(Y)?y:e.isTypeAliasDeclaration(Y)||e.isJSDocTypeAlias(Y)?V:e.Debug.assertNever(Y,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[Y.kind]);function W(Z){if(Y.kind===252||Y.kind===201)return Z.errorModuleName?Z.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(Y.kind===165||Y.kind===204||Y.kind===164||Y.kind===162&&e.hasSyntacticModifier(Y.parent,8))return e.isStatic(Y)?Z.errorModuleName?Z.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:Y.parent.kind===255||Y.kind===162?Z.errorModuleName?Z.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:Z.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 re(Z){var E=W(Z);return E!==void 0?{diagnosticMessage:E,errorNode:Y,typeName:Y.name}:void 0}function ye(Z){var E;return Y.kind===171?e.isStatic(Y)?E=Z.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:E=Z.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(Y)?E=Z.errorModuleName?Z.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:E=Z.errorModuleName?Z.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:E,errorNode:Y.name,typeName:Y.name}}function O(Z){var E;switch(Y.kind){case 173:E=Z.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 172:E=Z.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 174:E=Z.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 167:case 166:e.isStatic(Y)?E=Z.errorModuleName?Z.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:Y.parent.kind===255?E=Z.errorModuleName?Z.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:E=Z.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 254:E=Z.errorModuleName?Z.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: "+Y.kind)}return{diagnosticMessage:E,errorNode:Y.name||Y}}function A(Z){var E=D(Z);return E!==void 0?{diagnosticMessage:E,errorNode:Y,typeName:Y.name}:void 0}function D(Z){switch(Y.parent.kind){case 169:return Z.errorModuleName?Z.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 173:case 178:return Z.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 172:return Z.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 174:return Z.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 167:case 166:return e.isStatic(Y.parent)?Z.errorModuleName?Z.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:Y.parent.parent.kind===255?Z.errorModuleName?Z.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:Z.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 254:case 177:return Z.errorModuleName?Z.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 171:case 170:return Z.errorModuleName?Z.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[Y.parent.kind])}}function de(){var Z;switch(Y.parent.kind){case 255:Z=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 256:Z=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 193:Z=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 178:case 173:Z=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 172:Z=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 167:case 166:e.isStatic(Y.parent)?Z=e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:Y.parent.parent.kind===255?Z=e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:Z=e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 177:case 254:Z=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 257:Z=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: "+Y.parent.kind)}return{diagnosticMessage:Z,errorNode:Y,typeName:Y.name}}function _e(){var Z;return e.isClassDeclaration(Y.parent.parent)?Z=e.isHeritageClause(Y.parent)&&Y.parent.token===117?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:Y.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:Z=e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:Z,errorNode:Y,typeName:e.getNameOfDeclaration(Y.parent.parent)}}function y(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:Y,typeName:Y.name}}function V(Z){return{diagnosticMessage:Z.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(Y)?e.Debug.checkDefined(Y.typeExpression):Y.type,typeName:e.isJSDocTypeAlias(Y)?e.getNameOfDeclaration(Y):Y.name}}}e.createGetSymbolAccessibilityDiagnosticForNode=$})(vn||(vn={}));var vn;(function(e){function o(y,V,Z){var E=y.getCompilerOptions(),H=e.transformNodes(V,y,e.factory,E,Z?[Z]:e.filter(y.getSourceFiles(),e.isSourceFileNotJson),[W],!1);return H.diagnostics}e.getDeclarationDiagnostics=o;function ue(y,V){var Z=V.text.substring(y.pos,y.end);return e.stringContains(Z,"@internal")}function $(y,V){var Z=e.getParseTreeNode(y);if(Z&&Z.kind===162){var E=Z.parent.parameters.indexOf(Z),H=E>0?Z.parent.parameters[E-1]:void 0,L=V.text,ee=H?e.concatenate(e.getTrailingCommentRanges(L,e.skipTrivia(L,H.end+1,!1,!0)),e.getLeadingCommentRanges(L,y.pos)):e.getTrailingCommentRanges(L,e.skipTrivia(L,y.pos,!1,!0));return ee&&ee.length&&ue(e.last(ee),V)}var k=Z&&e.getLeadingCommentRangesOfNode(Z,V);return!!e.forEach(k,function(b){return ue(b,V)})}e.isInternalDeclaration=$;var Y=531469;function W(y){var V=function(){return e.Debug.fail("Diagnostic emitted without context")},Z=V,E=!0,H=!1,L=!1,ee=!1,k=!1,b,ie,q,oe,se,w,R=y.factory,ne=y.getEmitHost(),U={trackSymbol:K,reportInaccessibleThisError:Se,reportInaccessibleUniqueSymbolError:Oe,reportCyclicStructureError:te,reportPrivateInBaseOfClassExpression:I,reportLikelyUnsafeImportRequiredError:be,reportTruncationError:Ce,moduleResolverHost:ne,trackReferencedAmbientModule:M,trackExternalModuleSymbolOfImportTypeNode:z,reportNonlocalAugmentation:Be,reportNonSerializableProperty:De},C,d,G,g,p,f,T=y.getEmitResolver(),m=y.getCompilerOptions(),N=m.noResolve,P=m.stripInternal;return fe;function x(Ke){if(Ke){ie=ie||new e.Set;for(var jn=0,Zn=Ke;jn<Zn.length;jn++){var Me=Zn[jn];ie.add(Me)}}}function M(Ke,jn){var Zn=T.getTypeReferenceDirectivesForSymbol(jn,67108863);if(e.length(Zn))return x(Zn);var Me=e.getSourceFileOfNode(Ke);g.set(e.getOriginalNodeId(Me),Me)}function me(Ke){if(Ke.accessibility===0){if(Ke&&Ke.aliasesToMakeVisible)if(!q)q=Ke.aliasesToMakeVisible;else for(var jn=0,Zn=Ke.aliasesToMakeVisible;jn<Zn.length;jn++){var Me=Zn[jn];e.pushIfUnique(q,Me)}}else{var Mn=Z(Ke);if(Mn)return Mn.typeName?y.addDiagnostic(e.createDiagnosticForNode(Ke.errorNode||Mn.errorNode,Mn.diagnosticMessage,e.getTextOfNode(Mn.typeName),Ke.errorSymbolName,Ke.errorModuleName)):y.addDiagnostic(e.createDiagnosticForNode(Ke.errorNode||Mn.errorNode,Mn.diagnosticMessage,Ke.errorSymbolName,Ke.errorModuleName)),!0}return!1}function z(Ke){H||(w||(w=[])).push(Ke)}function K(Ke,jn,Zn){if(Ke.flags&262144)return!1;var Me=me(T.isSymbolAccessible(Ke,jn,Zn,!0));return x(T.getTypeReferenceDirectivesForSymbol(Ke,Zn)),Me}function I(Ke){(C||d)&&y.addDiagnostic(e.createDiagnosticForNode(C||d,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,Ke))}function Ae(){return C?e.declarationNameToString(C):d&&e.getNameOfDeclaration(d)?e.declarationNameToString(e.getNameOfDeclaration(d)):d&&e.isExportAssignment(d)?d.isExportEquals?"export=":"default":"(Missing)"}function Oe(){(C||d)&&y.addDiagnostic(e.createDiagnosticForNode(C||d,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Ae(),"unique symbol"))}function te(){(C||d)&&y.addDiagnostic(e.createDiagnosticForNode(C||d,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,Ae()))}function Se(){(C||d)&&y.addDiagnostic(e.createDiagnosticForNode(C||d,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Ae(),"this"))}function be(Ke){(C||d)&&y.addDiagnostic(e.createDiagnosticForNode(C||d,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,Ae(),Ke))}function Ce(){(C||d)&&y.addDiagnostic(e.createDiagnosticForNode(C||d,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Be(Ke,jn,Zn){var Me,Mn=(Me=jn.declarations)===null||Me===void 0?void 0:Me.find(function(Fe){return e.getSourceFileOfNode(Fe)===Ke}),ar=e.filter(Zn.declarations,function(Fe){return e.getSourceFileOfNode(Fe)!==Ke});if(ar)for(var Xn=0,yr=ar;Xn<yr.length;Xn++){var cr=yr[Xn];y.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(cr,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(Mn,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}}function De(Ke){(C||d)&&y.addDiagnostic(e.createDiagnosticForNode(C||d,e.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,Ke))}function en(Ke,jn){var Zn=Z;Z=function(Mn){return Mn.errorNode&&e.canProduceDiagnostics(Mn.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(Mn.errorNode)(Mn):{diagnosticMessage:Mn.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:Mn.errorNode||Ke}};var Me=T.getDeclarationStatementsForSourceFile(Ke,Y,U,jn);return Z=Zn,Me}function fe(Ke){if(Ke.kind===300&&Ke.isDeclarationFile)return Ke;if(Ke.kind===301){H=!0,g=new e.Map,p=new e.Map;var jn=!1,Zn=R.createBundle(e.map(Ke.sourceFiles,function(Rn){if(!Rn.isDeclarationFile){if(jn=jn||Rn.hasNoDefaultLib,G=Rn,b=Rn,q=void 0,se=!1,oe=new e.Map,Z=V,ee=!1,k=!1,Ne(Rn,g),qe(Rn,p),e.isExternalOrCommonJsModule(Rn)||e.isJsonSourceFile(Rn)){L=!1,E=!1;var Ye=e.isSourceFileJS(Rn)?R.createNodeArray(en(Rn,!0)):e.visitNodes(Rn.statements,hn),xn=R.updateSourceFile(Rn,[R.createModuleDeclaration([],[R.createModifier(134)],R.createStringLiteral(e.getResolvedExternalModuleName(y.getEmitHost(),Rn)),R.createModuleBlock(e.setTextRange(R.createNodeArray(Pe(Ye)),Rn.statements)))],!0,[],[],!1,[]);return xn}E=!0;var an=e.isSourceFileJS(Rn)?R.createNodeArray(en(Rn)):e.visitNodes(Rn.statements,hn);return R.updateSourceFile(Rn,Pe(an),!0,[],[],!1,[])}}),e.mapDefined(Ke.prepends,function(Rn){if(Rn.kind===303){var Ye=e.createUnparsedSourceFile(Rn,"dts",P);return jn=jn||!!Ye.hasNoDefaultLib,Ne(Ye,g),x(Ye.typeReferenceDirectives),qe(Ye,p),Ye}return Rn}));Zn.syntheticFileReferences=[],Zn.syntheticTypeReferences=Cn(),Zn.syntheticLibReferences=J(),Zn.hasNoDefaultLib=jn;var Me=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(Ke,ne,!0).declarationFilePath)),Mn=cn(Zn.syntheticFileReferences,Me);return g.forEach(Mn),Zn}E=!0,ee=!1,k=!1,b=Ke,G=Ke,Z=V,H=!1,L=!1,se=!1,q=void 0,oe=new e.Map,ie=void 0,g=Ne(G,new e.Map),p=qe(G,new e.Map);var ar=[],Xn=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(Ke,ne,!0).declarationFilePath)),yr=cn(ar,Xn),cr;if(e.isSourceFileJS(G))cr=R.createNodeArray(en(Ke)),g.forEach(yr),f=e.filter(cr,e.isAnyImportSyntax);else{var Fe=e.visitNodes(Ke.statements,hn);cr=e.setTextRange(R.createNodeArray(Pe(Fe)),Ke.statements),g.forEach(yr),f=e.filter(cr,e.isAnyImportSyntax),e.isExternalModule(Ke)&&(!L||ee&&!k)&&(cr=e.setTextRange(R.createNodeArray(Vr(Vr([],cr,!0),[e.createEmptyExports(R)],!1)),cr))}var Bn=R.updateSourceFile(Ke,cr,!0,ar,Cn(),Ke.hasNoDefaultLib,J());return Bn.exportedModulesFromDeclarationEmit=w,Bn;function J(){return e.map(e.arrayFrom(p.keys()),function(Rn){return{fileName:Rn,pos:-1,end:-1}})}function Cn(){return ie?e.mapDefined(e.arrayFrom(ie.keys()),Gn):[]}function Gn(Rn){if(f)for(var Ye=0,xn=f;Ye<xn.length;Ye++){var an=xn[Ye];if(e.isImportEqualsDeclaration(an)&&e.isExternalModuleReference(an.moduleReference)){var zn=an.moduleReference.expression;if(e.isStringLiteralLike(zn)&&zn.text===Rn)return}else if(e.isImportDeclaration(an)&&e.isStringLiteral(an.moduleSpecifier)&&an.moduleSpecifier.text===Rn)return}return{fileName:Rn,pos:-1,end:-1}}function cn(Rn,Ye){return function(xn){var an;if(xn.isDeclarationFile)an=xn.fileName;else{if(H&&e.contains(Ke.sourceFiles,xn))return;var zn=e.getOutputPathsFor(xn,ne,!0);an=zn.declarationFilePath||zn.jsFilePath||xn.fileName}if(an){var ir=e.moduleSpecifiers.getModuleSpecifier(m,G,e.toPath(Ye,ne.getCurrentDirectory(),ne.getCanonicalFileName),e.toPath(an,ne.getCurrentDirectory(),ne.getCanonicalFileName),ne);if(!e.pathIsRelative(ir)){x([ir]);return}var gr=e.getRelativePathToDirectoryOrUrl(Ye,an,ne.getCurrentDirectory(),ne.getCanonicalFileName,!1);if(e.startsWith(gr,"./")&&e.hasExtension(gr)&&(gr=gr.substring(2)),e.startsWith(gr,"node_modules/")||e.pathContainsNodeModules(gr))return;Rn.push({pos:-1,end:-1,fileName:gr})}}}}function Ne(Ke,jn){return N||!e.isUnparsedSource(Ke)&&e.isSourceFileJS(Ke)||e.forEach(Ke.referencedFiles,function(Zn){var Me=ne.getSourceFileFromReference(Ke,Zn);Me&&jn.set(e.getOriginalNodeId(Me),Me)}),jn}function qe(Ke,jn){return e.forEach(Ke.libReferenceDirectives,function(Zn){var Me=ne.getLibFileFromReference(Zn);Me&&jn.set(e.toFileNameLowerCase(Zn.fileName),!0)}),jn}function pe(Ke){if(Ke.kind===79)return Ke;return Ke.kind===200?R.updateArrayBindingPattern(Ke,e.visitNodes(Ke.elements,jn)):R.updateObjectBindingPattern(Ke,e.visitNodes(Ke.elements,jn));function jn(Zn){return Zn.kind===225?Zn:R.updateBindingElement(Zn,Zn.dotDotDotToken,Zn.propertyName,pe(Zn.name),pn(Zn)?Zn.initializer:void 0)}}function we(Ke,jn,Zn){var Me;se||(Me=Z,Z=e.createGetSymbolAccessibilityDiagnosticForNode(Ke));var Mn=R.updateParameterDeclaration(Ke,void 0,ye(Ke,jn),Ke.dotDotDotToken,pe(Ke.name),T.isOptionalParameter(Ke)?Ke.questionToken||R.createToken(57):void 0,Re(Ke,Zn||Ke.type,!0),Qe(Ke));return se||(Z=Me),Mn}function pn(Ke){return D(Ke)&&T.isLiteralConstDeclaration(e.getParseTreeNode(Ke))}function Qe(Ke){if(pn(Ke))return T.createLiteralConstValue(e.getParseTreeNode(Ke),U)}function Re(Ke,jn,Zn){if(!Zn&&e.hasEffectiveModifier(Ke,8)||pn(Ke))return;var Me=Ke.kind===162&&(T.isRequiredInitializedParameter(Ke)||T.isOptionalUninitializedParameterProperty(Ke));if(jn&&!Me)return e.visitNode(jn,xe);if(!e.getParseTreeNode(Ke))return jn?e.visitNode(jn,xe):R.createKeywordTypeNode(129);if(Ke.kind===171)return R.createKeywordTypeNode(129);C=Ke.name;var Mn;if(se||(Mn=Z,Z=e.createGetSymbolAccessibilityDiagnosticForNode(Ke)),Ke.kind===252||Ke.kind===201)return ar(T.createTypeOfDeclaration(Ke,b,Y,U));if(Ke.kind===162||Ke.kind===165||Ke.kind===164)return Ke.initializer?ar(T.createTypeOfDeclaration(Ke,b,Y,U,Me)||T.createTypeOfExpression(Ke.initializer,b,Y,U)):ar(T.createTypeOfDeclaration(Ke,b,Y,U,Me));return ar(T.createReturnTypeOfSignatureDeclaration(Ke,b,Y,U));function ar(Xn){return C=void 0,se||(Z=Mn),Xn||R.createKeywordTypeNode(129)}}function He(Ke){switch(Ke=e.getParseTreeNode(Ke),Ke.kind){case 254:case 259:case 256:case 255:case 257:case 258:return!T.isDeclarationVisible(Ke);case 252:return!Un(Ke);case 263:case 264:case 270:case 269:return!1;case 168:return!0}return!1}function Ln(Ke){var jn;if(Ke.body)return!0;var Zn=(jn=Ke.symbol.declarations)===null||jn===void 0?void 0:jn.filter(function(Me){return e.isFunctionDeclaration(Me)&&!Me.body});return!Zn||Zn.indexOf(Ke)===Zn.length-1}function Un(Ke){return e.isOmittedExpression(Ke)?!1:e.isBindingPattern(Ke.name)?e.some(Ke.name.elements,Un):T.isDeclarationVisible(Ke)}function fn(Ke,jn,Zn){if(!e.hasEffectiveModifier(Ke,8)){var Me=e.map(jn,function(Mn){return we(Mn,Zn)});if(Me)return R.createNodeArray(Me,jn.hasTrailingComma)}}function En(Ke,jn){var Zn;if(!jn){var Me=e.getThisParameter(Ke);Me&&(Zn=[we(Me)])}if(e.isSetAccessorDeclaration(Ke)){var Mn=void 0;if(!jn){var ar=e.getSetAccessorValueParameter(Ke);if(ar){var Xn=wr(Ke,T.getAllAccessorDeclarations(Ke));Mn=we(ar,void 0,Xn)}}Mn||(Mn=R.createParameterDeclaration(void 0,void 0,void 0,"value")),Zn=e.append(Zn,Mn)}return R.createNodeArray(Zn||e.emptyArray)}function i(Ke,jn){return e.hasEffectiveModifier(Ke,8)?void 0:e.visitNodes(jn,xe)}function In(Ke){return e.isSourceFile(Ke)||e.isTypeAliasDeclaration(Ke)||e.isModuleDeclaration(Ke)||e.isClassDeclaration(Ke)||e.isInterfaceDeclaration(Ke)||e.isFunctionLike(Ke)||e.isIndexSignatureDeclaration(Ke)||e.isMappedTypeNode(Ke)}function X(Ke,jn){var Zn=T.isEntityNameVisible(Ke,jn);me(Zn),x(T.getTypeReferenceDirectivesForEntityName(Ke))}function rn(Ke,jn){return e.hasJSDocNodes(Ke)&&e.hasJSDocNodes(jn)&&(Ke.jsDoc=jn.jsDoc),e.setCommentRange(Ke,e.getCommentRange(jn))}function $n(Ke,jn){if(jn){if(L=L||Ke.kind!==259&&Ke.kind!==198,e.isStringLiteralLike(jn))if(H){var Zn=e.getExternalModuleNameFromDeclaration(y.getEmitHost(),T,Ke);if(Zn)return R.createStringLiteral(Zn)}else{var Me=T.getSymbolOfExternalModuleSpecifier(jn);Me&&(w||(w=[])).push(Me)}return jn}}function Vn(Ke){if(T.isDeclarationVisible(Ke))if(Ke.moduleReference.kind===275){var jn=e.getExternalModuleImportEqualsDeclarationExpression(Ke);return R.updateImportEqualsDeclaration(Ke,void 0,Ke.modifiers,Ke.isTypeOnly,Ke.name,R.updateExternalModuleReference(Ke.moduleReference,$n(Ke,jn)))}else{var Zn=Z;return Z=e.createGetSymbolAccessibilityDiagnosticForNode(Ke),X(Ke.moduleReference,b),Z=Zn,Ke}}function le(Ke){if(!Ke.importClause)return R.updateImportDeclaration(Ke,void 0,Ke.modifiers,Ke.importClause,$n(Ke,Ke.moduleSpecifier));var jn=Ke.importClause&&Ke.importClause.name&&T.isDeclarationVisible(Ke.importClause)?Ke.importClause.name:void 0;if(!Ke.importClause.namedBindings)return jn&&R.updateImportDeclaration(Ke,void 0,Ke.modifiers,R.updateImportClause(Ke.importClause,Ke.importClause.isTypeOnly,jn,void 0),$n(Ke,Ke.moduleSpecifier));if(Ke.importClause.namedBindings.kind===266){var Zn=T.isDeclarationVisible(Ke.importClause.namedBindings)?Ke.importClause.namedBindings:void 0;return jn||Zn?R.updateImportDeclaration(Ke,void 0,Ke.modifiers,R.updateImportClause(Ke.importClause,Ke.importClause.isTypeOnly,jn,Zn),$n(Ke,Ke.moduleSpecifier)):void 0}var Me=e.mapDefined(Ke.importClause.namedBindings.elements,function(Mn){return T.isDeclarationVisible(Mn)?Mn:void 0});if(Me&&Me.length||jn)return R.updateImportDeclaration(Ke,void 0,Ke.modifiers,R.updateImportClause(Ke.importClause,Ke.importClause.isTypeOnly,jn,Me&&Me.length?R.updateNamedImports(Ke.importClause.namedBindings,Me):void 0),$n(Ke,Ke.moduleSpecifier));if(T.isImportRequiredByAugmentation(Ke))return R.updateImportDeclaration(Ke,void 0,Ke.modifiers,void 0,$n(Ke,Ke.moduleSpecifier))}function Pe(Ke){for(;e.length(q);){var jn=q.shift();if(!e.isLateVisibilityPaintedStatement(jn))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+(e.SyntaxKind?e.SyntaxKind[jn.kind]:jn.kind));var Zn=E;E=jn.parent&&e.isSourceFile(jn.parent)&&!(e.isExternalModule(jn.parent)&&H);var Me=$e(jn);E=Zn,oe.set(e.getOriginalNodeId(jn),Me)}return e.visitNodes(Ke,Mn);function Mn(ar){if(e.isLateVisibilityPaintedStatement(ar)){var Xn=e.getOriginalNodeId(ar);if(oe.has(Xn)){var yr=oe.get(Xn);return oe.delete(Xn),yr&&((e.isArray(yr)?e.some(yr,e.needsScopeMarker):e.needsScopeMarker(yr))&&(ee=!0),e.isSourceFile(ar.parent)&&(e.isArray(yr)?e.some(yr,e.isExternalModuleIndicator):e.isExternalModuleIndicator(yr))&&(L=!0)),yr}}return ar}}function xe(Ke){if(ze(Ke)||e.isDeclaration(Ke)&&(He(Ke)||e.hasDynamicName(Ke)&&!T.isLateBound(e.getParseTreeNode(Ke)))||e.isFunctionLike(Ke)&&T.isImplementationOfOverload(Ke)||e.isSemicolonClassElement(Ke))return;var jn;In(Ke)&&(jn=b,b=Ke);var Zn=Z,Me=e.canProduceDiagnostics(Ke),Mn=se,ar=(Ke.kind===180||Ke.kind===193)&&Ke.parent.kind!==257;if((e.isMethodDeclaration(Ke)||e.isMethodSignature(Ke))&&e.hasEffectiveModifier(Ke,8))return Ke.symbol&&Ke.symbol.declarations&&Ke.symbol.declarations[0]!==Ke?void 0:Rn(R.createPropertyDeclaration(void 0,ur(Ke),Ke.name,void 0,void 0,void 0));if(Me&&!se&&(Z=e.createGetSymbolAccessibilityDiagnosticForNode(Ke)),e.isTypeQueryNode(Ke)&&X(Ke.exprName,b),ar&&(se=!0),_e(Ke))switch(Ke.kind){case 226:{(e.isEntityName(Ke.expression)||e.isEntityNameExpression(Ke.expression))&&X(Ke.expression,b);var Xn=e.visitEachChild(Ke,xe,y);return Rn(R.updateExpressionWithTypeArguments(Xn,Xn.expression,Xn.typeArguments))}case 176:{X(Ke.typeName,b);var Xn=e.visitEachChild(Ke,xe,y);return Rn(R.updateTypeReferenceNode(Xn,Xn.typeName,Xn.typeArguments))}case 173:return Rn(R.updateConstructSignature(Ke,i(Ke,Ke.typeParameters),fn(Ke,Ke.parameters),Re(Ke,Ke.type)));case 169:{var yr=R.createConstructorDeclaration(void 0,ur(Ke),fn(Ke,Ke.parameters,0),void 0);return Rn(yr)}case 167:{if(e.isPrivateIdentifier(Ke.name))return Rn(void 0);var cr=R.createMethodDeclaration(void 0,ur(Ke),void 0,Ke.name,Ke.questionToken,i(Ke,Ke.typeParameters),fn(Ke,Ke.parameters),Re(Ke,Ke.type),void 0);return Rn(cr)}case 170:{if(e.isPrivateIdentifier(Ke.name))return Rn(void 0);var Fe=wr(Ke,T.getAllAccessorDeclarations(Ke));return Rn(R.updateGetAccessorDeclaration(Ke,void 0,ur(Ke),Ke.name,En(Ke,e.hasEffectiveModifier(Ke,8)),Re(Ke,Fe),void 0))}case 171:return e.isPrivateIdentifier(Ke.name)?Rn(void 0):Rn(R.updateSetAccessorDeclaration(Ke,void 0,ur(Ke),Ke.name,En(Ke,e.hasEffectiveModifier(Ke,8)),void 0));case 165:return e.isPrivateIdentifier(Ke.name)?Rn(void 0):Rn(R.updatePropertyDeclaration(Ke,void 0,ur(Ke),Ke.name,Ke.questionToken,Re(Ke,Ke.type),Qe(Ke)));case 164:return e.isPrivateIdentifier(Ke.name)?Rn(void 0):Rn(R.updatePropertySignature(Ke,ur(Ke),Ke.name,Ke.questionToken,Re(Ke,Ke.type)));case 166:return e.isPrivateIdentifier(Ke.name)?Rn(void 0):Rn(R.updateMethodSignature(Ke,ur(Ke),Ke.name,Ke.questionToken,i(Ke,Ke.typeParameters),fn(Ke,Ke.parameters),Re(Ke,Ke.type)));case 172:return Rn(R.updateCallSignature(Ke,i(Ke,Ke.typeParameters),fn(Ke,Ke.parameters),Re(Ke,Ke.type)));case 174:return Rn(R.updateIndexSignature(Ke,void 0,ur(Ke),fn(Ke,Ke.parameters),e.visitNode(Ke.type,xe)||R.createKeywordTypeNode(129)));case 252:return e.isBindingPattern(Ke.name)?Ue(Ke.name):(ar=!0,se=!0,Rn(R.updateVariableDeclaration(Ke,Ke.name,void 0,Re(Ke,Ke.type),Qe(Ke))));case 161:return Ze(Ke)&&(Ke.default||Ke.constraint)?Rn(R.updateTypeParameterDeclaration(Ke,Ke.name,void 0,void 0)):Rn(e.visitEachChild(Ke,xe,y));case 187:{var Bn=e.visitNode(Ke.checkType,xe),J=e.visitNode(Ke.extendsType,xe),Cn=b;b=Ke.trueType;var Gn=e.visitNode(Ke.trueType,xe);b=Cn;var cn=e.visitNode(Ke.falseType,xe);return Rn(R.updateConditionalTypeNode(Ke,Bn,J,Gn,cn))}case 177:return Rn(R.updateFunctionTypeNode(Ke,e.visitNodes(Ke.typeParameters,xe),fn(Ke,Ke.parameters),e.visitNode(Ke.type,xe)));case 178:return Rn(R.updateConstructorTypeNode(Ke,ur(Ke),e.visitNodes(Ke.typeParameters,xe),fn(Ke,Ke.parameters),e.visitNode(Ke.type,xe)));case 198:return e.isLiteralImportTypeNode(Ke)?Rn(R.updateImportTypeNode(Ke,R.updateLiteralTypeNode(Ke.argument,$n(Ke,Ke.argument.literal)),Ke.qualifier,e.visitNodes(Ke.typeArguments,xe,e.isTypeNode),Ke.isTypeOf)):Rn(Ke);default:e.Debug.assertNever(Ke,"Attempted to process unhandled node kind: "+e.SyntaxKind[Ke.kind])}return e.isTupleTypeNode(Ke)&&e.getLineAndCharacterOfPosition(G,Ke.pos).line===e.getLineAndCharacterOfPosition(G,Ke.end).line&&e.setEmitFlags(Ke,1),Rn(e.visitEachChild(Ke,xe,y));function Rn(Ye){return Ye&&Me&&e.hasDynamicName(Ke)&&Wn(Ke),In(Ke)&&(b=jn),Me&&!se&&(Z=Zn),ar&&(se=Mn),Ye===Ke?Ye:Ye&&e.setOriginalNode(rn(Ye,Ke),Ke)}}function Ze(Ke){return Ke.parent.kind===167&&e.hasEffectiveModifier(Ke.parent,8)}function hn(Ke){if(de(Ke)&&!ze(Ke)){switch(Ke.kind){case 270:return e.isSourceFile(Ke.parent)&&(L=!0),k=!0,R.updateExportDeclaration(Ke,void 0,Ke.modifiers,Ke.isTypeOnly,Ke.exportClause,$n(Ke,Ke.moduleSpecifier));case 269:{if(e.isSourceFile(Ke.parent)&&(L=!0),k=!0,Ke.expression.kind===79)return Ke;var jn=R.createUniqueName("_default",16);Z=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:Ke}},d=Ke;var Zn=R.createVariableDeclaration(jn,void 0,T.createTypeOfExpression(Ke.expression,Ke,Y,U),void 0);d=void 0;var Me=R.createVariableStatement(E?[R.createModifier(134)]:[],R.createVariableDeclarationList([Zn],2));return[Me,R.updateExportAssignment(Ke,Ke.decorators,Ke.modifiers,jn)]}}var Mn=$e(Ke);return oe.set(e.getOriginalNodeId(Ke),Mn),Ke}}function Le(Ke){if(e.isImportEqualsDeclaration(Ke)||e.hasEffectiveModifier(Ke,512)||!e.canHaveModifiers(Ke))return Ke;var jn=R.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(Ke)&27646);return R.updateModifiers(Ke,jn)}function $e(Ke){if(ze(Ke))return;switch(Ke.kind){case 263:return Vn(Ke);case 264:return le(Ke)}if(e.isDeclaration(Ke)&&He(Ke)||e.isFunctionLike(Ke)&&T.isImplementationOfOverload(Ke))return;var jn;In(Ke)&&(jn=b,b=Ke);var Zn=e.canProduceDiagnostics(Ke),Me=Z;Zn&&(Z=e.createGetSymbolAccessibilityDiagnosticForNode(Ke));var Mn=E;switch(Ke.kind){case 257:return ua(R.updateTypeAliasDeclaration(Ke,void 0,ur(Ke),Ke.name,e.visitNodes(Ke.typeParameters,xe,e.isTypeParameterDeclaration),e.visitNode(Ke.type,xe,e.isTypeNode)));case 256:return ua(R.updateInterfaceDeclaration(Ke,void 0,ur(Ke),Ke.name,i(Ke,Ke.typeParameters),Qr(Ke.heritageClauses),e.visitNodes(Ke.members,xe)));case 254:{var ar=ua(R.updateFunctionDeclaration(Ke,void 0,ur(Ke),void 0,Ke.name,i(Ke,Ke.typeParameters),fn(Ke,Ke.parameters),Re(Ke,Ke.type),void 0));if(ar&&T.isExpandoFunctionDeclaration(Ke)&&Ln(Ke)){var Xn=T.getPropertiesOfContainerFunction(Ke),yr=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,ar.name||R.createIdentifier("_default"),R.createModuleBlock([]),16);e.setParent(yr,b),yr.locals=e.createSymbolTable(Xn),yr.symbol=Xn[0].parent;var cr=[],Fe=e.mapDefined(Xn,function(Ar){if(!(!Ar.valueDeclaration||!e.isPropertyAccessExpression(Ar.valueDeclaration))){Z=e.createGetSymbolAccessibilityDiagnosticForNode(Ar.valueDeclaration);var at=T.createTypeOfDeclaration(Ar.valueDeclaration,yr,Y,U);Z=Me;var Hr=e.unescapeLeadingUnderscores(Ar.escapedName),Wt=e.isStringANonContextualKeyword(Hr),Zt=Wt?R.getGeneratedNameForNode(Ar.valueDeclaration):R.createIdentifier(Hr);Wt&&cr.push([Zt,Hr]);var Rr=R.createVariableDeclaration(Zt,void 0,at,void 0);return R.createVariableStatement(Wt?void 0:[R.createToken(93)],R.createVariableDeclarationList([Rr]))}});cr.length?Fe.push(R.createExportDeclaration(void 0,void 0,!1,R.createNamedExports(e.map(cr,function(Ar){var at=Ar[0],Hr=Ar[1];return R.createExportSpecifier(at,Hr)})))):Fe=e.mapDefined(Fe,function(Ar){return R.updateModifiers(Ar,0)});var Bn=R.createModuleDeclaration(void 0,ur(Ke),Ke.name,R.createModuleBlock(Fe),16);if(!e.hasEffectiveModifier(ar,512))return[ar,Bn];var J=R.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(ar)&-514|2),Cn=R.updateFunctionDeclaration(ar,void 0,J,void 0,ar.name,ar.typeParameters,ar.parameters,ar.type,void 0),Gn=R.updateModuleDeclaration(Bn,void 0,J,Bn.name,Bn.body),cn=R.createExportAssignment(void 0,void 0,!1,Bn.name);return e.isSourceFile(Ke.parent)&&(L=!0),k=!0,[Cn,Gn,cn]}else return ar}case 259:{E=!1;var Rn=Ke.body;if(Rn&&Rn.kind===260){var Ye=ee,xn=k;k=!1,ee=!1;var an=e.visitNodes(Rn.statements,hn),zn=Pe(an);Ke.flags&8388608&&(ee=!1),!e.isGlobalScopeAugmentation(Ke)&&!On(zn)&&!k&&(ee?zn=R.createNodeArray(Vr(Vr([],zn,!0),[e.createEmptyExports(R)],!1)):zn=e.visitNodes(zn,Le));var ir=R.updateModuleBlock(Rn,zn);E=Mn,ee=Ye,k=xn;var gr=ur(Ke);return ua(R.updateModuleDeclaration(Ke,void 0,gr,e.isExternalModuleAugmentation(Ke)?$n(Ke,Ke.name):Ke.name,ir))}else{E=Mn;var gr=ur(Ke);E=!1,e.visitNode(Rn,hn);var Dr=e.getOriginalNodeId(Rn),ir=oe.get(Dr);return oe.delete(Dr),ua(R.updateModuleDeclaration(Ke,void 0,gr,Ke.name,ir))}}case 255:{C=Ke.name,d=Ke;var J=R.createNodeArray(ur(Ke)),qr=i(Ke,Ke.typeParameters),ft=e.getFirstConstructorWithBody(Ke),xt=void 0;if(ft){var Kr=Z;xt=e.compact(e.flatMap(ft.parameters,function(at){if(!e.hasSyntacticModifier(at,16476)||ze(at))return;if(Z=e.createGetSymbolAccessibilityDiagnosticForNode(at),at.name.kind===79)return rn(R.createPropertyDeclaration(void 0,ur(at),at.name,at.questionToken,Re(at,at.type),Qe(at)),at);return Hr(at.name);function Hr(Wt){for(var Zt,Rr=0,Lr=Wt.elements;Rr<Lr.length;Rr++){var Xr=Lr[Rr];e.isOmittedExpression(Xr)||(e.isBindingPattern(Xr.name)&&(Zt=e.concatenate(Zt,Hr(Xr.name))),Zt=Zt||[],Zt.push(R.createPropertyDeclaration(void 0,ur(at),Xr.name,void 0,Re(Xr,void 0),void 0)))}return Zt}})),Z=Kr}var dt=e.some(Ke.members,function(at){return!!at.name&&e.isPrivateIdentifier(at.name)}),Ur=dt?[R.createPropertyDeclaration(void 0,void 0,R.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,qt=e.concatenate(e.concatenate(Ur,xt),e.visitNodes(Ke.members,xe)),Cr=R.createNodeArray(qt),Jt=e.getEffectiveBaseTypeNode(Ke);if(Jt&&!e.isEntityNameExpression(Jt.expression)&&Jt.expression.kind!==104){var Ot=Ke.name?e.unescapeLeadingUnderscores(Ke.name.escapedText):"default",ri=R.createUniqueName(Ot+"_base",16);Z=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:Jt,typeName:Ke.name}};var Ya=R.createVariableDeclaration(ri,void 0,T.createTypeOfExpression(Jt.expression,Ke,Y,U),void 0),eo=R.createVariableStatement(E?[R.createModifier(134)]:[],R.createVariableDeclarationList([Ya],2)),za=R.createNodeArray(e.map(Ke.heritageClauses,function(at){if(at.token===94){var Hr=Z;Z=e.createGetSymbolAccessibilityDiagnosticForNode(at.types[0]);var Wt=R.updateHeritageClause(at,e.map(at.types,function(Zt){return R.updateExpressionWithTypeArguments(Zt,ri,e.visitNodes(Zt.typeArguments,xe))}));return Z=Hr,Wt}return R.updateHeritageClause(at,e.visitNodes(R.createNodeArray(e.filter(at.types,function(Zt){return e.isEntityNameExpression(Zt.expression)||Zt.expression.kind===104})),xe))}));return[eo,ua(R.updateClassDeclaration(Ke,void 0,J,Ke.name,qr,za,Cr))]}else{var za=Qr(Ke.heritageClauses);return ua(R.updateClassDeclaration(Ke,void 0,J,Ke.name,qr,za,Cr))}}case 235:return ua(An(Ke));case 258:return ua(R.updateEnumDeclaration(Ke,void 0,R.createNodeArray(ur(Ke)),Ke.name,R.createNodeArray(e.mapDefined(Ke.members,function(Ar){if(!ze(Ar)){var at=T.getConstantValue(Ar);return rn(R.updateEnumMember(Ar,Ar.name,at!==void 0?typeof at=="string"?R.createStringLiteral(at):R.createNumericLiteral(at):void 0),Ar)}}))))}return e.Debug.assertNever(Ke,"Unhandled top-level node in declaration emit: "+e.SyntaxKind[Ke.kind]);function ua(Ar){return In(Ke)&&(b=jn),Zn&&(Z=Me),Ke.kind===259&&(E=Mn),Ar===Ke?Ar:(d=void 0,C=void 0,Ar&&e.setOriginalNode(rn(Ar,Ke),Ke))}}function An(Ke){if(e.forEach(Ke.declarationList.declarations,Un)){var jn=e.visitNodes(Ke.declarationList.declarations,xe);if(e.length(jn))return R.updateVariableStatement(Ke,R.createNodeArray(ur(Ke)),R.updateVariableDeclarationList(Ke.declarationList,jn))}}function Ue(Ke){return e.flatten(e.mapDefined(Ke.elements,function(jn){return gn(jn)}))}function gn(Ke){if(Ke.kind!==225&&Ke.name)return Un(Ke)?e.isBindingPattern(Ke.name)?Ue(Ke.name):R.createVariableDeclaration(Ke.name,void 0,Re(Ke,void 0),void 0):void 0}function Wn(Ke){var jn;se||(jn=Z,Z=e.createGetSymbolAccessibilityDiagnosticForNodeName(Ke)),C=Ke.name,e.Debug.assert(T.isLateBound(e.getParseTreeNode(Ke)));var Zn=Ke,Me=Zn.name.expression;X(Me,b),se||(Z=jn),C=void 0}function ze(Ke){return!!P&&!!Ke&&$(Ke,G)}function Tn(Ke){return e.isExportAssignment(Ke)||e.isExportDeclaration(Ke)}function On(Ke){return e.some(Ke,Tn)}function ur(Ke){var jn=e.getEffectiveModifierFlags(Ke),Zn=hr(Ke);return jn===Zn?Ke.modifiers:R.createModifiersFromModifierFlags(Zn)}function hr(Ke){var jn=11003,Zn=E&&!re(Ke)?2:0,Me=Ke.parent.kind===300;return(!Me||H&&Me&&e.isExternalModule(Ke.parent))&&(jn^=2,Zn=0),O(Ke,jn,Zn)}function wr(Ke,jn){var Zn=A(Ke);return!Zn&&Ke!==jn.firstAccessor&&(Zn=A(jn.firstAccessor),Z=e.createGetSymbolAccessibilityDiagnosticForNode(jn.firstAccessor)),!Zn&&jn.secondAccessor&&Ke!==jn.secondAccessor&&(Zn=A(jn.secondAccessor),Z=e.createGetSymbolAccessibilityDiagnosticForNode(jn.secondAccessor)),Zn}function Qr(Ke){return R.createNodeArray(e.filter(e.map(Ke,function(jn){return R.updateHeritageClause(jn,e.visitNodes(R.createNodeArray(e.filter(jn.types,function(Zn){return e.isEntityNameExpression(Zn.expression)||jn.token===94&&Zn.expression.kind===104})),xe))}),function(jn){return jn.types&&!!jn.types.length}))}}e.transformDeclarations=W;function re(y){return y.kind===256}function ye(y,V,Z){return e.factory.createModifiersFromModifierFlags(O(y,V,Z))}function O(y,V,Z){V===void 0&&(V=27643),Z===void 0&&(Z=0);var E=e.getEffectiveModifierFlags(y)&V|Z;return E&512&&!(E&1)&&(E^=1),E&512&&E&2&&(E^=2),E}function A(y){if(y)return y.kind===170?y.type:y.parameters.length>0?y.parameters[0].type:void 0}function D(y){switch(y.kind){case 165:case 164:return!e.hasEffectiveModifier(y,8);case 162:case 252:return!0}return!1}function de(y){switch(y.kind){case 254:case 259:case 263:case 256:case 255:case 257:case 258:case 235:case 264:case 270:case 269:return!0}return!1}function _e(y){switch(y.kind){case 173:case 169:case 167:case 170:case 171:case 165:case 164:case 166:case 172:case 174:case 252:case 161:case 226:case 176:case 187:case 177:case 178:case 198:return!0}return!1}})(vn||(vn={}));var vn;(function(e){function o(V){switch(V){case e.ModuleKind.ESNext:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}var ue;(function(V){V[V.Uninitialized=0]="Uninitialized",V[V.Initialized=1]="Initialized",V[V.Completed=2]="Completed",V[V.Disposed=3]="Disposed"})(ue||(ue={}));var $;(function(V){V[V.Substitution=1]="Substitution",V[V.EmitNotifications=2]="EmitNotifications"})($||($={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray};function Y(V,Z,E){return{scriptTransformers:W(V,Z,E),declarationTransformers:re(Z)}}e.getTransformers=Y;function W(V,Z,E){if(E)return e.emptyArray;var H=e.getEmitScriptTarget(V),L=e.getEmitModuleKind(V),ee=[];return e.addRange(ee,Z&&e.map(Z.before,A)),ee.push(e.transformTypeScript),ee.push(e.transformClassFields),e.getJSXTransformEnabled(V)&&ee.push(e.transformJsx),H<99&&ee.push(e.transformESNext),H<8&&ee.push(e.transformES2021),H<7&&ee.push(e.transformES2020),H<6&&ee.push(e.transformES2019),H<5&&ee.push(e.transformES2018),H<4&&ee.push(e.transformES2017),H<3&&ee.push(e.transformES2016),H<2&&(ee.push(e.transformES2015),ee.push(e.transformGenerators)),ee.push(o(L)),H<1&&ee.push(e.transformES5),e.addRange(ee,Z&&e.map(Z.after,A)),ee}function re(V){var Z=[];return Z.push(e.transformDeclarations),e.addRange(Z,V&&e.map(V.afterDeclarations,D)),Z}function ye(V){return function(Z){return e.isBundle(Z)?V.transformBundle(Z):V.transformSourceFile(Z)}}function O(V,Z){return function(E){var H=V(E);return typeof H=="function"?Z(E,H):ye(H)}}function A(V){return O(V,e.chainBundle)}function D(V){return O(V,function(Z,E){return E})}function de(V,Z){return Z}e.noEmitSubstitution=de;function _e(V,Z,E){E(V,Z)}e.noEmitNotification=_e;function y(V,Z,E,H,L,ee,k){for(var b=new Array(350),ie,q,oe,se=0,w=[],R=[],ne=[],U=[],C=0,d=!1,G=[],g=0,p,f,T=de,m=_e,N=0,P=[],x={factory:E,getCompilerOptions:function(){return H},getEmitResolver:function(){return V},getEmitHost:function(){return Z},getEmitHelperFactory:e.memoize(function(){return e.createEmitHelperFactory(x)}),startLexicalEnvironment:we,suspendLexicalEnvironment:pn,resumeLexicalEnvironment:Qe,endLexicalEnvironment:Re,setLexicalEnvironmentFlags:He,getLexicalEnvironmentFlags:Ln,hoistVariableDeclaration:Ne,hoistFunctionDeclaration:qe,addInitializationStatement:pe,startBlockScope:Un,endBlockScope:fn,addBlockScopedVariable:En,requestEmitHelper:i,readEmitHelpers:In,enableSubstitution:be,enableEmitNotification:De,isSubstitutionEnabled:Ce,isEmitNotificationEnabled:en,get onSubstituteNode(){return T},set onSubstituteNode(rn){e.Debug.assert(N<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(rn!==void 0,"Value must not be 'undefined'"),T=rn},get onEmitNode(){return m},set onEmitNode(rn){e.Debug.assert(N<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(rn!==void 0,"Value must not be 'undefined'"),m=rn},addDiagnostic:function(rn){P.push(rn)}},M=0,me=L;M<me.length;M++){var z=me[M];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(z)))}e.performance.mark("beforeTransform");var K=ee.map(function(rn){return rn(x)}),I=function(rn){for(var $n=0,Vn=K;$n<Vn.length;$n++){var le=Vn[$n];rn=le(rn)}return rn};N=1;for(var Ae=[],Oe=0,te=L;Oe<te.length;Oe++){var z=te[Oe];e.tracing===null||e.tracing===void 0||e.tracing.push("emit","transformNodes",z.kind===300?{path:z.path}:{kind:z.kind,pos:z.pos,end:z.end}),Ae.push((k?I:Se)(z)),e.tracing===null||e.tracing===void 0||e.tracing.pop()}return N=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:Ae,substituteNode:Be,emitNodeWithNotification:fe,isEmitNotificationEnabled:en,dispose:X,diagnostics:P};function Se(rn){return rn&&(!e.isSourceFile(rn)||!rn.isDeclarationFile)?I(rn):rn}function be(rn){e.Debug.assert(N<2,"Cannot modify the transformation context after transformation has completed."),b[rn]|=1}function Ce(rn){return(b[rn.kind]&1)!==0&&(e.getEmitFlags(rn)&4)===0}function Be(rn,$n){return e.Debug.assert(N<3,"Cannot substitute a node after the result is disposed."),$n&&Ce($n)&&T(rn,$n)||$n}function De(rn){e.Debug.assert(N<2,"Cannot modify the transformation context after transformation has completed."),b[rn]|=2}function en(rn){return(b[rn.kind]&2)!==0||(e.getEmitFlags(rn)&2)!==0}function fe(rn,$n,Vn){e.Debug.assert(N<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),$n&&(en($n)?m(rn,$n,Vn):Vn(rn,$n))}function Ne(rn){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed.");var $n=e.setEmitFlags(E.createVariableDeclaration(rn),64);ie?ie.push($n):ie=[$n],se&1&&(se|=2)}function qe(rn){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(rn,1048576),q?q.push(rn):q=[rn]}function pe(rn){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(rn,1048576),oe?oe.push(rn):oe=[rn]}function we(){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!d,"Lexical environment is suspended."),w[C]=ie,R[C]=q,ne[C]=oe,U[C]=se,C++,ie=void 0,q=void 0,oe=void 0,se=0}function pn(){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!d,"Lexical environment is already suspended."),d=!0}function Qe(){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(d,"Lexical environment is not suspended."),d=!1}function Re(){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!d,"Lexical environment is suspended.");var rn;if(ie||q||oe){if(q&&(rn=Vr([],q,!0)),ie){var $n=E.createVariableStatement(void 0,E.createVariableDeclarationList(ie));e.setEmitFlags($n,1048576),rn?rn.push($n):rn=[$n]}oe&&(rn?rn=Vr(Vr([],rn,!0),oe,!0):rn=Vr([],oe,!0))}return C--,ie=w[C],q=R[C],oe=ne[C],se=U[C],C===0&&(w=[],R=[],ne=[],U=[]),rn}function He(rn,$n){se=$n?se|rn:se&~rn}function Ln(){return se}function Un(){e.Debug.assert(N>0,"Cannot start a block scope during initialization."),e.Debug.assert(N<2,"Cannot start a block scope after transformation has completed."),G[g]=p,g++,p=void 0}function fn(){e.Debug.assert(N>0,"Cannot end a block scope during initialization."),e.Debug.assert(N<2,"Cannot end a block scope after transformation has completed.");var rn=e.some(p)?[E.createVariableStatement(void 0,E.createVariableDeclarationList(p.map(function($n){return E.createVariableDeclaration($n)}),1))]:void 0;return g--,p=G[g],g===0&&(G=[]),rn}function En(rn){e.Debug.assert(g>0,"Cannot add a block scoped variable outside of an iteration body."),(p||(p=[])).push(rn)}function i(rn){if(e.Debug.assert(N>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(N<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!rn.scoped,"Cannot request a scoped emit helper."),rn.dependencies)for(var $n=0,Vn=rn.dependencies;$n<Vn.length;$n++){var le=Vn[$n];i(le)}f=e.append(f,rn)}function In(){e.Debug.assert(N>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(N<2,"Cannot modify the transformation context after transformation has completed.");var rn=f;return f=void 0,rn}function X(){if(N<3){for(var rn=0,$n=L;rn<$n.length;rn++){var Vn=$n[rn];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(Vn)))}ie=void 0,w=void 0,q=void 0,R=void 0,T=void 0,m=void 0,f=void 0,N=3}}}e.transformNodes=y,e.nullTransformationContext={factory:e.factory,getCompilerOptions:function(){return{}},getEmitResolver:e.notImplemented,getEmitHost:e.notImplemented,getEmitHelperFactory:e.notImplemented,startLexicalEnvironment:e.noop,resumeLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,endLexicalEnvironment:e.returnUndefined,setLexicalEnvironmentFlags:e.noop,getLexicalEnvironmentFlags:function(){return 0},hoistVariableDeclaration:e.noop,hoistFunctionDeclaration:e.noop,addInitializationStatement:e.noop,startBlockScope:e.noop,endBlockScope:e.returnUndefined,addBlockScopedVariable:e.noop,requestEmitHelper:e.noop,readEmitHelpers:e.notImplemented,enableSubstitution:e.noop,enableEmitNotification:e.noop,isSubstitutionEnabled:e.notImplemented,isEmitNotificationEnabled:e.notImplemented,onSubstituteNode:de,onEmitNode:_e,addDiagnostic:e.noop}})(vn||(vn={}));var vn;(function(e){var o=R();function ue(d){return e.fileExtensionIs(d,".tsbuildinfo")}e.isBuildInfoFile=ue;function $(d,G,g,p,f,T){p===void 0&&(p=!1);var m=e.isArray(g)?g:e.getSourceFilesToEmit(d,g,p),N=d.getCompilerOptions();if(e.outFile(N)){var P=d.getPrependNodes();if(m.length||P.length){var x=e.factory.createBundle(m,P),M=G(re(x,d,p),x);if(M)return M}}else{if(!f)for(var me=0,z=m;me<z.length;me++){var K=z[me],M=G(re(K,d,p),K);if(M)return M}if(T){var I=Y(N);if(I)return G({buildInfoPath:I},void 0)}}}e.forEachEmittedFile=$;function Y(d){var G=d.configFilePath;if(e.isIncrementalCompilation(d)){if(d.tsBuildInfoFile)return d.tsBuildInfoFile;var g=e.outFile(d),p;if(g)p=e.removeFileExtension(g);else{if(!G)return;var f=e.removeFileExtension(G);p=d.outDir?d.rootDir?e.resolvePath(d.outDir,e.getRelativePathFromDirectory(d.rootDir,f,!0)):e.combinePaths(d.outDir,e.getBaseFileName(f)):f}return p+".tsbuildinfo"}}e.getTsBuildInfoEmitOutputFilePath=Y;function W(d,G){var g=e.outFile(d),p=d.emitDeclarationOnly?void 0:g,f=p&&ye(p,d),T=G||e.getEmitDeclarations(d)?e.removeFileExtension(g)+".d.ts":void 0,m=T&&e.getAreDeclarationMapsEnabled(d)?T+".map":void 0,N=Y(d);return{jsFilePath:p,sourceMapFilePath:f,declarationFilePath:T,declarationMapPath:m,buildInfoPath:N}}e.getOutputPathsForBundle=W;function re(d,G,g){var p=G.getCompilerOptions();if(d.kind===301)return W(p,g);var f=e.getOwnEmitOutputFilePath(d.fileName,G,O(d,p)),T=e.isJsonSourceFile(d),m=T&&e.comparePaths(d.fileName,f,G.getCurrentDirectory(),!G.useCaseSensitiveFileNames())===0,N=p.emitDeclarationOnly||m?void 0:f,P=!N||e.isJsonSourceFile(d)?void 0:ye(N,p),x=g||e.getEmitDeclarations(p)&&!T?e.getDeclarationEmitOutputFilePath(d.fileName,G):void 0,M=x&&e.getAreDeclarationMapsEnabled(p)?x+".map":void 0;return{jsFilePath:N,sourceMapFilePath:P,declarationFilePath:x,declarationMapPath:M,buildInfoPath:void 0}}e.getOutputPathsFor=re;function ye(d,G){return G.sourceMap&&!G.inlineSourceMap?d+".map":void 0}function O(d,G){if(e.isJsonSourceFile(d))return".json";if(G.jsx===1){if(e.isSourceFileJS(d)){if(e.fileExtensionIs(d.fileName,".jsx"))return".jsx"}else if(d.languageVariant===1)return".jsx"}return".js"}e.getOutputExtension=O;function A(d,G,g,p,f){return p?e.resolvePath(p,e.getRelativePathFromDirectory(f?f():E(G,g),d,g)):d}function D(d,G,g,p){return e.Debug.assert(!e.fileExtensionIs(d,".d.ts")&&!e.fileExtensionIs(d,".json")),e.changeExtension(A(d,G,g,G.options.declarationDir||G.options.outDir,p),".d.ts")}e.getOutputDeclarationFileName=D;function de(d,G,g,p){if(!G.options.emitDeclarationOnly){var f=e.fileExtensionIs(d,".json"),T=e.changeExtension(A(d,G,g,G.options.outDir,p),f?".json":G.options.jsx===1&&(e.fileExtensionIs(d,".tsx")||e.fileExtensionIs(d,".jsx"))?".jsx":".js");return!f||e.comparePaths(d,T,e.Debug.checkDefined(G.options.configFilePath),g)!==0?T:void 0}}function _e(){var d;return{addOutput:G,getOutputs:g};function G(p){p&&(d||(d=[])).push(p)}function g(){return d||e.emptyArray}}function y(d,G){var g=W(d.options,!1),p=g.jsFilePath,f=g.sourceMapFilePath,T=g.declarationFilePath,m=g.declarationMapPath,N=g.buildInfoPath;G(p),G(f),G(T),G(m),G(N)}function V(d,G,g,p,f){if(!e.fileExtensionIs(G,".d.ts")){var T=de(G,d,g,f);if(p(T),!e.fileExtensionIs(G,".json")&&(T&&d.options.sourceMap&&p(T+".map"),e.getEmitDeclarations(d.options))){var m=D(G,d,g,f);p(m),d.options.declarationMap&&p(m+".map")}}}function Z(d,G,g,p,f){var T;return d.rootDir?(T=e.getNormalizedAbsolutePath(d.rootDir,g),f==null||f(d.rootDir)):d.composite&&d.configFilePath?(T=e.getDirectoryPath(e.normalizeSlashes(d.configFilePath)),f==null||f(T)):T=e.computeCommonSourceDirectoryOfFilenames(G(),g,p),T&&T[T.length-1]!==e.directorySeparator&&(T+=e.directorySeparator),T}e.getCommonSourceDirectory=Z;function E(d,G){var g=d.options,p=d.fileNames;return Z(g,function(){return e.filter(p,function(f){return!(g.noEmitForJsFiles&&e.fileExtensionIsOneOf(f,e.supportedJSExtensions))&&!e.fileExtensionIs(f,".d.ts")})},e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(g.configFilePath))),e.createGetCanonicalFileName(!G))}e.getCommonSourceDirectoryOfConfig=E;function H(d,G){var g=_e(),p=g.addOutput,f=g.getOutputs;if(e.outFile(d.options))y(d,p);else{for(var T=e.memoize(function(){return E(d,G)}),m=0,N=d.fileNames;m<N.length;m++){var P=N[m];V(d,P,G,p,T)}p(Y(d.options))}return f()}e.getAllProjectOutputs=H;function L(d,G,g){G=e.normalizePath(G),e.Debug.assert(e.contains(d.fileNames,G),"Expected fileName to be present in command line");var p=_e(),f=p.addOutput,T=p.getOutputs;return e.outFile(d.options)?y(d,f):V(d,G,g,f),T()}e.getOutputFileNames=L;function ee(d,G){if(e.outFile(d.options)){var g=W(d.options,!1).jsFilePath;return e.Debug.checkDefined(g,"project "+d.options.configFilePath+" expected to have at least one output")}for(var p=e.memoize(function(){return E(d,G)}),f=0,T=d.fileNames;f<T.length;f++){var m=T[f];if(!e.fileExtensionIs(m,".d.ts")){var g=de(m,d,G,p);if(g)return g;if(!e.fileExtensionIs(m,".json")&&e.getEmitDeclarations(d.options))return D(m,d,G,p)}}var N=Y(d.options);return N||e.Debug.fail("project "+d.options.configFilePath+" expected to have at least one output")}e.getFirstProjectOutput=ee;function k(d,G,g,p,f,T,m){var N=p.scriptTransformers,P=p.declarationTransformers,x=G.getCompilerOptions(),M=x.sourceMap||x.inlineSourceMap||e.getAreDeclarationMapsEnabled(x)?[]:void 0,me=x.listEmittedFiles?[]:void 0,z=e.createDiagnosticCollection(),K=e.getNewLineCharacter(x,function(){return G.getNewLine()}),I=e.createTextWriter(K),Ae=e.performance.createTimer("printTime","beforePrint","afterPrint"),Oe=Ae.enter,te=Ae.exit,Se,be=!1,Ce;return Oe(),$(G,Be,e.getSourceFilesToEmit(G,g,m),m,T,!g),te(),{emitSkipped:be,diagnostics:z.getDiagnostics(),emittedFiles:me,sourceMaps:M,exportedModulesFromDeclarationEmit:Ce};function Be(Re,He){var Ln=Re.jsFilePath,Un=Re.sourceMapFilePath,fn=Re.declarationFilePath,En=Re.declarationMapPath,i=Re.buildInfoPath,In;i&&He&&e.isBundle(He)&&(In=e.getDirectoryPath(e.getNormalizedAbsolutePath(i,G.getCurrentDirectory())),Se={commonSourceDirectory:X(G.getCommonSourceDirectory()),sourceFiles:He.sourceFiles.map(function(rn){return X(e.getNormalizedAbsolutePath(rn.fileName,G.getCurrentDirectory()))})}),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:Ln}),en(He,Ln,Un,X),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:fn}),fe(He,fn,En,X),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:i}),De(Se,i),e.tracing===null||e.tracing===void 0||e.tracing.pop(),!be&&me&&(f||(Ln&&me.push(Ln),Un&&me.push(Un),i&&me.push(i)),fn&&me.push(fn),En&&me.push(En));function X(rn){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(In,rn,G.getCanonicalFileName))}}function De(Re,He){if(!(!He||g||be)){var Ln=G.getProgramBuildInfo();if(G.isEmitBlocked(He)){be=!0;return}var Un=e.version;e.writeFile(G,z,He,b({bundle:Re,program:Ln,version:Un}),!1)}}function en(Re,He,Ln,Un){if(!(!Re||f||!He)){if(He&&G.isEmitBlocked(He)||x.noEmit){be=!0;return}var fn=e.transformNodes(d,G,e.factory,x,[Re],N,!1),En={removeComments:x.removeComments,newLine:x.newLine,noEmitHelpers:x.noEmitHelpers,module:x.module,target:x.target,sourceMap:x.sourceMap,inlineSourceMap:x.inlineSourceMap,inlineSources:x.inlineSources,extendedDiagnostics:x.extendedDiagnostics,writeBundleFileInfo:!!Se,relativeToBuildInfo:Un},i=w(En,{hasGlobalName:d.hasGlobalName,onEmitNode:fn.emitNodeWithNotification,isEmitNotificationEnabled:fn.isEmitNotificationEnabled,substituteNode:fn.substituteNode});e.Debug.assert(fn.transformed.length===1,"Should only see one output from the transform"),qe(He,Ln,fn.transformed[0],i,x),fn.dispose(),Se&&(Se.js=i.bundleFileInfo)}}function fe(Re,He,Ln,Un){if(Re){if(!He){(f||x.emitDeclarationOnly)&&(be=!0);return}var fn=e.isSourceFile(Re)?[Re]:Re.sourceFiles,En=m?fn:e.filter(fn,e.isSourceFileNotJson),i=e.outFile(x)?[e.factory.createBundle(En,e.isSourceFile(Re)?void 0:Re.prepends)]:En;f&&!e.getEmitDeclarations(x)&&En.forEach(Ne);var In=e.transformNodes(d,G,e.factory,x,i,P,!1);if(e.length(In.diagnostics))for(var X=0,rn=In.diagnostics;X<rn.length;X++){var $n=rn[X];z.add($n)}var Vn={removeComments:x.removeComments,newLine:x.newLine,noEmitHelpers:!0,module:x.module,target:x.target,sourceMap:x.sourceMap,inlineSourceMap:x.inlineSourceMap,extendedDiagnostics:x.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!Se,recordInternalSection:!!Se,relativeToBuildInfo:Un},le=w(Vn,{hasGlobalName:d.hasGlobalName,onEmitNode:In.emitNodeWithNotification,isEmitNotificationEnabled:In.isEmitNotificationEnabled,substituteNode:In.substituteNode}),Pe=!!In.diagnostics&&!!In.diagnostics.length||!!G.isEmitBlocked(He)||!!x.noEmit;if(be=be||Pe,(!Pe||m)&&(e.Debug.assert(In.transformed.length===1,"Should only see one output from the decl transform"),qe(He,Ln,In.transformed[0],le,{sourceMap:!m&&x.declarationMap,sourceRoot:x.sourceRoot,mapRoot:x.mapRoot,extendedDiagnostics:x.extendedDiagnostics}),m&&In.transformed[0].kind===300)){var xe=In.transformed[0];Ce=xe.exportedModulesFromDeclarationEmit}In.dispose(),Se&&(Se.dts=le.bundleFileInfo)}}function Ne(Re){if(e.isExportAssignment(Re)){Re.expression.kind===79&&d.collectLinkedAliases(Re.expression,!0);return}else if(e.isExportSpecifier(Re)){d.collectLinkedAliases(Re.propertyName||Re.name,!0);return}e.forEachChild(Re,Ne)}function qe(Re,He,Ln,Un,fn){var En=Ln.kind===301?Ln:void 0,i=Ln.kind===300?Ln:void 0,In=En?En.sourceFiles:[i],X;if(pe(fn,Ln)&&(X=e.createSourceMapGenerator(G,e.getBaseFileName(e.normalizeSlashes(Re)),we(fn),pn(fn,Re,i),fn)),En?Un.writeBundle(En,I,X):Un.writeFile(i,I,X),X){M&&M.push({inputSourceFileNames:X.getSources(),sourceMap:X.toJSON()});var rn=Qe(fn,X,Re,He,i);if(rn&&(I.isAtStartOfLine()||I.rawWrite(K),I.writeComment("//# sourceMappingURL="+rn)),He){var $n=X.toString();e.writeFile(G,z,He,$n,!1,In)}}else I.writeLine();e.writeFile(G,z,Re,I.getText(),!!x.emitBOM,In),I.clear()}function pe(Re,He){return(Re.sourceMap||Re.inlineSourceMap)&&(He.kind!==300||!e.fileExtensionIs(He.fileName,".json"))}function we(Re){var He=e.normalizeSlashes(Re.sourceRoot||"");return He&&e.ensureTrailingDirectorySeparator(He)}function pn(Re,He,Ln){if(Re.sourceRoot)return G.getCommonSourceDirectory();if(Re.mapRoot){var Un=e.normalizeSlashes(Re.mapRoot);return Ln&&(Un=e.getDirectoryPath(e.getSourceFilePathInNewDir(Ln.fileName,G,Un))),e.getRootLength(Un)===0&&(Un=e.combinePaths(G.getCommonSourceDirectory(),Un)),Un}return e.getDirectoryPath(e.normalizePath(He))}function Qe(Re,He,Ln,Un,fn){if(Re.inlineSourceMap){var En=He.toString(),i=e.base64encode(e.sys,En);return"data:application/json;base64,"+i}var In=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(Un)));if(Re.mapRoot){var X=e.normalizeSlashes(Re.mapRoot);return fn&&(X=e.getDirectoryPath(e.getSourceFilePathInNewDir(fn.fileName,G,X))),e.getRootLength(X)===0?(X=e.combinePaths(G.getCommonSourceDirectory(),X),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(Ln)),e.combinePaths(X,In),G.getCurrentDirectory(),G.getCanonicalFileName,!0))):encodeURI(e.combinePaths(X,In))}return encodeURI(In)}}e.emitFiles=k;function b(d){return JSON.stringify(d)}e.getBuildInfoText=b;function ie(d){return JSON.parse(d)}e.getBuildInfo=ie,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:function(d){return!1},collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getJsxFragmentFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented,isImportRequiredByAugmentation:e.notImplemented};function q(d,G,g){var p,f=e.Debug.checkDefined(d.js),T=((p=f.sources)===null||p===void 0?void 0:p.prologues)&&e.arrayToMap(f.sources.prologues,function(m){return m.file});return d.sourceFiles.map(function(m,N){var P,x,M=T==null?void 0:T.get(N),me=M==null?void 0:M.directives.map(function(I){var Ae=e.setTextRange(e.factory.createStringLiteral(I.expression.text),I.expression),Oe=e.setTextRange(e.factory.createExpressionStatement(Ae),I);return e.setParent(Ae,Oe),Oe}),z=e.factory.createToken(1),K=e.factory.createSourceFile(me!=null?me:[],z,0);return K.fileName=e.getRelativePathFromDirectory(g.getCurrentDirectory(),e.getNormalizedAbsolutePath(m,G),!g.useCaseSensitiveFileNames()),K.text=(P=M==null?void 0:M.text)!==null&&P!==void 0?P:"",e.setTextRangePosWidth(K,0,(x=M==null?void 0:M.text.length)!==null&&x!==void 0?x:0),e.setEachParent(K.statements,K),e.setTextRangePosWidth(z,K.end,0),e.setParent(z,K),K})}function oe(d,G,g,p){var f=W(d.options,!1),T=f.buildInfoPath,m=f.jsFilePath,N=f.sourceMapFilePath,P=f.declarationFilePath,x=f.declarationMapPath,M=G.readFile(e.Debug.checkDefined(T));if(!M)return T;var me=G.readFile(e.Debug.checkDefined(m));if(!me)return m;var z=N&&G.readFile(N);if(N&&!z||d.options.inlineSourceMap)return N||"inline sourcemap decoding";var K=P&&G.readFile(P);if(P&&!K)return P;var I=x&&G.readFile(x);if(x&&!I||d.options.inlineSourceMap)return x||"inline sourcemap decoding";var Ae=ie(M);if(!Ae.bundle||!Ae.bundle.js||K&&!Ae.bundle.dts)return T;var Oe=e.getDirectoryPath(e.getNormalizedAbsolutePath(T,G.getCurrentDirectory())),te=e.createInputFiles(me,K,N,z,x,I,m,P,T,Ae,!0),Se=[],be=e.createPrependNodes(d.projectReferences,g,function(De){return G.readFile(De)}),Ce=q(Ae.bundle,Oe,G),Be={getPrependNodes:e.memoize(function(){return Vr(Vr([],be,!0),[te],!1)}),getCanonicalFileName:G.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(Ae.bundle.commonSourceDirectory,Oe)},getCompilerOptions:function(){return d.options},getCurrentDirectory:function(){return G.getCurrentDirectory()},getNewLine:function(){return G.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return Ce},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(De,en,fe){switch(De){case m:if(me===en)return;break;case N:if(z===en)return;break;case T:var Ne=ie(en);Ne.program=Ae.program;var qe=Ae.bundle,pe=qe.js,we=qe.dts,pn=qe.sourceFiles;Ne.bundle.js.sources=pe.sources,we&&(Ne.bundle.dts.sources=we.sources),Ne.bundle.sourceFiles=pn,Se.push({name:De,text:b(Ne),writeByteOrderMark:fe});return;case P:if(K===en)return;break;case x:if(I===en)return;break;default:e.Debug.fail("Unexpected path: "+De)}Se.push({name:De,text:en,writeByteOrderMark:fe})},isEmitBlocked:e.returnFalse,readFile:function(De){return G.readFile(De)},fileExists:function(De){return G.fileExists(De)},useCaseSensitiveFileNames:function(){return G.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented};return k(e.notImplementedResolver,Be,void 0,e.getTransformers(d.options,p)),Se}e.emitUsingBuildInfo=oe;var se;(function(d){d[d.Notification=0]="Notification",d[d.Substitution=1]="Substitution",d[d.Comments=2]="Comments",d[d.SourceMaps=3]="SourceMaps",d[d.Emit=4]="Emit"})(se||(se={}));function w(d,G){d===void 0&&(d={}),G===void 0&&(G={});var g=G.hasGlobalName,p=G.onEmitNode,f=p===void 0?e.noEmitNotification:p,T=G.isEmitNotificationEnabled,m=G.substituteNode,N=m===void 0?e.noEmitSubstitution:m,P=G.onBeforeEmitNode,x=G.onAfterEmitNode,M=G.onBeforeEmitNodeArray,me=G.onAfterEmitNodeArray,z=G.onBeforeEmitToken,K=G.onAfterEmitToken,I=!!d.extendedDiagnostics,Ae=e.getNewLineCharacter(d),Oe=e.getEmitModuleKind(d),te=new e.Map,Se,be,Ce,Be,De,en,fe,Ne,qe=d.preserveSourceNewlines,pe,we,pn,Qe=Ds,Re,He=d.writeBundleFileInfo?{sections:[]}:void 0,Ln=He?e.Debug.checkDefined(d.relativeToBuildInfo):void 0,Un=d.recordInternalSection,fn=0,En="text",i=!0,In,X,rn=-1,$n,Vn=-1,le=-1,Pe=-1,xe=-1,Ze,hn,Le=!1,$e=!!d.removeComments,An,Ue,gn=e.performance.createTimerIf(I,"commentTime","beforeComment","afterComment"),Wn=gn.enter,ze=gn.exit,Tn=e.factory.parenthesizer,On=Hs();return Ye(),{printNode:ur,printList:hr,printFile:Qr,printBundle:wr,writeNode:jn,writeList:Zn,writeFile:Bn,writeBundle:cr,bundleFileInfo:He};function ur(v,nn,mr){switch(v){case 0:e.Debug.assert(e.isSourceFile(nn),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(nn),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(nn),"Expected an Expression node.");break}switch(nn.kind){case 300:return Qr(nn);case 301:return wr(nn);case 302:return Ke(nn)}return jn(v,nn,mr,J()),Cn()}function hr(v,nn,mr){return Zn(v,nn,mr,J()),Cn()}function wr(v){return cr(v,J(),void 0),Cn()}function Qr(v){return Bn(v,J(),void 0),Cn()}function Ke(v){return Fe(v,J()),Cn()}function jn(v,nn,mr,Br){var ya=we;Rn(Br,void 0),Gn(v,nn,mr),Ye(),we=ya}function Zn(v,nn,mr,Br){var ya=we;Rn(Br,void 0),mr&&cn(mr),qa(void 0,nn,v),Ye(),we=ya}function Me(){return we.getTextPosWithWriteLine?we.getTextPosWithWriteLine():we.getTextPos()}function Mn(v,nn,mr){var Br=e.lastOrUndefined(He.sections);Br&&Br.kind===mr?Br.end=nn:He.sections.push({pos:v,end:nn,kind:mr})}function ar(v){if(Un&&He&&Se&&(e.isDeclaration(v)||e.isVariableStatement(v))&&e.isInternalDeclaration(v,Se)&&En!=="internal"){var nn=En;return yr(we.getTextPos()),fn=Me(),En="internal",nn}}function Xn(v){v&&(yr(we.getTextPos()),fn=Me(),En=v)}function yr(v){return fn<v?(Mn(fn,v,En),!0):!1}function cr(v,nn,mr){var Br;Re=!1;var ya=we;Rn(nn,mr),_n(v),ae(v),eo(v),vf(v);for(var Pa=0,Ha=v.prepends;Pa<Ha.length;Pa++){var ci=Ha[Pa];Ls();var Xi=we.getTextPos(),ns=He&&He.sections;if(ns&&(He.sections=[]),Gn(4,ci,void 0),He){var fs=He.sections;He.sections=ns,ci.oldFileOfCurrentEmit?(Br=He.sections).push.apply(Br,fs):(fs.forEach(function(jc){return e.Debug.assert(e.isBundleFileTextLike(jc))}),He.sections.push({pos:Xi,end:we.getTextPos(),kind:"prepend",data:Ln(ci.fileName),texts:fs}))}}fn=Me();for(var pl=0,Cs=v.sourceFiles;pl<Cs.length;pl++){var Ll=Cs[pl];Gn(0,Ll,Ll)}if(He&&v.sourceFiles.length){var Wc=we.getTextPos();if(yr(Wc)){var Bu=je(v);Bu&&(He.sources||(He.sources={}),He.sources.prologues=Bu);var Al=Ya(v);Al&&(He.sources||(He.sources={}),He.sources.helpers=Al)}}Ye(),we=ya}function Fe(v,nn){var mr=we;Rn(nn,void 0),Gn(4,v,void 0),Ye(),we=mr}function Bn(v,nn,mr){Re=!0;var Br=we;Rn(nn,mr),_n(v),ae(v),Gn(0,v,v),Ye(),we=Br}function J(){return pn||(pn=e.createTextWriter(Ae))}function Cn(){var v=pn.getText();return pn.clear(),v}function Gn(v,nn,mr){mr&&cn(mr),ft(v,nn,void 0)}function cn(v){Se=v,Ze=void 0,hn=void 0,v&&Xd(v)}function Rn(v,nn){v&&d.omitTrailingSemicolon&&(v=e.getTrailingSemicolonDeferringWriter(v)),we=v,In=nn,i=!we||!In}function Ye(){be=[],Ce=[],Be=new e.Set,De=[],en=0,fe=[],Se=void 0,Ze=void 0,hn=void 0,Rn(void 0,void 0)}function xn(){return Ze||(Ze=e.getLineStarts(Se))}function an(v,nn){if(v!==void 0){var mr=ar(v);ft(4,v,nn),Xn(mr)}}function zn(v){v!==void 0&&ft(2,v,void 0)}function ir(v,nn){v!==void 0&&ft(1,v,nn)}function gr(v){ft(e.isStringLiteral(v)?6:4,v)}function Dr(v){qe&&e.getEmitFlags(v)&134217728&&(qe=!1)}function qr(v){qe=v}function ft(v,nn,mr){Ue=mr;var Br=dt(0,v,nn);Br(v,nn),Ue=void 0}function xt(v){return!$e&&!e.isSourceFile(v)}function Kr(v){return!i&&!e.isSourceFile(v)&&!e.isInJsonFile(v)&&!e.isUnparsedSource(v)&&!e.isUnparsedPrepend(v)}function dt(v,nn,mr){switch(v){case 0:if(f!==e.noEmitNotification&&(!T||T(mr)))return qt;case 1:if(N!==e.noEmitSubstitution&&(An=N(nn,mr)||mr)!==mr)return Ue&&(An=Ue(An)),ri;case 2:if(xt(mr))return Uf;case 3:if(Kr(mr))return jf;case 4:return Cr;default:return e.Debug.assertNever(v)}}function Ur(v,nn,mr){return dt(v+1,nn,mr)}function qt(v,nn){var mr=Ur(0,v,nn);f(v,nn,mr)}function Cr(v,nn){if(P==null||P(nn),qe){var mr=qe;Dr(nn),Jt(v,nn),qr(mr)}else Jt(v,nn);x==null||x(nn),Ue=void 0}function Jt(v,nn){if(v===0)return Ti(e.cast(nn,e.isSourceFile));if(v===2)return Rr(e.cast(nn,e.isIdentifier));if(v===6)return Ar(e.cast(nn,e.isStringLiteral),!0);if(v===3)return Ot(e.cast(nn,e.isTypeParameterDeclaration));if(v===5)return e.Debug.assertNode(nn,e.isEmptyStatement),hs(!0);if(v===4){switch(nn.kind){case 15:case 16:case 17:return Ar(nn,!1);case 79:return Rr(nn);case 80:return Lr(nn);case 159:return Xr(nn);case 160:return vt(nn);case 161:return or(nn);case 162:return $t(nn);case 163:return Va(nn);case 164:return li(nn);case 165:return zi(nn);case 166:return Ma(nn);case 167:return di(nn);case 168:return Yi(nn);case 169:return uo(nn);case 170:case 171:return bi(nn);case 172:return Mi(nn);case 173:return Go(nn);case 174:return io(nn);case 175:return qi(nn);case 176:return Qi(nn);case 177:return as(nn);case 178:return vo(nn);case 179:return Io(nn);case 180:return Bo(nn);case 181:return Uo(nn);case 182:return us(nn);case 183:return is(nn);case 185:return mn(nn);case 186:return _r(nn);case 187:return $r(nn);case 188:return ia(nn);case 189:return ti(nn);case 226:return et(nn);case 190:return va();case 191:return Ve(nn);case 192:return ce(nn);case 193:return dn(nn);case 194:return j(nn);case 195:return Jo(nn);case 196:return Ie(nn);case 197:return wi(nn);case 198:return We(nn);case 199:return sn(nn);case 200:return Hn(nn);case 201:return vr(nn);case 231:return To(nn);case 232:return Ho();case 233:return Pn(nn);case 235:return Ko(nn);case 234:return hs(!1);case 236:return hl(nn);case 237:return Bi(nn);case 238:return rl(nn);case 239:return Ol(nn);case 240:return nc(nn);case 241:return Sc(nn);case 242:return Zl(nn);case 243:return dc(nn);case 244:return $l(nn);case 245:return lr(nn);case 246:return Or(nn);case 247:return st(nn);case 248:return yt(nn);case 249:return Tt(nn);case 250:return Ut(nn);case 251:return ea(nn);case 252:return zt(nn);case 253:return Ii(nn);case 254:return ba(nn);case 255:return Wr(nn);case 256:return Ia(nn);case 257:return hi(nn);case 258:return yo(nn);case 259:return Oo(nn);case 260:return ys(nn);case 261:return Pi(nn);case 262:return tl(nn);case 263:return Po(nn);case 264:return zo(nn);case 265:return Es(nn);case 266:return Rs(nn);case 272:return zc(nn);case 267:return pu(nn);case 268:return ol(nn);case 269:return mu(nn);case 270:return fo(nn);case 271:return _u(nn);case 273:return qc(nn);case 274:return;case 275:return fd(nn);case 11:return da(nn);case 278:case 281:return Za(nn);case 279:case 282:return pc(nn);case 283:return Yu(nn);case 284:return $o(nn);case 285:return Dc(nn);case 286:return Qs(nn);case 287:return Ks(nn);case 288:return rc(nn);case 289:return _f(nn);case 290:return vu(nn);case 291:return Qu(nn);case 292:return gf(nn);case 293:return Nf(nn);case 294:return kf(nn);case 295:return Hr(nn);case 302:case 296:return at(nn);case 297:case 298:return Wt(nn);case 299:return Zt(nn);case 300:return Ti(nn);case 301:return e.Debug.fail("Bundles should be printed using printBundle");case 303:return e.Debug.fail("InputFiles should not be printed");case 304:return oc(nn);case 305:return Of(nn);case 307:return Pt("*");case 308:return Pt("?");case 309:return Da(nn);case 310:return $a(nn);case 311:return Ni(nn);case 312:return gs(nn);case 184:case 313:return cs(nn);case 314:return;case 315:return dd(nn);case 317:return $u(nn);case 318:return Yc(nn);case 322:case 327:return Jl(nn);case 323:case 324:return md(nn);case 325:case 326:return;case 328:case 329:case 330:case 331:case 332:return;case 333:return Pf(nn);case 335:case 342:return Ud(nn);case 334:case 336:case 337:case 338:return pd(nn);case 339:return Zu(nn);case 340:return Xc(nn);case 341:return Rf(nn);case 344:case 348:case 347:return}if(e.isExpression(nn)&&(v=1,N!==e.noEmitSubstitution)){var mr=N(v,nn)||nn;mr!==nn&&(nn=mr,Ue&&(nn=Ue(nn)))}}if(v===1)switch(nn.kind){case 8:case 9:return ua(nn);case 10:case 13:case 14:return Ar(nn,!1);case 79:return Rr(nn);case 202:return Sr(nn);case 203:return ot(nn);case 204:return Et(nn);case 205:return Na(nn);case 206:return ei(nn);case 207:return Li(nn);case 208:return Zi(nn);case 209:return ho(nn);case 210:return vs(nn);case 211:return Ao(nn);case 212:return oo(nn);case 213:return cl(nn);case 214:return ws(nn);case 215:return vl(nn);case 216:return ul(nn);case 217:return ps(nn);case 218:return Hl(nn);case 219:return On(nn);case 220:return Fs(nn);case 221:return ge(nn);case 222:return Kn(nn);case 223:return Te(nn);case 224:return Fn(nn);case 225:return;case 227:return Xt(nn);case 228:return ca(nn);case 229:return ha(nn);case 230:return e.Debug.fail("SyntheticExpression should never be printed.");case 276:return ic(nn);case 277:return Pu(nn);case 280:return Bd(nn);case 343:return e.Debug.fail("SyntaxList should not be printed");case 344:return;case 345:return Mf(nn);case 346:return wf(nn);case 347:case 348:return;case 349:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}if(e.isKeyword(nn.kind))return dp(nn,gi);if(e.isTokenKind(nn.kind))return dp(nn,Pt);e.Debug.fail("Unhandled SyntaxKind: "+e.Debug.formatSyntaxKind(nn.kind)+".")}function Ot(v){an(v.name),Dt(),gi("in"),Dt(),an(v.constraint)}function ri(v,nn){var mr=Ur(1,v,nn);e.Debug.assertIsDefined(An),nn=An,An=void 0,mr(v,nn)}function Ya(v){var nn;if(!(Oe===e.ModuleKind.None||d.noEmitHelpers)){for(var mr=new e.Map,Br=0,ya=v.sourceFiles;Br<ya.length;Br++){var Pa=ya[Br],Ha=e.getExternalHelpersModuleName(Pa)!==void 0,ci=za(Pa);if(ci)for(var Xi=0,ns=ci;Xi<ns.length;Xi++){var fs=ns[Xi];!fs.scoped&&!Ha&&!mr.get(fs.name)&&(mr.set(fs.name,!0),(nn||(nn=[])).push(fs.name))}}return nn}}function eo(v){var nn=!1,mr=v.kind===301?v:void 0;if(!(mr&&Oe===e.ModuleKind.None)){for(var Br=mr?mr.prepends.length:0,ya=mr?mr.sourceFiles.length+Br:1,Pa=0;Pa<ya;Pa++){var Ha=mr?Pa<Br?mr.prepends[Pa]:mr.sourceFiles[Pa-Br]:v,ci=e.isSourceFile(Ha)?Ha:e.isUnparsedSource(Ha)?void 0:Se,Xi=d.noEmitHelpers||!!ci&&e.hasRecordedExternalHelpers(ci),ns=(e.isSourceFile(Ha)||e.isUnparsedSource(Ha))&&!Re,fs=e.isUnparsedSource(Ha)?Ha.helpers:za(Ha);if(fs)for(var pl=0,Cs=fs;pl<Cs.length;pl++){var Ll=Cs[pl];if(Ll.scoped){if(mr)continue}else{if(Xi)continue;if(ns){if(te.get(Ll.name))continue;te.set(Ll.name,!0)}}var Wc=Me();typeof Ll.text=="string"?Gf(Ll.text):Gf(Ll.text(mp)),He&&He.sections.push({pos:Wc,end:we.getTextPos(),kind:"emitHelpers",data:Ll.name}),nn=!0}}return nn}}function za(v){var nn=e.getEmitHelpers(v);return nn&&e.stableSort(nn,e.compareEmitHelpers)}function ua(v){Ar(v,!1)}function Ar(v,nn){var mr=$c(v,d.neverAsciiEscape,nn);(d.sourceMap||d.inlineSourceMap)&&(v.kind===10||e.isTemplateLiteralKind(v.kind))?ki(mr):Gs(mr)}function at(v){for(var nn=0,mr=v.texts;nn<mr.length;nn++){var Br=mr[nn];Ls(),an(Br)}}function Hr(v){we.rawWrite(v.parent.text.substring(v.pos,v.end))}function Wt(v){var nn=Me();Hr(v),He&&Mn(nn,we.getTextPos(),v.kind===297?"text":"internal")}function Zt(v){var nn=Me();if(Hr(v),He){var mr=e.clone(v.section);mr.pos=nn,mr.end=we.getTextPos(),He.sections.push(mr)}}function Rr(v){var nn=v.symbol?ko:Qe;nn(_c(v,!1),v.symbol),qa(v,v.typeArguments,53776)}function Lr(v){var nn=v.symbol?ko:Qe;nn(_c(v,!1),v.symbol)}function Xr(v){nt(v.left),Pt("."),an(v.right)}function nt(v){v.kind===79?ir(v):an(v)}function vt(v){Pt("["),ir(v.expression,Tn.parenthesizeExpressionOfComputedPropertyName),Pt("]")}function or(v){an(v.name),v.constraint&&(Dt(),gi("extends"),Dt(),an(v.constraint)),v.default&&(Dt(),Qc("="),Dt(),an(v.default))}function $t(v){Ba(v,v.decorators),er(v,v.modifiers),an(v.dotDotDotToken),Nn(v.name,Vd),an(v.questionToken),v.parent&&v.parent.kind===312&&!v.name?an(v.type):pr(v.type),kr(v.initializer,v.type?v.type.end:v.questionToken?v.questionToken.end:v.name?v.name.end:v.modifiers?v.modifiers.end:v.decorators?v.decorators.end:v.pos,v,Tn.parenthesizeExpressionForDisallowedComma)}function Va(v){Pt("@"),ir(v.expression,Tn.parenthesizeLeftSideOfAccess)}function li(v){Ba(v,v.decorators),er(v,v.modifiers),Nn(v.name,hf),an(v.questionToken),pr(v.type),wo()}function zi(v){Ba(v,v.decorators),er(v,v.modifiers),an(v.name),an(v.questionToken),an(v.exclamationToken),pr(v.type),kr(v.initializer,v.type?v.type.end:v.questionToken?v.questionToken.end:v.name.end,v),wo()}function Ma(v){Nc(v),Ba(v,v.decorators),er(v,v.modifiers),an(v.name),an(v.questionToken),No(v,v.typeParameters),to(v,v.parameters),pr(v.type),wo(),kc(v)}function di(v){Ba(v,v.decorators),er(v,v.modifiers),an(v.asteriskToken),an(v.name),an(v.questionToken),Ui(v,Fi)}function Yi(v){Ba(v,v.decorators),er(v,v.modifiers),gi("static"),un(v.body)}function uo(v){er(v,v.modifiers),gi("constructor"),Ui(v,Fi)}function bi(v){Ba(v,v.decorators),er(v,v.modifiers),gi(v.kind===170?"get":"set"),Dt(),an(v.name),Ui(v,Fi)}function Mi(v){Nc(v),Ba(v,v.decorators),er(v,v.modifiers),No(v,v.typeParameters),to(v,v.parameters),pr(v.type),wo(),kc(v)}function Go(v){Nc(v),Ba(v,v.decorators),er(v,v.modifiers),gi("new"),Dt(),No(v,v.typeParameters),to(v,v.parameters),pr(v.type),wo(),kc(v)}function io(v){Ba(v,v.decorators),er(v,v.modifiers),ni(v,v.parameters),pr(v.type),wo()}function wi(v){an(v.type),an(v.literal)}function Ho(){wo()}function qi(v){v.assertsModifier&&(an(v.assertsModifier),Dt()),an(v.parameterName),v.type&&(Dt(),gi("is"),Dt(),an(v.type))}function Qi(v){an(v.typeName),_i(v,v.typeArguments)}function as(v){Nc(v),No(v,v.typeParameters),Qt(v,v.parameters),Dt(),Pt("=>"),Dt(),an(v.type),kc(v)}function gs(v){gi("function"),to(v,v.parameters),Pt(":"),an(v.type)}function Da(v){Pt("?"),an(v.type)}function $a(v){Pt("!"),an(v.type)}function Ni(v){an(v.type),Pt("=")}function vo(v){Nc(v),er(v,v.modifiers),gi("new"),Dt(),No(v,v.typeParameters),to(v,v.parameters),Dt(),Pt("=>"),Dt(),an(v.type),kc(v)}function Io(v){gi("typeof"),Dt(),an(v.exprName)}function Bo(v){Pt("{");var nn=e.getEmitFlags(v)&1?768:32897;qa(v,v.members,nn|524288),Pt("}")}function Uo(v){an(v.elementType,Tn.parenthesizeElementTypeOfArrayType),Pt("["),Pt("]")}function cs(v){Pt("..."),an(v.type)}function us(v){kn(22,v.pos,Pt,v);var nn=e.getEmitFlags(v)&1?528:657;qa(v,v.elements,nn|524288),kn(23,v.elements.end,Pt,v)}function Jo(v){an(v.dotDotDotToken),an(v.name),an(v.questionToken),kn(58,v.name.end,Pt,v),Dt(),an(v.type)}function is(v){an(v.type,Tn.parenthesizeElementTypeOfArrayType),Pt("?")}function mn(v){qa(v,v.types,516,Tn.parenthesizeMemberOfElementType)}function _r(v){qa(v,v.types,520,Tn.parenthesizeMemberOfElementType)}function $r(v){an(v.checkType,Tn.parenthesizeMemberOfConditionalType),Dt(),gi("extends"),Dt(),an(v.extendsType,Tn.parenthesizeMemberOfConditionalType),Dt(),Pt("?"),Dt(),an(v.trueType),Dt(),Pt(":"),Dt(),an(v.falseType)}function ia(v){gi("infer"),Dt(),an(v.typeParameter)}function ti(v){Pt("("),an(v.type),Pt(")")}function va(){gi("this")}function Ve(v){Mu(v.operator,gi),Dt(),an(v.type,Tn.parenthesizeMemberOfElementType)}function ce(v){an(v.objectType,Tn.parenthesizeMemberOfElementType),Pt("["),an(v.indexType),Pt("]")}function dn(v){var nn=e.getEmitFlags(v);Pt("{"),nn&1?Dt():(Ls(),Dl()),v.readonlyToken&&(an(v.readonlyToken),v.readonlyToken.kind!==143&&gi("readonly"),Dt()),Pt("["),ft(3,v.typeParameter),v.nameType&&(Dt(),gi("as"),Dt(),an(v.nameType)),Pt("]"),v.questionToken&&(an(v.questionToken),v.questionToken.kind!==57&&Pt("?")),Pt(":"),Dt(),an(v.type),wo(),nn&1?Dt():(Ls(),ec()),Pt("}")}function j(v){ir(v.literal)}function Ie(v){an(v.head),qa(v,v.templateSpans,262144)}function We(v){v.isTypeOf&&(gi("typeof"),Dt()),gi("import"),Pt("("),an(v.argument),Pt(")"),v.qualifier&&(Pt("."),an(v.qualifier)),_i(v,v.typeArguments)}function sn(v){Pt("{"),qa(v,v.elements,525136),Pt("}")}function Hn(v){Pt("["),qa(v,v.elements,524880),Pt("]")}function vr(v){an(v.dotDotDotToken),v.propertyName&&(an(v.propertyName),Pt(":"),Dt()),an(v.name),kr(v.initializer,v.name.end,v,Tn.parenthesizeExpressionForDisallowedComma)}function Sr(v){var nn=v.elements,mr=v.multiLine?65536:0;so(v,nn,8914|mr,Tn.parenthesizeExpressionForDisallowedComma)}function ot(v){e.forEach(v.properties,As);var nn=e.getEmitFlags(v)&65536;nn&&Dl();var mr=v.multiLine?65536:0,Br=Se.languageVersion>=1&&!e.isJsonSourceFile(Se)?64:0;qa(v,v.properties,526226|Br|mr),nn&&ec()}function Et(v){ir(v.expression,Tn.parenthesizeLeftSideOfAccess);var nn=v.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),v.expression.end,v.name.pos),mr=Zc(v,v.expression,nn),Br=Zc(v,nn,v.name);al(mr,!1);var ya=nn.kind!==28&&ra(v.expression)&&!we.hasTrailingComment()&&!we.hasTrailingWhitespace();ya&&Pt("."),v.questionDotToken?an(nn):kn(nn.kind,v.expression.end,Pt,v),al(Br,!1),an(v.name),Ic(mr,Br)}function ra(v){if(v=e.skipPartiallyEmittedExpressions(v),e.isNumericLiteral(v)){var nn=$c(v,!0,!1);return!v.numericLiteralFlags&&!e.stringContains(nn,e.tokenToString(24))}else if(e.isAccessExpression(v)){var mr=e.getConstantValue(v);return typeof mr=="number"&&isFinite(mr)&&Math.floor(mr)===mr}}function Na(v){ir(v.expression,Tn.parenthesizeLeftSideOfAccess),an(v.questionDotToken),kn(22,v.expression.end,Pt,v),ir(v.argumentExpression),kn(23,v.argumentExpression.end,Pt,v)}function ei(v){var nn=e.getEmitFlags(v)&536870912;nn&&(Pt("("),ki("0"),Pt(","),Dt()),ir(v.expression,Tn.parenthesizeLeftSideOfAccess),nn&&Pt(")"),an(v.questionDotToken),_i(v,v.typeArguments),so(v,v.arguments,2576,Tn.parenthesizeExpressionForDisallowedComma)}function Li(v){kn(103,v.pos,gi,v),Dt(),ir(v.expression,Tn.parenthesizeExpressionOfNew),_i(v,v.typeArguments),so(v,v.arguments,18960,Tn.parenthesizeExpressionForDisallowedComma)}function Zi(v){var nn=e.getEmitFlags(v)&536870912;nn&&(Pt("("),ki("0"),Pt(","),Dt()),ir(v.tag,Tn.parenthesizeLeftSideOfAccess),nn&&Pt(")"),_i(v,v.typeArguments),Dt(),ir(v.template)}function ho(v){Pt("<"),an(v.type),Pt(">"),ir(v.expression,Tn.parenthesizeOperandOfPrefixUnary)}function vs(v){var nn=kn(20,v.pos,Pt,v),mr=Kl(v.expression,v);ir(v.expression,void 0),wp(v.expression,v),Ic(mr),kn(21,v.expression?v.expression.end:nn,Pt,v)}function Ao(v){fl(v.name),wa(v)}function oo(v){Ba(v,v.decorators),er(v,v.modifiers),Ui(v,Zo)}function Zo(v){No(v,v.typeParameters),Qt(v,v.parameters),pr(v.type),Dt(),an(v.equalsGreaterThanToken)}function cl(v){kn(89,v.pos,gi,v),Dt(),ir(v.expression,Tn.parenthesizeOperandOfPrefixUnary)}function ws(v){kn(112,v.pos,gi,v),Dt(),ir(v.expression,Tn.parenthesizeOperandOfPrefixUnary)}function vl(v){kn(114,v.pos,gi,v),Dt(),ir(v.expression,Tn.parenthesizeOperandOfPrefixUnary)}function ul(v){kn(131,v.pos,gi,v),Dt(),ir(v.expression,Tn.parenthesizeOperandOfPrefixUnary)}function ps(v){Mu(v.operator,Qc),jl(v)&&Dt(),ir(v.operand,Tn.parenthesizeOperandOfPrefixUnary)}function jl(v){var nn=v.operand;return nn.kind===217&&(v.operator===39&&(nn.operator===39||nn.operator===45)||v.operator===40&&(nn.operator===40||nn.operator===46))}function Hl(v){ir(v.operand,Tn.parenthesizeOperandOfPostfixUnary),Mu(v.operator,Qc)}function Hs(){return e.createBinaryExpressionTrampoline(v,nn,mr,Br,ya,void 0);function v(Ha,ci){if(ci){ci.stackIndex++,ci.preserveSourceNewlinesStack[ci.stackIndex]=qe,ci.containerPosStack[ci.stackIndex]=le,ci.containerEndStack[ci.stackIndex]=Pe,ci.declarationListContainerEndStack[ci.stackIndex]=xe;var Xi=ci.shouldEmitCommentsStack[ci.stackIndex]=xt(Ha),ns=ci.shouldEmitSourceMapsStack[ci.stackIndex]=Kr(Ha);P==null||P(Ha),Xi&&tf(Ha),ns&&bu(Ha),Dr(Ha)}else ci={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return ci}function nn(Ha,ci,Xi){return Pa(Ha,Xi,"left")}function mr(Ha,ci,Xi){var ns=Ha.kind!==27,fs=Zc(Xi,Xi.left,Ha),pl=Zc(Xi,Ha,Xi.right);al(fs,ns),gc(Ha.pos),dp(Ha,Ha.kind===101?gi:Qc),Fu(Ha.end,!0),al(pl,!0)}function Br(Ha,ci,Xi){return Pa(Ha,Xi,"right")}function ya(Ha,ci){var Xi=Zc(Ha,Ha.left,Ha.operatorToken),ns=Zc(Ha,Ha.operatorToken,Ha.right);if(Ic(Xi,ns),ci.stackIndex>0){var fs=ci.preserveSourceNewlinesStack[ci.stackIndex],pl=ci.containerPosStack[ci.stackIndex],Cs=ci.containerEndStack[ci.stackIndex],Ll=ci.declarationListContainerEndStack[ci.stackIndex],Wc=ci.shouldEmitCommentsStack[ci.stackIndex],Bu=ci.shouldEmitSourceMapsStack[ci.stackIndex];qr(fs),Bu&&Os(Ha),Wc&&Ef(Ha,pl,Cs,Ll),x==null||x(Ha),ci.stackIndex--}}function Pa(Ha,ci,Xi){var ns=Xi==="left"?Tn.getParenthesizeLeftSideOfBinaryForOperator(ci.operatorToken.kind):Tn.getParenthesizeRightSideOfBinaryForOperator(ci.operatorToken.kind),fs=dt(0,1,Ha);if(fs===ri&&(e.Debug.assertIsDefined(An),Ha=ns(e.cast(An,e.isExpression)),fs=Ur(1,1,Ha),An=void 0),(fs===Uf||fs===jf||fs===Cr)&&e.isBinaryExpression(Ha))return Ha;Ue=ns,fs(1,Ha)}}function Fs(v){var nn=Zc(v,v.condition,v.questionToken),mr=Zc(v,v.questionToken,v.whenTrue),Br=Zc(v,v.whenTrue,v.colonToken),ya=Zc(v,v.colonToken,v.whenFalse);ir(v.condition,Tn.parenthesizeConditionOfConditionalExpression),al(nn,!0),an(v.questionToken),al(mr,!0),ir(v.whenTrue,Tn.parenthesizeBranchOfConditionalExpression),Ic(nn,mr),al(Br,!0),an(v.colonToken),al(ya,!0),ir(v.whenFalse,Tn.parenthesizeBranchOfConditionalExpression),Ic(Br,ya)}function ge(v){an(v.head),qa(v,v.templateSpans,262144)}function Kn(v){kn(125,v.pos,gi,v),an(v.asteriskToken),rt(v.expression,Tn.parenthesizeExpressionForDisallowedComma)}function Te(v){kn(25,v.pos,Pt,v),ir(v.expression,Tn.parenthesizeExpressionForDisallowedComma)}function Fn(v){fl(v.name),Yt(v)}function et(v){ir(v.expression,Tn.parenthesizeLeftSideOfAccess),_i(v,v.typeArguments)}function Xt(v){ir(v.expression,void 0),v.type&&(Dt(),gi("as"),Dt(),an(v.type))}function ca(v){ir(v.expression,Tn.parenthesizeLeftSideOfAccess),Qc("!")}function ha(v){Ff(v.keywordToken,v.pos,Pt),Pt("."),an(v.name)}function To(v){ir(v.expression),an(v.literal)}function Pn(v){Vo(v,!v.multiLine&&jd(v))}function Vo(v,nn){kn(18,v.pos,Pt,v);var mr=nn||e.getEmitFlags(v)&1?768:129;qa(v,v.statements,mr),kn(19,v.statements.end,Pt,v,!!(mr&1))}function Ko(v){er(v,v.modifiers),an(v.declarationList),wo()}function hs(v){v?Pt(";"):wo()}function hl(v){ir(v.expression,Tn.parenthesizeExpressionOfExpressionStatement),(!e.isJsonSourceFile(Se)||e.nodeIsSynthesized(v.expression))&&wo()}function Bi(v){var nn=kn(99,v.pos,gi,v);Dt(),kn(20,nn,Pt,v),ir(v.expression),kn(21,v.expression.end,Pt,v),Ai(v,v.thenStatement),v.elseStatement&&(Bc(v,v.thenStatement,v.elseStatement),kn(91,v.thenStatement.end,gi,v),v.elseStatement.kind===237?(Dt(),an(v.elseStatement)):Ai(v,v.elseStatement))}function Js(v,nn){var mr=kn(115,nn,gi,v);Dt(),kn(20,mr,Pt,v),ir(v.expression),kn(21,v.expression.end,Pt,v)}function rl(v){kn(90,v.pos,gi,v),Ai(v,v.statement),e.isBlock(v.statement)&&!qe?Dt():Bc(v,v.statement,v.expression),Js(v,v.statement.end),wo()}function Ol(v){Js(v,v.pos),Ai(v,v.statement)}function nc(v){var nn=kn(97,v.pos,gi,v);Dt();var mr=kn(20,nn,Pt,v);du(v.initializer),mr=kn(26,v.initializer?v.initializer.end:mr,Pt,v),rt(v.condition),mr=kn(26,v.condition?v.condition.end:mr,Pt,v),rt(v.incrementor),kn(21,v.incrementor?v.incrementor.end:mr,Pt,v),Ai(v,v.statement)}function Sc(v){var nn=kn(97,v.pos,gi,v);Dt(),kn(20,nn,Pt,v),du(v.initializer),Dt(),kn(101,v.initializer.end,gi,v),Dt(),ir(v.expression),kn(21,v.expression.end,Pt,v),Ai(v,v.statement)}function Zl(v){var nn=kn(97,v.pos,gi,v);Dt(),ma(v.awaitModifier),kn(20,nn,Pt,v),du(v.initializer),Dt(),kn(158,v.initializer.end,gi,v),Dt(),ir(v.expression),kn(21,v.expression.end,Pt,v),Ai(v,v.statement)}function du(v){v!==void 0&&(v.kind===253?an(v):ir(v))}function dc(v){kn(86,v.pos,gi,v),gt(v.label),wo()}function $l(v){kn(81,v.pos,gi,v),gt(v.label),wo()}function kn(v,nn,mr,Br,ya){var Pa=e.getParseTreeNode(Br),Ha=Pa&&Pa.kind===Br.kind,ci=nn;if(Ha&&Se&&(nn=e.skipTrivia(Se.text,nn)),Ha&&Br.pos!==ci){var Xi=ya&&Se&&!e.positionsAreOnSameLine(ci,nn,Se);Xi&&Dl(),gc(ci),Xi&&ec()}if(nn=Mu(v,mr,nn),Ha&&Br.end!==nn){var ns=Br.kind===286;Fu(nn,!ns,ns)}return nn}function lr(v){kn(105,v.pos,gi,v),rt(v.expression),wo()}function Or(v){var nn=kn(116,v.pos,gi,v);Dt(),kn(20,nn,Pt,v),ir(v.expression),kn(21,v.expression.end,Pt,v),Ai(v,v.statement)}function st(v){var nn=kn(107,v.pos,gi,v);Dt(),kn(20,nn,Pt,v),ir(v.expression),kn(21,v.expression.end,Pt,v),Dt(),an(v.caseBlock)}function yt(v){an(v.label),kn(58,v.label.end,Pt,v),Dt(),an(v.statement)}function Tt(v){kn(109,v.pos,gi,v),rt(v.expression),wo()}function Ut(v){kn(111,v.pos,gi,v),Dt(),an(v.tryBlock),v.catchClause&&(Bc(v,v.tryBlock,v.catchClause),an(v.catchClause)),v.finallyBlock&&(Bc(v,v.catchClause||v.tryBlock,v.finallyBlock),kn(96,(v.catchClause||v.tryBlock).end,gi,v),Dt(),an(v.finallyBlock))}function ea(v){Ff(87,v.pos,gi),wo()}function zt(v){an(v.name),an(v.exclamationToken),pr(v.type),kr(v.initializer,v.type?v.type.end:v.name.end,v,Tn.parenthesizeExpressionForDisallowedComma)}function Ii(v){gi(e.isLet(v)?"let":e.isVarConst(v)?"const":"var"),Dt(),qa(v,v.declarations,528)}function ba(v){wa(v)}function wa(v){Ba(v,v.decorators),er(v,v.modifiers),gi("function"),an(v.asteriskToken),Dt(),zn(v.name),Ui(v,Fi)}function Ui(v,nn){var mr=v.body;if(mr)if(e.isBlock(mr)){var Br=e.getEmitFlags(v)&65536;Br&&Dl(),Nc(v),e.forEach(v.parameters,Bs),Bs(v.body),nn(v),un(mr),kc(v),Br&&ec()}else nn(v),Dt(),ir(mr,Tn.parenthesizeConciseBodyOfArrowFunction);else nn(v),wo()}function Fi(v){No(v,v.typeParameters),to(v,v.parameters),pr(v.type)}function he(v){if(e.getEmitFlags(v)&1)return!0;if(v.multiLine||!e.nodeIsSynthesized(v)&&!e.rangeIsOnSingleLine(v,Se)||Wd(v,v.statements,2)||Eo(v,v.statements,2))return!1;for(var nn,mr=0,Br=v.statements;mr<Br.length;mr++){var ya=Br[mr];if(yf(nn,ya,2)>0)return!1;nn=ya}return!0}function un(v){P==null||P(v),Dt(),Pt("{"),Dl();var nn=he(v)?Sn:Tr;Rc?Rc(v,v.statements,nn):nn(v),ec(),Ff(19,v.statements.end,Pt,v),x==null||x(v)}function Sn(v){Tr(v,!0)}function Tr(v,nn){var mr=c(v.statements),Br=we.getTextPos();eo(v),mr===0&&Br===we.getTextPos()&&nn?(ec(),qa(v,v.statements,768),Dl()):qa(v,v.statements,1,void 0,mr)}function Wr(v){Yt(v)}function Yt(v){e.forEach(v.members,As),Ba(v,v.decorators),er(v,v.modifiers),gi("class"),v.name&&(Dt(),zn(v.name));var nn=e.getEmitFlags(v)&65536;nn&&Dl(),No(v,v.typeParameters),qa(v,v.heritageClauses,0),Dt(),Pt("{"),qa(v,v.members,129),Pt("}"),nn&&ec()}function Ia(v){Ba(v,v.decorators),er(v,v.modifiers),gi("interface"),Dt(),an(v.name),No(v,v.typeParameters),qa(v,v.heritageClauses,512),Dt(),Pt("{"),qa(v,v.members,129),Pt("}")}function hi(v){Ba(v,v.decorators),er(v,v.modifiers),gi("type"),Dt(),an(v.name),No(v,v.typeParameters),Dt(),Pt("="),Dt(),an(v.type),wo()}function yo(v){er(v,v.modifiers),gi("enum"),Dt(),an(v.name),Dt(),Pt("{"),qa(v,v.members,145),Pt("}")}function Oo(v){er(v,v.modifiers),~v.flags&1024&&(gi(v.flags&16?"namespace":"module"),Dt()),an(v.name);var nn=v.body;if(!nn)return wo();for(;nn&&e.isModuleDeclaration(nn);)Pt("."),an(nn.name),nn=nn.body;Dt(),an(nn)}function ys(v){Nc(v),e.forEach(v.statements,Bs),Vo(v,jd(v)),kc(v)}function Pi(v){kn(18,v.pos,Pt,v),qa(v,v.clauses,129),kn(19,v.clauses.end,Pt,v,!0)}function Po(v){er(v,v.modifiers),kn(100,v.modifiers?v.modifiers.end:v.pos,gi,v),Dt(),v.isTypeOnly&&(kn(150,v.pos,gi,v),Dt()),an(v.name),Dt(),kn(63,v.name.end,Pt,v),Dt(),Jn(v.moduleReference),wo()}function Jn(v){v.kind===79?ir(v):an(v)}function zo(v){er(v,v.modifiers),kn(100,v.modifiers?v.modifiers.end:v.pos,gi,v),Dt(),v.importClause&&(an(v.importClause),Dt(),kn(154,v.importClause.end,gi,v),Dt()),ir(v.moduleSpecifier),wo()}function Es(v){v.isTypeOnly&&(kn(150,v.pos,gi,v),Dt()),an(v.name),v.name&&v.namedBindings&&(kn(27,v.name.end,Pt,v),Dt()),an(v.namedBindings)}function Rs(v){var nn=kn(41,v.pos,Pt,v);Dt(),kn(127,nn,gi,v),Dt(),an(v.name)}function pu(v){gu(v)}function ol(v){Xu(v)}function mu(v){var nn=kn(93,v.pos,gi,v);Dt(),v.isExportEquals?kn(63,nn,Qc,v):kn(88,nn,gi,v),Dt(),ir(v.expression,v.isExportEquals?Tn.getParenthesizeRightSideOfBinaryForOperator(63):Tn.parenthesizeExpressionOfExportDefault),wo()}function fo(v){var nn=kn(93,v.pos,gi,v);if(Dt(),v.isTypeOnly&&(nn=kn(150,nn,gi,v),Dt()),v.exportClause?an(v.exportClause):nn=kn(41,nn,Pt,v),v.moduleSpecifier){Dt();var mr=v.exportClause?v.exportClause.end:nn;kn(154,mr,gi,v),Dt(),ir(v.moduleSpecifier)}wo()}function tl(v){var nn=kn(93,v.pos,gi,v);Dt(),nn=kn(127,nn,gi,v),Dt(),nn=kn(141,nn,gi,v),Dt(),an(v.name),wo()}function zc(v){var nn=kn(41,v.pos,Pt,v);Dt(),kn(127,nn,gi,v),Dt(),an(v.name)}function _u(v){gu(v)}function qc(v){Xu(v)}function gu(v){Pt("{"),qa(v,v.elements,525136),Pt("}")}function Xu(v){v.propertyName&&(an(v.propertyName),Dt(),kn(127,v.propertyName.end,gi,v),Dt()),an(v.name)}function fd(v){gi("require"),Pt("("),ir(v.expression),Pt(")")}function ic(v){an(v.openingElement),qa(v,v.children,262144),an(v.closingElement)}function Pu(v){Pt("<"),Gc(v.tagName),_i(v,v.typeArguments),Dt(),an(v.attributes),Pt("/>")}function Bd(v){an(v.openingFragment),qa(v,v.children,262144),an(v.closingFragment)}function Za(v){if(Pt("<"),e.isJsxOpeningElement(v)){var nn=Kl(v.tagName,v);Gc(v.tagName),_i(v,v.typeArguments),v.attributes.properties&&v.attributes.properties.length>0&&Dt(),an(v.attributes),wp(v.attributes,v),Ic(nn)}Pt(">")}function da(v){we.writeLiteral(v.text)}function pc(v){Pt("</"),e.isJsxClosingElement(v)&&Gc(v.tagName),Pt(">")}function $o(v){qa(v,v.properties,262656)}function Yu(v){an(v.name),Er("=",Pt,v.initializer,gr)}function Dc(v){Pt("{..."),ir(v.expression),Pt("}")}function xf(v){var nn=!1;return e.forEachTrailingCommentRange((Se==null?void 0:Se.text)||"",v+1,function(){return nn=!0}),nn}function es(v){var nn=!1;return e.forEachLeadingCommentRange((Se==null?void 0:Se.text)||"",v+1,function(){return nn=!0}),nn}function If(v){return xf(v)||es(v)}function Qs(v){var nn;if(v.expression||!$e&&!e.nodeIsSynthesized(v)&&If(v.pos)){var mr=Se&&!e.nodeIsSynthesized(v)&&e.getLineAndCharacterOfPosition(Se,v.pos).line!==e.getLineAndCharacterOfPosition(Se,v.end).line;mr&&we.increaseIndent();var Br=kn(18,v.pos,Pt,v);an(v.dotDotDotToken),ir(v.expression),kn(19,((nn=v.expression)===null||nn===void 0?void 0:nn.end)||Br,Pt,v),mr&&we.decreaseIndent()}}function Gc(v){v.kind===79?ir(v):an(v)}function Ks(v){kn(82,v.pos,gi,v),Dt(),ir(v.expression,Tn.parenthesizeExpressionForDisallowedComma),mf(v,v.statements,v.expression.end)}function rc(v){var nn=kn(88,v.pos,gi,v);mf(v,v.statements,nn)}function mf(v,nn,mr){var Br=nn.length===1&&(e.nodeIsSynthesized(v)||e.nodeIsSynthesized(nn[0])||e.rangeStartPositionsAreOnSameLine(v,nn[0],Se)),ya=163969;Br?(Ff(58,mr,Pt,v),Dt(),ya&=-130):kn(58,mr,Pt,v),qa(v,nn,ya)}function _f(v){Dt(),Mu(v.token,gi),Dt(),qa(v,v.types,528)}function vu(v){var nn=kn(83,v.pos,gi,v);Dt(),v.variableDeclaration&&(kn(20,nn,Pt,v),an(v.variableDeclaration),kn(21,v.variableDeclaration.end,Pt,v),Dt()),an(v.block)}function Qu(v){an(v.name),Pt(":"),Dt();var nn=v.initializer;if(!(e.getEmitFlags(nn)&512)){var mr=e.getCommentRange(nn);Fu(mr.pos)}ir(nn,Tn.parenthesizeExpressionForDisallowedComma)}function gf(v){an(v.name),v.objectAssignmentInitializer&&(Dt(),Pt("="),Dt(),ir(v.objectAssignmentInitializer,Tn.parenthesizeExpressionForDisallowedComma))}function Nf(v){v.expression&&(kn(25,v.pos,Pt,v),ir(v.expression,Tn.parenthesizeExpressionForDisallowedComma))}function kf(v){an(v.name),kr(v.initializer,v.name.end,v,Tn.parenthesizeExpressionForDisallowedComma)}function dd(v){if(Qe("/**"),v.comment){var nn=e.getTextOfJSDocComment(v.comment);if(nn)for(var mr=nn.split(/\r\n?|\n/g),Br=0,ya=mr;Br<ya.length;Br++){var Pa=ya[Br];Ls(),Dt(),Pt("*"),Dt(),Qe(Pa)}}v.tags&&(v.tags.length===1&&v.tags[0].kind===338&&!v.comment?(Dt(),an(v.tags[0])):qa(v,v.tags,33)),Dt(),Qe("*/")}function pd(v){Lc(v.tagName),oc(v.typeExpression),mc(v.comment)}function Rf(v){Lc(v.tagName),an(v.name),mc(v.comment)}function Of(v){Dt(),Pt("{"),an(v.name),Pt("}")}function md(v){Lc(v.tagName),Dt(),Pt("{"),an(v.class),Pt("}"),mc(v.comment)}function Zu(v){Lc(v.tagName),oc(v.constraint),Dt(),qa(v,v.typeParameters,528),mc(v.comment)}function Xc(v){Lc(v.tagName),v.typeExpression&&(v.typeExpression.kind===304?oc(v.typeExpression):(Dt(),Pt("{"),Qe("Object"),v.typeExpression.isArrayType&&(Pt("["),Pt("]")),Pt("}"))),v.fullName&&(Dt(),an(v.fullName)),mc(v.comment),v.typeExpression&&v.typeExpression.kind===317&&$u(v.typeExpression)}function Pf(v){Lc(v.tagName),v.name&&(Dt(),an(v.name)),mc(v.comment),Yc(v.typeExpression)}function Jl(v){Lc(v.tagName),mc(v.comment)}function $u(v){qa(v,e.factory.createNodeArray(v.jsDocPropertyTags),33)}function Yc(v){v.typeParameters&&qa(v,e.factory.createNodeArray(v.typeParameters),33),v.parameters&&qa(v,e.factory.createNodeArray(v.parameters),33),v.type&&(Ls(),Dt(),Pt("*"),Dt(),an(v.type))}function Ud(v){Lc(v.tagName),oc(v.typeExpression),Dt(),v.isBracketed&&Pt("["),an(v.name),v.isBracketed&&Pt("]"),mc(v.comment)}function Lc(v){Pt("@"),an(v)}function mc(v){var nn=e.getTextOfJSDocComment(v);nn&&(Dt(),Qe(nn))}function oc(v){v&&(Dt(),Pt("{"),an(v.type),Pt("}"))}function Ti(v){Ls();var nn=v.statements;if(Rc){var mr=nn.length===0||!e.isPrologueDirective(nn[0])||e.nodeIsSynthesized(nn[0]);if(mr){Rc(v,nn,sl);return}}sl(v)}function vf(v){xs(!!v.hasNoDefaultLib,v.syntheticFileReferences||[],v.syntheticTypeReferences||[],v.syntheticLibReferences||[]);for(var nn=0,mr=v.prepends;nn<mr.length;nn++){var Br=mr[nn];if(e.isUnparsedSource(Br)&&Br.syntheticReferences)for(var ya=0,Pa=Br.syntheticReferences;ya<Pa.length;ya++){var Ha=Pa[ya];an(Ha),Ls()}}}function zs(v){v.isDeclarationFile&&xs(v.hasNoDefaultLib,v.referencedFiles,v.typeReferenceDirectives,v.libReferenceDirectives)}function xs(v,nn,mr,Br){if(v){var ya=we.getTextPos();hu('/// <reference no-default-lib="true"/>'),He&&He.sections.push({pos:ya,end:we.getTextPos(),kind:"no-default-lib"}),Ls()}if(Se&&Se.moduleName&&(hu('/// <amd-module name="'+Se.moduleName+'" />'),Ls()),Se&&Se.amdDependencies)for(var Pa=0,Ha=Se.amdDependencies;Pa<Ha.length;Pa++){var ci=Ha[Pa];ci.name?hu('/// <amd-dependency name="'+ci.name+'" path="'+ci.path+'" />'):hu('/// <amd-dependency path="'+ci.path+'" />'),Ls()}for(var Xi=0,ns=nn;Xi<ns.length;Xi++){var fs=ns[Xi],ya=we.getTextPos();hu('/// <reference path="'+fs.fileName+'" />'),He&&He.sections.push({pos:ya,end:we.getTextPos(),kind:"reference",data:fs.fileName}),Ls()}for(var pl=0,Cs=mr;pl<Cs.length;pl++){var fs=Cs[pl],ya=we.getTextPos();hu('/// <reference types="'+fs.fileName+'" />'),He&&He.sections.push({pos:ya,end:we.getTextPos(),kind:"type",data:fs.fileName}),Ls()}for(var Ll=0,Wc=Br;Ll<Wc.length;Ll++){var fs=Wc[Ll],ya=we.getTextPos();hu('/// <reference lib="'+fs.fileName+'" />'),He&&He.sections.push({pos:ya,end:we.getTextPos(),kind:"lib",data:fs.fileName}),Ls()}}function sl(v){var nn=v.statements;Nc(v),e.forEach(v.statements,Bs),eo(v);var mr=e.findIndex(nn,function(Br){return!e.isPrologueDirective(Br)});zs(v),qa(v,nn,1,void 0,mr===-1?nn.length:mr),kc(v)}function Mf(v){ir(v.expression)}function wf(v){so(v,v.elements,528,void 0)}function c(v,nn,mr,Br){for(var ya=!!nn,Pa=0;Pa<v.length;Pa++){var Ha=v[Pa];if(e.isPrologueDirective(Ha)){var ci=mr?!mr.has(Ha.expression.text):!0;if(ci){ya&&(ya=!1,cn(nn)),Ls();var Xi=we.getTextPos();an(Ha),Br&&He&&He.sections.push({pos:Xi,end:we.getTextPos(),kind:"prologue",data:Ha.expression.text}),mr&&mr.add(Ha.expression.text)}}else return Pa}return v.length}function h(v,nn){for(var mr=0,Br=v;mr<Br.length;mr++){var ya=Br[mr];if(!nn.has(ya.data)){Ls();var Pa=we.getTextPos();an(ya),He&&He.sections.push({pos:Pa,end:we.getTextPos(),kind:"prologue",data:ya.data}),nn&&nn.add(ya.data)}}}function ae(v){if(e.isSourceFile(v))c(v.statements,v);else{for(var nn=new e.Set,mr=0,Br=v.prepends;mr<Br.length;mr++){var ya=Br[mr];h(ya.prologues,nn)}for(var Pa=0,Ha=v.sourceFiles;Pa<Ha.length;Pa++){var ci=Ha[Pa];c(ci.statements,ci,nn,!0)}cn(void 0)}}function je(v){for(var nn=new e.Set,mr,Br=0;Br<v.sourceFiles.length;Br++){for(var ya=v.sourceFiles[Br],Pa=void 0,Ha=0,ci=0,Xi=ya.statements;ci<Xi.length;ci++){var ns=Xi[ci];if(!e.isPrologueDirective(ns))break;nn.has(ns.expression.text)||(nn.add(ns.expression.text),(Pa||(Pa=[])).push({pos:ns.pos,end:ns.end,expression:{pos:ns.expression.pos,end:ns.expression.end,text:ns.expression.text}}),Ha=Ha<ns.end?ns.end:Ha)}Pa&&(mr||(mr=[])).push({file:Br,text:ya.text.substring(0,Ha),directives:Pa})}return mr}function _n(v){if(e.isSourceFile(v)||e.isUnparsedSource(v)){var nn=e.getShebang(v.text);if(nn)return hu(nn),Ls(),!0}else{for(var mr=0,Br=v.prepends;mr<Br.length;mr++){var ya=Br[mr];if(e.Debug.assertNode(ya,e.isUnparsedSource),_n(ya))return!0}for(var Pa=0,Ha=v.sourceFiles;Pa<Ha.length;Pa++){var ci=Ha[Pa];if(_n(ci))return!0}}}function Nn(v,nn){if(v){var mr=Qe;Qe=nn,an(v),Qe=mr}}function er(v,nn){nn&&nn.length&&(qa(v,nn,262656),Dt())}function pr(v){v&&(Pt(":"),Dt(),an(v))}function kr(v,nn,mr,Br){v&&(Dt(),kn(63,nn,Qc,mr),Dt(),ir(v,Br))}function Er(v,nn,mr,Br){mr&&(nn(v),Br(mr))}function gt(v){v&&(Dt(),an(v))}function rt(v,nn){v&&(Dt(),ir(v,nn))}function ma(v){v&&(an(v),Dt())}function Ai(v,nn){e.isBlock(nn)||e.getEmitFlags(v)&1?(Dt(),an(nn)):(Ls(),Dl(),e.isEmptyStatement(nn)?ft(5,nn):an(nn),ec())}function Ba(v,nn){qa(v,nn,2146305)}function _i(v,nn){qa(v,nn,53776,Tn.parenthesizeMemberOfElementType)}function No(v,nn){if(e.isFunctionLike(v)&&v.typeArguments)return _i(v,v.typeArguments);qa(v,nn,53776)}function to(v,nn){qa(v,nn,2576)}function Ca(v,nn){var mr=e.singleOrUndefined(nn);return mr&&mr.pos===v.pos&&e.isArrowFunction(v)&&!v.type&&!e.some(v.decorators)&&!e.some(v.modifiers)&&!e.some(v.typeParameters)&&!e.some(mr.decorators)&&!e.some(mr.modifiers)&&!mr.dotDotDotToken&&!mr.questionToken&&!mr.type&&!mr.initializer&&e.isIdentifier(mr.name)}function Qt(v,nn){Ca(v,nn)?qa(v,nn,528):to(v,nn)}function ni(v,nn){qa(v,nn,8848)}function Wa(v){switch(v&60){case 0:break;case 16:Pt(",");break;case 4:Dt(),Pt("|");break;case 32:Dt(),Pt("*"),Dt();break;case 8:Dt(),Pt("&");break}}function qa(v,nn,mr,Br,ya,Pa){Vi(an,v,nn,mr,Br,ya,Pa)}function so(v,nn,mr,Br,ya,Pa){Vi(ir,v,nn,mr,Br,ya,Pa)}function Vi(v,nn,mr,Br,ya,Pa,Ha){Pa===void 0&&(Pa=0),Ha===void 0&&(Ha=mr?mr.length-Pa:0);var ci=mr===void 0;if(!(ci&&Br&16384)){var Xi=mr===void 0||Pa>=mr.length||Ha===0;if(Xi&&Br&32768){M&&M(mr),me&&me(mr);return}if(Br&15360&&(Pt(ne(Br)),Xi&&mr&&Fu(mr.pos,!0)),M&&M(mr),Xi)Br&1&&!(qe&&(!nn||e.rangeIsOnSingleLine(nn,Se)))?Ls():Br&256&&!(Br&524288)&&Dt();else{e.Debug.type(mr);var ns=(Br&262144)===0,fs=ns,pl=Wd(nn,mr,Br);pl?(Ls(pl),fs=!1):Br&256&&Dt(),Br&128&&Dl();for(var Cs=void 0,Ll=void 0,Wc=!1,Bu=0;Bu<Ha;Bu++){var Al=mr[Pa+Bu];if(Br&32)Ls(),Wa(Br);else if(Cs){Br&60&&Cs.end!==(nn?nn.end:-1)&&gc(Cs.end),Wa(Br),Xn(Ll);var jc=yf(Cs,Al,Br);jc>0?(Br&131||(Dl(),Wc=!0),Ls(jc),fs=!1):Cs&&Br&512&&Dt()}if(Ll=ar(Al),fs){if(Fu){var Gp=e.getCommentRange(Al);Fu(Gp.pos)}}else fs=ns;pe=Al.pos,v.length===1?v(Al):v(Al,ya),Wc&&(ec(),Wc=!1),Cs=Al}var Bp=Cs?e.getEmitFlags(Cs):0,Up=$e||!!(Bp&1024),Vp=(mr==null?void 0:mr.hasTrailingComma)&&Br&64&&Br&16;Vp&&(Cs&&!Up?kn(27,Cs.end,Pt,Cs):Pt(",")),Cs&&(nn?nn.end:-1)!==Cs.end&&Br&60&&!Up&&gc(Vp&&(mr!=null&&mr.end)?mr.end:Cs.end),Br&128&&ec(),Xn(Ll);var lf=Eo(nn,mr,Br);lf?Ls(lf):Br&2097408&&Dt()}me&&me(mr),Br&15360&&(Xi&&mr&&gc(mr.end),Pt(U(Br)))}}function ki(v){we.writeLiteral(v)}function Gs(v){we.writeStringLiteral(v)}function Ds(v){we.write(v)}function ko(v,nn){we.writeSymbol(v,nn)}function Pt(v){we.writePunctuation(v)}function wo(){we.writeTrailingSemicolon(";")}function gi(v){we.writeKeyword(v)}function Qc(v){we.writeOperator(v)}function Vd(v){we.writeParameter(v)}function hu(v){we.writeComment(v)}function Dt(){we.writeSpace(" ")}function hf(v){we.writeProperty(v)}function Ls(v){v===void 0&&(v=1);for(var nn=0;nn<v;nn++)we.writeLine(nn>0)}function Dl(){we.increaseIndent()}function ec(){we.decreaseIndent()}function Ff(v,nn,mr,Br){return i?Mu(v,mr,nn):Ld(Br,v,mr,nn,Mu)}function dp(v,nn){z&&z(v),nn(e.tokenToString(v.kind)),K&&K(v)}function Mu(v,nn,mr){var Br=e.tokenToString(v);return nn(Br),mr<0?mr:mr+Br.length}function Bc(v,nn,mr){if(e.getEmitFlags(v)&1)Dt();else if(qe){var Br=Zc(v,nn,mr);Br?Ls(Br):Dt()}else Ls()}function Gf(v){for(var nn=v.split(/\r\n?|\n/g),mr=e.guessIndentation(nn),Br=0,ya=nn;Br<ya.length;Br++){var Pa=ya[Br],Ha=mr?Pa.slice(mr):Pa;Ha.length&&(Ls(),Qe(Ha))}}function al(v,nn){v?(Dl(),Ls(v)):nn&&Dt()}function Ic(v,nn){v&&ec(),nn&&ec()}function Wd(v,nn,mr){if(mr&2||qe){if(mr&65536)return 1;var Br=nn[0];if(Br===void 0)return!v||e.rangeIsOnSingleLine(v,Se)?0:1;if(Br.pos===pe||Br.kind===11)return 0;if(v&&!e.positionIsSynthesized(v.pos)&&!e.nodeIsSynthesized(Br)&&(!Br.parent||e.getOriginalNode(Br.parent)===e.getOriginalNode(v)))return qe?wt(function(ya){return e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(Br.pos,v.pos,Se,ya)}):e.rangeStartPositionsAreOnSameLine(v,Br,Se)?0:1;if(ef(Br,mr))return 1}return mr&1?1:0}function yf(v,nn,mr){if(mr&2||qe){if(v===void 0||nn===void 0||nn.kind===11)return 0;if(!e.nodeIsSynthesized(v)&&!e.nodeIsSynthesized(nn))return qe&&Vf(v,nn)?wt(function(Br){return e.getLinesBetweenRangeEndAndRangeStart(v,nn,Se,Br)}):!qe&&Lt(v,nn)?e.rangeEndIsOnSameLineAsRangeStart(v,nn,Se)?0:1:mr&65536?1:0;if(ef(v,mr)||ef(nn,mr))return 1}else if(e.getStartsOnNewLine(nn))return 1;return mr&1?1:0}function Eo(v,nn,mr){if(mr&2||qe){if(mr&65536)return 1;var Br=e.lastOrUndefined(nn);if(Br===void 0)return!v||e.rangeIsOnSingleLine(v,Se)?0:1;if(v&&!e.positionIsSynthesized(v.pos)&&!e.nodeIsSynthesized(Br)&&(!Br.parent||Br.parent===v)){if(qe){var ya=e.isNodeArray(nn)&&!e.positionIsSynthesized(nn.end)?nn.end:Br.end;return wt(function(Pa){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(ya,v.end,Se,Pa)})}return e.rangeEndPositionsAreOnSameLine(v,Br,Se)?0:1}if(ef(Br,mr))return 1}return mr&1&&!(mr&131072)?1:0}function wt(v){e.Debug.assert(!!qe);var nn=v(!0);return nn===0?v(!1):nn}function Kl(v,nn){var mr=qe&&Wd(nn,[v],0);return mr&&al(mr,!1),!!mr}function wp(v,nn){var mr=qe&&Eo(nn,[v],0);mr&&Ls(mr)}function ef(v,nn){if(e.nodeIsSynthesized(v)){var mr=e.getStartsOnNewLine(v);return mr===void 0?(nn&65536)!==0:mr}return(nn&65536)!==0}function Zc(v,nn,mr){return e.getEmitFlags(v)&131072?0:(v=Bf(v),nn=Bf(nn),mr=Bf(mr),e.getStartsOnNewLine(mr)?1:!e.nodeIsSynthesized(v)&&!e.nodeIsSynthesized(nn)&&!e.nodeIsSynthesized(mr)?qe?wt(function(Br){return e.getLinesBetweenRangeEndAndRangeStart(nn,mr,Se,Br)}):e.rangeEndIsOnSameLineAsRangeStart(nn,mr,Se)?0:1:0)}function jd(v){return v.statements.length===0&&e.rangeEndIsOnSameLineAsRangeStart(v,v,Se)}function Bf(v){for(;v.kind===210&&e.nodeIsSynthesized(v);)v=v.expression;return v}function _c(v,nn){return e.isGeneratedIdentifier(v)?pp(v):(e.isIdentifier(v)||e.isPrivateIdentifier(v))&&(e.nodeIsSynthesized(v)||!v.parent||!Se||v.parent&&Se&&e.getSourceFileOfNode(v)!==e.getOriginalNode(Se))?e.idText(v):v.kind===10&&v.textSourceNode?_c(v.textSourceNode,nn):e.isLiteralExpression(v)&&(e.nodeIsSynthesized(v)||!v.parent)?v.text:e.getSourceTextOfNodeFromSourceFile(Se,v,nn)}function $c(v,nn,mr){if(v.kind===10&&v.textSourceNode){var Br=v.textSourceNode;if(e.isIdentifier(Br)||e.isNumericLiteral(Br)){var ya=e.isNumericLiteral(Br)?Br.text:_c(Br);return mr?'"'+e.escapeJsxAttributeString(ya)+'"':nn||e.getEmitFlags(v)&16777216?'"'+e.escapeString(ya)+'"':'"'+e.escapeNonAsciiString(ya)+'"'}else return $c(Br,nn,mr)}var Pa=(nn?1:0)|(mr?2:0)|(d.terminateUnterminatedLiterals?4:0)|(d.target&&d.target===99?8:0);return e.getLiteralText(v,Se,Pa)}function Nc(v){v&&e.getEmitFlags(v)&524288||(De.push(en),en=0,fe.push(Ne))}function kc(v){v&&e.getEmitFlags(v)&524288||(en=De.pop(),Ne=fe.pop())}function Pl(v){(!Ne||Ne===e.lastOrUndefined(fe))&&(Ne=new e.Set),Ne.add(v)}function Bs(v){if(v)switch(v.kind){case 233:e.forEach(v.statements,Bs);break;case 248:case 246:case 238:case 239:Bs(v.statement);break;case 237:Bs(v.thenStatement),Bs(v.elseStatement);break;case 240:case 242:case 241:Bs(v.initializer),Bs(v.statement);break;case 247:Bs(v.caseBlock);break;case 261:e.forEach(v.clauses,Bs);break;case 287:case 288:e.forEach(v.statements,Bs);break;case 250:Bs(v.tryBlock),Bs(v.catchClause),Bs(v.finallyBlock);break;case 290:Bs(v.variableDeclaration),Bs(v.block);break;case 235:Bs(v.declarationList);break;case 253:e.forEach(v.declarations,Bs);break;case 252:case 162:case 201:case 255:fl(v.name);break;case 254:fl(v.name),e.getEmitFlags(v)&524288&&(e.forEach(v.parameters,Bs),Bs(v.body));break;case 199:case 200:e.forEach(v.elements,Bs);break;case 264:Bs(v.importClause);break;case 265:fl(v.name),Bs(v.namedBindings);break;case 266:fl(v.name);break;case 272:fl(v.name);break;case 267:e.forEach(v.elements,Bs);break;case 268:fl(v.propertyName||v.name);break}}function As(v){if(v)switch(v.kind){case 291:case 292:case 165:case 167:case 170:case 171:fl(v.name);break}}function fl(v){v&&(e.isGeneratedIdentifier(v)?pp(v):e.isBindingPattern(v)&&Bs(v))}function pp(v){if((v.autoGenerateFlags&7)===4)return Uc(Jd(v),v.autoGenerateFlags);var nn=v.autoGenerateId;return Ce[nn]||(Ce[nn]=Eu(v))}function Uc(v,nn){var mr=e.getNodeId(v);return be[mr]||(be[mr]=vd(v,nn))}function dl(v){return nf(v)&&!Be.has(v)&&!(Ne&&Ne.has(v))}function nf(v){return Se?e.isFileLevelUniqueName(Se,v,g):!0}function _d(v,nn){for(var mr=nn;e.isNodeDescendantOf(mr,nn);mr=mr.nextContainer)if(mr.locals){var Br=mr.locals.get(e.escapeLeadingUnderscores(v));if(Br&&Br.flags&3257279)return!1}return!0}function el(v,nn){if(v&&!(en&v)){var mr=v===268435456?"_i":"_n";if(dl(mr))return en|=v,nn&&Pl(mr),mr}for(;;){var Br=en&268435455;if(en++,Br!==8&&Br!==13){var mr=Br<26?"_"+String.fromCharCode(97+Br):"_"+(Br-26);if(dl(mr))return nn&&Pl(mr),mr}}}function qo(v,nn,mr,Br){if(nn===void 0&&(nn=dl),mr&&nn(v))return Br?Pl(v):Be.add(v),v;v.charCodeAt(v.length-1)!==95&&(v+="_");for(var ya=1;;){var Pa=v+ya;if(nn(Pa))return Br?Pl(Pa):Be.add(Pa),Pa;ya++}}function mp(v){return qo(v,nf,!0)}function yu(v){var nn=_c(v.name);return _d(nn,v)?nn:qo(nn)}function rf(v){var nn=e.getExternalModuleName(v),mr=e.isStringLiteral(nn)?e.makeIdentifierFromModuleName(nn.text):"module";return qo(mr)}function gd(){return qo("default")}function Hd(){return qo("class")}function _p(v){return e.isIdentifier(v.name)?Uc(v.name):el(0)}function vd(v,nn){switch(v.kind){case 79:return qo(_c(v),dl,!!(nn&16),!!(nn&8));case 259:case 258:return yu(v);case 264:case 270:return rf(v);case 254:case 255:case 269:return gd();case 224:return Hd();case 167:case 170:case 171:return _p(v);case 160:return el(0,!0);default:return el(0)}}function Eu(v){switch(v.autoGenerateFlags&7){case 1:return el(0,!!(v.autoGenerateFlags&8));case 2:return el(268435456,!!(v.autoGenerateFlags&8));case 3:return qo(e.idText(v),v.autoGenerateFlags&32?nf:dl,!!(v.autoGenerateFlags&16),!!(v.autoGenerateFlags&8))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}function Jd(v){for(var nn=v.autoGenerateId,mr=v,Br=mr.original;Br&&(mr=Br,!(e.isIdentifier(mr)&&mr.autoGenerateFlags&4&&mr.autoGenerateId!==nn));)Br=mr.original;return mr}function Uf(v,nn){var mr=Ur(2,v,nn),Br=le,ya=Pe,Pa=xe;tf(nn),mr(v,nn),Ef(nn,Br,ya,Pa)}function tf(v){var nn=e.getEmitFlags(v),mr=e.getCommentRange(v);hd(v,nn,mr.pos,mr.end),nn&2048&&($e=!0)}function Ef(v,nn,mr,Br){var ya=e.getEmitFlags(v),Pa=e.getCommentRange(v);ya&2048&&($e=!1),yd(v,ya,Pa.pos,Pa.end,nn,mr,Br)}function hd(v,nn,mr,Br){Wn(),Le=!1;var ya=mr<0||(nn&512)!==0||v.kind===11,Pa=Br<0||(nn&1024)!==0||v.kind===11;(mr>0||Br>0)&&mr!==Br&&(ya||wu(mr,v.kind!==344),(!ya||mr>=0&&nn&512)&&(le=mr),(!Pa||Br>=0&&nn&1024)&&(Pe=Br,v.kind===253&&(xe=Br))),e.forEach(e.getSyntheticLeadingComments(v),af),ze()}function yd(v,nn,mr,Br,ya,Pa,Ha){Wn();var ci=Br<0||(nn&1024)!==0||v.kind===11;e.forEach(e.getSyntheticTrailingComments(v),Kd),(mr>0||Br>0)&&mr!==Br&&(le=ya,Pe=Pa,xe=Ha,!ci&&v.kind!==344&&sc(Br)),ze()}function af(v){(v.hasLeadingNewline||v.kind===2)&&we.writeLine(),gp(v),v.hasTrailingNewLine||v.kind===2?we.writeLine():we.writeSpace(" ")}function Kd(v){we.isAtStartOfLine()||we.writeSpace(" "),gp(v),v.hasTrailingNewLine&&we.writeLine()}function gp(v){var nn=Qa(v),mr=v.kind===3?e.computeLineStarts(nn):void 0;e.writeCommentRange(nn,mr,we,0,nn.length,Ae)}function Qa(v){return v.kind===3?"/*"+v.text+"*/":"//"+v.text}function Rc(v,nn,mr){Wn();var Br=nn.pos,ya=nn.end,Pa=e.getEmitFlags(v),Ha=Br<0||(Pa&512)!==0,ci=$e||ya<0||(Pa&1024)!==0;Ha||Vc(nn),ze(),Pa&2048&&!$e?($e=!0,mr(v),$e=!1):mr(v),Wn(),ci||(wu(nn.end,!0),Le&&!we.isAtStartOfLine()&&we.writeLine()),ze()}function Lt(v,nn){return v=e.getOriginalNode(v),v.parent&&v.parent===e.getOriginalNode(nn).parent}function Vf(v,nn){if(nn.pos<v.end)return!1;v=e.getOriginalNode(v),nn=e.getOriginalNode(nn);var mr=v.parent;if(!mr||mr!==nn.parent)return!1;var Br=e.getContainingNodeArray(v),ya=Br==null?void 0:Br.indexOf(v);return ya!==void 0&&ya>-1&&Br.indexOf(nn)===ya+1}function wu(v,nn){Le=!1,nn?v===0&&(Se!=null&&Se.isDeclarationFile)?Gu(v,Wf):Gu(v,of):v===0&&Gu(v,Ed)}function Ed(v,nn,mr,Br,ya){qd(v,nn)&&of(v,nn,mr,Br,ya)}function Wf(v,nn,mr,Br,ya){qd(v,nn)||of(v,nn,mr,Br,ya)}function bd(v,nn){return d.onlyPrintJsDocStyle?e.isJSDocLikeText(v,nn)||e.isPinnedComment(v,nn):!0}function of(v,nn,mr,Br,ya){bd(Se.text,v)&&(Le||(e.emitNewLineBeforeLeadingCommentOfPosition(xn(),we,ya,v),Le=!0),no(v),e.writeCommentRange(Se.text,xn(),we,v,nn,Ae),no(nn),Br?we.writeLine():mr===3&&we.writeSpace(" "))}function gc(v){$e||v===-1||wu(v,!0)}function sc(v){sf(v,Td)}function Td(v,nn,mr,Br){bd(Se.text,v)&&(we.isAtStartOfLine()||we.writeSpace(" "),no(v),e.writeCommentRange(Se.text,xn(),we,v,nn,Ae),no(nn),Br&&we.writeLine())}function Fu(v,nn,mr){$e||(Wn(),sf(v,nn?Td:mr?vp:Sd),ze())}function vp(v,nn,mr){no(v),e.writeCommentRange(Se.text,xn(),we,v,nn,Ae),no(nn),mr===2&&we.writeLine()}function Sd(v,nn,mr,Br){no(v),e.writeCommentRange(Se.text,xn(),we,v,nn,Ae),no(nn),Br?we.writeLine():we.writeSpace(" ")}function Gu(v,nn){Se&&(le===-1||v!==le)&&(eu(v)?zd(nn):e.forEachLeadingCommentRange(Se.text,v,nn,v))}function sf(v,nn){Se&&(Pe===-1||v!==Pe&&v!==xe)&&e.forEachTrailingCommentRange(Se.text,v,nn)}function eu(v){return hn!==void 0&&e.last(hn).nodePos===v}function zd(v){var nn=e.last(hn).detachedCommentEndPos;hn.length-1?hn.pop():hn=void 0,e.forEachLeadingCommentRange(Se.text,nn,v,nn)}function Vc(v){var nn=e.emitDetachedComments(Se.text,xn(),we,Dd,v,Ae,$e);nn&&(hn?hn.push(nn):hn=[nn])}function Dd(v,nn,mr,Br,ya,Pa){bd(Se.text,Br)&&(no(Br),e.writeCommentRange(v,nn,mr,Br,ya,Pa),no(ya))}function qd(v,nn){return e.isRecognizedTripleSlashComment(Se.text,v,nn)}function Oc(v){return v.parsedSourceMap===void 0&&v.sourceMapText!==void 0&&(v.parsedSourceMap=e.tryParseRawSourceMap(v.sourceMapText)||!1),v.parsedSourceMap||void 0}function jf(v,nn){var mr=Ur(3,v,nn);bu(nn),mr(v,nn),Os(nn)}function bu(v){var nn=e.getEmitFlags(v),mr=e.getSourceMapRange(v);if(e.isUnparsedNode(v)){e.Debug.assertIsDefined(v.parent,"UnparsedNodes must have parent pointers");var Br=Oc(v.parent);Br&&In&&In.appendSourceMap(we.getLine(),we.getColumn(),Br,v.parent.sourceMapPath,v.parent.getLineAndCharacterOfPosition(v.pos),v.parent.getLineAndCharacterOfPosition(v.end))}else{var ya=mr.source||X;v.kind!==344&&!(nn&16)&&mr.pos>=0&&Hf(mr.source||X,Fp(ya,mr.pos)),nn&64&&(i=!0)}}function Os(v){var nn=e.getEmitFlags(v),mr=e.getSourceMapRange(v);e.isUnparsedNode(v)||(nn&64&&(i=!1),v.kind!==344&&!(nn&32)&&mr.end>=0&&Hf(mr.source||X,mr.end))}function Fp(v,nn){return v.skipTrivia?v.skipTrivia(nn):e.skipTrivia(v.text,nn)}function no(v){if(!(i||e.positionIsSynthesized(v)||bf(X))){var nn=e.getLineAndCharacterOfPosition(X,v),mr=nn.line,Br=nn.character;In.addMapping(we.getLine(),we.getColumn(),rn,mr,Br,void 0)}}function Hf(v,nn){if(v!==X){var mr=X,Br=rn;Xd(v),no(nn),Yd(mr,Br)}else no(nn)}function Ld(v,nn,mr,Br,ya){if(i||v&&e.isInJsonFile(v))return ya(nn,mr,Br);var Pa=v&&v.emitNode,Ha=Pa&&Pa.flags||0,ci=Pa&&Pa.tokenSourceMapRanges&&Pa.tokenSourceMapRanges[nn],Xi=ci&&ci.source||X;return Br=Fp(Xi,ci?ci.pos:Br),!(Ha&128)&&Br>=0&&Hf(Xi,Br),Br=ya(nn,mr,Br),ci&&(Br=ci.end),!(Ha&256)&&Br>=0&&Hf(Xi,Br),Br}function Xd(v){if(!i){if(X=v,v===$n){rn=Vn;return}bf(v)||(rn=In.addSource(v.fileName),d.inlineSources&&In.setSourceContent(rn,v.text),$n=v,Vn=rn)}}function Yd(v,nn){X=v,rn=nn}function bf(v){return e.fileExtensionIs(v.fileName,".json")}}e.createPrinter=w;function R(){var d=[];return d[1024]=["{","}"],d[2048]=["(",")"],d[4096]=["<",">"],d[8192]=["[","]"],d}function ne(d){return o[d&15360][0]}function U(d){return o[d&15360][1]}var C;(function(d){d[d.Auto=0]="Auto",d[d.CountMask=268435455]="CountMask",d[d._i=268435456]="_i"})(C||(C={}))})(vn||(vn={}));var vn;(function(e){function o(E,H,L){if(!E.getDirectories||!E.readDirectory)return;var ee=new e.Map,k=e.createGetCanonicalFileName(L);return{useCaseSensitiveFileNames:L,fileExists:d,readFile:function(M,me){return E.readFile(M,me)},directoryExists:E.directoryExists&&G,getDirectories:p,readDirectory:f,createDirectory:E.createDirectory&&g,writeFile:E.writeFile&&C,addOrDeleteFileOrDirectory:m,addOrDeleteFile:N,clearCache:x,realpath:E.realpath&&T};function b(M){return e.toPath(M,H,k)}function ie(M){return ee.get(e.ensureTrailingDirectorySeparator(M))}function q(M){return ie(e.getDirectoryPath(M))}function oe(M){return e.getBaseFileName(e.normalizePath(M))}function se(M,me){var z;if(!E.realpath||e.ensureTrailingDirectorySeparator(b(E.realpath(M)))===me){var K={files:e.map(E.readDirectory(M,void 0,void 0,["*.*"]),oe)||[],directories:E.getDirectories(M)||[]};return ee.set(e.ensureTrailingDirectorySeparator(me),K),K}if(!((z=E.directoryExists)===null||z===void 0)&&z.call(E,M))return ee.set(me,!1),!1}function w(M,me){me=e.ensureTrailingDirectorySeparator(me);var z=ie(me);if(z)return z;try{return se(M,me)}catch(K){e.Debug.assert(!ee.has(e.ensureTrailingDirectorySeparator(me)));return}}function R(M,me){return k(M)===k(me)}function ne(M,me){return e.some(M,function(z){return R(z,me)})}function U(M,me,z){if(ne(M,me)){if(!z)return e.filterMutate(M,function(K){return!R(K,me)})}else if(z)return M.push(me)}function C(M,me,z){var K=b(M),I=q(K);return I&&P(I,oe(M),!0),E.writeFile(M,me,z)}function d(M){var me=b(M),z=q(me);return z&&ne(z.files,oe(M))||E.fileExists(M)}function G(M){var me=b(M);return ee.has(e.ensureTrailingDirectorySeparator(me))||E.directoryExists(M)}function g(M){var me=b(M),z=q(me),K=oe(M);z&&U(z.directories,K,!0),E.createDirectory(M)}function p(M){var me=b(M),z=w(M,me);return z?z.directories.slice():E.getDirectories(M)}function f(M,me,z,K,I){var Ae=b(M),Oe=w(M,Ae),te;if(Oe!==void 0)return e.matchFiles(M,me,z,K,L,H,I,Se,T,G);return E.readDirectory(M,me,z,K,I);function Se(Ce){var Be=b(Ce);if(Be===Ae)return Oe||be(Ce,Be);var De=w(Ce,Be);return De!==void 0?De||be(Ce,Be):e.emptyFileSystemEntries}function be(Ce,Be){if(te&&Be===Ae)return te;var De={files:e.map(E.readDirectory(Ce,void 0,void 0,["*.*"]),oe)||e.emptyArray,directories:E.getDirectories(Ce)||e.emptyArray};return Be===Ae&&(te=De),De}}function T(M){return E.realpath?E.realpath(M):M}function m(M,me){var z=ie(me);if(z!==void 0){x();return}var K=q(me);if(K){if(!E.directoryExists){x();return}var I=oe(M),Ae={fileExists:E.fileExists(me),directoryExists:E.directoryExists(me)};return Ae.directoryExists||ne(K.directories,I)?x():P(K,I,Ae.fileExists),Ae}}function N(M,me,z){if(z!==e.FileWatcherEventKind.Changed){var K=q(me);K&&P(K,oe(M),z===e.FileWatcherEventKind.Created)}}function P(M,me,z){U(M.files,me,z)}function x(){ee.clear()}}e.createCachedDirectoryStructureHost=o;var ue;(function(E){E[E.None=0]="None",E[E.Partial=1]="Partial",E[E.Full=2]="Full"})(ue=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}));function $(E,H,L,ee,k){var b,ie=e.arrayToMap(((b=H==null?void 0:H.configFile)===null||b===void 0?void 0:b.extendedSourceFiles)||e.emptyArray,k);L.forEach(function(q,oe){ie.has(oe)||(q.projects.delete(E),q.close())}),ie.forEach(function(q,oe){var se=L.get(oe);se?se.projects.add(E):L.set(oe,{projects:new e.Set([E]),watcher:ee(q,oe),close:function(){var w=L.get(oe);!w||w.projects.size!==0||(w.watcher.close(),L.delete(oe))}})})}e.updateSharedExtendedConfigFileWatcher=$;function Y(E,H){H.forEach(function(L){L.projects.delete(E)&&L.close()})}e.clearSharedExtendedConfigFileWatcher=Y;function W(E,H,L){E.delete(H)&&E.forEach(function(ee,k){var b,ie=ee.extendedResult;!((b=ie.extendedSourceFiles)===null||b===void 0)&&b.some(function(q){return L(q)===H})&&W(E,k,L)})}e.cleanExtendedConfigCache=W;function re(E,H,L){var ee=new e.Map(E);e.mutateMap(H,ee,{createNewValue:L,onDeleteValue:e.closeFileWatcher})}e.updatePackageJsonWatch=re;function ye(E,H,L){var ee=E.getMissingFilePaths(),k=e.arrayToMap(ee,e.identity,e.returnTrue);e.mutateMap(H,k,{createNewValue:L,onDeleteValue:e.closeFileWatcher})}e.updateMissingFilePathsWatch=ye;function O(E,H,L){e.mutateMap(E,H,{createNewValue:ee,onDeleteValue:Z,onExistingValue:k});function ee(b,ie){return{watcher:L(b,ie),flags:ie}}function k(b,ie,q){b.flags!==ie&&(b.watcher.close(),E.set(q,ee(q,ie)))}}e.updateWatchingWildcardDirectories=O;function A(E){var H=E.watchedDirPath,L=E.fileOrDirectory,ee=E.fileOrDirectoryPath,k=E.configFileName,b=E.options,ie=E.program,q=E.extraFileExtensions,oe=E.currentDirectory,se=E.useCaseSensitiveFileNames,w=E.writeLog,R=E.toPath,ne=e.removeIgnoredPath(ee);if(!ne)return w("Project: "+k+" Detected ignored path: "+L),!0;if(ee=ne,ee===H)return!1;if(e.hasExtension(ee)&&!e.isSupportedSourceFileName(L,b,q))return w("Project: "+k+" Detected file add/remove of non supported extension: "+L),!0;if(e.isExcludedFile(L,b.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(k),oe),se,oe))return w("Project: "+k+" Detected excluded file: "+L),!0;if(!ie||e.outFile(b)||b.outDir)return!1;if(e.fileExtensionIs(ee,".d.ts")){if(b.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(ee,e.supportedJSExtensions))return!1;var U=e.removeFileExtension(ee),C=e.isArray(ie)?void 0:D(ie)?ie.getProgramOrUndefined():ie,d=!C&&!e.isArray(ie)?ie:void 0;if(G(U+".ts")||G(U+".tsx"))return w("Project: "+k+" Detected output file: "+L),!0;return!1;function G(g){return C?!!C.getSourceFileByPath(g):d?d.getState().fileInfos.has(g):!!e.find(ie,function(p){return R(p)===g})}}e.isIgnoredFileFromWildCardWatching=A;function D(E){return!!E.getState}function de(E,H){return E?E.isEmittedFile(H):!1}e.isEmittedFileOfProgram=de;var _e;(function(E){E[E.None=0]="None",E[E.TriggerOnly=1]="TriggerOnly",E[E.Verbose=2]="Verbose"})(_e=e.WatchLogLevel||(e.WatchLogLevel={}));function y(E,H,L,ee){e.setSysLog(H===_e.Verbose?L:e.noop);var k={watchFile:function(d,G,g,p){return E.watchFile(d,G,g,p)},watchDirectory:function(d,G,g,p){return E.watchDirectory(d,G,(g&1)!==0,p)}},b=H!==_e.None?{watchFile:U("watchFile"),watchDirectory:U("watchDirectory")}:void 0,ie=H===_e.Verbose?{watchFile:R,watchDirectory:ne}:b||k,q=H===_e.Verbose?w:e.returnNoopFileWatcher;return{watchFile:oe("watchFile"),watchDirectory:oe("watchDirectory")};function oe(d){return function(G,g,p,f,T,m){var N;return e.matchesExclude(G,d==="watchFile"?f==null?void 0:f.excludeFiles:f==null?void 0:f.excludeDirectories,se(),((N=E.getCurrentDirectory)===null||N===void 0?void 0:N.call(E))||"")?q(G,p,f,T,m):ie[d].call(void 0,G,g,p,f,T,m)}}function se(){return typeof E.useCaseSensitiveFileNames=="boolean"?E.useCaseSensitiveFileNames:E.useCaseSensitiveFileNames()}function w(d,G,g,p,f){return L("ExcludeWatcher:: Added:: "+C(d,G,g,p,f,ee)),{close:function(){return L("ExcludeWatcher:: Close:: "+C(d,G,g,p,f,ee))}}}function R(d,G,g,p,f,T){L("FileWatcher:: Added:: "+C(d,g,p,f,T,ee));var m=b.watchFile(d,G,g,p,f,T);return{close:function(){L("FileWatcher:: Close:: "+C(d,g,p,f,T,ee)),m.close()}}}function ne(d,G,g,p,f,T){var m="DirectoryWatcher:: Added:: "+C(d,g,p,f,T,ee);L(m);var N=e.timestamp(),P=b.watchDirectory(d,G,g,p,f,T),x=e.timestamp()-N;return L("Elapsed:: "+x+"ms "+m),{close:function(){var M="DirectoryWatcher:: Close:: "+C(d,g,p,f,T,ee);L(M);var me=e.timestamp();P.close();var z=e.timestamp()-me;L("Elapsed:: "+z+"ms "+M)}}}function U(d){return function(G,g,p,f,T,m){return k[d].call(void 0,G,function(){for(var N=[],P=0;P<arguments.length;P++)N[P]=arguments[P];var x=(d==="watchFile"?"FileWatcher":"DirectoryWatcher")+":: Triggered with "+N[0]+" "+(N[1]!==void 0?N[1]:"")+":: "+C(G,p,f,T,m,ee);L(x);var M=e.timestamp();g.call.apply(g,Vr([void 0],N,!1));var me=e.timestamp()-M;L("Elapsed:: "+me+"ms "+x)},p,f,T,m)}}function C(d,G,g,p,f,T){return"WatchInfo: "+d+" "+G+" "+JSON.stringify(g)+" "+(T?T(p,f):f===void 0?p:p+" "+f)}}e.getWatchFactory=y;function V(E){var H=E==null?void 0:E.fallbackPolling;return{watchFile:H!==void 0?H:e.WatchFileKind.PriorityPollingInterval}}e.getFallbackOptions=V;function Z(E){E.watcher.close()}e.closeFileWatcherOf=Z})(vn||(vn={}));var vn;(function(e){function o(z,K,I){return I===void 0&&(I="tsconfig.json"),e.forEachAncestorDirectory(z,function(Ae){var Oe=e.combinePaths(Ae,I);return K(Oe)?Oe:void 0})}e.findConfigFile=o;function ue(z,K){var I=e.getDirectoryPath(K),Ae=e.isRootedDiskPath(z)?z:e.combinePaths(I,z);return e.normalizePath(Ae)}e.resolveTripleslashReference=ue;function $(z,K,I){var Ae,Oe=e.forEach(z,function(te){var Se=e.getNormalizedPathComponents(te,K);if(Se.pop(),!Ae){Ae=Se;return}for(var be=Math.min(Ae.length,Se.length),Ce=0;Ce<be;Ce++)if(I(Ae[Ce])!==I(Se[Ce])){if(Ce===0)return!0;Ae.length=Ce;break}Se.length<Ae.length&&(Ae.length=Se.length)});return Oe?"":Ae?e.getPathFromPathComponents(Ae):K}e.computeCommonSourceDirectoryOfFilenames=$;function Y(z,K){return W(z,K)}e.createCompilerHost=Y;function W(z,K,I){I===void 0&&(I=e.sys);var Ae=new e.Map,Oe=e.createGetCanonicalFileName(I.useCaseSensitiveFileNames),te=e.maybeBind(I,I.createHash)||e.generateDjb2Hash;function Se(pe,we,pn){var Qe;try{e.performance.mark("beforeIORead"),Qe=qe.readFile(pe),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(Re){pn&&pn(Re.message),Qe=""}return Qe!==void 0?e.createSourceFile(pe,Qe,we,K):void 0}function be(pe){return Ae.has(pe)?!0:(qe.directoryExists||I.directoryExists)(pe)?(Ae.set(pe,!0),!0):!1}function Ce(pe,we,pn,Qe){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(pe,we,pn,function(Re,He,Ln){return De(Re,He,Ln)},function(Re){return(qe.createDirectory||I.createDirectory)(Re)},function(Re){return be(Re)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(Re){Qe&&Qe(Re.message)}}var Be;function De(pe,we,pn){if(!e.isWatchSet(z)||!I.getModifiedTime){I.writeFile(pe,we,pn);return}Be||(Be=new e.Map);var Qe=te(we),Re=I.getModifiedTime(pe);if(Re){var He=Be.get(pe);if(He&&He.byteOrderMark===pn&&He.hash===Qe&&He.mtime.getTime()===Re.getTime())return}I.writeFile(pe,we,pn);var Ln=I.getModifiedTime(pe)||e.missingFileModifiedTime;Be.set(pe,{hash:Qe,byteOrderMark:pn,mtime:Ln})}function en(){return e.getDirectoryPath(e.normalizePath(I.getExecutingFilePath()))}var fe=e.getNewLineCharacter(z,function(){return I.newLine}),Ne=I.realpath&&function(pe){return I.realpath(pe)},qe={getSourceFile:Se,getDefaultLibLocation:en,getDefaultLibFileName:function(pe){return e.combinePaths(en(),e.getDefaultLibFileName(pe))},writeFile:Ce,getCurrentDirectory:e.memoize(function(){return I.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return I.useCaseSensitiveFileNames},getCanonicalFileName:Oe,getNewLine:function(){return fe},fileExists:function(pe){return I.fileExists(pe)},readFile:function(pe){return I.readFile(pe)},trace:function(pe){return I.write(pe+fe)},directoryExists:function(pe){return I.directoryExists(pe)},getEnvironmentVariable:function(pe){return I.getEnvironmentVariable?I.getEnvironmentVariable(pe):""},getDirectories:function(pe){return I.getDirectories(pe)},realpath:Ne,readDirectory:function(pe,we,pn,Qe,Re){return I.readDirectory(pe,we,pn,Qe,Re)},createDirectory:function(pe){return I.createDirectory(pe)},createHash:e.maybeBind(I,I.createHash)};return qe}e.createCompilerHostWorker=W;function re(z,K,I){var Ae=z.readFile,Oe=z.fileExists,te=z.directoryExists,Se=z.createDirectory,be=z.writeFile,Ce=new e.Map,Be=new e.Map,De=new e.Map,en=new e.Map,fe=function(pe){var we=K(pe),pn=Ce.get(we);return pn!==void 0?pn!==!1?pn:void 0:Ne(we,pe)},Ne=function(pe,we){var pn=Ae.call(z,we);return Ce.set(pe,pn!==void 0?pn:!1),pn};z.readFile=function(pe){var we=K(pe),pn=Ce.get(we);return pn!==void 0?pn!==!1?pn:void 0:!e.fileExtensionIs(pe,".json")&&!e.isBuildInfoFile(pe)?Ae.call(z,pe):Ne(we,pe)};var qe=I?function(pe,we,pn,Qe){var Re=K(pe),He=en.get(Re);if(He)return He;var Ln=I(pe,we,pn,Qe);return Ln&&(e.isDeclarationFileName(pe)||e.fileExtensionIs(pe,".json"))&&en.set(Re,Ln),Ln}:void 0;return z.fileExists=function(pe){var we=K(pe),pn=Be.get(we);if(pn!==void 0)return pn;var Qe=Oe.call(z,pe);return Be.set(we,!!Qe),Qe},be&&(z.writeFile=function(pe,we,pn,Qe,Re){var He=K(pe);Be.delete(He);var Ln=Ce.get(He);if(Ln!==void 0&&Ln!==we)Ce.delete(He),en.delete(He);else if(qe){var Un=en.get(He);Un&&Un.text!==we&&en.delete(He)}be.call(z,pe,we,pn,Qe,Re)}),te&&Se&&(z.directoryExists=function(pe){var we=K(pe),pn=De.get(we);if(pn!==void 0)return pn;var Qe=te.call(z,pe);return De.set(we,!!Qe),Qe},z.createDirectory=function(pe){var we=K(pe);De.delete(we),Se.call(z,pe)}),{originalReadFile:Ae,originalFileExists:Oe,originalDirectoryExists:te,originalCreateDirectory:Se,originalWriteFile:be,getSourceFileWithCache:qe,readFileWithCache:fe}}e.changeCompilerHostLikeToUseCache=re;function ye(z,K,I){var Ae;return Ae=e.addRange(Ae,z.getConfigFileParsingDiagnostics()),Ae=e.addRange(Ae,z.getOptionsDiagnostics(I)),Ae=e.addRange(Ae,z.getSyntacticDiagnostics(K,I)),Ae=e.addRange(Ae,z.getGlobalDiagnostics(I)),Ae=e.addRange(Ae,z.getSemanticDiagnostics(K,I)),e.getEmitDeclarations(z.getCompilerOptions())&&(Ae=e.addRange(Ae,z.getDeclarationDiagnostics(K,I))),e.sortAndDeduplicateDiagnostics(Ae||e.emptyArray)}e.getPreEmitDiagnostics=ye;function O(z,K){for(var I="",Ae=0,Oe=z;Ae<Oe.length;Ae++){var te=Oe[Ae];I+=A(te,K)}return I}e.formatDiagnostics=O;function A(z,K){var I=e.diagnosticCategoryName(z)+" TS"+z.code+": "+ie(z.messageText,K.getNewLine())+K.getNewLine();if(z.file){var Ae=e.getLineAndCharacterOfPosition(z.file,z.start),Oe=Ae.line,te=Ae.character,Se=z.file.fileName,be=e.convertToRelativePath(Se,K.getCurrentDirectory(),function(Ce){return K.getCanonicalFileName(Ce)});return be+"("+(Oe+1)+","+(te+1)+"): "+I}return I}e.formatDiagnostic=A;var D;(function(z){z.Grey="\x1B[90m",z.Red="\x1B[91m",z.Yellow="\x1B[93m",z.Blue="\x1B[94m",z.Cyan="\x1B[96m"})(D=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var de="\x1B[7m",_e=" ",y="\x1B[0m",V="...",Z=" ",E=" ";function H(z){switch(z){case e.DiagnosticCategory.Error:return D.Red;case e.DiagnosticCategory.Warning:return D.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return D.Blue}}function L(z,K){return K+z+y}e.formatColorAndReset=L;function ee(z,K,I,Ae,Oe,te){var Se=e.getLineAndCharacterOfPosition(z,K),be=Se.line,Ce=Se.character,Be=e.getLineAndCharacterOfPosition(z,K+I),De=Be.line,en=Be.character,fe=e.getLineAndCharacterOfPosition(z,z.text.length).line,Ne=De-be>=4,qe=(De+1+"").length;Ne&&(qe=Math.max(V.length,qe));for(var pe="",we=be;we<=De;we++){pe+=te.getNewLine(),Ne&&be+1<we&&we<De-1&&(pe+=Ae+L(e.padLeft(V,qe),de)+_e+te.getNewLine(),we=De-1);var pn=e.getPositionOfLineAndCharacter(z,we,0),Qe=we<fe?e.getPositionOfLineAndCharacter(z,we+1,0):z.text.length,Re=z.text.slice(pn,Qe);if(Re=e.trimStringEnd(Re),Re=Re.replace(/\t/g," "),pe+=Ae+L(e.padLeft(we+1+"",qe),de)+_e,pe+=Re+te.getNewLine(),pe+=Ae+L(e.padLeft("",qe),de)+_e,pe+=Oe,we===be){var He=we===De?en:void 0;pe+=Re.slice(0,Ce).replace(/\S/g," "),pe+=Re.slice(Ce,He).replace(/./g,"~")}else we===De?pe+=Re.slice(0,en).replace(/./g,"~"):pe+=Re.replace(/./g,"~");pe+=y}return pe}function k(z,K,I,Ae){Ae===void 0&&(Ae=L);var Oe=e.getLineAndCharacterOfPosition(z,K),te=Oe.line,Se=Oe.character,be=I?e.convertToRelativePath(z.fileName,I.getCurrentDirectory(),function(Be){return I.getCanonicalFileName(Be)}):z.fileName,Ce="";return Ce+=Ae(be,D.Cyan),Ce+=":",Ce+=Ae(""+(te+1),D.Yellow),Ce+=":",Ce+=Ae(""+(Se+1),D.Yellow),Ce}e.formatLocation=k;function b(z,K){for(var I="",Ae=0,Oe=z;Ae<Oe.length;Ae++){var te=Oe[Ae];if(te.file){var Se=te.file,be=te.start;I+=k(Se,be,K),I+=" - "}if(I+=L(e.diagnosticCategoryName(te),H(te.category)),I+=L(" TS"+te.code+": ",D.Grey),I+=ie(te.messageText,K.getNewLine()),te.file&&(I+=K.getNewLine(),I+=ee(te.file,te.start,te.length,"",H(te.category),K)),te.relatedInformation){I+=K.getNewLine();for(var Ce=0,Be=te.relatedInformation;Ce<Be.length;Ce++){var De=Be[Ce],Se=De.file,be=De.start,en=De.length,fe=De.messageText;Se&&(I+=K.getNewLine(),I+=Z+k(Se,be,K),I+=ee(Se,be,en,E,D.Cyan,K)),I+=K.getNewLine(),I+=E+ie(fe,K.getNewLine())}}I+=K.getNewLine()}return I}e.formatDiagnosticsWithColorAndContext=b;function ie(z,K,I){if(I===void 0&&(I=0),e.isString(z))return z;if(z===void 0)return"";var Ae="";if(I){Ae+=K;for(var Oe=0;Oe<I;Oe++)Ae+=" "}if(Ae+=z.messageText,I++,z.next)for(var te=0,Se=z.next;te<Se.length;te++){var be=Se[te];Ae+=ie(be,K,I)}return Ae}e.flattenDiagnosticMessageText=ie;function q(z,K,I,Ae){if(z.length===0)return[];for(var Oe=[],te=new e.Map,Se=0,be=z;Se<be.length;Se++){var Ce=be[Se],Be=void 0;te.has(Ce)?Be=te.get(Ce):te.set(Ce,Be=Ae(Ce,K,I)),Oe.push(Be)}return Oe}e.loadWithLocalCache=q;function oe(z,K){return se(void 0,z,function(I,Ae){return I&&K(I,Ae)})}e.forEachResolvedProjectReference=oe;function se(z,K,I,Ae){var Oe;return te(z,K,void 0);function te(Se,be,Ce){if(Ae){var Be=Ae(Se,Ce);if(Be)return Be}return e.forEach(be,function(De,en){if(!(De&&(Oe!=null&&Oe.has(De.sourceFile.path)))){var fe=I(De,Ce,en);return fe||!De?fe:((Oe||(Oe=new e.Set)).add(De.sourceFile.path),te(De.commandLine.projectReferences,De.references,De))}})}}e.inferredTypesContainingFile="__inferred type names__.ts";function w(z){switch(z==null?void 0:z.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}e.isReferencedFile=w;function R(z){return z.pos!==void 0}e.isReferenceFileLocation=R;function ne(z,K){var I,Ae,Oe,te,Se,be,Ce,Be=e.Debug.checkDefined(z(K.file)),De=K.kind,en=K.index,fe,Ne,qe;switch(De){case e.FileIncludeKind.Import:var pe=me(Be,en);if(qe=(Se=(te=Be.resolvedModules)===null||te===void 0?void 0:te.get(pe.text))===null||Se===void 0?void 0:Se.packageId,pe.pos===-1)return{file:Be,packageId:qe,text:pe.text};fe=e.skipTrivia(Be.text,pe.pos),Ne=pe.end;break;case e.FileIncludeKind.ReferenceFile:I=Be.referencedFiles[en],fe=I.pos,Ne=I.end;break;case e.FileIncludeKind.TypeReferenceDirective:Ae=Be.typeReferenceDirectives[en],fe=Ae.pos,Ne=Ae.end,qe=(Ce=(be=Be.resolvedTypeReferenceDirectiveNames)===null||be===void 0?void 0:be.get(e.toFileNameLowerCase(Be.typeReferenceDirectives[en].fileName)))===null||Ce===void 0?void 0:Ce.packageId;break;case e.FileIncludeKind.LibReferenceDirective:Oe=Be.libReferenceDirectives[en],fe=Oe.pos,Ne=Oe.end;break;default:return e.Debug.assertNever(De)}return{file:Be,pos:fe,end:Ne,packageId:qe}}e.getReferencedFileLocation=ne;function U(z,K,I,Ae,Oe,te,Se,be,Ce){if(!z||Se!=null&&Se()||!e.arrayIsEqualTo(z.getRootFileNames(),K))return!1;var Be;if(!e.arrayIsEqualTo(z.getProjectReferences(),Ce,Ne)||z.getSourceFiles().some(en)||z.getMissingFilePaths().some(Oe))return!1;var De=z.getCompilerOptions();if(!e.compareDataObjects(De,I))return!1;if(De.configFile&&I.configFile)return De.configFile.text===I.configFile.text;return!0;function en(pe){return!fe(pe)||te(pe.path)}function fe(pe){return pe.version===Ae(pe.resolvedPath,pe.fileName)}function Ne(pe,we,pn){return e.projectReferenceIsEqualTo(pe,we)&&qe(z.getResolvedProjectReferences()[pn],pe)}function qe(pe,we){if(pe){if(e.contains(Be,pe))return!0;var pn=P(we),Qe=be(pn);return!Qe||pe.commandLine.options.configFile!==Qe.options.configFile||!e.arrayIsEqualTo(pe.commandLine.fileNames,Qe.fileNames)?!1:((Be||(Be=[])).push(pe),!e.forEach(pe.references,function(He,Ln){return!qe(He,pe.commandLine.projectReferences[Ln])}))}var Re=P(we);return!be(Re)}}e.isProgramUptoDate=U;function C(z){return z.options.configFile?Vr(Vr([],z.options.configFile.parseDiagnostics,!0),z.errors,!0):z.errors}e.getConfigFileParsingDiagnostics=C;function d(z,K){return z?e.optionsHaveChanges(z.getCompilerOptions(),K,e.sourceFileAffectingCompilerOptions):!1}function G(z,K,I,Ae,Oe){return{rootNames:z,options:K,host:I,oldProgram:Ae,configFileParsingDiagnostics:Oe}}function g(z,K,I,Ae,Oe){var te,Se,be,Ce=e.isArray(z)?G(z,K,I,Ae,Oe):z,Be=Ce.rootNames,De=Ce.options,en=Ce.configFileParsingDiagnostics,fe=Ce.projectReferences,Ne=Ce.oldProgram,qe,pe,we,pn,Qe,Re,He,Ln,Un=new e.Map,fn=e.createMultiMap(),En={},i={},In=new e.Map,X,rn=typeof De.maxNodeModuleJsDepth=="number"?De.maxNodeModuleJsDepth:0,$n=0,Vn=new e.Map,le=new e.Map;e.tracing===null||e.tracing===void 0||e.tracing.push("program","createProgram",{configFilePath:De.configFilePath,rootDir:De.rootDir},!0),e.performance.mark("beforeProgram");var Pe=Ce.host||Y(De),xe=m(Pe),Ze=De.noLib,hn=e.memoize(function(){return Pe.getDefaultLibFileName(De)}),Le=Pe.getDefaultLibLocation?Pe.getDefaultLibLocation():e.getDirectoryPath(hn()),$e=e.createDiagnosticCollection(),An=Pe.getCurrentDirectory(),Ue=e.getSupportedExtensions(De),gn=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(De,Ue),Wn=new e.Map,ze,Tn,On,ur,hr=Pe.hasInvalidatedResolution||e.returnFalse;if(Pe.resolveModuleNames)ur=function(kn,lr,Or,st){return Pe.resolveModuleNames(e.Debug.checkEachDefined(kn),lr,Or,st,De).map(function(yt){if(!yt||yt.extension!==void 0)return yt;var Tt=e.clone(yt);return Tt.extension=e.extensionFromPath(yt.resolvedFileName),Tt})};else{Tn=e.createModuleResolutionCache(An,Hs,De);var wr=function(kn,lr,Or){return e.resolveModuleName(kn,lr,De,Pe,Tn,Or).resolvedModule};ur=function(kn,lr,Or,st){return q(e.Debug.checkEachDefined(kn),lr,st,wr)}}var Qr;if(Pe.resolveTypeReferenceDirectives)Qr=function(kn,lr,Or){return Pe.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(kn),lr,Or,De)};else{On=e.createTypeReferenceDirectiveResolutionCache(An,Hs,void 0,Tn==null?void 0:Tn.getPackageJsonInfoCache());var Ke=function(kn,lr,Or){return e.resolveTypeReferenceDirective(kn,lr,De,Pe,Or,On).resolvedTypeReferenceDirective};Qr=function(kn,lr,Or){return q(e.Debug.checkEachDefined(kn),lr,Or,Ke)}}var jn=new e.Map,Zn=new e.Map,Me=e.createMultiMap(),Mn=!1,ar=new e.Map,Xn,yr=Pe.useCaseSensitiveFileNames()?new e.Map:void 0,cr,Fe,Bn,J,Cn=!!(!((te=Pe.useSourceOfProjectReferenceRedirect)===null||te===void 0)&&te.call(Pe))&&!De.disableSourceOfProjectReferenceRedirect,Gn=p({compilerHost:Pe,getSymlinkCache:$l,useSourceOfProjectReferenceRedirect:Cn,toPath:Ar,getResolvedProjectReferences:nt,getSourceOfProjectReferenceRedirect:Zo,forEachResolvedProjectReference:oo}),cn=Gn.onProgramCreateComplete,Rn=Gn.fileExists,Ye=Gn.directoryExists;e.tracing===null||e.tracing===void 0||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!Ne});var xn=d(Ne,De);e.tracing===null||e.tracing===void 0||e.tracing.pop();var an;if(e.tracing===null||e.tracing===void 0||e.tracing.push("program","tryReuseStructureFromOldProgram",{}),an=Rr(),e.tracing===null||e.tracing===void 0||e.tracing.pop(),an!==2){qe=[],pe=[],fe&&(cr||(cr=fe.map(Kn)),Be.length&&(cr==null||cr.forEach(function(kn,lr){if(kn){var Or=e.outFile(kn.commandLine.options);if(Cn){if(Or||e.getEmitModuleKind(kn.commandLine.options)===e.ModuleKind.None)for(var st=0,yt=kn.commandLine.fileNames;st<yt.length;st++){var Tt=yt[st];Sr(Tt,{kind:e.FileIncludeKind.SourceFromProjectReference,index:lr})}}else if(Or)Sr(e.changeExtension(Or,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:lr});else if(e.getEmitModuleKind(kn.commandLine.options)===e.ModuleKind.None)for(var Ut=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(kn.commandLine,!Pe.useCaseSensitiveFileNames())}),ea=0,zt=kn.commandLine.fileNames;ea<zt.length;ea++){var Tt=zt[ea];!e.fileExtensionIs(Tt,".d.ts")&&!e.fileExtensionIs(Tt,".json")&&Sr(e.getOutputDeclarationFileName(Tt,kn.commandLine,!Pe.useCaseSensitiveFileNames(),Ut),{kind:e.FileIncludeKind.OutputFromProjectReference,index:lr})}}}))),e.tracing===null||e.tracing===void 0||e.tracing.push("program","processRootFiles",{count:Be.length}),e.forEach(Be,function(kn,lr){return Ve(kn,!1,!1,{kind:e.FileIncludeKind.RootFile,index:lr})}),e.tracing===null||e.tracing===void 0||e.tracing.pop();var zn=Be.length?e.getAutomaticTypeDirectiveNames(De,Pe):e.emptyArray;if(zn.length){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferences",{count:zn.length});for(var ir=De.configFilePath?e.getDirectoryPath(De.configFilePath):Pe.getCurrentDirectory(),gr=e.combinePaths(ir,e.inferredTypesContainingFile),Dr=Ot(zn,gr),qr=0;qr<zn.length;qr++)ps(zn[qr],Dr[qr],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:zn[qr],packageId:(Se=Dr[qr])===null||Se===void 0?void 0:Se.packageId});e.tracing===null||e.tracing===void 0||e.tracing.pop()}if(Be.length&&!Ze){var ft=hn();!De.lib&&ft?Ve(ft,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(De.lib,function(kn,lr){Ve(e.combinePaths(Le,kn),!0,!1,{kind:e.FileIncludeKind.LibFile,index:lr})})}Xn=e.arrayFrom(e.mapDefinedIterator(ar.entries(),function(kn){var lr=kn[0],Or=kn[1];return Or===void 0?lr:void 0})),we=e.stableSort(qe,eo).concat(pe),qe=void 0,pe=void 0}if(e.Debug.assert(!!Xn),Ne&&Pe.onReleaseOldSourceFile){for(var xt=Ne.getSourceFiles(),Kr=0,dt=xt;Kr<dt.length;Kr++){var Ur=dt[Kr],qt=Mi(Ur.resolvedPath);(xn||!qt||Ur.resolvedPath===Ur.path&&qt.resolvedPath!==Ur.path)&&Pe.onReleaseOldSourceFile(Ur,Ne.getCompilerOptions(),!!Mi(Ur.path))}Pe.getParsedCommandLine||Ne.forEachResolvedProjectReference(function(kn){ws(kn.sourceFile.path)||Pe.onReleaseOldSourceFile(kn.sourceFile,Ne.getCompilerOptions(),!1)})}Ne&&Pe.onReleaseParsedCommandLine&&se(Ne.getProjectReferences(),Ne.getResolvedProjectReferences(),function(kn,lr,Or){var st=(lr==null?void 0:lr.commandLine.projectReferences[Or])||Ne.getProjectReferences()[Or],yt=P(st);Fe!=null&&Fe.has(Ar(yt))||Pe.onReleaseParsedCommandLine(yt,kn,Ne.getCompilerOptions())}),On=void 0,Ne=void 0;var Cr={getRootFileNames:function(){return Be},getSourceFile:bi,getSourceFileByPath:Mi,getSourceFiles:function(){return we},getMissingFilePaths:function(){return Xn},getModuleResolutionCache:function(){return Tn},getFilesByNameMap:function(){return ar},getCompilerOptions:function(){return De},getSyntacticDiagnostics:io,getOptionsDiagnostics:$r,getGlobalDiagnostics:ti,getSemanticDiagnostics:wi,getCachedSemanticDiagnostics:Ho,getSuggestionDiagnostics:Uo,getDeclarationDiagnostics:as,getBindAndCheckDiagnostics:qi,getProgramDiagnostics:Qi,getTypeChecker:Ma,getClassifiableNames:Hr,getDiagnosticsProducingTypeChecker:li,getCommonSourceDirectory:at,emit:di,getCurrentDirectory:function(){return An},getNodeCount:function(){return li().getNodeCount()},getIdentifierCount:function(){return li().getIdentifierCount()},getSymbolCount:function(){return li().getSymbolCount()},getTypeCount:function(){return li().getTypeCount()},getInstantiationCount:function(){return li().getInstantiationCount()},getRelationCacheSizes:function(){return li().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return X},getResolvedTypeReferenceDirectives:function(){return In},isSourceFileFromExternalLibrary:$t,isSourceFileDefaultLibrary:Va,dropDiagnosticsProducingTypeChecker:zi,getSourceFileFromReference:sn,getLibFileFromReference:We,sourceFileToPackageName:Zn,redirectTargetsMap:Me,usesUriStyleNodeCoreModules:Mn,isEmittedFile:du,getConfigFileParsingDiagnostics:va,getResolvedModuleWithFailedLookupLocationsFromCache:ua,getProjectReferences:vt,getResolvedProjectReferences:nt,getProjectReferenceRedirect:Zi,getResolvedProjectReferenceToRedirect:Ao,getResolvedProjectReferenceByPath:ws,forEachResolvedProjectReference:oo,isSourceOfProjectReferenceRedirect:cl,emitBuildInfo:Xr,fileExists:Rn,directoryExists:Ye,getSymlinkCache:$l,realpath:(be=Pe.realpath)===null||be===void 0?void 0:be.bind(Pe),useCaseSensitiveFileNames:function(){return Pe.useCaseSensitiveFileNames()},getFileIncludeReasons:function(){return fn},structureIsReused:an};return cn(),X==null||X.forEach(function(kn){switch(kn.kind){case 1:return $e.add(Fn(kn.file&&Mi(kn.file),kn.fileProcessingReason,kn.diagnostic,kn.args||e.emptyArray));case 0:var lr=ne(Mi,kn.reason),Or=lr.file,st=lr.pos,yt=lr.end;return $e.add(e.createFileDiagnostic.apply(void 0,Vr([Or,e.Debug.checkDefined(st),e.Debug.checkDefined(yt)-st,kn.diagnostic],kn.args||e.emptyArray,!1)));default:e.Debug.assertNever(kn)}}),Te(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Cr;function Jt(kn,lr,Or){if(!kn.length)return e.emptyArray;var st=e.getNormalizedAbsolutePath(lr.originalFileName,An),yt=ri(lr);e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:st}),e.performance.mark("beforeResolveModule");var Tt=ur(kn,st,Or,yt);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Tt}function Ot(kn,lr){if(!kn.length)return[];var Or=e.isString(lr)?lr:e.getNormalizedAbsolutePath(lr.originalFileName,An),st=e.isString(lr)?void 0:ri(lr);e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Or}),e.performance.mark("beforeResolveTypeReference");var yt=Qr(kn,Or,st);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),yt}function ri(kn){var lr=Ao(kn.originalFileName);if(lr||!e.fileExtensionIs(kn.originalFileName,".d.ts"))return lr;var Or=Ya(kn.originalFileName,kn.path);if(Or)return Or;if(!(!Pe.realpath||!De.preserveSymlinks||!e.stringContains(kn.originalFileName,e.nodeModulesPathPart))){var st=Pe.realpath(kn.originalFileName),yt=Ar(st);return yt===kn.path?void 0:Ya(st,yt)}}function Ya(kn,lr){var Or=Zo(kn);if(e.isString(Or))return Ao(Or);if(Or)return oo(function(st){var yt=e.outFile(st.commandLine.options);if(yt)return Ar(yt)===lr?st:void 0})}function eo(kn,lr){return e.compareValues(za(kn),za(lr))}function za(kn){if(e.containsPath(Le,kn.fileName,!1)){var lr=e.getBaseFileName(kn.fileName);if(lr==="lib.d.ts"||lr==="lib.es6.d.ts")return 0;var Or=e.removeSuffix(e.removePrefix(lr,"lib."),".d.ts"),st=e.libs.indexOf(Or);if(st!==-1)return st+1}return e.libs.length+2}function ua(kn,lr){return Tn&&e.resolveModuleNameFromCache(kn,lr,Tn)}function Ar(kn){return e.toPath(kn,An,Hs)}function at(){if(Qe===void 0){var kn=e.filter(we,function(lr){return e.sourceFileMayBeEmitted(lr,Cr)});Qe=e.getCommonSourceDirectory(De,function(){return e.mapDefined(kn,function(lr){return lr.isDeclarationFile?void 0:lr.fileName})},An,Hs,function(lr){return ge(kn,lr)})}return Qe}function Hr(){var kn;if(!Ln){Ma(),Ln=new e.Set;for(var lr=0,Or=we;lr<Or.length;lr++){var st=Or[lr];(kn=st.classifiableNames)===null||kn===void 0||kn.forEach(function(yt){return Ln.add(yt)})}}return Ln}function Wt(kn,lr){if(an===0&&!lr.ambientModuleNames.length)return Jt(kn,lr,void 0);var Or=Ne&&Ne.getSourceFile(lr.fileName);if(Or!==lr&&lr.resolvedModules){for(var st=[],yt=0,Tt=kn;yt<Tt.length;yt++){var Ut=Tt[yt],ea=lr.resolvedModules.get(Ut);st.push(ea)}return st}for(var zt,Ii,ba,wa={},Ui=0;Ui<kn.length;Ui++){var Ut=kn[Ui];if(lr===Or&&!hr(Or.path)){var Fi=e.getResolvedModule(Or,Ut);if(Fi){e.isTraceEnabled(De,Pe)&&e.trace(Pe,Fi.packageId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,Ut,e.getNormalizedAbsolutePath(lr.originalFileName,An),Fi.resolvedFileName,Fi.packageId&&e.packageIdToString(Fi.packageId)),(Ii||(Ii=new Array(kn.length)))[Ui]=Fi,(ba||(ba=[])).push(Ut);continue}}var he=!1;e.contains(lr.ambientModuleNames,Ut)?(he=!0,e.isTraceEnabled(De,Pe)&&e.trace(Pe,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,Ut,e.getNormalizedAbsolutePath(lr.originalFileName,An))):he=Tr(Ut),he?(Ii||(Ii=new Array(kn.length)))[Ui]=wa:(zt||(zt=[])).push(Ut)}var un=zt&&zt.length?Jt(zt,lr,ba):e.emptyArray;if(!Ii)return e.Debug.assert(un.length===kn.length),un;for(var Sn=0,Ui=0;Ui<Ii.length;Ui++)Ii[Ui]?Ii[Ui]===wa&&(Ii[Ui]=void 0):(Ii[Ui]=un[Sn],Sn++);return e.Debug.assert(Sn===un.length),Ii;function Tr(Wr){var Yt=e.getResolvedModule(Or,Wr),Ia=Yt&&Ne.getSourceFile(Yt.resolvedFileName);if(Yt&&Ia)return!1;var hi=Un.get(Wr);return hi?(e.isTraceEnabled(De,Pe)&&e.trace(Pe,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,Wr,hi),!0):!1}}function Zt(){return!se(Ne.getProjectReferences(),Ne.getResolvedProjectReferences(),function(kn,lr,Or){var st=(lr?lr.commandLine.projectReferences:fe)[Or],yt=Kn(st);return kn?!yt||yt.sourceFile!==kn.sourceFile||!e.arrayIsEqualTo(kn.commandLine.fileNames,yt.commandLine.fileNames):yt!==void 0},function(kn,lr){var Or=lr?ws(lr.sourceFile.path).commandLine.projectReferences:fe;return!e.arrayIsEqualTo(kn,Or,e.projectReferenceIsEqualTo)})}function Rr(){var kn;if(!Ne)return 0;var lr=Ne.getCompilerOptions();if(e.changesAffectModuleResolution(lr,De))return 0;var Or=Ne.getRootFileNames();if(!e.arrayIsEqualTo(Or,Be)||!Zt())return 0;fe&&(cr=fe.map(Kn));var st=[],yt=[];if(an=2,Ne.getMissingFilePaths().some(function(tl){return Pe.fileExists(tl)}))return 0;var Tt=Ne.getSourceFiles(),Ut;(function(tl){tl[tl.Exists=0]="Exists",tl[tl.Modified=1]="Modified"})(Ut||(Ut={}));for(var ea=new e.Map,zt=0,Ii=Tt;zt<Ii.length;zt++){var ba=Ii[zt],wa=Pe.getSourceFileByPath?Pe.getSourceFileByPath(ba.fileName,ba.resolvedPath,De.target,void 0,xn):Pe.getSourceFile(ba.fileName,De.target,void 0,xn);if(!wa)return 0;e.Debug.assert(!wa.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var Ui=void 0;if(ba.redirectInfo){if(wa!==ba.redirectInfo.unredirected)return 0;Ui=!1,wa=ba}else if(Ne.redirectTargetsMap.has(ba.path)){if(wa!==ba)return 0;Ui=!1}else Ui=wa!==ba;wa.path=ba.path,wa.originalFileName=ba.originalFileName,wa.resolvedPath=ba.resolvedPath,wa.fileName=ba.fileName;var Fi=Ne.sourceFileToPackageName.get(ba.path);if(Fi!==void 0){var he=ea.get(Fi),un=Ui?1:0;if(he!==void 0&&un===1||he===1)return 0;ea.set(Fi,un)}Ui?(e.arrayIsEqualTo(ba.libReferenceDirectives,wa.libReferenceDirectives,ce)||(an=1),ba.hasNoDefaultLib!==wa.hasNoDefaultLib&&(an=1),e.arrayIsEqualTo(ba.referencedFiles,wa.referencedFiles,ce)||(an=1),Ie(wa),e.arrayIsEqualTo(ba.imports,wa.imports,dn)||(an=1),e.arrayIsEqualTo(ba.moduleAugmentations,wa.moduleAugmentations,dn)||(an=1),(ba.flags&3145728)!==(wa.flags&3145728)&&(an=1),e.arrayIsEqualTo(ba.typeReferenceDirectives,wa.typeReferenceDirectives,ce)||(an=1),yt.push({oldFile:ba,newFile:wa})):hr(ba.path)&&(an=1,yt.push({oldFile:ba,newFile:wa})),st.push(wa)}if(an!==2)return an;for(var Sn=yt.map(function(tl){return tl.oldFile}),Tr=0,Wr=Tt;Tr<Wr.length;Tr++){var Yt=Wr[Tr];if(!e.contains(Sn,Yt))for(var Ia=0,hi=Yt.ambientModuleNames;Ia<hi.length;Ia++){var yo=hi[Ia];Un.set(yo,Yt.fileName)}}for(var Oo=0,ys=yt;Oo<ys.length;Oo++){var Pi=ys[Oo],ba=Pi.oldFile,wa=Pi.newFile,Po=M(wa),Jn=Wt(Po,wa),zo=e.hasChangesInResolutions(Po,Jn,ba.resolvedModules,e.moduleResolutionIsEqualTo);zo?(an=1,wa.resolvedModules=e.zipToMap(Po,Jn)):wa.resolvedModules=ba.resolvedModules;var Es=e.map(wa.typeReferenceDirectives,function(_u){return e.toFileNameLowerCase(_u.fileName)}),Rs=Ot(Es,wa),pu=e.hasChangesInResolutions(Es,Rs,ba.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo);pu?(an=1,wa.resolvedTypeReferenceDirectiveNames=e.zipToMap(Es,Rs)):wa.resolvedTypeReferenceDirectiveNames=ba.resolvedTypeReferenceDirectiveNames}if(an!==2)return an;if(e.changesAffectingProgramStructure(lr,De)||!((kn=Pe.hasChangedAutomaticTypeDirectiveNames)===null||kn===void 0)&&kn.call(Pe))return 1;Xn=Ne.getMissingFilePaths(),e.Debug.assert(st.length===Ne.getSourceFiles().length);for(var ol=0,mu=st;ol<mu.length;ol++){var wa=mu[ol];ar.set(wa.path,wa)}var fo=Ne.getFilesByNameMap();return fo.forEach(function(tl,zc){if(!tl){ar.set(zc,tl);return}if(tl.path===zc){Ne.isSourceFileFromExternalLibrary(tl)&&le.set(tl.path,!0);return}ar.set(zc,ar.get(tl.path))}),we=st,fn=Ne.getFileIncludeReasons(),X=Ne.getFileProcessingDiagnostics(),In=Ne.getResolvedTypeReferenceDirectives(),Zn=Ne.sourceFileToPackageName,Me=Ne.redirectTargetsMap,Mn=Ne.usesUriStyleNodeCoreModules,2}function Lr(kn){return{getPrependNodes:or,getCanonicalFileName:Hs,getCommonSourceDirectory:Cr.getCommonSourceDirectory,getCompilerOptions:Cr.getCompilerOptions,getCurrentDirectory:function(){return An},getNewLine:function(){return Pe.getNewLine()},getSourceFile:Cr.getSourceFile,getSourceFileByPath:Cr.getSourceFileByPath,getSourceFiles:Cr.getSourceFiles,getLibFileFromReference:Cr.getLibFileFromReference,isSourceFileFromExternalLibrary:$t,getResolvedProjectReferenceToRedirect:Ao,getProjectReferenceRedirect:Zi,isSourceOfProjectReferenceRedirect:cl,getSymlinkCache:$l,writeFile:kn||function(lr,Or,st,yt,Tt){return Pe.writeFile(lr,Or,st,yt,Tt)},isEmitBlocked:Yi,readFile:function(lr){return Pe.readFile(lr)},fileExists:function(lr){var Or=Ar(lr);return Mi(Or)?!0:e.contains(Xn,Or)?!1:Pe.fileExists(lr)},useCaseSensitiveFileNames:function(){return Pe.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return Cr.getProgramBuildInfo&&Cr.getProgramBuildInfo()},getSourceFileFromReference:function(lr,Or){return Cr.getSourceFileFromReference(lr,Or)},redirectTargetsMap:Me,getFileIncludeReasons:Cr.getFileIncludeReasons}}function Xr(kn){e.Debug.assert(!e.outFile(De)),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var lr=e.emitFiles(e.notImplementedResolver,Lr(kn),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),lr}function nt(){return cr}function vt(){return fe}function or(){return N(fe,function(kn,lr){var Or;return(Or=cr[lr])===null||Or===void 0?void 0:Or.commandLine},function(kn){var lr=Ar(kn),Or=Mi(lr);return Or?Or.text:ar.has(lr)?void 0:Pe.readFile(lr)})}function $t(kn){return!!le.get(kn.path)}function Va(kn){if(kn.hasNoDefaultLib)return!0;if(!De.noLib)return!1;var lr=Pe.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return De.lib?e.some(De.lib,function(Or){return lr(kn.fileName,e.combinePaths(Le,Or))}):lr(kn.fileName,hn())}function li(){return Re||(Re=e.createTypeChecker(Cr,!0))}function zi(){Re=void 0}function Ma(){return He||(He=e.createTypeChecker(Cr,!1))}function di(kn,lr,Or,st,yt,Tt){e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emit",{path:kn==null?void 0:kn.path},!0);var Ut=Da(function(){return uo(Cr,kn,lr,Or,st,yt,Tt)});return e.tracing===null||e.tracing===void 0||e.tracing.pop(),Ut}function Yi(kn){return Wn.has(Ar(kn))}function uo(kn,lr,Or,st,yt,Tt,Ut){if(!Ut){var ea=f(kn,lr,Or,st);if(ea)return ea}var zt=li().getEmitResolver(e.outFile(De)?void 0:lr,st);e.performance.mark("beforeEmit");var Ii=e.emitFiles(zt,Lr(Or),lr,e.getTransformers(De,Tt,yt),yt,!1,Ut);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),Ii}function bi(kn){return Mi(Ar(kn))}function Mi(kn){return ar.get(kn)||void 0}function Go(kn,lr,Or){return kn?lr(kn,Or):e.sortAndDeduplicateDiagnostics(e.flatMap(Cr.getSourceFiles(),function(st){return Or&&Or.throwIfCancellationRequested(),lr(st,Or)}))}function io(kn,lr){return Go(kn,gs,lr)}function wi(kn,lr){return Go(kn,$a,lr)}function Ho(kn){var lr;return kn?(lr=En.perFile)===null||lr===void 0?void 0:lr.get(kn.path):En.allDiagnostics}function qi(kn,lr){return Ni(kn,lr)}function Qi(kn){var lr;if(e.skipTypeChecking(kn,De,Cr))return e.emptyArray;var Or=$e.getDiagnostics(kn.fileName);return!((lr=kn.commentDirectives)===null||lr===void 0)&&lr.length?Bo(kn,kn.commentDirectives,Or).diagnostics:Or}function as(kn,lr){var Or=Cr.getCompilerOptions();return!kn||e.outFile(Or)?Jo(kn,lr):Go(kn,_r,lr)}function gs(kn){return e.isSourceFileJS(kn)?(kn.additionalSyntacticDiagnostics||(kn.additionalSyntacticDiagnostics=us(kn)),e.concatenate(kn.additionalSyntacticDiagnostics,kn.parseDiagnostics)):kn.parseDiagnostics}function Da(kn){try{return kn()}catch(lr){throw lr instanceof e.OperationCanceledException&&(He=void 0,Re=void 0),lr}}function $a(kn,lr){return e.concatenate(T(Ni(kn,lr),De),Qi(kn))}function Ni(kn,lr){return mn(kn,lr,En,vo)}function vo(kn,lr){return Da(function(){if(e.skipTypeChecking(kn,De,Cr))return e.emptyArray;var Or=li();e.Debug.assert(!!kn.bindDiagnostics);var st=e.isCheckJsEnabledForFile(kn,De),yt=!!kn.checkJsDirective&&kn.checkJsDirective.enabled===!1,Tt=!yt&&(kn.scriptKind===3||kn.scriptKind===4||kn.scriptKind===5||st||kn.scriptKind===7),Ut=Tt?kn.bindDiagnostics:e.emptyArray,ea=Tt?Or.getDiagnostics(kn,lr):e.emptyArray;return Io(kn,Tt,Ut,ea,st?kn.jsDocDiagnostics:void 0)})}function Io(kn,lr){for(var Or,st=[],yt=2;yt<arguments.length;yt++)st[yt-2]=arguments[yt];var Tt=e.flatten(st);if(!lr||!(!((Or=kn.commentDirectives)===null||Or===void 0)&&Or.length))return Tt;for(var Ut=Bo(kn,kn.commentDirectives,Tt),ea=Ut.diagnostics,zt=Ut.directives,Ii=0,ba=zt.getUnusedExpectations();Ii<ba.length;Ii++){var wa=ba[Ii];ea.push(e.createDiagnosticForRange(kn,wa.range,e.Diagnostics.Unused_ts_expect_error_directive))}return ea}function Bo(kn,lr,Or){var st=e.createCommentDirectivesMap(kn,lr),yt=Or.filter(function(Tt){return cs(Tt,st)===-1});return{diagnostics:yt,directives:st}}function Uo(kn,lr){return Da(function(){return li().getSuggestionDiagnostics(kn,lr)})}function cs(kn,lr){var Or=kn.file,st=kn.start;if(!Or)return-1;for(var yt=e.getLineStarts(Or),Tt=e.computeLineAndCharacterOfPosition(yt,st).line-1;Tt>=0;){if(lr.markUsed(Tt))return Tt;var Ut=Or.text.slice(yt[Tt],yt[Tt+1]).trim();if(Ut!==""&&!/^(\s*)\/\/(.*)$/.test(Ut))return-1;Tt--}return-1}function us(kn){return Da(function(){var lr=[];return Or(kn,kn),e.forEachChildRecursively(kn,Or,st),lr;function Or(ea,zt){switch(zt.kind){case 162:case 165:case 167:if(zt.questionToken===ea)return lr.push(Ut(ea,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 166:case 169:case 170:case 171:case 211:case 254:case 212:case 252:if(zt.type===ea)return lr.push(Ut(ea,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(ea.kind){case 265:if(ea.isTypeOnly)return lr.push(Ut(zt,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 270:if(ea.isTypeOnly)return lr.push(Ut(ea,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 263:return lr.push(Ut(ea,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 269:if(ea.isExportEquals)return lr.push(Ut(ea,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 289:var Ii=ea;if(Ii.token===117)return lr.push(Ut(ea,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 256:var ba=e.tokenToString(118);return e.Debug.assertIsDefined(ba),lr.push(Ut(ea,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,ba)),"skip";case 259:var wa=ea.flags&16?e.tokenToString(141):e.tokenToString(140);return e.Debug.assertIsDefined(wa),lr.push(Ut(ea,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,wa)),"skip";case 257:return lr.push(Ut(ea,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 258:var Ui=e.Debug.checkDefined(e.tokenToString(92));return lr.push(Ut(ea,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,Ui)),"skip";case 228:return lr.push(Ut(ea,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 227:return lr.push(Ut(ea.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 209:e.Debug.fail()}}function st(ea,zt){switch(zt.decorators===ea&&!De.experimentalDecorators&&lr.push(Ut(zt,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)),zt.kind){case 255:case 224:case 167:case 169:case 170:case 171:case 211:case 254:case 212:if(ea===zt.typeParameters)return lr.push(Tt(ea,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 235:if(ea===zt.modifiers)return yt(zt.modifiers,zt.kind===235),"skip";break;case 165:if(ea===zt.modifiers){for(var Ii=0,ba=ea;Ii<ba.length;Ii++){var wa=ba[Ii];wa.kind!==124&&lr.push(Ut(wa,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(wa.kind)))}return"skip"}break;case 162:if(ea===zt.modifiers)return lr.push(Tt(ea,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 206:case 207:case 226:case 277:case 278:case 208:if(ea===zt.typeArguments)return lr.push(Tt(ea,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function yt(ea,zt){for(var Ii=0,ba=ea;Ii<ba.length;Ii++){var wa=ba[Ii];switch(wa.kind){case 85:if(zt)continue;case 123:case 121:case 122:case 143:case 134:case 126:case 157:lr.push(Ut(wa,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(wa.kind)));break;case 124:case 93:case 88:}}}function Tt(ea,zt,Ii,ba,wa){var Ui=ea.pos;return e.createFileDiagnostic(kn,Ui,ea.end-Ui,zt,Ii,ba,wa)}function Ut(ea,zt,Ii,ba,wa){return e.createDiagnosticForNodeInSourceFile(kn,ea,zt,Ii,ba,wa)}})}function Jo(kn,lr){return mn(kn,lr,i,is)}function is(kn,lr){return Da(function(){var Or=li().getEmitResolver(kn,lr);return e.getDeclarationDiagnostics(Lr(e.noop),Or,kn)||e.emptyArray})}function mn(kn,lr,Or,st){var yt,Tt=kn?(yt=Or.perFile)===null||yt===void 0?void 0:yt.get(kn.path):Or.allDiagnostics;if(Tt)return Tt;var Ut=st(kn,lr);return kn?(Or.perFile||(Or.perFile=new e.Map)).set(kn.path,Ut):Or.allDiagnostics=Ut,Ut}function _r(kn,lr){return kn.isDeclarationFile?[]:Jo(kn,lr)}function $r(){return e.sortAndDeduplicateDiagnostics(e.concatenate($e.getGlobalDiagnostics(),ia()))}function ia(){if(!De.configFile)return e.emptyArray;var kn=$e.getDiagnostics(De.configFile.fileName);return oo(function(lr){kn=e.concatenate(kn,$e.getDiagnostics(lr.sourceFile.fileName))}),kn}function ti(){return Be.length?e.sortAndDeduplicateDiagnostics(li().getGlobalDiagnostics().slice()):e.emptyArray}function va(){return en||e.emptyArray}function Ve(kn,lr,Or,st){vr(e.normalizePath(kn),lr,Or,void 0,st)}function ce(kn,lr){return kn.fileName===lr.fileName}function dn(kn,lr){return kn.kind===79?lr.kind===79&&kn.escapedText===lr.escapedText:lr.kind===10&&kn.text===lr.text}function j(kn,lr){var Or=e.factory.createStringLiteral(kn),st=e.factory.createImportDeclaration(void 0,void 0,void 0,Or);return e.addEmitFlags(st,67108864),e.setParent(Or,st),e.setParent(st,lr),Or.flags&=-9,st.flags&=-9,Or}function Ie(kn){if(kn.imports)return;var lr=e.isSourceFileJS(kn),Or=e.isExternalModule(kn),st,yt,Tt;if((De.isolatedModules||Or)&&!kn.isDeclarationFile){De.importHelpers&&(st=[j(e.externalHelpersModuleNameText,kn)]);var Ut=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(De,kn),De);Ut&&(st||(st=[])).push(j(Ut,kn))}for(var ea=0,zt=kn.statements;ea<zt.length;ea++){var Ii=zt[ea];ba(Ii,!1)}(kn.flags&1048576||lr)&&wa(kn),kn.imports=st||e.emptyArray,kn.moduleAugmentations=yt||e.emptyArray,kn.ambientModuleNames=Tt||e.emptyArray;return;function ba(Fi,he){if(e.isAnyImportOrReExport(Fi)){var un=e.getExternalModuleName(Fi);un&&e.isStringLiteral(un)&&un.text&&(!he||!e.isExternalModuleNameRelative(un.text))&&(st=e.append(st,un),!Mn&&$n===0&&!kn.isDeclarationFile&&(Mn=e.startsWith(un.text,"node:")))}else if(e.isModuleDeclaration(Fi)&&e.isAmbientModule(Fi)&&(he||e.hasSyntacticModifier(Fi,2)||kn.isDeclarationFile)){var Sn=e.getTextOfIdentifierOrLiteral(Fi.name);if(Or||he&&!e.isExternalModuleNameRelative(Sn))(yt||(yt=[])).push(Fi.name);else if(!he){kn.isDeclarationFile&&(Tt||(Tt=[])).push(Sn);var Tr=Fi.body;if(Tr)for(var Wr=0,Yt=Tr.statements;Wr<Yt.length;Wr++){var Ia=Yt[Wr];ba(Ia,!0)}}}}function wa(Fi){for(var he=/import|require/g;he.exec(Fi.text)!==null;){var un=Ui(Fi,he.lastIndex);lr&&e.isRequireCall(un,!0)||e.isImportCall(un)&&un.arguments.length===1&&e.isStringLiteralLike(un.arguments[0])?st=e.append(st,un.arguments[0]):e.isLiteralImportTypeNode(un)&&(st=e.append(st,un.argument.literal))}}function Ui(Fi,he){for(var un=Fi,Sn=function(Wr){if(Wr.pos<=he&&(he<Wr.end||he===Wr.end&&Wr.kind===1))return Wr};;){var Tr=lr&&e.hasJSDocNodes(un)&&e.forEach(un.jsDoc,Sn)||e.forEachChild(un,Sn);if(!Tr)return un;un=Tr}}}function We(kn){var lr=e.toFileNameLowerCase(kn.fileName),Or=e.libMap.get(lr);if(Or)return bi(e.combinePaths(Le,Or))}function sn(kn,lr){return Hn(ue(lr.fileName,kn.fileName),bi)}function Hn(kn,lr,Or,st){if(e.hasExtension(kn)){var yt=Pe.getCanonicalFileName(kn);if(!De.allowNonTsExtensions&&!e.forEach(gn,function(Ii){return e.fileExtensionIs(yt,Ii)})){Or&&(e.hasJSFileExtension(yt)?Or(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,kn):Or(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,kn,"'"+Ue.join("', '")+"'"));return}var Tt=lr(kn);if(Or)if(Tt)w(st)&&yt===Pe.getCanonicalFileName(Mi(st.file).fileName)&&Or(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var Ut=Zi(kn);Ut?Or(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,Ut,kn):Or(e.Diagnostics.File_0_not_found,kn)}return Tt}else{var ea=De.allowNonTsExtensions&&lr(kn);if(ea)return ea;if(Or&&De.allowNonTsExtensions){Or(e.Diagnostics.File_0_not_found,kn);return}var zt=e.forEach(Ue,function(Ii){return lr(kn+Ii)});return Or&&!zt&&Or(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,kn,"'"+Ue.join("', '")+"'"),zt}}function vr(kn,lr,Or,st,yt){Hn(kn,function(Tt){return ra(Tt,Ar(Tt),lr,Or,yt,st)},function(Tt){for(var Ut=[],ea=1;ea<arguments.length;ea++)Ut[ea-1]=arguments[ea];return et(void 0,yt,Tt,Ut)},yt)}function Sr(kn,lr){return vr(kn,!1,!1,void 0,lr)}function ot(kn,lr,Or){var st=!w(Or)&&e.some(fn.get(lr.path),w);st?et(lr,Or,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[lr.fileName,kn]):et(lr,Or,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[kn,lr.fileName])}function Et(kn,lr,Or,st,yt,Tt){var Ut=Object.create(kn);return Ut.fileName=Or,Ut.path=st,Ut.resolvedPath=yt,Ut.originalFileName=Tt,Ut.redirectInfo={redirectTarget:kn,unredirected:lr},le.set(st,$n>0),Object.defineProperties(Ut,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(ea){this.redirectInfo.redirectTarget.id=ea}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(ea){this.redirectInfo.redirectTarget.symbol=ea}}}),Ut}function ra(kn,lr,Or,st,yt,Tt){e.tracing===null||e.tracing===void 0||e.tracing.push("program","findSourceFile",{fileName:kn,isDefaultLib:Or||void 0,fileIncludeKind:e.FileIncludeKind[yt.kind]});var Ut=Na(kn,lr,Or,st,yt,Tt);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),Ut}function Na(kn,lr,Or,st,yt,Tt){if(Cn){var Ut=Zo(kn);if(!Ut&&Pe.realpath&&De.preserveSymlinks&&e.isDeclarationFileName(kn)&&e.stringContains(kn,e.nodeModulesPathPart)){var ea=Pe.realpath(kn);ea!==kn&&(Ut=Zo(ea))}if(Ut){var zt=e.isString(Ut)?ra(Ut,Ar(Ut),Or,st,yt,Tt):void 0;return zt&&Li(zt,lr,void 0),zt}}var Ii=kn;if(ar.has(lr)){var ba=ar.get(lr);if(ei(ba||void 0,yt),ba&&De.forceConsistentCasingInFileNames){var wa=ba.fileName,Ui=Ar(wa)!==Ar(kn);Ui&&(kn=Zi(kn)||kn);var Fi=e.getNormalizedAbsolutePathWithoutRoot(wa,An),he=e.getNormalizedAbsolutePathWithoutRoot(kn,An);Fi!==he&&ot(kn,ba,yt)}return ba&&le.get(ba.path)&&$n===0?(le.set(ba.path,!1),De.noResolve||(vl(ba,Or),ul(ba)),De.noLib||Hl(ba),Vn.set(ba.path,!1),Fs(ba)):ba&&Vn.get(ba.path)&&$n<rn&&(Vn.set(ba.path,!1),Fs(ba)),ba||void 0}var un;if(w(yt)&&!Cn){var Sn=ho(kn);if(Sn){if(e.outFile(Sn.commandLine.options))return;var Tr=vs(Sn,kn);kn=Tr,un=Ar(Tr)}}var Wr=Pe.getSourceFile(kn,De.target,function(ys){return et(void 0,yt,e.Diagnostics.Cannot_read_file_0_Colon_1,[kn,ys])},xn);if(Tt){var Yt=e.packageIdToString(Tt),Ia=jn.get(Yt);if(Ia){var hi=Et(Ia,Wr,kn,lr,Ar(kn),Ii);return Me.add(Ia.path,kn),Li(hi,lr,un),ei(hi,yt),Zn.set(lr,Tt.name),pe.push(hi),hi}else Wr&&(jn.set(Yt,Wr),Zn.set(lr,Tt.name))}if(Li(Wr,lr,un),Wr){if(le.set(lr,$n>0),Wr.fileName=kn,Wr.path=lr,Wr.resolvedPath=Ar(kn),Wr.originalFileName=Ii,ei(Wr,yt),Pe.useCaseSensitiveFileNames()){var yo=e.toFileNameLowerCase(lr),Oo=yr.get(yo);Oo?ot(kn,Oo,yt):yr.set(yo,Wr)}Ze=Ze||Wr.hasNoDefaultLib&&!st,De.noResolve||(vl(Wr,Or),ul(Wr)),De.noLib||Hl(Wr),Fs(Wr),Or?qe.push(Wr):pe.push(Wr)}return Wr}function ei(kn,lr){kn&&fn.add(kn.path,lr)}function Li(kn,lr,Or){Or?(ar.set(Or,kn),ar.set(lr,kn||!1)):ar.set(lr,kn)}function Zi(kn){var lr=ho(kn);return lr&&vs(lr,kn)}function ho(kn){if(!(!cr||!cr.length||e.fileExtensionIs(kn,".d.ts")||e.fileExtensionIs(kn,".json")))return Ao(kn)}function vs(kn,lr){var Or=e.outFile(kn.commandLine.options);return Or?e.changeExtension(Or,".d.ts"):e.getOutputDeclarationFileName(lr,kn.commandLine,!Pe.useCaseSensitiveFileNames())}function Ao(kn){Bn===void 0&&(Bn=new e.Map,oo(function(Or){Ar(De.configFilePath)!==Or.sourceFile.path&&Or.commandLine.fileNames.forEach(function(st){return Bn.set(Ar(st),Or.sourceFile.path)})}));var lr=Bn.get(Ar(kn));return lr&&ws(lr)}function oo(kn){return e.forEachResolvedProjectReference(cr,kn)}function Zo(kn){if(e.isDeclarationFileName(kn))return J===void 0&&(J=new e.Map,oo(function(lr){var Or=e.outFile(lr.commandLine.options);if(Or){var st=e.changeExtension(Or,".d.ts");J.set(Ar(st),!0)}else{var yt=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(lr.commandLine,!Pe.useCaseSensitiveFileNames())});e.forEach(lr.commandLine.fileNames,function(Tt){if(!e.fileExtensionIs(Tt,".d.ts")&&!e.fileExtensionIs(Tt,".json")){var Ut=e.getOutputDeclarationFileName(Tt,lr.commandLine,!Pe.useCaseSensitiveFileNames(),yt);J.set(Ar(Ut),Tt)}})}})),J.get(Ar(kn))}function cl(kn){return Cn&&!!Ao(kn)}function ws(kn){if(Fe)return Fe.get(kn)||void 0}function vl(kn,lr){e.forEach(kn.referencedFiles,function(Or,st){vr(ue(Or.fileName,kn.fileName),lr,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:kn.path,index:st})})}function ul(kn){var lr=e.map(kn.typeReferenceDirectives,function(ea){return e.toFileNameLowerCase(ea.fileName)});if(lr)for(var Or=Ot(lr,kn),st=0;st<lr.length;st++){var yt=kn.typeReferenceDirectives[st],Tt=Or[st],Ut=e.toFileNameLowerCase(yt.fileName);e.setResolvedTypeReferenceDirective(kn,Ut,Tt),ps(Ut,Tt,{kind:e.FileIncludeKind.TypeReferenceDirective,file:kn.path,index:st})}}function ps(kn,lr,Or){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferenceDirective",{directive:kn,hasResolved:!!Wt,refKind:Or.kind,refPath:w(Or)?Or.file:void 0}),jl(kn,lr,Or),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function jl(kn,lr,Or){var st=In.get(kn);if(!(st&&st.primary)){var yt=!0;if(lr){if(lr.isExternalLibraryImport&&$n++,lr.primary)vr(lr.resolvedFileName,!1,!1,lr.packageId,Or);else if(st){if(lr.resolvedFileName!==st.resolvedFileName){var Tt=Pe.readFile(lr.resolvedFileName),Ut=bi(st.resolvedFileName);Tt!==Ut.text&&et(Ut,Or,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[kn,lr.resolvedFileName,st.resolvedFileName])}yt=!1}else vr(lr.resolvedFileName,!1,!1,lr.packageId,Or);lr.isExternalLibraryImport&&$n--}else et(void 0,Or,e.Diagnostics.Cannot_find_type_definition_file_for_0,[kn]);yt&&In.set(kn,lr)}}function Hl(kn){e.forEach(kn.libReferenceDirectives,function(lr,Or){var st=e.toFileNameLowerCase(lr.fileName),yt=e.libMap.get(st);if(yt)Ve(e.combinePaths(Le,yt),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:kn.path,index:Or});else{var Tt=e.removeSuffix(e.removePrefix(st,"lib."),".d.ts"),Ut=e.getSpellingSuggestion(Tt,e.libs,e.identity),ea=Ut?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;(X||(X=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:kn.path,index:Or},diagnostic:ea,args:[st,Ut]})}})}function Hs(kn){return Pe.getCanonicalFileName(kn)}function Fs(kn){var lr;if(Ie(kn),kn.imports.length||kn.moduleAugmentations.length){var Or=M(kn),st=Wt(Or,kn);e.Debug.assert(st.length===Or.length);for(var yt=(Cn?(lr=ri(kn))===null||lr===void 0?void 0:lr.commandLine.options:void 0)||De,Tt=0;Tt<Or.length;Tt++){var Ut=st[Tt];if(e.setResolvedModule(kn,Or[Tt],Ut),!!Ut){var ea=Ut.isExternalLibraryImport,zt=!e.resolutionExtensionIsTSOrJson(Ut.extension),Ii=ea&&zt,ba=Ut.resolvedFileName;ea&&$n++;var wa=Ii&&$n>rn,Ui=ba&&!x(yt,Ut)&&!yt.noResolve&&Tt<kn.imports.length&&!wa&&!(zt&&!e.getAllowJSCompilerOption(yt))&&(e.isInJSFile(kn.imports[Tt])||!(kn.imports[Tt].flags&4194304));if(wa)Vn.set(kn.path,!0);else if(Ui){var Fi=Ar(ba);ra(ba,Fi,!1,!1,{kind:e.FileIncludeKind.Import,file:kn.path,index:Tt},Ut.packageId)}ea&&$n--}}}else kn.resolvedModules=void 0}function ge(kn,lr){for(var Or=!0,st=Pe.getCanonicalFileName(e.getNormalizedAbsolutePath(lr,An)),yt=0,Tt=kn;yt<Tt.length;yt++){var Ut=Tt[yt];if(!Ut.isDeclarationFile){var ea=Pe.getCanonicalFileName(e.getNormalizedAbsolutePath(Ut.fileName,An));ea.indexOf(st)!==0&&(Xt(Ut,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[Ut.fileName,lr]),Or=!1)}}return Or}function Kn(kn){Fe||(Fe=new e.Map);var lr=P(kn),Or=Ar(lr),st=Fe.get(Or);if(st!==void 0)return st||void 0;var yt,Tt;if(Pe.getParsedCommandLine){if(yt=Pe.getParsedCommandLine(lr),!yt){Li(void 0,Or,void 0),Fe.set(Or,!1);return}Tt=e.Debug.checkDefined(yt.options.configFile),e.Debug.assert(!Tt.path||Tt.path===Or),Li(Tt,Or,void 0)}else{var Ut=e.getNormalizedAbsolutePath(e.getDirectoryPath(lr),Pe.getCurrentDirectory());if(Tt=Pe.getSourceFile(lr,100),Li(Tt,Or,void 0),Tt===void 0){Fe.set(Or,!1);return}yt=e.parseJsonSourceFileConfigFileContent(Tt,xe,Ut,void 0,lr)}Tt.fileName=lr,Tt.path=Or,Tt.resolvedPath=Or,Tt.originalFileName=lr;var ea={commandLine:yt,sourceFile:Tt};return Fe.set(Or,ea),yt.projectReferences&&(ea.references=yt.projectReferences.map(Kn)),ea}function Te(){De.strictPropertyInitialization&&!e.getStrictOptionValue(De,"strictNullChecks")&&Bi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),De.exactOptionalPropertyTypes&&!e.getStrictOptionValue(De,"strictNullChecks")&&Bi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),De.isolatedModules&&(De.out&&Bi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),De.outFile&&Bi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),De.inlineSourceMap&&(De.sourceMap&&Bi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),De.mapRoot&&Bi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),De.composite&&(De.declaration===!1&&Bi(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),De.incremental===!1&&Bi(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var kn=e.outFile(De);if(De.tsBuildInfoFile?e.isIncrementalCompilation(De)||Bi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):De.incremental&&!kn&&!De.configFilePath&&$e.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),ha(),De.composite)for(var lr=new e.Set(Be.map(Ar)),Or=0,st=we;Or<st.length;Or++){var yt=st[Or];e.sourceFileMayBeEmitted(yt,Cr)&&!lr.has(yt.path)&&Xt(yt,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[yt.fileName,De.configFilePath||""])}if(De.paths){for(var Tt in De.paths)if(e.hasProperty(De.paths,Tt))if(e.hasZeroOrOneAsteriskCharacter(Tt)||Pn(!0,Tt,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,Tt),e.isArray(De.paths[Tt])){var Ut=De.paths[Tt].length;Ut===0&&Pn(!1,Tt,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,Tt);for(var ea=0;ea<Ut;ea++){var zt=De.paths[Tt][ea],Ii=typeof zt;Ii==="string"?(e.hasZeroOrOneAsteriskCharacter(zt)||To(Tt,ea,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,zt,Tt),!De.baseUrl&&!e.pathIsRelative(zt)&&!e.pathIsAbsolute(zt)&&To(Tt,ea,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):To(Tt,ea,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,zt,Tt,Ii)}}else Pn(!1,Tt,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,Tt)}!De.sourceMap&&!De.inlineSourceMap&&(De.inlineSources&&Bi(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),De.sourceRoot&&Bi(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),De.out&&De.outFile&&Bi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),De.mapRoot&&!(De.sourceMap||De.declarationMap)&&Bi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),De.declarationDir&&(e.getEmitDeclarations(De)||Bi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),kn&&Bi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",De.out?"out":"outFile")),De.declarationMap&&!e.getEmitDeclarations(De)&&Bi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),De.lib&&De.noLib&&Bi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),De.noImplicitUseStrict&&e.getStrictOptionValue(De,"alwaysStrict")&&Bi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var ba=De.target||0,wa=e.find(we,function(Wr){return e.isExternalModule(Wr)&&!Wr.isDeclarationFile});if(De.isolatedModules){De.module===e.ModuleKind.None&&ba<2&&Bi(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),De.preserveConstEnums===!1&&Bi(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");var Ui=e.find(we,function(Wr){return!e.isExternalModule(Wr)&&!e.isSourceFileJS(Wr)&&!Wr.isDeclarationFile&&Wr.scriptKind!==6});if(Ui){var Fi=e.getErrorSpanForNode(Ui,Ui);$e.add(e.createFileDiagnostic(Ui,Fi.start,Fi.length,e.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module,e.getBaseFileName(Ui.fileName)))}}else if(wa&&ba<2&&De.module===e.ModuleKind.None){var Fi=e.getErrorSpanForNode(wa,wa.externalModuleIndicator);$e.add(e.createFileDiagnostic(wa,Fi.start,Fi.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(kn&&!De.emitDeclarationOnly){if(De.module&&!(De.module===e.ModuleKind.AMD||De.module===e.ModuleKind.System))Bi(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,De.out?"out":"outFile","module");else if(De.module===void 0&&wa){var Fi=e.getErrorSpanForNode(wa,wa.externalModuleIndicator);$e.add(e.createFileDiagnostic(wa,Fi.start,Fi.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,De.out?"out":"outFile"))}}if(De.resolveJsonModule&&(e.getEmitModuleResolutionKind(De)!==e.ModuleResolutionKind.NodeJs?Bi(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(De)||Bi(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),De.outDir||De.rootDir||De.sourceRoot||De.mapRoot){var he=at();De.outDir&&he===""&&we.some(function(Wr){return e.getRootLength(Wr.fileName)>1})&&Bi(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(De.useDefineForClassFields&&ba===0&&Bi(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),De.checkJs&&!e.getAllowJSCompilerOption(De)&&$e.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),De.emitDeclarationOnly&&(e.getEmitDeclarations(De)||Bi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),De.noEmit&&Bi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),De.emitDecoratorMetadata&&!De.experimentalDecorators&&Bi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),De.jsxFactory?(De.reactNamespace&&Bi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(De.jsx===4||De.jsx===5)&&Bi(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+De.jsx)),e.parseIsolatedEntityName(De.jsxFactory,ba)||Js("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,De.jsxFactory)):De.reactNamespace&&!e.isIdentifierText(De.reactNamespace,ba)&&Js("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,De.reactNamespace),De.jsxFragmentFactory&&(De.jsxFactory||Bi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(De.jsx===4||De.jsx===5)&&Bi(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+De.jsx)),e.parseIsolatedEntityName(De.jsxFragmentFactory,ba)||Js("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,De.jsxFragmentFactory)),De.reactNamespace&&(De.jsx===4||De.jsx===5)&&Bi(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+De.jsx)),De.jsxImportSource&&De.jsx===2&&Bi(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+De.jsx)),!De.noEmit&&!De.suppressOutputPathCheck){var un=Lr(),Sn=new e.Set;e.forEachEmittedFile(un,function(Wr){De.emitDeclarationOnly||Tr(Wr.jsFilePath,Sn),Tr(Wr.declarationFilePath,Sn)})}function Tr(Wr,Yt){if(Wr){var Ia=Ar(Wr);if(ar.has(Ia)){var hi=void 0;De.configFilePath||(hi=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)),hi=e.chainDiagnosticMessages(hi,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,Wr),Zl(Wr,e.createCompilerDiagnosticFromMessageChain(hi))}var yo=Pe.useCaseSensitiveFileNames()?Ia:e.toFileNameLowerCase(Ia);Yt.has(yo)?Zl(Wr,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Wr)):Yt.add(yo)}}}function Fn(kn,lr,Or,st){var yt,Tt,Ut,ea=w(lr)?lr:void 0;kn&&((yt=fn.get(kn.path))===null||yt===void 0||yt.forEach(Ui)),lr&&Ui(lr),ea&&(Tt==null?void 0:Tt.length)===1&&(Tt=void 0);var zt=ea&&ne(Mi,ea),Ii=Tt&&e.chainDiagnosticMessages(Tt,e.Diagnostics.The_file_is_in_the_program_because_Colon),ba=kn&&e.explainIfFileIsRedirect(kn),wa=e.chainDiagnosticMessages.apply(void 0,Vr([ba?Ii?Vr([Ii],ba,!0):ba:Ii,Or],st||e.emptyArray,!1));return zt&&R(zt)?e.createFileDiagnosticFromMessageChain(zt.file,zt.pos,zt.end-zt.pos,wa,Ut):e.createCompilerDiagnosticFromMessageChain(wa,Ut);function Ui(Fi){(Tt||(Tt=[])).push(e.fileIncludeReasonToDiagnostics(Cr,Fi)),!ea&&w(Fi)?ea=Fi:ea!==Fi&&(Ut=e.append(Ut,ca(Fi))),Fi===lr&&(lr=void 0)}}function et(kn,lr,Or,st){(X||(X=[])).push({kind:1,file:kn&&kn.path,fileProcessingReason:lr,diagnostic:Or,args:st})}function Xt(kn,lr,Or){$e.add(Fn(kn,void 0,lr,Or))}function ca(kn){if(w(kn)){var lr=ne(Mi,kn),Or;switch(kn.kind){case e.FileIncludeKind.Import:Or=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:Or=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:Or=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:Or=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(kn)}return R(lr)?e.createFileDiagnostic(lr.file,lr.pos,lr.end-lr.pos,Or):void 0}if(De.configFile){var st,yt;switch(kn.kind){case e.FileIncludeKind.RootFile:if(!De.configFile.configFileSpecs)return;var Tt=e.getNormalizedAbsolutePath(Be[kn.index],An),Ut=e.getMatchedFileSpec(Cr,Tt);if(Ut){st=e.getTsConfigPropArrayElementValue(De.configFile,"files",Ut),yt=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var ea=e.getMatchedIncludeSpec(Cr,Tt);if(!ea)return;st=e.getTsConfigPropArrayElementValue(De.configFile,"include",ea),yt=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var zt=e.Debug.checkDefined(cr==null?void 0:cr[kn.index]),Ii=se(fe,cr,function(he,un,Sn){return he===zt?{sourceFile:(un==null?void 0:un.sourceFile)||De.configFile,index:Sn}:void 0});if(!Ii)return;var ba=Ii.sourceFile,wa=Ii.index,Ui=e.firstDefined(e.getTsConfigPropArray(ba,"references"),function(he){return e.isArrayLiteralExpression(he.initializer)?he.initializer:void 0});return Ui&&Ui.elements.length>wa?e.createDiagnosticForNodeInSourceFile(ba,Ui.elements[wa],kn.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!De.types)return;st=hl("types",kn.typeReference),yt=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(kn.index!==void 0){st=hl("lib",De.lib[kn.index]),yt=e.Diagnostics.File_is_library_specified_here;break}var Fi=e.forEachEntry(e.targetOptionDeclaration.type,function(he,un){return he===De.target?un:void 0});st=Fi?hs("target",Fi):void 0,yt=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(kn)}return st&&e.createDiagnosticForNodeInSourceFile(De.configFile,st,yt)}}function ha(){var kn=De.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(De);se(fe,cr,function(lr,Or,st){var yt=(Or?Or.commandLine.projectReferences:fe)[st],Tt=Or&&Or.sourceFile;if(!lr){rl(Tt,st,e.Diagnostics.File_0_not_found,yt.path);return}var Ut=lr.commandLine.options;if(!Ut.composite||Ut.noEmit){var ea=Or?Or.commandLine.fileNames:Be;ea.length&&(Ut.composite||rl(Tt,st,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,yt.path),Ut.noEmit&&rl(Tt,st,e.Diagnostics.Referenced_project_0_may_not_disable_emit,yt.path))}if(yt.prepend){var zt=e.outFile(Ut);zt?Pe.fileExists(zt)||rl(Tt,st,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,zt,yt.path):rl(Tt,st,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,yt.path)}!Or&&kn&&kn===e.getTsBuildInfoEmitOutputFilePath(Ut)&&(rl(Tt,st,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,kn,yt.path),Wn.set(Ar(kn),!0))})}function To(kn,lr,Or,st,yt,Tt){for(var Ut=!0,ea=Ko(),zt=0,Ii=ea;zt<Ii.length;zt++){var ba=Ii[zt];if(e.isObjectLiteralExpression(ba.initializer))for(var wa=0,Ui=e.getPropertyAssignment(ba.initializer,kn);wa<Ui.length;wa++){var Fi=Ui[wa],he=Fi.initializer;e.isArrayLiteralExpression(he)&&he.elements.length>lr&&($e.add(e.createDiagnosticForNodeInSourceFile(De.configFile,he.elements[lr],Or,st,yt,Tt)),Ut=!1)}}Ut&&$e.add(e.createCompilerDiagnostic(Or,st,yt,Tt))}function Pn(kn,lr,Or,st){for(var yt=!0,Tt=Ko(),Ut=0,ea=Tt;Ut<ea.length;Ut++){var zt=ea[Ut];e.isObjectLiteralExpression(zt.initializer)&&Sc(zt.initializer,kn,lr,void 0,Or,st)&&(yt=!1)}yt&&$e.add(e.createCompilerDiagnostic(Or,st))}function Vo(kn){var lr=nc();return lr&&e.getPropertyAssignment(lr,kn)}function Ko(){return Vo("paths")||e.emptyArray}function hs(kn,lr){var Or=Vo(kn);return Or&&e.firstDefined(Or,function(st){return e.isStringLiteral(st.initializer)&&st.initializer.text===lr?st.initializer:void 0})}function hl(kn,lr){var Or=nc();return Or&&e.getPropertyArrayElementValue(Or,kn,lr)}function Bi(kn,lr,Or,st){Ol(!0,lr,Or,kn,lr,Or,st)}function Js(kn,lr,Or){Ol(!1,kn,void 0,lr,Or)}function rl(kn,lr,Or,st,yt){var Tt=e.firstDefined(e.getTsConfigPropArray(kn||De.configFile,"references"),function(Ut){return e.isArrayLiteralExpression(Ut.initializer)?Ut.initializer:void 0});Tt&&Tt.elements.length>lr?$e.add(e.createDiagnosticForNodeInSourceFile(kn||De.configFile,Tt.elements[lr],Or,st,yt)):$e.add(e.createCompilerDiagnostic(Or,st,yt))}function Ol(kn,lr,Or,st,yt,Tt,Ut){var ea=nc(),zt=!ea||!Sc(ea,kn,lr,Or,st,yt,Tt,Ut);zt&&$e.add(e.createCompilerDiagnostic(st,yt,Tt,Ut))}function nc(){if(ze===void 0){ze=!1;var kn=e.getTsConfigObjectLiteralExpression(De.configFile);if(kn)for(var lr=0,Or=e.getPropertyAssignment(kn,"compilerOptions");lr<Or.length;lr++){var st=Or[lr];if(e.isObjectLiteralExpression(st.initializer)){ze=st.initializer;break}}}return ze||void 0}function Sc(kn,lr,Or,st,yt,Tt,Ut,ea){for(var zt=e.getPropertyAssignment(kn,Or,st),Ii=0,ba=zt;Ii<ba.length;Ii++){var wa=ba[Ii];$e.add(e.createDiagnosticForNodeInSourceFile(De.configFile,lr?wa.name:wa.initializer,yt,Tt,Ut,ea))}return!!zt.length}function Zl(kn,lr){Wn.set(Ar(kn),!0),$e.add(lr)}function du(kn){if(De.noEmit)return!1;var lr=Ar(kn);if(Mi(lr))return!1;var Or=e.outFile(De);if(Or)return dc(lr,Or)||dc(lr,e.removeFileExtension(Or)+".d.ts");if(De.declarationDir&&e.containsPath(De.declarationDir,lr,An,!Pe.useCaseSensitiveFileNames()))return!0;if(De.outDir)return e.containsPath(De.outDir,lr,An,!Pe.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(lr,e.supportedJSExtensions)||e.fileExtensionIs(lr,".d.ts")){var st=e.removeFileExtension(lr);return!!Mi(st+".ts")||!!Mi(st+".tsx")}return!1}function dc(kn,lr){return e.comparePaths(kn,lr,An,!Pe.useCaseSensitiveFileNames())===0}function $l(){return Pe.getSymlinkCache?Pe.getSymlinkCache():(pn||(pn=e.createSymlinkCache(An,Hs)),we&&In&&!pn.hasProcessedResolutions()&&pn.setSymlinksFromResolutions(we,In),pn)}}e.createProgram=g;function p(z){var K,I=z.compilerHost.fileExists,Ae=z.compilerHost.directoryExists,Oe=z.compilerHost.getDirectories,te=z.compilerHost.realpath;if(!z.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:e.noop,fileExists:Ce};z.compilerHost.fileExists=Ce;var Se;return Ae&&(Se=z.compilerHost.directoryExists=function(Ne){return Ae.call(z.compilerHost,Ne)?(en(Ne),!0):z.getResolvedProjectReferences()?(K||(K=new e.Set,z.forEachResolvedProjectReference(function(qe){var pe=e.outFile(qe.commandLine.options);if(pe)K.add(e.getDirectoryPath(z.toPath(pe)));else{var we=qe.commandLine.options.declarationDir||qe.commandLine.options.outDir;we&&K.add(z.toPath(we))}})),fe(Ne,!1)):!1}),Oe&&(z.compilerHost.getDirectories=function(Ne){return!z.getResolvedProjectReferences()||Ae&&Ae.call(z.compilerHost,Ne)?Oe.call(z.compilerHost,Ne):[]}),te&&(z.compilerHost.realpath=function(Ne){var qe;return((qe=z.getSymlinkCache().getSymlinkedFiles())===null||qe===void 0?void 0:qe.get(z.toPath(Ne)))||te.call(z.compilerHost,Ne)}),{onProgramCreateComplete:be,fileExists:Ce,directoryExists:Se};function be(){z.compilerHost.fileExists=I,z.compilerHost.directoryExists=Ae,z.compilerHost.getDirectories=Oe}function Ce(Ne){return I.call(z.compilerHost,Ne)?!0:!z.getResolvedProjectReferences()||!e.isDeclarationFileName(Ne)?!1:fe(Ne,!0)}function Be(Ne){var qe=z.getSourceOfProjectReferenceRedirect(Ne);return qe!==void 0?e.isString(qe)?I.call(z.compilerHost,qe):!0:void 0}function De(Ne){var qe=z.toPath(Ne),pe=""+qe+e.directorySeparator;return e.forEachKey(K,function(we){return qe===we||e.startsWith(we,pe)||e.startsWith(qe,we+"/")})}function en(Ne){var qe;if(!(!z.getResolvedProjectReferences()||e.containsIgnoredPath(Ne))&&!(!te||!e.stringContains(Ne,e.nodeModulesPathPart))){var pe=z.getSymlinkCache(),we=e.ensureTrailingDirectorySeparator(z.toPath(Ne));if(!(!((qe=pe.getSymlinkedDirectories())===null||qe===void 0)&&qe.has(we))){var pn=e.normalizePath(te.call(z.compilerHost,Ne)),Qe;if(pn===Ne||(Qe=e.ensureTrailingDirectorySeparator(z.toPath(pn)))===we){pe.setSymlinkedDirectory(we,!1);return}pe.setSymlinkedDirectory(Ne,{real:e.ensureTrailingDirectorySeparator(pn),realPath:Qe})}}}function fe(Ne,qe){var pe,we=qe?function(Ln){return Be(Ln)}:function(Ln){return De(Ln)},pn=we(Ne);if(pn!==void 0)return pn;var Qe=z.getSymlinkCache(),Re=Qe.getSymlinkedDirectories();if(!Re)return!1;var He=z.toPath(Ne);return e.stringContains(He,e.nodeModulesPathPart)?qe&&(!((pe=Qe.getSymlinkedFiles())===null||pe===void 0)&&pe.has(He))?!0:e.firstDefinedIterator(Re.entries(),function(Ln){var Un=Ln[0],fn=Ln[1];if(!(!fn||!e.startsWith(He,Un))){var En=we(He.replace(Un,fn.realPath));if(qe&&En){var i=e.getNormalizedAbsolutePath(Ne,z.compilerHost.getCurrentDirectory());Qe.setSymlinkedFile(He,""+fn.real+i.replace(new RegExp(Un,"i"),""))}return En}})||!1:!1}}e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function f(z,K,I,Ae){var Oe=z.getCompilerOptions();if(Oe.noEmit)return z.getSemanticDiagnostics(K,Ae),K||e.outFile(Oe)?e.emitSkippedWithNoDiagnostics:z.emitBuildInfo(I,Ae);if(Oe.noEmitOnError){var te=Vr(Vr(Vr(Vr([],z.getOptionsDiagnostics(Ae),!0),z.getSyntacticDiagnostics(K,Ae),!0),z.getGlobalDiagnostics(Ae),!0),z.getSemanticDiagnostics(K,Ae),!0);if(te.length===0&&e.getEmitDeclarations(z.getCompilerOptions())&&(te=z.getDeclarationDiagnostics(void 0,Ae)),!!te.length){var Se;if(!K&&!e.outFile(Oe)){var be=z.emitBuildInfo(I,Ae);be.diagnostics&&(te=Vr(Vr([],te,!0),be.diagnostics,!0)),Se=be.emittedFiles}return{diagnostics:te,sourceMaps:void 0,emittedFiles:Se,emitSkipped:!0}}}}e.handleNoEmitOptions=f;function T(z,K){return e.filter(z,function(I){return!I.skippedOn||!K[I.skippedOn]})}e.filterSemanticDiagnostics=T;function m(z,K){return K===void 0&&(K=z),{fileExists:function(I){return K.fileExists(I)},readDirectory:function(I,Ae,Oe,te,Se){return e.Debug.assertIsDefined(K.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),K.readDirectory(I,Ae,Oe,te,Se)},readFile:function(I){return K.readFile(I)},useCaseSensitiveFileNames:z.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return z.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:z.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:z.trace?function(I){return z.trace(I)}:void 0}}e.parseConfigHostFromCompilerHostLike=m;function N(z,K,I){if(!z)return e.emptyArray;for(var Ae,Oe=0;Oe<z.length;Oe++){var te=z[Oe],Se=K(te,Oe);if(te.prepend&&Se&&Se.options){var be=e.outFile(Se.options);if(!be)continue;var Ce=e.getOutputPathsForBundle(Se.options,!0),Be=Ce.jsFilePath,De=Ce.sourceMapFilePath,en=Ce.declarationFilePath,fe=Ce.declarationMapPath,Ne=Ce.buildInfoPath,qe=e.createInputFiles(I,Be,De,en,fe,Ne);(Ae||(Ae=[])).push(qe)}}return Ae||e.emptyArray}e.createPrependNodes=N;function P(z,K){var I=K||z;return e.resolveConfigFileProjectName(I.path)}e.resolveProjectReferencePath=P;function x(z,K){var I=K.extension;switch(I){case".ts":case".d.ts":return;case".tsx":return Ae();case".jsx":return Ae()||Oe();case".js":return Oe();case".json":return te()}function Ae(){return z.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function Oe(){return e.getAllowJSCompilerOption(z)||!e.getStrictOptionValue(z,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function te(){return z.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}}e.getResolutionDiagnostic=x;function M(z){for(var K=z.imports,I=z.moduleAugmentations,Ae=K.map(function(be){return be.text}),Oe=0,te=I;Oe<te.length;Oe++){var Se=te[Oe];Se.kind===10&&Ae.push(Se.text)}return Ae}function me(z,K){var I=z.imports,Ae=z.moduleAugmentations;if(K<I.length)return I[K];for(var Oe=I.length,te=0,Se=Ae;te<Se.length;te++){var be=Se[te];if(be.kind===10){if(K===Oe)return be;Oe++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.getModuleNameStringLiteralAt=me})(vn||(vn={}));var vn;(function(e){function o($,Y,W,re,ye,O){var A=[],D=$.emit(Y,V,re,W,ye,O),de=D.emitSkipped,_e=D.diagnostics,y=D.exportedModulesFromDeclarationEmit;return{outputFiles:A,emitSkipped:de,diagnostics:_e,exportedModulesFromDeclarationEmit:y};function V(Z,E,H){A.push({name:Z,writeByteOrderMark:H,text:E})}}e.getFileEmitOutput=o;var ue;(function($){var Y=0;function W(){function d(G,g,p){var f=0,T={id:Y++,version:function(){return f},clone:function(){return d(new e.Map(G),new e.Map(g),p&&new e.Set(p))},forEach:function(m){return G.forEach(m)},getKeys:function(m){return g.get(m)},getValues:function(m){return G.get(m)},hasKey:function(m){return G.has(m)},keys:function(){return G.keys()},deletedKeys:function(){return p},deleteKey:function(m){(p||(p=new e.Set)).add(m);var N=G.get(m);return N?(N.forEach(function(P){return ye(g,P,m)}),G.delete(m),f++,!0):!1},set:function(m,N){var P=!!(p!=null&&p.delete(m)),x=G.get(m);return G.set(m,N),x==null||x.forEach(function(M){N.has(M)||(P=!0,ye(g,M,m))}),N.forEach(function(M){x!=null&&x.has(M)||(P=!0,re(g,M,m))}),P&&f++,T}};return T}return d(new e.Map,new e.Map,void 0)}$.createManyToManyPathMap=W;function re(d,G,g){var p=d.get(G);p||(p=new e.Set,d.set(G,p)),p.add(g)}function ye(d,G,g,p){p===void 0&&(p=!0);var f=d.get(G);return f!=null&&f.delete(g)?(p&&!f.size&&d.delete(G),!0):!1}function O(d){return e.mapDefined(d.declarations,function(G){var g;return(g=e.getSourceFileOfNode(G))===null||g===void 0?void 0:g.resolvedPath})}function A(d,G){var g=d.getSymbolAtLocation(G);return g&&O(g)}function D(d,G,g,p){return e.toPath(d.getProjectReferenceRedirect(G)||G,g,p)}function de(d,G,g){var p;if(G.imports&&G.imports.length>0)for(var f=d.getTypeChecker(),T=0,m=G.imports;T<m.length;T++){var N=m[T],P=A(f,N);P==null||P.forEach(De)}var x=e.getDirectoryPath(G.resolvedPath);if(G.referencedFiles&&G.referencedFiles.length>0)for(var M=0,me=G.referencedFiles;M<me.length;M++){var z=me[M],K=D(d,z.fileName,x,g);De(K)}if(G.resolvedTypeReferenceDirectiveNames&&G.resolvedTypeReferenceDirectiveNames.forEach(function(en){if(en){var fe=en.resolvedFileName,Ne=D(d,fe,x,g);De(Ne)}}),G.moduleAugmentations.length)for(var f=d.getTypeChecker(),I=0,Ae=G.moduleAugmentations;I<Ae.length;I++){var Oe=Ae[I];if(e.isStringLiteral(Oe)){var te=f.getSymbolAtLocation(Oe);te&&Be(te)}}for(var Se=0,be=d.getTypeChecker().getAmbientModules();Se<be.length;Se++){var Ce=be[Se];Ce.declarations&&Ce.declarations.length>1&&Be(Ce)}return p;function Be(en){if(en.declarations)for(var fe=0,Ne=en.declarations;fe<Ne.length;fe++){var qe=Ne[fe],pe=e.getSourceFileOfNode(qe);pe&&pe!==G&&De(pe.resolvedPath)}}function De(en){(p||(p=new e.Set)).add(en)}}function _e(d,G){return G&&!G.referencedMap==!d}$.canReuseOldState=_e;function y(d,G,g,p){var f=new e.Map,T=d.getCompilerOptions().module!==e.ModuleKind.None?W():void 0,m=T?W():void 0,N=new e.Set,P=_e(T,g);d.getTypeChecker();for(var x=0,M=d.getSourceFiles();x<M.length;x++){var me=M[x],z=e.Debug.checkDefined(me.version,"Program intended to be used with Builder should have source files with versions set"),K=P?g.fileInfos.get(me.resolvedPath):void 0;if(T){var I=de(d,me,G);if(I&&T.set(me.resolvedPath,I),P){var Ae=g.exportedModulesMap.getValues(me.resolvedPath);Ae&&m.set(me.resolvedPath,Ae)}}f.set(me.resolvedPath,{version:z,signature:K&&K.signature,affectsGlobalScope:R(me)||void 0})}return{fileInfos:f,referencedMap:T,exportedModulesMap:m,hasCalledUpdateShapeSignature:N,useFileVersionAsSignature:!p&&!P}}$.create=y;function V(d){d.allFilesExcludingDefaultLibraryFile=void 0,d.allFileNames=void 0}$.releaseCache=V;function Z(d){var G,g;return{fileInfos:new e.Map(d.fileInfos),referencedMap:(G=d.referencedMap)===null||G===void 0?void 0:G.clone(),exportedModulesMap:(g=d.exportedModulesMap)===null||g===void 0?void 0:g.clone(),hasCalledUpdateShapeSignature:new e.Set(d.hasCalledUpdateShapeSignature),useFileVersionAsSignature:d.useFileVersionAsSignature}}$.clone=Z;function E(d,G,g,p,f,T,m){var N=T||new e.Map,P=G.getSourceFileByPath(g);if(!P)return e.emptyArray;if(!ee(d,G,P,N,p,f,m))return[P];var x=(d.referencedMap?C:U)(d,G,P,N,p,f,m);return T||H(d,N),x}$.getFilesAffectedBy=E;function H(d,G){G.forEach(function(g,p){return L(d,g,p)})}$.updateSignaturesFromCache=H;function L(d,G,g){d.fileInfos.get(g).signature=G,d.hasCalledUpdateShapeSignature.add(g)}$.updateSignatureOfFile=L;function ee(d,G,g,p,f,T,m,N){if(N===void 0&&(N=d.useFileVersionAsSignature),e.Debug.assert(!!g),e.Debug.assert(!m||!!d.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),d.hasCalledUpdateShapeSignature.has(g.resolvedPath)||p.has(g.resolvedPath))return!1;var P=d.fileInfos.get(g.resolvedPath);if(!P)return e.Debug.fail();var x=P.signature,M;if(!g.isDeclarationFile&&!N){var me=o(G,g,!0,f,void 0,!0),z=e.firstOrUndefined(me.outputFiles);z&&(e.Debug.assert(e.fileExtensionIs(z.name,".d.ts"),"File extension for signature expected to be dts",function(){return"Found: "+e.getAnyExtensionFromPath(z.name)+" for "+z.name+":: All output files: "+JSON.stringify(me.outputFiles.map(function(I){return I.name}))}),M=(T||e.generateDjb2Hash)(z.text),m&&M!==x&&k(g,me.exportedModulesFromDeclarationEmit,m))}if(M===void 0&&(M=g.version,m&&M!==x)){var K=d.referencedMap?d.referencedMap.getValues(g.resolvedPath):void 0;K?m.set(g.resolvedPath,K):m.deleteKey(g.resolvedPath)}return p.set(g.resolvedPath,M),M!==x}$.updateShapeSignature=ee;function k(d,G,g){if(!G){g.deleteKey(d.resolvedPath);return}var p;G.forEach(function(T){return f(O(T))}),p?g.set(d.resolvedPath,p):g.deleteKey(d.resolvedPath);function f(T){T!=null&&T.length&&(p||(p=new e.Set),T.forEach(function(m){return p.add(m)}))}}function b(d,G){var g;if(G){e.Debug.assert(!!d.exportedModulesMap);var p=G.id,f=G.version();if(d.previousCache){if(d.previousCache.id===p&&d.previousCache.version===f)return;d.previousCache.id=p,d.previousCache.version=f}else d.previousCache={id:p,version:f};(g=G.deletedKeys())===null||g===void 0||g.forEach(function(T){return d.exportedModulesMap.deleteKey(T)}),G.forEach(function(T,m){return d.exportedModulesMap.set(m,T)})}}$.updateExportedFilesMapFromCache=b;function ie(d,G,g){var p=G.getCompilerOptions();if(e.outFile(p)||!d.referencedMap||R(g))return q(d,G);for(var f=new e.Set,T=[g.resolvedPath];T.length;){var m=T.pop();if(!f.has(m)){f.add(m);var N=d.referencedMap.getValues(m);if(N)for(var P=N.keys(),x=P.next();!x.done;x=P.next())T.push(x.value)}}return e.arrayFrom(e.mapDefinedIterator(f.keys(),function(M){var me,z;return(z=(me=G.getSourceFileByPath(M))===null||me===void 0?void 0:me.fileName)!==null&&z!==void 0?z:M}))}$.getAllDependencies=ie;function q(d,G){if(!d.allFileNames){var g=G.getSourceFiles();d.allFileNames=g===e.emptyArray?e.emptyArray:g.map(function(p){return p.fileName})}return d.allFileNames}function oe(d,G){var g=d.referencedMap.getKeys(G);return g?e.arrayFrom(g.keys()):[]}$.getReferencedByPaths=oe;function se(d){for(var G=0,g=d.statements;G<g.length;G++){var p=g[G];if(!e.isModuleWithStringLiteralName(p))return!1}return!0}function w(d){return e.some(d.moduleAugmentations,function(G){return e.isGlobalScopeAugmentation(G.parent)})}function R(d){return w(d)||!e.isExternalOrCommonJsModule(d)&&!e.isJsonSourceFile(d)&&!se(d)}function ne(d,G,g){if(d.allFilesExcludingDefaultLibraryFile)return d.allFilesExcludingDefaultLibraryFile;var p;g&&N(g);for(var f=0,T=G.getSourceFiles();f<T.length;f++){var m=T[f];m!==g&&N(m)}return d.allFilesExcludingDefaultLibraryFile=p||e.emptyArray,d.allFilesExcludingDefaultLibraryFile;function N(P){G.isSourceFileDefaultLibrary(P)||(p||(p=[])).push(P)}}$.getAllFilesExcludingDefaultLibraryFile=ne;function U(d,G,g){var p=G.getCompilerOptions();return p&&e.outFile(p)?[g]:ne(d,G,g)}function C(d,G,g,p,f,T,m){if(R(g))return ne(d,G,g);var N=G.getCompilerOptions();if(N&&(N.isolatedModules||e.outFile(N)))return[g];var P=new e.Map;P.set(g.resolvedPath,g);for(var x=oe(d,g.resolvedPath);x.length>0;){var M=x.pop();if(!P.has(M)){var me=G.getSourceFileByPath(M);P.set(M,me),me&&ee(d,G,me,p,f,T,m)&&x.push.apply(x,oe(d,me.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(P.values(),function(z){return z}))}})(ue=e.BuilderState||(e.BuilderState={}))})(vn||(vn={}));var vn;(function(e){var o;(function(f){f[f.DtsOnly=0]="DtsOnly",f[f.Full=1]="Full"})(o=e.BuilderFileEmit||(e.BuilderFileEmit={}));function ue(f,T){return f===T||f!==void 0&&T!==void 0&&f.size===T.size&&!e.forEachKey(f,function(m){return!T.has(m)})}function $(f,T,m,N){var P=e.BuilderState.create(f,T,m,N);P.program=f;var x=f.getCompilerOptions();P.compilerOptions=x,e.outFile(x)||(P.semanticDiagnosticsPerFile=new e.Map),P.changedFilesSet=new e.Set;var M=e.BuilderState.canReuseOldState(P.referencedMap,m),me=M?m.compilerOptions:void 0,z=M&&m.semanticDiagnosticsPerFile&&!!P.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(x,me);if(M){if(!m.currentChangedFilePath){var K=m.currentAffectedFilesSignatures;e.Debug.assert(!m.affectedFiles&&(!K||!K.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var I=m.changedFilesSet;z&&e.Debug.assert(!I||!e.forEachKey(I,function(be){return m.semanticDiagnosticsPerFile.has(be)}),"Semantic diagnostics shouldnt be available for changed files"),I==null||I.forEach(function(be){return P.changedFilesSet.add(be)}),!e.outFile(x)&&m.affectedFilesPendingEmit&&(P.affectedFilesPendingEmit=m.affectedFilesPendingEmit.slice(),P.affectedFilesPendingEmitKind=m.affectedFilesPendingEmitKind&&new e.Map(m.affectedFilesPendingEmitKind),P.affectedFilesPendingEmitIndex=m.affectedFilesPendingEmitIndex,P.seenAffectedFiles=new e.Set)}var Ae=P.referencedMap,Oe=M?m.referencedMap:void 0,te=z&&!x.skipLibCheck==!me.skipLibCheck,Se=te&&!x.skipDefaultLibCheck==!me.skipDefaultLibCheck;return P.fileInfos.forEach(function(be,Ce){var Be,De;if(!M||!(Be=m.fileInfos.get(Ce))||Be.version!==be.version||!ue(De=Ae&&Ae.getValues(Ce),Oe&&Oe.getValues(Ce))||De&&e.forEachKey(De,function(Ne){return!P.fileInfos.has(Ne)&&m.fileInfos.has(Ne)}))P.changedFilesSet.add(Ce);else if(z){var en=f.getSourceFileByPath(Ce);if(en.isDeclarationFile&&!te||en.hasNoDefaultLib&&!Se)return;var fe=m.semanticDiagnosticsPerFile.get(Ce);fe&&(P.semanticDiagnosticsPerFile.set(Ce,m.hasReusableDiagnostic?Y(fe,f,T):fe),P.semanticDiagnosticsFromOldState||(P.semanticDiagnosticsFromOldState=new e.Set),P.semanticDiagnosticsFromOldState.add(Ce))}}),M&&e.forEachEntry(m.fileInfos,function(be,Ce){return be.affectsGlobalScope&&!P.fileInfos.has(Ce)})?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(P,f,void 0).forEach(function(be){return P.changedFilesSet.add(be.resolvedPath)}):me&&!e.outFile(x)&&e.compilerOptionsAffectEmit(x,me)&&(f.getSourceFiles().forEach(function(be){return d(P,be.resolvedPath,1)}),e.Debug.assert(!P.seenAffectedFiles||!P.seenAffectedFiles.size),P.seenAffectedFiles=P.seenAffectedFiles||new e.Set),P.buildInfoEmitPending=!!P.changedFilesSet.size,P}function Y(f,T,m){if(!f.length)return e.emptyArray;var N=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(T.getCompilerOptions()),T.getCurrentDirectory()));return f.map(function(x){var M=W(x,T,P);M.reportsUnnecessary=x.reportsUnnecessary,M.reportsDeprecated=x.reportDeprecated,M.source=x.source,M.skippedOn=x.skippedOn;var me=x.relatedInformation;return M.relatedInformation=me?me.length?me.map(function(z){return W(z,T,P)}):[]:void 0,M});function P(x){return e.toPath(x,N,m)}}function W(f,T,m){var N=f.file;return Mt(Mt({},f),{file:N?T.getSourceFileByPath(m(N)):void 0})}function re(f){e.BuilderState.releaseCache(f),f.program=void 0}function ye(f){var T,m=e.BuilderState.clone(f);return m.semanticDiagnosticsPerFile=f.semanticDiagnosticsPerFile&&new e.Map(f.semanticDiagnosticsPerFile),m.changedFilesSet=new e.Set(f.changedFilesSet),m.affectedFiles=f.affectedFiles,m.affectedFilesIndex=f.affectedFilesIndex,m.currentChangedFilePath=f.currentChangedFilePath,m.currentAffectedFilesSignatures=f.currentAffectedFilesSignatures&&new e.Map(f.currentAffectedFilesSignatures),m.currentAffectedFilesExportedModulesMap=(T=f.currentAffectedFilesExportedModulesMap)===null||T===void 0?void 0:T.clone(),m.seenAffectedFiles=f.seenAffectedFiles&&new e.Set(f.seenAffectedFiles),m.cleanedDiagnosticsOfLibFiles=f.cleanedDiagnosticsOfLibFiles,m.semanticDiagnosticsFromOldState=f.semanticDiagnosticsFromOldState&&new e.Set(f.semanticDiagnosticsFromOldState),m.program=f.program,m.compilerOptions=f.compilerOptions,m.affectedFilesPendingEmit=f.affectedFilesPendingEmit&&f.affectedFilesPendingEmit.slice(),m.affectedFilesPendingEmitKind=f.affectedFilesPendingEmitKind&&new e.Map(f.affectedFilesPendingEmitKind),m.affectedFilesPendingEmitIndex=f.affectedFilesPendingEmitIndex,m.seenEmittedFiles=f.seenEmittedFiles&&new e.Map(f.seenEmittedFiles),m.programEmitComplete=f.programEmitComplete,m}function O(f,T){e.Debug.assert(!T||!f.affectedFiles||f.affectedFiles[f.affectedFilesIndex-1]!==T||!f.semanticDiagnosticsPerFile.has(T.resolvedPath))}function A(f,T,m){for(;;){var N=f.affectedFiles;if(N){for(var P=f.seenAffectedFiles,x=f.affectedFilesIndex;x<N.length;){var M=N[x];if(!P.has(M.resolvedPath))return f.affectedFilesIndex=x,de(f,M,T,m),M;x++}f.changedFilesSet.delete(f.currentChangedFilePath),f.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(f,f.currentAffectedFilesSignatures),f.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(f,f.currentAffectedFilesExportedModulesMap),f.affectedFiles=void 0}var me=f.changedFilesSet.keys().next();if(me.done)return;var z=e.Debug.checkDefined(f.program),K=z.getCompilerOptions();if(e.outFile(K))return e.Debug.assert(!f.semanticDiagnosticsPerFile),z;f.currentAffectedFilesSignatures||(f.currentAffectedFilesSignatures=new e.Map),f.exportedModulesMap&&(f.currentAffectedFilesExportedModulesMap||(f.currentAffectedFilesExportedModulesMap=e.BuilderState.createManyToManyPathMap())),f.affectedFiles=e.BuilderState.getFilesAffectedBy(f,z,me.value,T,m,f.currentAffectedFilesSignatures,f.currentAffectedFilesExportedModulesMap),f.currentChangedFilePath=me.value,f.affectedFilesIndex=0,f.seenAffectedFiles||(f.seenAffectedFiles=new e.Set)}}function D(f){var T=f.affectedFilesPendingEmit;if(T){for(var m=f.seenEmittedFiles||(f.seenEmittedFiles=new e.Map),N=f.affectedFilesPendingEmitIndex;N<T.length;N++){var P=e.Debug.checkDefined(f.program).getSourceFileByPath(T[N]);if(P){var x=m.get(P.resolvedPath),M=e.Debug.checkDefined(e.Debug.checkDefined(f.affectedFilesPendingEmitKind).get(P.resolvedPath));if(x===void 0||x<M)return f.affectedFilesPendingEmitIndex=N,{affectedFile:P,emitKind:M}}}f.affectedFilesPendingEmit=void 0,f.affectedFilesPendingEmitKind=void 0,f.affectedFilesPendingEmitIndex=void 0}}function de(f,T,m,N){var P;if(y(f,T.resolvedPath),f.allFilesExcludingDefaultLibraryFile===f.affectedFiles){if(!f.cleanedDiagnosticsOfLibFiles){f.cleanedDiagnosticsOfLibFiles=!0;var x=e.Debug.checkDefined(f.program),M=x.getCompilerOptions();e.forEach(x.getSourceFiles(),function(me){return x.isSourceFileDefaultLibrary(me)&&!e.skipTypeChecking(me,M,x)&&y(f,me.resolvedPath)})}e.BuilderState.updateShapeSignature(f,e.Debug.checkDefined(f.program),T,e.Debug.checkDefined(f.currentAffectedFilesSignatures),m,N,f.currentAffectedFilesExportedModulesMap);return}else e.Debug.assert(f.hasCalledUpdateShapeSignature.has(T.resolvedPath)||((P=f.currentAffectedFilesSignatures)===null||P===void 0?void 0:P.has(T.resolvedPath)),"Signature not updated for affected file: "+T.fileName);f.compilerOptions.assumeChangesOnlyAffectDirectDependencies||Z(f,T,function(me,z){return _e(me,z,m,N)})}function _e(f,T,m,N){if(y(f,T),!f.changedFilesSet.has(T)){var P=e.Debug.checkDefined(f.program),x=P.getSourceFileByPath(T);x&&(e.BuilderState.updateShapeSignature(f,P,x,e.Debug.checkDefined(f.currentAffectedFilesSignatures),m,N,f.currentAffectedFilesExportedModulesMap,!0),e.getEmitDeclarations(f.compilerOptions)&&d(f,T,0))}}function y(f,T){return f.semanticDiagnosticsFromOldState?(f.semanticDiagnosticsFromOldState.delete(T),f.semanticDiagnosticsPerFile.delete(T),!f.semanticDiagnosticsFromOldState.size):!0}function V(f,T){var m=e.Debug.checkDefined(f.currentAffectedFilesSignatures).get(T),N=e.Debug.checkDefined(f.fileInfos.get(T)).signature;return m!==N}function Z(f,T,m){var N,P;if(!(!f.exportedModulesMap||!f.changedFilesSet.has(T.resolvedPath))&&V(f,T.resolvedPath)){if(f.compilerOptions.isolatedModules){var x=new e.Map;x.set(T.resolvedPath,!0);for(var M=e.BuilderState.getReferencedByPaths(f,T.resolvedPath);M.length>0;){var me=M.pop();if(!x.has(me)&&(x.set(me,!0),m(f,me),V(f,me))){var z=e.Debug.checkDefined(f.program).getSourceFileByPath(me);M.push.apply(M,e.BuilderState.getReferencedByPaths(f,z.resolvedPath))}}}e.Debug.assert(!!f.currentAffectedFilesExportedModulesMap);var K=new e.Set;(N=f.currentAffectedFilesExportedModulesMap.getKeys(T.resolvedPath))===null||N===void 0||N.forEach(function(I){return E(f,I,K,m)}),(P=f.exportedModulesMap.getKeys(T.resolvedPath))===null||P===void 0||P.forEach(function(I){var Ae;return!f.currentAffectedFilesExportedModulesMap.hasKey(I)&&!(!((Ae=f.currentAffectedFilesExportedModulesMap.deletedKeys())===null||Ae===void 0)&&Ae.has(I))&&E(f,I,K,m)})}}function E(f,T,m,N){var P;(P=f.referencedMap.getKeys(T))===null||P===void 0||P.forEach(function(x){return H(f,x,m,N)})}function H(f,T,m,N){var P,x,M;e.tryAddToSet(m,T)&&(N(f,T),e.Debug.assert(!!f.currentAffectedFilesExportedModulesMap),(P=f.currentAffectedFilesExportedModulesMap.getKeys(T))===null||P===void 0||P.forEach(function(me){return H(f,me,m,N)}),(x=f.exportedModulesMap.getKeys(T))===null||x===void 0||x.forEach(function(me){var z;return!f.currentAffectedFilesExportedModulesMap.hasKey(me)&&!(!((z=f.currentAffectedFilesExportedModulesMap.deletedKeys())===null||z===void 0)&&z.has(me))&&H(f,me,m,N)}),(M=f.referencedMap.getKeys(T))===null||M===void 0||M.forEach(function(me){return!m.has(me)&&N(f,me)}))}function L(f,T,m,N,P){P?f.buildInfoEmitPending=!1:T===f.program?(f.changedFilesSet.clear(),f.programEmitComplete=!0):(f.seenAffectedFiles.add(T.resolvedPath),m!==void 0&&(f.seenEmittedFiles||(f.seenEmittedFiles=new e.Map)).set(T.resolvedPath,m),N?(f.affectedFilesPendingEmitIndex++,f.buildInfoEmitPending=!0):f.affectedFilesIndex++)}function ee(f,T,m){return L(f,m),{result:T,affected:m}}function k(f,T,m,N,P,x){return L(f,m,N,P,x),{result:T,affected:m}}function b(f,T,m){return e.concatenate(ie(f,T,m),e.Debug.checkDefined(f.program).getProgramDiagnostics(T))}function ie(f,T,m){var N=T.resolvedPath;if(f.semanticDiagnosticsPerFile){var P=f.semanticDiagnosticsPerFile.get(N);if(P)return e.filterSemanticDiagnostics(P,f.compilerOptions)}var x=e.Debug.checkDefined(f.program).getBindAndCheckDiagnostics(T,m);return f.semanticDiagnosticsPerFile&&f.semanticDiagnosticsPerFile.set(N,x),e.filterSemanticDiagnostics(x,f.compilerOptions)}function q(f,T){if(e.outFile(f.compilerOptions))return;var m=e.Debug.checkDefined(f.program).getCurrentDirectory(),N=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(f.compilerOptions),m)),P=[],x=new e.Map,M,me,z=e.arrayFrom(f.fileInfos.entries(),function(pn){var Qe=pn[0],Re=pn[1],He=pe(Qe);e.Debug.assert(P[He-1]===qe(Qe));var Ln=f.currentAffectedFilesSignatures&&f.currentAffectedFilesSignatures.get(Qe),Un=Ln!=null?Ln:Re.signature;return Re.version===Un?Re.affectsGlobalScope?{version:Re.version,signature:void 0,affectsGlobalScope:!0}:Re.version:Un!==void 0?Ln===void 0?Re:{version:Re.version,signature:Ln,affectsGlobalScope:Re.affectsGlobalScope}:{version:Re.version,signature:!1,affectsGlobalScope:Re.affectsGlobalScope}}),K;f.referencedMap&&(K=e.arrayFrom(f.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map(function(pn){return[pe(pn),we(f.referencedMap.getValues(pn))]}));var I;f.exportedModulesMap&&(I=e.mapDefined(e.arrayFrom(f.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),function(pn){var Qe;if(f.currentAffectedFilesExportedModulesMap){if(!((Qe=f.currentAffectedFilesExportedModulesMap.deletedKeys())===null||Qe===void 0)&&Qe.has(pn))return;var Re=f.currentAffectedFilesExportedModulesMap.getValues(pn);if(Re)return[pe(pn),we(Re)]}return[pe(pn),we(f.exportedModulesMap.getValues(pn))]}));var Ae;if(f.semanticDiagnosticsPerFile)for(var Oe=0,te=e.arrayFrom(f.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);Oe<te.length;Oe++){var Se=te[Oe],be=f.semanticDiagnosticsPerFile.get(Se);(Ae||(Ae=[])).push(be.length?[pe(Se),f.hasReusableDiagnostic?be:w(be,qe)]:pe(Se))}var Ce;if(f.affectedFilesPendingEmit)for(var Be=new e.Set,De=0,en=f.affectedFilesPendingEmit.slice(f.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);De<en.length;De++){var fe=en[De];e.tryAddToSet(Be,fe)&&(Ce||(Ce=[])).push([pe(fe),f.affectedFilesPendingEmitKind.get(fe)])}return{fileNames:P,fileInfos:z,options:oe(f.compilerOptions,Ne),fileIdsList:M,referencedMap:K,exportedModulesMap:I,semanticDiagnosticsPerFile:Ae,affectedFilesPendingEmit:Ce};function Ne(pn){return qe(e.getNormalizedAbsolutePath(pn,m))}function qe(pn){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(N,pn,T))}function pe(pn){var Qe=x.get(pn);return Qe===void 0&&(P.push(qe(pn)),x.set(pn,Qe=P.length)),Qe}function we(pn){var Qe=e.arrayFrom(pn.keys(),pe).sort(e.compareValues),Re=Qe.join(),He=me==null?void 0:me.get(Re);return He===void 0&&((M||(M=[])).push(Qe),(me||(me=new e.Map)).set(Re,He=M.length)),He}}function oe(f,T){for(var m,N=e.getOptionsNameMap().optionsNameMap,P=0,x=e.getOwnKeys(f).sort(e.compareStringsCaseSensitive);P<x.length;P++){var M=x[P],me=M.toLowerCase(),z=N.get(me);(z!=null&&z.affectsEmit||z!=null&&z.affectsSemanticDiagnostics||me==="strict"||me==="skiplibcheck"||me==="skipdefaultlibcheck")&&((m||(m={}))[M]=se(z,f[M],T))}return m}function se(f,T,m){if(f){if(f.type==="list"){var N=T;if(f.element.isFilePath&&N.length)return N.map(m)}else if(f.isFilePath)return m(T)}return T}function w(f,T){return e.Debug.assert(!!f.length),f.map(function(m){var N=R(m,T);N.reportsUnnecessary=m.reportsUnnecessary,N.reportDeprecated=m.reportsDeprecated,N.source=m.source,N.skippedOn=m.skippedOn;var P=m.relatedInformation;return N.relatedInformation=P?P.length?P.map(function(x){return R(x,T)}):[]:void 0,N})}function R(f,T){var m=f.file;return Mt(Mt({},f),{file:m?T(m.resolvedPath):void 0})}var ne;(function(f){f[f.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",f[f.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"})(ne=e.BuilderProgramKind||(e.BuilderProgramKind={}));function U(f,T,m,N,P,x){var M,me,z;return f===void 0?(e.Debug.assert(T===void 0),M=m,z=N,e.Debug.assert(!!z),me=z.getProgram()):e.isArray(f)?(z=N,me=e.createProgram({rootNames:f,options:T,host:m,oldProgram:z&&z.getProgramOrUndefined(),configFileParsingDiagnostics:P,projectReferences:x}),M=m):(me=f,M=T,z=m,P=N),{host:M,newProgram:me,oldProgram:z,configFileParsingDiagnostics:P||e.emptyArray}}e.getBuilderCreationParameters=U;function C(f,T){var m=T.newProgram,N=T.host,P=T.oldProgram,x=T.configFileParsingDiagnostics,M=P&&P.getState();if(M&&m===M.program&&x===m.getConfigFileParsingDiagnostics())return m=void 0,M=void 0,P;var me=e.createGetCanonicalFileName(N.useCaseSensitiveFileNames()),z=e.maybeBind(N,N.createHash),K=$(m,me,M,N.disableUseFileVersionAsSignature),I;m.getProgramBuildInfo=function(){return q(K,me)},m=void 0,P=void 0,M=void 0;var Ae=function(){return K},Oe=p(Ae,x);return Oe.getState=Ae,Oe.backupState=function(){e.Debug.assert(I===void 0),I=ye(K)},Oe.restoreState=function(){K=e.Debug.checkDefined(I),I=void 0},Oe.getAllDependencies=function(De){return e.BuilderState.getAllDependencies(K,e.Debug.checkDefined(K.program),De)},Oe.getSemanticDiagnostics=Be,Oe.emit=be,Oe.releaseProgram=function(){re(K),I=void 0},f===ne.SemanticDiagnosticsBuilderProgram?Oe.getSemanticDiagnosticsOfNextAffectedFile=Ce:f===ne.EmitAndSemanticDiagnosticsBuilderProgram?(Oe.getSemanticDiagnosticsOfNextAffectedFile=Ce,Oe.emitNextAffectedFile=Se,Oe.emitBuildInfo=te):e.notImplemented(),Oe;function te(De,en){if(K.buildInfoEmitPending){var fe=e.Debug.checkDefined(K.program).emitBuildInfo(De||e.maybeBind(N,N.writeFile),en);return K.buildInfoEmitPending=!1,fe}return e.emitSkippedWithNoDiagnostics}function Se(De,en,fe,Ne){var qe=A(K,en,z),pe=1,we=!1;if(!qe)if(e.outFile(K.compilerOptions)){var Re=e.Debug.checkDefined(K.program);if(K.programEmitComplete)return;qe=Re}else{var pn=D(K);if(!pn){if(!K.buildInfoEmitPending)return;var Qe=e.Debug.checkDefined(K.program);return k(K,Qe.emitBuildInfo(De||e.maybeBind(N,N.writeFile),en),Qe,1,!1,!0)}qe=pn.affectedFile,pe=pn.emitKind,we=!0}return k(K,e.Debug.checkDefined(K.program).emit(qe===K.program?void 0:qe,De||e.maybeBind(N,N.writeFile),en,fe||pe===0,Ne),qe,pe,we)}function be(De,en,fe,Ne,qe){var pe=!1,we,pn,Qe;f!==ne.EmitAndSemanticDiagnosticsBuilderProgram&&!De&&!e.outFile(K.compilerOptions)&&!K.compilerOptions.noEmit&&K.compilerOptions.noEmitOnError&&(pe=!0,we=K.affectedFilesPendingEmit&&K.affectedFilesPendingEmit.slice(),pn=K.affectedFilesPendingEmitKind&&new e.Map(K.affectedFilesPendingEmitKind),Qe=K.affectedFilesPendingEmitIndex),f===ne.EmitAndSemanticDiagnosticsBuilderProgram&&O(K,De);var Re=e.handleNoEmitOptions(Oe,De,en,fe);if(Re)return Re;if(pe&&(K.affectedFilesPendingEmit=we,K.affectedFilesPendingEmitKind=pn,K.affectedFilesPendingEmitIndex=Qe),!De&&f===ne.EmitAndSemanticDiagnosticsBuilderProgram){for(var He=[],Ln=!1,Un=void 0,fn=[],En=void 0;En=Se(en,fe,Ne,qe);)Ln=Ln||En.result.emitSkipped,Un=e.addRange(Un,En.result.diagnostics),fn=e.addRange(fn,En.result.emittedFiles),He=e.addRange(He,En.result.sourceMaps);return{emitSkipped:Ln,diagnostics:Un||e.emptyArray,emittedFiles:fn,sourceMaps:He}}return e.Debug.checkDefined(K.program).emit(De,en||e.maybeBind(N,N.writeFile),fe,Ne,qe)}function Ce(De,en){for(;;){var fe=A(K,De,z);if(fe){if(fe===K.program)return ee(K,K.program.getSemanticDiagnostics(void 0,De),fe)}else return;if((f===ne.EmitAndSemanticDiagnosticsBuilderProgram||K.compilerOptions.noEmit||K.compilerOptions.noEmitOnError)&&d(K,fe.resolvedPath,1),en&&en(fe)){L(K,fe);continue}return ee(K,b(K,fe,De),fe)}}function Be(De,en){O(K,De);var fe=e.Debug.checkDefined(K.program).getCompilerOptions();if(e.outFile(fe))return e.Debug.assert(!K.semanticDiagnosticsPerFile),e.Debug.checkDefined(K.program).getSemanticDiagnostics(De,en);if(De)return b(K,De,en);for(;Ce(en););for(var Ne,qe=0,pe=e.Debug.checkDefined(K.program).getSourceFiles();qe<pe.length;qe++){var we=pe[qe];Ne=e.addRange(Ne,b(K,we,en))}return Ne||e.emptyArray}}e.createBuilderProgram=C;function d(f,T,m){f.affectedFilesPendingEmit||(f.affectedFilesPendingEmit=[]),f.affectedFilesPendingEmitKind||(f.affectedFilesPendingEmitKind=new e.Map);var N=f.affectedFilesPendingEmitKind.get(T);f.affectedFilesPendingEmit.push(T),f.affectedFilesPendingEmitKind.set(T,N||m),f.affectedFilesPendingEmitIndex===void 0&&(f.affectedFilesPendingEmitIndex=0)}function G(f){return e.isString(f)?{version:f,signature:f,affectsGlobalScope:void 0}:e.isString(f.signature)?f:{version:f.version,signature:f.signature===!1?void 0:f.version,affectsGlobalScope:f.affectsGlobalScope}}e.toBuilderStateFileInfo=G;function g(f,T,m){var N,P=e.getDirectoryPath(e.getNormalizedAbsolutePath(T,m.getCurrentDirectory())),x=e.createGetCanonicalFileName(m.useCaseSensitiveFileNames()),M=f.fileNames.map(I),me=(N=f.fileIdsList)===null||N===void 0?void 0:N.map(function(be){return new e.Set(be.map(Oe))}),z=new e.Map;f.fileInfos.forEach(function(be,Ce){return z.set(Oe(Ce+1),G(be))});var K={fileInfos:z,compilerOptions:f.options?e.convertToOptionsWithAbsolutePaths(f.options,Ae):{},referencedMap:Se(f.referencedMap),exportedModulesMap:Se(f.exportedModulesMap),semanticDiagnosticsPerFile:f.semanticDiagnosticsPerFile&&e.arrayToMap(f.semanticDiagnosticsPerFile,function(be){return Oe(e.isNumber(be)?be:be[0])},function(be){return e.isNumber(be)?e.emptyArray:be[1]}),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(f.affectedFilesPendingEmit,function(be){return Oe(be[0])}),affectedFilesPendingEmitKind:f.affectedFilesPendingEmit&&e.arrayToMap(f.affectedFilesPendingEmit,function(be){return Oe(be[0])},function(be){return be[1]}),affectedFilesPendingEmitIndex:f.affectedFilesPendingEmit&&0};return{getState:function(){return K},backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return K.compilerOptions},getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented,emitBuildInfo:e.notImplemented,close:e.noop};function I(be){return e.toPath(be,P,x)}function Ae(be){return e.getNormalizedAbsolutePath(be,P)}function Oe(be){return M[be-1]}function te(be){return me[be-1]}function Se(be){if(be){var Ce=e.BuilderState.createManyToManyPathMap();return be.forEach(function(Be){var De=Be[0],en=Be[1];return Ce.set(Oe(De),te(en))}),Ce}}}e.createBuildProgramUsingProgramBuildInfo=g;function p(f,T){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:m,getProgramOrUndefined:function(){return f().program},releaseProgram:function(){return f().program=void 0},getCompilerOptions:function(){return f().compilerOptions},getSourceFile:function(N){return m().getSourceFile(N)},getSourceFiles:function(){return m().getSourceFiles()},getOptionsDiagnostics:function(N){return m().getOptionsDiagnostics(N)},getGlobalDiagnostics:function(N){return m().getGlobalDiagnostics(N)},getConfigFileParsingDiagnostics:function(){return T},getSyntacticDiagnostics:function(N,P){return m().getSyntacticDiagnostics(N,P)},getDeclarationDiagnostics:function(N,P){return m().getDeclarationDiagnostics(N,P)},getSemanticDiagnostics:function(N,P){return m().getSemanticDiagnostics(N,P)},emit:function(N,P,x,M,me){return m().emit(N,P,x,M,me)},emitBuildInfo:function(N,P){return m().emitBuildInfo(N,P)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return m().getCurrentDirectory()},close:e.noop};function m(){return e.Debug.checkDefined(f().program)}}e.createRedirectedBuilderProgram=p})(vn||(vn={}));var vn;(function(e){function o(Y,W,re,ye,O,A){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(Y,W,re,ye,O,A))}e.createSemanticDiagnosticsBuilderProgram=o;function ue(Y,W,re,ye,O,A){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(Y,W,re,ye,O,A))}e.createEmitAndSemanticDiagnosticsBuilderProgram=ue;function $(Y,W,re,ye,O,A){var D=e.getBuilderCreationParameters(Y,W,re,ye,O,A),de=D.newProgram,_e=D.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram(function(){return{program:de,compilerOptions:de.getCompilerOptions()}},_e)}e.createAbstractBuilder=$})(vn||(vn={}));var vn;(function(e){function o(Y){return e.endsWith(Y,"/node_modules/.staging")?e.removeSuffix(Y,"/.staging"):e.some(e.ignoredPaths,function(W){return e.stringContains(Y,W)})?void 0:Y}e.removeIgnoredPath=o;function ue(Y){var W=e.getRootLength(Y);if(Y.length===W)return!1;var re=Y.indexOf(e.directorySeparator,W);if(re===-1)return!1;var ye=Y.substring(W,re+1),O=W>1||Y.charCodeAt(0)!==47;if(O&&Y.search(/[a-zA-Z]:/)!==0&&ye.search(/[a-zA-z]\$\//)===0){if(re=Y.indexOf(e.directorySeparator,re+1),re===-1)return!1;ye=Y.substring(W+ye.length,re+1)}if(O&&ye.search(/users\//i)!==0)return!0;for(var A=re+1,D=2;D>0;D--)if(A=Y.indexOf(e.directorySeparator,A)+1,A===0)return!1;return!0}e.canWatchDirectory=ue;function $(Y,W,re){var ye,O,A,D=e.createMultiMap(),de=[],_e=e.createMultiMap(),y=!1,V,Z,E,H=e.memoize(function(){return Y.getCurrentDirectory()}),L=Y.getCachedDirectoryStructureHost(),ee=new e.Map,k=e.createCacheWithRedirects(),b=e.createCacheWithRedirects(),ie=e.createModuleResolutionCache(H(),Y.getCanonicalFileName,void 0,k,b),q=new e.Map,oe=e.createCacheWithRedirects(),se=e.createTypeReferenceDirectiveResolutionCache(H(),Y.getCanonicalFileName,void 0,ie.getPackageJsonInfoCache(),oe),w=[".ts",".tsx",".js",".jsx",".json"],R=new e.Map,ne=new e.Map,U=W&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(W,H())),C=U&&Y.toPath(U),d=C!==void 0?C.split(e.directorySeparator).length:0,G=new e.Map;return{getModuleResolutionCache:function(){return ie},startRecordingFilesWithChangedResolutions:m,finishRecordingFilesWithChangedResolutions:N,startCachingPerDirectoryResolution:M,finishCachingPerDirectoryResolution:me,resolveModuleNames:Oe,getResolvedModuleWithFailedLookupLocationsFromCache:te,resolveTypeReferenceDirectives:Ae,removeResolutionsFromProjectReferenceRedirects:Qe,removeResolutionsOfFile:Re,hasChangedAutomaticTypeDirectiveNames:function(){return y},invalidateResolutionOfFile:Ln,invalidateResolutionsOfFailedLookupLocations:En,setFilesWithInvalidatedNonRelativeUnresolvedImports:Un,createHasInvalidatedResolution:x,isFileWithInvalidatedNonRelativeUnresolvedImports:P,updateTypeRootsWatch:$n,closeTypeRootsWatch:In,clear:T};function g(le){return le.resolvedModule}function p(le){return le.resolvedTypeReferenceDirective}function f(le,Pe){return le===void 0||Pe.length<=le.length?!1:e.startsWith(Pe,le)&&Pe[le.length]===e.directorySeparator}function T(){e.clearMap(ne,e.closeFileWatcherOf),R.clear(),D.clear(),In(),ee.clear(),q.clear(),_e.clear(),de.length=0,V=void 0,Z=void 0,E=void 0,M(),y=!1}function m(){ye=[]}function N(){var le=ye;return ye=void 0,le}function P(le){if(!A)return!1;var Pe=A.get(le);return!!Pe&&!!Pe.length}function x(le){if(En(),le)return O=void 0,e.returnTrue;var Pe=O;return O=void 0,function(xe){return!!Pe&&Pe.has(xe)||P(xe)}}function M(){ie.clear(),se.clear(),D.forEach(fe),D.clear()}function me(){A=void 0,M(),ne.forEach(function(le,Pe){le.refCount===0&&(ne.delete(Pe),le.watcher.close())}),y=!1}function z(le,Pe,xe,Ze,hn){var Le,$e=e.resolveModuleName(le,Pe,xe,Ze,ie,hn);if(!Y.getGlobalCache)return $e;var An=Y.getGlobalCache();if(An!==void 0&&!e.isExternalModuleNameRelative(le)&&!($e.resolvedModule&&e.extensionIsTS($e.resolvedModule.extension))){var Ue=e.loadModuleFromGlobalCache(e.Debug.checkDefined(Y.globalCacheResolutionModuleName)(le),Y.projectName,xe,Ze,An,ie),gn=Ue.resolvedModule,Wn=Ue.failedLookupLocations;if(gn)return $e.resolvedModule=gn,(Le=$e.failedLookupLocations).push.apply(Le,Wn),$e}return $e}function K(le,Pe,xe,Ze,hn){return e.resolveTypeReferenceDirective(le,Pe,xe,Ze,hn,se)}function I(le){var Pe,xe,Ze,hn=le.names,Le=le.containingFile,$e=le.redirectedReference,An=le.cache,Ue=le.perDirectoryCacheWithRedirects,gn=le.loader,Wn=le.getResolutionWithResolvedFileName,ze=le.shouldRetryResolution,Tn=le.reusedNames,On=le.logChanges,ur=Y.toPath(Le),hr=An.get(ur)||An.set(ur,new e.Map).get(ur),wr=e.getDirectoryPath(ur),Qr=Ue.getOrCreateMapOfCacheRedirects($e),Ke=Qr.get(wr);Ke||(Ke=new e.Map,Qr.set(wr,Ke));for(var jn=[],Zn=Y.getCompilationSettings(),Me=On&&P(ur),Mn=Y.getCurrentProgram(),ar=Mn&&Mn.getResolvedProjectReferenceToRedirect(Le),Xn=ar?!$e||$e.sourceFile.path!==ar.sourceFile.path:!!$e,yr=new e.Map,cr=0,Fe=hn;cr<Fe.length;cr++){var Bn=Fe[cr],J=hr.get(Bn);if(!yr.has(Bn)&&Xn||!J||J.isInvalidated||Me&&!e.isExternalModuleNameRelative(Bn)&&ze(J)){var Cn=J,Gn=Ke.get(Bn);if(Gn){J=Gn;var cn=((Pe=Y.getCompilerHost)===null||Pe===void 0?void 0:Pe.call(Y))||Y;if(e.isTraceEnabled(Zn,cn)){var Rn=Wn(J);e.trace(cn,gn===z?Rn!=null&&Rn.resolvedFileName?Rn.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:Rn!=null&&Rn.resolvedFileName?Rn.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,Bn,Le,e.getDirectoryPath(Le),Rn==null?void 0:Rn.resolvedFileName,(Rn==null?void 0:Rn.packagetId)&&e.packageIdToString(Rn.packagetId))}}else J=gn(Bn,Le,Zn,((xe=Y.getCompilerHost)===null||xe===void 0?void 0:xe.call(Y))||Y,$e),Ke.set(Bn,J);hr.set(Bn,J),De(Bn,J,ur,Wn),Cn&&qe(Cn,ur,Wn),On&&ye&&!Ye(Cn,J)&&(ye.push(ur),On=!1)}else{var cn=((Ze=Y.getCompilerHost)===null||Ze===void 0?void 0:Ze.call(Y))||Y;if(e.isTraceEnabled(Zn,cn)&&!yr.has(Bn)){var Rn=Wn(J);e.trace(cn,gn===z?Rn!=null&&Rn.resolvedFileName?Rn.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Rn!=null&&Rn.resolvedFileName?Rn.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Bn,Le,Rn==null?void 0:Rn.resolvedFileName,(Rn==null?void 0:Rn.packagetId)&&e.packageIdToString(Rn.packagetId))}}e.Debug.assert(J!==void 0&&!J.isInvalidated),yr.set(Bn,!0),jn.push(Wn(J))}return hr.forEach(function(xn,an){!yr.has(an)&&!e.contains(Tn,an)&&(qe(xn,ur,Wn),hr.delete(an))}),jn;function Ye(xn,an){if(xn===an)return!0;if(!xn||!an)return!1;var zn=Wn(xn),ir=Wn(an);return zn===ir?!0:!zn||!ir?!1:zn.resolvedFileName===ir.resolvedFileName}}function Ae(le,Pe,xe){return I({names:le,containingFile:Pe,redirectedReference:xe,cache:q,perDirectoryCacheWithRedirects:oe,loader:K,getResolutionWithResolvedFileName:p,shouldRetryResolution:function(Ze){return Ze.resolvedTypeReferenceDirective===void 0}})}function Oe(le,Pe,xe,Ze){return I({names:le,containingFile:Pe,redirectedReference:Ze,cache:ee,perDirectoryCacheWithRedirects:k,loader:z,getResolutionWithResolvedFileName:g,shouldRetryResolution:function(hn){return!hn.resolvedModule||!e.resolutionExtensionIsTSOrJson(hn.resolvedModule.extension)},reusedNames:xe,logChanges:re})}function te(le,Pe){var xe=ee.get(Y.toPath(Pe));return xe&&xe.get(le)}function Se(le){return e.endsWith(le,"/node_modules/@types")}function be(le,Pe){if(f(C,Pe)){le=e.isRootedDiskPath(le)?e.normalizePath(le):e.getNormalizedAbsolutePath(le,H());var xe=Pe.split(e.directorySeparator),Ze=le.split(e.directorySeparator);return e.Debug.assert(Ze.length===xe.length,"FailedLookup: "+le+" failedLookupLocationPath: "+Pe),xe.length>d+1?{dir:Ze.slice(0,d+1).join(e.directorySeparator),dirPath:xe.slice(0,d+1).join(e.directorySeparator)}:{dir:U,dirPath:C,nonRecursive:!1}}return Ce(e.getDirectoryPath(e.getNormalizedAbsolutePath(le,H())),e.getDirectoryPath(Pe))}function Ce(le,Pe){for(;e.pathContainsNodeModules(Pe);)le=e.getDirectoryPath(le),Pe=e.getDirectoryPath(Pe);if(e.isNodeModulesDirectory(Pe))return ue(e.getDirectoryPath(Pe))?{dir:le,dirPath:Pe}:void 0;var xe=!0,Ze,hn;if(C!==void 0)for(;!f(Pe,C);){var Le=e.getDirectoryPath(Pe);if(Le===Pe)break;xe=!1,Ze=Pe,hn=le,Pe=Le,le=e.getDirectoryPath(le)}return ue(Pe)?{dir:hn||le,dirPath:Ze||Pe,nonRecursive:xe}:void 0}function Be(le){return e.fileExtensionIsOneOf(le,w)}function De(le,Pe,xe,Ze){if(Pe.refCount)Pe.refCount++,e.Debug.assertDefined(Pe.files);else{Pe.refCount=1,e.Debug.assert(e.length(Pe.files)===0),e.isExternalModuleNameRelative(le)?en(Pe):D.add(le,Pe);var hn=Ze(Pe);hn&&hn.resolvedFileName&&_e.add(Y.toPath(hn.resolvedFileName),Pe)}(Pe.files||(Pe.files=[])).push(xe)}function en(le){e.Debug.assert(!!le.refCount);var Pe=le.failedLookupLocations;if(Pe.length){de.push(le);for(var xe=!1,Ze=0,hn=Pe;Ze<hn.length;Ze++){var Le=hn[Ze],$e=Y.toPath(Le),An=be(Le,$e);if(An){var Ue=An.dir,gn=An.dirPath,Wn=An.nonRecursive;if(!Be($e)){var ze=R.get($e)||0;R.set($e,ze+1)}gn===C?(e.Debug.assert(!Wn),xe=!0):Ne(Ue,gn,Wn)}}xe&&Ne(U,C,!0)}}function fe(le,Pe){var xe=Y.getCurrentProgram();(!xe||!xe.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Pe))&&le.forEach(en)}function Ne(le,Pe,xe){var Ze=ne.get(Pe);Ze?(e.Debug.assert(!!xe==!!Ze.nonRecursive),Ze.refCount++):ne.set(Pe,{watcher:we(le,Pe,xe),refCount:1,nonRecursive:xe})}function qe(le,Pe,xe){if(e.unorderedRemoveItem(e.Debug.assertDefined(le.files),Pe),le.refCount--,!le.refCount){var Ze=xe(le);if(Ze&&Ze.resolvedFileName&&_e.remove(Y.toPath(Ze.resolvedFileName),le),!!e.unorderedRemoveItem(de,le)){for(var hn=le.failedLookupLocations,Le=!1,$e=0,An=hn;$e<An.length;$e++){var Ue=An[$e],gn=Y.toPath(Ue),Wn=be(Ue,gn);if(Wn){var ze=Wn.dirPath,Tn=R.get(gn);Tn&&(Tn===1?R.delete(gn):(e.Debug.assert(Tn>1),R.set(gn,Tn-1))),ze===C?Le=!0:pe(ze)}}Le&&pe(C)}}}function pe(le){var Pe=ne.get(le);Pe.refCount--}function we(le,Pe,xe){return Y.watchDirectoryOfFailedLookupLocation(le,function(Ze){var hn=Y.toPath(Ze);L&&L.addOrDeleteFileOrDirectory(Ze,hn),fn(hn,Pe===hn)},xe?0:1)}function pn(le,Pe,xe){var Ze=le.get(Pe);Ze&&(Ze.forEach(function(hn){return qe(hn,Pe,xe)}),le.delete(Pe))}function Qe(le){if(e.fileExtensionIs(le,".json")){var Pe=Y.getCurrentProgram();if(Pe){var xe=Pe.getResolvedProjectReferenceByPath(le);xe&&xe.commandLine.fileNames.forEach(function(Ze){return Re(Y.toPath(Ze))})}}}function Re(le){pn(ee,le,g),pn(q,le,p)}function He(le,Pe){if(!le)return!1;for(var xe=!1,Ze=0,hn=le;Ze<hn.length;Ze++){var Le=hn[Ze];if(!(Le.isInvalidated||!Pe(Le))){Le.isInvalidated=xe=!0;for(var $e=0,An=e.Debug.assertDefined(Le.files);$e<An.length;$e++){var Ue=An[$e];(O||(O=new e.Set)).add(Ue),y=y||e.endsWith(Ue,e.inferredTypesContainingFile)}}}return xe}function Ln(le){Re(le);var Pe=y;He(_e.get(le),e.returnTrue)&&y&&!Pe&&Y.onChangedAutomaticTypeDirectiveNames()}function Un(le){e.Debug.assert(A===le||A===void 0),A=le}function fn(le,Pe){if(Pe)(E||(E=[])).push(le);else{var xe=o(le);if(!xe||(le=xe,Y.fileIsOpen(le)))return!1;var Ze=e.getDirectoryPath(le);if(Se(le)||e.isNodeModulesDirectory(le)||Se(Ze)||e.isNodeModulesDirectory(Ze))(V||(V=[])).push(le),(Z||(Z=new e.Set)).add(le);else{if(!Be(le)&&!R.has(le)||e.isEmittedFileOfProgram(Y.getCurrentProgram(),le))return!1;(V||(V=[])).push(le);var hn=e.parseNodeModuleFromPath(le);hn&&(Z||(Z=new e.Set)).add(hn)}}Y.scheduleInvalidateResolutionsOfFailedLookupLocations()}function En(){if(!V&&!Z&&!E)return!1;var le=He(de,i);return V=void 0,Z=void 0,E=void 0,le}function i(le){return le.failedLookupLocations.some(function(Pe){var xe=Y.toPath(Pe);return e.contains(V,xe)||e.firstDefinedIterator((Z==null?void 0:Z.keys())||e.emptyIterator,function(Ze){return e.startsWith(xe,Ze)?!0:void 0})||(E==null?void 0:E.some(function(Ze){return f(Ze,xe)}))})}function In(){e.clearMap(G,e.closeFileWatcher)}function X(le,Pe){if(f(C,Pe))return C;var xe=Ce(le,Pe);return xe&&ne.has(xe.dirPath)?xe.dirPath:void 0}function rn(le,Pe){return Y.watchTypeRootsDirectory(Pe,function(xe){var Ze=Y.toPath(xe);L&&L.addOrDeleteFileOrDirectory(xe,Ze),y=!0,Y.onChangedAutomaticTypeDirectiveNames();var hn=X(Pe,le);hn&&fn(Ze,hn===Ze)},1)}function $n(){var le=Y.getCompilationSettings();if(le.types){In();return}var Pe=e.getEffectiveTypeRoots(le,{directoryExists:Vn,getCurrentDirectory:H});Pe?e.mutateMap(G,e.arrayToMap(Pe,function(xe){return Y.toPath(xe)}),{createNewValue:rn,onDeleteValue:e.closeFileWatcher}):In()}function Vn(le){var Pe=e.getDirectoryPath(e.getDirectoryPath(le)),xe=Y.toPath(Pe);return xe===C||ue(xe)}}e.createResolutionCache=$})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $;(function(m){m[m.Relative=0]="Relative",m[m.NonRelative=1]="NonRelative",m[m.Shortest=2]="Shortest",m[m.ExternalNonRelative=3]="ExternalNonRelative"})($||($={}));var Y;(function(m){m[m.Minimal=0]="Minimal",m[m.Index=1]="Index",m[m.JsExtension=2]="JsExtension"})(Y||(Y={}));function W(m,N,P){var x=m.importModuleSpecifierPreference,M=m.importModuleSpecifierEnding;return{relativePreference:x==="relative"?0:x==="non-relative"?1:x==="project-relative"?3:2,ending:me()};function me(){switch(M){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return ee(P)?2:e.getEmitModuleResolutionKind(N)!==e.ModuleResolutionKind.NodeJs?1:0}}}function re(m,N){return{relativePreference:e.isExternalModuleNameRelative(N)?0:1,ending:e.hasJSFileExtension(N)?2:e.getEmitModuleResolutionKind(m)!==e.ModuleResolutionKind.NodeJs||e.endsWith(N,"index")?1:0}}function ye(m,N,P,x,M){var me=D(m,N,P,x,re(m,M),{});if(me!==M)return me}ue.updateModuleSpecifier=ye;function O(m,N,P,x,M){return D(m,P,x,M,W({},m,N),{})}ue.getModuleSpecifier=O;function A(m,N,P,x,M){var me=E(N,x),z=q(N,P,x,M);return e.firstDefined(z,function(K){return ne(K,me,x,m,!0)})}ue.getNodeModulesPackageName=A;function D(m,N,P,x,M,me){var z=E(N,x),K=q(N,P,x,me);return e.firstDefined(K,function(I){return ne(I,z,x,m)})||H(P,z,m,x,M)}function de(m,N,P,x){return _e(m,N,P,x)[0]}ue.tryGetModuleSpecifiersFromCache=de;function _e(m,N,P,x){var M,me=e.getSourceFileOfModule(m);if(!me)return e.emptyArray;var z=(M=P.getModuleSpecifierCache)===null||M===void 0?void 0:M.call(P),K=z==null?void 0:z.get(N.path,me.path,x);return[K==null?void 0:K.moduleSpecifiers,me,K==null?void 0:K.modulePaths,z]}function y(m,N,P,x,M,me){return V(m,N,P,x,M,me).moduleSpecifiers}ue.getModuleSpecifiers=y;function V(m,N,P,x,M,me){var z=!1,K=se(m,N);if(K)return{moduleSpecifiers:[K],computedWithoutCache:z};var I=_e(m,x,M,me),Ae=I[0],Oe=I[1],te=I[2],Se=I[3];if(Ae)return{moduleSpecifiers:Ae,computedWithoutCache:z};if(!Oe)return{moduleSpecifiers:e.emptyArray,computedWithoutCache:z};z=!0,te||(te=oe(x.path,Oe.originalFileName,M));var be=Z(te,P,x,M,me);return Se==null||Se.set(x.path,Oe.path,me,te,be),{moduleSpecifiers:be,computedWithoutCache:z}}ue.getModuleSpecifiersWithCacheInfo=V;function Z(m,N,P,x,M){var me=E(P.path,x),z=W(M,N,P),K=e.forEach(m,function(fe){return e.forEach(x.getFileIncludeReasons().get(e.toPath(fe.path,x.getCurrentDirectory(),me.getCanonicalFileName)),function(Ne){if(!(Ne.kind!==e.FileIncludeKind.Import||Ne.file!==P.path)){var qe=e.getModuleNameStringLiteralAt(P,Ne.index).text;return z.relativePreference!==1||!e.pathIsRelative(qe)?qe:void 0}})});if(K){var I=[K];return I}for(var Ae=e.some(m,function(fe){return fe.isInNodeModules}),Oe,te,Se,be=0,Ce=m;be<Ce.length;be++){var Be=Ce[be],De=ne(Be,me,x,N);if(Oe=e.append(Oe,De),De&&Be.isRedirect)return Oe;if(!De&&!Be.isRedirect){var en=H(Be.path,me,N,x,z);e.pathIsBareSpecifier(en)?te=e.append(te,en):(!Ae||Be.isInNodeModules)&&(Se=e.append(Se,en))}}return te!=null&&te.length?te:Oe!=null&&Oe.length?Oe:e.Debug.checkDefined(Se)}function E(m,N){var P=e.createGetCanonicalFileName(N.useCaseSensitiveFileNames?N.useCaseSensitiveFileNames():!0),x=e.getDirectoryPath(m);return{getCanonicalFileName:P,importingSourceFileName:m,sourceDirectory:x}}function H(m,N,P,x,M){var me=M.ending,z=M.relativePreference,K=P.baseUrl,I=P.paths,Ae=P.rootDirs,Oe=N.sourceDirectory,te=N.getCanonicalFileName,Se=Ae&&R(Ae,m,Oe,te,me,P)||G(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(Oe,m,te)),me,P);if(!K&&!I||z===0)return Se;var be=e.getNormalizedAbsolutePath(e.getPathsBasePath(P,x)||K,x.getCurrentDirectory()),Ce=f(m,be,te);if(!Ce)return Se;var Be=G(Ce,me,P),De=I&&w(e.removeFileExtension(Ce),Be,I),en=De===void 0&&K!==void 0?Be:De;if(!en)return Se;if(z===1)return en;if(z===3){var fe=P.configFilePath?e.toPath(e.getDirectoryPath(P.configFilePath),x.getCurrentDirectory(),N.getCanonicalFileName):N.getCanonicalFileName(x.getCurrentDirectory()),Ne=e.toPath(m,fe,te),qe=e.startsWith(Oe,fe),pe=e.startsWith(Ne,fe);if(qe&&!pe||!qe&&pe)return en;var we=b(x,e.getDirectoryPath(Ne)),pn=b(x,Oe);return pn!==we?en:Se}return z!==2&&e.Debug.assertNever(z),T(en)||L(Se)<L(en)?Se:en}function L(m){for(var N=0,P=e.startsWith(m,"./")?2:0;P<m.length;P++)m.charCodeAt(P)===47&&N++;return N}ue.countPathComponents=L;function ee(m){var N=m.imports;return e.firstDefined(N,function(P){var x=P.text;return e.pathIsRelative(x)?e.hasJSFileExtension(x):void 0})||!1}function k(m,N){return e.compareBooleans(N.isRedirect,m.isRedirect)||e.compareNumberOfDirectorySeparators(m.path,N.path)}function b(m,N){return m.getNearestAncestorDirectoryWithPackageJson?m.getNearestAncestorDirectoryWithPackageJson(N):!!e.forEachAncestorDirectory(N,function(P){return m.fileExists(e.combinePaths(P,"package.json"))?!0:void 0})}function ie(m,N,P,x,M){var me,z=e.hostGetCanonicalFileName(P),K=P.getCurrentDirectory(),I=P.isSourceOfProjectReferenceRedirect(N)?P.getProjectReferenceRedirect(N):void 0,Ae=e.toPath(N,K,z),Oe=P.redirectTargetsMap.get(Ae)||e.emptyArray,te=Vr(Vr(Vr([],I?[I]:e.emptyArray,!0),[N],!1),Oe,!0),Se=te.map(function(fe){return e.getNormalizedAbsolutePath(fe,K)}),be=!e.every(Se,e.containsIgnoredPath);if(!x){var Ce=e.forEach(Se,function(fe){return!(be&&e.containsIgnoredPath(fe))&&M(fe,I===fe)});if(Ce)return Ce}var Be=(me=P.getSymlinkCache)===null||me===void 0?void 0:me.call(P).getSymlinkedDirectoriesByRealpath(),De=e.getNormalizedAbsolutePath(N,K),en=Be&&e.forEachAncestorDirectory(e.getDirectoryPath(De),function(fe){var Ne=Be.get(e.ensureTrailingDirectorySeparator(e.toPath(fe,K,z)));if(Ne)return e.startsWithDirectory(m,fe,z)?!1:e.forEach(Se,function(qe){if(e.startsWithDirectory(qe,fe,z))for(var pe=e.getRelativePathFromDirectory(fe,qe,z),we=0,pn=Ne;we<pn.length;we++){var Qe=pn[we],Re=e.resolvePath(Qe,pe),He=M(Re,qe===I);if(be=!0,He)return He}})});return en||(x?e.forEach(Se,function(fe){return be&&e.containsIgnoredPath(fe)?void 0:M(fe,fe===I)}):void 0)}ue.forEachFileNameOfModule=ie;function q(m,N,P,x,M){var me;M===void 0&&(M=e.toPath(N,P.getCurrentDirectory(),e.hostGetCanonicalFileName(P)));var z=(me=P.getModuleSpecifierCache)===null||me===void 0?void 0:me.call(P);if(z){var K=z.get(m,M,x);if(K!=null&&K.modulePaths)return K.modulePaths}var I=oe(m,N,P);return z&&z.setModulePaths(m,M,x,I),I}function oe(m,N,P){var x=e.hostGetCanonicalFileName(P),M=new e.Map,me=!1;ie(m,N,P,!0,function(Se,be){var Ce=e.pathContainsNodeModules(Se);M.set(Se,{path:x(Se),isRedirect:be,isInNodeModules:Ce}),me=me||Ce});for(var z=[],K=function(Se){var be=e.ensureTrailingDirectorySeparator(Se),Ce;M.forEach(function(De,en){var fe=De.path,Ne=De.isRedirect,qe=De.isInNodeModules;e.startsWith(fe,be)&&((Ce||(Ce=[])).push({path:en,isRedirect:Ne,isInNodeModules:qe}),M.delete(en))}),Ce&&(Ce.length>1&&Ce.sort(k),z.push.apply(z,Ce));var Be=e.getDirectoryPath(Se);if(Be===Se)return I=Se,"break";Se=Be,I=Se},I,Ae=e.getDirectoryPath(m);M.size!==0;){var Oe=K(Ae);if(Ae=I,Oe==="break")break}if(M.size){var te=e.arrayFrom(M.values());te.length>1&&te.sort(k),z.push.apply(z,te)}return z}function se(m,N){var P,x=(P=m.declarations)===null||P===void 0?void 0:P.find(function(z){return e.isNonGlobalAmbientModule(z)&&(!e.isExternalModuleAugmentation(z)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(z.name)))});if(x)return x.name.text;var M=e.mapDefined(m.declarations,function(z){var K,I,Ae,Oe;if(!e.isModuleDeclaration(z))return;var te=Be(z);if(!(!((K=te==null?void 0:te.parent)===null||K===void 0)&&K.parent&&e.isModuleBlock(te.parent)&&e.isAmbientModule(te.parent.parent)&&e.isSourceFile(te.parent.parent.parent)))return;var Se=(Oe=(Ae=(I=te.parent.parent.symbol.exports)===null||I===void 0?void 0:I.get("export="))===null||Ae===void 0?void 0:Ae.valueDeclaration)===null||Oe===void 0?void 0:Oe.expression;if(!Se)return;var be=N.getSymbolAtLocation(Se);if(!be)return;var Ce=(be==null?void 0:be.flags)&2097152?N.getAliasedSymbol(be):be;if(Ce===z.symbol)return te.parent.parent;function Be(De){for(;De.flags&4;)De=De.parent;return De}}),me=M[0];if(me)return me.name.text}function w(m,N,P){for(var x in P)for(var M=0,me=P[x];M<me.length;M++){var z=me[M],K=e.removeFileExtension(e.normalizePath(z)),I=K.indexOf("*");if(I!==-1){var Ae=K.substr(0,I),Oe=K.substr(I+1);if(N.length>=Ae.length+Oe.length&&e.startsWith(N,Ae)&&e.endsWith(N,Oe)||!Oe&&N===e.removeTrailingDirectorySeparator(Ae)){var te=N.substr(Ae.length,N.length-Oe.length-Ae.length);return x.replace("*",te)}}else if(K===N||K===m)return x}}function R(m,N,P,x,M,me){var z=d(N,m,x);if(z!==void 0){var K=d(P,m,x),I=K!==void 0?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(K,z,x)):z;return e.getEmitModuleResolutionKind(me)===e.ModuleResolutionKind.NodeJs?G(I,M,me):e.removeFileExtension(I)}}function ne(m,N,P,x,M){var me=m.path,z=m.isRedirect,K=N.getCanonicalFileName,I=N.sourceDirectory;if(!P.fileExists||!P.readFile)return;var Ae=C(me);if(!Ae)return;var Oe=me,te=!1;if(!M)for(var Se=Ae.packageRootIndex,be=void 0;;){var Ce=pe(Se),Be=Ce.moduleFileToTry,De=Ce.packageRootPath;if(De){Oe=De,te=!0;break}if(be||(be=Be),Se=me.indexOf(e.directorySeparator,Se+1),Se===-1){Oe=we(be);break}}if(z&&!te)return;var en=P.getGlobalTypingsCacheLocation&&P.getGlobalTypingsCacheLocation(),fe=K(Oe.substring(0,Ae.topLevelNodeModulesIndex));if(!(e.startsWith(I,fe)||en&&e.startsWith(K(en),fe)))return;var Ne=Oe.substring(Ae.topLevelPackageNameIndex+1),qe=e.getPackageNameFromTypesPackageName(Ne);return e.getEmitModuleResolutionKind(x)!==e.ModuleResolutionKind.NodeJs&&qe===Ne?void 0:qe;function pe(pn){var Qe=me.substring(0,pn),Re=e.combinePaths(Qe,"package.json"),He=me;if(P.fileExists(Re)){var Ln=JSON.parse(P.readFile(Re)),Un=Ln.typesVersions?e.getPackageJsonTypesVersionsPaths(Ln.typesVersions):void 0;if(Un){var fn=me.slice(Qe.length+1),En=w(e.removeFileExtension(fn),G(fn,0,x),Un.paths);En!==void 0&&(He=e.combinePaths(Qe,En))}var i=Ln.typings||Ln.types||Ln.main;if(e.isString(i)){var In=e.toPath(i,Qe,K);if(e.removeFileExtension(In)===e.removeFileExtension(K(He)))return{packageRootPath:Qe,moduleFileToTry:He}}}return{moduleFileToTry:He}}function we(pn){var Qe=e.removeFileExtension(pn);return K(Qe.substring(Ae.fileNameIndex))==="/index"&&!U(P,Qe.substring(0,Ae.fileNameIndex))?Qe.substring(0,Ae.fileNameIndex):Qe}}function U(m,N){if(m.fileExists)for(var P=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),x=0,M=P;x<M.length;x++){var me=M[x],z=N+me;if(m.fileExists(z))return z}}function C(m){var N=0,P=0,x=0,M=0,me;(function(Ae){Ae[Ae.BeforeNodeModules=0]="BeforeNodeModules",Ae[Ae.NodeModules=1]="NodeModules",Ae[Ae.Scope=2]="Scope",Ae[Ae.PackageContent=3]="PackageContent"})(me||(me={}));for(var z=0,K=0,I=0;K>=0;)switch(z=K,K=m.indexOf("/",z+1),I){case 0:m.indexOf(e.nodeModulesPathPart,z)===z&&(N=z,P=K,I=1);break;case 1:case 2:I===1&&m.charAt(z+1)==="@"?I=2:(x=K,I=3);break;case 3:m.indexOf(e.nodeModulesPathPart,z)===z?I=1:I=3;break}return M=z,I>1?{topLevelNodeModulesIndex:N,topLevelPackageNameIndex:P,packageRootIndex:x,fileNameIndex:M}:void 0}function d(m,N,P){return e.firstDefined(N,function(x){var M=f(m,x,P);return T(M)?void 0:M})}function G(m,N,P){if(e.fileExtensionIs(m,".json"))return m;var x=e.removeFileExtension(m);switch(N){case 0:return e.removeSuffix(x,"/index");case 1:return x;case 2:return x+g(m,P);default:return e.Debug.assertNever(N)}}function g(m,N){var P;return(P=p(m,N))!==null&&P!==void 0?P:e.Debug.fail("Extension "+e.extensionFromPath(m)+" is unsupported:: FileName:: "+m)}function p(m,N){var P=e.tryGetExtensionFromPath(m);switch(P){case".ts":case".d.ts":return".js";case".tsx":return N.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return P;default:return}}ue.tryGetJSExtensionForFile=p;function f(m,N,P){var x=e.getRelativePathToDirectoryOrUrl(N,m,N,P,!1);return e.isRootedDiskPath(x)?void 0:x}function T(m){return e.startsWith(m,"..")}})(o=e.moduleSpecifiers||(e.moduleSpecifiers={}))})(vn||(vn={}));var vn;(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 ue(d,G){var g=d===e.sys&&o?o:{getCurrentDirectory:function(){return d.getCurrentDirectory()},getNewLine:function(){return d.newLine},getCanonicalFileName:e.createGetCanonicalFileName(d.useCaseSensitiveFileNames)};if(!G)return function(f){return d.write(e.formatDiagnostic(f,g))};var p=new Array(1);return function(f){p[0]=f,d.write(e.formatDiagnosticsWithColorAndContext(p,g)+g.getNewLine()),p[0]=void 0}}e.createDiagnosticReporter=ue;function $(d,G,g){return d.clearScreen&&!g.preserveWatchOutput&&!g.extendedDiagnostics&&!g.diagnostics&&e.contains(e.screenStartingMessageCodes,G.code)?(d.clearScreen(),!0):!1}e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code];function Y(d,G){return e.contains(e.screenStartingMessageCodes,d.code)?G+G:G}function W(d){return d.now?d.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):new Date().toLocaleTimeString()}e.getLocaleTimeString=W;function re(d,G){return G?function(g,p,f){$(d,g,f);var T="["+e.formatColorAndReset(W(d),e.ForegroundColorEscapeSequences.Grey)+"] ";T+=""+e.flattenDiagnosticMessageText(g.messageText,d.newLine)+(p+p),d.write(T)}:function(g,p,f){var T="";$(d,g,f)||(T+=p),T+=W(d)+" - ",T+=""+e.flattenDiagnosticMessageText(g.messageText,d.newLine)+Y(g,p),d.write(T)}}e.createWatchStatusReporter=re;function ye(d,G,g,p,f,T){var m=f;m.onUnRecoverableConfigFileDiagnostic=function(P){return R(f,T,P)};var N=e.getParsedCommandLineOfConfigFile(d,G,m,g,p);return m.onUnRecoverableConfigFileDiagnostic=void 0,N}e.parseConfigFileWithSystem=ye;function O(d){return e.countWhere(d,function(G){return G.category===e.DiagnosticCategory.Error})}e.getErrorCountForSummary=O;function A(d){return d===1?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}e.getWatchErrorSummaryDiagnosticMessage=A;function D(d,G){if(d===0)return"";var g=e.createCompilerDiagnostic(d===1?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,d);return""+G+e.flattenDiagnosticMessageText(g.messageText,G)+G+G}e.getErrorSummaryText=D;function de(d){return!!d.getState}e.isBuilderProgram=de;function _e(d,G){var g=d.getCompilerOptions();g.explainFiles?y(de(d)?d.getProgram():d,G):(g.listFiles||g.listFilesOnly)&&e.forEach(d.getSourceFiles(),function(p){G(p.fileName)})}e.listFiles=_e;function y(d,G){for(var g,p,f=d.getFileIncludeReasons(),T=e.createGetCanonicalFileName(d.useCaseSensitiveFileNames()),m=function(M){return e.convertToRelativePath(M,d.getCurrentDirectory(),T)},N=0,P=d.getSourceFiles();N<P.length;N++){var x=P[N];G(""+L(x,m)),(g=f.get(x.path))===null||g===void 0||g.forEach(function(M){return G(" "+H(d,M,m).messageText)}),(p=V(x,m))===null||p===void 0||p.forEach(function(M){return G(" "+M.messageText)})}}e.explainFiles=y;function V(d,G){var g;return d.path!==d.resolvedPath&&(g||(g=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,L(d.originalFileName,G))),d.redirectInfo&&(g||(g=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,L(d.redirectInfo.redirectTarget,G))),g}e.explainIfFileIsRedirect=V;function Z(d,G){var g,p=d.getCompilerOptions().configFile;if(!((g=p==null?void 0:p.configFileSpecs)===null||g===void 0)&&g.validatedFilesSpec){var f=e.createGetCanonicalFileName(d.useCaseSensitiveFileNames()),T=f(G),m=e.getDirectoryPath(e.getNormalizedAbsolutePath(p.fileName,d.getCurrentDirectory()));return e.find(p.configFileSpecs.validatedFilesSpec,function(N){return f(e.getNormalizedAbsolutePath(N,m))===T})}}e.getMatchedFileSpec=Z;function E(d,G){var g,p,f=d.getCompilerOptions().configFile;if(!((g=f==null?void 0:f.configFileSpecs)===null||g===void 0)&&g.validatedIncludeSpecs){var T=e.fileExtensionIs(G,".json"),m=e.getDirectoryPath(e.getNormalizedAbsolutePath(f.fileName,d.getCurrentDirectory())),N=d.useCaseSensitiveFileNames();return e.find((p=f==null?void 0:f.configFileSpecs)===null||p===void 0?void 0:p.validatedIncludeSpecs,function(P){if(T&&!e.endsWith(P,".json"))return!1;var x=e.getPatternFromSpec(P,m,"files");return!!x&&e.getRegexFromPattern("("+x+")$",N).test(G)})}}e.getMatchedIncludeSpec=E;function H(d,G,g){var p,f,T=d.getCompilerOptions();if(e.isReferencedFile(G)){var m=e.getReferencedFileLocation(function(Ae){return d.getSourceFileByPath(Ae)},G),N=e.isReferenceFileLocation(m)?m.file.text.substring(m.pos,m.end):'"'+m.text+'"',P=void 0;switch(e.Debug.assert(e.isReferenceFileLocation(m)||G.kind===e.FileIncludeKind.Import,"Only synthetic references are imports"),G.kind){case e.FileIncludeKind.Import:e.isReferenceFileLocation(m)?P=m.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:e.Diagnostics.Imported_via_0_from_file_1:m.text===e.externalHelpersModuleNameText?P=m.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:e.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:P=m.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:e.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case e.FileIncludeKind.ReferenceFile:e.Debug.assert(!m.packageId),P=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:P=m.packageId?e.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2:e.Diagnostics.Type_library_referenced_via_0_from_file_1;break;case e.FileIncludeKind.LibReferenceDirective:e.Debug.assert(!m.packageId),P=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(G)}return e.chainDiagnosticMessages(void 0,P,N,L(m.file,g),m.packageId&&e.packageIdToString(m.packageId))}switch(G.kind){case e.FileIncludeKind.RootFile:if(!(!((p=T.configFile)===null||p===void 0)&&p.configFileSpecs))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);var x=e.getNormalizedAbsolutePath(d.getRootFileNames()[G.index],d.getCurrentDirectory()),M=Z(d,x);if(M)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var me=E(d,x);return me?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,me,L(T.configFile,g)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var z=G.kind===e.FileIncludeKind.OutputFromProjectReference,K=e.Debug.checkDefined((f=d.getResolvedProjectReferences())===null||f===void 0?void 0:f[G.index]);return e.chainDiagnosticMessages(void 0,e.outFile(T)?z?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:z?e.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none:e.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none,L(K.sourceFile.fileName,g),T.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,T.types?G.packageId?e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions:G.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,G.typeReference,G.packageId&&e.packageIdToString(G.packageId));case e.FileIncludeKind.LibFile:if(G.index!==void 0)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,T.lib[G.index]);var I=e.forEachEntry(e.targetOptionDeclaration.type,function(Ae,Oe){return Ae===T.target?Oe:void 0});return e.chainDiagnosticMessages(void 0,I?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,I);default:e.Debug.assertNever(G)}}e.fileIncludeReasonToDiagnostics=H;function L(d,G){var g=e.isString(d)?d:d.fileName;return G?G(g):g}function ee(d,G,g,p,f,T,m,N){var P=!!d.getCompilerOptions().listFilesOnly,x=d.getConfigFileParsingDiagnostics().slice(),M=x.length;e.addRange(x,d.getSyntacticDiagnostics(void 0,T)),x.length===M&&(e.addRange(x,d.getOptionsDiagnostics(T)),P||(e.addRange(x,d.getGlobalDiagnostics(T)),x.length===M&&e.addRange(x,d.getSemanticDiagnostics(void 0,T))));var me=P?{emitSkipped:!0,diagnostics:e.emptyArray}:d.emit(void 0,f,T,m,N),z=me.emittedFiles,K=me.diagnostics;e.addRange(x,K);var I=e.sortAndDeduplicateDiagnostics(x);if(I.forEach(G),g){var Ae=d.getCurrentDirectory();e.forEach(z,function(Oe){var te=e.getNormalizedAbsolutePath(Oe,Ae);g("TSFILE: "+te)}),_e(d,g)}return p&&p(O(I)),{emitResult:me,diagnostics:I}}e.emitFilesAndReportErrors=ee;function k(d,G,g,p,f,T,m,N){var P=ee(d,G,g,p,f,T,m,N),x=P.emitResult,M=P.diagnostics;return x.emitSkipped&&M.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:M.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.emitFilesAndReportErrorsAndGetExitStatus=k,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher};function b(d,G){d===void 0&&(d=e.sys);var g=G||re(d);return{onWatchStatusChange:g,watchFile:e.maybeBind(d,d.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(d,d.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(d,d.setTimeout)||e.noop,clearTimeout:e.maybeBind(d,d.clearTimeout)||e.noop}}e.createWatchHost=b,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file"};function ie(d,G){var g=d.trace?G.extendedDiagnostics?e.WatchLogLevel.Verbose:G.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,p=g!==e.WatchLogLevel.None?function(T){return d.trace(T)}:e.noop,f=e.getWatchFactory(d,g,p);return f.writeLog=p,f}e.createWatchFactory=ie;function q(d,G,g){g===void 0&&(g=d);var p=d.useCaseSensitiveFileNames(),f=e.memoize(function(){return d.getNewLine()});return{getSourceFile:function(m,N,P){var x;try{e.performance.mark("beforeIORead"),x=d.readFile(m,G().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(M){P&&P(M.message),x=""}return x!==void 0?e.createSourceFile(m,x,N):void 0},getDefaultLibLocation:e.maybeBind(d,d.getDefaultLibLocation),getDefaultLibFileName:function(m){return d.getDefaultLibFileName(m)},writeFile:T,getCurrentDirectory:e.memoize(function(){return d.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return p},getCanonicalFileName:e.createGetCanonicalFileName(p),getNewLine:function(){return e.getNewLineCharacter(G(),f)},fileExists:function(m){return d.fileExists(m)},readFile:function(m){return d.readFile(m)},trace:e.maybeBind(d,d.trace),directoryExists:e.maybeBind(g,g.directoryExists),getDirectories:e.maybeBind(g,g.getDirectories),realpath:e.maybeBind(d,d.realpath),getEnvironmentVariable:e.maybeBind(d,d.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(d,d.createHash),readDirectory:e.maybeBind(d,d.readDirectory),disableUseFileVersionAsSignature:d.disableUseFileVersionAsSignature};function T(m,N,P,x){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(m,N,P,function(M,me,z){return d.writeFile(M,me,z)},function(M){return d.createDirectory(M)},function(M){return d.directoryExists(M)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(M){x&&x(M.message)}}}e.createCompilerHostFromProgramHost=q;function oe(d,G){var g=d.getSourceFile,p=e.maybeBind(G,G.createHash)||e.generateDjb2Hash;d.getSourceFile=function(){for(var f=[],T=0;T<arguments.length;T++)f[T]=arguments[T];var m=g.call.apply(g,Vr([d],f,!1));return m&&(m.version=p(m.text)),m}}e.setGetSourceFileAsHashVersioned=oe;function se(d,G){var g=e.memoize(function(){return e.getDirectoryPath(e.normalizePath(d.getExecutingFilePath()))});return{useCaseSensitiveFileNames:function(){return d.useCaseSensitiveFileNames},getNewLine:function(){return d.newLine},getCurrentDirectory:e.memoize(function(){return d.getCurrentDirectory()}),getDefaultLibLocation:g,getDefaultLibFileName:function(p){return e.combinePaths(g(),e.getDefaultLibFileName(p))},fileExists:function(p){return d.fileExists(p)},readFile:function(p,f){return d.readFile(p,f)},directoryExists:function(p){return d.directoryExists(p)},getDirectories:function(p){return d.getDirectories(p)},readDirectory:function(p,f,T,m,N){return d.readDirectory(p,f,T,m,N)},realpath:e.maybeBind(d,d.realpath),getEnvironmentVariable:e.maybeBind(d,d.getEnvironmentVariable),trace:function(p){return d.write(p+d.newLine)},createDirectory:function(p){return d.createDirectory(p)},writeFile:function(p,f,T){return d.writeFile(p,f,T)},createHash:e.maybeBind(d,d.createHash),createProgram:G||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:d.disableUseFileVersionAsSignature}}e.createProgramHost=se;function w(d,G,g,p){d===void 0&&(d=e.sys);var f=function(m){return d.write(m+d.newLine)},T=se(d,G);return e.copyProperties(T,b(d,p)),T.afterProgramCreate=function(m){var N=m.getCompilerOptions(),P=e.getNewLineCharacter(N,function(){return d.newLine});ee(m,g,f,function(x){return T.onWatchStatusChange(e.createCompilerDiagnostic(A(x),x),P,N,x)})},T}function R(d,G,g){G(g),d.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}function ne(d){var G=d.configFileName,g=d.optionsToExtend,p=d.watchOptionsToExtend,f=d.extraFileExtensions,T=d.system,m=d.createProgram,N=d.reportDiagnostic,P=d.reportWatchStatus,x=N||ue(T),M=w(T,m,x,P);return M.onUnRecoverableConfigFileDiagnostic=function(me){return R(T,x,me)},M.configFileName=G,M.optionsToExtend=g,M.watchOptionsToExtend=p,M.extraFileExtensions=f,M}e.createWatchCompilerHostOfConfigFile=ne;function U(d){var G=d.rootFiles,g=d.options,p=d.watchOptions,f=d.projectReferences,T=d.system,m=d.createProgram,N=d.reportDiagnostic,P=d.reportWatchStatus,x=w(T,m,N||ue(T),P);return x.rootFiles=G,x.options=g,x.watchOptions=p,x.projectReferences=f,x}e.createWatchCompilerHostOfFilesAndCompilerOptions=U;function C(d){var G=d.system||e.sys,g=d.host||(d.host=e.createIncrementalCompilerHost(d.options,G)),p=e.createIncrementalProgram(d),f=k(p,d.reportDiagnostic||ue(G),function(T){return g.trace&&g.trace(T)},d.reportErrorSummary||d.options.pretty?function(T){return G.write(D(T,G.newLine))}:void 0);return d.afterProgramEmitAndDiagnostics&&d.afterProgramEmitAndDiagnostics(p),f}e.performIncrementalCompilation=C})(vn||(vn={}));var vn;(function(e){function o(re,ye){if(!e.outFile(re)){var O=e.getTsBuildInfoEmitOutputFilePath(re);if(O){var A=ye.readFile(O);if(A){var D=e.getBuildInfo(A);if(D.version===e.version&&D.program)return e.createBuildProgramUsingProgramBuildInfo(D.program,O,ye)}}}}e.readBuilderProgram=o;function ue(re,ye){ye===void 0&&(ye=e.sys);var O=e.createCompilerHostWorker(re,void 0,ye);return O.createHash=e.maybeBind(ye,ye.createHash),O.disableUseFileVersionAsSignature=ye.disableUseFileVersionAsSignature,e.setGetSourceFileAsHashVersioned(O,ye),e.changeCompilerHostLikeToUseCache(O,function(A){return e.toPath(A,O.getCurrentDirectory(),O.getCanonicalFileName)}),O}e.createIncrementalCompilerHost=ue;function $(re){var ye=re.rootNames,O=re.options,A=re.configFileParsingDiagnostics,D=re.projectReferences,de=re.host,_e=re.createProgram;de=de||ue(O),_e=_e||e.createEmitAndSemanticDiagnosticsBuilderProgram;var y=o(O,de);return _e(ye,O,de,y,A,D)}e.createIncrementalProgram=$;function Y(re,ye,O,A,D,de,_e,y){return e.isArray(re)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:re,options:ye,watchOptions:y,projectReferences:_e,system:O,createProgram:A,reportDiagnostic:D,reportWatchStatus:de}):e.createWatchCompilerHostOfConfigFile({configFileName:re,optionsToExtend:ye,watchOptionsToExtend:_e,extraFileExtensions:y,system:O,createProgram:A,reportDiagnostic:D,reportWatchStatus:de})}e.createWatchCompilerHost=Y;function W(re){var ye,O,A,D,de,_e,y,V,Z,E=re.extendedConfigCache,H=!1,L=new e.Map,ee,k=!1,b=re.useCaseSensitiveFileNames(),ie=re.getCurrentDirectory(),q=re.configFileName,oe=re.optionsToExtend,se=oe===void 0?{}:oe,w=re.watchOptionsToExtend,R=re.extraFileExtensions,ne=re.createProgram,U=re.rootFiles,C=re.options,d=re.watchOptions,G=re.projectReferences,g,p,f=!1,T=!1,m=q===void 0?void 0:e.createCachedDirectoryStructureHost(re,ie,b),N=m||re,P=e.parseConfigHostFromCompilerHostLike(re,N),x=qe();q&&re.configFileParsingResult&&(hn(re.configFileParsingResult),x=qe()),fn(e.Diagnostics.Starting_compilation_in_watch_mode),q&&!re.configFileParsingResult&&(x=e.getNewLineCharacter(se,function(){return re.getNewLine()}),e.Debug.assert(!U),Ze(),x=qe());var M=e.createWatchFactory(re,C),me=M.watchFile,z=M.watchDirectory,K=M.writeLog,I=e.createGetCanonicalFileName(b);K("Current directory: "+ie+" CaseSensitiveFileNames: "+b);var Ae;q&&(Ae=me(q,$n,e.PollingInterval.High,d,e.WatchType.ConfigFile));var Oe=e.createCompilerHostFromProgramHost(re,function(){return C},N);e.setGetSourceFileAsHashVersioned(Oe,re);var te=Oe.getSourceFile;Oe.getSourceFile=function(jn){for(var Zn=[],Me=1;Me<arguments.length;Me++)Zn[Me-1]=arguments[Me];return Re.apply(void 0,Vr([jn,pe(jn)],Zn,!1))},Oe.getSourceFileByPath=Re,Oe.getNewLine=function(){return x},Oe.fileExists=Qe,Oe.onReleaseOldSourceFile=Un,Oe.onReleaseParsedCommandLine=An,Oe.toPath=pe,Oe.getCompilationSettings=function(){return C},Oe.useSourceOfProjectReferenceRedirect=e.maybeBind(re,re.useSourceOfProjectReferenceRedirect),Oe.watchDirectoryOfFailedLookupLocation=function(jn,Zn,Me){return z(jn,Zn,Me,d,e.WatchType.FailedLookupLocations)},Oe.watchTypeRootsDirectory=function(jn,Zn,Me){return z(jn,Zn,Me,d,e.WatchType.TypeRoots)},Oe.getCachedDirectoryStructureHost=function(){return m},Oe.scheduleInvalidateResolutionsOfFailedLookupLocations=In,Oe.onInvalidatedResolution=rn,Oe.onChangedAutomaticTypeDirectiveNames=rn,Oe.fileIsOpen=e.returnFalse,Oe.getCurrentProgram=De,Oe.writeLog=K,Oe.getParsedCommandLine=Le;var Se=e.createResolutionCache(Oe,q?e.getDirectoryPath(e.getNormalizedAbsolutePath(q,ie)):ie,!1);Oe.resolveModuleNames=re.resolveModuleNames?function(){for(var jn=[],Zn=0;Zn<arguments.length;Zn++)jn[Zn]=arguments[Zn];return re.resolveModuleNames.apply(re,jn)}:function(jn,Zn,Me,Mn){return Se.resolveModuleNames(jn,Zn,Me,Mn)},Oe.resolveTypeReferenceDirectives=re.resolveTypeReferenceDirectives?function(){for(var jn=[],Zn=0;Zn<arguments.length;Zn++)jn[Zn]=arguments[Zn];return re.resolveTypeReferenceDirectives.apply(re,jn)}:function(jn,Zn,Me){return Se.resolveTypeReferenceDirectives(jn,Zn,Me)};var be=!!re.resolveModuleNames||!!re.resolveTypeReferenceDirectives;return ye=o(C,Oe),en(),hr(),q&&Qr(pe(q),C,d,e.WatchType.ExtendedConfigFile),q?{getCurrentProgram:Be,getProgram:le,close:Ce}:{getCurrentProgram:Be,getProgram:le,updateRootFileNames:Ne,close:Ce};function Ce(){i(),Se.clear(),e.clearMap(L,function(jn){jn&&jn.fileWatcher&&(jn.fileWatcher.close(),jn.fileWatcher=void 0)}),Ae&&(Ae.close(),Ae=void 0),E==null||E.clear(),E=void 0,Z&&(e.clearMap(Z,e.closeFileWatcherOf),Z=void 0),de&&(e.clearMap(de,e.closeFileWatcherOf),de=void 0),A&&(e.clearMap(A,e.closeFileWatcher),A=void 0),V&&(e.clearMap(V,function(jn){var Zn;(Zn=jn.watcher)===null||Zn===void 0||Zn.close(),jn.watcher=void 0,jn.watchedDirectories&&e.clearMap(jn.watchedDirectories,e.closeFileWatcherOf),jn.watchedDirectories=void 0}),V=void 0),D&&(e.clearMap(D,e.closeFileWatcher),D=void 0)}function Be(){return ye}function De(){return ye&&ye.getProgramOrUndefined()}function en(){K("Synchronizing program"),i();var jn=Be();k&&(x=qe(),jn&&(H||e.changesAffectModuleResolution(jn.getCompilerOptions(),C))&&Se.clear());var Zn=Se.createHasInvalidatedResolution(be||H);return e.isProgramUptoDate(De(),U,C,Ln,Qe,Zn,En,Le,G)?T&&(ye=ne(void 0,void 0,Oe,ye,p,G),T=!1):fe(Zn),H=!1,re.afterProgramCreate&&jn!==ye&&re.afterProgramCreate(ye),ye}function fe(jn){K("CreatingProgramWith::"),K(" roots: "+JSON.stringify(U)),K(" options: "+JSON.stringify(C)),G&&K(" projectReferences: "+JSON.stringify(G));var Zn=k||!De();k=!1,T=!1,Se.startCachingPerDirectoryResolution(),Oe.hasInvalidatedResolution=jn,Oe.hasChangedAutomaticTypeDirectiveNames=En,ye=ne(U,C,Oe,ye,p,G);var Me=e.map(Se.getModuleResolutionCache().getPackageJsonInfoCache().entries(),function(yr){var cr=yr[0],Fe=yr[1];return[Oe.realpath?pe(Oe.realpath(cr)):cr,Fe]});if(Se.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(ye.getProgram(),A||(A=new e.Map),ze),e.updatePackageJsonWatch(Me,D||(D=new e.Map),Tn),Zn&&Se.updateTypeRootsWatch(),ee){for(var Mn=0,ar=ee;Mn<ar.length;Mn++){var Xn=ar[Mn];A.has(Xn)||L.delete(Xn)}ee=void 0}}function Ne(jn){e.Debug.assert(!q,"Cannot update root file names with config file watch mode"),U=jn,rn()}function qe(){return e.getNewLineCharacter(C||se,function(){return re.getNewLine()})}function pe(jn){return e.toPath(jn,ie,I)}function we(jn){return typeof jn=="boolean"}function pn(jn){return typeof jn.version=="boolean"}function Qe(jn){var Zn=pe(jn);return we(L.get(Zn))?!1:N.fileExists(jn)}function Re(jn,Zn,Me,Mn,ar){var Xn=L.get(Zn);if(!we(Xn)){if(Xn===void 0||ar||pn(Xn)){var yr=te(jn,Me,Mn);if(Xn)yr?(Xn.sourceFile=yr,Xn.version=yr.version,Xn.fileWatcher||(Xn.fileWatcher=Ue(Zn,jn,gn,e.PollingInterval.Low,d,e.WatchType.SourceFile))):(Xn.fileWatcher&&Xn.fileWatcher.close(),L.set(Zn,!1));else if(yr){var cr=Ue(Zn,jn,gn,e.PollingInterval.Low,d,e.WatchType.SourceFile);L.set(Zn,{sourceFile:yr,version:yr.version,fileWatcher:cr})}else L.set(Zn,!1);return yr}return Xn.sourceFile}}function He(jn){var Zn=L.get(jn);Zn!==void 0&&(we(Zn)?L.set(jn,{version:!1}):Zn.version=!1)}function Ln(jn){var Zn=L.get(jn);return!Zn||!Zn.version?void 0:Zn.version}function Un(jn,Zn,Me){var Mn=L.get(jn.resolvedPath);Mn!==void 0&&(we(Mn)?(ee||(ee=[])).push(jn.path):Mn.sourceFile===jn&&(Mn.fileWatcher&&Mn.fileWatcher.close(),L.delete(jn.resolvedPath),Me||Se.removeResolutionsOfFile(jn.path)))}function fn(jn){re.onWatchStatusChange&&re.onWatchStatusChange(e.createCompilerDiagnostic(jn),x,C||se)}function En(){return Se.hasChangedAutomaticTypeDirectiveNames()}function i(){return y?(re.clearTimeout(y),y=void 0,!0):!1}function In(){if(!re.setTimeout||!re.clearTimeout)return Se.invalidateResolutionsOfFailedLookupLocations();var jn=i();K("Scheduling invalidateFailedLookup"+(jn?", Cancelled earlier one":"")),y=re.setTimeout(X,250)}function X(){y=void 0,Se.invalidateResolutionsOfFailedLookupLocations()&&rn()}function rn(){!re.setTimeout||!re.clearTimeout||(_e&&re.clearTimeout(_e),K("Scheduling update"),_e=re.setTimeout(Vn,250))}function $n(){e.Debug.assert(!!q),O=e.ConfigFileProgramReloadLevel.Full,rn()}function Vn(){_e=void 0,fn(e.Diagnostics.File_change_detected_Starting_incremental_compilation),le()}function le(){switch(O){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),Pe();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),xe();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),en();break}return e.perfLogger.logStopUpdateProgram("Done"),Be()}function Pe(){K("Reloading new file names and options"),U=e.getFileNamesFromConfigSpecs(C.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(q),ie),C,P,R),e.updateErrorForNoInputFiles(U,e.getNormalizedAbsolutePath(q,ie),C.configFile.configFileSpecs,p,f)&&(T=!0),en()}function xe(){K("Reloading config file: "+q),O=e.ConfigFileProgramReloadLevel.None,m&&m.clearCache(),Ze(),k=!0,en(),hr(),Qr(pe(q),C,d,e.WatchType.ExtendedConfigFile)}function Ze(){hn(e.getParsedCommandLineOfConfigFile(q,se,P,E||(E=new e.Map),w,R))}function hn(jn){U=jn.fileNames,C=jn.options,d=jn.watchOptions,G=jn.projectReferences,g=jn.wildcardDirectories,p=e.getConfigFileParsingDiagnostics(jn).slice(),f=e.canJsonReportNoInputFiles(jn.raw),T=!0}function Le(jn){var Zn=pe(jn),Me=V==null?void 0:V.get(Zn);if(Me){if(!Me.reloadLevel)return Me.parsedCommandLine;if(Me.parsedCommandLine&&Me.reloadLevel===e.ConfigFileProgramReloadLevel.Partial&&!re.getParsedCommandLine){K("Reloading new file names and options");var Mn=e.getFileNamesFromConfigSpecs(Me.parsedCommandLine.options.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(jn),ie),C,P);return Me.parsedCommandLine=Mt(Mt({},Me.parsedCommandLine),{fileNames:Mn}),Me.reloadLevel=void 0,Me.parsedCommandLine}}K("Loading config file: "+jn);var ar=re.getParsedCommandLine?re.getParsedCommandLine(jn):$e(jn);return Me?(Me.parsedCommandLine=ar,Me.reloadLevel=void 0):(V||(V=new e.Map)).set(Zn,Me={parsedCommandLine:ar}),Ke(jn,Zn,Me),ar}function $e(jn){var Zn=P.onUnRecoverableConfigFileDiagnostic;P.onUnRecoverableConfigFileDiagnostic=e.noop;var Me=e.getParsedCommandLineOfConfigFile(jn,void 0,P,E||(E=new e.Map),w);return P.onUnRecoverableConfigFileDiagnostic=Zn,Me}function An(jn){var Zn,Me=pe(jn),Mn=V==null?void 0:V.get(Me);Mn&&(V.delete(Me),Mn.watchedDirectories&&e.clearMap(Mn.watchedDirectories,e.closeFileWatcherOf),(Zn=Mn.watcher)===null||Zn===void 0||Zn.close(),e.clearSharedExtendedConfigFileWatcher(Me,Z))}function Ue(jn,Zn,Me,Mn,ar,Xn){return me(Zn,function(yr,cr){return Me(yr,cr,jn)},Mn,ar,Xn)}function gn(jn,Zn,Me){Wn(jn,Me,Zn),Zn===e.FileWatcherEventKind.Deleted&&L.has(Me)&&Se.invalidateResolutionOfFile(Me),He(Me),rn()}function Wn(jn,Zn,Me){m&&m.addOrDeleteFile(jn,Zn,Me)}function ze(jn){return V!=null&&V.has(jn)?e.noopFileWatcher:Ue(jn,jn,ur,e.PollingInterval.Medium,d,e.WatchType.MissingFile)}function Tn(jn){return L.has(jn)?e.noopFileWatcher:Ue(jn,jn,On,e.PollingInterval.High,d,e.WatchType.PackageJson)}function On(jn,Zn,Me){Wn(jn,Me,Zn),O=e.ConfigFileProgramReloadLevel.Full,H=!0,rn()}function ur(jn,Zn,Me){Wn(jn,Me,Zn),Zn===e.FileWatcherEventKind.Created&&A.has(Me)&&(A.get(Me).close(),A.delete(Me),He(Me),rn())}function hr(){g?e.updateWatchingWildcardDirectories(de||(de=new e.Map),new e.Map(e.getEntries(g)),wr):de&&e.clearMap(de,e.closeFileWatcherOf)}function wr(jn,Zn){return z(jn,function(Me){e.Debug.assert(!!q);var Mn=pe(Me);m&&m.addOrDeleteFileOrDirectory(Me,Mn),He(Mn),!e.isIgnoredFileFromWildCardWatching({watchedDirPath:pe(jn),fileOrDirectory:Me,fileOrDirectoryPath:Mn,configFileName:q,extraFileExtensions:R,options:C,program:Be()||U,currentDirectory:ie,useCaseSensitiveFileNames:b,writeLog:K,toPath:pe})&&O!==e.ConfigFileProgramReloadLevel.Full&&(O=e.ConfigFileProgramReloadLevel.Partial,rn())},Zn,d,e.WatchType.WildcardDirectory)}function Qr(jn,Zn,Me,Mn){e.updateSharedExtendedConfigFileWatcher(jn,Zn,Z||(Z=new e.Map),function(ar,Xn){return me(ar,function(yr,cr){var Fe;Wn(ar,Xn,cr),E&&e.cleanExtendedConfigCache(E,Xn,pe);var Bn=(Fe=Z.get(Xn))===null||Fe===void 0?void 0:Fe.projects;Bn!=null&&Bn.size&&Bn.forEach(function(J){if(pe(q)===J)O=e.ConfigFileProgramReloadLevel.Full;else{var Cn=V==null?void 0:V.get(J);Cn&&(Cn.reloadLevel=e.ConfigFileProgramReloadLevel.Full),Se.removeResolutionsFromProjectReferenceRedirects(J)}rn()})},e.PollingInterval.High,Me,Mn)},pe)}function Ke(jn,Zn,Me){var Mn,ar,Xn,yr,cr;Me.watcher||(Me.watcher=me(jn,function(Fe,Bn){Wn(jn,Zn,Bn);var J=V==null?void 0:V.get(Zn);J&&(J.reloadLevel=e.ConfigFileProgramReloadLevel.Full),Se.removeResolutionsFromProjectReferenceRedirects(Zn),rn()},e.PollingInterval.High,((Mn=Me.parsedCommandLine)===null||Mn===void 0?void 0:Mn.watchOptions)||d,e.WatchType.ConfigFileOfReferencedProject)),!((ar=Me.parsedCommandLine)===null||ar===void 0)&&ar.wildcardDirectories?e.updateWatchingWildcardDirectories(Me.watchedDirectories||(Me.watchedDirectories=new e.Map),new e.Map(e.getEntries((Xn=Me.parsedCommandLine)===null||Xn===void 0?void 0:Xn.wildcardDirectories)),function(Fe,Bn){var J;return z(Fe,function(Cn){var Gn=pe(Cn);m&&m.addOrDeleteFileOrDirectory(Cn,Gn),He(Gn);var cn=V==null?void 0:V.get(Zn);cn!=null&&cn.parsedCommandLine&&(e.isIgnoredFileFromWildCardWatching({watchedDirPath:pe(Fe),fileOrDirectory:Cn,fileOrDirectoryPath:Gn,configFileName:jn,options:cn.parsedCommandLine.options,program:cn.parsedCommandLine.fileNames,currentDirectory:ie,useCaseSensitiveFileNames:b,writeLog:K,toPath:pe})||cn.reloadLevel!==e.ConfigFileProgramReloadLevel.Full&&(cn.reloadLevel=e.ConfigFileProgramReloadLevel.Partial,rn()))},Bn,((J=Me.parsedCommandLine)===null||J===void 0?void 0:J.watchOptions)||d,e.WatchType.WildcardDirectoryOfReferencedProject)}):Me.watchedDirectories&&(e.clearMap(Me.watchedDirectories,e.closeFileWatcherOf),Me.watchedDirectories=void 0),Qr(Zn,(yr=Me.parsedCommandLine)===null||yr===void 0?void 0:yr.options,((cr=Me.parsedCommandLine)===null||cr===void 0?void 0:cr.watchOptions)||d,e.WatchType.ExtendedConfigOfReferencedProject)}}e.createWatchProgram=W})(vn||(vn={}));var vn;(function(e){var o;(function($){$[$.Unbuildable=0]="Unbuildable",$[$.UpToDate=1]="UpToDate",$[$.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",$[$.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",$[$.OutputMissing=4]="OutputMissing",$[$.OutOfDateWithSelf=5]="OutOfDateWithSelf",$[$.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",$[$.UpstreamOutOfDate=7]="UpstreamOutOfDate",$[$.UpstreamBlocked=8]="UpstreamBlocked",$[$.ComputingUpstream=9]="ComputingUpstream",$[$.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",$[$.ContainerOnly=11]="ContainerOnly"})(o=e.UpToDateStatusType||(e.UpToDateStatusType={}));function ue($){return e.fileExtensionIs($,".json")?$:e.combinePaths($,"tsconfig.json")}e.resolveConfigFileProjectName=ue})(vn||(vn={}));var vn;(function(e){var o=new Date(-864e13),ue=new Date(864e13),$;(function(le){le[le.None=0]="None",le[le.Success=1]="Success",le[le.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",le[le.ConfigFileErrors=4]="ConfigFileErrors",le[le.SyntaxErrors=8]="SyntaxErrors",le[le.TypeErrors=16]="TypeErrors",le[le.DeclarationEmitErrors=32]="DeclarationEmitErrors",le[le.EmitErrors=64]="EmitErrors",le[le.AnyErrors=124]="AnyErrors"})($||($={}));function Y(le,Pe,xe){var Ze=le.get(Pe),hn;return Ze||(hn=xe(),le.set(Pe,hn)),Ze||hn}function W(le,Pe){return Y(le,Pe,function(){return new e.Map})}function re(le,Pe){return Pe>le?Pe:le}function ye(le){return e.fileExtensionIs(le,".d.ts")}function O(le){return!!le&&!!le.buildOrder}e.isCircularBuildOrder=O;function A(le){return O(le)?le.buildOrder:le}e.getBuildOrderFromAnyBuildOrder=A;function D(le,Pe){return function(xe){var Ze=Pe?"["+e.formatColorAndReset(e.getLocaleTimeString(le),e.ForegroundColorEscapeSequences.Grey)+"] ":e.getLocaleTimeString(le)+" - ";Ze+=""+e.flattenDiagnosticMessageText(xe.messageText,le.newLine)+(le.newLine+le.newLine),le.write(Ze)}}e.createBuilderStatusReporter=D;function de(le,Pe,xe,Ze){var hn=e.createProgramHost(le,Pe);return hn.getModifiedTime=le.getModifiedTime?function(Le){return le.getModifiedTime(Le)}:e.returnUndefined,hn.setModifiedTime=le.setModifiedTime?function(Le,$e){return le.setModifiedTime(Le,$e)}:e.noop,hn.deleteFile=le.deleteFile?function(Le){return le.deleteFile(Le)}:e.noop,hn.reportDiagnostic=xe||e.createDiagnosticReporter(le),hn.reportSolutionBuilderStatus=Ze||D(le),hn.now=e.maybeBind(le,le.now),hn}function _e(le,Pe,xe,Ze,hn){le===void 0&&(le=e.sys);var Le=de(le,Pe,xe,Ze);return Le.reportErrorSummary=hn,Le}e.createSolutionBuilderHost=_e;function y(le,Pe,xe,Ze,hn){le===void 0&&(le=e.sys);var Le=de(le,Pe,xe,Ze),$e=e.createWatchHost(le,hn);return e.copyProperties(Le,$e),Le}e.createSolutionBuilderWithWatchHost=y;function V(le){var Pe={};return e.commonOptionsWithBuild.forEach(function(xe){e.hasProperty(le,xe.name)&&(Pe[xe.name]=le[xe.name])}),Pe}function Z(le,Pe,xe){return He(!1,le,Pe,xe)}e.createSolutionBuilder=Z;function E(le,Pe,xe,Ze){return He(!0,le,Pe,xe,Ze)}e.createSolutionBuilderWithWatch=E;function H(le,Pe,xe,Ze,hn){var Le=Pe,$e=Pe,An=Le.getCurrentDirectory(),Ue=e.createGetCanonicalFileName(Le.useCaseSensitiveFileNames()),gn=V(Ze),Wn=e.createCompilerHostFromProgramHost(Le,function(){return jn.projectCompilerOptions});e.setGetSourceFileAsHashVersioned(Wn,Le),Wn.getParsedCommandLine=function(Zn){return ie(jn,Zn,ee(jn,Zn))},Wn.resolveModuleNames=e.maybeBind(Le,Le.resolveModuleNames),Wn.resolveTypeReferenceDirectives=e.maybeBind(Le,Le.resolveTypeReferenceDirectives);var ze=Wn.resolveModuleNames?void 0:e.createModuleResolutionCache(An,Ue),Tn=Wn.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(An,Ue,void 0,ze==null?void 0:ze.getPackageJsonInfoCache());if(!Wn.resolveModuleNames){var On=function(Zn,Me,Mn){return e.resolveModuleName(Zn,Me,jn.projectCompilerOptions,Wn,ze,Mn).resolvedModule};Wn.resolveModuleNames=function(Zn,Me,Mn,ar){return e.loadWithLocalCache(e.Debug.checkEachDefined(Zn),Me,ar,On)}}if(!Wn.resolveTypeReferenceDirectives){var ur=function(Zn,Me,Mn){return e.resolveTypeReferenceDirective(Zn,Me,jn.projectCompilerOptions,Wn,Mn,jn.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective};Wn.resolveTypeReferenceDirectives=function(Zn,Me,Mn){return e.loadWithLocalCache(e.Debug.checkEachDefined(Zn),Me,Mn,ur)}}var hr=e.createWatchFactory($e,Ze),wr=hr.watchFile,Qr=hr.watchDirectory,Ke=hr.writeLog,jn={host:Le,hostWithWatch:$e,currentDirectory:An,getCanonicalFileName:Ue,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(Le),write:e.maybeBind(Le,Le.trace),options:Ze,baseCompilerOptions:gn,rootNames:xe,baseWatchOptions:hn,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,buildInfoChecked:new e.Map,extendedConfigCache:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:Wn,moduleResolutionCache:ze,typeReferenceDirectiveResolutionCache:Tn,buildOrder:void 0,readFileWithCache:function(Zn){return Le.readFile(Zn)},projectCompilerOptions:gn,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:le,currentInvalidatedProject:void 0,watch:le,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:wr,watchDirectory:Qr,writeLog:Ke};return jn}function L(le,Pe){return e.toPath(Pe,le.currentDirectory,le.getCanonicalFileName)}function ee(le,Pe){var xe=le.resolvedConfigFilePaths,Ze=xe.get(Pe);if(Ze!==void 0)return Ze;var hn=L(le,Pe);return xe.set(Pe,hn),hn}function k(le){return!!le.options}function b(le,Pe){var xe=le.configFileCache.get(Pe);return xe&&k(xe)?xe:void 0}function ie(le,Pe,xe){var Ze=le.configFileCache,hn=Ze.get(xe);if(hn)return k(hn)?hn:void 0;var Le,$e=le.parseConfigFileHost,An=le.baseCompilerOptions,Ue=le.baseWatchOptions,gn=le.extendedConfigCache,Wn=le.host,ze;return Wn.getParsedCommandLine?(ze=Wn.getParsedCommandLine(Pe),ze||(Le=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,Pe))):($e.onUnRecoverableConfigFileDiagnostic=function(Tn){return Le=Tn},ze=e.getParsedCommandLineOfConfigFile(Pe,An,$e,gn,Ue),$e.onUnRecoverableConfigFileDiagnostic=e.noop),Ze.set(xe,ze||Le),ze}function q(le,Pe){return e.resolveConfigFileProjectName(e.resolvePath(le.currentDirectory,Pe))}function oe(le,Pe){for(var xe=new e.Map,Ze=new e.Map,hn=[],Le,$e,An=0,Ue=Pe;An<Ue.length;An++){var gn=Ue[An];Wn(gn)}return $e?{buildOrder:Le||e.emptyArray,circularDiagnostics:$e}:Le||e.emptyArray;function Wn(ze,Tn){var On=ee(le,ze);if(!Ze.has(On)){if(xe.has(On)){Tn||($e||($e=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,hn.join(`\r
`)));return}xe.set(On,!0),hn.push(ze);var ur=ie(le,ze,On);if(ur&&ur.projectReferences)for(var hr=0,wr=ur.projectReferences;hr<wr.length;hr++){var Qr=wr[hr],Ke=q(le,Qr.path);Wn(Ke,Tn||Qr.circular)}hn.pop(),Ze.set(On,!0),(Le||(Le=[])).push(ze)}}}function se(le){return le.buildOrder||w(le)}function w(le){var Pe=oe(le,le.rootNames.map(function(hn){return q(le,hn)}));le.resolvedConfigFilePaths.clear();var xe=new e.Map(A(Pe).map(function(hn){return[ee(le,hn),!0]})),Ze={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(le.configFileCache,xe,Ze),e.mutateMapSkippingNewValues(le.projectStatus,xe,Ze),e.mutateMapSkippingNewValues(le.buildInfoChecked,xe,Ze),e.mutateMapSkippingNewValues(le.builderPrograms,xe,Ze),e.mutateMapSkippingNewValues(le.diagnostics,xe,Ze),e.mutateMapSkippingNewValues(le.projectPendingBuild,xe,Ze),e.mutateMapSkippingNewValues(le.projectErrorsReported,xe,Ze),le.watch&&(e.mutateMapSkippingNewValues(le.allWatchedConfigFiles,xe,{onDeleteValue:e.closeFileWatcher}),le.allWatchedExtendedConfigFiles.forEach(function(hn){hn.projects.forEach(function(Le){xe.has(Le)||hn.projects.delete(Le)}),hn.close()}),e.mutateMapSkippingNewValues(le.allWatchedWildcardDirectories,xe,{onDeleteValue:function(hn){return hn.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(le.allWatchedInputFiles,xe,{onDeleteValue:function(hn){return hn.forEach(e.closeFileWatcher)}}),e.mutateMapSkippingNewValues(le.allWatchedPackageJsonFiles,xe,{onDeleteValue:function(hn){return hn.forEach(e.closeFileWatcher)}})),le.buildOrder=Pe}function R(le,Pe,xe){var Ze=Pe&&q(le,Pe),hn=se(le);if(O(hn))return hn;if(Ze){var Le=ee(le,Ze),$e=e.findIndex(hn,function(Ue){return ee(le,Ue)===Le});if($e===-1)return}var An=Ze?oe(le,[Ze]):hn;return e.Debug.assert(!O(An)),e.Debug.assert(!xe||Ze!==void 0),e.Debug.assert(!xe||An[An.length-1]===Ze),xe?An.slice(0,An.length-1):An}function ne(le){le.cache&&U(le);var Pe=le.compilerHost,xe=le.host,Ze=le.readFileWithCache,hn=Pe.getSourceFile,Le=e.changeCompilerHostLikeToUseCache(xe,function(On){return L(le,On)},function(){for(var On=[],ur=0;ur<arguments.length;ur++)On[ur]=arguments[ur];return hn.call.apply(hn,Vr([Pe],On,!1))}),$e=Le.originalReadFile,An=Le.originalFileExists,Ue=Le.originalDirectoryExists,gn=Le.originalCreateDirectory,Wn=Le.originalWriteFile,ze=Le.getSourceFileWithCache,Tn=Le.readFileWithCache;le.readFileWithCache=Tn,Pe.getSourceFile=ze,le.cache={originalReadFile:$e,originalFileExists:An,originalDirectoryExists:Ue,originalCreateDirectory:gn,originalWriteFile:Wn,originalReadFileWithCache:Ze,originalGetSourceFile:hn}}function U(le){if(le.cache){var Pe=le.cache,xe=le.host,Ze=le.compilerHost,hn=le.extendedConfigCache,Le=le.moduleResolutionCache,$e=le.typeReferenceDirectiveResolutionCache;xe.readFile=Pe.originalReadFile,xe.fileExists=Pe.originalFileExists,xe.directoryExists=Pe.originalDirectoryExists,xe.createDirectory=Pe.originalCreateDirectory,xe.writeFile=Pe.originalWriteFile,Ze.getSourceFile=Pe.originalGetSourceFile,le.readFileWithCache=Pe.originalReadFileWithCache,hn.clear(),Le==null||Le.clear(),$e==null||$e.clear(),le.cache=void 0}}function C(le,Pe){le.projectStatus.delete(Pe),le.diagnostics.delete(Pe)}function d(le,Pe,xe){var Ze=le.projectPendingBuild,hn=Ze.get(Pe);(hn===void 0||hn<xe)&&Ze.set(Pe,xe)}function G(le,Pe){if(le.allProjectBuildPending){le.allProjectBuildPending=!1,le.options.watch&&fn(le,e.Diagnostics.Starting_compilation_in_watch_mode),ne(le);var xe=A(se(le));xe.forEach(function(Ze){return le.projectPendingBuild.set(ee(le,Ze),e.ConfigFileProgramReloadLevel.None)}),Pe&&Pe.throwIfCancellationRequested()}}var g;(function(le){le[le.Build=0]="Build",le[le.UpdateBundle=1]="UpdateBundle",le[le.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"})(g=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={}));function p(le,Pe){return le.projectPendingBuild.delete(Pe),le.currentInvalidatedProject=void 0,le.diagnostics.has(Pe)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function f(le,Pe,xe,Ze,hn){var Le=!0;return{kind:g.UpdateOutputFileStamps,project:Pe,projectPath:xe,buildOrder:hn,getCompilerOptions:function(){return Ze.options},getCurrentDirectory:function(){return le.currentDirectory},updateOutputFileStatmps:function(){te(le,Ze,xe),Le=!1},done:function(){return Le&&te(le,Ze,xe),p(le,xe)}}}var T;(function(le){le[le.CreateProgram=0]="CreateProgram",le[le.SyntaxDiagnostics=1]="SyntaxDiagnostics",le[le.SemanticDiagnostics=2]="SemanticDiagnostics",le[le.Emit=3]="Emit",le[le.EmitBundle=4]="EmitBundle",le[le.EmitBuildInfo=5]="EmitBuildInfo",le[le.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",le[le.QueueReferencingProjects=7]="QueueReferencingProjects",le[le.Done=8]="Done"})(T||(T={}));function m(le,Pe,xe,Ze,hn,Le,$e){var An=le===g.Build?T.CreateProgram:T.EmitBundle,Ue,gn,Wn;return le===g.Build?{kind:le,project:xe,projectPath:Ze,buildOrder:$e,getCompilerOptions:function(){return Le.options},getCurrentDirectory:function(){return Pe.currentDirectory},getBuilderProgram:function(){return Tn(e.identity)},getProgram:function(){return Tn(function(ar){return ar.getProgramOrUndefined()})},getSourceFile:function(ar){return Tn(function(Xn){return Xn.getSourceFile(ar)})},getSourceFiles:function(){return On(function(ar){return ar.getSourceFiles()})},getOptionsDiagnostics:function(ar){return On(function(Xn){return Xn.getOptionsDiagnostics(ar)})},getGlobalDiagnostics:function(ar){return On(function(Xn){return Xn.getGlobalDiagnostics(ar)})},getConfigFileParsingDiagnostics:function(){return On(function(ar){return ar.getConfigFileParsingDiagnostics()})},getSyntacticDiagnostics:function(ar,Xn){return On(function(yr){return yr.getSyntacticDiagnostics(ar,Xn)})},getAllDependencies:function(ar){return On(function(Xn){return Xn.getAllDependencies(ar)})},getSemanticDiagnostics:function(ar,Xn){return On(function(yr){return yr.getSemanticDiagnostics(ar,Xn)})},getSemanticDiagnosticsOfNextAffectedFile:function(ar,Xn){return Tn(function(yr){return yr.getSemanticDiagnosticsOfNextAffectedFile&&yr.getSemanticDiagnosticsOfNextAffectedFile(ar,Xn)})},emit:function(ar,Xn,yr,cr,Fe){if(ar||cr)return Tn(function(Bn){var J,Cn;return Bn.emit(ar,Xn,yr,cr,Fe||((Cn=(J=Pe.host).getCustomTransformers)===null||Cn===void 0?void 0:Cn.call(J,xe)))});if(Mn(T.SemanticDiagnostics,yr),An===T.EmitBuildInfo)return jn(Xn,yr);if(An===T.Emit)return Ke(Xn,yr,Fe)},done:ze}:{kind:le,project:xe,projectPath:Ze,buildOrder:$e,getCompilerOptions:function(){return Le.options},getCurrentDirectory:function(){return Pe.currentDirectory},emit:function(ar,Xn){return An!==T.EmitBundle?Wn:Me(ar,Xn)},done:ze};function ze(ar,Xn,yr){return Mn(T.Done,ar,Xn,yr),p(Pe,Ze)}function Tn(ar){return Mn(T.CreateProgram),Ue&&ar(Ue)}function On(ar){return Tn(ar)||e.emptyArray}function ur(){var ar,Xn;if(e.Debug.assert(Ue===void 0),Pe.options.dry){Un(Pe,e.Diagnostics.A_non_dry_build_would_build_project_0,xe),gn=$.Success,An=T.QueueReferencingProjects;return}if(Pe.options.verbose&&Un(Pe,e.Diagnostics.Building_project_0,xe),Le.fileNames.length===0){i(Pe,Ze,e.getConfigFileParsingDiagnostics(Le)),gn=$.None,An=T.QueueReferencingProjects;return}var yr=Pe.host,cr=Pe.compilerHost;Pe.projectCompilerOptions=Le.options,(ar=Pe.moduleResolutionCache)===null||ar===void 0||ar.update(Le.options),(Xn=Pe.typeReferenceDirectiveResolutionCache)===null||Xn===void 0||Xn.update(Le.options),Ue=yr.createProgram(Le.fileNames,Le.options,cr,M(Pe,Ze,Le),e.getConfigFileParsingDiagnostics(Le),Le.projectReferences),Pe.watch&&(Pe.lastCachedPackageJsonLookups.set(Ze,Pe.moduleResolutionCache&&e.map(Pe.moduleResolutionCache.getPackageJsonInfoCache().entries(),function(Fe){var Bn=Fe[0],J=Fe[1];return[Pe.host.realpath&&J?L(Pe,Pe.host.realpath(Bn)):Bn,J]})),Pe.builderPrograms.set(Ze,Ue)),An++}function hr(ar,Xn,yr){var cr;ar.length?(cr=z(Pe,Ze,Ue,Le,ar,Xn,yr),gn=cr.buildResult,An=cr.step):An++}function wr(ar){e.Debug.assertIsDefined(Ue),hr(Vr(Vr(Vr(Vr([],Ue.getConfigFileParsingDiagnostics(),!0),Ue.getOptionsDiagnostics(ar),!0),Ue.getGlobalDiagnostics(ar),!0),Ue.getSyntacticDiagnostics(void 0,ar),!0),$.SyntaxErrors,"Syntactic")}function Qr(ar){hr(e.Debug.checkDefined(Ue).getSemanticDiagnostics(void 0,ar),$.TypeErrors,"Semantic")}function Ke(ar,Xn,yr){var cr,Fe,Bn;e.Debug.assertIsDefined(Ue),e.Debug.assert(An===T.Emit),Ue.backupState();var J,Cn=function(Dr){return(J||(J=[])).push(Dr)},Gn=[],cn=e.emitFilesAndReportErrors(Ue,Cn,void 0,void 0,function(Dr,qr,ft){return Gn.push({name:Dr,text:qr,writeByteOrderMark:ft})},Xn,!1,yr||((Bn=(Fe=Pe.host).getCustomTransformers)===null||Bn===void 0?void 0:Bn.call(Fe,xe))).emitResult;if(J)return Ue.restoreState(),cr=z(Pe,Ze,Ue,Le,J,$.DeclarationEmitErrors,"Declaration file"),gn=cr.buildResult,An=cr.step,{emitSkipped:!0,diagnostics:cn.diagnostics};var Rn=Pe.host,Ye=Pe.compilerHost,xn=$.DeclarationOutputUnchanged,an=o,zn=!1,ir=e.createDiagnosticCollection(),gr=new e.Map;return Gn.forEach(function(Dr){var qr=Dr.name,ft=Dr.text,xt=Dr.writeByteOrderMark,Kr;!zn&&ye(qr)&&(Rn.fileExists(qr)&&Pe.readFileWithCache(qr)===ft?Kr=Rn.getModifiedTime(qr):(xn&=~$.DeclarationOutputUnchanged,zn=!0)),gr.set(L(Pe,qr),qr),e.writeFile(ar?{writeFile:ar}:Ye,ir,qr,ft,xt),Kr!==void 0&&(an=re(Kr,an))}),Zn(ir,gr,an,zn,Gn.length?Gn[0].name:e.getFirstProjectOutput(Le,!Rn.useCaseSensitiveFileNames()),xn),cn}function jn(ar,Xn){e.Debug.assertIsDefined(Ue),e.Debug.assert(An===T.EmitBuildInfo);var yr=Ue.emitBuildInfo(ar,Xn);return yr.diagnostics.length&&(En(Pe,yr.diagnostics),Pe.diagnostics.set(Ze,Vr(Vr([],Pe.diagnostics.get(Ze),!0),yr.diagnostics,!0)),gn=$.EmitErrors&gn),yr.emittedFiles&&Pe.write&&yr.emittedFiles.forEach(function(cr){return x(Pe,Le,cr)}),me(Pe,Ue,Le),An=T.QueueReferencingProjects,yr}function Zn(ar,Xn,yr,cr,Fe,Bn){var J,Cn=ar.getDiagnostics();if(Cn.length)return J=z(Pe,Ze,Ue,Le,Cn,$.EmitErrors,"Emit"),gn=J.buildResult,An=J.step,Cn;Pe.write&&Xn.forEach(function(cn){return x(Pe,Le,cn)});var Gn=Oe(Pe,Le,yr,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,Xn);return Pe.diagnostics.delete(Ze),Pe.projectStatus.set(Ze,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:cr?ue:Gn,oldestOutputFileName:Fe}),me(Pe,Ue,Le),An=T.QueueReferencingProjects,gn=Bn,Cn}function Me(ar,Xn){var yr,cr;if(e.Debug.assert(le===g.UpdateBundle),Pe.options.dry){Un(Pe,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,xe),gn=$.Success,An=T.QueueReferencingProjects;return}Pe.options.verbose&&Un(Pe,e.Diagnostics.Updating_output_of_project_0,xe);var Fe=Pe.compilerHost;Pe.projectCompilerOptions=Le.options;var Bn=e.emitUsingBuildInfo(Le,Fe,function(cn){var Rn=q(Pe,cn.path);return ie(Pe,Rn,ee(Pe,Rn))},Xn||((cr=(yr=Pe.host).getCustomTransformers)===null||cr===void 0?void 0:cr.call(yr,xe)));if(e.isString(Bn))return Un(Pe,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,xe,Ln(Pe,Bn)),An=T.BuildInvalidatedProjectOfBundle,Wn=m(g.Build,Pe,xe,Ze,hn,Le,$e);e.Debug.assert(!!Bn.length);var J=e.createDiagnosticCollection(),Cn=new e.Map;Bn.forEach(function(cn){var Rn=cn.name,Ye=cn.text,xn=cn.writeByteOrderMark;Cn.set(L(Pe,Rn),Rn),e.writeFile(ar?{writeFile:ar}:Fe,J,Rn,Ye,xn)});var Gn=Zn(J,Cn,o,!1,Bn[0].name,$.DeclarationOutputUnchanged);return{emitSkipped:!1,diagnostics:Gn}}function Mn(ar,Xn,yr,cr){for(;An<=ar&&An<T.Done;){var Fe=An;switch(An){case T.CreateProgram:ur();break;case T.SyntaxDiagnostics:wr(Xn);break;case T.SemanticDiagnostics:Qr(Xn);break;case T.Emit:Ke(yr,Xn,cr);break;case T.EmitBuildInfo:jn(yr,Xn);break;case T.EmitBundle:Me(yr,cr);break;case T.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(Wn).done(Xn,yr,cr),An=T.Done;break;case T.QueueReferencingProjects:Se(Pe,xe,Ze,hn,Le,$e,e.Debug.checkDefined(gn)),An++;break;case T.Done:default:e.assertType(An)}e.Debug.assert(An>Fe)}}}function N(le,Pe,xe){var Ze=le.options;return Pe.type!==e.UpToDateStatusType.OutOfDateWithPrepend||Ze.force?!0:xe.fileNames.length===0||!!e.getConfigFileParsingDiagnostics(xe).length||!e.isIncrementalCompilation(xe.options)}function P(le,Pe,xe){if(le.projectPendingBuild.size&&!O(Pe)){if(le.currentInvalidatedProject)return e.arrayIsEqualTo(le.currentInvalidatedProject.buildOrder,Pe)?le.currentInvalidatedProject:void 0;for(var Ze=le.options,hn=le.projectPendingBuild,Le=0;Le<Pe.length;Le++){var $e=Pe[Le],An=ee(le,$e),Ue=le.projectPendingBuild.get(An);if(Ue!==void 0){xe&&(xe=!1,rn(le,Pe));var gn=ie(le,$e,An);if(!gn){In(le,An),hn.delete(An);continue}Ue===e.ConfigFileProgramReloadLevel.Full?(Ne(le,$e,An,gn),qe(le,An,gn),pe(le,$e,An,gn),we(le,$e,An,gn),pn(le,$e,An,gn)):Ue===e.ConfigFileProgramReloadLevel.Partial&&(gn.fileNames=e.getFileNamesFromConfigSpecs(gn.options.configFile.configFileSpecs,e.getDirectoryPath($e),gn.options,le.parseConfigFileHost),e.updateErrorForNoInputFiles(gn.fileNames,$e,gn.options.configFile.configFileSpecs,gn.errors,e.canJsonReportNoInputFiles(gn.raw)),we(le,$e,An,gn),pn(le,$e,An,gn));var Wn=Ae(le,gn,An);if(Vn(le,$e,Wn),!Ze.force){if(Wn.type===e.UpToDateStatusType.UpToDate){i(le,An,e.getConfigFileParsingDiagnostics(gn)),hn.delete(An),Ze.dry&&Un(le,e.Diagnostics.Project_0_is_up_to_date,$e);continue}if(Wn.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return i(le,An,e.getConfigFileParsingDiagnostics(gn)),f(le,$e,An,gn,Pe)}if(Wn.type===e.UpToDateStatusType.UpstreamBlocked){i(le,An,e.getConfigFileParsingDiagnostics(gn)),hn.delete(An),Ze.verbose&&Un(le,Wn.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,$e,Wn.upstreamProjectName);continue}if(Wn.type===e.UpToDateStatusType.ContainerOnly){i(le,An,e.getConfigFileParsingDiagnostics(gn)),hn.delete(An);continue}return m(N(le,Wn,gn)?g.Build:g.UpdateBundle,le,$e,An,Le,gn,Pe)}}}}function x(le,Pe,xe){var Ze=le.write;Ze&&Pe.options.listEmittedFiles&&Ze("TSFILE: "+xe)}function M(le,Pe,xe){var Ze=le.options,hn=le.builderPrograms,Le=le.compilerHost;if(!Ze.force){var $e=hn.get(Pe);return $e||e.readBuilderProgram(xe.options,Le)}}function me(le,Pe,xe){Pe?(Pe&&le.write&&e.listFiles(Pe,le.write),le.host.afterProgramEmitAndDiagnostics&&le.host.afterProgramEmitAndDiagnostics(Pe),Pe.releaseProgram()):le.host.afterEmitBundle&&le.host.afterEmitBundle(xe),le.projectCompilerOptions=le.baseCompilerOptions}function z(le,Pe,xe,Ze,hn,Le,$e){var An=!(Le&$.SyntaxErrors)&&xe&&!e.outFile(xe.getCompilerOptions());return i(le,Pe,hn),le.projectStatus.set(Pe,{type:e.UpToDateStatusType.Unbuildable,reason:$e+" errors"}),An?{buildResult:Le,step:T.EmitBuildInfo}:(me(le,xe,Ze),{buildResult:Le,step:T.QueueReferencingProjects})}function K(le,Pe,xe,Ze){var hn=e.getModifiedTime(le.host,Pe);if(xe<hn)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:Ze,newerInputFileName:Pe}}function I(le,Pe,xe){for(var Ze=!!le.options.force,hn=void 0,Le=o,$e=le.host,An=0,Ue=Pe.fileNames;An<Ue.length;An++){var gn=Ue[An];if(!$e.fileExists(gn))return{type:e.UpToDateStatusType.Unbuildable,reason:gn+" does not exist"};if(!Ze){var Wn=e.getModifiedTime($e,gn);$e.getModifiedTime(gn),Wn>Le&&(hn=gn,Le=Wn)}}if(!Pe.fileNames.length&&!e.canJsonReportNoInputFiles(Pe.raw))return{type:e.UpToDateStatusType.ContainerOnly};var ze=e.getAllProjectOutputs(Pe,!$e.useCaseSensitiveFileNames()),Tn="(none)",On=ue,ur="(none)",hr=o,wr,Qr=o,Ke=!1;if(!Ze)for(var jn=0,Zn=ze;jn<Zn.length;jn++){var Me=Zn[jn];if(!$e.fileExists(Me)){wr=Me;break}var Mn=e.getModifiedTime($e,Me);if(Mn<On&&(On=Mn,Tn=Me),Mn<Le){Ke=!0;break}if(Mn>hr&&(hr=Mn,ur=Me),ye(Me)){var ar=e.getModifiedTime($e,Me);Qr=re(Qr,ar)}}var Xn=!1,yr=!1,cr;if(Pe.projectReferences){le.projectStatus.set(xe,{type:e.UpToDateStatusType.ComputingUpstream});for(var Fe=0,Bn=Pe.projectReferences;Fe<Bn.length;Fe++){var J=Bn[Fe];yr=yr||!!J.prepend;var Cn=e.resolveProjectReferencePath(J),Gn=ee(le,Cn),cn=Ae(le,ie(le,Cn,Gn),Gn);if(!(cn.type===e.UpToDateStatusType.ComputingUpstream||cn.type===e.UpToDateStatusType.ContainerOnly)){if(cn.type===e.UpToDateStatusType.Unbuildable||cn.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:J.path,upstreamProjectBlocked:cn.type===e.UpToDateStatusType.UpstreamBlocked};if(cn.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:J.path};if(!Ze&&!wr){if(cn.newestInputFileTime&&cn.newestInputFileTime<=On)continue;if(cn.newestDeclarationFileContentChangedTime&&cn.newestDeclarationFileContentChangedTime<=On){Xn=!0,cr=J.path;continue}return e.Debug.assert(Tn!==void 0,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:Tn,newerProjectName:J.path}}}}}if(wr!==void 0)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:wr};if(Ke)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:Tn,newerInputFileName:hn};var Rn=K(le,Pe.options.configFilePath,On,Tn);if(Rn)return Rn;var Ye=e.forEach(Pe.options.configFile.extendedSourceFiles||e.emptyArray,function(gr){return K(le,gr,On,Tn)});if(Ye)return Ye;var xn=e.forEach(le.lastCachedPackageJsonLookups.get(xe)||e.emptyArray,function(gr){var Dr=gr[0];return K(le,Dr,On,Tn)});if(xn)return xn;if(!Ze&&!le.buildInfoChecked.has(xe)){le.buildInfoChecked.set(xe,!0);var an=e.getTsBuildInfoEmitOutputFilePath(Pe.options);if(an){var zn=le.readFileWithCache(an),ir=zn&&e.getBuildInfo(zn);if(ir&&(ir.bundle||ir.program)&&ir.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:ir.version}}}return yr&&Xn?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:Tn,newerProjectName:cr}:{type:Xn?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:Qr,newestInputFileTime:Le,newestOutputFileTime:hr,newestInputFileName:hn,newestOutputFileName:ur,oldestOutputFileName:Tn}}function Ae(le,Pe,xe){if(Pe===void 0)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var Ze=le.projectStatus.get(xe);if(Ze!==void 0)return Ze;var hn=I(le,Pe,xe);return le.projectStatus.set(xe,hn),hn}function Oe(le,Pe,xe,Ze,hn){if(Pe.options.noEmit)return xe;var Le=le.host,$e=e.getAllProjectOutputs(Pe,!Le.useCaseSensitiveFileNames());if(!hn||$e.length!==hn.size)for(var An=!!le.options.verbose,Ue=Le.now?Le.now():new Date,gn=0,Wn=$e;gn<Wn.length;gn++){var ze=Wn[gn];hn&&hn.has(L(le,ze))||(An&&(An=!1,Un(le,Ze,Pe.options.configFilePath)),ye(ze)&&(xe=re(xe,e.getModifiedTime(Le,ze))),Le.setModifiedTime(ze,Ue))}return xe}function te(le,Pe,xe){if(le.options.dry)return Un(le,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,Pe.options.configFilePath);var Ze=Oe(le,Pe,o,e.Diagnostics.Updating_output_timestamps_of_project_0);le.projectStatus.set(xe,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:Ze,oldestOutputFileName:e.getFirstProjectOutput(Pe,!le.host.useCaseSensitiveFileNames())})}function Se(le,Pe,xe,Ze,hn,Le,$e){if(!($e&$.AnyErrors)&&hn.options.composite)for(var An=Ze+1;An<Le.length;An++){var Ue=Le[An],gn=ee(le,Ue);if(!le.projectPendingBuild.has(gn)){var Wn=ie(le,Ue,gn);if(!(!Wn||!Wn.projectReferences))for(var ze=0,Tn=Wn.projectReferences;ze<Tn.length;ze++){var On=Tn[ze],ur=q(le,On.path);if(ee(le,ur)===xe){var hr=le.projectStatus.get(gn);if(hr)switch(hr.type){case e.UpToDateStatusType.UpToDate:if($e&$.DeclarationOutputUnchanged){On.prepend?le.projectStatus.set(gn,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:hr.oldestOutputFileName,newerProjectName:Pe}):hr.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:$e&$.DeclarationOutputUnchanged||le.projectStatus.set(gn,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:hr.type===e.UpToDateStatusType.OutOfDateWithPrepend?hr.outOfDateOutputFileName:hr.oldestOutputFileName,newerProjectName:Pe});break;case e.UpToDateStatusType.UpstreamBlocked:ee(le,q(le,hr.upstreamProjectName))===xe&&C(le,gn);break}d(le,gn,e.ConfigFileProgramReloadLevel.None);break}}}}}function be(le,Pe,xe,Ze,hn,Le){var $e=R(le,Pe,Le);if(!$e)return e.ExitStatus.InvalidProject_OutputsSkipped;G(le,xe);for(var An=!0,Ue=0;;){var gn=P(le,$e,An);if(!gn)break;An=!1,gn.done(xe,Ze,hn==null?void 0:hn(gn.project)),le.diagnostics.has(gn.projectPath)||Ue++}return U(le),X(le,$e),Qe(le,$e),O($e)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:$e.some(function(Wn){return le.diagnostics.has(ee(le,Wn))})?Ue?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function Ce(le,Pe,xe){var Ze=R(le,Pe,xe);if(!Ze)return e.ExitStatus.InvalidProject_OutputsSkipped;if(O(Ze))return En(le,Ze.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var hn=le.options,Le=le.host,$e=hn.dry?[]:void 0,An=0,Ue=Ze;An<Ue.length;An++){var gn=Ue[An],Wn=ee(le,gn),ze=ie(le,gn,Wn);if(ze===void 0){In(le,Wn);continue}var Tn=e.getAllProjectOutputs(ze,!Le.useCaseSensitiveFileNames());if(Tn.length)for(var On=new e.Set(ze.fileNames.map(function(Qr){return L(le,Qr)})),ur=0,hr=Tn;ur<hr.length;ur++){var wr=hr[ur];On.has(L(le,wr))||Le.fileExists(wr)&&($e?$e.push(wr):(Le.deleteFile(wr),Be(le,Wn,e.ConfigFileProgramReloadLevel.None)))}}return $e&&Un(le,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,$e.map(function(Qr){return`\r
* `+Qr}).join("")),e.ExitStatus.Success}function Be(le,Pe,xe){le.host.getParsedCommandLine&&xe===e.ConfigFileProgramReloadLevel.Partial&&(xe=e.ConfigFileProgramReloadLevel.Full),xe===e.ConfigFileProgramReloadLevel.Full&&(le.configFileCache.delete(Pe),le.buildOrder=void 0),le.needsSummary=!0,C(le,Pe),d(le,Pe,xe),ne(le)}function De(le,Pe,xe){le.reportFileChangeDetected=!0,Be(le,Pe,xe),en(le)}function en(le){var Pe=le.hostWithWatch;!Pe.setTimeout||!Pe.clearTimeout||(le.timerToBuildInvalidatedProject&&Pe.clearTimeout(le.timerToBuildInvalidatedProject),le.timerToBuildInvalidatedProject=Pe.setTimeout(fe,250,le))}function fe(le){le.timerToBuildInvalidatedProject=void 0,le.reportFileChangeDetected&&(le.reportFileChangeDetected=!1,le.projectErrorsReported.clear(),fn(le,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var Pe=se(le),xe=P(le,Pe,!1);if(xe&&(xe.done(),le.projectPendingBuild.size)){le.watch&&!le.timerToBuildInvalidatedProject&&en(le);return}U(le),X(le,Pe)}function Ne(le,Pe,xe,Ze){!le.watch||le.allWatchedConfigFiles.has(xe)||le.allWatchedConfigFiles.set(xe,le.watchFile(Pe,function(){De(le,xe,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,Ze==null?void 0:Ze.watchOptions,e.WatchType.ConfigFile,Pe))}function qe(le,Pe,xe){e.updateSharedExtendedConfigFileWatcher(Pe,xe==null?void 0:xe.options,le.allWatchedExtendedConfigFiles,function(Ze,hn){return le.watchFile(Ze,function(){var Le;return(Le=le.allWatchedExtendedConfigFiles.get(hn))===null||Le===void 0?void 0:Le.projects.forEach(function($e){return De(le,$e,e.ConfigFileProgramReloadLevel.Full)})},e.PollingInterval.High,xe==null?void 0:xe.watchOptions,e.WatchType.ExtendedConfigFile)},function(Ze){return L(le,Ze)})}function pe(le,Pe,xe,Ze){le.watch&&e.updateWatchingWildcardDirectories(W(le.allWatchedWildcardDirectories,xe),new e.Map(e.getEntries(Ze.wildcardDirectories)),function(hn,Le){return le.watchDirectory(hn,function($e){var An;e.isIgnoredFileFromWildCardWatching({watchedDirPath:L(le,hn),fileOrDirectory:$e,fileOrDirectoryPath:L(le,$e),configFileName:Pe,currentDirectory:le.currentDirectory,options:Ze.options,program:le.builderPrograms.get(xe)||((An=b(le,xe))===null||An===void 0?void 0:An.fileNames),useCaseSensitiveFileNames:le.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(Ue){return le.writeLog(Ue)},toPath:function(Ue){return L(le,Ue)}})||De(le,xe,e.ConfigFileProgramReloadLevel.Partial)},Le,Ze==null?void 0:Ze.watchOptions,e.WatchType.WildcardDirectory,Pe)})}function we(le,Pe,xe,Ze){le.watch&&e.mutateMap(W(le.allWatchedInputFiles,xe),e.arrayToMap(Ze.fileNames,function(hn){return L(le,hn)}),{createNewValue:function(hn,Le){return le.watchFile(Le,function(){return De(le,xe,e.ConfigFileProgramReloadLevel.None)},e.PollingInterval.Low,Ze==null?void 0:Ze.watchOptions,e.WatchType.SourceFile,Pe)},onDeleteValue:e.closeFileWatcher})}function pn(le,Pe,xe,Ze){!le.watch||!le.lastCachedPackageJsonLookups||e.mutateMap(W(le.allWatchedPackageJsonFiles,xe),new e.Map(le.lastCachedPackageJsonLookups.get(xe)),{createNewValue:function(hn,Le){return le.watchFile(hn,function(){return De(le,xe,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,Ze==null?void 0:Ze.watchOptions,e.WatchType.PackageJson,Pe)},onDeleteValue:e.closeFileWatcher})}function Qe(le,Pe){if(le.watchAllProjectsPending){le.watchAllProjectsPending=!1;for(var xe=0,Ze=A(Pe);xe<Ze.length;xe++){var hn=Ze[xe],Le=ee(le,hn),$e=ie(le,hn,Le);Ne(le,hn,Le,$e),qe(le,Le,$e),$e&&(pe(le,hn,Le,$e),we(le,hn,Le,$e),pn(le,hn,Le,$e))}}}function Re(le){e.clearMap(le.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(le.allWatchedExtendedConfigFiles,e.closeFileWatcherOf),e.clearMap(le.allWatchedWildcardDirectories,function(Pe){return e.clearMap(Pe,e.closeFileWatcherOf)}),e.clearMap(le.allWatchedInputFiles,function(Pe){return e.clearMap(Pe,e.closeFileWatcher)}),e.clearMap(le.allWatchedPackageJsonFiles,function(Pe){return e.clearMap(Pe,e.closeFileWatcher)})}function He(le,Pe,xe,Ze,hn){var Le=H(le,Pe,xe,Ze,hn);return{build:function($e,An,Ue,gn){return be(Le,$e,An,Ue,gn)},clean:function($e){return Ce(Le,$e)},buildReferences:function($e,An,Ue,gn){return be(Le,$e,An,Ue,gn,!0)},cleanReferences:function($e){return Ce(Le,$e,!0)},getNextInvalidatedProject:function($e){return G(Le,$e),P(Le,se(Le),!1)},getBuildOrder:function(){return se(Le)},getUpToDateStatusOfProject:function($e){var An=q(Le,$e),Ue=ee(Le,An);return Ae(Le,ie(Le,An,Ue),Ue)},invalidateProject:function($e,An){return Be(Le,$e,An||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return fe(Le)},getAllParsedConfigs:function(){return e.arrayFrom(e.mapDefinedIterator(Le.configFileCache.values(),function($e){return k($e)?$e:void 0}))},close:function(){return Re(Le)}}}function Ln(le,Pe){return e.convertToRelativePath(Pe,le.currentDirectory,function(xe){return le.getCanonicalFileName(xe)})}function Un(le,Pe){for(var xe=[],Ze=2;Ze<arguments.length;Ze++)xe[Ze-2]=arguments[Ze];le.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,Vr([Pe],xe,!1)))}function fn(le,Pe){for(var xe,Ze,hn=[],Le=2;Le<arguments.length;Le++)hn[Le-2]=arguments[Le];(Ze=(xe=le.hostWithWatch).onWatchStatusChange)===null||Ze===void 0||Ze.call(xe,e.createCompilerDiagnostic.apply(void 0,Vr([Pe],hn,!1)),le.host.getNewLine(),le.baseCompilerOptions)}function En(le,Pe){var xe=le.host;Pe.forEach(function(Ze){return xe.reportDiagnostic(Ze)})}function i(le,Pe,xe){En(le,xe),le.projectErrorsReported.set(Pe,!0),xe.length&&le.diagnostics.set(Pe,xe)}function In(le,Pe){i(le,Pe,[le.configFileCache.get(Pe)])}function X(le,Pe){if(le.needsSummary){le.needsSummary=!1;var xe=le.watch||!!le.host.reportErrorSummary,Ze=le.diagnostics,hn=0;O(Pe)?(rn(le,Pe.buildOrder),En(le,Pe.circularDiagnostics),xe&&(hn+=e.getErrorCountForSummary(Pe.circularDiagnostics))):(Pe.forEach(function(Le){var $e=ee(le,Le);le.projectErrorsReported.has($e)||En(le,Ze.get($e)||e.emptyArray)}),xe&&Ze.forEach(function(Le){return hn+=e.getErrorCountForSummary(Le)})),le.watch?fn(le,e.getWatchErrorSummaryDiagnosticMessage(hn),hn):le.host.reportErrorSummary&&le.host.reportErrorSummary(hn)}}function rn(le,Pe){le.options.verbose&&Un(le,e.Diagnostics.Projects_in_this_build_Colon_0,Pe.map(function(xe){return`\r
* `+Ln(le,xe)}).join(""))}function $n(le,Pe,xe){if(le.options.force&&(xe.type===e.UpToDateStatusType.UpToDate||xe.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes))return Un(le,e.Diagnostics.Project_0_is_being_forcibly_rebuilt,Ln(le,Pe));switch(xe.type){case e.UpToDateStatusType.OutOfDateWithSelf:return Un(le,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Ln(le,Pe),Ln(le,xe.outOfDateOutputFileName),Ln(le,xe.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return Un(le,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Ln(le,Pe),Ln(le,xe.outOfDateOutputFileName),Ln(le,xe.newerProjectName));case e.UpToDateStatusType.OutputMissing:return Un(le,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Ln(le,Pe),Ln(le,xe.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if(xe.newestInputFileTime!==void 0)return Un(le,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,Ln(le,Pe),Ln(le,xe.newestInputFileName||""),Ln(le,xe.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return Un(le,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Ln(le,Pe),Ln(le,xe.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return Un(le,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Ln(le,Pe));case e.UpToDateStatusType.UpstreamOutOfDate:return Un(le,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Ln(le,Pe),Ln(le,xe.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return Un(le,xe.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,Ln(le,Pe),Ln(le,xe.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return Un(le,e.Diagnostics.Failed_to_parse_file_0_Colon_1,Ln(le,Pe),xe.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return Un(le,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Ln(le,Pe),xe.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(xe)}}function Vn(le,Pe,xe){le.options.verbose&&$n(le,Pe,xe)}})(vn||(vn={}));var vn;(function(e){var o;(function(ue){ue.ActionSet="action::set",ue.ActionInvalidate="action::invalidate",ue.ActionPackageInstalled="action::packageInstalled",ue.EventTypesRegistry="event::typesRegistry",ue.EventBeginInstallTypes="event::beginInstallTypes",ue.EventEndInstallTypes="event::endInstallTypes",ue.EventInitializationFailed="event::initializationFailed";var $;(function(ye){ye.GlobalCacheLocation="--globalTypingsCacheLocation",ye.LogFile="--logFile",ye.EnableTelemetry="--enableTelemetry",ye.TypingSafeListLocation="--typingSafeListLocation",ye.TypesMapLocation="--typesMapLocation",ye.NpmLocation="--npmLocation",ye.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})($=ue.Arguments||(ue.Arguments={}));function Y(ye){return e.sys.args.indexOf(ye)>=0}ue.hasArgument=Y;function W(ye){var O=e.sys.args.indexOf(ye);return O>=0&&O<e.sys.args.length-1?e.sys.args[O+1]:void 0}ue.findArgument=W;function re(){var ye=new Date;return e.padLeft(ye.getHours().toString(),2,"0")+":"+e.padLeft(ye.getMinutes().toString(),2,"0")+":"+e.padLeft(ye.getSeconds().toString(),2,"0")+"."+e.padLeft(ye.getMilliseconds().toString(),3,"0")}ue.nowString=re})(o=e.server||(e.server={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(Z,E){var H=new e.Version(e.getProperty(E,"ts"+e.versionMajorMinor)||e.getProperty(E,"latest"));return H.compareTo(Z.version)<=0}ue.isTypingUpToDate=$;var Y=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];ue.prefixedNodeCoreModuleList=Y.map(function(Z){return"node:"+Z}),ue.nodeCoreModuleList=Vr(Vr([],Y,!0),ue.prefixedNodeCoreModuleList,!0),ue.nodeCoreModules=new e.Set(ue.nodeCoreModuleList);function W(Z){return ue.nodeCoreModules.has(Z)?"node":Z}ue.nonRelativeModuleNameForTypingCache=W;function re(Z,E){var H=e.readConfigFile(E,function(L){return Z.readFile(L)});return new e.Map(e.getEntries(H.config))}ue.loadSafeList=re;function ye(Z,E){var H=e.readConfigFile(E,function(L){return Z.readFile(L)});if(H.config)return new e.Map(e.getEntries(H.config.simpleMap))}ue.loadTypesMap=ye;function O(Z,E,H,L,ee,k,b,ie,q){if(!b||!b.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var oe=new e.Map;H=e.mapDefined(H,function(M){var me=e.normalizePath(M);if(e.hasJSFileExtension(me))return me});var se=[];b.include&&m(b.include,"Explicitly included types");var w=b.exclude||[],R=new e.Set(H.map(e.getDirectoryPath));if(R.add(L),R.forEach(function(M){var me=e.combinePaths(M,"package.json");N(me,se);var z=e.combinePaths(M,"bower.json");N(z,se);var K=e.combinePaths(M,"bower_components");x(K,se);var I=e.combinePaths(M,"node_modules");x(I,se)}),b.disableFilenameBasedTypeAcquisition||P(H),ie){var ne=e.deduplicate(ie.map(W),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive);m(ne,"Inferred typings from unresolved imports")}k.forEach(function(M,me){var z=q.get(me);oe.has(me)&&oe.get(me)===void 0&&z!==void 0&&$(M,z)&&oe.set(me,M.typingLocation)});for(var U=0,C=w;U<C.length;U++){var d=C[U],G=oe.delete(d);G&&E&&E("Typing for "+d+" is in exclude list, will be ignored.")}var g=[],p=[];oe.forEach(function(M,me){M!==void 0?p.push(M):g.push(me)});var f={cachedTypingPaths:p,newTypingNames:g,filesToWatch:se};return E&&E("Result: "+JSON.stringify(f)),f;function T(M){oe.has(M)||oe.set(M,void 0)}function m(M,me){E&&E(me+": "+JSON.stringify(M)),e.forEach(M,T)}function N(M,me){if(Z.fileExists(M)){me.push(M);var z=e.readConfigFile(M,function(I){return Z.readFile(I)}).config,K=e.flatMap([z.dependencies,z.devDependencies,z.optionalDependencies,z.peerDependencies],e.getOwnKeys);m(K,"Typing names in '"+M+"' dependencies")}}function P(M){var me=e.mapDefined(M,function(K){if(e.hasJSFileExtension(K)){var I=e.removeFileExtension(e.getBaseFileName(K.toLowerCase())),Ae=e.removeMinAndVersionNumbers(I);return ee.get(Ae)}});me.length&&m(me,"Inferred typings from file names");var z=e.some(M,function(K){return e.fileExtensionIs(K,".jsx")});z&&(E&&E("Inferred 'react' typings due to presence of '.jsx' extension"),T("react"))}function x(M,me){if(me.push(M),!!Z.directoryExists(M)){var z=Z.readDirectory(M,[".json"],void 0,void 0,2);E&&E("Searching for typing names in "+M+"; all files: "+JSON.stringify(z));for(var K=[],I=0,Ae=z;I<Ae.length;I++){var Oe=Ae[I],te=e.normalizePath(Oe),Se=e.getBaseFileName(te);if(!(Se!=="package.json"&&Se!=="bower.json")){var be=e.readConfigFile(te,function(en){return Z.readFile(en)}),Ce=be.config;if(!(Se==="package.json"&&Ce._requiredBy&&e.filter(Ce._requiredBy,function(en){return en[0]==="#"||en==="/"}).length===0)&&Ce.name){var Be=Ce.types||Ce.typings;if(Be){var De=e.getNormalizedAbsolutePath(Be,e.getDirectoryPath(te));E&&E(" Package '"+Ce.name+"' provides its own types."),oe.set(Ce.name,De)}else K.push(Ce.name)}}}m(K," Found package names")}}}ue.discoverTypings=O;var A;(function(Z){Z[Z.Ok=0]="Ok",Z[Z.EmptyName=1]="EmptyName",Z[Z.NameTooLong=2]="NameTooLong",Z[Z.NameStartsWithDot=3]="NameStartsWithDot",Z[Z.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",Z[Z.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters"})(A=ue.NameValidationResult||(ue.NameValidationResult={}));var D=214;function de(Z){return _e(Z,!0)}ue.validatePackageName=de;function _e(Z,E){if(!Z)return 1;if(Z.length>D)return 2;if(Z.charCodeAt(0)===46)return 3;if(Z.charCodeAt(0)===95)return 4;if(E){var H=/^@([^/]+)\/([^/]+)$/.exec(Z);if(H){var L=_e(H[1],!1);if(L!==0)return{name:H[1],isScopeName:!0,result:L};var ee=_e(H[2],!1);return ee!==0?{name:H[2],isScopeName:!1,result:ee}:0}}return encodeURIComponent(Z)!==Z?5:0}function y(Z,E){return typeof Z=="object"?V(E,Z.result,Z.name,Z.isScopeName):V(E,Z,E,!1)}ue.renderPackageNameValidationFailure=y;function V(Z,E,H,L){var ee=L?"Scope":"Package";switch(E){case 1:return"'"+Z+"':: "+ee+" name '"+H+"' cannot be empty";case 2:return"'"+Z+"':: "+ee+" name '"+H+"' should be less than "+D+" characters";case 3:return"'"+Z+"':: "+ee+" name '"+H+"' cannot start with '.'";case 4:return"'"+Z+"':: "+ee+" name '"+H+"' cannot start with '_'";case 5:return"'"+Z+"':: "+ee+" name '"+H+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(E)}}})(o=e.JsTyping||(e.JsTyping={}))})(vn||(vn={}));var vn;(function(e){var o;(function(b){var ie=function(){function oe(se){this.text=se}return oe.prototype.getText=function(se,w){return se===0&&w===this.text.length?this.text:this.text.substring(se,w)},oe.prototype.getLength=function(){return this.text.length},oe.prototype.getChangeRange=function(){},oe}();function q(oe){return new ie(oe)}b.fromString=q})(o=e.ScriptSnapshot||(e.ScriptSnapshot={}));var ue;(function(b){b[b.Dependencies=1]="Dependencies",b[b.DevDependencies=2]="DevDependencies",b[b.PeerDependencies=4]="PeerDependencies",b[b.OptionalDependencies=8]="OptionalDependencies",b[b.All=15]="All"})(ue=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}));var $;(function(b){b[b.Off=0]="Off",b[b.On=1]="On",b[b.Auto=2]="Auto"})($=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}));var Y;(function(b){b[b.Semantic=0]="Semantic",b[b.PartialSemantic=1]="PartialSemantic",b[b.Syntactic=2]="Syntactic"})(Y=e.LanguageServiceMode||(e.LanguageServiceMode={})),e.emptyOptions={};var W;(function(b){b.Original="original",b.TwentyTwenty="2020"})(W=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={}));var re;(function(b){b[b.Invoked=1]="Invoked",b[b.TriggerCharacter=2]="TriggerCharacter",b[b.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions"})(re=e.CompletionTriggerKind||(e.CompletionTriggerKind={}));var ye;(function(b){b.Type="Type",b.Parameter="Parameter",b.Enum="Enum"})(ye=e.InlayHintKind||(e.InlayHintKind={}));var O;(function(b){b.none="none",b.definition="definition",b.reference="reference",b.writtenReference="writtenReference"})(O=e.HighlightSpanKind||(e.HighlightSpanKind={}));var A;(function(b){b[b.None=0]="None",b[b.Block=1]="Block",b[b.Smart=2]="Smart"})(A=e.IndentStyle||(e.IndentStyle={}));var D;(function(b){b.Ignore="ignore",b.Insert="insert",b.Remove="remove"})(D=e.SemicolonPreference||(e.SemicolonPreference={}));function de(b){return{indentSize:4,tabSize:4,newLineCharacter:b||`
`,convertTabsToSpaces:!0,indentStyle:A.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:D.Ignore,trimTrailingWhitespace:!0}}e.getDefaultFormatCodeSettings=de,e.testFormatSettings=de(`
`);var _e;(function(b){b[b.aliasName=0]="aliasName",b[b.className=1]="className",b[b.enumName=2]="enumName",b[b.fieldName=3]="fieldName",b[b.interfaceName=4]="interfaceName",b[b.keyword=5]="keyword",b[b.lineBreak=6]="lineBreak",b[b.numericLiteral=7]="numericLiteral",b[b.stringLiteral=8]="stringLiteral",b[b.localName=9]="localName",b[b.methodName=10]="methodName",b[b.moduleName=11]="moduleName",b[b.operator=12]="operator",b[b.parameterName=13]="parameterName",b[b.propertyName=14]="propertyName",b[b.punctuation=15]="punctuation",b[b.space=16]="space",b[b.text=17]="text",b[b.typeParameterName=18]="typeParameterName",b[b.enumMemberName=19]="enumMemberName",b[b.functionName=20]="functionName",b[b.regularExpressionLiteral=21]="regularExpressionLiteral",b[b.link=22]="link",b[b.linkName=23]="linkName",b[b.linkText=24]="linkText"})(_e=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}));var y;(function(b){b.Comment="comment",b.Region="region",b.Code="code",b.Imports="imports"})(y=e.OutliningSpanKind||(e.OutliningSpanKind={}));var V;(function(b){b[b.JavaScript=0]="JavaScript",b[b.SourceMap=1]="SourceMap",b[b.Declaration=2]="Declaration"})(V=e.OutputFileType||(e.OutputFileType={}));var Z;(function(b){b[b.None=0]="None",b[b.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",b[b.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",b[b.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",b[b.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",b[b.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",b[b.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"})(Z=e.EndOfLineState||(e.EndOfLineState={}));var E;(function(b){b[b.Punctuation=0]="Punctuation",b[b.Keyword=1]="Keyword",b[b.Operator=2]="Operator",b[b.Comment=3]="Comment",b[b.Whitespace=4]="Whitespace",b[b.Identifier=5]="Identifier",b[b.NumberLiteral=6]="NumberLiteral",b[b.BigIntLiteral=7]="BigIntLiteral",b[b.StringLiteral=8]="StringLiteral",b[b.RegExpLiteral=9]="RegExpLiteral"})(E=e.TokenClass||(e.TokenClass={}));var H;(function(b){b.unknown="",b.warning="warning",b.keyword="keyword",b.scriptElement="script",b.moduleElement="module",b.classElement="class",b.localClassElement="local class",b.interfaceElement="interface",b.typeElement="type",b.enumElement="enum",b.enumMemberElement="enum member",b.variableElement="var",b.localVariableElement="local var",b.functionElement="function",b.localFunctionElement="local function",b.memberFunctionElement="method",b.memberGetAccessorElement="getter",b.memberSetAccessorElement="setter",b.memberVariableElement="property",b.constructorImplementationElement="constructor",b.callSignatureElement="call",b.indexSignatureElement="index",b.constructSignatureElement="construct",b.parameterElement="parameter",b.typeParameterElement="type parameter",b.primitiveType="primitive type",b.label="label",b.alias="alias",b.constElement="const",b.letElement="let",b.directory="directory",b.externalModuleName="external module name",b.jsxAttribute="JSX attribute",b.string="string",b.link="link",b.linkName="link name",b.linkText="link text"})(H=e.ScriptElementKind||(e.ScriptElementKind={}));var L;(function(b){b.none="",b.publicMemberModifier="public",b.privateMemberModifier="private",b.protectedMemberModifier="protected",b.exportedModifier="export",b.ambientModifier="declare",b.staticModifier="static",b.abstractModifier="abstract",b.optionalModifier="optional",b.deprecatedModifier="deprecated",b.dtsModifier=".d.ts",b.tsModifier=".ts",b.tsxModifier=".tsx",b.jsModifier=".js",b.jsxModifier=".jsx",b.jsonModifier=".json"})(L=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={}));var ee;(function(b){b.comment="comment",b.identifier="identifier",b.keyword="keyword",b.numericLiteral="number",b.bigintLiteral="bigint",b.operator="operator",b.stringLiteral="string",b.whiteSpace="whitespace",b.text="text",b.punctuation="punctuation",b.className="class name",b.enumName="enum name",b.interfaceName="interface name",b.moduleName="module name",b.typeParameterName="type parameter name",b.typeAliasName="type alias name",b.parameterName="parameter name",b.docCommentTagName="doc comment tag name",b.jsxOpenTagName="jsx open tag name",b.jsxCloseTagName="jsx close tag name",b.jsxSelfClosingTagName="jsx self closing tag name",b.jsxAttribute="jsx attribute",b.jsxText="jsx text",b.jsxAttributeStringLiteralValue="jsx attribute string literal value"})(ee=e.ClassificationTypeNames||(e.ClassificationTypeNames={}));var k;(function(b){b[b.comment=1]="comment",b[b.identifier=2]="identifier",b[b.keyword=3]="keyword",b[b.numericLiteral=4]="numericLiteral",b[b.operator=5]="operator",b[b.stringLiteral=6]="stringLiteral",b[b.regularExpressionLiteral=7]="regularExpressionLiteral",b[b.whiteSpace=8]="whiteSpace",b[b.text=9]="text",b[b.punctuation=10]="punctuation",b[b.className=11]="className",b[b.enumName=12]="enumName",b[b.interfaceName=13]="interfaceName",b[b.moduleName=14]="moduleName",b[b.typeParameterName=15]="typeParameterName",b[b.typeAliasName=16]="typeAliasName",b[b.parameterName=17]="parameterName",b[b.docCommentTagName=18]="docCommentTagName",b[b.jsxOpenTagName=19]="jsxOpenTagName",b[b.jsxCloseTagName=20]="jsxCloseTagName",b[b.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",b[b.jsxAttribute=22]="jsxAttribute",b[b.jsxText=23]="jsxText",b[b.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",b[b.bigintLiteral=25]="bigintLiteral"})(k=e.ClassificationType||(e.ClassificationType={}))})(vn||(vn={}));var vn;(function(e){e.scanner=e.createScanner(99,!0);var o;(function(he){he[he.None=0]="None",he[he.Value=1]="Value",he[he.Type=2]="Type",he[he.Namespace=4]="Namespace",he[he.All=7]="All"})(o=e.SemanticMeaning||(e.SemanticMeaning={}));function ue(he){switch(he.kind){case 252:return e.isInJSFile(he)&&e.getJSDocEnumTag(he)?7:1;case 162:case 201:case 165:case 164:case 291:case 292:case 167:case 166:case 169:case 170:case 171:case 254:case 211:case 212:case 290:case 283:return 1;case 161:case 256:case 257:case 180:return 2;case 340:return he.name===void 0?3:2;case 294:case 255:return 3;case 259:return e.isAmbientModule(he)||e.getModuleInstanceState(he)===1?5:4;case 258:case 267:case 268:case 263:case 264:case 269:case 270:return 7;case 300:return 5}return 7}e.getMeaningFromDeclaration=ue;function $(he){he=i(he);var un=he.parent;if(he.kind===300)return 1;if(e.isExportAssignment(un)||e.isExportSpecifier(un)||e.isExternalModuleReference(un)||e.isImportSpecifier(un)||e.isImportClause(un)||e.isImportEqualsDeclaration(un)&&he===un.name){for(var Sn=un;Sn;){if(e.isImportEqualsDeclaration(Sn)||e.isImportClause(Sn)||e.isExportDeclaration(Sn))return Sn.isTypeOnly?2:7;Sn=Sn.parent}return 7}else return W(he)?Y(he):e.isDeclarationName(he)?ue(un):e.isEntityName(he)&&e.findAncestor(he,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:A(he)?2:re(he)?4:e.isTypeParameterDeclaration(un)?(e.Debug.assert(e.isJSDocTemplateTag(un.parent)),2):e.isLiteralTypeNode(un)?3:1}e.getMeaningFromLocation=$;function Y(he){var un=he.kind===159?he:e.isQualifiedName(he.parent)&&he.parent.right===he?he.parent:void 0;return un&&un.parent.kind===263?7:4}function W(he){for(;he.parent.kind===159;)he=he.parent;return e.isInternalModuleImportEqualsDeclaration(he.parent)&&he.parent.moduleReference===he}e.isInRightSideOfInternalImportEqualsDeclaration=W;function re(he){return ye(he)||O(he)}function ye(he){var un=he,Sn=!0;if(un.parent.kind===159){for(;un.parent&&un.parent.kind===159;)un=un.parent;Sn=un.right===he}return un.parent.kind===176&&!Sn}function O(he){var un=he,Sn=!0;if(un.parent.kind===204){for(;un.parent&&un.parent.kind===204;)un=un.parent;Sn=un.name===he}if(!Sn&&un.parent.kind===226&&un.parent.parent.kind===289){var Tr=un.parent.parent.parent;return Tr.kind===255&&un.parent.parent.token===117||Tr.kind===256&&un.parent.parent.token===94}return!1}function A(he){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(he)&&(he=he.parent),he.kind){case 108:return!e.isExpressionNode(he);case 190:return!0}switch(he.parent.kind){case 176:return!0;case 198:return!he.parent.isTypeOf;case 226:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(he.parent)}return!1}function D(he,un,Sn){return un===void 0&&(un=!1),Sn===void 0&&(Sn=!1),ee(he,e.isCallExpression,E,un,Sn)}e.isCallExpressionTarget=D;function de(he,un,Sn){return un===void 0&&(un=!1),Sn===void 0&&(Sn=!1),ee(he,e.isNewExpression,E,un,Sn)}e.isNewExpressionTarget=de;function _e(he,un,Sn){return un===void 0&&(un=!1),Sn===void 0&&(Sn=!1),ee(he,e.isCallOrNewExpression,E,un,Sn)}e.isCallOrNewExpressionTarget=_e;function y(he,un,Sn){return un===void 0&&(un=!1),Sn===void 0&&(Sn=!1),ee(he,e.isTaggedTemplateExpression,H,un,Sn)}e.isTaggedTemplateTag=y;function V(he,un,Sn){return un===void 0&&(un=!1),Sn===void 0&&(Sn=!1),ee(he,e.isDecorator,E,un,Sn)}e.isDecoratorTarget=V;function Z(he,un,Sn){return un===void 0&&(un=!1),Sn===void 0&&(Sn=!1),ee(he,e.isJsxOpeningLikeElement,L,un,Sn)}e.isJsxOpeningLikeElementTagName=Z;function E(he){return he.expression}function H(he){return he.tag}function L(he){return he.tagName}function ee(he,un,Sn,Tr,Wr){var Yt=Tr?b(he):k(he);return Wr&&(Yt=e.skipOuterExpressions(Yt)),!!Yt&&!!Yt.parent&&un(Yt.parent)&&Sn(Yt.parent)===Yt}function k(he){return U(he)?he.parent:he}e.climbPastPropertyAccess=k;function b(he){return U(he)||C(he)?he.parent:he}e.climbPastPropertyOrElementAccess=b;function ie(he,un){for(;he;){if(he.kind===248&&he.label.escapedText===un)return he.label;he=he.parent}}e.getTargetLabel=ie;function q(he,un){return e.isPropertyAccessExpression(he.expression)?he.expression.name.text===un:!1}e.hasPropertyAccessExpressionWithName=q;function oe(he){var un;return e.isIdentifier(he)&&((un=e.tryCast(he.parent,e.isBreakOrContinueStatement))===null||un===void 0?void 0:un.label)===he}e.isJumpStatementTarget=oe;function se(he){var un;return e.isIdentifier(he)&&((un=e.tryCast(he.parent,e.isLabeledStatement))===null||un===void 0?void 0:un.label)===he}e.isLabelOfLabeledStatement=se;function w(he){return se(he)||oe(he)}e.isLabelName=w;function R(he){var un;return((un=e.tryCast(he.parent,e.isJSDocTag))===null||un===void 0?void 0:un.tagName)===he}e.isTagName=R;function ne(he){var un;return((un=e.tryCast(he.parent,e.isQualifiedName))===null||un===void 0?void 0:un.right)===he}e.isRightSideOfQualifiedName=ne;function U(he){var un;return((un=e.tryCast(he.parent,e.isPropertyAccessExpression))===null||un===void 0?void 0:un.name)===he}e.isRightSideOfPropertyAccess=U;function C(he){var un;return((un=e.tryCast(he.parent,e.isElementAccessExpression))===null||un===void 0?void 0:un.argumentExpression)===he}e.isArgumentExpressionOfElementAccess=C;function d(he){var un;return((un=e.tryCast(he.parent,e.isModuleDeclaration))===null||un===void 0?void 0:un.name)===he}e.isNameOfModuleDeclaration=d;function G(he){var un;return e.isIdentifier(he)&&((un=e.tryCast(he.parent,e.isFunctionLike))===null||un===void 0?void 0:un.name)===he}e.isNameOfFunctionDeclaration=G;function g(he){switch(he.parent.kind){case 165:case 164:case 291:case 294:case 167:case 166:case 170:case 171:case 259:return e.getNameOfDeclaration(he.parent)===he;case 205:return he.parent.argumentExpression===he;case 160:return!0;case 194:return he.parent.parent.kind===192;default:return!1}}e.isLiteralNameOfPropertyDeclarationOrIndexAccess=g;function p(he){return e.isExternalModuleImportEqualsDeclaration(he.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(he.parent.parent)===he}e.isExpressionOfExternalModuleImportEqualsDeclaration=p;function f(he){for(e.isJSDocTypeAlias(he)&&(he=he.parent.parent);;){if(he=he.parent,!he)return;switch(he.kind){case 300:case 167:case 166:case 254:case 211:case 170:case 171:case 255:case 256:case 258:case 259:return he}}}e.getContainerNode=f;function T(he){switch(he.kind){case 300:return e.isExternalModule(he)?"module":"script";case 259:return"module";case 255:case 224:return"class";case 256:return"interface";case 257:case 333:case 340:return"type";case 258:return"enum";case 252:return Ia(he);case 201:return Ia(e.getRootDeclaration(he));case 212:case 254:case 211:return"function";case 170:return"getter";case 171:return"setter";case 167:case 166:return"method";case 291:var un=he.initializer;return e.isFunctionLike(un)?"method":"property";case 165:case 164:case 292:case 293:return"property";case 174:return"index";case 173:return"construct";case 172:return"call";case 169:case 168:return"constructor";case 161:return"type parameter";case 294:return"enum member";case 162:return e.hasSyntacticModifier(he,16476)?"property":"parameter";case 263:case 268:case 273:case 266:case 272:return"alias";case 219:var Sn=e.getAssignmentDeclarationKind(he),Tr=he.right;switch(Sn){case 7:case 8:case 9:case 0:return"";case 1:case 2:var Wr=T(Tr);return Wr===""?"const":Wr;case 3:return e.isFunctionExpression(Tr)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(Tr)?"method":"property";case 6:return"local class";default:return e.assertType(Sn),""}case 79:return e.isImportClause(he.parent)?"alias":"";case 269:var Yt=T(he.expression);return Yt===""?"const":Yt;default:return""}function Ia(hi){return e.isVarConst(hi)?"const":e.isLet(hi)?"let":"var"}}e.getNodeKind=T;function m(he){switch(he.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(he)&&he.parent.kind===162;default:return!1}}e.isThis=m;var N=/^\/\/\/\s*</;function P(he,un){var Sn=e.getLineStarts(un),Tr=un.getLineAndCharacterOfPosition(he).line;return Sn[Tr]}e.getLineStartPositionForPosition=P;function x(he,un){return K(he.pos,he.end,un)}e.rangeContainsRange=x;function M(he,un){return z(he,un.pos)&&z(he,un.end)}e.rangeContainsRangeExclusive=M;function me(he,un){return he.pos<=un&&un<=he.end}e.rangeContainsPosition=me;function z(he,un){return he.pos<un&&un<he.end}e.rangeContainsPositionExclusive=z;function K(he,un,Sn){return he<=Sn.pos&&un>=Sn.end}e.startEndContainsRange=K;function I(he,un,Sn){return he.pos<=un&&he.end>=Sn}e.rangeContainsStartEnd=I;function Ae(he,un,Sn){return te(he.pos,he.end,un,Sn)}e.rangeOverlapsWithStartEnd=Ae;function Oe(he,un,Sn,Tr){return te(he.getStart(un),he.end,Sn,Tr)}e.nodeOverlapsWithStartEnd=Oe;function te(he,un,Sn,Tr){var Wr=Math.max(he,Sn),Yt=Math.min(un,Tr);return Wr<Yt}e.startEndOverlapsWithStartEnd=te;function Se(he,un,Sn){return e.Debug.assert(he.pos<=un),un<he.end||!be(he,Sn)}e.positionBelongsToNode=Se;function be(he,un){if(he===void 0||e.nodeIsMissing(he))return!1;switch(he.kind){case 255:case 256:case 258:case 203:case 199:case 180:case 233:case 260:case 261:case 267:case 271:return Ce(he,19,un);case 290:return be(he.block,un);case 207:if(!he.arguments)return!0;case 206:case 210:case 189:return Ce(he,21,un);case 177:case 178:return be(he.type,un);case 169:case 170:case 171:case 254:case 211:case 167:case 166:case 173:case 172:case 212:return he.body?be(he.body,un):he.type?be(he.type,un):De(he,21,un);case 259:return!!he.body&&be(he.body,un);case 237:return he.elseStatement?be(he.elseStatement,un):be(he.thenStatement,un);case 236:return be(he.expression,un)||De(he,26,un);case 202:case 200:case 205:case 160:case 182:return Ce(he,23,un);case 174:return he.type?be(he.type,un):De(he,23,un);case 287:case 288:return!1;case 240:case 241:case 242:case 239:return be(he.statement,un);case 238:return De(he,115,un)?Ce(he,21,un):be(he.statement,un);case 179:return be(he.exprName,un);case 214:case 213:case 215:case 222:case 223:var Sn=he;return be(Sn.expression,un);case 208:return be(he.template,un);case 221:var Tr=e.lastOrUndefined(he.templateSpans);return be(Tr,un);case 231:return e.nodeIsPresent(he.literal);case 270:case 264:return e.nodeIsPresent(he.moduleSpecifier);case 217:return be(he.operand,un);case 219:return be(he.right,un);case 220:return be(he.whenFalse,un);default:return!0}}function Ce(he,un,Sn){var Tr=he.getChildren(Sn);if(Tr.length){var Wr=e.last(Tr);if(Wr.kind===un)return!0;if(Wr.kind===26&&Tr.length!==1)return Tr[Tr.length-2].kind===un}return!1}function Be(he){var un=fe(he);if(un){var Sn=un.getChildren(),Tr=e.indexOfNode(Sn,he);return{listItemIndex:Tr,list:un}}}e.findListItemInfo=Be;function De(he,un,Sn){return!!en(he,un,Sn)}e.hasChildOfKind=De;function en(he,un,Sn){return e.find(he.getChildren(Sn),function(Tr){return Tr.kind===un})}e.findChildOfKind=en;function fe(he){var un=e.find(he.parent.getChildren(),function(Sn){return e.isSyntaxList(Sn)&&x(Sn,he)});return e.Debug.assert(!un||e.contains(un.getChildren(),he)),un}e.findContainingList=fe;function Ne(he){return he.kind===88}function qe(he){return he.kind===84}function pe(he){return he.kind===98}function we(he){if(e.isNamedDeclaration(he))return he.name;if(e.isClassDeclaration(he)){var un=he.modifiers&&e.find(he.modifiers,Ne);if(un)return un}if(e.isClassExpression(he)){var Sn=e.find(he.getChildren(),qe);if(Sn)return Sn}}function pn(he){if(e.isNamedDeclaration(he))return he.name;if(e.isFunctionDeclaration(he)){var un=e.find(he.modifiers,Ne);if(un)return un}if(e.isFunctionExpression(he)){var Sn=e.find(he.getChildren(),pe);if(Sn)return Sn}}function Qe(he){var un;return e.findAncestor(he,function(Sn){return e.isTypeNode(Sn)&&(un=Sn),!e.isQualifiedName(Sn.parent)&&!e.isTypeNode(Sn.parent)&&!e.isTypeElement(Sn.parent)}),un}function Re(he,un){var Sn=un.getContextualType(he);if(Sn)return Sn;var Tr=he.parent;if(Tr&&e.isBinaryExpression(Tr)&&Hs(Tr.operatorToken.kind))return un.getTypeAtLocation(he===Tr.left?Tr.right:Tr.left);var Wr=Qe(he);return Wr&&un.getTypeAtLocation(Wr)}e.getContextualTypeOrAncestorTypeNodeType=Re;function He(he,un){if(!un)switch(he.kind){case 255:case 224:return we(he);case 254:case 211:return pn(he)}if(e.isNamedDeclaration(he))return he.name}function Ln(he,un){if(he.importClause){if(he.importClause.name&&he.importClause.namedBindings)return;if(he.importClause.name)return he.importClause.name;if(he.importClause.namedBindings){if(e.isNamedImports(he.importClause.namedBindings)){var Sn=e.singleOrUndefined(he.importClause.namedBindings.elements);return Sn?Sn.name:void 0}else if(e.isNamespaceImport(he.importClause.namedBindings))return he.importClause.namedBindings.name}}if(!un)return he.moduleSpecifier}function Un(he,un){if(he.exportClause){if(e.isNamedExports(he.exportClause)){var Sn=e.singleOrUndefined(he.exportClause.elements);return Sn?he.exportClause.elements[0].name:void 0}else if(e.isNamespaceExport(he.exportClause))return he.exportClause.name}if(!un)return he.moduleSpecifier}function fn(he){if(he.types.length===1)return he.types[0].expression}function En(he,un){var Sn=he.parent;if(e.isModifier(he)&&(un||he.kind!==88)?e.contains(Sn.modifiers,he):he.kind===84?e.isClassDeclaration(Sn)||e.isClassExpression(he):he.kind===98?e.isFunctionDeclaration(Sn)||e.isFunctionExpression(he):he.kind===118?e.isInterfaceDeclaration(Sn):he.kind===92?e.isEnumDeclaration(Sn):he.kind===150?e.isTypeAliasDeclaration(Sn):he.kind===141||he.kind===140?e.isModuleDeclaration(Sn):he.kind===100?e.isImportEqualsDeclaration(Sn):he.kind===135?e.isGetAccessorDeclaration(Sn):he.kind===147&&e.isSetAccessorDeclaration(Sn)){var Tr=He(Sn,un);if(Tr)return Tr}if((he.kind===113||he.kind===85||he.kind===119)&&e.isVariableDeclarationList(Sn)&&Sn.declarations.length===1){var Wr=Sn.declarations[0];if(e.isIdentifier(Wr.name))return Wr.name}if(he.kind===150){if(e.isImportClause(Sn)&&Sn.isTypeOnly){var Tr=Ln(Sn.parent,un);if(Tr)return Tr}if(e.isExportDeclaration(Sn)&&Sn.isTypeOnly){var Tr=Un(Sn,un);if(Tr)return Tr}}if(he.kind===127){if(e.isImportSpecifier(Sn)&&Sn.propertyName||e.isExportSpecifier(Sn)&&Sn.propertyName||e.isNamespaceImport(Sn)||e.isNamespaceExport(Sn))return Sn.name;if(e.isExportDeclaration(Sn)&&Sn.exportClause&&e.isNamespaceExport(Sn.exportClause))return Sn.exportClause.name}if(he.kind===100&&e.isImportDeclaration(Sn)){var Tr=Ln(Sn,un);if(Tr)return Tr}if(he.kind===93){if(e.isExportDeclaration(Sn)){var Tr=Un(Sn,un);if(Tr)return Tr}if(e.isExportAssignment(Sn))return e.skipOuterExpressions(Sn.expression)}if(he.kind===144&&e.isExternalModuleReference(Sn))return Sn.expression;if(he.kind===154&&(e.isImportDeclaration(Sn)||e.isExportDeclaration(Sn))&&Sn.moduleSpecifier)return Sn.moduleSpecifier;if((he.kind===94||he.kind===117)&&e.isHeritageClause(Sn)&&Sn.token===he.kind){var Tr=fn(Sn);if(Tr)return Tr}if(he.kind===94){if(e.isTypeParameterDeclaration(Sn)&&Sn.constraint&&e.isTypeReferenceNode(Sn.constraint))return Sn.constraint.typeName;if(e.isConditionalTypeNode(Sn)&&e.isTypeReferenceNode(Sn.extendsType))return Sn.extendsType.typeName}if(he.kind===136&&e.isInferTypeNode(Sn))return Sn.typeParameter.name;if(he.kind===101&&e.isTypeParameterDeclaration(Sn)&&e.isMappedTypeNode(Sn.parent))return Sn.name;if(he.kind===139&&e.isTypeOperatorNode(Sn)&&Sn.operator===139&&e.isTypeReferenceNode(Sn.type))return Sn.type.typeName;if(he.kind===143&&e.isTypeOperatorNode(Sn)&&Sn.operator===143&&e.isArrayTypeNode(Sn.type)&&e.isTypeReferenceNode(Sn.type.elementType))return Sn.type.elementType.typeName;if(!un){if((he.kind===103&&e.isNewExpression(Sn)||he.kind===114&&e.isVoidExpression(Sn)||he.kind===112&&e.isTypeOfExpression(Sn)||he.kind===131&&e.isAwaitExpression(Sn)||he.kind===125&&e.isYieldExpression(Sn)||he.kind===89&&e.isDeleteExpression(Sn))&&Sn.expression)return e.skipOuterExpressions(Sn.expression);if((he.kind===101||he.kind===102)&&e.isBinaryExpression(Sn)&&Sn.operatorToken===he)return e.skipOuterExpressions(Sn.right);if(he.kind===127&&e.isAsExpression(Sn)&&e.isTypeReferenceNode(Sn.type))return Sn.type.typeName;if(he.kind===101&&e.isForInStatement(Sn)||he.kind===158&&e.isForOfStatement(Sn))return e.skipOuterExpressions(Sn.expression)}return he}function i(he){return En(he,!1)}e.getAdjustedReferenceLocation=i;function In(he){return En(he,!0)}e.getAdjustedRenameLocation=In;function X(he,un){return rn(he,un,function(Sn){return e.isPropertyNameLiteral(Sn)||e.isKeyword(Sn.kind)||e.isPrivateIdentifier(Sn)})}e.getTouchingPropertyName=X;function rn(he,un,Sn){return Vn(he,un,!1,Sn,!1)}e.getTouchingToken=rn;function $n(he,un){return Vn(he,un,!0,void 0,!1)}e.getTokenAtPosition=$n;function Vn(he,un,Sn,Tr,Wr){var Yt=he;e:for(;;){for(var Ia=0,hi=Yt.getChildren(he);Ia<hi.length;Ia++){var yo=hi[Ia],Oo=Sn?yo.getFullStart():yo.getStart(he,!0);if(Oo>un)break;var ys=yo.getEnd();if(un<ys||un===ys&&(yo.kind===1||Wr)){Yt=yo;continue e}else if(Tr&&ys===un){var Pi=Ze(un,he,yo);if(Pi&&Tr(Pi))return Pi}}return Yt}}function le(he,un){for(var Sn=$n(he,un);gn(Sn);){var Tr=xe(Sn,Sn.parent,he);if(!Tr)return;Sn=Tr}return Sn}e.findFirstNonJsxWhitespaceToken=le;function Pe(he,un){var Sn=$n(he,un);return e.isToken(Sn)&&un>Sn.getStart(he)&&un<Sn.getEnd()?Sn:Ze(un,he)}e.findTokenOnLeftOfPosition=Pe;function xe(he,un,Sn){return Tr(un);function Tr(Wr){return e.isToken(Wr)&&Wr.pos===he.end?Wr:e.firstDefined(Wr.getChildren(Sn),function(Yt){var Ia=Yt.pos<=he.pos&&Yt.end>he.end||Yt.pos===he.end;return Ia&&Zn(Yt,Sn)?Tr(Yt):void 0})}}e.findNextToken=xe;function Ze(he,un,Sn,Tr){var Wr=Yt(Sn||un);return e.Debug.assert(!(Wr&&gn(Wr))),Wr;function Yt(Ia){if(hn(Ia)&&Ia.kind!==1)return Ia;var hi=Ia.getChildren(un),yo=e.binarySearchKey(hi,he,function(zo,Es){return Es},function(zo,Es){return he<hi[zo].end?!hi[zo-1]||he>=hi[zo-1].end?0:1:-1});if(yo>=0&&hi[yo]){var Oo=hi[yo];if(he<Oo.end){var ys=Oo.getStart(un,!Tr),Pi=ys>=he||!Zn(Oo,un)||gn(Oo);if(Pi){var Po=$e(hi,yo,un);return Po&&Le(Po,un)}else return Yt(Oo)}}e.Debug.assert(Sn!==void 0||Ia.kind===300||Ia.kind===1||e.isJSDocCommentContainingNode(Ia));var Jn=$e(hi,hi.length,un);return Jn&&Le(Jn,un)}}e.findPrecedingToken=Ze;function hn(he){return e.isToken(he)&&!gn(he)}function Le(he,un){if(hn(he))return he;var Sn=he.getChildren(un);if(Sn.length===0)return he;var Tr=$e(Sn,Sn.length,un);return Tr&&Le(Tr,un)}function $e(he,un,Sn){for(var Tr=un-1;Tr>=0;Tr--){var Wr=he[Tr];if(gn(Wr))e.Debug.assert(Tr>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Zn(he[Tr],Sn))return he[Tr]}}function An(he,un,Sn){if(Sn===void 0&&(Sn=Ze(un,he)),Sn&&e.isStringTextContainingNode(Sn)){var Tr=Sn.getStart(he),Wr=Sn.getEnd();if(Tr<un&&un<Wr)return!0;if(un===Wr)return!!Sn.isUnterminated}return!1}e.isInString=An;function Ue(he,un){var Sn=$n(he,un);return Sn?!!(Sn.kind===11||Sn.kind===29&&Sn.parent.kind===11||Sn.kind===29&&Sn.parent.kind===286||Sn&&Sn.kind===19&&Sn.parent.kind===286||Sn.kind===29&&Sn.parent.kind===279):!1}e.isInsideJsxElementOrAttribute=Ue;function gn(he){return e.isJsxText(he)&&he.containsOnlyTriviaWhiteSpaces}function Wn(he,un){var Sn=$n(he,un);return e.isTemplateLiteralKind(Sn.kind)&&un>Sn.getStart(he)}e.isInTemplateString=Wn;function ze(he,un){var Sn=$n(he,un);return!!(e.isJsxText(Sn)||Sn.kind===18&&e.isJsxExpression(Sn.parent)&&e.isJsxElement(Sn.parent.parent)||Sn.kind===29&&e.isJsxOpeningLikeElement(Sn.parent)&&e.isJsxElement(Sn.parent.parent))}e.isInJSXText=ze;function Tn(he,un){function Sn(Tr){for(;Tr;)if(Tr.kind>=277&&Tr.kind<=286||Tr.kind===11||Tr.kind===29||Tr.kind===31||Tr.kind===79||Tr.kind===19||Tr.kind===18||Tr.kind===43)Tr=Tr.parent;else if(Tr.kind===276){if(un>Tr.getStart(he))return!0;Tr=Tr.parent}else return!1;return!1}return Sn($n(he,un))}e.isInsideJsxElement=Tn;function On(he,un,Sn){var Tr=e.tokenToString(he.kind),Wr=e.tokenToString(un),Yt=he.getFullStart(),Ia=Sn.text.lastIndexOf(Wr,Yt);if(Ia!==-1){if(Sn.text.lastIndexOf(Tr,Yt-1)<Ia){var hi=Ze(Ia+1,Sn);if(hi&&hi.kind===un)return hi}for(var yo=he.kind,Oo=0;;){var ys=Ze(he.getFullStart(),Sn);if(!ys)return;if(he=ys,he.kind===un){if(Oo===0)return he;Oo--}else he.kind===yo&&Oo++}}}e.findPrecedingMatchingToken=On;function ur(he,un,Sn){return un?he.getNonNullableType():Sn?he.getNonOptionalType():he}e.removeOptionality=ur;function hr(he,un,Sn){var Tr=Qr(he,un);return Tr!==void 0&&(e.isPartOfTypeNode(Tr.called)||wr(Tr.called,Tr.nTypeArguments,Sn).length!==0||hr(Tr.called,un,Sn))}e.isPossiblyTypeArgumentPosition=hr;function wr(he,un,Sn){var Tr=Sn.getTypeAtLocation(he);e.isOptionalChain(he.parent)&&(Tr=ur(Tr,e.isOptionalChainRoot(he.parent),!0));var Wr=e.isNewExpression(he.parent)?Tr.getConstructSignatures():Tr.getCallSignatures();return Wr.filter(function(Yt){return!!Yt.typeParameters&&Yt.typeParameters.length>=un})}e.getPossibleGenericSignatures=wr;function Qr(he,un){if(un.text.lastIndexOf("<",he?he.pos:un.text.length)!==-1)for(var Sn=he,Tr=0,Wr=0;Sn;){switch(Sn.kind){case 29:if(Sn=Ze(Sn.getFullStart(),un),Sn&&Sn.kind===28&&(Sn=Ze(Sn.getFullStart(),un)),!Sn||!e.isIdentifier(Sn))return;if(!Tr)return e.isDeclarationName(Sn)?void 0:{called:Sn,nTypeArguments:Wr};Tr--;break;case 49:Tr=3;break;case 48:Tr=2;break;case 31:Tr++;break;case 19:if(Sn=On(Sn,18,un),!Sn)return;break;case 21:if(Sn=On(Sn,20,un),!Sn)return;break;case 23:if(Sn=On(Sn,22,un),!Sn)return;break;case 27:Wr++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 139:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(Sn))break;return}Sn=Ze(Sn.getFullStart(),un)}}e.getPossibleTypeArgumentsInfo=Qr;function Ke(he,un,Sn){return e.formatting.getRangeOfEnclosingComment(he,un,void 0,Sn)}e.isInComment=Ke;function jn(he,un){var Sn=$n(he,un);return!!e.findAncestor(Sn,e.isJSDoc)}e.hasDocComment=jn;function Zn(he,un){return he.kind===1?!!he.jsDoc:he.getWidth(un)!==0}function Me(he,un){un===void 0&&(un=0);var Sn=[],Tr=e.isDeclaration(he)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(he)&~un:0;return Tr&8&&Sn.push("private"),Tr&16&&Sn.push("protected"),Tr&4&&Sn.push("public"),(Tr&32||e.isClassStaticBlockDeclaration(he))&&Sn.push("static"),Tr&128&&Sn.push("abstract"),Tr&1&&Sn.push("export"),Tr&8192&&Sn.push("deprecated"),he.flags&8388608&&Sn.push("declare"),he.kind===269&&Sn.push("export"),Sn.length>0?Sn.join(","):""}e.getNodeModifiers=Me;function Mn(he){if(he.kind===176||he.kind===206)return he.typeArguments;if(e.isFunctionLike(he)||he.kind===255||he.kind===256)return he.typeParameters}e.getTypeArgumentOrTypeParameterList=Mn;function ar(he){return he===2||he===3}e.isComment=ar;function Xn(he){return!!(he===10||he===13||e.isTemplateLiteralKind(he))}e.isStringOrRegularExpressionOrTemplateLiteral=Xn;function yr(he){return 18<=he&&he<=78}e.isPunctuation=yr;function cr(he,un,Sn){return e.isTemplateLiteralKind(he.kind)&&he.getStart(Sn)<un&&un<he.end||!!he.isUnterminated&&un===he.end}e.isInsideTemplateLiteral=cr;function Fe(he){switch(he){case 123:case 121:case 122:return!0}return!1}e.isAccessibilityModifier=Fe;function Bn(he){var un=e.clone(he);return e.setConfigFileInOptions(un,he&&he.configFile),un}e.cloneCompilerOptions=Bn;function J(he){return!!((he.kind===202||he.kind===203)&&(he.parent.kind===219&&he.parent.left===he&&he.parent.operatorToken.kind===63||he.parent.kind===242&&he.parent.initializer===he||J(he.parent.kind===291?he.parent.parent:he.parent)))}e.isArrayLiteralOrObjectLiteralDestructuringPattern=J;function Cn(he,un){return cn(he,un,!0)}e.isInReferenceComment=Cn;function Gn(he,un){return cn(he,un,!1)}e.isInNonReferenceComment=Gn;function cn(he,un,Sn){var Tr=Ke(he,un,void 0);return!!Tr&&Sn===N.test(he.text.substring(Tr.pos,Tr.end))}function Rn(he){if(he)switch(he.kind){case 10:case 14:return xn(he);default:return Ye(he)}}e.getReplacementSpanForContextToken=Rn;function Ye(he,un,Sn){return e.createTextSpanFromBounds(he.getStart(un),(Sn||he).getEnd())}e.createTextSpanFromNode=Ye;function xn(he){if(!he.isUnterminated)return e.createTextSpanFromBounds(he.getStart()+1,he.getEnd()-1)}e.createTextSpanFromStringLiteralLikeContent=xn;function an(he,un){return e.createRange(he.getStart(un),he.end)}e.createTextRangeFromNode=an;function zn(he){return e.createTextSpanFromBounds(he.pos,he.end)}e.createTextSpanFromRange=zn;function ir(he){return e.createRange(he.start,he.start+he.length)}e.createTextRangeFromSpan=ir;function gr(he,un,Sn){return Dr(e.createTextSpan(he,un),Sn)}e.createTextChangeFromStartLength=gr;function Dr(he,un){return{span:he,newText:un}}e.createTextChange=Dr,e.typeKeywords=[129,128,156,132,95,136,139,142,104,145,146,143,148,149,110,114,151,152,153];function qr(he){return e.contains(e.typeKeywords,he)}e.isTypeKeyword=qr;function ft(he){return he.kind===150}e.isTypeKeywordToken=ft;function xt(he){return!!(he.flags&1536)&&he.name.charCodeAt(0)===34}e.isExternalModuleSymbol=xt;function Kr(){var he=[];return function(un){var Sn=e.getNodeId(un);return!he[Sn]&&(he[Sn]=!0)}}e.nodeSeenTracker=Kr;function dt(he){return he.getText(0,he.getLength())}e.getSnapshotText=dt;function Ur(he,un){for(var Sn="",Tr=0;Tr<un;Tr++)Sn+=he;return Sn}e.repeatString=Ur;function qt(he){return he.isTypeParameter()&&he.getConstraint()||he}e.skipConstraint=qt;function Cr(he){return he.kind===160?e.isStringOrNumericLiteralLike(he.expression)?he.expression.text:void 0:e.isPrivateIdentifier(he)?e.idText(he):e.getTextOfIdentifierOrLiteral(he)}e.getNameFromPropertyName=Cr;function Jt(he){return he.getSourceFiles().some(function(un){return!un.isDeclarationFile&&!he.isSourceFileFromExternalLibrary(un)&&!!(un.externalModuleIndicator||un.commonJsModuleIndicator)})}e.programContainsModules=Jt;function Ot(he){return he.getSourceFiles().some(function(un){return!un.isDeclarationFile&&!he.isSourceFileFromExternalLibrary(un)&&!!un.externalModuleIndicator})}e.programContainsEs6Modules=Ot;function ri(he){return!!he.module||he.target>=2||!!he.noEmit}e.compilerOptionsIndicateEs6Modules=ri;function Ya(he,un){return{fileExists:function(Sn){return he.fileExists(Sn)},getCurrentDirectory:function(){return un.getCurrentDirectory()},readFile:e.maybeBind(un,un.readFile),useCaseSensitiveFileNames:e.maybeBind(un,un.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(un,un.getSymlinkCache)||he.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(un,un.getModuleSpecifierCache),getGlobalTypingsCacheLocation:e.maybeBind(un,un.getGlobalTypingsCacheLocation),redirectTargetsMap:he.redirectTargetsMap,getProjectReferenceRedirect:function(Sn){return he.getProjectReferenceRedirect(Sn)},isSourceOfProjectReferenceRedirect:function(Sn){return he.isSourceOfProjectReferenceRedirect(Sn)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(un,un.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return he.getFileIncludeReasons()}}}e.createModuleSpecifierResolutionHost=Ya;function eo(he,un){return Mt(Mt({},Ya(he,un)),{getCommonSourceDirectory:function(){return he.getCommonSourceDirectory()}})}e.getModuleSpecifierResolverHost=eo;function za(he,un,Sn,Tr){return he||un&&un.length?ua(he,un,Sn,Tr):void 0}e.makeImportIfNecessary=za;function ua(he,un,Sn,Tr,Wr){return e.factory.createImportDeclaration(void 0,void 0,he||un?e.factory.createImportClause(!!Wr,he,un&&un.length?e.factory.createNamedImports(un):void 0):void 0,typeof Sn=="string"?Ar(Sn,Tr):Sn)}e.makeImport=ua;function Ar(he,un){return e.factory.createStringLiteral(he,un===0)}e.makeStringLiteral=Ar;var at;(function(he){he[he.Single=0]="Single",he[he.Double=1]="Double"})(at=e.QuotePreference||(e.QuotePreference={}));function Hr(he,un){return e.isStringDoubleQuoted(he,un)?1:0}e.quotePreferenceFromString=Hr;function Wt(he,un){if(un.quotePreference&&un.quotePreference!=="auto")return un.quotePreference==="single"?0:1;var Sn=he.imports&&e.find(he.imports,function(Tr){return e.isStringLiteral(Tr)&&!e.nodeIsSynthesized(Tr.parent)});return Sn?Hr(Sn,he):1}e.getQuotePreference=Wt;function Zt(he){switch(he){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(he)}}e.getQuoteFromPreference=Zt;function Rr(he){var un=Lr(he);return un===void 0?void 0:e.unescapeLeadingUnderscores(un)}e.symbolNameNoDefault=Rr;function Lr(he){return he.escapedName!=="default"?he.escapedName:e.firstDefined(he.declarations,function(un){var Sn=e.getNameOfDeclaration(un);return Sn&&Sn.kind===79?Sn.escapedText:void 0})}e.symbolEscapedNameNoDefault=Lr;function Xr(he){return e.isStringLiteralLike(he)&&(e.isExternalModuleReference(he.parent)||e.isImportDeclaration(he.parent)||e.isRequireCall(he.parent,!1)&&he.parent.arguments[0]===he||e.isImportCall(he.parent)&&he.parent.arguments[0]===he)}e.isModuleSpecifierLike=Xr;function nt(he){return e.isBindingElement(he)&&e.isObjectBindingPattern(he.parent)&&e.isIdentifier(he.name)&&!he.propertyName}e.isObjectBindingElementWithoutPropertyName=nt;function vt(he,un){var Sn=he.getTypeAtLocation(un.parent);return Sn&&he.getPropertyOfType(Sn,un.name.text)}e.getPropertySymbolFromBindingElement=vt;function or(he,un,Sn){if(he)for(;he.parent;){if(e.isSourceFile(he.parent)||!$t(Sn,he.parent,un))return he;he=he.parent}}e.getParentNodeInSpan=or;function $t(he,un,Sn){return e.textSpanContainsPosition(he,un.getStart(Sn))&&un.getEnd()<=e.textSpanEnd(he)}function Va(he,un){return he.modifiers&&e.find(he.modifiers,function(Sn){return Sn.kind===un})}e.findModifier=Va;function li(he,un,Sn,Tr){var Wr=e.isArray(Sn)?Sn[0]:Sn,Yt=Wr.kind===235?e.isRequireVariableStatement:e.isAnyImportSyntax,Ia=e.filter(un.statements,Yt),hi=e.isArray(Sn)?e.stableSort(Sn,e.OrganizeImports.compareImportsOrRequireStatements):[Sn];if(!Ia.length)he.insertNodesAtTopOfFile(un,hi,Tr);else if(Ia&&e.OrganizeImports.importsAreSorted(Ia))for(var yo=0,Oo=hi;yo<Oo.length;yo++){var ys=Oo[yo],Pi=e.OrganizeImports.getImportDeclarationInsertionIndex(Ia,ys);if(Pi===0){var Po=Ia[0]===un.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};he.insertNodeBefore(un,Ia[0],ys,!1,Po)}else{var Jn=Ia[Pi-1];he.insertNodeAfter(un,Jn,ys)}}else{var zo=e.lastOrUndefined(Ia);zo?he.insertNodesAfter(un,zo,hi):he.insertNodesAtTopOfFile(un,hi,Tr)}}e.insertImports=li;function zi(he,un){return e.Debug.assert(he.isTypeOnly),e.cast(he.getChildAt(0,un),ft)}e.getTypeKeywordOfTypeOnlyImport=zi;function Ma(he,un){return!!he&&!!un&&he.start===un.start&&he.length===un.length}e.textSpansEqual=Ma;function di(he,un){return he.fileName===un.fileName&&Ma(he.textSpan,un.textSpan)}e.documentSpansEqual=di;function Yi(he,un){if(he){for(var Sn=0;Sn<he.length;Sn++)if(he.indexOf(he[Sn])===Sn){var Tr=un(he[Sn],Sn);if(Tr)return Tr}}}e.forEachUnique=Yi;function uo(he,un,Sn){for(var Tr=un;Tr<Sn;Tr++)if(!e.isWhiteSpaceLike(he.charCodeAt(Tr)))return!1;return!0}e.isTextWhiteSpaceLike=uo;function bi(he){return he.declarations&&he.declarations.length>0&&he.declarations[0].kind===162}e.isFirstDeclarationOfSymbolParameter=bi;var Mi=Go();function Go(){var he=e.defaultMaximumTruncationLength*10,un,Sn,Tr,Wr;ys();var Yt=function(Pi){return hi(Pi,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var Pi=un.length&&un[un.length-1].text;return Wr>he&&Pi&&Pi!=="..."&&(e.isWhiteSpaceLike(Pi.charCodeAt(Pi.length-1))||un.push(wi(" ",e.SymbolDisplayPartKind.space)),un.push(wi("...",e.SymbolDisplayPartKind.punctuation))),un},writeKeyword:function(Pi){return hi(Pi,e.SymbolDisplayPartKind.keyword)},writeOperator:function(Pi){return hi(Pi,e.SymbolDisplayPartKind.operator)},writePunctuation:function(Pi){return hi(Pi,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(Pi){return hi(Pi,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(Pi){return hi(Pi,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(Pi){return hi(Pi,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(Pi){return hi(Pi,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(Pi){return hi(Pi,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(Pi){return hi(Pi,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:yo,writeLine:Oo,write:Yt,writeComment:Yt,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 Tr},increaseIndent:function(){Tr++},decreaseIndent:function(){Tr--},clear:ys,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function Ia(){if(!(Wr>he)&&Sn){var Pi=e.getIndentString(Tr);Pi&&(Wr+=Pi.length,un.push(wi(Pi,e.SymbolDisplayPartKind.space))),Sn=!1}}function hi(Pi,Po){Wr>he||(Ia(),Wr+=Pi.length,un.push(wi(Pi,Po)))}function yo(Pi,Po){Wr>he||(Ia(),Wr+=Pi.length,un.push(io(Pi,Po)))}function Oo(){Wr>he||(Wr+=1,un.push(mn()),Sn=!0)}function ys(){un=[],Sn=!0,Tr=0,Wr=0}}function io(he,un){return wi(he,Sn(un));function Sn(Tr){var Wr=Tr.flags;return Wr&3?bi(Tr)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:Wr&4||Wr&32768||Wr&65536?e.SymbolDisplayPartKind.propertyName:Wr&8?e.SymbolDisplayPartKind.enumMemberName:Wr&16?e.SymbolDisplayPartKind.functionName:Wr&32?e.SymbolDisplayPartKind.className:Wr&64?e.SymbolDisplayPartKind.interfaceName:Wr&384?e.SymbolDisplayPartKind.enumName:Wr&1536?e.SymbolDisplayPartKind.moduleName:Wr&8192?e.SymbolDisplayPartKind.methodName:Wr&262144?e.SymbolDisplayPartKind.typeParameterName:Wr&524288||Wr&2097152?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}}e.symbolPart=io;function wi(he,un){return{text:he,kind:e.SymbolDisplayPartKind[un]}}e.displayPart=wi;function Ho(){return wi(" ",e.SymbolDisplayPartKind.space)}e.spacePart=Ho;function qi(he){return wi(e.tokenToString(he),e.SymbolDisplayPartKind.keyword)}e.keywordPart=qi;function Qi(he){return wi(e.tokenToString(he),e.SymbolDisplayPartKind.punctuation)}e.punctuationPart=Qi;function as(he){return wi(e.tokenToString(he),e.SymbolDisplayPartKind.operator)}e.operatorPart=as;function gs(he){return wi(he,e.SymbolDisplayPartKind.parameterName)}e.parameterNamePart=gs;function Da(he){return wi(he,e.SymbolDisplayPartKind.propertyName)}e.propertyNamePart=Da;function $a(he){var un=e.stringToToken(he);return un===void 0?Ni(he):qi(un)}e.textOrKeywordPart=$a;function Ni(he){return wi(he,e.SymbolDisplayPartKind.text)}e.textPart=Ni;function vo(he){return wi(he,e.SymbolDisplayPartKind.aliasName)}e.typeAliasNamePart=vo;function Io(he){return wi(he,e.SymbolDisplayPartKind.typeParameterName)}e.typeParameterNamePart=Io;function Bo(he){return wi(he,e.SymbolDisplayPartKind.linkText)}e.linkTextPart=Bo;function Uo(he,un){return{text:e.getTextOfNode(he),kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(un).fileName,textSpan:Ye(un)}}}e.linkNamePart=Uo;function cs(he){return wi(he,e.SymbolDisplayPartKind.link)}e.linkPart=cs;function us(he,un){var Sn,Tr=e.isJSDocLink(he)?"link":e.isJSDocLinkCode(he)?"linkcode":"linkplain",Wr=[cs("{@"+Tr+" ")];if(!he.name)he.text&&Wr.push(Bo(he.text));else{var Yt=un==null?void 0:un.getSymbolAtLocation(he.name),Ia=(Yt==null?void 0:Yt.valueDeclaration)||((Sn=Yt==null?void 0:Yt.declarations)===null||Sn===void 0?void 0:Sn[0]);Ia?(Wr.push(Uo(he.name,Ia)),he.text&&Wr.push(Bo(he.text))):Wr.push(Bo(e.getTextOfNode(he.name)+" "+he.text))}return Wr.push(cs("}")),Wr}e.buildLinkParts=us;var Jo=`\r
`;function is(he,un){var Sn;return(un==null?void 0:un.newLineCharacter)||((Sn=he.getNewLine)===null||Sn===void 0?void 0:Sn.call(he))||Jo}e.getNewLineOrDefaultFromHost=is;function mn(){return wi(`
`,e.SymbolDisplayPartKind.lineBreak)}e.lineBreakPart=mn;function _r(he){try{return he(Mi),Mi.displayParts()}finally{Mi.clear()}}e.mapToDisplayParts=_r;function $r(he,un,Sn,Tr){return Tr===void 0&&(Tr=0),_r(function(Wr){he.writeType(un,Sn,Tr|1024|16384,Wr)})}e.typeToDisplayParts=$r;function ia(he,un,Sn,Tr,Wr){return Wr===void 0&&(Wr=0),_r(function(Yt){he.writeSymbol(un,Sn,Tr,Wr|8,Yt)})}e.symbolToDisplayParts=ia;function ti(he,un,Sn,Tr){return Tr===void 0&&(Tr=0),Tr|=25632,_r(function(Wr){he.writeSignature(un,Sn,Tr,void 0,Wr)})}e.signatureToDisplayParts=ti;function va(he){return!!he.parent&&e.isImportOrExportSpecifier(he.parent)&&he.parent.propertyName===he}e.isImportOrExportSpecifierName=va;function Ve(he,un){return e.ensureScriptKind(he,un.getScriptKind&&un.getScriptKind(he))}e.getScriptKind=Ve;function ce(he,un){for(var Sn=he;j(Sn)||dn(Sn)&&Sn.target;)dn(Sn)&&Sn.target?Sn=Sn.target:Sn=e.skipAlias(Sn,un);return Sn}e.getSymbolTarget=ce;function dn(he){return(he.flags&33554432)!==0}function j(he){return(he.flags&2097152)!==0}function Ie(he,un){return e.getSymbolId(e.skipAlias(he,un))}e.getUniqueSymbolId=Ie;function We(he,un){for(;e.isWhiteSpaceLike(he.charCodeAt(un));)un+=1;return un}e.getFirstNonSpaceCharacterPosition=We;function sn(he,un){for(;un>-1&&e.isWhiteSpaceSingleLine(he.charCodeAt(un));)un-=1;return un+1}e.getPrecedingNonSpaceCharacterPosition=sn;function Hn(he,un){un===void 0&&(un=!0);var Sn=he&&Sr(he);return Sn&&!un&&ra(Sn),Sn}e.getSynthesizedDeepClone=Hn;function vr(he,un,Sn){var Tr=Sn(he);return Tr?e.setOriginalNode(Tr,he):Tr=Sr(he,Sn),Tr&&!un&&ra(Tr),Tr}e.getSynthesizedDeepCloneWithReplacements=vr;function Sr(he,un){var Sn=un?function(Ia){return vr(Ia,!0,un)}:Hn,Tr=un?function(Ia){return Ia&&Et(Ia,!0,un)}:function(Ia){return Ia&&ot(Ia)},Wr=e.visitEachChild(he,Sn,e.nullTransformationContext,Tr,Sn);if(Wr===he){var Yt=e.isStringLiteral(he)?e.setOriginalNode(e.factory.createStringLiteralFromNode(he),he):e.isNumericLiteral(he)?e.setOriginalNode(e.factory.createNumericLiteral(he.text,he.numericLiteralFlags),he):e.factory.cloneNode(he);return e.setTextRange(Yt,he)}return Wr.parent=void 0,Wr}function ot(he,un){return un===void 0&&(un=!0),he&&e.factory.createNodeArray(he.map(function(Sn){return Hn(Sn,un)}),he.hasTrailingComma)}e.getSynthesizedDeepClones=ot;function Et(he,un,Sn){return e.factory.createNodeArray(he.map(function(Tr){return vr(Tr,un,Sn)}),he.hasTrailingComma)}e.getSynthesizedDeepClonesWithReplacements=Et;function ra(he){Na(he),ei(he)}e.suppressLeadingAndTrailingTrivia=ra;function Na(he){ho(he,512,vs)}e.suppressLeadingTrivia=Na;function ei(he){ho(he,1024,e.getLastChild)}e.suppressTrailingTrivia=ei;function Li(he,un){var Sn=he.getSourceFile(),Tr=Sn.text;Zi(he,Tr)?Zo(he,un,Sn):ws(he,un,Sn),cl(he,un,Sn)}e.copyComments=Li;function Zi(he,un){for(var Sn=he.getFullStart(),Tr=he.getStart(),Wr=Sn;Wr<Tr;Wr++)if(un.charCodeAt(Wr)===10)return!0;return!1}function ho(he,un,Sn){e.addEmitFlags(he,un);var Tr=Sn(he);Tr&&ho(Tr,un,Sn)}function vs(he){return he.forEachChild(function(un){return un})}function Ao(he,un){for(var Sn=he,Tr=1;!e.isFileLevelUniqueName(un,Sn);Tr++)Sn=he+"_"+Tr;return Sn}e.getUniqueName=Ao;function oo(he,un,Sn,Tr){for(var Wr=0,Yt=-1,Ia=0,hi=he;Ia<hi.length;Ia++){var yo=hi[Ia],Oo=yo.fileName,ys=yo.textChanges;e.Debug.assert(Oo===un);for(var Pi=0,Po=ys;Pi<Po.length;Pi++){var Jn=Po[Pi],zo=Jn.span,Es=Jn.newText,Rs=ul(Es,Sn);if(Rs!==-1&&(Yt=zo.start+Wr+Rs,!Tr))return Yt;Wr+=Es.length-zo.length}}return e.Debug.assert(Tr),e.Debug.assert(Yt>=0),Yt}e.getRenameLocation=oo;function Zo(he,un,Sn,Tr,Wr){e.forEachLeadingCommentRange(Sn.text,he.pos,vl(un,Sn,Tr,Wr,e.addSyntheticLeadingComment))}e.copyLeadingComments=Zo;function cl(he,un,Sn,Tr,Wr){e.forEachTrailingCommentRange(Sn.text,he.end,vl(un,Sn,Tr,Wr,e.addSyntheticTrailingComment))}e.copyTrailingComments=cl;function ws(he,un,Sn,Tr,Wr){e.forEachTrailingCommentRange(Sn.text,he.pos,vl(un,Sn,Tr,Wr,e.addSyntheticLeadingComment))}e.copyTrailingAsLeadingComments=ws;function vl(he,un,Sn,Tr,Wr){return function(Yt,Ia,hi,yo){hi===3?(Yt+=2,Ia-=2):Yt+=2,Wr(he,Sn||hi,un.text.slice(Yt,Ia),Tr!==void 0?Tr:yo)}}function ul(he,un){if(e.startsWith(he,un))return 0;var Sn=he.indexOf(" "+un);return Sn===-1&&(Sn=he.indexOf("."+un)),Sn===-1&&(Sn=he.indexOf('"'+un)),Sn===-1?-1:Sn+1}function ps(he){return e.isBinaryExpression(he)&&he.operatorToken.kind===27||e.isObjectLiteralExpression(he)||e.isAsExpression(he)&&e.isObjectLiteralExpression(he.expression)}e.needsParentheses=ps;function jl(he,un){var Sn=he.parent;switch(Sn.kind){case 207:return un.getContextualType(Sn);case 219:{var Tr=Sn,Wr=Tr.left,Yt=Tr.operatorToken,Ia=Tr.right;return Hs(Yt.kind)?un.getTypeAtLocation(he===Ia?Wr:Ia):un.getContextualType(he)}case 287:return Sn.expression===he?Kn(Sn,un):void 0;default:return un.getContextualType(he)}}e.getContextualTypeFromParent=jl;function Hl(he,un,Sn){var Tr=Wt(he,un),Wr=JSON.stringify(Sn);return Tr===0?"'"+e.stripQuotes(Wr).replace(/'/g,"\\'").replace(/\\"/g,'"')+"'":Wr}e.quote=Hl;function Hs(he){switch(he){case 36:case 34:case 37:case 35:return!0;default:return!1}}e.isEqualityOperatorKind=Hs;function Fs(he){switch(he.kind){case 10:case 14:case 221:case 208:return!0;default:return!1}}e.isStringLiteralOrTemplate=Fs;function ge(he){return!!he.getStringIndexType()||!!he.getNumberIndexType()}e.hasIndexSignature=ge;function Kn(he,un){return un.getTypeAtLocation(he.parent.parent.expression)}e.getSwitchedType=Kn,e.ANONYMOUS="anonymous function";function Te(he,un,Sn,Tr){var Wr=Sn.getTypeChecker(),Yt=!0,Ia=function(){Yt=!1},hi=Wr.typeToTypeNode(he,un,1,{trackSymbol:function(yo,Oo,ys){return Yt=Yt&&Wr.isSymbolAccessible(yo,Oo,ys,!1).accessibility===0,!Yt},reportInaccessibleThisError:Ia,reportPrivateInBaseOfClassExpression:Ia,reportInaccessibleUniqueSymbolError:Ia,moduleResolverHost:eo(Sn,Tr)});return Yt?hi:void 0}e.getTypeNodeIfAccessible=Te;function Fn(he){return he===172||he===173||he===174||he===164||he===166}e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Fn;function et(he){return he===254||he===169||he===167||he===170||he===171}e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=et;function Xt(he){return he===259}e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Xt;function ca(he){return he===235||he===236||he===238||he===243||he===244||he===245||he===249||he===251||he===165||he===257||he===264||he===263||he===270||he===262||he===269}e.syntaxRequiresTrailingSemicolonOrASI=ca,e.syntaxMayBeASICandidate=e.or(Fn,et,Xt,ca);function ha(he,un){var Sn=he.getLastToken(un);if(Sn&&Sn.kind===26)return!1;if(Fn(he.kind)){if(Sn&&Sn.kind===27)return!1}else if(Xt(he.kind)){var Tr=e.last(he.getChildren(un));if(Tr&&e.isModuleBlock(Tr))return!1}else if(et(he.kind)){var Tr=e.last(he.getChildren(un));if(Tr&&e.isFunctionBlock(Tr))return!1}else if(!ca(he.kind))return!1;if(he.kind===238)return!0;var Wr=e.findAncestor(he,function(yo){return!yo.parent}),Yt=xe(he,Wr,un);if(!Yt||Yt.kind===19)return!0;var Ia=un.getLineAndCharacterOfPosition(he.getEnd()).line,hi=un.getLineAndCharacterOfPosition(Yt.getStart(un)).line;return Ia!==hi}function To(he,un,Sn){var Tr=e.findAncestor(un,function(Wr){return Wr.end!==he?"quit":e.syntaxMayBeASICandidate(Wr.kind)});return!!Tr&&ha(Tr,Sn)}e.positionIsASICandidate=To;function Pn(he){var un=0,Sn=0,Tr=5;return e.forEachChild(he,function Wr(Yt){if(ca(Yt.kind)){var Ia=Yt.getLastToken(he);Ia&&Ia.kind===26?un++:Sn++}return un+Sn>=Tr?!0:e.forEachChild(Yt,Wr)}),un===0&&Sn<=1?!0:un/Sn>1/Tr}e.probablyUsesSemicolons=Pn;function Vo(he,un){return Js(he,he.getDirectories,un)||[]}e.tryGetDirectories=Vo;function Ko(he,un,Sn,Tr,Wr){return Js(he,he.readDirectory,un,Sn,Tr,Wr)||e.emptyArray}e.tryReadDirectory=Ko;function hs(he,un){return Js(he,he.fileExists,un)}e.tryFileExists=hs;function hl(he,un){return Bi(function(){return e.directoryProbablyExists(un,he)})||!1}e.tryDirectoryExists=hl;function Bi(he){try{return he()}catch(un){return}}e.tryAndIgnoreErrors=Bi;function Js(he,un){for(var Sn=[],Tr=2;Tr<arguments.length;Tr++)Sn[Tr-2]=arguments[Tr];return Bi(function(){return un&&un.apply(he,Sn)})}e.tryIOAndConsumeErrors=Js;function rl(he,un,Sn){var Tr=[];return e.forEachAncestorDirectory(he,function(Wr){if(Wr===Sn)return!0;var Yt=e.combinePaths(Wr,"package.json");hs(un,Yt)&&Tr.push(Yt)}),Tr}e.findPackageJsons=rl;function Ol(he,un){var Sn;return e.forEachAncestorDirectory(he,function(Tr){if(Tr==="node_modules"||(Sn=e.findConfigFile(Tr,function(Wr){return hs(un,Wr)},"package.json"),Sn))return!0}),Sn}e.findPackageJson=Ol;function nc(he,un){if(!un.fileExists)return[];var Sn=[];return e.forEachAncestorDirectory(e.getDirectoryPath(he),function(Tr){var Wr=e.combinePaths(Tr,"package.json");if(un.fileExists(Wr)){var Yt=Sc(Wr,un);Yt&&Sn.push(Yt)}}),Sn}e.getPackageJsonsVisibleToFile=nc;function Sc(he,un){if(!un.readFile)return;var Sn=["dependencies","devDependencies","optionalDependencies","peerDependencies"],Tr=un.readFile(he)||"",Wr=du(Tr),Yt={};if(Wr)for(var Ia=0,hi=Sn;Ia<hi.length;Ia++){var yo=hi[Ia],Oo=Wr[yo];if(Oo){var ys=new e.Map;for(var Pi in Oo)ys.set(Pi,Oo[Pi]);Yt[yo]=ys}}var Po=[[1,Yt.dependencies],[2,Yt.devDependencies],[8,Yt.optionalDependencies],[4,Yt.peerDependencies]];return Mt(Mt({},Yt),{parseable:!!Wr,fileName:he,get:Jn,has:function(zo,Es){return!!Jn(zo,Es)}});function Jn(zo,Es){Es===void 0&&(Es=15);for(var Rs=0,pu=Po;Rs<pu.length;Rs++){var ol=pu[Rs],mu=ol[0],fo=ol[1];if(fo&&Es&mu){var tl=fo.get(zo);if(tl!==void 0)return tl}}}}e.createPackageJsonInfo=Sc;function Zl(he,un,Sn){var Tr=(Sn.getPackageJsonsVisibleToFile&&Sn.getPackageJsonsVisibleToFile(he.fileName)||nc(he.fileName,Sn)).filter(function(Po){return Po.parseable}),Wr;return{allowsImportingAmbientModule:Ia,allowsImportingSourceFile:hi,allowsImportingSpecifier:yo};function Yt(Po){for(var Jn=Pi(Po),zo=0,Es=Tr;zo<Es.length;zo++){var Rs=Es[zo];if(Rs.has(Jn)||Rs.has(e.getTypesPackageName(Jn)))return!0}return!1}function Ia(Po,Jn){if(!Tr.length||!Po.valueDeclaration)return!0;var zo=Po.valueDeclaration.getSourceFile(),Es=ys(zo.fileName,Jn);if(typeof Es=="undefined")return!0;var Rs=e.stripQuotes(Po.getName());return Oo(Rs)?!0:Yt(Es)||Yt(Rs)}function hi(Po,Jn){if(!Tr.length)return!0;var zo=ys(Po.fileName,Jn);return zo?Yt(zo):!0}function yo(Po){return!Tr.length||Oo(Po)||e.pathIsRelative(Po)||e.isRootedDiskPath(Po)?!0:Yt(Po)}function Oo(Po){return!!(e.isSourceFileJS(he)&&e.JsTyping.nodeCoreModules.has(Po)&&(Wr===void 0&&(Wr=dc(he)),Wr))}function ys(Po,Jn){if(e.stringContains(Po,"node_modules")){var zo=e.moduleSpecifiers.getNodeModulesPackageName(Sn.getCompilationSettings(),he.path,Po,Jn,un);if(zo&&!e.pathIsRelative(zo)&&!e.isRootedDiskPath(zo))return Pi(zo)}}function Pi(Po){var Jn=e.getPathComponents(e.getPackageNameFromTypesPackageName(Po)).slice(1);return e.startsWith(Jn[0],"@")?Jn[0]+"/"+Jn[1]:Jn[0]}}e.createPackageJsonImportFilter=Zl;function du(he){try{return JSON.parse(he)}catch(un){return}}function dc(he){return e.some(he.imports,function(un){var Sn=un.text;return e.JsTyping.nodeCoreModules.has(Sn)})}e.consumesNodeCoreModules=dc;function $l(he){return e.contains(e.getPathComponents(he),"node_modules")}e.isInsideNodeModules=$l;function kn(he){return he.file!==void 0&&he.start!==void 0&&he.length!==void 0}e.isDiagnosticWithLocation=kn;function lr(he,un){var Sn=Ye(he),Tr=e.binarySearchKey(un,Sn,e.identity,e.compareTextSpans);if(Tr>=0){var Wr=un[Tr];return e.Debug.assertEqual(Wr.file,he.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(Wr,kn)}}e.findDiagnosticForNode=lr;function Or(he,un){var Sn,Tr=e.binarySearchKey(un,he.start,function(hi){return hi.start},e.compareValues);for(Tr<0&&(Tr=~Tr);((Sn=un[Tr-1])===null||Sn===void 0?void 0:Sn.start)===he.start;)Tr--;for(var Wr=[],Yt=e.textSpanEnd(he);;){var Ia=e.tryCast(un[Tr],kn);if(!Ia||Ia.start>Yt)break;e.textSpanContainsTextSpan(he,Ia)&&Wr.push(Ia),Tr++}return Wr}e.getDiagnosticsWithinSpan=Or;function st(he){var un=he.startPosition,Sn=he.endPosition;return e.createTextSpanFromBounds(un,Sn===void 0?un:Sn)}e.getRefactorContextSpan=st;function yt(he,un,Sn){return Sn===void 0&&(Sn=e.identity),he?e.isArray(he)?Sn(e.map(he,un)):un(he,0):void 0}e.mapOneOrMany=yt;function Tt(he){return e.isArray(he)?e.first(he):he}e.firstOrOnly=Tt;function Ut(he,un){return!(he.flags&33554432)&&(he.escapedName==="export="||he.escapedName==="default")?e.firstDefined(he.declarations,function(Sn){var Tr;return e.isExportAssignment(Sn)?(Tr=e.tryCast(e.skipOuterExpressions(Sn.expression),e.isIdentifier))===null||Tr===void 0?void 0:Tr.text:void 0})||e.codefix.moduleSymbolToValidIdentifier(ea(he),un):he.name}e.getNameForExportedSymbol=Ut;function ea(he){var un;return e.Debug.checkDefined(he.parent,"Symbol parent was undefined. Flags: "+e.Debug.formatSymbolFlags(he.flags)+". "+("Declarations: "+((un=he.declarations)===null||un===void 0?void 0:un.map(function(Sn){var Tr=e.Debug.formatSyntaxKind(Sn.kind),Wr=e.isInJSFile(Sn),Yt=Sn.expression;return(Wr?"[JS]":"")+Tr+(Yt?" (expression: "+e.Debug.formatSyntaxKind(Yt.kind)+")":"")}).join(", "))+"."))}function zt(he,un,Sn){var Tr=un.length;if(Tr+Sn>he.length)return!1;for(var Wr=0;Wr<Tr;Wr++)if(un.charCodeAt(Wr)!==he.charCodeAt(Wr+Sn))return!1;return!0}e.stringContainsAt=zt;function Ii(he){return he.charCodeAt(0)===95}e.startsWithUnderscore=Ii;function ba(he){return!wa(he)}e.isGlobalDeclaration=ba;function wa(he){var un=he.getSourceFile();return!un.externalModuleIndicator&&!un.commonJsModuleIndicator?!1:e.isInJSFile(he)||!e.findAncestor(he,e.isGlobalScopeAugmentation)}e.isNonGlobalDeclaration=wa;function Ui(he){return!!(e.getCombinedNodeFlagsAlwaysIncludeJSDoc(he)&8192)}e.isDeprecatedDeclaration=Ui;function Fi(he,un){var Sn=e.firstDefined(he.imports,function(Tr){if(e.JsTyping.nodeCoreModules.has(Tr.text))return e.startsWith(Tr.text,"node:")});return Sn!=null?Sn:un.usesUriStyleNodeCoreModules}e.shouldUseUriStyleNodeCoreModules=Fi})(vn||(vn={}));var vn;(function(e){var o;(function(V){V[V.Named=0]="Named",V[V.Default=1]="Default",V[V.Namespace=2]="Namespace",V[V.CommonJS=3]="CommonJS"})(o=e.ImportKind||(e.ImportKind={}));var ue;(function(V){V[V.Named=0]="Named",V[V.Default=1]="Default",V[V.ExportEquals=2]="ExportEquals",V[V.UMD=3]="UMD"})(ue=e.ExportKind||(e.ExportKind={}));function $(V){var Z=1,E=e.createMultiMap(),H=new e.Map,L,ee={isUsableByFile:function(w){return w===L},isEmpty:function(){return!E.size},clear:function(){E.clear(),H.clear(),L=void 0},add:function(w,R,ne,U,C,d,G,g,p){w!==L&&(ee.clear(),L=w);var f=d===1,T=f&&e.getLocalSymbolForExportDefault(R)||R,m=e.isExternalModuleSymbol(T)?e.unescapeLeadingUnderscores(ne):e.getNameForExportedSymbol(T,g),N=e.stripQuotes(U.name),P=Z++,x=R.flags&33554432?void 0:R,M=U.flags&33554432?void 0:U;(!x||!M)&&H.set(P,[R,U]),E.add(b(m,R,N,p),{id:P,symbolTableKey:ne,symbolName:m,moduleName:N,moduleFile:C,moduleFileName:C==null?void 0:C.fileName,exportKind:d,targetFlags:e.skipAlias(R,p).flags,isFromPackageJson:G,symbol:x,moduleSymbol:M})},get:function(w,R,ne,U,C){if(w===L){var d=E.get(b(R,ne,U,C));return d==null?void 0:d.map(k)}},forEach:function(w,R){w===L&&E.forEach(function(ne,U){var C=ie(U),d=C.symbolName,G=C.ambientModuleName;R(ne.map(k),d,!!G)})},releaseSymbols:function(){H.clear()},onFileChanged:function(w,R,ne){return oe(w)&&oe(R)?!1:L&&L!==R.path||ne&&e.consumesNodeCoreModules(w)!==e.consumesNodeCoreModules(R)||!e.arrayIsEqualTo(w.moduleAugmentations,R.moduleAugmentations)||!se(w,R)?(ee.clear(),!0):(L=R.path,!1)}};return e.Debug.isDebugging&&Object.defineProperty(ee,"__cache",{get:function(){return E}}),ee;function k(w){if(w.symbol&&w.moduleSymbol)return w;var R=w.id,ne=w.exportKind,U=w.targetFlags,C=w.isFromPackageJson,d=w.moduleFileName,G=H.get(R)||e.emptyArray,g=G[0],p=G[1];if(g&&p)return{symbol:g,moduleSymbol:p,moduleFileName:d,exportKind:ne,targetFlags:U,isFromPackageJson:C};var f=(C?V.getPackageJsonAutoImportProvider():V.getCurrentProgram()).getTypeChecker(),T=w.moduleSymbol||p||e.Debug.checkDefined(w.moduleFile?f.getMergedSymbol(w.moduleFile.symbol):f.tryFindAmbientModule(w.moduleName)),m=w.symbol||g||e.Debug.checkDefined(ne===2?f.resolveExternalModuleSymbol(T):f.tryGetMemberInModuleExportsAndProperties(e.unescapeLeadingUnderscores(w.symbolTableKey),T),"Could not find symbol '"+w.symbolName+"' by key '"+w.symbolTableKey+"' in module "+T.name);return H.set(R,[m,T]),{symbol:m,moduleSymbol:T,moduleFileName:d,exportKind:ne,targetFlags:U,isFromPackageJson:C}}function b(w,R,ne,U){var C=e.stripQuotes(ne),d=e.isExternalModuleNameRelative(C)?"/":C,G=e.skipAlias(R,U);return w+"|"+q(G)+"|"+d}function ie(w){var R=w.substring(0,w.indexOf("|")),ne=w.substring(w.lastIndexOf("|")+1),U=ne==="/"?void 0:ne;return{symbolName:R,ambientModuleName:U}}function q(w){for(var R=w.name;w.parent;)R+=","+w.parent.name,w=w.parent;return R}function oe(w){return!w.commonJsModuleIndicator&&!w.externalModuleIndicator&&!w.moduleAugmentations&&!w.ambientModuleNames}function se(w,R){if(!e.arrayIsEqualTo(w.ambientModuleNames,R.ambientModuleNames))return!1;for(var ne=-1,U=-1,C=function(f){var T=function(m){return e.isNonGlobalAmbientModule(m)&&m.name.text===f};if(ne=e.findIndex(w.statements,T,ne+1),U=e.findIndex(R.statements,T,U+1),w.statements[ne]!==R.statements[U])return{value:!1}},d=0,G=R.ambientModuleNames;d<G.length;d++){var g=G[d],p=C(g);if(typeof p=="object")return p.value}return!0}}e.createCacheableExportInfoMap=$;function Y(V,Z,E,H,L,ee,k){var b;if(Z===E)return!1;var ie=k==null?void 0:k.get(Z.path,E.path,H);if((ie==null?void 0:ie.isAutoImportable)!==void 0)return ie.isAutoImportable;var q=e.hostGetCanonicalFileName(ee),oe=(b=ee.getGlobalTypingsCacheLocation)===null||b===void 0?void 0:b.call(ee),se=!!e.moduleSpecifiers.forEachFileNameOfModule(Z.fileName,E.fileName,ee,!1,function(R){var ne=V.getSourceFile(R);return(ne===E||!ne)&&W(Z.fileName,R,q,oe)});if(L){var w=se&&L.allowsImportingSourceFile(E,ee);return k==null||k.setIsAutoImportable(Z.path,E.path,H,w),w}return se}e.isImportableFile=Y;function W(V,Z,E,H){var L=e.forEachAncestorDirectory(Z,function(k){return e.getBaseFileName(k)==="node_modules"?k:void 0}),ee=L&&e.getDirectoryPath(E(L));return ee===void 0||e.startsWith(E(V),ee)||!!H&&e.startsWith(E(H),ee)}function re(V,Z,E,H){var L,ee;ye(V.getTypeChecker(),V.getSourceFiles(),function(ie,q){return H(ie,q,V,!1)});var k=E&&((L=Z.getPackageJsonAutoImportProvider)===null||L===void 0?void 0:L.call(Z));if(k){var b=e.timestamp();ye(k.getTypeChecker(),k.getSourceFiles(),function(ie,q){return H(ie,q,k,!0)}),(ee=Z.log)===null||ee===void 0||ee.call(Z,"forEachExternalModuleToImportFrom autoImportProvider: "+(e.timestamp()-b))}}e.forEachExternalModuleToImportFrom=re;function ye(V,Z,E){for(var H=0,L=V.getAmbientModules();H<L.length;H++){var ee=L[H];e.stringContains(ee.name,"*")||E(ee,void 0)}for(var k=0,b=Z;k<b.length;k++){var ie=b[k];e.isExternalOrCommonJsModule(ie)&&E(V.getMergedSymbol(ie.symbol),ie)}}function O(V,Z,E,H){var L,ee,k,b,ie,q=e.timestamp();(L=Z.getPackageJsonAutoImportProvider)===null||L===void 0||L.call(Z);var oe=((ee=Z.getCachedExportInfoMap)===null||ee===void 0?void 0:ee.call(Z))||$({getCurrentProgram:function(){return E},getPackageJsonAutoImportProvider:function(){var ne;return(ne=Z.getPackageJsonAutoImportProvider)===null||ne===void 0?void 0:ne.call(Z)}});if(oe.isUsableByFile(V.path))return(k=Z.log)===null||k===void 0||k.call(Z,"getExportInfoMap: cache hit"),oe;(b=Z.log)===null||b===void 0||b.call(Z,"getExportInfoMap: cache miss or empty; calculating new results");var se=E.getCompilerOptions(),w=e.getEmitScriptTarget(se),R=0;return re(E,Z,!0,function(ne,U,C,d){++R%100===0&&(H==null||H.throwIfCancellationRequested());var G=new e.Map,g=C.getTypeChecker(),p=A(ne,g,se);p&&D(p.symbol,g)&&oe.add(V.path,p.symbol,p.exportKind===1?"default":"export=",ne,U,p.exportKind,d,w,g),g.forEachExportAndPropertyOfModule(ne,function(f,T){f!==(p==null?void 0:p.symbol)&&D(f,g)&&e.addToSeen(G,f)&&oe.add(V.path,f,T,ne,U,0,d,w,g)})}),(ie=Z.log)===null||ie===void 0||ie.call(Z,"getExportInfoMap: done in "+(e.timestamp()-q)+" ms"),oe}e.getExportInfoMap=O;function A(V,Z,E){var H=de(V,Z);if(H){var L=H.symbol,ee=H.exportKind,k=_e(L,Z,E);return k&&Mt({symbol:L,exportKind:ee},k)}}e.getDefaultLikeExportInfo=A;function D(V,Z){return!Z.isUndefinedSymbol(V)&&!Z.isUnknownSymbol(V)&&!e.isKnownSymbol(V)&&!e.isPrivateIdentifierSymbol(V)}function de(V,Z){var E=Z.resolveExternalModuleSymbol(V);if(E!==V)return{symbol:E,exportKind:2};var H=Z.tryGetMemberInModuleExports("default",V);if(H)return{symbol:H,exportKind:1}}function _e(V,Z,E){var H=e.getLocalSymbolForExportDefault(V);if(H)return{symbolForMeaning:H,name:H.name};var L=y(V);if(L!==void 0)return{symbolForMeaning:V,name:L};if(V.flags&2097152){var ee=Z.getImmediateAliasedSymbol(V);if(ee&&ee.parent)return _e(ee,Z,E)}return V.escapedName!=="default"&&V.escapedName!=="export="?{symbolForMeaning:V,name:V.getName()}:{symbolForMeaning:V,name:e.getNameForExportedSymbol(V,E.target)}}function y(V){return V.declarations&&e.firstDefined(V.declarations,function(Z){var E;if(e.isExportAssignment(Z))return(E=e.tryCast(e.skipOuterExpressions(Z.expression),e.isIdentifier))===null||E===void 0?void 0:E.text;if(e.isExportSpecifier(Z))return e.Debug.assert(Z.name.text==="default","Expected the specifier to be a default export"),Z.propertyName&&Z.propertyName.text})}})(vn||(vn={}));var vn;(function(e){function o(){var b=e.createScanner(99,!1);function ie(oe,se,w){return W(q(oe,se,w),oe)}function q(oe,se,w){var R=0,ne=0,U=[],C=O(se),d=C.prefix,G=C.pushTemplate;oe=d+oe;var g=d.length;G&&U.push(15),b.setText(oe);var p=0,f=[],T=0;do{R=b.scan(),e.isTrivia(R)||(P(),ne=R);var m=b.getTextPos();if(Y(b.getTokenPos(),m,g,de(R),f),m>=oe.length){var N=$(b,R,e.lastOrUndefined(U));N!==void 0&&(p=N)}}while(R!==1);function P(){switch(R){case 43:case 68:!ue[ne]&&b.reScanSlashToken()===13&&(R=13);break;case 29:ne===79&&T++;break;case 31:T>0&&T--;break;case 129:case 148:case 145:case 132:case 149:T>0&&!w&&(R=79);break;case 15:U.push(R);break;case 18:U.length>0&&U.push(R);break;case 19:if(U.length>0){var x=e.lastOrUndefined(U);x===15?(R=b.reScanTemplateToken(!1),R===17?U.pop():e.Debug.assertEqual(R,16,"Should have been a template middle.")):(e.Debug.assertEqual(x,18,"Should have been an open brace"),U.pop())}break;default:if(!e.isKeyword(R))break;(ne===24||e.isKeyword(ne)&&e.isKeyword(R)&&!ye(ne,R))&&(R=79)}}return{endOfLineState:p,spans:f}}return{getClassificationsForLine:ie,getEncodedLexicalClassifications:q}}e.createClassifier=o;var ue=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],function(b){return b},function(){return!0});function $(b,ie,q){switch(ie){case 10:{if(!b.isUnterminated())return;for(var oe=b.getTokenText(),se=oe.length-1,w=0;oe.charCodeAt(se-w)===92;)w++;return w&1?oe.charCodeAt(0)===34?3:2:void 0}case 3:return b.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(ie)){if(!b.isUnterminated())return;switch(ie){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+ie)}}return q===15?6:void 0}}function Y(b,ie,q,oe,se){if(oe!==8){b===0&&q>0&&(b+=q);var w=ie-b;w>0&&se.push(b-q,w,oe)}}function W(b,ie){for(var q=[],oe=b.spans,se=0,w=0;w<oe.length;w+=3){var R=oe[w],ne=oe[w+1],U=oe[w+2];if(se>=0){var C=R-se;C>0&&q.push({length:C,classification:e.TokenClass.Whitespace})}q.push({length:ne,classification:re(U)}),se=R+ne}var d=ie.length-se;return d>0&&q.push({length:d,classification:e.TokenClass.Whitespace}),{entries:q,finalLexState:b.endOfLineState}}function re(b){switch(b){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 ye(b,ie){if(!e.isAccessibilityModifier(b))return!0;switch(ie){case 135:case 147:case 133:case 124:return!0;default:return!1}}function O(b){switch(b){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(b)}}function A(b){switch(b){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 127:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}function D(b){switch(b){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function de(b){if(e.isKeyword(b))return 3;if(A(b)||D(b))return 5;if(b>=18&&b<=78)return 10;switch(b){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 79:default:return e.isTemplateLiteralKind(b)?6:2}}function _e(b,ie,q,oe,se){return L(V(b,ie,q,oe,se))}e.getSemanticClassifications=_e;function y(b,ie){switch(ie){case 259:case 255:case 256:case 254:case 224:case 211:case 212:b.throwIfCancellationRequested()}}function V(b,ie,q,oe,se){var w=[];return q.forEachChild(function ne(U){if(!(!U||!e.textSpanIntersectsWith(se,U.pos,U.getFullWidth()))){if(y(ie,U.kind),e.isIdentifier(U)&&!e.nodeIsMissing(U)&&oe.has(U.escapedText)){var C=b.getSymbolAtLocation(U),d=C&&Z(C,e.getMeaningFromLocation(U),b);d&&R(U.getStart(q),U.getEnd(),d)}U.forEachChild(ne)}}),{spans:w,endOfLineState:0};function R(ne,U,C){var d=U-ne;e.Debug.assert(d>0,"Classification had non-positive length of "+d),w.push(ne),w.push(d),w.push(C)}}e.getEncodedSemanticClassifications=V;function Z(b,ie,q){var oe=b.getFlags();if(oe&2885600)return oe&32?11:oe&384?12:oe&524288?16:oe&1536?ie&4||ie&1&&E(b)?14:void 0:oe&2097152?Z(q.getAliasedSymbol(b),ie,q):ie&2?oe&64?13:oe&262144?15:void 0:void 0}function E(b){return e.some(b.declarations,function(ie){return e.isModuleDeclaration(ie)&&e.getModuleInstanceState(ie)===1})}function H(b){switch(b){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function L(b){e.Debug.assert(b.spans.length%3===0);for(var ie=b.spans,q=[],oe=0;oe<ie.length;oe+=3)q.push({textSpan:e.createTextSpan(ie[oe],ie[oe+1]),classificationType:H(ie[oe+2])});return q}function ee(b,ie,q){return L(k(b,ie,q))}e.getSyntacticClassifications=ee;function k(b,ie,q){var oe=q.start,se=q.length,w=e.createScanner(99,!1,ie.languageVariant,ie.text),R=e.createScanner(99,!1,ie.languageVariant,ie.text),ne=[];return M(ie),{spans:ne,endOfLineState:0};function U(me,z,K){ne.push(me),ne.push(z),ne.push(K)}function C(me){for(w.setTextPos(me.pos);;){var z=w.getTextPos();if(!e.couldStartTrivia(ie.text,z))return z;var K=w.scan(),I=w.getTextPos(),Ae=I-z;if(!e.isTrivia(K))return z;switch(K){case 4:case 5:continue;case 2:case 3:d(me,K,z,Ae),w.setTextPos(I);continue;case 7:var Oe=ie.text,te=Oe.charCodeAt(z);if(te===60||te===62){U(z,Ae,1);continue}e.Debug.assert(te===124||te===61),T(Oe,z,I);break;case 6:break;default:e.Debug.assertNever(K)}}}function d(me,z,K,I){if(z===3){var Ae=e.parseIsolatedJSDocComment(ie.text,K,I);if(Ae&&Ae.jsDoc){e.setParent(Ae.jsDoc,me),g(Ae.jsDoc);return}}else if(z===2&&p(K,I))return;G(K,I)}function G(me,z){U(me,z,1)}function g(me){var z,K,I,Ae,Oe,te,Se,be=me.pos;if(me.tags)for(var Ce=0,Be=me.tags;Ce<Be.length;Ce++){var De=Be[Ce];De.pos!==be&&G(be,De.pos-be),U(De.pos,1,10),U(De.tagName.pos,De.tagName.end-De.tagName.pos,18),be=De.tagName.end;var en=De.tagName.end;switch(De.kind){case 335:var fe=De;pe(fe),en=fe.isNameFirst&&((z=fe.typeExpression)===null||z===void 0?void 0:z.end)||fe.name.end;break;case 342:var Ne=De;en=Ne.isNameFirst&&((K=Ne.typeExpression)===null||K===void 0?void 0:K.end)||Ne.name.end;break;case 339:f(De),be=De.end,en=De.typeParameters.end;break;case 340:var qe=De;en=((I=qe.typeExpression)===null||I===void 0?void 0:I.kind)===304&&((Ae=qe.fullName)===null||Ae===void 0?void 0:Ae.end)||((Oe=qe.typeExpression)===null||Oe===void 0?void 0:Oe.end)||en;break;case 333:en=De.typeExpression.end;break;case 338:M(De.typeExpression),be=De.end,en=De.typeExpression.end;break;case 337:case 334:en=De.typeExpression.end;break;case 336:M(De.typeExpression),be=De.end,en=((te=De.typeExpression)===null||te===void 0?void 0:te.end)||en;break;case 341:en=((Se=De.name)===null||Se===void 0?void 0:Se.end)||en;break;case 323:case 324:en=De.class.end;break}typeof De.comment=="object"?G(De.comment.pos,De.comment.end-De.comment.pos):typeof De.comment=="string"&&G(en,De.end-en)}be!==me.end&&G(be,me.end-be);return;function pe(we){we.isNameFirst&&(G(be,we.name.pos-be),U(we.name.pos,we.name.end-we.name.pos,17),be=we.name.end),we.typeExpression&&(G(be,we.typeExpression.pos-be),M(we.typeExpression),be=we.typeExpression.end),we.isNameFirst||(G(be,we.name.pos-be),U(we.name.pos,we.name.end-we.name.pos,17),be=we.name.end)}}function p(me,z){var K=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,I=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,Ae=ie.text.substr(me,z),Oe=K.exec(Ae);if(!Oe||!Oe[3]||!(Oe[3]in e.commentPragmas))return!1;var te=me;G(te,Oe[1].length),te+=Oe[1].length,U(te,Oe[2].length,10),te+=Oe[2].length,U(te,Oe[3].length,21),te+=Oe[3].length;for(var Se=Oe[4],be=te;;){var Ce=I.exec(Se);if(!Ce)break;var Be=te+Ce.index+Ce[1].length;Be>be&&(G(be,Be-be),be=Be),U(be,Ce[2].length,22),be+=Ce[2].length,Ce[3].length&&(G(be,Ce[3].length),be+=Ce[3].length),U(be,Ce[4].length,5),be+=Ce[4].length,Ce[5].length&&(G(be,Ce[5].length),be+=Ce[5].length),U(be,Ce[6].length,24),be+=Ce[6].length}te+=Oe[4].length,te>be&&G(be,te-be),Oe[5]&&(U(te,Oe[5].length,10),te+=Oe[5].length);var De=me+z;return te<De&&G(te,De-te),!0}function f(me){for(var z=0,K=me.getChildren();z<K.length;z++){var I=K[z];M(I)}}function T(me,z,K){var I;for(I=z;I<K&&!e.isLineBreak(me.charCodeAt(I));I++);for(U(z,I-z,1),R.setTextPos(I);R.getTextPos()<K;)m()}function m(){var me=R.getTextPos(),z=R.scan(),K=R.getTextPos(),I=x(z);I&&U(me,K-me,I)}function N(me){if(e.isJSDoc(me)||e.nodeIsMissing(me))return!0;var z=P(me);if(!e.isToken(me)&&me.kind!==11&&z===void 0)return!1;var K=me.kind===11?me.pos:C(me),I=me.end-K;if(e.Debug.assert(I>=0),I>0){var Ae=z||x(me.kind,me);Ae&&U(K,I,Ae)}return!0}function P(me){switch(me.parent&&me.parent.kind){case 278:if(me.parent.tagName===me)return 19;break;case 279:if(me.parent.tagName===me)return 20;break;case 277:if(me.parent.tagName===me)return 21;break;case 283:if(me.parent.name===me)return 22;break}}function x(me,z){if(e.isKeyword(me))return 3;if((me===29||me===31)&&z&&e.getTypeArgumentOrTypeParameterList(z.parent))return 10;if(e.isPunctuation(me)){if(z){var K=z.parent;if(me===63&&(K.kind===252||K.kind===165||K.kind===162||K.kind===283)||K.kind===219||K.kind===217||K.kind===218||K.kind===220)return 5}return 10}else{if(me===8)return 4;if(me===9)return 25;if(me===10)return z&&z.parent.kind===283?24:6;if(me===13)return 6;if(e.isTemplateLiteralKind(me))return 6;if(me===11)return 23;if(me===79){if(z)switch(z.parent.kind){case 255:return z.parent.name===z?11:void 0;case 161:return z.parent.name===z?15:void 0;case 256:return z.parent.name===z?13:void 0;case 258:return z.parent.name===z?12:void 0;case 259:return z.parent.name===z?14:void 0;case 162:return z.parent.name===z?e.isThisIdentifier(z)?3:17:void 0}return 2}}}function M(me){if(me&&e.decodedTextSpanIntersectsWith(oe,se,me.pos,me.getFullWidth())){y(b,me.kind);for(var z=0,K=me.getChildren(ie);z<K.length;z++){var I=K[z];N(I)||M(I)}}}}e.getEncodedSyntacticClassifications=k})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $;(function(Y){var W;(function(k){k[k.typeOffset=8]="typeOffset",k[k.modifierMask=255]="modifierMask"})(W=Y.TokenEncodingConsts||(Y.TokenEncodingConsts={}));var re;(function(k){k[k.class=0]="class",k[k.enum=1]="enum",k[k.interface=2]="interface",k[k.namespace=3]="namespace",k[k.typeParameter=4]="typeParameter",k[k.type=5]="type",k[k.parameter=6]="parameter",k[k.variable=7]="variable",k[k.enumMember=8]="enumMember",k[k.property=9]="property",k[k.function=10]="function",k[k.member=11]="member"})(re=Y.TokenType||(Y.TokenType={}));var ye;(function(k){k[k.declaration=0]="declaration",k[k.static=1]="static",k[k.async=2]="async",k[k.readonly=3]="readonly",k[k.defaultLibrary=4]="defaultLibrary",k[k.local=5]="local"})(ye=Y.TokenModifier||(Y.TokenModifier={}));function O(k,b,ie,q){var oe=A(k,b,ie,q);e.Debug.assert(oe.spans.length%3===0);for(var se=oe.spans,w=[],R=0;R<se.length;R+=3)w.push({textSpan:e.createTextSpan(se[R],se[R+1]),classificationType:se[R+2]});return w}Y.getSemanticClassifications=O;function A(k,b,ie,q){return{spans:D(k,ie,q,b),endOfLineState:0}}Y.getEncodedSemanticClassifications=A;function D(k,b,ie,q){var oe=[],se=function(w,R,ne){oe.push(w.getStart(b),w.getWidth(b),(R+1<<8)+ne)};return k&&b&&de(k,b,ie,se,q),oe}function de(k,b,ie,q,oe){var se=k.getTypeChecker(),w=!1;function R(ne){switch(ne.kind){case 259:case 255:case 256:case 254:case 224:case 211:case 212:oe.throwIfCancellationRequested()}if(!(!ne||!e.textSpanIntersectsWith(ie,ne.pos,ne.getFullWidth())||ne.getFullWidth()===0)){var U=w;if((e.isJsxElement(ne)||e.isJsxSelfClosingElement(ne))&&(w=!0),e.isJsxExpression(ne)&&(w=!1),e.isIdentifier(ne)&&!w&&!E(ne)&&!e.isInfinityOrNaNString(ne.escapedText)){var C=se.getSymbolAtLocation(ne);if(C){C.flags&2097152&&(C=se.getAliasedSymbol(C));var d=_e(C,e.getMeaningFromLocation(ne));if(d!==void 0){var G=0;if(ne.parent){var g=e.isBindingElement(ne.parent)||ee.get(ne.parent.kind)===d;g&&ne.parent.name===ne&&(G=1)}d===6&&L(ne)&&(d=9),d=y(se,ne,d);var p=C.valueDeclaration;if(p){var f=e.getCombinedModifierFlags(p),T=e.getCombinedNodeFlags(p);f&32&&(G|=2),f&256&&(G|=4),d!==0&&d!==2&&(f&64||T&2||C.getFlags()&8)&&(G|=8),(d===7||d===10)&&V(p,b)&&(G|=32),k.isSourceFileDefaultLibrary(p.getSourceFile())&&(G|=16)}else C.declarations&&C.declarations.some(function(m){return k.isSourceFileDefaultLibrary(m.getSourceFile())})&&(G|=16);q(ne,d,G)}}}e.forEachChild(ne,R),w=U}}R(b)}function _e(k,b){var ie=k.getFlags();if(ie&32)return 0;if(ie&384)return 1;if(ie&524288)return 5;if(ie&64){if(b&2)return 2}else if(ie&262144)return 4;var q=k.valueDeclaration||k.declarations&&k.declarations[0];return q&&e.isBindingElement(q)&&(q=Z(q)),q&&ee.get(q.kind)}function y(k,b,ie){if(ie===7||ie===9||ie===6){var q=k.getTypeAtLocation(b);if(q){var oe=function(se){return se(q)||q.isUnion()&&q.types.some(se)};if(ie!==6&&oe(function(se){return se.getConstructSignatures().length>0}))return 0;if(oe(function(se){return se.getCallSignatures().length>0})&&!oe(function(se){return se.getProperties().length>0})||H(b))return ie===9?11:10}}return ie}function V(k,b){return e.isBindingElement(k)&&(k=Z(k)),e.isVariableDeclaration(k)?(!e.isSourceFile(k.parent.parent.parent)||e.isCatchClause(k.parent))&&k.getSourceFile()===b:e.isFunctionDeclaration(k)?!e.isSourceFile(k.parent)&&k.getSourceFile()===b:!1}function Z(k){for(;;)if(e.isBindingElement(k.parent.parent))k=k.parent.parent;else return k.parent.parent}function E(k){var b=k.parent;return b&&(e.isImportClause(b)||e.isImportSpecifier(b)||e.isNamespaceImport(b))}function H(k){for(;L(k);)k=k.parent;return e.isCallExpression(k.parent)&&k.parent.expression===k}function L(k){return e.isQualifiedName(k.parent)&&k.parent.right===k||e.isPropertyAccessExpression(k.parent)&&k.parent.name===k}var ee=new e.Map([[252,7],[162,6],[165,9],[259,3],[258,1],[294,8],[255,0],[167,11],[254,10],[211,10],[166,11],[170,9],[171,9],[164,9],[256,2],[257,5],[161,4],[291,9],[292,9]])})($=ue.v2020||(ue.v2020={}))})(o=e.classifier||(e.classifier={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $;(function(Y){function W(te,Se,be,Ce,Be,De,en,fe){if(e.isInReferenceComment(te,Se)){var Ne=P(te,Se,Be,De);return Ne&&A(Ne)}if(e.isInString(te,Se,be)){if(!be||!e.isStringLiteralLike(be))return;var Ne=_e(te,be,Se,Ce,Be,De,fe);return re(Ne,be,te,Ce,en,Be,fe)}}Y.getStringLiteralCompletions=W;function re(te,Se,be,Ce,Be,De,en){if(te!==void 0){var fe=e.createTextSpanFromStringLiteralLikeContent(Se);switch(te.kind){case 0:return A(te.paths);case 1:{var Ne=[];return ue.getCompletionEntriesFromSymbols(te.symbols,Ne,Se,be,be,Ce,99,Be,4,en,De),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:te.hasIndexSignature,optionalReplacementSpan:fe,entries:Ne}}case 2:{var Ne=te.types.map(function(pe){return{name:pe.value,kindModifiers:"",kind:"string",sortText:ue.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(Se)}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:te.isNewIdentifier,optionalReplacementSpan:fe,entries:Ne}}default:return e.Debug.assertNever(te)}}}function ye(te,Se,be,Ce,Be,De,en,fe,Ne){if(!(!Ce||!e.isStringLiteralLike(Ce))){var qe=_e(Se,Ce,be,Be,De,en,Ne);return qe&&O(te,Ce,qe,Se,Be,fe)}}Y.getStringLiteralCompletionDetails=ye;function O(te,Se,be,Ce,Be,De){switch(be.kind){case 0:{var en=e.find(be.paths,function(fe){return fe.name===te});return en&&ue.createCompletionDetails(te,D(en.extension),en.kind,[e.textPart(te)])}case 1:{var en=e.find(be.symbols,function(Ne){return Ne.name===te});return en&&ue.createCompletionDetailsForSymbol(en,Be,Ce,Se,De)}case 2:return e.find(be.types,function(fe){return fe.value===te})?ue.createCompletionDetails(te,"","type",[e.textPart(te)]):void 0;default:return e.Debug.assertNever(be)}}function A(te){var Se=!1,be=!0,Ce=te.map(function(Be){var De=Be.name,en=Be.kind,fe=Be.span,Ne=Be.extension;return{name:De,kind:en,kindModifiers:D(Ne),sortText:ue.SortText.LocationPriority,replacementSpan:fe}});return{isGlobalCompletion:Se,isMemberCompletion:!1,isNewIdentifierLocation:be,entries:Ce}}function D(te){switch(te){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(te)}}var de;(function(te){te[te.Paths=0]="Paths",te[te.Properties=1]="Properties",te[te.Types=2]="Types"})(de||(de={}));function _e(te,Se,be,Ce,Be,De,en){var fe=y(Se.parent);switch(fe.kind){case 194:{var Ne=y(fe.parent);switch(Ne.kind){case 176:{var qe=Ne,pe=e.findAncestor(fe,function(In){return In.parent===qe});return pe?{kind:2,types:L(Ce.getTypeArgumentConstraint(pe)),isNewIdentifier:!1}:void 0}case 192:var we=Ne,pn=we.indexType,Qe=we.objectType;return e.rangeContainsPosition(pn,be)?E(Ce.getTypeFromTypeNode(Qe)):void 0;case 198:return{kind:0,paths:ie(te,Se,Be,De,Ce,en)};case 185:{if(!e.isTypeReferenceNode(Ne.parent))return;var Re=V(Ne,fe),He=L(Ce.getTypeArgumentConstraint(Ne)).filter(function(In){return!e.contains(Re,In.value)});return{kind:2,types:He,isNewIdentifier:!1}}default:return}}case 291:return e.isObjectLiteralExpression(fe.parent)&&fe.name===Se?H(Ce,fe.parent):i();case 205:{var Ln=fe,Un=Ln.expression,fn=Ln.argumentExpression;return Se===e.skipParentheses(fn)?E(Ce.getTypeAtLocation(Un)):void 0}case 206:case 207:if(!Oe(Se)&&!e.isImportCall(fe)){var En=e.SignatureHelp.getArgumentInfoForCompletions(Se,be,te);return En?Z(En,Ce):i()}case 264:case 270:case 275:return{kind:0,paths:ie(te,Se,Be,De,Ce,en)};default:return i()}function i(){return{kind:2,types:L(e.getContextualTypeFromParent(Se,Ce)),isNewIdentifier:!1}}}function y(te){switch(te.kind){case 189:return e.walkUpParenthesizedTypes(te);case 210:return e.walkUpParenthesizedExpressions(te);default:return te}}function V(te,Se){return e.mapDefined(te.types,function(be){return be!==Se&&e.isLiteralTypeNode(be)&&e.isStringLiteral(be.literal)?be.literal.text:void 0})}function Z(te,Se){var be=!1,Ce=new e.Map,Be=[];Se.getResolvedSignature(te.invocation,Be,te.argumentCount);var De=e.flatMap(Be,function(en){if(!(!e.signatureHasRestParameter(en)&&te.argumentCount>en.parameters.length)){var fe=Se.getParameterType(en,te.argumentIndex);return be=be||!!(fe.flags&4),L(fe,Ce)}});return{kind:2,types:De,isNewIdentifier:be}}function E(te){return te&&{kind:1,symbols:e.filter(te.getApparentProperties(),function(Se){return!(Se.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(Se.valueDeclaration))}),hasIndexSignature:e.hasIndexSignature(te)}}function H(te,Se){var be=te.getContextualType(Se);if(be){var Ce=te.getContextualType(Se,4),Be=ue.getPropertiesForObjectExpression(be,Ce,Se,te);return{kind:1,symbols:Be,hasIndexSignature:e.hasIndexSignature(be)}}}function L(te,Se){return Se===void 0&&(Se=new e.Map),te?(te=e.skipConstraint(te),te.isUnion()?e.flatMap(te.types,function(be){return L(be,Se)}):te.isStringLiteral()&&!(te.flags&1024)&&e.addToSeen(Se,te.value)?[te]:e.emptyArray):e.emptyArray}function ee(te,Se,be){return{name:te,kind:Se,extension:be}}function k(te){return ee(te,"directory",void 0)}function b(te,Se,be){var Ce=me(te,Se),Be=te.length===0?void 0:e.createTextSpan(Se,te.length);return be.map(function(De){var en=De.name,fe=De.kind,Ne=De.extension;return Math.max(en.indexOf(e.directorySeparator),en.indexOf(e.altDirectorySeparator))!==-1?{name:en,kind:fe,extension:Ne,span:Be}:{name:en,kind:fe,extension:Ne,span:Ce}})}function ie(te,Se,be,Ce,Be,De){return b(Se.text,Se.getStart(te)+1,q(te,Se,be,Ce,Be,De))}function q(te,Se,be,Ce,Be,De){var en=e.normalizeSlashes(Se.text),fe=te.path,Ne=e.getDirectoryPath(fe);return z(en)||!be.baseUrl&&(e.isRootedDiskPath(en)||e.isUrl(en))?se(en,Ne,be,Ce,fe,De):G(en,Ne,be,Ce,Be)}function oe(te,Se){return Se===void 0&&(Se=0),{extensions:w(te),includeExtensionsOption:Se}}function se(te,Se,be,Ce,Be,De){var en=De.importModuleSpecifierEnding==="js"?2:0,fe=oe(be,en);return be.rootDirs?ne(be.rootDirs,te,Se,fe,be,Ce,Be):C(te,Se,fe,Ce,Be)}function w(te){var Se=e.getSupportedExtensions(te);return te.resolveJsonModule&&e.getEmitModuleResolutionKind(te)===e.ModuleResolutionKind.NodeJs?Se.concat(".json"):Se}function R(te,Se,be,Ce){te=te.map(function(De){return e.normalizePath(e.isRootedDiskPath(De)?De:e.combinePaths(Se,De))});var Be=e.firstDefined(te,function(De){return e.containsPath(De,be,Se,Ce)?be.substr(De.length):void 0});return e.deduplicate(Vr(Vr([],te.map(function(De){return e.combinePaths(De,Be)}),!0),[be],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function ne(te,Se,be,Ce,Be,De,en){var fe=Be.project||De.getCurrentDirectory(),Ne=!(De.useCaseSensitiveFileNames&&De.useCaseSensitiveFileNames()),qe=R(te,fe,be,Ne);return e.flatMap(qe,function(pe){return C(Se,pe,Ce,De,en)})}var U;(function(te){te[te.Exclude=0]="Exclude",te[te.Include=1]="Include",te[te.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"})(U||(U={}));function C(te,Se,be,Ce,Be,De){var en=be.extensions,fe=be.includeExtensionsOption;De===void 0&&(De=[]),te===void 0&&(te=""),te=e.normalizeSlashes(te),e.hasTrailingDirectorySeparator(te)||(te=e.getDirectoryPath(te)),te===""&&(te="."+e.directorySeparator),te=e.ensureTrailingDirectorySeparator(te);var Ne=e.resolvePath(Se,te),qe=e.hasTrailingDirectorySeparator(Ne)?Ne:e.getDirectoryPath(Ne),pe=!(Ce.useCaseSensitiveFileNames&&Ce.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(Ce,qe))return De;var we=e.tryReadDirectory(Ce,qe,en,void 0,["./*"]);if(we){for(var pn=new e.Map,Qe=0,Re=we;Qe<Re.length;Qe++){var He=Re[Qe];if(He=e.normalizePath(He),!(Be&&e.comparePaths(He,Be,Se,pe)===0)){var Ln=void 0,Un=e.moduleSpecifiers.tryGetJSExtensionForFile(He,Ce.getCompilationSettings());fe===0&&!e.fileExtensionIs(He,".json")?(Ln=e.removeFileExtension(e.getBaseFileName(He)),pn.set(Ln,e.tryGetExtensionFromPath(He))):fe===2&&Un?(Ln=e.changeExtension(e.getBaseFileName(He),Un),pn.set(Ln,Un)):(Ln=e.getBaseFileName(He),pn.set(Ln,e.tryGetExtensionFromPath(He)))}}pn.forEach(function(Ze,hn){De.push(ee(hn,"script",Ze))})}var fn=e.tryGetDirectories(Ce,qe);if(fn)for(var En=0,i=fn;En<i.length;En++){var In=i[En],X=e.getBaseFileName(e.normalizePath(In));X!=="@types"&&De.push(k(X))}var rn=e.findPackageJson(qe,Ce);if(rn){var $n=e.readJson(rn,Ce),Vn=$n.typesVersions;if(typeof Vn=="object"){var le=e.getPackageJsonTypesVersionsPaths(Vn),Pe=le&&le.paths,xe=Ne.slice(e.ensureTrailingDirectorySeparator(qe).length);Pe&&d(De,xe,qe,en,Pe,Ce)}}return De}function d(te,Se,be,Ce,Be,De){for(var en in Be)if(e.hasProperty(Be,en)){var fe=Be[en];if(fe)for(var Ne=function(He,Ln,Un){te.some(function(fn){return fn.name===He})||te.push(ee(He,Ln,Un))},qe=0,pe=p(en,fe,Se,be,Ce,De);qe<pe.length;qe++){var we=pe[qe],pn=we.name,Qe=we.kind,Re=we.extension;Ne(pn,Qe,Re)}}}function G(te,Se,be,Ce,Be){var De=be.baseUrl,en=be.paths,fe=[],Ne=oe(be);if(De){var qe=be.project||Ce.getCurrentDirectory(),pe=e.normalizePath(e.combinePaths(qe,De));C(te,pe,Ne,Ce,void 0,fe),en&&d(fe,te,pe,Ne.extensions,en,Ce)}for(var we=g(te),pn=0,Qe=N(te,we,Be);pn<Qe.length;pn++){var Re=Qe[pn];fe.push(ee(Re,"external module name",void 0))}if(x(Ce,be,Se,we,Ne,fe),e.getEmitModuleResolutionKind(be)===e.ModuleResolutionKind.NodeJs){var He=!1;if(we===void 0)for(var Ln=function(i){fe.some(function(In){return In.name===i})||(He=!0,fe.push(ee(i,"external module name",void 0)))},Un=0,fn=M(Ce,Se);Un<fn.length;Un++){var En=fn[Un];Ln(En)}He||e.forEachAncestorDirectory(Se,function(i){var In=e.combinePaths(i,"node_modules");e.tryDirectoryExists(Ce,In)&&C(te,In,Ne,Ce,void 0,fe)})}return fe}function g(te){return Ae(te)?e.hasTrailingDirectorySeparator(te)?te:e.getDirectoryPath(te):void 0}function p(te,Se,be,Ce,Be,De){if(!e.endsWith(te,"*"))return e.stringContains(te,"*")?e.emptyArray:Ne(te);var en=te.slice(0,te.length-1),fe=e.tryRemovePrefix(be,en);return fe===void 0?Ne(en):e.flatMap(Se,function(qe){return f(fe,Ce,qe,Be,De)});function Ne(qe){return e.startsWith(qe,be)?[k(qe)]:e.emptyArray}}function f(te,Se,be,Ce,Be){if(!Be.readDirectory)return;var De=e.tryParsePattern(be);if(De===void 0||e.isString(De))return;var en=e.resolvePath(De.prefix),fe=e.hasTrailingDirectorySeparator(De.prefix)?en:e.getDirectoryPath(en),Ne=e.hasTrailingDirectorySeparator(De.prefix)?"":e.getBaseFileName(en),qe=Ae(te),pe=qe?e.hasTrailingDirectorySeparator(te)?te:e.getDirectoryPath(te):void 0,we=qe?e.combinePaths(fe,Ne+pe):fe,pn=e.normalizePath(De.suffix),Qe=e.normalizePath(e.combinePaths(Se,we)),Re=qe?Qe:e.ensureTrailingDirectorySeparator(Qe)+Ne,He=pn?"**/*":"./*",Ln=e.mapDefined(e.tryReadDirectory(Be,Qe,Ce,void 0,[He]),function(En){var i=e.tryGetExtensionFromPath(En),In=fn(En);return In===void 0?void 0:ee(e.removeFileExtension(In),"script",i)}),Un=e.mapDefined(e.tryGetDirectories(Be,Qe).map(function(En){return e.combinePaths(Qe,En)}),function(En){var i=fn(En);return i===void 0?void 0:k(i)});return Vr(Vr([],Ln,!0),Un,!0);function fn(En){var i=T(e.normalizePath(En),Re,pn);return i===void 0?void 0:m(i)}}function T(te,Se,be){return e.startsWith(te,Se)&&e.endsWith(te,be)?te.slice(Se.length,te.length-be.length):void 0}function m(te){return te[0]===e.directorySeparator?te.slice(1):te}function N(te,Se,be){var Ce=be.getAmbientModules().map(function(en){return e.stripQuotes(en.name)}),Be=Ce.filter(function(en){return e.startsWith(en,te)});if(Se!==void 0){var De=e.ensureTrailingDirectorySeparator(Se);return Be.map(function(en){return e.removePrefix(en,De)})}return Be}function P(te,Se,be,Ce){var Be=e.getTokenAtPosition(te,Se),De=e.getLeadingCommentRanges(te.text,Be.pos),en=De&&e.find(De,function(Re){return Se>=Re.pos&&Se<=Re.end});if(en){var fe=te.text.slice(en.pos,Se),Ne=K.exec(fe);if(Ne){var qe=Ne[1],pe=Ne[2],we=Ne[3],pn=e.getDirectoryPath(te.path),Qe=pe==="path"?C(we,pn,oe(be,1),Ce,te.path):pe==="types"?x(Ce,be,pn,g(we),oe(be)):e.Debug.fail();return b(we,en.pos+qe.length,Qe)}}}function x(te,Se,be,Ce,Be,De){De===void 0&&(De=[]);for(var en=new e.Map,fe=e.tryAndIgnoreErrors(function(){return e.getEffectiveTypeRoots(Se,te)})||e.emptyArray,Ne=0,qe=fe;Ne<qe.length;Ne++){var pe=qe[Ne];He(pe)}for(var we=0,pn=e.findPackageJsons(be,te);we<pn.length;we++){var Qe=pn[we],Re=e.combinePaths(e.getDirectoryPath(Qe),"node_modules/@types");He(Re)}return De;function He(Ln){if(e.tryDirectoryExists(te,Ln))for(var Un=0,fn=e.tryGetDirectories(te,Ln);Un<fn.length;Un++){var En=fn[Un],i=e.unmangleScopedPackageName(En);if(!(Se.types&&!e.contains(Se.types,i)))if(Ce===void 0)en.has(i)||(De.push(ee(i,"external module name",void 0)),en.set(i,!0));else{var In=e.combinePaths(Ln,En),X=e.tryRemoveDirectoryPrefix(Ce,i,e.hostGetCanonicalFileName(te));X!==void 0&&C(X,In,Be,te,void 0,De)}}}}function M(te,Se){if(!te.readFile||!te.fileExists)return e.emptyArray;for(var be=[],Ce=0,Be=e.findPackageJsons(Se,te);Ce<Be.length;Ce++)for(var De=Be[Ce],en=e.readJson(De,te),fe=0,Ne=I;fe<Ne.length;fe++){var qe=Ne[fe],pe=en[qe];if(pe)for(var we in pe)pe.hasOwnProperty(we)&&!e.startsWith(we,"@types/")&&be.push(we)}return be}function me(te,Se){var be=Math.max(te.lastIndexOf(e.directorySeparator),te.lastIndexOf(e.altDirectorySeparator)),Ce=be!==-1?be+1:0,Be=te.length-Ce;return Be===0||e.isIdentifierText(te.substr(Ce,Be),99)?void 0:e.createTextSpan(Se+Ce,Be)}function z(te){if(te&&te.length>=2&&te.charCodeAt(0)===46){var Se=te.length>=3&&te.charCodeAt(1)===46?2:1,be=te.charCodeAt(Se);return be===47||be===92}return!1}var K=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,I=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function Ae(te){return e.stringContains(te,e.directorySeparator)}function Oe(te){return e.isCallExpression(te.parent)&&e.firstOrUndefined(te.parent.arguments)===te&&e.isIdentifier(te.parent.expression)&&te.parent.expression.escapedText==="require"}})($=ue.StringCompletions||(ue.StringCompletions={}))})(o=e.Completions||(e.Completions={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){ue.moduleSpecifierResolutionLimit=100,ue.moduleSpecifierResolutionCacheAttemptLimit=1e3;var $;(function(ze){ze.LocalDeclarationPriority="10",ze.LocationPriority="11",ze.OptionalMember="12",ze.MemberDeclaredBySpreadAssignment="13",ze.SuggestedClassMembers="14",ze.GlobalsOrKeywords="15",ze.AutoImportSuggestions="16",ze.JavascriptIdentifiers="17",ze.DeprecatedLocalDeclarationPriority="18",ze.DeprecatedLocationPriority="19",ze.DeprecatedOptionalMember="20",ze.DeprecatedMemberDeclaredBySpreadAssignment="21",ze.DeprecatedSuggestedClassMembers="22",ze.DeprecatedGlobalsOrKeywords="23",ze.DeprecatedAutoImportSuggestions="24"})($=ue.SortText||(ue.SortText={}));var Y;(function(ze){ze[ze.LocalDeclarationPriority=10]="LocalDeclarationPriority",ze[ze.LocationPriority=11]="LocationPriority",ze[ze.OptionalMember=12]="OptionalMember",ze[ze.MemberDeclaredBySpreadAssignment=13]="MemberDeclaredBySpreadAssignment",ze[ze.SuggestedClassMembers=14]="SuggestedClassMembers",ze[ze.GlobalsOrKeywords=15]="GlobalsOrKeywords",ze[ze.AutoImportSuggestions=16]="AutoImportSuggestions",ze[ze._JavaScriptIdentifiers=17]="_JavaScriptIdentifiers",ze[ze._DeprecatedStart=18]="_DeprecatedStart",ze[ze._First=10]="_First",ze[ze.DeprecatedOffset=8]="DeprecatedOffset"})(Y||(Y={}));var W;(function(ze){ze.ThisProperty="ThisProperty/"})(W=ue.CompletionSource||(ue.CompletionSource={}));var re;(function(ze){ze[ze.ThisType=1]="ThisType",ze[ze.SymbolMember=2]="SymbolMember",ze[ze.Export=4]="Export",ze[ze.Promise=8]="Promise",ze[ze.Nullable=16]="Nullable",ze[ze.ResolvedExport=32]="ResolvedExport",ze[ze.SymbolMemberNoExport=2]="SymbolMemberNoExport",ze[ze.SymbolMemberExport=6]="SymbolMemberExport"})(re||(re={}));function ye(ze){return!!(ze.kind&1)}function O(ze){return!!(ze.kind&2)}function A(ze){return!!(ze&&ze.kind&4)}function D(ze){return!!(ze&&ze.kind===32)}function de(ze){return A(ze)||D(ze)}function _e(ze){return(A(ze)||D(ze))&&!!ze.isFromPackageJson}function y(ze){return!!(ze.kind&8)}function V(ze){return!!(ze.kind&16)}var Z;(function(ze){ze[ze.None=0]="None",ze[ze.All=1]="All",ze[ze.ClassElementKeywords=2]="ClassElementKeywords",ze[ze.InterfaceElementKeywords=3]="InterfaceElementKeywords",ze[ze.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",ze[ze.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",ze[ze.TypeAssertionKeywords=6]="TypeAssertionKeywords",ze[ze.TypeKeywords=7]="TypeKeywords",ze[ze.Last=7]="Last"})(Z||(Z={}));var E;(function(ze){ze[ze.Continue=0]="Continue",ze[ze.Success=1]="Success",ze[ze.Fail=2]="Fail"})(E||(E={}));function H(ze,Tn,On,ur,hr,wr,Qr){var Ke,jn,Zn,Me=e.timestamp(),Mn=!1,ar=0,Xn=0,yr=0,cr=0,Fe=Qr({tryResolve:J,resolutionLimitExceeded:function(){return Mn}}),Bn=cr?" ("+(yr/cr*100).toFixed(1)+"% hit rate)":"";return(Ke=Tn.log)===null||Ke===void 0||Ke.call(Tn,ze+": resolved "+Xn+" module specifiers, plus "+ar+" ambient and "+yr+" from cache"+Bn),(jn=Tn.log)===null||jn===void 0||jn.call(Tn,ze+": response is "+(Mn?"incomplete":"complete")),(Zn=Tn.log)===null||Zn===void 0||Zn.call(Tn,ze+": "+(e.timestamp()-Me)),Fe;function J(Cn,Gn){if(Gn){var cn=e.codefix.getModuleSpecifierForBestExportInfo(Cn,ur,On,Tn,hr);return cn&&ar++,cn}var Rn=wr||hr.allowIncompleteCompletions&&Xn<ue.moduleSpecifierResolutionLimit,Ye=!Rn&&hr.allowIncompleteCompletions&&cr<ue.moduleSpecifierResolutionCacheAttemptLimit,xn=Rn||Ye?e.codefix.getModuleSpecifierForBestExportInfo(Cn,ur,On,Tn,hr,Ye):void 0;return(!Rn&&!Ye||Ye&&!xn)&&(Mn=!0),Xn+=(xn==null?void 0:xn.computedWithoutCacheCount)||0,yr+=Cn.length-Xn,Ye&&cr++,xn}}function L(ze,Tn,On,ur,hr,wr,Qr,Ke,jn){var Zn,Me=De(hr,ur).previousToken;if(!(Qr&&!e.isInString(ur,hr,Me)&&!$n(ur,Qr,Me,hr))){if(Qr===" ")return wr.includeCompletionsForImportStatements&&wr.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var Mn=Tn.getTypeChecker(),ar=Tn.getCompilerOptions(),Xn=wr.allowIncompleteCompletions?(Zn=ze.getIncompleteCompletionsCache)===null||Zn===void 0?void 0:Zn.call(ze):void 0;if(Xn&&Ke===3&&Me&&e.isIdentifier(Me)){var yr=ee(Xn,ur,Me,Tn,ze,wr,jn);if(yr)return yr}else Xn==null||Xn.clear();var cr=ue.StringCompletions.getStringLiteralCompletions(ur,hr,Me,Mn,ar,ze,On,wr);if(cr)return cr;if(Me&&e.isBreakOrContinueStatement(Me.parent)&&(Me.kind===81||Me.kind===86||Me.kind===79))return m(Me.parent);var Fe=Be(Tn,On,ur,oe(ur,ar),hr,wr,void 0,ze,jn);if(Fe)switch(Fe.kind){case 0:var Bn=q(ur,Mn,ar,On,Fe,wr);return Bn!=null&&Bn.isIncomplete&&(Xn==null||Xn.set(Bn)),Bn;case 1:return k(e.JsDoc.getJSDocTagNameCompletions());case 2:return k(e.JsDoc.getJSDocTagCompletions());case 3:return k(e.JsDoc.getJSDocParameterNameCompletions(Fe.tag));case 4:return b(Fe.keywords);default:return e.Debug.assertNever(Fe)}}}ue.getCompletionsAtPosition=L;function ee(ze,Tn,On,ur,hr,wr,Qr){var Ke,jn=ze.get();if(jn){var Zn=On.text.toLowerCase(),Me=e.getExportInfoMap(Tn,hr,ur,Qr),Mn=ur.getTypeChecker(),ar=(Ke=hr.getPackageJsonAutoImportProvider)===null||Ke===void 0?void 0:Ke.call(hr),Xn=ar==null?void 0:ar.getTypeChecker(),yr=H("continuePreviousIncompleteResponse",hr,ur,Tn,wr,!1,function(cr){var Fe=e.mapDefined(jn.entries,function(Bn){if(!Bn.hasAction||!Bn.source||!Bn.data||Bn.data.moduleSpecifier)return Bn;if(gn(Bn.name,Zn)){var J=e.Debug.checkDefined(en(Bn.name,Bn.data,ur,hr)),Cn=J.symbol,Gn=J.origin,cn=Me.get(Tn.path,Bn.name,Cn,Gn.moduleSymbol.name,Gn.isFromPackageJson?Xn:Mn),Rn=cn&&cr.tryResolve(cn,!e.isExternalModuleNameRelative(e.stripQuotes(Gn.moduleSymbol.name)));if(!Rn)return Bn;var Ye=Mt(Mt({},Gn),{kind:32,moduleSpecifier:Rn.moduleSpecifier});return Bn.data=d(Ye),Bn.source=f(Ye),Bn.sourceDisplay=[e.textPart(Ye.moduleSpecifier)],Bn}});return cr.resolutionLimitExceeded()||(jn.isIncomplete=void 0),Fe});return jn.entries=yr,jn}}function k(ze){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:ze}}function b(ze){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:ze.map(function(Tn){return{name:e.tokenToString(Tn),kind:"keyword",kindModifiers:"",sortText:$.GlobalsOrKeywords}})}}function ie(ze){return(ze==null?void 0:ze.kind)===79?e.createTextSpanFromNode(ze):void 0}function q(ze,Tn,On,ur,hr,wr){var Qr=hr.symbols,Ke=hr.completionKind,jn=hr.isInSnippetScope,Zn=hr.isNewIdentifierLocation,Me=hr.location,Mn=hr.propertyAccessToConvert,ar=hr.keywordFilters,Xn=hr.literals,yr=hr.symbolToOriginInfoMap,cr=hr.recommendedCompletion,Fe=hr.isJsxInitializer,Bn=hr.isTypeOnlyLocation,J=hr.isJsxIdentifierExpected,Cn=hr.importCompletionNode,Gn=hr.insideJsDocTagTypeExpression,cn=hr.symbolToSortTextIdMap,Rn=hr.hasUnresolvedAutoImports;if(e.getLanguageVariant(ze.scriptKind)===1){var Ye=w(Me,ze);if(Ye)return Ye}var xn=[];if(oe(ze,On)){var an=T(Qr,xn,void 0,Me,ze,Tn,On.target,ur,Ke,wr,On,Bn,Mn,J,Fe,Cn,cr,yr,cn);R(ze,Me.pos,an,On.target,xn)}else{if(!Zn&&(!Qr||Qr.length===0)&&ar===0)return;T(Qr,xn,void 0,Me,ze,Tn,On.target,ur,Ke,wr,On,Bn,Mn,J,Fe,Cn,cr,yr,cn)}if(ar!==0)for(var zn=new e.Set(xn.map(function(Kr){return Kr.name})),ir=0,gr=pe(ar,!Gn&&e.isSourceFileJS(ze));ir<gr.length;ir++){var Dr=gr[ir];zn.has(Dr.name)||xn.push(Dr)}for(var qr=0,ft=Xn;qr<ft.length;qr++){var xt=ft[qr];xn.push(U(ze,wr,xt))}return{isGlobalCompletion:jn,isIncomplete:wr.allowIncompleteCompletions&&Rn?!0:void 0,isMemberCompletion:se(Ke),isNewIdentifierLocation:Zn,optionalReplacementSpan:ie(Me),entries:xn}}function oe(ze,Tn){return e.isSourceFileJS(ze)&&!e.isCheckJsEnabledForFile(ze,Tn)}function se(ze){switch(ze){case 0:case 3:case 2:return!0;default:return!1}}function w(ze,Tn){var On=e.findAncestor(ze,function(Zn){switch(Zn.kind){case 279:return!0;case 43:case 31:case 79:case 204:return!1;default:return"quit"}});if(On){var ur=!!e.findChildOfKind(On,31,Tn),hr=On.parent.openingElement.tagName,wr=hr.getText(Tn),Qr=wr+(ur?"":">"),Ke=e.createTextSpanFromNode(On.tagName),jn={name:Qr,kind:"class",kindModifiers:void 0,sortText:$.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:Ke,entries:[jn]}}}function R(ze,Tn,On,ur,hr){e.getNameTable(ze).forEach(function(wr,Qr){if(wr!==Tn){var Ke=e.unescapeLeadingUnderscores(Qr);!On.has(Ke)&&e.isIdentifierText(Ke,ur)&&(On.add(Ke),hr.push({name:Ke,kind:"warning",kindModifiers:"",sortText:$.JavascriptIdentifiers,isFromUncheckedFile:!0}))}})}function ne(ze,Tn,On){return typeof On=="object"?e.pseudoBigIntToString(On)+"n":e.isString(On)?e.quote(ze,Tn,On):JSON.stringify(On)}function U(ze,Tn,On){return{name:ne(ze,Tn,On),kind:"string",kindModifiers:"",sortText:$.LocationPriority}}function C(ze,Tn,On,ur,hr,wr,Qr,Ke,jn,Zn,Me,Mn,ar,Xn,yr,cr){var Fe,Bn,J=e.getReplacementSpanForContextToken(On),Cn,Gn,cn,Rn,Ye=jn&&V(jn),xn=jn&&O(jn)||Ke;if(jn&&ye(jn))Bn=Ke?"this"+(Ye?"?.":"")+"["+g(hr,cr,Qr)+"]":"this"+(Ye?"?.":".")+Qr;else if((xn||Ye)&&Me){Bn=xn?Ke?"["+g(hr,cr,Qr)+"]":"["+Qr+"]":Qr,(Ye||Me.questionDotToken)&&(Bn="?."+Bn);var an=e.findChildOfKind(Me,24,hr)||e.findChildOfKind(Me,28,hr);if(!an)return;var zn=e.startsWith(Qr,Me.name.text)?Me.name.end:an.end;J=e.createTextSpanFromBounds(an.getStart(hr),zn)}if(Mn&&(Bn===void 0&&(Bn=Qr),Bn="{"+Bn+"}",typeof Mn!="boolean"&&(J=e.createTextSpanFromNode(Mn,hr))),jn&&y(jn)&&Me){Bn===void 0&&(Bn=Qr);var ir=e.findPrecedingToken(Me.pos,hr),gr="";ir&&e.positionIsASICandidate(ir.end,ir.parent,hr)&&(gr=";"),gr+="(await "+Me.expression.getText()+")",Bn=Ke?""+gr+Bn:""+gr+(Ye?"?.":".")+Bn,J=e.createTextSpanFromBounds(Me.getStart(hr),Me.end)}if(D(jn)&&(cn=[e.textPart(jn.moduleSpecifier)],ar&&(Fe=G(Qr,ar,jn,Xn,yr,cr),Bn=Fe.insertText,J=Fe.replacementSpan,Gn=cr.includeCompletionsWithSnippetText?!0:void 0)),!(Bn!==void 0&&!cr.includeCompletionsWithInsertText))return(A(jn)||D(jn))&&(Cn=d(jn),Rn=!ar),{name:Qr,kind:e.SymbolDisplay.getSymbolKind(wr,ze,ur),kindModifiers:e.SymbolDisplay.getSymbolModifiers(wr,ze),sortText:Tn,source:f(jn),hasAction:Rn?!0:void 0,isRecommended:p(ze,Zn,wr)||void 0,insertText:Bn,replacementSpan:J,sourceDisplay:cn,isSnippet:Gn,isPackageJsonImport:_e(jn)||void 0,isImportStatementCompletion:!!ar||void 0,data:Cn}}function d(ze){return{exportName:ze.exportName,fileName:ze.fileName,ambientModuleName:ze.fileName?void 0:e.stripQuotes(ze.moduleSymbol.name),isPackageJsonImport:ze.isFromPackageJson?!0:void 0,moduleSpecifier:D(ze)?ze.moduleSpecifier:void 0}}function G(ze,Tn,On,ur,hr,wr){var Qr=Tn.getSourceFile(),Ke=e.createTextSpanFromNode(Tn,Qr),jn=e.quote(Qr,wr,On.moduleSpecifier),Zn=On.isDefaultExport?1:On.exportName==="export="?2:0,Me=wr.includeCompletionsWithSnippetText?"$1":"",Mn=e.codefix.getImportKind(Qr,Zn,hr,!0),ar=ur?";":"";switch(Mn){case 3:return{replacementSpan:Ke,insertText:"import "+ze+Me+" = require("+jn+")"+ar};case 1:return{replacementSpan:Ke,insertText:"import "+ze+Me+" from "+jn+ar};case 2:return{replacementSpan:Ke,insertText:"import * as "+ze+" from "+jn+ar};case 0:return{replacementSpan:Ke,insertText:"import { "+ze+Me+" } from "+jn+ar}}}function g(ze,Tn,On){return/^\d+$/.test(On)?On:e.quote(ze,Tn,On)}function p(ze,Tn,On){return ze===Tn||!!(ze.flags&1048576)&&On.getExportSymbolOfSymbol(ze)===Tn}function f(ze){if(A(ze))return e.stripQuotes(ze.moduleSymbol.name);if(D(ze))return ze.moduleSpecifier;if((ze==null?void 0:ze.kind)===1)return W.ThisProperty}function T(ze,Tn,On,ur,hr,wr,Qr,Ke,jn,Zn,Me,Mn,ar,Xn,yr,cr,Fe,Bn,J){for(var Cn,Gn=e.timestamp(),cn=Le(ur),Rn=e.probablyUsesSemicolons(hr),Ye=new e.Map,xn=0;xn<ze.length;xn++){var an=ze[xn],zn=Bn==null?void 0:Bn[xn],ir=fe(an,Qr,zn,jn,!!Xn);if(!(!ir||Ye.get(ir.name)||jn===1&&J&&!dt(an,J))){var gr=ir.name,Dr=ir.needsConvertPropertyAccess,qr=(Cn=J==null?void 0:J[e.getSymbolId(an)])!==null&&Cn!==void 0?Cn:11,ft=(Ue(an,wr)?8+qr:qr).toString(),xt=C(an,ft,On,ur,hr,wr,gr,Dr,zn,Fe,ar,yr,cr,Rn,Me,Zn);if(xt){var Kr=!zn&&!(an.parent===void 0&&!e.some(an.declarations,function(Ur){return Ur.getSourceFile()===ur.getSourceFile()}));Ye.set(gr,Kr),Tn.push(xt)}}}return Ke("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-Gn)),{has:function(Ur){return Ye.has(Ur)},add:function(Ur){return Ye.set(Ur,!0)}};function dt(Ur,qt){if(!e.isSourceFile(ur)){if(e.isExportAssignment(ur.parent))return!0;if(cn&&Ur.valueDeclaration===cn)return!1;var Cr=e.skipAlias(Ur,wr);if(hr.externalModuleIndicator&&!Me.allowUmdGlobalAccess&&qt[e.getSymbolId(Ur)]===15&&(qt[e.getSymbolId(Cr)]===16||qt[e.getSymbolId(Cr)]===11))return!1;if(Ur=Cr,e.isInRightSideOfInternalImportEqualsDeclaration(ur))return!!(Ur.flags&1920);if(Mn)return An(Ur,wr)}return!!(e.getCombinedLocalAndExportSymbolFlags(Ur)&111551)}}ue.getCompletionEntriesFromSymbols=T;function m(ze){var Tn=N(ze);if(Tn.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:Tn}}function N(ze){for(var Tn=[],On=new e.Map,ur=ze;ur&&!e.isFunctionLike(ur);){if(e.isLabeledStatement(ur)){var hr=ur.label.text;On.has(hr)||(On.set(hr,!0),Tn.push({name:hr,kindModifiers:"",kind:"label",sortText:$.LocationPriority}))}ur=ur.parent}return Tn}function P(ze,Tn,On,ur,hr,wr,Qr){if(hr.data){var Ke=en(hr.name,hr.data,ze,wr);if(Ke)return{type:"symbol",symbol:Ke.symbol,location:e.getTouchingPropertyName(On,ur),previousToken:e.findPrecedingToken(ur,On,void 0),isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:Ke.origin}}var jn=ze.getCompilerOptions(),Zn=Be(ze,Tn,On,oe(On,jn),ur,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},hr,wr);if(!Zn)return{type:"none"};if(Zn.kind!==0)return{type:"request",request:Zn};var Me=Zn.symbols,Mn=Zn.literals,ar=Zn.location,Xn=Zn.completionKind,yr=Zn.symbolToOriginInfoMap,cr=Zn.previousToken,Fe=Zn.isJsxInitializer,Bn=Zn.isTypeOnlyLocation,J=e.find(Mn,function(Cn){return ne(On,Qr,Cn)===hr.name});return J!==void 0?{type:"literal",literal:J}:e.firstDefined(Me,function(Cn,Gn){var cn=yr[Gn],Rn=fe(Cn,jn.target,cn,Xn,Zn.isJsxIdentifierExpected);return Rn&&Rn.name===hr.name&&f(cn)===hr.source?{type:"symbol",symbol:Cn,location:ar,origin:cn,previousToken:cr,isJsxInitializer:Fe,isTypeOnlyLocation:Bn}:void 0})||{type:"none"}}function x(ze,Tn,On,ur,hr,wr,Qr,Ke,jn){var Zn=ze.getTypeChecker(),Me=ze.getCompilerOptions(),Mn=hr.name,ar=e.findPrecedingToken(ur,On);if(e.isInString(On,ur,ar))return ue.StringCompletions.getStringLiteralCompletionDetails(Mn,On,ur,ar,Zn,Me,wr,jn,Ke);var Xn=P(ze,Tn,On,ur,hr,wr,Ke);switch(Xn.type){case"request":{var yr=Xn.request;switch(yr.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(Mn);case 2:return e.JsDoc.getJSDocTagCompletionDetails(Mn);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(Mn);case 4:return yr.keywords.indexOf(e.stringToToken(Mn))>-1?M(Mn,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(yr)}}case"symbol":{var cr=Xn.symbol,Fe=Xn.location,Bn=Xn.origin,J=Xn.previousToken,Cn=K(Bn,cr,ze,wr,Me,On,ur,J,Qr,Ke,hr.data),Gn=Cn.codeActions,cn=Cn.sourceDisplay;return me(cr,Zn,On,Fe,jn,Gn,cn)}case"literal":{var Rn=Xn.literal;return M(ne(On,Ke,Rn),"string",typeof Rn=="string"?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral)}case"none":return qe().some(function(Ye){return Ye.name===Mn})?M(Mn,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(Xn)}}ue.getCompletionEntryDetails=x;function M(ze,Tn,On){return z(ze,"",Tn,[e.displayPart(ze,On)])}function me(ze,Tn,On,ur,hr,wr,Qr){var Ke=Tn.runWithCancellationToken(hr,function(ar){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(ar,ze,On,ur,ur,7)}),jn=Ke.displayParts,Zn=Ke.documentation,Me=Ke.symbolKind,Mn=Ke.tags;return z(ze.name,e.SymbolDisplay.getSymbolModifiers(Tn,ze),Me,jn,Zn,Mn,wr,Qr)}ue.createCompletionDetailsForSymbol=me;function z(ze,Tn,On,ur,hr,wr,Qr,Ke){return{name:ze,kindModifiers:Tn,kind:On,displayParts:ur,documentation:hr,tags:wr,codeActions:Qr,source:Ke,sourceDisplay:Ke}}ue.createCompletionDetails=z;function K(ze,Tn,On,ur,hr,wr,Qr,Ke,jn,Zn,Me){if(Me!=null&&Me.moduleSpecifier){var Mn=De(Qr,wr),ar=Mn.contextToken,Xn=Mn.previousToken;if(Xn&&Ze(ar||Xn))return{codeActions:void 0,sourceDisplay:[e.textPart(Me.moduleSpecifier)]}}if(!ze||!(A(ze)||D(ze)))return{codeActions:void 0,sourceDisplay:void 0};var yr=ze.isFromPackageJson?ur.getPackageJsonAutoImportProvider().getTypeChecker():On.getTypeChecker(),cr=ze.moduleSymbol,Fe=yr.getMergedSymbol(e.skipAlias(Tn.exportSymbol||Tn,yr)),Bn=e.codefix.getImportCompletionAction(Fe,cr,wr,e.getNameForExportedSymbol(Tn,hr.target),ur,On,jn,Ke&&e.isIdentifier(Ke)?Ke.getStart(wr):Qr,Zn),J=Bn.moduleSpecifier,Cn=Bn.codeAction;return e.Debug.assert(!(Me!=null&&Me.moduleSpecifier)||J===Me.moduleSpecifier),{sourceDisplay:[e.textPart(J)],codeActions:[Cn]}}function I(ze,Tn,On,ur,hr,wr,Qr){var Ke=P(ze,Tn,On,ur,hr,wr,Qr);return Ke.type==="symbol"?Ke.symbol:void 0}ue.getCompletionEntrySymbol=I;var Ae;(function(ze){ze[ze.Data=0]="Data",ze[ze.JsDocTagName=1]="JsDocTagName",ze[ze.JsDocTag=2]="JsDocTag",ze[ze.JsDocParameterName=3]="JsDocParameterName",ze[ze.Keywords=4]="Keywords"})(Ae||(Ae={}));var Oe;(function(ze){ze[ze.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",ze[ze.Global=1]="Global",ze[ze.PropertyAccess=2]="PropertyAccess",ze[ze.MemberLike=3]="MemberLike",ze[ze.String=4]="String",ze[ze.None=5]="None"})(Oe=ue.CompletionKind||(ue.CompletionKind={}));function te(ze,Tn,On){return e.firstDefined(Tn&&(Tn.isUnion()?Tn.types:[Tn]),function(ur){var hr=ur&&ur.symbol;return hr&&hr.flags&424&&!e.isAbstractConstructorSymbol(hr)?be(hr,ze,On):void 0})}function Se(ze,Tn,On,ur){var hr=ze.parent;switch(ze.kind){case 79:return e.getContextualTypeFromParent(ze,ur);case 63:switch(hr.kind){case 252:return ur.getContextualType(hr.initializer);case 219:return ur.getTypeAtLocation(hr.left);case 283:return ur.getContextualTypeForJsxAttribute(hr);default:return}case 103:return ur.getContextualType(hr);case 82:return e.getSwitchedType(e.cast(hr,e.isCaseClause),ur);case 18:return e.isJsxExpression(hr)&&hr.parent.kind!==276?ur.getContextualTypeForJsxAttribute(hr.parent):void 0;default:var wr=e.SignatureHelp.getArgumentInfoForCompletions(ze,Tn,On);return wr?ur.getContextualTypeForArgumentAtIndex(wr.invocation,wr.argumentIndex+(ze.kind===27?1:0)):e.isEqualityOperatorKind(ze.kind)&&e.isBinaryExpression(hr)&&e.isEqualityOperatorKind(hr.operatorToken.kind)?ur.getTypeAtLocation(hr.left):ur.getContextualType(ze)}}function be(ze,Tn,On){var ur=On.getAccessibleSymbolChain(ze,Tn,67108863,!1);return ur?e.first(ur):ze.parent&&(Ce(ze.parent)?ze:be(ze.parent,Tn,On))}function Ce(ze){var Tn;return!!(!((Tn=ze.declarations)===null||Tn===void 0)&&Tn.some(function(On){return On.kind===300}))}function Be(ze,Tn,On,ur,hr,wr,Qr,Ke,jn){var Zn=ze.getTypeChecker(),Me=e.timestamp(),Mn=e.getTokenAtPosition(On,hr);Tn("getCompletionData: Get current token: "+(e.timestamp()-Me)),Me=e.timestamp();var ar=e.isInComment(On,hr,Mn);Tn("getCompletionData: Is inside comment: "+(e.timestamp()-Me));var Xn=!1,yr=!1;if(ar){if(e.hasDocComment(On,hr)){if(On.text.charCodeAt(hr-1)===64)return{kind:1};var cr=e.getLineStartPositionForPosition(hr,On);if(!/[^\*|\s(/)]/.test(On.text.substring(cr,hr)))return{kind:2}}var Fe=Un(Mn,hr);if(Fe){if(Fe.tagName.pos<=hr&&hr<=Fe.tagName.end)return{kind:1};if(Rr(Fe)&&Fe.typeExpression&&Fe.typeExpression.kind===304&&(Mn=e.getTokenAtPosition(On,hr),(!Mn||!e.isDeclarationName(Mn)&&(Mn.parent.kind!==342||Mn.parent.name!==Mn))&&(Xn=dn(Fe.typeExpression))),!Xn&&e.isJSDocParameterTag(Fe)&&(e.nodeIsMissing(Fe.name)||Fe.name.pos<=hr&&hr<=Fe.name.end))return{kind:3,tag:Fe}}if(!Xn){Tn("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}Me=e.timestamp();var Bn=De(hr,On),J=Bn.previousToken,Cn=Bn.contextToken;Tn("getCompletionData: Get previous token: "+(e.timestamp()-Me));var Gn=Mn,cn,Rn=!1,Ye=!1,xn=!1,an=!1,zn=!1,ir=!1,gr,Dr=e.getTouchingPropertyName(On,hr);if(Cn){var qr=Ze(Cn);if(qr===154)return{kind:4,keywords:[154]};if(qr&&wr.includeCompletionsForImportStatements&&wr.includeCompletionsWithInsertText&&(gr=qr),!gr&&wi(Cn)){Tn("Returning an empty list because completion was requested in an invalid position.");return}var ft=Cn.parent;if(Cn.kind===24||Cn.kind===28)switch(Rn=Cn.kind===24,Ye=Cn.kind===28,ft.kind){case 204:cn=ft,Gn=cn.expression;var xt=e.getLeftmostAccessExpression(cn);if(e.nodeIsMissing(xt)||(e.isCallExpression(Gn)||e.isFunctionLike(Gn))&&Gn.end===Cn.pos&&Gn.getChildCount(On)&&e.last(Gn.getChildren(On)).kind!==21)return;break;case 159:Gn=ft.left;break;case 259:Gn=ft.name;break;case 198:Gn=ft;break;case 229:Gn=ft.getFirstToken(On),e.Debug.assert(Gn.kind===100||Gn.kind===103);break;default:return}else if(!gr&&On.languageVariant===1){if(ft&&ft.kind===204&&(Cn=ft,ft=ft.parent),Mn.parent===Dr)switch(Mn.kind){case 31:(Mn.parent.kind===276||Mn.parent.kind===278)&&(Dr=Mn);break;case 43:Mn.parent.kind===277&&(Dr=Mn);break}switch(ft.kind){case 279:Cn.kind===43&&(an=!0,Dr=Cn);break;case 219:if(!Vn(ft))break;case 277:case 276:case 278:ir=!0,Cn.kind===29&&(xn=!0,Dr=Cn);break;case 286:case 285:J.kind===19&&Mn.kind===31&&(ir=!0);break;case 283:if(ft.initializer===J&&J.end<hr){ir=!0;break}switch(J.kind){case 63:zn=!0;break;case 79:ir=!0,ft!==J.parent&&!ft.initializer&&e.findChildOfKind(ft,63,On)&&(zn=J)}break}}}var Kr=e.timestamp(),dt=5,Ur=!1,qt=!1,Cr=!1,Jt=0,Ot=[],ri=[],Ya=[],eo=new e.Map,za=Yi(),ua=e.memoizeOne(function(j){return e.createModuleSpecifierResolutionHost(j?Ke.getPackageJsonAutoImportProvider():ze,Ke)});if(Rn||Ye)Lr();else if(xn)Ot=Zn.getJsxIntrinsicTagNamesAt(Dr),e.Debug.assertEachIsDefined(Ot,"getJsxIntrinsicTagNames() should all be defined"),or(),dt=1,Jt=0;else if(an){var Ar=Cn.parent.parent.openingElement.tagName,at=Zn.getSymbolAtLocation(Ar);at&&(Ot=[at]),dt=1,Jt=0}else if(!or())return;Tn("getCompletionData: Semantic work: "+(e.timestamp()-Kr));var Hr=J&&Se(J,hr,On,Zn),Wt=e.mapDefined(Hr&&(Hr.isUnion()?Hr.types:[Hr]),function(j){return j.isLiteral()?j.value:void 0}),Zt=J&&Hr&&te(J,Hr,Zn);return{kind:0,symbols:Ot,completionKind:dt,isInSnippetScope:yr,propertyAccessToConvert:cn,isNewIdentifierLocation:Ur,location:Dr,keywordFilters:Jt,literals:Wt,symbolToOriginInfoMap:ri,recommendedCompletion:Zt,previousToken:J,isJsxInitializer:zn,insideJsDocTagTypeExpression:Xn,symbolToSortTextIdMap:Ya,isTypeOnlyLocation:za,isJsxIdentifierExpected:ir,importCompletionNode:gr,hasUnresolvedAutoImports:Cr};function Rr(j){switch(j.kind){case 335:case 342:case 336:case 338:case 340:return!0;default:return!1}}function Lr(){dt=2;var j=e.isLiteralImportTypeNode(Gn),Ie=Xn||j&&!Gn.isTypeOf||e.isPartOfTypeNode(Gn.parent)||e.isPossiblyTypeArgumentPosition(Cn,On,Zn),We=e.isInRightSideOfInternalImportEqualsDeclaration(Gn);if(e.isEntityName(Gn)||j||e.isPropertyAccessExpression(Gn)){var sn=e.isModuleDeclaration(Gn.parent);sn&&(Ur=!0);var Hn=Zn.getSymbolAtLocation(Gn);if(Hn&&(Hn=e.skipAlias(Hn,Zn),Hn.flags&1920)){var vr=Zn.getExportsOfModule(Hn);e.Debug.assertEachIsDefined(vr,"getExportsOfModule() should all be defined");for(var Sr=function(Ao){return Zn.isValidPropertyAccess(j?Gn:Gn.parent,Ao.name)},ot=function(Ao){return An(Ao,Zn)},Et=sn?function(Ao){var oo;return!!(Ao.flags&1920)&&!(!((oo=Ao.declarations)===null||oo===void 0)&&oo.every(function(Zo){return Zo.parent===Gn.parent}))}:We?function(Ao){return ot(Ao)||Sr(Ao)}:Ie?ot:Sr,ra=0,Na=vr;ra<Na.length;ra++){var ei=Na[ra];Et(ei)&&Ot.push(ei)}if(!Ie&&Hn.declarations&&Hn.declarations.some(function(Ao){return Ao.kind!==300&&Ao.kind!==259&&Ao.kind!==258})){var Li=Zn.getTypeOfSymbolAtLocation(Hn,Gn).getNonOptionalType(),Zi=!1;if(Li.isNullableType()){var ho=Rn&&!Ye&&wr.includeAutomaticOptionalChainCompletions!==!1;(ho||Ye)&&(Li=Li.getNonNullableType(),ho&&(Zi=!0))}Xr(Li,!!(Gn.flags&32768),Zi)}return}}if(!Ie){var vs=e.getThisContainer(Gn,!1);!e.isSourceFile(vs)&&vs.parent&&Zn.getTypeAtLocation(vs);var Li=Zn.getTypeAtLocation(Gn).getNonOptionalType(),Zi=!1;if(Li.isNullableType()){var ho=Rn&&!Ye&&wr.includeAutomaticOptionalChainCompletions!==!1;(ho||Ye)&&(Li=Li.getNonNullableType(),ho&&(Zi=!0))}Xr(Li,!!(Gn.flags&32768),Zi)}}function Xr(j,Ie,We){Ur=!!j.getStringIndexType(),Ye&&e.some(j.getCallSignatures())&&(Ur=!0);var sn=Gn.kind===198?Gn:Gn.parent;if(ur)Ot.push.apply(Ot,e.filter(En(j,Zn),function(Na){return Zn.isValidPropertyAccessForCompletions(sn,j,Na)}));else for(var Hn=0,vr=j.getApparentProperties();Hn<vr.length;Hn++){var Sr=vr[Hn];Zn.isValidPropertyAccessForCompletions(sn,j,Sr)&&nt(Sr,!1,We)}if(Ie&&wr.includeCompletionsWithInsertText){var ot=Zn.getPromisedTypeOfPromise(j);if(ot)for(var Et=0,ra=ot.getApparentProperties();Et<ra.length;Et++){var Sr=ra[Et];Zn.isValidPropertyAccessForCompletions(sn,ot,Sr)&&nt(Sr,!0,We)}}}function nt(j,Ie,We){var sn=e.firstDefined(j.declarations,function(Zi){return e.tryCast(e.getNameOfDeclaration(Zi),e.isComputedPropertyName)});if(sn){var Hn=vt(sn.expression),vr=Hn&&Zn.getSymbolAtLocation(Hn),Sr=vr&&be(vr,Cn,Zn);if(Sr&&e.addToSeen(eo,e.getSymbolId(Sr))){var ot=Ot.length;Ot.push(Sr);var Et=Sr.parent;if(!Et||!e.isExternalModuleSymbol(Et))ri[ot]={kind:Li(2)};else{var ra={kind:Li(6),moduleSymbol:Et,isDefaultExport:!1,symbolName:Sr.name,exportName:Sr.name,fileName:e.isExternalModuleNameRelative(e.stripQuotes(Et.name))?e.cast(Et.valueDeclaration,e.isSourceFile).fileName:void 0};ri[ot]=ra}}else wr.includeCompletionsWithInsertText&&(ei(j),Na(j),Ot.push(j))}else ei(j),Na(j),Ot.push(j);function Na(Zi){Pe(Zi)&&(Ya[e.getSymbolId(Zi)]=10)}function ei(Zi){wr.includeCompletionsWithInsertText&&(Ie&&e.addToSeen(eo,e.getSymbolId(Zi))?ri[Ot.length]={kind:Li(8)}:We&&(ri[Ot.length]={kind:16}))}function Li(Zi){return We?Zi|16:Zi}}function vt(j){return e.isIdentifier(j)?j:e.isPropertyAccessExpression(j)?vt(j.expression):void 0}function or(){var j=as()||gs()||li()||Da()||$a()||$t()||Ni()||Va()||(zi(),1);return j===1}function $t(){return Bo(Cn)?(dt=5,Ur=!0,Jt=4,1):0}function Va(){var j=cs(Cn),Ie=j&&Zn.getContextualType(j.attributes);if(!Ie)return 0;var We=j&&Zn.getContextualType(j.attributes,4);return Ot=e.concatenate(Ot,ce(fn(Ie,We,j.attributes,Zn),j.attributes.properties)),ti(),dt=3,Ur=!1,1}function li(){return gr?(Ur=!0,Mi(),1):0}function zi(){Jt=Uo(Cn)?5:1,dt=1,Ur=qi(),J!==Cn&&e.Debug.assert(!!J,"Expected 'contextToken' to be defined when different from 'previousToken'.");var j=J!==Cn?J.getStart():hr,Ie=io(Cn,j,On)||On;yr=di(Ie);var We=(za?0:111551)|788968|1920|2097152;Ot=e.concatenate(Ot,Zn.getSymbolsInScope(Ie,We)),e.Debug.assertEachIsDefined(Ot,"getSymbolsInScope() should all be defined");for(var sn=0,Hn=Ot;sn<Hn.length;sn++){var vr=Hn[sn];!Zn.isArgumentsSymbol(vr)&&!e.some(vr.declarations,function(ra){return ra.getSourceFile()===On})&&(Ya[e.getSymbolId(vr)]=15)}if(wr.includeCompletionsWithInsertText&&Ie.kind!==300){var Sr=Zn.tryGetThisTypeAt(Ie,!1);if(Sr&&!le(Sr,On,Zn))for(var ot=0,Et=En(Sr,Zn);ot<Et.length;ot++){var vr=Et[ot];ri[Ot.length]={kind:1},Ot.push(vr),Ya[e.getSymbolId(vr)]=14}}Mi(),za&&(Jt=Cn&&e.isAssertionExpression(Cn.parent)?6:7)}function Ma(){return gr?!0:qt||!wr.includeCompletionsForModuleExports?!1:On.externalModuleIndicator||On.commonJsModuleIndicator||e.compilerOptionsIndicateEs6Modules(ze.getCompilerOptions())?!0:e.programContainsModules(ze)}function di(j){switch(j.kind){case 300:case 221:case 286:case 233:return!0;default:return e.isStatement(j)}}function Yi(){return Xn||!uo(Cn)&&(e.isPossiblyTypeArgumentPosition(Cn,On,Zn)||e.isPartOfTypeNode(Dr)||bi(Cn))}function uo(j){return j&&(j.kind===112&&(j.parent.kind===179||e.isTypeOfExpression(j.parent))||j.kind===128&&j.parent.kind===175)}function bi(j){if(j){var Ie=j.parent.kind;switch(j.kind){case 58:return Ie===165||Ie===164||Ie===162||Ie===252||e.isFunctionLikeKind(Ie);case 63:return Ie===257;case 127:return Ie===227;case 29:return Ie===176||Ie===209;case 94:return Ie===161}}return!1}function Mi(){var j,Ie;if(!Ma()||(e.Debug.assert(!(Qr!=null&&Qr.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),Qr&&!Qr.source))return;var We=(j=Ke.getModuleSpecifierCache)===null||j===void 0?void 0:j.call(Ke),sn=J&&e.isIdentifier(J)?J.text.toLowerCase():"",Hn=e.getExportInfoMap(On,Ke,ze,jn),vr=(Ie=Ke.getPackageJsonAutoImportProvider)===null||Ie===void 0?void 0:Ie.call(Ke),Sr=Qr?void 0:e.createPackageJsonImportFilter(On,wr,Ke);H("collectAutoImports",Ke,ze,On,wr,!!gr,function(Et){Hn.forEach(On.path,function(ra,Na,ei){if(e.isIdentifierText(Na,e.getEmitScriptTarget(Ke.getCompilationSettings()))&&!(!Qr&&e.isStringANonContextualKeyword(Na))&&!(!za&&!gr&&!(ra[0].targetFlags&111551))&&!(za&&!(ra[0].targetFlags&790504))){var Li=Qr&&e.some(ra,function(ws){return Qr.source===e.stripQuotes(ws.moduleSymbol.name)});if(Li||!Qr&&gn(Na,sn)){var Zi=e.find(ra,ot);if(!Zi)return;var ho=Et.tryResolve(ra,ei)||{},vs=ho.exportInfo,Ao=vs===void 0?Zi:vs,oo=ho.moduleSpecifier,Zo=Ao.exportKind===1,cl=Zo&&e.getLocalSymbolForExportDefault(Ao.symbol)||Ao.symbol;Go(cl,{kind:oo?32:4,moduleSpecifier:oo,symbolName:Na,exportName:Ao.exportKind===2?"export=":Ao.symbol.name,fileName:Ao.moduleFileName,isDefaultExport:Zo,moduleSymbol:Ao.moduleSymbol,isFromPackageJson:Ao.isFromPackageJson})}}}),Cr=Et.resolutionLimitExceeded()});function ot(Et){var ra=e.tryCast(Et.moduleSymbol.valueDeclaration,e.isSourceFile);if(!ra){var Na=e.stripQuotes(Et.moduleSymbol.name);return e.JsTyping.nodeCoreModules.has(Na)&&e.startsWith(Na,"node:")!==e.shouldUseUriStyleNodeCoreModules(On,ze)?!1:Sr?Sr.allowsImportingAmbientModule(Et.moduleSymbol,ua(Et.isFromPackageJson)):!0}return e.isImportableFile(Et.isFromPackageJson?vr:ze,On,ra,wr,Sr,ua(Et.isFromPackageJson),We)}}function Go(j,Ie){var We=e.getSymbolId(j);Ya[We]!==15&&(ri[Ot.length]=Ie,Ya[We]=gr?11:16,Ot.push(j))}function io(j,Ie,We){for(var sn=j;sn&&!e.positionBelongsToNode(sn,Ie,We);)sn=sn.parent;return sn}function wi(j){var Ie=e.timestamp(),We=Qi(j)||us(j)||mn(j)||Ho(j)||e.isBigIntLiteral(j);return Tn("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-Ie)),We}function Ho(j){if(j.kind===11)return!0;if(j.kind===31&&j.parent){if(j.parent.kind===278)return Dr.parent.kind!==278;if(j.parent.kind===279||j.parent.kind===277)return!!j.parent.parent&&j.parent.parent.kind===276}return!1}function qi(){if(Cn){var j=Cn.parent.kind;switch(Ln(Cn)){case 27:return j===206||j===169||j===207||j===202||j===219||j===177||j===203;case 20:return j===206||j===169||j===207||j===210||j===189;case 22:return j===202||j===174||j===160;case 140:case 141:return!0;case 24:return j===259;case 18:return j===255||j===203;case 63:return j===252||j===219;case 15:return j===221;case 16:return j===231;case 123:case 121:case 122:return j===165}}return!1}function Qi(j){return(e.isRegularExpressionLiteral(j)||e.isStringTextContainingNode(j))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(j)),hr)||hr===j.end&&(!!j.isUnterminated||e.isRegularExpressionLiteral(j)))}function as(){var j=In(Cn);if(!j)return 0;var Ie=e.isIntersectionTypeNode(j.parent)?j.parent:void 0,We=Ie||j,sn=X(We,Zn);if(!sn)return 0;var Hn=Zn.getTypeFromTypeNode(We),vr=En(sn,Zn),Sr=En(Hn,Zn),ot=new e.Set;return Sr.forEach(function(Et){return ot.add(Et.escapedName)}),Ot=e.concatenate(Ot,e.filter(vr,function(Et){return!ot.has(Et.escapedName)})),dt=0,Ur=!0,1}function gs(){var j=vo(Cn);if(!j)return 0;dt=0;var Ie,We;if(j.kind===203){var sn=xe(j,Zn);if(sn===void 0)return j.flags&16777216?2:(qt=!0,0);var Hn=Zn.getContextualType(j,4),vr=(Hn||sn).getStringIndexType(),Sr=(Hn||sn).getNumberIndexType();if(Ur=!!vr||!!Sr,Ie=fn(sn,Hn,j,Zn),We=j.properties,Ie.length===0&&!Sr)return qt=!0,0}else{e.Debug.assert(j.kind===199),Ur=!1;var ot=e.getRootDeclaration(j.parent);if(!e.isVariableLike(ot))return e.Debug.fail("Root declaration is not variable-like.");var Et=e.hasInitializer(ot)||e.hasType(ot)||ot.parent.parent.kind===242;if(!Et&&ot.kind===162&&(e.isExpression(ot.parent)?Et=!!Zn.getContextualType(ot.parent):(ot.parent.kind===167||ot.parent.kind===171)&&(Et=e.isExpression(ot.parent.parent)&&!!Zn.getContextualType(ot.parent.parent))),Et){var ra=Zn.getTypeAtLocation(j);if(!ra)return 2;var Na=e.getContainingClass(j);Ie=Zn.getPropertiesOfType(ra).filter(function(ei){return!(e.getDeclarationModifierFlagsFromSymbol(ei)&24)||Na&&e.contains(ra.symbol.declarations,Na)}),We=j.elements}}return Ie&&Ie.length>0&&(Ot=e.concatenate(Ot,$r(Ie,e.Debug.checkDefined(We)))),ti(),1}function Da(){var j=Cn&&(Cn.kind===18||Cn.kind===27)?e.tryCast(Cn.parent,e.isNamedImportsOrExports):void 0;if(!j)return 0;var Ie=(j.kind===267?j.parent.parent:j.parent).moduleSpecifier;if(!Ie)return j.kind===267?2:0;var We=Zn.getSymbolAtLocation(Ie);if(!We)return 2;dt=3,Ur=!1;var sn=Zn.getExportsAndPropertiesOfModule(We),Hn=new e.Set(j.elements.filter(function(vr){return!dn(vr)}).map(function(vr){return(vr.propertyName||vr.name).escapedText}));return Ot=e.concatenate(Ot,sn.filter(function(vr){return vr.escapedName!=="default"&&!Hn.has(vr.escapedName)})),1}function $a(){var j,Ie=Cn&&(Cn.kind===18||Cn.kind===27)?e.tryCast(Cn.parent,e.isNamedExports):void 0;if(!Ie)return 0;var We=e.findAncestor(Ie,e.or(e.isSourceFile,e.isModuleDeclaration));return dt=5,Ur=!1,(j=We.locals)===null||j===void 0||j.forEach(function(sn,Hn){var vr,Sr;Ot.push(sn),!((Sr=(vr=We.symbol)===null||vr===void 0?void 0:vr.exports)===null||Sr===void 0)&&Sr.has(Hn)&&(Ya[e.getSymbolId(sn)]=12)}),1}function Ni(){var j=i(On,Cn,Dr,hr);if(!j)return 0;if(dt=3,Ur=!0,Jt=Cn.kind===41?0:e.isClassLike(j)?2:3,!e.isClassLike(j))return 1;var Ie=Cn.kind===26?Cn.parent.parent:Cn.parent,We=e.isClassElement(Ie)?e.getEffectiveModifierFlags(Ie):0;if(Cn.kind===79&&!dn(Cn))switch(Cn.getText()){case"private":We=We|8;break;case"static":We=We|32;break;case"override":We=We|16384;break}if(e.isClassStaticBlockDeclaration(Ie)&&(We|=32),!(We&8)){var sn=e.isClassLike(j)&&We&16384?e.singleElementArray(e.getEffectiveBaseTypeNode(j)):e.getAllSuperTypeNodes(j),Hn=e.flatMap(sn,function(vr){var Sr=Zn.getTypeAtLocation(vr);return We&32?(Sr==null?void 0:Sr.symbol)&&Zn.getPropertiesOfType(Zn.getTypeOfSymbolAtLocation(Sr.symbol,j)):Sr&&Zn.getPropertiesOfType(Sr)});Ot=e.concatenate(Ot,Ve(Hn,j.members,We))}return 1}function vo(j){if(j){var Ie=j.parent;switch(j.kind){case 18:case 27:if(e.isObjectLiteralExpression(Ie)||e.isObjectBindingPattern(Ie))return Ie;break;case 41:return e.isMethodDeclaration(Ie)?e.tryCast(Ie.parent,e.isObjectLiteralExpression):void 0;case 79:return j.text==="async"&&e.isShorthandPropertyAssignment(j.parent)?j.parent.parent:void 0}}}function Io(j){return!!j.parent&&e.isParameter(j.parent)&&e.isConstructorDeclaration(j.parent.parent)&&(e.isParameterPropertyModifier(j.kind)||e.isDeclarationName(j))}function Bo(j){if(j){var Ie=j.parent;switch(j.kind){case 20:case 27:return e.isConstructorDeclaration(j.parent)?j.parent:void 0;default:if(Io(j))return Ie.parent}}}function Uo(j){if(j){var Ie,We=e.findAncestor(j.parent,function(sn){return e.isClassLike(sn)?"quit":e.isFunctionLikeDeclaration(sn)&&Ie===sn.body?!0:(Ie=sn,!1)});return We&&We}}function cs(j){if(j){var Ie=j.parent;switch(j.kind){case 31:case 30:case 43:case 79:case 204:case 284:case 283:case 285:if(Ie&&(Ie.kind===277||Ie.kind===278)){if(j.kind===31){var We=e.findPrecedingToken(j.pos,On,void 0);if(!Ie.typeArguments||We&&We.kind===43)break}return Ie}else if(Ie.kind===283)return Ie.parent.parent;break;case 10:if(Ie&&(Ie.kind===283||Ie.kind===285))return Ie.parent.parent;break;case 19:if(Ie&&Ie.kind===286&&Ie.parent&&Ie.parent.kind===283)return Ie.parent.parent.parent;if(Ie&&Ie.kind===285)return Ie.parent.parent;break}}}function us(j){var Ie=j.parent,We=Ie.kind;switch(j.kind){case 27:return We===252||_r(j)||We===235||We===258||is(We)||We===256||We===200||We===257||e.isClassLike(Ie)&&!!Ie.typeParameters&&Ie.typeParameters.end>=j.pos;case 24:return We===200;case 58:return We===201;case 22:return We===200;case 20:return We===290||is(We);case 18:return We===258;case 29:return We===255||We===224||We===256||We===257||e.isFunctionLikeKind(We);case 124:return We===165&&!e.isClassLike(Ie.parent);case 25:return We===162||!!Ie.parent&&Ie.parent.kind===200;case 123:case 121:case 122:return We===162&&!e.isConstructorDeclaration(Ie.parent);case 127:return We===268||We===273||We===266;case 135:case 147:return!rn(j);case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 136:case 150:return!0;case 41:return e.isFunctionLike(j.parent)&&!e.isMethodDeclaration(j.parent)}if(Re(Ln(j))&&rn(j)||Io(j)&&(!e.isIdentifier(j)||e.isParameterPropertyModifier(Ln(j))||dn(j)))return!1;switch(Ln(j)){case 126:case 84:case 85:case 134:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 130:return e.isPropertyDeclaration(j.parent)}var sn=e.findAncestor(j.parent,e.isClassLike);if(sn&&j===J&&Jo(j,hr))return!1;var Hn=e.getAncestor(j.parent,165);if(Hn&&j!==J&&e.isClassLike(J.parent.parent)&&hr<=J.end){if(Jo(j,J.end))return!1;if(j.kind!==63&&(e.isInitializedProperty(Hn)||e.hasType(Hn)))return!0}return e.isDeclarationName(j)&&!e.isShorthandPropertyAssignment(j.parent)&&!e.isJsxAttribute(j.parent)&&!(e.isClassLike(j.parent)&&(j!==J||hr>J.end))}function Jo(j,Ie){return j.kind!==63&&(j.kind===26||!e.positionsAreOnSameLine(j.end,Ie,On))}function is(j){return e.isFunctionLikeKind(j)&&j!==169}function mn(j){if(j.kind===8){var Ie=j.getFullText();return Ie.charAt(Ie.length-1)==="."}return!1}function _r(j){return j.parent.kind===253&&!e.isPossiblyTypeArgumentPosition(j,On,Zn)}function $r(j,Ie){if(Ie.length===0)return j;for(var We=new e.Set,sn=new e.Set,Hn=0,vr=Ie;Hn<vr.length;Hn++){var Sr=vr[Hn];if(!(Sr.kind!==291&&Sr.kind!==292&&Sr.kind!==201&&Sr.kind!==167&&Sr.kind!==170&&Sr.kind!==171&&Sr.kind!==293)&&!dn(Sr)){var ot=void 0;if(e.isSpreadAssignment(Sr))ia(Sr,We);else if(e.isBindingElement(Sr)&&Sr.propertyName)Sr.propertyName.kind===79&&(ot=Sr.propertyName.escapedText);else{var Et=e.getNameOfDeclaration(Sr);ot=Et&&e.isPropertyNameLiteral(Et)?e.getEscapedTextOfIdentifierOrLiteral(Et):void 0}ot!==void 0&&sn.add(ot)}}var ra=j.filter(function(Na){return!sn.has(Na.escapedName)});return va(We,ra),ra}function ia(j,Ie){var We=j.expression,sn=Zn.getSymbolAtLocation(We),Hn=sn&&Zn.getTypeOfSymbolAtLocation(sn,We),vr=Hn&&Hn.properties;vr&&vr.forEach(function(Sr){Ie.add(Sr.name)})}function ti(){Ot.forEach(function(j){var Ie;if(j.flags&16777216){var We=e.getSymbolId(j);Ya[We]=(Ie=Ya[We])!==null&&Ie!==void 0?Ie:12}})}function va(j,Ie){if(j.size!==0)for(var We=0,sn=Ie;We<sn.length;We++){var Hn=sn[We];j.has(Hn.name)&&(Ya[e.getSymbolId(Hn)]=13)}}function Ve(j,Ie,We){for(var sn=new e.Set,Hn=0,vr=Ie;Hn<vr.length;Hn++){var Sr=vr[Hn];if(!(Sr.kind!==165&&Sr.kind!==167&&Sr.kind!==170&&Sr.kind!==171)&&!dn(Sr)&&!e.hasEffectiveModifier(Sr,8)&&e.isStatic(Sr)===!!(We&32)){var ot=e.getPropertyNameForPropertyNameNode(Sr.name);ot&&sn.add(ot)}}return j.filter(function(Et){return!sn.has(Et.escapedName)&&!!Et.declarations&&!(e.getDeclarationModifierFlagsFromSymbol(Et)&8)&&!(Et.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(Et.valueDeclaration))})}function ce(j,Ie){for(var We=new e.Set,sn=new e.Set,Hn=0,vr=Ie;Hn<vr.length;Hn++){var Sr=vr[Hn];dn(Sr)||(Sr.kind===283?We.add(Sr.name.escapedText):e.isJsxSpreadAttribute(Sr)&&ia(Sr,sn))}var ot=j.filter(function(Et){return!We.has(Et.escapedName)});return va(sn,ot),ot}function dn(j){return j.getStart(On)<=hr&&hr<=j.getEnd()}}function De(ze,Tn){var On=e.findPrecedingToken(ze,Tn);if(On&&ze<=On.end&&(e.isMemberName(On)||e.isKeyword(On.kind))){var ur=e.findPrecedingToken(On.getFullStart(),Tn,void 0);return{contextToken:ur,previousToken:On}}return{contextToken:On,previousToken:On}}function en(ze,Tn,On,ur){var hr=Tn.isPackageJsonImport?ur.getPackageJsonAutoImportProvider():On,wr=hr.getTypeChecker(),Qr=Tn.ambientModuleName?wr.tryFindAmbientModule(Tn.ambientModuleName):Tn.fileName?wr.getMergedSymbol(e.Debug.checkDefined(hr.getSourceFile(Tn.fileName)).symbol):void 0;if(Qr){var Ke=Tn.exportName==="export="?wr.resolveExternalModuleSymbol(Qr):wr.tryGetMemberInModuleExportsAndProperties(Tn.exportName,Qr);if(Ke){var jn=Tn.exportName==="default";return Ke=jn&&e.getLocalSymbolForExportDefault(Ke)||Ke,{symbol:Ke,origin:{kind:Tn.moduleSpecifier?32:4,moduleSymbol:Qr,symbolName:ze,isDefaultExport:jn,exportName:Tn.exportName,fileName:Tn.fileName,isFromPackageJson:!!Tn.isPackageJsonImport}}}}}function fe(ze,Tn,On,ur,hr){var wr=de(On)?On.symbolName:ze.name;if(!(wr===void 0||ze.flags&1536&&e.isSingleOrDoubleQuote(wr.charCodeAt(0))||e.isKnownSymbol(ze))){var Qr={name:wr,needsConvertPropertyAccess:!1};if(e.isIdentifierText(wr,Tn,hr?1:0)||ze.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(ze.valueDeclaration))return Qr;switch(ur){case 3:return;case 0:return{name:JSON.stringify(wr),needsConvertPropertyAccess:!1};case 2:case 1:return wr.charCodeAt(0)===32?void 0:{name:wr,needsConvertPropertyAccess:!0};case 5:case 4:return Qr;default:e.Debug.assertNever(ur)}}}var Ne=[],qe=e.memoize(function(){for(var ze=[],Tn=81;Tn<=158;Tn++)ze.push({name:e.tokenToString(Tn),kind:"keyword",kindModifiers:"",sortText:$.GlobalsOrKeywords});return ze});function pe(ze,Tn){if(!Tn)return we(ze);var On=ze+7+1;return Ne[On]||(Ne[On]=we(ze).filter(function(ur){return!pn(e.stringToToken(ur.name))}))}function we(ze){return Ne[ze]||(Ne[ze]=qe().filter(function(Tn){var On=e.stringToToken(Tn.name);switch(ze){case 0:return!1;case 1:return He(On)||On===134||On===140||On===150||On===141||e.isTypeKeyword(On)&&On!==151;case 5:return He(On);case 2:return Re(On);case 3:return Qe(On);case 4:return e.isParameterPropertyModifier(On);case 6:return e.isTypeKeyword(On)||On===85;case 7:return e.isTypeKeyword(On);default:return e.Debug.assertNever(ze)}}))}function pn(ze){switch(ze){case 126:case 129:case 156:case 132:case 134:case 92:case 155:case 117:case 136:case 118:case 138:case 139:case 140:case 141:case 142:case 145:case 146:case 157:case 121:case 122:case 123:case 143:case 148:case 149:case 150:case 152:case 153:return!0;default:return!1}}function Qe(ze){return ze===143}function Re(ze){switch(ze){case 126:case 133:case 135:case 147:case 130:case 134:case 157:return!0;default:return e.isClassMemberModifier(ze)}}function He(ze){return ze===130||ze===131||ze===127||!e.isContextualKeyword(ze)&&!Re(ze)}function Ln(ze){return e.isIdentifier(ze)?ze.originalKeywordKind||0:ze.kind}function Un(ze,Tn){var On=e.findAncestor(ze,e.isJSDoc);return On&&On.tags&&(e.rangeContainsPosition(On,Tn)?e.findLast(On.tags,function(ur){return ur.pos<Tn}):void 0)}function fn(ze,Tn,On,ur){var hr=Tn&&Tn!==ze,wr=hr&&!(Tn.flags&3)?ur.getUnionType([ze,Tn]):ze,Qr=wr.isUnion()?ur.getAllPossiblePropertiesOfTypes(wr.types.filter(function(jn){return!(jn.flags&131068||ur.isArrayLikeType(jn)||e.typeHasCallOrConstructSignatures(jn,ur)||ur.isTypeInvalidDueToUnionDiscriminant(jn,On))})):wr.getApparentProperties();return hr?Qr.filter(Ke):Qr;function Ke(jn){return e.some(jn.declarations,function(Zn){return Zn.parent!==On})}}ue.getPropertiesForObjectExpression=fn;function En(ze,Tn){return ze.isUnion()?e.Debug.checkEachDefined(Tn.getAllPossiblePropertiesOfTypes(ze.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(ze.getApparentProperties(),"getApparentProperties() should all be defined")}function i(ze,Tn,On,ur){switch(On.kind){case 343:return e.tryCast(On.parent,e.isObjectTypeDeclaration);case 1:var hr=e.tryCast(e.lastOrUndefined(e.cast(On.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(hr&&!e.findChildOfKind(hr,19,ze))return hr;break;case 79:{if(e.isPropertyDeclaration(On.parent)&&On.parent.initializer===On)return;if(rn(On))return e.findAncestor(On,e.isObjectTypeDeclaration)}}if(Tn){if(On.kind===133||e.isIdentifier(Tn)&&e.isPropertyDeclaration(Tn.parent)&&e.isClassLike(On))return e.findAncestor(Tn,e.isClassLike);switch(Tn.kind){case 63:return;case 26:case 19:return rn(On)&&On.parent.name===On?On.parent.parent:e.tryCast(On,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(Tn.parent,e.isObjectTypeDeclaration);default:if(!rn(Tn))return e.getLineAndCharacterOfPosition(ze,Tn.getEnd()).line!==e.getLineAndCharacterOfPosition(ze,ur).line&&e.isObjectTypeDeclaration(On)?On:void 0;var wr=e.isClassLike(Tn.parent.parent)?Re:Qe;return wr(Tn.kind)||Tn.kind===41||e.isIdentifier(Tn)&&wr(e.stringToToken(Tn.text))?Tn.parent.parent:void 0}}}function In(ze){if(ze){var Tn=ze.parent;switch(ze.kind){case 18:if(e.isTypeLiteralNode(Tn))return Tn;break;case 26:case 27:case 79:if(Tn.kind===164&&e.isTypeLiteralNode(Tn.parent))return Tn.parent;break}}}function X(ze,Tn){if(ze){if(e.isTypeNode(ze)&&e.isTypeReferenceType(ze.parent))return Tn.getTypeArgumentConstraint(ze);var On=X(ze.parent,Tn);if(On)switch(ze.kind){case 164:return Tn.getTypeOfPropertyOfContextualType(On,ze.symbol.escapedName);case 186:case 180:case 185:return On}}}function rn(ze){return ze.parent&&e.isClassOrTypeElement(ze.parent)&&e.isObjectTypeDeclaration(ze.parent.parent)}function $n(ze,Tn,On,ur){switch(Tn){case".":case"@":return!0;case'"':case"'":case"`":return!!On&&e.isStringLiteralOrTemplate(On)&&ur===On.getStart(ze)+1;case"#":return!!On&&e.isPrivateIdentifier(On)&&!!e.getContainingClass(On);case"<":return!!On&&On.kind===29&&(!e.isBinaryExpression(On.parent)||Vn(On.parent));case"/":return!!On&&(e.isStringLiteralLike(On)?!!e.tryGetImportFromModuleSpecifier(On):On.kind===43&&e.isJsxClosingElement(On.parent));case" ":return!!On&&e.isImportKeyword(On)&&On.parent.kind===300;default:return e.Debug.assertNever(Tn)}}function Vn(ze){var Tn=ze.left;return e.nodeIsMissing(Tn)}function le(ze,Tn,On){var ur=On.resolveName("self",void 0,111551,!1);if(ur&&On.getTypeOfSymbolAtLocation(ur,Tn)===ze)return!0;var hr=On.resolveName("global",void 0,111551,!1);if(hr&&On.getTypeOfSymbolAtLocation(hr,Tn)===ze)return!0;var wr=On.resolveName("globalThis",void 0,111551,!1);return!!(wr&&On.getTypeOfSymbolAtLocation(wr,Tn)===ze)}function Pe(ze){return!!(ze.valueDeclaration&&e.getEffectiveModifierFlags(ze.valueDeclaration)&32&&e.isClassLike(ze.valueDeclaration.parent))}function xe(ze,Tn){var On=Tn.getContextualType(ze);if(On)return On;if(e.isBinaryExpression(ze.parent)&&ze.parent.operatorToken.kind===63&&ze===ze.parent.left)return Tn.getTypeAtLocation(ze.parent)}function Ze(ze){var Tn=On();return Tn===154||Tn&&e.rangeIsOnSingleLine(Tn,Tn.getSourceFile())?Tn:void 0;function On(){var ur=ze.parent;if(e.isImportEqualsDeclaration(ur))return hn(ur.moduleReference)?ur:void 0;if(e.isNamedImports(ur)||e.isNamespaceImport(ur))return hn(ur.parent.parent.moduleSpecifier)&&(e.isNamespaceImport(ur)||ur.elements.length<2)&&!ur.parent.name?ze.kind===19||ze.kind===79?154:ur.parent.parent:void 0;if(e.isImportKeyword(ze)&&e.isSourceFile(ur))return ze;if(e.isImportKeyword(ze)&&e.isImportDeclaration(ur))return hn(ur.moduleSpecifier)?ur:void 0}}function hn(ze){var Tn;return e.nodeIsMissing(ze)?!0:!(!((Tn=e.tryCast(e.isExternalModuleReference(ze)?ze.expression:ze,e.isStringLiteralLike))===null||Tn===void 0)&&Tn.text)}function Le(ze){var Tn=e.findAncestor(ze,function(On){return e.isFunctionBlock(On)||$e(On)||e.isBindingPattern(On)?"quit":e.isVariableDeclaration(On)});return Tn}function $e(ze){return ze.parent&&e.isArrowFunction(ze.parent)&&ze.parent.body===ze}function An(ze,Tn,On){On===void 0&&(On=new e.Map);var ur=e.skipAlias(ze.exportSymbol||ze,Tn);return!!(ur.flags&788968)||Tn.isUnknownSymbol(ur)||!!(ur.flags&1536)&&e.addToSeen(On,e.getSymbolId(ur))&&Tn.getExportsOfModule(ur).some(function(hr){return An(hr,Tn,On)})}function Ue(ze,Tn){var On=e.skipAlias(ze,Tn).declarations;return!!e.length(On)&&e.every(On,e.isDeprecatedDeclaration)}function gn(ze,Tn){if(Tn.length===0)return!0;for(var On=!1,ur,hr=0,wr=ze.length,Qr=0;Qr<wr;Qr++){var Ke=ze.charCodeAt(Qr),jn=Tn.charCodeAt(hr);if((Ke===jn||Ke===Wn(jn))&&(On||(On=ur===void 0||97<=ur&&ur<=122&&65<=Ke&&Ke<=90||ur===95&&Ke!==95),On&&hr++,hr===Tn.length))return!0;ur=Ke}return!1}function Wn(ze){return 97<=ze&&ze<=122?ze-32:ze}})(o=e.Completions||(e.Completions={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(U,C,d,G,g){var p=e.getTouchingPropertyName(d,G);if(p.parent&&(e.isJsxOpeningElement(p.parent)&&p.parent.tagName===p||e.isJsxClosingElement(p.parent))){var f=p.parent.parent,T=f.openingElement,m=f.closingElement,N=[T,m].map(function(P){var x=P.tagName;return Y(x,d)});return[{fileName:d.fileName,highlightSpans:N}]}return W(G,p,U,C,g)||re(p,d)}ue.getDocumentHighlights=$;function Y(U,C){return{fileName:C.fileName,textSpan:e.createTextSpanFromNode(U,C),kind:"none"}}function W(U,C,d,G,g){var p=new e.Set(g.map(function(N){return N.fileName})),f=e.FindAllReferences.getReferenceEntriesForNode(U,C,d,g,G,void 0,p);if(f){var T=e.arrayToMultiMap(f.map(e.FindAllReferences.toHighlightSpan),function(N){return N.fileName},function(N){return N.span}),m=e.createGetCanonicalFileName(d.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(T.entries()),function(N){var P=N[0],x=N[1];if(!p.has(P)){if(!d.redirectTargetsMap.has(e.toPath(P,d.getCurrentDirectory(),m)))return;var M=d.getSourceFile(P),me=e.find(g,function(z){return!!z.redirectInfo&&z.redirectInfo.redirectTarget===M});P=me.fileName,e.Debug.assert(p.has(P))}return{fileName:P,highlightSpans:x}})}}function re(U,C){var d=ye(U,C);return d&&[{fileName:C.fileName,highlightSpans:d}]}function ye(U,C){switch(U.kind){case 99:case 91:return e.isIfStatement(U.parent)?w(U.parent,C):void 0;case 105:return g(U.parent,e.isReturnStatement,ie);case 109:return g(U.parent,e.isThrowStatement,b);case 111:case 83:case 96:var d=U.kind===83?U.parent.parent:U.parent;return g(d,e.isTryStatement,k);case 107:return g(U.parent,e.isSwitchStatement,ee);case 82:case 88:return e.isDefaultClause(U.parent)||e.isCaseClause(U.parent)?g(U.parent.parent.parent,e.isSwitchStatement,ee):void 0;case 81:case 86:return g(U.parent,e.isBreakOrContinueStatement,L);case 97:case 115:case 90:return g(U.parent,function(f){return e.isIterationStatement(f,!0)},H);case 133:return G(e.isConstructorDeclaration,[133]);case 135:case 147:return G(e.isAccessor,[135,147]);case 131:return g(U.parent,e.isAwaitExpression,q);case 130:return p(q(U));case 125:return p(oe(U));default:return e.isModifierKind(U.kind)&&(e.isDeclaration(U.parent)||e.isVariableStatement(U.parent))?p(V(U.kind,U.parent)):void 0}function G(f,T){return g(U.parent,f,function(m){return e.mapDefined(m.symbol.declarations,function(N){return f(N)?e.find(N.getChildren(C),function(P){return e.contains(T,P.kind)}):void 0})})}function g(f,T,m){return T(f)?p(m(f,C)):void 0}function p(f){return f&&f.map(function(T){return Y(T,C)})}}function O(U){return e.isThrowStatement(U)?[U]:e.isTryStatement(U)?e.concatenate(U.catchClause?O(U.catchClause):U.tryBlock&&O(U.tryBlock),U.finallyBlock&&O(U.finallyBlock)):e.isFunctionLike(U)?void 0:de(U,O)}function A(U){for(var C=U;C.parent;){var d=C.parent;if(e.isFunctionBlock(d)||d.kind===300)return d;if(e.isTryStatement(d)&&d.tryBlock===C&&d.catchClause)return C;C=d}}function D(U){return e.isBreakOrContinueStatement(U)?[U]:e.isFunctionLike(U)?void 0:de(U,D)}function de(U,C){var d=[];return U.forEachChild(function(G){var g=C(G);g!==void 0&&d.push.apply(d,e.toArray(g))}),d}function _e(U,C){var d=y(C);return!!d&&d===U}function y(U){return e.findAncestor(U,function(C){switch(C.kind){case 247:if(U.kind===243)return!1;case 240:case 241:case 242:case 239:case 238:return!U.label||ne(C,U.label.escapedText);default:return e.isFunctionLike(C)&&"quit"}})}function V(U,C){return e.mapDefined(Z(C,e.modifierToFlag(U)),function(d){return e.findModifier(d,U)})}function Z(U,C){var d=U.parent;switch(d.kind){case 260:case 300:case 233:case 287:case 288:return C&128&&e.isClassDeclaration(U)?Vr(Vr([],U.members,!0),[U],!1):d.statements;case 169:case 167:case 254:return Vr(Vr([],d.parameters,!0),e.isClassLike(d.parent)?d.parent.members:[],!0);case 255:case 224:case 256:case 180:var G=d.members;if(C&92){var g=e.find(d.members,e.isConstructorDeclaration);if(g)return Vr(Vr([],G,!0),g.parameters,!0)}else if(C&128)return Vr(Vr([],G,!0),[d],!1);return G;case 203:return;default:e.Debug.assertNever(d,"Invalid container kind.")}}function E(U,C){for(var d=[],G=2;G<arguments.length;G++)d[G-2]=arguments[G];return C&&e.contains(d,C.kind)?(U.push(C),!0):!1}function H(U){var C=[];if(E(C,U.getFirstToken(),97,115,90)&&U.kind===238)for(var d=U.getChildren(),G=d.length-1;G>=0&&!E(C,d[G],115);G--);return e.forEach(D(U.statement),function(g){_e(U,g)&&E(C,g.getFirstToken(),81,86)}),C}function L(U){var C=y(U);if(C)switch(C.kind){case 240:case 241:case 242:case 238:case 239:return H(C);case 247:return ee(C)}}function ee(U){var C=[];return E(C,U.getFirstToken(),107),e.forEach(U.caseBlock.clauses,function(d){E(C,d.getFirstToken(),82,88),e.forEach(D(d),function(G){_e(U,G)&&E(C,G.getFirstToken(),81)})}),C}function k(U,C){var d=[];if(E(d,U.getFirstToken(),111),U.catchClause&&E(d,U.catchClause.getFirstToken(),83),U.finallyBlock){var G=e.findChildOfKind(U,96,C);E(d,G,96)}return d}function b(U,C){var d=A(U);if(d){var G=[];return e.forEach(O(d),function(g){G.push(e.findChildOfKind(g,109,C))}),e.isFunctionBlock(d)&&e.forEachReturnStatement(d,function(g){G.push(e.findChildOfKind(g,105,C))}),G}}function ie(U,C){var d=e.getContainingFunction(U);if(d){var G=[];return e.forEachReturnStatement(e.cast(d.body,e.isBlock),function(g){G.push(e.findChildOfKind(g,105,C))}),e.forEach(O(d.body),function(g){G.push(e.findChildOfKind(g,109,C))}),G}}function q(U){var C=e.getContainingFunction(U);if(C){var d=[];return C.modifiers&&C.modifiers.forEach(function(G){E(d,G,130)}),e.forEachChild(C,function(G){se(G,function(g){e.isAwaitExpression(g)&&E(d,g.getFirstToken(),131)})}),d}}function oe(U){var C=e.getContainingFunction(U);if(C){var d=[];return e.forEachChild(C,function(G){se(G,function(g){e.isYieldExpression(g)&&E(d,g.getFirstToken(),125)})}),d}}function se(U,C){C(U),!e.isFunctionLike(U)&&!e.isClassLike(U)&&!e.isInterfaceDeclaration(U)&&!e.isModuleDeclaration(U)&&!e.isTypeAliasDeclaration(U)&&!e.isTypeNode(U)&&e.forEachChild(U,function(d){return se(d,C)})}function w(U,C){for(var d=R(U,C),G=[],g=0;g<d.length;g++){if(d[g].kind===91&&g<d.length-1){for(var p=d[g],f=d[g+1],T=!0,m=f.getStart(C)-1;m>=p.end;m--)if(!e.isWhiteSpaceSingleLine(C.text.charCodeAt(m))){T=!1;break}if(T){G.push({fileName:C.fileName,textSpan:e.createTextSpanFromBounds(p.getStart(),f.end),kind:"reference"}),g++;continue}}G.push(Y(d[g],C))}return G}function R(U,C){for(var d=[];e.isIfStatement(U.parent)&&U.parent.elseStatement===U;)U=U.parent;for(;;){var G=U.getChildren(C);E(d,G[0],99);for(var g=G.length-1;g>=0&&!E(d,G[g],91);g--);if(!U.elseStatement||!e.isIfStatement(U.elseStatement))break;U=U.elseStatement}return d}function ne(U,C){return!!e.findAncestor(U.parent,function(d){return e.isLabeledStatement(d)?d.label.escapedText===C:"quit"})}})(o=e.DocumentHighlights||(e.DocumentHighlights={}))})(vn||(vn={}));var vn;(function(e){function o(W){return!!W.sourceFile}function ue(W,re){return $(W,re)}e.createDocumentRegistry=ue;function $(W,re,ye){re===void 0&&(re="");var O=new e.Map,A=e.createGetCanonicalFileName(!!W);function D(){var k=e.arrayFrom(O.keys()).filter(function(b){return b&&b.charAt(0)==="_"}).map(function(b){var ie=O.get(b),q=[];return ie.forEach(function(oe,se){o(oe)?q.push({name:se,scriptKind:oe.sourceFile.scriptKind,refCount:oe.languageServiceRefCount}):oe.forEach(function(w,R){return q.push({name:se,scriptKind:R,refCount:w.languageServiceRefCount})})}),q.sort(function(oe,se){return se.refCount-oe.refCount}),{bucket:b,sourceFiles:q}});return JSON.stringify(k,void 0,2)}function de(k,b,ie,q,oe){var se=e.toPath(k,re,A),w=Y(b);return _e(k,se,b,w,ie,q,oe)}function _e(k,b,ie,q,oe,se,w){return E(k,b,ie,q,oe,se,!0,w)}function y(k,b,ie,q,oe){var se=e.toPath(k,re,A),w=Y(b);return V(k,se,b,w,ie,q,oe)}function V(k,b,ie,q,oe,se,w){return E(k,b,ie,q,oe,se,!1,w)}function Z(k,b){var ie=o(k)?k:k.get(e.Debug.checkDefined(b,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(b===void 0||!ie||ie.sourceFile.scriptKind===b,"Script kind should match provided ScriptKind:"+b+" and sourceFile.scriptKind: "+(ie==null?void 0:ie.sourceFile.scriptKind)+", !entry: "+!ie),ie}function E(k,b,ie,q,oe,se,w,R){R=e.ensureScriptKind(k,R);var ne=R===6?100:ie.target||1,U=e.getOrUpdate(O,q,function(){return new e.Map}),C=U.get(b),d=C&&Z(C,R);if(!d&&ye){var G=ye.getDocument(q,b);G&&(e.Debug.assert(w),d={sourceFile:G,languageServiceRefCount:0},g())}if(d)d.sourceFile.version!==se&&(d.sourceFile=e.updateLanguageServiceSourceFile(d.sourceFile,oe,se,oe.getChangeRange(d.sourceFile.scriptSnapshot)),ye&&ye.setDocument(q,b,d.sourceFile)),w&&d.languageServiceRefCount++;else{var G=e.createLanguageServiceSourceFile(k,oe,ne,se,!1,R);ye&&ye.setDocument(q,b,G),d={sourceFile:G,languageServiceRefCount:1},g()}return e.Debug.assert(d.languageServiceRefCount!==0),d.sourceFile;function g(){if(!C)U.set(b,d);else if(o(C)){var p=new e.Map;p.set(C.sourceFile.scriptKind,C),p.set(R,d),U.set(b,p)}else C.set(R,d)}}function H(k,b,ie){var q=e.toPath(k,re,A),oe=Y(b);return L(q,oe,ie)}function L(k,b,ie){var q=e.Debug.checkDefined(O.get(b)),oe=q.get(k),se=Z(oe,ie);se.languageServiceRefCount--,e.Debug.assert(se.languageServiceRefCount>=0),se.languageServiceRefCount===0&&(o(oe)?q.delete(k):(oe.delete(ie),oe.size===1&&q.set(k,e.firstDefinedIterator(oe.values(),e.identity))))}function ee(k,b){return e.arrayFrom(O.entries(),function(ie){var q=ie[0],oe=ie[1],se=oe.get(k),w=se&&Z(se,b);return[q,w&&w.languageServiceRefCount]})}return{acquireDocument:de,acquireDocumentWithKey:_e,updateDocument:y,updateDocumentWithKey:V,releaseDocument:H,releaseDocumentWithKey:L,getLanguageServiceRefCounts:ee,reportStats:D,getKeyForCompilationSettings:Y}}e.createDocumentRegistryInternal=$;function Y(W){return e.sourceFileAffectingCompilerOptions.map(function(re){return e.getCompilerOptionValue(W,re)}).join("|")}})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(q,oe,se,w){var R=D(q,se,w);return function(ne,U,C){var d=re(q,oe,R,U,se,w),G=d.directImports,g=d.indirectUsers;return Mt({indirectUsers:g},ye(G,ne,U.exportKind,se,C))}}ue.createImportTracker=$;var Y;(function(q){q[q.Named=0]="Named",q[q.Default=1]="Default",q[q.ExportEquals=2]="ExportEquals"})(Y=ue.ExportKind||(ue.ExportKind={}));var W;(function(q){q[q.Import=0]="Import",q[q.Export=1]="Export"})(W=ue.ImportExport||(ue.ImportExport={}));function re(q,oe,se,w,R,ne){var U=w.exportingModuleSymbol,C=w.exportKind,d=e.nodeSeenTracker(),G=e.nodeSeenTracker(),g=[],p=!!U.globalExports,f=p?void 0:[];return m(U),{directImports:g,indirectUsers:T()};function T(){if(p)return q;if(U.declarations)for(var z=0,K=U.declarations;z<K.length;z++){var I=K[z];e.isExternalModuleAugmentation(I)&&oe.has(I.getSourceFile().fileName)&&M(I)}return f.map(e.getSourceFileOfNode)}function m(z){var K=me(z);if(K)for(var I=0,Ae=K;I<Ae.length;I++){var Oe=Ae[I];if(d(Oe))switch(ne&&ne.throwIfCancellationRequested(),Oe.kind){case 206:if(e.isImportCall(Oe)){N(Oe);break}if(!p){var te=Oe.parent;if(C===2&&te.kind===252){var Se=te.name;if(Se.kind===79){g.push(Se);break}}}break;case 79:break;case 263:x(Oe,Oe.name,e.hasSyntacticModifier(Oe,1),!1);break;case 264:g.push(Oe);var be=Oe.importClause&&Oe.importClause.namedBindings;be&&be.kind===266?x(Oe,be.name,!1,!0):!p&&e.isDefaultImport(Oe)&&M(k(Oe));break;case 270:Oe.exportClause?Oe.exportClause.kind===272?M(k(Oe),!0):g.push(Oe):m(ee(Oe,R));break;case 198:Oe.isTypeOf&&!Oe.qualifier&&P(Oe)&&M(Oe.getSourceFile(),!0),g.push(Oe);break;default:e.Debug.failBadSyntaxKind(Oe,"Unexpected import kind.")}}}function N(z){var K=e.findAncestor(z,b)||z.getSourceFile();M(K,!!P(z,!0))}function P(z,K){return K===void 0&&(K=!1),e.findAncestor(z,function(I){return K&&b(I)?"quit":e.some(I.modifiers,function(Ae){return Ae.kind===93})})}function x(z,K,I,Ae){if(C===2)Ae||g.push(z);else if(!p){var Oe=k(z);e.Debug.assert(Oe.kind===300||Oe.kind===259),I||O(Oe,K,R)?M(Oe,!0):M(Oe)}}function M(z,K){K===void 0&&(K=!1),e.Debug.assert(!p);var I=G(z);if(I&&(f.push(z),!!K)){var Ae=R.getMergedSymbol(z.symbol);if(Ae){e.Debug.assert(!!(Ae.flags&1536));var Oe=me(Ae);if(Oe)for(var te=0,Se=Oe;te<Se.length;te++){var be=Se[te];e.isImportTypeNode(be)||M(k(be),!0)}}}}function me(z){return se.get(e.getSymbolId(z).toString())}}function ye(q,oe,se,w,R){var ne=[],U=[];function C(N,P){ne.push([N,P])}if(q)for(var d=0,G=q;d<G.length;d++){var g=G[d];p(g)}return{importSearches:ne,singleReferences:U};function p(N){if(N.kind===263){ie(N)&&f(N.name);return}if(N.kind===79){f(N);return}if(N.kind===198){if(N.qualifier){var P=e.getFirstIdentifier(N.qualifier);P.escapedText===e.symbolName(oe)&&U.push(P)}else se===2&&U.push(N.argument.literal);return}if(N.moduleSpecifier.kind===10){if(N.kind===270){N.exportClause&&e.isNamedExports(N.exportClause)&&T(N.exportClause);return}var x=N.importClause||{name:void 0,namedBindings:void 0},M=x.name,me=x.namedBindings;if(me)switch(me.kind){case 266:f(me.name);break;case 267:(se===0||se===1)&&T(me);break;default:e.Debug.assertNever(me)}if(M&&(se===1||se===2)&&(!R||M.escapedText===e.symbolEscapedNameNoDefault(oe))){var z=w.getSymbolAtLocation(M);C(M,z)}}}function f(N){se===2&&(!R||m(N.escapedText))&&C(N,w.getSymbolAtLocation(N))}function T(N){if(N)for(var P=0,x=N.elements;P<x.length;P++){var M=x[P],me=M.name,z=M.propertyName;if(m((z||me).escapedText))if(z)U.push(z),(!R||me.escapedText===oe.escapedName)&&C(me,w.getSymbolAtLocation(me));else{var K=M.kind===273&&M.propertyName?w.getExportSpecifierLocalTargetSymbol(M):w.getSymbolAtLocation(me);C(me,K)}}}function m(N){return N===oe.escapedName||se!==0&&N==="default"}}function O(q,oe,se){var w=se.getSymbolAtLocation(oe);return!!de(q,function(R){if(e.isExportDeclaration(R)){var ne=R.exportClause,U=R.moduleSpecifier;return!U&&ne&&e.isNamedExports(ne)&&ne.elements.some(function(C){return se.getExportSpecifierLocalTargetSymbol(C)===w})}})}function A(q,oe,se){for(var w=[],R=q.getTypeChecker(),ne=0,U=oe;ne<U.length;ne++){var C=U[ne],d=se.valueDeclaration;if((d==null?void 0:d.kind)===300){for(var G=0,g=C.referencedFiles;G<g.length;G++){var p=g[G];q.getSourceFileFromReference(C,p)===d&&w.push({kind:"reference",referencingFile:C,ref:p})}for(var f=0,T=C.typeReferenceDirectives;f<T.length;f++){var p=T[f],m=q.getResolvedTypeReferenceDirectives().get(p.fileName);m!==void 0&&m.resolvedFileName===d.fileName&&w.push({kind:"reference",referencingFile:C,ref:p})}}_e(C,function(N,P){var x=R.getSymbolAtLocation(P);x===se&&w.push({kind:"import",literal:P})})}return w}ue.findModuleReferences=A;function D(q,oe,se){for(var w=new e.Map,R=0,ne=q;R<ne.length;R++){var U=ne[R];se&&se.throwIfCancellationRequested(),_e(U,function(C,d){var G=oe.getSymbolAtLocation(d);if(G){var g=e.getSymbolId(G).toString(),p=w.get(g);p||w.set(g,p=[]),p.push(C)}})}return w}function de(q,oe){return e.forEach(q.kind===300?q.statements:q.body.statements,function(se){return oe(se)||b(se)&&e.forEach(se.body&&se.body.statements,oe)})}function _e(q,oe){if(q.externalModuleIndicator||q.imports!==void 0)for(var se=0,w=q.imports;se<w.length;se++){var R=w[se];oe(e.importFromModuleSpecifier(R),R)}else de(q,function(ne){switch(ne.kind){case 270:case 264:{var U=ne;U.moduleSpecifier&&e.isStringLiteral(U.moduleSpecifier)&&oe(U,U.moduleSpecifier);break}case 263:{var U=ne;ie(U)&&oe(U,U.moduleReference.expression);break}}})}function y(q,oe,se,w){return w?R():R()||ne();function R(){var d,G=q.parent,g=G.parent;if(oe.exportSymbol)return G.kind===204?!((d=oe.declarations)===null||d===void 0)&&d.some(function(N){return N===G})&&e.isBinaryExpression(g)?m(g,!1):void 0:U(oe.exportSymbol,C(G));var p=Z(G,q);if(p&&e.hasSyntacticModifier(p,1))if(e.isImportEqualsDeclaration(p)&&p.moduleReference===q){if(w)return;var f=se.getSymbolAtLocation(p.name);return{kind:0,symbol:f}}else return U(oe,C(p));else{if(e.isNamespaceExport(G))return U(oe,0);if(e.isExportAssignment(G))return T(G);if(e.isExportAssignment(g))return T(g);if(e.isBinaryExpression(G))return m(G,!0);if(e.isBinaryExpression(g))return m(g,!0);if(e.isJSDocTypedefTag(G))return U(oe,0)}function T(N){if(N.symbol.parent){var P=N.isExportEquals?2:1;return{kind:1,symbol:oe,exportInfo:{exportingModuleSymbol:N.symbol.parent,exportKind:P}}}}function m(N,P){var x;switch(e.getAssignmentDeclarationKind(N)){case 1:x=0;break;case 2:x=2;break;default:return}var M=P?se.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(N.left,e.isAccessExpression))):oe;return M&&U(M,x)}}function ne(){var d=E(q);if(d){var G=se.getImmediateAliasedSymbol(oe);if(G){G=L(G,se),G.escapedName==="export="&&(G=V(G,se));var g=e.symbolEscapedNameNoDefault(G);if(g===void 0||g==="default"||g===oe.escapedName)return{kind:0,symbol:G}}}}function U(d,G){var g=H(d,G,se);return g&&{kind:1,symbol:d,exportInfo:g}}function C(d){return e.hasSyntacticModifier(d,512)?1:0}}ue.getImportOrExportSymbol=y;function V(q,oe){if(q.flags&2097152)return e.Debug.checkDefined(oe.getImmediateAliasedSymbol(q));var se=e.Debug.checkDefined(q.valueDeclaration);return e.isExportAssignment(se)?e.Debug.checkDefined(se.expression.symbol):e.isBinaryExpression(se)?e.Debug.checkDefined(se.right.symbol):e.isSourceFile(se)?e.Debug.checkDefined(se.symbol):e.Debug.fail()}function Z(q,oe){var se=e.isVariableDeclaration(q)?q:e.isBindingElement(q)?e.walkUpBindingElementsAndPatterns(q):void 0;return se?q.name!==oe||e.isCatchClause(se.parent)?void 0:e.isVariableStatement(se.parent.parent)?se.parent.parent:void 0:q}function E(q){var oe=q.parent;switch(oe.kind){case 263:return oe.name===q&&ie(oe);case 268:return!oe.propertyName;case 265:case 266:return e.Debug.assert(oe.name===q),!0;case 201:return e.isInJSFile(q)&&e.isRequireVariableDeclaration(oe);default:return!1}}function H(q,oe,se){var w=q.parent;if(w){var R=se.getMergedSymbol(w);return e.isExternalModuleSymbol(R)?{exportingModuleSymbol:R,exportKind:oe}:void 0}}ue.getExportInfo=H;function L(q,oe){if(q.declarations)for(var se=0,w=q.declarations;se<w.length;se++){var R=w[se];if(e.isExportSpecifier(R)&&!R.propertyName&&!R.parent.parent.moduleSpecifier)return oe.getExportSpecifierLocalTargetSymbol(R);if(e.isPropertyAccessExpression(R)&&e.isModuleExportsAccessExpression(R.expression)&&!e.isPrivateIdentifier(R.name))return oe.getSymbolAtLocation(R);if(e.isShorthandPropertyAssignment(R)&&e.isBinaryExpression(R.parent.parent)&&e.getAssignmentDeclarationKind(R.parent.parent)===2)return oe.getExportSpecifierLocalTargetSymbol(R.name)}return q}function ee(q,oe){return oe.getMergedSymbol(k(q).symbol)}function k(q){if(q.kind===206)return q.getSourceFile();var oe=q.parent;return oe.kind===300?oe:(e.Debug.assert(oe.kind===260),e.cast(oe.parent,b))}function b(q){return q.kind===259&&q.name.kind===10}function ie(q){return q.moduleReference.kind===275&&q.moduleReference.expression.kind===10}})(o=e.FindAllReferences||(e.FindAllReferences={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $;(function(g){g[g.Symbol=0]="Symbol",g[g.Label=1]="Label",g[g.Keyword=2]="Keyword",g[g.This=3]="This",g[g.String=4]="String",g[g.TripleSlashReference=5]="TripleSlashReference"})($=ue.DefinitionKind||(ue.DefinitionKind={}));var Y;(function(g){g[g.Span=0]="Span",g[g.Node=1]="Node",g[g.StringLiteral=2]="StringLiteral",g[g.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",g[g.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"})(Y=ue.EntryKind||(ue.EntryKind={}));function W(g,p){return p===void 0&&(p=1),{kind:p,node:g.name||g,context:ye(g)}}ue.nodeEntry=W;function re(g){return g&&g.kind===void 0}ue.isContextWithStartAndEndNode=re;function ye(g){if(e.isDeclaration(g))return O(g);if(g.parent){if(!e.isDeclaration(g.parent)&&!e.isExportAssignment(g.parent)){if(e.isInJSFile(g)){var p=e.isBinaryExpression(g.parent)?g.parent:e.isAccessExpression(g.parent)&&e.isBinaryExpression(g.parent.parent)&&g.parent.parent.left===g.parent?g.parent.parent:void 0;if(p&&e.getAssignmentDeclarationKind(p)!==0)return O(p)}if(e.isJsxOpeningElement(g.parent)||e.isJsxClosingElement(g.parent))return g.parent.parent;if(e.isJsxSelfClosingElement(g.parent)||e.isLabeledStatement(g.parent)||e.isBreakOrContinueStatement(g.parent))return g.parent;if(e.isStringLiteralLike(g)){var f=e.tryGetImportFromModuleSpecifier(g);if(f){var T=e.findAncestor(f,function(N){return e.isDeclaration(N)||e.isStatement(N)||e.isJSDocTag(N)});return e.isDeclaration(T)?O(T):T}}var m=e.findAncestor(g,e.isComputedPropertyName);return m?O(m.parent):void 0}if(g.parent.name===g||e.isConstructorDeclaration(g.parent)||e.isExportAssignment(g.parent)||(e.isImportOrExportSpecifier(g.parent)||e.isBindingElement(g.parent))&&g.parent.propertyName===g||g.kind===88&&e.hasSyntacticModifier(g.parent,513))return O(g.parent)}}function O(g){if(g)switch(g.kind){case 252:return!e.isVariableDeclarationList(g.parent)||g.parent.declarations.length!==1?g:e.isVariableStatement(g.parent.parent)?g.parent.parent:e.isForInOrOfStatement(g.parent.parent)?O(g.parent.parent):g.parent;case 201:return O(g.parent.parent);case 268:return g.parent.parent.parent;case 273:case 266:return g.parent.parent;case 265:case 272:return g.parent;case 219:return e.isExpressionStatement(g.parent)?g.parent:g;case 242:case 241:return{start:g.initializer,end:g.expression};case 291:case 292:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(g.parent)?O(e.findAncestor(g.parent,function(p){return e.isBinaryExpression(p)||e.isForInOrOfStatement(p)})):g;default:return g}}ue.getContextNode=O;function A(g,p,f){if(f){var T=re(f)?R(f.start,p,f.end):R(f,p);return T.start!==g.start||T.length!==g.length?{contextSpan:T}:void 0}}ue.toContextSpan=A;var D;(function(g){g[g.Other=0]="Other",g[g.References=1]="References",g[g.Rename=2]="Rename"})(D=ue.FindReferencesUse||(ue.FindReferencesUse={}));function de(g,p,f,T,m){var N=e.getTouchingPropertyName(T,m),P=G.getReferencedSymbolsForNode(m,N,g,f,p,{use:1}),x=g.getTypeChecker();return!P||!P.length?void 0:e.mapDefined(P,function(M){var me=M.definition,z=M.references;return me&&{definition:x.runWithCancellationToken(p,function(K){return H(me,K,N)}),references:z.map(b)}})}ue.findReferencedSymbols=de;function _e(g,p,f,T,m){var N=e.getTouchingPropertyName(T,m),P,x=y(g,p,f,N,m);if(N.parent.kind===204||N.parent.kind===201||N.parent.kind===205||N.kind===106)P=x&&Vr([],x,!0);else for(var M=x&&Vr([],x,!0),me=new e.Map;M&&M.length;){var z=M.shift();if(e.addToSeen(me,e.getNodeId(z.node))){P=e.append(P,z);var K=y(g,p,f,z.node,z.node.pos);K&&M.push.apply(M,K)}}var I=g.getTypeChecker();return e.map(P,function(Ae){return oe(Ae,I)})}ue.getImplementationsAtPosition=_e;function y(g,p,f,T,m){if(T.kind!==300){var N=g.getTypeChecker();if(T.parent.kind===292){var P=[];return G.getReferenceEntriesForShorthandPropertyAssignment(T,N,function(M){return P.push(W(M))}),P}else if(T.kind===106||e.isSuperProperty(T.parent)){var x=N.getSymbolAtLocation(T);return x.valueDeclaration&&[W(x.valueDeclaration)]}else return Z(m,T,g,f,p,{implementations:!0,use:1})}}function V(g,p,f,T,m,N,P){return e.map(E(G.getReferencedSymbolsForNode(m,T,g,f,p,N)),function(x){return P(x,T,g.getTypeChecker())})}ue.findReferenceOrRenameEntries=V;function Z(g,p,f,T,m,N,P){return N===void 0&&(N={}),P===void 0&&(P=new e.Set(T.map(function(x){return x.fileName}))),E(G.getReferencedSymbolsForNode(g,p,f,T,m,N,P))}ue.getReferenceEntriesForNode=Z;function E(g){return g&&e.flatMap(g,function(p){return p.references})}function H(g,p,f){var T=function(){switch(g.type){case 0:{var z=g.symbol,K=ee(z,p,f),I=K.displayParts,Ae=K.kind,Oe=I.map(function(Be){return Be.text}).join(""),te=z.declarations&&e.firstOrUndefined(z.declarations),Se=te?e.getNameOfDeclaration(te)||te:f;return Mt(Mt({},L(Se)),{name:Oe,kind:Ae,displayParts:I,context:O(te)})}case 1:{var Se=g.node;return Mt(Mt({},L(Se)),{name:Se.text,kind:"label",displayParts:[e.displayPart(Se.text,e.SymbolDisplayPartKind.text)]})}case 2:{var Se=g.node,be=e.tokenToString(Se.kind);return Mt(Mt({},L(Se)),{name:be,kind:"keyword",displayParts:[{text:be,kind:"keyword"}]})}case 3:{var Se=g.node,z=p.getSymbolAtLocation(Se),Ce=z&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(p,z,Se.getSourceFile(),e.getContainerNode(Se),Se).displayParts||[e.textPart("this")];return Mt(Mt({},L(Se)),{name:"this",kind:"var",displayParts:Ce})}case 4:{var Se=g.node;return Mt(Mt({},L(Se)),{name:Se.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(Se),e.SymbolDisplayPartKind.stringLiteral)]})}case 5:return{textSpan:e.createTextSpanFromRange(g.reference),sourceFile:g.file,name:g.reference.fileName,kind:"string",displayParts:[e.displayPart('"'+g.reference.fileName+'"',e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(g)}}(),m=T.sourceFile,N=T.textSpan,P=T.name,x=T.kind,M=T.displayParts,me=T.context;return Mt({containerKind:"",containerName:"",fileName:m.fileName,kind:x,name:P,textSpan:N,displayParts:M},A(N,m,me))}function L(g){var p=g.getSourceFile();return{sourceFile:p,textSpan:R(e.isComputedPropertyName(g)?g.expression:g,p)}}function ee(g,p,f){var T=G.getIntersectingMeaningFromDeclarations(f,g),m=g.declarations&&e.firstOrUndefined(g.declarations)||f,N=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(p,g,m.getSourceFile(),m,m,T),P=N.displayParts,x=N.symbolKind;return{displayParts:P,kind:x}}function k(g,p,f,T){return Mt(Mt({},ie(g)),T&&q(g,p,f))}ue.toRenameLocation=k;function b(g){var p=ie(g);if(g.kind===0)return Mt(Mt({},p),{isWriteAccess:!1,isDefinition:!1});var f=g.kind,T=g.node;return Mt(Mt({},p),{isWriteAccess:U(T),isDefinition:C(T),isInString:f===2?!0:void 0})}ue.toReferenceEntry=b;function ie(g){if(g.kind===0)return{textSpan:g.textSpan,fileName:g.fileName};var p=g.node.getSourceFile(),f=R(g.node,p);return Mt({textSpan:f,fileName:p.fileName},A(f,p,g.context))}function q(g,p,f){if(g.kind!==0&&e.isIdentifier(p)){var T=g.node,m=g.kind,N=T.parent,P=p.text,x=e.isShorthandPropertyAssignment(N);if(x||e.isObjectBindingElementWithoutPropertyName(N)&&N.name===T&&N.dotDotDotToken===void 0){var M={prefixText:P+": "},me={suffixText:": "+P};if(m===3)return M;if(m===4)return me;if(x){var z=N.parent;return e.isObjectLiteralExpression(z)&&e.isBinaryExpression(z.parent)&&e.isModuleExportsAccessExpression(z.parent.left)?M:me}else return M}else if(e.isImportSpecifier(N)&&!N.propertyName){var K=e.isExportSpecifier(p.parent)?f.getExportSpecifierLocalTargetSymbol(p.parent):f.getSymbolAtLocation(p);return e.contains(K.declarations,N)?{prefixText:P+" as "}:e.emptyOptions}else if(e.isExportSpecifier(N)&&!N.propertyName)return p===g.node||f.getSymbolAtLocation(p)===f.getSymbolAtLocation(g.node)?{prefixText:P+" as "}:{suffixText:" as "+P}}return e.emptyOptions}function oe(g,p){var f=ie(g);if(g.kind!==0){var T=g.node;return Mt(Mt({},f),se(T,p))}else return Mt(Mt({},f),{kind:"",displayParts:[]})}function se(g,p){var f=p.getSymbolAtLocation(e.isDeclaration(g)&&g.name?g.name:g);return f?ee(f,p,g):g.kind===203?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:g.kind===224?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(g),displayParts:[]}}function w(g){var p=ie(g);if(g.kind===0)return{fileName:p.fileName,span:{textSpan:p.textSpan,kind:"reference"}};var f=U(g.node),T=Mt({textSpan:p.textSpan,kind:f?"writtenReference":"reference",isInString:g.kind===2?!0:void 0},p.contextSpan&&{contextSpan:p.contextSpan});return{fileName:p.fileName,span:T}}ue.toHighlightSpan=w;function R(g,p,f){var T=g.getStart(p),m=(f||g).getEnd();return e.isStringLiteralLike(g)&&(e.Debug.assert(f===void 0),T+=1,m-=1),e.createTextSpanFromBounds(T,m)}function ne(g){return g.kind===0?g.textSpan:R(g.node,g.node.getSourceFile())}ue.getTextSpanOfEntry=ne;function U(g){var p=e.getDeclarationFromName(g);return!!p&&d(p)||g.kind===88||e.isWriteAccess(g)}function C(g){return g.kind===88||!!e.getDeclarationFromName(g)||e.isLiteralComputedPropertyDeclarationName(g)||g.kind===133&&e.isConstructorDeclaration(g.parent)}function d(g){if(g.flags&8388608)return!0;switch(g.kind){case 219:case 201:case 255:case 224:case 88:case 258:case 294:case 273:case 265:case 263:case 268:case 256:case 333:case 340:case 283:case 259:case 262:case 266:case 272:case 162:case 292:case 257:case 161:return!0;case 291:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(g.parent);case 254:case 211:case 169:case 167:case 170:case 171:return!!g.body;case 252:case 165:return!!g.initializer||e.isCatchClause(g.parent);case 166:case 164:case 342:case 335:return!1;default:return e.Debug.failBadSyntaxKind(g)}}var G;(function(g){function p(J,Cn,Gn,cn,Rn,Ye,xn){var an,zn;if(Ye===void 0&&(Ye={}),xn===void 0&&(xn=new e.Set(cn.map(function(Ot){return Ot.fileName}))),Ye.use===1?Cn=e.getAdjustedReferenceLocation(Cn):Ye.use===2&&(Cn=e.getAdjustedRenameLocation(Cn)),e.isSourceFile(Cn)){var ir=e.GoToDefinition.getReferenceAtPosition(Cn,J,Gn);if(!(ir!=null&&ir.file))return;var gr=Gn.getTypeChecker().getMergedSymbol(ir.file.symbol);if(gr)return M(Gn,gr,!1,cn,xn);var Dr=Gn.getFileIncludeReasons();return Dr?[{definition:{type:5,reference:ir.reference,file:Cn},references:T(ir.file,Dr,Gn)||e.emptyArray}]:void 0}if(!Ye.implementations){var qr=z(Cn,cn,Rn);if(qr)return qr}var ft=Gn.getTypeChecker(),xt=ft.getSymbolAtLocation(e.isConstructorDeclaration(Cn)&&Cn.parent.name||Cn);if(!xt){if(!Ye.implementations&&e.isStringLiteralLike(Cn)){if(e.isModuleSpecifierLike(Cn)){var Dr=Gn.getFileIncludeReasons(),Kr=(zn=(an=Cn.getSourceFile().resolvedModules)===null||an===void 0?void 0:an.get(Cn.text))===null||zn===void 0?void 0:zn.resolvedFileName,dt=Kr?Gn.getSourceFile(Kr):void 0;if(dt)return[{definition:{type:4,node:Cn},references:T(dt,Dr,Gn)||e.emptyArray}]}return wr(Cn,cn,ft,Rn)}return}if(xt.escapedName==="export=")return M(Gn,xt.parent,!1,cn,xn);var Ur=N(xt,Gn,cn,Rn,Ye,xn);if(Ur&&!(xt.flags&33554432))return Ur;var qt=m(Cn,xt,ft),Cr=qt&&N(qt,Gn,cn,Rn,Ye,xn),Jt=K(xt,Cn,cn,xn,ft,Rn,Ye);return P(Gn,Ur,Jt,Cr)}g.getReferencedSymbolsForNode=p;function f(J,Cn,Gn,cn){var Rn,Ye;cn===void 0&&(cn=new e.Set(Gn.map(function(ir){return ir.fileName})));var xn=(Rn=Cn.getSourceFile(J))===null||Rn===void 0?void 0:Rn.symbol;if(xn)return((Ye=M(Cn,xn,!1,Gn,cn)[0])===null||Ye===void 0?void 0:Ye.references)||e.emptyArray;var an=Cn.getFileIncludeReasons(),zn=Cn.getSourceFile(J);return zn&&an&&T(zn,an,Cn)||e.emptyArray}g.getReferencesForFileName=f;function T(J,Cn,Gn){for(var cn,Rn=Cn.get(J.path)||e.emptyArray,Ye=0,xn=Rn;Ye<xn.length;Ye++){var an=xn[Ye];if(e.isReferencedFile(an)){var zn=Gn.getSourceFileByPath(an.file),ir=e.getReferencedFileLocation(Gn.getSourceFileByPath,an);e.isReferenceFileLocation(ir)&&(cn=e.append(cn,{kind:0,fileName:zn.fileName,textSpan:e.createTextSpanFromRange(ir)}))}}return cn}function m(J,Cn,Gn){if(J.parent&&e.isNamespaceExportDeclaration(J.parent)){var cn=Gn.getAliasedSymbol(Cn),Rn=Gn.getMergedSymbol(cn);if(cn!==Rn)return Rn}}function N(J,Cn,Gn,cn,Rn,Ye){var xn=J.flags&1536&&J.declarations&&e.find(J.declarations,e.isSourceFile);if(xn){var an=J.exports.get("export="),zn=M(Cn,J,!!an,Gn,Ye);if(!an||!Ye.has(xn.fileName))return zn;var ir=Cn.getTypeChecker();return J=e.skipAlias(an,ir),P(Cn,zn,K(J,void 0,Gn,Ye,ir,cn,Rn))}}function P(J){for(var Cn=[],Gn=1;Gn<arguments.length;Gn++)Cn[Gn-1]=arguments[Gn];for(var cn,Rn=0,Ye=Cn;Rn<Ye.length;Rn++){var xn=Ye[Rn];if(!(!xn||!xn.length)){if(!cn){cn=xn;continue}for(var an=function(Dr){if(!Dr.definition||Dr.definition.type!==0)return cn.push(Dr),"continue";var qr=Dr.definition.symbol,ft=e.findIndex(cn,function(Kr){return!!Kr.definition&&Kr.definition.type===0&&Kr.definition.symbol===qr});if(ft===-1)return cn.push(Dr),"continue";var xt=cn[ft];cn[ft]={definition:xt.definition,references:xt.references.concat(Dr.references).sort(function(Kr,dt){var Ur=x(J,Kr),qt=x(J,dt);if(Ur!==qt)return e.compareValues(Ur,qt);var Cr=ne(Kr),Jt=ne(dt);return Cr.start!==Jt.start?e.compareValues(Cr.start,Jt.start):e.compareValues(Cr.length,Jt.length)})}},zn=0,ir=xn;zn<ir.length;zn++){var gr=ir[zn];an(gr)}}}return cn}function x(J,Cn){var Gn=Cn.kind===0?J.getSourceFile(Cn.fileName):Cn.node.getSourceFile();return J.getSourceFiles().indexOf(Gn)}function M(J,Cn,Gn,cn,Rn){e.Debug.assert(!!Cn.valueDeclaration);var Ye=e.mapDefined(ue.findModuleReferences(J,cn,Cn),function(xt){if(xt.kind==="import"){var Kr=xt.literal.parent;if(e.isLiteralTypeNode(Kr)){var dt=e.cast(Kr.parent,e.isImportTypeNode);if(Gn&&!dt.qualifier)return}return W(xt.literal)}else return{kind:0,fileName:xt.referencingFile.fileName,textSpan:e.createTextSpanFromRange(xt.ref)}});if(Cn.declarations)for(var xn=0,an=Cn.declarations;xn<an.length;xn++){var zn=an[xn];switch(zn.kind){case 300:break;case 259:Rn.has(zn.getSourceFile().fileName)&&Ye.push(W(zn.name));break;default:e.Debug.assert(!!(Cn.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var ir=Cn.exports.get("export=");if(ir!=null&&ir.declarations)for(var gr=0,Dr=ir.declarations;gr<Dr.length;gr++){var zn=Dr[gr],qr=zn.getSourceFile();if(Rn.has(qr.fileName)){var ft=e.isBinaryExpression(zn)&&e.isPropertyAccessExpression(zn.left)?zn.left.expression:e.isExportAssignment(zn)?e.Debug.checkDefined(e.findChildOfKind(zn,93,qr)):e.getNameOfDeclaration(zn)||zn;Ye.push(W(ft))}}return Ye.length?[{definition:{type:0,symbol:Cn},references:Ye}]:e.emptyArray}function me(J){return J.kind===143&&e.isTypeOperatorNode(J.parent)&&J.parent.operator===143}function z(J,Cn,Gn){if(e.isTypeKeyword(J.kind))return J.kind===114&&e.isVoidExpression(J.parent)||J.kind===143&&!me(J)?void 0:Un(Cn,J.kind,Gn,J.kind===143?me:void 0);if(e.isStaticModifier(J)&&e.isClassStaticBlockDeclaration(J.parent))return[{definition:{type:2,node:J},references:[W(J)]}];if(e.isJumpStatementTarget(J)){var cn=e.getTargetLabel(J.parent,J.text);return cn&&He(cn.parent,cn)}else if(e.isLabelOfLabeledStatement(J))return He(J.parent,J);if(e.isThis(J))return hr(J,Cn,Gn);if(J.kind===106)return On(J)}function K(J,Cn,Gn,cn,Rn,Ye,xn){var an=Cn&&Oe(J,Cn,Rn,!Bn(xn))||J,zn=Cn?Mn(Cn,an):7,ir=[],gr=new be(Gn,cn,Cn?Ae(Cn):0,Rn,Ye,zn,xn,ir),Dr=!Bn(xn)||!an.declarations?void 0:e.find(an.declarations,e.isExportSpecifier);if(Dr)X(Dr.name,an,Dr,gr.createSearch(Cn,J,void 0),gr,!0,!0);else if(Cn&&Cn.kind===88&&an.escapedName==="default"&&an.parent)Pe(Cn,an,gr),Ce(Cn,an,{exportingModuleSymbol:an.parent,exportKind:1},gr);else{var qr=gr.createSearch(Cn,an,void 0,{allSearchSymbols:Cn?Qr(an,Cn,Rn,xn.use===2,!!xn.providePrefixAndSuffixTextForRename,!!xn.implementations):[an]});I(an,gr,qr)}return ir}function I(J,Cn,Gn){var cn=qe(J);if(cn)En(cn,cn.getSourceFile(),Gn,Cn,!(e.isSourceFile(cn)&&!e.contains(Cn.sourceFiles,cn)));else for(var Rn=0,Ye=Cn.sourceFiles;Rn<Ye.length;Rn++){var xn=Ye[Rn];Cn.cancellationToken.throwIfCancellationRequested(),fe(xn,Gn,Cn)}}function Ae(J){switch(J.kind){case 169:case 133:return 1;case 79:if(e.isClassLike(J.parent))return e.Debug.assert(J.parent.name===J),2;default:return 0}}function Oe(J,Cn,Gn,cn){var Rn=Cn.parent;return e.isExportSpecifier(Rn)&&cn?rn(Cn,J,Rn,Gn):e.firstDefined(J.declarations,function(Ye){if(!Ye.parent){if(J.flags&33554432)return;e.Debug.fail("Unexpected symbol at "+e.Debug.formatSyntaxKind(Cn.kind)+": "+e.Debug.formatSymbol(J))}return e.isTypeLiteralNode(Ye.parent)&&e.isUnionTypeNode(Ye.parent.parent)?Gn.getPropertyOfType(Gn.getTypeFromTypeNode(Ye.parent.parent),J.name):void 0})}var te;(function(J){J[J.None=0]="None",J[J.Constructor=1]="Constructor",J[J.Class=2]="Class"})(te||(te={}));function Se(J){if(J.flags&33555968){var Cn=J.declarations&&e.find(J.declarations,function(Gn){return!e.isSourceFile(Gn)&&!e.isModuleDeclaration(Gn)});return Cn&&Cn.symbol}}var be=function(){function J(Cn,Gn,cn,Rn,Ye,xn,an,zn){this.sourceFiles=Cn,this.sourceFilesSet=Gn,this.specialSearchKind=cn,this.checker=Rn,this.cancellationToken=Ye,this.searchMeaning=xn,this.options=an,this.result=zn,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return J.prototype.includesSourceFile=function(Cn){return this.sourceFilesSet.has(Cn.fileName)},J.prototype.getImportSearches=function(Cn,Gn){return this.importTracker||(this.importTracker=ue.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Cn,Gn,this.options.use===2)},J.prototype.createSearch=function(Cn,Gn,cn,Rn){Rn===void 0&&(Rn={});var Ye=Rn.text,xn=Ye===void 0?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(Gn)||Se(Gn)||Gn)):Ye,an=Rn.allSearchSymbols,zn=an===void 0?[Gn]:an,ir=e.escapeLeadingUnderscores(xn),gr=this.options.implementations&&Cn?Fe(Cn,Gn,this.checker):void 0;return{symbol:Gn,comingFrom:cn,text:xn,escapedText:ir,parents:gr,allSearchSymbols:zn,includes:function(Dr){return e.contains(zn,Dr)}}},J.prototype.referenceAdder=function(Cn){var Gn=e.getSymbolId(Cn),cn=this.symbolIdToReferences[Gn];return cn||(cn=this.symbolIdToReferences[Gn]=[],this.result.push({definition:{type:0,symbol:Cn},references:cn})),function(Rn,Ye){return cn.push(W(Rn,Ye))}},J.prototype.addStringOrCommentReference=function(Cn,Gn){this.result.push({definition:void 0,references:[{kind:0,fileName:Cn,textSpan:Gn}]})},J.prototype.markSearchedSymbols=function(Cn,Gn){for(var cn=e.getNodeId(Cn),Rn=this.sourceFileToSeenSymbols[cn]||(this.sourceFileToSeenSymbols[cn]=new e.Set),Ye=!1,xn=0,an=Gn;xn<an.length;xn++){var zn=an[xn];Ye=e.tryAddToSet(Rn,e.getSymbolId(zn))||Ye}return Ye},J}();function Ce(J,Cn,Gn,cn){var Rn=cn.getImportSearches(Cn,Gn),Ye=Rn.importSearches,xn=Rn.singleReferences,an=Rn.indirectUsers;if(xn.length)for(var zn=cn.referenceAdder(Cn),ir=0,gr=xn;ir<gr.length;ir++){var Dr=gr[ir];De(Dr,cn)&&zn(Dr)}for(var qr=0,ft=Ye;qr<ft.length;qr++){var xt=ft[qr],Kr=xt[0],dt=xt[1];fn(Kr.getSourceFile(),cn.createSearch(Kr,dt,1),cn)}if(an.length){var Ur=void 0;switch(Gn.exportKind){case 0:Ur=cn.createSearch(J,Cn,1);break;case 1:Ur=cn.options.use===2?void 0:cn.createSearch(J,Cn,1,{text:"default"});break;case 2:break}if(Ur)for(var qt=0,Cr=an;qt<Cr.length;qt++){var Jt=Cr[qt];fe(Jt,Ur,cn)}}}function Be(J,Cn,Gn,cn,Rn,Ye,xn,an){for(var zn=ue.createImportTracker(J,new e.Set(J.map(function(Ya){return Ya.fileName})),Cn,Gn),ir=zn(cn,{exportKind:xn?1:0,exportingModuleSymbol:Rn},!1),gr=ir.importSearches,Dr=ir.indirectUsers,qr=0,ft=gr;qr<ft.length;qr++){var xt=ft[qr][0];an(xt)}for(var Kr=0,dt=Dr;Kr<dt.length;Kr++)for(var Ur=dt[Kr],qt=0,Cr=Qe(Ur,xn?"default":Ye);qt<Cr.length;qt++){var Jt=Cr[qt],Ot=Cn.getSymbolAtLocation(Jt),ri=e.some(Ot==null?void 0:Ot.declarations,function(Ya){return!!e.tryCast(Ya,e.isExportAssignment)});e.isIdentifier(Jt)&&!e.isImportOrExportSpecifier(Jt.parent)&&(Ot===cn||ri)&&an(Jt)}}g.eachExportReference=Be;function De(J,Cn){return i(J,Cn)?Cn.options.use!==2?!0:e.isIdentifier(J)?!(e.isImportOrExportSpecifier(J.parent)&&J.escapedText==="default"):!1:!1}function en(J,Cn){if(J.declarations)for(var Gn=0,cn=J.declarations;Gn<cn.length;Gn++){var Rn=cn[Gn],Ye=Rn.getSourceFile();fn(Ye,Cn.createSearch(Rn,J,0),Cn,Cn.includesSourceFile(Ye))}}function fe(J,Cn,Gn){e.getNameTable(J).get(Cn.escapedText)!==void 0&&fn(J,Cn,Gn)}function Ne(J,Cn){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(J.parent.parent)?Cn.getPropertySymbolOfDestructuringAssignment(J):void 0}function qe(J){var Cn=J.declarations,Gn=J.flags,cn=J.parent,Rn=J.valueDeclaration;if(Rn&&(Rn.kind===211||Rn.kind===224))return Rn;if(Cn){if(Gn&8196){var Ye=e.find(Cn,function(ft){return e.hasEffectiveModifier(ft,8)||e.isPrivateIdentifierClassElementDeclaration(ft)});return Ye?e.getAncestor(Ye,255):void 0}if(!Cn.some(e.isObjectBindingElementWithoutPropertyName)){var xn=cn&&!(J.flags&262144);if(!(xn&&!(e.isExternalModuleSymbol(cn)&&!cn.globalExports))){for(var an,zn=0,ir=Cn;zn<ir.length;zn++){var gr=ir[zn],Dr=e.getContainerNode(gr);if(an&&an!==Dr||!Dr||Dr.kind===300&&!e.isExternalOrCommonJsModule(Dr))return;if(an=Dr,e.isFunctionExpression(an))for(var qr=void 0;qr=e.getNextJSDocCommentLocation(an);)an=qr}return xn?an.getSourceFile():an}}}}function pe(J,Cn,Gn,cn){return cn===void 0&&(cn=Gn),we(J,Cn,Gn,function(){return!0},cn)||!1}g.isSymbolReferencedInFile=pe;function we(J,Cn,Gn,cn,Rn){Rn===void 0&&(Rn=Gn);var Ye=e.isParameterPropertyDeclaration(J.parent,J.parent.parent)?e.first(Cn.getSymbolsOfParameterPropertyDeclaration(J.parent,J.text)):Cn.getSymbolAtLocation(J);if(Ye)for(var xn=0,an=Qe(Gn,Ye.name,Rn);xn<an.length;xn++){var zn=an[xn];if(!(!e.isIdentifier(zn)||zn===J||zn.escapedText!==J.escapedText)){var ir=Cn.getSymbolAtLocation(zn);if(ir===Ye||Cn.getShorthandAssignmentValueSymbol(zn.parent)===Ye||e.isExportSpecifier(zn.parent)&&rn(zn,ir,zn.parent,Cn)===Ye){var gr=cn(zn);if(gr)return gr}}}}g.eachSymbolReferenceInFile=we;function pn(J,Cn,Gn,cn){if(!J.name||!e.isIdentifier(J.name))return!1;for(var Rn=e.Debug.checkDefined(Gn.getSymbolAtLocation(J.name)),Ye=0,xn=Cn;Ye<xn.length;Ye++)for(var an=xn[Ye],zn=0,ir=Qe(an,Rn.name);zn<ir.length;zn++){var gr=ir[zn];if(!(!e.isIdentifier(gr)||gr===J.name||gr.escapedText!==J.name.escapedText)){var Dr=e.climbPastPropertyAccess(gr),qr=e.isCallExpression(Dr.parent)&&Dr.parent.expression===Dr?Dr.parent:void 0,ft=Gn.getSymbolAtLocation(gr);if(ft&&Gn.getRootSymbols(ft).some(function(xt){return xt===Rn})&&cn(gr,qr))return!0}}return!1}g.someSignatureUsage=pn;function Qe(J,Cn,Gn){return Gn===void 0&&(Gn=J),Re(J,Cn,Gn).map(function(cn){return e.getTouchingPropertyName(J,cn)})}function Re(J,Cn,Gn){Gn===void 0&&(Gn=J);var cn=[];if(!Cn||!Cn.length)return cn;for(var Rn=J.text,Ye=Rn.length,xn=Cn.length,an=Rn.indexOf(Cn,Gn.pos);an>=0&&!(an>Gn.end);){var zn=an+xn;(an===0||!e.isIdentifierPart(Rn.charCodeAt(an-1),99))&&(zn===Ye||!e.isIdentifierPart(Rn.charCodeAt(zn),99))&&cn.push(an),an=Rn.indexOf(Cn,an+xn+1)}return cn}function He(J,Cn){var Gn=J.getSourceFile(),cn=Cn.text,Rn=e.mapDefined(Qe(Gn,cn,J),function(Ye){return Ye===Cn||e.isJumpStatementTarget(Ye)&&e.getTargetLabel(Ye,cn)===Cn?W(Ye):void 0});return[{definition:{type:1,node:Cn},references:Rn}]}function Ln(J,Cn){switch(J.kind){case 80:if(e.isJSDocMemberName(J.parent))return!0;case 79:return J.text.length===Cn.length;case 14:case 10:{var Gn=J;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(Gn)||e.isNameOfModuleDeclaration(J)||e.isExpressionOfExternalModuleImportEqualsDeclaration(J)||e.isCallExpression(J.parent)&&e.isBindableObjectDefinePropertyCall(J.parent)&&J.parent.arguments[1]===J)&&Gn.text.length===Cn.length}case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(J)&&J.text.length===Cn.length;case 88:return Cn.length===7;default:return!1}}function Un(J,Cn,Gn,cn){var Rn=e.flatMap(J,function(Ye){return Gn.throwIfCancellationRequested(),e.mapDefined(Qe(Ye,e.tokenToString(Cn),Ye),function(xn){if(xn.kind===Cn&&(!cn||cn(xn)))return W(xn)})});return Rn.length?[{definition:{type:2,node:Rn[0].node},references:Rn}]:void 0}function fn(J,Cn,Gn,cn){return cn===void 0&&(cn=!0),Gn.cancellationToken.throwIfCancellationRequested(),En(J,J,Cn,Gn,cn)}function En(J,Cn,Gn,cn,Rn){if(cn.markSearchedSymbols(Cn,Gn.allSearchSymbols))for(var Ye=0,xn=Re(Cn,Gn.text,J);Ye<xn.length;Ye++){var an=xn[Ye];In(Cn,an,Gn,cn,Rn)}}function i(J,Cn){return!!(e.getMeaningFromLocation(J)&Cn.searchMeaning)}function In(J,Cn,Gn,cn,Rn){var Ye=e.getTouchingPropertyName(J,Cn);if(!Ln(Ye,Gn.text)){!cn.options.implementations&&(cn.options.findInStrings&&e.isInString(J,Cn)||cn.options.findInComments&&e.isInNonReferenceComment(J,Cn))&&cn.addStringOrCommentReference(J.fileName,e.createTextSpan(Cn,Gn.text.length));return}if(i(Ye,cn)){var xn=cn.checker.getSymbolAtLocation(Ye);if(xn){var an=Ye.parent;if(!(e.isImportSpecifier(an)&&an.propertyName===Ye)){if(e.isExportSpecifier(an)){e.Debug.assert(Ye.kind===79),X(Ye,xn,an,Gn,cn,Rn);return}var zn=Me(Gn,xn,Ye,cn);if(!zn){le(xn,Gn,cn);return}switch(cn.specialSearchKind){case 0:Rn&&Pe(Ye,zn,cn);break;case 1:xe(Ye,J,Gn,cn);break;case 2:Ze(Ye,Gn,cn);break;default:e.Debug.assertNever(cn.specialSearchKind)}xn=e.isInJSFile(Ye)&&Ye.parent.kind===201&&e.isRequireVariableDeclaration(Ye.parent)?Ye.parent.symbol:xn,Vn(Ye,xn,Gn,cn)}}}}function X(J,Cn,Gn,cn,Rn,Ye,xn){e.Debug.assert(!xn||!!Rn.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var an=Gn.parent,zn=Gn.propertyName,ir=Gn.name,gr=an.parent,Dr=rn(J,Cn,Gn,Rn.checker);if(!xn&&!cn.includes(Dr))return;if(zn?J===zn?(gr.moduleSpecifier||Ur(),Ye&&Rn.options.use!==2&&Rn.markSeenReExportRHS(ir)&&Pe(ir,e.Debug.checkDefined(Gn.symbol),Rn)):Rn.markSeenReExportRHS(J)&&Ur():Rn.options.use===2&&ir.escapedText==="default"||Ur(),!Bn(Rn.options)||xn){var qr=J.originalKeywordKind===88||Gn.name.originalKeywordKind===88,ft=qr?1:0,xt=e.Debug.checkDefined(Gn.symbol),Kr=ue.getExportInfo(xt,ft,Rn.checker);Kr&&Ce(J,xt,Kr,Rn)}if(cn.comingFrom!==1&&gr.moduleSpecifier&&!zn&&!Bn(Rn.options)){var dt=Rn.checker.getExportSpecifierLocalTargetSymbol(Gn);dt&&en(dt,Rn)}function Ur(){Ye&&Pe(J,Dr,Rn)}}function rn(J,Cn,Gn,cn){return $n(J,Gn)&&cn.getExportSpecifierLocalTargetSymbol(Gn)||Cn}function $n(J,Cn){var Gn=Cn.parent,cn=Cn.propertyName,Rn=Cn.name;return e.Debug.assert(cn===J||Rn===J),cn?cn===J:!Gn.parent.moduleSpecifier}function Vn(J,Cn,Gn,cn){var Rn=ue.getImportOrExportSymbol(J,Cn,cn.checker,Gn.comingFrom===1);if(Rn){var Ye=Rn.symbol;Rn.kind===0?Bn(cn.options)||en(Ye,cn):Ce(J,Ye,Rn.exportInfo,cn)}}function le(J,Cn,Gn){var cn=J.flags,Rn=J.valueDeclaration,Ye=Gn.checker.getShorthandAssignmentValueSymbol(Rn),xn=Rn&&e.getNameOfDeclaration(Rn);!(cn&33554432)&&xn&&Cn.includes(Ye)&&Pe(xn,Ye,Gn)}function Pe(J,Cn,Gn){var cn="kind"in Cn?Cn:{kind:void 0,symbol:Cn},Rn=cn.kind,Ye=cn.symbol,xn=Gn.referenceAdder(Ye);Gn.options.implementations?gn(J,xn,Gn):xn(J,Rn)}function xe(J,Cn,Gn,cn){e.isNewExpressionTarget(J)&&Pe(J,Gn.symbol,cn);var Rn=function(){return cn.referenceAdder(Gn.symbol)};if(e.isClassLike(J.parent))e.Debug.assert(J.kind===88||J.parent.name===J),hn(Gn.symbol,Cn,Rn());else{var Ye=cr(J);Ye&&($e(Ye,Rn()),Ue(Ye,cn))}}function Ze(J,Cn,Gn){Pe(J,Cn.symbol,Gn);var cn=J.parent;if(!(Gn.options.use===2||!e.isClassLike(cn))){e.Debug.assert(cn.name===J);for(var Rn=Gn.referenceAdder(Cn.symbol),Ye=0,xn=cn.members;Ye<xn.length;Ye++){var an=xn[Ye];e.isMethodOrAccessor(an)&&e.isStatic(an)&&an.body&&an.body.forEachChild(function zn(ir){ir.kind===108?Rn(ir):!e.isFunctionLike(ir)&&!e.isClassLike(ir)&&ir.forEachChild(zn)})}}}function hn(J,Cn,Gn){var cn=Le(J);if(cn&&cn.declarations)for(var Rn=0,Ye=cn.declarations;Rn<Ye.length;Rn++){var xn=Ye[Rn],an=e.findChildOfKind(xn,133,Cn);e.Debug.assert(xn.kind===169&&!!an),Gn(an)}J.exports&&J.exports.forEach(function(zn){var ir=zn.valueDeclaration;if(ir&&ir.kind===167){var gr=ir.body;gr&&yr(gr,108,function(Dr){e.isNewExpressionTarget(Dr)&&Gn(Dr)})}})}function Le(J){return J.members&&J.members.get("__constructor")}function $e(J,Cn){var Gn=Le(J.symbol);if(Gn&&Gn.declarations)for(var cn=0,Rn=Gn.declarations;cn<Rn.length;cn++){var Ye=Rn[cn];e.Debug.assert(Ye.kind===169);var xn=Ye.body;xn&&yr(xn,106,function(an){e.isCallExpressionTarget(an)&&Cn(an)})}}function An(J){return!!Le(J.symbol)}function Ue(J,Cn){if(!An(J)){var Gn=J.symbol,cn=Cn.createSearch(void 0,Gn,void 0);I(Gn,Cn,cn)}}function gn(J,Cn,Gn){if(e.isDeclarationName(J)&&ar(J.parent)){Cn(J);return}if(J.kind!==79)return;J.parent.kind===292&&Xn(J,Gn.checker,Cn);var cn=Wn(J);if(cn){Cn(cn);return}var Rn=e.findAncestor(J,function(zn){return!e.isQualifiedName(zn.parent)&&!e.isTypeNode(zn.parent)&&!e.isTypeElement(zn.parent)}),Ye=Rn.parent;if(e.hasType(Ye)&&Ye.type===Rn&&Gn.markSeenContainingTypeReference(Ye))if(e.hasInitializer(Ye))an(Ye.initializer);else if(e.isFunctionLike(Ye)&&Ye.body){var xn=Ye.body;xn.kind===233?e.forEachReturnStatement(xn,function(zn){zn.expression&&an(zn.expression)}):an(xn)}else e.isAssertionExpression(Ye)&&an(Ye.expression);function an(zn){ze(zn)&&Cn(zn)}}function Wn(J){return e.isIdentifier(J)||e.isPropertyAccessExpression(J)?Wn(J.parent):e.isExpressionWithTypeArguments(J)?e.tryCast(J.parent.parent,e.isClassLike):void 0}function ze(J){switch(J.kind){case 210:return ze(J.expression);case 212:case 211:case 203:case 224:case 202:return!0;default:return!1}}function Tn(J,Cn,Gn,cn){if(J===Cn)return!0;var Rn=e.getSymbolId(J)+","+e.getSymbolId(Cn),Ye=Gn.get(Rn);if(Ye!==void 0)return Ye;Gn.set(Rn,!1);var xn=!!J.declarations&&J.declarations.some(function(an){return e.getAllSuperTypeNodes(an).some(function(zn){var ir=cn.getTypeAtLocation(zn);return!!ir&&!!ir.symbol&&Tn(ir.symbol,Cn,Gn,cn)})});return Gn.set(Rn,xn),xn}function On(J){var Cn=e.getSuperContainer(J,!1);if(Cn){var Gn=32;switch(Cn.kind){case 165:case 164:case 167:case 166:case 169:case 170:case 171:Gn&=e.getSyntacticModifierFlags(Cn),Cn=Cn.parent;break;default:return}var cn=Cn.getSourceFile(),Rn=e.mapDefined(Qe(cn,"super",Cn),function(Ye){if(Ye.kind===106){var xn=e.getSuperContainer(Ye,!1);return xn&&e.isStatic(xn)===!!Gn&&xn.parent.symbol===Cn.symbol?W(Ye):void 0}});return[{definition:{type:0,symbol:Cn.symbol},references:Rn}]}}function ur(J){return J.kind===79&&J.parent.kind===162&&J.parent.name===J}function hr(J,Cn,Gn){var cn=e.getThisContainer(J,!1),Rn=32;switch(cn.kind){case 167:case 166:if(e.isObjectLiteralMethod(cn)){Rn&=e.getSyntacticModifierFlags(cn),cn=cn.parent;break}case 165:case 164:case 169:case 170:case 171:Rn&=e.getSyntacticModifierFlags(cn),cn=cn.parent;break;case 300:if(e.isExternalModule(cn)||ur(J))return;case 254:case 211:break;default:return}var Ye=e.flatMap(cn.kind===300?Cn:[cn.getSourceFile()],function(an){return Gn.throwIfCancellationRequested(),Qe(an,"this",e.isSourceFile(cn)?an:cn).filter(function(zn){if(!e.isThis(zn))return!1;var ir=e.getThisContainer(zn,!1);switch(cn.kind){case 211:case 254:return cn.symbol===ir.symbol;case 167:case 166:return e.isObjectLiteralMethod(cn)&&cn.symbol===ir.symbol;case 224:case 255:case 203:return ir.parent&&cn.symbol===ir.parent.symbol&&e.isStatic(ir)===!!Rn;case 300:return ir.kind===300&&!e.isExternalModule(ir)&&!ur(zn)}})}).map(function(an){return W(an)}),xn=e.firstDefined(Ye,function(an){return e.isParameter(an.node.parent)?an.node:void 0});return[{definition:{type:3,node:xn||J},references:Ye}]}function wr(J,Cn,Gn,cn){var Rn=e.getContextualTypeOrAncestorTypeNodeType(J,Gn),Ye=e.flatMap(Cn,function(xn){return cn.throwIfCancellationRequested(),e.mapDefined(Qe(xn,J.text),function(an){if(e.isStringLiteralLike(an)&&an.text===J.text)if(Rn){var zn=e.getContextualTypeOrAncestorTypeNodeType(an,Gn);if(Rn!==Gn.getStringType()&&Rn===zn)return W(an,2)}else return W(an,2)})});return[{definition:{type:4,node:J},references:Ye}]}function Qr(J,Cn,Gn,cn,Rn,Ye){var xn=[];return Ke(J,Cn,Gn,cn,!(cn&&Rn),function(an,zn,ir){ir&&Zn(J)!==Zn(ir)&&(ir=void 0),xn.push(ir||zn||an)},function(){return!Ye}),xn}function Ke(J,Cn,Gn,cn,Rn,Ye,xn){var an=e.getContainingObjectLiteralElement(Cn);if(an){var zn=Gn.getShorthandAssignmentValueSymbol(Cn.parent);if(zn&&cn)return Ye(zn,void 0,void 0,3);var ir=Gn.getContextualType(an.parent),gr=ir&&e.firstDefined(e.getPropertySymbolsFromContextualType(an,Gn,ir,!0),function(za){return Ya(za,4)});if(gr)return gr;var Dr=Ne(Cn,Gn),qr=Dr&&Ye(Dr,void 0,void 0,4);if(qr)return qr;var ft=zn&&Ye(zn,void 0,void 0,3);if(ft)return ft}var xt=m(Cn,J,Gn);if(xt){var Kr=Ye(xt,void 0,void 0,1);if(Kr)return Kr}var dt=Ya(J);if(dt)return dt;if(J.valueDeclaration&&e.isParameterPropertyDeclaration(J.valueDeclaration,J.valueDeclaration.parent)){var Ur=Gn.getSymbolsOfParameterPropertyDeclaration(e.cast(J.valueDeclaration,e.isParameter),J.name);return e.Debug.assert(Ur.length===2&&!!(Ur[0].flags&1)&&!!(Ur[1].flags&4)),Ya(J.flags&1?Ur[1]:Ur[0])}var qt=e.getDeclarationOfKind(J,273);if(!cn||qt&&!qt.propertyName){var Cr=qt&&Gn.getExportSpecifierLocalTargetSymbol(qt);if(Cr){var Jt=Ye(Cr,void 0,void 0,1);if(Jt)return Jt}}if(!cn){var Ot=void 0;return Rn?Ot=e.isObjectBindingElementWithoutPropertyName(Cn.parent)?e.getPropertySymbolFromBindingElement(Gn,Cn.parent):void 0:Ot=eo(J,Gn),Ot&&Ya(Ot,4)}e.Debug.assert(cn);var ri=Rn;if(ri){var Ot=eo(J,Gn);return Ot&&Ya(Ot,4)}function Ya(za,ua){return e.firstDefined(Gn.getRootSymbols(za),function(Ar){return Ye(za,Ar,void 0,ua)||(Ar.parent&&Ar.parent.flags&96&&xn(Ar)?jn(Ar.parent,Ar.name,Gn,function(at){return Ye(za,Ar,at,ua)}):void 0)})}function eo(za,ua){var Ar=e.getDeclarationOfKind(za,201);if(Ar&&e.isObjectBindingElementWithoutPropertyName(Ar))return e.getPropertySymbolFromBindingElement(ua,Ar)}}function jn(J,Cn,Gn,cn){var Rn=new e.Map;return Ye(J);function Ye(xn){if(!(!(xn.flags&96)||!e.addToSeen(Rn,e.getSymbolId(xn))))return e.firstDefined(xn.declarations,function(an){return e.firstDefined(e.getAllSuperTypeNodes(an),function(zn){var ir=Gn.getTypeAtLocation(zn),gr=ir&&ir.symbol&&Gn.getPropertyOfType(ir,Cn);return ir&&gr&&(e.firstDefined(Gn.getRootSymbols(gr),cn)||Ye(ir.symbol))})})}}function Zn(J){if(!J.valueDeclaration)return!1;var Cn=e.getEffectiveModifierFlags(J.valueDeclaration);return!!(Cn&32)}function Me(J,Cn,Gn,cn){var Rn=cn.checker;return Ke(Cn,Gn,Rn,!1,cn.options.use!==2||!!cn.options.providePrefixAndSuffixTextForRename,function(Ye,xn,an,zn){return an&&Zn(Cn)!==Zn(an)&&(an=void 0),J.includes(an||xn||Ye)?{symbol:xn&&!(e.getCheckFlags(Ye)&6)?xn:Ye,kind:zn}:void 0},function(Ye){return!(J.parents&&!J.parents.some(function(xn){return Tn(Ye.parent,xn,cn.inheritsFromCache,Rn)}))})}function Mn(J,Cn){var Gn=e.getMeaningFromLocation(J),cn=Cn.declarations;if(cn){var Rn=void 0;do{Rn=Gn;for(var Ye=0,xn=cn;Ye<xn.length;Ye++){var an=xn[Ye],zn=e.getMeaningFromDeclaration(an);zn&Gn&&(Gn|=zn)}}while(Gn!==Rn)}return Gn}g.getIntersectingMeaningFromDeclarations=Mn;function ar(J){return J.flags&8388608?!(e.isInterfaceDeclaration(J)||e.isTypeAliasDeclaration(J)):e.isVariableLike(J)?e.hasInitializer(J):e.isFunctionLikeDeclaration(J)?!!J.body:e.isClassLike(J)||e.isModuleOrEnumDeclaration(J)}function Xn(J,Cn,Gn){var cn=Cn.getSymbolAtLocation(J),Rn=Cn.getShorthandAssignmentValueSymbol(cn.valueDeclaration);if(Rn)for(var Ye=0,xn=Rn.getDeclarations();Ye<xn.length;Ye++){var an=xn[Ye];e.getMeaningFromDeclaration(an)&1&&Gn(an)}}g.getReferenceEntriesForShorthandPropertyAssignment=Xn;function yr(J,Cn,Gn){e.forEachChild(J,function(cn){cn.kind===Cn&&Gn(cn),yr(cn,Cn,Gn)})}function cr(J){return e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(J).parent)}function Fe(J,Cn,Gn){var cn=e.isRightSideOfPropertyAccess(J)?J.parent:void 0,Rn=cn&&Gn.getTypeAtLocation(cn.expression),Ye=e.mapDefined(Rn&&(Rn.isUnionOrIntersection()?Rn.types:Rn.symbol===Cn.parent?void 0:[Rn]),function(xn){return xn.symbol&&xn.symbol.flags&96?xn.symbol:void 0});return Ye.length===0?void 0:Ye}function Bn(J){return J.use===2&&J.providePrefixAndSuffixTextForRename}})(G=ue.Core||(ue.Core={}))})(o=e.FindAllReferences||(e.FindAllReferences={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(g){return(e.isFunctionExpression(g)||e.isClassExpression(g))&&e.isNamedDeclaration(g)}function Y(g){return(e.isFunctionExpression(g)||e.isArrowFunction(g)||e.isClassExpression(g))&&e.isVariableDeclaration(g.parent)&&g===g.parent.initializer&&e.isIdentifier(g.parent.name)&&!!(e.getCombinedNodeFlags(g.parent)&2)}function W(g){return e.isSourceFile(g)||e.isModuleDeclaration(g)||e.isFunctionDeclaration(g)||e.isFunctionExpression(g)||e.isClassDeclaration(g)||e.isClassExpression(g)||e.isClassStaticBlockDeclaration(g)||e.isMethodDeclaration(g)||e.isMethodSignature(g)||e.isGetAccessorDeclaration(g)||e.isSetAccessorDeclaration(g)}function re(g){return e.isSourceFile(g)||e.isModuleDeclaration(g)&&e.isIdentifier(g.name)||e.isFunctionDeclaration(g)||e.isClassDeclaration(g)||e.isClassStaticBlockDeclaration(g)||e.isMethodDeclaration(g)||e.isMethodSignature(g)||e.isGetAccessorDeclaration(g)||e.isSetAccessorDeclaration(g)||$(g)||Y(g)}function ye(g){return e.isSourceFile(g)?g:e.isNamedDeclaration(g)?g.name:Y(g)?g.parent.name:e.Debug.checkDefined(g.modifiers&&e.find(g.modifiers,O))}function O(g){return g.kind===88}function A(g,p){var f=ye(p);return f&&g.getSymbolAtLocation(f)}function D(g,p){if(e.isSourceFile(p))return{text:p.fileName,pos:0,end:0};if((e.isFunctionDeclaration(p)||e.isClassDeclaration(p))&&!e.isNamedDeclaration(p)){var f=p.modifiers&&e.find(p.modifiers,O);if(f)return{text:"default",pos:f.getStart(),end:f.getEnd()}}if(e.isClassStaticBlockDeclaration(p)){var T=p.getSourceFile(),m=e.skipTrivia(T.text,e.moveRangePastModifiers(p).pos),N=m+6,P=g.getTypeChecker(),x=P.getSymbolAtLocation(p.parent),M=x?P.symbolToString(x,p.parent)+" ":"";return{text:M+"static {}",pos:m,end:N}}var me=Y(p)?p.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(p),"Expected call hierarchy item to have a name"),z=e.isIdentifier(me)?e.idText(me):e.isStringOrNumericLiteralLike(me)?me.text:e.isComputedPropertyName(me)&&e.isStringOrNumericLiteralLike(me.expression)?me.expression.text:void 0;if(z===void 0){var P=g.getTypeChecker(),x=P.getSymbolAtLocation(me);x&&(z=P.symbolToString(x,p))}if(z===void 0){var K=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});z=e.usingSingleLineStringWriter(function(I){return K.writeNode(4,p,p.getSourceFile(),I)})}return{text:z,pos:me.getStart(),end:me.getEnd()}}function de(g){var p,f;if(Y(g))return e.isModuleBlock(g.parent.parent.parent.parent)&&e.isIdentifier(g.parent.parent.parent.parent.parent.name)?g.parent.parent.parent.parent.parent.name.getText():void 0;switch(g.kind){case 170:case 171:case 167:return g.parent.kind===203?(p=e.getAssignedName(g.parent))===null||p===void 0?void 0:p.getText():(f=e.getNameOfDeclaration(g.parent))===null||f===void 0?void 0:f.getText();case 254:case 255:case 259:if(e.isModuleBlock(g.parent)&&e.isIdentifier(g.parent.parent.name))return g.parent.parent.name.getText()}}function _e(g,p){if(p.body)return p;if(e.isConstructorDeclaration(p))return e.getFirstConstructorWithBody(p.parent);if(e.isFunctionDeclaration(p)||e.isMethodDeclaration(p)){var f=A(g,p);return f&&f.valueDeclaration&&e.isFunctionLikeDeclaration(f.valueDeclaration)&&f.valueDeclaration.body?f.valueDeclaration:void 0}return p}function y(g,p){var f=A(g,p),T;if(f&&f.declarations){var m=e.indicesOf(f.declarations),N=e.map(f.declarations,function(K){return{file:K.getSourceFile().fileName,pos:K.pos}});m.sort(function(K,I){return e.compareStringsCaseSensitive(N[K].file,N[I].file)||N[K].pos-N[I].pos});for(var P=e.map(m,function(K){return f.declarations[K]}),x=void 0,M=0,me=P;M<me.length;M++){var z=me[M];re(z)&&((!x||x.parent!==z.parent||x.end!==z.pos)&&(T=e.append(T,z)),x=z)}}return T}function V(g,p){var f,T,m;return e.isClassStaticBlockDeclaration(p)?p:e.isFunctionLikeDeclaration(p)?(T=(f=_e(g,p))!==null&&f!==void 0?f:y(g,p))!==null&&T!==void 0?T:p:(m=y(g,p))!==null&&m!==void 0?m:p}function Z(g,p){for(var f=g.getTypeChecker(),T=!1;;){if(re(p))return V(f,p);if(W(p)){var m=e.findAncestor(p,re);return m&&V(f,m)}if(e.isDeclarationName(p)){if(re(p.parent))return V(f,p.parent);if(W(p.parent)){var m=e.findAncestor(p.parent,re);return m&&V(f,m)}return e.isVariableDeclaration(p.parent)&&p.parent.initializer&&Y(p.parent.initializer)?p.parent.initializer:void 0}if(e.isConstructorDeclaration(p))return re(p.parent)?p.parent:void 0;if(p.kind===124&&e.isClassStaticBlockDeclaration(p.parent)){p=p.parent;continue}if(e.isVariableDeclaration(p)&&p.initializer&&Y(p.initializer))return p.initializer;if(!T){var N=f.getSymbolAtLocation(p);if(N&&(N.flags&2097152&&(N=f.getAliasedSymbol(N)),N.valueDeclaration)){T=!0,p=N.valueDeclaration;continue}}return}}ue.resolveCallHierarchyDeclaration=Z;function E(g,p){var f=p.getSourceFile(),T=D(g,p),m=de(p),N=e.getNodeKind(p),P=e.getNodeModifiers(p),x=e.createTextSpanFromBounds(e.skipTrivia(f.text,p.getFullStart(),!1,!0),p.getEnd()),M=e.createTextSpanFromBounds(T.pos,T.end);return{file:f.fileName,kind:N,kindModifiers:P,name:T.text,containerName:m,span:x,selectionSpan:M}}ue.createCallHierarchyItem=E;function H(g){return g!==void 0}function L(g){if(g.kind===1){var p=g.node;if(e.isCallOrNewExpressionTarget(p,!0,!0)||e.isTaggedTemplateTag(p,!0,!0)||e.isDecoratorTarget(p,!0,!0)||e.isJsxOpeningLikeElementTagName(p,!0,!0)||e.isRightSideOfPropertyAccess(p)||e.isArgumentExpressionOfElementAccess(p)){var f=p.getSourceFile(),T=e.findAncestor(p,re)||f;return{declaration:T,range:e.createTextRangeFromNode(p,f)}}}}function ee(g){return e.getNodeId(g.declaration)}function k(g,p){return{from:g,fromSpans:p}}function b(g,p){return k(E(g,p[0].declaration),e.map(p,function(f){return e.createTextSpanFromRange(f.range)}))}function ie(g,p,f){if(e.isSourceFile(p)||e.isModuleDeclaration(p)||e.isClassStaticBlockDeclaration(p))return[];var T=ye(p),m=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(g,f,g.getSourceFiles(),T,0,{use:1},L),H);return m?e.group(m,ee,function(N){return b(g,N)}):[]}ue.getIncomingCalls=ie;function q(g,p){function f(m){var N=e.isTaggedTemplateExpression(m)?m.tag:e.isJsxOpeningLikeElement(m)?m.tagName:e.isAccessExpression(m)||e.isClassStaticBlockDeclaration(m)?m:m.expression,P=Z(g,N);if(P){var x=e.createTextRangeFromNode(N,m.getSourceFile());if(e.isArray(P))for(var M=0,me=P;M<me.length;M++){var z=me[M];p.push({declaration:z,range:x})}else p.push({declaration:P,range:x})}}function T(m){if(m&&!(m.flags&8388608)){if(re(m)){if(e.isClassLike(m))for(var N=0,P=m.members;N<P.length;N++){var x=P[N];x.name&&e.isComputedPropertyName(x.name)&&T(x.name.expression)}return}switch(m.kind){case 79:case 263:case 264:case 270:case 256:case 257:return;case 168:f(m);return;case 209:case 227:T(m.expression);return;case 252:case 162:T(m.name),T(m.initializer);return;case 206:f(m),T(m.expression),e.forEach(m.arguments,T);return;case 207:f(m),T(m.expression),e.forEach(m.arguments,T);return;case 208:f(m),T(m.tag),T(m.template);return;case 278:case 277:f(m),T(m.tagName),T(m.attributes);return;case 163:f(m),T(m.expression);return;case 204:case 205:f(m),e.forEachChild(m,T);break}e.isPartOfTypeNode(m)||e.forEachChild(m,T)}}return T}function oe(g,p){e.forEach(g.statements,p)}function se(g,p){!e.hasSyntacticModifier(g,2)&&g.body&&e.isModuleBlock(g.body)&&e.forEach(g.body.statements,p)}function w(g,p,f){var T=_e(g,p);T&&(e.forEach(T.parameters,f),f(T.body))}function R(g,p){p(g.body)}function ne(g,p){e.forEach(g.decorators,p);var f=e.getClassExtendsHeritageElement(g);f&&p(f.expression);for(var T=0,m=g.members;T<m.length;T++){var N=m[T];e.forEach(N.decorators,p),e.isPropertyDeclaration(N)?p(N.initializer):e.isConstructorDeclaration(N)&&N.body?(e.forEach(N.parameters,p),p(N.body)):e.isClassStaticBlockDeclaration(N)&&p(N)}}function U(g,p){var f=[],T=q(g,f);switch(p.kind){case 300:oe(p,T);break;case 259:se(p,T);break;case 254:case 211:case 212:case 167:case 170:case 171:w(g.getTypeChecker(),p,T);break;case 255:case 224:ne(p,T);break;case 168:R(p,T);break;default:e.Debug.assertNever(p)}return f}function C(g,p){return{to:g,fromSpans:p}}function d(g,p){return C(E(g,p[0].declaration),e.map(p,function(f){return e.createTextSpanFromRange(f.range)}))}function G(g,p){return p.flags&8388608||e.isMethodSignature(p)?[]:e.group(U(g,p),ee,function(f){return d(g,f)})}ue.getOutgoingCalls=G})(o=e.CallHierarchy||(e.CallHierarchy={}))})(vn||(vn={}));var vn;(function(e){function o(y,V,Z,E,H,L,ee){var k=e.hostUsesCaseSensitiveFileNames(E),b=e.createGetCanonicalFileName(k),ie=ue(V,Z,b,ee),q=ue(Z,V,b,ee);return e.textChanges.ChangeTracker.with({host:E,formatContext:H,preferences:L},function(oe){Y(y,oe,ie,V,Z,E.getCurrentDirectory(),k),W(y,oe,ie,q,E,b)})}e.getEditsForFileRename=o;function ue(y,V,Z,E){var H=Z(y);return function(ee){var k=E&&E.tryGetSourcePosition({fileName:ee,pos:0}),b=L(k?k.fileName:ee);return k?b===void 0?void 0:$(k.fileName,b,ee,Z):b};function L(ee){if(Z(ee)===H)return V;var k=e.tryRemoveDirectoryPrefix(ee,H,Z);return k===void 0?void 0:V+"/"+k}}e.getPathUpdater=ue;function $(y,V,Z,E){var H=e.getRelativePathFromFile(y,V,E);return ye(e.getDirectoryPath(Z),H)}function Y(y,V,Z,E,H,L,ee){var k=y.getCompilerOptions().configFile;if(!k)return;var b=e.getDirectoryPath(k.fileName),ie=e.getTsConfigObjectLiteralExpression(k);if(!ie)return;_e(ie,function(w,R){switch(R){case"files":case"include":case"exclude":{var ne=q(w);if(ne||R!=="include"||!e.isArrayLiteralExpression(w.initializer))return;var U=e.mapDefined(w.initializer.elements,function(d){return e.isStringLiteral(d)?d.text:void 0});if(U.length===0)return;var C=e.getFileMatcherPatterns(b,[],U,ee,L);e.getRegexFromPattern(e.Debug.checkDefined(C.includeFilePattern),ee).test(E)&&!e.getRegexFromPattern(e.Debug.checkDefined(C.includeFilePattern),ee).test(H)&&V.insertNodeAfter(k,e.last(w.initializer.elements),e.factory.createStringLiteral(se(H)));return}case"compilerOptions":_e(w.initializer,function(d,G){var g=e.getOptionFromName(G);g&&(g.isFilePath||g.type==="list"&&g.element.isFilePath)?q(d):G==="paths"&&_e(d.initializer,function(p){if(e.isArrayLiteralExpression(p.initializer))for(var f=0,T=p.initializer.elements;f<T.length;f++){var m=T[f];oe(m)}})});return}});function q(w){for(var R=e.isArrayLiteralExpression(w.initializer)?w.initializer.elements:[w.initializer],ne=!1,U=0,C=R;U<C.length;U++){var d=C[U];ne=oe(d)||ne}return ne}function oe(w){if(!e.isStringLiteral(w))return!1;var R=ye(b,w.text),ne=Z(R);return ne!==void 0?(V.replaceRangeWithText(k,de(w,k),se(ne)),!0):!1}function se(w){return e.getRelativePathFromDirectory(b,w,!ee)}}function W(y,V,Z,E,H,L){for(var ee=y.getSourceFiles(),k=function(oe){var se=Z(oe.fileName),w=se!=null?se:oe.fileName,R=e.getDirectoryPath(w),ne=E(oe.fileName),U=ne||oe.fileName,C=e.getDirectoryPath(U),d=se!==void 0||ne!==void 0;D(oe,V,function(G){if(e.pathIsRelative(G)){var g=ye(C,G),p=Z(g);return p===void 0?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(R,p,L))}},function(G){var g=y.getTypeChecker().getSymbolAtLocation(G);if(!(g!=null&&g.declarations&&g.declarations.some(function(f){return e.isAmbientModule(f)}))){var p=ne!==void 0?A(G,e.resolveModuleName(G.text,U,y.getCompilerOptions(),H),Z,ee):O(g,G,oe,y,H,Z);return p!==void 0&&(p.updated||d&&e.pathIsRelative(G.text))?e.moduleSpecifiers.updateModuleSpecifier(y.getCompilerOptions(),L(w),p.newFileName,e.createModuleSpecifierResolutionHost(y,H),G.text):void 0}})},b=0,ie=ee;b<ie.length;b++){var q=ie[b];k(q)}}function re(y,V){return e.normalizePath(e.combinePaths(y,V))}function ye(y,V){return e.ensurePathIsNonModuleName(re(y,V))}function O(y,V,Z,E,H,L){if(y){var ee=e.find(y.declarations,e.isSourceFile).fileName,k=L(ee);return k===void 0?{newFileName:ee,updated:!1}:{newFileName:k,updated:!0}}else{var b=H.resolveModuleNames?H.getResolvedModuleWithFailedLookupLocationsFromCache&&H.getResolvedModuleWithFailedLookupLocationsFromCache(V.text,Z.fileName):E.getResolvedModuleWithFailedLookupLocationsFromCache(V.text,Z.fileName);return A(V,b,L,E.getSourceFiles())}}function A(y,V,Z,E){if(!V)return;if(V.resolvedModule){var H=b(V.resolvedModule.resolvedFileName);if(H)return H}var L=e.forEach(V.failedLookupLocations,ee)||e.pathIsRelative(y.text)&&e.forEach(V.failedLookupLocations,k);if(L)return L;return V.resolvedModule&&{newFileName:V.resolvedModule.resolvedFileName,updated:!1};function ee(ie){var q=Z(ie);return q&&e.find(E,function(oe){return oe.fileName===q})?k(ie):void 0}function k(ie){return e.endsWith(ie,"/package.json")?void 0:b(ie)}function b(ie){var q=Z(ie);return q&&{newFileName:q,updated:!0}}}function D(y,V,Z,E){for(var H=0,L=y.referencedFiles||e.emptyArray;H<L.length;H++){var ee=L[H],k=Z(ee.fileName);k!==void 0&&k!==y.text.slice(ee.pos,ee.end)&&V.replaceRangeWithText(y,ee,k)}for(var b=0,ie=y.imports;b<ie.length;b++){var q=ie[b],k=E(q);k!==void 0&&k!==q.text&&V.replaceRangeWithText(y,de(q,y),k)}}function de(y,V){return e.createRange(y.getStart(V)+1,y.end-1)}function _e(y,V){if(e.isObjectLiteralExpression(y))for(var Z=0,E=y.properties;Z<E.length;Z++){var H=E[Z];e.isPropertyAssignment(H)&&e.isStringLiteral(H.name)&&V(H,H.name.text)}}})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(se,w,R){var ne=ye(w,R,se),U=ne&&[b(ne.reference.fileName,ne.fileName,ne.unverified)]||e.emptyArray;if(ne!=null&&ne.file)return U;var C=e.getTouchingPropertyName(w,R);if(C!==w){var d=C.parent,G=se.getTypeChecker();if(C.kind===157||e.isJSDocOverrideTag(C)&&e.rangeContainsPosition(C.tagName,R))return re(G,C)||e.emptyArray;if(e.isJumpStatementTarget(C)){var g=e.getTargetLabel(C.parent,C.text);return g?[H(G,g,"label",C.text,void 0)]:void 0}if(e.isStaticModifier(C)&&e.isClassStaticBlockDeclaration(C.parent)){var p=C.parent.parent,f=y(p,G),T=e.filter(p.members,e.isClassStaticBlockDeclaration),m=f?G.symbolToString(f,p):"",N=C.getSourceFile();return e.map(T,function(Oe){var te=e.moveRangePastModifiers(Oe).pos;return te=e.skipTrivia(N.text,te),H(G,Oe,"constructor","static {}",m,{start:te,length:6})})}var P=y(C,G);if(!P)return e.concatenate(U,_e(C,G));var x=q(G,C);if(x&&!(e.isJsxOpeningLikeElement(C.parent)&&oe(x))){var M=ee(G,x);if(G.getRootSymbols(P).some(function(Oe){return Y(Oe,x)}))return[M];var me=Z(G,P,C,x)||e.emptyArray;return C.kind===106?Vr([M],me,!0):Vr(Vr([],me,!0),[M],!1)}if(C.parent.kind===292){var z=G.getShorthandAssignmentValueSymbol(P.valueDeclaration),K=z!=null&&z.declarations?z.declarations.map(function(Oe){return E(Oe,G,z,C)}):e.emptyArray;return e.concatenate(K,W(G,C)||e.emptyArray)}if(e.isPropertyName(C)&&e.isBindingElement(d)&&e.isObjectBindingPattern(d.parent)&&C===(d.propertyName||d.name)){var I=e.getNameFromPropertyName(C),Ae=G.getTypeAtLocation(d.parent);return I===void 0?e.emptyArray:e.flatMap(Ae.isUnion()?Ae.types:[Ae],function(Oe){var te=Oe.getProperty(I);return te&&Z(G,te,C)})}return e.concatenate(U,W(G,C)||Z(G,P,C))}}ue.getDefinitionAtPosition=$;function Y(se,w){return se===w.symbol||se===w.symbol.parent||e.isAssignmentExpression(w.parent)||!e.isCallLikeExpression(w.parent)&&se===w.parent.symbol}function W(se,w){var R=e.getContainingObjectLiteralElement(w);if(R){var ne=R&&se.getContextualType(R.parent);if(ne)return e.flatMap(e.getPropertySymbolsFromContextualType(R,se,ne,!1),function(U){return Z(se,U,w)})}}function re(se,w){var R=e.findAncestor(w,e.isClassElement);if(R&&R.name){var ne=e.findAncestor(R,e.isClassLike);if(ne){var U=e.getEffectiveBaseTypeNode(ne),C=U?se.getTypeAtLocation(U):void 0;if(C){var d=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(R.name)),G=e.hasStaticModifier(R)?se.getPropertyOfType(se.getTypeOfSymbolAtLocation(C.symbol,ne),d):se.getPropertyOfType(C,d);if(G)return Z(se,G,w)}}}}function ye(se,w,R){var ne,U,C=k(se.referencedFiles,w);if(C){var d=R.getSourceFileFromReference(se,C);return d&&{reference:C,fileName:d.fileName,file:d,unverified:!1}}var G=k(se.typeReferenceDirectives,w);if(G){var g=R.getResolvedTypeReferenceDirectives().get(G.fileName),d=g&&R.getSourceFile(g.resolvedFileName);return d&&{reference:G,fileName:d.fileName,file:d,unverified:!1}}var p=k(se.libReferenceDirectives,w);if(p){var d=R.getLibFileFromReference(p);return d&&{reference:p,fileName:d.fileName,file:d,unverified:!1}}if(!((ne=se.resolvedModules)===null||ne===void 0)&&ne.size){var f=e.getTokenAtPosition(se,w);if(e.isModuleSpecifierLike(f)&&e.isExternalModuleNameRelative(f.text)&&se.resolvedModules.has(f.text)){var T=(U=se.resolvedModules.get(f.text))===null||U===void 0?void 0:U.resolvedFileName,m=T||e.resolvePath(e.getDirectoryPath(se.fileName),f.text);return{file:R.getSourceFile(m),fileName:m,reference:{pos:f.getStart(),end:f.getEnd(),fileName:f.text},unverified:!T}}}}ue.getReferenceAtPosition=ye;function O(se,w,R){var ne=e.getTouchingPropertyName(w,R);if(ne!==w){var U=se.getSymbolAtLocation(ne);if(U){var C=se.getTypeOfSymbolAtLocation(U,ne),d=D(U,C,se),G=d&&A(d,se,ne);return G&&G.length!==0?G:A(C,se,ne)}}}ue.getTypeDefinitionAtPosition=O;function A(se,w,R){return e.flatMap(se.isUnion()&&!(se.flags&32)?se.types:[se],function(ne){return ne.symbol&&Z(w,ne.symbol,R)})}function D(se,w,R){if(w.symbol===se||se.valueDeclaration&&w.symbol&&e.isVariableDeclaration(se.valueDeclaration)&&se.valueDeclaration.initializer===w.symbol.valueDeclaration){var ne=w.getCallSignatures();if(ne.length===1)return R.getReturnTypeOfSignature(e.first(ne))}}function de(se,w,R){var ne=$(se,w,R);if(!(!ne||ne.length===0)){var U=k(w.referencedFiles,R)||k(w.typeReferenceDirectives,R)||k(w.libReferenceDirectives,R);if(U)return{definitions:ne,textSpan:e.createTextSpanFromRange(U)};var C=e.getTouchingPropertyName(w,R),d=e.createTextSpan(C.getStart(),C.getWidth());return{definitions:ne,textSpan:d}}}ue.getDefinitionAndBoundSpan=de;function _e(se,w){return e.mapDefined(w.getIndexInfosAtLocation(se),function(R){return R.declaration&&ee(w,R.declaration)})}function y(se,w){var R=w.getSymbolAtLocation(se);if(R!=null&&R.declarations&&R.flags&2097152&&V(se,R.declarations[0])){var ne=w.getAliasedSymbol(R);if(ne.declarations)return ne}return R}function V(se,w){if(se.kind!==79)return!1;if(se.parent===w)return!0;switch(w.kind){case 265:case 263:return!0;case 268:return w.parent.kind===267;case 201:case 252:return e.isInJSFile(w)&&e.isRequireVariableDeclaration(w);default:return!1}}function Z(se,w,R,ne){var U=e.filter(w.declarations,function(g){return g!==ne&&(!e.isAssignmentDeclaration(g)||g===w.valueDeclaration)})||void 0;return C()||d()||e.map(U,function(g){return E(g,se,w,R)});function C(){if(w.flags&32&&!(w.flags&19)&&(e.isNewExpressionTarget(R)||R.kind===133)){var g=e.find(U,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration");return G(g.members,!0)}}function d(){return e.isCallOrNewExpressionTarget(R)||e.isNameOfFunctionDeclaration(R)?G(U,!1):void 0}function G(g,p){if(g){var f=g.filter(p?e.isConstructorDeclaration:e.isFunctionLike),T=f.filter(function(m){return!!m.body});return f.length?T.length!==0?T.map(function(m){return E(m,se,w,R)}):[E(e.last(f),se,w,R)]:void 0}}}function E(se,w,R,ne){var U=w.symbolToString(R),C=e.SymbolDisplay.getSymbolKind(w,R,ne),d=R.parent?w.symbolToString(R.parent,ne):"";return H(w,se,C,U,d)}function H(se,w,R,ne,U,C){var d=w.getSourceFile();if(!C){var G=e.getNameOfDeclaration(w)||w;C=e.createTextSpanFromNode(G,d)}return Mt(Mt({fileName:d.fileName,textSpan:C,kind:R,name:ne,containerKind:void 0,containerName:U},e.FindAllReferences.toContextSpan(C,d,e.FindAllReferences.getContextNode(w))),{isLocal:!L(se,w)})}function L(se,w){if(se.isDeclarationVisible(w))return!0;if(!w.parent)return!1;if(e.hasInitializer(w.parent)&&w.parent.initializer===w)return L(se,w.parent);switch(w.kind){case 165:case 170:case 171:case 167:if(e.hasEffectiveModifier(w,8))return!1;case 169:case 291:case 292:case 203:case 224:case 212:case 211:return L(se,w.parent);default:return!1}}function ee(se,w){return E(w,se,w.symbol,w)}function k(se,w){return e.find(se,function(R){return e.textRangeContainsPositionInclusive(R,w)})}ue.findReferenceInPosition=k;function b(se,w,R){return{fileName:w,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:se,containerName:void 0,containerKind:void 0,unverified:R}}function ie(se){var w=e.findAncestor(se,function(ne){return!e.isRightSideOfPropertyAccess(ne)}),R=w==null?void 0:w.parent;return R&&e.isCallLikeExpression(R)&&e.getInvokedExpression(R)===w?R:void 0}function q(se,w){var R=ie(w),ne=R&&se.getResolvedSignature(R);return e.tryCast(ne&&ne.declaration,function(U){return e.isFunctionLike(U)&&!e.isFunctionTypeNode(U)})}function oe(se){switch(se.kind){case 169:case 178:case 173:return!0;default:return!1}}})(o=e.GoToDefinition||(e.GoToDefinition={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],Y,W;function re(w,R){var ne=[];return e.forEachUnique(w,function(U){for(var C=0,d=O(U);C<d.length;C++){var G=d[C];if(!(G.comment===void 0||e.isJSDoc(G)&&U.kind!==340&&U.kind!==333&&G.tags&&G.tags.some(function(p){return p.kind===340||p.kind===333})&&!G.tags.some(function(p){return p.kind===335||p.kind===336}))){var g=D(G.comment,R);e.contains(ne,g,ye)||ne.push(g)}}}),e.flatten(e.intersperse(ne,[e.lineBreakPart()]))}ue.getJsDocCommentsFromDeclarations=re;function ye(w,R){return e.arraysEqual(w,R,function(ne,U){return ne.kind===U.kind&&ne.text===U.text})}function O(w){switch(w.kind){case 335:case 342:return[w];case 333:case 340:return[w,w.parent];default:return e.getJSDocCommentsAndTags(w)}}function A(w,R){var ne=[];return e.forEachUnique(w,function(U){var C=e.getJSDocTags(U);if(!(C.some(function(p){return p.kind===340||p.kind===333})&&!C.some(function(p){return p.kind===335||p.kind===336})))for(var d=0,G=C;d<G.length;d++){var g=G[d];ne.push({name:g.tagName.text,text:de(g,R)})}}),ne}ue.getJsDocTagsFromDeclarations=A;function D(w,R){return typeof w=="string"?[e.textPart(w)]:e.flatMap(w,function(ne){return ne.kind===316?[e.textPart(ne.text)]:e.buildLinkParts(ne,R)})}function de(w,R){var ne=w.comment,U=w.kind,C=_e(U);switch(U){case 324:return G(w.class);case 323:return G(w.class);case 339:return g(w.typeParameters.map(function(p){return p.getText()}).join(", "));case 338:return G(w.typeExpression);case 340:case 333:case 342:case 335:case 341:var d=w.name;return d?G(d):ne===void 0?void 0:D(ne,R);default:return ne===void 0?void 0:D(ne,R)}function G(p){return g(p.getText())}function g(p){return ne?p.match(/^https?$/)?Vr([e.textPart(p)],D(ne,R),!0):Vr([C(p),e.spacePart()],D(ne,R),!0):[e.textPart(p)]}}function _e(w){switch(w){case 335:return e.parameterNamePart;case 342:return e.propertyNamePart;case 339:return e.typeParameterNamePart;case 340:case 333:return e.typeAliasNamePart;default:return e.textPart}}function y(){return Y||(Y=e.map($,function(w){return{name:w,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}ue.getJSDocTagNameCompletions=y,ue.getJSDocTagNameCompletionDetails=Z;function V(){return W||(W=e.map($,function(w){return{name:"@"+w,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}ue.getJSDocTagCompletions=V;function Z(w){return{name:w,kind:"",kindModifiers:"",displayParts:[e.textPart(w)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}ue.getJSDocTagCompletionDetails=Z;function E(w){if(!e.isIdentifier(w.name))return e.emptyArray;var R=w.name.text,ne=w.parent,U=ne.parent;return e.isFunctionLike(U)?e.mapDefined(U.parameters,function(C){if(e.isIdentifier(C.name)){var d=C.name.text;if(!(ne.tags.some(function(G){return G!==w&&e.isJSDocParameterTag(G)&&e.isIdentifier(G.name)&&G.name.escapedText===d})||R!==void 0&&!e.startsWith(d,R)))return{name:d,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}}):[]}ue.getJSDocParameterNameCompletions=E;function H(w){return{name:w,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(w)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}ue.getJSDocParameterNameCompletionDetails=H;function L(w,R,ne,U){var C=e.getTokenAtPosition(R,ne),d=e.findAncestor(C,e.isJSDoc);if(!(d&&(d.comment!==void 0||e.length(d.tags)))){var G=C.getStart(R);if(!(!d&&G<ne)){var g=ie(C,U);if(g){var p=g.commentOwner,f=g.parameters,T=g.hasReturn;if(!(p.getStart(R)<ne)){var m=ee(R,ne),N=e.hasJSFileExtension(R.fileName),P=(f?k(f||[],N,m,w):"")+(T?b(m,w):""),x="/**",M=" */";if(P){var me=x+w+m+" * ",z=G===ne?w+m:"",K=me+w+P+m+M+z;return{newText:K,caretOffset:me.length}}return{newText:x+M,caretOffset:3}}}}}}ue.getDocCommentTemplateAtPosition=L;function ee(w,R){for(var ne=w.text,U=e.getLineStartPositionForPosition(R,w),C=U;C<=R&&e.isWhiteSpaceSingleLine(ne.charCodeAt(C));C++);return ne.slice(U,C)}function k(w,R,ne,U){return w.map(function(C,d){var G=C.name,g=C.dotDotDotToken,p=G.kind===79?G.text:"param"+d,f=R?g?"{...any} ":"{any} ":"";return ne+" * @param "+f+p+U}).join("")}function b(w,R){return w+" * @returns"+R}function ie(w,R){return e.forEachAncestor(w,function(ne){return q(ne,R)})}function q(w,R){switch(w.kind){case 254:case 211:case 167:case 169:case 166:case 212:var ne=w;return{commentOwner:w,parameters:ne.parameters,hasReturn:oe(ne,R)};case 291:return q(w.initializer,R);case 255:case 256:case 164:case 258:case 294:case 257:return{commentOwner:w};case 235:{var U=w,C=U.declarationList.declarations,d=C.length===1&&C[0].initializer?se(C[0].initializer):void 0;return d?{commentOwner:w,parameters:d.parameters,hasReturn:oe(d,R)}:{commentOwner:w}}case 300:return"quit";case 259:return w.parent.kind===259?void 0:{commentOwner:w};case 236:return q(w.expression,R);case 219:{var G=w;return e.getAssignmentDeclarationKind(G)===0?"quit":e.isFunctionLike(G.right)?{commentOwner:w,parameters:G.right.parameters,hasReturn:oe(G.right,R)}:{commentOwner:w}}case 165:var g=w.initializer;if(g&&(e.isFunctionExpression(g)||e.isArrowFunction(g)))return{commentOwner:w,parameters:g.parameters,hasReturn:oe(g,R)}}}function oe(w,R){return!!(R!=null&&R.generateReturnInDocTemplate)&&(e.isArrowFunction(w)&&e.isExpression(w.body)||e.isFunctionLikeDeclaration(w)&&w.body&&e.isBlock(w.body)&&!!e.forEachReturnStatement(w.body,function(ne){return ne}))}function se(w){for(;w.kind===210;)w=w.expression;switch(w.kind){case 211:case 212:return w;case 224:return e.find(w.members,e.isConstructorDeclaration)}}})(o=e.JsDoc||(e.JsDoc={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(_e,y,V,Z,E,H){var L=e.createPatternMatcher(Z);if(!L)return e.emptyArray;for(var ee=[],k=function(oe){if(V.throwIfCancellationRequested(),H&&oe.isDeclarationFile)return"continue";oe.getNamedDeclarations().forEach(function(se,w){Y(L,w,se,y,oe.fileName,ee)})},b=0,ie=_e;b<ie.length;b++){var q=ie[b];k(q)}return ee.sort(D),(E===void 0?ee:ee.slice(0,E)).map(de)}ue.getNavigateToItems=$;function Y(_e,y,V,Z,E,H){var L=_e.getMatchForLastSegmentOfPattern(y);if(L)for(var ee=0,k=V;ee<k.length;ee++){var b=k[ee];if(W(b,Z))if(_e.patternContainsDots){var ie=_e.getFullMatch(A(b),y);ie&&H.push({name:y,fileName:E,matchKind:ie.kind,isCaseSensitive:ie.isCaseSensitive,declaration:b})}else H.push({name:y,fileName:E,matchKind:L.kind,isCaseSensitive:L.isCaseSensitive,declaration:b})}}function W(_e,y){switch(_e.kind){case 265:case 268:case 263:var V=y.getSymbolAtLocation(_e.name),Z=y.getAliasedSymbol(V);return V.escapedName!==Z.escapedName;default:return!0}}function re(_e,y){var V=e.getNameOfDeclaration(_e);return!!V&&(O(V,y)||V.kind===160&&ye(V.expression,y))}function ye(_e,y){return O(_e,y)||e.isPropertyAccessExpression(_e)&&(y.push(_e.name.text),!0)&&ye(_e.expression,y)}function O(_e,y){return e.isPropertyNameLiteral(_e)&&(y.push(e.getTextOfIdentifierOrLiteral(_e)),!0)}function A(_e){var y=[],V=e.getNameOfDeclaration(_e);if(V&&V.kind===160&&!ye(V.expression,y))return e.emptyArray;y.shift();for(var Z=e.getContainerNode(_e);Z;){if(!re(Z,y))return e.emptyArray;Z=e.getContainerNode(Z)}return y.reverse()}function D(_e,y){return e.compareValues(_e.matchKind,y.matchKind)||e.compareStringsCaseSensitiveUI(_e.name,y.name)}function de(_e){var y=_e.declaration,V=e.getContainerNode(y),Z=V&&e.getNameOfDeclaration(V);return{name:_e.name,kind:e.getNodeKind(y),kindModifiers:e.getNodeModifiers(y),matchKind:e.PatternMatchKind[_e.matchKind],isCaseSensitive:_e.isCaseSensitive,fileName:_e.fileName,textSpan:e.createTextSpanFromNode(y),containerName:Z?Z.text:"",containerKind:Z?e.getNodeKind(V):""}}})(o=e.NavigateTo||(e.NavigateTo={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $,Y=/\s+/g,W=150,re,ye,O=[],A,D=[],de,_e=[];function y(pe,we){re=we,ye=pe;try{return e.map(K(ee(pe)),Ae)}finally{Z()}}ue.getNavigationBarItems=y;function V(pe,we){re=we,ye=pe;try{return I(ee(pe))}finally{Z()}}ue.getNavigationTree=V;function Z(){ye=void 0,re=void 0,O=[],A=void 0,_e=[]}function E(pe){return qe(pe.getText(ye))}function H(pe){return pe.node.kind}function L(pe,we){pe.children?pe.children.push(we):pe.children=[we]}function ee(pe){e.Debug.assert(!O.length);var we={node:pe,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};A=we;for(var pn=0,Qe=pe.statements;pn<Qe.length;pn++){var Re=Qe[pn];C(Re)}return w(),e.Debug.assert(!A&&!O.length),we}function k(pe,we){L(A,b(pe,we))}function b(pe,we){return{node:pe,name:we||(e.isDeclaration(pe)||e.isExpression(pe)?e.getNameOfDeclaration(pe):void 0),additionalNodes:void 0,parent:A,children:void 0,indent:A.indent+1}}function ie(pe){de||(de=new e.Map),de.set(pe,!0)}function q(pe){for(var we=0;we<pe;we++)w()}function oe(pe,we){for(var pn=[];!e.isPropertyNameLiteral(we);){var Qe=e.getNameOrArgument(we),Re=e.getElementOrPropertyAccessName(we);we=we.expression,!(Re==="prototype"||e.isPrivateIdentifier(Qe))&&pn.push(Qe)}pn.push(we);for(var He=pn.length-1;He>0;He--){var Qe=pn[He];se(pe,Qe)}return[pn.length-1,pn[0]]}function se(pe,we){var pn=b(pe,we);L(A,pn),O.push(A),D.push(de),de=void 0,A=pn}function w(){A.children&&(d(A.children,A),x(A.children)),A=O.pop(),de=D.pop()}function R(pe,we,pn){se(pe,pn),C(we),w()}function ne(pe){pe.initializer&&Ne(pe.initializer)?(se(pe),e.forEachChild(pe.initializer,C),w()):R(pe,pe.initializer)}function U(pe){return!e.hasDynamicName(pe)||pe.kind!==219&&e.isPropertyAccessExpression(pe.name.expression)&&e.isIdentifier(pe.name.expression.expression)&&e.idText(pe.name.expression.expression)==="Symbol"}function C(pe){var we;if(re.throwIfCancellationRequested(),!(!pe||e.isToken(pe)))switch(pe.kind){case 169:var pn=pe;R(pn,pn.body);for(var Qe=0,Re=pn.parameters;Qe<Re.length;Qe++){var He=Re[Qe];e.isParameterPropertyDeclaration(He,pn)&&k(He)}break;case 167:case 170:case 171:case 166:U(pe)&&R(pe,pe.body);break;case 165:U(pe)&&ne(pe);break;case 164:U(pe)&&k(pe);break;case 265:var Ln=pe;Ln.name&&k(Ln.name);var Un=Ln.namedBindings;if(Un)if(Un.kind===266)k(Un);else for(var fn=0,En=Un.elements;fn<En.length;fn++){var i=En[fn];k(i)}break;case 292:R(pe,pe.name);break;case 293:var In=pe.expression;e.isIdentifier(In)?k(pe,In):k(pe);break;case 201:case 291:case 252:{var X=pe;e.isBindingPattern(X.name)?C(X.name):ne(X);break}case 254:var rn=pe.name;rn&&e.isIdentifier(rn)&&ie(rn.text),R(pe,pe.body);break;case 212:case 211:R(pe,pe.body);break;case 258:se(pe);for(var $n=0,Vn=pe.members;$n<Vn.length;$n++){var le=Vn[$n];Ce(le)||k(le)}w();break;case 255:case 224:case 256:se(pe);for(var Pe=0,xe=pe.members;Pe<xe.length;Pe++){var le=xe[Pe];C(le)}w();break;case 259:R(pe,be(pe).body);break;case 269:{var Ze=pe.expression,X=e.isObjectLiteralExpression(Ze)||e.isCallExpression(Ze)?Ze:e.isArrowFunction(Ze)||e.isFunctionExpression(Ze)?Ze.body:void 0;X?(se(pe),C(X),w()):k(pe);break}case 273:case 263:case 174:case 172:case 173:case 257:k(pe);break;case 206:case 219:{var hn=e.getAssignmentDeclarationKind(pe);switch(hn){case 1:case 2:R(pe,pe.right);return;case 6:case 3:{var Le=pe,$e=Le.left,An=hn===3?$e.expression:$e,Ue=0,gn=void 0;e.isIdentifier(An.expression)?(ie(An.expression.text),gn=An.expression):(we=oe(Le,An.expression),Ue=we[0],gn=we[1]),hn===6?e.isObjectLiteralExpression(Le.right)&&Le.right.properties.length>0&&(se(Le,gn),e.forEachChild(Le.right,C),w()):e.isFunctionExpression(Le.right)||e.isArrowFunction(Le.right)?R(pe,Le.right,gn):(se(Le,gn),R(pe,Le.right,$e.name),w()),q(Ue);return}case 7:case 9:{var Wn=pe,gn=hn===7?Wn.arguments[0]:Wn.arguments[0].expression,ze=Wn.arguments[1],Tn=oe(pe,gn),Ue=Tn[0],On=Tn[1];se(pe,On),se(pe,e.setTextRange(e.factory.createIdentifier(ze.text),ze)),C(pe.arguments[2]),w(),w(),q(Ue);return}case 5:{var Le=pe,$e=Le.left,ur=$e.expression;if(e.isIdentifier(ur)&&e.getElementOrPropertyAccessName($e)!=="prototype"&&de&&de.has(ur.text)){e.isFunctionExpression(Le.right)||e.isArrowFunction(Le.right)?R(pe,Le.right,ur):e.isBindableStaticAccessExpression($e)&&(se(Le,ur),R(Le.left,Le.right,e.getNameOrArgument($e)),w());return}break}case 4:case 0:case 8:break;default:e.Debug.assertNever(hn)}}default:e.hasJSDocNodes(pe)&&e.forEach(pe.jsDoc,function(hr){e.forEach(hr.tags,function(wr){e.isJSDocTypeAlias(wr)&&k(wr)})}),e.forEachChild(pe,C)}}function d(pe,we){var pn=new e.Map;e.filterMutate(pe,function(Qe,Re){var He=Qe.name||e.getNameOfDeclaration(Qe.node),Ln=He&&E(He);if(!Ln)return!0;var Un=pn.get(Ln);if(!Un)return pn.set(Ln,Qe),!0;if(Un instanceof Array){for(var fn=0,En=Un;fn<En.length;fn++){var i=En[fn];if(p(i,Qe,Re,we))return!1}return Un.push(Qe),!0}else{var i=Un;return p(i,Qe,Re,we)?!1:(pn.set(Ln,[i,Qe]),!0)}})}var G=($={},$[5]=!0,$[3]=!0,$[7]=!0,$[9]=!0,$[0]=!1,$[1]=!1,$[2]=!1,$[8]=!1,$[6]=!0,$[4]=!1,$);function g(pe,we,pn,Qe){function Re(X){return e.isFunctionExpression(X)||e.isFunctionDeclaration(X)||e.isVariableDeclaration(X)}var He=e.isBinaryExpression(we.node)||e.isCallExpression(we.node)?e.getAssignmentDeclarationKind(we.node):0,Ln=e.isBinaryExpression(pe.node)||e.isCallExpression(pe.node)?e.getAssignmentDeclarationKind(pe.node):0;if(G[He]&&G[Ln]||Re(pe.node)&&G[He]||Re(we.node)&&G[Ln]||e.isClassDeclaration(pe.node)&&T(pe.node)&&G[He]||e.isClassDeclaration(we.node)&&G[Ln]||e.isClassDeclaration(pe.node)&&T(pe.node)&&Re(we.node)||e.isClassDeclaration(we.node)&&Re(pe.node)&&T(pe.node)){var Un=pe.additionalNodes&&e.lastOrUndefined(pe.additionalNodes)||pe.node;if(!e.isClassDeclaration(pe.node)&&!e.isClassDeclaration(we.node)||Re(pe.node)||Re(we.node)){var fn=Re(pe.node)?pe.node:Re(we.node)?we.node:void 0;if(fn!==void 0){var En=e.setTextRange(e.factory.createConstructorDeclaration(void 0,void 0,[],void 0),fn),i=b(En);i.indent=pe.indent+1,i.children=pe.node===fn?pe.children:we.children,pe.children=pe.node===fn?e.concatenate([i],we.children||[we]):e.concatenate(pe.children||[Mt({},pe)],[i])}else(pe.children||we.children)&&(pe.children=e.concatenate(pe.children||[Mt({},pe)],we.children||[we]),pe.children&&(d(pe.children,pe),x(pe.children)));Un=pe.node=e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,pe.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),pe.node)}else pe.children=e.concatenate(pe.children,we.children),pe.children&&d(pe.children,pe);var In=we.node;return Qe.children[pn-1].node.end===Un.end?e.setTextRange(Un,{pos:Un.pos,end:In.end}):(pe.additionalNodes||(pe.additionalNodes=[]),pe.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,pe.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),we.node))),!0}return He!==0}function p(pe,we,pn,Qe){return g(pe,we,pn,Qe)?!0:f(pe.node,we.node,Qe)?(P(pe,we),!0):!1}function f(pe,we,pn){if(pe.kind!==we.kind||pe.parent!==we.parent&&!(m(pe,pn)&&m(we,pn)))return!1;switch(pe.kind){case 165:case 167:case 170:case 171:return e.isStatic(pe)===e.isStatic(we);case 259:return N(pe,we)&&Se(pe)===Se(we);default:return!0}}function T(pe){return!!(pe.flags&8)}function m(pe,we){var pn=e.isModuleBlock(pe.parent)?pe.parent.parent:pe.parent;return pn===we.node||e.contains(we.additionalNodes,pn)}function N(pe,we){return pe.body.kind===we.body.kind&&(pe.body.kind!==259||N(pe.body,we.body))}function P(pe,we){var pn;pe.additionalNodes=pe.additionalNodes||[],pe.additionalNodes.push(we.node),we.additionalNodes&&(pn=pe.additionalNodes).push.apply(pn,we.additionalNodes),pe.children=e.concatenate(pe.children,we.children),pe.children&&(d(pe.children,pe),x(pe.children))}function x(pe){pe.sort(M)}function M(pe,we){return e.compareStringsCaseSensitiveUI(me(pe.node),me(we.node))||e.compareValues(H(pe),H(we))}function me(pe){if(pe.kind===259)return te(pe);var we=e.getNameOfDeclaration(pe);if(we&&e.isPropertyName(we)){var pn=e.getPropertyNameForPropertyNameNode(we);return pn&&e.unescapeLeadingUnderscores(pn)}switch(pe.kind){case 211:case 212:case 224:return en(pe);default:return}}function z(pe,we){if(pe.kind===259)return qe(te(pe));if(we){var pn=e.isIdentifier(we)?we.text:e.isElementAccessExpression(we)?"["+E(we.argumentExpression)+"]":E(we);if(pn.length>0)return qe(pn)}switch(pe.kind){case 300:var Qe=pe;return e.isExternalModule(Qe)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(Qe.fileName))))+'"':"<global>";case 269:return e.isExportAssignment(pe)&&pe.isExportEquals?"export=":"default";case 212:case 254:case 211:case 255:case 224:return e.getSyntacticModifierFlags(pe)&512?"default":en(pe);case 169:return"constructor";case 173:return"new()";case 172:return"()";case 174:return"[]";default:return"<unknown>"}}function K(pe){var we=[];function pn(Re){if(Qe(Re)&&(we.push(Re),Re.children))for(var He=0,Ln=Re.children;He<Ln.length;He++){var Un=Ln[He];pn(Un)}}return pn(pe),we;function Qe(Re){if(Re.children)return!0;switch(H(Re)){case 255:case 224:case 258:case 256:case 259:case 300:case 257:case 340:case 333:return!0;case 212:case 254:case 211:return He(Re);default:return!1}function He(Ln){if(!Ln.node.body)return!1;switch(H(Ln.parent)){case 260:case 300:case 167:case 169:return!0;default:return!1}}}}function I(pe){return{text:z(pe.node,pe.name),kind:e.getNodeKind(pe.node),kindModifiers:De(pe.node),spans:Oe(pe),nameSpan:pe.name&&Be(pe.name),childItems:e.map(pe.children,I)}}function Ae(pe){return{text:z(pe.node,pe.name),kind:e.getNodeKind(pe.node),kindModifiers:De(pe.node),spans:Oe(pe),childItems:e.map(pe.children,we)||_e,indent:pe.indent,bolded:!1,grayed:!1};function we(pn){return{text:z(pn.node,pn.name),kind:e.getNodeKind(pn.node),kindModifiers:e.getNodeModifiers(pn.node),spans:Oe(pn),childItems:_e,indent:0,bolded:!1,grayed:!1}}}function Oe(pe){var we=[Be(pe.node)];if(pe.additionalNodes)for(var pn=0,Qe=pe.additionalNodes;pn<Qe.length;pn++){var Re=Qe[pn];we.push(Be(Re))}return we}function te(pe){return e.isAmbientModule(pe)?e.getTextOfNode(pe.name):Se(pe)}function Se(pe){for(var we=[e.getTextOfIdentifierOrLiteral(pe.name)];pe.body&&pe.body.kind===259;)pe=pe.body,we.push(e.getTextOfIdentifierOrLiteral(pe.name));return we.join(".")}function be(pe){return pe.body&&e.isModuleDeclaration(pe.body)?be(pe.body):pe}function Ce(pe){return!pe.name||pe.name.kind===160}function Be(pe){return pe.kind===300?e.createTextSpanFromRange(pe):e.createTextSpanFromNode(pe,ye)}function De(pe){return pe.parent&&pe.parent.kind===252&&(pe=pe.parent),e.getNodeModifiers(pe)}function en(pe){var we=pe.parent;if(pe.name&&e.getFullWidth(pe.name)>0)return qe(e.declarationNameToString(pe.name));if(e.isVariableDeclaration(we))return qe(e.declarationNameToString(we.name));if(e.isBinaryExpression(we)&&we.operatorToken.kind===63)return E(we.left).replace(Y,"");if(e.isPropertyAssignment(we))return E(we.name);if(e.getSyntacticModifierFlags(pe)&512)return"default";if(e.isClassLike(pe))return"<class>";if(e.isCallExpression(we)){var pn=fe(we.expression);if(pn!==void 0){if(pn=qe(pn),pn.length>W)return pn+" callback";var Qe=qe(e.mapDefined(we.arguments,function(Re){return e.isStringLiteralLike(Re)?Re.getText(ye):void 0}).join(", "));return pn+"("+Qe+") callback"}}return"<function>"}function fe(pe){if(e.isIdentifier(pe))return pe.text;if(e.isPropertyAccessExpression(pe)){var we=fe(pe.expression),pn=pe.name.text;return we===void 0?pn:we+"."+pn}else return}function Ne(pe){switch(pe.kind){case 212:case 211:case 224:return!0;default:return!1}}function qe(pe){return pe=pe.length>W?pe.substring(0,W)+"...":pe,pe.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(o=e.NavigationBar||(e.NavigationBar={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(q,oe,se,w,R,ne){var U=e.textChanges.ChangeTracker.fromContext({host:se,formatContext:oe,preferences:R}),C=function(P){return e.stableSort(ye(Y(P,q,w,ne)),function(x,M){return k(x,M)})},d=q.statements.filter(e.isImportDeclaration);N(d,C);var G=q.statements.filter(e.isExportDeclaration);N(G,A);for(var g=0,p=q.statements.filter(e.isAmbientModule);g<p.length;g++){var f=p[g];if(f.body){var T=f.body.statements.filter(e.isImportDeclaration);N(T,C);var m=f.body.statements.filter(e.isExportDeclaration);N(m,A)}}return U.getChanges();function N(P,x){if(e.length(P)!==0){e.suppressLeadingTrivia(P[0]);var M=e.group(P,function(Ae){return re(Ae.moduleSpecifier)}),me=e.stableSort(M,function(Ae,Oe){return y(Ae[0].moduleSpecifier,Oe[0].moduleSpecifier)}),z=e.flatMap(me,function(Ae){return re(Ae[0].moduleSpecifier)?x(Ae):Ae});if(z.length===0)U.deleteNodes(q,P,{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},!0);else{var K={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(se,oe.options)};U.replaceNodeWithNodes(q,P[0],z,K);var I=U.nodeHasTrailingComment(q,P[0],K);U.deleteNodes(q,P.slice(1),{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},I)}}}}ue.organizeImports=$;function Y(q,oe,se,w){if(w)return q;for(var R=se.getTypeChecker(),ne=R.getJsxNamespace(oe),U=R.getJsxFragmentFactory(oe),C=!!(oe.transformFlags&2),d=[],G=0,g=q;G<g.length;G++){var p=g[G],f=p.importClause,T=p.moduleSpecifier;if(!f){d.push(p);continue}var m=f.name,N=f.namedBindings;if(m&&!x(m)&&(m=void 0),N)if(e.isNamespaceImport(N))x(N.name)||(N=void 0);else{var P=N.elements.filter(function(M){return x(M.name)});P.length<N.elements.length&&(N=P.length?e.factory.updateNamedImports(N,P):void 0)}m||N?d.push(D(p,m,N)):W(oe,T)&&(oe.isDeclarationFile?d.push(e.factory.createImportDeclaration(p.decorators,p.modifiers,void 0,T)):d.push(p))}return d;function x(M){return C&&(M.text===ne||U&&M.text===U)||e.FindAllReferences.Core.isSymbolReferencedInFile(M,R,oe)}}function W(q,oe){var se=e.isStringLiteral(oe)&&oe.text;return e.isString(se)&&e.some(q.moduleAugmentations,function(w){return e.isStringLiteral(w)&&w.text===se})}function re(q){return q!==void 0&&e.isStringLiteralLike(q)?q.text:void 0}function ye(q){var oe;if(q.length===0)return q;var se=O(q),w=se.importWithoutClause,R=se.typeOnlyImports,ne=se.regularImports,U=[];w&&U.push(w);for(var C=0,d=[ne,R];C<d.length;C++){var G=d[C],g=G===R,p=G.defaultImports,f=G.namespaceImports,T=G.namedImports;if(!g&&p.length===1&&f.length===1&&T.length===0){var m=p[0];U.push(D(m,m.importClause.name,f[0].importClause.namedBindings));continue}for(var N=e.stableSort(f,function(Se,be){return V(Se.importClause.namedBindings.name,be.importClause.namedBindings.name)}),P=0,x=N;P<x.length;P++){var M=x[P];U.push(D(M,void 0,M.importClause.namedBindings))}if(!(p.length===0&&T.length===0)){var me=void 0,z=[];if(p.length===1)me=p[0].importClause.name;else for(var K=0,I=p;K<I.length;K++){var m=I[K];z.push(e.factory.createImportSpecifier(e.factory.createIdentifier("default"),m.importClause.name))}z.push.apply(z,e.flatMap(T,function(Se){return Se.importClause.namedBindings.elements}));var Ae=de(z),Oe=p.length>0?p[0]:T[0],te=Ae.length===0?me?void 0:e.factory.createNamedImports(e.emptyArray):T.length===0?e.factory.createNamedImports(Ae):e.factory.updateNamedImports(T[0].importClause.namedBindings,Ae);g&&me&&te?(U.push(D(Oe,me,void 0)),U.push(D((oe=T[0])!==null&&oe!==void 0?oe:Oe,void 0,te))):U.push(D(Oe,me,te))}}return U}ue.coalesceImports=ye;function O(q){for(var oe,se={defaultImports:[],namespaceImports:[],namedImports:[]},w={defaultImports:[],namespaceImports:[],namedImports:[]},R=0,ne=q;R<ne.length;R++){var U=ne[R];if(U.importClause===void 0){oe=oe||U;continue}var C=U.importClause.isTypeOnly?se:w,d=U.importClause,G=d.name,g=d.namedBindings;G&&C.defaultImports.push(U),g&&(e.isNamespaceImport(g)?C.namespaceImports.push(U):C.namedImports.push(U))}return{importWithoutClause:oe,typeOnlyImports:se,regularImports:w}}function A(q){if(q.length===0)return q;var oe=f(q),se=oe.exportWithoutClause,w=oe.namedExports,R=oe.typeOnlyExports,ne=[];se&&ne.push(se);for(var U=0,C=[w,R];U<C.length;U++){var d=C[U];if(d.length!==0){var G=[];G.push.apply(G,e.flatMap(d,function(T){return T.exportClause&&e.isNamedExports(T.exportClause)?T.exportClause.elements:e.emptyArray}));var g=de(G),p=d[0];ne.push(e.factory.updateExportDeclaration(p,p.decorators,p.modifiers,p.isTypeOnly,p.exportClause&&(e.isNamedExports(p.exportClause)?e.factory.updateNamedExports(p.exportClause,g):e.factory.updateNamespaceExport(p.exportClause,p.exportClause.name)),p.moduleSpecifier))}}return ne;function f(T){for(var m,N=[],P=[],x=0,M=T;x<M.length;x++){var me=M[x];me.exportClause===void 0?m=m||me:me.isTypeOnly?P.push(me):N.push(me)}return{exportWithoutClause:m,namedExports:N,typeOnlyExports:P}}}ue.coalesceExports=A;function D(q,oe,se){return e.factory.updateImportDeclaration(q,q.decorators,q.modifiers,e.factory.updateImportClause(q.importClause,q.importClause.isTypeOnly,oe,se),q.moduleSpecifier)}function de(q){return e.stableSort(q,_e)}function _e(q,oe){return V(q.propertyName||q.name,oe.propertyName||oe.name)||V(q.name,oe.name)}ue.compareImportOrExportSpecifiers=_e;function y(q,oe){var se=q===void 0?void 0:re(q),w=oe===void 0?void 0:re(oe);return e.compareBooleans(se===void 0,w===void 0)||e.compareBooleans(e.isExternalModuleNameRelative(se),e.isExternalModuleNameRelative(w))||e.compareStringsCaseInsensitive(se,w)}ue.compareModuleSpecifiers=y;function V(q,oe){return e.compareStringsCaseInsensitive(q.text,oe.text)}function Z(q){var oe;switch(q.kind){case 263:return(oe=e.tryCast(q.moduleReference,e.isExternalModuleReference))===null||oe===void 0?void 0:oe.expression;case 264:return q.moduleSpecifier;case 235:return q.declarationList.declarations[0].initializer.arguments[0]}}function E(q){return e.arrayIsSorted(q,k)}ue.importsAreSorted=E;function H(q){return e.arrayIsSorted(q,_e)}ue.importSpecifiersAreSorted=H;function L(q,oe){var se=e.binarySearch(q,oe,e.identity,k);return se<0?~se:se}ue.getImportDeclarationInsertionIndex=L;function ee(q,oe){var se=e.binarySearch(q,oe,e.identity,_e);return se<0?~se:se}ue.getImportSpecifierInsertionIndex=ee;function k(q,oe){return y(Z(q),Z(oe))||b(q,oe)}ue.compareImportsOrRequireStatements=k;function b(q,oe){return e.compareValues(ie(q),ie(oe))}function ie(q){var oe;switch(q.kind){case 264:return q.importClause?q.importClause.isTypeOnly?1:((oe=q.importClause.namedBindings)===null||oe===void 0?void 0:oe.kind)===266?2:q.importClause.name?3:4:0;case 263:return 5;case 235:return 6}}})(o=e.OrganizeImports||(e.OrganizeImports={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(E,H){var L=[];return Y(E,H,L),W(E,L),L.sort(function(ee,k){return ee.textSpan.start-k.textSpan.start})}ue.collectElements=$;function Y(E,H,L){for(var ee=40,k=0,b=Vr(Vr([],E.statements,!0),[E.endOfFileToken],!1),ie=b.length;k<ie;){for(;k<ie&&!e.isAnyImportSyntax(b[k]);)se(b[k]),k++;if(k===ie)break;for(var q=k;k<ie&&e.isAnyImportSyntax(b[k]);)A(b[k],E,H,L),k++;var oe=k-1;oe!==q&&L.push(D(e.findChildOfKind(b[q],100,E).getStart(E),b[oe].getEnd(),"imports"))}function se(w){var R;if(ee!==0){H.throwIfCancellationRequested(),(e.isDeclaration(w)||e.isVariableStatement(w)||e.isReturnStatement(w)||w.kind===1)&&A(w,E,H,L),e.isFunctionLike(w)&&e.isBinaryExpression(w.parent)&&e.isPropertyAccessExpression(w.parent.left)&&A(w.parent.left,E,H,L),(e.isBlock(w)||e.isModuleBlock(w))&&O(w.statements.end,E,H,L),(e.isClassLike(w)||e.isInterfaceDeclaration(w))&&O(w.members.end,E,H,L);var ne=de(w,E);ne&&L.push(ne),ee--,e.isCallExpression(w)?(ee++,se(w.expression),ee--,w.arguments.forEach(se),(R=w.typeArguments)===null||R===void 0||R.forEach(se)):e.isIfStatement(w)&&w.elseStatement&&e.isIfStatement(w.elseStatement)?(se(w.expression),se(w.thenStatement),ee++,se(w.elseStatement),ee--):w.forEachChild(se),ee++}}}function W(E,H){for(var L=[],ee=E.getLineStarts(),k=0,b=ee;k<b.length;k++){var ie=b[k],q=E.getLineEndOfPosition(ie),oe=E.text.substring(ie,q),se=ye(oe);if(!(!se||e.isInComment(E,ie)))if(se[1]){var R=L.pop();R&&(R.textSpan.length=q-R.textSpan.start,R.hintSpan.length=q-R.textSpan.start,H.push(R))}else{var w=e.createTextSpanFromBounds(E.text.indexOf("//",ie),q);L.push(V(w,"region",w,!1,se[2]||"#region"))}}}var re=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function ye(E){return E=e.trimStringStart(E),e.startsWith(E,"//")?(E=e.trimString(E.slice(2)),re.exec(E)):null}function O(E,H,L,ee){var k=e.getLeadingCommentRanges(H.text,E);if(!k)return;for(var b=-1,ie=-1,q=0,oe=H.getFullText(),se=0,w=k;se<w.length;se++){var R=w[se],ne=R.kind,U=R.pos,C=R.end;switch(L.throwIfCancellationRequested(),ne){case 2:var d=oe.slice(U,C);if(ye(d)){G(),q=0;break}q===0&&(b=U),ie=C,q++;break;case 3:G(),ee.push(D(U,C,"comment")),q=0;break;default:e.Debug.assertNever(ne)}}G();function G(){q>1&&ee.push(D(b,ie,"comment"))}}function A(E,H,L,ee){e.isJsxText(E)||O(E.pos,H,L,ee)}function D(E,H,L){return V(e.createTextSpanFromBounds(E,H),L)}function de(E,H){switch(E.kind){case 233:if(e.isFunctionLike(E.parent))return _e(E.parent,E,H);switch(E.parent.kind){case 238:case 241:case 242:case 240:case 237:case 239:case 246:case 290:return R(E.parent);case 250:var L=E.parent;if(L.tryBlock===E)return R(E.parent);if(L.finallyBlock===E){var ee=e.findChildOfKind(L,96,H);if(ee)return R(ee)}default:return V(e.createTextSpanFromNode(E,H),"code")}case 260:return R(E.parent);case 255:case 224:case 256:case 258:case 261:case 180:case 199:return R(E);case 182:return R(E,!1,!e.isTupleTypeNode(E.parent),22);case 287:case 288:return ne(E.statements);case 203:return w(E);case 202:return w(E,22);case 276:return ie(E);case 280:return q(E);case 277:case 278:return oe(E.attributes);case 221:case 14:return se(E);case 200:return R(E,!1,!e.isBindingElement(E.parent),22);case 212:return b(E);case 206:return k(E)}function k(U){if(U.arguments.length){var C=e.findChildOfKind(U,20,H),d=e.findChildOfKind(U,21,H);if(!(!C||!d||e.positionsAreOnSameLine(C.pos,d.pos,H)))return y(C,d,U,H,!1,!0)}}function b(U){if(!(e.isBlock(U.body)||e.positionsAreOnSameLine(U.body.getFullStart(),U.body.getEnd(),H))){var C=e.createTextSpanFromBounds(U.body.getFullStart(),U.body.getEnd());return V(C,"code",e.createTextSpanFromNode(U))}}function ie(U){var C=e.createTextSpanFromBounds(U.openingElement.getStart(H),U.closingElement.getEnd()),d=U.openingElement.tagName.getText(H),G="<"+d+">...</"+d+">";return V(C,"code",C,!1,G)}function q(U){var C=e.createTextSpanFromBounds(U.openingFragment.getStart(H),U.closingFragment.getEnd()),d="<>...</>";return V(C,"code",C,!1,d)}function oe(U){if(U.properties.length!==0)return D(U.getStart(H),U.getEnd(),"code")}function se(U){if(!(U.kind===14&&U.text.length===0))return D(U.getStart(H),U.getEnd(),"code")}function w(U,C){return C===void 0&&(C=18),R(U,!1,!e.isArrayLiteralExpression(U.parent)&&!e.isCallExpression(U.parent),C)}function R(U,C,d,G,g){C===void 0&&(C=!1),d===void 0&&(d=!0),G===void 0&&(G=18),g===void 0&&(g=G===18?19:23);var p=e.findChildOfKind(E,G,H),f=e.findChildOfKind(E,g,H);return p&&f&&y(p,f,U,H,C,d)}function ne(U){return U.length?V(e.createTextSpanFromRange(U),"code"):void 0}}function _e(E,H,L){var ee=Z(E,H,L),k=e.findChildOfKind(H,19,L);return ee&&k&&y(ee,k,E,L,E.kind!==212)}function y(E,H,L,ee,k,b){k===void 0&&(k=!1),b===void 0&&(b=!0);var ie=e.createTextSpanFromBounds(b?E.getFullStart():E.getStart(ee),H.getEnd());return V(ie,"code",e.createTextSpanFromNode(L,ee),k)}function V(E,H,L,ee,k){return L===void 0&&(L=E),ee===void 0&&(ee=!1),k===void 0&&(k="..."),{textSpan:E,kind:H,hintSpan:L,bannerText:k,autoCollapse:ee}}function Z(E,H,L){if(e.isNodeArrayMultiLine(E.parameters,L)){var ee=e.findChildOfKind(E,20,L);if(ee)return ee}return e.findChildOfKind(H,18,L)}})(o=e.OutliningElementsCollector||(e.OutliningElementsCollector={}))})(vn||(vn={}));var vn;(function(e){var o;(function(d){d[d.exact=0]="exact",d[d.prefix=1]="prefix",d[d.substring=2]="substring",d[d.camelCase=3]="camelCase"})(o=e.PatternMatchKind||(e.PatternMatchKind={}));function ue(d,G){return{kind:d,isCaseSensitive:G}}function $(d){var G=new e.Map,g=d.trim().split(".").map(function(p){return y(p.trim())});if(!g.some(function(p){return!p.subWordTextChunks.length}))return{getFullMatch:function(p,f){return Y(p,f,g,G)},getMatchForLastSegmentOfPattern:function(p){return ye(p,e.last(g),G)},patternContainsDots:g.length>1}}e.createPatternMatcher=$;function Y(d,G,g,p){var f=ye(G,e.last(g),p);if(f&&!(g.length-1>d.length)){for(var T,m=g.length-2,N=d.length-1;m>=0;m-=1,N-=1)T=O(T,ye(d[N],g[m],p));return T}}function W(d,G){var g=G.get(d);return g||G.set(d,g=q(d)),g}function re(d,G,g){var p=E(d,G.textLowerCase);if(p===0)return ue(G.text.length===d.length?o.exact:o.prefix,e.startsWith(d,G.text));if(G.isLowerCase){if(p===-1)return;for(var f=W(d,g),T=0,m=f;T<m.length;T++){var N=m[T];if(D(d,N,G.text,!0))return ue(o.substring,D(d,N,G.text,!1))}if(G.text.length<d.length&&V(d.charCodeAt(p)))return ue(o.substring,!1)}else{if(d.indexOf(G.text)>0)return ue(o.substring,!0);if(G.characterSpans.length>0){var P=W(d,g),x=_e(d,P,G,!1)?!0:_e(d,P,G,!0)?!1:void 0;if(x!==void 0)return ue(o.camelCase,x)}}}function ye(d,G,g){if(C(G.totalTextChunk.text,function(x){return x!==32&&x!==42})){var p=re(d,G.totalTextChunk,g);if(p)return p}for(var f=G.subWordTextChunks,T,m=0,N=f;m<N.length;m++){var P=N[m];T=O(T,re(d,P,g))}return T}function O(d,G){return e.min(d,G,A)}function A(d,G){return d===void 0?1:G===void 0?-1:e.compareValues(d.kind,G.kind)||e.compareBooleans(!d.isCaseSensitive,!G.isCaseSensitive)}function D(d,G,g,p,f){return f===void 0&&(f={start:0,length:g.length}),f.length<=G.length&&U(0,f.length,function(T){return de(g.charCodeAt(f.start+T),d.charCodeAt(G.start+T),p)})}function de(d,G,g){return g?H(d)===H(G):d===G}function _e(d,G,g,p){for(var f=g.characterSpans,T=0,m=0,N,P;;){if(m===f.length)return!0;if(T===G.length)return!1;for(var x=G[T],M=!1;m<f.length;m++){var me=f[m];if(M&&(!V(g.text.charCodeAt(f[m-1].start))||!V(g.text.charCodeAt(f[m].start)))||!D(d,x,g.text,p,me))break;M=!0,N=N===void 0?T:N,P=P===void 0?!0:P,x=e.createTextSpan(x.start+me.length,x.length-me.length)}!M&&P!==void 0&&(P=!1),T++}}function y(d){return{totalTextChunk:b(d),subWordTextChunks:k(d)}}function V(d){if(d>=65&&d<=90)return!0;if(d<127||!e.isUnicodeIdentifierStart(d,99))return!1;var G=String.fromCharCode(d);return G===G.toUpperCase()}function Z(d){if(d>=97&&d<=122)return!0;if(d<127||!e.isUnicodeIdentifierStart(d,99))return!1;var G=String.fromCharCode(d);return G===G.toLowerCase()}function E(d,G){for(var g=d.length-G.length,p=function(m){if(C(G,function(N,P){return H(d.charCodeAt(P+m))===N}))return{value:m}},f=0;f<=g;f++){var T=p(f);if(typeof T=="object")return T.value}return-1}function H(d){return d>=65&&d<=90?97+(d-65):d<127?d:String.fromCharCode(d).toLowerCase().charCodeAt(0)}function L(d){return d>=48&&d<=57}function ee(d){return V(d)||Z(d)||L(d)||d===95||d===36}function k(d){for(var G=[],g=0,p=0,f=0;f<d.length;f++){var T=d.charCodeAt(f);ee(T)?(p===0&&(g=f),p++):p>0&&(G.push(b(d.substr(g,p))),p=0)}return p>0&&G.push(b(d.substr(g,p))),G}function b(d){var G=d.toLowerCase();return{text:d,textLowerCase:G,isLowerCase:d===G,characterSpans:ie(d)}}function ie(d){return oe(d,!1)}e.breakIntoCharacterSpans=ie;function q(d){return oe(d,!0)}e.breakIntoWordSpans=q;function oe(d,G){for(var g=[],p=0,f=1;f<d.length;f++){var T=L(d.charCodeAt(f-1)),m=L(d.charCodeAt(f)),N=ne(d,G,f),P=G&&R(d,f,p);(se(d.charCodeAt(f-1))||se(d.charCodeAt(f))||T!==m||N||P)&&(w(d,p,f)||g.push(e.createTextSpan(p,f-p)),p=f)}return w(d,p,d.length)||g.push(e.createTextSpan(p,d.length-p)),g}function se(d){switch(d){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function w(d,G,g){return C(d,function(p){return se(p)&&p!==95},G,g)}function R(d,G,g){return G!==g&&G+1<d.length&&V(d.charCodeAt(G))&&Z(d.charCodeAt(G+1))&&C(d,V,g,G)}function ne(d,G,g){var p=V(d.charCodeAt(g-1)),f=V(d.charCodeAt(g));return f&&(!G||!p)}function U(d,G,g){for(var p=d;p<G;p++)if(!g(p))return!1;return!0}function C(d,G,g,p){return g===void 0&&(g=0),p===void 0&&(p=d.length),U(g,p,function(f){return G(d.charCodeAt(f),f)})}})(vn||(vn={}));var vn;(function(e){function o(ue,$,Y){$===void 0&&($=!0),Y===void 0&&(Y=!1);var W={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},re=[],ye,O,A,D=0,de=!1;function _e(){return O=A,A=e.scanner.scan(),A===18?D++:A===19&&D--,A}function y(){var U=e.scanner.getTokenValue(),C=e.scanner.getTokenPos();return{fileName:U,pos:C,end:C+U.length}}function V(){ye||(ye=[]),ye.push({ref:y(),depth:D})}function Z(){re.push(y()),E()}function E(){D===0&&(de=!0)}function H(){var U=e.scanner.getToken();return U===134?(U=_e(),U===140&&(U=_e(),U===10&&V()),!0):!1}function L(){if(O===24)return!1;var U=e.scanner.getToken();if(U===100){if(U=_e(),U===20){if(U=_e(),U===10||U===14)return Z(),!0}else{if(U===10)return Z(),!0;if(U===150){var C=e.scanner.lookAhead(function(){var d=e.scanner.scan();return d!==154&&(d===41||d===18||d===79||e.isKeyword(d))});C&&(U=_e())}if(U===79||e.isKeyword(U))if(U=_e(),U===154){if(U=_e(),U===10)return Z(),!0}else if(U===63){if(k(!0))return!0}else if(U===27)U=_e();else return!0;if(U===18){for(U=_e();U!==19&&U!==1;)U=_e();U===19&&(U=_e(),U===154&&(U=_e(),U===10&&Z()))}else U===41&&(U=_e(),U===127&&(U=_e(),(U===79||e.isKeyword(U))&&(U=_e(),U===154&&(U=_e(),U===10&&Z()))))}return!0}return!1}function ee(){var U=e.scanner.getToken();if(U===93){if(E(),U=_e(),U===150){var C=e.scanner.lookAhead(function(){var d=e.scanner.scan();return d===41||d===18});C&&(U=_e())}if(U===18){for(U=_e();U!==19&&U!==1;)U=_e();U===19&&(U=_e(),U===154&&(U=_e(),U===10&&Z()))}else if(U===41)U=_e(),U===154&&(U=_e(),U===10&&Z());else if(U===100){if(U=_e(),U===150){var C=e.scanner.lookAhead(function(){var G=e.scanner.scan();return G===79||e.isKeyword(G)});C&&(U=_e())}if((U===79||e.isKeyword(U))&&(U=_e(),U===63&&k(!0)))return!0}return!0}return!1}function k(U,C){C===void 0&&(C=!1);var d=U?_e():e.scanner.getToken();return d===144?(d=_e(),d===20&&(d=_e(),(d===10||C&&d===14)&&Z()),!0):!1}function b(){var U=e.scanner.getToken();if(U===79&&e.scanner.getTokenValue()==="define"){if(U=_e(),U!==20)return!0;if(U=_e(),U===10||U===14)if(U=_e(),U===27)U=_e();else return!0;if(U!==22)return!0;for(U=_e();U!==23&&U!==1;)(U===10||U===14)&&Z(),U=_e();return!0}return!1}function ie(){for(e.scanner.setText(ue),_e();e.scanner.getToken()!==1;)H()||L()||ee()||Y&&(k(!1,!0)||b())||_e();e.scanner.setText(void 0)}if($&&ie(),e.processCommentPragmas(W,ue),e.processPragmasIntoFields(W,e.noop),de){if(ye)for(var q=0,oe=ye;q<oe.length;q++){var se=oe[q];re.push(se.ref)}return{referencedFiles:W.referencedFiles,typeReferenceDirectives:W.typeReferenceDirectives,libReferenceDirectives:W.libReferenceDirectives,importedFiles:re,isLibFile:!!W.hasNoDefaultLib,ambientExternalModules:void 0}}else{var w=void 0;if(ye)for(var R=0,ne=ye;R<ne.length;R++){var se=ne[R];se.depth===0?(w||(w=[]),w.push(se.ref.fileName)):re.push(se.ref)}return{referencedFiles:W.referencedFiles,typeReferenceDirectives:W.typeReferenceDirectives,libReferenceDirectives:W.libReferenceDirectives,importedFiles:re,isLibFile:!!W.hasNoDefaultLib,ambientExternalModules:w}}}e.preProcessFile=o})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(de,_e,y,V){var Z=e.getAdjustedRenameLocation(e.getTouchingPropertyName(_e,y));if(D(Z)){var E=Y(Z,de.getTypeChecker(),_e,de,V);if(E)return E}return O(e.Diagnostics.You_cannot_rename_this_element)}ue.getRenameInfo=$;function Y(de,_e,y,V,Z){var E=_e.getSymbolAtLocation(de);if(!E){if(e.isStringLiteralLike(de)){var H=e.getContextualTypeOrAncestorTypeNodeType(de,_e);if(H&&(H.flags&128||H.flags&1048576&&e.every(H.types,function(oe){return!!(oe.flags&128)})))return ye(de.text,de.text,"string","",de,y)}else if(e.isLabelName(de)){var L=e.getTextOfNode(de);return ye(L,L,"label","",de,y)}return}var ee=E.declarations;if(!(!ee||ee.length===0)){if(ee.some(function(oe){return W(V,oe)}))return O(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(e.isIdentifier(de)&&de.originalKeywordKind===88&&E.parent&&E.parent.flags&1536)){if(e.isStringLiteralLike(de)&&e.tryGetImportFromModuleSpecifier(de))return Z&&Z.allowRenameOfImportPath?re(de,y,E):void 0;var k=e.SymbolDisplay.getSymbolKind(_e,E,de),b=e.isImportOrExportSpecifierName(de)||e.isStringOrNumericLiteralLike(de)&&de.parent.kind===160?e.stripQuotes(e.getTextOfIdentifierOrLiteral(de)):void 0,ie=b||_e.symbolToString(E),q=b||_e.getFullyQualifiedName(E);return ye(ie,q,k,e.SymbolDisplay.getSymbolModifiers(_e,E),de,y)}}}function W(de,_e){var y=_e.getSourceFile();return de.isSourceFileDefaultLibrary(y)&&e.fileExtensionIs(y.fileName,".d.ts")}function re(de,_e,y){if(!e.isExternalModuleNameRelative(de.text))return O(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var V=y.declarations&&e.find(y.declarations,e.isSourceFile);if(V){var Z=e.endsWith(de.text,"/index")||e.endsWith(de.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(V.fileName),"/index"),E=Z===void 0?V.fileName:Z,H=Z===void 0?"module":"directory",L=de.text.lastIndexOf("/")+1,ee=e.createTextSpan(de.getStart(_e)+1+L,de.text.length-L);return{canRename:!0,fileToRename:E,kind:H,displayName:E,fullDisplayName:E,kindModifiers:"",triggerSpan:ee}}}function ye(de,_e,y,V,Z,E){return{canRename:!0,fileToRename:void 0,kind:y,displayName:de,fullDisplayName:_e,kindModifiers:V,triggerSpan:A(Z,E)}}function O(de){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(de)}}function A(de,_e){var y=de.getStart(_e),V=de.getWidth(_e);return e.isStringLiteralLike(de)&&(y+=1,V-=2),e.createTextSpan(y,V)}function D(de){switch(de.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(de);default:return!1}}})(o=e.Rename||(e.Rename={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(y,V){var Z,E={textSpan:e.createTextSpanFromBounds(V.getFullStart(),V.getEnd())},H=V;e:for(;;){var L=re(H);if(!L.length)break;for(var ee=0;ee<L.length;ee++){var k=L[ee-1],b=L[ee],ie=L[ee+1];if(e.getTokenPosOfNode(b,V,!0)>y)break e;var q=e.singleOrUndefined(e.getTrailingCommentRanges(V.text,b.end));if(q&&q.kind===2&&C(q.pos,q.end),Y(V,y,b)){if(e.isBlock(b)||e.isTemplateSpan(b)||e.isTemplateHead(b)||e.isTemplateTail(b)||k&&e.isTemplateHead(k)||e.isVariableDeclarationList(b)&&e.isVariableStatement(H)||e.isSyntaxList(b)&&e.isVariableDeclarationList(H)||e.isVariableDeclaration(b)&&e.isSyntaxList(H)&&L.length===1||e.isJSDocTypeExpression(b)||e.isJSDocSignature(b)||e.isJSDocTypeLiteral(b)){H=b;break}if(e.isTemplateSpan(H)&&ie&&e.isTemplateMiddleOrTemplateTail(ie)){var oe=b.getFullStart()-2,se=ie.getStart()+1;U(oe,se)}var w=e.isSyntaxList(b)&&D(k)&&de(ie)&&!e.positionsAreOnSameLine(k.getStart(),ie.getStart(),V),R=w?k.getEnd():b.getStart(),ne=w?ie.getStart():_e(V,b);e.hasJSDocNodes(b)&&(!((Z=b.jsDoc)===null||Z===void 0)&&Z.length)&&U(e.first(b.jsDoc).getStart(),ne),U(R,ne),(e.isStringLiteral(b)||e.isTemplateLiteral(b))&&U(R+1,ne-1),H=b;break}if(ee===L.length-1)break e}}return E;function U(d,G){if(d!==G){var g=e.createTextSpanFromBounds(d,G);(!E||!e.textSpansEqual(g,E.textSpan)&&e.textSpanIntersectsWithPosition(g,y))&&(E=Mt({textSpan:g},E&&{parent:E}))}}function C(d,G){U(d,G);for(var g=d;V.text.charCodeAt(g)===47;)g++;U(g,G)}}ue.getSmartSelectionRange=$;function Y(y,V,Z){if(e.Debug.assert(Z.pos<=V),V<Z.end)return!0;var E=Z.getEnd();return E===V?e.getTouchingPropertyName(y,V).pos<Z.end:!1}var W=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function re(y){if(e.isSourceFile(y))return ye(y.getChildAt(0).getChildren(),W);if(e.isMappedTypeNode(y)){var V=y.getChildren(),Z=V[0],E=V.slice(1),H=e.Debug.checkDefined(E.pop());e.Debug.assertEqual(Z.kind,18),e.Debug.assertEqual(H.kind,19);var L=ye(E,function(ie){return ie===y.readonlyToken||ie.kind===143||ie===y.questionToken||ie.kind===57}),ee=ye(L,function(ie){var q=ie.kind;return q===22||q===161||q===23});return[Z,A(O(ee,function(ie){var q=ie.kind;return q===58})),H]}if(e.isPropertySignature(y)){var E=ye(y.getChildren(),function(q){return q===y.name||e.contains(y.modifiers,q)});return O(E,function(q){var oe=q.kind;return oe===58})}if(e.isParameter(y)){var k=ye(y.getChildren(),function(ie){return ie===y.dotDotDotToken||ie===y.name}),b=ye(k,function(ie){return ie===k[0]||ie===y.questionToken});return O(b,function(ie){var q=ie.kind;return q===63})}return e.isBindingElement(y)?O(y.getChildren(),function(ie){var q=ie.kind;return q===63}):y.getChildren()}function ye(y,V){for(var Z=[],E,H=0,L=y;H<L.length;H++){var ee=L[H];V(ee)?(E=E||[],E.push(ee)):(E&&(Z.push(A(E)),E=void 0),Z.push(ee))}return E&&Z.push(A(E)),Z}function O(y,V,Z){if(Z===void 0&&(Z=!0),y.length<2)return y;var E=e.findIndex(y,V);if(E===-1)return y;var H=y.slice(0,E),L=y[E],ee=e.last(y),k=Z&&ee.kind===26,b=y.slice(E+1,k?y.length-1:void 0),ie=e.compact([H.length?A(H):void 0,L,b.length?A(b):void 0]);return k?ie.concat(ee):ie}function A(y){return e.Debug.assertGreaterThanOrEqual(y.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(y),y[0].pos,e.last(y).end)}function D(y){var V=y&&y.kind;return V===18||V===22||V===20||V===278}function de(y){var V=y&&y.kind;return V===19||V===23||V===21||V===279}function _e(y,V){switch(V.kind){case 335:case 333:case 342:case 340:case 337:return y.getLineEndOfPosition(V.getStart());default:return V.getEnd()}}})(o=e.SmartSelectionRange||(e.SmartSelectionRange={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $;(function(M){M[M.Call=0]="Call",M[M.TypeArgs=1]="TypeArgs",M[M.Contextual=2]="Contextual"})($||($={}));function Y(M,me,z,K,I){var Ae=M.getTypeChecker(),Oe=e.findTokenOnLeftOfPosition(me,z);if(Oe){var te=!!K&&K.kind==="characterTyped";if(!(te&&(e.isInString(me,z,Oe)||e.isInComment(me,z)))){var Se=!!K&&K.kind==="invoked",be=w(Oe,z,me,Ae,Se);if(be){I.throwIfCancellationRequested();var Ce=re(be,Ae,me,Oe,te);return I.throwIfCancellationRequested(),Ce?Ae.runWithCancellationToken(I,function(Be){return Ce.kind===0?d(Ce.candidates,Ce.resolvedSignature,be,me,Be):G(Ce.symbol,be,me,Be)}):e.isSourceFileJS(me)?O(be,M,I):void 0}}}}ue.getSignatureHelpItems=Y;var W;(function(M){M[M.Candidate=0]="Candidate",M[M.Type=1]="Type"})(W||(W={}));function re(M,me,z,K,I){var Ae=M.invocation,Oe=M.argumentCount;switch(Ae.kind){case 0:{if(I&&!ye(K,Ae.node,z))return;var te=[],Se=me.getResolvedSignatureForSignatureHelp(Ae.node,te,Oe);return te.length===0?void 0:{kind:0,candidates:te,resolvedSignature:Se}}case 1:{var be=Ae.called;if(I&&!A(K,z,e.isIdentifier(be)?be.parent:be))return;var te=e.getPossibleGenericSignatures(be,Oe,me);if(te.length!==0)return{kind:0,candidates:te,resolvedSignature:e.first(te)};var Ce=me.getSymbolAtLocation(be);return Ce&&{kind:1,symbol:Ce}}case 2:return{kind:0,candidates:[Ae.signature],resolvedSignature:Ae.signature};default:return e.Debug.assertNever(Ae)}}function ye(M,me,z){if(!e.isCallOrNewExpression(me))return!1;var K=me.getChildren(z);switch(M.kind){case 20:return e.contains(K,M);case 27:{var I=e.findContainingList(M);return!!I&&e.contains(K,I)}case 29:return A(M,z,me.expression);default:return!1}}function O(M,me,z){if(M.invocation.kind!==2){var K=ne(M.invocation),I=e.isPropertyAccessExpression(K)?K.name.text:void 0,Ae=me.getTypeChecker();return I===void 0?void 0:e.firstDefined(me.getSourceFiles(),function(Oe){return e.firstDefined(Oe.getNamedDeclarations().get(I),function(te){var Se=te.symbol&&Ae.getTypeOfSymbolAtLocation(te.symbol,te),be=Se&&Se.getCallSignatures();if(be&&be.length)return Ae.runWithCancellationToken(z,function(Ce){return d(be,be[0],M,Oe,Ce,!0)})})})}}function A(M,me,z){for(var K=M.getFullStart(),I=M.parent;I;){var Ae=e.findPrecedingToken(K,me,I,!0);if(Ae)return e.rangeContainsRange(z,Ae);I=I.parent}return e.Debug.fail("Could not find preceding token")}function D(M,me,z){var K=y(M,me,z);return!K||K.isTypeParameterList||K.invocation.kind!==0?void 0:{invocation:K.invocation.node,argumentCount:K.argumentCount,argumentIndex:K.argumentIndex}}ue.getArgumentInfoForCompletions=D;function de(M,me){var z=_e(M,me);if(z){var K=z.list,I=z.argumentIndex,Ae=b(K);I!==0&&e.Debug.assertLessThan(I,Ae);var Oe=oe(K,me);return{list:K,argumentIndex:I,argumentCount:Ae,argumentsSpan:Oe}}}function _e(M,me){if(M.kind===29||M.kind===20)return{list:R(M.parent,M,me),argumentIndex:0};var z=e.findContainingList(M);return z&&{list:z,argumentIndex:k(z,M)}}function y(M,me,z){var K=M.parent;if(e.isCallOrNewExpression(K)){var I=K,Ae=de(M,z);if(!Ae)return;var Oe=Ae.list,te=Ae.argumentIndex,Se=Ae.argumentCount,be=Ae.argumentsSpan,Ce=!!K.typeArguments&&K.typeArguments.pos===Oe.pos;return{isTypeParameterList:Ce,invocation:{kind:0,node:I},argumentsSpan:be,argumentIndex:te,argumentCount:Se}}else{if(e.isNoSubstitutionTemplateLiteral(M)&&e.isTaggedTemplateExpression(K))return e.isInsideTemplateLiteral(M,me,z)?q(K,0,z):void 0;if(e.isTemplateHead(M)&&K.parent.kind===208){var Be=K,De=Be.parent;e.Debug.assert(Be.kind===221);var te=e.isInsideTemplateLiteral(M,me,z)?0:1;return q(De,te,z)}else if(e.isTemplateSpan(K)&&e.isTaggedTemplateExpression(K.parent.parent)){var en=K,De=K.parent.parent;if(e.isTemplateTail(M)&&!e.isInsideTemplateLiteral(M,me,z))return;var fe=en.parent.templateSpans.indexOf(en),te=ie(fe,M,me,z);return q(De,te,z)}else if(e.isJsxOpeningLikeElement(K)){var Ne=K.attributes.pos,qe=e.skipTrivia(z.text,K.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:K},argumentsSpan:e.createTextSpan(Ne,qe-Ne),argumentIndex:0,argumentCount:1}}else{var pe=e.getPossibleTypeArgumentsInfo(M,z);if(pe){var we=pe.called,pn=pe.nTypeArguments,I={kind:1,called:we},be=e.createTextSpanFromBounds(we.getStart(z),M.end);return{isTypeParameterList:!0,invocation:I,argumentsSpan:be,argumentIndex:pn,argumentCount:pn+1}}return}}}function V(M,me,z,K){return H(M,me,z,K)||y(M,me,z)}function Z(M){return e.isBinaryExpression(M.parent)?Z(M.parent):M}function E(M){return e.isBinaryExpression(M.left)?E(M.left)+1:2}function H(M,me,z,K){var I=L(M,z,K);if(I){var Ae=I.contextualType,Oe=I.argumentIndex,te=I.argumentCount,Se=I.argumentsSpan,be=Ae.getNonNullableType(),Ce=be.getCallSignatures();if(Ce.length===1){var Be={kind:2,signature:e.first(Ce),node:M,symbol:ee(be.symbol)};return{isTypeParameterList:!1,invocation:Be,argumentsSpan:Se,argumentIndex:Oe,argumentCount:te}}}}function L(M,me,z){if(!(M.kind!==20&&M.kind!==27)){var K=M.parent;switch(K.kind){case 210:case 167:case 211:case 212:var I=de(M,me);if(!I)return;var Ae=I.argumentIndex,Oe=I.argumentCount,te=I.argumentsSpan,Se=e.isMethodDeclaration(K)?z.getContextualTypeForObjectLiteralElement(K):z.getContextualType(K);return Se&&{contextualType:Se,argumentIndex:Ae,argumentCount:Oe,argumentsSpan:te};case 219:{var be=Z(K),Ce=z.getContextualType(be),Be=M.kind===20?0:E(K)-1,De=E(be);return Ce&&{contextualType:Ce,argumentIndex:Be,argumentCount:De,argumentsSpan:e.createTextSpanFromNode(K)}}default:return}}}function ee(M){return M.name==="__type"&&e.firstDefined(M.declarations,function(me){return e.isFunctionTypeNode(me)?me.parent.symbol:void 0})||M}function k(M,me){for(var z=0,K=0,I=M.getChildren();K<I.length;K++){var Ae=I[K];if(Ae===me)break;Ae.kind!==27&&z++}return z}function b(M){var me=M.getChildren(),z=e.countWhere(me,function(K){return K.kind!==27});return me.length>0&&e.last(me).kind===27&&z++,z}function ie(M,me,z,K){return e.Debug.assert(z>=me.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(me)?e.isInsideTemplateLiteral(me,z,K)?0:M+2:M+1}function q(M,me,z){var K=e.isNoSubstitutionTemplateLiteral(M.template)?1:M.template.templateSpans.length+1;return me!==0&&e.Debug.assertLessThan(me,K),{isTypeParameterList:!1,invocation:{kind:0,node:M},argumentsSpan:se(M,z),argumentIndex:me,argumentCount:K}}function oe(M,me){var z=M.getFullStart(),K=e.skipTrivia(me.text,M.getEnd(),!1);return e.createTextSpan(z,K-z)}function se(M,me){var z=M.template,K=z.getStart(),I=z.getEnd();if(z.kind===221){var Ae=e.last(z.templateSpans);Ae.literal.getFullWidth()===0&&(I=e.skipTrivia(me.text,I,!1))}return e.createTextSpan(K,I-K)}function w(M,me,z,K,I){for(var Ae=function(Se){e.Debug.assert(e.rangeContainsRange(Se.parent,Se),"Not a subspan",function(){return"Child: "+e.Debug.formatSyntaxKind(Se.kind)+", parent: "+e.Debug.formatSyntaxKind(Se.parent.kind)});var be=V(Se,me,z,K);if(be)return{value:be}},Oe=M;!e.isSourceFile(Oe)&&(I||!e.isBlock(Oe));Oe=Oe.parent){var te=Ae(Oe);if(typeof te=="object")return te.value}}function R(M,me,z){var K=M.getChildren(z),I=K.indexOf(me);return e.Debug.assert(I>=0&&K.length>I+1),K[I+1]}function ne(M){return M.kind===0?e.getInvokedExpression(M.node):M.called}function U(M){return M.kind===0?M.node:M.kind===1?M.called:M.node}var C=70246400;function d(M,me,z,K,I,Ae){var Oe,te=z.isTypeParameterList,Se=z.argumentCount,be=z.argumentsSpan,Ce=z.invocation,Be=z.argumentIndex,De=U(Ce),en=Ce.kind===2?Ce.symbol:I.getSymbolAtLocation(ne(Ce))||Ae&&((Oe=me.declaration)===null||Oe===void 0?void 0:Oe.symbol),fe=en?e.symbolToDisplayParts(I,en,Ae?K:void 0,void 0):e.emptyArray,Ne=e.map(M,function(i){return f(i,fe,te,I,De,K)});Be!==0&&e.Debug.assertLessThan(Be,Se);for(var qe=0,pe=0,we=0;we<Ne.length;we++){var pn=Ne[we];if(M[we]===me&&(qe=pe,pn.length>1))for(var Qe=0,Re=0,He=pn;Re<He.length;Re++){var Ln=He[Re];if(Ln.isVariadic||Ln.parameters.length>=Se){qe=pe+Qe;break}Qe++}pe+=pn.length}e.Debug.assert(qe!==-1);var Un={items:e.flatMapToMutable(Ne,e.identity),applicableSpan:be,selectedItemIndex:qe,argumentIndex:Be,argumentCount:Se},fn=Un.items[qe];if(fn.isVariadic){var En=e.findIndex(fn.parameters,function(i){return!!i.isRest});-1<En&&En<fn.parameters.length-1?Un.argumentIndex=fn.parameters.length:Un.argumentIndex=Math.min(Un.argumentIndex,fn.parameters.length-1)}return Un}function G(M,me,z,K){var I=me.argumentCount,Ae=me.argumentsSpan,Oe=me.invocation,te=me.argumentIndex,Se=K.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(M);if(Se){var be=[g(M,Se,K,U(Oe),z)];return{items:be,applicableSpan:Ae,selectedItemIndex:0,argumentIndex:te,argumentCount:I}}}function g(M,me,z,K,I){var Ae=e.symbolToDisplayParts(z,M),Oe=e.createPrinter({removeComments:!0}),te=me.map(function(Be){return x(Be,z,K,I,Oe)}),Se=M.getDocumentationComment(z),be=M.getJsDocTags(z),Ce=Vr(Vr([],Ae,!0),[e.punctuationPart(29)],!1);return{isVariadic:!1,prefixDisplayParts:Ce,suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:p,parameters:te,documentation:Se,tags:be}}var p=[e.punctuationPart(27),e.spacePart()];function f(M,me,z,K,I,Ae){var Oe=(z?m:N)(M,K,I,Ae);return e.map(Oe,function(te){var Se=te.isVariadic,be=te.parameters,Ce=te.prefix,Be=te.suffix,De=Vr(Vr([],me,!0),Ce,!0),en=Vr(Vr([],Be,!0),T(M,I,K),!0),fe=M.getDocumentationComment(K),Ne=M.getJsDocTags();return{isVariadic:Se,prefixDisplayParts:De,suffixDisplayParts:en,separatorDisplayParts:p,parameters:be,documentation:fe,tags:Ne}})}function T(M,me,z){return e.mapToDisplayParts(function(K){K.writePunctuation(":"),K.writeSpace(" ");var I=z.getTypePredicateOfSignature(M);I?z.writeTypePredicate(I,me,void 0,K):z.writeType(z.getReturnTypeOfSignature(M),me,void 0,K)})}function m(M,me,z,K){var I=(M.target||M).typeParameters,Ae=e.createPrinter({removeComments:!0}),Oe=(I||e.emptyArray).map(function(Se){return x(Se,me,z,K,Ae)}),te=M.thisParameter?[me.symbolToParameterDeclaration(M.thisParameter,z,C)]:[];return me.getExpandedParameters(M).map(function(Se){var be=e.factory.createNodeArray(Vr(Vr([],te,!0),e.map(Se,function(Be){return me.symbolToParameterDeclaration(Be,z,C)}),!0)),Ce=e.mapToDisplayParts(function(Be){Ae.writeList(2576,be,K,Be)});return{isVariadic:!1,parameters:Oe,prefix:[e.punctuationPart(29)],suffix:Vr([e.punctuationPart(31)],Ce,!0)}})}function N(M,me,z,K){var I=e.createPrinter({removeComments:!0}),Ae=e.mapToDisplayParts(function(Se){if(M.typeParameters&&M.typeParameters.length){var be=e.factory.createNodeArray(M.typeParameters.map(function(Ce){return me.typeParameterToDeclaration(Ce,z,C)}));I.writeList(53776,be,K,Se)}}),Oe=me.getExpandedParameters(M),te=me.hasEffectiveRestParameter(M)?Oe.length===1?function(Se){return!0}:function(Se){return!!(Se.length&&Se[Se.length-1].checkFlags&32768)}:function(Se){return!1};return Oe.map(function(Se){return{isVariadic:te(Se),parameters:Se.map(function(be){return P(be,me,z,K,I)}),prefix:Vr(Vr([],Ae,!0),[e.punctuationPart(20)],!1),suffix:[e.punctuationPart(21)]}})}function P(M,me,z,K,I){var Ae=e.mapToDisplayParts(function(Se){var be=me.symbolToParameterDeclaration(M,z,C);I.writeNode(4,be,K,Se)}),Oe=me.isOptionalParameter(M.valueDeclaration),te=!!(M.checkFlags&32768);return{name:M.name,documentation:M.getDocumentationComment(me),displayParts:Ae,isOptional:Oe,isRest:te}}function x(M,me,z,K,I){var Ae=e.mapToDisplayParts(function(Oe){var te=me.typeParameterToDeclaration(M,z,C);I.writeNode(4,te,K,Oe)});return{name:M.symbol.name,documentation:M.symbol.getDocumentationComment(me),displayParts:Ae,isOptional:!1,isRest:!1}}})(o=e.SignatureHelp||(e.SignatureHelp={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $=30,Y=function(O){return new RegExp("^\\s?/\\*\\*?\\s?"+O+"\\s?\\*\\/\\s?$")};function W(O){return O.includeInlayParameterNameHints==="literals"||O.includeInlayParameterNameHints==="all"}function re(O){return O.includeInlayParameterNameHints==="literals"}function ye(O){var A=O.file,D=O.program,de=O.span,_e=O.cancellationToken,y=O.preferences,V=A.text,Z=D.getCompilerOptions(),E=D.getTypeChecker(),H=[];return L(A),H;function L(m){if(!(!m||m.getFullWidth()===0)){switch(m.kind){case 259:case 255:case 256:case 254:case 224:case 211:case 167:case 212:_e.throwIfCancellationRequested()}if(e.textSpanIntersectsWith(de,m.pos,m.getFullWidth())&&!e.isTypeNode(m))return y.includeInlayVariableTypeHints&&e.isVariableDeclaration(m)||y.includeInlayPropertyDeclarationTypeHints&&e.isPropertyDeclaration(m)?se(m):y.includeInlayEnumMemberValueHints&&e.isEnumMember(m)?q(m):W(y)&&(e.isCallExpression(m)||e.isNewExpression(m))?w(m):(y.includeInlayFunctionParameterTypeHints&&e.isFunctionLikeDeclaration(m)&&e.hasContextSensitiveParameters(m)&&G(m),y.includeInlayFunctionLikeReturnTypeHints&&ee(m)&&C(m)),e.forEachChild(m,L)}}function ee(m){return e.isArrowFunction(m)||e.isFunctionExpression(m)||e.isFunctionDeclaration(m)||e.isMethodDeclaration(m)||e.isGetAccessorDeclaration(m)}function k(m,N,P){H.push({text:(P?"...":"")+p(m,$)+":",position:N,kind:"Parameter",whitespaceAfter:!0})}function b(m,N){H.push({text:": "+p(m,$),position:N,kind:"Type",whitespaceBefore:!0})}function ie(m,N){H.push({text:"= "+p(m,$),position:N,kind:"Enum",whitespaceBefore:!0})}function q(m){if(!m.initializer){var N=E.getConstantValue(m);N!==void 0&&ie(N.toString(),m.end)}}function oe(m){return m.symbol&&m.symbol.flags&1536}function se(m){if(!(!m.initializer||e.isBindingPattern(m.name))){var N=e.getEffectiveTypeAnnotationNode(m);if(!N){var P=E.getTypeAtLocation(m);if(!oe(P)){var x=f(P);x&&b(x,m.name.end)}}}}function w(m){var N=m.arguments;if(!(!N||!N.length)){var P=[],x=E.getResolvedSignatureForSignatureHelp(m,P);if(!(!x||!P.length))for(var M=0;M<N.length;++M){var me=N[M],z=e.skipParentheses(me);if(!(re(y)&&!U(z))){var K=E.getParameterIdentifierNameAtPosition(x,M);if(K){var I=K[0],Ae=K[1],Oe=y.includeInlayParameterNameHintsWhenArgumentMatchesName||!R(z,I);if(!Oe&&!Ae)continue;var te=e.unescapeLeadingUnderscores(I);if(ne(z,te))continue;k(te,me.getStart(),Ae)}}}}}function R(m,N){return e.isIdentifier(m)?m.text===N:e.isPropertyAccessExpression(m)?m.name.text===N:!1}function ne(m,N){if(!e.isIdentifierText(N,Z.target,e.getLanguageVariant(A.scriptKind)))return!1;var P=e.getLeadingCommentRanges(V,m.pos);if(!(P!=null&&P.length))return!1;var x=Y(N);return e.some(P,function(M){return x.test(V.substring(M.pos,M.end))})}function U(m){switch(m.kind){case 217:{var N=m.operand;return e.isLiteralExpression(N)||e.isIdentifier(N)&&e.isInfinityOrNaNString(N.escapedText)}case 110:case 95:case 104:return!0;case 79:{var P=m.escapedText;return T(P)||e.isInfinityOrNaNString(P)}}return e.isLiteralExpression(m)}function C(m){if(!(e.isArrowFunction(m)&&!e.findChildOfKind(m,20,A))){var N=e.getEffectiveReturnTypeNode(m);if(!(N||!m.body)){var P=E.getSignatureFromDeclaration(m);if(P){var x=E.getReturnTypeOfSignature(P);if(!oe(x)){var M=f(x);M&&b(M,d(m))}}}}}function d(m){var N=e.findChildOfKind(m,21,A);return N?N.end:m.parameters.end}function G(m){var N=E.getSignatureFromDeclaration(m);if(N)for(var P=0;P<m.parameters.length&&P<N.parameters.length;++P){var x=m.parameters[P],M=e.getEffectiveTypeAnnotationNode(x);if(!M){var me=g(N.parameters[P]);me&&b(me,x.end)}}}function g(m){var N=m.valueDeclaration;if(!(!N||!e.isParameter(N))){var P=E.getTypeOfSymbolAtLocation(m,N);if(!oe(P))return f(P)}}function p(m,N){return m.length>N?m.substr(0,N-3)+"...":m}function f(m){var N=71286784,P={removeComments:!0},x=e.createPrinter(P);return e.usingSingleLineStringWriter(function(M){var me=E.typeToTypeNode(m,void 0,N,M);e.Debug.assertIsDefined(me,"should always get typenode"),x.writeNode(4,me,A,M)})}function T(m){return m==="undefined"}}ue.provideInlayHints=ye})(o=e.InlayHints||(e.InlayHints={}))})(vn||(vn={}));var vn;(function(e){var o=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function ue(re){var ye=e.createGetCanonicalFileName(re.useCaseSensitiveFileNames()),O=re.getCurrentDirectory(),A=new e.Map,D=new e.Map;return{tryGetSourcePosition:y,tryGetGeneratedPosition:V,toLineColumnOffset:L,clearCache:ee};function de(k){return e.toPath(k,O,ye)}function _e(k,b){var ie=de(k),q=D.get(ie);if(q)return q;var oe;if(re.getDocumentPositionMapper)oe=re.getDocumentPositionMapper(k,b);else if(re.readFile){var se=H(k);oe=se&&e.getDocumentPositionMapper({getSourceFileLike:H,getCanonicalFileName:ye,log:function(w){return re.log(w)}},k,e.getLineInfo(se.text,e.getLineStarts(se)),function(w){return!re.fileExists||re.fileExists(w)?re.readFile(w):void 0})}return D.set(ie,oe||e.identitySourceMapConsumer),oe||e.identitySourceMapConsumer}function y(k){if(e.isDeclarationFileName(k.fileName)){var b=Z(k.fileName);if(b){var ie=_e(k.fileName).getSourcePosition(k);return!ie||ie===k?void 0:y(ie)||ie}}}function V(k){if(!e.isDeclarationFileName(k.fileName)){var b=Z(k.fileName);if(b){var ie=re.getProgram();if(!ie.isSourceOfProjectReferenceRedirect(b.fileName)){var q=ie.getCompilerOptions(),oe=e.outFile(q),se=oe?e.removeFileExtension(oe)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(k.fileName,ie.getCompilerOptions(),O,ie.getCommonSourceDirectory(),ye);if(se!==void 0){var w=_e(se,k.fileName).getGeneratedPosition(k);return w===k?void 0:w}}}}}function Z(k){var b=re.getProgram();if(b){var ie=de(k),q=b.getSourceFileByPath(ie);return q&&q.resolvedPath===ie?q:void 0}}function E(k){var b=de(k),ie=A.get(b);if(ie!==void 0)return ie||void 0;if(!re.readFile||re.fileExists&&!re.fileExists(b)){A.set(b,!1);return}var q=re.readFile(b),oe=q?W(q):!1;return A.set(b,oe),oe||void 0}function H(k){return re.getSourceFileLike?re.getSourceFileLike(k):Z(k)||E(k)}function L(k,b){var ie=H(k);return ie.getLineAndCharacterOfPosition(b)}function ee(){A.clear(),D.clear()}}e.getSourceMapper=ue;function $(re,ye,O,A){var D=e.tryGetSourceMappingURL(O);if(D){var de=o.exec(D);if(de){if(de[1]){var _e=de[1];return Y(re,e.base64decode(e.sys,_e),ye)}D=void 0}}var y=[];D&&y.push(D),y.push(ye+".map");for(var V=D&&e.getNormalizedAbsolutePath(D,e.getDirectoryPath(ye)),Z=0,E=y;Z<E.length;Z++){var H=E[Z],L=e.getNormalizedAbsolutePath(H,e.getDirectoryPath(ye)),ee=A(L,V);if(e.isString(ee))return Y(re,ee,L);if(ee!==void 0)return ee||void 0}}e.getDocumentPositionMapper=$;function Y(re,ye,O){var A=e.tryParseRawSourceMap(ye);if(!(!A||!A.sources||!A.file||!A.mappings)&&!(A.sourcesContent&&A.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(re,A,O)}function W(re,ye){return{text:re,lineMap:ye,getLineAndCharacterOfPosition:function(O){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),O)}}}})(vn||(vn={}));var vn;(function(e){var o=new e.Map;function ue(ee,k,b){k.getSemanticDiagnostics(ee,b);var ie=[],q=k.getTypeChecker();ee.commonJsModuleIndicator&&(e.programContainsEs6Modules(k)||e.compilerOptionsIndicateEs6Modules(k.getCompilerOptions()))&&$(ee)&&ie.push(e.createDiagnosticForNode(A(ee.commonJsModuleIndicator),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var oe=e.isSourceFileJS(ee);if(o.clear(),G(ee),e.getAllowSyntheticDefaultImports(k.getCompilerOptions()))for(var se=0,w=ee.imports;se<w.length;se++){var R=w[se],ne=e.importFromModuleSpecifier(R),U=W(ne);if(U){var C=e.getResolvedModule(ee,R.text),d=C&&k.getSourceFile(C.resolvedFileName);d&&d.externalModuleIndicator&&e.isExportAssignment(d.externalModuleIndicator)&&d.externalModuleIndicator.isExportEquals&&ie.push(e.createDiagnosticForNode(U,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(ie,ee.bindSuggestionDiagnostics),e.addRange(ie,k.getSuggestionDiagnostics(ee,b)),ie.sort(function(g,p){return g.start-p.start});function G(g){if(oe)H(g,q)&&ie.push(e.createDiagnosticForNode(e.isVariableDeclaration(g.parent)?g.parent.name:g,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(g)&&g.parent===ee&&g.declarationList.flags&2&&g.declarationList.declarations.length===1){var p=g.declarationList.declarations[0].initializer;p&&e.isRequireCall(p,!0)&&ie.push(e.createDiagnosticForNode(p,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(g)&&ie.push(e.createDiagnosticForNode(g.name||g,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}L(g)&&re(g,q,ie),g.forEachChild(G)}}e.computeSuggestionDiagnostics=ue;function $(ee){return ee.statements.some(function(k){switch(k.kind){case 235:return k.declarationList.declarations.some(function(q){return!!q.initializer&&e.isRequireCall(Y(q.initializer),!0)});case 236:{var b=k.expression;if(!e.isBinaryExpression(b))return e.isRequireCall(b,!0);var ie=e.getAssignmentDeclarationKind(b);return ie===1||ie===2}default:return!1}})}function Y(ee){return e.isPropertyAccessExpression(ee)?Y(ee.expression):ee}function W(ee){switch(ee.kind){case 264:var k=ee.importClause,b=ee.moduleSpecifier;return k&&!k.name&&k.namedBindings&&k.namedBindings.kind===266&&e.isStringLiteral(b)?k.namedBindings.name:void 0;case 263:return ee.name;default:return}}function re(ee,k,b){ye(ee,k)&&!o.has(E(ee))&&b.push(e.createDiagnosticForNode(!ee.name&&e.isVariableDeclaration(ee.parent)&&e.isIdentifier(ee.parent.name)?ee.parent.name:ee,e.Diagnostics.This_may_be_converted_to_an_async_function))}function ye(ee,k){return!e.isAsyncFunction(ee)&&ee.body&&e.isBlock(ee.body)&&D(ee.body,k)&&O(ee,k)}function O(ee,k){var b=k.getSignatureFromDeclaration(ee),ie=b?k.getReturnTypeOfSignature(b):void 0;return!!ie&&!!k.getPromisedTypeOfPromise(ie)}e.returnsPromise=O;function A(ee){return e.isBinaryExpression(ee)?ee.left:ee}function D(ee,k){return!!e.forEachReturnStatement(ee,function(b){return de(b,k)})}function de(ee,k){return e.isReturnStatement(ee)&&!!ee.expression&&_e(ee.expression,k)}e.isReturnStatementWithFixablePromiseHandler=de;function _e(ee,k){if(!y(ee)||!ee.arguments.every(function(ie){return Z(ie,k)}))return!1;for(var b=ee.expression;y(b)||e.isPropertyAccessExpression(b);){if(e.isCallExpression(b)&&!b.arguments.every(function(ie){return Z(ie,k)}))return!1;b=b.expression}return!0}e.isFixablePromiseHandler=_e;function y(ee){return e.isCallExpression(ee)&&(e.hasPropertyAccessExpressionWithName(ee,"then")&&V(ee)||e.hasPropertyAccessExpressionWithName(ee,"catch"))}function V(ee){return ee.arguments.length>2?!1:ee.arguments.length<2?!0:e.some(ee.arguments,function(k){return k.kind===104||e.isIdentifier(k)&&k.text==="undefined"})}function Z(ee,k){switch(ee.kind){case 254:case 211:var b=e.getFunctionFlags(ee);if(b&1)return!1;case 212:o.set(E(ee),!0);case 104:return!0;case 79:case 204:{var ie=k.getSymbolAtLocation(ee);return ie?k.isUndefinedSymbol(ie)||e.some(e.skipAlias(ie,k).declarations,function(q){return e.isFunctionLike(q)||e.hasInitializer(q)&&!!q.initializer&&e.isFunctionLike(q.initializer)}):!1}default:return!1}}function E(ee){return ee.pos.toString()+":"+ee.end.toString()}function H(ee,k){var b,ie,q,oe;if(ee.kind===211){if(e.isVariableDeclaration(ee.parent)&&(!((b=ee.symbol.members)===null||b===void 0)&&b.size))return!0;var se=k.getSymbolOfExpando(ee,!1);return!!(se&&(!((ie=se.exports)===null||ie===void 0)&&ie.size||!((q=se.members)===null||q===void 0)&&q.size))}return ee.kind===254?!!(!((oe=ee.symbol.members)===null||oe===void 0)&&oe.size):!1}function L(ee){switch(ee.kind){case 254:case 167:case 211:case 212:return!0;default:return!1}}e.canBeConvertedToAsync=L})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $=70246400;function Y(D,de,_e){var y=W(D,de,_e);if(y!=="")return y;var V=e.getCombinedLocalAndExportSymbolFlags(de);return V&32?e.getDeclarationOfKind(de,224)?"local class":"class":V&384?"enum":V&524288?"type":V&64?"interface":V&262144?"type parameter":V&8?"enum member":V&2097152?"alias":V&1536?"module":y}ue.getSymbolKind=Y;function W(D,de,_e){var y=D.getRootSymbols(de);if(y.length===1&&e.first(y).flags&8192&&D.getTypeOfSymbolAtLocation(de,_e).getNonNullableType().getCallSignatures().length!==0)return"method";if(D.isUndefinedSymbol(de))return"var";if(D.isArgumentsSymbol(de))return"local var";if(_e.kind===108&&e.isExpression(_e))return"parameter";var V=e.getCombinedLocalAndExportSymbolFlags(de);if(V&3)return e.isFirstDeclarationOfSymbolParameter(de)?"parameter":de.valueDeclaration&&e.isVarConst(de.valueDeclaration)?"const":e.forEach(de.declarations,e.isLet)?"let":A(de)?"local var":"var";if(V&16)return A(de)?"local function":"function";if(V&32768)return"getter";if(V&65536)return"setter";if(V&8192)return"method";if(V&16384)return"constructor";if(V&4){if(V&33554432&&de.checkFlags&6){var Z=e.forEach(D.getRootSymbols(de),function(H){var L=H.getFlags();if(L&98311)return"property"});if(!Z){var E=D.getTypeOfSymbolAtLocation(de,_e);return E.getCallSignatures().length?"method":"property"}return Z}switch(_e.parent&&_e.parent.kind){case 278:case 276:case 277:return _e.kind===79?"property":"JSX attribute";case 283:return"JSX attribute";default:return"property"}}return""}function re(D){if(D.declarations&&D.declarations.length){var de=D.declarations,_e=de[0],y=de.slice(1),V=e.length(y)&&e.isDeprecatedDeclaration(_e)&&e.some(y,function(E){return!e.isDeprecatedDeclaration(E)})?8192:0,Z=e.getNodeModifiers(_e,V);if(Z)return Z.split(",")}return[]}function ye(D,de){if(!de)return"";var _e=new e.Set(re(de));if(de.flags&2097152){var y=D.getAliasedSymbol(de);y!==de&&e.forEach(re(y),function(V){_e.add(V)})}return de.flags&16777216&&_e.add("optional"),_e.size>0?e.arrayFrom(_e.values()).join(","):""}ue.getSymbolModifiers=ye;function O(D,de,_e,y,V,Z,E){var H;Z===void 0&&(Z=e.getMeaningFromLocation(V));var L=[],ee=[],k=[],b=e.getCombinedLocalAndExportSymbolFlags(de),ie=Z&1?W(D,de,V):"",q=!1,oe=V.kind===108&&e.isInExpressionContext(V),se,w,R,ne,U=!1;if(V.kind===108&&!oe)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(ie!==""||b&32||b&2097152){(ie==="getter"||ie==="setter")&&(ie="property");var C=void 0;if(se=oe?D.getTypeAtLocation(V):D.getTypeOfSymbolAtLocation(de,V),V.parent&&V.parent.kind===204){var d=V.parent.name;(d===V||d&&d.getFullWidth()===0)&&(V=V.parent)}var G=void 0;if(e.isCallOrNewExpression(V)?G=V:(e.isCallExpressionTarget(V)||e.isNewExpressionTarget(V)||V.parent&&(e.isJsxOpeningLikeElement(V.parent)||e.isTaggedTemplateExpression(V.parent))&&e.isFunctionLike(de.valueDeclaration))&&(G=V.parent),G){C=D.getResolvedSignature(G);var g=G.kind===207||e.isCallExpression(G)&&G.expression.kind===106,p=g?se.getConstructSignatures():se.getCallSignatures();if(C&&!e.contains(p,C.target)&&!e.contains(p,C)&&(C=p.length?p[0]:void 0),C){switch(g&&b&32?(ie="constructor",qe(se.symbol,ie)):b&2097152?(ie="alias",pe(ie),L.push(e.spacePart()),g&&(C.flags&4&&(L.push(e.keywordPart(126)),L.push(e.spacePart())),L.push(e.keywordPart(103)),L.push(e.spacePart())),Ne(de)):qe(de,ie),ie){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":L.push(e.punctuationPart(58)),L.push(e.spacePart()),!(e.getObjectFlags(se)&16)&&se.symbol&&(e.addRange(L,e.symbolToDisplayParts(D,se.symbol,y,void 0,5)),L.push(e.lineBreakPart())),g&&(C.flags&4&&(L.push(e.keywordPart(126)),L.push(e.spacePart())),L.push(e.keywordPart(103)),L.push(e.spacePart())),we(C,p,262144);break;default:we(C,p)}q=!0,U=p.length>1}}else if(e.isNameOfFunctionDeclaration(V)&&!(b&98304)||V.kind===133&&V.parent.kind===169){var f=V.parent,T=de.declarations&&e.find(de.declarations,function(Qe){return Qe===(V.kind===133?f.parent:f)});if(T){var p=f.kind===169?se.getNonNullableType().getConstructSignatures():se.getNonNullableType().getCallSignatures();D.isImplementationOfOverload(f)?C=p[0]:C=D.getSignatureFromDeclaration(f),f.kind===169?(ie="constructor",qe(se.symbol,ie)):qe(f.kind===172&&!(se.symbol.flags&2048||se.symbol.flags&4096)?se.symbol:de,ie),C&&we(C,p),q=!0,U=p.length>1}}}if(b&32&&!q&&!oe&&(en(),e.getDeclarationOfKind(de,224)?pe("local class"):L.push(e.keywordPart(84)),L.push(e.spacePart()),Ne(de),pn(de,_e)),b&64&&Z&2&&(De(),L.push(e.keywordPart(118)),L.push(e.spacePart()),Ne(de),pn(de,_e)),b&524288&&Z&2&&(De(),L.push(e.keywordPart(150)),L.push(e.spacePart()),Ne(de),pn(de,_e),L.push(e.spacePart()),L.push(e.operatorPart(63)),L.push(e.spacePart()),e.addRange(L,e.typeToDisplayParts(D,D.getDeclaredTypeOfSymbol(de),y,8388608))),b&384&&(De(),e.some(de.declarations,function(Qe){return e.isEnumDeclaration(Qe)&&e.isEnumConst(Qe)})&&(L.push(e.keywordPart(85)),L.push(e.spacePart())),L.push(e.keywordPart(92)),L.push(e.spacePart()),Ne(de)),b&1536&&!oe){De();var m=e.getDeclarationOfKind(de,259),N=m&&m.name&&m.name.kind===79;L.push(e.keywordPart(N?141:140)),L.push(e.spacePart()),Ne(de)}if(b&262144&&Z&2)if(De(),L.push(e.punctuationPart(20)),L.push(e.textPart("type parameter")),L.push(e.punctuationPart(21)),L.push(e.spacePart()),Ne(de),de.parent)fe(),Ne(de.parent,y),pn(de.parent,y);else{var P=e.getDeclarationOfKind(de,161);if(P===void 0)return e.Debug.fail();var m=P.parent;if(m)if(e.isFunctionLikeKind(m.kind)){fe();var C=D.getSignatureFromDeclaration(m);m.kind===173?(L.push(e.keywordPart(103)),L.push(e.spacePart())):m.kind!==172&&m.name&&Ne(m.symbol),e.addRange(L,e.signatureToDisplayParts(D,C,_e,32))}else m.kind===257&&(fe(),L.push(e.keywordPart(150)),L.push(e.spacePart()),Ne(m.symbol),pn(m.symbol,_e))}if(b&8){ie="enum member",qe(de,"enum member");var m=(H=de.declarations)===null||H===void 0?void 0:H[0];if((m==null?void 0:m.kind)===294){var x=D.getConstantValue(m);x!==void 0&&(L.push(e.spacePart()),L.push(e.operatorPart(63)),L.push(e.spacePart()),L.push(e.displayPart(e.getTextOfConstantValue(x),typeof x=="number"?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(de.flags&2097152){if(De(),!q){var M=D.getAliasedSymbol(de);if(M!==de&&M.declarations&&M.declarations.length>0){var me=M.declarations[0],z=e.getNameOfDeclaration(me);if(z){var K=e.isModuleWithStringLiteralName(me)&&e.hasSyntacticModifier(me,2),I=de.name!=="default"&&!K,Ae=O(D,M,e.getSourceFileOfNode(me),me,z,Z,I?de:M);L.push.apply(L,Ae.displayParts),L.push(e.lineBreakPart()),R=Ae.documentation,ne=Ae.tags}else R=M.getContextualDocumentationComment(me,D),ne=M.getJsDocTags(D)}}if(de.declarations)switch(de.declarations[0].kind){case 262:L.push(e.keywordPart(93)),L.push(e.spacePart()),L.push(e.keywordPart(141));break;case 269:L.push(e.keywordPart(93)),L.push(e.spacePart()),L.push(e.keywordPart(de.declarations[0].isExportEquals?63:88));break;case 273:L.push(e.keywordPart(93));break;default:L.push(e.keywordPart(100))}L.push(e.spacePart()),Ne(de),e.forEach(de.declarations,function(Qe){if(Qe.kind===263){var Re=Qe;if(e.isExternalModuleImportEqualsDeclaration(Re))L.push(e.spacePart()),L.push(e.operatorPart(63)),L.push(e.spacePart()),L.push(e.keywordPart(144)),L.push(e.punctuationPart(20)),L.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(Re)),e.SymbolDisplayPartKind.stringLiteral)),L.push(e.punctuationPart(21));else{var He=D.getSymbolAtLocation(Re.moduleReference);He&&(L.push(e.spacePart()),L.push(e.operatorPart(63)),L.push(e.spacePart()),Ne(He,y))}return!0}})}if(!q)if(ie!==""){if(se){if(oe?(De(),L.push(e.keywordPart(108))):qe(de,ie),ie==="property"||ie==="JSX attribute"||b&3||ie==="local var"||oe){if(L.push(e.punctuationPart(58)),L.push(e.spacePart()),se.symbol&&se.symbol.flags&262144){var Oe=e.mapToDisplayParts(function(Qe){var Re=D.typeParameterToDeclaration(se,y,$);Be().writeNode(4,Re,e.getSourceFileOfNode(e.getParseTreeNode(y)),Qe)});e.addRange(L,Oe)}else e.addRange(L,e.typeToDisplayParts(D,se,y));if(de.target&&de.target.tupleLabelDeclaration){var te=de.target.tupleLabelDeclaration;e.Debug.assertNode(te.name,e.isIdentifier),L.push(e.spacePart()),L.push(e.punctuationPart(20)),L.push(e.textPart(e.idText(te.name))),L.push(e.punctuationPart(21))}}else if(b&16||b&8192||b&16384||b&131072||b&98304||ie==="method"){var p=se.getNonNullableType().getCallSignatures();p.length&&(we(p[0],p),U=p.length>1)}}}else ie=Y(D,de,V);if(ee.length===0&&!U&&(ee=de.getContextualDocumentationComment(y,D)),ee.length===0&&b&4&&de.parent&&de.declarations&&e.forEach(de.parent.declarations,function(Qe){return Qe.kind===300}))for(var Se=0,be=de.declarations;Se<be.length;Se++){var m=be[Se];if(!(!m.parent||m.parent.kind!==219)){var Ce=D.getSymbolAtLocation(m.parent.right);if(Ce&&(ee=Ce.getDocumentationComment(D),k=Ce.getJsDocTags(D),ee.length>0))break}}return k.length===0&&!U&&(k=de.getJsDocTags(D)),ee.length===0&&R&&(ee=R),k.length===0&&ne&&(k=ne),{displayParts:L,documentation:ee,symbolKind:ie,tags:k.length===0?void 0:k};function Be(){return w||(w=e.createPrinter({removeComments:!0})),w}function De(){L.length&&L.push(e.lineBreakPart()),en()}function en(){E&&(pe("alias"),L.push(e.spacePart()))}function fe(){L.push(e.spacePart()),L.push(e.keywordPart(101)),L.push(e.spacePart())}function Ne(Qe,Re){E&&Qe===de&&(Qe=E);var He=e.symbolToDisplayParts(D,Qe,Re||_e,void 0,7);e.addRange(L,He),de.flags&16777216&&L.push(e.punctuationPart(57))}function qe(Qe,Re){De(),Re&&(pe(Re),Qe&&!e.some(Qe.declarations,function(He){return e.isArrowFunction(He)||(e.isFunctionExpression(He)||e.isClassExpression(He))&&!He.name})&&(L.push(e.spacePart()),Ne(Qe)))}function pe(Qe){switch(Qe){case"var":case"function":case"let":case"const":case"constructor":L.push(e.textOrKeywordPart(Qe));return;default:L.push(e.punctuationPart(20)),L.push(e.textOrKeywordPart(Qe)),L.push(e.punctuationPart(21));return}}function we(Qe,Re,He){He===void 0&&(He=0),e.addRange(L,e.signatureToDisplayParts(D,Qe,y,He|32)),Re.length>1&&(L.push(e.spacePart()),L.push(e.punctuationPart(20)),L.push(e.operatorPart(39)),L.push(e.displayPart((Re.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),L.push(e.spacePart()),L.push(e.textPart(Re.length===2?"overload":"overloads")),L.push(e.punctuationPart(21))),ee=Qe.getDocumentationComment(D),k=Qe.getJsDocTags(),Re.length>1&&ee.length===0&&k.length===0&&(ee=Re[0].getDocumentationComment(D),k=Re[0].getJsDocTags())}function pn(Qe,Re){var He=e.mapToDisplayParts(function(Ln){var Un=D.symbolToTypeParameterDeclarations(Qe,Re,$);Be().writeList(53776,Un,e.getSourceFileOfNode(e.getParseTreeNode(Re)),Ln)});e.addRange(L,He)}}ue.getSymbolDisplayPartsDocumentationAndSymbolKind=O;function A(D){return D.parent?!1:e.forEach(D.declarations,function(de){if(de.kind===211)return!0;if(de.kind!==252&&de.kind!==254)return!1;for(var _e=de.parent;!e.isFunctionBlock(_e);_e=_e.parent)if(_e.kind===300||_e.kind===260)return!1;return!0})}})(o=e.SymbolDisplay||(e.SymbolDisplay={}))})(vn||(vn={}));var vn;(function(e){function o(W,re){var ye=[],O=re.compilerOptions?Y(re.compilerOptions,ye):{},A=e.getDefaultCompilerOptions();for(var D in A)e.hasProperty(A,D)&&O[D]===void 0&&(O[D]=A[D]);for(var de=0,_e=e.transpileOptionValueCompilerOptions;de<_e.length;de++){var y=_e[de];O[y.name]=y.transpileOptionValue}O.suppressOutputPathCheck=!0,O.allowNonTsExtensions=!0;var V=re.fileName||(re.compilerOptions&&re.compilerOptions.jsx?"module.tsx":"module.ts"),Z=e.createSourceFile(V,W,O.target);re.moduleName&&(Z.moduleName=re.moduleName),re.renamedDependencies&&(Z.renamedDependencies=new e.Map(e.getEntries(re.renamedDependencies)));var E=e.getNewLineCharacter(O),H,L,ee={getSourceFile:function(b){return b===e.normalizePath(V)?Z:void 0},writeFile:function(b,ie){e.fileExtensionIs(b,".map")?(e.Debug.assertEqual(L,void 0,"Unexpected multiple source map outputs, file:",b),L=ie):(e.Debug.assertEqual(H,void 0,"Unexpected multiple outputs, file:",b),H=ie)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(b){return b},getCurrentDirectory:function(){return""},getNewLine:function(){return E},fileExists:function(b){return b===V},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},k=e.createProgram([V],O,ee);return re.reportDiagnostics&&(e.addRange(ye,k.getSyntacticDiagnostics(Z)),e.addRange(ye,k.getOptionsDiagnostics())),k.emit(void 0,void 0,void 0,void 0,re.transformers),H===void 0?e.Debug.fail("Output generation failed"):{outputText:H,diagnostics:ye,sourceMapText:L}}e.transpileModule=o;function ue(W,re,ye,O,A){var D=o(W,{compilerOptions:re,fileName:ye,reportDiagnostics:!!O,moduleName:A});return e.addRange(O,D.diagnostics),D.outputText}e.transpile=ue;var $;function Y(W,re){$=$||e.filter(e.optionDeclarations,function(de){return typeof de.type=="object"&&!e.forEachEntry(de.type,function(_e){return typeof _e!="number"})}),W=e.cloneCompilerOptions(W);for(var ye=function(de){if(!e.hasProperty(W,de.name))return"continue";var _e=W[de.name];e.isString(_e)?W[de.name]=e.parseCustomTypeOption(de,_e,re):e.forEachEntry(de.type,function(y){return y===_e})||re.push(e.createCompilerDiagnosticForInvalidCustomType(de))},O=0,A=$;O<A.length;O++){var D=A[O];ye(D)}return W}e.fixupCompilerOptions=Y})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $;(function(W){W[W.FormatDocument=0]="FormatDocument",W[W.FormatSelection=1]="FormatSelection",W[W.FormatOnEnter=2]="FormatOnEnter",W[W.FormatOnSemicolon=3]="FormatOnSemicolon",W[W.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",W[W.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"})($=ue.FormattingRequestKind||(ue.FormattingRequestKind={}));var Y=function(){function W(re,ye,O){this.sourceFile=re,this.formattingRequestKind=ye,this.options=O}return W.prototype.updateContext=function(re,ye,O,A,D){this.currentTokenSpan=e.Debug.checkDefined(re),this.currentTokenParent=e.Debug.checkDefined(ye),this.nextTokenSpan=e.Debug.checkDefined(O),this.nextTokenParent=e.Debug.checkDefined(A),this.contextNode=e.Debug.checkDefined(D),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},W.prototype.ContextNodeAllOnSameLine=function(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},W.prototype.NextNodeAllOnSameLine=function(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},W.prototype.TokensAreOnSameLine=function(){if(this.tokensAreOnSameLine===void 0){var re=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,ye=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=re===ye}return this.tokensAreOnSameLine},W.prototype.ContextNodeBlockIsOnOneLine=function(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},W.prototype.NextNodeBlockIsOnOneLine=function(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},W.prototype.NodeIsOnOneLine=function(re){var ye=this.sourceFile.getLineAndCharacterOfPosition(re.getStart(this.sourceFile)).line,O=this.sourceFile.getLineAndCharacterOfPosition(re.getEnd()).line;return ye===O},W.prototype.BlockIsOnOneLine=function(re){var ye=e.findChildOfKind(re,18,this.sourceFile),O=e.findChildOfKind(re,19,this.sourceFile);if(ye&&O){var A=this.sourceFile.getLineAndCharacterOfPosition(ye.getEnd()).line,D=this.sourceFile.getLineAndCharacterOfPosition(O.getStart(this.sourceFile)).line;return A===D}return!1},W}();ue.FormattingContext=Y})(o=e.formatting||(e.formatting={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $=e.createScanner(99,!1,0),Y=e.createScanner(99,!1,1),W;(function(ye){ye[ye.Scan=0]="Scan",ye[ye.RescanGreaterThanToken=1]="RescanGreaterThanToken",ye[ye.RescanSlashToken=2]="RescanSlashToken",ye[ye.RescanTemplateToken=3]="RescanTemplateToken",ye[ye.RescanJsxIdentifier=4]="RescanJsxIdentifier",ye[ye.RescanJsxText=5]="RescanJsxText",ye[ye.RescanJsxAttributeValue=6]="RescanJsxAttributeValue"})(W||(W={}));function re(ye,O,A,D,de){var _e=O===1?Y:$;_e.setText(ye),_e.setTextPos(A);var y=!0,V,Z,E,H,L,ee=de({advance:k,readTokenInfo:ne,readEOFTokenRange:C,isOnToken:d,isOnEOF:G,getCurrentLeadingTrivia:function(){return V},lastTrailingTriviaWasNewLine:function(){return y},skipToEndOf:p,skipToStartOf:f});return L=void 0,_e.setText(void 0),ee;function k(){L=void 0;var T=_e.getStartPos()!==A;T?y=!!Z&&e.last(Z).kind===4:_e.scan(),V=void 0,Z=void 0;for(var m=_e.getStartPos();m<D;){var N=_e.getToken();if(!e.isTrivia(N))break;_e.scan();var P={pos:m,end:_e.getStartPos(),kind:N};m=_e.getStartPos(),V=e.append(V,P)}E=_e.getStartPos()}function b(T){switch(T.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}function ie(T){if(T.parent)switch(T.parent.kind){case 283:case 278:case 279:case 277:return e.isKeyword(T.kind)||T.kind===79}return!1}function q(T){return e.isJsxText(T)}function oe(T){return T.kind===13}function se(T){return T.kind===16||T.kind===17}function w(T){return T.parent&&e.isJsxAttribute(T.parent)&&T.parent.initializer===T}function R(T){return T===43||T===68}function ne(T){e.Debug.assert(d());var m=b(T)?1:oe(T)?2:se(T)?3:ie(T)?4:q(T)?5:w(T)?6:0;if(L&&m===H)return g(L,T);_e.getStartPos()!==E&&(e.Debug.assert(L!==void 0),_e.setTextPos(E),_e.scan());var N=U(T,m),P=ue.createTextRangeWithKind(_e.getStartPos(),_e.getTextPos(),N);for(Z&&(Z=void 0);_e.getStartPos()<D&&(N=_e.scan(),!!e.isTrivia(N));){var x=ue.createTextRangeWithKind(_e.getStartPos(),_e.getTextPos(),N);if(Z||(Z=[]),Z.push(x),N===4){_e.scan();break}}return L={leadingTrivia:V,trailingTrivia:Z,token:P},g(L,T)}function U(T,m){var N=_e.getToken();switch(H=0,m){case 1:if(N===31){H=1;var P=_e.reScanGreaterToken();return e.Debug.assert(T.kind===P),P}break;case 2:if(R(N)){H=2;var P=_e.reScanSlashToken();return e.Debug.assert(T.kind===P),P}break;case 3:if(N===19)return H=3,_e.reScanTemplateToken(!1);break;case 4:return H=4,_e.scanJsxIdentifier();case 5:return H=5,_e.reScanJsxToken(!1);case 6:return H=6,_e.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(m)}return N}function C(){return e.Debug.assert(G()),ue.createTextRangeWithKind(_e.getStartPos(),_e.getTextPos(),1)}function d(){var T=L?L.token.kind:_e.getToken(),m=L?L.token.pos:_e.getStartPos();return m<D&&T!==1&&!e.isTrivia(T)}function G(){var T=L?L.token.kind:_e.getToken();return T===1}function g(T,m){return e.isToken(m)&&T.token.kind!==m.kind&&(T.token.kind=m.kind),T}function p(T){_e.setTextPos(T.end),E=_e.getStartPos(),H=void 0,L=void 0,y=!1,V=void 0,Z=void 0}function f(T){_e.setTextPos(T.pos),E=_e.getStartPos(),H=void 0,L=void 0,y=!1,V=void 0,Z=void 0}}ue.getFormattingScanner=re})(o=e.formatting||(e.formatting={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){ue.anyContext=e.emptyArray;var $;(function(W){W[W.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",W[W.StopProcessingTokenActions=2]="StopProcessingTokenActions",W[W.InsertSpace=4]="InsertSpace",W[W.InsertNewLine=8]="InsertNewLine",W[W.DeleteSpace=16]="DeleteSpace",W[W.DeleteToken=32]="DeleteToken",W[W.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",W[W.StopAction=3]="StopAction",W[W.ModifySpaceAction=28]="ModifySpaceAction",W[W.ModifyTokenAction=96]="ModifyTokenAction"})($=ue.RuleAction||(ue.RuleAction={}));var Y;(function(W){W[W.None=0]="None",W[W.CanDeleteNewLines=1]="CanDeleteNewLines"})(Y=ue.RuleFlags||(ue.RuleFlags={}))})(o=e.formatting||(e.formatting={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(){for(var X=[],rn=0;rn<=158;rn++)rn!==1&&X.push(rn);function $n(){for(var jn=[],Zn=0;Zn<arguments.length;Zn++)jn[Zn]=arguments[Zn];return{tokens:X.filter(function(Me){return!jn.some(function(Mn){return Mn===Me})}),isSpecific:!1}}var Vn={tokens:X,isSpecific:!1},le=W(Vr(Vr([],X,!0),[3],!1)),Pe=W(Vr(Vr([],X,!0),[1],!1)),xe=ye(81,158),Ze=ye(29,78),hn=[101,102,158,127,138],Le=[45,46,54,53],$e=[8,9,79,20,22,18,108,103],An=[79,20,108,103],Ue=[79,21,23,103],gn=[79,20,108,103],Wn=[79,21,23,103],ze=[2,3],Tn=Vr([79],e.typeKeywords,!0),On=le,ur=W([79,3,84,93,100]),hr=W([21,3,90,111,96,91]),wr=[Y("IgnoreBeforeComment",Vn,ze,ue.anyContext,1),Y("IgnoreAfterLineComment",2,Vn,ue.anyContext,1),Y("NotSpaceBeforeColon",Vn,58,[I,H,L],16),Y("SpaceAfterColon",58,Vn,[I,H],4),Y("NoSpaceBeforeQuestionMark",Vn,57,[I,H,L],16),Y("SpaceAfterQuestionMarkInConditionalOperator",57,Vn,[I,k],4),Y("NoSpaceAfterQuestionMark",57,Vn,[I],16),Y("NoSpaceBeforeDot",Vn,[24,28],[I],16),Y("NoSpaceAfterDot",[24,28],Vn,[I],16),Y("NoSpaceBetweenImportParenInImportType",100,20,[I,K],16),Y("NoSpaceAfterUnaryPrefixOperator",Le,$e,[I,H],16),Y("NoSpaceAfterUnaryPreincrementOperator",45,An,[I],16),Y("NoSpaceAfterUnaryPredecrementOperator",46,gn,[I],16),Y("NoSpaceBeforeUnaryPostincrementOperator",Ue,45,[I,fn],16),Y("NoSpaceBeforeUnaryPostdecrementOperator",Wn,46,[I,fn],16),Y("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[I,E],4),Y("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[I,E],4),Y("SpaceAfterAddWhenFollowedByPreincrement",39,45,[I,E],4),Y("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[I,E],4),Y("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[I,E],4),Y("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[I,E],4),Y("NoSpaceAfterCloseBrace",19,[27,26],[I],16),Y("NewLineBeforeCloseBraceInBlockContext",le,19,[oe],8),Y("SpaceAfterCloseBrace",19,$n(21),[I,p],4),Y("SpaceBetweenCloseBraceAndElse",19,91,[I],4),Y("SpaceBetweenCloseBraceAndWhile",19,115,[I],4),Y("NoSpaceBetweenEmptyBraceBrackets",18,19,[I,T],16),Y("SpaceAfterConditionalClosingParen",21,22,[f],4),Y("NoSpaceBetweenFunctionKeywordAndStar",98,41,[d],16),Y("SpaceAfterStarInGeneratorDeclaration",41,79,[d],4),Y("SpaceAfterFunctionInFuncDecl",98,Vn,[U],4),Y("NewLineAfterOpenBraceInBlockContext",18,Vn,[oe],8),Y("SpaceAfterGetSetInMember",[135,147],79,[U],4),Y("NoSpaceBetweenYieldKeywordAndStar",125,41,[I,Ln],16),Y("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],Vn,[I,Ln],4),Y("NoSpaceBetweenReturnAndSemicolon",105,26,[I],16),Y("SpaceAfterCertainKeywords",[113,109,103,89,105,112,131],Vn,[I],4),Y("SpaceAfterLetConstInVariableDeclaration",[119,85],Vn,[I,fe],4),Y("NoSpaceBeforeOpenParenInFuncCall",Vn,20,[I,P,x],16),Y("SpaceBeforeBinaryKeywordOperator",Vn,hn,[I,E],4),Y("SpaceAfterBinaryKeywordOperator",hn,Vn,[I,E],4),Y("SpaceAfterVoidOperator",114,Vn,[I,He],4),Y("SpaceBetweenAsyncAndOpenParen",130,20,[z,I],4),Y("SpaceBetweenAsyncAndFunctionKeyword",130,[98,79],[I],4),Y("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[I],16),Y("SpaceBeforeJsxAttribute",Vn,79,[Se,I],4),Y("SpaceBeforeSlashInJsxOpeningElement",Vn,43,[Ce,I],4),Y("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[Ce,I],16),Y("NoSpaceBeforeEqualInJsxAttribute",Vn,63,[be,I],16),Y("NoSpaceAfterEqualInJsxAttribute",63,Vn,[be,I],16),Y("NoSpaceAfterModuleImport",[140,144],20,[I],16),Y("SpaceAfterCertainTypeScriptKeywords",[126,84,134,88,92,93,94,135,117,100,118,140,141,121,123,122,143,147,124,150,154,139,136],Vn,[I],4),Y("SpaceBeforeCertainTypeScriptKeywords",Vn,[94,117,154],[I],4),Y("SpaceAfterModuleName",10,18,[qe],4),Y("SpaceBeforeArrow",Vn,38,[I],4),Y("SpaceAfterArrow",38,Vn,[I],4),Y("NoSpaceAfterEllipsis",25,79,[I],16),Y("NoSpaceAfterOptionalParameters",57,[21,27],[I,H],16),Y("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[I,pe],16),Y("NoSpaceBeforeOpenAngularBracket",Tn,29,[I,Qe],16),Y("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[I,Qe],16),Y("NoSpaceAfterOpenAngularBracket",29,Vn,[I,Qe],16),Y("NoSpaceBeforeCloseAngularBracket",Vn,31,[I,Qe],16),Y("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[I,Qe,C],16),Y("SpaceBeforeAt",[21,79],59,[I],4),Y("NoSpaceAfterAt",59,Vn,[I],16),Y("SpaceAfterDecorator",Vn,[126,79,93,88,84,124,123,121,122,135,147,22,41],[De],4),Y("NoSpaceBeforeNonNullAssertionOperator",Vn,53,[I,Un],16),Y("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[I,we],16),Y("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[I],4)],Qr=[Y("SpaceAfterConstructor",133,20,[A("insertSpaceAfterConstructor"),I],4),Y("NoSpaceAfterConstructor",133,20,[de("insertSpaceAfterConstructor"),I],16),Y("SpaceAfterComma",27,Vn,[A("insertSpaceAfterCommaDelimiter"),I,Oe,M,me],4),Y("NoSpaceAfterComma",27,Vn,[de("insertSpaceAfterCommaDelimiter"),I,Oe],16),Y("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[A("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),U],4),Y("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[de("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),U],16),Y("SpaceAfterKeywordInControl",xe,20,[A("insertSpaceAfterKeywordsInControlFlowStatements"),f],4),Y("NoSpaceAfterKeywordInControl",xe,20,[de("insertSpaceAfterKeywordsInControlFlowStatements"),f],16),Y("SpaceAfterOpenParen",20,Vn,[A("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),I],4),Y("SpaceBeforeCloseParen",Vn,21,[A("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),I],4),Y("SpaceBetweenOpenParens",20,20,[A("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),I],4),Y("NoSpaceBetweenParens",20,21,[I],16),Y("NoSpaceAfterOpenParen",20,Vn,[de("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),I],16),Y("NoSpaceBeforeCloseParen",Vn,21,[de("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),I],16),Y("SpaceAfterOpenBracket",22,Vn,[A("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),I],4),Y("SpaceBeforeCloseBracket",Vn,23,[A("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),I],4),Y("NoSpaceBetweenBrackets",22,23,[I],16),Y("NoSpaceAfterOpenBracket",22,Vn,[de("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),I],16),Y("NoSpaceBeforeCloseBracket",Vn,23,[de("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),I],16),Y("SpaceAfterOpenBrace",18,Vn,[y("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ie],4),Y("SpaceBeforeCloseBrace",Vn,19,[y("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ie],4),Y("NoSpaceBetweenEmptyBraceBrackets",18,19,[I,T],16),Y("NoSpaceAfterOpenBrace",18,Vn,[D("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),I],16),Y("NoSpaceBeforeCloseBrace",Vn,19,[D("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),I],16),Y("SpaceBetweenEmptyBraceBrackets",18,19,[A("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Y("NoSpaceBetweenEmptyBraceBrackets",18,19,[D("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),I],16),Y("SpaceAfterTemplateHeadAndMiddle",[15,16],Vn,[A("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ae],4,1),Y("SpaceBeforeTemplateMiddleAndTail",Vn,[16,17],[A("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),I],4),Y("NoSpaceAfterTemplateHeadAndMiddle",[15,16],Vn,[de("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ae],16,1),Y("NoSpaceBeforeTemplateMiddleAndTail",Vn,[16,17],[de("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),I],16),Y("SpaceAfterOpenBraceInJsxExpression",18,Vn,[A("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),I,te],4),Y("SpaceBeforeCloseBraceInJsxExpression",Vn,19,[A("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),I,te],4),Y("NoSpaceAfterOpenBraceInJsxExpression",18,Vn,[de("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),I,te],16),Y("NoSpaceBeforeCloseBraceInJsxExpression",Vn,19,[de("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),I,te],16),Y("SpaceAfterSemicolonInFor",26,Vn,[A("insertSpaceAfterSemicolonInForStatements"),I,V],4),Y("NoSpaceAfterSemicolonInFor",26,Vn,[de("insertSpaceAfterSemicolonInForStatements"),I,V],16),Y("SpaceBeforeBinaryOperator",Vn,Ze,[A("insertSpaceBeforeAndAfterBinaryOperators"),I,E],4),Y("SpaceAfterBinaryOperator",Ze,Vn,[A("insertSpaceBeforeAndAfterBinaryOperators"),I,E],4),Y("NoSpaceBeforeBinaryOperator",Vn,Ze,[de("insertSpaceBeforeAndAfterBinaryOperators"),I,E],16),Y("NoSpaceAfterBinaryOperator",Ze,Vn,[de("insertSpaceBeforeAndAfterBinaryOperators"),I,E],16),Y("SpaceBeforeOpenParenInFuncDecl",Vn,20,[A("insertSpaceBeforeFunctionParenthesis"),I,U],4),Y("NoSpaceBeforeOpenParenInFuncDecl",Vn,20,[de("insertSpaceBeforeFunctionParenthesis"),I,U],16),Y("NewLineBeforeOpenBraceInControl",hr,18,[A("placeOpenBraceOnNewLineForControlBlocks"),f,q],8,1),Y("NewLineBeforeOpenBraceInFunction",On,18,[A("placeOpenBraceOnNewLineForFunctions"),U,q],8,1),Y("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",ur,18,[A("placeOpenBraceOnNewLineForFunctions"),G,q],8,1),Y("SpaceAfterTypeAssertion",31,Vn,[A("insertSpaceAfterTypeAssertion"),I,Re],4),Y("NoSpaceAfterTypeAssertion",31,Vn,[de("insertSpaceAfterTypeAssertion"),I,Re],16),Y("SpaceBeforeTypeAnnotation",Vn,[57,58],[A("insertSpaceBeforeTypeAnnotation"),I,ee],4),Y("NoSpaceBeforeTypeAnnotation",Vn,[57,58],[de("insertSpaceBeforeTypeAnnotation"),I,ee],16),Y("NoOptionalSemicolon",26,Pe,[O("semicolons",e.SemicolonPreference.Remove),i],32),Y("OptionalSemicolon",Vn,Pe,[O("semicolons",e.SemicolonPreference.Insert),In],64)],Ke=[Y("NoSpaceBeforeSemicolon",Vn,26,[I],16),Y("SpaceBeforeOpenBraceInControl",hr,18,[_e("placeOpenBraceOnNewLineForControlBlocks"),f,Ne,b],4,1),Y("SpaceBeforeOpenBraceInFunction",On,18,[_e("placeOpenBraceOnNewLineForFunctions"),U,R,Ne,b],4,1),Y("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",ur,18,[_e("placeOpenBraceOnNewLineForFunctions"),G,Ne,b],4,1),Y("NoSpaceBeforeComma",Vn,27,[I],16),Y("NoSpaceBeforeOpenBracket",$n(130,82),22,[I],16),Y("NoSpaceAfterCloseBracket",23,Vn,[I,Be],16),Y("SpaceAfterSemicolon",26,Vn,[I],4),Y("SpaceBetweenForAndAwaitKeyword",97,131,[I],4),Y("SpaceBetweenStatements",[21,90,91,82],Vn,[I,Oe,Z],4),Y("SpaceAfterTryCatchFinally",[111,83,96],18,[I],4)];return Vr(Vr(Vr([],wr,!0),Qr,!0),Ke,!0)}ue.getAllRules=$;function Y(X,rn,$n,Vn,le,Pe){return Pe===void 0&&(Pe=0),{leftTokenRange:re(rn),rightTokenRange:re($n),rule:{debugName:X,context:Vn,action:le,flags:Pe}}}function W(X){return{tokens:X,isSpecific:!0}}function re(X){return typeof X=="number"?W([X]):e.isArray(X)?W(X):X}function ye(X,rn,$n){$n===void 0&&($n=[]);for(var Vn=[],le=X;le<=rn;le++)e.contains($n,le)||Vn.push(le);return W(Vn)}function O(X,rn){return function($n){return $n.options&&$n.options[X]===rn}}function A(X){return function(rn){return rn.options&&rn.options.hasOwnProperty(X)&&!!rn.options[X]}}function D(X){return function(rn){return rn.options&&rn.options.hasOwnProperty(X)&&!rn.options[X]}}function de(X){return function(rn){return!rn.options||!rn.options.hasOwnProperty(X)||!rn.options[X]}}function _e(X){return function(rn){return!rn.options||!rn.options.hasOwnProperty(X)||!rn.options[X]||rn.TokensAreOnSameLine()}}function y(X){return function(rn){return!rn.options||!rn.options.hasOwnProperty(X)||!!rn.options[X]}}function V(X){return X.contextNode.kind===240}function Z(X){return!V(X)}function E(X){switch(X.contextNode.kind){case 219:return X.contextNode.operatorToken.kind!==27;case 220:case 187:case 227:case 273:case 268:case 175:case 185:case 186:return!0;case 201:case 257:case 263:case 269:case 252:case 162:case 294:case 165:case 164:return X.currentTokenSpan.kind===63||X.nextTokenSpan.kind===63;case 241:case 161:return X.currentTokenSpan.kind===101||X.nextTokenSpan.kind===101||X.currentTokenSpan.kind===63||X.nextTokenSpan.kind===63;case 242:return X.currentTokenSpan.kind===158||X.nextTokenSpan.kind===158}return!1}function H(X){return!E(X)}function L(X){return!ee(X)}function ee(X){var rn=X.contextNode.kind;return rn===165||rn===164||rn===162||rn===252||e.isFunctionLikeKind(rn)}function k(X){return X.contextNode.kind===220||X.contextNode.kind===187}function b(X){return X.TokensAreOnSameLine()||R(X)}function ie(X){return X.contextNode.kind===199||X.contextNode.kind===193||se(X)}function q(X){return R(X)&&!(X.NextNodeAllOnSameLine()||X.NextNodeBlockIsOnOneLine())}function oe(X){return w(X)&&!(X.ContextNodeAllOnSameLine()||X.ContextNodeBlockIsOnOneLine())}function se(X){return w(X)&&(X.ContextNodeAllOnSameLine()||X.ContextNodeBlockIsOnOneLine())}function w(X){return ne(X.contextNode)}function R(X){return ne(X.nextTokenParent)}function ne(X){if(g(X))return!0;switch(X.kind){case 233:case 261:case 203:case 260:return!0}return!1}function U(X){switch(X.contextNode.kind){case 254:case 167:case 166:case 170:case 171:case 172:case 211:case 169:case 212:case 256:return!0}return!1}function C(X){return!U(X)}function d(X){return X.contextNode.kind===254||X.contextNode.kind===211}function G(X){return g(X.contextNode)}function g(X){switch(X.kind){case 255:case 224:case 256:case 258:case 180:case 259:case 270:case 271:case 264:case 267:return!0}return!1}function p(X){switch(X.currentTokenParent.kind){case 255:case 259:case 258:case 290:case 260:case 247:return!0;case 233:{var rn=X.currentTokenParent.parent;if(!rn||rn.kind!==212&&rn.kind!==211)return!0}}return!1}function f(X){switch(X.contextNode.kind){case 237:case 247:case 240:case 241:case 242:case 239:case 250:case 238:case 246:case 290:return!0;default:return!1}}function T(X){return X.contextNode.kind===203}function m(X){return X.contextNode.kind===206}function N(X){return X.contextNode.kind===207}function P(X){return m(X)||N(X)}function x(X){return X.currentTokenSpan.kind!==27}function M(X){return X.nextTokenSpan.kind!==23}function me(X){return X.nextTokenSpan.kind!==21}function z(X){return X.contextNode.kind===212}function K(X){return X.contextNode.kind===198}function I(X){return X.TokensAreOnSameLine()&&X.contextNode.kind!==11}function Ae(X){return X.contextNode.kind!==11}function Oe(X){return X.contextNode.kind!==276&&X.contextNode.kind!==280}function te(X){return X.contextNode.kind===286||X.contextNode.kind===285}function Se(X){return X.nextTokenParent.kind===283}function be(X){return X.contextNode.kind===283}function Ce(X){return X.contextNode.kind===277}function Be(X){return!U(X)&&!R(X)}function De(X){return X.TokensAreOnSameLine()&&!!X.contextNode.decorators&&en(X.currentTokenParent)&&!en(X.nextTokenParent)}function en(X){for(;e.isExpressionNode(X);)X=X.parent;return X.kind===163}function fe(X){return X.currentTokenParent.kind===253&&X.currentTokenParent.getStart(X.sourceFile)===X.currentTokenSpan.pos}function Ne(X){return X.formattingRequestKind!==2}function qe(X){return X.contextNode.kind===259}function pe(X){return X.contextNode.kind===180}function we(X){return X.contextNode.kind===173}function pn(X,rn){if(X.kind!==29&&X.kind!==31)return!1;switch(rn.kind){case 176:case 209:case 257:case 255:case 224:case 256:case 254:case 211:case 212:case 167:case 166:case 172:case 173:case 206:case 207:case 226:return!0;default:return!1}}function Qe(X){return pn(X.currentTokenSpan,X.currentTokenParent)||pn(X.nextTokenSpan,X.nextTokenParent)}function Re(X){return X.contextNode.kind===209}function He(X){return X.currentTokenSpan.kind===114&&X.currentTokenParent.kind===215}function Ln(X){return X.contextNode.kind===222&&X.contextNode.expression!==void 0}function Un(X){return X.contextNode.kind===228}function fn(X){return!En(X)}function En(X){switch(X.contextNode.kind){case 237:case 240:case 241:case 242:case 238:case 239:return!0;default:return!1}}function i(X){var rn=X.nextTokenSpan.kind,$n=X.nextTokenSpan.pos;if(e.isTrivia(rn)){var Vn=X.nextTokenParent===X.currentTokenParent?e.findNextToken(X.currentTokenParent,e.findAncestor(X.currentTokenParent,function(xe){return!xe.parent}),X.sourceFile):X.nextTokenParent.getFirstToken(X.sourceFile);if(!Vn)return!0;rn=Vn.kind,$n=Vn.getStart(X.sourceFile)}var le=X.sourceFile.getLineAndCharacterOfPosition(X.currentTokenSpan.pos).line,Pe=X.sourceFile.getLineAndCharacterOfPosition($n).line;return le===Pe?rn===19||rn===1:rn===232||rn===26?!1:X.contextNode.kind===256||X.contextNode.kind===257?!e.isPropertySignature(X.currentTokenParent)||!!X.currentTokenParent.type||rn!==20:e.isPropertyDeclaration(X.currentTokenParent)?!X.currentTokenParent.initializer:X.currentTokenParent.kind!==240&&X.currentTokenParent.kind!==234&&X.currentTokenParent.kind!==232&&rn!==22&&rn!==20&&rn!==39&&rn!==40&&rn!==43&&rn!==13&&rn!==27&&rn!==221&&rn!==15&&rn!==14&&rn!==24}function In(X){return e.positionIsASICandidate(X.currentTokenSpan.end,X.currentTokenParent,X.sourceFile)}})(o=e.formatting||(e.formatting={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(H,L){return{options:H,getRules:W(),host:L}}ue.getFormatContext=$;var Y;function W(){return Y===void 0&&(Y=ye(ue.getAllRules())),Y}function re(H){var L=0;return H&1&&(L|=28),H&2&&(L|=96),H&28&&(L|=28),H&96&&(L|=96),L}function ye(H){var L=O(H);return function(ee){var k=L[A(ee.currentTokenSpan.kind,ee.nextTokenSpan.kind)];if(k){for(var b=[],ie=0,q=0,oe=k;q<oe.length;q++){var se=oe[q],w=~re(ie);se.action&w&&e.every(se.context,function(R){return R(ee)})&&(b.push(se),ie|=se.action)}if(b.length)return b}}}function O(H){for(var L=new Array(_e*_e),ee=new Array(L.length),k=0,b=H;k<b.length;k++)for(var ie=b[k],q=ie.leftTokenRange.isSpecific&&ie.rightTokenRange.isSpecific,oe=0,se=ie.leftTokenRange.tokens;oe<se.length;oe++)for(var w=se[oe],R=0,ne=ie.rightTokenRange.tokens;R<ne.length;R++){var U=ne[R],C=A(w,U),d=L[C];d===void 0&&(d=L[C]=[]),V(d,ie.rule,q,ee,C)}return L}function A(H,L){return e.Debug.assert(H<=158&&L<=158,"Must compute formatting context from tokens"),H*_e+L}var D=5,de=31,_e=159,y;(function(H){H[H.StopRulesSpecific=0]="StopRulesSpecific",H[H.StopRulesAny=D*1]="StopRulesAny",H[H.ContextRulesSpecific=D*2]="ContextRulesSpecific",H[H.ContextRulesAny=D*3]="ContextRulesAny",H[H.NoContextRulesSpecific=D*4]="NoContextRulesSpecific",H[H.NoContextRulesAny=D*5]="NoContextRulesAny"})(y||(y={}));function V(H,L,ee,k,b){var ie=L.action&3?ee?y.StopRulesSpecific:y.StopRulesAny:L.context!==ue.anyContext?ee?y.ContextRulesSpecific:y.ContextRulesAny:ee?y.NoContextRulesSpecific:y.NoContextRulesAny,q=k[b]||0;H.splice(Z(q,ie),0,L),k[b]=E(q,ie)}function Z(H,L){for(var ee=0,k=0;k<=L;k+=D)ee+=H&de,H>>=D;return ee}function E(H,L){var ee=(H>>L&de)+1;return e.Debug.assert((ee&de)===ee,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),H&~(de<<L)|ee<<L}})(o=e.formatting||(e.formatting={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(C,d,G){var g={pos:C,end:d,kind:G};return e.Debug.isDebugging&&Object.defineProperty(g,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(G)}}),g}ue.createTextRangeWithKind=$;var Y;(function(C){C[C.Unknown=-1]="Unknown"})(Y||(Y={}));function W(C,d,G){var g=d.getLineAndCharacterOfPosition(C).line;if(g===0)return[];for(var p=e.getEndLinePosition(g,d);e.isWhiteSpaceSingleLine(d.text.charCodeAt(p));)p--;e.isLineBreak(d.text.charCodeAt(p))&&p--;var f={pos:e.getStartPositionOfLine(g-1,d),end:p+1};return k(f,d,G,2)}ue.formatOnEnter=W;function re(C,d,G){var g=de(C,26,d);return ee(_e(g),d,G,3)}ue.formatOnSemicolon=re;function ye(C,d,G){var g=de(C,18,d);if(!g)return[];var p=g.parent,f=_e(p),T={pos:e.getLineStartPositionForPosition(f.getStart(d),d),end:C};return k(T,d,G,4)}ue.formatOnOpeningCurly=ye;function O(C,d,G){var g=de(C,19,d);return ee(_e(g),d,G,5)}ue.formatOnClosingCurly=O;function A(C,d){var G={pos:0,end:C.text.length};return k(G,C,d,0)}ue.formatDocument=A;function D(C,d,G,g){var p={pos:e.getLineStartPositionForPosition(C,G),end:d};return k(p,G,g,1)}ue.formatSelection=D;function de(C,d,G){var g=e.findPrecedingToken(C,G);return g&&g.kind===d&&C===g.getEnd()?g:void 0}function _e(C){for(var d=C;d&&d.parent&&d.parent.end===C.end&&!y(d.parent,d);)d=d.parent;return d}function y(C,d){switch(C.kind){case 255:case 256:return e.rangeContainsRange(C.members,d);case 259:var G=C.body;return!!G&&G.kind===260&&e.rangeContainsRange(G.statements,d);case 300:case 233:case 260:return e.rangeContainsRange(C.statements,d);case 290:return e.rangeContainsRange(C.block.statements,d)}return!1}function V(C,d){return G(d);function G(g){var p=e.forEachChild(g,function(T){return e.startEndContainsRange(T.getStart(d),T.end,C)&&T});if(p){var f=G(p);if(f)return f}return g}}function Z(C,d){if(!C.length)return p;var G=C.filter(function(f){return e.rangeOverlapsWithStartEnd(d,f.start,f.start+f.length)}).sort(function(f,T){return f.start-T.start});if(!G.length)return p;var g=0;return function(f){for(;;){if(g>=G.length)return!1;var T=G[g];if(f.end<=T.start)return!1;if(e.startEndOverlapsWithStartEnd(f.pos,f.end,T.start,T.start+T.length))return!0;g++}};function p(){return!1}}function E(C,d,G){var g=C.getStart(G);if(g===d.pos&&C.end===d.end)return g;var p=e.findPrecedingToken(d.pos,G);return!p||p.end>=d.pos?C.pos:p.end}function H(C,d,G){for(var g=-1,p;C;){var f=G.getLineAndCharacterOfPosition(C.getStart(G)).line;if(g!==-1&&f!==g)break;if(ue.SmartIndenter.shouldIndentChildNode(d,C,p,G))return d.indentSize;g=f,p=C,C=C.parent}return 0}function L(C,d,G,g,p,f){var T={pos:0,end:d.text.length};return ue.getFormattingScanner(d.text,G,T.pos,T.end,function(m){return b(T,C,g,p,m,f,1,function(N){return!1},d)})}ue.formatNodeGivenIndentation=L;function ee(C,d,G,g){if(!C)return[];var p={pos:e.getLineStartPositionForPosition(C.getStart(d),d),end:C.end};return k(p,d,G,g)}function k(C,d,G,g){var p=V(C,d);return ue.getFormattingScanner(d.text,d.languageVariant,E(p,C,d),C.end,function(f){return b(C,p,ue.SmartIndenter.getIndentationForNode(p,C,d,G.options),H(p,G.options,d),f,G,g,Z(d.parseDiagnostics,C),d)})}function b(C,d,G,g,p,f,T,m,N){var P=f.options,x=f.getRules,M=f.host,me=new ue.FormattingContext(N,T,P),z,K,I,Ae,Oe=-1,te=[];if(p.advance(),p.isOnToken()){var Se=N.getLineAndCharacterOfPosition(d.getStart(N)).line,be=Se;d.decorators&&(be=N.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(d,N)).line),qe(d,d,Se,be,G,g)}if(!p.isOnToken()){var Ce=ue.SmartIndenter.nodeWillIndentChild(P,d,void 0,N,!1)?G+P.indentSize:G,Be=p.getCurrentLeadingTrivia();Be&&pe(Be,Ce,!1,function(Vn){return pn(Vn,N.getLineAndCharacterOfPosition(Vn.pos),d,d,void 0)})}return P.trimTrailingWhitespace!==!1&&i(),te;function De(Vn,le,Pe,xe,Ze){if(e.rangeOverlapsWithStartEnd(xe,Vn,le)||e.rangeContainsStartEnd(xe,Vn,le)){if(Ze!==-1)return Ze}else{var hn=N.getLineAndCharacterOfPosition(Vn).line,Le=e.getLineStartPositionForPosition(Vn,N),$e=ue.SmartIndenter.findFirstNonWhitespaceColumn(Le,Vn,N,P);if(hn!==Pe||Vn===$e){var An=ue.SmartIndenter.getBaseIndentation(P);return An>$e?An:$e}}return-1}function en(Vn,le,Pe,xe,Ze,hn){var Le=ue.SmartIndenter.shouldIndentChildNode(P,Vn)?P.indentSize:0;return hn===le?{indentation:le===Ae?Oe:Ze.getIndentation(),delta:Math.min(P.indentSize,Ze.getDelta(Vn)+Le)}:Pe===-1?Vn.kind===20&&le===Ae?{indentation:Oe,delta:Ze.getDelta(Vn)}:ue.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(xe,Vn,le,N)||ue.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(xe,Vn,le,N)||ue.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(xe,Vn,le,N)?{indentation:Ze.getIndentation(),delta:Le}:{indentation:Ze.getIndentation()+Ze.getDelta(Vn),delta:Le}:{indentation:Pe,delta:Le}}function fe(Vn){if(Vn.modifiers&&Vn.modifiers.length)return Vn.modifiers[0].kind;switch(Vn.kind){case 255:return 84;case 256:return 118;case 254:return 98;case 258:return 258;case 170:return 135;case 171:return 147;case 167:if(Vn.asteriskToken)return 41;case 165:case 162:var le=e.getNameOfDeclaration(Vn);if(le)return le.kind}}function Ne(Vn,le,Pe,xe){return{getIndentationForComment:function(Le,$e,An){switch(Le){case 19:case 23:case 21:return Pe+hn(An)}return $e!==-1?$e:Pe},getIndentationForToken:function(Le,$e,An,Ue){return!Ue&&Ze(Le,$e,An)?Pe+hn(An):Pe},getIndentation:function(){return Pe},getDelta:hn,recomputeIndentation:function(Le,$e){ue.SmartIndenter.shouldIndentChildNode(P,$e,Vn,N)&&(Pe+=Le?P.indentSize:-P.indentSize,xe=ue.SmartIndenter.shouldIndentChildNode(P,Vn)?P.indentSize:0)}};function Ze(Le,$e,An){switch($e){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(An.kind){case 278:case 279:case 277:case 226:return!1}break;case 22:case 23:if(An.kind!==193)return!1;break}return le!==Le&&!(Vn.decorators&&$e===fe(Vn))}function hn(Le){return ue.SmartIndenter.nodeWillIndentChild(P,Vn,Le,N,!0)?xe:0}}function qe(Vn,le,Pe,xe,Ze,hn){if(!e.rangeOverlapsWithStartEnd(C,Vn.getStart(N),Vn.getEnd()))return;var Le=Ne(Vn,Pe,Ze,hn),$e=le;for(e.forEachChild(Vn,function(Tn){gn(Tn,-1,Vn,Le,Pe,xe,!1)},function(Tn){Wn(Tn,Vn,Pe,Le)});p.isOnToken();){var An=p.readTokenInfo(Vn);if(An.token.end>Vn.end)break;ze(An,Vn,Le,Vn)}if(!Vn.parent&&p.isOnEOF()){var Ue=p.readEOFTokenRange();Ue.end<=Vn.end&&z&&Qe(Ue,N.getLineAndCharacterOfPosition(Ue.pos).line,Vn,z,I,K,le,Le)}function gn(Tn,On,ur,hr,wr,Qr,Ke,jn){var Zn=Tn.getStart(N),Me=N.getLineAndCharacterOfPosition(Zn).line,Mn=Me;Tn.decorators&&(Mn=N.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(Tn,N)).line);var ar=-1;if(Ke&&e.rangeContainsRange(C,ur)&&(ar=De(Zn,Tn.end,wr,C,On),ar!==-1&&(On=ar)),!e.rangeOverlapsWithStartEnd(C,Tn.pos,Tn.end))return Tn.end<C.pos&&p.skipToEndOf(Tn),On;if(Tn.getFullWidth()===0)return On;for(;p.isOnToken();){var Xn=p.readTokenInfo(Vn);if(Xn.token.end>Zn){Xn.token.pos>Zn&&p.skipToStartOf(Tn);break}ze(Xn,Vn,hr,Vn)}if(!p.isOnToken())return On;if(e.isToken(Tn)){var Xn=p.readTokenInfo(Tn);if(Tn.kind!==11)return e.Debug.assert(Xn.token.end===Tn.end,"Token end is child end"),ze(Xn,Vn,hr,Tn),On}var yr=Tn.kind===163?Me:Qr,cr=en(Tn,Me,ar,Vn,hr,yr);return qe(Tn,$e,Me,Mn,cr.indentation,cr.delta),$e=Vn,jn&&ur.kind===202&&On===-1&&(On=cr.indentation),On}function Wn(Tn,On,ur,hr){e.Debug.assert(e.isNodeArray(Tn));var wr=oe(On,Tn),Qr=hr,Ke=ur;if(wr!==0)for(;p.isOnToken();){var jn=p.readTokenInfo(On);if(jn.token.end>Tn.pos)break;if(jn.token.kind===wr){Ke=N.getLineAndCharacterOfPosition(jn.token.pos).line,ze(jn,On,hr,On);var Zn=void 0;if(Oe!==-1)Zn=Oe;else{var Me=e.getLineStartPositionForPosition(jn.token.pos,N);Zn=ue.SmartIndenter.findFirstNonWhitespaceColumn(Me,jn.token.pos,N,P)}Qr=Ne(On,ur,Zn,P.indentSize)}else ze(jn,On,hr,On)}for(var Mn=-1,ar=0;ar<Tn.length;ar++){var Xn=Tn[ar];Mn=gn(Xn,Mn,Vn,Qr,Ke,Ke,!0,ar===0)}var yr=se(wr);if(yr!==0&&p.isOnToken()){var jn=p.readTokenInfo(On);if(jn.token.kind===27&&e.isCallLikeExpression(On)){var cr=N.getLineAndCharacterOfPosition(jn.token.pos).line;Ke!==cr&&(p.advance(),jn=p.isOnToken()?p.readTokenInfo(On):void 0)}jn&&jn.token.kind===yr&&e.rangeContainsRange(On,jn.token)&&ze(jn,On,Qr,On,!0)}}function ze(Tn,On,ur,hr,wr){e.Debug.assert(e.rangeContainsRange(On,Tn.token));var Qr=p.lastTrailingTriviaWasNewLine(),Ke=!1;Tn.leadingTrivia&&we(Tn.leadingTrivia,On,$e,ur);var jn=0,Zn=e.rangeContainsRange(C,Tn.token),Me=N.getLineAndCharacterOfPosition(Tn.token.pos);if(Zn){var Mn=m(Tn.token),ar=z;if(jn=pn(Tn.token,Me,On,$e,ur),!Mn)if(jn===0){var Xn=ar&&N.getLineAndCharacterOfPosition(ar.end).line;Ke=Qr&&Me.line!==Xn}else Ke=jn===1}if(Tn.trailingTrivia&&we(Tn.trailingTrivia,On,$e,ur),Ke){var yr=Zn&&!m(Tn.token)?ur.getIndentationForToken(Me.line,Tn.token.kind,hr,!!wr):-1,cr=!0;if(Tn.leadingTrivia){var Fe=ur.getIndentationForComment(Tn.token.kind,yr,hr);cr=pe(Tn.leadingTrivia,Fe,cr,function(Bn){return Re(Bn.pos,Fe,!1)})}yr!==-1&&cr&&(Re(Tn.token.pos,yr,jn===1),Ae=Me.line,Oe=yr)}p.advance(),$e=On}}function pe(Vn,le,Pe,xe){for(var Ze=0,hn=Vn;Ze<hn.length;Ze++){var Le=hn[Ze],$e=e.rangeContainsRange(C,Le);switch(Le.kind){case 3:$e&&Un(Le,le,!Pe),Pe=!1;break;case 2:Pe&&$e&&xe(Le),Pe=!1;break;case 4:Pe=!0;break}}return Pe}function we(Vn,le,Pe,xe){for(var Ze=0,hn=Vn;Ze<hn.length;Ze++){var Le=hn[Ze];if(e.isComment(Le.kind)&&e.rangeContainsRange(C,Le)){var $e=N.getLineAndCharacterOfPosition(Le.pos);pn(Le,$e,le,Pe,xe)}}}function pn(Vn,le,Pe,xe,Ze){var hn=m(Vn),Le=0;if(!hn)if(z)Le=Qe(Vn,le.line,Pe,z,I,K,xe,Ze);else{var $e=N.getLineAndCharacterOfPosition(C.pos);fn($e.line,le.line)}return z=Vn,K=Pe,I=le.line,Le}function Qe(Vn,le,Pe,xe,Ze,hn,Le,$e){me.updateContext(xe,hn,Vn,Pe,Le);var An=x(me),Ue=me.options.trimTrailingWhitespace!==!1,gn=0;return An?e.forEachRight(An,function(Wn){switch(gn=$n(Wn,xe,Ze,Vn,le),gn){case 2:Pe.getStart(N)===Vn.pos&&$e.recomputeIndentation(!1,Le);break;case 1:Pe.getStart(N)===Vn.pos&&$e.recomputeIndentation(!0,Le);break;default:e.Debug.assert(gn===0)}Ue=Ue&&!(Wn.action&16)&&Wn.flags!==1}):Ue=Ue&&Vn.kind!==1,le!==Ze&&Ue&&fn(Ze,le,xe),gn}function Re(Vn,le,Pe){var xe=U(le,P);if(Pe)X(Vn,0,xe);else{var Ze=N.getLineAndCharacterOfPosition(Vn),hn=e.getStartPositionOfLine(Ze.line,N);(le!==He(hn,Ze.character)||Ln(xe,hn))&&X(hn,Ze.character,xe)}}function He(Vn,le){for(var Pe=0,xe=0;xe<le;xe++)N.text.charCodeAt(Vn+xe)===9?Pe+=P.tabSize-Pe%P.tabSize:Pe++;return Pe}function Ln(Vn,le){return Vn!==N.text.substr(le,Vn.length)}function Un(Vn,le,Pe,xe){xe===void 0&&(xe=!0);var Ze=N.getLineAndCharacterOfPosition(Vn.pos).line,hn=N.getLineAndCharacterOfPosition(Vn.end).line;if(Ze===hn){Pe||Re(Vn.pos,le,!1);return}for(var Le=[],$e=Vn.pos,An=Ze;An<hn;An++){var Ue=e.getEndLinePosition(An,N);Le.push({pos:$e,end:Ue}),$e=e.getStartPositionOfLine(An+1,N)}if(xe&&Le.push({pos:$e,end:Vn.end}),Le.length!==0){var gn=e.getStartPositionOfLine(Ze,N),Wn=ue.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(gn,Le[0].pos,N,P),ze=0;Pe&&(ze=1,Ze++);for(var Tn=le-Wn.column,On=ze;On<Le.length;On++,Ze++){var ur=e.getStartPositionOfLine(Ze,N),hr=On===0?Wn:ue.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(Le[On].pos,Le[On].end,N,P),wr=hr.column+Tn;if(wr>0){var Qr=U(wr,P);X(ur,hr.character,Qr)}else In(ur,hr.character)}}}function fn(Vn,le,Pe){for(var xe=Vn;xe<le;xe++){var Ze=e.getStartPositionOfLine(xe,N),hn=e.getEndLinePosition(xe,N);if(!(Pe&&(e.isComment(Pe.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(Pe.kind))&&Pe.pos<=hn&&Pe.end>hn)){var Le=En(Ze,hn);Le!==-1&&(e.Debug.assert(Le===Ze||!e.isWhiteSpaceSingleLine(N.text.charCodeAt(Le-1))),In(Le,hn+1-Le))}}}function En(Vn,le){for(var Pe=le;Pe>=Vn&&e.isWhiteSpaceSingleLine(N.text.charCodeAt(Pe));)Pe--;return Pe!==le?Pe+1:-1}function i(){var Vn=z?z.end:C.pos,le=N.getLineAndCharacterOfPosition(Vn).line,Pe=N.getLineAndCharacterOfPosition(C.end).line;fn(le,Pe+1,z)}function In(Vn,le){le&&te.push(e.createTextChangeFromStartLength(Vn,le,""))}function X(Vn,le,Pe){(le||Pe)&&te.push(e.createTextChangeFromStartLength(Vn,le,Pe))}function rn(Vn,le){le&&te.push(e.createTextChangeFromStartLength(Vn,0,le))}function $n(Vn,le,Pe,xe,Ze){var hn=Ze!==Pe;switch(Vn.action){case 1:return 0;case 16:if(le.end!==xe.pos)return In(le.end,xe.pos-le.end),hn?2:0;break;case 32:In(le.pos,le.end-le.pos);break;case 8:if(Vn.flags!==1&&Pe!==Ze)return 0;var Le=Ze-Pe;if(Le!==1)return X(le.end,xe.pos-le.end,e.getNewLineOrDefaultFromHost(M,P)),hn?0:1;break;case 4:if(Vn.flags!==1&&Pe!==Ze)return 0;var $e=xe.pos-le.end;if($e!==1||N.text.charCodeAt(le.end)!==32)return X(le.end,xe.pos-le.end," "),hn?2:0;break;case 64:rn(le.end,";")}return 0}}var ie;(function(C){C[C.None=0]="None",C[C.LineAdded=1]="LineAdded",C[C.LineRemoved=2]="LineRemoved"})(ie||(ie={}));function q(C,d,G,g){g===void 0&&(g=e.getTokenAtPosition(C,d));var p=e.findAncestor(g,e.isJSDoc);p&&(g=p.parent);var f=g.getStart(C);if(!(f<=d&&d<g.getEnd())){G=G===null?void 0:G===void 0?e.findPrecedingToken(d,C):G;var T=G&&e.getTrailingCommentRanges(C.text,G.end),m=e.getLeadingCommentRangesOfNode(g,C),N=e.concatenate(T,m);return N&&e.find(N,function(P){return e.rangeContainsPositionExclusive(P,d)||d===P.end&&(P.kind===2||d===C.getFullWidth())})}}ue.getRangeOfEnclosingComment=q;function oe(C,d){switch(C.kind){case 169:case 254:case 211:case 167:case 166:case 212:if(C.typeParameters===d)return 29;if(C.parameters===d)return 20;break;case 206:case 207:if(C.typeArguments===d)return 29;if(C.arguments===d)return 20;break;case 176:if(C.typeArguments===d)return 29;break;case 180:return 18}return 0}function se(C){switch(C){case 20:return 21;case 29:return 31;case 18:return 19}return 0}var w,R,ne;function U(C,d){var G=!w||w.tabSize!==d.tabSize||w.indentSize!==d.indentSize;if(G&&(w={tabSize:d.tabSize,indentSize:d.indentSize},R=ne=void 0),d.convertTabsToSpaces){var T=void 0,m=Math.floor(C/d.indentSize),N=C%d.indentSize;return ne||(ne=[]),ne[m]===void 0?(T=e.repeatString(" ",d.indentSize*m),ne[m]=T):T=ne[m],N?T+e.repeatString(" ",N):T}else{var g=Math.floor(C/d.tabSize),p=C-g*d.tabSize,f=void 0;return R||(R=[]),R[g]===void 0?R[g]=f=e.repeatString(" ",g):f=R[g],p?f+e.repeatString(" ",p):f}}ue.getIndentationString=U})(o=e.formatting||(e.formatting={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $;(function(Y){var W;(function(m){m[m.Unknown=-1]="Unknown"})(W||(W={}));function re(m,N,P,x){if(x===void 0&&(x=!1),m>N.text.length)return de(P);if(P.indentStyle===e.IndentStyle.None)return 0;var M=e.findPrecedingToken(m,N,void 0,!0),me=ue.getRangeOfEnclosingComment(N,m,M||null);if(me&&me.kind===3)return ye(N,m,P,me);if(!M)return de(P);var z=e.isStringOrRegularExpressionOrTemplateLiteral(M.kind);if(z&&M.getStart(N)<=m&&m<M.end)return 0;var K=N.getLineAndCharacterOfPosition(m).line;if(P.indentStyle===e.IndentStyle.Block)return O(N,m,P);if(M.kind===27&&M.parent.kind!==219){var I=V(M,N,P);if(I!==-1)return I}var Ae=oe(m,M.parent,N);return Ae&&!e.rangeContainsRange(Ae,M)?R(Ae,N,P)+P.indentSize:A(N,m,M,K,x,P)}Y.getIndentation=re;function ye(m,N,P,x){var M=e.getLineAndCharacterOfPosition(m,N).line-1,me=e.getLineAndCharacterOfPosition(m,x.pos).line;if(e.Debug.assert(me>=0),M<=me)return G(e.getStartPositionOfLine(me,m),N,m,P);var z=e.getStartPositionOfLine(M,m),K=d(z,N,m,P),I=K.column,Ae=K.character;if(I===0)return I;var Oe=m.text.charCodeAt(z+Ae);return Oe===42?I-1:I}function O(m,N,P){for(var x=N;x>0;){var M=m.text.charCodeAt(x);if(!e.isWhiteSpaceLike(M))break;x--}var me=e.getLineStartPositionForPosition(x,m);return G(me,x,m,P)}function A(m,N,P,x,M,me){for(var z,K=P;K;){if(e.positionBelongsToNode(K,N,m)&&f(me,K,z,m,!0)){var I=L(K,m),Ae=H(P,K,x,m),Oe=Ae!==0?M&&Ae===2?me.indentSize:0:x!==I.line?me.indentSize:0;return _e(K,I,void 0,Oe,m,!0,me)}var te=ne(K,m,me,!0);if(te!==-1)return te;z=K,K=K.parent}return de(me)}function D(m,N,P,x){var M=P.getLineAndCharacterOfPosition(m.getStart(P));return _e(m,M,N,0,P,!1,x)}Y.getIndentationForNode=D;function de(m){return m.baseIndentSize||0}Y.getBaseIndentation=de;function _e(m,N,P,x,M,me,z){for(var K,I=m.parent;I;){var Ae=!0;if(P){var Oe=m.getStart(M);Ae=Oe<P.pos||Oe>P.end}var te=y(I,m,M),Se=te.line===N.line||k(I,m,N.line,M);if(Ae){var be=(K=q(m,M))===null||K===void 0?void 0:K[0],Ce=!!be&&L(be,M).line>te.line,Be=ne(m,M,z,Ce);if(Be!==-1||(Be=Z(m,I,N,Se,M,z),Be!==-1))return Be+x}f(z,I,m,M,me)&&!Se&&(x+=z.indentSize);var De=ee(I,m,N.line,M);m=I,I=m.parent,N=De?M.getLineAndCharacterOfPosition(m.getStart(M)):te}return x+de(z)}function y(m,N,P){var x=q(N,P),M=x?x.pos:m.getStart(P);return P.getLineAndCharacterOfPosition(M)}function V(m,N,P){var x=e.findListItemInfo(m);return x&&x.listItemIndex>0?U(x.list.getChildren(),x.listItemIndex-1,N,P):-1}function Z(m,N,P,x,M,me){var z=(e.isDeclaration(m)||e.isStatementButNotDeclaration(m))&&(N.kind===300||!x);return z?C(P,M,me):-1}var E;(function(m){m[m.Unknown=0]="Unknown",m[m.OpenBrace=1]="OpenBrace",m[m.CloseBrace=2]="CloseBrace"})(E||(E={}));function H(m,N,P,x){var M=e.findNextToken(m,N,x);if(!M)return 0;if(M.kind===18)return 1;if(M.kind===19){var me=L(M,x).line;return P===me?2:0}return 0}function L(m,N){return N.getLineAndCharacterOfPosition(m.getStart(N))}function ee(m,N,P,x){if(!(e.isCallExpression(m)&&e.contains(m.arguments,N)))return!1;var M=m.expression.getEnd(),me=e.getLineAndCharacterOfPosition(x,M).line;return me===P}Y.isArgumentAndStartLineOverlapsExpressionBeingCalled=ee;function k(m,N,P,x){if(m.kind===237&&m.elseStatement===N){var M=e.findChildOfKind(m,91,x);e.Debug.assert(M!==void 0);var me=L(M,x).line;return me===P}return!1}Y.childStartsOnTheSameLineWithElseInIfStatement=k;function b(m,N,P,x){if(e.isConditionalExpression(m)&&(N===m.whenTrue||N===m.whenFalse)){var M=e.getLineAndCharacterOfPosition(x,m.condition.end).line;if(N===m.whenTrue)return P===M;var me=L(m.whenTrue,x).line,z=e.getLineAndCharacterOfPosition(x,m.whenTrue.end).line;return M===me&&z===P}return!1}Y.childIsUnindentedBranchOfConditionalExpression=b;function ie(m,N,P,x){if(e.isCallOrNewExpression(m)){if(!m.arguments)return!1;var M=e.find(m.arguments,function(I){return I.pos===N.pos});if(!M)return!1;var me=m.arguments.indexOf(M);if(me===0)return!1;var z=m.arguments[me-1],K=e.getLineAndCharacterOfPosition(x,z.getEnd()).line;if(P===K)return!0}return!1}Y.argumentStartsOnSameLineAsPreviousArgument=ie;function q(m,N){return m.parent&&se(m.getStart(N),m.getEnd(),m.parent,N)}Y.getContainingList=q;function oe(m,N,P){return N&&se(m,m,N,P)}function se(m,N,P,x){switch(P.kind){case 176:return M(P.typeArguments);case 203:return M(P.properties);case 202:return M(P.elements);case 180:return M(P.members);case 254:case 211:case 212:case 167:case 166:case 172:case 169:case 178:case 173:return M(P.typeParameters)||M(P.parameters);case 255:case 224:case 256:case 257:case 339:return M(P.typeParameters);case 207:case 206:return M(P.typeArguments)||M(P.arguments);case 253:return M(P.declarations);case 267:case 271:return M(P.elements);case 199:case 200:return M(P.elements)}function M(me){return me&&e.rangeContainsStartEnd(w(P,me,x),m,N)?me:void 0}}function w(m,N,P){for(var x=m.getChildren(P),M=1;M<x.length-1;M++)if(x[M].pos===N.pos&&x[M].end===N.end)return{pos:x[M-1].end,end:x[M+1].getStart(P)};return N}function R(m,N,P){return m?C(N.getLineAndCharacterOfPosition(m.pos),N,P):-1}function ne(m,N,P,x){if(m.parent&&m.parent.kind===253)return-1;var M=q(m,N);if(M){var me=M.indexOf(m);if(me!==-1){var z=U(M,me,N,P);if(z!==-1)return z}return R(M,N,P)+(x?P.indentSize:0)}return-1}function U(m,N,P,x){e.Debug.assert(N>=0&&N<m.length);for(var M=m[N],me=L(M,P),z=N-1;z>=0;z--)if(m[z].kind!==27){var K=P.getLineAndCharacterOfPosition(m[z].end).line;if(K!==me.line)return C(me,P,x);me=L(m[z],P)}return-1}function C(m,N,P){var x=N.getPositionOfLineAndCharacter(m.line,0);return G(x,x+m.character,N,P)}function d(m,N,P,x){for(var M=0,me=0,z=m;z<N;z++){var K=P.text.charCodeAt(z);if(!e.isWhiteSpaceSingleLine(K))break;K===9?me+=x.tabSize+me%x.tabSize:me++,M++}return{column:me,character:M}}Y.findFirstNonWhitespaceCharacterAndColumn=d;function G(m,N,P,x){return d(m,N,P,x).column}Y.findFirstNonWhitespaceColumn=G;function g(m,N,P,x,M){var me=P?P.kind:0;switch(N.kind){case 236:case 255:case 224:case 256:case 258:case 257:case 202:case 233:case 260:case 203:case 180:case 193:case 182:case 261:case 288:case 287:case 210:case 204:case 206:case 207:case 235:case 269:case 245:case 220:case 200:case 199:case 278:case 281:case 277:case 286:case 166:case 172:case 173:case 162:case 177:case 178:case 189:case 208:case 216:case 271:case 267:case 273:case 268:case 165:return!0;case 252:case 291:case 219:if(!m.indentMultiLineObjectLiteralBeginningOnBlankLine&&x&&me===203)return T(x,P);if(N.kind!==219)return!0;break;case 238:case 239:case 241:case 242:case 240:case 237:case 254:case 211:case 167:case 169:case 170:case 171:return me!==233;case 212:return x&&me===210?T(x,P):me!==233;case 270:return me!==271;case 264:return me!==265||!!P.namedBindings&&P.namedBindings.kind!==267;case 276:return me!==279;case 280:return me!==282;case 186:case 185:if(me===180||me===182)return!1;break}return M}Y.nodeWillIndentChild=g;function p(m,N){switch(m){case 245:case 249:case 243:case 244:return N.kind!==233;default:return!1}}function f(m,N,P,x,M){return M===void 0&&(M=!1),g(m,N,P,x,!1)&&!(M&&P&&p(P.kind,N))}Y.shouldIndentChildNode=f;function T(m,N){var P=e.skipTrivia(m.text,N.pos),x=m.getLineAndCharacterOfPosition(P).line,M=m.getLineAndCharacterOfPosition(N.end).line;return x===M}})($=ue.SmartIndenter||(ue.SmartIndenter={}))})(o=e.formatting||(e.formatting={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(T){var m=T.__pos;return e.Debug.assert(typeof m=="number"),m}function Y(T,m){e.Debug.assert(typeof m=="number"),T.__pos=m}function W(T){var m=T.__end;return e.Debug.assert(typeof m=="number"),m}function re(T,m){e.Debug.assert(typeof m=="number"),T.__end=m}var ye;(function(T){T[T.Exclude=0]="Exclude",T[T.IncludeAll=1]="IncludeAll",T[T.JSDoc=2]="JSDoc",T[T.StartLine=3]="StartLine"})(ye=ue.LeadingTriviaOption||(ue.LeadingTriviaOption={}));var O;(function(T){T[T.Exclude=0]="Exclude",T[T.ExcludeWhitespace=1]="ExcludeWhitespace",T[T.Include=2]="Include"})(O=ue.TrailingTriviaOption||(ue.TrailingTriviaOption={}));function A(T,m){return e.skipTrivia(T,m,!1,!0)}function D(T,m){for(var N=m;N<T.length;){var P=T.charCodeAt(N);if(e.isWhiteSpaceSingleLine(P)){N++;continue}return P===47}return!1}var de={leadingTriviaOption:ye.Exclude,trailingTriviaOption:O.Exclude},_e;(function(T){T[T.Remove=0]="Remove",T[T.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",T[T.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",T[T.Text=3]="Text"})(_e||(_e={}));function y(T,m,N,P){return{pos:V(T,m,P),end:E(T,N,P)}}function V(T,m,N,P){var x,M;P===void 0&&(P=!1);var me=N.leadingTriviaOption;if(me===ye.Exclude)return m.getStart(T);if(me===ye.StartLine){var z=m.getStart(T),K=e.getLineStartPositionForPosition(z,T);return e.rangeContainsPosition(m,K)?K:z}if(me===ye.JSDoc){var I=e.getJSDocCommentRanges(m,T.text);if(I!=null&&I.length)return e.getLineStartPositionForPosition(I[0].pos,T)}var Ae=m.getFullStart(),Oe=m.getStart(T);if(Ae===Oe)return Oe;var te=e.getLineStartPositionForPosition(Ae,T),Se=e.getLineStartPositionForPosition(Oe,T);if(Se===te)return me===ye.IncludeAll?Ae:Oe;if(P){var be=((x=e.getLeadingCommentRanges(T.text,Ae))===null||x===void 0?void 0:x[0])||((M=e.getTrailingCommentRanges(T.text,Ae))===null||M===void 0?void 0:M[0]);if(be)return e.skipTrivia(T.text,be.end,!0,!0)}var Ce=Ae>0?1:0,Be=e.getStartPositionOfLine(e.getLineOfLocalPosition(T,te)+Ce,T);return Be=A(T.text,Be),e.getStartPositionOfLine(e.getLineOfLocalPosition(T,Be),T)}function Z(T,m,N){var P=m.end,x=N.trailingTriviaOption;if(x===O.Include){var M=e.getTrailingCommentRanges(T.text,P);if(M)for(var me=e.getLineOfLocalPosition(T,m.end),z=0,K=M;z<K.length;z++){var I=K[z];if(I.kind===2||e.getLineOfLocalPosition(T,I.pos)>me)break;var Ae=e.getLineOfLocalPosition(T,I.end);if(Ae>me)return e.skipTrivia(T.text,I.end,!0,!0)}}}function E(T,m,N){var P,x=m.end,M=N.trailingTriviaOption;if(M===O.Exclude)return x;if(M===O.ExcludeWhitespace){var me=e.concatenate(e.getTrailingCommentRanges(T.text,x),e.getLeadingCommentRanges(T.text,x)),z=(P=me==null?void 0:me[me.length-1])===null||P===void 0?void 0:P.end;return z||x}var K=Z(T,m,N);if(K)return K;var I=e.skipTrivia(T.text,x,!0);return I!==x&&(M===O.Include||e.isLineBreak(T.text.charCodeAt(I-1)))?I:x}function H(T,m){return!!m&&!!T.parent&&(m.kind===27||m.kind===26&&T.parent.kind===203)}function L(T){return e.isFunctionExpression(T)||e.isFunctionDeclaration(T)}ue.isThisTypeAnnotatable=L;var ee=function(){function T(m,N){this.newLineCharacter=m,this.formatContext=N,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return T.fromContext=function(m){return new T(e.getNewLineOrDefaultFromHost(m.host,m.formatContext.options),m.formatContext)},T.with=function(m,N){var P=T.fromContext(m);return N(P),P.getChanges()},T.prototype.pushRaw=function(m,N){e.Debug.assertEqual(m.fileName,N.fileName);for(var P=0,x=N.textChanges;P<x.length;P++){var M=x[P];this.changes.push({kind:_e.Text,sourceFile:m,text:M.newText,range:e.createTextRangeFromSpan(M.span)})}},T.prototype.deleteRange=function(m,N){this.changes.push({kind:_e.Remove,sourceFile:m,range:N})},T.prototype.delete=function(m,N){this.deletedNodes.push({sourceFile:m,node:N})},T.prototype.deleteNode=function(m,N,P){P===void 0&&(P={leadingTriviaOption:ye.IncludeAll}),this.deleteRange(m,y(m,N,N,P))},T.prototype.deleteNodes=function(m,N,P,x){P===void 0&&(P={leadingTriviaOption:ye.IncludeAll});for(var M=0,me=N;M<me.length;M++){var z=me[M],K=V(m,z,P,x),I=E(m,z,P);this.deleteRange(m,{pos:K,end:I}),x=!!Z(m,z,P)}},T.prototype.deleteModifier=function(m,N){this.deleteRange(m,{pos:N.getStart(m),end:e.skipTrivia(m.text,N.end,!0)})},T.prototype.deleteNodeRange=function(m,N,P,x){x===void 0&&(x={leadingTriviaOption:ye.IncludeAll});var M=V(m,N,x),me=E(m,P,x);this.deleteRange(m,{pos:M,end:me})},T.prototype.deleteNodeRangeExcludingEnd=function(m,N,P,x){x===void 0&&(x={leadingTriviaOption:ye.IncludeAll});var M=V(m,N,x),me=P===void 0?m.text.length:V(m,P,x);this.deleteRange(m,{pos:M,end:me})},T.prototype.replaceRange=function(m,N,P,x){x===void 0&&(x={}),this.changes.push({kind:_e.ReplaceWithSingleNode,sourceFile:m,range:N,options:x,node:P})},T.prototype.replaceNode=function(m,N,P,x){x===void 0&&(x=de),this.replaceRange(m,y(m,N,N,x),P,x)},T.prototype.replaceNodeRange=function(m,N,P,x,M){M===void 0&&(M=de),this.replaceRange(m,y(m,N,P,M),x,M)},T.prototype.replaceRangeWithNodes=function(m,N,P,x){x===void 0&&(x={}),this.changes.push({kind:_e.ReplaceWithMultipleNodes,sourceFile:m,range:N,options:x,nodes:P})},T.prototype.replaceNodeWithNodes=function(m,N,P,x){x===void 0&&(x=de),this.replaceRangeWithNodes(m,y(m,N,N,x),P,x)},T.prototype.replaceNodeWithText=function(m,N,P){this.replaceRangeWithText(m,y(m,N,N,de),P)},T.prototype.replaceNodeRangeWithNodes=function(m,N,P,x,M){M===void 0&&(M=de),this.replaceRangeWithNodes(m,y(m,N,P,M),x,M)},T.prototype.nodeHasTrailingComment=function(m,N,P){return P===void 0&&(P=de),!!Z(m,N,P)},T.prototype.nextCommaToken=function(m,N){var P=e.findNextToken(N,N.parent,m);return P&&P.kind===27?P:void 0},T.prototype.replacePropertyAssignment=function(m,N,P){var x=this.nextCommaToken(m,N)?"":","+this.newLineCharacter;this.replaceNode(m,N,P,{suffix:x})},T.prototype.insertNodeAt=function(m,N,P,x){x===void 0&&(x={}),this.replaceRange(m,e.createRange(N),P,x)},T.prototype.insertNodesAt=function(m,N,P,x){x===void 0&&(x={}),this.replaceRangeWithNodes(m,e.createRange(N),P,x)},T.prototype.insertNodeAtTopOfFile=function(m,N,P){this.insertAtTopOfFile(m,N,P)},T.prototype.insertNodesAtTopOfFile=function(m,N,P){this.insertAtTopOfFile(m,N,P)},T.prototype.insertAtTopOfFile=function(m,N,P){var x=C(m),M={prefix:x===0?void 0:this.newLineCharacter,suffix:(e.isLineBreak(m.text.charCodeAt(x))?"":this.newLineCharacter)+(P?this.newLineCharacter:"")};e.isArray(N)?this.insertNodesAt(m,x,N,M):this.insertNodeAt(m,x,N,M)},T.prototype.insertFirstParameter=function(m,N,P){var x=e.firstOrUndefined(N);x?this.insertNodeBefore(m,x,P):this.insertNodeAt(m,N.pos,P)},T.prototype.insertNodeBefore=function(m,N,P,x,M){x===void 0&&(x=!1),M===void 0&&(M={}),this.insertNodeAt(m,V(m,N,M),P,this.getOptionsForInsertNodeBefore(N,P,x))},T.prototype.insertModifierAt=function(m,N,P,x){x===void 0&&(x={}),this.insertNodeAt(m,N,e.factory.createToken(P),x)},T.prototype.insertModifierBefore=function(m,N,P){return this.insertModifierAt(m,P.getStart(m),N,{suffix:" "})},T.prototype.insertCommentBeforeLine=function(m,N,P,x){var M=e.getStartPositionOfLine(N,m),me=e.getFirstNonSpaceCharacterPosition(m.text,M),z=d(m,me),K=e.getTouchingToken(m,z?me:P),I=m.text.slice(M,me),Ae=(z?"":this.newLineCharacter)+"//"+x+this.newLineCharacter+I;this.insertText(m,K.getStart(m),Ae)},T.prototype.insertJsdocCommentBefore=function(m,N,P){var x=N.getStart(m);if(N.jsDoc)for(var M=0,me=N.jsDoc;M<me.length;M++){var z=me[M];this.deleteRange(m,{pos:e.getLineStartPositionForPosition(z.getStart(m),m),end:E(m,z,{})})}var K=e.getPrecedingNonSpaceCharacterPosition(m.text,x-1),I=m.text.slice(K,x);this.insertNodeAt(m,x,P,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+I})},T.prototype.replaceRangeWithText=function(m,N,P){this.changes.push({kind:_e.Text,sourceFile:m,range:N,text:P})},T.prototype.insertText=function(m,N,P){this.replaceRangeWithText(m,e.createRange(N),P)},T.prototype.tryInsertTypeAnnotation=function(m,N,P){var x,M;if(e.isFunctionLike(N)){if(M=e.findChildOfKind(N,21,m),!M){if(!e.isArrowFunction(N))return!1;M=e.first(N.parameters)}}else M=(x=N.kind===252?N.exclamationToken:N.questionToken)!==null&&x!==void 0?x:N.name;return this.insertNodeAt(m,M.end,P,{prefix:": "}),!0},T.prototype.tryInsertThisTypeAnnotation=function(m,N,P){var x=e.findChildOfKind(N,20,m).getStart(m)+1,M=N.parameters.length?", ":"";this.insertNodeAt(m,x,P,{prefix:"this: ",suffix:M})},T.prototype.insertTypeParameters=function(m,N,P){var x=(e.findChildOfKind(N,20,m)||e.first(N.parameters)).getStart(m);this.insertNodesAt(m,x,P,{prefix:"<",suffix:">",joiner:", "})},T.prototype.getOptionsForInsertNodeBefore=function(m,N,P){return e.isStatement(m)||e.isClassElement(m)?{suffix:P?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(m)?{suffix:", "}:e.isParameter(m)?e.isParameter(N)?{suffix:", "}:{}:e.isStringLiteral(m)&&e.isImportDeclaration(m.parent)||e.isNamedImports(m)?{suffix:", "}:e.isImportSpecifier(m)?{suffix:","+(P?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(m)},T.prototype.insertNodeAtConstructorStart=function(m,N,P){var x=e.firstOrUndefined(N.body.statements);!x||!N.body.multiLine?this.replaceConstructorBody(m,N,Vr([P],N.body.statements,!0)):this.insertNodeBefore(m,x,P)},T.prototype.insertNodeAtConstructorStartAfterSuperCall=function(m,N,P){var x=e.find(N.body.statements,function(M){return e.isExpressionStatement(M)&&e.isSuperCall(M.expression)});!x||!N.body.multiLine?this.replaceConstructorBody(m,N,Vr(Vr([],N.body.statements,!0),[P],!1)):this.insertNodeAfter(m,x,P)},T.prototype.insertNodeAtConstructorEnd=function(m,N,P){var x=e.lastOrUndefined(N.body.statements);!x||!N.body.multiLine?this.replaceConstructorBody(m,N,Vr(Vr([],N.body.statements,!0),[P],!1)):this.insertNodeAfter(m,x,P)},T.prototype.replaceConstructorBody=function(m,N,P){this.replaceNode(m,N.body,e.factory.createBlock(P,!0))},T.prototype.insertNodeAtEndOfScope=function(m,N,P){var x=V(m,N.getLastToken(),{});this.insertNodeAt(m,x,P,{prefix:e.isLineBreak(m.text.charCodeAt(N.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},T.prototype.insertNodeAtClassStart=function(m,N,P){this.insertNodeAtStartWorker(m,N,P)},T.prototype.insertNodeAtObjectStart=function(m,N,P){this.insertNodeAtStartWorker(m,N,P)},T.prototype.insertNodeAtStartWorker=function(m,N,P){var x,M=(x=this.guessIndentationFromExistingMembers(m,N))!==null&&x!==void 0?x:this.computeIndentationForNewMember(m,N);this.insertNodeAt(m,ie(N).pos,P,this.getInsertNodeAtStartInsertOptions(m,N,M))},T.prototype.guessIndentationFromExistingMembers=function(m,N){for(var P,x=N,M=0,me=ie(N);M<me.length;M++){var z=me[M];if(e.rangeStartPositionsAreOnSameLine(x,z,m))return;var K=z.getStart(m),I=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(K,m),K,m,this.formatContext.options);if(P===void 0)P=I;else if(I!==P)return;x=z}return P},T.prototype.computeIndentationForNewMember=function(m,N){var P,x=N.getStart(m);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(x,m),x,m,this.formatContext.options)+((P=this.formatContext.options.indentSize)!==null&&P!==void 0?P:4)},T.prototype.getInsertNodeAtStartInsertOptions=function(m,N,P){var x=ie(N),M=x.length===0,me=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(N),{node:N,sourceFile:m}),z=e.isObjectLiteralExpression(N)&&(!e.isJsonSourceFile(m)||!M),K=e.isObjectLiteralExpression(N)&&e.isJsonSourceFile(m)&&M&&!me;return{indentation:P,prefix:(K?",":"")+this.newLineCharacter,suffix:z?",":""}},T.prototype.insertNodeAfterComma=function(m,N,P){var x=this.insertNodeAfterWorker(m,this.nextCommaToken(m,N)||N,P);this.insertNodeAt(m,x,P,this.getInsertNodeAfterOptions(m,N))},T.prototype.insertNodeAfter=function(m,N,P){var x=this.insertNodeAfterWorker(m,N,P);this.insertNodeAt(m,x,P,this.getInsertNodeAfterOptions(m,N))},T.prototype.insertNodeAtEndOfList=function(m,N,P){this.insertNodeAt(m,N.end,P,{prefix:", "})},T.prototype.insertNodesAfter=function(m,N,P){var x=this.insertNodeAfterWorker(m,N,e.first(P));this.insertNodesAt(m,x,P,this.getInsertNodeAfterOptions(m,N))},T.prototype.insertNodeAfterWorker=function(m,N,P){G(N,P)&&m.text.charCodeAt(N.end-1)!==59&&this.replaceRange(m,e.createRange(N.end),e.factory.createToken(26));var x=E(m,N,{});return x},T.prototype.getInsertNodeAfterOptions=function(m,N){var P=this.getInsertNodeAfterOptionsWorker(N);return Mt(Mt({},P),{prefix:N.end===m.end&&e.isStatement(N)?P.prefix?`
`+P.prefix:`
`:P.prefix})},T.prototype.getInsertNodeAfterOptionsWorker=function(m){switch(m.kind){case 255:case 259:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 252:case 10:case 79:return{prefix:", "};case 291:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 162:return{};default:return e.Debug.assert(e.isStatement(m)||e.isClassOrTypeElement(m)),{suffix:this.newLineCharacter}}},T.prototype.insertName=function(m,N,P){if(e.Debug.assert(!N.name),N.kind===212){var x=e.findChildOfKind(N,38,m),M=e.findChildOfKind(N,20,m);M?(this.insertNodesAt(m,M.getStart(m),[e.factory.createToken(98),e.factory.createIdentifier(P)],{joiner:" "}),p(this,m,x)):(this.insertText(m,e.first(N.parameters).getStart(m),"function "+P+"("),this.replaceRange(m,x,e.factory.createToken(21))),N.body.kind!==233&&(this.insertNodesAt(m,N.body.getStart(m),[e.factory.createToken(18),e.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(m,N.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var me=e.findChildOfKind(N,N.kind===211?98:84,m).end;this.insertNodeAt(m,me,e.factory.createIdentifier(P),{prefix:" "})}},T.prototype.insertExportModifier=function(m,N){this.insertText(m,N.getStart(m),"export ")},T.prototype.insertNodeInListAfter=function(m,N,P,x){if(x===void 0&&(x=e.formatting.SmartIndenter.getContainingList(N,m)),!x){e.Debug.fail("node is not a list element");return}var M=e.indexOfNode(x,N);if(!(M<0)){var me=N.getEnd();if(M!==x.length-1){var z=e.getTokenAtPosition(m,N.end);if(z&&H(N,z)){var K=x[M+1],I=A(m.text,K.getFullStart()),Ae=""+e.tokenToString(z.kind)+m.text.substring(z.end,I);this.insertNodesAt(m,I,[P],{suffix:Ae})}}else{var Oe=N.getStart(m),te=e.getLineStartPositionForPosition(Oe,m),Se=void 0,be=!1;if(x.length===1)Se=27;else{var Ce=e.findPrecedingToken(N.pos,m);Se=H(N,Ce)?Ce.kind:27;var Be=e.getLineStartPositionForPosition(x[M-1].getStart(m),m);be=Be!==te}if(D(m.text,N.end)&&(be=!0),be){this.replaceRange(m,e.createRange(me),e.factory.createToken(Se));for(var De=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(te,Oe,m,this.formatContext.options),en=e.skipTrivia(m.text,me,!0,!1);en!==me&&e.isLineBreak(m.text.charCodeAt(en-1));)en--;this.replaceRange(m,e.createRange(en),P,{indentation:De,prefix:this.newLineCharacter})}else this.replaceRange(m,e.createRange(me),P,{prefix:e.tokenToString(Se)+" "})}}},T.prototype.parenthesizeExpression=function(m,N){this.replaceRange(m,e.rangeOfNode(N),e.factory.createParenthesizedExpression(N))},T.prototype.finishClassesWithNodesInsertedAtStart=function(){var m=this;this.classesWithNodesInsertedAtStart.forEach(function(N){var P=N.node,x=N.sourceFile,M=b(P,x),me=M[0],z=M[1];if(me!==void 0&&z!==void 0){var K=ie(P).length===0,I=e.positionsAreOnSameLine(me,z,x);K&&I&&me!==z-1&&m.deleteRange(x,e.createRange(me,z-1)),I&&m.insertText(x,z-1,m.newLineCharacter)}})},T.prototype.finishDeleteDeclarations=function(){for(var m=this,N=new e.Set,P=function(Ae,Oe){x.deletedNodes.some(function(te){return te.sourceFile===Ae&&e.rangeContainsRangeExclusive(te.node,Oe)})||(e.isArray(Oe)?x.deleteRange(Ae,e.rangeOfTypeParameters(Ae,Oe)):g.deleteDeclaration(x,N,Ae,Oe))},x=this,M=0,me=this.deletedNodes;M<me.length;M++){var z=me[M],K=z.sourceFile,I=z.node;P(K,I)}N.forEach(function(Ae){var Oe=Ae.getSourceFile(),te=e.formatting.SmartIndenter.getContainingList(Ae,Oe);if(Ae===e.last(te)){var Se=e.findLastIndex(te,function(be){return!N.has(be)},te.length-2);Se!==-1&&m.deleteRange(Oe,{pos:te[Se].end,end:k(Oe,te[Se+1])})}})},T.prototype.getChanges=function(m){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var N=oe.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,m),P=0,x=this.newFiles;P<x.length;P++){var M=x[P],me=M.oldFile,z=M.fileName,K=M.statements;N.push(oe.newFileChanges(me,z,K,this.newLineCharacter,this.formatContext))}return N},T.prototype.createNewFile=function(m,N,P){this.newFiles.push({oldFile:m,fileName:N,statements:P})},T}();ue.ChangeTracker=ee;function k(T,m){return e.skipTrivia(T.text,V(T,m,{leadingTriviaOption:ye.IncludeAll}),!1,!0)}function b(T,m){var N=e.findChildOfKind(T,18,m),P=e.findChildOfKind(T,19,m);return[N==null?void 0:N.end,P==null?void 0:P.end]}function ie(T){return e.isObjectLiteralExpression(T)?T.properties:T.members}function q(T,m,N,P){return oe.newFileChangesWorker(void 0,m,T,N,P)}ue.getNewFileText=q;var oe;(function(T){function m(K,I,Ae,Oe){return e.mapDefined(e.group(K,function(te){return te.sourceFile.path}),function(te){for(var Se=te[0].sourceFile,be=e.stableSort(te,function(en,fe){return en.range.pos-fe.range.pos||en.range.end-fe.range.end}),Ce=function(en){e.Debug.assert(be[en].range.end<=be[en+1].range.pos,"Changes overlap",function(){return JSON.stringify(be[en].range)+" and "+JSON.stringify(be[en+1].range)})},Be=0;Be<be.length-1;Be++)Ce(Be);var De=e.mapDefined(be,function(en){var fe=e.createTextSpanFromRange(en.range),Ne=x(en,Se,I,Ae,Oe);if(!(fe.length===Ne.length&&e.stringContainsAt(Se.text,Ne,fe.start)))return e.createTextChange(fe,Ne)});return De.length>0?{fileName:Se.fileName,textChanges:De}:void 0})}T.getTextChangesFromChanges=m;function N(K,I,Ae,Oe,te){var Se=P(K,e.getScriptKindFromFileName(I),Ae,Oe,te);return{fileName:I,textChanges:[e.createTextChange(e.createTextSpan(0,0),Se)],isNewFile:!0}}T.newFileChanges=N;function P(K,I,Ae,Oe,te){var Se=Ae.map(function(Be){return Be===4?"":z(Be,K,Oe).text}).join(Oe),be=e.createSourceFile("any file name",Se,99,!0,I),Ce=e.formatting.formatDocument(be,te);return se(Se,Ce)+Oe}T.newFileChangesWorker=P;function x(K,I,Ae,Oe,te){var Se;if(K.kind===_e.Remove)return"";if(K.kind===_e.Text)return K.text;var be=K.options,Ce=be===void 0?{}:be,Be=K.range.pos,De=function(Ne){return me(Ne,I,Be,Ce,Ae,Oe,te)},en=K.kind===_e.ReplaceWithMultipleNodes?K.nodes.map(function(Ne){return e.removeSuffix(De(Ne),Ae)}).join(((Se=K.options)===null||Se===void 0?void 0:Se.joiner)||Ae):De(K.node),fe=Ce.preserveLeadingWhitespace||Ce.indentation!==void 0||e.getLineStartPositionForPosition(Be,I)===Be?en:en.replace(/^\s+/,"");return(Ce.prefix||"")+fe+(!Ce.suffix||e.endsWith(fe,Ce.suffix)?"":Ce.suffix)}function M(K,I){var Ae=K.options,Oe=!Ae.semicolons||Ae.semicolons===e.SemicolonPreference.Ignore,te=Ae.semicolons===e.SemicolonPreference.Remove||Oe&&!e.probablyUsesSemicolons(I);return Mt(Mt({},Ae),{semicolons:te?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}function me(K,I,Ae,Oe,te,Se,be){var Ce=Oe.indentation,Be=Oe.prefix,De=Oe.delta,en=z(K,I,te),fe=en.node,Ne=en.text;be&&be(fe,Ne);var qe=M(Se,I),pe=Ce!==void 0?Ce:e.formatting.SmartIndenter.getIndentation(Ae,I,qe,Be===te||e.getLineStartPositionForPosition(Ae,I)===Ae);De===void 0&&(De=e.formatting.SmartIndenter.shouldIndentChildNode(qe,K)&&qe.indentSize||0);var we={text:Ne,getLineAndCharacterOfPosition:function(Qe){return e.getLineAndCharacterOfPosition(this,Qe)}},pn=e.formatting.formatNodeGivenIndentation(fe,we,I.languageVariant,pe,De,Mt(Mt({},Se),{options:qe}));return se(Ne,pn)}function z(K,I,Ae){var Oe=U(Ae),te=Ae===`
`?1:0;return e.createPrinter({newLine:te,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},Oe).writeNode(4,K,I,Oe),{text:Oe.getText(),node:R(K)}}T.getNonformattedText=z})(oe||(oe={}));function se(T,m){for(var N=m.length-1;N>=0;N--){var P=m[N],x=P.span,M=P.newText;T=""+T.substring(0,x.start)+M+T.substring(e.textSpanEnd(x))}return T}ue.applyChanges=se;function w(T){return e.skipTrivia(T,0)===T.length}function R(T){var m=e.visitEachChild(T,R,e.nullTransformationContext,ne,R),N=e.nodeIsSynthesized(m)?m:Object.create(m);return e.setTextRangePosEnd(N,$(T),W(T)),N}function ne(T,m,N,P,x){var M=e.visitNodes(T,m,N,P,x);if(!M)return M;var me=M===T?e.factory.createNodeArray(M.slice(0)):M;return e.setTextRangePosEnd(me,$(T),W(T)),me}function U(T){var m=0,N=e.createTextWriter(T),P=function(In){In&&Y(In,m)},x=function(In){In&&re(In,m)},M=function(In){In&&Y(In,m)},me=function(In){In&&re(In,m)},z=function(In){In&&Y(In,m)},K=function(In){In&&re(In,m)};function I(In,X){if(X||!w(In)){m=N.getTextPos();for(var rn=0;e.isWhiteSpaceLike(In.charCodeAt(In.length-rn-1));)rn++;m-=rn}}function Ae(In){N.write(In),I(In,!1)}function Oe(In){N.writeComment(In)}function te(In){N.writeKeyword(In),I(In,!1)}function Se(In){N.writeOperator(In),I(In,!1)}function be(In){N.writePunctuation(In),I(In,!1)}function Ce(In){N.writeTrailingSemicolon(In),I(In,!1)}function Be(In){N.writeParameter(In),I(In,!1)}function De(In){N.writeProperty(In),I(In,!1)}function en(In){N.writeSpace(In),I(In,!1)}function fe(In){N.writeStringLiteral(In),I(In,!1)}function Ne(In,X){N.writeSymbol(In,X),I(In,!1)}function qe(In){N.writeLine(In)}function pe(){N.increaseIndent()}function we(){N.decreaseIndent()}function pn(){return N.getText()}function Qe(In){N.rawWrite(In),I(In,!1)}function Re(In){N.writeLiteral(In),I(In,!0)}function He(){return N.getTextPos()}function Ln(){return N.getLine()}function Un(){return N.getColumn()}function fn(){return N.getIndent()}function En(){return N.isAtStartOfLine()}function i(){N.clear(),m=0}return{onBeforeEmitNode:P,onAfterEmitNode:x,onBeforeEmitNodeArray:M,onAfterEmitNodeArray:me,onBeforeEmitToken:z,onAfterEmitToken:K,write:Ae,writeComment:Oe,writeKeyword:te,writeOperator:Se,writePunctuation:be,writeTrailingSemicolon:Ce,writeParameter:Be,writeProperty:De,writeSpace:en,writeStringLiteral:fe,writeSymbol:Ne,writeLine:qe,increaseIndent:pe,decreaseIndent:we,getText:pn,rawWrite:Qe,writeLiteral:Re,getTextPos:He,getLine:Ln,getColumn:Un,getIndent:fn,isAtStartOfLine:En,hasTrailingComment:function(){return N.hasTrailingComment()},hasTrailingWhitespace:function(){return N.hasTrailingWhitespace()},clear:i}}function C(T){for(var m,N=0,P=T.statements;N<P.length;N++){var x=P[N];if(e.isPrologueDirective(x))m=x;else break}var M=0,me=T.text;if(m)return M=m.end,De(),M;var z=e.getShebang(me);z!==void 0&&(M=z.length,De());var K=e.getLeadingCommentRanges(me,M);if(!K)return M;for(var I,Ae,Oe=0,te=K;Oe<te.length;Oe++){var Se=te[Oe];if(Se.kind===3){if(e.isPinnedComment(me,Se.pos)){I={range:Se,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(me,Se.pos,Se.end)){I={range:Se,pinnedOrTripleSlash:!0};continue}if(I){if(I.pinnedOrTripleSlash)break;var be=T.getLineAndCharacterOfPosition(Se.pos).line,Ce=T.getLineAndCharacterOfPosition(I.range.end).line;if(be>=Ce+2)break}if(T.statements.length){Ae===void 0&&(Ae=T.getLineAndCharacterOfPosition(T.statements[0].getStart()).line);var Be=T.getLineAndCharacterOfPosition(Se.end).line;if(Ae<Be+2)break}I={range:Se,pinnedOrTripleSlash:!1}}return I&&(M=I.range.end,De()),M;function De(){if(M<me.length){var en=me.charCodeAt(M);e.isLineBreak(en)&&(M++,M<me.length&&en===13&&me.charCodeAt(M)===10&&M++)}}}function d(T,m){return!e.isInComment(T,m)&&!e.isInString(T,m)&&!e.isInTemplateString(T,m)&&!e.isInJSXText(T,m)}ue.isValidLocationToAddComment=d;function G(T,m){return(e.isPropertySignature(T)||e.isPropertyDeclaration(T))&&e.isClassOrTypeElement(m)&&m.name.kind===160||e.isStatementButNotDeclaration(T)&&e.isStatementButNotDeclaration(m)}var g;(function(T){function m(M,me,z,K){switch(K.kind){case 162:{var I=K.parent;e.isArrowFunction(I)&&I.parameters.length===1&&!e.findChildOfKind(I,20,z)?M.replaceNodeWithText(z,K,"()"):f(M,me,z,K);break}case 264:case 263:var Ae=z.imports.length&&K===e.first(z.imports).parent||K===e.find(z.statements,e.isAnyImportSyntax);p(M,z,K,{leadingTriviaOption:Ae?ye.Exclude:e.hasJSDocNodes(K)?ye.JSDoc:ye.StartLine});break;case 201:var Oe=K.parent,te=Oe.kind===200&&K!==e.last(Oe.elements);te?p(M,z,K):f(M,me,z,K);break;case 252:x(M,me,z,K);break;case 161:f(M,me,z,K);break;case 268:var Se=K.parent;Se.elements.length===1?P(M,z,Se):f(M,me,z,K);break;case 266:P(M,z,K);break;case 26:p(M,z,K,{trailingTriviaOption:O.Exclude});break;case 98:p(M,z,K,{leadingTriviaOption:ye.Exclude});break;case 255:case 254:p(M,z,K,{leadingTriviaOption:e.hasJSDocNodes(K)?ye.JSDoc:ye.StartLine});break;default:K.parent?e.isImportClause(K.parent)&&K.parent.name===K?N(M,z,K.parent):e.isCallExpression(K.parent)&&e.contains(K.parent.arguments,K)?f(M,me,z,K):p(M,z,K):p(M,z,K)}}T.deleteDeclaration=m;function N(M,me,z){if(!z.namedBindings)p(M,me,z.parent);else{var K=z.name.getStart(me),I=e.getTokenAtPosition(me,z.name.end);if(I&&I.kind===27){var Ae=e.skipTrivia(me.text,I.end,!1,!0);M.deleteRange(me,{pos:K,end:Ae})}else p(M,me,z.name)}}function P(M,me,z){if(z.parent.name){var K=e.Debug.checkDefined(e.getTokenAtPosition(me,z.pos-1));M.deleteRange(me,{pos:K.getStart(me),end:z.end})}else{var I=e.getAncestor(z,264);p(M,me,I)}}function x(M,me,z,K){var I=K.parent;if(I.kind===290){M.deleteNodeRange(z,e.findChildOfKind(I,20,z),e.findChildOfKind(I,21,z));return}if(I.declarations.length!==1){f(M,me,z,K);return}var Ae=I.parent;switch(Ae.kind){case 242:case 241:M.replaceNode(z,K,e.factory.createObjectLiteralExpression());break;case 240:p(M,z,I);break;case 235:p(M,z,Ae,{leadingTriviaOption:e.hasJSDocNodes(Ae)?ye.JSDoc:ye.StartLine});break;default:e.Debug.assertNever(Ae)}}})(g||(g={}));function p(T,m,N,P){P===void 0&&(P={leadingTriviaOption:ye.IncludeAll});var x=V(m,N,P),M=E(m,N,P);T.deleteRange(m,{pos:x,end:M})}ue.deleteNode=p;function f(T,m,N,P){var x=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(P,N)),M=e.indexOfNode(x,P);if(e.Debug.assert(M!==-1),x.length===1){p(T,N,P);return}e.Debug.assert(!m.has(P),"Deleting a node twice"),m.add(P),T.deleteRange(N,{pos:k(N,P),end:M===x.length-1?E(N,P,{}):k(N,x[M+1])})}})(o=e.textChanges||(e.textChanges={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $=e.createMultiMap(),Y=new e.Map;function W(k){return e.isArray(k)?e.formatStringFromArgs(e.getLocaleSpecificMessage(k[0]),k.slice(1)):e.getLocaleSpecificMessage(k)}function re(k,b,ie){return A(k,W(ie),b,void 0,void 0)}ue.createCodeFixActionWithoutFixAll=re;function ye(k,b,ie,q,oe,se){return A(k,W(ie),b,q,W(oe),se)}ue.createCodeFixAction=ye;function O(k,b,ie,q,oe,se){return A(k,W(ie),b,q,oe&&W(oe),se)}ue.createCodeFixActionMaybeFixAll=O;function A(k,b,ie,q,oe,se){return{fixName:k,description:b,changes:ie,fixId:q,fixAllDescription:oe,commands:se?[se]:void 0}}function D(k){for(var b=0,ie=k.errorCodes;b<ie.length;b++){var q=ie[b];$.add(String(q),k)}if(k.fixIds)for(var oe=0,se=k.fixIds;oe<se.length;oe++){var w=se[oe];e.Debug.assert(!Y.has(w)),Y.set(w,k)}}ue.registerCodeFix=D;function de(){return e.arrayFrom($.keys())}ue.getSupportedErrorCodes=de;function _e(k,b){for(var ie=k.errorCodes,q=0,oe=0,se=b;oe<se.length;oe++){var w=se[oe];if(e.contains(ie,w.code)&&q++,q>1)break}var R=q<2;return function(ne){var U=ne.fixId,C=ne.fixAllDescription,d=fp(ne,["fixId","fixAllDescription"]);return R?d:Mt(Mt({},d),{fixId:U,fixAllDescription:C})}}function y(k){var b=ee(k),ie=$.get(String(k.errorCode));return e.flatMap(ie,function(q){return e.map(q.getCodeActions(k),_e(q,b))})}ue.getFixes=y;function V(k){return Y.get(e.cast(k.fixId,e.isString)).getAllCodeActions(k)}ue.getAllFixes=V;function Z(k,b){return{changes:k,commands:b}}ue.createCombinedCodeActions=Z;function E(k,b){return{fileName:k,textChanges:b}}ue.createFileTextChanges=E;function H(k,b,ie){var q=[],oe=e.textChanges.ChangeTracker.with(k,function(se){return L(k,b,function(w){return ie(se,w,q)})});return Z(oe,q.length===0?void 0:q)}ue.codeFixAll=H;function L(k,b,ie){for(var q=0,oe=ee(k);q<oe.length;q++){var se=oe[q];e.contains(b,se.code)&&ie(se)}}ue.eachDiagnostic=L;function ee(k){var b=k.program,ie=k.sourceFile,q=k.cancellationToken;return Vr(Vr(Vr([],b.getSemanticDiagnostics(ie,q),!0),b.getSyntacticDiagnostics(ie,q),!0),e.computeSuggestionDiagnostics(ie,b,q),!0)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $=new e.Map;function Y(ye,O){$.set(ye,O)}ue.registerRefactor=Y;function W(ye){return e.arrayFrom(e.flatMapIterator($.values(),function(O){var A;return ye.cancellationToken&&ye.cancellationToken.isCancellationRequested()||!(!((A=O.kinds)===null||A===void 0)&&A.some(function(D){return ue.refactorKindBeginsWith(D,ye.kind)}))?void 0:O.getAvailableActions(ye)}))}ue.getApplicableRefactors=W;function re(ye,O,A){var D=$.get(O);return D&&D.getEditsForAction(ye,A)}ue.getEditsForRefactor=re})(o=e.refactor||(e.refactor={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="addConvertToUnknownForNonOverlappingTypes",Y=[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];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(re){var ye=e.textChanges.ChangeTracker.with(re,function(O){return W(O,re.sourceFile,re.span.start)});return[ue.createCodeFixAction($,ye,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,$,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[$],getAllCodeActions:function(re){return ue.codeFixAll(re,Y,function(ye,O){return W(ye,O.file,O.start)})}});function W(re,ye,O){var A=e.getTokenAtPosition(ye,O),D=e.Debug.checkDefined(e.findAncestor(A,function(_e){return e.isAsExpression(_e)||e.isTypeAssertionExpression(_e)}),"Expected to find an assertion expression"),de=e.isAsExpression(D)?e.factory.createAsExpression(D.expression,e.factory.createKeywordTypeNode(153)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(153),D.expression);re.replaceNode(ye,D.expression,de)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){ue.registerCodeFix({errorCodes:[e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function($){var Y=$.sourceFile,W=e.textChanges.ChangeTracker.with($,function(re){var ye=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);re.insertNodeAtEndOfScope(Y,Y,ye)});return[ue.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",W,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="addMissingAsync",Y=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];ue.registerCodeFix({fixIds:[$],errorCodes:Y,getCodeActions:function(A){var D=A.sourceFile,de=A.errorCode,_e=A.cancellationToken,y=A.program,V=A.span,Z=e.find(y.getDiagnosticsProducingTypeChecker().getDiagnostics(D,_e),O(V,de)),E=Z&&Z.relatedInformation&&e.find(Z.relatedInformation,function(ee){return ee.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),H=ye(D,E);if(H){var L=function(ee){return e.textChanges.ChangeTracker.with(A,ee)};return[W(A,H,L)]}},getAllCodeActions:function(A){var D=A.sourceFile,de=new e.Set;return ue.codeFixAll(A,Y,function(_e,y){var V=y.relatedInformation&&e.find(y.relatedInformation,function(H){return H.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),Z=ye(D,V);if(Z){var E=function(H){return H(_e),[]};return W(A,Z,E,de)}})}});function W(A,D,de,_e){var y=de(function(V){return re(V,A.sourceFile,D,_e)});return ue.createCodeFixAction($,y,e.Diagnostics.Add_async_modifier_to_containing_function,$,e.Diagnostics.Add_all_missing_async_modifiers)}function re(A,D,de,_e){if(!(_e&&_e.has(e.getNodeId(de)))){_e==null||_e.add(e.getNodeId(de));var y=e.factory.updateModifiers(e.getSynthesizedDeepClone(de,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(e.getSyntacticModifierFlags(de)|256)));A.replaceNode(D,de,y)}}function ye(A,D){if(D){var de=e.getTokenAtPosition(A,D.start),_e=e.findAncestor(de,function(y){return y.getStart(A)<D.start||y.getEnd()>e.textSpanEnd(D)?"quit":(e.isArrowFunction(y)||e.isMethodDeclaration(y)||e.isFunctionExpression(y)||e.isFunctionDeclaration(y))&&e.textSpansEqual(D,e.createTextSpanFromNode(y,A))});return _e}}function O(A,D){return function(de){var _e=de.start,y=de.length,V=de.relatedInformation,Z=de.code;return e.isNumber(_e)&&e.isNumber(y)&&e.textSpansEqual({start:_e,length:y},A)&&Z===D&&!!V&&e.some(V,function(E){return E.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})}}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="addMissingAwait",Y=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,W=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],re=Vr([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Y],W,!0);ue.registerCodeFix({fixIds:[$],errorCodes:re,getCodeActions:function(H){var L=H.sourceFile,ee=H.errorCode,k=H.span,b=H.cancellationToken,ie=H.program,q=D(L,ee,k,b,ie);if(q){var oe=H.program.getTypeChecker(),se=function(w){return e.textChanges.ChangeTracker.with(H,w)};return e.compact([ye(H,q,ee,oe,se),O(H,q,ee,oe,se)])}},getAllCodeActions:function(H){var L=H.sourceFile,ee=H.program,k=H.cancellationToken,b=H.program.getTypeChecker(),ie=new e.Set;return ue.codeFixAll(H,re,function(q,oe){var se=D(L,oe.code,oe,k,ee);if(se){var w=function(R){return R(q),[]};return ye(H,se,oe.code,b,w,ie)||O(H,se,oe.code,b,w,ie)}})}});function ye(H,L,ee,k,b,ie){var q=H.sourceFile,oe=H.program,se=H.cancellationToken,w=de(L,q,se,oe,k);if(w){var R=b(function(ne){e.forEach(w.initializers,function(U){var C=U.expression;return Z(ne,ee,q,k,C,ie)}),ie&&w.needsSecondPassForFixAll&&Z(ne,ee,q,k,L,ie)});return ue.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",R,w.initializers.length===1?[e.Diagnostics.Add_await_to_initializer_for_0,w.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function O(H,L,ee,k,b,ie){var q=b(function(oe){return Z(oe,ee,H.sourceFile,k,L,ie)});return ue.createCodeFixAction($,q,e.Diagnostics.Add_await,$,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function A(H,L,ee,k,b){var ie=b.getDiagnosticsProducingTypeChecker(),q=ie.getDiagnostics(H,k);return e.some(q,function(oe){var se=oe.start,w=oe.length,R=oe.relatedInformation,ne=oe.code;return e.isNumber(se)&&e.isNumber(w)&&e.textSpansEqual({start:se,length:w},ee)&&ne===L&&!!R&&e.some(R,function(U){return U.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}function D(H,L,ee,k,b){var ie=e.getTokenAtPosition(H,ee.start),q=e.findAncestor(ie,function(oe){return oe.getStart(H)<ee.start||oe.getEnd()>e.textSpanEnd(ee)?"quit":e.isExpression(oe)&&e.textSpansEqual(ee,e.createTextSpanFromNode(oe,H))});return q&&A(H,L,ee,k,b)&&V(q)?q:void 0}function de(H,L,ee,k,b){var ie=_e(H,b);if(ie){for(var q=ie.isCompleteFix,oe,se=function(U){var C=b.getSymbolAtLocation(U);if(!C)return"continue";var d=e.tryCast(C.valueDeclaration,e.isVariableDeclaration),G=d&&e.tryCast(d.name,e.isIdentifier),g=e.getAncestor(d,235);if(!d||!g||d.type||!d.initializer||g.getSourceFile()!==L||e.hasSyntacticModifier(g,1)||!G||!V(d.initializer))return q=!1,"continue";var p=k.getSemanticDiagnostics(L,ee),f=e.FindAllReferences.Core.eachSymbolReferenceInFile(G,b,L,function(T){return U!==T&&!y(T,p,L,b)});if(f)return q=!1,"continue";(oe||(oe=[])).push({expression:d.initializer,declarationSymbol:C})},w=0,R=ie.identifiers;w<R.length;w++){var ne=R[w];se(ne)}return oe&&{initializers:oe,needsSecondPassForFixAll:!q}}}function _e(H,L){if(e.isPropertyAccessExpression(H.parent)&&e.isIdentifier(H.parent.expression))return{identifiers:[H.parent.expression],isCompleteFix:!0};if(e.isIdentifier(H))return{identifiers:[H],isCompleteFix:!0};if(e.isBinaryExpression(H)){for(var ee=void 0,k=!0,b=0,ie=[H.left,H.right];b<ie.length;b++){var q=ie[b],oe=L.getTypeAtLocation(q);if(L.getPromisedTypeOfPromise(oe)){if(!e.isIdentifier(q)){k=!1;continue}(ee||(ee=[])).push(q)}}return ee&&{identifiers:ee,isCompleteFix:k}}}function y(H,L,ee,k){var b=e.isPropertyAccessExpression(H.parent)?H.parent.name:e.isBinaryExpression(H.parent)?H.parent:H,ie=e.find(L,function(q){return q.start===b.getStart(ee)&&q.start+q.length===b.getEnd()});return ie&&e.contains(re,ie.code)||k.getTypeAtLocation(b).flags&1}function V(H){return H.kind&32768||!!e.findAncestor(H,function(L){return L.parent&&e.isArrowFunction(L.parent)&&L.parent.body===L||e.isBlock(L)&&(L.parent.kind===254||L.parent.kind===211||L.parent.kind===212||L.parent.kind===167)})}function Z(H,L,ee,k,b,ie){if(e.isBinaryExpression(b))for(var q=0,oe=[b.left,b.right];q<oe.length;q++){var se=oe[q];if(ie&&e.isIdentifier(se)){var w=k.getSymbolAtLocation(se);if(w&&ie.has(e.getSymbolId(w)))continue}var R=k.getTypeAtLocation(se),ne=k.getPromisedTypeOfPromise(R)?e.factory.createAwaitExpression(se):se;H.replaceNode(ee,se,ne)}else if(L===Y&&e.isPropertyAccessExpression(b.parent)){if(ie&&e.isIdentifier(b.parent.expression)){var w=k.getSymbolAtLocation(b.parent.expression);if(w&&ie.has(e.getSymbolId(w)))return}H.replaceNode(ee,b.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(b.parent.expression))),E(H,b.parent.expression,ee)}else if(e.contains(W,L)&&e.isCallOrNewExpression(b.parent)){if(ie&&e.isIdentifier(b)){var w=k.getSymbolAtLocation(b);if(w&&ie.has(e.getSymbolId(w)))return}H.replaceNode(ee,b,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(b))),E(H,b,ee)}else{if(ie&&e.isVariableDeclaration(b.parent)&&e.isIdentifier(b.parent.name)){var w=k.getSymbolAtLocation(b.parent.name);if(w&&!e.tryAddToSet(ie,e.getSymbolId(w)))return}H.replaceNode(ee,b,e.factory.createAwaitExpression(b))}}function E(H,L,ee){var k=e.findPrecedingToken(L.pos,ee);k&&e.positionIsASICandidate(k.end,k.parent,ee)&&H.insertText(ee,L.getStart(ee),";")}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="addMissingConst",Y=[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];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(de){var _e=e.textChanges.ChangeTracker.with(de,function(y){return W(y,de.sourceFile,de.span.start,de.program)});if(_e.length>0)return[ue.createCodeFixAction($,_e,e.Diagnostics.Add_const_to_unresolved_variable,$,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[$],getAllCodeActions:function(de){var _e=new e.Set;return ue.codeFixAll(de,Y,function(y,V){return W(y,V.file,V.start,de.program,_e)})}});function W(de,_e,y,V,Z){var E=e.getTokenAtPosition(_e,y),H=e.findAncestor(E,function(ie){return e.isForInOrOfStatement(ie.parent)?ie.parent.initializer===ie:ye(ie)?!1:"quit"});if(H)return re(de,H,_e,Z);var L=E.parent;if(e.isBinaryExpression(L)&&L.operatorToken.kind===63&&e.isExpressionStatement(L.parent))return re(de,E,_e,Z);if(e.isArrayLiteralExpression(L)){var ee=V.getTypeChecker();return e.every(L.elements,function(ie){return O(ie,ee)})?re(de,L,_e,Z):void 0}var k=e.findAncestor(E,function(ie){return e.isExpressionStatement(ie.parent)?!0:A(ie)?!1:"quit"});if(k){var b=V.getTypeChecker();return D(k,b)?re(de,k,_e,Z):void 0}}function re(de,_e,y,V){(!V||e.tryAddToSet(V,_e))&&de.insertModifierBefore(y,85,_e)}function ye(de){switch(de.kind){case 79:case 202:case 203:case 291:case 292:return!0;default:return!1}}function O(de,_e){var y=e.isIdentifier(de)?de:e.isAssignmentExpression(de,!0)&&e.isIdentifier(de.left)?de.left:void 0;return!!y&&!_e.getSymbolAtLocation(y)}function A(de){switch(de.kind){case 79:case 219:case 27:return!0;default:return!1}}function D(de,_e){return e.isBinaryExpression(de)?de.operatorToken.kind===27?e.every([de.left,de.right],function(y){return D(y,_e)}):de.operatorToken.kind===63&&e.isIdentifier(de.left)&&!_e.getSymbolAtLocation(de.left):!1}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="addMissingDeclareProperty",Y=[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];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(re){var ye=e.textChanges.ChangeTracker.with(re,function(O){return W(O,re.sourceFile,re.span.start)});if(ye.length>0)return[ue.createCodeFixAction($,ye,e.Diagnostics.Prefix_with_declare,$,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[$],getAllCodeActions:function(re){var ye=new e.Set;return ue.codeFixAll(re,Y,function(O,A){return W(O,A.file,A.start,ye)})}});function W(re,ye,O,A){var D=e.getTokenAtPosition(ye,O);if(e.isIdentifier(D)){var de=D.parent;de.kind===165&&(!A||e.tryAddToSet(A,de))&&re.insertModifierBefore(ye,134,de)}}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="addMissingInvocationForDecorator",Y=[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];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(re){var ye=e.textChanges.ChangeTracker.with(re,function(O){return W(O,re.sourceFile,re.span.start)});return[ue.createCodeFixAction($,ye,e.Diagnostics.Call_decorator_expression,$,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[$],getAllCodeActions:function(re){return ue.codeFixAll(re,Y,function(ye,O){return W(ye,O.file,O.start)})}});function W(re,ye,O){var A=e.getTokenAtPosition(ye,O),D=e.findAncestor(A,e.isDecorator);e.Debug.assert(!!D,"Expected position to be owned by a decorator.");var de=e.factory.createCallExpression(D.expression,void 0,void 0);re.replaceNode(ye,D.expression,de)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="addNameToNamelessParameter",Y=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(re){var ye=e.textChanges.ChangeTracker.with(re,function(O){return W(O,re.sourceFile,re.span.start)});return[ue.createCodeFixAction($,ye,e.Diagnostics.Add_parameter_name,$,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[$],getAllCodeActions:function(re){return ue.codeFixAll(re,Y,function(ye,O){return W(ye,O.file,O.start)})}});function W(re,ye,O){var A=e.getTokenAtPosition(ye,O);if(!e.isIdentifier(A))return e.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+e.Debug.formatSyntaxKind(A.kind));var D=A.parent;if(!e.isParameter(D))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(A.kind));var de=D.parent.parameters.indexOf(D);e.Debug.assert(!D.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(de>-1,"Parameter not found in parent parameter list.");var _e=e.factory.createParameterDeclaration(void 0,D.modifiers,D.dotDotDotToken,"arg"+de,D.questionToken,e.factory.createTypeReferenceNode(A,void 0),D.initializer);re.replaceNode(ye,A,_e)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="annotateWithTypeFromJSDoc",Y=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(L){var ee=W(L.sourceFile,L.span.start);if(ee){var k=e.textChanges.ChangeTracker.with(L,function(b){return O(b,L.sourceFile,ee)});return[ue.createCodeFixAction($,k,e.Diagnostics.Annotate_with_type_from_JSDoc,$,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[$],getAllCodeActions:function(L){return ue.codeFixAll(L,Y,function(ee,k){var b=W(k.file,k.start);b&&O(ee,k.file,b)})}});function W(L,ee){var k=e.getTokenAtPosition(L,ee);return e.tryCast(e.isParameter(k.parent)?k.parent.parent:k.parent,re)}function re(L){return A(L)&&ye(L)}ue.parameterShouldGetTypeFromJSDoc=re;function ye(L){return e.isFunctionLikeDeclaration(L)?L.parameters.some(ye)||!L.type&&!!e.getJSDocReturnType(L):!L.type&&!!e.getJSDocType(L)}function O(L,ee,k){if(e.isFunctionLikeDeclaration(k)&&(e.getJSDocReturnType(k)||k.parameters.some(function(U){return!!e.getJSDocType(U)}))){if(!k.typeParameters){var b=e.getJSDocTypeParameterDeclarations(k);b.length&&L.insertTypeParameters(ee,k,b)}var ie=e.isArrowFunction(k)&&!e.findChildOfKind(k,20,ee);ie&&L.insertNodeBefore(ee,e.first(k.parameters),e.factory.createToken(20));for(var q=0,oe=k.parameters;q<oe.length;q++){var se=oe[q];if(!se.type){var w=e.getJSDocType(se);w&&L.tryInsertTypeAnnotation(ee,se,D(w))}}if(ie&&L.insertNodeAfter(ee,e.last(k.parameters),e.factory.createToken(21)),!k.type){var R=e.getJSDocReturnType(k);R&&L.tryInsertTypeAnnotation(ee,k,D(R))}}else{var ne=e.Debug.checkDefined(e.getJSDocType(k),"A JSDocType for this declaration should exist");e.Debug.assert(!k.type,"The JSDocType decl should have a type"),L.tryInsertTypeAnnotation(ee,k,D(ne))}}function A(L){return e.isFunctionLikeDeclaration(L)||L.kind===252||L.kind===164||L.kind===165}function D(L){switch(L.kind){case 307:case 308:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 311:return de(L);case 310:return D(L.type);case 309:return _e(L);case 313:return y(L);case 312:return V(L);case 176:return E(L);default:var ee=e.visitEachChild(L,D,e.nullTransformationContext);return e.setEmitFlags(ee,1),ee}}function de(L){return e.factory.createUnionTypeNode([e.visitNode(L.type,D),e.factory.createTypeReferenceNode("undefined",e.emptyArray)])}function _e(L){return e.factory.createUnionTypeNode([e.visitNode(L.type,D),e.factory.createTypeReferenceNode("null",e.emptyArray)])}function y(L){return e.factory.createArrayTypeNode(e.visitNode(L.type,D))}function V(L){var ee;return e.factory.createFunctionTypeNode(e.emptyArray,L.parameters.map(Z),(ee=L.type)!==null&&ee!==void 0?ee:e.factory.createKeywordTypeNode(129))}function Z(L){var ee=L.parent.parameters.indexOf(L),k=L.type.kind===313&&ee===L.parent.parameters.length-1,b=L.name||(k?"rest":"arg"+ee),ie=k?e.factory.createToken(25):L.dotDotDotToken;return e.factory.createParameterDeclaration(L.decorators,L.modifiers,ie,b,L.questionToken,e.visitNode(L.type,D),L.initializer)}function E(L){var ee=L.typeName,k=L.typeArguments;if(e.isIdentifier(L.typeName)){if(e.isJSDocIndexSignature(L))return H(L);var b=L.typeName.text;switch(L.typeName.text){case"String":case"Boolean":case"Object":case"Number":b=b.toLowerCase();break;case"array":case"date":case"promise":b=b[0].toUpperCase()+b.slice(1);break}ee=e.factory.createIdentifier(b),(b==="Array"||b==="Promise")&&!L.typeArguments?k=e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)]):k=e.visitNodes(L.typeArguments,D)}return e.factory.createTypeReferenceNode(ee,k)}function H(L){var ee=e.factory.createParameterDeclaration(void 0,void 0,void 0,L.typeArguments[0].kind===145?"n":"s",void 0,e.factory.createTypeReferenceNode(L.typeArguments[0].kind===145?"number":"string",[]),void 0),k=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[ee],L.typeArguments[1])]);return e.setEmitFlags(k,1),k}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="convertFunctionToEs6Class",Y=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(A){var D=e.textChanges.ChangeTracker.with(A,function(de){return W(de,A.sourceFile,A.span.start,A.program.getTypeChecker(),A.preferences,A.program.getCompilerOptions())});return[ue.createCodeFixAction($,D,e.Diagnostics.Convert_function_to_an_ES2015_class,$,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[$],getAllCodeActions:function(A){return ue.codeFixAll(A,Y,function(D,de){return W(D,de.file,de.start,A.program.getTypeChecker(),A.preferences,A.program.getCompilerOptions())})}});function W(A,D,de,_e,y,V){var Z=_e.getSymbolAtLocation(e.getTokenAtPosition(D,de));if(!Z||!Z.valueDeclaration||!(Z.flags&19))return;var E=Z.valueDeclaration;if(e.isFunctionDeclaration(E))A.replaceNode(D,E,b(E));else if(e.isVariableDeclaration(E)){var H=k(E);if(!H)return;var L=E.parent.parent;e.isVariableDeclarationList(E.parent)&&E.parent.declarations.length>1?(A.delete(D,E),A.insertNodeAfter(D,L,H)):A.replaceNode(D,L,H)}function ee(ie){var q=[];return ie.members&&ie.members.forEach(function(w,R){if(R==="constructor"&&w.valueDeclaration){A.delete(D,w.valueDeclaration.parent);return}var ne=se(w,void 0);ne&&q.push.apply(q,ne)}),ie.exports&&ie.exports.forEach(function(w){if(w.name==="prototype"&&w.declarations){var R=w.declarations[0];if(w.declarations.length===1&&e.isPropertyAccessExpression(R)&&e.isBinaryExpression(R.parent)&&R.parent.operatorToken.kind===63&&e.isObjectLiteralExpression(R.parent.right)){var ne=R.parent.right,U=se(ne.symbol,void 0);U&&q.push.apply(q,U)}}else{var U=se(w,[e.factory.createToken(124)]);U&&q.push.apply(q,U)}}),q;function oe(w,R){return e.isAccessExpression(w)?e.isPropertyAccessExpression(w)&&ye(w)?!0:e.isFunctionLike(R):e.every(w.properties,function(ne){return!!(e.isMethodDeclaration(ne)||e.isGetOrSetAccessorDeclaration(ne)||e.isPropertyAssignment(ne)&&e.isFunctionExpression(ne.initializer)&&ne.name||ye(ne))})}function se(w,R){var ne=[];if(!(w.flags&8192)&&!(w.flags&4096))return ne;var U=w.valueDeclaration,C=U.parent,d=C.right;if(!oe(U,d))return ne;var G=C.parent&&C.parent.kind===236?C.parent:C;if(A.delete(D,G),!d)return ne.push(e.factory.createPropertyDeclaration([],R,w.name,void 0,void 0,void 0)),ne;if(e.isAccessExpression(U)&&(e.isFunctionExpression(d)||e.isArrowFunction(d))){var g=e.getQuotePreference(D,y),p=O(U,V,g);return p?T(ne,d,p):ne}else{if(e.isObjectLiteralExpression(d))return e.flatMap(d.properties,function(P){return e.isMethodDeclaration(P)||e.isGetOrSetAccessorDeclaration(P)?ne.concat(P):e.isPropertyAssignment(P)&&e.isFunctionExpression(P.initializer)?T(ne,P.initializer,P.name):ye(P)?ne:[]});if(e.isSourceFileJS(D)||!e.isPropertyAccessExpression(U))return ne;var f=e.factory.createPropertyDeclaration(void 0,R,U.name,void 0,void 0,d);return e.copyLeadingComments(C.parent,f,D),ne.push(f),ne}function T(P,x,M){return e.isFunctionExpression(x)?m(P,x,M):N(P,x,M)}function m(P,x,M){var me=e.concatenate(R,re(x,130)),z=e.factory.createMethodDeclaration(void 0,me,void 0,M,void 0,void 0,x.parameters,void 0,x.body);return e.copyLeadingComments(C,z,D),P.concat(z)}function N(P,x,M){var me=x.body,z;me.kind===233?z=me:z=e.factory.createBlock([e.factory.createReturnStatement(me)]);var K=e.concatenate(R,re(x,130)),I=e.factory.createMethodDeclaration(void 0,K,void 0,M,void 0,void 0,x.parameters,void 0,z);return e.copyLeadingComments(C,I,D),P.concat(I)}}}function k(ie){var q=ie.initializer;if(!(!q||!e.isFunctionExpression(q)||!e.isIdentifier(ie.name))){var oe=ee(ie.symbol);q.body&&oe.unshift(e.factory.createConstructorDeclaration(void 0,void 0,q.parameters,q.body));var se=re(ie.parent.parent,93),w=e.factory.createClassDeclaration(void 0,se,ie.name,void 0,void 0,oe);return w}}function b(ie){var q=ee(Z);ie.body&&q.unshift(e.factory.createConstructorDeclaration(void 0,void 0,ie.parameters,ie.body));var oe=re(ie,93),se=e.factory.createClassDeclaration(void 0,oe,ie.name,void 0,void 0,q);return se}}function re(A,D){return e.filter(A.modifiers,function(de){return de.kind===D})}function ye(A){return A.name?!!(e.isIdentifier(A.name)&&A.name.text==="constructor"):!1}function O(A,D,de){if(e.isPropertyAccessExpression(A))return A.name;var _e=A.argumentExpression;if(e.isNumericLiteral(_e))return _e;if(e.isStringLiteralLike(_e))return e.isIdentifierText(_e.text,D.target)?e.factory.createIdentifier(_e.text):e.isNoSubstitutionTemplateLiteral(_e)?e.factory.createStringLiteral(_e.text,de===0):_e}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="convertToAsyncFunction",Y=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],W=!0;ue.registerCodeFix({errorCodes:Y,getCodeActions:function(f){W=!0;var T=e.textChanges.ChangeTracker.with(f,function(m){return ye(m,f.sourceFile,f.span.start,f.program.getTypeChecker())});return W?[ue.createCodeFixAction($,T,e.Diagnostics.Convert_to_async_function,$,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[$],getAllCodeActions:function(f){return ue.codeFixAll(f,Y,function(T,m){return ye(T,m.file,m.start,f.program.getTypeChecker())})}});var re;(function(f){f[f.Identifier=0]="Identifier",f[f.BindingPattern=1]="BindingPattern"})(re||(re={}));function ye(f,T,m,N){var P=e.getTokenAtPosition(T,m),x;if(e.isIdentifier(P)&&e.isVariableDeclaration(P.parent)&&P.parent.initializer&&e.isFunctionLikeDeclaration(P.parent.initializer)?x=P.parent.initializer:x=e.tryCast(e.getContainingFunction(e.getTokenAtPosition(T,m)),e.canBeConvertedToAsync),!!x){var M=new e.Map,me=e.isInJSFile(x),z=A(x,N),K=_e(x,N,M);if(e.returnsPromise(K,N)){var I=K.body&&e.isBlock(K.body)?O(K.body,N):e.emptyArray,Ae={checker:N,synthNamesMap:M,setOfExpressionsToReturn:z,isInJSFile:me};if(I.length){var Oe=x.modifiers?x.modifiers.end:x.decorators?e.skipTrivia(T.text,x.decorators.end):x.getStart(T),te=x.modifiers?{prefix:" "}:{suffix:" "};f.insertModifierAt(T,Oe,130,te);for(var Se=function(De){e.forEachChild(De,function en(fe){if(e.isCallExpression(fe)){var Ne=Z(fe,Ae);f.replaceNodeWithNodes(T,De,Ne)}else e.isFunctionLike(fe)||e.forEachChild(fe,en)})},be=0,Ce=I;be<Ce.length;be++){var Be=Ce[be];Se(Be)}}}}}function O(f,T){var m=[];return e.forEachReturnStatement(f,function(N){e.isReturnStatementWithFixablePromiseHandler(N,T)&&m.push(N)}),m}function A(f,T){if(!f.body)return new e.Set;var m=new e.Set;return e.forEachChild(f.body,function N(P){D(P,T,"then")?(m.add(e.getNodeId(P)),e.forEach(P.arguments,N)):D(P,T,"catch")?(m.add(e.getNodeId(P)),e.forEachChild(P,N)):de(P,T)?m.add(e.getNodeId(P)):e.forEachChild(P,N)}),m}function D(f,T,m){if(!e.isCallExpression(f))return!1;var N=e.hasPropertyAccessExpressionWithName(f,m),P=N&&T.getTypeAtLocation(f);return!!(P&&T.getPromisedTypeOfPromise(P))}function de(f,T){return e.isExpression(f)?!!T.getPromisedTypeOfPromise(T.getTypeAtLocation(f)):!1}function _e(f,T,m){var N=new e.Map,P=e.createMultiMap();return e.forEachChild(f,function x(M){if(!e.isIdentifier(M)){e.forEachChild(M,x);return}var me=T.getSymbolAtLocation(M);if(me){var z=T.getTypeAtLocation(M),K=oe(z,T),I=e.getSymbolId(me).toString();if(K&&!e.isParameter(M.parent)&&!e.isFunctionLikeDeclaration(M.parent)&&!m.has(I)){var Ae=e.firstOrUndefined(K.parameters),Oe=(Ae==null?void 0:Ae.valueDeclaration)&&e.isParameter(Ae.valueDeclaration)&&e.tryCast(Ae.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),te=y(Oe,P);m.set(I,te),P.add(Oe.text,me)}else if(M.parent&&(e.isParameter(M.parent)||e.isVariableDeclaration(M.parent)||e.isBindingElement(M.parent))){var Se=M.text,be=P.get(Se);if(be&&be.some(function(De){return De!==me})){var Ce=y(M,P);N.set(I,Ce.identifier),m.set(I,Ce),P.add(Se,me)}else{var Be=e.getSynthesizedDeepClone(M);m.set(I,C(Be)),P.add(Se,me)}}}}),e.getSynthesizedDeepCloneWithReplacements(f,!0,function(x){if(e.isBindingElement(x)&&e.isIdentifier(x.name)&&e.isObjectBindingPattern(x.parent)){var M=T.getSymbolAtLocation(x.name),me=M&&N.get(String(e.getSymbolId(M)));if(me&&me.text!==(x.name||x.propertyName).getText())return e.factory.createBindingElement(x.dotDotDotToken,x.propertyName||x.name,me,x.initializer)}else if(e.isIdentifier(x)){var M=T.getSymbolAtLocation(x),me=M&&N.get(String(e.getSymbolId(M)));if(me)return e.factory.createIdentifier(me.text)}})}function y(f,T){var m=(T.get(f.text)||e.emptyArray).length,N=m===0?f:e.factory.createIdentifier(f.text+"_"+m);return C(N)}function V(){return W=!1,e.emptyArray}function Z(f,T,m){if(D(f,T.checker,"then"))return f.arguments.length===0?V():L(f,T,m);if(D(f,T.checker,"catch"))return E(f,T,m);if(e.isPropertyAccessExpression(f))return Z(f.expression,T,m);var N=T.checker.getTypeAtLocation(f);return N&&T.checker.getPromisedTypeOfPromise(N)?(e.Debug.assertNode(f.original.parent,e.isPropertyAccessExpression),ee(f,T,m)):V()}function E(f,T,m){var N=e.singleOrUndefined(f.arguments),P=N?R(N,T):void 0,x;m&&!p(f,T)&&(G(m)?(x=m,T.synthNamesMap.forEach(function(en,fe){if(en.identifier.text===m.identifier.text){var Ne=H(m);T.synthNamesMap.set(fe,Ne)}})):x=C(e.factory.createUniqueName("result",16),m.types),x.hasBeenDeclared=!0);var M=e.factory.createBlock(Z(f.expression,T,x)),me=N?ie(N,x,P,f,T):e.emptyArray,z=P?G(P)?P.identifier.text:P.bindingPattern:"e",K=e.factory.createVariableDeclaration(z),I=e.factory.createCatchClause(K,e.factory.createBlock(me)),Ae,Oe;if(x&&!p(f,T)){Oe=e.getSynthesizedDeepClone(x.identifier);var te=x.types,Se=T.checker.getUnionType(te,2),be=T.isInJSFile?void 0:T.checker.typeToTypeNode(Se,void 0,void 0),Ce=[e.factory.createVariableDeclaration(Oe,void 0,be)];Ae=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(Ce,1))}var Be=e.factory.createTryStatement(M,I,void 0),De=m&&Oe&&g(m)&&e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(m.bindingPattern),void 0,void 0,Oe)],2));return e.compact([Ae,Be,De])}function H(f){var T=e.factory.createUniqueName(f.identifier.text,16);return C(T)}function L(f,T,m){var N=f.arguments,P=N[0],x=N[1],M=R(P,T),me=ie(P,m,M,f,T);if(x){var z=R(x,T),K=e.factory.createBlock(Z(f.expression,T,M).concat(me)),I=ie(x,m,z,f,T),Ae=z?G(z)?z.identifier.text:z.bindingPattern:"e",Oe=e.factory.createVariableDeclaration(Ae),te=e.factory.createCatchClause(Oe,e.factory.createBlock(I));return[e.factory.createTryStatement(K,te,void 0)]}return Z(f.expression,T,M).concat(me)}function ee(f,T,m){return p(f,T)?[e.factory.createReturnStatement(e.getSynthesizedDeepClone(f))]:k(m,e.factory.createAwaitExpression(f),void 0)}function k(f,T,m){return!f||ne(f)?[e.factory.createExpressionStatement(T)]:G(f)&&f.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(f.identifier),T))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(U(f)),void 0,m,T)],2))]}function b(f,T){if(T&&f){var m=e.factory.createUniqueName("result",16);return Vr(Vr([],k(C(m),f,T),!0),[e.factory.createReturnStatement(m)],!1)}return[e.factory.createReturnStatement(f)]}function ie(f,T,m,N,P){var x,M,me,z,K;switch(f.kind){case 104:break;case 204:case 79:if(!m)break;var I=e.factory.createCallExpression(e.getSynthesizedDeepClone(f),void 0,G(m)?[m.identifier]:[]);if(p(N,P))return b(I,(x=N.typeArguments)===null||x===void 0?void 0:x[0]);var Ae=P.checker.getTypeAtLocation(f),Oe=P.checker.getSignaturesOfType(Ae,0);if(!Oe.length)return V();var te=Oe[0].getReturnType(),Se=k(T,e.factory.createAwaitExpression(I),(M=N.typeArguments)===null||M===void 0?void 0:M[0]);return T&&T.types.push(te),Se;case 211:case 212:{var be=f.body,Ce=(me=oe(P.checker.getTypeAtLocation(f),P.checker))===null||me===void 0?void 0:me.getReturnType();if(e.isBlock(be)){for(var Be=[],De=!1,en=0,fe=be.statements;en<fe.length;en++){var Ne=fe[en];if(e.isReturnStatement(Ne))if(De=!0,e.isReturnStatementWithFixablePromiseHandler(Ne,P.checker))Be=Be.concat(w(P,[Ne],T));else{var qe=Ce&&Ne.expression?q(P.checker,Ce,Ne.expression):Ne.expression;Be.push.apply(Be,b(qe,(z=N.typeArguments)===null||z===void 0?void 0:z[0]))}else Be.push(Ne)}return p(N,P)?Be.map(function(Qe){return e.getSynthesizedDeepClone(Qe)}):se(Be,T,P,De)}else{var pe=e.isFixablePromiseHandler(be,P.checker)?[e.factory.createReturnStatement(be)]:e.emptyArray,we=w(P,pe,T);if(we.length>0)return we;if(Ce){var qe=q(P.checker,Ce,be);if(p(N,P))return b(qe,(K=N.typeArguments)===null||K===void 0?void 0:K[0]);var pn=k(T,qe,void 0);return T&&T.types.push(Ce),pn}else return V()}}default:return V()}return e.emptyArray}function q(f,T,m){var N=e.getSynthesizedDeepClone(m);return f.getPromisedTypeOfPromise(T)?e.factory.createAwaitExpression(N):N}function oe(f,T){var m=T.getSignaturesOfType(f,0);return e.lastOrUndefined(m)}function se(f,T,m,N){for(var P=[],x=0,M=f;x<M.length;x++){var me=M[x];if(e.isReturnStatement(me)){if(me.expression){var z=de(me.expression,m.checker)?e.factory.createAwaitExpression(me.expression):me.expression;T===void 0?P.push(e.factory.createExpressionStatement(z)):P.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(U(T),void 0,void 0,z)],2)))}}else P.push(e.getSynthesizedDeepClone(me))}return!N&&T!==void 0&&P.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(U(T),void 0,void 0,e.factory.createIdentifier("undefined"))],2))),P}function w(f,T,m){for(var N=[],P=0,x=T;P<x.length;P++){var M=x[P];e.forEachChild(M,function me(z){if(e.isCallExpression(z)){var K=Z(z,f,m);if(N=N.concat(K),N.length>0)return}else e.isFunctionLike(z)||e.forEachChild(z,me)})}return N}function R(f,T){var m=[],N;if(e.isFunctionLikeDeclaration(f)){if(f.parameters.length>0){var P=f.parameters[0].name;N=x(P)}}else e.isIdentifier(f)?N=M(f):e.isPropertyAccessExpression(f)&&e.isIdentifier(f.name)&&(N=M(f.name));if(!N||"identifier"in N&&N.identifier.text==="undefined")return;return N;function x(K){if(e.isIdentifier(K))return M(K);var I=e.flatMap(K.elements,function(Ae){return e.isOmittedExpression(Ae)?[]:[x(Ae.name)]});return d(K,I)}function M(K){var I=z(K),Ae=me(I);if(!Ae)return C(K,m);var Oe=T.synthNamesMap.get(e.getSymbolId(Ae).toString());return Oe||C(K,m)}function me(K){return K.symbol?K.symbol:T.checker.getSymbolAtLocation(K)}function z(K){return K.original?K.original:K}}function ne(f){return f?G(f)?!f.identifier.text:e.every(f.elements,ne):!0}function U(f){return G(f)?f.identifier:f.bindingPattern}function C(f,T){return T===void 0&&(T=[]),{kind:0,identifier:f,types:T,hasBeenDeclared:!1}}function d(f,T,m){return T===void 0&&(T=e.emptyArray),m===void 0&&(m=[]),{kind:1,bindingPattern:f,elements:T,types:m}}function G(f){return f.kind===0}function g(f){return f.kind===1}function p(f,T){return!!f.original&&T.setOfExpressionsToReturn.has(e.getNodeId(f.original))}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){ue.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(g){var p=g.sourceFile,f=g.program,T=g.preferences,m=e.textChanges.ChangeTracker.with(g,function(N){var P=Y(p,f.getTypeChecker(),N,f.getCompilerOptions().target,e.getQuotePreference(p,T));if(P)for(var x=0,M=f.getSourceFiles();x<M.length;x++){var me=M[x];$(me,p,N,e.getQuotePreference(me,T))}});return[ue.createCodeFixActionWithoutFixAll("convertToEs6Module",m,e.Diagnostics.Convert_to_ES6_module)]}});function $(g,p,f,T){for(var m=0,N=g.imports;m<N.length;m++){var P=N[m],x=e.getResolvedModule(g,P.text);if(!(!x||x.resolvedFileName!==p.fileName)){var M=e.importFromModuleSpecifier(P);switch(M.kind){case 263:f.replaceNode(g,M,e.makeImport(M.name,void 0,P,T));break;case 206:e.isRequireCall(M,!1)&&f.replaceNode(g,M,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(M),"default"));break}}}}function Y(g,p,f,T,m){var N={original:q(g),additional:new e.Set},P=W(g,p,N);re(g,P,f);for(var x=!1,M,me=0,z=e.filter(g.statements,e.isVariableStatement);me<z.length;me++){var K=z[me],I=A(g,K,f,p,N,T,m);I&&e.copyEntries(I,M!=null?M:M=new e.Map)}for(var Ae=0,Oe=e.filter(g.statements,function(Se){return!e.isVariableStatement(Se)});Ae<Oe.length;Ae++){var K=Oe[Ae],te=O(g,K,p,f,N,T,P,M,m);x=x||te}return M==null||M.forEach(function(Se,be){f.replaceNode(g,be,Se)}),x}function W(g,p,f){var T=new e.Map;return ye(g,function(m){var N=m.name,P=N.text,x=N.originalKeywordKind;!T.has(P)&&(x!==void 0&&e.isNonContextualKeyword(x)||p.resolveName(P,m,111551,!0))&&T.set(P,ie("_"+P,f))}),T}function re(g,p,f){ye(g,function(T,m){if(!m){var N=T.name.text;f.replaceNode(g,T,e.factory.createIdentifier(p.get(N)||N))}})}function ye(g,p){g.forEachChild(function f(T){if(e.isPropertyAccessExpression(T)&&e.isExportsOrModuleExportsOrAlias(g,T.expression)&&e.isIdentifier(T.name)){var m=T.parent;p(T,e.isBinaryExpression(m)&&m.left===T&&m.operatorToken.kind===63)}T.forEachChild(f)})}function O(g,p,f,T,m,N,P,x,M){switch(p.kind){case 235:return A(g,p,T,f,m,N,M),!1;case 236:{var me=p.expression;switch(me.kind){case 206:return e.isRequireCall(me,!0)&&T.replaceNode(g,p,e.makeImport(void 0,void 0,me.arguments[0],M)),!1;case 219:{var z=me.operatorToken;return z.kind===63&&de(g,f,me,T,P,x)}}}default:return!1}}function A(g,p,f,T,m,N,P){var x=p.declarationList,M=!1,me=e.map(x.declarations,function(K){var I=K.name,Ae=K.initializer;if(Ae){if(e.isExportsOrModuleExportsOrAlias(g,Ae))return M=!0,G([]);if(e.isRequireCall(Ae,!0))return M=!0,k(I,Ae.arguments[0],T,m,N,P);if(e.isPropertyAccessExpression(Ae)&&e.isRequireCall(Ae.expression,!0))return M=!0,D(I,Ae.name.text,Ae.expression.arguments[0],m,P)}return G([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([K],x.flags))])});if(M){f.replaceNodeWithNodes(g,p,e.flatMap(me,function(K){return K.newImports}));var z;return e.forEach(me,function(K){K.useSitesToUnqualify&&e.copyEntries(K.useSitesToUnqualify,z!=null?z:z=new e.Map)}),z}}function D(g,p,f,T,m){switch(g.kind){case 199:case 200:{var N=ie(p,T);return G([ne(N,p,f,m),C(void 0,g,e.factory.createIdentifier(N))])}case 79:return G([ne(g.text,p,f,m)]);default:return e.Debug.assertNever(g,"Convert to ES6 module got invalid syntax form "+g.kind)}}function de(g,p,f,T,m,N){var P=f.left,x=f.right;if(!e.isPropertyAccessExpression(P))return!1;if(e.isExportsOrModuleExportsOrAlias(g,P))if(e.isExportsOrModuleExportsOrAlias(g,x))T.delete(g,f.parent);else{var M=e.isObjectLiteralExpression(x)?_e(x,N):e.isRequireCall(x,!0)?V(x.arguments[0],p):void 0;return M?(T.replaceNodeWithNodes(g,f.parent,M[0]),M[1]):(T.replaceRangeWithText(g,e.createRange(P.getStart(g),x.pos),"export default"),!0)}else e.isExportsOrModuleExportsOrAlias(g,P.expression)&&y(g,f,T,m);return!1}function _e(g,p){var f=e.mapAllOrFail(g.properties,function(T){switch(T.kind){case 170:case 171:case 292:case 293:return;case 291:return e.isIdentifier(T.name)?L(T.name.text,T.initializer,p):void 0;case 167:return e.isIdentifier(T.name)?w(T.name.text,[e.factory.createToken(93)],T,p):void 0;default:e.Debug.assertNever(T,"Convert to ES6 got invalid prop kind "+T.kind)}});return f&&[f,!1]}function y(g,p,f,T){var m=p.left.name.text,N=T.get(m);if(N!==void 0){var P=[C(void 0,N,p.right),d([e.factory.createExportSpecifier(N,m)])];f.replaceNodeWithNodes(g,p.parent,P)}else H(p,g,f)}function V(g,p){var f=g.text,T=p.getSymbolAtLocation(g),m=T?T.exports:e.emptyMap;return m.has("export=")?[[E(f)],!0]:m.has("default")?m.size>1?[[Z(f),E(f)],!0]:[[E(f)],!0]:[[Z(f)],!1]}function Z(g){return d(void 0,g)}function E(g){return d([e.factory.createExportSpecifier(void 0,"default")],g)}function H(g,p,f){var T=g.left,m=g.right,N=g.parent,P=T.name.text;if((e.isFunctionExpression(m)||e.isArrowFunction(m)||e.isClassExpression(m))&&(!m.name||m.name.text===P)){f.replaceRange(p,{pos:T.getStart(p),end:m.getStart(p)},e.factory.createToken(93),{suffix:" "}),m.name||f.insertName(p,m,P);var x=e.findChildOfKind(N,26,p);x&&f.delete(p,x)}else f.replaceNodeRangeWithNodes(p,T.expression,e.findChildOfKind(T,24,p),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "})}function L(g,p,f){var T=[e.factory.createToken(93)];switch(p.kind){case 211:{var m=p.name;if(m&&m.text!==g)return N()}case 212:return w(g,T,p,f);case 224:return R(g,T,p,f);default:return N()}function N(){return C(T,e.factory.createIdentifier(g),ee(p,f))}}function ee(g,p){if(!p||!e.some(e.arrayFrom(p.keys()),function(T){return e.rangeContainsRange(g,T)}))return g;return e.isArray(g)?e.getSynthesizedDeepClonesWithReplacements(g,!0,f):e.getSynthesizedDeepCloneWithReplacements(g,!0,f);function f(T){if(T.kind===204){var m=p.get(T);return p.delete(T),m}}}function k(g,p,f,T,m,N){switch(g.kind){case 199:{var P=e.mapAllOrFail(g.elements,function(M){return M.dotDotDotToken||M.initializer||M.propertyName&&!e.isIdentifier(M.propertyName)||!e.isIdentifier(M.name)?void 0:U(M.propertyName&&M.propertyName.text,M.name.text)});if(P)return G([e.makeImport(void 0,P,p,N)])}case 200:{var x=ie(ue.moduleSpecifierToValidIdentifier(p.text,m),T);return G([e.makeImport(e.factory.createIdentifier(x),void 0,p,N),C(void 0,e.getSynthesizedDeepClone(g),e.factory.createIdentifier(x))])}case 79:return b(g,p,f,T,N);default:return e.Debug.assertNever(g,"Convert to ES6 module got invalid name kind "+g.kind)}}function b(g,p,f,T,m){for(var N=f.getSymbolAtLocation(g),P=new e.Map,x=!1,M,me=0,z=T.original.get(g.text);me<z.length;me++){var K=z[me];if(!(f.getSymbolAtLocation(K)!==N||K===g)){var I=K.parent;if(e.isPropertyAccessExpression(I)){var Ae=I.name.text;if(Ae==="default"){x=!0;var Oe=K.getText();(M!=null?M:M=new e.Map).set(I,e.factory.createIdentifier(Oe))}else{e.Debug.assert(I.expression===K,"Didn't expect expression === use");var te=P.get(Ae);te===void 0&&(te=ie(Ae,T),P.set(Ae,te)),(M!=null?M:M=new e.Map).set(I,e.factory.createIdentifier(te))}}else x=!0}}var Se=P.size===0?void 0:e.arrayFrom(e.mapIterator(P.entries(),function(be){var Ce=be[0],Be=be[1];return e.factory.createImportSpecifier(Ce===Be?void 0:e.factory.createIdentifier(Ce),e.factory.createIdentifier(Be))}));return Se||(x=!0),G([e.makeImport(x?e.getSynthesizedDeepClone(g):void 0,Se,p,m)],M)}function ie(g,p){for(;p.original.has(g)||p.additional.has(g);)g="_"+g;return p.additional.add(g),g}function q(g){var p=e.createMultiMap();return oe(g,function(f){return p.add(f.text,f)}),p}function oe(g,p){e.isIdentifier(g)&&se(g)&&p(g),g.forEachChild(function(f){return oe(f,p)})}function se(g){var p=g.parent;switch(p.kind){case 204:return p.name!==g;case 201:return p.propertyName!==g;case 268:return p.propertyName!==g;default:return!0}}function w(g,p,f,T){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(f.decorators),e.concatenate(p,e.getSynthesizedDeepClones(f.modifiers)),e.getSynthesizedDeepClone(f.asteriskToken),g,e.getSynthesizedDeepClones(f.typeParameters),e.getSynthesizedDeepClones(f.parameters),e.getSynthesizedDeepClone(f.type),e.factory.converters.convertToFunctionBlock(ee(f.body,T)))}function R(g,p,f,T){return e.factory.createClassDeclaration(e.getSynthesizedDeepClones(f.decorators),e.concatenate(p,e.getSynthesizedDeepClones(f.modifiers)),g,e.getSynthesizedDeepClones(f.typeParameters),e.getSynthesizedDeepClones(f.heritageClauses),ee(f.members,T))}function ne(g,p,f,T){return p==="default"?e.makeImport(e.factory.createIdentifier(g),void 0,f,T):e.makeImport(void 0,[U(p,g)],f,T)}function U(g,p){return e.factory.createImportSpecifier(g!==void 0&&g!==p?e.factory.createIdentifier(g):void 0,e.factory.createIdentifier(p))}function C(g,p,f){return e.factory.createVariableStatement(g,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(p,void 0,void 0,f)],2))}function d(g,p){return e.factory.createExportDeclaration(void 0,void 0,!1,g&&e.factory.createNamedExports(g),p===void 0?void 0:e.factory.createStringLiteral(p))}function G(g,p){return{newImports:g,useSitesToUnqualify:p}}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="correctQualifiedNameToIndexedAccessType",Y=[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];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ye){var O=W(ye.sourceFile,ye.span.start);if(O){var A=e.textChanges.ChangeTracker.with(ye,function(de){return re(de,ye.sourceFile,O)}),D=O.left.text+'["'+O.right.text+'"]';return[ue.createCodeFixAction($,A,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,D],$,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[$],getAllCodeActions:function(ye){return ue.codeFixAll(ye,Y,function(O,A){var D=W(A.file,A.start);D&&re(O,A.file,D)})}});function W(ye,O){var A=e.findAncestor(e.getTokenAtPosition(ye,O),e.isQualifiedName);return e.Debug.assert(!!A,"Expected position to be owned by a qualified name."),e.isIdentifier(A.left)?A:void 0}function re(ye,O,A){var D=A.right.text,de=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(A.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(D)));ye.replaceNode(O,A,de)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],Y="convertToTypeOnlyExport";ue.registerCodeFix({errorCodes:$,getCodeActions:function(O){var A=e.textChanges.ChangeTracker.with(O,function(D){return re(D,W(O.span,O.sourceFile),O)});if(A.length)return[ue.createCodeFixAction(Y,A,e.Diagnostics.Convert_to_type_only_export,Y,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[Y],getAllCodeActions:function(O){var A=new e.Map;return ue.codeFixAll(O,$,function(D,de){var _e=W(de,O.sourceFile);_e&&e.addToSeen(A,e.getNodeId(_e.parent.parent))&&re(D,_e,O)})}});function W(O,A){return e.tryCast(e.getTokenAtPosition(A,O.start).parent,e.isExportSpecifier)}function re(O,A,D){if(A){var de=A.parent,_e=de.parent,y=ye(A,D);if(y.length===de.elements.length)O.insertModifierBefore(D.sourceFile,150,de);else{var V=e.factory.updateExportDeclaration(_e,_e.decorators,_e.modifiers,!1,e.factory.updateNamedExports(de,e.filter(de.elements,function(E){return!e.contains(y,E)})),_e.moduleSpecifier),Z=e.factory.createExportDeclaration(void 0,void 0,!0,e.factory.createNamedExports(y),_e.moduleSpecifier);O.replaceNode(D.sourceFile,_e,V,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),O.insertNodeAfter(D.sourceFile,_e,Z)}}}function ye(O,A){var D=O.parent;if(D.elements.length===1)return D.elements;var de=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(D),A.program.getSemanticDiagnostics(A.sourceFile,A.cancellationToken));return e.filter(D.elements,function(_e){var y;return _e===O||((y=e.findDiagnosticForNode(_e,de))===null||y===void 0?void 0:y.code)===$[0]})}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],Y="convertToTypeOnlyImport";ue.registerCodeFix({errorCodes:$,getCodeActions:function(ye){var O=e.textChanges.ChangeTracker.with(ye,function(A){var D=W(ye.span,ye.sourceFile);re(A,D,ye)});if(O.length)return[ue.createCodeFixAction(Y,O,e.Diagnostics.Convert_to_type_only_import,Y,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[Y],getAllCodeActions:function(ye){return ue.codeFixAll(ye,$,function(O,A){var D=W(A,ye.sourceFile);re(O,D,ye)})}});function W(ye,O){return e.tryCast(e.getTokenAtPosition(O,ye.start).parent,e.isImportDeclaration)}function re(ye,O,A){if(O!=null&&O.importClause){var D=O.importClause;ye.insertText(A.sourceFile,O.getStart()+6," type"),D.name&&D.namedBindings&&(ye.deleteNodeRangeExcludingEnd(A.sourceFile,D.name,O.importClause.namedBindings),ye.insertNodeBefore(A.sourceFile,O,e.factory.updateImportDeclaration(O,void 0,void 0,e.factory.createImportClause(!0,D.name,void 0),O.moduleSpecifier)))}}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="convertLiteralTypeToMappedType",Y=[e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ye){var O=ye.sourceFile,A=ye.span,D=W(O,A.start);if(D){var de=D.name,_e=D.constraint,y=e.textChanges.ChangeTracker.with(ye,function(V){return re(V,O,D)});return[ue.createCodeFixAction($,y,[e.Diagnostics.Convert_0_to_1_in_0,_e,de],$,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[$],getAllCodeActions:function(ye){return ue.codeFixAll(ye,Y,function(O,A){var D=W(A.file,A.start);D&&re(O,A.file,D)})}});function W(ye,O){var A=e.getTokenAtPosition(ye,O);if(e.isIdentifier(A)){var D=e.cast(A.parent.parent,e.isPropertySignature),de=A.getText(ye);return{container:e.cast(D.parent,e.isTypeLiteralNode),typeNode:D.type,constraint:de,name:de==="K"?"P":"K"}}}function re(ye,O,A){var D=A.container,de=A.typeNode,_e=A.constraint,y=A.name;ye.replaceNode(O,D,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(y,e.factory.createTypeReferenceNode(_e)),void 0,void 0,de))}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $=[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],Y="fixClassIncorrectlyImplementsInterface";ue.registerCodeFix({errorCodes:$,getCodeActions:function(A){var D=A.sourceFile,de=A.span,_e=W(D,de.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(_e),function(y){var V=e.textChanges.ChangeTracker.with(A,function(Z){return ye(A,y,D,_e,Z,A.preferences)});return V.length===0?void 0:ue.createCodeFixAction(Y,V,[e.Diagnostics.Implement_interface_0,y.getText(D)],Y,e.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[Y],getAllCodeActions:function(A){var D=new e.Map;return ue.codeFixAll(A,$,function(de,_e){var y=W(_e.file,_e.start);if(e.addToSeen(D,e.getNodeId(y)))for(var V=0,Z=e.getEffectiveImplementsTypeNodes(y);V<Z.length;V++){var E=Z[V];ye(A,E,_e.file,y,de,A.preferences)}})}});function W(A,D){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(A,D)),"There should be a containing class")}function re(A){return!A.valueDeclaration||!(e.getEffectiveModifierFlags(A.valueDeclaration)&8)}function ye(A,D,de,_e,y,V){var Z=A.program.getTypeChecker(),E=O(_e,Z),H=Z.getTypeAtLocation(D),L=Z.getPropertiesOfType(H),ee=L.filter(e.and(re,function(se){return!E.has(se.escapedName)})),k=Z.getTypeAtLocation(_e),b=e.find(_e.members,function(se){return e.isConstructorDeclaration(se)});k.getNumberIndexType()||q(H,1),k.getStringIndexType()||q(H,0);var ie=ue.createImportAdder(de,A.program,V,A.host);ue.createMissingMemberNodes(_e,ee,de,A,V,ie,function(se){return oe(de,_e,se)}),ie.writeFixes(y);function q(se,w){var R=Z.getIndexInfoOfType(se,w);R&&oe(de,_e,Z.indexInfoToIndexSignatureDeclaration(R,_e,void 0,ue.getNoopSymbolTrackerWithResolver(A)))}function oe(se,w,R){b?y.insertNodeAfter(se,b,R):y.insertNodeAtClassStart(se,w,R)}}function O(A,D){var de=e.getEffectiveBaseTypeNode(A);if(!de)return e.createSymbolTable();var _e=D.getTypeAtLocation(de),y=D.getPropertiesOfType(_e);return e.createSymbolTable(y.filter(re))}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){ue.importFixName="import";var $="fixMissingImport",Y=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(be){var Ce=be.errorCode,Be=be.preferences,De=be.sourceFile,en=be.span,fe=se(be,Ce,en.start,!0);if(fe){var Ne=fe.fixes,qe=fe.symbolName,pe=e.getQuotePreference(De,Be);return Ne.map(function(we){return N(be,De,qe,we,pe)})}},fixIds:[$],getAllCodeActions:function(be){var Ce=be.sourceFile,Be=be.program,De=be.preferences,en=be.host,fe=re(Ce,Be,!0,De,en);return ue.eachDiagnostic(be,Y,function(Ne){return fe.addImportFromDiagnostic(Ne,be)}),ue.createCombinedCodeActions(e.textChanges.ChangeTracker.with(be,fe.writeFixes))}});function W(be,Ce,Be,De){return re(be,Ce,!1,Be,De)}ue.createImportAdder=W;function re(be,Ce,Be,De,en){var fe=Ce.getCompilerOptions(),Ne=[],qe=[],pe=new e.Map,we=new e.Map;return{addImportFromDiagnostic:pn,addImportFromExportedSymbol:Qe,writeFixes:He};function pn(Ln,Un){var fn=se(Un,Ln.code,Ln.start,Be);!fn||!fn.fixes.length||Re(fn)}function Qe(Ln,Un){var fn=e.Debug.checkDefined(Ln.parent),En=e.getNameForExportedSymbol(Ln,e.getEmitScriptTarget(fe)),i=Ce.getTypeChecker(),In=i.getMergedSymbol(e.skipAlias(Ln,i)),X=_e(be,In,fn,En,en,Ce,De,Be),rn=!!Un&&fe.importsNotUsedAsValues===2,$n=b(be,Ce),Vn=A(be,X,fn,En,Ce,void 0,rn,$n,en,De);Vn&&Re({fixes:[Vn],symbolName:En})}function Re(Ln){var Un=Ln.fixes,fn=Ln.symbolName,En=e.first(Un);switch(En.kind){case 0:Ne.push(En);break;case 1:qe.push(En);break;case 2:{var i=En.importClauseOrBindingPattern,In=En.importKind,X=En.canUseTypeOnlyImport,rn=String(e.getNodeId(i)),$n=pe.get(rn);$n||pe.set(rn,$n={importClauseOrBindingPattern:i,defaultImport:void 0,namedImports:[],canUseTypeOnlyImport:X}),In===0?e.pushIfUnique($n.namedImports,fn):(e.Debug.assert($n.defaultImport===void 0||$n.defaultImport===fn,"(Add to Existing) Default import should be missing or match symbolName"),$n.defaultImport=fn);break}case 3:{var Vn=En.moduleSpecifier,In=En.importKind,le=En.useRequire,Pe=En.typeOnly,$n=we.get(Vn);switch($n?$n.typeOnly=$n.typeOnly&&Pe:we.set(Vn,$n={namedImports:[],namespaceLikeImport:void 0,typeOnly:Pe,useRequire:le}),In){case 1:e.Debug.assert($n.defaultImport===void 0||$n.defaultImport===fn,"(Add new) Default import should be missing or match symbolName"),$n.defaultImport=fn;break;case 0:e.pushIfUnique($n.namedImports||($n.namedImports=[]),fn);break;case 3:case 2:e.Debug.assert($n.namespaceLikeImport===void 0||$n.namespaceLikeImport.name===fn,"Namespacelike import shoudl be missing or match symbolName"),$n.namespaceLikeImport={importKind:In,name:fn};break}break}default:e.Debug.assertNever(En,"fix wasn't never - got kind "+En.kind)}}function He(Ln){for(var Un=e.getQuotePreference(be,De),fn=0,En=Ne;fn<En.length;fn++){var i=En[fn];M(Ln,be,i)}for(var In=0,X=qe;In<X.length;In++){var i=X[In];me(Ln,be,i,Un)}pe.forEach(function($n){var Vn=$n.importClauseOrBindingPattern,le=$n.defaultImport,Pe=$n.namedImports,xe=$n.canUseTypeOnlyImport;x(Ln,be,Vn,le,Pe,xe)});var rn;we.forEach(function($n,Vn){var le=$n.useRequire,Pe=fp($n,["useRequire"]),xe=le?I:K;rn=e.combine(rn,xe(Vn,Un,Pe))}),rn&&e.insertImports(Ln,be,rn,!0)}}var ye;(function(be){be[be.UseNamespace=0]="UseNamespace",be[be.ImportType=1]="ImportType",be[be.AddToExisting=2]="AddToExisting",be[be.AddNew=3]="AddNew"})(ye||(ye={}));function O(be,Ce,Be,De,en,fe,Ne,qe,pe){var we=fe.getCompilerOptions(),pn=e.pathIsBareSpecifier(e.stripQuotes(Ce.name))?[de(be,Ce,fe,en)]:_e(Be,be,Ce,De,en,fe,pe,!0),Qe=b(Be,fe),Re=we.importsNotUsedAsValues===2&&!e.isSourceFileJS(Be)&&e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(Be,qe)),He=e.Debug.checkDefined(A(Be,pn,Ce,De,fe,qe,Re,Qe,en,pe));return{moduleSpecifier:He.moduleSpecifier,codeAction:D(N({host:en,formatContext:Ne,preferences:pe},Be,De,He,e.getQuotePreference(Be,pe)))}}ue.getImportCompletionAction=O;function A(be,Ce,Be,De,en,fe,Ne,qe,pe,we){return e.Debug.assert(Ce.some(function(pn){return pn.moduleSymbol===Be||pn.symbol.parent===Be}),"Some exportInfo should match the specified moduleSymbol"),R(Z(Ce,De,fe,Ne,qe,en,be,pe,we),be,en,pe,we)}function D(be){var Ce=be.description,Be=be.changes,De=be.commands;return{description:Ce,changes:Be,commands:De}}function de(be,Ce,Be,De){var en,fe,Ne=Be.getCompilerOptions(),qe=we(Be.getTypeChecker(),!1);if(qe)return qe;var pe=(fe=(en=De.getPackageJsonAutoImportProvider)===null||en===void 0?void 0:en.call(De))===null||fe===void 0?void 0:fe.getTypeChecker();return e.Debug.checkDefined(pe&&we(pe,!0),"Could not find symbol in specified module for code actions");function we(pn,Qe){var Re=e.getDefaultLikeExportInfo(Ce,pn,Ne);if(Re&&e.skipAlias(Re.symbol,pn)===be)return{symbol:Re.symbol,moduleSymbol:Ce,moduleFileName:void 0,exportKind:Re.exportKind,targetFlags:e.skipAlias(be,pn).flags,isFromPackageJson:Qe};var He=pn.tryGetMemberInModuleExportsAndProperties(be.name,Ce);if(He&&e.skipAlias(He,pn)===be)return{symbol:He,moduleSymbol:Ce,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(be,pn).flags,isFromPackageJson:Qe}}}function _e(be,Ce,Be,De,en,fe,Ne,qe){var pe=[],we=fe.getCompilerOptions(),pn=e.memoizeOne(function(Re){return e.createModuleSpecifierResolutionHost(Re?en.getPackageJsonAutoImportProvider():fe,en)});return e.forEachExternalModuleToImportFrom(fe,en,qe,function(Re,He,Ln,Un){var fn=Ln.getTypeChecker();if(!(He&&Re!==Be&&e.startsWith(be.fileName,e.getDirectoryPath(He.fileName)))){var En=e.getDefaultLikeExportInfo(Re,fn,we);En&&(En.name===De||te(Re,we.target)===De)&&e.skipAlias(En.symbol,fn)===Ce&&Qe(Ln,He,Un)&&pe.push({symbol:En.symbol,moduleSymbol:Re,moduleFileName:He==null?void 0:He.fileName,exportKind:En.exportKind,targetFlags:e.skipAlias(En.symbol,fn).flags,isFromPackageJson:Un});for(var i=0,In=fn.getExportsAndPropertiesOfModule(Re);i<In.length;i++){var X=In[i];X.name===De&&e.skipAlias(X,fn)===Ce&&Qe(Ln,He,Un)&&pe.push({symbol:X,moduleSymbol:Re,moduleFileName:He==null?void 0:He.fileName,exportKind:0,targetFlags:e.skipAlias(X,fn).flags,isFromPackageJson:Un})}}}),pe;function Qe(Re,He,Ln){var Un;return!He||e.isImportableFile(Re,be,He,Ne,void 0,pn(Ln),(Un=en.getModuleSpecifierCache)===null||Un===void 0?void 0:Un.call(en))}}function y(be,Ce,Be,De,en,fe){var Ne=ie(Be,Ce,void 0,!1,!1,be,De,en,fe),qe=Ne.fixes,pe=Ne.computedWithoutCacheCount,we=R(qe,Ce,Be,De,en);return we&&Mt(Mt({},we),{computedWithoutCacheCount:pe})}ue.getModuleSpecifierForBestExportInfo=y;function V(be,Ce){return e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(be,Ce))}function Z(be,Ce,Be,De,en,fe,Ne,qe,pe){var we=fe.getTypeChecker(),pn=e.flatMap(be,function(Ln){return k(Ln,we,Ne,fe.getCompilerOptions())}),Qe=Be===void 0?void 0:E(pn,Ce,Be,we),Re=ee(pn,Be!==void 0&&V(Ne,Be)),He=Re?[Re]:q(be,pn,fe,Ne,Be,De,en,qe,pe);return Vr(Vr([],Qe?[Qe]:e.emptyArray,!0),He,!0)}function E(be,Ce,Be,De){return e.firstDefined(be,function(en){var fe=en.declaration,Ne=L(fe),qe=e.tryGetModuleSpecifierFromDeclaration(fe);if(Ne&&qe){var pe=H(fe,De);if(pe&&pe.exports.has(e.escapeLeadingUnderscores(Ce)))return{kind:0,namespacePrefix:Ne,position:Be,moduleSpecifier:qe}}})}function H(be,Ce){var Be;switch(be.kind){case 252:return Ce.resolveExternalModuleName(be.initializer.arguments[0]);case 263:return Ce.getAliasedSymbol(be.symbol);case 264:var De=e.tryCast((Be=be.importClause)===null||Be===void 0?void 0:Be.namedBindings,e.isNamespaceImport);return De&&Ce.getAliasedSymbol(De.symbol);default:return e.Debug.assertNever(be)}}function L(be){var Ce,Be,De;switch(be.kind){case 252:return(Ce=e.tryCast(be.name,e.isIdentifier))===null||Ce===void 0?void 0:Ce.text;case 263:return be.name.text;case 264:return(De=e.tryCast((Be=be.importClause)===null||Be===void 0?void 0:Be.namedBindings,e.isNamespaceImport))===null||De===void 0?void 0:De.name.text;default:return e.Debug.assertNever(be)}}function ee(be,Ce){return e.firstDefined(be,function(Be){var De=Be.declaration,en=Be.importKind;if(De.kind!==263){if(De.kind===252)return(en===0||en===1)&&De.name.kind===199?{kind:2,importClauseOrBindingPattern:De.name,importKind:en,moduleSpecifier:De.initializer.arguments[0].text,canUseTypeOnlyImport:!1}:void 0;var fe=De.importClause;if(!(!fe||!e.isStringLiteralLike(De.moduleSpecifier))){var Ne=fe.name,qe=fe.namedBindings;if(!(fe.isTypeOnly&&!(en===0&&qe)))return en===1&&!Ne||en===0&&(!qe||qe.kind===267)?{kind:2,importClauseOrBindingPattern:fe,importKind:en,moduleSpecifier:De.moduleSpecifier.text,canUseTypeOnlyImport:Ce}:void 0}}})}function k(be,Ce,Be,De){var en=be.moduleSymbol,fe=be.exportKind,Ne=be.targetFlags;if(!(Ne&111551)&&e.isSourceFileJS(Be))return e.emptyArray;var qe=G(Be,fe,De);return e.mapDefined(Be.imports,function(pe){var we=e.importFromModuleSpecifier(pe);if(e.isRequireVariableDeclaration(we.parent))return Ce.resolveExternalModuleName(pe)===en?{declaration:we.parent,importKind:qe}:void 0;if(we.kind===264||we.kind===263)return Ce.getSymbolAtLocation(pe)===en?{declaration:we,importKind:qe}:void 0})}function b(be,Ce){if(!e.isSourceFileJS(be))return!1;if(be.commonJsModuleIndicator&&!be.externalModuleIndicator)return!0;if(be.externalModuleIndicator&&!be.commonJsModuleIndicator)return!1;var Be=Ce.getCompilerOptions();if(Be.configFile)return e.getEmitModuleKind(Be)<e.ModuleKind.ES2015;for(var De=0,en=Ce.getSourceFiles();De<en.length;De++){var fe=en[De];if(!(fe===be||!e.isSourceFileJS(fe)||Ce.isSourceFileFromExternalLibrary(fe))){if(fe.commonJsModuleIndicator&&!fe.externalModuleIndicator)return!0;if(fe.externalModuleIndicator&&!fe.commonJsModuleIndicator)return!1}}return!0}function ie(be,Ce,Be,De,en,fe,Ne,qe,pe){var we=e.isSourceFileJS(Ce),pn=be.getCompilerOptions(),Qe=e.createModuleSpecifierResolutionHost(be,Ne),Re=be.getTypeChecker(),He=pe?function(fn){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(fn,Ce,Qe,qe),computedWithoutCache:!1}}:function(fn){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(fn,Re,pn,Ce,Qe,qe)},Ln=0,Un=e.flatMap(fe,function(fn){var En=He(fn.moduleSymbol),i=En.computedWithoutCache,In=En.moduleSpecifiers;return Ln+=i?1:0,In==null?void 0:In.map(function(X){return!(fn.targetFlags&111551)&&we&&Be!==void 0?{kind:1,moduleSpecifier:X,position:Be,exportInfo:fn}:{kind:3,moduleSpecifier:X,importKind:G(Ce,fn.exportKind,pn),useRequire:en,typeOnly:De,exportInfo:fn}})});return{computedWithoutCacheCount:Ln,fixes:Un}}function q(be,Ce,Be,De,en,fe,Ne,qe,pe){var we=e.firstDefined(Ce,function(pn){return oe(pn,fe,Ne)});return we?[we]:ie(Be,De,en,fe,Ne,be,qe,pe).fixes}function oe(be,Ce,Be){var De=be.declaration,en=be.importKind,fe=e.tryGetModuleSpecifierFromDeclaration(De);return fe?{kind:3,moduleSpecifier:fe,importKind:en,typeOnly:Ce,useRequire:Be}:void 0}function se(be,Ce,Be,De){var en=e.getTokenAtPosition(be.sourceFile,Be),fe=Ce===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?C(be,en):e.isIdentifier(en)?p(be,en,De):void 0;return fe&&Mt(Mt({},fe),{fixes:w(fe.fixes,be.sourceFile,be.program,be.host,be.preferences)})}function w(be,Ce,Be,De,en){var fe=e.createPackageJsonImportFilter(Ce,en,De).allowsImportingSpecifier;return e.sort(be,function(Ne,qe){return e.compareValues(Ne.kind,qe.kind)||ne(Ne,qe,Ce,Be,fe)})}function R(be,Ce,Be,De,en){if(e.some(be)){if(be[0].kind===0||be[0].kind===2)return be[0];var fe=e.createPackageJsonImportFilter(Ce,en,De).allowsImportingSpecifier;return be.reduce(function(Ne,qe){return ne(qe,Ne,Ce,Be,fe)===-1?qe:Ne})}}function ne(be,Ce,Be,De,en){return be.kind!==0&&Ce.kind!==0?e.compareBooleans(en(be.moduleSpecifier),en(Ce.moduleSpecifier))||U(be.moduleSpecifier,Ce.moduleSpecifier,Be,De)||e.compareNumberOfDirectorySeparators(be.moduleSpecifier,Ce.moduleSpecifier):0}function U(be,Ce,Be,De){return e.startsWith(be,"node:")&&!e.startsWith(Ce,"node:")?e.shouldUseUriStyleNodeCoreModules(Be,De)?-1:1:e.startsWith(Ce,"node:")&&!e.startsWith(be,"node:")?e.shouldUseUriStyleNodeCoreModules(Be,De)?1:-1:0}function C(be,Ce){var Be=be.sourceFile,De=be.program,en=be.host,fe=be.preferences,Ne=De.getTypeChecker(),qe=d(Ce,Ne);if(qe){var pe=Ne.getAliasedSymbol(qe),we=qe.name,pn=[{symbol:qe,moduleSymbol:pe,moduleFileName:void 0,exportKind:3,targetFlags:pe.flags,isFromPackageJson:!1}],Qe=b(Be,De),Re=Z(pn,we,e.isIdentifier(Ce)?Ce.getStart(Be):void 0,!1,Qe,De,Be,en,fe);return{fixes:Re,symbolName:we}}}function d(be,Ce){var Be=e.isIdentifier(be)?Ce.getSymbolAtLocation(be):void 0;if(e.isUMDExportSymbol(Be))return Be;var De=be.parent;return e.isJsxOpeningLikeElement(De)&&De.tagName===be||e.isJsxOpeningFragment(De)?e.tryCast(Ce.resolveName(Ce.getJsxNamespace(De),e.isJsxOpeningLikeElement(De)?be:De,111551,!1),e.isUMDExportSymbol):void 0}function G(be,Ce,Be,De){switch(Ce){case 0:return 0;case 1:return 1;case 2:return m(be,Be,!!De);case 3:return g(be,Be,!!De);default:return e.Debug.assertNever(Ce)}}ue.getImportKind=G;function g(be,Ce,Be){if(e.getAllowSyntheticDefaultImports(Ce))return 1;var De=e.getEmitModuleKind(Ce);switch(De){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(be)&&(e.isExternalModule(be)||Be)?2:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;default:return e.Debug.assertNever(De,"Unexpected moduleKind "+De)}}function p(be,Ce,Be){var De=be.sourceFile,en=be.program,fe=be.cancellationToken,Ne=be.host,qe=be.preferences,pe=en.getTypeChecker(),we=en.getCompilerOptions(),pn=f(De,pe,Ce,we);e.Debug.assert(pn!=="default","'default' isn't a legal identifier and couldn't occur here");var Qe=we.importsNotUsedAsValues===2&&e.isValidTypeOnlyAliasUseSite(Ce),Re=b(De,en),He=T(pn,e.getMeaningFromLocation(Ce),fe,De,en,Be,Ne,qe),Ln=e.arrayFrom(e.flatMapIterator(He.entries(),function(Un){var fn=Un[0],En=Un[1];return Z(En,pn,Ce.getStart(De),Qe,Re,en,De,Ne,qe)}));return{fixes:Ln,symbolName:pn}}function f(be,Ce,Be,De){var en=Be.parent;if((e.isJsxOpeningLikeElement(en)||e.isJsxClosingElement(en))&&en.tagName===Be&&De.jsx!==4&&De.jsx!==5){var fe=Ce.getJsxNamespace(be);if(e.isIntrinsicJsxName(Be.text)||!Ce.resolveName(fe,en,111551,!0))return fe}return Be.text}function T(be,Ce,Be,De,en,fe,Ne,qe){var pe,we=e.createMultiMap(),pn=e.createPackageJsonImportFilter(De,qe,Ne),Qe=(pe=Ne.getModuleSpecifierCache)===null||pe===void 0?void 0:pe.call(Ne),Re=e.memoizeOne(function(Ln){return e.createModuleSpecifierResolutionHost(Ln?Ne.getPackageJsonAutoImportProvider():en,Ne)});function He(Ln,Un,fn,En,i,In){var X=Re(In);if(Un&&e.isImportableFile(i,De,Un,qe,pn,X,Qe)||!Un&&pn.allowsImportingAmbientModule(Ln,X)){var rn=i.getTypeChecker();we.add(e.getUniqueSymbolId(fn,rn).toString(),{symbol:fn,moduleSymbol:Ln,moduleFileName:Un==null?void 0:Un.fileName,exportKind:En,targetFlags:e.skipAlias(fn,rn).flags,isFromPackageJson:In})}}return e.forEachExternalModuleToImportFrom(en,Ne,fe,function(Ln,Un,fn,En){var i=fn.getTypeChecker();Be.throwIfCancellationRequested();var In=fn.getCompilerOptions(),X=e.getDefaultLikeExportInfo(Ln,i,In);X&&(X.name===be||te(Ln,In.target)===be)&&Oe(X.symbolForMeaning,Ce)&&He(Ln,Un,X.symbol,X.exportKind,fn,En);var rn=i.tryGetMemberInModuleExportsAndProperties(be,Ln);rn&&Oe(rn,Ce)&&He(Ln,Un,rn,0,fn,En)}),we}function m(be,Ce,Be){var De=e.getAllowSyntheticDefaultImports(Ce),en=e.isInJSFile(be);if(!en&&e.getEmitModuleKind(Ce)>=e.ModuleKind.ES2015)return De?1:2;if(en)return e.isExternalModule(be)||Be?De?1:2:3;for(var fe=0,Ne=be.statements;fe<Ne.length;fe++){var qe=Ne[fe];if(e.isImportEqualsDeclaration(qe)&&!e.nodeIsMissing(qe.moduleReference))return 3}return De?1:3}function N(be,Ce,Be,De,en){var fe,Ne=e.textChanges.ChangeTracker.with(be,function(qe){fe=P(qe,Ce,Be,De,en)});return ue.createCodeFixAction(ue.importFixName,Ne,fe,$,e.Diagnostics.Add_all_missing_imports)}function P(be,Ce,Be,De,en){switch(De.kind){case 0:return M(be,Ce,De),[e.Diagnostics.Change_0_to_1,Be,De.namespacePrefix+"."+Be];case 1:return me(be,Ce,De,en),[e.Diagnostics.Change_0_to_1,Be,z(De.moduleSpecifier,en)+Be];case 2:{var fe=De.importClauseOrBindingPattern,Ne=De.importKind,qe=De.canUseTypeOnlyImport,pe=De.moduleSpecifier;x(be,Ce,fe,Ne===1?Be:void 0,Ne===0?[Be]:e.emptyArray,qe);var we=e.stripQuotes(pe);return[Ne===1?e.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:e.Diagnostics.Add_0_to_existing_import_declaration_from_1,Be,we]}case 3:{var Ne=De.importKind,pe=De.moduleSpecifier,pn=De.typeOnly,Qe=De.useRequire,Re=Qe?I:K,He=Ne===1?{defaultImport:Be,typeOnly:pn}:Ne===0?{namedImports:[Be],typeOnly:pn}:{namespaceLikeImport:{importKind:Ne,name:Be},typeOnly:pn};return e.insertImports(be,Ce,Re(pe,en,He),!0),[Ne===1?e.Diagnostics.Import_default_0_from_module_1:e.Diagnostics.Import_0_from_module_1,Be,pe]}default:return e.Debug.assertNever(De,"Unexpected fix kind "+De.kind)}}function x(be,Ce,Be,De,en,fe){if(Be.kind===199){De&&X(Be,De,"default");for(var Ne=0,qe=en;Ne<qe.length;Ne++){var pe=qe[Ne];X(Be,pe,void 0)}return}var we=!fe&&Be.isTypeOnly;if(De&&(e.Debug.assert(!Be.name,"Cannot add a default import to an import clause that already has one"),be.insertNodeAt(Ce,Be.getStart(Ce),e.factory.createIdentifier(De),{suffix:", "})),en.length){var pn=Be.namedBindings&&e.cast(Be.namedBindings,e.isNamedImports).elements,Qe=e.stableSort(en.map(function(rn){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(rn))}),e.OrganizeImports.compareImportOrExportSpecifiers);if(pn!=null&&pn.length&&e.OrganizeImports.importSpecifiersAreSorted(pn))for(var Re=0,He=Qe;Re<He.length;Re++){var Ln=He[Re],Un=e.OrganizeImports.getImportSpecifierInsertionIndex(pn,Ln),fn=Be.namedBindings.elements[Un-1];fn?be.insertNodeInListAfter(Ce,fn,Ln):be.insertNodeBefore(Ce,pn[0],Ln,!e.positionsAreOnSameLine(pn[0].getStart(),Be.parent.getStart(),Ce))}else if(pn!=null&&pn.length)for(var En=0,i=Qe;En<i.length;En++){var Ln=i[En];be.insertNodeInListAfter(Ce,e.last(pn),Ln,pn)}else if(Qe.length){var In=e.factory.createNamedImports(Qe);Be.namedBindings?be.replaceNode(Ce,Be.namedBindings,In):be.insertNodeAfter(Ce,e.Debug.checkDefined(Be.name,"Import clause must have either named imports or a default import"),In)}}we&&be.delete(Ce,e.getTypeKeywordOfTypeOnlyImport(Be,Ce));function X(rn,$n,Vn){var le=e.factory.createBindingElement(void 0,Vn,$n);rn.elements.length?be.insertNodeInListAfter(Ce,e.last(rn.elements),le):be.replaceNode(Ce,rn,e.factory.createObjectBindingPattern([le]))}}function M(be,Ce,Be){var De=Be.namespacePrefix,en=Be.position;be.insertText(Ce,en,De+".")}function me(be,Ce,Be,De){var en=Be.moduleSpecifier,fe=Be.position;be.insertText(Ce,fe,z(en,De))}function z(be,Ce){var Be=e.getQuoteFromPreference(Ce);return"import("+Be+be+Be+")."}function K(be,Ce,Be){var De,en,fe=e.makeStringLiteral(be,Ce),Ne;(Be.defaultImport!==void 0||!((De=Be.namedImports)===null||De===void 0)&&De.length)&&(Ne=e.combine(Ne,e.makeImport(Be.defaultImport===void 0?void 0:e.factory.createIdentifier(Be.defaultImport),(en=Be.namedImports)===null||en===void 0?void 0:en.map(function(pn){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(pn))}),be,Ce,Be.typeOnly)));var qe=Be.namespaceLikeImport,pe=Be.typeOnly;if(qe){var we=qe.importKind===3?e.factory.createImportEqualsDeclaration(void 0,void 0,pe,e.factory.createIdentifier(qe.name),e.factory.createExternalModuleReference(fe)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(pe,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(qe.name))),fe);Ne=e.combine(Ne,we)}return e.Debug.checkDefined(Ne)}function I(be,Ce,Be){var De,en,fe=e.makeStringLiteral(be,Ce),Ne;if(Be.defaultImport||!((De=Be.namedImports)===null||De===void 0)&&De.length){var qe=((en=Be.namedImports)===null||en===void 0?void 0:en.map(function(we){return e.factory.createBindingElement(void 0,void 0,we)}))||[];Be.defaultImport&&qe.unshift(e.factory.createBindingElement(void 0,"default",Be.defaultImport));var pe=Ae(e.factory.createObjectBindingPattern(qe),fe);Ne=e.combine(Ne,pe)}if(Be.namespaceLikeImport){var pe=Ae(Be.namespaceLikeImport.name,fe);Ne=e.combine(Ne,pe)}return e.Debug.checkDefined(Ne)}function Ae(be,Ce){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(typeof be=="string"?e.factory.createIdentifier(be):be,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[Ce]))],2))}function Oe(be,Ce){var Be=be.declarations;return e.some(Be,function(De){return!!(e.getMeaningFromDeclaration(De)&Ce)})}function te(be,Ce){return Se(e.removeFileExtension(e.stripQuotes(be.name)),Ce)}ue.moduleSymbolToValidIdentifier=te;function Se(be,Ce){var Be=e.getBaseFileName(e.removeSuffix(be,"/index")),De="",en=!0,fe=Be.charCodeAt(0);e.isIdentifierStart(fe,Ce)?De+=String.fromCharCode(fe):en=!1;for(var Ne=1;Ne<Be.length;Ne++){var qe=Be.charCodeAt(Ne),pe=e.isIdentifierPart(qe,Ce);if(pe){var we=String.fromCharCode(qe);en||(we=we.toUpperCase()),De+=we}en=pe}return e.isStringANonContextualKeyword(De)?"_"+De:De||"_"}ue.moduleSpecifierToValidIdentifier=Se})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $,Y="fixOverrideModifier",W="fixAddOverrideModifier",re="fixRemoveOverrideModifier",ye=[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code],O=($={},$[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]=[e.Diagnostics.Add_override_modifier,W,e.Diagnostics.Add_all_missing_override_modifiers],$[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]=[e.Diagnostics.Remove_override_modifier,re,e.Diagnostics.Remove_all_unnecessary_override_modifiers],$[e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]=[e.Diagnostics.Add_override_modifier,W,e.Diagnostics.Add_all_missing_override_modifiers],$[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]=[e.Diagnostics.Add_override_modifier,W,e.Diagnostics.Remove_all_unnecessary_override_modifiers],$[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]=[e.Diagnostics.Remove_override_modifier,re,e.Diagnostics.Remove_all_unnecessary_override_modifiers],$);ue.registerCodeFix({errorCodes:ye,getCodeActions:function(V){var Z=V.errorCode,E=V.span,H=V.sourceFile,L=O[Z];if(!L)return e.emptyArray;var ee=L[0],k=L[1],b=L[2];if(e.isSourceFileJS(H))return e.emptyArray;var ie=e.textChanges.ChangeTracker.with(V,function(q){return A(q,V,Z,E.start)});return[ue.createCodeFixActionMaybeFixAll(Y,ie,ee,k,b)]},fixIds:[Y,W,re],getAllCodeActions:function(V){return ue.codeFixAll(V,ye,function(Z,E){var H=E.code,L=E.start,ee=E.file,k=O[H];!k||k[1]!==V.fixId||e.isSourceFileJS(ee)||A(Z,V,H,L)})}});function A(V,Z,E,H){switch(E){case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:return D(V,Z.sourceFile,H);case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:return de(V,Z.sourceFile,H);default:e.Debug.fail("Unexpected error code: "+E)}}function D(V,Z,E){var H=y(Z,E),L=H.modifiers||e.emptyArray,ee=e.find(L,e.isStaticModifier),k=e.find(L,e.isAbstractModifier),b=e.find(L,function(oe){return e.isAccessibilityModifier(oe.kind)}),ie=k?k.end:ee?ee.end:b?b.end:H.decorators?e.skipTrivia(Z.text,H.decorators.end):H.getStart(Z),q=b||ee||k?{prefix:" "}:{suffix:" "};V.insertModifierAt(Z,ie,157,q)}function de(V,Z,E){var H=y(Z,E),L=H.modifiers&&e.find(H.modifiers,function(ee){return ee.kind===157});e.Debug.assertIsDefined(L),V.deleteModifier(Z,L)}function _e(V){switch(V.kind){case 169:case 165:case 167:case 170:case 171:return!0;case 162:return e.isParameterPropertyDeclaration(V,V.parent);default:return!1}}function y(V,Z){var E=e.getTokenAtPosition(V,Z),H=e.findAncestor(E,function(L){return e.isClassLike(L)?"quit":_e(L)});return e.Debug.assert(H&&_e(H)),H}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixNoPropertyAccessFromIndexSignature",Y=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];ue.registerCodeFix({errorCodes:Y,fixIds:[$],getCodeActions:function(ye){var O=ye.sourceFile,A=ye.span,D=ye.preferences,de=re(O,A.start),_e=e.textChanges.ChangeTracker.with(ye,function(y){return W(y,ye.sourceFile,de,D)});return[ue.createCodeFixAction($,_e,[e.Diagnostics.Use_element_access_for_0,de.name.text],$,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:function(ye){return ue.codeFixAll(ye,Y,function(O,A){return W(O,A.file,re(A.file,A.start),ye.preferences)})}});function W(ye,O,A,D){var de=e.getQuotePreference(O,D),_e=e.factory.createStringLiteral(A.name.text,de===0);ye.replaceNode(O,A,e.isPropertyAccessChain(A)?e.factory.createElementAccessChain(A.expression,A.questionDotToken,_e):e.factory.createElementAccessExpression(A.expression,_e))}function re(ye,O){return e.cast(e.getTokenAtPosition(ye,O).parent,e.isPropertyAccessExpression)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixImplicitThis",Y=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(re){var ye=re.sourceFile,O=re.program,A=re.span,D,de=e.textChanges.ChangeTracker.with(re,function(_e){D=W(_e,ye,A.start,O.getTypeChecker())});return D?[ue.createCodeFixAction($,de,D,$,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[$],getAllCodeActions:function(re){return ue.codeFixAll(re,Y,function(ye,O){W(ye,O.file,O.start,re.program.getTypeChecker())})}});function W(re,ye,O,A){var D=e.getTokenAtPosition(ye,O);e.Debug.assert(D.kind===108);var de=e.getThisContainer(D,!1);if(!(!e.isFunctionDeclaration(de)&&!e.isFunctionExpression(de))&&!e.isSourceFile(e.getThisContainer(de,!1))){var _e=e.Debug.assertDefined(e.findChildOfKind(de,98,ye)),y=de.name,V=e.Debug.assertDefined(de.body);return e.isFunctionExpression(de)?y&&e.FindAllReferences.Core.isSymbolReferencedInFile(y,A,ye,V)?void 0:(re.delete(ye,_e),y&&re.delete(ye,y),re.insertText(ye,V.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,y?y.text:e.ANONYMOUS]):(re.replaceNode(ye,_e,e.factory.createToken(85)),re.insertText(ye,y.end," = "),re.insertText(ye,V.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,y.text])}}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixIncorrectNamedTupleSyntax",Y=[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ye){var O=ye.sourceFile,A=ye.span,D=W(O,A.start),de=e.textChanges.ChangeTracker.with(ye,function(_e){return re(_e,O,D)});return[ue.createCodeFixAction($,de,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,$,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[$]});function W(ye,O){var A=e.getTokenAtPosition(ye,O);return e.findAncestor(A,function(D){return D.kind===195})}function re(ye,O,A){if(A){for(var D=A.type,de=!1,_e=!1;D.kind===183||D.kind===184||D.kind===189;)D.kind===183?de=!0:D.kind===184&&(_e=!0),D=D.type;var y=e.factory.updateNamedTupleMember(A,A.dotDotDotToken||(_e?e.factory.createToken(25):void 0),A.name,A.questionToken||(de?e.factory.createToken(57):void 0),D);y!==A&&ye.replaceNode(O,A,y)}}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixSpelling",Y=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(A){var D=A.sourceFile,de=A.errorCode,_e=W(D,A.span.start,A,de);if(_e){var y=_e.node,V=_e.suggestedSymbol,Z=A.host.getCompilationSettings().target,E=e.textChanges.ChangeTracker.with(A,function(H){return re(H,D,y,V,Z)});return[ue.createCodeFixAction("spelling",E,[e.Diagnostics.Change_spelling_to_0,e.symbolName(V)],$,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[$],getAllCodeActions:function(A){return ue.codeFixAll(A,Y,function(D,de){var _e=W(de.file,de.start,A,de.code),y=A.host.getCompilationSettings().target;_e&&re(D,A.sourceFile,_e.node,_e.suggestedSymbol,y)})}});function W(A,D,de,_e){var y=e.getTokenAtPosition(A,D),V=y.parent;if(!((_e===e.Diagnostics.No_overload_matches_this_call.code||_e===e.Diagnostics.Type_0_is_not_assignable_to_type_1.code)&&!e.isJsxAttribute(V))){var Z=de.program.getTypeChecker(),E;if(e.isPropertyAccessExpression(V)&&V.name===y){e.Debug.assert(e.isMemberName(y),"Expected an identifier for spelling (property access)");var H=Z.getTypeAtLocation(V.expression);V.flags&32&&(H=Z.getNonNullableType(H)),E=Z.getSuggestedSymbolForNonexistentProperty(y,H)}else if(e.isQualifiedName(V)&&V.right===y){var L=Z.getSymbolAtLocation(V.left);L&&L.flags&1536&&(E=Z.getSuggestedSymbolForNonexistentModule(V.right,L))}else if(e.isImportSpecifier(V)&&V.name===y){e.Debug.assertNode(y,e.isIdentifier,"Expected an identifier for spelling (import)");var ee=e.findAncestor(y,e.isImportDeclaration),k=O(A,de,ee);k&&k.symbol&&(E=Z.getSuggestedSymbolForNonexistentModule(y,k.symbol))}else if(e.isJsxAttribute(V)&&V.name===y){e.Debug.assertNode(y,e.isIdentifier,"Expected an identifier for JSX attribute");var b=e.findAncestor(y,e.isJsxOpeningLikeElement),ie=Z.getContextualTypeForArgumentAtIndex(b,0);E=Z.getSuggestedSymbolForNonexistentJSXAttribute(y,ie)}else if(e.hasSyntacticModifier(V,16384)&&e.isClassElement(V)&&V.name===y){var q=e.findAncestor(y,e.isClassLike),oe=q?e.getEffectiveBaseTypeNode(q):void 0,se=oe?Z.getTypeAtLocation(oe):void 0;se&&(E=Z.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(y),se))}else{var w=e.getMeaningFromLocation(y),R=e.getTextOfNode(y);e.Debug.assert(R!==void 0,"name should be defined"),E=Z.getSuggestedSymbolForNonexistentSymbol(y,R,ye(w))}return E===void 0?void 0:{node:y,suggestedSymbol:E}}}function re(A,D,de,_e,y){var V=e.symbolName(_e);if(!e.isIdentifierText(V,y)&&e.isPropertyAccessExpression(de.parent)){var Z=_e.valueDeclaration;Z&&e.isNamedDeclaration(Z)&&e.isPrivateIdentifier(Z.name)?A.replaceNode(D,de,e.factory.createIdentifier(V)):A.replaceNode(D,de.parent,e.factory.createElementAccessExpression(de.parent.expression,e.factory.createStringLiteral(V)))}else A.replaceNode(D,de,e.factory.createIdentifier(V))}function ye(A){var D=0;return A&4&&(D|=1920),A&2&&(D|=788968),A&1&&(D|=111551),D}function O(A,D,de){if(!(!de||!e.isStringLiteralLike(de.moduleSpecifier))){var _e=e.getResolvedModule(A,de.moduleSpecifier.text);if(_e)return D.program.getSourceFile(_e.resolvedFileName)}}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="returnValueCorrect",Y="fixAddReturnStatement",W="fixRemoveBracesFromArrowFunctionBody",re="fixWrapTheBlockWithParen",ye=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],O;(function(k){k[k.MissingReturnStatement=0]="MissingReturnStatement",k[k.MissingParentheses=1]="MissingParentheses"})(O||(O={})),ue.registerCodeFix({errorCodes:ye,fixIds:[Y,W,re],getCodeActions:function(k){var b=k.program,ie=k.sourceFile,q=k.span.start,oe=k.errorCode,se=_e(b.getTypeChecker(),ie,q,oe);if(se)return se.kind===O.MissingReturnStatement?e.append([H(k,se.expression,se.statement)],e.isArrowFunction(se.declaration)?L(k,se.declaration,se.expression,se.commentSource):void 0):[ee(k,se.declaration,se.expression)]},getAllCodeActions:function(k){return ue.codeFixAll(k,ye,function(b,ie){var q=_e(k.program.getTypeChecker(),ie.file,ie.start,ie.code);if(q)switch(k.fixId){case Y:V(b,ie.file,q.expression,q.statement);break;case W:if(!e.isArrowFunction(q.declaration))return;Z(b,ie.file,q.declaration,q.expression,q.commentSource,!1);break;case re:if(!e.isArrowFunction(q.declaration))return;E(b,ie.file,q.declaration,q.expression);break;default:e.Debug.fail(JSON.stringify(k.fixId))}})}});function A(k,b,ie){var q=k.createSymbol(4,b.escapedText);q.type=k.getTypeAtLocation(ie);var oe=e.createSymbolTable([q]);return k.createAnonymousType(void 0,oe,[],[],[])}function D(k,b,ie,q){if(!(!b.body||!e.isBlock(b.body)||e.length(b.body.statements)!==1)){var oe=e.first(b.body.statements);if(e.isExpressionStatement(oe)&&de(k,b,k.getTypeAtLocation(oe.expression),ie,q))return{declaration:b,kind:O.MissingReturnStatement,expression:oe.expression,statement:oe,commentSource:oe.expression};if(e.isLabeledStatement(oe)&&e.isExpressionStatement(oe.statement)){var se=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(oe.label,oe.statement.expression)]),w=A(k,oe.label,oe.statement.expression);if(de(k,b,w,ie,q))return e.isArrowFunction(b)?{declaration:b,kind:O.MissingParentheses,expression:se,statement:oe,commentSource:oe.statement.expression}:{declaration:b,kind:O.MissingReturnStatement,expression:se,statement:oe,commentSource:oe.statement.expression}}else if(e.isBlock(oe)&&e.length(oe.statements)===1){var R=e.first(oe.statements);if(e.isLabeledStatement(R)&&e.isExpressionStatement(R.statement)){var se=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(R.label,R.statement.expression)]),w=A(k,R.label,R.statement.expression);if(de(k,b,w,ie,q))return{declaration:b,kind:O.MissingReturnStatement,expression:se,statement:oe,commentSource:R}}}}}function de(k,b,ie,q,oe){if(oe){var se=k.getSignatureFromDeclaration(b);if(se){e.hasSyntacticModifier(b,256)&&(ie=k.createPromiseType(ie));var w=k.createSignature(b,se.typeParameters,se.thisParameter,se.parameters,ie,void 0,se.minArgumentCount,se.flags);ie=k.createAnonymousType(void 0,e.createSymbolTable(),[w],[],[])}else ie=k.getAnyType()}return k.isTypeAssignableTo(ie,q)}function _e(k,b,ie,q){var oe=e.getTokenAtPosition(b,ie);if(oe.parent){var se=e.findAncestor(oe.parent,e.isFunctionLikeDeclaration);switch(q){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return!se||!se.body||!se.type||!e.rangeContainsRange(se.type,oe)?void 0:D(k,se,k.getTypeFromTypeNode(se.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!se||!e.isCallExpression(se.parent)||!se.body)return;var w=se.parent.arguments.indexOf(se),R=k.getContextualTypeForArgumentAtIndex(se.parent,w);return R?D(k,se,R,!0):void 0;case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(oe)||!e.isVariableLike(oe.parent)&&!e.isJsxAttribute(oe.parent))return;var ne=y(oe.parent);return!ne||!e.isFunctionLikeDeclaration(ne)||!ne.body?void 0:D(k,ne,k.getTypeAtLocation(oe.parent),!0)}}}function y(k){switch(k.kind){case 252:case 162:case 201:case 165:case 291:return k.initializer;case 283:return k.initializer&&(e.isJsxExpression(k.initializer)?k.initializer.expression:void 0);case 292:case 164:case 294:case 342:case 335:return}}function V(k,b,ie,q){e.suppressLeadingAndTrailingTrivia(ie);var oe=e.probablyUsesSemicolons(b);k.replaceNode(b,q,e.factory.createReturnStatement(ie),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:oe?";":void 0})}function Z(k,b,ie,q,oe,se){var w=se||e.needsParentheses(q)?e.factory.createParenthesizedExpression(q):q;e.suppressLeadingAndTrailingTrivia(oe),e.copyComments(oe,w),k.replaceNode(b,ie.body,w)}function E(k,b,ie,q){k.replaceNode(b,ie.body,e.factory.createParenthesizedExpression(q))}function H(k,b,ie){var q=e.textChanges.ChangeTracker.with(k,function(oe){return V(oe,k.sourceFile,b,ie)});return ue.createCodeFixAction($,q,e.Diagnostics.Add_a_return_statement,Y,e.Diagnostics.Add_all_missing_return_statement)}function L(k,b,ie,q){var oe=e.textChanges.ChangeTracker.with(k,function(se){return Z(se,k.sourceFile,b,ie,q,!1)});return ue.createCodeFixAction($,oe,e.Diagnostics.Remove_braces_from_arrow_function_body,W,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function ee(k,b,ie){var q=e.textChanges.ChangeTracker.with(k,function(oe){return E(oe,k.sourceFile,b,ie)});return ue.createCodeFixAction($,q,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,re,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixMissingMember",Y="fixMissingProperties",W="fixMissingAttributes",re="fixMissingFunctionDeclaration",ye=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Cannot_find_name_0.code];ue.registerCodeFix({errorCodes:ye,getCodeActions:function(C){var d=C.program.getTypeChecker(),G=A(C.sourceFile,C.span.start,d,C.program);if(G){if(G.kind===3){var g=e.textChanges.ChangeTracker.with(C,function(p){return se(p,C,G)});return[ue.createCodeFixAction(Y,g,e.Diagnostics.Add_missing_properties,Y,e.Diagnostics.Add_all_missing_properties)]}if(G.kind===4){var g=e.textChanges.ChangeTracker.with(C,function(f){return oe(f,C,G)});return[ue.createCodeFixAction(W,g,e.Diagnostics.Add_missing_attributes,W,e.Diagnostics.Add_all_missing_attributes)]}if(G.kind===2){var g=e.textChanges.ChangeTracker.with(C,function(f){return q(f,C,G)});return[ue.createCodeFixAction(re,g,[e.Diagnostics.Add_missing_function_declaration_0,G.token.text],re,e.Diagnostics.Add_all_missing_function_declarations)]}if(G.kind===0){var g=e.textChanges.ChangeTracker.with(C,function(f){return ie(f,C.program.getTypeChecker(),G)});return[ue.createCodeFixAction($,g,[e.Diagnostics.Add_missing_enum_member_0,G.token.text],$,e.Diagnostics.Add_all_missing_members)]}return e.concatenate(k(C,G),de(C,G))}},fixIds:[$,re,Y,W],getAllCodeActions:function(C){var d=C.program,G=C.fixId,g=d.getTypeChecker(),p=new e.Map,f=new e.Map;return ue.createCombinedCodeActions(e.textChanges.ChangeTracker.with(C,function(T){ue.eachDiagnostic(C,ye,function(m){var N=A(m.file,m.start,g,C.program);if(!(!N||!e.addToSeen(p,e.getNodeId(N.parentDeclaration)+"#"+N.token.text))){if(G===re&&N.kind===2)q(T,C,N);else if(G===Y&&N.kind===3)se(T,C,N);else if(G===W&&N.kind===4)oe(T,C,N);else if(N.kind===0&&ie(T,g,N),N.kind===1){var P=N.parentDeclaration,x=N.token,M=e.getOrUpdate(f,P,function(){return[]});M.some(function(me){return me.token.text===x.text})||M.push(N)}}}),f.forEach(function(m,N){for(var P=ue.getAllSupers(N,g),x=function(K){if(P.some(function(Be){var De=f.get(Be);return!!De&&De.some(function(en){var fe=en.token;return fe.text===K.token.text})}))return"continue";var I=K.parentDeclaration,Ae=K.declSourceFile,Oe=K.modifierFlags,te=K.token,Se=K.call,be=K.isJSFile;if(Se&&!e.isPrivateIdentifier(te))b(C,T,Se,te,Oe&32,I,Ae);else if(be&&!e.isInterfaceDeclaration(I))y(T,Ae,I,te,!!(Oe&32));else{var Ce=E(d.getTypeChecker(),I,te);H(T,Ae,I,te.text,Ce,Oe&32)}},M=0,me=m;M<me.length;M++){var z=me[M];x(z)}})}))}});var O;(function(C){C[C.Enum=0]="Enum",C[C.ClassOrInterface=1]="ClassOrInterface",C[C.Function=2]="Function",C[C.ObjectLiteral=3]="ObjectLiteral",C[C.JsxAttributes=4]="JsxAttributes"})(O||(O={}));function A(C,d,G,g){var p=e.getTokenAtPosition(C,d);if(!(!e.isIdentifier(p)&&!e.isPrivateIdentifier(p))){var f=p.parent;if(e.isIdentifier(p)&&e.hasInitializer(f)&&f.initializer&&e.isObjectLiteralExpression(f.initializer)){var T=e.arrayFrom(G.getUnmatchedProperties(G.getTypeAtLocation(f.initializer),G.getTypeAtLocation(p),!1,!1));if(e.length(T))return{kind:3,token:p,properties:T,parentDeclaration:f.initializer}}if(e.isIdentifier(p)&&e.isJsxOpeningLikeElement(p.parent)){var m=U(G,p.parent);if(e.length(m))return{kind:4,token:p,attributes:m,parentDeclaration:p.parent}}if(e.isIdentifier(p)&&e.isCallExpression(f))return{kind:2,token:p,call:f,sourceFile:C,modifierFlags:0,parentDeclaration:C};if(e.isPropertyAccessExpression(f)){var N=e.skipConstraint(G.getTypeAtLocation(f.expression)),P=N.symbol;if(!(!P||!P.declarations)){if(e.isIdentifier(p)&&e.isCallExpression(f.parent)){var x=e.find(P.declarations,e.isModuleDeclaration),M=x==null?void 0:x.getSourceFile();if(x&&M&&!D(g,M))return{kind:2,token:p,call:f.parent,sourceFile:C,modifierFlags:1,parentDeclaration:x};var me=e.find(P.declarations,e.isSourceFile);if(C.commonJsModuleIndicator)return;if(me&&!D(g,me))return{kind:2,token:p,call:f.parent,sourceFile:me,modifierFlags:1,parentDeclaration:me}}var z=e.find(P.declarations,e.isClassLike);if(!(!z&&e.isPrivateIdentifier(p))){var K=z||e.find(P.declarations,e.isInterfaceDeclaration);if(K&&!D(g,K.getSourceFile())){var I=(N.target||N)!==G.getDeclaredTypeOfSymbol(P);if(I&&(e.isPrivateIdentifier(p)||e.isInterfaceDeclaration(K)))return;var Ae=K.getSourceFile(),Oe=(I?32:0)|(e.startsWithUnderscore(p.text)?8:0),te=e.isSourceFileJS(Ae),Se=e.tryCast(f.parent,e.isCallExpression);return{kind:1,token:p,call:Se,modifierFlags:Oe,parentDeclaration:K,declSourceFile:Ae,isJSFile:te}}var be=e.find(P.declarations,e.isEnumDeclaration);if(be&&!e.isPrivateIdentifier(p)&&!D(g,be.getSourceFile()))return{kind:0,token:p,parentDeclaration:be}}}}}}function D(C,d){return C.isSourceFileFromExternalLibrary(d)||C.isSourceFileDefaultLibrary(d)}function de(C,d){return d.isJSFile?e.singleElementArray(_e(C,d)):Z(C,d)}function _e(C,d){var G=d.parentDeclaration,g=d.declSourceFile,p=d.modifierFlags,f=d.token;if(!e.isInterfaceDeclaration(G)){var T=e.textChanges.ChangeTracker.with(C,function(N){return y(N,g,G,f,!!(p&32))});if(T.length!==0){var m=p&32?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(f)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return ue.createCodeFixAction($,T,[m,f.text],$,e.Diagnostics.Add_all_missing_members)}}}function y(C,d,G,g,p){var f=g.text;if(p){if(G.kind===224)return;var T=G.name.getText(),m=V(e.factory.createIdentifier(T),f);C.insertNodeAfter(d,G,m)}else if(e.isPrivateIdentifier(g)){var N=e.factory.createPropertyDeclaration(void 0,void 0,f,void 0,void 0,void 0),P=L(G);P?C.insertNodeAfter(d,P,N):C.insertNodeAtClassStart(d,G,N)}else{var x=e.getFirstConstructorWithBody(G);if(!x)return;var M=V(e.factory.createThis(),f);C.insertNodeAtConstructorEnd(d,x,M)}}function V(C,d){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(C,d),R()))}function Z(C,d){var G=d.parentDeclaration,g=d.declSourceFile,p=d.modifierFlags,f=d.token,T=f.text,m=p&32,N=E(C.program.getTypeChecker(),G,f),P=function(M){return e.textChanges.ChangeTracker.with(C,function(me){return H(me,g,G,T,N,M)})},x=[ue.createCodeFixAction($,P(p&32),[m?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,T],$,e.Diagnostics.Add_all_missing_members)];return m||e.isPrivateIdentifier(f)||(p&8&&x.unshift(ue.createCodeFixActionWithoutFixAll($,P(8),[e.Diagnostics.Declare_private_property_0,T])),x.push(ee(C,g,G,f.text,N))),x}function E(C,d,G){var g;if(G.parent.parent.kind===219){var p=G.parent.parent,f=G.parent===p.left?p.right:p.left,T=C.getWidenedType(C.getBaseTypeOfLiteralType(C.getTypeAtLocation(f)));g=C.typeToTypeNode(T,d,1)}else{var m=C.getContextualType(G.parent);g=m?C.typeToTypeNode(m,void 0,1):void 0}return g||e.factory.createKeywordTypeNode(129)}function H(C,d,G,g,p,f){var T=e.factory.createPropertyDeclaration(void 0,f?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(f)):void 0,g,void 0,p,void 0),m=L(G);m?C.insertNodeAfter(d,m,T):C.insertNodeAtClassStart(d,G,T)}function L(C){for(var d,G=0,g=C.members;G<g.length;G++){var p=g[G];if(!e.isPropertyDeclaration(p))break;d=p}return d}function ee(C,d,G,g,p){var f=e.factory.createKeywordTypeNode(148),T=e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,f,void 0),m=e.factory.createIndexSignature(void 0,void 0,[T],p),N=e.textChanges.ChangeTracker.with(C,function(P){return P.insertNodeAtClassStart(d,G,m)});return ue.createCodeFixActionWithoutFixAll($,N,[e.Diagnostics.Add_index_signature_for_property_0,g])}function k(C,d){var G=d.parentDeclaration,g=d.declSourceFile,p=d.modifierFlags,f=d.token,T=d.call;if(T!==void 0&&!e.isPrivateIdentifier(f)){var m=f.text,N=function(x){return e.textChanges.ChangeTracker.with(C,function(M){return b(C,M,T,f,x,G,g)})},P=[ue.createCodeFixAction($,N(p&32),[p&32?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,m],$,e.Diagnostics.Add_all_missing_members)];return p&8&&P.unshift(ue.createCodeFixActionWithoutFixAll($,N(8),[e.Diagnostics.Declare_private_method_0,m])),P}}function b(C,d,G,g,p,f,T){var m=ue.createImportAdder(T,C.program,C.preferences,C.host),N=ue.createSignatureDeclarationFromCallExpression(167,C,m,G,g,p,f),P=e.findAncestor(G,function(x){return e.isMethodDeclaration(x)||e.isConstructorDeclaration(x)});P&&P.parent===f?d.insertNodeAfter(T,P,N):d.insertNodeAtClassStart(T,f,N),m.writeFixes(d)}function ie(C,d,G){var g=G.token,p=G.parentDeclaration,f=e.some(p.members,function(m){var N=d.getTypeAtLocation(m);return!!(N&&N.flags&402653316)}),T=e.factory.createEnumMember(g,f?e.factory.createStringLiteral(g.text):void 0);C.replaceNode(p.getSourceFile(),p,e.factory.updateEnumDeclaration(p,p.decorators,p.modifiers,p.name,e.concatenate(p.members,e.singleElementArray(T))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}function q(C,d,G){var g=ue.createImportAdder(d.sourceFile,d.program,d.preferences,d.host),p=ue.createSignatureDeclarationFromCallExpression(254,d,g,G.call,e.idText(G.token),G.modifierFlags,G.parentDeclaration);C.insertNodeAtEndOfScope(G.sourceFile,G.parentDeclaration,p)}function oe(C,d,G){var g=ue.createImportAdder(d.sourceFile,d.program,d.preferences,d.host),p=e.getQuotePreference(d.sourceFile,d.preferences),f=d.program.getTypeChecker(),T=G.parentDeclaration.attributes,m=e.some(T.properties,e.isJsxSpreadAttribute),N=e.map(G.attributes,function(M){var me=M.valueDeclaration?w(d,f,g,p,f.getTypeAtLocation(M.valueDeclaration)):R();return e.factory.createJsxAttribute(e.factory.createIdentifier(M.name),e.factory.createJsxExpression(void 0,me))}),P=e.factory.createJsxAttributes(m?Vr(Vr([],N,!0),T.properties,!0):Vr(Vr([],T.properties,!0),N,!0)),x={prefix:T.pos===T.end?" ":void 0};C.replaceNode(d.sourceFile,T,P,x)}function se(C,d,G){var g=ue.createImportAdder(d.sourceFile,d.program,d.preferences,d.host),p=e.getQuotePreference(d.sourceFile,d.preferences),f=d.program.getTypeChecker(),T=e.map(G.properties,function(m){var N=m.valueDeclaration?w(d,f,g,p,f.getTypeAtLocation(m.valueDeclaration)):R();return e.factory.createPropertyAssignment(m.name,N)});C.replaceNode(d.sourceFile,G.parentDeclaration,e.factory.createObjectLiteralExpression(Vr(Vr([],G.parentDeclaration.properties,!0),T,!0),!0))}function w(C,d,G,g,p){if(p.flags&3)return R();if(p.flags&134217732)return e.factory.createStringLiteral("",g===0);if(p.flags&8)return e.factory.createNumericLiteral(0);if(p.flags&64)return e.factory.createBigIntLiteral("0n");if(p.flags&16)return e.factory.createFalse();if(p.flags&1056){var f=p.symbol.exports?e.firstOrUndefined(e.arrayFrom(p.symbol.exports.values())):p.symbol,T=d.symbolToExpression(p.symbol.parent?p.symbol.parent:p.symbol,111551,void 0,void 0);return f===void 0||T===void 0?e.factory.createNumericLiteral(0):e.factory.createPropertyAccessExpression(T,d.symbolToString(f))}if(p.flags&256)return e.factory.createNumericLiteral(p.value);if(p.flags&2048)return e.factory.createBigIntLiteral(p.value);if(p.flags&128)return e.factory.createStringLiteral(p.value,g===0);if(p.flags&512)return p===d.getFalseType()||p===d.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(p.flags&65536)return e.factory.createNull();if(p.flags&1048576){var m=e.firstDefined(p.types,function(K){return w(C,d,G,g,K)});return m!=null?m:R()}if(d.isArrayLikeType(p))return e.factory.createArrayLiteralExpression();if(ne(p)){var N=e.map(d.getPropertiesOfType(p),function(K){var I=K.valueDeclaration?w(C,d,G,g,d.getTypeAtLocation(K.valueDeclaration)):R();return e.factory.createPropertyAssignment(K.name,I)});return e.factory.createObjectLiteralExpression(N,!0)}if(e.getObjectFlags(p)&16){var P=e.find(p.symbol.declarations||e.emptyArray,e.or(e.isFunctionTypeNode,e.isMethodSignature,e.isMethodDeclaration));if(P===void 0)return R();var x=d.getSignaturesOfType(p,0);if(x===void 0)return R();var M=ue.createSignatureDeclarationFromSignature(211,C,g,x[0],ue.createStubbedBody(e.Diagnostics.Function_not_implemented.message,g),void 0,void 0,void 0,void 0,G);return M!=null?M:R()}if(e.getObjectFlags(p)&1){var me=e.getClassLikeDeclarationOfSymbol(p.symbol);if(me===void 0||e.hasAbstractModifier(me))return R();var z=e.getFirstConstructorWithBody(me);return z&&e.length(z.parameters)?R():e.factory.createNewExpression(e.factory.createIdentifier(p.symbol.name),void 0,void 0)}return R()}function R(){return e.factory.createIdentifier("undefined")}function ne(C){return C.flags&524288&&(e.getObjectFlags(C)&128||C.symbol&&e.tryCast(e.singleOrUndefined(C.symbol.declarations),e.isTypeLiteralNode))}function U(C,d){var G=C.getContextualType(d.attributes);if(G===void 0)return e.emptyArray;var g=G.getProperties();if(!e.length(g))return e.emptyArray;for(var p=new e.Set,f=0,T=d.attributes.properties;f<T.length;f++){var m=T[f];if(e.isJsxAttribute(m)&&p.add(m.name.escapedText),e.isJsxSpreadAttribute(m))for(var N=C.getTypeAtLocation(m.expression),P=0,x=N.getProperties();P<x.length;P++){var M=x[P];p.add(M.escapedName)}}return e.filter(g,function(me){return!(me.flags&16777216||e.getCheckFlags(me)&48||p.has(me.escapedName))})}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="addMissingNewOperator",Y=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ye){var O=ye.sourceFile,A=ye.span,D=e.textChanges.ChangeTracker.with(ye,function(de){return W(de,O,A)});return[ue.createCodeFixAction($,D,e.Diagnostics.Add_missing_new_operator_to_call,$,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[$],getAllCodeActions:function(ye){return ue.codeFixAll(ye,Y,function(O,A){return W(O,ye.sourceFile,A)})}});function W(ye,O,A){var D=e.cast(re(O,A),e.isCallExpression),de=e.factory.createNewExpression(D.expression,D.typeArguments,D.arguments);ye.replaceNode(O,D,de)}function re(ye,O){for(var A=e.getTokenAtPosition(ye,O.start),D=e.textSpanEnd(O);A.end<D;)A=A.parent;return A}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixCannotFindModule",Y="installTypesPackage",W=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,re=[W,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];ue.registerCodeFix({errorCodes:re,getCodeActions:function(D){var de=D.host,_e=D.sourceFile,y=D.span.start,V=O(_e,y);if(V!==void 0){var Z=A(V,de,D.errorCode);return Z===void 0?[]:[ue.createCodeFixAction($,[],[e.Diagnostics.Install_0,Z],Y,e.Diagnostics.Install_all_missing_types_packages,ye(_e.fileName,Z))]}},fixIds:[Y],getAllCodeActions:function(D){return ue.codeFixAll(D,re,function(de,_e,y){var V=O(_e.file,_e.start);if(V!==void 0)switch(D.fixId){case Y:{var Z=A(V,D.host,_e.code);Z&&y.push(ye(_e.file.fileName,Z));break}default:e.Debug.fail("Bad fixId: "+D.fixId)}})}});function ye(D,de){return{type:"install package",file:D,packageName:de}}function O(D,de){var _e=e.tryCast(e.getTokenAtPosition(D,de),e.isStringLiteral);if(_e){var y=_e.text,V=e.parsePackageName(y).packageName;return e.isExternalModuleNameRelative(V)?void 0:V}}function A(D,de,_e){var y;return _e===W?e.JsTyping.nodeCoreModules.has(D)?"@types/node":void 0:!((y=de.isKnownTypesPackageName)===null||y===void 0)&&y.call(de,D)?e.getTypesPackageName(D):void 0}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $=[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],Y="fixClassDoesntImplementInheritedAbstractMember";ue.registerCodeFix({errorCodes:$,getCodeActions:function(O){var A=O.sourceFile,D=O.span,de=e.textChanges.ChangeTracker.with(O,function(_e){return re(W(A,D.start),A,O,_e,O.preferences)});return de.length===0?void 0:[ue.createCodeFixAction(Y,de,e.Diagnostics.Implement_inherited_abstract_class,Y,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[Y],getAllCodeActions:function(O){var A=new e.Map;return ue.codeFixAll(O,$,function(D,de){var _e=W(de.file,de.start);e.addToSeen(A,e.getNodeId(_e))&&re(_e,O.sourceFile,O,D,O.preferences)})}});function W(O,A){var D=e.getTokenAtPosition(O,A);return e.cast(D.parent,e.isClassLike)}function re(O,A,D,de,_e){var y=e.getEffectiveBaseTypeNode(O),V=D.program.getTypeChecker(),Z=V.getTypeAtLocation(y),E=V.getPropertiesOfType(Z).filter(ye),H=ue.createImportAdder(A,D.program,_e,D.host);ue.createMissingMemberNodes(O,E,A,D,_e,H,function(L){return de.insertNodeAtClassStart(A,O,L)}),H.writeFixes(de)}function ye(O){var A=e.getSyntacticModifierFlags(e.first(O.getDeclarations()));return!(A&8)&&!!(A&128)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="classSuperMustPrecedeThisAccess",Y=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(O){var A=O.sourceFile,D=O.span,de=re(A,D.start);if(de){var _e=de.constructor,y=de.superCall,V=e.textChanges.ChangeTracker.with(O,function(Z){return W(Z,A,_e,y)});return[ue.createCodeFixAction($,V,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,$,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[$],getAllCodeActions:function(O){var A=O.sourceFile,D=new e.Map;return ue.codeFixAll(O,Y,function(de,_e){var y=re(_e.file,_e.start);if(y){var V=y.constructor,Z=y.superCall;e.addToSeen(D,e.getNodeId(V.parent))&&W(de,A,V,Z)}})}});function W(O,A,D,de){O.insertNodeAtConstructorStart(A,D,de),O.delete(A,de)}function re(O,A){var D=e.getTokenAtPosition(O,A);if(D.kind===108){var de=e.getContainingFunction(D),_e=ye(de.body);return _e&&!_e.expression.arguments.some(function(y){return e.isPropertyAccessExpression(y)&&y.expression===D})?{constructor:de,superCall:_e}:void 0}}function ye(O){return e.isExpressionStatement(O)&&e.isSuperCall(O.expression)?O:e.isFunctionLike(O)?void 0:e.forEachChild(O,ye)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="constructorForDerivedNeedSuperCall",Y=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ye){var O=ye.sourceFile,A=ye.span,D=W(O,A.start),de=e.textChanges.ChangeTracker.with(ye,function(_e){return re(_e,O,D)});return[ue.createCodeFixAction($,de,e.Diagnostics.Add_missing_super_call,$,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[$],getAllCodeActions:function(ye){return ue.codeFixAll(ye,Y,function(O,A){return re(O,ye.sourceFile,W(A.file,A.start))})}});function W(ye,O){var A=e.getTokenAtPosition(ye,O);return e.Debug.assert(e.isConstructorDeclaration(A.parent),"token should be at the constructor declaration"),A.parent}function re(ye,O,A){var D=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));ye.insertNodeAtConstructorStart(O,A,D)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="enableExperimentalDecorators",Y=[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];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(re){var ye=re.program.getCompilerOptions().configFile;if(ye!==void 0){var O=e.textChanges.ChangeTracker.with(re,function(A){return W(A,ye)});return[ue.createCodeFixActionWithoutFixAll($,O,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[$],getAllCodeActions:function(re){return ue.codeFixAll(re,Y,function(ye){var O=re.program.getCompilerOptions().configFile;O!==void 0&&W(ye,O)})}});function W(re,ye){ue.setJsonCompilerOptionValue(re,ye,"experimentalDecorators",e.factory.createTrue())}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixEnableJsxFlag",Y=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(re){var ye=re.program.getCompilerOptions().configFile;if(ye!==void 0){var O=e.textChanges.ChangeTracker.with(re,function(A){return W(A,ye)});return[ue.createCodeFixActionWithoutFixAll($,O,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[$],getAllCodeActions:function(re){return ue.codeFixAll(re,Y,function(ye){var O=re.program.getCompilerOptions().configFile;O!==void 0&&W(ye,O)})}});function W(re,ye){ue.setJsonCompilerOptionValue(re,ye,"jsx",e.factory.createStringLiteral("react"))}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){ue.registerCodeFix({errorCodes:[e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher.code,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function($){var Y=$.program.getCompilerOptions(),W=Y.configFile;if(W!==void 0){var re=[],ye=e.getEmitModuleKind(Y),O=ye>=e.ModuleKind.ES2015&&ye<e.ModuleKind.ESNext;if(O){var A=e.textChanges.ChangeTracker.with($,function(_e){ue.setJsonCompilerOptionValue(_e,W,"module",e.factory.createStringLiteral("esnext"))});re.push(ue.createCodeFixActionWithoutFixAll("fixModuleOption",A,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var D=e.getEmitScriptTarget(Y),de=D<4||D>99;if(de){var A=e.textChanges.ChangeTracker.with($,function(y){var V=e.getTsConfigObjectLiteralExpression(W);if(V){var Z=[["target",e.factory.createStringLiteral("es2017")]];ye===e.ModuleKind.CommonJS&&Z.push(["module",e.factory.createStringLiteral("commonjs")]),ue.setJsonCompilerOptionValues(y,W,Z)}});re.push(ue.createCodeFixActionWithoutFixAll("fixTargetOption",A,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return re.length?re:void 0}}})})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixPropertyAssignment",Y=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];ue.registerCodeFix({errorCodes:Y,fixIds:[$],getCodeActions:function(ye){var O=ye.sourceFile,A=ye.span,D=re(O,A.start),de=e.textChanges.ChangeTracker.with(ye,function(_e){return W(_e,ye.sourceFile,D)});return[ue.createCodeFixAction($,de,[e.Diagnostics.Change_0_to_1,"=",":"],$,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(ye){return ue.codeFixAll(ye,Y,function(O,A){return W(O,A.file,re(A.file,A.start))})}});function W(ye,O,A){ye.replaceNode(O,A,e.factory.createPropertyAssignment(A.name,A.objectAssignmentInitializer))}function re(ye,O){return e.cast(e.getTokenAtPosition(ye,O).parent,e.isShorthandPropertyAssignment)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="extendsInterfaceBecomesImplements",Y=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ye){var O=ye.sourceFile,A=W(O,ye.span.start);if(A){var D=A.extendsToken,de=A.heritageClauses,_e=e.textChanges.ChangeTracker.with(ye,function(y){return re(y,O,D,de)});return[ue.createCodeFixAction($,_e,e.Diagnostics.Change_extends_to_implements,$,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[$],getAllCodeActions:function(ye){return ue.codeFixAll(ye,Y,function(O,A){var D=W(A.file,A.start);D&&re(O,A.file,D.extendsToken,D.heritageClauses)})}});function W(ye,O){var A=e.getTokenAtPosition(ye,O),D=e.getContainingClass(A).heritageClauses,de=D[0].getFirstToken();return de.kind===94?{extendsToken:de,heritageClauses:D}:void 0}function re(ye,O,A,D){if(ye.replaceNode(O,A,e.factory.createToken(117)),D.length===2&&D[0].token===94&&D[1].token===117){var de=D[1].getFirstToken(),_e=de.getFullStart();ye.replaceRange(O,{pos:_e,end:_e},e.factory.createToken(27));for(var y=O.text,V=de.end;V<y.length&&e.isWhiteSpaceSingleLine(y.charCodeAt(V));)V++;ye.deleteRange(O,{pos:de.getStart(),end:V})}}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="forgottenThisPropertyAccess",Y=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,W=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code,Y];ue.registerCodeFix({errorCodes:W,getCodeActions:function(O){var A=O.sourceFile,D=re(A,O.span.start,O.errorCode);if(D){var de=e.textChanges.ChangeTracker.with(O,function(_e){return ye(_e,A,D)});return[ue.createCodeFixAction($,de,[e.Diagnostics.Add_0_to_unresolved_variable,D.className||"this"],$,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[$],getAllCodeActions:function(O){return ue.codeFixAll(O,W,function(A,D){var de=re(D.file,D.start,D.code);de&&ye(A,O.sourceFile,de)})}});function re(O,A,D){var de=e.getTokenAtPosition(O,A);if(e.isIdentifier(de))return{node:de,className:D===Y?e.getContainingClass(de).name.text:void 0}}function ye(O,A,D){var de=D.node,_e=D.className;e.suppressLeadingAndTrailingTrivia(de),O.replaceNode(A,de,e.factory.createPropertyAccessExpression(_e?e.factory.createIdentifier(_e):e.factory.createThis(),de))}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixInvalidJsxCharacters_expression",Y="fixInvalidJsxCharacters_htmlEntity",W=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];ue.registerCodeFix({errorCodes:W,fixIds:[$,Y],getCodeActions:function(A){var D=A.sourceFile,de=A.preferences,_e=A.span,y=e.textChanges.ChangeTracker.with(A,function(Z){return O(Z,de,D,_e.start,!1)}),V=e.textChanges.ChangeTracker.with(A,function(Z){return O(Z,de,D,_e.start,!0)});return[ue.createCodeFixAction($,y,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,$,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),ue.createCodeFixAction(Y,V,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,Y,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(A){return ue.codeFixAll(A,W,function(D,de){return O(D,A.preferences,de.file,de.start,A.fixId===Y)})}});var re={">":"&gt;","}":"&rbrace;"};function ye(A){return e.hasProperty(re,A)}function O(A,D,de,_e,y){var V=de.getText()[_e];if(ye(V)){var Z=y?re[V]:"{"+e.quote(de,D,V)+"}";A.replaceRangeWithText(de,{pos:_e,end:_e+1},Z)}}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="unusedIdentifier",Y="unusedIdentifier_prefix",W="unusedIdentifier_delete",re="unusedIdentifier_deleteImports",ye="unusedIdentifier_infer",O=[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];ue.registerCodeFix({errorCodes:O,getCodeActions:function(R){var ne=R.errorCode,U=R.sourceFile,C=R.program,d=R.cancellationToken,G=C.getTypeChecker(),g=C.getSourceFiles(),p=e.getTokenAtPosition(U,R.span.start);if(e.isJSDocTemplateTag(p))return[D(e.textChanges.ChangeTracker.with(R,function(z){return z.delete(U,p)}),e.Diagnostics.Remove_template_tag)];if(p.kind===29){var f=e.textChanges.ChangeTracker.with(R,function(z){return de(z,U,p)});return[D(f,e.Diagnostics.Remove_type_parameters)]}var T=y(p);if(T){var f=e.textChanges.ChangeTracker.with(R,function(K){return K.delete(U,T)});return[ue.createCodeFixAction($,f,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(T)],re,e.Diagnostics.Delete_all_unused_imports)]}else if(_e(p)){var m=e.textChanges.ChangeTracker.with(R,function(z){return ee(U,p,z,G,g,C,d,!1)});if(m.length)return[ue.createCodeFixAction($,m,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,p.getText(U)],re,e.Diagnostics.Delete_all_unused_imports)]}if(e.isObjectBindingPattern(p.parent)||e.isArrayBindingPattern(p.parent)){if(e.isParameter(p.parent.parent)){var N=p.parent.elements,P=[N.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(N,function(z){return z.getText(U)}).join(", ")];return[D(e.textChanges.ChangeTracker.with(R,function(z){return E(z,U,p.parent)}),P)]}return[D(e.textChanges.ChangeTracker.with(R,function(z){return z.delete(U,p.parent.parent)}),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(V(U,p))return[D(e.textChanges.ChangeTracker.with(R,function(z){return Z(z,U,p.parent)}),e.Diagnostics.Remove_variable_statement)];var x=[];if(p.kind===136){var f=e.textChanges.ChangeTracker.with(R,function(K){return A(K,U,p)}),M=e.cast(p.parent,e.isInferTypeNode).typeParameter.name.text;x.push(ue.createCodeFixAction($,f,[e.Diagnostics.Replace_infer_0_with_unknown,M],ye,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var m=e.textChanges.ChangeTracker.with(R,function(K){return ee(U,p,K,G,g,C,d,!1)});if(m.length){var M=e.isComputedPropertyName(p.parent)?p.parent:p;x.push(D(m,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,M.getText(U)]))}}var me=e.textChanges.ChangeTracker.with(R,function(z){return H(z,ne,U,p)});return me.length&&x.push(ue.createCodeFixAction($,me,[e.Diagnostics.Prefix_0_with_an_underscore,p.getText(U)],Y,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),x},fixIds:[Y,W,re,ye],getAllCodeActions:function(R){var ne=R.sourceFile,U=R.program,C=R.cancellationToken,d=U.getTypeChecker(),G=U.getSourceFiles();return ue.codeFixAll(R,O,function(g,p){var f=e.getTokenAtPosition(ne,p.start);switch(R.fixId){case Y:H(g,p.code,ne,f);break;case re:{var T=y(f);T?g.delete(ne,T):_e(f)&&ee(ne,f,g,d,G,U,C,!0);break}case W:{if(f.kind===136||_e(f))break;if(e.isJSDocTemplateTag(f))g.delete(ne,f);else if(f.kind===29)de(g,ne,f);else if(e.isObjectBindingPattern(f.parent)){if(f.parent.parent.initializer)break;(!e.isParameter(f.parent.parent)||ie(f.parent.parent,d,G))&&g.delete(ne,f.parent.parent)}else{if(e.isArrayBindingPattern(f.parent.parent)&&f.parent.parent.parent.initializer)break;V(ne,f)?Z(g,ne,f.parent):ee(ne,f,g,d,G,U,C,!0)}break}case ye:f.kind===136&&A(g,ne,f);break;default:e.Debug.fail(JSON.stringify(R.fixId))}})}});function A(R,ne,U){R.replaceNode(ne,U.parent,e.factory.createKeywordTypeNode(153))}function D(R,ne){return ue.createCodeFixAction($,R,ne,W,e.Diagnostics.Delete_all_unused_declarations)}function de(R,ne,U){R.delete(ne,e.Debug.checkDefined(e.cast(U.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function _e(R){return R.kind===100||R.kind===79&&(R.parent.kind===268||R.parent.kind===265)}function y(R){return R.kind===100?e.tryCast(R.parent,e.isImportDeclaration):void 0}function V(R,ne){return e.isVariableDeclarationList(ne.parent)&&e.first(ne.parent.getChildren(R))===ne}function Z(R,ne,U){R.delete(ne,U.parent.kind===235?U.parent:U)}function E(R,ne,U){e.forEach(U.elements,function(C){return R.delete(ne,C)})}function H(R,ne,U,C){ne!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(C.kind===136&&(C=e.cast(C.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(C)&&L(C)&&(R.replaceNode(U,C,e.factory.createIdentifier("_"+C.text)),e.isParameter(C.parent)&&e.getJSDocParameterTags(C.parent).forEach(function(d){e.isIdentifier(d.name)&&R.replaceNode(U,d.name,e.factory.createIdentifier("_"+d.name.text))})))}function L(R){switch(R.parent.kind){case 162:case 161:return!0;case 252:{var ne=R.parent;switch(ne.parent.parent.kind){case 242:case 241:return!0}}}return!1}function ee(R,ne,U,C,d,G,g,p){k(ne,U,R,C,d,G,g,p),e.isIdentifier(ne)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(ne,C,R,function(f){e.isPropertyAccessExpression(f.parent)&&f.parent.name===f&&(f=f.parent),!p&&w(f)&&U.delete(R,f.parent.parent)})}function k(R,ne,U,C,d,G,g,p){var f=R.parent;if(e.isParameter(f))b(ne,U,f,C,d,G,g,p);else if(!(p&&e.isIdentifier(R)&&e.FindAllReferences.Core.isSymbolReferencedInFile(R,C,U))){var T=e.isImportClause(f)?R:e.isComputedPropertyName(f)?f.parent:f;e.Debug.assert(T!==U,"should not delete whole source file"),ne.delete(U,T)}}function b(R,ne,U,C,d,G,g,p){p===void 0&&(p=!1),q(C,ne,U,d,G,g,p)&&(U.modifiers&&U.modifiers.length>0&&(!e.isIdentifier(U.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(U.name,C,ne))?U.modifiers.forEach(function(f){return R.deleteModifier(ne,f)}):!U.initializer&&ie(U,C,d)&&R.delete(ne,U))}function ie(R,ne,U){var C=R.parent.parameters.indexOf(R);return!e.FindAllReferences.Core.someSignatureUsage(R.parent,U,ne,function(d,G){return!G||G.arguments.length>C})}function q(R,ne,U,C,d,G,g){var p=U.parent;switch(p.kind){case 167:case 169:var f=p.parameters.indexOf(U),T=e.isMethodDeclaration(p)?p.name:p,m=e.FindAllReferences.Core.getReferencedSymbolsForNode(p.pos,T,d,C,G);if(m)for(var N=0,P=m;N<P.length;N++)for(var x=P[N],M=0,me=x.references;M<me.length;M++){var z=me[M];if(z.kind===1){var K=e.isSuperKeyword(z.node)&&e.isCallExpression(z.node.parent)&&z.node.parent.arguments.length>f,I=e.isPropertyAccessExpression(z.node.parent)&&e.isSuperKeyword(z.node.parent.expression)&&e.isCallExpression(z.node.parent.parent)&&z.node.parent.parent.arguments.length>f,Ae=(e.isMethodDeclaration(z.node.parent)||e.isMethodSignature(z.node.parent))&&z.node.parent!==U.parent&&z.node.parent.parameters.length>f;if(K||I||Ae)return!1}}return!0;case 254:return p.name&&oe(R,ne,p.name)?se(p,U,g):!0;case 211:case 212:return se(p,U,g);case 171:return!1;default:return e.Debug.failBadSyntaxKind(p)}}function oe(R,ne,U){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(U,R,ne,function(C){return e.isIdentifier(C)&&e.isCallExpression(C.parent)&&C.parent.arguments.indexOf(C)>=0})}function se(R,ne,U){var C=R.parameters,d=C.indexOf(ne);return e.Debug.assert(d!==-1,"The parameter should already be in the list"),U?C.slice(d+1).every(function(G){return e.isIdentifier(G.name)&&!G.symbol.isReferenced}):d===C.length-1}function w(R){return(e.isBinaryExpression(R.parent)&&R.parent.left===R||(e.isPostfixUnaryExpression(R.parent)||e.isPrefixUnaryExpression(R.parent))&&R.parent.operand===R)&&e.isExpressionStatement(R.parent.parent)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixUnreachableCode",Y=[e.Diagnostics.Unreachable_code_detected.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ye){var O=e.textChanges.ChangeTracker.with(ye,function(A){return W(A,ye.sourceFile,ye.span.start,ye.span.length,ye.errorCode)});return[ue.createCodeFixAction($,O,e.Diagnostics.Remove_unreachable_code,$,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[$],getAllCodeActions:function(ye){return ue.codeFixAll(ye,Y,function(O,A){return W(O,A.file,A.start,A.length,A.code)})}});function W(ye,O,A,D,de){var _e=e.getTokenAtPosition(O,A),y=e.findAncestor(_e,e.isStatement);if(y.getStart(O)!==_e.getStart(O)){var V=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(y.kind),tokenKind:e.Debug.formatSyntaxKind(_e.kind),errorCode:de,start:A,length:D});e.Debug.fail("Token and statement should start at the same point. "+V)}var Z=(e.isBlock(y.parent)?y.parent:y).parent;if(!e.isBlock(y.parent)||y===e.first(y.parent.statements))switch(Z.kind){case 237:if(Z.elseStatement){if(e.isBlock(y.parent))break;ye.replaceNode(O,y,e.factory.createBlock(e.emptyArray));return}case 239:case 240:ye.delete(O,Z);return}if(e.isBlock(y.parent)){var E=A+D,H=e.Debug.checkDefined(re(e.sliceAfter(y.parent.statements,y),function(L){return L.pos<E}),"Some statement should be last");ye.deleteNodeRange(O,y,H)}else ye.delete(O,y)}function re(ye,O){for(var A,D=0,de=ye;D<de.length;D++){var _e=de[D];if(!O(_e))break;A=_e}return A}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixUnusedLabel",Y=[e.Diagnostics.Unused_label.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(re){var ye=e.textChanges.ChangeTracker.with(re,function(O){return W(O,re.sourceFile,re.span.start)});return[ue.createCodeFixAction($,ye,e.Diagnostics.Remove_unused_label,$,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[$],getAllCodeActions:function(re){return ue.codeFixAll(re,Y,function(ye,O){return W(ye,O.file,O.start)})}});function W(re,ye,O){var A=e.getTokenAtPosition(ye,O),D=e.cast(A.parent,e.isLabeledStatement),de=A.getStart(ye),_e=D.statement.getStart(ye),y=e.positionsAreOnSameLine(de,_e,ye)?_e:e.skipTrivia(ye.text,e.findChildOfKind(D,58,ye).end,!0);re.deleteRange(ye,{pos:de,end:y})}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixJSDocTypes_plain",Y="fixJSDocTypes_nullable",W=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];ue.registerCodeFix({errorCodes:W,getCodeActions:function(A){var D=A.sourceFile,de=A.program.getTypeChecker(),_e=ye(D,A.span.start,de);if(!_e)return;var y=_e.typeNode,V=_e.type,Z=y.getText(D),E=[H(V,$,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return y.kind===309&&E.push(H(de.getNullableType(V,32768),Y,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),E;function H(L,ee,k){var b=e.textChanges.ChangeTracker.with(A,function(ie){return re(ie,D,y,L,de)});return ue.createCodeFixAction("jdocTypes",b,[e.Diagnostics.Change_0_to_1,Z,de.typeToString(L)],ee,k)}},fixIds:[$,Y],getAllCodeActions:function(A){var D=A.fixId,de=A.program,_e=A.sourceFile,y=de.getTypeChecker();return ue.codeFixAll(A,W,function(V,Z){var E=ye(Z.file,Z.start,y);if(E){var H=E.typeNode,L=E.type,ee=H.kind===309&&D===Y?y.getNullableType(L,32768):L;re(V,_e,H,ee,y)}})}});function re(A,D,de,_e,y){A.replaceNode(D,de,y.typeToTypeNode(_e,de,void 0))}function ye(A,D,de){var _e=e.findAncestor(e.getTokenAtPosition(A,D),O),y=_e&&_e.type;return y&&{typeNode:y,type:de.getTypeFromTypeNode(y)}}function O(A){switch(A.kind){case 227:case 172:case 173:case 254:case 170:case 174:case 193:case 167:case 166:case 162:case 165:case 164:case 171:case 257:case 209:case 252:return!0;default:return!1}}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixMissingCallParentheses",Y=[e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];ue.registerCodeFix({errorCodes:Y,fixIds:[$],getCodeActions:function(ye){var O=ye.sourceFile,A=ye.span,D=re(O,A.start);if(D){var de=e.textChanges.ChangeTracker.with(ye,function(_e){return W(_e,ye.sourceFile,D)});return[ue.createCodeFixAction($,de,e.Diagnostics.Add_missing_call_parentheses,$,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:function(ye){return ue.codeFixAll(ye,Y,function(O,A){var D=re(A.file,A.start);D&&W(O,A.file,D)})}});function W(ye,O,A){ye.replaceNodeWithText(O,A,A.text+"()")}function re(ye,O){var A=e.getTokenAtPosition(ye,O);if(e.isPropertyAccessExpression(A.parent)){for(var D=A.parent;e.isPropertyAccessExpression(D.parent);)D=D.parent;return D.name}if(e.isIdentifier(A))return A}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixAwaitInSyncFunction",Y=[e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(O){var A=O.sourceFile,D=O.span,de=re(A,D.start);if(de){var _e=e.textChanges.ChangeTracker.with(O,function(y){return ye(y,A,de)});return[ue.createCodeFixAction($,_e,e.Diagnostics.Add_async_modifier_to_containing_function,$,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[$],getAllCodeActions:function(O){var A=new e.Map;return ue.codeFixAll(O,Y,function(D,de){var _e=re(de.file,de.start);!_e||!e.addToSeen(A,e.getNodeId(_e.insertBefore))||ye(D,O.sourceFile,_e)})}});function W(O){if(O.type)return O.type;if(e.isVariableDeclaration(O.parent)&&O.parent.type&&e.isFunctionTypeNode(O.parent.type))return O.parent.type.type}function re(O,A){var D=e.getTokenAtPosition(O,A),de=e.getContainingFunction(D);if(de){var _e;switch(de.kind){case 167:_e=de.name;break;case 254:case 211:_e=e.findChildOfKind(de,98,O);break;case 212:_e=e.findChildOfKind(de,20,O)||e.first(de.parameters);break;default:return}return _e&&{insertBefore:_e,returnType:W(de)}}}function ye(O,A,D){var de=D.insertBefore,_e=D.returnType;if(_e){var y=e.getEntityNameFromTypeNode(_e);(!y||y.kind!==79||y.text!=="Promise")&&O.replaceNode(A,_e,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([_e])))}O.insertModifierBefore(A,130,de)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $=[e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],Y="fixPropertyOverrideAccessor";ue.registerCodeFix({errorCodes:$,getCodeActions:function(re){var ye=W(re.sourceFile,re.span.start,re.span.length,re.errorCode,re);if(ye)return[ue.createCodeFixAction(Y,ye,e.Diagnostics.Generate_get_and_set_accessors,Y,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[Y],getAllCodeActions:function(re){return ue.codeFixAll(re,$,function(ye,O){var A=W(O.file,O.start,O.length,O.code,re);if(A)for(var D=0,de=A;D<de.length;D++){var _e=de[D];ye.pushRaw(re.sourceFile,_e)}})}});function W(re,ye,O,A,D){var de,_e;if(A===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)de=ye,_e=ye+O;else if(A===e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var y=D.program.getTypeChecker(),V=e.getTokenAtPosition(re,ye).parent;e.Debug.assert(e.isAccessor(V),"error span of fixPropertyOverrideAccessor should only be on an accessor");var Z=V.parent;e.Debug.assert(e.isClassLike(Z),"erroneous accessors should only be inside classes");var E=e.singleOrUndefined(ue.getAllSupers(Z,y));if(!E)return[];var H=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(V.name)),L=y.getPropertyOfType(y.getTypeAtLocation(E),H);if(!L||!L.valueDeclaration)return[];de=L.valueDeclaration.pos,_e=L.valueDeclaration.end,re=e.getSourceFileOfNode(L.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+A);return ue.generateAccessorFromProperty(re,D.program,de,_e,D,e.Diagnostics.Generate_get_and_set_accessors.message)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="inferFromUsage",Y=[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];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(oe){var se=oe.sourceFile,w=oe.program,R=oe.span.start,ne=oe.errorCode,U=oe.cancellationToken,C=oe.host,d=oe.preferences,G=e.getTokenAtPosition(se,R),g,p=e.textChanges.ChangeTracker.with(oe,function(T){g=ye(T,se,G,ne,w,U,e.returnTrue,C,d)}),f=g&&e.getNameOfDeclaration(g);return!f||p.length===0?void 0:[ue.createCodeFixAction($,p,[W(ne,G),f.getText(se)],$,e.Diagnostics.Infer_all_types_from_usage)]},fixIds:[$],getAllCodeActions:function(oe){var se=oe.sourceFile,w=oe.program,R=oe.cancellationToken,ne=oe.host,U=oe.preferences,C=e.nodeSeenTracker();return ue.codeFixAll(oe,Y,function(d,G){ye(d,se,e.getTokenAtPosition(G.file,G.start),G.code,w,R,C,ne,U)})}});function W(oe,se){switch(oe){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(se))?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 re(oe){switch(oe){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 oe}function ye(oe,se,w,R,ne,U,C,d,G){if(!(!e.isParameterPropertyModifier(w.kind)&&w.kind!==79&&w.kind!==25&&w.kind!==108)){var g=w.parent,p=ue.createImportAdder(se,ne,G,d);switch(R=re(R),R){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(g)&&C(g)||e.isPropertyDeclaration(g)||e.isPropertySignature(g))return O(oe,p,se,g,ne,d,U),p.writeFixes(oe),g;if(e.isPropertyAccessExpression(g)){var f=k(g.name,ne,U),T=e.getTypeNodeIfAccessible(f,g,ne,d);if(T){var m=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(T),void 0);E(oe,se,e.cast(g.parent.parent,e.isExpressionStatement),[m])}return p.writeFixes(oe),g}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:{var N=ne.getTypeChecker().getSymbolAtLocation(w);return N&&N.valueDeclaration&&e.isVariableDeclaration(N.valueDeclaration)&&C(N.valueDeclaration)?(O(oe,p,se,N.valueDeclaration,ne,d,U),p.writeFixes(oe),N.valueDeclaration):void 0}}var P=e.getContainingFunction(w);if(P!==void 0){var x;switch(R){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(P)){_e(oe,p,se,P,ne,d,U),x=P;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(C(P)){var M=e.cast(g,e.isParameter);A(oe,p,se,M,P,ne,d,U),x=M}break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:e.isGetAccessorDeclaration(P)&&e.isIdentifier(P.name)&&(y(oe,p,se,P,k(P.name,ne,U),ne,d),x=P);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(P)&&(_e(oe,p,se,P,ne,d,U),x=P);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(P)&&C(P)&&(D(oe,se,P,ne,d,U),x=P);break;default:return e.Debug.fail(String(R))}return p.writeFixes(oe),x}}}function O(oe,se,w,R,ne,U,C){e.isIdentifier(R.name)&&y(oe,se,w,R,k(R.name,ne,C),ne,U)}function A(oe,se,w,R,ne,U,C,d){if(e.isIdentifier(R.name)){var G=b(ne,w,U,d);if(e.Debug.assert(ne.parameters.length===G.length,"Parameter count and inference count should match"),e.isInJSFile(ne))Z(oe,w,G,U,C);else{var g=e.isArrowFunction(ne)&&!e.findChildOfKind(ne,20,w);g&&oe.insertNodeBefore(w,e.first(ne.parameters),e.factory.createToken(20));for(var p=0,f=G;p<f.length;p++){var T=f[p],m=T.declaration,N=T.type;m&&!m.type&&!m.initializer&&y(oe,se,w,m,N,U,C)}g&&oe.insertNodeAfter(w,e.last(ne.parameters),e.factory.createToken(21))}}}function D(oe,se,w,R,ne,U){var C=ie(w,se,R,U);if(!(!C||!C.length)){var d=q(R,C,U).thisParameter(),G=e.getTypeNodeIfAccessible(d,w,R,ne);G&&(e.isInJSFile(w)?de(oe,se,w,G):oe.tryInsertThisTypeAnnotation(se,w,G))}}function de(oe,se,w,R){E(oe,se,w,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(R))])}function _e(oe,se,w,R,ne,U,C){var d=e.firstOrUndefined(R.parameters);if(d&&e.isIdentifier(R.name)&&e.isIdentifier(d.name)){var G=k(R.name,ne,C);G===ne.getTypeChecker().getAnyType()&&(G=k(d.name,ne,C)),e.isInJSFile(R)?Z(oe,w,[{declaration:d,type:G}],ne,U):y(oe,se,w,d,G,ne,U)}}function y(oe,se,w,R,ne,U,C){var d=e.getTypeNodeIfAccessible(ne,R,U,C);if(d)if(e.isInJSFile(w)&&R.kind!==164){var G=e.isVariableDeclaration(R)?e.tryCast(R.parent.parent,e.isVariableStatement):R;if(!G)return;var g=e.factory.createJSDocTypeExpression(d),p=e.isGetAccessorDeclaration(R)?e.factory.createJSDocReturnTag(void 0,g,void 0):e.factory.createJSDocTypeTag(void 0,g,void 0);E(oe,w,G,[p])}else V(d,R,w,oe,se,e.getEmitScriptTarget(U.getCompilerOptions()))||oe.tryInsertTypeAnnotation(w,R,d)}function V(oe,se,w,R,ne,U){var C=ue.tryGetAutoImportableReferenceFromTypeNode(oe,U);return C&&R.tryInsertTypeAnnotation(w,se,C.typeNode)?(e.forEach(C.symbols,function(d){return ne.addImportFromExportedSymbol(d,!0)}),!0):!1}function Z(oe,se,w,R,ne){var U=w.length&&w[0].declaration.parent;if(U){var C=e.mapDefined(w,function(g){var p=g.declaration;if(!(p.initializer||e.getJSDocType(p)||!e.isIdentifier(p.name))){var f=g.type&&e.getTypeNodeIfAccessible(g.type,p,R,ne);if(f){var T=e.factory.cloneNode(p.name);return e.setEmitFlags(T,3584),{name:e.factory.cloneNode(p.name),param:p,isOptional:!!g.isOptional,typeNode:f}}}});if(C.length)if(e.isArrowFunction(U)||e.isFunctionExpression(U)){var d=e.isArrowFunction(U)&&!e.findChildOfKind(U,20,se);d&&oe.insertNodeBefore(se,e.first(U.parameters),e.factory.createToken(20)),e.forEach(C,function(g){var p=g.typeNode,f=g.param,T=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(p)),m=e.factory.createJSDocComment(void 0,[T]);oe.insertNodeAt(se,f.getStart(se),m,{suffix:" "})}),d&&oe.insertNodeAfter(se,e.last(U.parameters),e.factory.createToken(21))}else{var G=e.map(C,function(g){var p=g.name,f=g.typeNode,T=g.isOptional;return e.factory.createJSDocParameterTag(void 0,p,!!T,e.factory.createJSDocTypeExpression(f),!1,void 0)});E(oe,se,U,G)}}}function E(oe,se,w,R){var ne=e.flatMap(w.jsDoc,function(g){return typeof g.comment=="string"?e.factory.createJSDocText(g.comment):g.comment}),U=e.flatMapToMutable(w.jsDoc,function(g){return g.tags}),C=R.filter(function(g){return!U||!U.some(function(p,f){var T=L(p,g);return T&&(U[f]=T),!!T})}),d=e.factory.createJSDocComment(e.factory.createNodeArray(e.intersperse(ne,e.factory.createJSDocText(`
`))),e.factory.createNodeArray(Vr(Vr([],U||e.emptyArray,!0),C,!0))),G=w.kind===212?H(w):w;G.jsDoc=w.jsDoc,G.jsDocCache=w.jsDocCache,oe.insertJsdocCommentBefore(se,G,d)}ue.addJSDocTags=E;function H(oe){return oe.parent.kind===165?oe.parent:oe.parent.parent}function L(oe,se){if(oe.kind===se.kind)switch(oe.kind){case 335:{var w=oe,R=se;return e.isIdentifier(w.name)&&e.isIdentifier(R.name)&&w.name.escapedText===R.name.escapedText?e.factory.createJSDocParameterTag(void 0,R.name,!1,R.typeExpression,R.isNameFirst,w.comment):void 0}case 336:return e.factory.createJSDocReturnTag(void 0,se.typeExpression,oe.comment)}}function ee(oe,se,w){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,oe,se,se.getSourceFiles(),w),function(R){return R.kind!==0?e.tryCast(R.node,e.isIdentifier):void 0})}function k(oe,se,w){var R=ee(oe,se,w);return q(se,R,w).single()}function b(oe,se,w,R){var ne=ie(oe,se,w,R);return ne&&q(w,ne,R).parameters(oe)||oe.parameters.map(function(U){return{declaration:U,type:e.isIdentifier(U.name)?k(U.name,w,R):w.getTypeChecker().getAnyType()}})}function ie(oe,se,w,R){var ne;switch(oe.kind){case 169:ne=e.findChildOfKind(oe,133,se);break;case 212:case 211:var U=oe.parent;ne=(e.isVariableDeclaration(U)||e.isPropertyDeclaration(U))&&e.isIdentifier(U.name)?U.name:oe.name;break;case 254:case 167:case 166:ne=oe.name;break}if(ne)return ee(ne,w,R)}function q(oe,se,w){var R=oe.getTypeChecker(),ne={string:function(){return R.getStringType()},number:function(){return R.getNumberType()},Array:function(Re){return R.createArrayType(Re)},Promise:function(Re){return R.createPromiseType(Re)}},U=[R.getStringType(),R.getNumberType(),R.createArrayType(R.getAnyType()),R.createPromiseType(R.getAnyType())];return{single:G,parameters:g,thisParameter:p};function C(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function d(Re){for(var He=new e.Map,Ln=0,Un=Re;Ln<Un.length;Ln++){var fn=Un[Ln];fn.properties&&fn.properties.forEach(function(i,In){He.has(In)||He.set(In,[]),He.get(In).push(i)})}var En=new e.Map;return He.forEach(function(i,In){En.set(In,d(i))}),{isNumber:Re.some(function(i){return i.isNumber}),isString:Re.some(function(i){return i.isString}),isNumberOrString:Re.some(function(i){return i.isNumberOrString}),candidateTypes:e.flatMap(Re,function(i){return i.candidateTypes}),properties:En,calls:e.flatMap(Re,function(i){return i.calls}),constructs:e.flatMap(Re,function(i){return i.constructs}),numberIndex:e.forEach(Re,function(i){return i.numberIndex}),stringIndex:e.forEach(Re,function(i){return i.stringIndex}),candidateThisTypes:e.flatMap(Re,function(i){return i.candidateThisTypes}),inferredTypes:void 0}}function G(){return Se(f(se))}function g(Re){if(!(se.length===0||!Re.parameters)){for(var He=C(),Ln=0,Un=se;Ln<Un.length;Ln++){var fn=Un[Ln];w.throwIfCancellationRequested(),T(fn,He)}var En=Vr(Vr([],He.constructs||[],!0),He.calls||[],!0);return Re.parameters.map(function(i,In){for(var X=[],rn=e.isRestParameter(i),$n=!1,Vn=0,le=En;Vn<le.length;Vn++){var Pe=le[Vn];if(Pe.argumentTypes.length<=In)$n=e.isInJSFile(Re),X.push(R.getUndefinedType());else if(rn)for(var xe=In;xe<Pe.argumentTypes.length;xe++)X.push(R.getBaseTypeOfLiteralType(Pe.argumentTypes[xe]));else X.push(R.getBaseTypeOfLiteralType(Pe.argumentTypes[In]))}if(e.isIdentifier(i.name)){var Ze=f(ee(i.name,oe,w));X.push.apply(X,rn?e.mapDefined(Ze,R.getElementTypeOfArrayType):Ze)}var hn=Se(X);return{type:rn?R.createArrayType(hn):hn,isOptional:$n&&!rn,declaration:i}})}}function p(){for(var Re=C(),He=0,Ln=se;He<Ln.length;He++){var Un=Ln[He];w.throwIfCancellationRequested(),T(Un,Re)}return Se(Re.candidateThisTypes||e.emptyArray)}function f(Re){for(var He=C(),Ln=0,Un=Re;Ln<Un.length;Ln++){var fn=Un[Ln];w.throwIfCancellationRequested(),T(fn,He)}return Ce(He)}function T(Re,He){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(Re);)Re=Re.parent;switch(Re.parent.kind){case 236:N(Re,He);break;case 218:He.isNumber=!0;break;case 217:P(Re.parent,He);break;case 219:x(Re,Re.parent,He);break;case 287:case 288:M(Re.parent,He);break;case 206:case 207:Re.parent.expression===Re?me(Re.parent,He):m(Re,He);break;case 204:z(Re.parent,He);break;case 205:K(Re.parent,Re,He);break;case 291:case 292:I(Re.parent,He);break;case 165:Ae(Re.parent,He);break;case 252:{var Ln=Re.parent,Un=Ln.name,fn=Ln.initializer;if(Re===Un){fn&&pn(He,R.getTypeAtLocation(fn));break}}default:return m(Re,He)}}function m(Re,He){e.isExpressionNode(Re)&&pn(He,R.getContextualType(Re))}function N(Re,He){pn(He,e.isCallExpression(Re)?R.getVoidType():R.getAnyType())}function P(Re,He){switch(Re.operator){case 45:case 46:case 40:case 54:He.isNumber=!0;break;case 39:He.isNumberOrString=!0;break}}function x(Re,He,Ln){switch(He.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:var Un=R.getTypeAtLocation(He.left===Re?He.right:He.left);Un.flags&1056?pn(Ln,Un):Ln.isNumber=!0;break;case 64:case 39:var fn=R.getTypeAtLocation(He.left===Re?He.right:He.left);fn.flags&1056?pn(Ln,fn):fn.flags&296?Ln.isNumber=!0:fn.flags&402653316?Ln.isString=!0:fn.flags&1||(Ln.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:pn(Ln,R.getTypeAtLocation(He.left===Re?He.right:He.left));break;case 101:Re===He.left&&(Ln.isString=!0);break;case 56:case 60:Re===He.left&&(Re.parent.parent.kind===252||e.isAssignmentExpression(Re.parent.parent,!0))&&pn(Ln,R.getTypeAtLocation(He.right));break;case 55:case 27:case 102:break}}function M(Re,He){pn(He,R.getTypeAtLocation(Re.parent.parent.expression))}function me(Re,He){var Ln={argumentTypes:[],return_:C()};if(Re.arguments)for(var Un=0,fn=Re.arguments;Un<fn.length;Un++){var En=fn[Un];Ln.argumentTypes.push(R.getTypeAtLocation(En))}T(Re,Ln.return_),Re.kind===206?(He.calls||(He.calls=[])).push(Ln):(He.constructs||(He.constructs=[])).push(Ln)}function z(Re,He){var Ln=e.escapeLeadingUnderscores(Re.name.text);He.properties||(He.properties=new e.Map);var Un=He.properties.get(Ln)||C();T(Re,Un),He.properties.set(Ln,Un)}function K(Re,He,Ln){if(He===Re.argumentExpression){Ln.isNumberOrString=!0;return}else{var Un=R.getTypeAtLocation(Re.argumentExpression),fn=C();T(Re,fn),Un.flags&296?Ln.numberIndex=fn:Ln.stringIndex=fn}}function I(Re,He){var Ln=e.isVariableDeclaration(Re.parent.parent)?Re.parent.parent:Re.parent;Qe(He,R.getTypeAtLocation(Ln))}function Ae(Re,He){Qe(He,R.getTypeAtLocation(Re.parent))}function Oe(Re,He){for(var Ln=[],Un=0,fn=Re;Un<fn.length;Un++)for(var En=fn[Un],i=0,In=He;i<In.length;i++){var X=In[i],rn=X.high,$n=X.low;rn(En)&&(e.Debug.assert(!$n(En),"Priority can't have both low and high"),Ln.push($n))}return Re.filter(function(Vn){return Ln.every(function(le){return!le(Vn)})})}function te(Re){return Se(Ce(Re))}function Se(Re){if(!Re.length)return R.getAnyType();var He=R.getUnionType([R.getStringType(),R.getNumberType()]),Ln=[{high:function(En){return En===R.getStringType()||En===R.getNumberType()},low:function(En){return En===He}},{high:function(En){return!(En.flags&16385)},low:function(En){return!!(En.flags&16385)}},{high:function(En){return!(En.flags&114689)&&!(e.getObjectFlags(En)&16)},low:function(En){return!!(e.getObjectFlags(En)&16)}}],Un=Oe(Re,Ln),fn=Un.filter(function(En){return e.getObjectFlags(En)&16});return fn.length&&(Un=Un.filter(function(En){return!(e.getObjectFlags(En)&16)}),Un.push(be(fn))),R.getWidenedType(R.getUnionType(Un.map(R.getBaseTypeOfLiteralType),2))}function be(Re){if(Re.length===1)return Re[0];for(var He=[],Ln=[],Un=[],fn=[],En=!1,i=!1,In=e.createMultiMap(),X=0,rn=Re;X<rn.length;X++){for(var $n=rn[X],Vn=0,le=R.getPropertiesOfType($n);Vn<le.length;Vn++){var Pe=le[Vn];In.add(Pe.name,Pe.valueDeclaration?R.getTypeOfSymbolAtLocation(Pe,Pe.valueDeclaration):R.getAnyType())}He.push.apply(He,R.getSignaturesOfType($n,0)),Ln.push.apply(Ln,R.getSignaturesOfType($n,1));var xe=R.getIndexInfoOfType($n,0);xe&&(Un.push(xe.type),En=En||xe.isReadonly);var Ze=R.getIndexInfoOfType($n,1);Ze&&(fn.push(Ze.type),i=i||Ze.isReadonly)}var hn=e.mapEntries(In,function($e,An){var Ue=An.length<Re.length?16777216:0,gn=R.createSymbol(4|Ue,$e);return gn.type=R.getUnionType(An),[$e,gn]}),Le=[];return Un.length&&Le.push(R.createIndexInfo(R.getStringType(),R.getUnionType(Un),En)),fn.length&&Le.push(R.createIndexInfo(R.getNumberType(),R.getUnionType(fn),i)),R.createAnonymousType(Re[0].symbol,hn,He,Ln,Le)}function Ce(Re){var He,Ln,Un,fn=[];return Re.isNumber&&fn.push(R.getNumberType()),Re.isString&&fn.push(R.getStringType()),Re.isNumberOrString&&fn.push(R.getUnionType([R.getStringType(),R.getNumberType()])),Re.numberIndex&&fn.push(R.createArrayType(te(Re.numberIndex))),(!((He=Re.properties)===null||He===void 0)&&He.size||!((Ln=Re.calls)===null||Ln===void 0)&&Ln.length||!((Un=Re.constructs)===null||Un===void 0)&&Un.length||Re.stringIndex)&&fn.push(Be(Re)),fn.push.apply(fn,(Re.candidateTypes||[]).map(function(En){return R.getBaseTypeOfLiteralType(En)})),fn.push.apply(fn,De(Re)),fn}function Be(Re){var He=new e.Map;Re.properties&&Re.properties.forEach(function(En,i){var In=R.createSymbol(4,i);In.type=te(En),He.set(i,In)});var Ln=Re.calls?[we(Re.calls)]:[],Un=Re.constructs?[we(Re.constructs)]:[],fn=Re.stringIndex?[R.createIndexInfo(R.getStringType(),te(Re.stringIndex),!1)]:[];return R.createAnonymousType(void 0,He,Ln,Un,fn)}function De(Re){if(!Re.properties||!Re.properties.size)return[];var He=U.filter(function(Ln){return en(Ln,Re)});return 0<He.length&&He.length<3?He.map(function(Ln){return fe(Ln,Re)}):[]}function en(Re,He){return He.properties?!e.forEachEntry(He.properties,function(Ln,Un){var fn=R.getTypeOfPropertyOfType(Re,Un);if(!fn)return!0;if(Ln.calls){var En=R.getSignaturesOfType(fn,0);return!En.length||!R.isTypeAssignableTo(fn,pe(Ln.calls))}else return!R.isTypeAssignableTo(fn,te(Ln))}):!1}function fe(Re,He){if(!(e.getObjectFlags(Re)&4)||!He.properties)return Re;var Ln=Re.target,Un=e.singleOrUndefined(Ln.typeParameters);if(!Un)return Re;var fn=[];return He.properties.forEach(function(En,i){var In=R.getTypeOfPropertyOfType(Ln,i);e.Debug.assert(!!In,"generic should have all the properties of its reference."),fn.push.apply(fn,Ne(In,te(En),Un))}),ne[Re.symbol.escapedName](Se(fn))}function Ne(Re,He,Ln){if(Re===Ln)return[He];if(Re.flags&3145728)return e.flatMap(Re.types,function(rn){return Ne(rn,He,Ln)});if(e.getObjectFlags(Re)&4&&e.getObjectFlags(He)&4){var Un=R.getTypeArguments(Re),fn=R.getTypeArguments(He),En=[];if(Un&&fn)for(var i=0;i<Un.length;i++)fn[i]&&En.push.apply(En,Ne(Un[i],fn[i],Ln));return En}var In=R.getSignaturesOfType(Re,0),X=R.getSignaturesOfType(He,0);return In.length===1&&X.length===1?qe(In[0],X[0],Ln):[]}function qe(Re,He,Ln){for(var Un=[],fn=0;fn<Re.parameters.length;fn++){var En=Re.parameters[fn],i=He.parameters[fn],In=Re.declaration&&e.isRestParameter(Re.declaration.parameters[fn]);if(!i)break;var X=En.valueDeclaration?R.getTypeOfSymbolAtLocation(En,En.valueDeclaration):R.getAnyType(),rn=In&&R.getElementTypeOfArrayType(X);rn&&(X=rn);var $n=i.type||(i.valueDeclaration?R.getTypeOfSymbolAtLocation(i,i.valueDeclaration):R.getAnyType());Un.push.apply(Un,Ne(X,$n,Ln))}var Vn=R.getReturnTypeOfSignature(Re),le=R.getReturnTypeOfSignature(He);return Un.push.apply(Un,Ne(Vn,le,Ln)),Un}function pe(Re){return R.createAnonymousType(void 0,e.createSymbolTable(),[we(Re)],e.emptyArray,e.emptyArray)}function we(Re){for(var He=[],Ln=Math.max.apply(Math,Re.map(function(i){return i.argumentTypes.length})),Un=function(i){var In=R.createSymbol(1,e.escapeLeadingUnderscores("arg"+i));In.type=Se(Re.map(function(X){return X.argumentTypes[i]||R.getUndefinedType()})),Re.some(function(X){return X.argumentTypes[i]===void 0})&&(In.flags|=16777216),He.push(In)},fn=0;fn<Ln;fn++)Un(fn);var En=te(d(Re.map(function(i){return i.return_})));return R.createSignature(void 0,void 0,void 0,He,En,void 0,Ln,0)}function pn(Re,He){He&&!(He.flags&1)&&!(He.flags&131072)&&(Re.candidateTypes||(Re.candidateTypes=[])).push(He)}function Qe(Re,He){He&&!(He.flags&1)&&!(He.flags&131072)&&(Re.candidateThisTypes||(Re.candidateThisTypes=[])).push(He)}}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixReturnTypeInAsyncFunction",Y=[e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];ue.registerCodeFix({errorCodes:Y,fixIds:[$],getCodeActions:function(ye){var O=ye.sourceFile,A=ye.program,D=ye.span,de=A.getTypeChecker(),_e=W(O,A.getTypeChecker(),D.start);if(_e){var y=_e.returnTypeNode,V=_e.returnType,Z=_e.promisedTypeNode,E=_e.promisedType,H=e.textChanges.ChangeTracker.with(ye,function(L){return re(L,O,y,Z)});return[ue.createCodeFixAction($,H,[e.Diagnostics.Replace_0_with_Promise_1,de.typeToString(V),de.typeToString(E)],$,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:function(ye){return ue.codeFixAll(ye,Y,function(O,A){var D=W(A.file,ye.program.getTypeChecker(),A.start);D&&re(O,A.file,D.returnTypeNode,D.promisedTypeNode)})}});function W(ye,O,A){if(!e.isInJSFile(ye)){var D=e.getTokenAtPosition(ye,A),de=e.findAncestor(D,e.isFunctionLikeDeclaration),_e=de==null?void 0:de.type;if(_e){var y=O.getTypeFromTypeNode(_e),V=O.getAwaitedType(y)||O.getVoidType(),Z=O.typeToTypeNode(V,_e,void 0);if(Z)return{returnTypeNode:_e,returnType:y,promisedTypeNode:Z,promisedType:V}}}}function re(ye,O,A,D){ye.replaceNode(O,A,e.factory.createTypeReferenceNode("Promise",[D]))}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="disableJsDiagnostics",Y="disableJsDiagnostics",W=e.mapDefined(Object.keys(e.Diagnostics),function(ye){var O=e.Diagnostics[ye];return O.category===e.DiagnosticCategory.Error?O.code:void 0});ue.registerCodeFix({errorCodes:W,getCodeActions:function(ye){var O=ye.sourceFile,A=ye.program,D=ye.span,de=ye.host,_e=ye.formatContext;if(!(!e.isInJSFile(O)||!e.isCheckJsEnabledForFile(O,A.getCompilerOptions()))){var y=O.checkJsDirective?"":e.getNewLineOrDefaultFromHost(de,_e.options),V=[ue.createCodeFixActionWithoutFixAll($,[ue.createFileTextChanges(O.fileName,[e.createTextChange(O.checkJsDirective?e.createTextSpanFromBounds(O.checkJsDirective.pos,O.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+y)])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(O,D.start)&&V.unshift(ue.createCodeFixAction($,e.textChanges.ChangeTracker.with(ye,function(Z){return re(Z,O,D.start)}),e.Diagnostics.Ignore_this_error_message,Y,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),V}},fixIds:[Y],getAllCodeActions:function(ye){var O=new e.Set;return ue.codeFixAll(ye,W,function(A,D){e.textChanges.isValidLocationToAddComment(D.file,D.start)&&re(A,D.file,D.start,O)})}});function re(ye,O,A,D){var de=e.getLineAndCharacterOfPosition(O,A).line;(!D||e.tryAddToSet(D,de))&&ye.insertCommentBeforeLine(O,de,A," @ts-ignore")}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(q,oe,se,w,R,ne,U){for(var C=q.symbol.members,d=0,G=oe;d<G.length;d++){var g=G[d];C.has(g.escapedName)||W(g,q,se,w,R,ne,U)}}ue.createMissingMemberNodes=$;function Y(q){return{trackSymbol:function(){return!1},moduleResolverHost:e.getModuleSpecifierResolverHost(q.program,q.host)}}ue.getNoopSymbolTrackerWithResolver=Y;function W(q,oe,se,w,R,ne,U){var C=q.getDeclarations();if(!(C&&C.length))return;var d=w.program.getTypeChecker(),G=e.getEmitScriptTarget(w.program.getCompilerOptions()),g=C[0],p=e.getSynthesizedDeepClone(e.getNameOfDeclaration(g),!1),f=Z(e.getEffectiveModifierFlags(g)),T=f?e.factory.createNodeArray([f]):void 0,m=d.getWidenedType(d.getTypeOfSymbolAtLocation(q,oe)),N=!!(q.flags&16777216),P=!!(oe.flags&8388608),x=e.getQuotePreference(se,R);switch(g.kind){case 164:case 165:var M=x===0?268435456:void 0,me=d.typeToTypeNode(m,oe,M,Y(w));if(ne){var z=k(me,G);z&&(me=z.typeNode,ie(ne,z.symbols))}U(e.factory.createPropertyDeclaration(void 0,T,p,N?e.factory.createToken(57):void 0,me,void 0));break;case 170:case 171:{var K=d.typeToTypeNode(m,oe,void 0,Y(w)),I=e.getAllAccessorDeclarations(C,g),Ae=I.secondAccessor?[I.firstAccessor,I.secondAccessor]:[I.firstAccessor];if(ne){var z=k(K,G);z&&(K=z.typeNode,ie(ne,z.symbols))}for(var Oe=0,te=Ae;Oe<te.length;Oe++){var Se=te[Oe];if(e.isGetAccessorDeclaration(Se))U(e.factory.createGetAccessorDeclaration(void 0,T,p,e.emptyArray,K,P?void 0:y(x)));else{e.Debug.assertNode(Se,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var be=e.getSetAccessorValueParameter(Se),Ce=be&&e.isIdentifier(be.name)?e.idText(be.name):void 0;U(e.factory.createSetAccessorDeclaration(void 0,T,p,A(1,[Ce],[K],1,!1),P?void 0:y(x)))}}break}case 166:case 167:var Be=d.getSignaturesOfType(m,0);if(!e.some(Be))break;if(C.length===1){e.Debug.assert(Be.length===1,"One declaration implies one signature");var De=Be[0];Ne(x,De,T,p,P?void 0:y(x));break}for(var en=0,fe=Be;en<fe.length;en++){var De=fe[en];Ne(x,De,e.getSynthesizedDeepClones(T,!1),e.getSynthesizedDeepClone(p,!1))}if(!P)if(C.length>Be.length){var De=d.getSignatureFromDeclaration(C[C.length-1]);Ne(x,De,T,p,y(x))}else e.Debug.assert(C.length===Be.length,"Declarations and signatures should match count"),U(D(d,w,oe,Be,p,N,T,x));break}function Ne(qe,pe,we,pn,Qe){var Re=re(167,w,qe,pe,Qe,pn,we,N,oe,ne);Re&&U(Re)}}function re(q,oe,se,w,R,ne,U,C,d,G){var g=oe.program,p=g.getTypeChecker(),f=e.getEmitScriptTarget(g.getCompilerOptions()),T=1073742081|(se===0?268435456:0),m=p.signatureToSignatureDeclaration(w,q,d,T,Y(oe));if(m){var N=m.typeParameters,P=m.parameters,x=m.type;if(G){if(N){var M=e.sameMap(N,function(Ae){var Oe=Ae.constraint,te=Ae.default;if(Oe){var Se=k(Oe,f);Se&&(Oe=Se.typeNode,ie(G,Se.symbols))}if(te){var Se=k(te,f);Se&&(te=Se.typeNode,ie(G,Se.symbols))}return e.factory.updateTypeParameterDeclaration(Ae,Ae.name,Oe,te)});N!==M&&(N=e.setTextRange(e.factory.createNodeArray(M,N.hasTrailingComma),N))}var me=e.sameMap(P,function(Ae){var Oe=k(Ae.type,f),te=Ae.type;return Oe&&(te=Oe.typeNode,ie(G,Oe.symbols)),e.factory.updateParameterDeclaration(Ae,Ae.decorators,Ae.modifiers,Ae.dotDotDotToken,Ae.name,Ae.questionToken,te,Ae.initializer)});if(P!==me&&(P=e.setTextRange(e.factory.createNodeArray(me,P.hasTrailingComma),P)),x){var z=k(x,f);z&&(x=z.typeNode,ie(G,z.symbols))}}var K=C?e.factory.createToken(57):void 0,I=m.asteriskToken;if(e.isFunctionExpression(m))return e.factory.updateFunctionExpression(m,U,m.asteriskToken,e.tryCast(ne,e.isIdentifier),N,P,x,R!=null?R:m.body);if(e.isArrowFunction(m))return e.factory.updateArrowFunction(m,U,N,P,x,m.equalsGreaterThanToken,R!=null?R:m.body);if(e.isMethodDeclaration(m))return e.factory.updateMethodDeclaration(m,void 0,U,I,ne!=null?ne:e.factory.createIdentifier(""),K,N,P,x,R)}}ue.createSignatureDeclarationFromSignature=re;function ye(q,oe,se,w,R,ne,U){var C=e.getQuotePreference(oe.sourceFile,oe.preferences),d=e.getEmitScriptTarget(oe.program.getCompilerOptions()),G=Y(oe),g=oe.program.getTypeChecker(),p=e.isInJSFile(U),f=w.typeArguments,T=w.arguments,m=w.parent,N=p?void 0:g.getContextualType(w),P=e.map(T,function(Ae){return e.isIdentifier(Ae)?Ae.text:e.isPropertyAccessExpression(Ae)&&e.isIdentifier(Ae.name)?Ae.name.text:void 0}),x=p?[]:e.map(T,function(Ae){return O(g,se,g.getBaseTypeOfLiteralType(g.getTypeAtLocation(Ae)),U,d,void 0,G)}),M=ne?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(ne)):void 0,me=e.isYieldExpression(m)?e.factory.createToken(41):void 0,z=p||f===void 0?void 0:e.map(f,function(Ae,Oe){return e.factory.createTypeParameterDeclaration(84+f.length-1<=90?String.fromCharCode(84+Oe):"T"+Oe)}),K=A(T.length,P,x,void 0,p),I=p||N===void 0?void 0:g.typeToTypeNode(N,U,void 0,G);return q===167?e.factory.createMethodDeclaration(void 0,M,me,R,void 0,z,K,I,e.isInterfaceDeclaration(U)?void 0:y(C)):e.factory.createFunctionDeclaration(void 0,M,me,R,z,K,I,V(e.Diagnostics.Function_not_implemented.message,C))}ue.createSignatureDeclarationFromCallExpression=ye;function O(q,oe,se,w,R,ne,U){var C=q.typeToTypeNode(se,w,ne,U);if(C&&e.isImportTypeNode(C)){var d=k(C,R);d&&(ie(oe,d.symbols),C=d.typeNode)}return e.getSynthesizedDeepClone(C)}ue.typeToAutoImportableTypeNode=O;function A(q,oe,se,w,R){for(var ne=[],U=0;U<q;U++){var C=e.factory.createParameterDeclaration(void 0,void 0,void 0,oe&&oe[U]||"arg"+U,w!==void 0&&U>=w?e.factory.createToken(57):void 0,R?void 0:se&&se[U]||e.factory.createKeywordTypeNode(129),void 0);ne.push(C)}return ne}function D(q,oe,se,w,R,ne,U,C){for(var d=w[0],G=w[0].minArgumentCount,g=!1,p=0,f=w;p<f.length;p++){var T=f[p];G=Math.min(T.minArgumentCount,G),e.signatureHasRestParameter(T)&&(g=!0),T.parameters.length>=d.parameters.length&&(!e.signatureHasRestParameter(T)||e.signatureHasRestParameter(d))&&(d=T)}var m=d.parameters.length-(e.signatureHasRestParameter(d)?1:0),N=d.parameters.map(function(me){return me.name}),P=A(m,N,void 0,G,!1);if(g){var x=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(129)),M=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),N[m]||"rest",m>=G?e.factory.createToken(57):void 0,x,void 0);P.push(M)}return _e(U,R,ne,void 0,P,de(w,q,oe,se),C)}function de(q,oe,se,w){if(e.length(q)){var R=oe.getUnionType(e.map(q,oe.getReturnTypeOfSignature));return oe.typeToTypeNode(R,w,void 0,Y(se))}}function _e(q,oe,se,w,R,ne,U){return e.factory.createMethodDeclaration(void 0,q,void 0,oe,se?e.factory.createToken(57):void 0,w,R,ne,y(U))}function y(q){return V(e.Diagnostics.Method_not_implemented.message,q)}function V(q,oe){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(q,oe===0)]))],!0)}ue.createStubbedBody=V;function Z(q){if(q&4)return e.factory.createToken(123);if(q&16)return e.factory.createToken(122)}function E(q,oe,se){var w=e.getTsConfigObjectLiteralExpression(oe);if(w){var R=ee(w,"compilerOptions");if(R===void 0){q.insertNodeAtObjectStart(oe,w,L("compilerOptions",e.factory.createObjectLiteralExpression(se.map(function(f){var T=f[0],m=f[1];return L(T,m)}),!0)));return}var ne=R.initializer;if(e.isObjectLiteralExpression(ne))for(var U=0,C=se;U<C.length;U++){var d=C[U],G=d[0],g=d[1],p=ee(ne,G);p===void 0?q.insertNodeAtObjectStart(oe,ne,L(G,g)):q.replaceNode(oe,p.initializer,g)}}}ue.setJsonCompilerOptionValues=E;function H(q,oe,se,w){E(q,oe,[[se,w]])}ue.setJsonCompilerOptionValue=H;function L(q,oe){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(q),oe)}ue.createJsonPropertyAssignment=L;function ee(q,oe){return e.find(q.properties,function(se){return e.isPropertyAssignment(se)&&!!se.name&&e.isStringLiteral(se.name)&&se.name.text===oe})}ue.findJsonProperty=ee;function k(q,oe){var se,w=e.visitNode(q,R);if(se&&w)return{typeNode:w,symbols:se};function R(ne){var U;if(e.isLiteralImportTypeNode(ne)&&ne.qualifier){var C=e.getFirstIdentifier(ne.qualifier),d=e.getNameForExportedSymbol(C.symbol,oe),G=d!==C.text?b(ne.qualifier,e.factory.createIdentifier(d)):ne.qualifier;se=e.append(se,C.symbol);var g=(U=ne.typeArguments)===null||U===void 0?void 0:U.map(R);return e.factory.createTypeReferenceNode(G,g)}return e.visitEachChild(ne,R,e.nullTransformationContext)}}ue.tryGetAutoImportableReferenceFromTypeNode=k;function b(q,oe){return q.kind===79?oe:e.factory.createQualifiedName(b(q.left,oe),q.right)}function ie(q,oe){oe.forEach(function(se){return q.addImportFromExportedSymbol(se,!0)})}ue.importSymbols=ie})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(k,b,ie,q,oe,se){var w=D(k,b,ie,q);if(!(!w||e.refactor.isRefactorErrorInfo(w))){var R=e.textChanges.ChangeTracker.fromContext(oe),ne=w.isStatic,U=w.isReadonly,C=w.fieldName,d=w.accessorName,G=w.originalName,g=w.type,p=w.container,f=w.declaration;e.suppressLeadingAndTrailingTrivia(C),e.suppressLeadingAndTrailingTrivia(d),e.suppressLeadingAndTrailingTrivia(f),e.suppressLeadingAndTrailingTrivia(p);var T,m;if(e.isClassLike(p)){var N=e.getEffectiveModifierFlags(f);if(e.isSourceFileJS(k)){var P=e.createModifiers(N);T=P,m=P}else T=e.createModifiers(O(N)),m=e.createModifiers(A(N))}Z(R,k,f,g,C,m);var x=de(C,d,g,T,ne,p);if(e.suppressLeadingAndTrailingTrivia(x),E(R,k,x,f,p),U){var M=e.getFirstConstructorWithBody(p);M&&H(R,k,M,C.text,G)}else{var me=_e(C,d,g,T,ne,p);e.suppressLeadingAndTrailingTrivia(me),E(R,k,me,f,p)}return R.getChanges()}}ue.generateAccessorFromProperty=$;function Y(k){return e.isIdentifier(k)||e.isStringLiteral(k)}function W(k){return e.isParameterPropertyDeclaration(k,k.parent)||e.isPropertyDeclaration(k)||e.isPropertyAssignment(k)}function re(k,b){return e.isIdentifier(b)?e.factory.createIdentifier(k):e.factory.createStringLiteral(k)}function ye(k,b,ie){var q=b?ie.name:e.factory.createThis();return e.isIdentifier(k)?e.factory.createPropertyAccessExpression(q,k):e.factory.createElementAccessExpression(q,e.factory.createStringLiteralFromNode(k))}function O(k){return k&=-65,k&=-9,k&16||(k|=4),k}function A(k){return k&=-5,k&=-17,k|=8,k}function D(k,b,ie,q,oe){oe===void 0&&(oe=!0);var se=e.getTokenAtPosition(k,ie),w=ie===q&&oe,R=e.findAncestor(se.parent,W),ne=124;if(!R||!(e.nodeOverlapsWithStartEnd(R.name,k,ie,q)||w))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!Y(R.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if((e.getEffectiveModifierFlags(R)|ne)!==ne)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var U=R.name.text,C=e.startsWithUnderscore(U),d=re(C?U:e.getUniqueName("_"+U,k),R.name),G=re(C?e.getUniqueName(U.substring(1),k):U,R.name);return{isStatic:e.hasStaticModifier(R),isReadonly:e.hasEffectiveReadonlyModifier(R),type:L(R,b),container:R.kind===162?R.parent.parent:R.parent,originalName:R.name.text,declaration:R,fieldName:d,accessorName:G,renameAccessor:C}}ue.getAccessorConvertiblePropertyAtPosition=D;function de(k,b,ie,q,oe,se){return e.factory.createGetAccessorDeclaration(void 0,q,b,void 0,ie,e.factory.createBlock([e.factory.createReturnStatement(ye(k,oe,se))],!0))}function _e(k,b,ie,q,oe,se){return e.factory.createSetAccessorDeclaration(void 0,q,b,[e.factory.createParameterDeclaration(void 0,void 0,void 0,e.factory.createIdentifier("value"),void 0,ie)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(ye(k,oe,se),e.factory.createIdentifier("value")))],!0))}function y(k,b,ie,q,oe,se){var w=e.factory.updatePropertyDeclaration(ie,ie.decorators,se,oe,ie.questionToken||ie.exclamationToken,q,ie.initializer);k.replaceNode(b,ie,w)}function V(k,b,ie,q){var oe=e.factory.updatePropertyAssignment(ie,q,ie.initializer);k.replacePropertyAssignment(b,ie,oe)}function Z(k,b,ie,q,oe,se){e.isPropertyDeclaration(ie)?y(k,b,ie,q,oe,se):e.isPropertyAssignment(ie)?V(k,b,ie,oe):k.replaceNode(b,ie,e.factory.updateParameterDeclaration(ie,ie.decorators,se,ie.dotDotDotToken,e.cast(oe,e.isIdentifier),ie.questionToken,ie.type,ie.initializer))}function E(k,b,ie,q,oe){e.isParameterPropertyDeclaration(q,q.parent)?k.insertNodeAtClassStart(b,oe,ie):e.isPropertyAssignment(q)?k.insertNodeAfterComma(b,q,ie):k.insertNodeAfter(b,q,ie)}function H(k,b,ie,q,oe){ie.body&&ie.body.forEachChild(function se(w){e.isElementAccessExpression(w)&&w.expression.kind===108&&e.isStringLiteral(w.argumentExpression)&&w.argumentExpression.text===oe&&e.isWriteAccess(w)&&k.replaceNode(b,w.argumentExpression,e.factory.createStringLiteral(q)),e.isPropertyAccessExpression(w)&&w.expression.kind===108&&w.name.text===oe&&e.isWriteAccess(w)&&k.replaceNode(b,w.name,e.factory.createIdentifier(q)),!e.isFunctionLike(w)&&!e.isClassLike(w)&&w.forEachChild(se)})}function L(k,b){var ie=e.getTypeAnnotationNode(k);if(e.isPropertyDeclaration(k)&&ie&&k.questionToken){var q=b.getTypeChecker(),oe=q.getTypeFromTypeNode(ie);if(!q.isTypeAssignableTo(q.getUndefinedType(),oe)){var se=e.isUnionTypeNode(ie)?ie.types:[ie];return e.factory.createUnionTypeNode(Vr(Vr([],se,!0),[e.factory.createKeywordTypeNode(151)],!1))}}return ie}function ee(k,b){for(var ie=[];k;){var q=e.getClassExtendsHeritageElement(k),oe=q&&b.getSymbolAtLocation(q.expression);if(!oe)break;var se=oe.flags&2097152?b.getAliasedSymbol(oe):oe,w=se.declarations&&e.find(se.declarations,e.isClassLike);if(!w)break;ie.push(w),k=w}return ie}ue.getAllSupers=ee})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="invalidImportSyntax";function Y(A,D){var de=e.getSourceFileOfNode(D),_e=e.getNamespaceDeclarationNode(D),y=A.program.getCompilerOptions(),V=[];return V.push(W(A,de,D,e.makeImport(_e.name,void 0,D.moduleSpecifier,e.getQuotePreference(de,A.preferences)))),e.getEmitModuleKind(y)===e.ModuleKind.CommonJS&&V.push(W(A,de,D,e.factory.createImportEqualsDeclaration(void 0,void 0,!1,_e.name,e.factory.createExternalModuleReference(D.moduleSpecifier)))),V}function W(A,D,de,_e){var y=e.textChanges.ChangeTracker.with(A,function(V){return V.replaceNode(D,de,_e)});return ue.createCodeFixActionWithoutFixAll($,y,[e.Diagnostics.Replace_import_with_0,y[0].textChanges[0].newText])}ue.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:re});function re(A){var D=A.sourceFile,de=e.Diagnostics.This_expression_is_not_callable.code===A.errorCode?206:207,_e=e.findAncestor(e.getTokenAtPosition(D,A.span.start),function(V){return V.kind===de});if(!_e)return[];var y=_e.expression;return O(A,y)}ue.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:ye});function ye(A){var D=A.sourceFile,de=e.findAncestor(e.getTokenAtPosition(D,A.span.start),function(_e){return _e.getStart()===A.span.start&&_e.getEnd()===A.span.start+A.span.length});return de?O(A,de):[]}function O(A,D){var de=A.program.getTypeChecker().getTypeAtLocation(D);if(!(de.symbol&&de.symbol.originatingImport))return[];var _e=[],y=de.symbol.originatingImport;if(e.isImportCall(y)||e.addRange(_e,Y(A,y)),e.isExpression(D)&&!(e.isNamedDeclaration(D.parent)&&D.parent.name===D)){var V=A.sourceFile,Z=e.textChanges.ChangeTracker.with(A,function(E){return E.replaceNode(V,D,e.factory.createPropertyAccessExpression(D,"default"),{})});_e.push(ue.createCodeFixActionWithoutFixAll($,Z,e.Diagnostics.Use_synthetic_default_member))}return _e}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="strictClassInitialization",Y="addMissingPropertyDefiniteAssignmentAssertions",W="addMissingPropertyUndefinedType",re="addMissingPropertyInitializer",ye=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];ue.registerCodeFix({errorCodes:ye,getCodeActions:function(H){var L=O(H.sourceFile,H.span.start);if(L){var ee=[de(H,L),A(H,L)];return e.append(ee,y(H,L)),ee}},fixIds:[Y,W,re],getAllCodeActions:function(H){return ue.codeFixAll(H,ye,function(L,ee){var k=O(ee.file,ee.start);if(k)switch(H.fixId){case Y:D(L,ee.file,k);break;case W:_e(L,ee.file,k);break;case re:var b=H.program.getTypeChecker(),ie=Z(b,k);if(!ie)return;V(L,ee.file,k,ie);break;default:e.Debug.fail(JSON.stringify(H.fixId))}})}});function O(H,L){var ee=e.getTokenAtPosition(H,L);return e.isIdentifier(ee)?e.cast(ee.parent,e.isPropertyDeclaration):void 0}function A(H,L){var ee=e.textChanges.ChangeTracker.with(H,function(k){return D(k,H.sourceFile,L)});return ue.createCodeFixAction($,ee,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,L.getText()],Y,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function D(H,L,ee){var k=e.factory.updatePropertyDeclaration(ee,ee.decorators,ee.modifiers,ee.name,e.factory.createToken(53),ee.type,ee.initializer);H.replaceNode(L,ee,k)}function de(H,L){var ee=e.textChanges.ChangeTracker.with(H,function(k){return _e(k,H.sourceFile,L)});return ue.createCodeFixAction($,ee,[e.Diagnostics.Add_undefined_type_to_property_0,L.name.getText()],W,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function _e(H,L,ee){var k=e.factory.createKeywordTypeNode(151),b=ee.type,ie=e.isUnionTypeNode(b)?b.types.concat(k):[b,k];H.replaceNode(L,b,e.factory.createUnionTypeNode(ie))}function y(H,L){var ee=H.program.getTypeChecker(),k=Z(ee,L);if(k){var b=e.textChanges.ChangeTracker.with(H,function(ie){return V(ie,H.sourceFile,L,k)});return ue.createCodeFixAction($,b,[e.Diagnostics.Add_initializer_to_property_0,L.name.getText()],re,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}}function V(H,L,ee,k){var b=e.factory.updatePropertyDeclaration(ee,ee.decorators,ee.modifiers,ee.name,ee.questionToken,ee.type,k);H.replaceNode(L,ee,b)}function Z(H,L){return E(H,H.getTypeFromTypeNode(L.type))}function E(H,L){if(L.flags&512)return L===H.getFalseType()||L===H.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(L.isStringLiteral())return e.factory.createStringLiteral(L.value);if(L.isNumberLiteral())return e.factory.createNumericLiteral(L.value);if(L.flags&2048)return e.factory.createBigIntLiteral(L.value);if(L.isUnion())return e.firstDefined(L.types,function(b){return E(H,b)});if(L.isClass()){var ee=e.getClassLikeDeclarationOfSymbol(L.symbol);if(!ee||e.hasSyntacticModifier(ee,128))return;var k=e.getFirstConstructorWithBody(ee);return k&&k.parameters.length?void 0:e.factory.createNewExpression(e.factory.createIdentifier(L.symbol.name),void 0,void 0)}else if(H.isArrayLikeType(L))return e.factory.createArrayLiteralExpression()}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="requireInTs",Y=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(O){var A=re(O.sourceFile,O.program,O.span.start);if(A){var D=e.textChanges.ChangeTracker.with(O,function(de){return W(de,O.sourceFile,A)});return[ue.createCodeFixAction($,D,e.Diagnostics.Convert_require_to_import,$,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[$],getAllCodeActions:function(O){return ue.codeFixAll(O,Y,function(A,D){var de=re(D.file,O.program,D.start);de&&W(A,O.sourceFile,de)})}});function W(O,A,D){var de=D.allowSyntheticDefaults,_e=D.defaultImportName,y=D.namedImports,V=D.statement,Z=D.required;O.replaceNode(A,V,_e&&!de?e.factory.createImportEqualsDeclaration(void 0,void 0,!1,_e,e.factory.createExternalModuleReference(Z)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,_e,y),Z))}function re(O,A,D){var de=e.getTokenAtPosition(O,D).parent;if(!e.isRequireCall(de,!0))throw e.Debug.failBadSyntaxKind(de);var _e=e.cast(de.parent,e.isVariableDeclaration),y=e.tryCast(_e.name,e.isIdentifier),V=e.isObjectBindingPattern(_e.name)?ye(_e.name):void 0;if(y||V)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(A.getCompilerOptions()),defaultImportName:y,namedImports:V,statement:e.cast(_e.parent.parent,e.isVariableStatement),required:e.first(de.arguments)}}function ye(O){for(var A=[],D=0,de=O.elements;D<de.length;D++){var _e=de[D];if(!e.isIdentifier(_e.name)||_e.initializer)return;A.push(e.factory.createImportSpecifier(e.tryCast(_e.propertyName,e.isIdentifier),_e.name))}if(A.length)return e.factory.createNamedImports(A)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="useDefaultImport",Y=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ye){var O=ye.sourceFile,A=ye.span.start,D=W(O,A);if(D){var de=e.textChanges.ChangeTracker.with(ye,function(_e){return re(_e,O,D,ye.preferences)});return[ue.createCodeFixAction($,de,e.Diagnostics.Convert_to_default_import,$,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[$],getAllCodeActions:function(ye){return ue.codeFixAll(ye,Y,function(O,A){var D=W(A.file,A.start);D&&re(O,A.file,D,ye.preferences)})}});function W(ye,O){var A=e.getTokenAtPosition(ye,O);if(e.isIdentifier(A)){var D=A.parent;if(e.isImportEqualsDeclaration(D)&&e.isExternalModuleReference(D.moduleReference))return{importNode:D,name:A,moduleSpecifier:D.moduleReference.expression};if(e.isNamespaceImport(D)){var de=D.parent.parent;return{importNode:de,name:A,moduleSpecifier:de.moduleSpecifier}}}}function re(ye,O,A,D){ye.replaceNode(O,A.importNode,e.makeImport(A.name,void 0,A.moduleSpecifier,e.getQuotePreference(O,D)))}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="useBigintLiteral",Y=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(re){var ye=e.textChanges.ChangeTracker.with(re,function(O){return W(O,re.sourceFile,re.span)});if(ye.length>0)return[ue.createCodeFixAction($,ye,e.Diagnostics.Convert_to_a_bigint_numeric_literal,$,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[$],getAllCodeActions:function(re){return ue.codeFixAll(re,Y,function(ye,O){return W(ye,O.file,O)})}});function W(re,ye,O){var A=e.tryCast(e.getTokenAtPosition(ye,O.start),e.isNumericLiteral);if(A){var D=A.getText(ye)+"n";re.replaceNode(ye,A,e.factory.createBigIntLiteral(D))}}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixAddModuleReferTypeMissingTypeof",Y=$,W=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];ue.registerCodeFix({errorCodes:W,getCodeActions:function(O){var A=O.sourceFile,D=O.span,de=re(A,D.start),_e=e.textChanges.ChangeTracker.with(O,function(y){return ye(y,A,de)});return[ue.createCodeFixAction(Y,_e,e.Diagnostics.Add_missing_typeof,Y,e.Diagnostics.Add_missing_typeof)]},fixIds:[Y],getAllCodeActions:function(O){return ue.codeFixAll(O,W,function(A,D){return ye(A,O.sourceFile,re(D.file,D.start))})}});function re(O,A){var D=e.getTokenAtPosition(O,A);return e.Debug.assert(D.kind===100,"This token should be an ImportKeyword"),e.Debug.assert(D.parent.kind===198,"Token parent should be an ImportType"),D.parent}function ye(O,A,D){var de=e.factory.updateImportTypeNode(D,D.argument,D.qualifier,D.typeArguments,!0);O.replaceNode(A,D,de)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="wrapJsxInFragment",Y=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(O){var A=O.sourceFile,D=O.span,de=W(A,D.start);if(de){var _e=e.textChanges.ChangeTracker.with(O,function(y){return re(y,A,de)});return[ue.createCodeFixAction($,_e,e.Diagnostics.Wrap_in_JSX_fragment,$,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[$],getAllCodeActions:function(O){return ue.codeFixAll(O,Y,function(A,D){var de=W(O.sourceFile,D.start);de&&re(A,O.sourceFile,de)})}});function W(O,A){var D=e.getTokenAtPosition(O,A),de=D.parent,_e=de.parent;if(!(!e.isBinaryExpression(_e)&&(_e=_e.parent,!e.isBinaryExpression(_e)))&&e.nodeIsMissing(_e.operatorToken))return _e}function re(O,A,D){var de=ye(D);de&&O.replaceNode(A,D,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),de,e.factory.createJsxJsxClosingFragment()))}function ye(O){for(var A=[],D=O;;)if(e.isBinaryExpression(D)&&e.nodeIsMissing(D.operatorToken)&&D.operatorToken.kind===27){if(A.push(D.left),e.isJsxChild(D.right))return A.push(D.right),A;if(e.isBinaryExpression(D.right)){D=D.right;continue}else return}else return}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixConvertToMappedObjectType",Y=$,W=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];ue.registerCodeFix({errorCodes:W,getCodeActions:function(A){var D=A.sourceFile,de=A.span,_e=re(D,de.start);if(_e){var y=e.textChanges.ChangeTracker.with(A,function(Z){return O(Z,D,_e)}),V=e.idText(_e.container.name);return[ue.createCodeFixAction(Y,y,[e.Diagnostics.Convert_0_to_mapped_object_type,V],Y,[e.Diagnostics.Convert_0_to_mapped_object_type,V])]}},fixIds:[Y],getAllCodeActions:function(A){return ue.codeFixAll(A,W,function(D,de){var _e=re(de.file,de.start);_e&&O(D,de.file,_e)})}});function re(A,D){var de=e.getTokenAtPosition(A,D),_e=e.cast(de.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(_e.parent)){var y=e.isInterfaceDeclaration(_e.parent)?_e.parent:e.cast(_e.parent.parent,e.isTypeAliasDeclaration);return{indexSignature:_e,container:y}}}function ye(A,D){return e.factory.createTypeAliasDeclaration(A.decorators,A.modifiers,A.name,A.typeParameters,D)}function O(A,D,de){var _e=de.indexSignature,y=de.container,V=e.isInterfaceDeclaration(y)?y.members:y.type.members,Z=V.filter(function(k){return!e.isIndexSignatureDeclaration(k)}),E=e.first(_e.parameters),H=e.factory.createTypeParameterDeclaration(e.cast(E.name,e.isIdentifier),E.type),L=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(_e)?e.factory.createModifier(143):void 0,H,void 0,_e.questionToken,_e.type),ee=e.factory.createIntersectionTypeNode(Vr(Vr(Vr([],e.getAllSuperTypeNodes(y),!0),[L],!1),Z.length?[e.factory.createTypeLiteralNode(Z)]:e.emptyArray,!0));A.replaceNode(D,y,ye(y,ee))}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="removeAccidentalCallParentheses",Y=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(W){var re=e.findAncestor(e.getTokenAtPosition(W.sourceFile,W.span.start),e.isCallExpression);if(re){var ye=e.textChanges.ChangeTracker.with(W,function(O){O.deleteRange(W.sourceFile,{pos:re.expression.end,end:re.end})});return[ue.createCodeFixActionWithoutFixAll($,ye,e.Diagnostics.Remove_parentheses)]}},fixIds:[$]})})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="removeUnnecessaryAwait",Y=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(re){var ye=e.textChanges.ChangeTracker.with(re,function(O){return W(O,re.sourceFile,re.span)});if(ye.length>0)return[ue.createCodeFixAction($,ye,e.Diagnostics.Remove_unnecessary_await,$,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[$],getAllCodeActions:function(re){return ue.codeFixAll(re,Y,function(ye,O){return W(ye,O.file,O)})}});function W(re,ye,O){var A=e.tryCast(e.getTokenAtPosition(ye,O.start),function(Z){return Z.kind===131}),D=A&&e.tryCast(A.parent,e.isAwaitExpression);if(D){var de=D,_e=e.isParenthesizedExpression(D.parent);if(_e){var y=e.getLeftmostExpression(D.expression,!1);if(e.isIdentifier(y)){var V=e.findPrecedingToken(D.parent.pos,ye);V&&V.kind!==103&&(de=D.parent)}}re.replaceNode(ye,de,D.expression)}}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],Y="splitTypeOnlyImport";ue.registerCodeFix({errorCodes:$,fixIds:[Y],getCodeActions:function(ye){var O=e.textChanges.ChangeTracker.with(ye,function(A){return re(A,W(ye.sourceFile,ye.span),ye)});if(O.length)return[ue.createCodeFixAction(Y,O,e.Diagnostics.Split_into_two_separate_import_declarations,Y,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(ye){return ue.codeFixAll(ye,$,function(O,A){re(O,W(ye.sourceFile,A),ye)})}});function W(ye,O){return e.findAncestor(e.getTokenAtPosition(ye,O.start),e.isImportDeclaration)}function re(ye,O,A){if(O){var D=e.Debug.checkDefined(O.importClause);ye.replaceNode(A.sourceFile,O,e.factory.updateImportDeclaration(O,O.decorators,O.modifiers,e.factory.updateImportClause(D,D.isTypeOnly,D.name,void 0),O.moduleSpecifier)),ye.insertNodeAfter(A.sourceFile,O,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(D,D.isTypeOnly,void 0,D.namedBindings),O.moduleSpecifier))}}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixConvertConstToLet",Y=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];ue.registerCodeFix({errorCodes:Y,getCodeActions:function(ye){var O=ye.sourceFile,A=ye.span,D=ye.program,de=W(O,A.start,D);if(de!==void 0){var _e=e.textChanges.ChangeTracker.with(ye,function(y){return re(y,O,de)});return[ue.createCodeFixAction($,_e,e.Diagnostics.Convert_const_to_let,$,e.Diagnostics.Convert_const_to_let)]}},fixIds:[$]});function W(ye,O,A){var D,de=A.getTypeChecker(),_e=de.getSymbolAtLocation(e.getTokenAtPosition(ye,O)),y=e.tryCast((D=_e==null?void 0:_e.valueDeclaration)===null||D===void 0?void 0:D.parent,e.isVariableDeclarationList);if(y!==void 0){var V=e.findChildOfKind(y,85,ye);if(V!==void 0)return e.createRange(V.pos,V.end)}}function re(ye,O,A){ye.replaceRangeWithText(O,A,"let")}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="fixExpectedComma",Y=e.Diagnostics._0_expected.code,W=[Y];ue.registerCodeFix({errorCodes:W,getCodeActions:function(O){var A=O.sourceFile,D=re(A,O.span.start,O.errorCode);if(D){var de=e.textChanges.ChangeTracker.with(O,function(_e){return ye(_e,A,D)});return[ue.createCodeFixAction($,de,[e.Diagnostics.Change_0_to_1,";",","],$,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[$],getAllCodeActions:function(O){return ue.codeFixAll(O,W,function(A,D){var de=re(D.file,D.start,D.code);de&&ye(A,O.sourceFile,de)})}});function re(O,A,D){var de=e.getTokenAtPosition(O,A);return de.kind===26&&de.parent&&(e.isObjectLiteralExpression(de.parent)||e.isArrayLiteralExpression(de.parent))?{node:de}:void 0}function ye(O,A,D){var de=D.node,_e=e.factory.createToken(27);O.replaceNode(A,de,_e)}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="addVoidToPromise",Y="addVoidToPromise",W=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];ue.registerCodeFix({errorCodes:W,fixIds:[Y],getCodeActions:function(O){var A=e.textChanges.ChangeTracker.with(O,function(D){return re(D,O.sourceFile,O.span,O.program)});if(A.length>0)return[ue.createCodeFixAction($,A,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,Y,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(O){return ue.codeFixAll(O,W,function(A,D){return re(A,D.file,D,O.program,new e.Set)})}});function re(O,A,D,de,_e){var y=e.getTokenAtPosition(A,D.start);if(!(!e.isIdentifier(y)||!e.isCallExpression(y.parent)||y.parent.expression!==y||y.parent.arguments.length!==0)){var V=de.getTypeChecker(),Z=V.getSymbolAtLocation(y),E=Z==null?void 0:Z.valueDeclaration;if(!(!E||!e.isParameter(E)||!e.isNewExpression(E.parent.parent))&&!(_e!=null&&_e.has(E))){_e==null||_e.add(E);var H=ye(E.parent.parent);if(e.some(H)){var L=H[0],ee=!e.isUnionTypeNode(L)&&!e.isParenthesizedTypeNode(L)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([L,e.factory.createKeywordTypeNode(114)]).types[0]);ee&&O.insertText(A,L.pos,"("),O.insertText(A,L.end,ee?") | void":" | void")}else{var k=V.getResolvedSignature(y.parent),b=k==null?void 0:k.parameters[0],ie=b&&V.getTypeOfSymbolAtLocation(b,E.parent.parent);e.isInJSFile(E)?(!ie||ie.flags&3)&&(O.insertText(A,E.parent.parent.end,")"),O.insertText(A,e.skipTrivia(A.text,E.parent.parent.pos),"/** @type {Promise<void>} */(")):(!ie||ie.flags&2)&&O.insertText(A,E.parent.parent.expression.end,"<void>")}}}}function ye(O){var A;if(e.isInJSFile(O)){if(e.isParenthesizedExpression(O.parent)){var D=(A=e.getJSDocTypeTag(O.parent))===null||A===void 0?void 0:A.typeExpression.type;if(D&&e.isTypeReferenceNode(D)&&e.isIdentifier(D.typeName)&&e.idText(D.typeName)==="Promise")return D.typeArguments}}else return O.typeArguments}})(o=e.codefix||(e.codefix={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="Convert export",Y={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},W={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};ue.registerRefactor($,{kinds:[Y.kind,W.kind],getAvailableActions:function(V){var Z=re(V,V.triggerReason==="invoked");if(!Z)return e.emptyArray;if(!ue.isRefactorErrorInfo(Z)){var E=Z.wasDefault?Y:W;return[{name:$,description:E.description,actions:[E]}]}return V.preferences.provideRefactorNotApplicableReason?[{name:$,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[Mt(Mt({},Y),{notApplicableReason:Z.error}),Mt(Mt({},W),{notApplicableReason:Z.error})]}]:e.emptyArray},getEditsForAction:function(V,Z){e.Debug.assert(Z===Y.name||Z===W.name,"Unexpected action name");var E=re(V);e.Debug.assert(E&&!ue.isRefactorErrorInfo(E),"Expected applicable refactor info");var H=e.textChanges.ChangeTracker.with(V,function(L){return ye(V.file,V.program,E,L,V.cancellationToken)});return{edits:H,renameFilename:void 0,renameLocation:void 0}}});function re(V,Z){Z===void 0&&(Z=!0);var E=V.file,H=V.program,L=e.getRefactorContextSpan(V),ee=e.getTokenAtPosition(E,L.start),k=ee.parent&&e.getSyntacticModifierFlags(ee.parent)&1&&Z?ee.parent:e.getParentNodeInSpan(ee,E,L);if(!k||!e.isSourceFile(k.parent)&&!(e.isModuleBlock(k.parent)&&e.isAmbientModule(k.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var b=e.isSourceFile(k.parent)?k.parent.symbol:k.parent.parent.symbol,ie=e.getSyntacticModifierFlags(k)||(e.isExportAssignment(k)&&!k.isExportEquals?513:0),q=!!(ie&512);if(!(ie&1)||!q&&b.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var oe=H.getTypeChecker(),se=function(U){return e.isIdentifier(U)&&oe.getSymbolAtLocation(U)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(k.kind){case 254:case 255:case 256:case 258:case 257:case 259:{var w=k;return w.name?se(w.name)||{exportNode:w,exportName:w.name,wasDefault:q,exportingModuleSymbol:b}:void 0}case 235:{var R=k;if(!(R.declarationList.flags&2)||R.declarationList.declarations.length!==1)return;var ne=e.first(R.declarationList.declarations);return ne.initializer?(e.Debug.assert(!q,"Can't have a default flag here"),se(ne.name)||{exportNode:R,exportName:ne.name,wasDefault:q,exportingModuleSymbol:b}):void 0}case 269:{var w=k;return w.isExportEquals?void 0:se(w.expression)||{exportNode:w,exportName:w.expression,wasDefault:q,exportingModuleSymbol:b}}default:return}}function ye(V,Z,E,H,L){O(V,E,H,Z.getTypeChecker()),A(Z,E,H,L)}function O(V,Z,E,H){var L=Z.wasDefault,ee=Z.exportNode,k=Z.exportName;if(L)if(e.isExportAssignment(ee)&&!ee.isExportEquals){var b=ee.expression,ie=y(b.text,b.text);E.replaceNode(V,ee,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([ie])))}else E.delete(V,e.Debug.checkDefined(e.findModifier(ee,88),"Should find a default keyword in modifier list"));else{var q=e.Debug.checkDefined(e.findModifier(ee,93),"Should find an export keyword in modifier list");switch(ee.kind){case 254:case 255:case 256:E.insertNodeAfter(V,q,e.factory.createToken(88));break;case 235:var oe=e.first(ee.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(k,H,V)&&!oe.type){E.replaceNode(V,ee,e.factory.createExportDefault(e.Debug.checkDefined(oe.initializer,"Initializer was previously known to be present")));break}case 258:case 257:case 259:E.deleteModifier(V,q),E.insertNodeAfter(V,ee,e.factory.createExportDefault(e.factory.createIdentifier(k.text)));break;default:e.Debug.fail("Unexpected exportNode kind "+ee.kind)}}}function A(V,Z,E,H){var L=Z.wasDefault,ee=Z.exportName,k=Z.exportingModuleSymbol,b=V.getTypeChecker(),ie=e.Debug.checkDefined(b.getSymbolAtLocation(ee),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(V.getSourceFiles(),b,H,ie,k,ee.text,L,function(q){var oe=q.getSourceFile();L?D(oe,q,E,ee.text):de(oe,q,E)})}function D(V,Z,E,H){var L=Z.parent;switch(L.kind){case 204:E.replaceNode(V,Z,e.factory.createIdentifier(H));break;case 268:case 273:{var ee=L;E.replaceNode(V,ee,_e(H,ee.name.text));break}case 265:{var k=L;e.Debug.assert(k.name===Z,"Import clause name should match provided ref");var ee=_e(H,Z.text),b=k.namedBindings;if(!b)E.replaceNode(V,Z,e.factory.createNamedImports([ee]));else if(b.kind===266){E.deleteRange(V,{pos:Z.getStart(V),end:b.getStart(V)});var ie=e.isStringLiteral(k.parent.moduleSpecifier)?e.quotePreferenceFromString(k.parent.moduleSpecifier,V):1,q=e.makeImport(void 0,[_e(H,Z.text)],k.parent.moduleSpecifier,ie);E.insertNodeAfter(V,k.parent,q)}else E.delete(V,Z),E.insertNodeAtEndOfList(V,b.elements,ee);break}default:e.Debug.failBadSyntaxKind(L)}}function de(V,Z,E){var H=Z.parent;switch(H.kind){case 204:E.replaceNode(V,Z,e.factory.createIdentifier("default"));break;case 268:{var L=e.factory.createIdentifier(H.name.text);H.parent.elements.length===1?E.replaceNode(V,H.parent,L):(E.delete(V,H),E.insertNodeBefore(V,H.parent,L));break}case 273:{E.replaceNode(V,H,y("default",H.name.text));break}default:e.Debug.assertNever(H,"Unexpected parent kind "+H.kind)}}function _e(V,Z){return e.factory.createImportSpecifier(V===Z?void 0:e.factory.createIdentifier(V),e.factory.createIdentifier(Z))}function y(V,Z){return e.factory.createExportSpecifier(V===Z?void 0:e.factory.createIdentifier(V),e.factory.createIdentifier(Z))}})(o=e.refactor||(e.refactor={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="Convert import",Y={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},W={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"};ue.registerRefactor($,{kinds:[Y.kind,W.kind],getAvailableActions:function(y){var V=re(y,y.triggerReason==="invoked");if(!V)return e.emptyArray;if(!ue.isRefactorErrorInfo(V)){var Z=V.kind===266,E=Z?Y:W;return[{name:$,description:E.description,actions:[E]}]}return y.preferences.provideRefactorNotApplicableReason?[{name:$,description:Y.description,actions:[Mt(Mt({},Y),{notApplicableReason:V.error})]},{name:$,description:W.description,actions:[Mt(Mt({},W),{notApplicableReason:V.error})]}]:e.emptyArray},getEditsForAction:function(y,V){e.Debug.assert(V===Y.name||V===W.name,"Unexpected action name");var Z=re(y);e.Debug.assert(Z&&!ue.isRefactorErrorInfo(Z),"Expected applicable refactor info");var E=e.textChanges.ChangeTracker.with(y,function(H){return ye(y.file,y.program,H,Z)});return{edits:E,renameFilename:void 0,renameLocation:void 0}}});function re(y,V){V===void 0&&(V=!0);var Z=y.file,E=e.getRefactorContextSpan(y),H=e.getTokenAtPosition(Z,E.start),L=V?e.findAncestor(H,e.isImportDeclaration):e.getParentNodeInSpan(H,Z,E);if(!L||!e.isImportDeclaration(L))return{error:"Selection is not an import declaration."};if(!(L.getEnd()<E.start+E.length)){var ee=L.importClause;return ee?ee.namedBindings?ee.namedBindings:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)}}}function ye(y,V,Z,E){var H=V.getTypeChecker();E.kind===266?O(y,H,Z,E,e.getAllowSyntheticDefaultImports(V.getCompilerOptions())):de(y,H,Z,E)}function O(y,V,Z,E,H){var L=!1,ee=[],k=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(E.name,V,y,function(U){if(!e.isPropertyAccessOrQualifiedName(U.parent))L=!0;else{var C=A(U.parent).text;V.resolveName(C,U,67108863,!0)&&k.set(C,!0),e.Debug.assert(D(U.parent)===U,"Parent expression should match id"),ee.push(U.parent)}});for(var b=new e.Map,ie=0,q=ee;ie<q.length;ie++){var oe=q[ie],se=A(oe).text,w=b.get(se);w===void 0&&b.set(se,w=k.has(se)?e.getUniqueName(se,y):se),Z.replaceNode(y,oe,e.factory.createIdentifier(w))}var R=[];b.forEach(function(U,C){R.push(e.factory.createImportSpecifier(U===C?void 0:e.factory.createIdentifier(C),e.factory.createIdentifier(U)))});var ne=E.parent.parent;L&&!H?Z.insertNodeAfter(y,ne,_e(ne,void 0,R)):Z.replaceNode(y,ne,_e(ne,L?e.factory.createIdentifier(E.name.text):void 0,R))}function A(y){return e.isPropertyAccessExpression(y)?y.name:y.right}function D(y){return e.isPropertyAccessExpression(y)?y.expression:y.left}function de(y,V,Z,E){var H=E.parent.parent,L=H.moduleSpecifier,ee=new e.Set;E.elements.forEach(function(C){var d=V.getSymbolAtLocation(C.name);d&&ee.add(d)});var k=L&&e.isStringLiteral(L)?e.codefix.moduleSpecifierToValidIdentifier(L.text,99):"module";function b(C){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(C.name,V,y,function(d){var G=V.resolveName(k,d,67108863,!0);return G?ee.has(G)?e.isExportSpecifier(d.parent):!0:!1})}for(var ie=E.elements.some(b),q=ie?e.getUniqueName(k,y):k,oe=new e.Set,se=function(C){var d=(C.propertyName||C.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(C.name,V,y,function(G){var g=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(q),d);e.isShorthandPropertyAssignment(G.parent)?Z.replaceNode(y,G.parent,e.factory.createPropertyAssignment(G.text,g)):e.isExportSpecifier(G.parent)?oe.add(C):Z.replaceNode(y,G,g)})},w=0,R=E.elements;w<R.length;w++){var ne=R[w];se(ne)}if(Z.replaceNode(y,E,e.factory.createNamespaceImport(e.factory.createIdentifier(q))),oe.size){var U=e.arrayFrom(oe.values()).map(function(C){return e.factory.createImportSpecifier(C.propertyName&&e.factory.createIdentifier(C.propertyName.text),e.factory.createIdentifier(C.name.text))});Z.insertNodeAfter(y,E.parent.parent,_e(H,void 0,U))}}function _e(y,V,Z){return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,V,Z&&Z.length?e.factory.createNamedImports(Z):void 0),y.moduleSpecifier)}})(o=e.refactor||(e.refactor={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $;(function(Y){var W="Convert to optional chain expression",re=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),ye={name:W,description:re,kind:"refactor.rewrite.expression.optionalChain"};ue.registerRefactor(W,{kinds:[ye.kind],getAvailableActions:O,getEditsForAction:A});function O(w){var R=y(w,w.triggerReason==="invoked");return R?ue.isRefactorErrorInfo(R)?w.preferences.provideRefactorNotApplicableReason?[{name:W,description:re,actions:[Mt(Mt({},ye),{notApplicableReason:R.error})]}]:e.emptyArray:[{name:W,description:re,actions:[ye]}]:e.emptyArray}function A(w,R){var ne=y(w);e.Debug.assert(ne&&!ue.isRefactorErrorInfo(ne),"Expected applicable refactor info");var U=e.textChanges.ChangeTracker.with(w,function(C){return se(w.file,w.program.getTypeChecker(),C,ne,R)});return{edits:U,renameFilename:void 0,renameLocation:void 0}}function D(w){return e.isBinaryExpression(w)||e.isConditionalExpression(w)}function de(w){return e.isExpressionStatement(w)||e.isReturnStatement(w)||e.isVariableStatement(w)}function _e(w){return D(w)||de(w)}function y(w,R){R===void 0&&(R=!0);var ne=w.file,U=w.program,C=e.getRefactorContextSpan(w),d=C.length===0;if(!(d&&!R)){var G=e.getTokenAtPosition(ne,C.start),g=e.findTokenOnLeftOfPosition(ne,C.start+C.length),p=e.createTextSpanFromBounds(G.pos,g&&g.end>=G.pos?g.getEnd():G.getEnd()),f=d?b(G):k(G,p),T=f&&_e(f)?ie(f):void 0;if(!T)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var m=U.getTypeChecker();return e.isConditionalExpression(T)?V(T,m):Z(T)}}function V(w,R){var ne=w.condition,U=q(w.whenTrue);if(!U||R.isNullableType(R.getTypeAtLocation(U)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(ne)||e.isIdentifier(ne))&&H(ne,U.expression))return{finalExpression:U,occurrences:[ne],expression:w};if(e.isBinaryExpression(ne)){var C=E(U.expression,ne);return C?{finalExpression:U,occurrences:C,expression:w}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}function Z(w){if(w.operatorToken.kind!==55)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var R=q(w.right);if(!R)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var ne=E(R.expression,w.left);return ne?{finalExpression:R,occurrences:ne,expression:w}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}function E(w,R){for(var ne=[];e.isBinaryExpression(R)&&R.operatorToken.kind===55;){var U=H(e.skipParentheses(w),e.skipParentheses(R.right));if(!U)break;ne.push(U),w=U,R=R.left}var C=H(w,R);return C&&ne.push(C),ne.length>0?ne:void 0}function H(w,R){if(!(!e.isIdentifier(R)&&!e.isPropertyAccessExpression(R)&&!e.isElementAccessExpression(R)))return L(w,R)?R:void 0}function L(w,R){for(;(e.isCallExpression(w)||e.isPropertyAccessExpression(w)||e.isElementAccessExpression(w))&&ee(w)!==ee(R);)w=w.expression;for(;e.isPropertyAccessExpression(w)&&e.isPropertyAccessExpression(R)||e.isElementAccessExpression(w)&&e.isElementAccessExpression(R);){if(ee(w)!==ee(R))return!1;w=w.expression,R=R.expression}return e.isIdentifier(w)&&e.isIdentifier(R)&&w.getText()===R.getText()}function ee(w){if(e.isIdentifier(w)||e.isStringOrNumericLiteralLike(w))return w.getText();if(e.isPropertyAccessExpression(w))return ee(w.name);if(e.isElementAccessExpression(w))return ee(w.argumentExpression)}function k(w,R){for(;w.parent;){if(_e(w)&&R.length!==0&&w.end>=R.start+R.length)return w;w=w.parent}}function b(w){for(;w.parent;){if(_e(w)&&!_e(w.parent))return w;w=w.parent}}function ie(w){if(D(w))return w;if(e.isVariableStatement(w)){var R=e.getSingleVariableOfVariableStatement(w),ne=R==null?void 0:R.initializer;return ne&&D(ne)?ne:void 0}return w.expression&&D(w.expression)?w.expression:void 0}function q(w){if(w=e.skipParentheses(w),e.isBinaryExpression(w))return q(w.left);if((e.isPropertyAccessExpression(w)||e.isElementAccessExpression(w)||e.isCallExpression(w))&&!e.isOptionalChain(w))return w}function oe(w,R,ne){if(e.isPropertyAccessExpression(R)||e.isElementAccessExpression(R)||e.isCallExpression(R)){var U=oe(w,R.expression,ne),C=ne.length>0?ne[ne.length-1]:void 0,d=(C==null?void 0:C.getText())===R.expression.getText();if(d&&ne.pop(),e.isCallExpression(R))return d?e.factory.createCallChain(U,e.factory.createToken(28),R.typeArguments,R.arguments):e.factory.createCallChain(U,R.questionDotToken,R.typeArguments,R.arguments);if(e.isPropertyAccessExpression(R))return d?e.factory.createPropertyAccessChain(U,e.factory.createToken(28),R.name):e.factory.createPropertyAccessChain(U,R.questionDotToken,R.name);if(e.isElementAccessExpression(R))return d?e.factory.createElementAccessChain(U,e.factory.createToken(28),R.argumentExpression):e.factory.createElementAccessChain(U,R.questionDotToken,R.argumentExpression)}return R}function se(w,R,ne,U,C){var d=U.finalExpression,G=U.occurrences,g=U.expression,p=G[G.length-1],f=oe(R,d,G);f&&(e.isPropertyAccessExpression(f)||e.isElementAccessExpression(f)||e.isCallExpression(f))&&(e.isBinaryExpression(g)?ne.replaceNodeRange(w,p,d,f):e.isConditionalExpression(g)&&ne.replaceNode(w,g,e.factory.createBinaryExpression(f,e.factory.createToken(60),g.whenFalse)))}})($=ue.convertToOptionalChainExpression||(ue.convertToOptionalChainExpression={}))})(o=e.refactor||(e.refactor={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $;(function(Y){var W="Convert overload list to single signature",re=e.Diagnostics.Convert_overload_list_to_single_signature.message,ye={name:W,description:re,kind:"refactor.rewrite.function.overloadList"};ue.registerRefactor(W,{kinds:[ye.kind],getEditsForAction:A,getAvailableActions:O});function O(_e){var y=_e.file,V=_e.startPosition,Z=_e.program,E=de(y,V,Z);return E?[{name:W,description:re,actions:[ye]}]:e.emptyArray}function A(_e){var y=_e.file,V=_e.startPosition,Z=_e.program,E=de(y,V,Z);if(!E)return;var H=Z.getTypeChecker(),L=E[E.length-1],ee=L;switch(L.kind){case 166:{ee=e.factory.updateMethodSignature(L,L.modifiers,L.name,L.questionToken,L.typeParameters,b(E),L.type);break}case 167:{ee=e.factory.updateMethodDeclaration(L,L.decorators,L.modifiers,L.asteriskToken,L.name,L.questionToken,L.typeParameters,b(E),L.type,L.body);break}case 172:{ee=e.factory.updateCallSignature(L,L.typeParameters,b(E),L.type);break}case 169:{ee=e.factory.updateConstructorDeclaration(L,L.decorators,L.modifiers,b(E),L.body);break}case 173:{ee=e.factory.updateConstructSignature(L,L.typeParameters,b(E),L.type);break}case 254:{ee=e.factory.updateFunctionDeclaration(L,L.decorators,L.modifiers,L.asteriskToken,L.name,L.typeParameters,b(E),L.type,L.body);break}default:return e.Debug.failBadSyntaxKind(L,"Unhandled signature kind in overload list conversion refactoring")}if(ee===L)return;var k=e.textChanges.ChangeTracker.with(_e,function(oe){oe.replaceNodeRange(y,E[0],E[E.length-1],ee)});return{renameFilename:void 0,renameLocation:void 0,edits:k};function b(oe){var se=oe[oe.length-1];return e.isFunctionLikeDeclaration(se)&&se.body&&(oe=oe.slice(0,oe.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(oe,ie)))])}function ie(oe){var se=e.map(oe.parameters,q);return e.setEmitFlags(e.factory.createTupleTypeNode(se),e.some(se,function(w){return!!e.length(e.getSyntheticLeadingComments(w))})?0:1)}function q(oe){e.Debug.assert(e.isIdentifier(oe.name));var se=e.setTextRange(e.factory.createNamedTupleMember(oe.dotDotDotToken,oe.name,oe.questionToken,oe.type||e.factory.createKeywordTypeNode(129)),oe),w=oe.symbol&&oe.symbol.getDocumentationComment(H);if(w){var R=e.displayPartsToString(w);R.length&&e.setSyntheticLeadingComments(se,[{text:`*
`+R.split(`
`).map(function(ne){return" * "+ne}).join(`
`)+`
`,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return se}}function D(_e){switch(_e.kind){case 166:case 167:case 172:case 169:case 173:case 254:return!0}return!1}function de(_e,y,V){var Z=e.getTokenAtPosition(_e,y),E=e.findAncestor(Z,D);if(E){var H=V.getTypeChecker(),L=E.symbol;if(L){var ee=L.declarations;if(!(e.length(ee)<=1)&&e.every(ee,function(oe){return e.getSourceFileOfNode(oe)===_e})&&D(ee[0])){var k=ee[0].kind;if(e.every(ee,function(oe){return oe.kind===k})){var b=ee;if(!e.some(b,function(oe){return!!oe.typeParameters||e.some(oe.parameters,function(se){return!!se.decorators||!!se.modifiers||!e.isIdentifier(se.name)})})){var ie=e.mapDefined(b,function(oe){return H.getSignatureFromDeclaration(oe)});if(e.length(ie)===e.length(ee)){var q=H.getReturnTypeOfSignature(ie[0]);if(e.every(ie,function(oe){return H.getReturnTypeOfSignature(oe)===q}))return b}}}}}}}})($=ue.addOrRemoveBracesToArrowFunction||(ue.addOrRemoveBracesToArrowFunction={}))})(o=e.refactor||(e.refactor={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $;(function(Y){var W="Extract Symbol",re={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},ye={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};ue.registerRefactor(W,{kinds:[re.kind,ye.kind],getAvailableActions:O,getEditsForAction:A});function O(te){var Se=te.kind,be=_e(te.file,e.getRefactorContextSpan(te),te.triggerReason==="invoked"),Ce=be.targetRange;if(Ce===void 0){if(!be.errors||be.errors.length===0||!te.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var Be=[];return ue.refactorKindBeginsWith(ye.kind,Se)&&Be.push({name:W,description:ye.description,actions:[Mt(Mt({},ye),{notApplicableReason:In(be.errors)})]}),ue.refactorKindBeginsWith(re.kind,Se)&&Be.push({name:W,description:re.description,actions:[Mt(Mt({},re),{notApplicableReason:In(be.errors)})]}),Be}var De=ee(Ce,te);if(De===void 0)return e.emptyArray;for(var en=[],fe=new e.Map,Ne,qe=[],pe=new e.Map,we,pn=0,Qe=0,Re=De;Qe<Re.length;Qe++){var He=Re[Qe],Ln=He.functionExtraction,Un=He.constantExtraction,fn=Ln.description;if(ue.refactorKindBeginsWith(ye.kind,Se)&&(Ln.errors.length===0?fe.has(fn)||(fe.set(fn,!0),en.push({description:fn,name:"function_scope_"+pn,kind:ye.kind})):Ne||(Ne={description:fn,name:"function_scope_"+pn,notApplicableReason:In(Ln.errors),kind:ye.kind})),ue.refactorKindBeginsWith(re.kind,Se))if(Un.errors.length===0){var En=Un.description;pe.has(En)||(pe.set(En,!0),qe.push({description:En,name:"constant_scope_"+pn,kind:re.kind}))}else we||(we={description:fn,name:"constant_scope_"+pn,notApplicableReason:In(Un.errors),kind:re.kind});pn++}var i=[];return en.length?i.push({name:W,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:en}):te.preferences.provideRefactorNotApplicableReason&&Ne&&i.push({name:W,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[Ne]}),qe.length?i.push({name:W,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:qe}):te.preferences.provideRefactorNotApplicableReason&&we&&i.push({name:W,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[we]}),i.length?i:e.emptyArray;function In(X){var rn=X[0].messageText;return typeof rn!="string"&&(rn=rn.messageText),rn}}Y.getAvailableActions=O;function A(te,Se){var be=_e(te.file,e.getRefactorContextSpan(te)),Ce=be.targetRange,Be=/^function_scope_(\d+)$/.exec(Se);if(Be){var De=+Be[1];return e.Debug.assert(isFinite(De),"Expected to parse a finite number from the function scope index"),H(Ce,te,De)}var en=/^constant_scope_(\d+)$/.exec(Se);if(en){var De=+en[1];return e.Debug.assert(isFinite(De),"Expected to parse a finite number from the constant scope index"),L(Ce,te,De)}e.Debug.fail("Unrecognized action name")}Y.getEditsForAction=A;var D;(function(te){function Se(be){return{message:be,code:0,category:e.DiagnosticCategory.Message,key:be}}te.cannotExtractRange=Se("Cannot extract range."),te.cannotExtractImport=Se("Cannot extract import statement."),te.cannotExtractSuper=Se("Cannot extract super call."),te.cannotExtractJSDoc=Se("Cannot extract JSDoc."),te.cannotExtractEmpty=Se("Cannot extract empty range."),te.expressionExpected=Se("expression expected."),te.uselessConstantType=Se("No reason to extract constant of type."),te.statementOrExpressionExpected=Se("Statement or expression expected."),te.cannotExtractRangeContainingConditionalBreakOrContinueStatements=Se("Cannot extract range containing conditional break or continue statements."),te.cannotExtractRangeContainingConditionalReturnStatement=Se("Cannot extract range containing conditional return statement."),te.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=Se("Cannot extract range containing labeled break or continue with target outside of the range."),te.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=Se("Cannot extract range containing writes to references located outside of the target range in generators."),te.typeWillNotBeVisibleInTheNewScope=Se("Type will not visible in the new scope."),te.functionWillNotBeVisibleInTheNewScope=Se("Function will not visible in the new scope."),te.cannotExtractIdentifier=Se("Select more than a single identifier."),te.cannotExtractExportedEntity=Se("Cannot extract exported declaration"),te.cannotWriteInExpression=Se("Cannot write back side-effects when extracting an expression"),te.cannotExtractReadonlyPropertyInitializerOutsideConstructor=Se("Cannot move initialization of read-only class property outside of the constructor"),te.cannotExtractAmbientBlock=Se("Cannot extract code from ambient contexts"),te.cannotAccessVariablesFromNestedScopes=Se("Cannot access variables from nested scopes"),te.cannotExtractToJSClass=Se("Cannot extract constant to a class scope in JS"),te.cannotExtractToExpressionArrowFunction=Se("Cannot extract constant to an arrow function without a block")})(D=Y.Messages||(Y.Messages={}));var de;(function(te){te[te.None=0]="None",te[te.HasReturn=1]="HasReturn",te[te.IsGenerator=2]="IsGenerator",te[te.IsAsyncFunction=4]="IsAsyncFunction",te[te.UsesThis=8]="UsesThis",te[te.InStaticRegion=16]="InStaticRegion"})(de||(de={}));function _e(te,Se,be){be===void 0&&(be=!0);var Ce=Se.length;if(Ce===0&&!be)return{errors:[e.createFileDiagnostic(te,Se.start,Ce,D.cannotExtractEmpty)]};var Be=Ce===0&&be,De=e.findFirstNonJsxWhitespaceToken(te,Se.start),en=e.findTokenOnLeftOfPosition(te,e.textSpanEnd(Se)),fe=De&&en&&be?y(De,en,te):Se,Ne=Be?K(De):e.getParentNodeInSpan(De,te,fe),qe=Be?Ne:e.getParentNodeInSpan(en,te,fe),pe=[],we=de.None;if(!Ne||!qe)return{errors:[e.createFileDiagnostic(te,Se.start,Ce,D.cannotExtractRange)]};if(e.isJSDoc(Ne))return{errors:[e.createFileDiagnostic(te,Se.start,Ce,D.cannotExtractJSDoc)]};if(Ne.parent!==qe.parent)return{errors:[e.createFileDiagnostic(te,Se.start,Ce,D.cannotExtractRange)]};if(Ne!==qe){if(!Ae(Ne.parent))return{errors:[e.createFileDiagnostic(te,Se.start,Ce,D.cannotExtractRange)]};for(var pn=[],Qe=Ne,Re=0,He=Qe.parent.statements;Re<He.length;Re++){var Ln=He[Re];if(Ln===Ne||pn.length){var Un=rn(Ln);if(Un)return{errors:Un};pn.push(Ln)}if(Ln===qe)break}return pn.length?{targetRange:{range:pn,facts:we,declarations:pe}}:{errors:[e.createFileDiagnostic(te,Se.start,Ce,D.cannotExtractRange)]}}if(e.isReturnStatement(Ne)&&!Ne.expression)return{errors:[e.createFileDiagnostic(te,Se.start,Ce,D.cannotExtractRange)]};var fn=i(Ne),En=In(fn)||rn(fn);if(En)return{errors:En};return{targetRange:{range:V(fn),facts:we,declarations:pe}};function i($n){if(e.isReturnStatement($n)){if($n.expression)return $n.expression}else if(e.isVariableStatement($n)){for(var Vn=0,le=void 0,Pe=0,xe=$n.declarationList.declarations;Pe<xe.length;Pe++){var Ze=xe[Pe];Ze.initializer&&(Vn++,le=Ze.initializer)}if(Vn===1)return le}else if(e.isVariableDeclaration($n)&&$n.initializer)return $n.initializer;return $n}function In($n){if(e.isIdentifier(e.isExpressionStatement($n)?$n.expression:$n))return[e.createDiagnosticForNode($n,D.cannotExtractIdentifier)]}function X($n,Vn){for(var le=$n;le!==Vn;){if(le.kind===165){e.isStatic(le)&&(we|=de.InStaticRegion);break}else if(le.kind===162){var Pe=e.getContainingFunction(le);Pe.kind===169&&(we|=de.InStaticRegion);break}else le.kind===167&&e.isStatic(le)&&(we|=de.InStaticRegion);le=le.parent}}function rn($n){var Vn;if(function(Le){Le[Le.None=0]="None",Le[Le.Break=1]="Break",Le[Le.Continue=2]="Continue",Le[Le.Return=4]="Return"}(Vn||(Vn={})),e.Debug.assert($n.pos<=$n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized($n.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!e.isStatement($n)&&!(e.isExpressionNode($n)&&I($n)))return[e.createDiagnosticForNode($n,D.statementOrExpressionExpected)];if($n.flags&8388608)return[e.createDiagnosticForNode($n,D.cannotExtractAmbientBlock)];var le=e.getContainingClass($n);le&&X($n,le);var Pe,xe=4,Ze;return hn($n),Pe;function hn(Le){if(Pe)return!0;if(e.isDeclaration(Le)){var $e=Le.kind===252?Le.parent.parent:Le;if(e.hasSyntacticModifier($e,1))return(Pe||(Pe=[])).push(e.createDiagnosticForNode(Le,D.cannotExtractExportedEntity)),!0;pe.push(Le.symbol)}switch(Le.kind){case 264:return(Pe||(Pe=[])).push(e.createDiagnosticForNode(Le,D.cannotExtractImport)),!0;case 269:return(Pe||(Pe=[])).push(e.createDiagnosticForNode(Le,D.cannotExtractExportedEntity)),!0;case 106:if(Le.parent.kind===206){var An=e.getContainingClass(Le);if(An.pos<Se.start||An.end>=Se.start+Se.length)return(Pe||(Pe=[])).push(e.createDiagnosticForNode(Le,D.cannotExtractSuper)),!0}else we|=de.UsesThis;break;case 212:e.forEachChild(Le,function Wn(ze){if(e.isThis(ze))we|=de.UsesThis;else{if(e.isClassLike(ze)||e.isFunctionLike(ze)&&!e.isArrowFunction(ze))return!1;e.forEachChild(ze,Wn)}});case 255:case 254:e.isSourceFile(Le.parent)&&Le.parent.externalModuleIndicator===void 0&&(Pe||(Pe=[])).push(e.createDiagnosticForNode(Le,D.functionWillNotBeVisibleInTheNewScope));case 224:case 211:case 167:case 169:case 170:case 171:return!1}var Ue=xe;switch(Le.kind){case 237:xe=0;break;case 250:xe=0;break;case 233:Le.parent&&Le.parent.kind===250&&Le.parent.finallyBlock===Le&&(xe=4);break;case 288:case 287:xe|=1;break;default:e.isIterationStatement(Le,!1)&&(xe|=3);break}switch(Le.kind){case 190:case 108:we|=de.UsesThis;break;case 248:{var gn=Le.label;(Ze||(Ze=[])).push(gn.escapedText),e.forEachChild(Le,hn),Ze.pop();break}case 244:case 243:{var gn=Le.label;gn?e.contains(Ze,gn.escapedText)||(Pe||(Pe=[])).push(e.createDiagnosticForNode(Le,D.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):xe&(Le.kind===244?1:2)||(Pe||(Pe=[])).push(e.createDiagnosticForNode(Le,D.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 216:we|=de.IsAsyncFunction;break;case 222:we|=de.IsGenerator;break;case 245:xe&4?we|=de.HasReturn:(Pe||(Pe=[])).push(e.createDiagnosticForNode(Le,D.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(Le,hn);break}xe=Ue}}}Y.getRangeToExtract=_e;function y(te,Se,be){var Ce=te.getStart(be),Be=Se.getEnd();return be.text.charCodeAt(Be)===59&&Be++,{start:Ce,length:Be-Ce}}function V(te){if(e.isStatement(te))return[te];if(e.isExpressionNode(te))return e.isExpressionStatement(te.parent)?[te.parent]:te}function Z(te){return e.isFunctionLikeDeclaration(te)||e.isSourceFile(te)||e.isModuleBlock(te)||e.isClassLike(te)}function E(te){var Se=x(te.range)?e.first(te.range):te.range;if(te.facts&de.UsesThis){var be=e.getContainingClass(Se);if(be){var Ce=e.findAncestor(Se,e.isFunctionLikeDeclaration);return Ce?[Ce,be]:[be]}}for(var Be=[];;)if(Se=Se.parent,Se.kind===162&&(Se=e.findAncestor(Se,function(De){return e.isFunctionLikeDeclaration(De)}).parent),Z(Se)&&(Be.push(Se),Se.kind===300))return Be}function H(te,Se,be){var Ce=k(te,Se),Be=Ce.scopes,De=Ce.readsAndWrites,en=De.target,fe=De.usagesPerScope,Ne=De.functionErrorsPerScope,qe=De.exposedVariableDeclarations;return e.Debug.assert(!Ne[be].length,"The extraction went missing? How?"),Se.cancellationToken.throwIfCancellationRequested(),R(en,Be[be],fe[be],qe,te,Se)}function L(te,Se,be){var Ce=k(te,Se),Be=Ce.scopes,De=Ce.readsAndWrites,en=De.target,fe=De.usagesPerScope,Ne=De.constantErrorsPerScope,qe=De.exposedVariableDeclarations;e.Debug.assert(!Ne[be].length,"The extraction went missing? How?"),e.Debug.assert(qe.length===0,"Extract constant accepted a range containing a variable declaration?"),Se.cancellationToken.throwIfCancellationRequested();var pe=e.isExpression(en)?en:en.statements[0].expression;return ne(pe,Be[be],fe[be],te.facts,Se)}function ee(te,Se){var be=k(te,Se),Ce=be.scopes,Be=be.readsAndWrites,De=Be.functionErrorsPerScope,en=Be.constantErrorsPerScope,fe=Ce.map(function(Ne,qe){var pe=b(Ne),we=ie(Ne),pn=e.isFunctionLikeDeclaration(Ne)?q(Ne):e.isClassLike(Ne)?oe(Ne):se(Ne),Qe,Re;return pn===1?(Qe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[pe,"global"]),Re=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[we,"global"])):pn===0?(Qe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[pe,"module"]),Re=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[we,"module"])):(Qe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[pe,pn]),Re=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[we,pn])),qe===0&&!e.isClassLike(Ne)&&(Re=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[we])),{functionExtraction:{description:Qe,errors:De[qe]},constantExtraction:{description:Re,errors:en[qe]}}});return fe}function k(te,Se){var be=Se.file,Ce=E(te),Be=M(te,be),De=z(te,Ce,Be,be,Se.program.getTypeChecker(),Se.cancellationToken);return{scopes:Ce,readsAndWrites:De}}function b(te){return e.isFunctionLikeDeclaration(te)?"inner function":e.isClassLike(te)?"method":"function"}function ie(te){return e.isClassLike(te)?"readonly field":"constant"}function q(te){switch(te.kind){case 169:return"constructor";case 211:case 254:return te.name?"function '"+te.name.text+"'":e.ANONYMOUS;case 212:return"arrow function";case 167:return"method '"+te.name.getText()+"'";case 170:return"'get "+te.name.getText()+"'";case 171:return"'set "+te.name.getText()+"'";default:throw e.Debug.assertNever(te,"Unexpected scope kind "+te.kind)}}function oe(te){return te.kind===255?te.name?"class '"+te.name.text+"'":"anonymous class declaration":te.name?"class expression '"+te.name.text+"'":"anonymous class expression"}function se(te){return te.kind===260?"namespace '"+te.parent.name.getText()+"'":te.externalModuleIndicator?0:1}var w;(function(te){te[te.Module=0]="Module",te[te.Global=1]="Global"})(w||(w={}));function R(te,Se,be,Ce,Be,De){var en=be.usages,fe=be.typeParameterUsages,Ne=be.substitutions,qe=De.program.getTypeChecker(),pe=e.getEmitScriptTarget(De.program.getCompilerOptions()),we=e.codefix.createImportAdder(De.file,De.program,De.preferences,De.host),pn=Se.getSourceFile(),Qe=e.getUniqueName(e.isClassLike(Se)?"newMethod":"newFunction",pn),Re=e.isInJSFile(Se),He=e.factory.createIdentifier(Qe),Ln,Un=[],fn=[],En;en.forEach(function(Bn,J){var Cn;if(!Re){var Gn=qe.getTypeOfSymbolAtLocation(Bn.symbol,Bn.node);Gn=qe.getBaseTypeOfLiteralType(Gn),Cn=e.codefix.typeToAutoImportableTypeNode(qe,we,Gn,Se,pe,1)}var cn=e.factory.createParameterDeclaration(void 0,void 0,void 0,J,void 0,Cn);Un.push(cn),Bn.usage===2&&(En||(En=[])).push(Bn),fn.push(e.factory.createIdentifier(J))});var i=e.arrayFrom(fe.values()).map(function(Bn){return{type:Bn,declaration:C(Bn)}}),In=i.sort(d),X=In.length===0?void 0:In.map(function(Bn){return Bn.declaration}),rn=X!==void 0?X.map(function(Bn){return e.factory.createTypeReferenceNode(Bn.name,void 0)}):void 0;if(e.isExpression(te)&&!Re){var $n=qe.getContextualType(te);Ln=qe.typeToTypeNode($n,Se,1)}var Vn=g(te,Ce,En,Ne,!!(Be.facts&de.HasReturn)),le=Vn.body,Pe=Vn.returnValueProperty;e.suppressLeadingAndTrailingTrivia(le);var xe;if(e.isClassLike(Se)){var Ze=Re?[]:[e.factory.createModifier(121)];Be.facts&de.InStaticRegion&&Ze.push(e.factory.createModifier(124)),Be.facts&de.IsAsyncFunction&&Ze.push(e.factory.createModifier(130)),xe=e.factory.createMethodDeclaration(void 0,Ze.length?Ze:void 0,Be.facts&de.IsGenerator?e.factory.createToken(41):void 0,He,void 0,X,Un,Ln,le)}else xe=e.factory.createFunctionDeclaration(void 0,Be.facts&de.IsAsyncFunction?[e.factory.createToken(130)]:void 0,Be.facts&de.IsGenerator?e.factory.createToken(41):void 0,He,X,Un,Ln,le);var hn=e.textChanges.ChangeTracker.fromContext(De),Le=(x(Be.range)?e.last(Be.range):Be.range).end,$e=T(Le,Se);$e?hn.insertNodeBefore(De.file,$e,xe,!0):hn.insertNodeAtEndOfScope(De.file,Se,xe),we.writeFixes(hn);var An=[],Ue=G(Se,Be,Qe),gn=e.factory.createCallExpression(Ue,rn,fn);if(Be.facts&de.IsGenerator&&(gn=e.factory.createYieldExpression(e.factory.createToken(41),gn)),Be.facts&de.IsAsyncFunction&&(gn=e.factory.createAwaitExpression(gn)),Oe(te)&&(gn=e.factory.createJsxExpression(void 0,gn)),Ce.length&&!En)if(e.Debug.assert(!Pe,"Expected no returnValueProperty"),e.Debug.assert(!(Be.facts&de.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),Ce.length===1){var Wn=Ce[0];An.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(Wn.name),void 0,e.getSynthesizedDeepClone(Wn.type),gn)],Wn.parent.flags)))}else{for(var ze=[],Tn=[],On=Ce[0].parent.flags,ur=!1,hr=0,wr=Ce;hr<wr.length;hr++){var Wn=wr[hr];ze.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(Wn.name)));var Qr=qe.typeToTypeNode(qe.getBaseTypeOfLiteralType(qe.getTypeAtLocation(Wn)),Se,1);Tn.push(e.factory.createPropertySignature(void 0,Wn.symbol.name,void 0,Qr)),ur=ur||Wn.type!==void 0,On=On&Wn.parent.flags}var Ke=ur?e.factory.createTypeLiteralNode(Tn):void 0;Ke&&e.setEmitFlags(Ke,1),An.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(ze),void 0,Ke,gn)],On)))}else if(Ce.length||En){if(Ce.length)for(var jn=0,Zn=Ce;jn<Zn.length;jn++){var Wn=Zn[jn],Me=Wn.parent.flags;Me&2&&(Me=Me&-3|1),An.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Wn.symbol.name,void 0,Fe(Wn.type))],Me)))}Pe&&An.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Pe,void 0,Fe(Ln))],1)));var Mn=P(Ce,En);Pe&&Mn.unshift(e.factory.createShorthandPropertyAssignment(Pe)),Mn.length===1?(e.Debug.assert(!Pe,"Shouldn't have returnValueProperty here"),An.push(e.factory.createExpressionStatement(e.factory.createAssignment(Mn[0].name,gn))),Be.facts&de.HasReturn&&An.push(e.factory.createReturnStatement())):(An.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression(Mn),gn))),Pe&&An.push(e.factory.createReturnStatement(e.factory.createIdentifier(Pe))))}else Be.facts&de.HasReturn?An.push(e.factory.createReturnStatement(gn)):x(Be.range)?An.push(e.factory.createExpressionStatement(gn)):An.push(gn);x(Be.range)?hn.replaceNodeRangeWithNodes(De.file,e.first(Be.range),e.last(Be.range),An):hn.replaceNodeWithNodes(De.file,Be.range,An);var ar=hn.getChanges(),Xn=x(Be.range)?e.first(Be.range):Be.range,yr=Xn.getSourceFile().fileName,cr=e.getRenameLocation(ar,yr,Qe,!1);return{renameFilename:yr,renameLocation:cr,edits:ar};function Fe(Bn){if(Bn!==void 0){for(var J=e.getSynthesizedDeepClone(Bn),Cn=J;e.isParenthesizedTypeNode(Cn);)Cn=Cn.type;return e.isUnionTypeNode(Cn)&&e.find(Cn.types,function(Gn){return Gn.kind===151})?J:e.factory.createUnionTypeNode([J,e.factory.createKeywordTypeNode(151)])}}}function ne(te,Se,be,Ce,Be){var De,en=be.substitutions,fe=Be.program.getTypeChecker(),Ne=Se.getSourceFile(),qe=e.getUniqueName(e.isClassLike(Se)?"newProperty":"newLocal",Ne),pe=e.isInJSFile(Se),we=pe||!fe.isContextSensitive(te)?void 0:fe.typeToTypeNode(fe.getContextualType(te),Se,1),pn=p(te,en);De=Vn(we,pn),we=De.variableType,pn=De.initializer,e.suppressLeadingAndTrailingTrivia(pn);var Qe=e.textChanges.ChangeTracker.fromContext(Be);if(e.isClassLike(Se)){e.Debug.assert(!pe,"Cannot extract to a JS class");var Re=[];Re.push(e.factory.createModifier(121)),Ce&de.InStaticRegion&&Re.push(e.factory.createModifier(124)),Re.push(e.factory.createModifier(143));var He=e.factory.createPropertyDeclaration(void 0,Re,qe,void 0,we,pn),Ln=e.factory.createPropertyAccessExpression(Ce&de.InStaticRegion?e.factory.createIdentifier(Se.name.getText()):e.factory.createThis(),e.factory.createIdentifier(qe));Oe(te)&&(Ln=e.factory.createJsxExpression(void 0,Ln));var Un=te.pos,fn=m(Un,Se);Qe.insertNodeBefore(Be.file,fn,He,!0),Qe.replaceNode(Be.file,te,Ln)}else{var En=e.factory.createVariableDeclaration(qe,void 0,we,pn),i=U(te,Se);if(i){Qe.insertNodeBefore(Be.file,i,En);var Ln=e.factory.createIdentifier(qe);Qe.replaceNode(Be.file,te,Ln)}else if(te.parent.kind===236&&Se===e.findAncestor(te,Z)){var In=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([En],2));Qe.replaceNode(Be.file,te.parent,In)}else{var In=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([En],2)),fn=N(te,Se);if(fn.pos===0?Qe.insertNodeAtTopOfFile(Be.file,In,!1):Qe.insertNodeBefore(Be.file,fn,In,!1),te.parent.kind===236)Qe.delete(Be.file,te.parent);else{var Ln=e.factory.createIdentifier(qe);Oe(te)&&(Ln=e.factory.createJsxExpression(void 0,Ln)),Qe.replaceNode(Be.file,te,Ln)}}}var X=Qe.getChanges(),rn=te.getSourceFile().fileName,$n=e.getRenameLocation(X,rn,qe,!0);return{renameFilename:rn,renameLocation:$n,edits:X};function Vn(le,Pe){if(le===void 0)return{variableType:le,initializer:Pe};if(!e.isFunctionExpression(Pe)&&!e.isArrowFunction(Pe)||Pe.typeParameters)return{variableType:le,initializer:Pe};var xe=fe.getTypeAtLocation(te),Ze=e.singleOrUndefined(fe.getSignaturesOfType(xe,0));if(!Ze)return{variableType:le,initializer:Pe};if(Ze.getTypeParameters())return{variableType:le,initializer:Pe};for(var hn=[],Le=!1,$e=0,An=Pe.parameters;$e<An.length;$e++){var Ue=An[$e];if(Ue.type)hn.push(Ue);else{var gn=fe.getTypeAtLocation(Ue);gn===fe.getAnyType()&&(Le=!0),hn.push(e.factory.updateParameterDeclaration(Ue,Ue.decorators,Ue.modifiers,Ue.dotDotDotToken,Ue.name,Ue.questionToken,Ue.type||fe.typeToTypeNode(gn,Se,1),Ue.initializer))}}if(Le)return{variableType:le,initializer:Pe};if(le=void 0,e.isArrowFunction(Pe))Pe=e.factory.updateArrowFunction(Pe,te.modifiers,Pe.typeParameters,hn,Pe.type||fe.typeToTypeNode(Ze.getReturnType(),Se,1),Pe.equalsGreaterThanToken,Pe.body);else{if(Ze&&Ze.thisParameter){var Wn=e.firstOrUndefined(hn);if(!Wn||e.isIdentifier(Wn.name)&&Wn.name.escapedText!=="this"){var ze=fe.getTypeOfSymbolAtLocation(Ze.thisParameter,te);hn.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,fe.typeToTypeNode(ze,Se,1)))}}Pe=e.factory.updateFunctionExpression(Pe,te.modifiers,Pe.asteriskToken,Pe.name,Pe.typeParameters,hn,Pe.type||fe.typeToTypeNode(Ze.getReturnType(),Se,1),Pe.body)}return{variableType:le,initializer:Pe}}}function U(te,Se){for(var be;te!==void 0&&te!==Se;){if(e.isVariableDeclaration(te)&&te.initializer===be&&e.isVariableDeclarationList(te.parent)&&te.parent.declarations.length>1)return te;be=te,te=te.parent}}function C(te){var Se,be=te.symbol;if(be&&be.declarations)for(var Ce=0,Be=be.declarations;Ce<Be.length;Ce++){var De=Be[Ce];(Se===void 0||De.pos<Se.pos)&&(Se=De)}return Se}function d(te,Se){var be=te.type,Ce=te.declaration,Be=Se.type,De=Se.declaration;return e.compareProperties(Ce,De,"pos",e.compareValues)||e.compareStringsCaseSensitive(be.symbol?be.symbol.getName():"",Be.symbol?Be.symbol.getName():"")||e.compareValues(be.id,Be.id)}function G(te,Se,be){var Ce=e.factory.createIdentifier(be);if(e.isClassLike(te)){var Be=Se.facts&de.InStaticRegion?e.factory.createIdentifier(te.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(Be,Ce)}else return Ce}function g(te,Se,be,Ce,Be){var De=be!==void 0||Se.length>0;if(e.isBlock(te)&&!De&&Ce.size===0)return{body:e.factory.createBlock(te.statements,!0),returnValueProperty:void 0};var en,fe=!1,Ne=e.factory.createNodeArray(e.isBlock(te)?te.statements.slice(0):[e.isStatement(te)?te:e.factory.createReturnStatement(te)]);if(De||Ce.size){var qe=e.visitNodes(Ne,we).slice();if(De&&!Be&&e.isStatement(te)){var pe=P(Se,be);pe.length===1?qe.push(e.factory.createReturnStatement(pe[0].name)):qe.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(pe)))}return{body:e.factory.createBlock(qe,!0),returnValueProperty:en}}else return{body:e.factory.createBlock(Ne,!0),returnValueProperty:void 0};function we(pn){if(!fe&&e.isReturnStatement(pn)&&De){var Qe=P(Se,be);return pn.expression&&(en||(en="__return"),Qe.unshift(e.factory.createPropertyAssignment(en,e.visitNode(pn.expression,we)))),Qe.length===1?e.factory.createReturnStatement(Qe[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(Qe))}else{var Re=fe;fe=fe||e.isFunctionLikeDeclaration(pn)||e.isClassLike(pn);var He=Ce.get(e.getNodeId(pn).toString()),Ln=He?e.getSynthesizedDeepClone(He):e.visitEachChild(pn,we,e.nullTransformationContext);return fe=Re,Ln}}}function p(te,Se){return Se.size?be(te):te;function be(Ce){var Be=Se.get(e.getNodeId(Ce).toString());return Be?e.getSynthesizedDeepClone(Be):e.visitEachChild(Ce,be,e.nullTransformationContext)}}function f(te){if(e.isFunctionLikeDeclaration(te)){var Se=te.body;if(e.isBlock(Se))return Se.statements}else{if(e.isModuleBlock(te)||e.isSourceFile(te))return te.statements;if(e.isClassLike(te))return te.members;e.assertType(te)}return e.emptyArray}function T(te,Se){return e.find(f(Se),function(be){return be.pos>=te&&e.isFunctionLikeDeclaration(be)&&!e.isConstructorDeclaration(be)})}function m(te,Se){var be=Se.members;e.Debug.assert(be.length>0,"Found no members");for(var Ce,Be=!0,De=0,en=be;De<en.length;De++){var fe=en[De];if(fe.pos>te)return Ce||be[0];if(Be&&!e.isPropertyDeclaration(fe)){if(Ce!==void 0)return fe;Be=!1}Ce=fe}return Ce===void 0?e.Debug.fail():Ce}function N(te,Se){e.Debug.assert(!e.isClassLike(Se));for(var be,Ce=te;Ce!==Se;Ce=Ce.parent)Z(Ce)&&(be=Ce);for(var Ce=(be||te).parent;;Ce=Ce.parent){if(Ae(Ce)){for(var Be=void 0,De=0,en=Ce.statements;De<en.length;De++){var fe=en[De];if(fe.pos>te.pos)break;Be=fe}return!Be&&e.isCaseClause(Ce)?(e.Debug.assert(e.isSwitchStatement(Ce.parent.parent),"Grandparent isn't a switch statement"),Ce.parent.parent):e.Debug.checkDefined(Be,"prevStatement failed to get set")}e.Debug.assert(Ce!==Se,"Didn't encounter a block-like before encountering scope")}}function P(te,Se){var be=e.map(te,function(Be){return e.factory.createShorthandPropertyAssignment(Be.symbol.name)}),Ce=e.map(Se,function(Be){return e.factory.createShorthandPropertyAssignment(Be.symbol.name)});return be===void 0?Ce:Ce===void 0?be:be.concat(Ce)}function x(te){return e.isArray(te)}function M(te,Se){return x(te.range)?{pos:e.first(te.range).getStart(Se),end:e.last(te.range).getEnd()}:te.range}var me;(function(te){te[te.Read=1]="Read",te[te.Write=2]="Write"})(me||(me={}));function z(te,Se,be,Ce,Be,De){var en=new e.Map,fe=[],Ne=[],qe=[],pe=[],we=[],pn=new e.Map,Qe=[],Re,He=x(te.range)?te.range.length===1&&e.isExpressionStatement(te.range[0])?te.range[0].expression:void 0:te.range,Ln;if(He===void 0){var Un=te.range,fn=e.first(Un).getStart(),En=e.last(Un).end;Ln=e.createFileDiagnostic(Ce,fn,En-fn,D.expressionExpected)}else Be.getTypeAtLocation(He).flags&147456&&(Ln=e.createDiagnosticForNode(He,D.uselessConstantType));for(var i=0,In=Se;i<In.length;i++){var X=In[i];fe.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),Ne.push(new e.Map),qe.push([]);var rn=[];Ln&&rn.push(Ln),e.isClassLike(X)&&e.isInJSFile(X)&&rn.push(e.createDiagnosticForNode(X,D.cannotExtractToJSClass)),e.isArrowFunction(X)&&!e.isBlock(X.body)&&rn.push(e.createDiagnosticForNode(X,D.cannotExtractToExpressionArrowFunction)),pe.push(rn)}var $n=new e.Map,Vn=x(te.range)?e.factory.createBlock(te.range):te.range,le=x(te.range)?e.first(te.range):te.range,Pe=On(le);if(hr(Vn),Pe&&!x(te.range)){var xe=Be.getContextualType(te.range);ur(xe)}if(en.size>0){for(var Ze=new e.Map,hn=0,Le=le;Le!==void 0&&hn<Se.length;Le=Le.parent)if(Le===Se[hn]&&(Ze.forEach(function(Me,Mn){fe[hn].typeParameterUsages.set(Mn,Me)}),hn++),e.isDeclarationWithTypeParameters(Le))for(var $e=0,An=e.getEffectiveTypeParameterDeclarations(Le);$e<An.length;$e++){var Ue=An[$e],gn=Be.getTypeAtLocation(Ue);en.has(gn.id.toString())&&Ze.set(gn.id.toString(),gn)}e.Debug.assert(hn===Se.length,"Should have iterated all scopes")}if(we.length){var Wn=e.isBlockScope(Se[0],Se[0].parent)?Se[0]:e.getEnclosingBlockScopeContainer(Se[0]);e.forEachChild(Wn,Ke)}for(var ze=function(Me){var Mn=fe[Me];if(Me>0&&(Mn.usages.size>0||Mn.typeParameterUsages.size>0)){var ar=x(te.range)?te.range[0]:te.range;pe[Me].push(e.createDiagnosticForNode(ar,D.cannotAccessVariablesFromNestedScopes))}var Xn=!1,yr;if(fe[Me].usages.forEach(function(Fe){Fe.usage===2&&(Xn=!0,Fe.symbol.flags&106500&&Fe.symbol.valueDeclaration&&e.hasEffectiveModifier(Fe.symbol.valueDeclaration,64)&&(yr=Fe.symbol.valueDeclaration))}),e.Debug.assert(x(te.range)||Qe.length===0,"No variable declarations expected if something was extracted"),Xn&&!x(te.range)){var cr=e.createDiagnosticForNode(te.range,D.cannotWriteInExpression);qe[Me].push(cr),pe[Me].push(cr)}else if(yr&&Me>0){var cr=e.createDiagnosticForNode(yr,D.cannotExtractReadonlyPropertyInitializerOutsideConstructor);qe[Me].push(cr),pe[Me].push(cr)}else if(Re){var cr=e.createDiagnosticForNode(Re,D.cannotExtractExportedEntity);qe[Me].push(cr),pe[Me].push(cr)}},Tn=0;Tn<Se.length;Tn++)ze(Tn);return{target:Vn,usagesPerScope:fe,functionErrorsPerScope:qe,constantErrorsPerScope:pe,exposedVariableDeclarations:Qe};function On(Me){return!!e.findAncestor(Me,function(Mn){return e.isDeclarationWithTypeParameters(Mn)&&e.getEffectiveTypeParameterDeclarations(Mn).length!==0})}function ur(Me){for(var Mn=Be.getSymbolWalker(function(){return De.throwIfCancellationRequested(),!0}),ar=Mn.walkType(Me).visitedTypes,Xn=0,yr=ar;Xn<yr.length;Xn++){var cr=yr[Xn];cr.isTypeParameter()&&en.set(cr.id.toString(),cr)}}function hr(Me,Mn){if(Mn===void 0&&(Mn=1),Pe){var ar=Be.getTypeAtLocation(Me);ur(ar)}if(e.isDeclaration(Me)&&Me.symbol&&we.push(Me),e.isAssignmentExpression(Me))hr(Me.left,2),hr(Me.right);else if(e.isUnaryExpressionWithWrite(Me))hr(Me.operand,2);else if(e.isPropertyAccessExpression(Me)||e.isElementAccessExpression(Me))e.forEachChild(Me,hr);else if(e.isIdentifier(Me)){if(!Me.parent||e.isQualifiedName(Me.parent)&&Me!==Me.parent.left||e.isPropertyAccessExpression(Me.parent)&&Me!==Me.parent.expression)return;wr(Me,Mn,e.isPartOfTypeNode(Me))}else e.forEachChild(Me,hr)}function wr(Me,Mn,ar){var Xn=Qr(Me,Mn,ar);if(Xn)for(var yr=0;yr<Se.length;yr++){var cr=Ne[yr].get(Xn);cr&&fe[yr].substitutions.set(e.getNodeId(Me).toString(),cr)}}function Qr(Me,Mn,ar){var Xn=jn(Me);if(Xn){var yr=e.getSymbolId(Xn).toString(),cr=$n.get(yr);if(cr&&cr>=Mn)return yr;if($n.set(yr,Mn),cr){for(var Fe=0,Bn=fe;Fe<Bn.length;Fe++){var J=Bn[Fe],Cn=J.usages.get(Me.text);Cn&&J.usages.set(Me.text,{usage:Mn,symbol:Xn,node:Me})}return yr}var Gn=Xn.getDeclarations(),cn=Gn&&e.find(Gn,function(xt){return xt.getSourceFile()===Ce});if(cn&&!e.rangeContainsStartEnd(be,cn.getStart(),cn.end)){if(te.facts&de.IsGenerator&&Mn===2){for(var Rn=e.createDiagnosticForNode(Me,D.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),Ye=0,xn=qe;Ye<xn.length;Ye++){var an=xn[Ye];an.push(Rn)}for(var zn=0,ir=pe;zn<ir.length;zn++){var an=ir[zn];an.push(Rn)}}for(var gr=0;gr<Se.length;gr++){var Dr=Se[gr],qr=Be.resolveName(Xn.name,Dr,Xn.flags,!1);if(qr!==Xn&&!Ne[gr].has(yr)){var ft=Zn(Xn.exportSymbol||Xn,Dr,ar);if(ft)Ne[gr].set(yr,ft);else if(ar){if(!(Xn.flags&262144)){var Rn=e.createDiagnosticForNode(Me,D.typeWillNotBeVisibleInTheNewScope);qe[gr].push(Rn),pe[gr].push(Rn)}}else fe[gr].usages.set(Me.text,{usage:Mn,symbol:Xn,node:Me})}}return yr}}}function Ke(Me){if(!(Me===te.range||x(te.range)&&te.range.indexOf(Me)>=0)){var Mn=e.isIdentifier(Me)?jn(Me):Be.getSymbolAtLocation(Me);if(Mn){var ar=e.find(we,function(yr){return yr.symbol===Mn});if(ar)if(e.isVariableDeclaration(ar)){var Xn=ar.symbol.id.toString();pn.has(Xn)||(Qe.push(ar),pn.set(Xn,!0))}else Re=Re||ar}e.forEachChild(Me,Ke)}}function jn(Me){return Me.parent&&e.isShorthandPropertyAssignment(Me.parent)&&Me.parent.name===Me?Be.getShorthandAssignmentValueSymbol(Me.parent):Be.getSymbolAtLocation(Me)}function Zn(Me,Mn,ar){if(Me){var Xn=Me.getDeclarations();if(Xn&&Xn.some(function(cr){return cr.parent===Mn}))return e.factory.createIdentifier(Me.name);var yr=Zn(Me.parent,Mn,ar);if(yr!==void 0)return ar?e.factory.createQualifiedName(yr,e.factory.createIdentifier(Me.name)):e.factory.createPropertyAccessExpression(yr,Me.name)}}}function K(te){return e.findAncestor(te,function(Se){return Se.parent&&I(Se)&&!e.isBinaryExpression(Se.parent)})}function I(te){var Se=te.parent;switch(Se.kind){case 294:return!1}switch(te.kind){case 10:return Se.kind!==264&&Se.kind!==268;case 223:case 199:case 201:return!1;case 79:return Se.kind!==201&&Se.kind!==268&&Se.kind!==273}return!0}function Ae(te){switch(te.kind){case 233:case 300:case 260:case 287:return!0;default:return!1}}function Oe(te){return(e.isJsxElement(te)||e.isJsxSelfClosingElement(te)||e.isJsxFragment(te))&&(e.isJsxElement(te.parent)||e.isJsxFragment(te.parent))}})($=ue.extractSymbol||(ue.extractSymbol={}))})(o=e.refactor||(e.refactor={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="Extract type",Y={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},W={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},re={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};ue.registerRefactor($,{kinds:[Y.kind,W.kind,re.kind],getAvailableActions:function(V){var Z=ye(V,V.triggerReason==="invoked");return Z?ue.isRefactorErrorInfo(Z)?V.preferences.provideRefactorNotApplicableReason?[{name:$,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[Mt(Mt({},re),{notApplicableReason:Z.error}),Mt(Mt({},Y),{notApplicableReason:Z.error}),Mt(Mt({},W),{notApplicableReason:Z.error})]}]:e.emptyArray:[{name:$,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:Z.isJS?[re]:e.append([Y],Z.typeElements&&W)}]:e.emptyArray},getEditsForAction:function(V,Z){var E=V.file,H=ye(V);e.Debug.assert(H&&!ue.isRefactorErrorInfo(H),"Expected to find a range to extract");var L=e.getUniqueName("NewType",E),ee=e.textChanges.ChangeTracker.with(V,function(ie){switch(Z){case Y.name:return e.Debug.assert(!H.isJS,"Invalid actionName/JS combo"),de(ie,E,L,H);case re.name:return e.Debug.assert(H.isJS,"Invalid actionName/JS combo"),y(ie,E,L,H);case W.name:return e.Debug.assert(!H.isJS&&!!H.typeElements,"Invalid actionName/JS combo"),_e(ie,E,L,H);default:e.Debug.fail("Unexpected action name")}}),k=E.fileName,b=e.getRenameLocation(ee,k,L,!1);return{edits:ee,renameFilename:k,renameLocation:b}}});function ye(V,Z){Z===void 0&&(Z=!0);var E=V.file,H=V.startPosition,L=e.isSourceFileJS(E),ee=e.getTokenAtPosition(E,H),k=e.createTextRangeFromSpan(e.getRefactorContextSpan(V)),b=k.pos===k.end&&Z,ie=e.findAncestor(ee,function(R){return R.parent&&e.isTypeNode(R)&&!A(k,R.parent,E)&&(b||e.nodeOverlapsWithStartEnd(ee,E,k.pos,k.end))});if(!ie||!e.isTypeNode(ie))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var q=V.program.getTypeChecker(),oe=e.Debug.checkDefined(e.findAncestor(ie,e.isStatement),"Should find a statement"),se=D(q,ie,oe,E);if(!se)return{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)};var w=O(q,ie);return{isJS:L,selection:ie,firstStatement:oe,typeParameters:se,typeElements:w}}function O(V,Z){if(Z)if(e.isIntersectionTypeNode(Z)){for(var E=[],H=new e.Map,L=0,ee=Z.types;L<ee.length;L++){var k=ee[L],b=O(V,k);if(!b||!b.every(function(ie){return ie.name&&e.addToSeen(H,e.getNameFromPropertyName(ie.name))}))return;e.addRange(E,b)}return E}else{if(e.isParenthesizedTypeNode(Z))return O(V,Z.type);if(e.isTypeLiteralNode(Z))return Z.members}}function A(V,Z,E){return e.rangeContainsStartEnd(V,e.skipTrivia(E.text,Z.pos),Z.end)}function D(V,Z,E,H){var L=[];return ee(Z)?void 0:L;function ee(k){if(e.isTypeReferenceNode(k)){if(e.isIdentifier(k.typeName)){var b=V.resolveName(k.typeName.text,k.typeName,262144,!0);if(b!=null&&b.declarations){var ie=e.cast(e.first(b.declarations),e.isTypeParameterDeclaration);A(E,ie,H)&&!A(Z,ie,H)&&e.pushIfUnique(L,ie)}}}else if(e.isInferTypeNode(k)){var q=e.findAncestor(k,function(se){return e.isConditionalTypeNode(se)&&A(se.extendsType,k,H)});if(!q||!A(Z,q,H))return!0}else if(e.isTypePredicateNode(k)||e.isThisTypeNode(k)){var oe=e.findAncestor(k.parent,e.isFunctionLike);if(oe&&oe.type&&A(oe.type,k,H)&&!A(Z,oe,H))return!0}else if(e.isTypeQueryNode(k)){if(e.isIdentifier(k.exprName)){var b=V.resolveName(k.exprName.text,k.exprName,111551,!1);if(b!=null&&b.valueDeclaration&&A(E,b.valueDeclaration,H)&&!A(Z,b.valueDeclaration,H))return!0}else if(e.isThisIdentifier(k.exprName.left)&&!A(Z,k.parent,H))return!0}return H&&e.isTupleTypeNode(k)&&e.getLineAndCharacterOfPosition(H,k.pos).line===e.getLineAndCharacterOfPosition(H,k.end).line&&e.setEmitFlags(k,1),e.forEachChild(k,ee)}}function de(V,Z,E,H){var L=H.firstStatement,ee=H.selection,k=H.typeParameters,b=e.factory.createTypeAliasDeclaration(void 0,void 0,E,k.map(function(ie){return e.factory.updateTypeParameterDeclaration(ie,ie.name,ie.constraint,void 0)}),ee);V.insertNodeBefore(Z,L,e.ignoreSourceNewlines(b),!0),V.replaceNode(Z,ee,e.factory.createTypeReferenceNode(E,k.map(function(ie){return e.factory.createTypeReferenceNode(ie.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function _e(V,Z,E,H){var L,ee=H.firstStatement,k=H.selection,b=H.typeParameters,ie=H.typeElements,q=e.factory.createInterfaceDeclaration(void 0,void 0,E,b,void 0,ie);e.setTextRange(q,(L=ie[0])===null||L===void 0?void 0:L.parent),V.insertNodeBefore(Z,ee,e.ignoreSourceNewlines(q),!0),V.replaceNode(Z,k,e.factory.createTypeReferenceNode(E,b.map(function(oe){return e.factory.createTypeReferenceNode(oe.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function y(V,Z,E,H){var L=H.firstStatement,ee=H.selection,k=H.typeParameters,b=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression(ee),e.factory.createIdentifier(E)),ie=[];e.forEach(k,function(q){var oe=e.getEffectiveConstraintOfTypeParameter(q),se=e.factory.createTypeParameterDeclaration(q.name),w=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),oe&&e.cast(oe,e.isJSDocTypeExpression),[se]);ie.push(w)}),V.insertNodeBefore(Z,L,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(ie,[b]))),!0),V.replaceNode(Z,ee,e.factory.createTypeReferenceNode(E,k.map(function(q){return e.factory.createTypeReferenceNode(q.name,void 0)})))}})(o=e.refactor||(e.refactor={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $;(function(Y){var W="Generate 'get' and 'set' accessors",re=e.Diagnostics.Generate_get_and_set_accessors.message,ye={name:W,description:re,kind:"refactor.rewrite.property.generateAccessors"};ue.registerRefactor(W,{kinds:[ye.kind],getEditsForAction:function(O,A){if(O.endPosition){var D=e.codefix.getAccessorConvertiblePropertyAtPosition(O.file,O.program,O.startPosition,O.endPosition);e.Debug.assert(D&&!ue.isRefactorErrorInfo(D),"Expected applicable refactor info");var de=e.codefix.generateAccessorFromProperty(O.file,O.program,O.startPosition,O.endPosition,O,A);if(de){var _e=O.file.fileName,y=D.renameAccessor?D.accessorName:D.fieldName,V=e.isIdentifier(y)?0:-1,Z=V+e.getRenameLocation(de,_e,y.text,e.isParameter(D.declaration));return{renameFilename:_e,renameLocation:Z,edits:de}}}},getAvailableActions:function(O){if(!O.endPosition)return e.emptyArray;var A=e.codefix.getAccessorConvertiblePropertyAtPosition(O.file,O.program,O.startPosition,O.endPosition,O.triggerReason==="invoked");return A?ue.isRefactorErrorInfo(A)?O.preferences.provideRefactorNotApplicableReason?[{name:W,description:re,actions:[Mt(Mt({},ye),{notApplicableReason:A.error})]}]:e.emptyArray:[{name:W,description:re,actions:[ye]}]:e.emptyArray}})})($=ue.generateGetAccessorAndSetAccessor||(ue.generateGetAccessorAndSetAccessor={}))})(o=e.refactor||(e.refactor={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(W){return W.error!==void 0}ue.isRefactorErrorInfo=$;function Y(W,re){return re?W.substr(0,re.length)===re:!0}ue.refactorKindBeginsWith=Y})(o=e.refactor||(e.refactor={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $="Move to a new file",Y=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),W={name:$,description:Y,kind:"refactor.move.newFile"};ue.registerRefactor($,{kinds:[W.kind],getAvailableActions:function(fe){var Ne=O(fe);return fe.preferences.allowTextChangesInNewFiles&&Ne?[{name:$,description:Y,actions:[W]}]:fe.preferences.provideRefactorNotApplicableReason?[{name:$,description:Y,actions:[Mt(Mt({},W),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction:function(fe,Ne){e.Debug.assert(Ne===$,"Wrong refactor invoked");var qe=e.Debug.checkDefined(O(fe)),pe=e.textChanges.ChangeTracker.with(fe,function(we){return ye(fe.file,fe.program,qe,we,fe.host,fe.preferences)});return{edits:pe,renameFilename:void 0,renameLocation:void 0}}});function re(fe){var Ne=fe.file,qe=e.createTextRangeFromSpan(e.getRefactorContextSpan(fe)),pe=Ne.statements,we=e.findIndex(pe,function(Re){return Re.end>qe.pos});if(we!==-1){var pn=pe[we];if(e.isNamedDeclaration(pn)&&pn.name&&e.rangeContainsRange(pn.name,qe))return{toMove:[pe[we]],afterLast:pe[we+1]};if(!(qe.pos>pn.getStart(Ne))){var Qe=e.findIndex(pe,function(Re){return Re.end>qe.end},we);if(!(Qe!==-1&&(Qe===0||pe[Qe].getStart(Ne)<qe.end)))return{toMove:pe.slice(we,Qe===-1?pe.length:Qe),afterLast:Qe===-1?void 0:pe[Qe]}}}}function ye(fe,Ne,qe,pe,we,pn){var Qe=Ne.getTypeChecker(),Re=G(fe,qe.all,Qe),He=e.getDirectoryPath(fe.fileName),Ln=e.extensionFromPath(fe.fileName),Un=C(d(Re.movedSymbols),Ln,He,we),fn=Un+Ln;pe.createNewFile(fe,e.combinePaths(He,fn),_e(fe,Re,pe,qe,Ne,Un,pn)),de(Ne,pe,fe.fileName,fn,e.hostGetCanonicalFileName(we))}function O(fe){var Ne=re(fe);if(Ne!==void 0){var qe=[],pe=[],we=Ne.toMove,pn=Ne.afterLast;return e.getRangesWhere(we,A,function(Qe,Re){for(var He=Qe;He<Re;He++)qe.push(we[He]);pe.push({first:we[Qe],afterLast:pn})}),qe.length===0?void 0:{all:qe,ranges:pe}}}function A(fe){return!D(fe)&&!e.isPrologueDirective(fe)}function D(fe){switch(fe.kind){case 264:return!0;case 263:return!e.hasSyntacticModifier(fe,1);case 235:return fe.declarationList.declarations.every(function(Ne){return!!Ne.initializer&&e.isRequireCall(Ne.initializer,!0)});default:return!1}}function de(fe,Ne,qe,pe,we){var pn=fe.getCompilerOptions().configFile;if(pn){var Qe=e.normalizePath(e.combinePaths(qe,"..",pe)),Re=e.getRelativePathFromFile(pn.fileName,Qe,we),He=pn.statements[0]&&e.tryCast(pn.statements[0].expression,e.isObjectLiteralExpression),Ln=He&&e.find(He.properties,function(Un){return e.isPropertyAssignment(Un)&&e.isStringLiteral(Un.name)&&Un.name.text==="files"});Ln&&e.isArrayLiteralExpression(Ln.initializer)&&Ne.insertNodeInListAfter(pn,e.last(Ln.initializer.elements),e.factory.createStringLiteral(Re),Ln.initializer.elements)}}function _e(fe,Ne,qe,pe,we,pn,Qe){var Re=we.getTypeChecker(),He=e.takeWhile(fe.statements,e.isPrologueDirective);if(!fe.externalModuleIndicator&&!fe.commonJsModuleIndicator)return y(fe,pe.ranges,qe),Vr(Vr([],He,!0),pe.all,!0);var Ln=!!fe.externalModuleIndicator,Un=e.getQuotePreference(fe,Qe),fn=b(Ne.oldFileImportsFromNewFile,pn,Ln,Un);fn&&e.insertImports(qe,fe,fn,!0),V(fe,pe.all,qe,Ne.unusedImportsFromOldFile,Re),y(fe,pe.ranges,qe),Z(qe,we,fe,Ne.movedSymbols,pn);var En=U(fe,Ne.oldImportsNeededByNewFile,Ne.newFileImportsFromOldFile,qe,Re,Ln,Un),i=se(fe,pe.all,Ne.oldFileImportsFromNewFile,Ln);return En.length&&i.length?Vr(Vr(Vr(Vr([],He,!0),En,!0),[4],!1),i,!0):Vr(Vr(Vr([],He,!0),En,!0),i,!0)}function y(fe,Ne,qe){for(var pe=0,we=Ne;pe<we.length;pe++){var pn=we[pe],Qe=pn.first,Re=pn.afterLast;qe.deleteNodeRangeExcludingEnd(fe,Qe,Re)}}function V(fe,Ne,qe,pe,we){for(var pn=0,Qe=fe.statements;pn<Qe.length;pn++){var Re=Qe[pn];e.contains(Ne,Re)||k(Re,function(He){return w(fe,He,qe,function(Ln){return pe.has(we.getSymbolAtLocation(Ln))})})}}function Z(fe,Ne,qe,pe,we){for(var pn=Ne.getTypeChecker(),Qe=function(Un){if(Un===qe)return"continue";for(var fn=function(X){k(X,function(rn){if(pn.getSymbolAtLocation(ee(rn))===qe.symbol){var $n=function(xe){var Ze=e.isBindingElement(xe.parent)?e.getPropertySymbolFromBindingElement(pn,xe.parent):e.skipAlias(pn.getSymbolAtLocation(xe),pn);return!!Ze&&pe.has(Ze)};w(Un,rn,fe,$n);var Vn=e.combinePaths(e.getDirectoryPath(ee(rn).text),we),le=f(rn,e.factory.createStringLiteral(Vn),$n);le&&fe.insertNodeAfter(Un,X,le);var Pe=E(rn);Pe&&H(fe,Un,pn,pe,we,Vn,Pe,rn)}})},En=0,i=Un.statements;En<i.length;En++){var In=i[En];fn(In)}},Re=0,He=Ne.getSourceFiles();Re<He.length;Re++){var Ln=He[Re];Qe(Ln)}}function E(fe){switch(fe.kind){case 264:return fe.importClause&&fe.importClause.namedBindings&&fe.importClause.namedBindings.kind===266?fe.importClause.namedBindings.name:void 0;case 263:return fe.name;case 252:return e.tryCast(fe.name,e.isIdentifier);default:return e.Debug.assertNever(fe,"Unexpected node kind "+fe.kind)}}function H(fe,Ne,qe,pe,we,pn,Qe,Re){var He=e.codefix.moduleSpecifierToValidIdentifier(we,99),Ln=!1,Un=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(Qe,qe,Ne,function(X){e.isPropertyAccessExpression(X.parent)&&(Ln=Ln||!!qe.resolveName(He,X,67108863,!0),pe.has(qe.getSymbolAtLocation(X.parent.name))&&Un.push(X))}),Un.length){for(var fn=Ln?e.getUniqueName(He,Ne):He,En=0,i=Un;En<i.length;En++){var In=i[En];fe.replaceNode(Ne,In,e.factory.createIdentifier(fn))}fe.insertNodeAfter(Ne,Re,L(Re,we,pn))}}function L(fe,Ne,qe){var pe=e.factory.createIdentifier(Ne),we=e.factory.createStringLiteral(qe);switch(fe.kind){case 264:return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(pe)),we);case 263:return e.factory.createImportEqualsDeclaration(void 0,void 0,!1,pe,e.factory.createExternalModuleReference(we));case 252:return e.factory.createVariableDeclaration(pe,void 0,void 0,oe(we));default:return e.Debug.assertNever(fe,"Unexpected node kind "+fe.kind)}}function ee(fe){return fe.kind===264?fe.moduleSpecifier:fe.kind===263?fe.moduleReference.expression:fe.initializer.arguments[0]}function k(fe,Ne){if(e.isImportDeclaration(fe))e.isStringLiteral(fe.moduleSpecifier)&&Ne(fe);else if(e.isImportEqualsDeclaration(fe))e.isExternalModuleReference(fe.moduleReference)&&e.isStringLiteralLike(fe.moduleReference.expression)&&Ne(fe);else if(e.isVariableStatement(fe))for(var qe=0,pe=fe.declarationList.declarations;qe<pe.length;qe++){var we=pe[qe];we.initializer&&e.isRequireCall(we.initializer,!0)&&Ne(we)}}function b(fe,Ne,qe,pe){var we,pn=[];return fe.forEach(function(Qe){Qe.escapedName==="default"?we=e.factory.createIdentifier(e.symbolNameNoDefault(Qe)):pn.push(Qe.name)}),ie(we,pn,Ne,qe,pe)}function ie(fe,Ne,qe,pe,we){if(qe=e.ensurePathIsNonModuleName(qe),pe){var pn=Ne.map(function(Re){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(Re))});return e.makeImportIfNecessary(fe,pn,qe,we)}else{e.Debug.assert(!fe,"No default import should exist");var Qe=Ne.map(function(Re){return e.factory.createBindingElement(void 0,void 0,Re)});return Qe.length?q(e.factory.createObjectBindingPattern(Qe),void 0,oe(e.factory.createStringLiteral(qe))):void 0}}function q(fe,Ne,qe,pe){return pe===void 0&&(pe=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(fe,void 0,Ne,qe)],pe))}function oe(fe){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[fe])}function se(fe,Ne,qe,pe){return e.flatMap(Ne,function(we){if(me(we)&&!Se(fe,we,pe)&&K(we,function(Qe){return qe.has(e.Debug.checkDefined(Qe.symbol))})){var pn=be(we,pe);if(pn)return pn}return we})}function w(fe,Ne,qe,pe){switch(Ne.kind){case 264:R(fe,Ne,qe,pe);break;case 263:pe(Ne.name)&&qe.delete(fe,Ne);break;case 252:ne(fe,Ne,qe,pe);break;default:e.Debug.assertNever(Ne,"Unexpected import decl kind "+Ne.kind)}}function R(fe,Ne,qe,pe){if(Ne.importClause){var we=Ne.importClause,pn=we.name,Qe=we.namedBindings,Re=!pn||pe(pn),He=!Qe||(Qe.kind===266?pe(Qe.name):Qe.elements.length!==0&&Qe.elements.every(function(En){return pe(En.name)}));if(Re&&He)qe.delete(fe,Ne);else if(pn&&Re&&qe.delete(fe,pn),Qe){if(He)qe.replaceNode(fe,Ne.importClause,e.factory.updateImportClause(Ne.importClause,Ne.importClause.isTypeOnly,pn,void 0));else if(Qe.kind===267)for(var Ln=0,Un=Qe.elements;Ln<Un.length;Ln++){var fn=Un[Ln];pe(fn.name)&&qe.delete(fe,fn)}}}}function ne(fe,Ne,qe,pe){var we=Ne.name;switch(we.kind){case 79:pe(we)&&qe.delete(fe,we);break;case 200:break;case 199:if(we.elements.every(function(He){return e.isIdentifier(He.name)&&pe(He.name)}))qe.delete(fe,e.isVariableDeclarationList(Ne.parent)&&Ne.parent.declarations.length===1?Ne.parent.parent:Ne);else for(var pn=0,Qe=we.elements;pn<Qe.length;pn++){var Re=Qe[pn];e.isIdentifier(Re.name)&&pe(Re.name)&&qe.delete(fe,Re.name)}break}}function U(fe,Ne,qe,pe,we,pn,Qe){for(var Re=[],He=0,Ln=fe.statements;He<Ln.length;He++){var Un=Ln[He];k(Un,function(In){e.append(Re,f(In,ee(In),function(X){return Ne.has(we.getSymbolAtLocation(X))}))})}var fn,En=[],i=e.nodeSeenTracker();return qe.forEach(function(In){if(In.declarations)for(var X=0,rn=In.declarations;X<rn.length;X++){var $n=rn[X];if(x($n)){var Vn=Ae($n);if(Vn){var le=Oe($n);i(le)&&te(fe,le,Vn,pe,pn),e.hasSyntacticModifier($n,512)?fn=Vn:En.push(Vn.text)}}}}),e.append(Re,ie(fn,En,e.removeFileExtension(e.getBaseFileName(fe.fileName)),pn,Qe)),Re}function C(fe,Ne,qe,pe){for(var we=fe,pn=1;;pn++){var Qe=e.combinePaths(qe,we+Ne);if(!pe.fileExists(Qe))return we;we=fe+"."+pn}}function d(fe){return fe.forEachEntry(e.symbolNameNoDefault)||"newFile"}function G(fe,Ne,qe){var pe=new P,we=new P,pn=new P,Qe=e.find(Ne,function(Vn){return!!(Vn.transformFlags&2)}),Re=$n(Qe);Re&&we.add(Re);for(var He=0,Ln=Ne;He<Ln.length;He++){var Un=Ln[He];K(Un,function(Vn){pe.add(e.Debug.checkDefined(e.isExpressionStatement(Vn)?qe.getSymbolAtLocation(Vn.expression.left):Vn.symbol,"Need a symbol here"))})}for(var fn=0,En=Ne;fn<En.length;fn++){var Un=En[fn];N(Un,qe,function(le){if(le.declarations)for(var Pe=0,xe=le.declarations;Pe<xe.length;Pe++){var Ze=xe[Pe];g(Ze)?we.add(le):x(Ze)&&M(Ze)===fe&&!pe.has(le)&&pn.add(le)}})}for(var i=we.clone(),In=new P,X=0,rn=fe.statements;X<rn.length;X++){var Un=rn[X];e.contains(Ne,Un)||(Re&&Un.transformFlags&2&&i.delete(Re),N(Un,qe,function(le){pe.has(le)&&In.add(le),i.delete(le)}))}return{movedSymbols:pe,newFileImportsFromOldFile:pn,oldFileImportsFromNewFile:In,oldImportsNeededByNewFile:we,unusedImportsFromOldFile:i};function $n(Vn){if(Vn!==void 0){var le=qe.getJsxNamespace(Vn),Pe=qe.resolveName(le,Vn,1920,!0);return Pe&&e.some(Pe.declarations,g)?Pe:void 0}}}function g(fe){switch(fe.kind){case 263:case 268:case 265:case 266:return!0;case 252:return p(fe);case 201:return e.isVariableDeclaration(fe.parent.parent)&&p(fe.parent.parent);default:return!1}}function p(fe){return e.isSourceFile(fe.parent.parent.parent)&&!!fe.initializer&&e.isRequireCall(fe.initializer,!0)}function f(fe,Ne,qe){switch(fe.kind){case 264:{var pe=fe.importClause;if(!pe)return;var we=pe.name&&qe(pe.name)?pe.name:void 0,pn=pe.namedBindings&&T(pe.namedBindings,qe);return we||pn?e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,we,pn),Ne):void 0}case 263:return qe(fe.name)?fe:void 0;case 252:{var Qe=m(fe.name,qe);return Qe?q(Qe,fe.type,oe(Ne),fe.parent.flags):void 0}default:return e.Debug.assertNever(fe,"Unexpected import kind "+fe.kind)}}function T(fe,Ne){if(fe.kind===266)return Ne(fe.name)?fe:void 0;var qe=fe.elements.filter(function(pe){return Ne(pe.name)});return qe.length?e.factory.createNamedImports(qe):void 0}function m(fe,Ne){switch(fe.kind){case 79:return Ne(fe)?fe:void 0;case 200:return fe;case 199:{var qe=fe.elements.filter(function(pe){return pe.propertyName||!e.isIdentifier(pe.name)||Ne(pe.name)});return qe.length?e.factory.createObjectBindingPattern(qe):void 0}}}function N(fe,Ne,qe){fe.forEachChild(function pe(we){if(e.isIdentifier(we)&&!e.isDeclarationName(we)){var pn=Ne.getSymbolAtLocation(we);pn&&qe(pn)}else we.forEachChild(pe)})}var P=function(){function fe(){this.map=new e.Map}return fe.prototype.add=function(Ne){this.map.set(String(e.getSymbolId(Ne)),Ne)},fe.prototype.has=function(Ne){return this.map.has(String(e.getSymbolId(Ne)))},fe.prototype.delete=function(Ne){this.map.delete(String(e.getSymbolId(Ne)))},fe.prototype.forEach=function(Ne){this.map.forEach(Ne)},fe.prototype.forEachEntry=function(Ne){return e.forEachEntry(this.map,Ne)},fe.prototype.clone=function(){var Ne=new fe;return e.copyEntries(this.map,Ne.map),Ne},fe}();function x(fe){return z(fe)&&e.isSourceFile(fe.parent)||e.isVariableDeclaration(fe)&&e.isSourceFile(fe.parent.parent.parent)}function M(fe){return e.isVariableDeclaration(fe)?fe.parent.parent.parent:fe.parent}function me(fe){return e.Debug.assert(e.isSourceFile(fe.parent),"Node parent should be a SourceFile"),z(fe)||e.isVariableStatement(fe)}function z(fe){switch(fe.kind){case 254:case 255:case 259:case 258:case 257:case 256:case 263:return!0;default:return!1}}function K(fe,Ne){switch(fe.kind){case 254:case 255:case 259:case 258:case 257:case 256:case 263:return Ne(fe);case 235:return e.firstDefined(fe.declarationList.declarations,function(pe){return I(pe.name,Ne)});case 236:{var qe=fe.expression;return e.isBinaryExpression(qe)&&e.getAssignmentDeclarationKind(qe)===1?Ne(fe):void 0}}}function I(fe,Ne){switch(fe.kind){case 79:return Ne(e.cast(fe.parent,function(qe){return e.isVariableDeclaration(qe)||e.isBindingElement(qe)}));case 200:case 199:return e.firstDefined(fe.elements,function(qe){return e.isOmittedExpression(qe)?void 0:I(qe.name,Ne)});default:return e.Debug.assertNever(fe,"Unexpected name kind "+fe.kind)}}function Ae(fe){return e.isExpressionStatement(fe)?e.tryCast(fe.expression.left.name,e.isIdentifier):e.tryCast(fe.name,e.isIdentifier)}function Oe(fe){switch(fe.kind){case 252:return fe.parent.parent;case 201:return Oe(e.cast(fe.parent.parent,function(Ne){return e.isVariableDeclaration(Ne)||e.isBindingElement(Ne)}));default:return fe}}function te(fe,Ne,qe,pe,we){if(!Se(fe,Ne,we,qe))if(we)e.isExpressionStatement(Ne)||pe.insertExportModifier(fe,Ne);else{var pn=De(Ne);pn.length!==0&&pe.insertNodesAfter(fe,Ne,pn.map(en))}}function Se(fe,Ne,qe,pe){var we;return qe?!e.isExpressionStatement(Ne)&&e.hasSyntacticModifier(Ne,1)||!!(pe&&(!((we=fe.symbol.exports)===null||we===void 0)&&we.has(pe.escapedText))):De(Ne).some(function(pn){return fe.symbol.exports.has(e.escapeLeadingUnderscores(pn))})}function be(fe,Ne){return Ne?[Ce(fe)]:Be(fe)}function Ce(fe){var Ne=e.concatenate([e.factory.createModifier(93)],fe.modifiers);switch(fe.kind){case 254:return e.factory.updateFunctionDeclaration(fe,fe.decorators,Ne,fe.asteriskToken,fe.name,fe.typeParameters,fe.parameters,fe.type,fe.body);case 255:return e.factory.updateClassDeclaration(fe,fe.decorators,Ne,fe.name,fe.typeParameters,fe.heritageClauses,fe.members);case 235:return e.factory.updateVariableStatement(fe,Ne,fe.declarationList);case 259:return e.factory.updateModuleDeclaration(fe,fe.decorators,Ne,fe.name,fe.body);case 258:return e.factory.updateEnumDeclaration(fe,fe.decorators,Ne,fe.name,fe.members);case 257:return e.factory.updateTypeAliasDeclaration(fe,fe.decorators,Ne,fe.name,fe.typeParameters,fe.type);case 256:return e.factory.updateInterfaceDeclaration(fe,fe.decorators,Ne,fe.name,fe.typeParameters,fe.heritageClauses,fe.members);case 263:return e.factory.updateImportEqualsDeclaration(fe,fe.decorators,Ne,fe.isTypeOnly,fe.name,fe.moduleReference);case 236:return e.Debug.fail();default:return e.Debug.assertNever(fe,"Unexpected declaration kind "+fe.kind)}}function Be(fe){return Vr([fe],De(fe).map(en),!0)}function De(fe){switch(fe.kind){case 254:case 255:return[fe.name.text];case 235:return e.mapDefined(fe.declarationList.declarations,function(Ne){return e.isIdentifier(Ne.name)?Ne.name.text:void 0});case 259:case 258:case 257:case 256:case 263:return e.emptyArray;case 236:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(fe,"Unexpected decl kind "+fe.kind)}}function en(fe){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(fe)),63,e.factory.createIdentifier(fe)))}})(o=e.refactor||(e.refactor={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $;(function(Y){var W="Add or remove braces in an arrow function",re=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,ye={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},O={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};ue.registerRefactor(W,{kinds:[O.kind],getEditsForAction:D,getAvailableActions:A});function A(_e){var y=_e.file,V=_e.startPosition,Z=_e.triggerReason,E=de(y,V,Z==="invoked");return E?ue.isRefactorErrorInfo(E)?_e.preferences.provideRefactorNotApplicableReason?[{name:W,description:re,actions:[Mt(Mt({},ye),{notApplicableReason:E.error}),Mt(Mt({},O),{notApplicableReason:E.error})]}]:e.emptyArray:[{name:W,description:re,actions:[E.addBraces?ye:O]}]:e.emptyArray}function D(_e,y){var V=_e.file,Z=_e.startPosition,E=de(V,Z);e.Debug.assert(E&&!ue.isRefactorErrorInfo(E),"Expected applicable refactor info");var H=E.expression,L=E.returnStatement,ee=E.func,k;if(y===ye.name){var b=e.factory.createReturnStatement(H);k=e.factory.createBlock([b],!0),e.suppressLeadingAndTrailingTrivia(k),e.copyLeadingComments(H,b,V,3,!0)}else if(y===O.name&&L){var ie=H||e.factory.createVoidZero();k=e.needsParentheses(ie)?e.factory.createParenthesizedExpression(ie):ie,e.suppressLeadingAndTrailingTrivia(k),e.copyTrailingAsLeadingComments(L,k,V,3,!1),e.copyLeadingComments(L,k,V,3,!1),e.copyTrailingComments(L,k,V,3,!1)}else e.Debug.fail("invalid action");var q=e.textChanges.ChangeTracker.with(_e,function(oe){oe.replaceNode(V,ee.body,k)});return{renameFilename:void 0,renameLocation:void 0,edits:q}}function de(_e,y,V,Z){V===void 0&&(V=!0);var E=e.getTokenAtPosition(_e,y),H=e.getContainingFunction(E);if(!H)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(H))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(!(!e.rangeContainsRange(H,E)||e.rangeContainsRange(H.body,E)&&!V)){if(ue.refactorKindBeginsWith(ye.kind,Z)&&e.isExpression(H.body))return{func:H,addBraces:!0,expression:H.body};if(ue.refactorKindBeginsWith(O.kind,Z)&&e.isBlock(H.body)&&H.body.statements.length===1){var L=e.first(H.body.statements);if(e.isReturnStatement(L))return{func:H,addBraces:!1,expression:L.expression,returnStatement:L}}}}})($=ue.addOrRemoveBracesToArrowFunction||(ue.addOrRemoveBracesToArrowFunction={}))})(o=e.refactor||(e.refactor={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $;(function(Y){var W="Convert parameters to destructured object",re=2,ye=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),O={name:W,description:ye,kind:"refactor.rewrite.parameters.toDestructured"};ue.registerRefactor(W,{kinds:[O.kind],getEditsForAction:D,getAvailableActions:A});function A(m){var N=m.file,P=m.startPosition,x=e.isSourceFileJS(N);if(x)return e.emptyArray;var M=ee(N,P,m.program.getTypeChecker());return M?[{name:W,description:ye,actions:[O]}]:e.emptyArray}function D(m,N){e.Debug.assert(N===W,"Unexpected action name");var P=m.file,x=m.startPosition,M=m.program,me=m.cancellationToken,z=m.host,K=ee(P,x,M.getTypeChecker());if(!(!K||!me)){var I=_e(K,M,me);if(I.valid){var Ae=e.textChanges.ChangeTracker.with(m,function(Oe){return de(P,M,z,Oe,K,I)});return{renameFilename:void 0,renameLocation:void 0,edits:Ae}}return{edits:[]}}}function de(m,N,P,x,M,me){var z=me.signature,K=e.map(g(M,N,P),function(Be){return e.getSynthesizedDeepClone(Be)});if(z){var I=e.map(g(z,N,P),function(Be){return e.getSynthesizedDeepClone(Be)});Ce(z,I)}Ce(M,K);for(var Ae=e.sortAndDeduplicate(me.functionCalls,function(Be,De){return e.compareValues(Be.pos,De.pos)}),Oe=0,te=Ae;Oe<te.length;Oe++){var Se=te[Oe];if(Se.arguments&&Se.arguments.length){var be=e.getSynthesizedDeepClone(G(M,Se.arguments),!0);x.replaceNodeRange(e.getSourceFileOfNode(Se),e.first(Se.arguments),e.last(Se.arguments),be,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function Ce(Be,De){x.replaceNodeRangeWithNodes(m,e.first(Be.parameters),e.last(Be.parameters),De,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function _e(m,N,P){var x=T(m),M=e.isConstructorDeclaration(m)?f(m):[],me=e.deduplicate(Vr(Vr([],x,!0),M,!0),e.equateValues),z=N.getTypeChecker(),K=e.flatMap(me,function(te){return e.FindAllReferences.getReferenceEntriesForNode(-1,te,N,N.getSourceFiles(),P)}),I=Ae(K);return e.every(I.declarations,function(te){return e.contains(me,te)})||(I.valid=!1),I;function Ae(te){for(var Se={accessExpressions:[],typeUsages:[]},be={functionCalls:[],declarations:[],classReferences:Se,valid:!0},Ce=e.map(x,Oe),Be=e.map(M,Oe),De=e.isConstructorDeclaration(m),en=e.map(x,function(Ln){return y(Ln,z)}),fe=0,Ne=te;fe<Ne.length;fe++){var qe=Ne[fe];if(qe.kind===0){be.valid=!1;continue}if(e.contains(en,Oe(qe.node))){if(b(qe.node.parent)){be.signature=qe.node.parent;continue}var pe=E(qe);if(pe){be.functionCalls.push(pe);continue}}var we=y(qe.node,z);if(we&&e.contains(en,we)){var pn=Z(qe);if(pn){be.declarations.push(pn);continue}}if(e.contains(Ce,Oe(qe.node))||e.isNewExpressionTarget(qe.node)){var Qe=V(qe);if(Qe)continue;var pn=Z(qe);if(pn){be.declarations.push(pn);continue}var pe=E(qe);if(pe){be.functionCalls.push(pe);continue}}if(De&&e.contains(Be,Oe(qe.node))){var Qe=V(qe);if(Qe)continue;var pn=Z(qe);if(pn){be.declarations.push(pn);continue}var Re=H(qe);if(Re){Se.accessExpressions.push(Re);continue}if(e.isClassDeclaration(m.parent)){var He=L(qe);if(He){Se.typeUsages.push(He);continue}}}be.valid=!1}return be}function Oe(te){var Se=z.getSymbolAtLocation(te);return Se&&e.getSymbolTarget(Se,z)}}function y(m,N){var P=e.getContainingObjectLiteralElement(m);if(P){var x=N.getContextualTypeForObjectLiteralElement(P),M=x==null?void 0:x.getSymbol();if(M&&!(e.getCheckFlags(M)&6))return M}}function V(m){var N=m.node;if(e.isImportSpecifier(N.parent)||e.isImportClause(N.parent)||e.isImportEqualsDeclaration(N.parent)||e.isNamespaceImport(N.parent)||e.isExportSpecifier(N.parent)||e.isExportAssignment(N.parent))return N}function Z(m){if(e.isDeclaration(m.node.parent))return m.node}function E(m){if(m.node.parent){var N=m.node,P=N.parent;switch(P.kind){case 206:case 207:var x=e.tryCast(P,e.isCallOrNewExpression);if(x&&x.expression===N)return x;break;case 204:var M=e.tryCast(P,e.isPropertyAccessExpression);if(M&&M.parent&&M.name===N){var me=e.tryCast(M.parent,e.isCallOrNewExpression);if(me&&me.expression===M)return me}break;case 205:var z=e.tryCast(P,e.isElementAccessExpression);if(z&&z.parent&&z.argumentExpression===N){var K=e.tryCast(z.parent,e.isCallOrNewExpression);if(K&&K.expression===z)return K}break}}}function H(m){if(m.node.parent){var N=m.node,P=N.parent;switch(P.kind){case 204:var x=e.tryCast(P,e.isPropertyAccessExpression);if(x&&x.expression===N)return x;break;case 205:var M=e.tryCast(P,e.isElementAccessExpression);if(M&&M.expression===N)return M;break}}}function L(m){var N=m.node;if(e.getMeaningFromLocation(N)===2||e.isExpressionWithTypeArgumentsInClassExtendsClause(N.parent))return N}function ee(m,N,P){var x=e.getTouchingToken(m,N),M=e.getContainingFunctionDeclaration(x);if(!k(x)&&M&&ie(M,P)&&e.rangeContainsRange(M,x)&&!(M.body&&e.rangeContainsRange(M.body,x)))return M}function k(m){var N=e.findAncestor(m,e.isJSDocNode);if(N){var P=e.findAncestor(N,function(x){return!e.isJSDocNode(x)});return!!P&&e.isFunctionLikeDeclaration(P)}return!1}function b(m){return e.isMethodSignature(m)&&(e.isInterfaceDeclaration(m.parent)||e.isTypeLiteralNode(m.parent))}function ie(m,N){var P;if(!se(m.parameters,N))return!1;switch(m.kind){case 254:return oe(m)&&q(m,N);case 167:if(e.isObjectLiteralExpression(m.parent)){var x=y(m.name,N);return((P=x==null?void 0:x.declarations)===null||P===void 0?void 0:P.length)===1&&q(m,N)}return q(m,N);case 169:return e.isClassDeclaration(m.parent)?oe(m.parent)&&q(m,N):R(m.parent.parent)&&q(m,N);case 211:case 212:return R(m.parent)}return!1}function q(m,N){return!!m.body&&!N.isImplementationOfOverload(m)}function oe(m){if(!m.name){var N=e.findModifier(m,88);return!!N}return!0}function se(m,N){return U(m)>=re&&e.every(m,function(P){return w(P,N)})}function w(m,N){if(e.isRestParameter(m)){var P=N.getTypeAtLocation(m);if(!N.isArrayType(P)&&!N.isTupleType(P))return!1}return!m.modifiers&&!m.decorators&&e.isIdentifier(m.name)}function R(m){return e.isVariableDeclaration(m)&&e.isVarConst(m)&&e.isIdentifier(m.name)&&!m.type}function ne(m){return m.length>0&&e.isThis(m[0].name)}function U(m){return ne(m)?m.length-1:m.length}function C(m){return ne(m)&&(m=e.factory.createNodeArray(m.slice(1),m.hasTrailingComma)),m}function d(m,N){return e.isIdentifier(N)&&e.getTextOfIdentifierOrLiteral(N)===m?e.factory.createShorthandPropertyAssignment(m):e.factory.createPropertyAssignment(m,N)}function G(m,N){var P=C(m.parameters),x=e.isRestParameter(e.last(P)),M=x?N.slice(0,P.length-1):N,me=e.map(M,function(Ae,Oe){var te=p(P[Oe]),Se=d(te,Ae);return e.suppressLeadingAndTrailingTrivia(Se.name),e.isPropertyAssignment(Se)&&e.suppressLeadingAndTrailingTrivia(Se.initializer),e.copyComments(Ae,Se),Se});if(x&&N.length>=P.length){var z=N.slice(P.length-1),K=e.factory.createPropertyAssignment(p(e.last(P)),e.factory.createArrayLiteralExpression(z));me.push(K)}var I=e.factory.createObjectLiteralExpression(me,!1);return I}function g(m,N,P){var x=N.getTypeChecker(),M=C(m.parameters),me=e.map(M,Se),z=e.factory.createObjectBindingPattern(me),K=be(M),I;e.every(M,De)&&(I=e.factory.createObjectLiteralExpression());var Ae=e.factory.createParameterDeclaration(void 0,void 0,void 0,z,void 0,K,I);if(ne(m.parameters)){var Oe=m.parameters[0],te=e.factory.createParameterDeclaration(void 0,void 0,void 0,Oe.name,void 0,Oe.type);return e.suppressLeadingAndTrailingTrivia(te.name),e.copyComments(Oe.name,te.name),Oe.type&&(e.suppressLeadingAndTrailingTrivia(te.type),e.copyComments(Oe.type,te.type)),e.factory.createNodeArray([te,Ae])}return e.factory.createNodeArray([Ae]);function Se(en){var fe=e.factory.createBindingElement(void 0,void 0,p(en),e.isRestParameter(en)&&De(en)?e.factory.createArrayLiteralExpression():en.initializer);return e.suppressLeadingAndTrailingTrivia(fe),en.initializer&&fe.initializer&&e.copyComments(en.initializer,fe.initializer),fe}function be(en){var fe=e.map(en,Ce),Ne=e.addEmitFlags(e.factory.createTypeLiteralNode(fe),1);return Ne}function Ce(en){var fe=en.type;!fe&&(en.initializer||e.isRestParameter(en))&&(fe=Be(en));var Ne=e.factory.createPropertySignature(void 0,p(en),De(en)?e.factory.createToken(57):en.questionToken,fe);return e.suppressLeadingAndTrailingTrivia(Ne),e.copyComments(en.name,Ne.name),en.type&&Ne.type&&e.copyComments(en.type,Ne.type),Ne}function Be(en){var fe=x.getTypeAtLocation(en);return e.getTypeNodeIfAccessible(fe,en,N,P)}function De(en){if(e.isRestParameter(en)){var fe=x.getTypeAtLocation(en);return!x.isTupleType(fe)}return x.isOptionalParameter(en)}}function p(m){return e.getTextOfIdentifierOrLiteral(m.name)}function f(m){switch(m.parent.kind){case 255:var N=m.parent;if(N.name)return[N.name];var P=e.Debug.checkDefined(e.findModifier(N,88),"Nameless class declaration should be a default export");return[P];case 224:var x=m.parent,M=m.parent.parent,me=x.name;return me?[me,M.name]:[M.name]}}function T(m){switch(m.kind){case 254:if(m.name)return[m.name];var N=e.Debug.checkDefined(e.findModifier(m,88),"Nameless function declaration should be a default export");return[N];case 167:return[m.name];case 169:var P=e.Debug.checkDefined(e.findChildOfKind(m,133,m.getSourceFile()),"Constructor declaration should have constructor keyword");if(m.parent.kind===224){var x=m.parent.parent;return[x.name,P]}return[P];case 212:return[m.parent.name];case 211:return m.name?[m.name,m.parent.name]:[m.parent.name];default:return e.Debug.assertNever(m,"Unexpected function declaration kind "+m.kind)}}})($=ue.convertParamsToDestructuredObject||(ue.convertParamsToDestructuredObject={}))})(o=e.refactor||(e.refactor={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $;(function(Y){var W="Convert to template string",re=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),ye={name:W,description:re,kind:"refactor.rewrite.string"};ue.registerRefactor(W,{kinds:[ye.kind],getEditsForAction:D,getAvailableActions:O});function O(q){var oe=q.file,se=q.startPosition,w=A(oe,se),R=y(w),ne={name:W,description:re,actions:[]};return e.isBinaryExpression(R)&&V(R).isValidConcatenation?(ne.actions.push(ye),[ne]):q.preferences.provideRefactorNotApplicableReason?(ne.actions.push(Mt(Mt({},ye),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[ne]):e.emptyArray}function A(q,oe){var se=e.getTokenAtPosition(q,oe),w=y(se),R=!V(w).isValidConcatenation;return R&&e.isParenthesizedExpression(w.parent)&&e.isBinaryExpression(w.parent.parent)?w.parent.parent:se}function D(q,oe){var se=q.file,w=q.startPosition,R=A(se,w);switch(oe){case re:return{edits:de(q,R)};default:return e.Debug.fail("invalid action")}}function de(q,oe){var se=y(oe),w=q.file,R=k(V(se),w),ne=e.getTrailingCommentRanges(w.text,se.end);if(ne){var U=ne[ne.length-1],C={pos:ne[0].pos,end:U.end};return e.textChanges.ChangeTracker.with(q,function(d){d.deleteRange(w,C),d.replaceNode(w,se,R)})}else return e.textChanges.ChangeTracker.with(q,function(d){return d.replaceNode(w,se,R)})}function _e(q){return q.operatorToken.kind!==63}function y(q){var oe=e.findAncestor(q.parent,function(se){switch(se.kind){case 204:case 205:return!1;case 221:case 219:return!(e.isBinaryExpression(se.parent)&&_e(se.parent));default:return"quit"}});return oe||q}function V(q){var oe=function(C){if(!e.isBinaryExpression(C))return{nodes:[C],operators:[],validOperators:!0,hasString:e.isStringLiteral(C)||e.isNoSubstitutionTemplateLiteral(C)};var d=oe(C.left),G=d.nodes,g=d.operators,p=d.hasString,f=d.validOperators;if(!(p||e.isStringLiteral(C.right)||e.isTemplateExpression(C.right)))return{nodes:[C],operators:[],hasString:!1,validOperators:!0};var T=C.operatorToken.kind===39,m=f&&T;return G.push(C.right),g.push(C.operatorToken),{nodes:G,operators:g,hasString:!0,validOperators:m}},se=oe(q),w=se.nodes,R=se.operators,ne=se.validOperators,U=se.hasString;return{nodes:w,operators:R,isValidConcatenation:ne&&U}}var Z=function(q,oe){return function(se,w){se<q.length&&e.copyTrailingComments(q[se],w,oe,3,!1)}},E=function(q,oe,se){return function(w,R){for(;w.length>0;){var ne=w.shift();e.copyTrailingComments(q[ne],R,oe,3,!1),se(ne,R)}}};function H(q){return q.replace(/\\.|[$`]/g,function(oe){return oe[0]==="\\"?oe:"\\"+oe})}function L(q){var oe=e.isTemplateHead(q)||e.isTemplateMiddle(q)?-2:-1;return e.getTextOfNode(q).slice(1,oe)}function ee(q,oe){for(var se=[],w="",R="";q<oe.length;){var ne=oe[q];if(e.isStringLiteralLike(ne))w+=ne.text,R+=H(e.getTextOfNode(ne).slice(1,-1)),se.push(q),q++;else if(e.isTemplateExpression(ne)){w+=ne.head.text,R+=L(ne.head);break}else break}return[q,w,R,se]}function k(q,oe){var se=q.nodes,w=q.operators,R=Z(w,oe),ne=E(se,oe,R),U=ee(0,se),C=U[0],d=U[1],G=U[2],g=U[3];if(C===se.length){var p=e.factory.createNoSubstitutionTemplateLiteral(d,G);return ne(g,p),p}var f=[],T=e.factory.createTemplateHead(d,G);ne(g,T);for(var m=function(x){var M=ie(se[x]);R(x,M);var me=ee(x+1,se),z=me[0],K=me[1],I=me[2],Ae=me[3];x=z-1;var Oe=x===se.length-1;if(e.isTemplateExpression(M)){var te=e.map(M.templateSpans,function(be,Ce){b(be);var Be=Ce===M.templateSpans.length-1,De=be.literal.text+(Be?K:""),en=L(be.literal)+(Be?I:"");return e.factory.createTemplateSpan(be.expression,Oe?e.factory.createTemplateTail(De,en):e.factory.createTemplateMiddle(De,en))});f.push.apply(f,te)}else{var Se=Oe?e.factory.createTemplateTail(K,I):e.factory.createTemplateMiddle(K,I);ne(Ae,Se),f.push(e.factory.createTemplateSpan(M,Se))}N=x},N,P=C;P<se.length;P++)m(P),P=N;return e.factory.createTemplateExpression(T,f)}function b(q){var oe=q.getSourceFile();e.copyTrailingComments(q,q.expression,oe,3,!1),e.copyTrailingAsLeadingComments(q.expression,q.expression,oe,3,!1)}function ie(q){return e.isParenthesizedExpression(q)&&(b(q),q=q.expression),q}})($=ue.convertStringOrTemplateLiteral||(ue.convertStringOrTemplateLiteral={}))})(o=e.refactor||(e.refactor={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $;(function(Y){var W="Convert arrow function or function expression",re=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),ye={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},O={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},A={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};ue.registerRefactor(W,{kinds:[ye.kind,O.kind,A.kind],getEditsForAction:de,getAvailableActions:D});function D(q){var oe=q.file,se=q.startPosition,w=q.program,R=q.kind,ne=y(oe,se,w);if(!ne)return e.emptyArray;var U=ne.selectedVariableDeclaration,C=ne.func,d=[],G=[];if(ue.refactorKindBeginsWith(O.kind,R)){var g=U||e.isArrowFunction(C)&&e.isVariableDeclaration(C.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function);g?G.push(Mt(Mt({},O),{notApplicableReason:g})):d.push(O)}if(ue.refactorKindBeginsWith(ye.kind,R)){var g=!U&&e.isArrowFunction(C)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function);g?G.push(Mt(Mt({},ye),{notApplicableReason:g})):d.push(ye)}if(ue.refactorKindBeginsWith(A.kind,R)){var g=e.isFunctionExpression(C)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function);g?G.push(Mt(Mt({},A),{notApplicableReason:g})):d.push(A)}return[{name:W,description:re,actions:d.length===0&&q.preferences.provideRefactorNotApplicableReason?G:d}]}function de(q,oe){var se=q.file,w=q.startPosition,R=q.program,ne=y(se,w,R);if(ne){var U=ne.func,C=[];switch(oe){case ye.name:C.push.apply(C,L(q,U));break;case O.name:var d=H(U);if(!d)return;C.push.apply(C,ee(q,U,d));break;case A.name:if(!e.isFunctionExpression(U))return;C.push.apply(C,k(q,U));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:C}}}function _e(q){var oe=!1;return q.forEachChild(function se(w){if(e.isThis(w)){oe=!0;return}!e.isClassLike(w)&&!e.isFunctionDeclaration(w)&&!e.isFunctionExpression(w)&&e.forEachChild(w,se)}),oe}function y(q,oe,se){var w=e.getTokenAtPosition(q,oe),R=se.getTypeChecker(),ne=Z(q,R,w.parent);if(ne&&!_e(ne.body)&&!R.containsArgumentsReference(ne))return{selectedVariableDeclaration:!0,func:ne};var U=e.getContainingFunction(w);if(U&&(e.isFunctionExpression(U)||e.isArrowFunction(U))&&!e.rangeContainsRange(U.body,w)&&!_e(U.body)&&!R.containsArgumentsReference(U))return e.isFunctionExpression(U)&&ie(q,R,U)?void 0:{selectedVariableDeclaration:!1,func:U}}function V(q){return e.isVariableDeclaration(q)||e.isVariableDeclarationList(q)&&q.declarations.length===1}function Z(q,oe,se){if(V(se)){var w=e.isVariableDeclaration(se)?se:e.first(se.declarations),R=w.initializer;if(R&&(e.isArrowFunction(R)||e.isFunctionExpression(R)&&!ie(q,oe,R)))return R}}function E(q){if(e.isExpression(q)){var oe=e.factory.createReturnStatement(q),se=q.getSourceFile();return e.suppressLeadingAndTrailingTrivia(oe),e.copyTrailingAsLeadingComments(q,oe,se,void 0,!0),e.factory.createBlock([oe],!0)}else return q}function H(q){var oe=q.parent;if(!(!e.isVariableDeclaration(oe)||!e.isVariableDeclarationInVariableStatement(oe))){var se=oe.parent,w=se.parent;if(!(!e.isVariableDeclarationList(se)||!e.isVariableStatement(w)||!e.isIdentifier(oe.name)))return{variableDeclaration:oe,variableDeclarationList:se,statement:w,name:oe.name}}}function L(q,oe){var se=q.file,w=E(oe.body),R=e.factory.createFunctionExpression(oe.modifiers,oe.asteriskToken,void 0,oe.typeParameters,oe.parameters,oe.type,w);return e.textChanges.ChangeTracker.with(q,function(ne){return ne.replaceNode(se,oe,R)})}function ee(q,oe,se){var w=q.file,R=E(oe.body),ne=se.variableDeclaration,U=se.variableDeclarationList,C=se.statement,d=se.name;e.suppressLeadingTrivia(C);var G=e.getCombinedModifierFlags(ne)&1|e.getEffectiveModifierFlags(oe),g=e.factory.createModifiersFromModifierFlags(G),p=e.factory.createFunctionDeclaration(oe.decorators,e.length(g)?g:void 0,oe.asteriskToken,d,oe.typeParameters,oe.parameters,oe.type,R);return U.declarations.length===1?e.textChanges.ChangeTracker.with(q,function(f){return f.replaceNode(w,C,p)}):e.textChanges.ChangeTracker.with(q,function(f){f.delete(w,ne),f.insertNodeAfter(w,C,p)})}function k(q,oe){var se=q.file,w=oe.body.statements,R=w[0],ne;b(oe.body,R)?(ne=R.expression,e.suppressLeadingAndTrailingTrivia(ne),e.copyComments(R,ne)):ne=oe.body;var U=e.factory.createArrowFunction(oe.modifiers,oe.typeParameters,oe.parameters,oe.type,e.factory.createToken(38),ne);return e.textChanges.ChangeTracker.with(q,function(C){return C.replaceNode(se,oe,U)})}function b(q,oe){return q.statements.length===1&&e.isReturnStatement(oe)&&!!oe.expression}function ie(q,oe,se){return!!se.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(se.name,oe,q)}})($=ue.convertArrowFunctionOrFunctionExpression||(ue.convertArrowFunctionOrFunctionExpression={}))})(o=e.refactor||(e.refactor={}))})(vn||(vn={}));var vn;(function(e){var o;(function(ue){var $;(function(Y){var W="Infer function return type",re=e.Diagnostics.Infer_function_return_type.message,ye={name:W,description:re,kind:"refactor.rewrite.function.returnType"};ue.registerRefactor(W,{kinds:[ye.kind],getEditsForAction:O,getAvailableActions:A});function O(V){var Z=de(V);if(Z&&!ue.isRefactorErrorInfo(Z)){var E=e.textChanges.ChangeTracker.with(V,function(H){return D(V.file,H,Z.declaration,Z.returnTypeNode)});return{renameFilename:void 0,renameLocation:void 0,edits:E}}}function A(V){var Z=de(V);return Z?ue.isRefactorErrorInfo(Z)?V.preferences.provideRefactorNotApplicableReason?[{name:W,description:re,actions:[Mt(Mt({},ye),{notApplicableReason:Z.error})]}]:e.emptyArray:[{name:W,description:re,actions:[ye]}]:e.emptyArray}function D(V,Z,E,H){var L=e.findChildOfKind(E,21,V),ee=e.isArrowFunction(E)&&L===void 0,k=ee?e.first(E.parameters):L;k&&(ee&&(Z.insertNodeBefore(V,k,e.factory.createToken(20)),Z.insertNodeAfter(V,k,e.factory.createToken(21))),Z.insertNodeAt(V,k.end,H,{prefix:": "}))}function de(V){if(!(e.isInJSFile(V.file)||!ue.refactorKindBeginsWith(ye.kind,V.kind))){var Z=e.getTokenAtPosition(V.file,V.startPosition),E=e.findAncestor(Z,function(k){return e.isBlock(k)||k.parent&&e.isArrowFunction(k.parent)&&(k.kind===38||k.parent.body===k)?"quit":_e(k)});if(!E||!E.body||E.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var H=V.program.getTypeChecker(),L=y(H,E);if(!L)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var ee=H.typeToTypeNode(L,E,1);if(ee)return{declaration:E,returnTypeNode:ee}}}function _e(V){switch(V.kind){case 254:case 211:case 212:case 167:return!0;default:return!1}}function y(V,Z){if(V.isImplementationOfOverload(Z)){var E=V.getTypeAtLocation(Z).getCallSignatures();if(E.length>1)return V.getUnionType(e.mapDefined(E,function(L){return L.getReturnType()}))}var H=V.getSignatureFromDeclaration(Z);if(H)return V.getReturnTypeOfSignature(H)}})($=ue.inferFunctionReturnType||(ue.inferFunctionReturnType={}))})(o=e.refactor||(e.refactor={}))})(vn||(vn={}));var vn;(function(e){e.servicesVersion="0.8";function o(I,Ae,Oe,te){var Se=e.isNodeKind(I)?new ue(I,Ae,Oe):I===79?new A(79,Ae,Oe):I===80?new D(80,Ae,Oe):new O(I,Ae,Oe);return Se.parent=te,Se.flags=te.flags&25358336,Se}var ue=function(){function I(Ae,Oe,te){this.pos=Oe,this.end=te,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=Ae}return I.prototype.assertHasRealPosition=function(Ae){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),Ae||"Node must have a real position for this operation")},I.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},I.prototype.getStart=function(Ae,Oe){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,Ae,Oe)},I.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},I.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},I.prototype.getWidth=function(Ae){return this.assertHasRealPosition(),this.getEnd()-this.getStart(Ae)},I.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},I.prototype.getLeadingTriviaWidth=function(Ae){return this.assertHasRealPosition(),this.getStart(Ae)-this.pos},I.prototype.getFullText=function(Ae){return this.assertHasRealPosition(),(Ae||this.getSourceFile()).text.substring(this.pos,this.end)},I.prototype.getText=function(Ae){return this.assertHasRealPosition(),Ae||(Ae=this.getSourceFile()),Ae.text.substring(this.getStart(Ae),this.getEnd())},I.prototype.getChildCount=function(Ae){return this.getChildren(Ae).length},I.prototype.getChildAt=function(Ae,Oe){return this.getChildren(Oe)[Ae]},I.prototype.getChildren=function(Ae){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=$(this,Ae))},I.prototype.getFirstToken=function(Ae){this.assertHasRealPosition();var Oe=this.getChildren(Ae);if(Oe.length){var te=e.find(Oe,function(Se){return Se.kind<304||Se.kind>342});return te.kind<159?te:te.getFirstToken(Ae)}},I.prototype.getLastToken=function(Ae){this.assertHasRealPosition();var Oe=this.getChildren(Ae),te=e.lastOrUndefined(Oe);if(te)return te.kind<159?te:te.getLastToken(Ae)},I.prototype.forEachChild=function(Ae,Oe){return e.forEachChild(this,Ae,Oe)},I}();function $(I,Ae){if(!e.isNodeKind(I.kind))return e.emptyArray;var Oe=[];if(e.isJSDocCommentContainingNode(I))return I.forEachChild(function(Ce){Oe.push(Ce)}),Oe;e.scanner.setText((Ae||I.getSourceFile()).text);var te=I.pos,Se=function(Ce){Y(Oe,te,Ce.pos,I),Oe.push(Ce),te=Ce.end},be=function(Ce){Y(Oe,te,Ce.pos,I),Oe.push(W(Ce,I)),te=Ce.end};return e.forEach(I.jsDoc,Se),te=I.pos,I.forEachChild(Se,be),Y(Oe,te,I.end,I),e.scanner.setText(void 0),Oe}function Y(I,Ae,Oe,te){for(e.scanner.setTextPos(Ae);Ae<Oe;){var Se=e.scanner.scan(),be=e.scanner.getTextPos();if(be<=Oe&&(Se===79&&e.Debug.fail("Did not expect "+e.Debug.formatSyntaxKind(te.kind)+" to have an Identifier in its trivia"),I.push(o(Se,Ae,be,te))),Ae=be,Se===1)break}}function W(I,Ae){var Oe=o(343,I.pos,I.end,Ae);Oe._children=[];for(var te=I.pos,Se=0,be=I;Se<be.length;Se++){var Ce=be[Se];Y(Oe._children,te,Ce.pos,Ae),Oe._children.push(Ce),te=Ce.end}return Y(Oe._children,te,I.end,Ae),Oe}var re=function(){function I(Ae,Oe){this.pos=Ae,this.end=Oe,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return I.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},I.prototype.getStart=function(Ae,Oe){return e.getTokenPosOfNode(this,Ae,Oe)},I.prototype.getFullStart=function(){return this.pos},I.prototype.getEnd=function(){return this.end},I.prototype.getWidth=function(Ae){return this.getEnd()-this.getStart(Ae)},I.prototype.getFullWidth=function(){return this.end-this.pos},I.prototype.getLeadingTriviaWidth=function(Ae){return this.getStart(Ae)-this.pos},I.prototype.getFullText=function(Ae){return(Ae||this.getSourceFile()).text.substring(this.pos,this.end)},I.prototype.getText=function(Ae){return Ae||(Ae=this.getSourceFile()),Ae.text.substring(this.getStart(Ae),this.getEnd())},I.prototype.getChildCount=function(){return this.getChildren().length},I.prototype.getChildAt=function(Ae){return this.getChildren()[Ae]},I.prototype.getChildren=function(){return this.kind===1&&this.jsDoc||e.emptyArray},I.prototype.getFirstToken=function(){},I.prototype.getLastToken=function(){},I.prototype.forEachChild=function(){},I}(),ye=function(){function I(Ae,Oe){this.flags=Ae,this.escapedName=Oe}return I.prototype.getFlags=function(){return this.flags},Object.defineProperty(I.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!1,configurable:!0}),I.prototype.getEscapedName=function(){return this.escapedName},I.prototype.getName=function(){return this.name},I.prototype.getDeclarations=function(){return this.declarations},I.prototype.getDocumentationComment=function(Ae){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var Oe=this.target.tupleLabelDeclaration;this.documentationComment=Z([Oe],Ae)}else this.documentationComment=Z(this.declarations,Ae);return this.documentationComment},I.prototype.getContextualDocumentationComment=function(Ae,Oe){switch(Ae==null?void 0:Ae.kind){case 170:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=e.emptyArray,this.contextualGetAccessorDocumentationComment=Z(e.filter(this.declarations,e.isGetAccessor),Oe)),this.contextualGetAccessorDocumentationComment;case 171:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=e.emptyArray,this.contextualSetAccessorDocumentationComment=Z(e.filter(this.declarations,e.isSetAccessor),Oe)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(Oe)}},I.prototype.getJsDocTags=function(Ae){return this.tags===void 0&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations,Ae)),this.tags},I}(),O=function(I){zu(Ae,I);function Ae(Oe,te,Se){var be=I.call(this,te,Se)||this;return be.kind=Oe,be}return Ae}(re),A=function(I){zu(Ae,I);function Ae(Oe,te,Se){var be=I.call(this,te,Se)||this;return be.kind=79,be}return Object.defineProperty(Ae.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),Ae}(re);A.prototype.kind=79;var D=function(I){zu(Ae,I);function Ae(Oe,te,Se){return I.call(this,te,Se)||this}return Object.defineProperty(Ae.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),Ae}(re);D.prototype.kind=80;var de=function(){function I(Ae,Oe){this.checker=Ae,this.flags=Oe}return I.prototype.getFlags=function(){return this.flags},I.prototype.getSymbol=function(){return this.symbol},I.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},I.prototype.getProperty=function(Ae){return this.checker.getPropertyOfType(this,Ae)},I.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},I.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},I.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},I.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},I.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},I.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},I.prototype.isNullableType=function(){return this.checker.isNullableType(this)},I.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},I.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},I.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},I.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},I.prototype.isUnion=function(){return!!(this.flags&1048576)},I.prototype.isIntersection=function(){return!!(this.flags&2097152)},I.prototype.isUnionOrIntersection=function(){return!!(this.flags&3145728)},I.prototype.isLiteral=function(){return!!(this.flags&384)},I.prototype.isStringLiteral=function(){return!!(this.flags&128)},I.prototype.isNumberLiteral=function(){return!!(this.flags&256)},I.prototype.isTypeParameter=function(){return!!(this.flags&262144)},I.prototype.isClassOrInterface=function(){return!!(e.getObjectFlags(this)&3)},I.prototype.isClass=function(){return!!(e.getObjectFlags(this)&1)},Object.defineProperty(I.prototype,"typeArguments",{get:function(){if(e.getObjectFlags(this)&4)return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),I}(),_e=function(){function I(Ae,Oe){this.checker=Ae,this.flags=Oe}return I.prototype.getDeclaration=function(){return this.declaration},I.prototype.getTypeParameters=function(){return this.typeParameters},I.prototype.getParameters=function(){return this.parameters},I.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},I.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=Z(e.singleElementArray(this.declaration),this.checker))},I.prototype.getJsDocTags=function(){return this.jsDocTags===void 0&&(this.jsDocTags=this.declaration?V(this.declaration,this.checker):[]),this.jsDocTags},I}();function y(I){return e.getJSDocTags(I).some(function(Ae){return Ae.tagName.text==="inheritDoc"})}function V(I,Ae){var Oe=e.JsDoc.getJsDocTagsFromDeclarations([I],Ae);if(Oe.length===0||y(I)){var te=E(Ae,I,function(Se){var be;return((be=Se.declarations)===null||be===void 0?void 0:be.length)===1?Se.getJsDocTags():void 0});te&&(Oe=Vr(Vr([],te,!0),Oe,!0))}return Oe}function Z(I,Ae){if(!I)return e.emptyArray;var Oe=e.JsDoc.getJsDocCommentsFromDeclarations(I,Ae);if(Ae&&(Oe.length===0||I.some(y)))for(var te=new e.Set,Se=0,be=I;Se<be.length;Se++){var Ce=be[Se],Be=E(Ae,Ce,function(De){if(!te.has(De))return te.add(De),De.getDocumentationComment(Ae)});Be&&(Oe=Oe.length===0?Be.slice():Be.concat(e.lineBreakPart(),Oe))}return Oe}function E(I,Ae,Oe){var te,Se=((te=Ae.parent)===null||te===void 0?void 0:te.kind)===169?Ae.parent.parent:Ae.parent;if(Se)return e.firstDefined(e.getAllSuperTypeNodes(Se),function(be){var Ce=I.getPropertyOfType(I.getTypeAtLocation(be),Ae.symbol.name);return Ce?Oe(Ce):void 0})}var H=function(I){zu(Ae,I);function Ae(Oe,te,Se){var be=I.call(this,Oe,te,Se)||this;return be.kind=300,be}return Ae.prototype.update=function(Oe,te){return e.updateSourceFile(this,Oe,te)},Ae.prototype.getLineAndCharacterOfPosition=function(Oe){return e.getLineAndCharacterOfPosition(this,Oe)},Ae.prototype.getLineStarts=function(){return e.getLineStarts(this)},Ae.prototype.getPositionOfLineAndCharacter=function(Oe,te,Se){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),Oe,te,this.text,Se)},Ae.prototype.getLineEndOfPosition=function(Oe){var te=this.getLineAndCharacterOfPosition(Oe).line,Se=this.getLineStarts(),be;te+1>=Se.length&&(be=this.getEnd()),be||(be=Se[te+1]-1);var Ce=this.getFullText();return Ce[be]===`
`&&Ce[be-1]==="\r"?be-1:be},Ae.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},Ae.prototype.computeNamedDeclarations=function(){var Oe=e.createMultiMap();return this.forEachChild(Ce),Oe;function te(Be){var De=be(Be);De&&Oe.add(De,Be)}function Se(Be){var De=Oe.get(Be);return De||Oe.set(Be,De=[]),De}function be(Be){var De=e.getNonAssignedNameOfDeclaration(Be);return De&&(e.isComputedPropertyName(De)&&e.isPropertyAccessExpression(De.expression)?De.expression.name.text:e.isPropertyName(De)?e.getNameFromPropertyName(De):void 0)}function Ce(Be){switch(Be.kind){case 254:case 211:case 167:case 166:var De=Be,en=be(De);if(en){var fe=Se(en),Ne=e.lastOrUndefined(fe);Ne&&De.parent===Ne.parent&&De.symbol===Ne.symbol?De.body&&!Ne.body&&(fe[fe.length-1]=De):fe.push(De)}e.forEachChild(Be,Ce);break;case 255:case 224:case 256:case 257:case 258:case 259:case 263:case 273:case 268:case 265:case 266:case 170:case 171:case 180:te(Be),e.forEachChild(Be,Ce);break;case 162:if(!e.hasSyntacticModifier(Be,16476))break;case 252:case 201:{var qe=Be;if(e.isBindingPattern(qe.name)){e.forEachChild(qe.name,Ce);break}qe.initializer&&Ce(qe.initializer)}case 294:case 165:case 164:te(Be);break;case 270:var pe=Be;pe.exportClause&&(e.isNamedExports(pe.exportClause)?e.forEach(pe.exportClause.elements,Ce):Ce(pe.exportClause.name));break;case 264:var we=Be.importClause;we&&(we.name&&te(we.name),we.namedBindings&&(we.namedBindings.kind===266?te(we.namedBindings):e.forEach(we.namedBindings.elements,Ce)));break;case 219:e.getAssignmentDeclarationKind(Be)!==0&&te(Be);default:e.forEachChild(Be,Ce)}}},Ae}(ue),L=function(){function I(Ae,Oe,te){this.fileName=Ae,this.text=Oe,this.skipTrivia=te}return I.prototype.getLineAndCharacterOfPosition=function(Ae){return e.getLineAndCharacterOfPosition(this,Ae)},I}();function ee(){return{getNodeConstructor:function(){return ue},getTokenConstructor:function(){return O},getIdentifierConstructor:function(){return A},getPrivateIdentifierConstructor:function(){return D},getSourceFileConstructor:function(){return H},getSymbolConstructor:function(){return ye},getTypeConstructor:function(){return de},getSignatureConstructor:function(){return _e},getSourceMapSourceConstructor:function(){return L}}}function k(I){var Ae=!0;for(var Oe in I)if(e.hasProperty(I,Oe)&&!b(Oe)){Ae=!1;break}if(Ae)return I;var te={};for(var Oe in I)if(e.hasProperty(I,Oe)){var Se=b(Oe)?Oe:Oe.charAt(0).toLowerCase()+Oe.substr(1);te[Se]=I[Oe]}return te}e.toEditorSettings=k;function b(I){return!I.length||I.charAt(0)===I.charAt(0).toLowerCase()}function ie(I){return I?e.map(I,function(Ae){return Ae.text}).join(""):""}e.displayPartsToString=ie;function q(){return{target:1,jsx:1}}e.getDefaultCompilerOptions=q;function oe(){return e.codefix.getSupportedErrorCodes()}e.getSupportedCodeFixes=oe;var se=function(){function I(Ae,Oe){this.host=Ae,this.currentDirectory=Ae.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var te=Ae.getScriptFileNames(),Se=0,be=te;Se<be.length;Se++){var Ce=be[Se];this.createEntry(Ce,e.toPath(Ce,this.currentDirectory,Oe))}}return I.prototype.createEntry=function(Ae,Oe){var te,Se=this.host.getScriptSnapshot(Ae);return Se?te={hostFileName:Ae,version:this.host.getScriptVersion(Ae),scriptSnapshot:Se,scriptKind:e.getScriptKind(Ae,this.host)}:te=Ae,this.fileNameToEntry.set(Oe,te),te},I.prototype.getEntryByPath=function(Ae){return this.fileNameToEntry.get(Ae)},I.prototype.getHostFileInformation=function(Ae){var Oe=this.fileNameToEntry.get(Ae);return e.isString(Oe)?void 0:Oe},I.prototype.getOrCreateEntryByPath=function(Ae,Oe){var te=this.getEntryByPath(Oe)||this.createEntry(Ae,Oe);return e.isString(te)?void 0:te},I.prototype.getRootFileNames=function(){var Ae=[];return this.fileNameToEntry.forEach(function(Oe){e.isString(Oe)?Ae.push(Oe):Ae.push(Oe.hostFileName)}),Ae},I.prototype.getScriptSnapshot=function(Ae){var Oe=this.getHostFileInformation(Ae);return Oe&&Oe.scriptSnapshot},I}(),w=function(){function I(Ae){this.host=Ae}return I.prototype.getCurrentSourceFile=function(Ae){var Oe=this.host.getScriptSnapshot(Ae);if(!Oe)throw new Error("Could not find file: '"+Ae+"'.");var te=e.getScriptKind(Ae,this.host),Se=this.host.getScriptVersion(Ae),be;if(this.currentFileName!==Ae)be=ne(Ae,Oe,99,Se,!0,te);else if(this.currentFileVersion!==Se){var Ce=Oe.getChangeRange(this.currentFileScriptSnapshot);be=U(this.currentSourceFile,Oe,Se,Ce)}return be&&(this.currentFileVersion=Se,this.currentFileName=Ae,this.currentFileScriptSnapshot=Oe,this.currentSourceFile=be),this.currentSourceFile},I}();function R(I,Ae,Oe){I.version=Oe,I.scriptSnapshot=Ae}function ne(I,Ae,Oe,te,Se,be){var Ce=e.createSourceFile(I,e.getSnapshotText(Ae),Oe,Se,be);return R(Ce,Ae,te),Ce}e.createLanguageServiceSourceFile=ne;function U(I,Ae,Oe,te,Se){if(te&&Oe!==I.version){var be=void 0,Ce=te.span.start!==0?I.text.substr(0,te.span.start):"",Be=e.textSpanEnd(te.span)!==I.text.length?I.text.substr(e.textSpanEnd(te.span)):"";if(te.newLength===0)be=Ce&&Be?Ce+Be:Ce||Be;else{var De=Ae.getText(te.span.start,te.span.start+te.newLength);be=Ce&&Be?Ce+De+Be:Ce?Ce+De:De+Be}var en=e.updateSourceFile(I,be,te,Se);return R(en,Ae,Oe),en.nameTable=void 0,I!==en&&I.scriptSnapshot&&(I.scriptSnapshot.dispose&&I.scriptSnapshot.dispose(),I.scriptSnapshot=void 0),en}return ne(I.fileName,Ae,I.languageVersion,Oe,!0,I.scriptKind)}e.updateLanguageServiceSourceFile=U;var C={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},d=function(){function I(Ae){this.cancellationToken=Ae}return I.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},I.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},I}(),G=function(){function I(Ae,Oe){Oe===void 0&&(Oe=20),this.hostCancellationToken=Ae,this.throttleWaitMilliseconds=Oe,this.lastCancellationCheckTime=0}return I.prototype.isCancellationRequested=function(){var Ae=e.timestamp(),Oe=Math.abs(Ae-this.lastCancellationCheckTime);return Oe>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=Ae,this.hostCancellationToken.isCancellationRequested()):!1},I.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},I}();e.ThrottledCancellationToken=G;var g=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],p=Vr(Vr([],g,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function f(I,Ae,Oe){var te;Ae===void 0&&(Ae=e.createDocumentRegistry(I.useCaseSensitiveFileNames&&I.useCaseSensitiveFileNames(),I.getCurrentDirectory()));var Se;Oe===void 0?Se=e.LanguageServiceMode.Semantic:typeof Oe=="boolean"?Se=Oe?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:Se=Oe;var be=new w(I),Ce,Be,De=0,en=I.getCancellationToken?new d(I.getCancellationToken()):C,fe=I.getCurrentDirectory();!e.localizedDiagnosticMessages&&I.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(I.getLocalizedDiagnosticMessages());function Ne(Rr){I.log&&I.log(Rr)}var qe=e.hostUsesCaseSensitiveFileNames(I),pe=e.createGetCanonicalFileName(qe),we=e.getSourceMapper({useCaseSensitiveFileNames:function(){return qe},getCurrentDirectory:function(){return fe},getProgram:Re,fileExists:e.maybeBind(I,I.fileExists),readFile:e.maybeBind(I,I.readFile),getDocumentPositionMapper:e.maybeBind(I,I.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(I,I.getSourceFileLike),log:Ne});function pn(Rr){var Lr=Ce.getSourceFile(Rr);if(!Lr){var Xr=new Error("Could not find source file: '"+Rr+"'.");throw Xr.ProgramFiles=Ce.getSourceFiles().map(function(nt){return nt.fileName}),Xr}return Lr}function Qe(){var Rr,Lr,Xr;if(e.Debug.assert(Se!==e.LanguageServiceMode.Syntactic),I.getProjectVersion){var nt=I.getProjectVersion();if(nt){if(Be===nt&&!(!((Rr=I.hasChangedAutomaticTypeDirectiveNames)===null||Rr===void 0)&&Rr.call(I)))return;Be=nt}}var vt=I.getTypeRootsVersion?I.getTypeRootsVersion():0;De!==vt&&(Ne("TypeRoots version has changed; provide new program"),Ce=void 0,De=vt);var or=new se(I,pe),$t=or.getRootFileNames(),Va=I.getCompilationSettings()||q(),li=I.hasInvalidatedResolution||e.returnFalse,zi=e.maybeBind(I,I.hasChangedAutomaticTypeDirectiveNames),Ma=(Lr=I.getProjectReferences)===null||Lr===void 0?void 0:Lr.call(I),di,Yi={useCaseSensitiveFileNames:qe,fileExists:Ho,readFile:qi,readDirectory:Qi,trace:e.maybeBind(I,I.trace),getCurrentDirectory:function(){return fe},onUnRecoverableConfigFileDiagnostic:e.noop};if(e.isProgramUptoDate(Ce,$t,Va,function($a,Ni){return I.getScriptVersion(Ni)},Ho,li,zi,Go,Ma))return;var uo={getSourceFile:gs,getSourceFileByPath:Da,getCancellationToken:function(){return en},getCanonicalFileName:pe,useCaseSensitiveFileNames:function(){return qe},getNewLine:function(){return e.getNewLineCharacter(Va,function(){return e.getNewLineOrDefaultFromHost(I)})},getDefaultLibFileName:function($a){return I.getDefaultLibFileName($a)},writeFile:e.noop,getCurrentDirectory:function(){return fe},fileExists:Ho,readFile:qi,getSymlinkCache:e.maybeBind(I,I.getSymlinkCache),realpath:e.maybeBind(I,I.realpath),directoryExists:function($a){return e.directoryProbablyExists($a,I)},getDirectories:function($a){return I.getDirectories?I.getDirectories($a):[]},readDirectory:Qi,onReleaseOldSourceFile:as,onReleaseParsedCommandLine:wi,hasInvalidatedResolution:li,hasChangedAutomaticTypeDirectiveNames:zi,trace:Yi.trace,resolveModuleNames:e.maybeBind(I,I.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(I,I.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(I,I.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Go};(Xr=I.setCompilerHost)===null||Xr===void 0||Xr.call(I,uo);var bi=Ae.getKeyForCompilationSettings(Va),Mi={rootNames:$t,options:Va,host:uo,oldProgram:Ce,projectReferences:Ma};Ce=e.createProgram(Mi),or=void 0,di=void 0,we.clearCache(),Ce.getTypeChecker();return;function Go($a){var Ni=e.toPath($a,fe,pe),vo=di==null?void 0:di.get(Ni);if(vo!==void 0)return vo||void 0;var Io=I.getParsedCommandLine?I.getParsedCommandLine($a):io($a);return(di||(di=new e.Map)).set(Ni,Io||!1),Io}function io($a){var Ni=gs($a,100);if(Ni)return Ni.path=e.toPath($a,fe,pe),Ni.resolvedPath=Ni.path,Ni.originalFileName=Ni.fileName,e.parseJsonSourceFileConfigFileContent(Ni,Yi,e.getNormalizedAbsolutePath(e.getDirectoryPath($a),fe),void 0,e.getNormalizedAbsolutePath($a,fe))}function wi($a,Ni,vo){var Io;I.getParsedCommandLine?(Io=I.onReleaseParsedCommandLine)===null||Io===void 0||Io.call(I,$a,Ni,vo):Ni&&as(Ni.sourceFile,vo)}function Ho($a){var Ni=e.toPath($a,fe,pe),vo=or&&or.getEntryByPath(Ni);return vo?!e.isString(vo):!!I.fileExists&&I.fileExists($a)}function qi($a){var Ni=e.toPath($a,fe,pe),vo=or&&or.getEntryByPath(Ni);return vo?e.isString(vo)?void 0:e.getSnapshotText(vo.scriptSnapshot):I.readFile&&I.readFile($a)}function Qi($a,Ni,vo,Io,Bo){return e.Debug.checkDefined(I.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),I.readDirectory($a,Ni,vo,Io,Bo)}function as($a,Ni){var vo=Ae.getKeyForCompilationSettings(Ni);Ae.releaseDocumentWithKey($a.resolvedPath,vo,$a.scriptKind)}function gs($a,Ni,vo,Io){return Da($a,e.toPath($a,fe,pe),Ni,vo,Io)}function Da($a,Ni,vo,Io,Bo){e.Debug.assert(or!==void 0,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var Uo=or&&or.getOrCreateEntryByPath($a,Ni);if(Uo){if(!Bo){var cs=Ce&&Ce.getSourceFileByPath(Ni);if(cs){if(Uo.scriptKind===cs.scriptKind)return Ae.updateDocumentWithKey($a,Ni,Va,bi,Uo.scriptSnapshot,Uo.version,Uo.scriptKind);Ae.releaseDocumentWithKey(cs.resolvedPath,Ae.getKeyForCompilationSettings(Ce.getCompilerOptions()),cs.scriptKind)}}return Ae.acquireDocumentWithKey($a,Ni,Va,bi,Uo.scriptSnapshot,Uo.version,Uo.scriptKind)}}}function Re(){if(Se===e.LanguageServiceMode.Syntactic){e.Debug.assert(Ce===void 0);return}return Qe(),Ce}function He(){var Rr;return(Rr=I.getPackageJsonAutoImportProvider)===null||Rr===void 0?void 0:Rr.call(I)}function Ln(){Ce=void 0}function Un(){if(Ce){var Rr=Ae.getKeyForCompilationSettings(Ce.getCompilerOptions());e.forEach(Ce.getSourceFiles(),function(Lr){return Ae.releaseDocumentWithKey(Lr.resolvedPath,Rr,Lr.scriptKind)}),Ce=void 0}I=void 0}function fn(Rr){return Qe(),Ce.getSyntacticDiagnostics(pn(Rr),en).slice()}function En(Rr){Qe();var Lr=pn(Rr),Xr=Ce.getSemanticDiagnostics(Lr,en);if(!e.getEmitDeclarations(Ce.getCompilerOptions()))return Xr.slice();var nt=Ce.getDeclarationDiagnostics(Lr,en);return Vr(Vr([],Xr,!0),nt,!0)}function i(Rr){return Qe(),e.computeSuggestionDiagnostics(pn(Rr),Ce,en)}function In(){return Qe(),Vr(Vr([],Ce.getOptionsDiagnostics(en),!0),Ce.getGlobalDiagnostics(en),!0)}function X(Rr,Lr,Xr){Xr===void 0&&(Xr=e.emptyOptions);var nt=Mt(Mt({},e.identity(Xr)),{includeCompletionsForModuleExports:Xr.includeCompletionsForModuleExports||Xr.includeExternalModuleExports,includeCompletionsWithInsertText:Xr.includeCompletionsWithInsertText||Xr.includeInsertTextCompletions});return Qe(),e.Completions.getCompletionsAtPosition(I,Ce,Ne,pn(Rr),Lr,nt,Xr.triggerCharacter,Xr.triggerKind,en)}function rn(Rr,Lr,Xr,nt,vt,or,$t){return or===void 0&&(or=e.emptyOptions),Qe(),e.Completions.getCompletionEntryDetails(Ce,Ne,pn(Rr),Lr,{name:Xr,source:vt,data:$t},I,nt&&e.formatting.getFormatContext(nt,I),or,en)}function $n(Rr,Lr,Xr,nt,vt){return vt===void 0&&(vt=e.emptyOptions),Qe(),e.Completions.getCompletionEntrySymbol(Ce,Ne,pn(Rr),Lr,{name:Xr,source:nt},I,vt)}function Vn(Rr,Lr){Qe();var Xr=pn(Rr),nt=e.getTouchingPropertyName(Xr,Lr);if(nt!==Xr){var vt=Ce.getTypeChecker(),or=le(nt),$t=M(or,vt);if(!$t||vt.isUnknownSymbol($t)){var Va=Pe(Xr,or,Lr)?vt.getTypeAtLocation(or):void 0;return Va&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(or,Xr),displayParts:vt.runWithCancellationToken(en,function(uo){return e.typeToDisplayParts(uo,Va,e.getContainerNode(or))}),documentation:Va.symbol?Va.symbol.getDocumentationComment(vt):void 0,tags:Va.symbol?Va.symbol.getJsDocTags(vt):void 0}}var li=vt.runWithCancellationToken(en,function(uo){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(uo,$t,Xr,e.getContainerNode(or),or)}),zi=li.symbolKind,Ma=li.displayParts,di=li.documentation,Yi=li.tags;return{kind:zi,kindModifiers:e.SymbolDisplay.getSymbolModifiers(vt,$t),textSpan:e.createTextSpanFromNode(or,Xr),displayParts:Ma,documentation:di,tags:Yi}}}function le(Rr){return e.isNewExpression(Rr.parent)&&Rr.pos===Rr.parent.pos?Rr.parent.expression:e.isNamedTupleMember(Rr.parent)&&Rr.pos===Rr.parent.pos?Rr.parent:Rr}function Pe(Rr,Lr,Xr){switch(Lr.kind){case 79:return!e.isLabelName(Lr)&&!e.isTagName(Lr)&&!e.isConstTypeReference(Lr.parent);case 204:case 159:return!e.isInComment(Rr,Xr);case 108:case 190:case 106:case 195:return!0;default:return!1}}function xe(Rr,Lr){return Qe(),e.GoToDefinition.getDefinitionAtPosition(Ce,pn(Rr),Lr)}function Ze(Rr,Lr){return Qe(),e.GoToDefinition.getDefinitionAndBoundSpan(Ce,pn(Rr),Lr)}function hn(Rr,Lr){return Qe(),e.GoToDefinition.getTypeDefinitionAtPosition(Ce.getTypeChecker(),pn(Rr),Lr)}function Le(Rr,Lr){return Qe(),e.FindAllReferences.getImplementationsAtPosition(Ce,en,Ce.getSourceFiles(),pn(Rr),Lr)}function $e(Rr,Lr){return e.flatMap(An(Rr,Lr,[Rr]),function(Xr){return Xr.highlightSpans.map(function(nt){return Mt(Mt({fileName:Xr.fileName,textSpan:nt.textSpan,isWriteAccess:nt.kind==="writtenReference",isDefinition:!1},nt.isInString&&{isInString:!0}),nt.contextSpan&&{contextSpan:nt.contextSpan})})})}function An(Rr,Lr,Xr){var nt=e.normalizePath(Rr);e.Debug.assert(Xr.some(function($t){return e.normalizePath($t)===nt})),Qe();var vt=e.mapDefined(Xr,function($t){return Ce.getSourceFile($t)}),or=pn(Rr);return e.DocumentHighlights.getDocumentHighlights(Ce,en,or,Lr,vt)}function Ue(Rr,Lr,Xr,nt,vt){Qe();var or=pn(Rr),$t=e.getAdjustedRenameLocation(e.getTouchingPropertyName(or,Lr));if(e.isIdentifier($t)&&(e.isJsxOpeningElement($t.parent)||e.isJsxClosingElement($t.parent))&&e.isIntrinsicJsxName($t.escapedText)){var Va=$t.parent.parent,li=Va.openingElement,zi=Va.closingElement;return[li,zi].map(function(Ma){var di=e.createTextSpanFromNode(Ma.tagName,or);return Mt({fileName:or.fileName,textSpan:di},e.FindAllReferences.toContextSpan(di,or,Ma.parent))})}else return Wn($t,Lr,{findInStrings:Xr,findInComments:nt,providePrefixAndSuffixTextForRename:vt,use:2},function(Ma,di,Yi){return e.FindAllReferences.toRenameLocation(Ma,di,Yi,vt||!1)})}function gn(Rr,Lr){return Qe(),Wn(e.getTouchingPropertyName(pn(Rr),Lr),Lr,{use:1},e.FindAllReferences.toReferenceEntry)}function Wn(Rr,Lr,Xr,nt){Qe();var vt=Xr&&Xr.use===2?Ce.getSourceFiles().filter(function(or){return!Ce.isSourceFileDefaultLibrary(or)}):Ce.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(Ce,en,vt,Rr,Lr,Xr,nt)}function ze(Rr,Lr){return Qe(),e.FindAllReferences.findReferencedSymbols(Ce,en,Ce.getSourceFiles(),pn(Rr),Lr)}function Tn(Rr){return Qe(),e.FindAllReferences.Core.getReferencesForFileName(Rr,Ce,Ce.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)}function On(Rr,Lr,Xr,nt){nt===void 0&&(nt=!1),Qe();var vt=Xr?[pn(Xr)]:Ce.getSourceFiles();return e.NavigateTo.getNavigateToItems(vt,Ce.getTypeChecker(),en,Rr,Lr,nt)}function ur(Rr,Lr,Xr){Qe();var nt=pn(Rr),vt=I.getCustomTransformers&&I.getCustomTransformers();return e.getFileEmitOutput(Ce,nt,!!Lr,en,vt,Xr)}function hr(Rr,Lr,Xr){var nt=Xr===void 0?e.emptyOptions:Xr,vt=nt.triggerReason;Qe();var or=pn(Rr);return e.SignatureHelp.getSignatureHelpItems(Ce,or,Lr,vt,en)}function wr(Rr){return be.getCurrentSourceFile(Rr)}function Qr(Rr,Lr,Xr){var nt=be.getCurrentSourceFile(Rr),vt=e.getTouchingPropertyName(nt,Lr);if(vt!==nt){switch(vt.kind){case 204:case 159:case 10:case 95:case 110:case 104:case 106:case 108:case 190:case 79:break;default:return}for(var or=vt;;)if(e.isRightSideOfPropertyAccess(or)||e.isRightSideOfQualifiedName(or))or=or.parent;else if(e.isNameOfModuleDeclaration(or))if(or.parent.parent.kind===259&&or.parent.parent.body===or.parent)or=or.parent.parent.name;else break;else break;return e.createTextSpanFromBounds(or.getStart(),vt.getEnd())}}function Ke(Rr,Lr){var Xr=be.getCurrentSourceFile(Rr);return e.BreakpointResolver.spanInSourceFileAtLocation(Xr,Lr)}function jn(Rr){return e.NavigationBar.getNavigationBarItems(be.getCurrentSourceFile(Rr),en)}function Zn(Rr){return e.NavigationBar.getNavigationTree(be.getCurrentSourceFile(Rr),en)}function Me(Rr,Lr,Xr){Qe();var nt=Xr||"original";return nt==="2020"?e.classifier.v2020.getSemanticClassifications(Ce,en,pn(Rr),Lr):e.getSemanticClassifications(Ce.getTypeChecker(),en,pn(Rr),Ce.getClassifiableNames(),Lr)}function Mn(Rr,Lr,Xr){Qe();var nt=Xr||"original";return nt==="original"?e.getEncodedSemanticClassifications(Ce.getTypeChecker(),en,pn(Rr),Ce.getClassifiableNames(),Lr):e.classifier.v2020.getEncodedSemanticClassifications(Ce,en,pn(Rr),Lr)}function ar(Rr,Lr){return e.getSyntacticClassifications(en,be.getCurrentSourceFile(Rr),Lr)}function Xn(Rr,Lr){return e.getEncodedSyntacticClassifications(en,be.getCurrentSourceFile(Rr),Lr)}function yr(Rr){var Lr=be.getCurrentSourceFile(Rr);return e.OutliningElementsCollector.collectElements(Lr,en)}var cr=new e.Map(e.getEntries((te={},te[18]=19,te[20]=21,te[22]=23,te[31]=29,te)));cr.forEach(function(Rr,Lr){return cr.set(Rr.toString(),Number(Lr))});function Fe(Rr,Lr){var Xr=be.getCurrentSourceFile(Rr),nt=e.getTouchingToken(Xr,Lr),vt=nt.getStart(Xr)===Lr?cr.get(nt.kind.toString()):void 0,or=vt&&e.findChildOfKind(nt.parent,vt,Xr);return or?[e.createTextSpanFromNode(nt,Xr),e.createTextSpanFromNode(or,Xr)].sort(function($t,Va){return $t.start-Va.start}):e.emptyArray}function Bn(Rr,Lr,Xr){var nt=e.timestamp(),vt=k(Xr),or=be.getCurrentSourceFile(Rr);Ne("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-nt)),nt=e.timestamp();var $t=e.formatting.SmartIndenter.getIndentation(Lr,or,vt);return Ne("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-nt)),$t}function J(Rr,Lr,Xr,nt){var vt=be.getCurrentSourceFile(Rr);return e.formatting.formatSelection(Lr,Xr,vt,e.formatting.getFormatContext(k(nt),I))}function Cn(Rr,Lr){return e.formatting.formatDocument(be.getCurrentSourceFile(Rr),e.formatting.getFormatContext(k(Lr),I))}function Gn(Rr,Lr,Xr,nt){var vt=be.getCurrentSourceFile(Rr),or=e.formatting.getFormatContext(k(nt),I);if(!e.isInComment(vt,Lr))switch(Xr){case"{":return e.formatting.formatOnOpeningCurly(Lr,vt,or);case"}":return e.formatting.formatOnClosingCurly(Lr,vt,or);case";":return e.formatting.formatOnSemicolon(Lr,vt,or);case`
`:return e.formatting.formatOnEnter(Lr,vt,or)}return[]}function cn(Rr,Lr,Xr,nt,vt,or){or===void 0&&(or=e.emptyOptions),Qe();var $t=pn(Rr),Va=e.createTextSpanFromBounds(Lr,Xr),li=e.formatting.getFormatContext(vt,I);return e.flatMap(e.deduplicate(nt,e.equateValues,e.compareValues),function(zi){return en.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:zi,sourceFile:$t,span:Va,program:Ce,host:I,cancellationToken:en,formatContext:li,preferences:or})})}function Rn(Rr,Lr,Xr,nt){nt===void 0&&(nt=e.emptyOptions),Qe(),e.Debug.assert(Rr.type==="file");var vt=pn(Rr.fileName),or=e.formatting.getFormatContext(Xr,I);return e.codefix.getAllFixes({fixId:Lr,sourceFile:vt,program:Ce,host:I,cancellationToken:en,formatContext:or,preferences:nt})}function Ye(Rr,Lr,Xr){Xr===void 0&&(Xr=e.emptyOptions),Qe(),e.Debug.assert(Rr.type==="file");var nt=pn(Rr.fileName),vt=e.formatting.getFormatContext(Lr,I);return e.OrganizeImports.organizeImports(nt,vt,I,Ce,Xr,Rr.skipDestructiveCodeActions)}function xn(Rr,Lr,Xr,nt){return nt===void 0&&(nt=e.emptyOptions),e.getEditsForFileRename(Re(),Rr,Lr,I,e.formatting.getFormatContext(Xr,I),nt,we)}function an(Rr,Lr){var Xr=typeof Rr=="string"?Lr:Rr;return e.isArray(Xr)?Promise.all(Xr.map(function(nt){return zn(nt)})):zn(Xr)}function zn(Rr){var Lr=function(Xr){return e.toPath(Xr,fe,pe)};return e.Debug.assertEqual(Rr.type,"install package"),I.installPackage?I.installPackage({fileName:Lr(Rr.file),packageName:Rr.packageName}):Promise.reject("Host does not implement `installPackage`")}function ir(Rr,Lr,Xr){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(I),be.getCurrentSourceFile(Rr),Lr,Xr)}function gr(Rr,Lr,Xr){if(Xr===60)return!1;var nt=be.getCurrentSourceFile(Rr);if(e.isInString(nt,Lr))return!1;if(e.isInsideJsxElementOrAttribute(nt,Lr))return Xr===123;if(e.isInTemplateString(nt,Lr))return!1;switch(Xr){case 39:case 34:case 96:return!e.isInComment(nt,Lr)}return!0}function Dr(Rr,Lr){var Xr=be.getCurrentSourceFile(Rr),nt=e.findPrecedingToken(Lr,Xr);if(nt){var vt=nt.kind===31&&e.isJsxOpeningElement(nt.parent)?nt.parent.parent:e.isJsxText(nt)?nt.parent:void 0;if(vt&&Ur(vt))return{newText:"</"+vt.openingElement.tagName.getText(Xr)+">"}}}function qr(Rr,Lr){return{lineStarts:Rr.getLineStarts(),firstLine:Rr.getLineAndCharacterOfPosition(Lr.pos).line,lastLine:Rr.getLineAndCharacterOfPosition(Lr.end).line}}function ft(Rr,Lr,Xr){for(var nt=be.getCurrentSourceFile(Rr),vt=[],or=qr(nt,Lr),$t=or.lineStarts,Va=or.firstLine,li=or.lastLine,zi=Xr||!1,Ma=Number.MAX_VALUE,di=new e.Map,Yi=new RegExp(/\S/),uo=e.isInsideJsxElement(nt,$t[Va]),bi=uo?"{/*":"//",Mi=Va;Mi<=li;Mi++){var Go=nt.text.substring($t[Mi],nt.getLineEndOfPosition($t[Mi])),io=Yi.exec(Go);io&&(Ma=Math.min(Ma,io.index),di.set(Mi.toString(),io.index),Go.substr(io.index,bi.length)!==bi&&(zi=Xr===void 0||Xr))}for(var Mi=Va;Mi<=li;Mi++)if(!(Va!==li&&$t[Mi]===Lr.end)){var wi=di.get(Mi.toString());wi!==void 0&&(uo?vt.push.apply(vt,xt(Rr,{pos:$t[Mi]+Ma,end:nt.getLineEndOfPosition($t[Mi])},zi,uo)):zi?vt.push({newText:bi,span:{length:0,start:$t[Mi]+Ma}}):nt.text.substr($t[Mi]+wi,bi.length)===bi&&vt.push({newText:"",span:{length:bi.length,start:$t[Mi]+wi}}))}return vt}function xt(Rr,Lr,Xr,nt){for(var vt,or=be.getCurrentSourceFile(Rr),$t=[],Va=or.text,li=!1,zi=Xr||!1,Ma=[],di=Lr.pos,Yi=nt!==void 0?nt:e.isInsideJsxElement(or,di),uo=Yi?"{/*":"/*",bi=Yi?"*/}":"*/",Mi=Yi?"\\{\\/\\*":"\\/\\*",Go=Yi?"\\*\\/\\}":"\\*\\/";di<=Lr.end;){var io=Va.substr(di,uo.length)===uo?uo.length:0,wi=e.isInComment(or,di+io);if(wi)Yi&&(wi.pos--,wi.end++),Ma.push(wi.pos),wi.kind===3&&Ma.push(wi.end),li=!0,di=wi.end+1;else{var Ho=Va.substring(di,Lr.end).search("("+Mi+")|("+Go+")");zi=Xr!==void 0?Xr:zi||!e.isTextWhiteSpaceLike(Va,di,Ho===-1?Lr.end:di+Ho),di=Ho===-1?Lr.end+1:di+Ho+bi.length}}if(zi||!li){((vt=e.isInComment(or,Lr.pos))===null||vt===void 0?void 0:vt.kind)!==2&&e.insertSorted(Ma,Lr.pos,e.compareValues),e.insertSorted(Ma,Lr.end,e.compareValues);var qi=Ma[0];Va.substr(qi,uo.length)!==uo&&$t.push({newText:uo,span:{length:0,start:qi}});for(var Qi=1;Qi<Ma.length-1;Qi++)Va.substr(Ma[Qi]-bi.length,bi.length)!==bi&&$t.push({newText:bi,span:{length:0,start:Ma[Qi]}}),Va.substr(Ma[Qi],uo.length)!==uo&&$t.push({newText:uo,span:{length:0,start:Ma[Qi]}});$t.length%2!==0&&$t.push({newText:bi,span:{length:0,start:Ma[Ma.length-1]}})}else for(var as=0,gs=Ma;as<gs.length;as++){var Da=gs[as],$a=Da-bi.length>0?Da-bi.length:0,io=Va.substr($a,bi.length)===bi?bi.length:0;$t.push({newText:"",span:{length:uo.length,start:Da-io}})}return $t}function Kr(Rr,Lr){var Xr=be.getCurrentSourceFile(Rr),nt=qr(Xr,Lr),vt=nt.firstLine,or=nt.lastLine;return vt===or&&Lr.pos!==Lr.end?xt(Rr,Lr,!0):ft(Rr,Lr,!0)}function dt(Rr,Lr){var Xr=be.getCurrentSourceFile(Rr),nt=[],vt=Lr.pos,or=Lr.end;vt===or&&(or+=e.isInsideJsxElement(Xr,vt)?2:1);for(var $t=vt;$t<=or;$t++){var Va=e.isInComment(Xr,$t);if(Va){switch(Va.kind){case 2:nt.push.apply(nt,ft(Rr,{end:Va.end,pos:Va.pos+1},!1));break;case 3:nt.push.apply(nt,xt(Rr,{end:Va.end,pos:Va.pos+1},!1))}$t=Va.end+1}}return nt}function Ur(Rr){var Lr=Rr.openingElement,Xr=Rr.closingElement,nt=Rr.parent;return!e.tagNamesAreEquivalent(Lr.tagName,Xr.tagName)||e.isJsxElement(nt)&&e.tagNamesAreEquivalent(Lr.tagName,nt.openingElement.tagName)&&Ur(nt)}function qt(Rr,Lr,Xr){var nt=be.getCurrentSourceFile(Rr),vt=e.formatting.getRangeOfEnclosingComment(nt,Lr);return vt&&(!Xr||vt.kind===3)?e.createTextSpanFromRange(vt):void 0}function Cr(Rr,Lr){Qe();var Xr=pn(Rr);en.throwIfCancellationRequested();var nt=Xr.text,vt=[];if(Lr.length>0&&!Go(Xr.fileName))for(var or=bi(),$t=void 0;$t=or.exec(nt);){en.throwIfCancellationRequested();var Va=3;e.Debug.assert($t.length===Lr.length+Va);var li=$t[1],zi=$t.index+li.length;if(e.isInComment(Xr,zi)){for(var Ma=void 0,di=0;di<Lr.length;di++)$t[di+Va]&&(Ma=Lr[di]);if(Ma===void 0)return e.Debug.fail();if(!Mi(nt.charCodeAt(zi+Ma.text.length))){var Yi=$t[2];vt.push({descriptor:Ma,message:Yi,position:zi})}}}return vt;function uo(io){return io.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function bi(){var io=/(?:\/\/+\s*)/.source,wi=/(?:\/\*+\s*)/.source,Ho=/(?:^(?:\s|\*)*)/.source,qi="("+Ho+"|"+io+"|"+wi+")",Qi="(?:"+e.map(Lr,function(Ni){return"("+uo(Ni.text)+")"}).join("|")+")",as=/(?:$|\*\/)/.source,gs=/(?:.*?)/.source,Da="("+Qi+gs+")",$a=qi+Da+as;return new RegExp($a,"gim")}function Mi(io){return io>=97&&io<=122||io>=65&&io<=90||io>=48&&io<=57}function Go(io){return e.stringContains(io,"/node_modules/")}}function Jt(Rr,Lr,Xr){return Qe(),e.Rename.getRenameInfo(Ce,pn(Rr),Lr,Xr)}function Ot(Rr,Lr,Xr,nt,vt,or){var $t=typeof Lr=="number"?[Lr,void 0]:[Lr.pos,Lr.end],Va=$t[0],li=$t[1];return{file:Rr,startPosition:Va,endPosition:li,program:Re(),host:I,formatContext:e.formatting.getFormatContext(nt,I),cancellationToken:en,preferences:Xr,triggerReason:vt,kind:or}}function ri(Rr,Lr,Xr){return{file:Rr,program:Re(),host:I,span:Lr,preferences:Xr,cancellationToken:en}}function Ya(Rr,Lr){return e.SmartSelectionRange.getSmartSelectionRange(Lr,be.getCurrentSourceFile(Rr))}function eo(Rr,Lr,Xr,nt,vt){Xr===void 0&&(Xr=e.emptyOptions),Qe();var or=pn(Rr);return e.refactor.getApplicableRefactors(Ot(or,Lr,Xr,e.emptyOptions,nt,vt))}function za(Rr,Lr,Xr,nt,vt,or){or===void 0&&(or=e.emptyOptions),Qe();var $t=pn(Rr);return e.refactor.getEditsForRefactor(Ot($t,Xr,or,Lr),nt,vt)}function ua(Rr,Lr){return Lr===0?{line:0,character:0}:we.toLineColumnOffset(Rr,Lr)}function Ar(Rr,Lr){Qe();var Xr=e.CallHierarchy.resolveCallHierarchyDeclaration(Ce,e.getTouchingPropertyName(pn(Rr),Lr));return Xr&&e.mapOneOrMany(Xr,function(nt){return e.CallHierarchy.createCallHierarchyItem(Ce,nt)})}function at(Rr,Lr){Qe();var Xr=pn(Rr),nt=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(Ce,Lr===0?Xr:e.getTouchingPropertyName(Xr,Lr)));return nt?e.CallHierarchy.getIncomingCalls(Ce,nt,en):[]}function Hr(Rr,Lr){Qe();var Xr=pn(Rr),nt=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(Ce,Lr===0?Xr:e.getTouchingPropertyName(Xr,Lr)));return nt?e.CallHierarchy.getOutgoingCalls(Ce,nt):[]}function Wt(Rr,Lr,Xr){Xr===void 0&&(Xr=e.emptyOptions),Qe();var nt=pn(Rr);return e.InlayHints.provideInlayHints(ri(nt,Lr,Xr))}var Zt={dispose:Un,cleanupSemanticCache:Ln,getSyntacticDiagnostics:fn,getSemanticDiagnostics:En,getSuggestionDiagnostics:i,getCompilerOptionsDiagnostics:In,getSyntacticClassifications:ar,getSemanticClassifications:Me,getEncodedSyntacticClassifications:Xn,getEncodedSemanticClassifications:Mn,getCompletionsAtPosition:X,getCompletionEntryDetails:rn,getCompletionEntrySymbol:$n,getSignatureHelpItems:hr,getQuickInfoAtPosition:Vn,getDefinitionAtPosition:xe,getDefinitionAndBoundSpan:Ze,getImplementationAtPosition:Le,getTypeDefinitionAtPosition:hn,getReferencesAtPosition:gn,findReferences:ze,getFileReferences:Tn,getOccurrencesAtPosition:$e,getDocumentHighlights:An,getNameOrDottedNameSpan:Qr,getBreakpointStatementAtPosition:Ke,getNavigateToItems:On,getRenameInfo:Jt,getSmartSelectionRange:Ya,findRenameLocations:Ue,getNavigationBarItems:jn,getNavigationTree:Zn,getOutliningSpans:yr,getTodoComments:Cr,getBraceMatchingAtPosition:Fe,getIndentationAtPosition:Bn,getFormattingEditsForRange:J,getFormattingEditsForDocument:Cn,getFormattingEditsAfterKeystroke:Gn,getDocCommentTemplateAtPosition:ir,isValidBraceCompletionAtPosition:gr,getJsxClosingTagAtPosition:Dr,getSpanOfEnclosingComment:qt,getCodeFixesAtPosition:cn,getCombinedCodeFix:Rn,applyCodeActionCommand:an,organizeImports:Ye,getEditsForFileRename:xn,getEmitOutput:ur,getNonBoundSourceFile:wr,getProgram:Re,getAutoImportProvider:He,getApplicableRefactors:eo,getEditsForRefactor:za,toLineColumnOffset:ua,getSourceMapper:function(){return we},clearSourceMapperCache:function(){return we.clearCache()},prepareCallHierarchy:Ar,provideCallHierarchyIncomingCalls:at,provideCallHierarchyOutgoingCalls:Hr,toggleLineComment:ft,toggleMultilineComment:xt,commentSelection:Kr,uncommentSelection:dt,provideInlayHints:Wt};switch(Se){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:g.forEach(function(Rr){return Zt[Rr]=function(){throw new Error("LanguageService Operation: "+Rr+" not allowed in LanguageServiceMode.PartialSemantic")}});break;case e.LanguageServiceMode.Syntactic:p.forEach(function(Rr){return Zt[Rr]=function(){throw new Error("LanguageService Operation: "+Rr+" not allowed in LanguageServiceMode.Syntactic")}});break;default:e.Debug.assertNever(Se)}return Zt}e.createLanguageService=f;function T(I){return I.nameTable||m(I),I.nameTable}e.getNameTable=T;function m(I){var Ae=I.nameTable=new e.Map;I.forEachChild(function Oe(te){if(e.isIdentifier(te)&&!e.isTagName(te)&&te.escapedText||e.isStringOrNumericLiteralLike(te)&&N(te)){var Se=e.getEscapedTextOfIdentifierOrLiteral(te);Ae.set(Se,Ae.get(Se)===void 0?te.pos:-1)}else if(e.isPrivateIdentifier(te)){var Se=te.escapedText;Ae.set(Se,Ae.get(Se)===void 0?te.pos:-1)}if(e.forEachChild(te,Oe),e.hasJSDocNodes(te))for(var be=0,Ce=te.jsDoc;be<Ce.length;be++){var Be=Ce[be];e.forEachChild(Be,Oe)}})}function N(I){return e.isDeclarationName(I)||I.parent.kind===275||z(I)||e.isLiteralComputedPropertyDeclarationName(I)}function P(I){var Ae=x(I);return Ae&&(e.isObjectLiteralExpression(Ae.parent)||e.isJsxAttributes(Ae.parent))?Ae:void 0}e.getContainingObjectLiteralElement=P;function x(I){switch(I.kind){case 10:case 14:case 8:if(I.parent.kind===160)return e.isObjectLiteralElement(I.parent.parent)?I.parent.parent:void 0;case 79:return e.isObjectLiteralElement(I.parent)&&(I.parent.parent.kind===203||I.parent.parent.kind===284)&&I.parent.name===I?I.parent:void 0}}function M(I,Ae){var Oe=P(I);if(Oe){var te=Ae.getContextualType(Oe.parent),Se=te&&me(Oe,Ae,te,!1);if(Se&&Se.length===1)return e.first(Se)}return Ae.getSymbolAtLocation(I)}function me(I,Ae,Oe,te){var Se=e.getNameFromPropertyName(I.name);if(!Se)return e.emptyArray;if(!Oe.isUnion()){var be=Oe.getProperty(Se);return be?[be]:e.emptyArray}var Ce=e.mapDefined(Oe.types,function(Be){return(e.isObjectLiteralExpression(I.parent)||e.isJsxAttributes(I.parent))&&Ae.isTypeInvalidDueToUnionDiscriminant(Be,I.parent)?void 0:Be.getProperty(Se)});if(te&&(Ce.length===0||Ce.length===Oe.types.length)){var be=Oe.getProperty(Se);if(be)return[be]}return Ce.length===0?e.mapDefined(Oe.types,function(Be){return Be.getProperty(Se)}):Ce}e.getPropertySymbolsFromContextualType=me;function z(I){return I&&I.parent&&I.parent.kind===205&&I.parent.argumentExpression===I}function K(I){return ud+e.directorySeparator+e.getDefaultLibFileName(I)}e.getDefaultLibFilePath=K,e.setObjectAllocator(ee())})(vn||(vn={}));var vn;(function(e){var o;(function(ue){function $(Y,W){if(Y.isDeclarationFile)return;var re=e.getTokenAtPosition(Y,W),ye=Y.getLineAndCharacterOfPosition(W).line;if(Y.getLineAndCharacterOfPosition(re.getStart(Y)).line>ye){var O=e.findPrecedingToken(re.pos,Y);if(!O||Y.getLineAndCharacterOfPosition(O.getEnd()).line!==ye)return;re=O}if(re.flags&8388608)return;return Z(re);function A(E,H){var L=E.decorators?e.skipTrivia(Y.text,E.decorators.end):E.getStart(Y);return e.createTextSpanFromBounds(L,(H||E).getEnd())}function D(E,H){return A(E,e.findNextToken(H,H.parent,Y))}function de(E,H){return E&&ye===Y.getLineAndCharacterOfPosition(E.getStart(Y)).line?Z(E):Z(H)}function _e(E){return e.createTextSpanFromBounds(e.skipTrivia(Y.text,E.pos),E.end)}function y(E){return Z(e.findPrecedingToken(E.pos,Y))}function V(E){return Z(e.findNextToken(E,E.parent,Y))}function Z(E){if(E){var H=E.parent;switch(E.kind){case 235:return se(E.declarationList.declarations[0]);case 252:case 165:case 164:return se(E);case 162:return R(E);case 254:case 167:case 166:case 170:case 171:case 169:case 211:case 212:return U(E);case 233:if(e.isFunctionBlock(E))return C(E);case 260:return d(E);case 290:return d(E.block);case 236:return A(E.expression);case 245:return A(E.getChildAt(0),E.expression);case 239:return D(E,E.expression);case 238:return Z(E.statement);case 251:return A(E.getChildAt(0));case 237:return D(E,E.expression);case 248:return Z(E.statement);case 244:case 243:return A(E.getChildAt(0),E.label);case 240:return g(E);case 241:return D(E,E.expression);case 242:return G(E);case 247:return D(E,E.expression);case 287:case 288:return Z(E.statements[0]);case 250:return d(E.tryBlock);case 249:return A(E,E.expression);case 269:return A(E,E.expression);case 263:return A(E,E.moduleReference);case 264:return A(E,E.moduleSpecifier);case 270:return A(E,E.moduleSpecifier);case 259:if(e.getModuleInstanceState(E)!==1)return;case 255:case 258:case 294:case 201:return A(E);case 246:return Z(E.statement);case 163:return _e(H.decorators);case 199:case 200:return p(E);case 256:case 257:return;case 26:case 1:return de(e.findPrecedingToken(E.pos,Y));case 27:return y(E);case 18:return T(E);case 19:return m(E);case 23:return N(E);case 20:return P(E);case 21:return x(E);case 58:return M(E);case 31:case 29:return me(E);case 115:return z(E);case 91:case 83:case 96:return V(E);case 158:return K(E);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(E))return f(E);if((E.kind===79||E.kind===223||E.kind===291||E.kind===292)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(H))return A(E);if(E.kind===219){var L=E,ee=L.left,k=L.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(ee))return f(ee);if(k.kind===63&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(E.parent))return A(E);if(k.kind===27)return Z(ee)}if(e.isExpressionNode(E))switch(H.kind){case 238:return y(E);case 163:return Z(E.parent);case 240:case 242:return A(E);case 219:if(E.parent.operatorToken.kind===27)return A(E);break;case 212:if(E.parent.body===E)return A(E);break}switch(E.parent.kind){case 291:if(E.parent.name===E&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(E.parent.parent))return Z(E.parent.initializer);break;case 209:if(E.parent.type===E)return V(E.parent.type);break;case 252:case 162:{var b=E.parent,ie=b.initializer,q=b.type;if(ie===E||q===E||e.isAssignmentOperator(E.kind))return y(E);break}case 219:{var ee=E.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(ee)&&E!==ee)return y(E);break}default:if(e.isFunctionLike(E.parent)&&E.parent.type===E)return y(E)}return Z(E.parent)}}function oe(I){return e.isVariableDeclarationList(I.parent)&&I.parent.declarations[0]===I?A(e.findPrecedingToken(I.pos,Y,I.parent),I):A(I)}function se(I){if(I.parent.parent.kind===241)return Z(I.parent.parent);var Ae=I.parent;if(e.isBindingPattern(I.name))return p(I.name);if(I.initializer||e.hasSyntacticModifier(I,1)||Ae.parent.kind===242)return oe(I);if(e.isVariableDeclarationList(I.parent)&&I.parent.declarations[0]!==I)return Z(e.findPrecedingToken(I.pos,Y,I.parent))}function w(I){return!!I.initializer||I.dotDotDotToken!==void 0||e.hasSyntacticModifier(I,12)}function R(I){if(e.isBindingPattern(I.name))return p(I.name);if(w(I))return A(I);var Ae=I.parent,Oe=Ae.parameters.indexOf(I);return e.Debug.assert(Oe!==-1),Oe!==0?R(Ae.parameters[Oe-1]):Z(Ae.body)}function ne(I){return e.hasSyntacticModifier(I,1)||I.parent.kind===255&&I.kind!==169}function U(I){if(I.body)return ne(I)?A(I):Z(I.body)}function C(I){var Ae=I.statements.length?I.statements[0]:I.getLastToken();return ne(I.parent)?de(I.parent,Ae):Z(Ae)}function d(I){switch(I.parent.kind){case 259:if(e.getModuleInstanceState(I.parent)!==1)return;case 239:case 237:case 241:return de(I.parent,I.statements[0]);case 240:case 242:return de(e.findPrecedingToken(I.pos,Y,I.parent),I.statements[0])}return Z(I.statements[0])}function G(I){if(I.initializer.kind===253){var Ae=I.initializer;if(Ae.declarations.length>0)return Z(Ae.declarations[0])}else return Z(I.initializer)}function g(I){if(I.initializer)return G(I);if(I.condition)return A(I.condition);if(I.incrementor)return A(I.incrementor)}function p(I){var Ae=e.forEach(I.elements,function(Oe){return Oe.kind!==225?Oe:void 0});return Ae?Z(Ae):I.parent.kind===201?A(I.parent):oe(I.parent)}function f(I){e.Debug.assert(I.kind!==200&&I.kind!==199);var Ae=I.kind===202?I.elements:I.properties,Oe=e.forEach(Ae,function(te){return te.kind!==225?te:void 0});return Oe?Z(Oe):A(I.parent.kind===219?I.parent:I)}function T(I){switch(I.parent.kind){case 258:var Ae=I.parent;return de(e.findPrecedingToken(I.pos,Y,I.parent),Ae.members.length?Ae.members[0]:Ae.getLastToken(Y));case 255:var Oe=I.parent;return de(e.findPrecedingToken(I.pos,Y,I.parent),Oe.members.length?Oe.members[0]:Oe.getLastToken(Y));case 261:return de(I.parent.parent,I.parent.clauses[0])}return Z(I.parent)}function m(I){switch(I.parent.kind){case 260:if(e.getModuleInstanceState(I.parent.parent)!==1)return;case 258:case 255:return A(I);case 233:if(e.isFunctionBlock(I.parent))return A(I);case 290:return Z(e.lastOrUndefined(I.parent.statements));case 261:var Ae=I.parent,Oe=e.lastOrUndefined(Ae.clauses);return Oe?Z(e.lastOrUndefined(Oe.statements)):void 0;case 199:var te=I.parent;return Z(e.lastOrUndefined(te.elements)||te);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(I.parent)){var Se=I.parent;return A(e.lastOrUndefined(Se.properties)||Se)}return Z(I.parent)}}function N(I){switch(I.parent.kind){case 200:var Ae=I.parent;return A(e.lastOrUndefined(Ae.elements)||Ae);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(I.parent)){var Oe=I.parent;return A(e.lastOrUndefined(Oe.elements)||Oe)}return Z(I.parent)}}function P(I){return I.parent.kind===238||I.parent.kind===206||I.parent.kind===207?y(I):I.parent.kind===210?V(I):Z(I.parent)}function x(I){switch(I.parent.kind){case 211:case 254:case 212:case 167:case 166:case 170:case 171:case 169:case 239:case 238:case 240:case 242:case 206:case 207:case 210:return y(I);default:return Z(I.parent)}}function M(I){return e.isFunctionLike(I.parent)||I.parent.kind===291||I.parent.kind===162?y(I):Z(I.parent)}function me(I){return I.parent.kind===209?V(I):Z(I.parent)}function z(I){return I.parent.kind===238?D(I,I.parent.expression):Z(I.parent)}function K(I){return I.parent.kind===242?V(I):Z(I.parent)}}}ue.spanInSourceFileAtLocation=$})(o=e.BreakpointResolver||(e.BreakpointResolver={}))})(vn||(vn={}));var vn;(function(e){function o(ue,$,Y){var W=[];Y=e.fixupCompilerOptions(Y,W);var re=e.isArray(ue)?ue:[ue],ye=e.transformNodes(void 0,void 0,e.factory,Y,re,$,!0);return ye.diagnostics=e.concatenate(ye.diagnostics,W),ye}e.transform=o})(vn||(vn={}));var Mp=function(){return this}(),vn;(function(e){function o(E,H){E&&E.log("*INTERNAL ERROR* - Exception in typescript services: "+H.message)}var ue=function(){function E(H){this.scriptSnapshotShim=H}return E.prototype.getText=function(H,L){return this.scriptSnapshotShim.getText(H,L)},E.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},E.prototype.getChangeRange=function(H){var L=H,ee=this.scriptSnapshotShim.getChangeRange(L.scriptSnapshotShim);if(ee===null)return null;var k=JSON.parse(ee);return e.createTextChangeRange(e.createTextSpan(k.span.start,k.span.length),k.newLength)},E.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},E}(),$=function(){function E(H){var L=this;this.shimHost=H,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(ee,k){var b=JSON.parse(L.shimHost.getModuleResolutionsForFile(k));return e.map(ee,function(ie){var q=e.getProperty(b,ie);return q?{resolvedFileName:q,extension:e.extensionFromPath(q),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(ee){return L.shimHost.directoryExists(ee)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(ee,k){var b=JSON.parse(L.shimHost.getTypeReferenceDirectiveResolutionsForFile(k));return e.map(ee,function(ie){return e.getProperty(b,ie)})})}return E.prototype.log=function(H){this.loggingEnabled&&this.shimHost.log(H)},E.prototype.trace=function(H){this.tracingEnabled&&this.shimHost.trace(H)},E.prototype.error=function(H){this.shimHost.error(H)},E.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},E.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},E.prototype.useCaseSensitiveFileNames=function(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1},E.prototype.getCompilationSettings=function(){var H=this.shimHost.getCompilationSettings();if(H===null||H==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var L=JSON.parse(H);return L.allowNonTsExtensions=!0,L},E.prototype.getScriptFileNames=function(){var H=this.shimHost.getScriptFileNames();return JSON.parse(H)},E.prototype.getScriptSnapshot=function(H){var L=this.shimHost.getScriptSnapshot(H);return L&&new ue(L)},E.prototype.getScriptKind=function(H){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(H):0},E.prototype.getScriptVersion=function(H){return this.shimHost.getScriptVersion(H)},E.prototype.getLocalizedDiagnosticMessages=function(){var H=this.shimHost.getLocalizedDiagnosticMessages();if(H===null||H==="")return null;try{return JSON.parse(H)}catch(L){return this.log(L.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},E.prototype.getCancellationToken=function(){var H=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(H)},E.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},E.prototype.getDirectories=function(H){return JSON.parse(this.shimHost.getDirectories(H))},E.prototype.getDefaultLibFileName=function(H){return this.shimHost.getDefaultLibFileName(JSON.stringify(H))},E.prototype.readDirectory=function(H,L,ee,k,b){var ie=e.getFileMatcherPatterns(H,ee,k,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(H,JSON.stringify(L),JSON.stringify(ie.basePaths),ie.excludePattern,ie.includeFilePattern,ie.includeDirectoryPattern,b))},E.prototype.readFile=function(H,L){return this.shimHost.readFile(H,L)},E.prototype.fileExists=function(H){return this.shimHost.fileExists(H)},E}();e.LanguageServiceShimHostAdapter=$;var Y=function(){function E(H){var L=this;this.shimHost=H,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=function(ee){return L.shimHost.directoryExists(ee)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(ee){return L.shimHost.realpath(ee)}:this.realpath=void 0}return E.prototype.readDirectory=function(H,L,ee,k,b){var ie=e.getFileMatcherPatterns(H,ee,k,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(H,JSON.stringify(L),JSON.stringify(ie.basePaths),ie.excludePattern,ie.includeFilePattern,ie.includeDirectoryPattern,b))},E.prototype.fileExists=function(H){return this.shimHost.fileExists(H)},E.prototype.readFile=function(H){return this.shimHost.readFile(H)},E.prototype.getDirectories=function(H){return JSON.parse(this.shimHost.getDirectories(H))},E}();e.CoreServicesShimHostAdapter=Y;function W(E,H,L,ee){var k;ee&&(E.log(H),k=e.timestamp());var b=L();if(ee){var ie=e.timestamp();if(E.log(H+" completed in "+(ie-k)+" msec"),e.isString(b)){var q=b;q.length>128&&(q=q.substring(0,128)+"..."),E.log(" result.length="+q.length+", result='"+JSON.stringify(q)+"'")}}return b}function re(E,H,L,ee){return ye(E,H,!0,L,ee)}function ye(E,H,L,ee,k){try{var b=W(E,H,ee,k);return L?JSON.stringify({result:b}):b}catch(ie){return ie instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(o(E,ie),ie.description=H,JSON.stringify({error:ie}))}}var O=function(){function E(H){this.factory=H,H.registerShim(this)}return E.prototype.dispose=function(H){this.factory.unregisterShim(this)},E}();function A(E,H){return E.map(function(L){return D(L,H)})}e.realizeDiagnostics=A;function D(E,H){return{message:e.flattenDiagnosticMessageText(E.messageText,H),start:E.start,length:E.length,category:e.diagnosticCategoryName(E),code:E.code,reportsUnnecessary:E.reportsUnnecessary,reportsDeprecated:E.reportsDeprecated}}var de=function(E){zu(H,E);function H(L,ee,k){var b=E.call(this,L)||this;return b.host=ee,b.languageService=k,b.logPerformance=!1,b.logger=b.host,b}return H.prototype.forwardJSONCall=function(L,ee){return re(this.logger,L,ee,this.logPerformance)},H.prototype.dispose=function(L){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,Mp&&Mp.CollectGarbage&&(Mp.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,E.prototype.dispose.call(this,L)},H.prototype.refresh=function(L){this.forwardJSONCall("refresh("+L+")",function(){return null})},H.prototype.cleanupSemanticCache=function(){var L=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return L.languageService.cleanupSemanticCache(),null})},H.prototype.realizeDiagnostics=function(L){var ee=e.getNewLineOrDefaultFromHost(this.host);return A(L,ee)},H.prototype.getSyntacticClassifications=function(L,ee,k){var b=this;return this.forwardJSONCall("getSyntacticClassifications('"+L+"', "+ee+", "+k+")",function(){return b.languageService.getSyntacticClassifications(L,e.createTextSpan(ee,k))})},H.prototype.getSemanticClassifications=function(L,ee,k){var b=this;return this.forwardJSONCall("getSemanticClassifications('"+L+"', "+ee+", "+k+")",function(){return b.languageService.getSemanticClassifications(L,e.createTextSpan(ee,k))})},H.prototype.getEncodedSyntacticClassifications=function(L,ee,k){var b=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+L+"', "+ee+", "+k+")",function(){return _e(b.languageService.getEncodedSyntacticClassifications(L,e.createTextSpan(ee,k)))})},H.prototype.getEncodedSemanticClassifications=function(L,ee,k){var b=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+L+"', "+ee+", "+k+")",function(){return _e(b.languageService.getEncodedSemanticClassifications(L,e.createTextSpan(ee,k)))})},H.prototype.getSyntacticDiagnostics=function(L){var ee=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+L+"')",function(){var k=ee.languageService.getSyntacticDiagnostics(L);return ee.realizeDiagnostics(k)})},H.prototype.getSemanticDiagnostics=function(L){var ee=this;return this.forwardJSONCall("getSemanticDiagnostics('"+L+"')",function(){var k=ee.languageService.getSemanticDiagnostics(L);return ee.realizeDiagnostics(k)})},H.prototype.getSuggestionDiagnostics=function(L){var ee=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+L+"')",function(){return ee.realizeDiagnostics(ee.languageService.getSuggestionDiagnostics(L))})},H.prototype.getCompilerOptionsDiagnostics=function(){var L=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var ee=L.languageService.getCompilerOptionsDiagnostics();return L.realizeDiagnostics(ee)})},H.prototype.getQuickInfoAtPosition=function(L,ee){var k=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+L+"', "+ee+")",function(){return k.languageService.getQuickInfoAtPosition(L,ee)})},H.prototype.getNameOrDottedNameSpan=function(L,ee,k){var b=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+L+"', "+ee+", "+k+")",function(){return b.languageService.getNameOrDottedNameSpan(L,ee,k)})},H.prototype.getBreakpointStatementAtPosition=function(L,ee){var k=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+L+"', "+ee+")",function(){return k.languageService.getBreakpointStatementAtPosition(L,ee)})},H.prototype.getSignatureHelpItems=function(L,ee,k){var b=this;return this.forwardJSONCall("getSignatureHelpItems('"+L+"', "+ee+")",function(){return b.languageService.getSignatureHelpItems(L,ee,k)})},H.prototype.getDefinitionAtPosition=function(L,ee){var k=this;return this.forwardJSONCall("getDefinitionAtPosition('"+L+"', "+ee+")",function(){return k.languageService.getDefinitionAtPosition(L,ee)})},H.prototype.getDefinitionAndBoundSpan=function(L,ee){var k=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+L+"', "+ee+")",function(){return k.languageService.getDefinitionAndBoundSpan(L,ee)})},H.prototype.getTypeDefinitionAtPosition=function(L,ee){var k=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+L+"', "+ee+")",function(){return k.languageService.getTypeDefinitionAtPosition(L,ee)})},H.prototype.getImplementationAtPosition=function(L,ee){var k=this;return this.forwardJSONCall("getImplementationAtPosition('"+L+"', "+ee+")",function(){return k.languageService.getImplementationAtPosition(L,ee)})},H.prototype.getRenameInfo=function(L,ee,k){var b=this;return this.forwardJSONCall("getRenameInfo('"+L+"', "+ee+")",function(){return b.languageService.getRenameInfo(L,ee,k)})},H.prototype.getSmartSelectionRange=function(L,ee){var k=this;return this.forwardJSONCall("getSmartSelectionRange('"+L+"', "+ee+")",function(){return k.languageService.getSmartSelectionRange(L,ee)})},H.prototype.findRenameLocations=function(L,ee,k,b,ie){var q=this;return this.forwardJSONCall("findRenameLocations('"+L+"', "+ee+", "+k+", "+b+", "+ie+")",function(){return q.languageService.findRenameLocations(L,ee,k,b,ie)})},H.prototype.getBraceMatchingAtPosition=function(L,ee){var k=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+L+"', "+ee+")",function(){return k.languageService.getBraceMatchingAtPosition(L,ee)})},H.prototype.isValidBraceCompletionAtPosition=function(L,ee,k){var b=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+L+"', "+ee+", "+k+")",function(){return b.languageService.isValidBraceCompletionAtPosition(L,ee,k)})},H.prototype.getSpanOfEnclosingComment=function(L,ee,k){var b=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+L+"', "+ee+")",function(){return b.languageService.getSpanOfEnclosingComment(L,ee,k)})},H.prototype.getIndentationAtPosition=function(L,ee,k){var b=this;return this.forwardJSONCall("getIndentationAtPosition('"+L+"', "+ee+")",function(){var ie=JSON.parse(k);return b.languageService.getIndentationAtPosition(L,ee,ie)})},H.prototype.getReferencesAtPosition=function(L,ee){var k=this;return this.forwardJSONCall("getReferencesAtPosition('"+L+"', "+ee+")",function(){return k.languageService.getReferencesAtPosition(L,ee)})},H.prototype.findReferences=function(L,ee){var k=this;return this.forwardJSONCall("findReferences('"+L+"', "+ee+")",function(){return k.languageService.findReferences(L,ee)})},H.prototype.getFileReferences=function(L){var ee=this;return this.forwardJSONCall("getFileReferences('"+L+")",function(){return ee.languageService.getFileReferences(L)})},H.prototype.getOccurrencesAtPosition=function(L,ee){var k=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+L+"', "+ee+")",function(){return k.languageService.getOccurrencesAtPosition(L,ee)})},H.prototype.getDocumentHighlights=function(L,ee,k){var b=this;return this.forwardJSONCall("getDocumentHighlights('"+L+"', "+ee+")",function(){var ie=b.languageService.getDocumentHighlights(L,ee,JSON.parse(k)),q=e.toFileNameLowerCase(e.normalizeSlashes(L));return e.filter(ie,function(oe){return e.toFileNameLowerCase(e.normalizeSlashes(oe.fileName))===q})})},H.prototype.getCompletionsAtPosition=function(L,ee,k){var b=this;return this.forwardJSONCall("getCompletionsAtPosition('"+L+"', "+ee+", "+k+")",function(){return b.languageService.getCompletionsAtPosition(L,ee,k)})},H.prototype.getCompletionEntryDetails=function(L,ee,k,b,ie,q,oe){var se=this;return this.forwardJSONCall("getCompletionEntryDetails('"+L+"', "+ee+", '"+k+"')",function(){var w=b===void 0?void 0:JSON.parse(b);return se.languageService.getCompletionEntryDetails(L,ee,k,w,ie,q,oe)})},H.prototype.getFormattingEditsForRange=function(L,ee,k,b){var ie=this;return this.forwardJSONCall("getFormattingEditsForRange('"+L+"', "+ee+", "+k+")",function(){var q=JSON.parse(b);return ie.languageService.getFormattingEditsForRange(L,ee,k,q)})},H.prototype.getFormattingEditsForDocument=function(L,ee){var k=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+L+"')",function(){var b=JSON.parse(ee);return k.languageService.getFormattingEditsForDocument(L,b)})},H.prototype.getFormattingEditsAfterKeystroke=function(L,ee,k,b){var ie=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+L+"', "+ee+", '"+k+"')",function(){var q=JSON.parse(b);return ie.languageService.getFormattingEditsAfterKeystroke(L,ee,k,q)})},H.prototype.getDocCommentTemplateAtPosition=function(L,ee,k){var b=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+L+"', "+ee+")",function(){return b.languageService.getDocCommentTemplateAtPosition(L,ee,k)})},H.prototype.getNavigateToItems=function(L,ee,k){var b=this;return this.forwardJSONCall("getNavigateToItems('"+L+"', "+ee+", "+k+")",function(){return b.languageService.getNavigateToItems(L,ee,k)})},H.prototype.getNavigationBarItems=function(L){var ee=this;return this.forwardJSONCall("getNavigationBarItems('"+L+"')",function(){return ee.languageService.getNavigationBarItems(L)})},H.prototype.getNavigationTree=function(L){var ee=this;return this.forwardJSONCall("getNavigationTree('"+L+"')",function(){return ee.languageService.getNavigationTree(L)})},H.prototype.getOutliningSpans=function(L){var ee=this;return this.forwardJSONCall("getOutliningSpans('"+L+"')",function(){return ee.languageService.getOutliningSpans(L)})},H.prototype.getTodoComments=function(L,ee){var k=this;return this.forwardJSONCall("getTodoComments('"+L+"')",function(){return k.languageService.getTodoComments(L,JSON.parse(ee))})},H.prototype.prepareCallHierarchy=function(L,ee){var k=this;return this.forwardJSONCall("prepareCallHierarchy('"+L+"', "+ee+")",function(){return k.languageService.prepareCallHierarchy(L,ee)})},H.prototype.provideCallHierarchyIncomingCalls=function(L,ee){var k=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('"+L+"', "+ee+")",function(){return k.languageService.provideCallHierarchyIncomingCalls(L,ee)})},H.prototype.provideCallHierarchyOutgoingCalls=function(L,ee){var k=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('"+L+"', "+ee+")",function(){return k.languageService.provideCallHierarchyOutgoingCalls(L,ee)})},H.prototype.provideInlayHints=function(L,ee,k){var b=this;return this.forwardJSONCall("provideInlayHints('"+L+"', '"+JSON.stringify(ee)+"', "+JSON.stringify(k)+")",function(){return b.languageService.provideInlayHints(L,ee,k)})},H.prototype.getEmitOutput=function(L){var ee=this;return this.forwardJSONCall("getEmitOutput('"+L+"')",function(){var k=ee.languageService.getEmitOutput(L),b=k.diagnostics,ie=fp(k,["diagnostics"]);return Mt(Mt({},ie),{diagnostics:ee.realizeDiagnostics(b)})})},H.prototype.getEmitOutputObject=function(L){var ee=this;return ye(this.logger,"getEmitOutput('"+L+"')",!1,function(){return ee.languageService.getEmitOutput(L)},this.logPerformance)},H.prototype.toggleLineComment=function(L,ee){var k=this;return this.forwardJSONCall("toggleLineComment('"+L+"', '"+JSON.stringify(ee)+"')",function(){return k.languageService.toggleLineComment(L,ee)})},H.prototype.toggleMultilineComment=function(L,ee){var k=this;return this.forwardJSONCall("toggleMultilineComment('"+L+"', '"+JSON.stringify(ee)+"')",function(){return k.languageService.toggleMultilineComment(L,ee)})},H.prototype.commentSelection=function(L,ee){var k=this;return this.forwardJSONCall("commentSelection('"+L+"', '"+JSON.stringify(ee)+"')",function(){return k.languageService.commentSelection(L,ee)})},H.prototype.uncommentSelection=function(L,ee){var k=this;return this.forwardJSONCall("uncommentSelection('"+L+"', '"+JSON.stringify(ee)+"')",function(){return k.languageService.uncommentSelection(L,ee)})},H}(O);function _e(E){return{spans:E.spans.join(","),endOfLineState:E.endOfLineState}}var y=function(E){zu(H,E);function H(L,ee){var k=E.call(this,L)||this;return k.logger=ee,k.logPerformance=!1,k.classifier=e.createClassifier(),k}return H.prototype.getEncodedLexicalClassifications=function(L,ee,k){var b=this;return k===void 0&&(k=!1),re(this.logger,"getEncodedLexicalClassifications",function(){return _e(b.classifier.getEncodedLexicalClassifications(L,ee,k))},this.logPerformance)},H.prototype.getClassificationsForLine=function(L,ee,k){k===void 0&&(k=!1);for(var b=this.classifier.getClassificationsForLine(L,ee,k),ie="",q=0,oe=b.entries;q<oe.length;q++){var se=oe[q];ie+=se.length+`
`,ie+=se.classification+`
`}return ie+=b.finalLexState,ie},H}(O),V=function(E){zu(H,E);function H(L,ee,k){var b=E.call(this,L)||this;return b.logger=ee,b.host=k,b.logPerformance=!1,b}return H.prototype.forwardJSONCall=function(L,ee){return re(this.logger,L,ee,this.logPerformance)},H.prototype.resolveModuleName=function(L,ee,k){var b=this;return this.forwardJSONCall("resolveModuleName('"+L+"')",function(){var ie=JSON.parse(k),q=e.resolveModuleName(ee,e.normalizeSlashes(L),ie,b.host),oe=q.resolvedModule?q.resolvedModule.resolvedFileName:void 0;return q.resolvedModule&&q.resolvedModule.extension!==".ts"&&q.resolvedModule.extension!==".tsx"&&q.resolvedModule.extension!==".d.ts"&&(oe=void 0),{resolvedFileName:oe,failedLookupLocations:q.failedLookupLocations}})},H.prototype.resolveTypeReferenceDirective=function(L,ee,k){var b=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+L+")",function(){var ie=JSON.parse(k),q=e.resolveTypeReferenceDirective(ee,e.normalizeSlashes(L),ie,b.host);return{resolvedFileName:q.resolvedTypeReferenceDirective?q.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:q.resolvedTypeReferenceDirective?q.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:q.failedLookupLocations}})},H.prototype.getPreProcessedFileInfo=function(L,ee){var k=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+L+"')",function(){var b=e.preProcessFile(e.getSnapshotText(ee),!0,!0);return{referencedFiles:k.convertFileReferences(b.referencedFiles),importedFiles:k.convertFileReferences(b.importedFiles),ambientExternalModules:b.ambientExternalModules,isLibFile:b.isLibFile,typeReferenceDirectives:k.convertFileReferences(b.typeReferenceDirectives),libReferenceDirectives:k.convertFileReferences(b.libReferenceDirectives)}})},H.prototype.getAutomaticTypeDirectiveNames=function(L){var ee=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+L+"')",function(){var k=JSON.parse(L);return e.getAutomaticTypeDirectiveNames(k,ee.host)})},H.prototype.convertFileReferences=function(L){if(L){for(var ee=[],k=0,b=L;k<b.length;k++){var ie=b[k];ee.push({path:e.normalizeSlashes(ie.fileName),position:ie.pos,length:ie.end-ie.pos})}return ee}},H.prototype.getTSConfigFileInfo=function(L,ee){var k=this;return this.forwardJSONCall("getTSConfigFileInfo('"+L+"')",function(){var b=e.parseJsonText(L,e.getSnapshotText(ee)),ie=e.normalizeSlashes(L),q=e.parseJsonSourceFileConfigFileContent(b,k.host,e.getDirectoryPath(ie),{},ie);return{options:q.options,typeAcquisition:q.typeAcquisition,files:q.fileNames,raw:q.raw,errors:A(Vr(Vr([],b.parseDiagnostics,!0),q.errors,!0),`\r
`)}})},H.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},H.prototype.discoverTypings=function(L){var ee=this,k=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var b=JSON.parse(L);return ee.safeList===void 0&&(ee.safeList=e.JsTyping.loadSafeList(ee.host,e.toPath(b.safeListPath,b.safeListPath,k))),e.JsTyping.discoverTypings(ee.host,function(ie){return ee.logger.log(ie)},b.fileNames,e.toPath(b.projectRootPath,b.projectRootPath,k),ee.safeList,b.packageNameToTypingLocation,b.typeAcquisition,b.unresolvedImports,b.typesRegistry)})},H}(O),Z=function(){function E(){this._shims=[]}return E.prototype.getServicesVersion=function(){return e.servicesVersion},E.prototype.createLanguageServiceShim=function(H){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(H.useCaseSensitiveFileNames&&H.useCaseSensitiveFileNames(),H.getCurrentDirectory()));var L=new $(H),ee=e.createLanguageService(L,this.documentRegistry,!1);return new de(this,H,ee)}catch(k){throw o(H,k),k}},E.prototype.createClassifierShim=function(H){try{return new y(this,H)}catch(L){throw o(H,L),L}},E.prototype.createCoreServicesShim=function(H){try{var L=new Y(H);return new V(this,H,L)}catch(ee){throw o(H,ee),ee}},E.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},E.prototype.registerShim=function(H){this._shims.push(H)},E.prototype.unregisterShim=function(H){for(var L=0;L<this._shims.length;L++)if(this._shims[L]===H){delete this._shims[L];return}throw new Error("Invalid operation")},E}();e.TypeScriptServicesFactory=Z})(vn||(vn={})),function(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,typeof globalThis=="undefined"&&(window.globalThis=window),delete Object.prototype.__magic__}catch(e){window.globalThis=window}}(),(typeof Ru=="undefined"||Ru.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=vn.TypeScriptServicesFactory,globalThis.toolsVersion=vn.versionMajorMinor),Wl.exports&&(Wl.exports=vn);var vn;(function(e){var o={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,o),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,o),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,o),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,o),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,o),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,o),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,o),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,o),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,o),e.createSuper=e.Debug.deprecate(e.factory.createSuper,o),e.createThis=e.Debug.deprecate(e.factory.createThis,o),e.createNull=e.Debug.deprecate(e.factory.createNull,o),e.createTrue=e.Debug.deprecate(e.factory.createTrue,o),e.createFalse=e.Debug.deprecate(e.factory.createFalse,o),e.createModifier=e.Debug.deprecate(e.factory.createModifier,o),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,o),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,o),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,o),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,o),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,o),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,o),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,o),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,o),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,o),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,o),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,o),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,o),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,o),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,o),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,o),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,o),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,o),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,o),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,o),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,o),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,o),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,o),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,o),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,o),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,o),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,o),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,o),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,o),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,o),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,o),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,o),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,o),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,o),e.createConstructorTypeNode=e.Debug.deprecate(function(ue,$,Y){return e.factory.createConstructorTypeNode(void 0,ue,$,Y)},o),e.updateConstructorTypeNode=e.Debug.deprecate(function(ue,$,Y,W){return e.factory.updateConstructorTypeNode(ue,ue.modifiers,$,Y,W)},o),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,o),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,o),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,o),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,o),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,o),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,o),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,o),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,o),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,o),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,o),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,o),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,o),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,o),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,o),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,o),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,o),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,o),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,o),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,o),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,o),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,o),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,o),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,o),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,o),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,o),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,o),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,o),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,o),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,o),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,o),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,o),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,o),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,o),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,o),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,o),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,o),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,o),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,o),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,o),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,o),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,o),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,o),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,o),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,o),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,o),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,o),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,o),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,o),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,o),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,o),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,o),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,o),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,o),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,o),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,o),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,o),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,o),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,o),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,o),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,o),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,o),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,o),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,o),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,o),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,o),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,o),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,o),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,o),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,o),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,o),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,o),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,o),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,o),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,o),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,o),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,o),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,o),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,o),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,o),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,o),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,o),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,o),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,o),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,o),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,o),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,o),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,o),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,o),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,o),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,o),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,o),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,o),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,o),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,o),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,o),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,o),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,o),e.createBlock=e.Debug.deprecate(e.factory.createBlock,o),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,o),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,o),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,o),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,o),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,o),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,o),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,o),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,o),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,o),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,o),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,o),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,o),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,o),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,o),e.createFor=e.Debug.deprecate(e.factory.createForStatement,o),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,o),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,o),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,o),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,o),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,o),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,o),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,o),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,o),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,o),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,o),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,o),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,o),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,o),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,o),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,o),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,o),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,o),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,o),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,o),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,o),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,o),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,o),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,o),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,o),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,o),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,o),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,o),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,o),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,o),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,o),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,o),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,o),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,o),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,o),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,o),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,o),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,o),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,o),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,o),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,o),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,o),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,o),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,o),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,o),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,o),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,o),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,o),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,o),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,o),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,o),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,o),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,o),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,o),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,o),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,o),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,o),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,o),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,o),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,o),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,o),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,o),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,o),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,o),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,o),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,o),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,o),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,o),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,o),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,o),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,o),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,o),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,o),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,o),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,o),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,o),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,o),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,o),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,o),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,o),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,o),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,o),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,o),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,o),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,o),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,o),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,o),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,o),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,o),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,o),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,o),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,o),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,o),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,o),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,o),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,o),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,o),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,o),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,o),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,o),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,o),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,o),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,o),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,o),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,o),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,o),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,o),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,o),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,o),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,o),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,o),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,o),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,o),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,o),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,o),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,o),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,o),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,o),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,o),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,o),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,o),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,o),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,o),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,o),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,o),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,o),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,o),e.createBundle=e.Debug.deprecate(e.factory.createBundle,o),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,o),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,o),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,o),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,o),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,o),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,o),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,o),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,o),e.createToken=e.Debug.deprecate(function($){return e.factory.createToken($)},o),e.createIdentifier=e.Debug.deprecate(function($){return e.factory.createIdentifier($,void 0,void 0)},o),e.createTempVariable=e.Debug.deprecate(function($){return e.factory.createTempVariable($,void 0)},o),e.getGeneratedNameForNode=e.Debug.deprecate(function($){return e.factory.getGeneratedNameForNode($,void 0)},o),e.createOptimisticUniqueName=e.Debug.deprecate(function($){return e.factory.createUniqueName($,16)},o),e.createFileLevelUniqueName=e.Debug.deprecate(function($){return e.factory.createUniqueName($,48)},o),e.createIndexSignature=e.Debug.deprecate(function($,Y,W,re){return e.factory.createIndexSignature($,Y,W,re)},o),e.createTypePredicateNode=e.Debug.deprecate(function($,Y){return e.factory.createTypePredicateNode(void 0,$,Y)},o),e.updateTypePredicateNode=e.Debug.deprecate(function($,Y,W){return e.factory.updateTypePredicateNode($,void 0,Y,W)},o),e.createLiteral=e.Debug.deprecate(function($){return typeof $=="number"?e.factory.createNumericLiteral($):typeof $=="object"&&"base10Value"in $?e.factory.createBigIntLiteral($):typeof $=="boolean"?$?e.factory.createTrue():e.factory.createFalse():typeof $=="string"?e.factory.createStringLiteral($,void 0):e.factory.createStringLiteralFromNode($)},{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate(function($,Y,W,re,ye){return e.factory.createMethodSignature(void 0,re,ye,$,Y,W)},o),e.updateMethodSignature=e.Debug.deprecate(function($,Y,W,re,ye,O){return e.factory.updateMethodSignature($,$.modifiers,ye,O,Y,W,re)},o),e.createTypeOperatorNode=e.Debug.deprecate(function($,Y){var W;return Y?W=$:(Y=$,W=139),e.factory.createTypeOperatorNode(W,Y)},o),e.createTaggedTemplate=e.Debug.deprecate(function($,Y,W){var re;return W?re=Y:W=Y,e.factory.createTaggedTemplateExpression($,re,W)},o),e.updateTaggedTemplate=e.Debug.deprecate(function($,Y,W,re){var ye;return re?ye=W:re=W,e.factory.updateTaggedTemplateExpression($,Y,ye,re)},o),e.updateBinary=e.Debug.deprecate(function($,Y,W,re){return re===void 0&&(re=$.operatorToken),typeof re=="number"&&(re=re===$.operatorToken.kind?$.operatorToken:e.factory.createToken(re)),e.factory.updateBinaryExpression($,Y,re,W)},o),e.createConditional=e.Debug.deprecate(function($,Y,W,re,ye){return arguments.length===5?e.factory.createConditionalExpression($,Y,W,re,ye):arguments.length===3?e.factory.createConditionalExpression($,e.factory.createToken(57),Y,e.factory.createToken(58),W):e.Debug.fail("Argument count mismatch")},o),e.createYield=e.Debug.deprecate(function($,Y){var W;return Y?W=$:Y=$,e.factory.createYieldExpression(W,Y)},o),e.createClassExpression=e.Debug.deprecate(function($,Y,W,re,ye){return e.factory.createClassExpression(void 0,$,Y,W,re,ye)},o),e.updateClassExpression=e.Debug.deprecate(function($,Y,W,re,ye,O){return e.factory.updateClassExpression($,void 0,Y,W,re,ye,O)},o),e.createPropertySignature=e.Debug.deprecate(function($,Y,W,re,ye){var O=e.factory.createPropertySignature($,Y,W,re);return O.initializer=ye,O},o),e.updatePropertySignature=e.Debug.deprecate(function($,Y,W,re,ye,O){var A=e.factory.updatePropertySignature($,Y,W,re,ye);return $.initializer!==O&&(A===$&&(A=e.factory.cloneNode($)),A.initializer=O),A},o),e.createExpressionWithTypeArguments=e.Debug.deprecate(function($,Y){return e.factory.createExpressionWithTypeArguments(Y,$)},o),e.updateExpressionWithTypeArguments=e.Debug.deprecate(function($,Y,W){return e.factory.updateExpressionWithTypeArguments($,W,Y)},o),e.createArrowFunction=e.Debug.deprecate(function($,Y,W,re,ye,O){return arguments.length===6?e.factory.createArrowFunction($,Y,W,re,ye,O):arguments.length===5?e.factory.createArrowFunction($,Y,W,re,void 0,ye):e.Debug.fail("Argument count mismatch")},o),e.updateArrowFunction=e.Debug.deprecate(function($,Y,W,re,ye,O,A){return arguments.length===7?e.factory.updateArrowFunction($,Y,W,re,ye,O,A):arguments.length===6?e.factory.updateArrowFunction($,Y,W,re,ye,$.equalsGreaterThanToken,O):e.Debug.fail("Argument count mismatch")},o),e.createVariableDeclaration=e.Debug.deprecate(function($,Y,W,re){return arguments.length===4?e.factory.createVariableDeclaration($,Y,W,re):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration($,void 0,Y,W):e.Debug.fail("Argument count mismatch")},o),e.updateVariableDeclaration=e.Debug.deprecate(function($,Y,W,re,ye){return arguments.length===5?e.factory.updateVariableDeclaration($,Y,W,re,ye):arguments.length===4?e.factory.updateVariableDeclaration($,Y,$.exclamationToken,W,re):e.Debug.fail("Argument count mismatch")},o),e.createImportClause=e.Debug.deprecate(function($,Y,W){return W===void 0&&(W=!1),e.factory.createImportClause(W,$,Y)},o),e.updateImportClause=e.Debug.deprecate(function($,Y,W,re){return e.factory.updateImportClause($,re,Y,W)},o),e.createExportDeclaration=e.Debug.deprecate(function($,Y,W,re,ye){return ye===void 0&&(ye=!1),e.factory.createExportDeclaration($,Y,ye,W,re)},o),e.updateExportDeclaration=e.Debug.deprecate(function($,Y,W,re,ye,O){return e.factory.updateExportDeclaration($,Y,W,O,re,ye)},o),e.createJSDocParamTag=e.Debug.deprecate(function($,Y,W,re){return e.factory.createJSDocParameterTag(void 0,$,Y,W,!1,re?e.factory.createNodeArray([e.factory.createJSDocText(re)]):void 0)},o),e.createComma=e.Debug.deprecate(function($,Y){return e.factory.createComma($,Y)},o),e.createLessThan=e.Debug.deprecate(function($,Y){return e.factory.createLessThan($,Y)},o),e.createAssignment=e.Debug.deprecate(function($,Y){return e.factory.createAssignment($,Y)},o),e.createStrictEquality=e.Debug.deprecate(function($,Y){return e.factory.createStrictEquality($,Y)},o),e.createStrictInequality=e.Debug.deprecate(function($,Y){return e.factory.createStrictInequality($,Y)},o),e.createAdd=e.Debug.deprecate(function($,Y){return e.factory.createAdd($,Y)},o),e.createSubtract=e.Debug.deprecate(function($,Y){return e.factory.createSubtract($,Y)},o),e.createLogicalAnd=e.Debug.deprecate(function($,Y){return e.factory.createLogicalAnd($,Y)},o),e.createLogicalOr=e.Debug.deprecate(function($,Y){return e.factory.createLogicalOr($,Y)},o),e.createPostfixIncrement=e.Debug.deprecate(function($){return e.factory.createPostfixIncrement($)},o),e.createLogicalNot=e.Debug.deprecate(function($){return e.factory.createLogicalNot($)},o),e.createNode=e.Debug.deprecate(function($,Y,W){return Y===void 0&&(Y=0),W===void 0&&(W=0),e.setTextRangePosEnd($===300?e.parseBaseNodeFactory.createBaseSourceFileNode($):$===79?e.parseBaseNodeFactory.createBaseIdentifierNode($):$===80?e.parseBaseNodeFactory.createBasePrivateIdentifierNode($):e.isNodeKind($)?e.parseBaseNodeFactory.createBaseNode($):e.parseBaseNodeFactory.createBaseTokenNode($),Y,W)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function($){var Y=e.factory.cloneNode($);return e.setTextRange(Y,$),e.setParent(Y,$.parent),Y},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate(function($){return $.kind===209},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function($){return e.isMemberName($)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(vn||(vn={}));var Gg=vn.createClassifier,Fc=vn.createLanguageService,Fd=vn.displayPartsToString,Rl=vn.EndOfLineState,qu=vn.flattenDiagnosticMessageText,Gd=vn.IndentStyle,My=vn.ScriptKind,iL=vn.ScriptTarget,K1=vn.TokenClass},671:function(Wl){var Ys=Wl.exports={},Ql,ud;function Ru(){throw new Error("setTimeout has not been defined")}function Vr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ql=setTimeout:Ql=Ru}catch(Rl){Ql=Ru}try{typeof clearTimeout=="function"?ud=clearTimeout:ud=Vr}catch(Rl){ud=Vr}})();function Mt(Rl){if(Ql===setTimeout)return setTimeout(Rl,0);if((Ql===Ru||!Ql)&&setTimeout)return Ql=setTimeout,setTimeout(Rl,0);try{return Ql(Rl,0)}catch(qu){try{return Ql.call(null,Rl,0)}catch(Gd){return Ql.call(this,Rl,0)}}}function Fg(Rl){if(ud===clearTimeout)return clearTimeout(Rl);if((ud===Vr||!ud)&&clearTimeout)return ud=clearTimeout,clearTimeout(Rl);try{return ud(Rl)}catch(qu){try{return ud.call(null,Rl)}catch(Gd){return ud.call(this,Rl)}}}var Ou=[],fp=!1,zu,Mp=-1;function vn(){!fp||!zu||(fp=!1,zu.length?Ou=zu.concat(Ou):Mp=-1,Ou.length&&Gg())}function Gg(){if(!fp){var Rl=Mt(vn);fp=!0;for(var qu=Ou.length;qu;){for(zu=Ou,Ou=[];++Mp<qu;)zu&&zu[Mp].run();Mp=-1,qu=Ou.length}zu=null,fp=!1,Fg(Rl)}}Ys.nextTick=function(Rl){var qu=new Array(arguments.length-1);if(arguments.length>1)for(var Gd=1;Gd<arguments.length;Gd++)qu[Gd-1]=arguments[Gd];Ou.push(new Fc(Rl,qu)),Ou.length===1&&!fp&&Mt(Gg)};function Fc(Rl,qu){this.fun=Rl,this.array=qu}Fc.prototype.run=function(){this.fun.apply(null,this.array)},Ys.title="browser",Ys.browser=!0,Ys.env={},Ys.argv=[],Ys.version="",Ys.versions={};function Fd(){}Ys.on=Fd,Ys.addListener=Fd,Ys.once=Fd,Ys.off=Fd,Ys.removeListener=Fd,Ys.removeAllListeners=Fd,Ys.emit=Fd,Ys.prependListener=Fd,Ys.prependOnceListener=Fd,Ys.listeners=function(Rl){return[]},Ys.binding=function(Rl){throw new Error("process.binding is not supported")},Ys.cwd=function(){return"/"},Ys.chdir=function(Rl){throw new Error("process.chdir is not supported")},Ys.umask=function(){return 0}}},J1={};function wd(Wl){var Ys=J1[Wl];if(Ys!==void 0)return Ys.exports;var Ql=J1[Wl]={id:Wl,loaded:!1,exports:{}};return aL[Wl](Ql,Ql.exports,wd),Ql.loaded=!0,Ql.exports}(function(){wd.d=function(Wl,Ys){for(var Ql in Ys)wd.o(Ys,Ql)&&!wd.o(Wl,Ql)&&Object.defineProperty(Wl,Ql,{enumerable:!0,get:Ys[Ql]})}})(),function(){wd.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(Wl){if(typeof window=="object")return window}}()}(),function(){wd.hmd=function(Wl){return Wl=Object.create(Wl),Wl.children||(Wl.children=[]),Object.defineProperty(Wl,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+Wl.id)}}),Wl}}(),function(){wd.o=function(Wl,Ys){return Object.prototype.hasOwnProperty.call(Wl,Ys)}}();var _M={};(function(){"use strict";class Wl{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(h){setTimeout(()=>{throw h.stack?new Error(h.message+`
`+h.stack):h},0)}}emit(h){this.listeners.forEach(ae=>{ae(h)})}onUnexpectedError(h){this.unexpectedErrorHandler(h),this.emit(h)}onUnexpectedExternalError(h){this.unexpectedErrorHandler(h)}}const Ys=new Wl;function Ql(c){Mt(c)||Ys.onUnexpectedError(c)}function ud(c){Mt(c)||Ys.onUnexpectedExternalError(c)}function Ru(c){if(c instanceof Error){let{name:h,message:ae}=c;const je=c.stacktrace||c.stack;return{$isError:!0,name:h,message:ae,stack:je}}return c}const Vr="Canceled";function Mt(c){return c instanceof Error&&c.name===Vr&&c.message===Vr}function Fg(){const c=new Error(Vr);return c.name=c.message,c}function Ou(c){return c?new Error(`Illegal argument: ${c}`):new Error("Illegal argument")}function fp(c){return c?new Error(`Illegal state: ${c}`):new Error("Illegal state")}class zu extends null{constructor(h){super("NotSupported"),h&&(this.message=h)}}function Mp(c){const h=this;let ae=!1,je;return function(){return ae||(ae=!0,je=c.apply(h,arguments)),je}}var vn;(function(c){function h(Ca){return Ca&&typeof Ca=="object"&&typeof Ca[Symbol.iterator]=="function"}c.is=h;const ae=Object.freeze([]);function je(){return ae}c.empty=je;function*_n(Ca){yield Ca}c.single=_n;function Nn(Ca){return Ca||ae}c.from=Nn;function er(Ca){return!Ca||Ca[Symbol.iterator]().next().done===!0}c.isEmpty=er;function pr(Ca){return Ca[Symbol.iterator]().next().value}c.first=pr;function kr(Ca,Qt){for(const ni of Ca)if(Qt(ni))return!0;return!1}c.some=kr;function Er(Ca,Qt){for(const ni of Ca)if(Qt(ni))return ni}c.find=Er;function*gt(Ca,Qt){for(const ni of Ca)Qt(ni)&&(yield ni)}c.filter=gt;function*rt(Ca,Qt){let ni=0;for(const Wa of Ca)yield Qt(Wa,ni++)}c.map=rt;function*ma(...Ca){for(const Qt of Ca)for(const ni of Qt)yield ni}c.concat=ma;function*Ai(Ca){for(const Qt of Ca)for(const ni of Qt)yield ni}c.concatNested=Ai;function Ba(Ca,Qt,ni){let Wa=ni;for(const qa of Ca)Wa=Qt(Wa,qa);return Wa}c.reduce=Ba;function*_i(Ca,Qt,ni=Ca.length){for(Qt<0&&(Qt+=Ca.length),ni<0?ni+=Ca.length:ni>Ca.length&&(ni=Ca.length);Qt<ni;Qt++)yield Ca[Qt]}c.slice=_i;function No(Ca,Qt=Number.POSITIVE_INFINITY){const ni=[];if(Qt===0)return[ni,Ca];const Wa=Ca[Symbol.iterator]();for(let qa=0;qa<Qt;qa++){const so=Wa.next();if(so.done)return[ni,c.empty()];ni.push(so.value)}return[ni,{[Symbol.iterator](){return Wa}}]}c.consume=No;function to(Ca,Qt,ni=(Wa,qa)=>Wa===qa){const Wa=Ca[Symbol.iterator](),qa=Qt[Symbol.iterator]();for(;;){const so=Wa.next(),Vi=qa.next();if(so.done!==Vi.done)return!1;if(so.done)return!0;if(!ni(so.value,Vi.value))return!1}}c.equals=to})(vn||(vn={}));const Gg=!1;let Fc=null;function Fd(c){Fc=c}if(Gg){const c="__is_disposable_tracked__";Fd(new class{trackDisposable(h){const ae=new Error("Potentially leaked disposable").stack;setTimeout(()=>{h[c]||console.log(ae)},3e3)}setParent(h,ae){if(h&&h!==W.None)try{h[c]=!0}catch(je){}}markAsDisposed(h){if(h&&h!==W.None)try{h[c]=!0}catch(ae){}}markAsSingleton(h){}})}function Rl(c){return Fc==null||Fc.trackDisposable(c),c}function qu(c){Fc==null||Fc.markAsDisposed(c)}function Gd(c,h){Fc==null||Fc.setParent(c,h)}function My(c,h){if(Fc)for(const ae of c)Fc.setParent(ae,h)}function iL(c){return Fc==null||Fc.markAsSingleton(c),c}class K1 extends Error{constructor(h){super(`Encountered errors while disposing of store. Errors: [${h.join(", ")}]`),this.errors=h}}function e(c){return typeof c.dispose=="function"&&c.dispose.length===0}function o(c){if(vn.is(c)){let h=[];for(const ae of c)if(ae)try{ae.dispose()}catch(je){h.push(je)}if(h.length===1)throw h[0];if(h.length>1)throw new K1(h);return Array.isArray(c)?[]:c}else if(c)return c.dispose(),c}function ue(...c){const h=$(()=>o(c));return My(c,h),h}function $(c){const h=Rl({dispose:Mp(()=>{qu(h),c()})});return h}class Y{constructor(){this._toDispose=new Set,this._isDisposed=!1,Rl(this)}dispose(){this._isDisposed||(qu(this),this._isDisposed=!0,this.clear())}clear(){try{o(this._toDispose.values())}finally{this._toDispose.clear()}}add(h){if(!h)return h;if(h===this)throw new Error("Cannot register a disposable on itself!");return Gd(h,this),this._isDisposed?Y.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(h),h}}Y.DISABLE_DISPOSED_WARNING=!1;class W{constructor(){this._store=new Y,Rl(this),Gd(this._store,this)}dispose(){qu(this),this._store.dispose()}_register(h){if(h===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(h)}}W.None=Object.freeze({dispose(){}});class re{constructor(){this._isDisposed=!1,Rl(this)}get value(){return this._isDisposed?void 0:this._value}set value(h){var ae;this._isDisposed||h===this._value||((ae=this._value)===null||ae===void 0||ae.dispose(),h&&Gd(h,this),this._value=h)}clear(){this.value=void 0}dispose(){var h;this._isDisposed=!0,qu(this),(h=this._value)===null||h===void 0||h.dispose(),this._value=void 0}clearAndLeak(){const h=this._value;return this._value=void 0,h&&Gd(h,null),h}}class ye{constructor(h){this.object=h}dispose(){}}class O{constructor(h){this.element=h,this.next=O.Undefined,this.prev=O.Undefined}}O.Undefined=new O(void 0);class A{constructor(){this._first=O.Undefined,this._last=O.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===O.Undefined}clear(){let h=this._first;for(;h!==O.Undefined;){const ae=h.next;h.prev=O.Undefined,h.next=O.Undefined,h=ae}this._first=O.Undefined,this._last=O.Undefined,this._size=0}unshift(h){return this._insert(h,!1)}push(h){return this._insert(h,!0)}_insert(h,ae){const je=new O(h);if(this._first===O.Undefined)this._first=je,this._last=je;else if(ae){const Nn=this._last;this._last=je,je.prev=Nn,Nn.next=je}else{const Nn=this._first;this._first=je,je.next=Nn,Nn.prev=je}this._size+=1;let _n=!1;return()=>{_n||(_n=!0,this._remove(je))}}shift(){if(this._first!==O.Undefined){const h=this._first.element;return this._remove(this._first),h}}pop(){if(this._last!==O.Undefined){const h=this._last.element;return this._remove(this._last),h}}_remove(h){if(h.prev!==O.Undefined&&h.next!==O.Undefined){const ae=h.prev;ae.next=h.next,h.next.prev=ae}else h.prev===O.Undefined&&h.next===O.Undefined?(this._first=O.Undefined,this._last=O.Undefined):h.next===O.Undefined?(this._last=this._last.prev,this._last.next=O.Undefined):h.prev===O.Undefined&&(this._first=this._first.next,this._first.prev=O.Undefined);this._size-=1}*[Symbol.iterator](){let h=this._first;for(;h!==O.Undefined;)yield h.element,h=h.next}}var D=wd(671),de;const _e="en";let y=!1,V=!1,Z=!1,E=!1,H=!1,L=!1,ee=!1,k,b=null,ie=null,q;const oe=typeof self=="object"?self:typeof wd.g=="object"?wd.g:{};let se;typeof oe.vscode!="undefined"&&typeof oe.vscode.process!="undefined"?se=oe.vscode.process:typeof D!="undefined"&&(se=D);const w=typeof((de=se==null?void 0:se.versions)===null||de===void 0?void 0:de.electron)=="string"&&se.type==="renderer";if(typeof navigator=="object"&&!w)q=navigator.userAgent,y=q.indexOf("Windows")>=0,V=q.indexOf("Macintosh")>=0,ee=(q.indexOf("Macintosh")>=0||q.indexOf("iPad")>=0||q.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Z=q.indexOf("Linux")>=0,L=!0,k=navigator.language,b=k;else if(typeof se=="object"){y=se.platform==="win32",V=se.platform==="darwin",Z=se.platform==="linux",E=Z&&!!se.env.SNAP&&!!se.env.SNAP_REVISION,k=_e,b=_e;const c=se.env.VSCODE_NLS_CONFIG;if(c)try{const h=JSON.parse(c),ae=h.availableLanguages["*"];k=h.locale,b=ae||_e,ie=h._translationsConfigFile}catch(h){}H=!0}else console.error("Unable to resolve platform.");let R=0;V?R=1:y?R=3:Z&&(R=2);const ne=y,U=V,C=null,d=null,G=null,g=null,p=null,f=function(){if(oe.setImmediate)return oe.setImmediate.bind(oe);if(typeof oe.postMessage=="function"&&!oe.importScripts){let ae=[];oe.addEventListener("message",_n=>{if(_n.data&&_n.data.vscodeSetImmediateId)for(let Nn=0,er=ae.length;Nn<er;Nn++){const pr=ae[Nn];if(pr.id===_n.data.vscodeSetImmediateId){ae.splice(Nn,1),pr.callback();return}}});let je=0;return _n=>{const Nn=++je;ae.push({id:Nn,callback:_n}),oe.postMessage({vscodeSetImmediateId:Nn},"*")}}if(typeof(se==null?void 0:se.nextTick)=="function")return se.nextTick.bind(se);const h=Promise.resolve();return ae=>h.then(ae)}(),T=null;let m=!0,N=!1;function P(){if(!N){N=!0;const c=new Uint8Array(2);c[0]=1,c[1]=2,m=new Uint16Array(c.buffer)[0]===513}return m}const x=oe.performance&&typeof oe.performance.now=="function";class M{constructor(h){this._highResolution=x&&h,this._startTime=this._now(),this._stopTime=-1}static create(h=!0){return new M(h)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?oe.performance.now():Date.now()}}var me;(function(c){c.None=()=>W.None;function h(Ca){return(Qt,ni=null,Wa)=>{let qa=!1,so;return so=Ca(Vi=>{if(!qa)return so?so.dispose():qa=!0,Qt.call(ni,Vi)},null,Wa),qa&&so.dispose(),so}}c.once=h;function ae(Ca,Qt){return kr((ni,Wa=null,qa)=>Ca(so=>ni.call(Wa,Qt(so)),null,qa))}c.map=ae;function je(Ca,Qt){return kr((ni,Wa=null,qa)=>Ca(so=>{Qt(so),ni.call(Wa,so)},null,qa))}c.forEach=je;function _n(Ca,Qt){return kr((ni,Wa=null,qa)=>Ca(so=>Qt(so)&&ni.call(Wa,so),null,qa))}c.filter=_n;function Nn(Ca){return Ca}c.signal=Nn;function er(...Ca){return(Qt,ni=null,Wa)=>ue(...Ca.map(qa=>qa(so=>Qt.call(ni,so),null,Wa)))}c.any=er;function pr(Ca,Qt,ni){let Wa=ni;return ae(Ca,qa=>(Wa=Qt(Wa,qa),Wa))}c.reduce=pr;function kr(Ca){let Qt;const ni=new Ae({onFirstListenerAdd(){Qt=Ca(ni.fire,ni)},onLastListenerRemove(){Qt.dispose()}});return ni.event}function Er(Ca,Qt,ni=100,Wa=!1,qa){let so,Vi,ki,Gs=0;const Ds=new Ae({leakWarningThreshold:qa,onFirstListenerAdd(){so=Ca(ko=>{Gs++,Vi=Qt(Vi,ko),Wa&&!ki&&(Ds.fire(Vi),Vi=void 0),clearTimeout(ki),ki=setTimeout(()=>{const Pt=Vi;Vi=void 0,ki=void 0,(!Wa||Gs>1)&&Ds.fire(Pt),Gs=0},ni)})},onLastListenerRemove(){so.dispose()}});return Ds.event}c.debounce=Er;function gt(Ca,Qt=(ni,Wa)=>ni===Wa){let ni=!0,Wa;return _n(Ca,qa=>{const so=ni||!Qt(qa,Wa);return ni=!1,Wa=qa,so})}c.latch=gt;function rt(Ca,Qt){return[c.filter(Ca,Qt),c.filter(Ca,ni=>!Qt(ni))]}c.split=rt;function ma(Ca,Qt=!1,ni=[]){let Wa=ni.slice(),qa=Ca(ki=>{Wa?Wa.push(ki):Vi.fire(ki)});const so=()=>{Wa&&Wa.forEach(ki=>Vi.fire(ki)),Wa=null},Vi=new Ae({onFirstListenerAdd(){qa||(qa=Ca(ki=>Vi.fire(ki)))},onFirstListenerDidAdd(){Wa&&(Qt?setTimeout(so):so())},onLastListenerRemove(){qa&&qa.dispose(),qa=null}});return Vi.event}c.buffer=ma;class Ai{constructor(Qt){this.event=Qt}map(Qt){return new Ai(ae(this.event,Qt))}forEach(Qt){return new Ai(je(this.event,Qt))}filter(Qt){return new Ai(_n(this.event,Qt))}reduce(Qt,ni){return new Ai(pr(this.event,Qt,ni))}latch(){return new Ai(gt(this.event))}debounce(Qt,ni=100,Wa=!1,qa){return new Ai(Er(this.event,Qt,ni,Wa,qa))}on(Qt,ni,Wa){return this.event(Qt,ni,Wa)}once(Qt,ni,Wa){return h(this.event)(Qt,ni,Wa)}}function Ba(Ca){return new Ai(Ca)}c.chain=Ba;function _i(Ca,Qt,ni=Wa=>Wa){const Wa=(...ki)=>Vi.fire(ni(...ki)),qa=()=>Ca.on(Qt,Wa),so=()=>Ca.removeListener(Qt,Wa),Vi=new Ae({onFirstListenerAdd:qa,onLastListenerRemove:so});return Vi.event}c.fromNodeEventEmitter=_i;function No(Ca,Qt,ni=Wa=>Wa){const Wa=(...ki)=>Vi.fire(ni(...ki)),qa=()=>Ca.addEventListener(Qt,Wa),so=()=>Ca.removeEventListener(Qt,Wa),Vi=new Ae({onFirstListenerAdd:qa,onLastListenerRemove:so});return Vi.event}c.fromDOMEventEmitter=No;function to(Ca){return new Promise(Qt=>h(Ca)(Qt))}c.toPromise=to})(me||(me={}));class z{constructor(h){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${h}_${z._idPool++}`}start(h){this._stopWatch=new M(!0),this._listenerCount=h}stop(){if(this._stopWatch){const h=this._stopWatch.elapsed();this._elapsedOverall+=h,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${h.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}z._idPool=0;let K=-1;class I{constructor(h,ae=Math.random().toString(18).slice(2,5)){this.customThreshold=h,this.name=ae,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(h){let ae=K;if(typeof this.customThreshold=="number"&&(ae=this.customThreshold),ae<=0||h<ae)return;this._stacks||(this._stacks=new Map);const je=new Error().stack.split(`
`).slice(3).join(`
`),_n=this._stacks.get(je)||0;if(this._stacks.set(je,_n+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=ae*.5;let Nn,er=0;for(const[pr,kr]of this._stacks)(!Nn||er<kr)&&(Nn=pr,er=kr);console.warn(`[${this.name}] potential listener LEAK detected, having ${h} listeners already. MOST frequent listener (${er}):`),console.warn(Nn)}return()=>{const Nn=this._stacks.get(je)||0;this._stacks.set(je,Nn-1)}}}class Ae{constructor(h){var ae;this._disposed=!1,this._options=h,this._leakageMon=K>0?new I(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((ae=this._options)===null||ae===void 0)&&ae._profName?new z(this._options._profName):void 0}get event(){return this._event||(this._event=(h,ae,je)=>{var _n;this._listeners||(this._listeners=new A);const Nn=this._listeners.isEmpty();Nn&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const er=this._listeners.push(ae?[h,ae]:h);Nn&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,h,ae);const pr=(_n=this._leakageMon)===null||_n===void 0?void 0:_n.check(this._listeners.size),kr=$(()=>{pr&&pr(),this._disposed||(er(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return je instanceof Y?je.add(kr):Array.isArray(je)&&je.push(kr),kr}),this._event}fire(h){var ae,je;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new A);for(let _n of this._listeners)this._deliveryQueue.push([_n,h]);for((ae=this._perfMon)===null||ae===void 0||ae.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[_n,Nn]=this._deliveryQueue.shift();try{typeof _n=="function"?_n.call(void 0,Nn):_n[0].call(_n[1],Nn)}catch(er){Ql(er)}}(je=this._perfMon)===null||je===void 0||je.stop()}}dispose(){var h,ae,je,_n,Nn;this._disposed||(this._disposed=!0,(h=this._listeners)===null||h===void 0||h.clear(),(ae=this._deliveryQueue)===null||ae===void 0||ae.clear(),(_n=(je=this._options)===null||je===void 0?void 0:je.onLastListenerRemove)===null||_n===void 0||_n.call(je),(Nn=this._leakageMon)===null||Nn===void 0||Nn.dispose())}}class Oe extends null{constructor(h){super(h),this._isPaused=0,this._eventQueue=new LinkedList,this._mergeFn=h==null?void 0:h.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const h=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(h))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(h){this._listeners&&(this._isPaused!==0?this._eventQueue.push(h):super.fire(h))}}class te extends null{constructor(h){var ae;super(h),this._delay=(ae=h.delay)!==null&&ae!==void 0?ae:100}fire(h){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(h)}}class Se{constructor(){this.buffers=[]}wrapEvent(h){return(ae,je,_n)=>h(Nn=>{const er=this.buffers[this.buffers.length-1];er?er.push(()=>ae.call(je,Nn)):ae.call(je,Nn)},void 0,_n)}bufferEvents(h){const ae=[];this.buffers.push(ae);const je=h();return this.buffers.pop(),ae.forEach(_n=>_n()),je}}class be{constructor(){this.listening=!1,this.inputEvent=me.None,this.inputEventListener=Disposable.None,this.emitter=new Ae({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(h){this.inputEvent=h,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=h(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}function Ce(c){return Array.isArray(c)}function Be(c){return typeof c=="string"}function De(c){return typeof c=="object"&&c!==null&&!Array.isArray(c)&&!(c instanceof RegExp)&&!(c instanceof Date)}function en(c){return typeof c=="number"&&!isNaN(c)}function fe(c){return c===!0||c===!1}function Ne(c){return typeof c=="undefined"}function qe(c){return!pe(c)}function pe(c){return Ne(c)||c===null}function we(c,h){if(!c)throw new Error(h?`Unexpected type, expected '${h}'`:"Unexpected type")}function pn(c){if(pe(c))throw new Error("Assertion Failed: argument is undefined or null");return c}function Qe(c){return typeof c=="function"}function Re(c,h){const ae=Math.min(c.length,h.length);for(let je=0;je<ae;je++)He(c[je],h[je])}function He(c,h){if(Be(h)){if(typeof c!==h)throw new Error(`argument does not match constraint: typeof ${h}`)}else if(Qe(h)){try{if(c instanceof h)return}catch(ae){}if(!pe(c)&&c.constructor===h||h.length===1&&h.call(void 0,c)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function Ln(c){let h=[],ae=Object.getPrototypeOf(c);for(;Object.prototype!==ae;)h=h.concat(Object.getOwnPropertyNames(ae)),ae=Object.getPrototypeOf(ae);return h}function Un(c){const h=[];for(const ae of Ln(c))typeof c[ae]=="function"&&h.push(ae);return h}function fn(c,h){const ae=_n=>function(){const Nn=Array.prototype.slice.call(arguments,0);return h(_n,Nn)};let je={};for(const _n of c)je[_n]=ae(_n);return je}function En(c){return c===null?void 0:c}function i(c,h="Unreachable"){throw new Error(h)}function In(c){return!c||typeof c!="string"?!0:c.trim().length===0}const X=/{(\d+)}/g;function rn(c,...h){return h.length===0?c:c.replace(X,function(ae,je){const _n=parseInt(je,10);return isNaN(_n)||_n<0||_n>=h.length?ae:h[_n]})}function $n(c){return c.replace(/[<>&]/g,function(h){switch(h){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return h}})}function Vn(c){return c.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function le(c,h=" "){const ae=Pe(c,h);return xe(ae,h)}function Pe(c,h){if(!c||!h)return c;const ae=h.length;if(ae===0||c.length===0)return c;let je=0;for(;c.indexOf(h,je)===je;)je=je+ae;return c.substring(je)}function xe(c,h){if(!c||!h)return c;const ae=h.length,je=c.length;if(ae===0||je===0)return c;let _n=je,Nn=-1;for(;Nn=c.lastIndexOf(h,_n-1),!(Nn===-1||Nn+ae!==_n);){if(Nn===0)return"";_n=Nn}return c.substring(0,_n)}function Ze(c){return c.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function hn(c){return c.replace(/\*/g,"")}function Le(c,h,ae={}){if(!c)throw new Error("Cannot create regex from empty string");h||(c=Vn(c)),ae.wholeWord&&(/\B/.test(c.charAt(0))||(c="\\b"+c),/\B/.test(c.charAt(c.length-1))||(c=c+"\\b"));let je="";return ae.global&&(je+="g"),ae.matchCase||(je+="i"),ae.multiline&&(je+="m"),ae.unicode&&(je+="u"),new RegExp(c,je)}function $e(c){return c.source==="^"||c.source==="^$"||c.source==="$"||c.source==="^\\s*$"?!1:!!(c.exec("")&&c.lastIndex===0)}function An(c){return(c.global?"g":"")+(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")}function Ue(c){return c.split(/\r\n|\r|\n/)}function gn(c){for(let h=0,ae=c.length;h<ae;h++){const je=c.charCodeAt(h);if(je!==32&&je!==9)return h}return-1}function Wn(c,h=0,ae=c.length){for(let je=h;je<ae;je++){const _n=c.charCodeAt(je);if(_n!==32&&_n!==9)return c.substring(h,je)}return c.substring(h,ae)}function ze(c,h=c.length-1){for(let ae=h;ae>=0;ae--){const je=c.charCodeAt(ae);if(je!==32&&je!==9)return ae}return-1}function Tn(c,h){return c<h?-1:c>h?1:0}function On(c,h,ae=0,je=c.length,_n=0,Nn=h.length){for(;ae<je&&_n<Nn;ae++,_n++){let kr=c.charCodeAt(ae),Er=h.charCodeAt(_n);if(kr<Er)return-1;if(kr>Er)return 1}const er=je-ae,pr=Nn-_n;return er<pr?-1:er>pr?1:0}function ur(c,h){return hr(c,h,0,c.length,0,h.length)}function hr(c,h,ae=0,je=c.length,_n=0,Nn=h.length){for(;ae<je&&_n<Nn;ae++,_n++){let kr=c.charCodeAt(ae),Er=h.charCodeAt(_n);if(kr===Er)continue;if(kr>=128||Er>=128)return On(c.toLowerCase(),h.toLowerCase(),ae,je,_n,Nn);wr(kr)&&(kr-=32),wr(Er)&&(Er-=32);const gt=kr-Er;if(gt!==0)return gt}const er=je-ae,pr=Nn-_n;return er<pr?-1:er>pr?1:0}function wr(c){return c>=97&&c<=122}function Qr(c){return c>=65&&c<=90}function Ke(c,h){return c.length===h.length&&hr(c,h)===0}function jn(c,h){const ae=h.length;return h.length>c.length?!1:hr(c,h,0,ae)===0}function Zn(c,h){let ae,je=Math.min(c.length,h.length);for(ae=0;ae<je;ae++)if(c.charCodeAt(ae)!==h.charCodeAt(ae))return ae;return je}function Me(c,h){let ae,je=Math.min(c.length,h.length);const _n=c.length-1,Nn=h.length-1;for(ae=0;ae<je;ae++)if(c.charCodeAt(_n-ae)!==h.charCodeAt(Nn-ae))return ae;return je}function Mn(c){return 55296<=c&&c<=56319}function ar(c){return 56320<=c&&c<=57343}function Xn(c,h){return(c-55296<<10)+(h-56320)+65536}function yr(c,h,ae){const je=c.charCodeAt(ae);if(Mn(je)&&ae+1<h){const _n=c.charCodeAt(ae+1);if(ar(_n))return Xn(je,_n)}return je}function cr(c,h){const ae=c.charCodeAt(h-1);if(ar(ae)&&h>1){const je=c.charCodeAt(h-2);if(Mn(je))return Xn(je,ae)}return ae}function Fe(c,h){const ae=Ur.getInstance(),je=h,_n=c.length,Nn=yr(c,_n,h);h+=Nn>=65536?2:1;let er=ae.getGraphemeBreakType(Nn);for(;h<_n;){const pr=yr(c,_n,h),kr=ae.getGraphemeBreakType(pr);if(dt(er,kr))break;h+=pr>=65536?2:1,er=kr}return h-je}function Bn(c,h){const ae=Ur.getInstance(),je=h,_n=cr(c,h);h-=_n>=65536?2:1;let Nn=ae.getGraphemeBreakType(_n);for(;h>0;){const er=cr(c,h),pr=ae.getGraphemeBreakType(er);if(dt(pr,Nn))break;h-=er>=65536?2:1,Nn=pr}return je-h}const J=/(?:[\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 Cn(c){return J.test(c)}const Gn=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function cn(c){return Gn.test(c)}const Rn=/^[\t\n\r\x20-\x7E]*$/;function Ye(c){return Rn.test(c)}const xn=/[\u2028\u2029]/;function an(c){return xn.test(c)}function zn(c){for(let h=0,ae=c.length;h<ae;h++)if(ir(c.charCodeAt(h)))return!0;return!1}function ir(c){return c=+c,c>=11904&&c<=55215||c>=63744&&c<=64255||c>=65281&&c<=65374}function gr(c){return c>=127462&&c<=127487||c===8986||c===8987||c===9200||c===9203||c>=9728&&c<=10175||c===11088||c===11093||c>=127744&&c<=128591||c>=128640&&c<=128764||c>=128992&&c<=129003||c>=129280&&c<=129535||c>=129648&&c<=129750}const Dr="\uFEFF";function qr(c){return!!(c&&c.length>0&&c.charCodeAt(0)===65279)}function ft(c,h=!1){return c?(h&&(c=c.replace(/\\./g,"")),c.toLowerCase()!==c):!1}function xt(c){return c=c%(2*26),c<26?String.fromCharCode(97+c):String.fromCharCode(65+c-26)}function Kr(c){return Ur.getInstance().getGraphemeBreakType(c)}function dt(c,h){return c===0?h!==5&&h!==7:c===2&&h===3?!1:c===4||c===2||c===3||h===4||h===2||h===3?!0:!(c===8&&(h===8||h===9||h===11||h===12)||(c===11||c===9)&&(h===9||h===10)||(c===12||c===10)&&h===10||h===5||h===13||h===7||c===1||c===13&&h===14||c===6&&h===6)}class Ur{constructor(){this._data=qt()}static getInstance(){return Ur._INSTANCE||(Ur._INSTANCE=new Ur),Ur._INSTANCE}getGraphemeBreakType(h){if(h<32)return h===10?3:h===13?2:4;if(h<127)return 0;const ae=this._data,je=ae.length/3;let _n=1;for(;_n<=je;)if(h<ae[3*_n])_n=2*_n;else if(h>ae[3*_n+1])_n=2*_n+1;else return ae[3*_n+2];return 0}}Ur._INSTANCE=null;function qt(){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]")}function Cr(c,h){if(c===0)return 0;const ae=Jt(c,h);if(ae!==void 0)return ae;const je=cr(h,c);return c-=Ot(je),c}function Jt(c,h){let ae=cr(h,c);for(c-=Ot(ae);ri(ae)||ae===65039||ae===8419;){if(c===0)return;ae=cr(h,c),c-=Ot(ae)}if(gr(ae)){if(c>=0){const je=cr(h,c);je===8205&&(c-=Ot(je))}return c}}function Ot(c){return c>=65536?2:1}function ri(c){return 127995<=c&&c<=127999}const Ya="$initialize";let eo=!1;function za(c){isWeb&&(eo||(eo=!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(c.message))}class ua{constructor(h,ae,je,_n){this.vsWorker=h,this.req=ae,this.method=je,this.args=_n,this.type=0}}class Ar{constructor(h,ae,je,_n){this.vsWorker=h,this.seq=ae,this.res=je,this.err=_n,this.type=1}}class at{constructor(h,ae,je,_n){this.vsWorker=h,this.req=ae,this.eventName=je,this.arg=_n,this.type=2}}class Hr{constructor(h,ae,je){this.vsWorker=h,this.req=ae,this.event=je,this.type=3}}class Wt{constructor(h,ae){this.vsWorker=h,this.req=ae,this.type=4}}class Zt{constructor(h){this._workerId=-1,this._handler=h,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(h){this._workerId=h}sendMessage(h,ae){const je=String(++this._lastSentReq);return new Promise((_n,Nn)=>{this._pendingReplies[je]={resolve:_n,reject:Nn},this._send(new ua(this._workerId,je,h,ae))})}listen(h,ae){let je=null;const _n=new Ae({onFirstListenerAdd:()=>{je=String(++this._lastSentReq),this._pendingEmitters.set(je,_n),this._send(new at(this._workerId,je,h,ae))},onLastListenerRemove:()=>{this._pendingEmitters.delete(je),this._send(new Wt(this._workerId,je)),je=null}});return _n.event}handleMessage(h){!h||!h.vsWorker||this._workerId!==-1&&h.vsWorker!==this._workerId||this._handleMessage(h)}_handleMessage(h){switch(h.type){case 1:return this._handleReplyMessage(h);case 0:return this._handleRequestMessage(h);case 2:return this._handleSubscribeEventMessage(h);case 3:return this._handleEventMessage(h);case 4:return this._handleUnsubscribeEventMessage(h)}}_handleReplyMessage(h){if(!this._pendingReplies[h.seq]){console.warn("Got reply to unknown seq");return}let ae=this._pendingReplies[h.seq];if(delete this._pendingReplies[h.seq],h.err){let je=h.err;h.err.$isError&&(je=new Error,je.name=h.err.name,je.message=h.err.message,je.stack=h.err.stack),ae.reject(je);return}ae.resolve(h.res)}_handleRequestMessage(h){let ae=h.req;this._handler.handleMessage(h.method,h.args).then(_n=>{this._send(new Ar(this._workerId,ae,_n,void 0))},_n=>{_n.detail instanceof Error&&(_n.detail=Ru(_n.detail)),this._send(new Ar(this._workerId,ae,void 0,Ru(_n)))})}_handleSubscribeEventMessage(h){const ae=h.req,je=this._handler.handleEvent(h.eventName,h.arg)(_n=>{this._send(new Hr(this._workerId,ae,_n))});this._pendingEvents.set(ae,je)}_handleEventMessage(h){if(!this._pendingEmitters.has(h.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(h.req).fire(h.event)}_handleUnsubscribeEventMessage(h){if(!this._pendingEvents.has(h.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(h.req).dispose(),this._pendingEvents.delete(h.req)}_send(h){let ae=[];if(h.type===0)for(let je=0;je<h.args.length;je++)h.args[je]instanceof ArrayBuffer&&ae.push(h.args[je]);else h.type===1&&h.res instanceof ArrayBuffer&&ae.push(h.res);this._handler.sendMessage(h,ae)}}class Rr extends null{constructor(h,ae,je){super();let _n=null;this._worker=this._register(h.create("vs/base/common/worker/simpleWorker",Er=>{this._protocol.handleMessage(Er)},Er=>{_n&&_n(Er)})),this._protocol=new Zt({sendMessage:(Er,gt)=>{this._worker.postMessage(Er,gt)},handleMessage:(Er,gt)=>{if(typeof je[Er]!="function")return Promise.reject(new Error("Missing method "+Er+" on main thread host."));try{return Promise.resolve(je[Er].apply(je,gt))}catch(rt){return Promise.reject(rt)}},handleEvent:(Er,gt)=>{if(Xr(Er)){const rt=je[Er].call(je,gt);if(typeof rt!="function")throw new Error(`Missing dynamic event ${Er} on main thread host.`);return rt}if(Lr(Er)){const rt=je[Er];if(typeof rt!="function")throw new Error(`Missing event ${Er} on main thread host.`);return rt}throw new Error(`Malformed event name ${Er}`)}}),this._protocol.setWorkerId(this._worker.getId());let Nn=null;typeof globals.require!="undefined"&&typeof globals.require.getConfig=="function"?Nn=globals.require.getConfig():typeof globals.requirejs!="undefined"&&(Nn=globals.requirejs.s.contexts._.config);const er=types.getAllMethodNames(je);this._onModuleLoaded=this._protocol.sendMessage(Ya,[this._worker.getId(),JSON.parse(JSON.stringify(Nn)),ae,er]);const pr=(Er,gt)=>this._request(Er,gt),kr=(Er,gt)=>this._protocol.listen(Er,gt);this._lazyProxy=new Promise((Er,gt)=>{_n=gt,this._onModuleLoaded.then(rt=>{Er(nt(rt,pr,kr))},rt=>{gt(rt),this._onError("Worker failed to load "+ae,rt)})})}getProxyObject(){return this._lazyProxy}_request(h,ae){return new Promise((je,_n)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(h,ae).then(je,_n)},_n)})}_onError(h,ae){console.error(h),console.info(ae)}}function Lr(c){return c[0]==="o"&&c[1]==="n"&&Qr(c.charCodeAt(2))}function Xr(c){return/^onDynamic/.test(c)&&Qr(c.charCodeAt(9))}function nt(c,h,ae){const je=er=>function(){const pr=Array.prototype.slice.call(arguments,0);return h(er,pr)},_n=er=>function(pr){return ae(er,pr)};let Nn={};for(const er of c){if(Xr(er)){Nn[er]=_n(er);continue}if(Lr(er)){Nn[er]=ae(er,void 0);continue}Nn[er]=je(er)}return Nn}class vt{constructor(h,ae){this._requestHandlerFactory=ae,this._requestHandler=null,this._protocol=new Zt({sendMessage:(je,_n)=>{h(je,_n)},handleMessage:(je,_n)=>this._handleMessage(je,_n),handleEvent:(je,_n)=>this._handleEvent(je,_n)})}onmessage(h){this._protocol.handleMessage(h)}_handleMessage(h,ae){if(h===Ya)return this.initialize(ae[0],ae[1],ae[2],ae[3]);if(!this._requestHandler||typeof this._requestHandler[h]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+h));try{return Promise.resolve(this._requestHandler[h].apply(this._requestHandler,ae))}catch(je){return Promise.reject(je)}}_handleEvent(h,ae){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Xr(h)){const je=this._requestHandler[h].call(this._requestHandler,ae);if(typeof je!="function")throw new Error(`Missing dynamic event ${h} on request handler.`);return je}if(Lr(h)){const je=this._requestHandler[h];if(typeof je!="function")throw new Error(`Missing event ${h} on request handler.`);return je}throw new Error(`Malformed event name ${h}`)}initialize(h,ae,je,_n){this._protocol.setWorkerId(h);const pr=nt(_n,(kr,Er)=>this._protocol.sendMessage(kr,Er),(kr,Er)=>this._protocol.listen(kr,Er));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(pr),Promise.resolve(Un(this._requestHandler))):(ae&&(typeof ae.baseUrl!="undefined"&&delete ae.baseUrl,typeof ae.paths!="undefined"&&typeof ae.paths.vs!="undefined"&&delete ae.paths.vs,typeof ae.trustedTypesPolicy!==void 0&&delete ae.trustedTypesPolicy,ae.catchError=!0,oe.require.config(ae)),new Promise((kr,Er)=>{const gt=oe.require;gt([je],rt=>{if(this._requestHandler=rt.create(pr),!this._requestHandler){Er(new Error("No RequestHandler!"));return}kr(Un(this._requestHandler))},Er)}))}}function or(c){return new vt(c,null)}class $t{constructor(h,ae,je,_n){this.originalStart=h,this.originalLength=ae,this.modifiedStart=je,this.modifiedLength=_n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Va(c){return li(c,0)}function li(c,h){switch(typeof c){case"object":return c===null?zi(349,h):Array.isArray(c)?Yi(c,h):uo(c,h);case"string":return di(c,h);case"boolean":return Ma(c,h);case"number":return zi(c,h);case"undefined":return zi(937,h);default:return zi(617,h)}}function zi(c,h){return(h<<5)-h+c|0}function Ma(c,h){return zi(c?433:863,h)}function di(c,h){h=zi(149417,h);for(let ae=0,je=c.length;ae<je;ae++)h=zi(c.charCodeAt(ae),h);return h}function Yi(c,h){return h=zi(104579,h),c.reduce((ae,je)=>li(je,ae),h)}function uo(c,h){return h=zi(181387,h),Object.keys(c).sort().reduce((ae,je)=>(ae=di(je,ae),li(c[je],ae)),h)}function bi(c,h,ae=32){const je=ae-h,_n=~((1<<je)-1);return(c<<h|(_n&c)>>>je)>>>0}function Mi(c,h=0,ae=c.byteLength,je=0){for(let _n=0;_n<ae;_n++)c[h+_n]=je}function Go(c,h,ae="0"){for(;c.length<h;)c=ae+c;return c}function io(c,h=32){return c instanceof ArrayBuffer?Array.from(new Uint8Array(c)).map(ae=>ae.toString(16).padStart(2,"0")).join(""):Go((c>>>0).toString(16),h/4)}class wi{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(h){const ae=h.length;if(ae===0)return;const je=this._buff;let _n=this._buffLen,Nn=this._leftoverHighSurrogate,er,pr;for(Nn!==0?(er=Nn,pr=-1,Nn=0):(er=h.charCodeAt(0),pr=0);;){let kr=er;if(Mn(er))if(pr+1<ae){const Er=h.charCodeAt(pr+1);ar(Er)?(pr++,kr=Xn(er,Er)):kr=65533}else{Nn=er;break}else ar(er)&&(kr=65533);if(_n=this._push(je,_n,kr),pr++,pr<ae)er=h.charCodeAt(pr);else break}this._buffLen=_n,this._leftoverHighSurrogate=Nn}_push(h,ae,je){return je<128?h[ae++]=je:je<2048?(h[ae++]=192|(je&1984)>>>6,h[ae++]=128|(je&63)>>>0):je<65536?(h[ae++]=224|(je&61440)>>>12,h[ae++]=128|(je&4032)>>>6,h[ae++]=128|(je&63)>>>0):(h[ae++]=240|(je&1835008)>>>18,h[ae++]=128|(je&258048)>>>12,h[ae++]=128|(je&4032)>>>6,h[ae++]=128|(je&63)>>>0),ae>=64&&(this._step(),ae-=64,this._totalLen+=64,h[0]=h[64],h[1]=h[65],h[2]=h[66]),ae}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),io(this._h0)+io(this._h1)+io(this._h2)+io(this._h3)+io(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Mi(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Mi(this._buff));const h=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(h/4294967296),!1),this._buffDV.setUint32(60,h%4294967296,!1),this._step()}_step(){const h=wi._bigBlock32,ae=this._buffDV;for(let rt=0;rt<64;rt+=4)h.setUint32(rt,ae.getUint32(rt,!1),!1);for(let rt=64;rt<320;rt+=4)h.setUint32(rt,bi(h.getUint32(rt-12,!1)^h.getUint32(rt-32,!1)^h.getUint32(rt-56,!1)^h.getUint32(rt-64,!1),1),!1);let je=this._h0,_n=this._h1,Nn=this._h2,er=this._h3,pr=this._h4,kr,Er,gt;for(let rt=0;rt<80;rt++)rt<20?(kr=_n&Nn|~_n&er,Er=1518500249):rt<40?(kr=_n^Nn^er,Er=1859775393):rt<60?(kr=_n&Nn|_n&er|Nn&er,Er=2400959708):(kr=_n^Nn^er,Er=3395469782),gt=bi(je,5)+kr+pr+Er+h.getUint32(rt*4,!1)&4294967295,pr=er,er=Nn,Nn=bi(_n,30),_n=je,je=gt;this._h0=this._h0+je&4294967295,this._h1=this._h1+_n&4294967295,this._h2=this._h2+Nn&4294967295,this._h3=this._h3+er&4294967295,this._h4=this._h4+pr&4294967295}}wi._bigBlock32=new DataView(new ArrayBuffer(320));class Ho{constructor(h){this.source=h}getElements(){const h=this.source,ae=new Int32Array(h.length);for(let je=0,_n=h.length;je<_n;je++)ae[je]=h.charCodeAt(je);return ae}}function qi(c,h,ae){return new Da(new Ho(c),new Ho(h)).ComputeDiff(ae).changes}class Qi{static Assert(h,ae){if(!h)throw new Error(ae)}}class as{static Copy(h,ae,je,_n,Nn){for(let er=0;er<Nn;er++)je[_n+er]=h[ae+er]}static Copy2(h,ae,je,_n,Nn){for(let er=0;er<Nn;er++)je[_n+er]=h[ae+er]}}class gs{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new $t(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(h,ae){this.m_originalStart=Math.min(this.m_originalStart,h),this.m_modifiedStart=Math.min(this.m_modifiedStart,ae),this.m_originalCount++}AddModifiedElement(h,ae){this.m_originalStart=Math.min(this.m_originalStart,h),this.m_modifiedStart=Math.min(this.m_modifiedStart,ae),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Da{constructor(h,ae,je=null){this.ContinueProcessingPredicate=je,this._originalSequence=h,this._modifiedSequence=ae;const[_n,Nn,er]=Da._getElements(h),[pr,kr,Er]=Da._getElements(ae);this._hasStrings=er&&Er,this._originalStringElements=_n,this._originalElementsOrHash=Nn,this._modifiedStringElements=pr,this._modifiedElementsOrHash=kr,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(h){return h.length>0&&typeof h[0]=="string"}static _getElements(h){const ae=h.getElements();if(Da._isStringArray(ae)){const je=new Int32Array(ae.length);for(let _n=0,Nn=ae.length;_n<Nn;_n++)je[_n]=di(ae[_n],0);return[ae,je,!0]}return ae instanceof Int32Array?[[],ae,!1]:[[],new Int32Array(ae),!1]}ElementsAreEqual(h,ae){return this._originalElementsOrHash[h]!==this._modifiedElementsOrHash[ae]?!1:this._hasStrings?this._originalStringElements[h]===this._modifiedStringElements[ae]:!0}ElementsAreStrictEqual(h,ae){if(!this.ElementsAreEqual(h,ae))return!1;const je=Da._getStrictElement(this._originalSequence,h),_n=Da._getStrictElement(this._modifiedSequence,ae);return je===_n}static _getStrictElement(h,ae){return typeof h.getStrictElement=="function"?h.getStrictElement(ae):null}OriginalElementsAreEqual(h,ae){return this._originalElementsOrHash[h]!==this._originalElementsOrHash[ae]?!1:this._hasStrings?this._originalStringElements[h]===this._originalStringElements[ae]:!0}ModifiedElementsAreEqual(h,ae){return this._modifiedElementsOrHash[h]!==this._modifiedElementsOrHash[ae]?!1:this._hasStrings?this._modifiedStringElements[h]===this._modifiedStringElements[ae]:!0}ComputeDiff(h){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,h)}_ComputeDiff(h,ae,je,_n,Nn){const er=[!1];let pr=this.ComputeDiffRecursive(h,ae,je,_n,er);return Nn&&(pr=this.PrettifyChanges(pr)),{quitEarly:er[0],changes:pr}}ComputeDiffRecursive(h,ae,je,_n,Nn){for(Nn[0]=!1;h<=ae&&je<=_n&&this.ElementsAreEqual(h,je);)h++,je++;for(;ae>=h&&_n>=je&&this.ElementsAreEqual(ae,_n);)ae--,_n--;if(h>ae||je>_n){let rt;return je<=_n?(Qi.Assert(h===ae+1,"originalStart should only be one more than originalEnd"),rt=[new $t(h,0,je,_n-je+1)]):h<=ae?(Qi.Assert(je===_n+1,"modifiedStart should only be one more than modifiedEnd"),rt=[new $t(h,ae-h+1,je,0)]):(Qi.Assert(h===ae+1,"originalStart should only be one more than originalEnd"),Qi.Assert(je===_n+1,"modifiedStart should only be one more than modifiedEnd"),rt=[]),rt}const er=[0],pr=[0],kr=this.ComputeRecursionPoint(h,ae,je,_n,er,pr,Nn),Er=er[0],gt=pr[0];if(kr!==null)return kr;if(!Nn[0]){const rt=this.ComputeDiffRecursive(h,Er,je,gt,Nn);let ma=[];return Nn[0]?ma=[new $t(Er+1,ae-(Er+1)+1,gt+1,_n-(gt+1)+1)]:ma=this.ComputeDiffRecursive(Er+1,ae,gt+1,_n,Nn),this.ConcatenateChanges(rt,ma)}return[new $t(h,ae-h+1,je,_n-je+1)]}WALKTRACE(h,ae,je,_n,Nn,er,pr,kr,Er,gt,rt,ma,Ai,Ba,_i,No,to,Ca){let Qt=null,ni=null,Wa=new gs,qa=ae,so=je,Vi=Ai[0]-No[0]-_n,ki=-1073741824,Gs=this.m_forwardHistory.length-1;do{const Ds=Vi+h;Ds===qa||Ds<so&&Er[Ds-1]<Er[Ds+1]?(rt=Er[Ds+1],Ba=rt-Vi-_n,rt<ki&&Wa.MarkNextChange(),ki=rt,Wa.AddModifiedElement(rt+1,Ba),Vi=Ds+1-h):(rt=Er[Ds-1]+1,Ba=rt-Vi-_n,rt<ki&&Wa.MarkNextChange(),ki=rt-1,Wa.AddOriginalElement(rt,Ba+1),Vi=Ds-1-h),Gs>=0&&(Er=this.m_forwardHistory[Gs],h=Er[0],qa=1,so=Er.length-1)}while(--Gs>=-1);if(Qt=Wa.getReverseChanges(),Ca[0]){let Ds=Ai[0]+1,ko=No[0]+1;if(Qt!==null&&Qt.length>0){const Pt=Qt[Qt.length-1];Ds=Math.max(Ds,Pt.getOriginalEnd()),ko=Math.max(ko,Pt.getModifiedEnd())}ni=[new $t(Ds,ma-Ds+1,ko,_i-ko+1)]}else{Wa=new gs,qa=er,so=pr,Vi=Ai[0]-No[0]-kr,ki=1073741824,Gs=to?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const Ds=Vi+Nn;Ds===qa||Ds<so&&gt[Ds-1]>=gt[Ds+1]?(rt=gt[Ds+1]-1,Ba=rt-Vi-kr,rt>ki&&Wa.MarkNextChange(),ki=rt+1,Wa.AddOriginalElement(rt+1,Ba+1),Vi=Ds+1-Nn):(rt=gt[Ds-1],Ba=rt-Vi-kr,rt>ki&&Wa.MarkNextChange(),ki=rt,Wa.AddModifiedElement(rt+1,Ba+1),Vi=Ds-1-Nn),Gs>=0&&(gt=this.m_reverseHistory[Gs],Nn=gt[0],qa=1,so=gt.length-1)}while(--Gs>=-1);ni=Wa.getChanges()}return this.ConcatenateChanges(Qt,ni)}ComputeRecursionPoint(h,ae,je,_n,Nn,er,pr){let kr=0,Er=0,gt=0,rt=0,ma=0,Ai=0;h--,je--,Nn[0]=0,er[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const Ba=ae-h+(_n-je),_i=Ba+1,No=new Int32Array(_i),to=new Int32Array(_i),Ca=_n-je,Qt=ae-h,ni=h-je,Wa=ae-_n,so=(Qt-Ca)%2===0;No[Ca]=h,to[Qt]=ae,pr[0]=!1;for(let Vi=1;Vi<=Ba/2+1;Vi++){let ki=0,Gs=0;gt=this.ClipDiagonalBound(Ca-Vi,Vi,Ca,_i),rt=this.ClipDiagonalBound(Ca+Vi,Vi,Ca,_i);for(let ko=gt;ko<=rt;ko+=2){ko===gt||ko<rt&&No[ko-1]<No[ko+1]?kr=No[ko+1]:kr=No[ko-1]+1,Er=kr-(ko-Ca)-ni;const Pt=kr;for(;kr<ae&&Er<_n&&this.ElementsAreEqual(kr+1,Er+1);)kr++,Er++;if(No[ko]=kr,kr+Er>ki+Gs&&(ki=kr,Gs=Er),!so&&Math.abs(ko-Qt)<=Vi-1&&kr>=to[ko])return Nn[0]=kr,er[0]=Er,Pt<=to[ko]&&Vi<=1448?this.WALKTRACE(Ca,gt,rt,ni,Qt,ma,Ai,Wa,No,to,kr,ae,Nn,Er,_n,er,so,pr):null}const Ds=(ki-h+(Gs-je)-Vi)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(ki,Ds))return pr[0]=!0,Nn[0]=ki,er[0]=Gs,Ds>0&&Vi<=1448?this.WALKTRACE(Ca,gt,rt,ni,Qt,ma,Ai,Wa,No,to,kr,ae,Nn,Er,_n,er,so,pr):(h++,je++,[new $t(h,ae-h+1,je,_n-je+1)]);ma=this.ClipDiagonalBound(Qt-Vi,Vi,Qt,_i),Ai=this.ClipDiagonalBound(Qt+Vi,Vi,Qt,_i);for(let ko=ma;ko<=Ai;ko+=2){ko===ma||ko<Ai&&to[ko-1]>=to[ko+1]?kr=to[ko+1]-1:kr=to[ko-1],Er=kr-(ko-Qt)-Wa;const Pt=kr;for(;kr>h&&Er>je&&this.ElementsAreEqual(kr,Er);)kr--,Er--;if(to[ko]=kr,so&&Math.abs(ko-Ca)<=Vi&&kr<=No[ko])return Nn[0]=kr,er[0]=Er,Pt>=No[ko]&&Vi<=1448?this.WALKTRACE(Ca,gt,rt,ni,Qt,ma,Ai,Wa,No,to,kr,ae,Nn,Er,_n,er,so,pr):null}if(Vi<=1447){let ko=new Int32Array(rt-gt+2);ko[0]=Ca-gt+1,as.Copy2(No,gt,ko,1,rt-gt+1),this.m_forwardHistory.push(ko),ko=new Int32Array(Ai-ma+2),ko[0]=Qt-ma+1,as.Copy2(to,ma,ko,1,Ai-ma+1),this.m_reverseHistory.push(ko)}}return this.WALKTRACE(Ca,gt,rt,ni,Qt,ma,Ai,Wa,No,to,kr,ae,Nn,Er,_n,er,so,pr)}PrettifyChanges(h){for(let ae=0;ae<h.length;ae++){const je=h[ae],_n=ae<h.length-1?h[ae+1].originalStart:this._originalElementsOrHash.length,Nn=ae<h.length-1?h[ae+1].modifiedStart:this._modifiedElementsOrHash.length,er=je.originalLength>0,pr=je.modifiedLength>0;for(;je.originalStart+je.originalLength<_n&&je.modifiedStart+je.modifiedLength<Nn&&(!er||this.OriginalElementsAreEqual(je.originalStart,je.originalStart+je.originalLength))&&(!pr||this.ModifiedElementsAreEqual(je.modifiedStart,je.modifiedStart+je.modifiedLength));){const Er=this.ElementsAreStrictEqual(je.originalStart,je.modifiedStart);if(this.ElementsAreStrictEqual(je.originalStart+je.originalLength,je.modifiedStart+je.modifiedLength)&&!Er)break;je.originalStart++,je.modifiedStart++}let kr=[null];if(ae<h.length-1&&this.ChangesOverlap(h[ae],h[ae+1],kr)){h[ae]=kr[0],h.splice(ae+1,1),ae--;continue}}for(let ae=h.length-1;ae>=0;ae--){const je=h[ae];let _n=0,Nn=0;if(ae>0){const rt=h[ae-1];_n=rt.originalStart+rt.originalLength,Nn=rt.modifiedStart+rt.modifiedLength}const er=je.originalLength>0,pr=je.modifiedLength>0;let kr=0,Er=this._boundaryScore(je.originalStart,je.originalLength,je.modifiedStart,je.modifiedLength);for(let rt=1;;rt++){const ma=je.originalStart-rt,Ai=je.modifiedStart-rt;if(ma<_n||Ai<Nn||er&&!this.OriginalElementsAreEqual(ma,ma+je.originalLength)||pr&&!this.ModifiedElementsAreEqual(Ai,Ai+je.modifiedLength))break;const _i=(ma===_n&&Ai===Nn?5:0)+this._boundaryScore(ma,je.originalLength,Ai,je.modifiedLength);_i>Er&&(Er=_i,kr=rt)}je.originalStart-=kr,je.modifiedStart-=kr;const gt=[null];if(ae>0&&this.ChangesOverlap(h[ae-1],h[ae],gt)){h[ae-1]=gt[0],h.splice(ae,1),ae++;continue}}if(this._hasStrings)for(let ae=1,je=h.length;ae<je;ae++){const _n=h[ae-1],Nn=h[ae],er=Nn.originalStart-_n.originalStart-_n.originalLength,pr=_n.originalStart,kr=Nn.originalStart+Nn.originalLength,Er=kr-pr,gt=_n.modifiedStart,rt=Nn.modifiedStart+Nn.modifiedLength,ma=rt-gt;if(er<5&&Er<20&&ma<20){const Ai=this._findBetterContiguousSequence(pr,Er,gt,ma,er);if(Ai){const[Ba,_i]=Ai;(Ba!==_n.originalStart+_n.originalLength||_i!==_n.modifiedStart+_n.modifiedLength)&&(_n.originalLength=Ba-_n.originalStart,_n.modifiedLength=_i-_n.modifiedStart,Nn.originalStart=Ba+er,Nn.modifiedStart=_i+er,Nn.originalLength=kr-Nn.originalStart,Nn.modifiedLength=rt-Nn.modifiedStart)}}}return h}_findBetterContiguousSequence(h,ae,je,_n,Nn){if(ae<Nn||_n<Nn)return null;const er=h+ae-Nn+1,pr=je+_n-Nn+1;let kr=0,Er=0,gt=0;for(let rt=h;rt<er;rt++)for(let ma=je;ma<pr;ma++){const Ai=this._contiguousSequenceScore(rt,ma,Nn);Ai>0&&Ai>kr&&(kr=Ai,Er=rt,gt=ma)}return kr>0?[Er,gt]:null}_contiguousSequenceScore(h,ae,je){let _n=0;for(let Nn=0;Nn<je;Nn++){if(!this.ElementsAreEqual(h+Nn,ae+Nn))return 0;_n+=this._originalStringElements[h+Nn].length}return _n}_OriginalIsBoundary(h){return h<=0||h>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[h])}_OriginalRegionIsBoundary(h,ae){if(this._OriginalIsBoundary(h)||this._OriginalIsBoundary(h-1))return!0;if(ae>0){const je=h+ae;if(this._OriginalIsBoundary(je-1)||this._OriginalIsBoundary(je))return!0}return!1}_ModifiedIsBoundary(h){return h<=0||h>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[h])}_ModifiedRegionIsBoundary(h,ae){if(this._ModifiedIsBoundary(h)||this._ModifiedIsBoundary(h-1))return!0;if(ae>0){const je=h+ae;if(this._ModifiedIsBoundary(je-1)||this._ModifiedIsBoundary(je))return!0}return!1}_boundaryScore(h,ae,je,_n){const Nn=this._OriginalRegionIsBoundary(h,ae)?1:0,er=this._ModifiedRegionIsBoundary(je,_n)?1:0;return Nn+er}ConcatenateChanges(h,ae){let je=[];if(h.length===0||ae.length===0)return ae.length>0?ae:h;if(this.ChangesOverlap(h[h.length-1],ae[0],je)){const _n=new Array(h.length+ae.length-1);return as.Copy(h,0,_n,0,h.length-1),_n[h.length-1]=je[0],as.Copy(ae,1,_n,h.length,ae.length-1),_n}else{const _n=new Array(h.length+ae.length);return as.Copy(h,0,_n,0,h.length),as.Copy(ae,0,_n,h.length,ae.length),_n}}ChangesOverlap(h,ae,je){if(Qi.Assert(h.originalStart<=ae.originalStart,"Left change is not less than or equal to right change"),Qi.Assert(h.modifiedStart<=ae.modifiedStart,"Left change is not less than or equal to right change"),h.originalStart+h.originalLength>=ae.originalStart||h.modifiedStart+h.modifiedLength>=ae.modifiedStart){const _n=h.originalStart;let Nn=h.originalLength;const er=h.modifiedStart;let pr=h.modifiedLength;return h.originalStart+h.originalLength>=ae.originalStart&&(Nn=ae.originalStart+ae.originalLength-h.originalStart),h.modifiedStart+h.modifiedLength>=ae.modifiedStart&&(pr=ae.modifiedStart+ae.modifiedLength-h.modifiedStart),je[0]=new $t(_n,Nn,er,pr),!0}else return je[0]=null,!1}ClipDiagonalBound(h,ae,je,_n){if(h>=0&&h<_n)return h;const Nn=je,er=_n-je-1,pr=ae%2===0;if(h<0){const kr=Nn%2===0;return pr===kr?0:1}else{const kr=er%2===0;return pr===kr?_n-1:_n-2}}}var $a=wd(671);let Ni;if(typeof oe.vscode!="undefined"&&typeof oe.vscode.process!="undefined"){const c=oe.vscode.process;Ni={get platform(){return c.platform},get arch(){return c.arch},get env(){return c.env},cwd(){return c.cwd()},nextTick(h){return f(h)}}}else typeof $a!="undefined"?Ni={get platform(){return $a.platform},get arch(){return $a.arch},get env(){return{NODE_ENV:"production",PUBLIC_PATH:"/react/build/"}},cwd(){return{NODE_ENV:"production",PUBLIC_PATH:"/react/build/"}.VSCODE_CWD||$a.cwd()},nextTick(c){return $a.nextTick(c)}}:Ni={get platform(){return ne?"win32":U?"darwin":"linux"},get arch(){},nextTick(c){return f(c)},get env(){return{}},cwd(){return"/"}};const vo=Ni.cwd,Io=Ni.env,Bo=Ni.platform,Uo=65,cs=97,us=90,Jo=122,is=46,mn=47,_r=92,$r=58,ia=63;class ti extends Error{constructor(h,ae,je){let _n;typeof ae=="string"&&ae.indexOf("not ")===0?(_n="must not be",ae=ae.replace(/^not /,"")):_n="must be";const Nn=h.indexOf(".")!==-1?"property":"argument";let er=`The "${h}" ${Nn} ${_n} of type ${ae}`;er+=`. Received type ${typeof je}`,super(er),this.code="ERR_INVALID_ARG_TYPE"}}function va(c,h){if(typeof c!="string")throw new ti(h,"string",c)}function Ve(c){return c===mn||c===_r}function ce(c){return c===mn}function dn(c){return c>=Uo&&c<=us||c>=cs&&c<=Jo}function j(c,h,ae,je){let _n="",Nn=0,er=-1,pr=0,kr=0;for(let Er=0;Er<=c.length;++Er){if(Er<c.length)kr=c.charCodeAt(Er);else{if(je(kr))break;kr=mn}if(je(kr)){if(!(er===Er-1||pr===1))if(pr===2){if(_n.length<2||Nn!==2||_n.charCodeAt(_n.length-1)!==is||_n.charCodeAt(_n.length-2)!==is){if(_n.length>2){const gt=_n.lastIndexOf(ae);gt===-1?(_n="",Nn=0):(_n=_n.slice(0,gt),Nn=_n.length-1-_n.lastIndexOf(ae)),er=Er,pr=0;continue}else if(_n.length!==0){_n="",Nn=0,er=Er,pr=0;continue}}h&&(_n+=_n.length>0?`${ae}..`:"..",Nn=2)}else _n.length>0?_n+=`${ae}${c.slice(er+1,Er)}`:_n=c.slice(er+1,Er),Nn=Er-er-1;er=Er,pr=0}else kr===is&&pr!==-1?++pr:pr=-1}return _n}function Ie(c,h){if(h===null||typeof h!="object")throw new ti("pathObject","Object",h);const ae=h.dir||h.root,je=h.base||`${h.name||""}${h.ext||""}`;return ae?ae===h.root?`${ae}${je}`:`${ae}${c}${je}`:je}const We={resolve(...c){let h="",ae="",je=!1;for(let _n=c.length-1;_n>=-1;_n--){let Nn;if(_n>=0){if(Nn=c[_n],va(Nn,"path"),Nn.length===0)continue}else h.length===0?Nn=vo():(Nn={NODE_ENV:"production",PUBLIC_PATH:"/react/build/"}[`=${h}`]||vo(),(Nn===void 0||Nn.slice(0,2).toLowerCase()!==h.toLowerCase()&&Nn.charCodeAt(2)===_r)&&(Nn=`${h}\\`));const er=Nn.length;let pr=0,kr="",Er=!1;const gt=Nn.charCodeAt(0);if(er===1)Ve(gt)&&(pr=1,Er=!0);else if(Ve(gt))if(Er=!0,Ve(Nn.charCodeAt(1))){let rt=2,ma=rt;for(;rt<er&&!Ve(Nn.charCodeAt(rt));)rt++;if(rt<er&&rt!==ma){const Ai=Nn.slice(ma,rt);for(ma=rt;rt<er&&Ve(Nn.charCodeAt(rt));)rt++;if(rt<er&&rt!==ma){for(ma=rt;rt<er&&!Ve(Nn.charCodeAt(rt));)rt++;(rt===er||rt!==ma)&&(kr=`\\\\${Ai}\\${Nn.slice(ma,rt)}`,pr=rt)}}}else pr=1;else dn(gt)&&Nn.charCodeAt(1)===$r&&(kr=Nn.slice(0,2),pr=2,er>2&&Ve(Nn.charCodeAt(2))&&(Er=!0,pr=3));if(kr.length>0)if(h.length>0){if(kr.toLowerCase()!==h.toLowerCase())continue}else h=kr;if(je){if(h.length>0)break}else if(ae=`${Nn.slice(pr)}\\${ae}`,je=Er,Er&&h.length>0)break}return ae=j(ae,!je,"\\",Ve),je?`${h}\\${ae}`:`${h}${ae}`||"."},normalize(c){va(c,"path");const h=c.length;if(h===0)return".";let ae=0,je,_n=!1;const Nn=c.charCodeAt(0);if(h===1)return ce(Nn)?"\\":c;if(Ve(Nn))if(_n=!0,Ve(c.charCodeAt(1))){let pr=2,kr=pr;for(;pr<h&&!Ve(c.charCodeAt(pr));)pr++;if(pr<h&&pr!==kr){const Er=c.slice(kr,pr);for(kr=pr;pr<h&&Ve(c.charCodeAt(pr));)pr++;if(pr<h&&pr!==kr){for(kr=pr;pr<h&&!Ve(c.charCodeAt(pr));)pr++;if(pr===h)return`\\\\${Er}\\${c.slice(kr)}\\`;pr!==kr&&(je=`\\\\${Er}\\${c.slice(kr,pr)}`,ae=pr)}}}else ae=1;else dn(Nn)&&c.charCodeAt(1)===$r&&(je=c.slice(0,2),ae=2,h>2&&Ve(c.charCodeAt(2))&&(_n=!0,ae=3));let er=ae<h?j(c.slice(ae),!_n,"\\",Ve):"";return er.length===0&&!_n&&(er="."),er.length>0&&Ve(c.charCodeAt(h-1))&&(er+="\\"),je===void 0?_n?`\\${er}`:er:_n?`${je}\\${er}`:`${je}${er}`},isAbsolute(c){va(c,"path");const h=c.length;if(h===0)return!1;const ae=c.charCodeAt(0);return Ve(ae)||h>2&&dn(ae)&&c.charCodeAt(1)===$r&&Ve(c.charCodeAt(2))},join(...c){if(c.length===0)return".";let h,ae;for(let Nn=0;Nn<c.length;++Nn){const er=c[Nn];va(er,"path"),er.length>0&&(h===void 0?h=ae=er:h+=`\\${er}`)}if(h===void 0)return".";let je=!0,_n=0;if(typeof ae=="string"&&Ve(ae.charCodeAt(0))){++_n;const Nn=ae.length;Nn>1&&Ve(ae.charCodeAt(1))&&(++_n,Nn>2&&(Ve(ae.charCodeAt(2))?++_n:je=!1))}if(je){for(;_n<h.length&&Ve(h.charCodeAt(_n));)_n++;_n>=2&&(h=`\\${h.slice(_n)}`)}return We.normalize(h)},relative(c,h){if(va(c,"from"),va(h,"to"),c===h)return"";const ae=We.resolve(c),je=We.resolve(h);if(ae===je||(c=ae.toLowerCase(),h=je.toLowerCase(),c===h))return"";let _n=0;for(;_n<c.length&&c.charCodeAt(_n)===_r;)_n++;let Nn=c.length;for(;Nn-1>_n&&c.charCodeAt(Nn-1)===_r;)Nn--;const er=Nn-_n;let pr=0;for(;pr<h.length&&h.charCodeAt(pr)===_r;)pr++;let kr=h.length;for(;kr-1>pr&&h.charCodeAt(kr-1)===_r;)kr--;const Er=kr-pr,gt=er<Er?er:Er;let rt=-1,ma=0;for(;ma<gt;ma++){const Ba=c.charCodeAt(_n+ma);if(Ba!==h.charCodeAt(pr+ma))break;Ba===_r&&(rt=ma)}if(ma!==gt){if(rt===-1)return je}else{if(Er>gt){if(h.charCodeAt(pr+ma)===_r)return je.slice(pr+ma+1);if(ma===2)return je.slice(pr+ma)}er>gt&&(c.charCodeAt(_n+ma)===_r?rt=ma:ma===2&&(rt=3)),rt===-1&&(rt=0)}let Ai="";for(ma=_n+rt+1;ma<=Nn;++ma)(ma===Nn||c.charCodeAt(ma)===_r)&&(Ai+=Ai.length===0?"..":"\\..");return pr+=rt,Ai.length>0?`${Ai}${je.slice(pr,kr)}`:(je.charCodeAt(pr)===_r&&++pr,je.slice(pr,kr))},toNamespacedPath(c){if(typeof c!="string")return c;if(c.length===0)return"";const h=We.resolve(c);if(h.length<=2)return c;if(h.charCodeAt(0)===_r){if(h.charCodeAt(1)===_r){const ae=h.charCodeAt(2);if(ae!==ia&&ae!==is)return`\\\\?\\UNC\\${h.slice(2)}`}}else if(dn(h.charCodeAt(0))&&h.charCodeAt(1)===$r&&h.charCodeAt(2)===_r)return`\\\\?\\${h}`;return c},dirname(c){va(c,"path");const h=c.length;if(h===0)return".";let ae=-1,je=0;const _n=c.charCodeAt(0);if(h===1)return Ve(_n)?c:".";if(Ve(_n)){if(ae=je=1,Ve(c.charCodeAt(1))){let pr=2,kr=pr;for(;pr<h&&!Ve(c.charCodeAt(pr));)pr++;if(pr<h&&pr!==kr){for(kr=pr;pr<h&&Ve(c.charCodeAt(pr));)pr++;if(pr<h&&pr!==kr){for(kr=pr;pr<h&&!Ve(c.charCodeAt(pr));)pr++;if(pr===h)return c;pr!==kr&&(ae=je=pr+1)}}}}else dn(_n)&&c.charCodeAt(1)===$r&&(ae=h>2&&Ve(c.charCodeAt(2))?3:2,je=ae);let Nn=-1,er=!0;for(let pr=h-1;pr>=je;--pr)if(Ve(c.charCodeAt(pr))){if(!er){Nn=pr;break}}else er=!1;if(Nn===-1){if(ae===-1)return".";Nn=ae}return c.slice(0,Nn)},basename(c,h){h!==void 0&&va(h,"ext"),va(c,"path");let ae=0,je=-1,_n=!0,Nn;if(c.length>=2&&dn(c.charCodeAt(0))&&c.charCodeAt(1)===$r&&(ae=2),h!==void 0&&h.length>0&&h.length<=c.length){if(h===c)return"";let er=h.length-1,pr=-1;for(Nn=c.length-1;Nn>=ae;--Nn){const kr=c.charCodeAt(Nn);if(Ve(kr)){if(!_n){ae=Nn+1;break}}else pr===-1&&(_n=!1,pr=Nn+1),er>=0&&(kr===h.charCodeAt(er)?--er===-1&&(je=Nn):(er=-1,je=pr))}return ae===je?je=pr:je===-1&&(je=c.length),c.slice(ae,je)}for(Nn=c.length-1;Nn>=ae;--Nn)if(Ve(c.charCodeAt(Nn))){if(!_n){ae=Nn+1;break}}else je===-1&&(_n=!1,je=Nn+1);return je===-1?"":c.slice(ae,je)},extname(c){va(c,"path");let h=0,ae=-1,je=0,_n=-1,Nn=!0,er=0;c.length>=2&&c.charCodeAt(1)===$r&&dn(c.charCodeAt(0))&&(h=je=2);for(let pr=c.length-1;pr>=h;--pr){const kr=c.charCodeAt(pr);if(Ve(kr)){if(!Nn){je=pr+1;break}continue}_n===-1&&(Nn=!1,_n=pr+1),kr===is?ae===-1?ae=pr:er!==1&&(er=1):ae!==-1&&(er=-1)}return ae===-1||_n===-1||er===0||er===1&&ae===_n-1&&ae===je+1?"":c.slice(ae,_n)},format:Ie.bind(null,"\\"),parse(c){va(c,"path");const h={root:"",dir:"",base:"",ext:"",name:""};if(c.length===0)return h;const ae=c.length;let je=0,_n=c.charCodeAt(0);if(ae===1)return Ve(_n)?(h.root=h.dir=c,h):(h.base=h.name=c,h);if(Ve(_n)){if(je=1,Ve(c.charCodeAt(1))){let rt=2,ma=rt;for(;rt<ae&&!Ve(c.charCodeAt(rt));)rt++;if(rt<ae&&rt!==ma){for(ma=rt;rt<ae&&Ve(c.charCodeAt(rt));)rt++;if(rt<ae&&rt!==ma){for(ma=rt;rt<ae&&!Ve(c.charCodeAt(rt));)rt++;rt===ae?je=rt:rt!==ma&&(je=rt+1)}}}}else if(dn(_n)&&c.charCodeAt(1)===$r){if(ae<=2)return h.root=h.dir=c,h;if(je=2,Ve(c.charCodeAt(2))){if(ae===3)return h.root=h.dir=c,h;je=3}}je>0&&(h.root=c.slice(0,je));let Nn=-1,er=je,pr=-1,kr=!0,Er=c.length-1,gt=0;for(;Er>=je;--Er){if(_n=c.charCodeAt(Er),Ve(_n)){if(!kr){er=Er+1;break}continue}pr===-1&&(kr=!1,pr=Er+1),_n===is?Nn===-1?Nn=Er:gt!==1&&(gt=1):Nn!==-1&&(gt=-1)}return pr!==-1&&(Nn===-1||gt===0||gt===1&&Nn===pr-1&&Nn===er+1?h.base=h.name=c.slice(er,pr):(h.name=c.slice(er,Nn),h.base=c.slice(er,pr),h.ext=c.slice(Nn,pr))),er>0&&er!==je?h.dir=c.slice(0,er-1):h.dir=h.root,h},sep:"\\",delimiter:";",win32:null,posix:null},sn={resolve(...c){let h="",ae=!1;for(let je=c.length-1;je>=-1&&!ae;je--){const _n=je>=0?c[je]:vo();va(_n,"path"),_n.length!==0&&(h=`${_n}/${h}`,ae=_n.charCodeAt(0)===mn)}return h=j(h,!ae,"/",ce),ae?`/${h}`:h.length>0?h:"."},normalize(c){if(va(c,"path"),c.length===0)return".";const h=c.charCodeAt(0)===mn,ae=c.charCodeAt(c.length-1)===mn;return c=j(c,!h,"/",ce),c.length===0?h?"/":ae?"./":".":(ae&&(c+="/"),h?`/${c}`:c)},isAbsolute(c){return va(c,"path"),c.length>0&&c.charCodeAt(0)===mn},join(...c){if(c.length===0)return".";let h;for(let ae=0;ae<c.length;++ae){const je=c[ae];va(je,"path"),je.length>0&&(h===void 0?h=je:h+=`/${je}`)}return h===void 0?".":sn.normalize(h)},relative(c,h){if(va(c,"from"),va(h,"to"),c===h||(c=sn.resolve(c),h=sn.resolve(h),c===h))return"";const ae=1,je=c.length,_n=je-ae,Nn=1,er=h.length-Nn,pr=_n<er?_n:er;let kr=-1,Er=0;for(;Er<pr;Er++){const rt=c.charCodeAt(ae+Er);if(rt!==h.charCodeAt(Nn+Er))break;rt===mn&&(kr=Er)}if(Er===pr)if(er>pr){if(h.charCodeAt(Nn+Er)===mn)return h.slice(Nn+Er+1);if(Er===0)return h.slice(Nn+Er)}else _n>pr&&(c.charCodeAt(ae+Er)===mn?kr=Er:Er===0&&(kr=0));let gt="";for(Er=ae+kr+1;Er<=je;++Er)(Er===je||c.charCodeAt(Er)===mn)&&(gt+=gt.length===0?"..":"/..");return`${gt}${h.slice(Nn+kr)}`},toNamespacedPath(c){return c},dirname(c){if(va(c,"path"),c.length===0)return".";const h=c.charCodeAt(0)===mn;let ae=-1,je=!0;for(let _n=c.length-1;_n>=1;--_n)if(c.charCodeAt(_n)===mn){if(!je){ae=_n;break}}else je=!1;return ae===-1?h?"/":".":h&&ae===1?"//":c.slice(0,ae)},basename(c,h){h!==void 0&&va(h,"ext"),va(c,"path");let ae=0,je=-1,_n=!0,Nn;if(h!==void 0&&h.length>0&&h.length<=c.length){if(h===c)return"";let er=h.length-1,pr=-1;for(Nn=c.length-1;Nn>=0;--Nn){const kr=c.charCodeAt(Nn);if(kr===mn){if(!_n){ae=Nn+1;break}}else pr===-1&&(_n=!1,pr=Nn+1),er>=0&&(kr===h.charCodeAt(er)?--er===-1&&(je=Nn):(er=-1,je=pr))}return ae===je?je=pr:je===-1&&(je=c.length),c.slice(ae,je)}for(Nn=c.length-1;Nn>=0;--Nn)if(c.charCodeAt(Nn)===mn){if(!_n){ae=Nn+1;break}}else je===-1&&(_n=!1,je=Nn+1);return je===-1?"":c.slice(ae,je)},extname(c){va(c,"path");let h=-1,ae=0,je=-1,_n=!0,Nn=0;for(let er=c.length-1;er>=0;--er){const pr=c.charCodeAt(er);if(pr===mn){if(!_n){ae=er+1;break}continue}je===-1&&(_n=!1,je=er+1),pr===is?h===-1?h=er:Nn!==1&&(Nn=1):h!==-1&&(Nn=-1)}return h===-1||je===-1||Nn===0||Nn===1&&h===je-1&&h===ae+1?"":c.slice(h,je)},format:Ie.bind(null,"/"),parse(c){va(c,"path");const h={root:"",dir:"",base:"",ext:"",name:""};if(c.length===0)return h;const ae=c.charCodeAt(0)===mn;let je;ae?(h.root="/",je=1):je=0;let _n=-1,Nn=0,er=-1,pr=!0,kr=c.length-1,Er=0;for(;kr>=je;--kr){const gt=c.charCodeAt(kr);if(gt===mn){if(!pr){Nn=kr+1;break}continue}er===-1&&(pr=!1,er=kr+1),gt===is?_n===-1?_n=kr:Er!==1&&(Er=1):_n!==-1&&(Er=-1)}if(er!==-1){const gt=Nn===0&&ae?1:Nn;_n===-1||Er===0||Er===1&&_n===er-1&&_n===Nn+1?h.base=h.name=c.slice(gt,er):(h.name=c.slice(gt,_n),h.base=c.slice(gt,er),h.ext=c.slice(_n,er))}return Nn>0?h.dir=c.slice(0,Nn-1):ae&&(h.dir="/"),h},sep:"/",delimiter:":",win32:null,posix:null};sn.win32=We.win32=We,sn.posix=We.posix=sn;const Hn=Bo==="win32"?We.normalize:sn.normalize,vr=Bo==="win32"?We.resolve:sn.resolve,Sr=Bo==="win32"?We.relative:sn.relative,ot=Bo==="win32"?We.dirname:sn.dirname,Et=Bo==="win32"?We.basename:sn.basename,ra=Bo==="win32"?We.extname:sn.extname,Na=Bo==="win32"?We.sep:sn.sep,ei=/^\w[\w\d+.-]*$/,Li=/^\//,Zi=/^\/\//;function ho(c,h){if(!c.scheme&&h)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${c.authority}", path: "${c.path}", query: "${c.query}", fragment: "${c.fragment}"}`);if(c.scheme&&!ei.test(c.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(c.path){if(c.authority){if(!Li.test(c.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(Zi.test(c.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function vs(c,h){return!c&&!h?"file":c}function Ao(c,h){switch(c){case"https":case"http":case"file":h?h[0]!==Zo&&(h=Zo+h):h=Zo;break}return h}const oo="",Zo="/",cl=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class ws{constructor(h,ae,je,_n,Nn,er=!1){typeof h=="object"?(this.scheme=h.scheme||oo,this.authority=h.authority||oo,this.path=h.path||oo,this.query=h.query||oo,this.fragment=h.fragment||oo):(this.scheme=vs(h,er),this.authority=ae||oo,this.path=Ao(this.scheme,je||oo),this.query=_n||oo,this.fragment=Nn||oo,ho(this,er))}static isUri(h){return h instanceof ws?!0:h?typeof h.authority=="string"&&typeof h.fragment=="string"&&typeof h.path=="string"&&typeof h.query=="string"&&typeof h.scheme=="string"&&typeof h.fsPath=="string"&&typeof h.with=="function"&&typeof h.toString=="function":!1}get fsPath(){return Hs(this,!1)}with(h){if(!h)return this;let{scheme:ae,authority:je,path:_n,query:Nn,fragment:er}=h;return ae===void 0?ae=this.scheme:ae===null&&(ae=oo),je===void 0?je=this.authority:je===null&&(je=oo),_n===void 0?_n=this.path:_n===null&&(_n=oo),Nn===void 0?Nn=this.query:Nn===null&&(Nn=oo),er===void 0?er=this.fragment:er===null&&(er=oo),ae===this.scheme&&je===this.authority&&_n===this.path&&Nn===this.query&&er===this.fragment?this:new ul(ae,je,_n,Nn,er)}static parse(h,ae=!1){const je=cl.exec(h);return je?new ul(je[2]||oo,Te(je[4]||oo),Te(je[5]||oo),Te(je[7]||oo),Te(je[9]||oo),ae):new ul(oo,oo,oo,oo,oo)}static file(h){let ae=oo;if(ne&&(h=h.replace(/\\/g,Zo)),h[0]===Zo&&h[1]===Zo){const je=h.indexOf(Zo,2);je===-1?(ae=h.substring(2),h=Zo):(ae=h.substring(2,je),h=h.substring(je)||Zo)}return new ul("file",ae,h,oo,oo)}static from(h){const ae=new ul(h.scheme,h.authority,h.path,h.query,h.fragment);return ho(ae,!0),ae}static joinPath(h,...ae){if(!h.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let je;return ne&&h.scheme==="file"?je=ws.file(We.join(Hs(h,!0),...ae)).path:je=sn.join(h.path,...ae),h.with({path:je})}toString(h=!1){return Fs(this,h)}toJSON(){return this}static revive(h){if(h){if(h instanceof ws)return h;{const ae=new ul(h);return ae._formatted=h.external,ae._fsPath=h._sep===vl?h.fsPath:null,ae}}else return h}}const vl=ne?1:void 0;class ul extends ws{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Hs(this,!1)),this._fsPath}toString(h=!1){return h?Fs(this,!0):(this._formatted||(this._formatted=Fs(this,!1)),this._formatted)}toJSON(){const h={$mid:1};return this._fsPath&&(h.fsPath=this._fsPath,h._sep=vl),this._formatted&&(h.external=this._formatted),this.path&&(h.path=this.path),this.scheme&&(h.scheme=this.scheme),this.authority&&(h.authority=this.authority),this.query&&(h.query=this.query),this.fragment&&(h.fragment=this.fragment),h}}const ps={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function jl(c,h){let ae,je=-1;for(let _n=0;_n<c.length;_n++){const Nn=c.charCodeAt(_n);if(Nn>=97&&Nn<=122||Nn>=65&&Nn<=90||Nn>=48&&Nn<=57||Nn===45||Nn===46||Nn===95||Nn===126||h&&Nn===47)je!==-1&&(ae+=encodeURIComponent(c.substring(je,_n)),je=-1),ae!==void 0&&(ae+=c.charAt(_n));else{ae===void 0&&(ae=c.substr(0,_n));const er=ps[Nn];er!==void 0?(je!==-1&&(ae+=encodeURIComponent(c.substring(je,_n)),je=-1),ae+=er):je===-1&&(je=_n)}}return je!==-1&&(ae+=encodeURIComponent(c.substring(je))),ae!==void 0?ae:c}function Hl(c){let h;for(let ae=0;ae<c.length;ae++){const je=c.charCodeAt(ae);je===35||je===63?(h===void 0&&(h=c.substr(0,ae)),h+=ps[je]):h!==void 0&&(h+=c[ae])}return h!==void 0?h:c}function Hs(c,h){let ae;return c.authority&&c.path.length>1&&c.scheme==="file"?ae=`//${c.authority}${c.path}`:c.path.charCodeAt(0)===47&&(c.path.charCodeAt(1)>=65&&c.path.charCodeAt(1)<=90||c.path.charCodeAt(1)>=97&&c.path.charCodeAt(1)<=122)&&c.path.charCodeAt(2)===58?h?ae=c.path.substr(1):ae=c.path[1].toLowerCase()+c.path.substr(2):ae=c.path,ne&&(ae=ae.replace(/\//g,"\\")),ae}function Fs(c,h){const ae=h?Hl:jl;let je="",{scheme:_n,authority:Nn,path:er,query:pr,fragment:kr}=c;if(_n&&(je+=_n,je+=":"),(Nn||_n==="file")&&(je+=Zo,je+=Zo),Nn){let Er=Nn.indexOf("@");if(Er!==-1){const gt=Nn.substr(0,Er);Nn=Nn.substr(Er+1),Er=gt.indexOf(":"),Er===-1?je+=ae(gt,!1):(je+=ae(gt.substr(0,Er),!1),je+=":",je+=ae(gt.substr(Er+1),!1)),je+="@"}Nn=Nn.toLowerCase(),Er=Nn.indexOf(":"),Er===-1?je+=ae(Nn,!1):(je+=ae(Nn.substr(0,Er),!1),je+=Nn.substr(Er))}if(er){if(er.length>=3&&er.charCodeAt(0)===47&&er.charCodeAt(2)===58){const Er=er.charCodeAt(1);Er>=65&&Er<=90&&(er=`/${String.fromCharCode(Er+32)}:${er.substr(3)}`)}else if(er.length>=2&&er.charCodeAt(1)===58){const Er=er.charCodeAt(0);Er>=65&&Er<=90&&(er=`${String.fromCharCode(Er+32)}:${er.substr(2)}`)}je+=ae(er,!0)}return pr&&(je+="?",je+=ae(pr,!1)),kr&&(je+="#",je+=h?kr:jl(kr,!1)),je}function ge(c){try{return decodeURIComponent(c)}catch(h){return c.length>3?c.substr(0,3)+ge(c.substr(3)):c}}const Kn=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Te(c){return c.match(Kn)?c.replace(Kn,h=>ge(h)):c}class Fn{constructor(h,ae){this.lineNumber=h,this.column=ae}with(h=this.lineNumber,ae=this.column){return h===this.lineNumber&&ae===this.column?this:new Fn(h,ae)}delta(h=0,ae=0){return this.with(this.lineNumber+h,this.column+ae)}equals(h){return Fn.equals(this,h)}static equals(h,ae){return!h&&!ae?!0:!!h&&!!ae&&h.lineNumber===ae.lineNumber&&h.column===ae.column}isBefore(h){return Fn.isBefore(this,h)}static isBefore(h,ae){return h.lineNumber<ae.lineNumber?!0:ae.lineNumber<h.lineNumber?!1:h.column<ae.column}isBeforeOrEqual(h){return Fn.isBeforeOrEqual(this,h)}static isBeforeOrEqual(h,ae){return h.lineNumber<ae.lineNumber?!0:ae.lineNumber<h.lineNumber?!1:h.column<=ae.column}static compare(h,ae){let je=h.lineNumber|0,_n=ae.lineNumber|0;if(je===_n){let Nn=h.column|0,er=ae.column|0;return Nn-er}return je-_n}clone(){return new Fn(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(h){return new Fn(h.lineNumber,h.column)}static isIPosition(h){return h&&typeof h.lineNumber=="number"&&typeof h.column=="number"}}class et{constructor(h,ae,je,_n){h>je||h===je&&ae>_n?(this.startLineNumber=je,this.startColumn=_n,this.endLineNumber=h,this.endColumn=ae):(this.startLineNumber=h,this.startColumn=ae,this.endLineNumber=je,this.endColumn=_n)}isEmpty(){return et.isEmpty(this)}static isEmpty(h){return h.startLineNumber===h.endLineNumber&&h.startColumn===h.endColumn}containsPosition(h){return et.containsPosition(this,h)}static containsPosition(h,ae){return!(ae.lineNumber<h.startLineNumber||ae.lineNumber>h.endLineNumber||ae.lineNumber===h.startLineNumber&&ae.column<h.startColumn||ae.lineNumber===h.endLineNumber&&ae.column>h.endColumn)}containsRange(h){return et.containsRange(this,h)}static containsRange(h,ae){return!(ae.startLineNumber<h.startLineNumber||ae.endLineNumber<h.startLineNumber||ae.startLineNumber>h.endLineNumber||ae.endLineNumber>h.endLineNumber||ae.startLineNumber===h.startLineNumber&&ae.startColumn<h.startColumn||ae.endLineNumber===h.endLineNumber&&ae.endColumn>h.endColumn)}strictContainsRange(h){return et.strictContainsRange(this,h)}static strictContainsRange(h,ae){return!(ae.startLineNumber<h.startLineNumber||ae.endLineNumber<h.startLineNumber||ae.startLineNumber>h.endLineNumber||ae.endLineNumber>h.endLineNumber||ae.startLineNumber===h.startLineNumber&&ae.startColumn<=h.startColumn||ae.endLineNumber===h.endLineNumber&&ae.endColumn>=h.endColumn)}plusRange(h){return et.plusRange(this,h)}static plusRange(h,ae){let je,_n,Nn,er;return ae.startLineNumber<h.startLineNumber?(je=ae.startLineNumber,_n=ae.startColumn):ae.startLineNumber===h.startLineNumber?(je=ae.startLineNumber,_n=Math.min(ae.startColumn,h.startColumn)):(je=h.startLineNumber,_n=h.startColumn),ae.endLineNumber>h.endLineNumber?(Nn=ae.endLineNumber,er=ae.endColumn):ae.endLineNumber===h.endLineNumber?(Nn=ae.endLineNumber,er=Math.max(ae.endColumn,h.endColumn)):(Nn=h.endLineNumber,er=h.endColumn),new et(je,_n,Nn,er)}intersectRanges(h){return et.intersectRanges(this,h)}static intersectRanges(h,ae){let je=h.startLineNumber,_n=h.startColumn,Nn=h.endLineNumber,er=h.endColumn,pr=ae.startLineNumber,kr=ae.startColumn,Er=ae.endLineNumber,gt=ae.endColumn;return je<pr?(je=pr,_n=kr):je===pr&&(_n=Math.max(_n,kr)),Nn>Er?(Nn=Er,er=gt):Nn===Er&&(er=Math.min(er,gt)),je>Nn||je===Nn&&_n>er?null:new et(je,_n,Nn,er)}equalsRange(h){return et.equalsRange(this,h)}static equalsRange(h,ae){return!!h&&!!ae&&h.startLineNumber===ae.startLineNumber&&h.startColumn===ae.startColumn&&h.endLineNumber===ae.endLineNumber&&h.endColumn===ae.endColumn}getEndPosition(){return et.getEndPosition(this)}static getEndPosition(h){return new Fn(h.endLineNumber,h.endColumn)}getStartPosition(){return et.getStartPosition(this)}static getStartPosition(h){return new Fn(h.startLineNumber,h.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(h,ae){return new et(this.startLineNumber,this.startColumn,h,ae)}setStartPosition(h,ae){return new et(h,ae,this.endLineNumber,this.endColumn)}collapseToStart(){return et.collapseToStart(this)}static collapseToStart(h){return new et(h.startLineNumber,h.startColumn,h.startLineNumber,h.startColumn)}static fromPositions(h,ae=h){return new et(h.lineNumber,h.column,ae.lineNumber,ae.column)}static lift(h){return h?new et(h.startLineNumber,h.startColumn,h.endLineNumber,h.endColumn):null}static isIRange(h){return h&&typeof h.startLineNumber=="number"&&typeof h.startColumn=="number"&&typeof h.endLineNumber=="number"&&typeof h.endColumn=="number"}static areIntersectingOrTouching(h,ae){return!(h.endLineNumber<ae.startLineNumber||h.endLineNumber===ae.startLineNumber&&h.endColumn<ae.startColumn||ae.endLineNumber<h.startLineNumber||ae.endLineNumber===h.startLineNumber&&ae.endColumn<h.startColumn)}static areIntersecting(h,ae){return!(h.endLineNumber<ae.startLineNumber||h.endLineNumber===ae.startLineNumber&&h.endColumn<=ae.startColumn||ae.endLineNumber<h.startLineNumber||ae.endLineNumber===h.startLineNumber&&ae.endColumn<=h.startColumn)}static compareRangesUsingStarts(h,ae){if(h&&ae){const Nn=h.startLineNumber|0,er=ae.startLineNumber|0;if(Nn===er){const pr=h.startColumn|0,kr=ae.startColumn|0;if(pr===kr){const Er=h.endLineNumber|0,gt=ae.endLineNumber|0;if(Er===gt){const rt=h.endColumn|0,ma=ae.endColumn|0;return rt-ma}return Er-gt}return pr-kr}return Nn-er}return(h?1:0)-(ae?1:0)}static compareRangesUsingEnds(h,ae){return h.endLineNumber===ae.endLineNumber?h.endColumn===ae.endColumn?h.startLineNumber===ae.startLineNumber?h.startColumn-ae.startColumn:h.startLineNumber-ae.startLineNumber:h.endColumn-ae.endColumn:h.endLineNumber-ae.endLineNumber}static spansMultipleLines(h){return h.endLineNumber>h.startLineNumber}}const Xt=3;function ca(c,h,ae,je){return new Da(c,h,ae).ComputeDiff(je)}class ha{constructor(h){const ae=[],je=[];for(let _n=0,Nn=h.length;_n<Nn;_n++)ae[_n]=hl(h[_n],1),je[_n]=Bi(h[_n],1);this.lines=h,this._startColumns=ae,this._endColumns=je}getElements(){const h=[];for(let ae=0,je=this.lines.length;ae<je;ae++)h[ae]=this.lines[ae].substring(this._startColumns[ae]-1,this._endColumns[ae]-1);return h}getStrictElement(h){return this.lines[h]}getStartLineNumber(h){return h+1}getEndLineNumber(h){return h+1}createCharSequence(h,ae,je){const _n=[],Nn=[],er=[];let pr=0;for(let kr=ae;kr<=je;kr++){const Er=this.lines[kr],gt=h?this._startColumns[kr]:1,rt=h?this._endColumns[kr]:Er.length+1;for(let ma=gt;ma<rt;ma++)_n[pr]=Er.charCodeAt(ma-1),Nn[pr]=kr+1,er[pr]=ma,pr++}return new To(_n,Nn,er)}}class To{constructor(h,ae,je){this._charCodes=h,this._lineNumbers=ae,this._columns=je}getElements(){return this._charCodes}getStartLineNumber(h){return this._lineNumbers[h]}getStartColumn(h){return this._columns[h]}getEndLineNumber(h){return this._lineNumbers[h]}getEndColumn(h){return this._columns[h]+1}}class Pn{constructor(h,ae,je,_n,Nn,er,pr,kr){this.originalStartLineNumber=h,this.originalStartColumn=ae,this.originalEndLineNumber=je,this.originalEndColumn=_n,this.modifiedStartLineNumber=Nn,this.modifiedStartColumn=er,this.modifiedEndLineNumber=pr,this.modifiedEndColumn=kr}static createFromDiffChange(h,ae,je){let _n,Nn,er,pr,kr,Er,gt,rt;return h.originalLength===0?(_n=0,Nn=0,er=0,pr=0):(_n=ae.getStartLineNumber(h.originalStart),Nn=ae.getStartColumn(h.originalStart),er=ae.getEndLineNumber(h.originalStart+h.originalLength-1),pr=ae.getEndColumn(h.originalStart+h.originalLength-1)),h.modifiedLength===0?(kr=0,Er=0,gt=0,rt=0):(kr=je.getStartLineNumber(h.modifiedStart),Er=je.getStartColumn(h.modifiedStart),gt=je.getEndLineNumber(h.modifiedStart+h.modifiedLength-1),rt=je.getEndColumn(h.modifiedStart+h.modifiedLength-1)),new Pn(_n,Nn,er,pr,kr,Er,gt,rt)}}function Vo(c){if(c.length<=1)return c;const h=[c[0]];let ae=h[0];for(let je=1,_n=c.length;je<_n;je++){const Nn=c[je],er=Nn.originalStart-(ae.originalStart+ae.originalLength),pr=Nn.modifiedStart-(ae.modifiedStart+ae.modifiedLength);Math.min(er,pr)<Xt?(ae.originalLength=Nn.originalStart+Nn.originalLength-ae.originalStart,ae.modifiedLength=Nn.modifiedStart+Nn.modifiedLength-ae.modifiedStart):(h.push(Nn),ae=Nn)}return h}class Ko{constructor(h,ae,je,_n,Nn){this.originalStartLineNumber=h,this.originalEndLineNumber=ae,this.modifiedStartLineNumber=je,this.modifiedEndLineNumber=_n,this.charChanges=Nn}static createFromDiffResult(h,ae,je,_n,Nn,er,pr){let kr,Er,gt,rt,ma;if(ae.originalLength===0?(kr=je.getStartLineNumber(ae.originalStart)-1,Er=0):(kr=je.getStartLineNumber(ae.originalStart),Er=je.getEndLineNumber(ae.originalStart+ae.originalLength-1)),ae.modifiedLength===0?(gt=_n.getStartLineNumber(ae.modifiedStart)-1,rt=0):(gt=_n.getStartLineNumber(ae.modifiedStart),rt=_n.getEndLineNumber(ae.modifiedStart+ae.modifiedLength-1)),er&&ae.originalLength>0&&ae.originalLength<20&&ae.modifiedLength>0&&ae.modifiedLength<20&&Nn()){const Ai=je.createCharSequence(h,ae.originalStart,ae.originalStart+ae.originalLength-1),Ba=_n.createCharSequence(h,ae.modifiedStart,ae.modifiedStart+ae.modifiedLength-1);let _i=ca(Ai,Ba,Nn,!0).changes;pr&&(_i=Vo(_i)),ma=[];for(let No=0,to=_i.length;No<to;No++)ma.push(Pn.createFromDiffChange(_i[No],Ai,Ba))}return new Ko(kr,Er,gt,rt,ma)}}class hs{constructor(h,ae,je){this.shouldComputeCharChanges=je.shouldComputeCharChanges,this.shouldPostProcessCharChanges=je.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=je.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=je.shouldMakePrettyDiff,this.originalLines=h,this.modifiedLines=ae,this.original=new ha(h),this.modified=new ha(ae),this.continueLineDiff=Js(je.maxComputationTime),this.continueCharDiff=Js(je.maxComputationTime===0?0:Math.min(je.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};const h=ca(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),ae=h.changes,je=h.quitEarly;if(this.shouldIgnoreTrimWhitespace){const pr=[];for(let kr=0,Er=ae.length;kr<Er;kr++)pr.push(Ko.createFromDiffResult(this.shouldIgnoreTrimWhitespace,ae[kr],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:je,changes:pr}}const _n=[];let Nn=0,er=0;for(let pr=-1,kr=ae.length;pr<kr;pr++){const Er=pr+1<kr?ae[pr+1]:null,gt=Er?Er.originalStart:this.originalLines.length,rt=Er?Er.modifiedStart:this.modifiedLines.length;for(;Nn<gt&&er<rt;){const ma=this.originalLines[Nn],Ai=this.modifiedLines[er];if(ma!==Ai){{let Ba=hl(ma,1),_i=hl(Ai,1);for(;Ba>1&&_i>1;){const No=ma.charCodeAt(Ba-2),to=Ai.charCodeAt(_i-2);if(No!==to)break;Ba--,_i--}(Ba>1||_i>1)&&this._pushTrimWhitespaceCharChange(_n,Nn+1,1,Ba,er+1,1,_i)}{let Ba=Bi(ma,1),_i=Bi(Ai,1);const No=ma.length+1,to=Ai.length+1;for(;Ba<No&&_i<to;){const Ca=ma.charCodeAt(Ba-1),Qt=ma.charCodeAt(_i-1);if(Ca!==Qt)break;Ba++,_i++}(Ba<No||_i<to)&&this._pushTrimWhitespaceCharChange(_n,Nn+1,Ba,No,er+1,_i,to)}}Nn++,er++}Er&&(_n.push(Ko.createFromDiffResult(this.shouldIgnoreTrimWhitespace,Er,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),Nn+=Er.originalLength,er+=Er.modifiedLength)}return{quitEarly:je,changes:_n}}_pushTrimWhitespaceCharChange(h,ae,je,_n,Nn,er,pr){if(this._mergeTrimWhitespaceCharChange(h,ae,je,_n,Nn,er,pr))return;let kr;this.shouldComputeCharChanges&&(kr=[new Pn(ae,je,ae,_n,Nn,er,Nn,pr)]),h.push(new Ko(ae,ae,Nn,Nn,kr))}_mergeTrimWhitespaceCharChange(h,ae,je,_n,Nn,er,pr){const kr=h.length;if(kr===0)return!1;const Er=h[kr-1];return Er.originalEndLineNumber===0||Er.modifiedEndLineNumber===0?!1:Er.originalEndLineNumber+1===ae&&Er.modifiedEndLineNumber+1===Nn?(Er.originalEndLineNumber=ae,Er.modifiedEndLineNumber=Nn,this.shouldComputeCharChanges&&Er.charChanges&&Er.charChanges.push(new Pn(ae,je,ae,_n,Nn,er,Nn,pr)),!0):!1}}function hl(c,h){const ae=gn(c);return ae===-1?h:ae+1}function Bi(c,h){const ae=ze(c);return ae===-1?h:ae+2}function Js(c){if(c===0)return()=>!0;const h=Date.now();return()=>Date.now()-h<c}function rl(c){return c<0?0:c>255?255:c|0}function Ol(c){return c<0?0:c>4294967295?4294967295:c|0}class nc{constructor(h,ae){this._prefixSumIndexOfResultBrand=void 0,this.index=h,this.remainder=ae}}class Sc{constructor(h){this.values=h,this.prefixSum=new Uint32Array(h.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(h,ae){h=Ol(h);const je=this.values,_n=this.prefixSum,Nn=ae.length;return Nn===0?!1:(this.values=new Uint32Array(je.length+Nn),this.values.set(je.subarray(0,h),0),this.values.set(je.subarray(h),h+Nn),this.values.set(ae,h),h-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=h-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(_n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(h,ae){return h=Ol(h),ae=Ol(ae),this.values[h]===ae?!1:(this.values[h]=ae,h-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=h-1),!0)}removeValues(h,ae){h=Ol(h),ae=Ol(ae);const je=this.values,_n=this.prefixSum;if(h>=je.length)return!1;let Nn=je.length-h;return ae>=Nn&&(ae=Nn),ae===0?!1:(this.values=new Uint32Array(je.length-ae),this.values.set(je.subarray(0,h),0),this.values.set(je.subarray(h+ae),h),this.prefixSum=new Uint32Array(this.values.length),h-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=h-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(_n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(h){return h<0?0:(h=Ol(h),this._getPrefixSum(h))}_getPrefixSum(h){if(h<=this.prefixSumValidIndex[0])return this.prefixSum[h];let ae=this.prefixSumValidIndex[0]+1;ae===0&&(this.prefixSum[0]=this.values[0],ae++),h>=this.values.length&&(h=this.values.length-1);for(let je=ae;je<=h;je++)this.prefixSum[je]=this.prefixSum[je-1]+this.values[je];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],h),this.prefixSum[h]}getIndexOf(h){h=Math.floor(h),this.getTotalSum();let ae=0,je=this.values.length-1,_n=0,Nn=0,er=0;for(;ae<=je;)if(_n=ae+(je-ae)/2|0,Nn=this.prefixSum[_n],er=Nn-this.values[_n],h<er)je=_n-1;else if(h>=Nn)ae=_n+1;else break;return new nc(_n,h-er)}}class Zl{constructor(h,ae,je,_n){this._uri=h,this._lines=ae,this._eol=je,this._versionId=_n,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(h){h.eol&&h.eol!==this._eol&&(this._eol=h.eol,this._lineStarts=null);const ae=h.changes;for(const je of ae)this._acceptDeleteRange(je.range),this._acceptInsertText(new Fn(je.range.startLineNumber,je.range.startColumn),je.text);this._versionId=h.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const h=this._eol.length,ae=this._lines.length,je=new Uint32Array(ae);for(let _n=0;_n<ae;_n++)je[_n]=this._lines[_n].length+h;this._lineStarts=new Sc(je)}}_setLineText(h,ae){this._lines[h]=ae,this._lineStarts&&this._lineStarts.changeValue(h,this._lines[h].length+this._eol.length)}_acceptDeleteRange(h){if(h.startLineNumber===h.endLineNumber){if(h.startColumn===h.endColumn)return;this._setLineText(h.startLineNumber-1,this._lines[h.startLineNumber-1].substring(0,h.startColumn-1)+this._lines[h.startLineNumber-1].substring(h.endColumn-1));return}this._setLineText(h.startLineNumber-1,this._lines[h.startLineNumber-1].substring(0,h.startColumn-1)+this._lines[h.endLineNumber-1].substring(h.endColumn-1)),this._lines.splice(h.startLineNumber,h.endLineNumber-h.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(h.startLineNumber,h.endLineNumber-h.startLineNumber)}_acceptInsertText(h,ae){if(ae.length===0)return;let je=Ue(ae);if(je.length===1){this._setLineText(h.lineNumber-1,this._lines[h.lineNumber-1].substring(0,h.column-1)+je[0]+this._lines[h.lineNumber-1].substring(h.column-1));return}je[je.length-1]+=this._lines[h.lineNumber-1].substring(h.column-1),this._setLineText(h.lineNumber-1,this._lines[h.lineNumber-1].substring(0,h.column-1)+je[0]);let _n=new Uint32Array(je.length-1);for(let Nn=1;Nn<je.length;Nn++)this._lines.splice(h.lineNumber+Nn-1,0,je[Nn]),_n[Nn-1]=je[Nn].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(h.lineNumber,_n)}}const du="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function dc(c=""){let h="(-?\\d*\\.\\d\\w*)|([^";for(const ae of du)c.indexOf(ae)>=0||(h+="\\"+ae);return h+="\\s]+)",new RegExp(h,"g")}const $l=dc();function kn(c){let h=$l;if(c&&c instanceof RegExp)if(c.global)h=c;else{let ae="g";c.ignoreCase&&(ae+="i"),c.multiline&&(ae+="m"),c.unicode&&(ae+="u"),h=new RegExp(c.source,ae)}return h.lastIndex=0,h}const lr={maxLen:1e3,windowSize:15,timeBudget:150};function Or(c,h,ae,je,_n=lr){if(ae.length>_n.maxLen){let Er=c-_n.maxLen/2;return Er<0?Er=0:je+=Er,ae=ae.substring(Er,c+_n.maxLen/2),Or(c,h,ae,je,_n)}const Nn=Date.now(),er=c-1-je;let pr=-1,kr=null;for(let Er=1;!(Date.now()-Nn>=_n.timeBudget);Er++){const gt=er-_n.windowSize*Er;h.lastIndex=Math.max(0,gt);const rt=st(h,ae,er,pr);if(!rt&&kr||(kr=rt,gt<=0))break;pr=gt}if(kr){let Er={word:kr[0],startColumn:je+1+kr.index,endColumn:je+1+kr.index+kr[0].length};return h.lastIndex=0,Er}return null}function st(c,h,ae,je){let _n;for(;_n=c.exec(h);){const Nn=_n.index||0;if(Nn<=ae&&c.lastIndex>=ae)return _n;if(je>0&&Nn>je)return null}return null}class yt{constructor(h){let ae=rl(h);this._defaultValue=ae,this._asciiMap=yt._createAsciiMap(ae),this._map=new Map}static _createAsciiMap(h){let ae=new Uint8Array(256);for(let je=0;je<256;je++)ae[je]=h;return ae}set(h,ae){let je=rl(ae);h>=0&&h<256?this._asciiMap[h]=je:this._map.set(h,je)}get(h){return h>=0&&h<256?this._asciiMap[h]:this._map.get(h)||this._defaultValue}}class Tt{constructor(){this._actual=new yt(0)}add(h){this._actual.set(h,1)}has(h){return this._actual.get(h)===1}}class Ut{constructor(h,ae,je){const _n=new Uint8Array(h*ae);for(let Nn=0,er=h*ae;Nn<er;Nn++)_n[Nn]=je;this._data=_n,this.rows=h,this.cols=ae}get(h,ae){return this._data[h*this.cols+ae]}set(h,ae,je){this._data[h*this.cols+ae]=je}}class ea{constructor(h){let ae=0,je=0;for(let Nn=0,er=h.length;Nn<er;Nn++){let[pr,kr,Er]=h[Nn];kr>ae&&(ae=kr),pr>je&&(je=pr),Er>je&&(je=Er)}ae++,je++;let _n=new Ut(je,ae,0);for(let Nn=0,er=h.length;Nn<er;Nn++){let[pr,kr,Er]=h[Nn];_n.set(pr,kr,Er)}this._states=_n,this._maxCharCode=ae}nextState(h,ae){return ae<0||ae>=this._maxCharCode?0:this._states.get(h,ae)}}let zt=null;function Ii(){return zt===null&&(zt=new ea([[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]])),zt}let ba=null;function wa(){if(ba===null){ba=new yt(0);const c=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let ae=0;ae<c.length;ae++)ba.set(c.charCodeAt(ae),1);const h=".,;";for(let ae=0;ae<h.length;ae++)ba.set(h.charCodeAt(ae),2)}return ba}class Ui{static _createLink(h,ae,je,_n,Nn){let er=Nn-1;do{const pr=ae.charCodeAt(er);if(h.get(pr)!==2)break;er--}while(er>_n);if(_n>0){const pr=ae.charCodeAt(_n-1),kr=ae.charCodeAt(er);(pr===40&&kr===41||pr===91&&kr===93||pr===123&&kr===125)&&er--}return{range:{startLineNumber:je,startColumn:_n+1,endLineNumber:je,endColumn:er+2},url:ae.substring(_n,er+1)}}static computeLinks(h,ae=Ii()){const je=wa();let _n=[];for(let Nn=1,er=h.getLineCount();Nn<=er;Nn++){const pr=h.getLineContent(Nn),kr=pr.length;let Er=0,gt=0,rt=0,ma=1,Ai=!1,Ba=!1,_i=!1,No=!1;for(;Er<kr;){let to=!1;const Ca=pr.charCodeAt(Er);if(ma===13){let Qt;switch(Ca){case 40:Ai=!0,Qt=0;break;case 41:Qt=Ai?0:1;break;case 91:_i=!0,Ba=!0,Qt=0;break;case 93:_i=!1,Qt=Ba?0:1;break;case 123:No=!0,Qt=0;break;case 125:Qt=No?0:1;break;case 39:Qt=rt===34||rt===96?0:1;break;case 34:Qt=rt===39||rt===96?0:1;break;case 96:Qt=rt===39||rt===34?0:1;break;case 42:Qt=rt===42?1:0;break;case 124:Qt=rt===124?1:0;break;case 32:Qt=_i?0:1;break;default:Qt=je.get(Ca)}Qt===1&&(_n.push(Ui._createLink(je,pr,Nn,gt,Er)),to=!0)}else if(ma===12){let Qt;Ca===91?(Ba=!0,Qt=0):Qt=je.get(Ca),Qt===1?to=!0:ma=13}else ma=ae.nextState(ma,Ca),ma===0&&(to=!0);to&&(ma=1,Ai=!1,Ba=!1,No=!1,gt=Er+1,rt=Ca),Er++}ma===13&&_n.push(Ui._createLink(je,pr,Nn,gt,kr))}return _n}}function Fi(c){return!c||typeof c.getLineCount!="function"||typeof c.getLineContent!="function"?[]:Ui.computeLinks(c)}class he{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(h,ae,je,_n,Nn){if(h&&ae){let er=this.doNavigateValueSet(ae,Nn);if(er)return{range:h,value:er}}if(je&&_n){let er=this.doNavigateValueSet(_n,Nn);if(er)return{range:je,value:er}}return null}doNavigateValueSet(h,ae){let je=this.numberReplace(h,ae);return je!==null?je:this.textReplace(h,ae)}numberReplace(h,ae){let je=Math.pow(10,h.length-(h.lastIndexOf(".")+1)),_n=Number(h),Nn=parseFloat(h);return!isNaN(_n)&&!isNaN(Nn)&&_n===Nn?_n===0&&!ae?null:(_n=Math.floor(_n*je),_n+=ae?je:-je,String(_n/je)):null}textReplace(h,ae){return this.valueSetsReplace(this._defaultValueSet,h,ae)}valueSetsReplace(h,ae,je){let _n=null;for(let Nn=0,er=h.length;_n===null&&Nn<er;Nn++)_n=this.valueSetReplace(h[Nn],ae,je);return _n}valueSetReplace(h,ae,je){let _n=h.indexOf(ae);return _n>=0?(_n+=je?1:-1,_n<0?_n=h.length-1:_n%=h.length,h[_n]):null}}he.INSTANCE=new he;const un=Object.freeze(function(c,h){const ae=setTimeout(c.bind(h),0);return{dispose(){clearTimeout(ae)}}});var Sn;(function(c){function h(ae){return ae===c.None||ae===c.Cancelled||ae instanceof Tr?!0:!ae||typeof ae!="object"?!1:typeof ae.isCancellationRequested=="boolean"&&typeof ae.onCancellationRequested=="function"}c.isCancellationToken=h,c.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:me.None}),c.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:un})})(Sn||(Sn={}));class Tr{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?un:(this._emitter||(this._emitter=new Ae),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Wr{constructor(h){this._token=void 0,this._parentListener=void 0,this._parentListener=h&&h.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Tr),this._token}cancel(){this._token?this._token instanceof Tr&&this._token.cancel():this._token=Sn.Cancelled}dispose(h=!1){h&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Tr&&this._token.dispose():this._token=Sn.None}}class Yt{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(h,ae){this._keyCodeToStr[h]=ae,this._strToKeyCode[ae.toLowerCase()]=h}keyCodeToStr(h){return this._keyCodeToStr[h]}strToKeyCode(h){return this._strToKeyCode[h.toLowerCase()]||0}}const Ia=new Yt,hi=new Yt,yo=new Yt,Oo=new Array(230),ys={},Pi=[],Po=Object.create(null),Jn=Object.create(null),zo=[],Es=[];for(let c=0;c<=193;c++)zo[c]=-1;for(let c=0;c<=126;c++)Es[c]=-1;(function(){const c="",h=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",c,c],[0,1,1,"Hyper",0,c,0,c,c,c],[0,1,2,"Super",0,c,0,c,c,c],[0,1,3,"Fn",0,c,0,c,c,c],[0,1,4,"FnLock",0,c,0,c,c,c],[0,1,5,"Suspend",0,c,0,c,c,c],[0,1,6,"Resume",0,c,0,c,c,c],[0,1,7,"Turbo",0,c,0,c,c,c],[0,1,8,"Sleep",0,c,0,"VK_SLEEP",c,c],[0,1,9,"WakeUp",0,c,0,c,c,c],[31,0,10,"KeyA",31,"A",65,"VK_A",c,c],[32,0,11,"KeyB",32,"B",66,"VK_B",c,c],[33,0,12,"KeyC",33,"C",67,"VK_C",c,c],[34,0,13,"KeyD",34,"D",68,"VK_D",c,c],[35,0,14,"KeyE",35,"E",69,"VK_E",c,c],[36,0,15,"KeyF",36,"F",70,"VK_F",c,c],[37,0,16,"KeyG",37,"G",71,"VK_G",c,c],[38,0,17,"KeyH",38,"H",72,"VK_H",c,c],[39,0,18,"KeyI",39,"I",73,"VK_I",c,c],[40,0,19,"KeyJ",40,"J",74,"VK_J",c,c],[41,0,20,"KeyK",41,"K",75,"VK_K",c,c],[42,0,21,"KeyL",42,"L",76,"VK_L",c,c],[43,0,22,"KeyM",43,"M",77,"VK_M",c,c],[44,0,23,"KeyN",44,"N",78,"VK_N",c,c],[45,0,24,"KeyO",45,"O",79,"VK_O",c,c],[46,0,25,"KeyP",46,"P",80,"VK_P",c,c],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",c,c],[48,0,27,"KeyR",48,"R",82,"VK_R",c,c],[49,0,28,"KeyS",49,"S",83,"VK_S",c,c],[50,0,29,"KeyT",50,"T",84,"VK_T",c,c],[51,0,30,"KeyU",51,"U",85,"VK_U",c,c],[52,0,31,"KeyV",52,"V",86,"VK_V",c,c],[53,0,32,"KeyW",53,"W",87,"VK_W",c,c],[54,0,33,"KeyX",54,"X",88,"VK_X",c,c],[55,0,34,"KeyY",55,"Y",89,"VK_Y",c,c],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",c,c],[22,0,36,"Digit1",22,"1",49,"VK_1",c,c],[23,0,37,"Digit2",23,"2",50,"VK_2",c,c],[24,0,38,"Digit3",24,"3",51,"VK_3",c,c],[25,0,39,"Digit4",25,"4",52,"VK_4",c,c],[26,0,40,"Digit5",26,"5",53,"VK_5",c,c],[27,0,41,"Digit6",27,"6",54,"VK_6",c,c],[28,0,42,"Digit7",28,"7",55,"VK_7",c,c],[29,0,43,"Digit8",29,"8",56,"VK_8",c,c],[30,0,44,"Digit9",30,"9",57,"VK_9",c,c],[21,0,45,"Digit0",21,"0",48,"VK_0",c,c],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",c,c],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",c,c],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",c,c],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",c,c],[10,1,50,"Space",10,"Space",32,"VK_SPACE",c,c],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,c,0,c,c,c],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",c,c],[59,1,64,"F1",59,"F1",112,"VK_F1",c,c],[60,1,65,"F2",60,"F2",113,"VK_F2",c,c],[61,1,66,"F3",61,"F3",114,"VK_F3",c,c],[62,1,67,"F4",62,"F4",115,"VK_F4",c,c],[63,1,68,"F5",63,"F5",116,"VK_F5",c,c],[64,1,69,"F6",64,"F6",117,"VK_F6",c,c],[65,1,70,"F7",65,"F7",118,"VK_F7",c,c],[66,1,71,"F8",66,"F8",119,"VK_F8",c,c],[67,1,72,"F9",67,"F9",120,"VK_F9",c,c],[68,1,73,"F10",68,"F10",121,"VK_F10",c,c],[69,1,74,"F11",69,"F11",122,"VK_F11",c,c],[70,1,75,"F12",70,"F12",123,"VK_F12",c,c],[0,1,76,"PrintScreen",0,c,0,c,c,c],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",c,c],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",c,c],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",c,c],[14,1,80,"Home",14,"Home",36,"VK_HOME",c,c],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",c,c],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",c,c],[13,1,83,"End",13,"End",35,"VK_END",c,c],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",c,c],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",c],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",c],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",c],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",c],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",c,c],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",c,c],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",c,c],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",c,c],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",c,c],[3,1,94,"NumpadEnter",3,c,0,c,c,c],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",c,c],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",c,c],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",c,c],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",c,c],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",c,c],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",c,c],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",c,c],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",c,c],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",c,c],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",c,c],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",c,c],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",c,c],[58,1,107,"ContextMenu",58,"ContextMenu",93,c,c,c],[0,1,108,"Power",0,c,0,c,c,c],[0,1,109,"NumpadEqual",0,c,0,c,c,c],[71,1,110,"F13",71,"F13",124,"VK_F13",c,c],[72,1,111,"F14",72,"F14",125,"VK_F14",c,c],[73,1,112,"F15",73,"F15",126,"VK_F15",c,c],[74,1,113,"F16",74,"F16",127,"VK_F16",c,c],[75,1,114,"F17",75,"F17",128,"VK_F17",c,c],[76,1,115,"F18",76,"F18",129,"VK_F18",c,c],[77,1,116,"F19",77,"F19",130,"VK_F19",c,c],[0,1,117,"F20",0,c,0,"VK_F20",c,c],[0,1,118,"F21",0,c,0,"VK_F21",c,c],[0,1,119,"F22",0,c,0,"VK_F22",c,c],[0,1,120,"F23",0,c,0,"VK_F23",c,c],[0,1,121,"F24",0,c,0,"VK_F24",c,c],[0,1,122,"Open",0,c,0,c,c,c],[0,1,123,"Help",0,c,0,c,c,c],[0,1,124,"Select",0,c,0,c,c,c],[0,1,125,"Again",0,c,0,c,c,c],[0,1,126,"Undo",0,c,0,c,c,c],[0,1,127,"Cut",0,c,0,c,c,c],[0,1,128,"Copy",0,c,0,c,c,c],[0,1,129,"Paste",0,c,0,c,c,c],[0,1,130,"Find",0,c,0,c,c,c],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",c,c],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",c,c],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",c,c],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",c,c],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",c,c],[0,1,136,"KanaMode",0,c,0,c,c,c],[0,0,137,"IntlYen",0,c,0,c,c,c],[0,1,138,"Convert",0,c,0,c,c,c],[0,1,139,"NonConvert",0,c,0,c,c,c],[0,1,140,"Lang1",0,c,0,c,c,c],[0,1,141,"Lang2",0,c,0,c,c,c],[0,1,142,"Lang3",0,c,0,c,c,c],[0,1,143,"Lang4",0,c,0,c,c,c],[0,1,144,"Lang5",0,c,0,c,c,c],[0,1,145,"Abort",0,c,0,c,c,c],[0,1,146,"Props",0,c,0,c,c,c],[0,1,147,"NumpadParenLeft",0,c,0,c,c,c],[0,1,148,"NumpadParenRight",0,c,0,c,c,c],[0,1,149,"NumpadBackspace",0,c,0,c,c,c],[0,1,150,"NumpadMemoryStore",0,c,0,c,c,c],[0,1,151,"NumpadMemoryRecall",0,c,0,c,c,c],[0,1,152,"NumpadMemoryClear",0,c,0,c,c,c],[0,1,153,"NumpadMemoryAdd",0,c,0,c,c,c],[0,1,154,"NumpadMemorySubtract",0,c,0,c,c,c],[0,1,155,"NumpadClear",0,c,0,c,c,c],[0,1,156,"NumpadClearEntry",0,c,0,c,c,c],[5,1,0,c,5,"Ctrl",17,"VK_CONTROL",c,c],[4,1,0,c,4,"Shift",16,"VK_SHIFT",c,c],[6,1,0,c,6,"Alt",18,"VK_MENU",c,c],[57,1,0,c,57,"Meta",0,"VK_COMMAND",c,c],[5,1,157,"ControlLeft",5,c,0,"VK_LCONTROL",c,c],[4,1,158,"ShiftLeft",4,c,0,"VK_LSHIFT",c,c],[6,1,159,"AltLeft",6,c,0,"VK_LMENU",c,c],[57,1,160,"MetaLeft",57,c,0,"VK_LWIN",c,c],[5,1,161,"ControlRight",5,c,0,"VK_RCONTROL",c,c],[4,1,162,"ShiftRight",4,c,0,"VK_RSHIFT",c,c],[6,1,163,"AltRight",6,c,0,"VK_RMENU",c,c],[57,1,164,"MetaRight",57,c,0,"VK_RWIN",c,c],[0,1,165,"BrightnessUp",0,c,0,c,c,c],[0,1,166,"BrightnessDown",0,c,0,c,c,c],[0,1,167,"MediaPlay",0,c,0,c,c,c],[0,1,168,"MediaRecord",0,c,0,c,c,c],[0,1,169,"MediaFastForward",0,c,0,c,c,c],[0,1,170,"MediaRewind",0,c,0,c,c,c],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",c,c],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",c,c],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",c,c],[0,1,174,"Eject",0,c,0,c,c,c],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",c,c],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",c,c],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",c,c],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",c,c],[0,1,179,"LaunchApp1",0,c,0,"VK_MEDIA_LAUNCH_APP1",c,c],[0,1,180,"SelectTask",0,c,0,c,c,c],[0,1,181,"LaunchScreenSaver",0,c,0,c,c,c],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",c,c],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",c,c],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",c,c],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",c,c],[0,1,186,"BrowserStop",0,c,0,"VK_BROWSER_STOP",c,c],[0,1,187,"BrowserRefresh",0,c,0,"VK_BROWSER_REFRESH",c,c],[0,1,188,"BrowserFavorites",0,c,0,"VK_BROWSER_FAVORITES",c,c],[0,1,189,"ZoomToggle",0,c,0,c,c,c],[0,1,190,"MailReply",0,c,0,c,c,c],[0,1,191,"MailForward",0,c,0,c,c,c],[0,1,192,"MailSend",0,c,0,c,c,c],[109,1,0,c,109,"KeyInComposition",229,c,c,c],[111,1,0,c,111,"ABNT_C2",194,"VK_ABNT_C2",c,c],[91,1,0,c,91,"OEM_8",223,"VK_OEM_8",c,c],[0,1,0,c,0,c,0,"VK_CLEAR",c,c],[0,1,0,c,0,c,0,"VK_KANA",c,c],[0,1,0,c,0,c,0,"VK_HANGUL",c,c],[0,1,0,c,0,c,0,"VK_JUNJA",c,c],[0,1,0,c,0,c,0,"VK_FINAL",c,c],[0,1,0,c,0,c,0,"VK_HANJA",c,c],[0,1,0,c,0,c,0,"VK_KANJI",c,c],[0,1,0,c,0,c,0,"VK_CONVERT",c,c],[0,1,0,c,0,c,0,"VK_NONCONVERT",c,c],[0,1,0,c,0,c,0,"VK_ACCEPT",c,c],[0,1,0,c,0,c,0,"VK_MODECHANGE",c,c],[0,1,0,c,0,c,0,"VK_SELECT",c,c],[0,1,0,c,0,c,0,"VK_PRINT",c,c],[0,1,0,c,0,c,0,"VK_EXECUTE",c,c],[0,1,0,c,0,c,0,"VK_SNAPSHOT",c,c],[0,1,0,c,0,c,0,"VK_HELP",c,c],[0,1,0,c,0,c,0,"VK_APPS",c,c],[0,1,0,c,0,c,0,"VK_PROCESSKEY",c,c],[0,1,0,c,0,c,0,"VK_PACKET",c,c],[0,1,0,c,0,c,0,"VK_DBE_SBCSCHAR",c,c],[0,1,0,c,0,c,0,"VK_DBE_DBCSCHAR",c,c],[0,1,0,c,0,c,0,"VK_ATTN",c,c],[0,1,0,c,0,c,0,"VK_CRSEL",c,c],[0,1,0,c,0,c,0,"VK_EXSEL",c,c],[0,1,0,c,0,c,0,"VK_EREOF",c,c],[0,1,0,c,0,c,0,"VK_PLAY",c,c],[0,1,0,c,0,c,0,"VK_ZOOM",c,c],[0,1,0,c,0,c,0,"VK_NONAME",c,c],[0,1,0,c,0,c,0,"VK_PA1",c,c],[0,1,0,c,0,c,0,"VK_OEM_CLEAR",c,c]];let ae=[],je=[];for(const _n of h){const[Nn,er,pr,kr,Er,gt,rt,ma,Ai,Ba]=_n;if(je[pr]||(je[pr]=!0,Pi[pr]=kr,Po[kr]=pr,Jn[kr.toLowerCase()]=pr,er&&(zo[pr]=Er,Er!==0&&Er!==3&&Er!==5&&Er!==4&&Er!==6&&Er!==57&&(Es[Er]=pr))),!ae[Er]){if(ae[Er]=!0,!gt)throw new Error(`String representation missing for key code ${Er} around scan code ${kr}`);Ia.define(Er,gt),hi.define(Er,Ai||gt),yo.define(Er,Ba||Ai||gt)}rt&&(Oo[rt]=Er),ma&&(ys[ma]=Er)}Es[3]=46})();var Rs;(function(c){function h(pr){return Ia.keyCodeToStr(pr)}c.toString=h;function ae(pr){return Ia.strToKeyCode(pr)}c.fromString=ae;function je(pr){return hi.keyCodeToStr(pr)}c.toUserSettingsUS=je;function _n(pr){return yo.keyCodeToStr(pr)}c.toUserSettingsGeneral=_n;function Nn(pr){return hi.strToKeyCode(pr)||yo.strToKeyCode(pr)}c.fromUserSettings=Nn;function er(pr){if(pr>=93&&pr<=108)return null;switch(pr){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Ia.keyCodeToStr(pr)}c.toElectronAccelerator=er})(Rs||(Rs={}));function pu(c,h){const ae=(h&65535)<<16>>>0;return(c|ae)>>>0}class ol extends et{constructor(h,ae,je,_n){super(h,ae,je,_n),this.selectionStartLineNumber=h,this.selectionStartColumn=ae,this.positionLineNumber=je,this.positionColumn=_n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(h){return ol.selectionsEqual(this,h)}static selectionsEqual(h,ae){return h.selectionStartLineNumber===ae.selectionStartLineNumber&&h.selectionStartColumn===ae.selectionStartColumn&&h.positionLineNumber===ae.positionLineNumber&&h.positionColumn===ae.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(h,ae){return this.getDirection()===0?new ol(this.startLineNumber,this.startColumn,h,ae):new ol(h,ae,this.startLineNumber,this.startColumn)}getPosition(){return new Fn(this.positionLineNumber,this.positionColumn)}setStartPosition(h,ae){return this.getDirection()===0?new ol(h,ae,this.endLineNumber,this.endColumn):new ol(this.endLineNumber,this.endColumn,h,ae)}static fromPositions(h,ae=h){return new ol(h.lineNumber,h.column,ae.lineNumber,ae.column)}static liftSelection(h){return new ol(h.selectionStartLineNumber,h.selectionStartColumn,h.positionLineNumber,h.positionColumn)}static selectionsArrEqual(h,ae){if(h&&!ae||!h&&ae)return!1;if(!h&&!ae)return!0;if(h.length!==ae.length)return!1;for(let je=0,_n=h.length;je<_n;je++)if(!this.selectionsEqual(h[je],ae[je]))return!1;return!0}static isISelection(h){return h&&typeof h.selectionStartLineNumber=="number"&&typeof h.selectionStartColumn=="number"&&typeof h.positionLineNumber=="number"&&typeof h.positionColumn=="number"}static createWithDirection(h,ae,je,_n,Nn){return Nn===0?new ol(h,ae,je,_n):new ol(je,_n,h,ae)}}class mu{constructor(h,ae,je){this._tokenBrand=void 0,this.offset=h|0,this.type=ae,this.language=je}toString(){return"("+this.offset+", "+this.type+")"}}class fo{constructor(h,ae){this._tokenizationResultBrand=void 0,this.tokens=h,this.endState=ae}}class tl{constructor(h,ae){this._tokenizationResult2Brand=void 0,this.tokens=h,this.endState=ae}}var zc;(function(c){c[c.Unknown=0]="Unknown",c[c.Disabled=1]="Disabled",c[c.Enabled=2]="Enabled"})(zc||(zc={}));var _u;(function(c){c[c.KeepWhitespace=1]="KeepWhitespace",c[c.InsertAsSnippet=4]="InsertAsSnippet"})(_u||(_u={}));var qc;(function(c){c[c.Method=0]="Method",c[c.Function=1]="Function",c[c.Constructor=2]="Constructor",c[c.Field=3]="Field",c[c.Variable=4]="Variable",c[c.Class=5]="Class",c[c.Struct=6]="Struct",c[c.Interface=7]="Interface",c[c.Module=8]="Module",c[c.Property=9]="Property",c[c.Event=10]="Event",c[c.Operator=11]="Operator",c[c.Unit=12]="Unit",c[c.Value=13]="Value",c[c.Constant=14]="Constant",c[c.Enum=15]="Enum",c[c.EnumMember=16]="EnumMember",c[c.Keyword=17]="Keyword",c[c.Text=18]="Text",c[c.Color=19]="Color",c[c.File=20]="File",c[c.Reference=21]="Reference",c[c.Customcolor=22]="Customcolor",c[c.Folder=23]="Folder",c[c.TypeParameter=24]="TypeParameter",c[c.User=25]="User",c[c.Issue=26]="Issue",c[c.Snippet=27]="Snippet"})(qc||(qc={}));var gu;(function(c){c[c.Deprecated=1]="Deprecated"})(gu||(gu={}));var Xu;(function(c){c[c.Invoke=0]="Invoke",c[c.TriggerCharacter=1]="TriggerCharacter",c[c.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Xu||(Xu={}));var fd;(function(c){c[c.EXACT=0]="EXACT",c[c.ABOVE=1]="ABOVE",c[c.BELOW=2]="BELOW"})(fd||(fd={}));var ic;(function(c){c[c.NotSet=0]="NotSet",c[c.ContentFlush=1]="ContentFlush",c[c.RecoverFromMarkers=2]="RecoverFromMarkers",c[c.Explicit=3]="Explicit",c[c.Paste=4]="Paste",c[c.Undo=5]="Undo",c[c.Redo=6]="Redo"})(ic||(ic={}));var Pu;(function(c){c[c.LF=1]="LF",c[c.CRLF=2]="CRLF"})(Pu||(Pu={}));var Bd;(function(c){c[c.Text=0]="Text",c[c.Read=1]="Read",c[c.Write=2]="Write"})(Bd||(Bd={}));var Za;(function(c){c[c.None=0]="None",c[c.Keep=1]="Keep",c[c.Brackets=2]="Brackets",c[c.Advanced=3]="Advanced",c[c.Full=4]="Full"})(Za||(Za={}));var da;(function(c){c[c.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",c[c.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",c[c.accessibilitySupport=2]="accessibilitySupport",c[c.accessibilityPageSize=3]="accessibilityPageSize",c[c.ariaLabel=4]="ariaLabel",c[c.autoClosingBrackets=5]="autoClosingBrackets",c[c.autoClosingDelete=6]="autoClosingDelete",c[c.autoClosingOvertype=7]="autoClosingOvertype",c[c.autoClosingQuotes=8]="autoClosingQuotes",c[c.autoIndent=9]="autoIndent",c[c.automaticLayout=10]="automaticLayout",c[c.autoSurround=11]="autoSurround",c[c.bracketPairColorization=12]="bracketPairColorization",c[c.guides=13]="guides",c[c.codeLens=14]="codeLens",c[c.codeLensFontFamily=15]="codeLensFontFamily",c[c.codeLensFontSize=16]="codeLensFontSize",c[c.colorDecorators=17]="colorDecorators",c[c.columnSelection=18]="columnSelection",c[c.comments=19]="comments",c[c.contextmenu=20]="contextmenu",c[c.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",c[c.cursorBlinking=22]="cursorBlinking",c[c.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",c[c.cursorStyle=24]="cursorStyle",c[c.cursorSurroundingLines=25]="cursorSurroundingLines",c[c.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",c[c.cursorWidth=27]="cursorWidth",c[c.disableLayerHinting=28]="disableLayerHinting",c[c.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",c[c.domReadOnly=30]="domReadOnly",c[c.dragAndDrop=31]="dragAndDrop",c[c.emptySelectionClipboard=32]="emptySelectionClipboard",c[c.extraEditorClassName=33]="extraEditorClassName",c[c.fastScrollSensitivity=34]="fastScrollSensitivity",c[c.find=35]="find",c[c.fixedOverflowWidgets=36]="fixedOverflowWidgets",c[c.folding=37]="folding",c[c.foldingStrategy=38]="foldingStrategy",c[c.foldingHighlight=39]="foldingHighlight",c[c.foldingImportsByDefault=40]="foldingImportsByDefault",c[c.unfoldOnClickAfterEndOfLine=41]="unfoldOnClickAfterEndOfLine",c[c.fontFamily=42]="fontFamily",c[c.fontInfo=43]="fontInfo",c[c.fontLigatures=44]="fontLigatures",c[c.fontSize=45]="fontSize",c[c.fontWeight=46]="fontWeight",c[c.formatOnPaste=47]="formatOnPaste",c[c.formatOnType=48]="formatOnType",c[c.glyphMargin=49]="glyphMargin",c[c.gotoLocation=50]="gotoLocation",c[c.hideCursorInOverviewRuler=51]="hideCursorInOverviewRuler",c[c.hover=52]="hover",c[c.inDiffEditor=53]="inDiffEditor",c[c.inlineSuggest=54]="inlineSuggest",c[c.letterSpacing=55]="letterSpacing",c[c.lightbulb=56]="lightbulb",c[c.lineDecorationsWidth=57]="lineDecorationsWidth",c[c.lineHeight=58]="lineHeight",c[c.lineNumbers=59]="lineNumbers",c[c.lineNumbersMinChars=60]="lineNumbersMinChars",c[c.linkedEditing=61]="linkedEditing",c[c.links=62]="links",c[c.matchBrackets=63]="matchBrackets",c[c.minimap=64]="minimap",c[c.mouseStyle=65]="mouseStyle",c[c.mouseWheelScrollSensitivity=66]="mouseWheelScrollSensitivity",c[c.mouseWheelZoom=67]="mouseWheelZoom",c[c.multiCursorMergeOverlapping=68]="multiCursorMergeOverlapping",c[c.multiCursorModifier=69]="multiCursorModifier",c[c.multiCursorPaste=70]="multiCursorPaste",c[c.occurrencesHighlight=71]="occurrencesHighlight",c[c.overviewRulerBorder=72]="overviewRulerBorder",c[c.overviewRulerLanes=73]="overviewRulerLanes",c[c.padding=74]="padding",c[c.parameterHints=75]="parameterHints",c[c.peekWidgetDefaultFocus=76]="peekWidgetDefaultFocus",c[c.definitionLinkOpensInPeek=77]="definitionLinkOpensInPeek",c[c.quickSuggestions=78]="quickSuggestions",c[c.quickSuggestionsDelay=79]="quickSuggestionsDelay",c[c.readOnly=80]="readOnly",c[c.renameOnType=81]="renameOnType",c[c.renderControlCharacters=82]="renderControlCharacters",c[c.renderFinalNewline=83]="renderFinalNewline",c[c.renderLineHighlight=84]="renderLineHighlight",c[c.renderLineHighlightOnlyWhenFocus=85]="renderLineHighlightOnlyWhenFocus",c[c.renderValidationDecorations=86]="renderValidationDecorations",c[c.renderWhitespace=87]="renderWhitespace",c[c.revealHorizontalRightPadding=88]="revealHorizontalRightPadding",c[c.roundedSelection=89]="roundedSelection",c[c.rulers=90]="rulers",c[c.scrollbar=91]="scrollbar",c[c.scrollBeyondLastColumn=92]="scrollBeyondLastColumn",c[c.scrollBeyondLastLine=93]="scrollBeyondLastLine",c[c.scrollPredominantAxis=94]="scrollPredominantAxis",c[c.selectionClipboard=95]="selectionClipboard",c[c.selectionHighlight=96]="selectionHighlight",c[c.selectOnLineNumbers=97]="selectOnLineNumbers",c[c.showFoldingControls=98]="showFoldingControls",c[c.showUnused=99]="showUnused",c[c.snippetSuggestions=100]="snippetSuggestions",c[c.smartSelect=101]="smartSelect",c[c.smoothScrolling=102]="smoothScrolling",c[c.stickyTabStops=103]="stickyTabStops",c[c.stopRenderingLineAfter=104]="stopRenderingLineAfter",c[c.suggest=105]="suggest",c[c.suggestFontSize=106]="suggestFontSize",c[c.suggestLineHeight=107]="suggestLineHeight",c[c.suggestOnTriggerCharacters=108]="suggestOnTriggerCharacters",c[c.suggestSelection=109]="suggestSelection",c[c.tabCompletion=110]="tabCompletion",c[c.tabIndex=111]="tabIndex",c[c.unusualLineTerminators=112]="unusualLineTerminators",c[c.useShadowDOM=113]="useShadowDOM",c[c.useTabStops=114]="useTabStops",c[c.wordSeparators=115]="wordSeparators",c[c.wordWrap=116]="wordWrap",c[c.wordWrapBreakAfterCharacters=117]="wordWrapBreakAfterCharacters",c[c.wordWrapBreakBeforeCharacters=118]="wordWrapBreakBeforeCharacters",c[c.wordWrapColumn=119]="wordWrapColumn",c[c.wordWrapOverride1=120]="wordWrapOverride1",c[c.wordWrapOverride2=121]="wordWrapOverride2",c[c.wrappingIndent=122]="wrappingIndent",c[c.wrappingStrategy=123]="wrappingStrategy",c[c.showDeprecated=124]="showDeprecated",c[c.inlayHints=125]="inlayHints",c[c.editorClassName=126]="editorClassName",c[c.pixelRatio=127]="pixelRatio",c[c.tabFocusMode=128]="tabFocusMode",c[c.layoutInfo=129]="layoutInfo",c[c.wrappingInfo=130]="wrappingInfo"})(da||(da={}));var pc;(function(c){c[c.TextDefined=0]="TextDefined",c[c.LF=1]="LF",c[c.CRLF=2]="CRLF"})(pc||(pc={}));var $o;(function(c){c[c.LF=0]="LF",c[c.CRLF=1]="CRLF"})($o||($o={}));var Yu;(function(c){c[c.None=0]="None",c[c.Indent=1]="Indent",c[c.IndentOutdent=2]="IndentOutdent",c[c.Outdent=3]="Outdent"})(Yu||(Yu={}));var Dc;(function(c){c[c.Other=0]="Other",c[c.Type=1]="Type",c[c.Parameter=2]="Parameter"})(Dc||(Dc={}));var xf;(function(c){c[c.Automatic=0]="Automatic",c[c.Explicit=1]="Explicit"})(xf||(xf={}));var es;(function(c){c[c.DependsOnKbLayout=-1]="DependsOnKbLayout",c[c.Unknown=0]="Unknown",c[c.Backspace=1]="Backspace",c[c.Tab=2]="Tab",c[c.Enter=3]="Enter",c[c.Shift=4]="Shift",c[c.Ctrl=5]="Ctrl",c[c.Alt=6]="Alt",c[c.PauseBreak=7]="PauseBreak",c[c.CapsLock=8]="CapsLock",c[c.Escape=9]="Escape",c[c.Space=10]="Space",c[c.PageUp=11]="PageUp",c[c.PageDown=12]="PageDown",c[c.End=13]="End",c[c.Home=14]="Home",c[c.LeftArrow=15]="LeftArrow",c[c.UpArrow=16]="UpArrow",c[c.RightArrow=17]="RightArrow",c[c.DownArrow=18]="DownArrow",c[c.Insert=19]="Insert",c[c.Delete=20]="Delete",c[c.Digit0=21]="Digit0",c[c.Digit1=22]="Digit1",c[c.Digit2=23]="Digit2",c[c.Digit3=24]="Digit3",c[c.Digit4=25]="Digit4",c[c.Digit5=26]="Digit5",c[c.Digit6=27]="Digit6",c[c.Digit7=28]="Digit7",c[c.Digit8=29]="Digit8",c[c.Digit9=30]="Digit9",c[c.KeyA=31]="KeyA",c[c.KeyB=32]="KeyB",c[c.KeyC=33]="KeyC",c[c.KeyD=34]="KeyD",c[c.KeyE=35]="KeyE",c[c.KeyF=36]="KeyF",c[c.KeyG=37]="KeyG",c[c.KeyH=38]="KeyH",c[c.KeyI=39]="KeyI",c[c.KeyJ=40]="KeyJ",c[c.KeyK=41]="KeyK",c[c.KeyL=42]="KeyL",c[c.KeyM=43]="KeyM",c[c.KeyN=44]="KeyN",c[c.KeyO=45]="KeyO",c[c.KeyP=46]="KeyP",c[c.KeyQ=47]="KeyQ",c[c.KeyR=48]="KeyR",c[c.KeyS=49]="KeyS",c[c.KeyT=50]="KeyT",c[c.KeyU=51]="KeyU",c[c.KeyV=52]="KeyV",c[c.KeyW=53]="KeyW",c[c.KeyX=54]="KeyX",c[c.KeyY=55]="KeyY",c[c.KeyZ=56]="KeyZ",c[c.Meta=57]="Meta",c[c.ContextMenu=58]="ContextMenu",c[c.F1=59]="F1",c[c.F2=60]="F2",c[c.F3=61]="F3",c[c.F4=62]="F4",c[c.F5=63]="F5",c[c.F6=64]="F6",c[c.F7=65]="F7",c[c.F8=66]="F8",c[c.F9=67]="F9",c[c.F10=68]="F10",c[c.F11=69]="F11",c[c.F12=70]="F12",c[c.F13=71]="F13",c[c.F14=72]="F14",c[c.F15=73]="F15",c[c.F16=74]="F16",c[c.F17=75]="F17",c[c.F18=76]="F18",c[c.F19=77]="F19",c[c.NumLock=78]="NumLock",c[c.ScrollLock=79]="ScrollLock",c[c.Semicolon=80]="Semicolon",c[c.Equal=81]="Equal",c[c.Comma=82]="Comma",c[c.Minus=83]="Minus",c[c.Period=84]="Period",c[c.Slash=85]="Slash",c[c.Backquote=86]="Backquote",c[c.BracketLeft=87]="BracketLeft",c[c.Backslash=88]="Backslash",c[c.BracketRight=89]="BracketRight",c[c.Quote=90]="Quote",c[c.OEM_8=91]="OEM_8",c[c.IntlBackslash=92]="IntlBackslash",c[c.Numpad0=93]="Numpad0",c[c.Numpad1=94]="Numpad1",c[c.Numpad2=95]="Numpad2",c[c.Numpad3=96]="Numpad3",c[c.Numpad4=97]="Numpad4",c[c.Numpad5=98]="Numpad5",c[c.Numpad6=99]="Numpad6",c[c.Numpad7=100]="Numpad7",c[c.Numpad8=101]="Numpad8",c[c.Numpad9=102]="Numpad9",c[c.NumpadMultiply=103]="NumpadMultiply",c[c.NumpadAdd=104]="NumpadAdd",c[c.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",c[c.NumpadSubtract=106]="NumpadSubtract",c[c.NumpadDecimal=107]="NumpadDecimal",c[c.NumpadDivide=108]="NumpadDivide",c[c.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",c[c.ABNT_C1=110]="ABNT_C1",c[c.ABNT_C2=111]="ABNT_C2",c[c.AudioVolumeMute=112]="AudioVolumeMute",c[c.AudioVolumeUp=113]="AudioVolumeUp",c[c.AudioVolumeDown=114]="AudioVolumeDown",c[c.BrowserSearch=115]="BrowserSearch",c[c.BrowserHome=116]="BrowserHome",c[c.BrowserBack=117]="BrowserBack",c[c.BrowserForward=118]="BrowserForward",c[c.MediaTrackNext=119]="MediaTrackNext",c[c.MediaTrackPrevious=120]="MediaTrackPrevious",c[c.MediaStop=121]="MediaStop",c[c.MediaPlayPause=122]="MediaPlayPause",c[c.LaunchMediaPlayer=123]="LaunchMediaPlayer",c[c.LaunchMail=124]="LaunchMail",c[c.LaunchApp2=125]="LaunchApp2",c[c.MAX_VALUE=126]="MAX_VALUE"})(es||(es={}));var If;(function(c){c[c.Hint=1]="Hint",c[c.Info=2]="Info",c[c.Warning=4]="Warning",c[c.Error=8]="Error"})(If||(If={}));var Qs;(function(c){c[c.Unnecessary=1]="Unnecessary",c[c.Deprecated=2]="Deprecated"})(Qs||(Qs={}));var Gc;(function(c){c[c.Inline=1]="Inline",c[c.Gutter=2]="Gutter"})(Gc||(Gc={}));var Ks;(function(c){c[c.UNKNOWN=0]="UNKNOWN",c[c.TEXTAREA=1]="TEXTAREA",c[c.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",c[c.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",c[c.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",c[c.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",c[c.CONTENT_TEXT=6]="CONTENT_TEXT",c[c.CONTENT_EMPTY=7]="CONTENT_EMPTY",c[c.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",c[c.CONTENT_WIDGET=9]="CONTENT_WIDGET",c[c.OVERVIEW_RULER=10]="OVERVIEW_RULER",c[c.SCROLLBAR=11]="SCROLLBAR",c[c.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",c[c.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Ks||(Ks={}));var rc;(function(c){c[c.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",c[c.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",c[c.TOP_CENTER=2]="TOP_CENTER"})(rc||(rc={}));var mf;(function(c){c[c.Left=1]="Left",c[c.Center=2]="Center",c[c.Right=4]="Right",c[c.Full=7]="Full"})(mf||(mf={}));var _f;(function(c){c[c.Off=0]="Off",c[c.On=1]="On",c[c.Relative=2]="Relative",c[c.Interval=3]="Interval",c[c.Custom=4]="Custom"})(_f||(_f={}));var vu;(function(c){c[c.None=0]="None",c[c.Text=1]="Text",c[c.Blocks=2]="Blocks"})(vu||(vu={}));var Qu;(function(c){c[c.Smooth=0]="Smooth",c[c.Immediate=1]="Immediate"})(Qu||(Qu={}));var gf;(function(c){c[c.Auto=1]="Auto",c[c.Hidden=2]="Hidden",c[c.Visible=3]="Visible"})(gf||(gf={}));var Nf;(function(c){c[c.LTR=0]="LTR",c[c.RTL=1]="RTL"})(Nf||(Nf={}));var kf;(function(c){c[c.Invoke=1]="Invoke",c[c.TriggerCharacter=2]="TriggerCharacter",c[c.ContentChange=3]="ContentChange"})(kf||(kf={}));var dd;(function(c){c[c.File=0]="File",c[c.Module=1]="Module",c[c.Namespace=2]="Namespace",c[c.Package=3]="Package",c[c.Class=4]="Class",c[c.Method=5]="Method",c[c.Property=6]="Property",c[c.Field=7]="Field",c[c.Constructor=8]="Constructor",c[c.Enum=9]="Enum",c[c.Interface=10]="Interface",c[c.Function=11]="Function",c[c.Variable=12]="Variable",c[c.Constant=13]="Constant",c[c.String=14]="String",c[c.Number=15]="Number",c[c.Boolean=16]="Boolean",c[c.Array=17]="Array",c[c.Object=18]="Object",c[c.Key=19]="Key",c[c.Null=20]="Null",c[c.EnumMember=21]="EnumMember",c[c.Struct=22]="Struct",c[c.Event=23]="Event",c[c.Operator=24]="Operator",c[c.TypeParameter=25]="TypeParameter"})(dd||(dd={}));var pd;(function(c){c[c.Deprecated=1]="Deprecated"})(pd||(pd={}));var Rf;(function(c){c[c.Hidden=0]="Hidden",c[c.Blink=1]="Blink",c[c.Smooth=2]="Smooth",c[c.Phase=3]="Phase",c[c.Expand=4]="Expand",c[c.Solid=5]="Solid"})(Rf||(Rf={}));var Of;(function(c){c[c.Line=1]="Line",c[c.Block=2]="Block",c[c.Underline=3]="Underline",c[c.LineThin=4]="LineThin",c[c.BlockOutline=5]="BlockOutline",c[c.UnderlineThin=6]="UnderlineThin"})(Of||(Of={}));var md;(function(c){c[c.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",c[c.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",c[c.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",c[c.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(md||(md={}));var Zu;(function(c){c[c.None=0]="None",c[c.Same=1]="Same",c[c.Indent=2]="Indent",c[c.DeepIndent=3]="DeepIndent"})(Zu||(Zu={}));class Xc{static chord(h,ae){return pu(h,ae)}}Xc.CtrlCmd=2048,Xc.Shift=1024,Xc.Alt=512,Xc.WinCtrl=256;function Pf(){return{editor:void 0,languages:void 0,CancellationTokenSource:Wr,Emitter:Ae,KeyCode:es,KeyMod:Xc,Position:Fn,Range:et,Selection:ol,SelectionDirection:Nf,MarkerSeverity:If,MarkerTag:Qs,Uri:ws,Token:mu}}var Jl=function(c,h,ae,je){function _n(Nn){return Nn instanceof ae?Nn:new ae(function(er){er(Nn)})}return new(ae||(ae=Promise))(function(Nn,er){function pr(gt){try{Er(je.next(gt))}catch(rt){er(rt)}}function kr(gt){try{Er(je.throw(gt))}catch(rt){er(rt)}}function Er(gt){gt.done?Nn(gt.value):_n(gt.value).then(pr,kr)}Er((je=je.apply(c,h||[])).next())})};class $u extends Zl{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(h){return this._lines[h-1]}getWordAtPosition(h,ae){let je=Or(h.column,kn(ae),this._lines[h.lineNumber-1],0);return je?new et(h.lineNumber,je.startColumn,h.lineNumber,je.endColumn):null}words(h){const ae=this._lines,je=this._wordenize.bind(this);let _n=0,Nn="",er=0,pr=[];return{*[Symbol.iterator](){for(;;)if(er<pr.length){const kr=Nn.substring(pr[er].start,pr[er].end);er+=1,yield kr}else if(_n<ae.length)Nn=ae[_n],pr=je(Nn,h),er=0,_n+=1;else break}}}getLineWords(h,ae){let je=this._lines[h-1],_n=this._wordenize(je,ae),Nn=[];for(const er of _n)Nn.push({word:je.substring(er.start,er.end),startColumn:er.start+1,endColumn:er.end+1});return Nn}_wordenize(h,ae){const je=[];let _n;for(ae.lastIndex=0;(_n=ae.exec(h))&&_n[0].length!==0;)je.push({start:_n.index,end:_n.index+_n[0].length});return je}getValueInRange(h){if(h=this._validateRange(h),h.startLineNumber===h.endLineNumber)return this._lines[h.startLineNumber-1].substring(h.startColumn-1,h.endColumn-1);let ae=this._eol,je=h.startLineNumber-1,_n=h.endLineNumber-1,Nn=[];Nn.push(this._lines[je].substring(h.startColumn-1));for(let er=je+1;er<_n;er++)Nn.push(this._lines[er]);return Nn.push(this._lines[_n].substring(0,h.endColumn-1)),Nn.join(ae)}offsetAt(h){return h=this._validatePosition(h),this._ensureLineStarts(),this._lineStarts.getPrefixSum(h.lineNumber-2)+(h.column-1)}positionAt(h){h=Math.floor(h),h=Math.max(0,h),this._ensureLineStarts();let ae=this._lineStarts.getIndexOf(h),je=this._lines[ae.index].length;return{lineNumber:1+ae.index,column:1+Math.min(ae.remainder,je)}}_validateRange(h){const ae=this._validatePosition({lineNumber:h.startLineNumber,column:h.startColumn}),je=this._validatePosition({lineNumber:h.endLineNumber,column:h.endColumn});return ae.lineNumber!==h.startLineNumber||ae.column!==h.startColumn||je.lineNumber!==h.endLineNumber||je.column!==h.endColumn?{startLineNumber:ae.lineNumber,startColumn:ae.column,endLineNumber:je.lineNumber,endColumn:je.column}:h}_validatePosition(h){if(!Fn.isIPosition(h))throw new Error("bad position");let{lineNumber:ae,column:je}=h,_n=!1;if(ae<1)ae=1,je=1,_n=!0;else if(ae>this._lines.length)ae=this._lines.length,je=this._lines[ae-1].length+1,_n=!0;else{let Nn=this._lines[ae-1].length+1;je<1?(je=1,_n=!0):je>Nn&&(je=Nn,_n=!0)}return _n?{lineNumber:ae,column:je}:h}}class Yc{constructor(h,ae){this._host=h,this._models=Object.create(null),this._foreignModuleFactory=ae,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(h){return this._models[h]}_getModels(){let h=[];return Object.keys(this._models).forEach(ae=>h.push(this._models[ae])),h}acceptNewModel(h){this._models[h.url]=new $u(ws.parse(h.url),h.lines,h.EOL,h.versionId)}acceptModelChanged(h,ae){if(!this._models[h])return;this._models[h].onEvents(ae)}acceptRemovedModel(h){this._models[h]&&delete this._models[h]}computeDiff(h,ae,je,_n){return Jl(this,void 0,void 0,function*(){const Nn=this._getModel(h),er=this._getModel(ae);if(!Nn||!er)return null;const pr=Nn.getLinesContent(),kr=er.getLinesContent(),gt=new hs(pr,kr,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:je,shouldMakePrettyDiff:!0,maxComputationTime:_n}).computeDiff(),rt=gt.changes.length>0?!1:this._modelsAreIdentical(Nn,er);return{quitEarly:gt.quitEarly,identical:rt,changes:gt.changes}})}_modelsAreIdentical(h,ae){const je=h.getLineCount(),_n=ae.getLineCount();if(je!==_n)return!1;for(let Nn=1;Nn<=je;Nn++){const er=h.getLineContent(Nn),pr=ae.getLineContent(Nn);if(er!==pr)return!1}return!0}computeMoreMinimalEdits(h,ae){return Jl(this,void 0,void 0,function*(){const je=this._getModel(h);if(!je)return ae;const _n=[];let Nn;ae=ae.slice(0).sort((er,pr)=>{if(er.range&&pr.range)return et.compareRangesUsingStarts(er.range,pr.range);let kr=er.range?0:1,Er=pr.range?0:1;return kr-Er});for(let{range:er,text:pr,eol:kr}of ae){if(typeof kr=="number"&&(Nn=kr),et.isEmpty(er)&&!pr)continue;const Er=je.getValueInRange(er);if(pr=pr.replace(/\r\n|\n|\r/g,je.eol),Er===pr)continue;if(Math.max(pr.length,Er.length)>Yc._diffLimit){_n.push({range:er,text:pr});continue}const gt=qi(Er,pr,!1),rt=je.offsetAt(et.lift(er).getStartPosition());for(const ma of gt){const Ai=je.positionAt(rt+ma.originalStart),Ba=je.positionAt(rt+ma.originalStart+ma.originalLength),_i={text:pr.substr(ma.modifiedStart,ma.modifiedLength),range:{startLineNumber:Ai.lineNumber,startColumn:Ai.column,endLineNumber:Ba.lineNumber,endColumn:Ba.column}};je.getValueInRange(_i.range)!==_i.text&&_n.push(_i)}}return typeof Nn=="number"&&_n.push({eol:Nn,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),_n})}computeLinks(h){return Jl(this,void 0,void 0,function*(){let ae=this._getModel(h);return ae?Fi(ae):null})}textualSuggest(h,ae,je,_n){return Jl(this,void 0,void 0,function*(){const Nn=new M(!0),er=new RegExp(je,_n),pr=new Set;e:for(let kr of h){const Er=this._getModel(kr);if(Er){for(let gt of Er.words(er))if(!(gt===ae||!isNaN(Number(gt)))&&(pr.add(gt),pr.size>Yc._suggestionsLimit))break e}}return{words:Array.from(pr),duration:Nn.elapsed()}})}computeWordRanges(h,ae,je,_n){return Jl(this,void 0,void 0,function*(){let Nn=this._getModel(h);if(!Nn)return Object.create(null);const er=new RegExp(je,_n),pr=Object.create(null);for(let kr=ae.startLineNumber;kr<ae.endLineNumber;kr++){let Er=Nn.getLineWords(kr,er);for(const gt of Er){if(!isNaN(Number(gt.word)))continue;let rt=pr[gt.word];rt||(rt=[],pr[gt.word]=rt),rt.push({startLineNumber:kr,startColumn:gt.startColumn,endLineNumber:kr,endColumn:gt.endColumn})}}return pr})}navigateValueSet(h,ae,je,_n,Nn){return Jl(this,void 0,void 0,function*(){let er=this._getModel(h);if(!er)return null;let pr=new RegExp(_n,Nn);ae.startColumn===ae.endColumn&&(ae={startLineNumber:ae.startLineNumber,startColumn:ae.startColumn,endLineNumber:ae.endLineNumber,endColumn:ae.endColumn+1});let kr=er.getValueInRange(ae),Er=er.getWordAtPosition({lineNumber:ae.startLineNumber,column:ae.startColumn},pr);if(!Er)return null;let gt=er.getValueInRange(Er);return he.INSTANCE.navigateValueSet(ae,kr,Er,gt,je)})}loadForeignModule(h,ae,je){let er={host:fn(je,(pr,kr)=>this._host.fhr(pr,kr)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(er,ae),Promise.resolve(Un(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(h,ae){if(!this._foreignModule||typeof this._foreignModule[h]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+h));try{return Promise.resolve(this._foreignModule[h].apply(this._foreignModule,ae))}catch(je){return Promise.reject(je)}}}Yc._diffLimit=1e5,Yc._suggestionsLimit=1e4;function Ud(c){return new Yc(c,null)}typeof importScripts=="function"&&(oe.monaco=Pf());let Lc=!1;function mc(c){if(Lc)return;Lc=!0;const h=new vt(ae=>{self.postMessage(ae)},ae=>new Yc(ae,c));self.onmessage=ae=>{h.onmessage(ae.data)}}self.onmessage=c=>{Lc||mc(null)};var oc=wd(647),Ti={};Ti["lib.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es5" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
`,Ti["lib.dom.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Window APIs
/////////////////////////////
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
signal?: AbortSignal;
}
interface AesCbcParams extends Algorithm {
iv: BufferSource;
}
interface AesCtrParams extends Algorithm {
counter: BufferSource;
length: number;
}
interface AesDerivedKeyParams extends Algorithm {
length: number;
}
interface AesGcmParams extends Algorithm {
additionalData?: BufferSource;
iv: BufferSource;
tagLength?: number;
}
interface AesKeyAlgorithm extends KeyAlgorithm {
length: number;
}
interface AesKeyGenParams extends Algorithm {
length: number;
}
interface Algorithm {
name: string;
}
interface AnalyserOptions extends AudioNodeOptions {
fftSize?: number;
maxDecibels?: number;
minDecibels?: number;
smoothingTimeConstant?: number;
}
interface AnimationEventInit extends EventInit {
animationName?: string;
elapsedTime?: number;
pseudoElement?: string;
}
interface AnimationPlaybackEventInit extends EventInit {
currentTime?: number | null;
timelineTime?: number | null;
}
interface AssignedNodesOptions {
flatten?: boolean;
}
interface AudioBufferOptions {
length: number;
numberOfChannels?: number;
sampleRate: number;
}
interface AudioBufferSourceOptions {
buffer?: AudioBuffer | null;
detune?: number;
loop?: boolean;
loopEnd?: number;
loopStart?: number;
playbackRate?: number;
}
interface AudioConfiguration {
bitrate?: number;
channels?: string;
contentType: string;
samplerate?: number;
spatialRendering?: boolean;
}
interface AudioContextOptions {
latencyHint?: AudioContextLatencyCategory | number;
sampleRate?: number;
}
interface AudioNodeOptions {
channelCount?: number;
channelCountMode?: ChannelCountMode;
channelInterpretation?: ChannelInterpretation;
}
interface AudioProcessingEventInit extends EventInit {
inputBuffer: AudioBuffer;
outputBuffer: AudioBuffer;
playbackTime: number;
}
interface AudioTimestamp {
contextTime?: number;
performanceTime?: DOMHighResTimeStamp;
}
interface AudioWorkletNodeOptions extends AudioNodeOptions {
numberOfInputs?: number;
numberOfOutputs?: number;
outputChannelCount?: number[];
parameterData?: Record<string, number>;
processorOptions?: any;
}
interface AuthenticationExtensionsClientInputs {
appid?: string;
appidExclude?: string;
credProps?: boolean;
uvm?: boolean;
}
interface AuthenticationExtensionsClientOutputs {
appid?: boolean;
credProps?: CredentialPropertiesOutput;
uvm?: UvmEntries;
}
interface AuthenticatorSelectionCriteria {
authenticatorAttachment?: AuthenticatorAttachment;
requireResidentKey?: boolean;
residentKey?: ResidentKeyRequirement;
userVerification?: UserVerificationRequirement;
}
interface BiquadFilterOptions extends AudioNodeOptions {
Q?: number;
detune?: number;
frequency?: number;
gain?: number;
type?: BiquadFilterType;
}
interface BlobEventInit {
data: Blob;
timecode?: DOMHighResTimeStamp;
}
interface BlobPropertyBag {
endings?: EndingType;
type?: string;
}
interface CSSStyleSheetInit {
baseURL?: string;
disabled?: boolean;
media?: MediaList | string;
}
interface CacheQueryOptions {
ignoreMethod?: boolean;
ignoreSearch?: boolean;
ignoreVary?: boolean;
}
interface CanvasRenderingContext2DSettings {
alpha?: boolean;
colorSpace?: PredefinedColorSpace;
desynchronized?: boolean;
willReadFrequently?: boolean;
}
interface ChannelMergerOptions extends AudioNodeOptions {
numberOfInputs?: number;
}
interface ChannelSplitterOptions extends AudioNodeOptions {
numberOfOutputs?: number;
}
interface ClientQueryOptions {
includeUncontrolled?: boolean;
type?: ClientTypes;
}
interface ClipboardEventInit extends EventInit {
clipboardData?: DataTransfer | null;
}
interface ClipboardItemOptions {
presentationStyle?: PresentationStyle;
}
interface CloseEventInit extends EventInit {
code?: number;
reason?: string;
wasClean?: boolean;
}
interface CompositionEventInit extends UIEventInit {
data?: string;
}
interface ComputedEffectTiming extends EffectTiming {
activeDuration?: CSSNumberish;
currentIteration?: number | null;
endTime?: CSSNumberish;
localTime?: CSSNumberish | null;
progress?: CSSNumberish | null;
startTime?: CSSNumberish;
}
interface ComputedKeyframe {
composite: CompositeOperationOrAuto;
computedOffset: number;
easing: string;
offset: number | null;
[property: string]: string | number | null | undefined;
}
interface ConstantSourceOptions {
offset?: number;
}
interface ConstrainBooleanParameters {
exact?: boolean;
ideal?: boolean;
}
interface ConstrainDOMStringParameters {
exact?: string | string[];
ideal?: string | string[];
}
interface ConstrainDoubleRange extends DoubleRange {
exact?: number;
ideal?: number;
}
interface ConstrainULongRange extends ULongRange {
exact?: number;
ideal?: number;
}
interface ConvolverOptions extends AudioNodeOptions {
buffer?: AudioBuffer | null;
disableNormalization?: boolean;
}
interface CredentialCreationOptions {
publicKey?: PublicKeyCredentialCreationOptions;
signal?: AbortSignal;
}
interface CredentialPropertiesOutput {
rk?: boolean;
}
interface CredentialRequestOptions {
mediation?: CredentialMediationRequirement;
publicKey?: PublicKeyCredentialRequestOptions;
signal?: AbortSignal;
}
interface CryptoKeyPair {
privateKey?: CryptoKey;
publicKey?: CryptoKey;
}
interface CustomEventInit<T = any> extends EventInit {
detail?: T;
}
interface DOMMatrix2DInit {
a?: number;
b?: number;
c?: number;
d?: number;
e?: number;
f?: number;
m11?: number;
m12?: number;
m21?: number;
m22?: number;
m41?: number;
m42?: number;
}
interface DOMMatrixInit extends DOMMatrix2DInit {
is2D?: boolean;
m13?: number;
m14?: number;
m23?: number;
m24?: number;
m31?: number;
m32?: number;
m33?: number;
m34?: number;
m43?: number;
m44?: number;
}
interface DOMPointInit {
w?: number;
x?: number;
y?: number;
z?: number;
}
interface DOMQuadInit {
p1?: DOMPointInit;
p2?: DOMPointInit;
p3?: DOMPointInit;
p4?: DOMPointInit;
}
interface DOMRectInit {
height?: number;
width?: number;
x?: number;
y?: number;
}
interface DelayOptions extends AudioNodeOptions {
delayTime?: number;
maxDelayTime?: number;
}
interface DeviceMotionEventAccelerationInit {
x?: number | null;
y?: number | null;
z?: number | null;
}
interface DeviceMotionEventInit extends EventInit {
acceleration?: DeviceMotionEventAccelerationInit;
accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;
interval?: number;
rotationRate?: DeviceMotionEventRotationRateInit;
}
interface DeviceMotionEventRotationRateInit {
alpha?: number | null;
beta?: number | null;
gamma?: number | null;
}
interface DeviceOrientationEventInit extends EventInit {
absolute?: boolean;
alpha?: number | null;
beta?: number | null;
gamma?: number | null;
}
interface DisplayMediaStreamConstraints {
audio?: boolean | MediaTrackConstraints;
video?: boolean | MediaTrackConstraints;
}
interface DocumentTimelineOptions {
originTime?: DOMHighResTimeStamp;
}
interface DoubleRange {
max?: number;
min?: number;
}
interface DragEventInit extends MouseEventInit {
dataTransfer?: DataTransfer | null;
}
interface DynamicsCompressorOptions extends AudioNodeOptions {
attack?: number;
knee?: number;
ratio?: number;
release?: number;
threshold?: number;
}
interface EcKeyAlgorithm extends KeyAlgorithm {
namedCurve: NamedCurve;
}
interface EcKeyGenParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcKeyImportParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcdhKeyDeriveParams extends Algorithm {
public: CryptoKey;
}
interface EcdsaParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface EffectTiming {
delay?: number;
direction?: PlaybackDirection;
duration?: number | string;
easing?: string;
endDelay?: number;
fill?: FillMode;
iterationStart?: number;
iterations?: number;
playbackRate?: number;
}
interface ElementCreationOptions {
is?: string;
}
interface ElementDefinitionOptions {
extends?: string;
}
interface ErrorEventInit extends EventInit {
colno?: number;
error?: any;
filename?: string;
lineno?: number;
message?: string;
}
interface EventInit {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
}
interface EventListenerOptions {
capture?: boolean;
}
interface EventModifierInit extends UIEventInit {
altKey?: boolean;
ctrlKey?: boolean;
metaKey?: boolean;
modifierAltGraph?: boolean;
modifierCapsLock?: boolean;
modifierFn?: boolean;
modifierFnLock?: boolean;
modifierHyper?: boolean;
modifierNumLock?: boolean;
modifierScrollLock?: boolean;
modifierSuper?: boolean;
modifierSymbol?: boolean;
modifierSymbolLock?: boolean;
shiftKey?: boolean;
}
interface EventSourceInit {
withCredentials?: boolean;
}
interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
interface FileSystemFlags {
create?: boolean;
exclusive?: boolean;
}
interface FocusEventInit extends UIEventInit {
relatedTarget?: EventTarget | null;
}
interface FocusOptions {
preventScroll?: boolean;
}
interface FontFaceDescriptors {
display?: string;
featureSettings?: string;
stretch?: string;
style?: string;
unicodeRange?: string;
variant?: string;
weight?: string;
}
interface FontFaceSetLoadEventInit extends EventInit {
fontfaces?: FontFace[];
}
interface FormDataEventInit extends EventInit {
formData: FormData;
}
interface FullscreenOptions {
navigationUI?: FullscreenNavigationUI;
}
interface GainOptions extends AudioNodeOptions {
gain?: number;
}
interface GamepadEventInit extends EventInit {
gamepad: Gamepad;
}
interface GetAnimationsOptions {
subtree?: boolean;
}
interface GetNotificationOptions {
tag?: string;
}
interface GetRootNodeOptions {
composed?: boolean;
}
interface HashChangeEventInit extends EventInit {
newURL?: string;
oldURL?: string;
}
interface HkdfParams extends Algorithm {
hash: HashAlgorithmIdentifier;
info: BufferSource;
salt: BufferSource;
}
interface HmacImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface HmacKeyAlgorithm extends KeyAlgorithm {
hash: KeyAlgorithm;
length: number;
}
interface HmacKeyGenParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface IDBDatabaseInfo {
name?: string;
version?: number;
}
interface IDBIndexParameters {
multiEntry?: boolean;
unique?: boolean;
}
interface IDBObjectStoreParameters {
autoIncrement?: boolean;
keyPath?: string | string[] | null;
}
interface IDBVersionChangeEventInit extends EventInit {
newVersion?: number | null;
oldVersion?: number;
}
interface IIRFilterOptions extends AudioNodeOptions {
feedback: number[];
feedforward: number[];
}
interface IdleRequestOptions {
timeout?: number;
}
interface ImageBitmapOptions {
colorSpaceConversion?: ColorSpaceConversion;
imageOrientation?: ImageOrientation;
premultiplyAlpha?: PremultiplyAlpha;
resizeHeight?: number;
resizeQuality?: ResizeQuality;
resizeWidth?: number;
}
interface ImageBitmapRenderingContextSettings {
alpha?: boolean;
}
interface ImageDataSettings {
colorSpace?: PredefinedColorSpace;
}
interface ImportMeta {
url: string;
}
interface InputEventInit extends UIEventInit {
data?: string | null;
dataTransfer?: DataTransfer | null;
inputType?: string;
isComposing?: boolean;
targetRanges?: StaticRange[];
}
interface IntersectionObserverEntryInit {
boundingClientRect: DOMRectInit;
intersectionRatio: number;
intersectionRect: DOMRectInit;
isIntersecting: boolean;
rootBounds: DOMRectInit | null;
target: Element;
time: DOMHighResTimeStamp;
}
interface IntersectionObserverInit {
root?: Element | Document | null;
rootMargin?: string;
threshold?: number | number[];
}
interface JsonWebKey {
alg?: string;
crv?: string;
d?: string;
dp?: string;
dq?: string;
e?: string;
ext?: boolean;
k?: string;
key_ops?: string[];
kty?: string;
n?: string;
oth?: RsaOtherPrimesInfo[];
p?: string;
q?: string;
qi?: string;
use?: string;
x?: string;
y?: string;
}
interface KeyAlgorithm {
name: string;
}
interface KeyboardEventInit extends EventModifierInit {
/** @deprecated */
charCode?: number;
code?: string;
isComposing?: boolean;
key?: string;
/** @deprecated */
keyCode?: number;
location?: number;
repeat?: boolean;
}
interface Keyframe {
composite?: CompositeOperationOrAuto;
easing?: string;
offset?: number | null;
[property: string]: string | number | null | undefined;
}
interface KeyframeAnimationOptions extends KeyframeEffectOptions {
id?: string;
}
interface KeyframeEffectOptions extends EffectTiming {
composite?: CompositeOperation;
iterationComposite?: IterationCompositeOperation;
pseudoElement?: string | null;
}
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaDecodingConfiguration;
}
interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaEncodingConfiguration;
}
interface MediaCapabilitiesInfo {
powerEfficient: boolean;
smooth: boolean;
supported: boolean;
}
interface MediaConfiguration {
audio?: AudioConfiguration;
video?: VideoConfiguration;
}
interface MediaDecodingConfiguration extends MediaConfiguration {
type: MediaDecodingType;
}
interface MediaElementAudioSourceOptions {
mediaElement: HTMLMediaElement;
}
interface MediaEncodingConfiguration extends MediaConfiguration {
type: MediaEncodingType;
}
interface MediaEncryptedEventInit extends EventInit {
initData?: ArrayBuffer | null;
initDataType?: string;
}
interface MediaImage {
sizes?: string;
src: string;
type?: string;
}
interface MediaKeyMessageEventInit extends EventInit {
message: ArrayBuffer;
messageType: MediaKeyMessageType;
}
interface MediaKeySystemConfiguration {
audioCapabilities?: MediaKeySystemMediaCapability[];
distinctiveIdentifier?: MediaKeysRequirement;
initDataTypes?: string[];
label?: string;
persistentState?: MediaKeysRequirement;
sessionTypes?: string[];
videoCapabilities?: MediaKeySystemMediaCapability[];
}
interface MediaKeySystemMediaCapability {
contentType?: string;
encryptionScheme?: string | null;
robustness?: string;
}
interface MediaMetadataInit {
album?: string;
artist?: string;
artwork?: MediaImage[];
title?: string;
}
interface MediaPositionState {
duration?: number;
playbackRate?: number;
position?: number;
}
interface MediaQueryListEventInit extends EventInit {
matches?: boolean;
media?: string;
}
interface MediaRecorderErrorEventInit extends EventInit {
error: DOMException;
}
interface MediaRecorderOptions {
audioBitsPerSecond?: number;
bitsPerSecond?: number;
mimeType?: string;
videoBitsPerSecond?: number;
}
interface MediaSessionActionDetails {
action: MediaSessionAction;
fastSeek?: boolean | null;
seekOffset?: number | null;
seekTime?: number | null;
}
interface MediaStreamAudioSourceOptions {
mediaStream: MediaStream;
}
interface MediaStreamConstraints {
audio?: boolean | MediaTrackConstraints;
peerIdentity?: string;
video?: boolean | MediaTrackConstraints;
}
interface MediaStreamTrackEventInit extends EventInit {
track: MediaStreamTrack;
}
interface MediaTrackCapabilities {
aspectRatio?: DoubleRange;
autoGainControl?: boolean[];
channelCount?: ULongRange;
cursor?: string[];
deviceId?: string;
displaySurface?: string;
echoCancellation?: boolean[];
facingMode?: string[];
frameRate?: DoubleRange;
groupId?: string;
height?: ULongRange;
latency?: DoubleRange;
logicalSurface?: boolean;
noiseSuppression?: boolean[];
resizeMode?: string[];
sampleRate?: ULongRange;
sampleSize?: ULongRange;
width?: ULongRange;
}
interface MediaTrackConstraintSet {
aspectRatio?: ConstrainDouble;
channelCount?: ConstrainULong;
deviceId?: ConstrainDOMString;
echoCancellation?: ConstrainBoolean;
facingMode?: ConstrainDOMString;
frameRate?: ConstrainDouble;
groupId?: ConstrainDOMString;
height?: ConstrainULong;
latency?: ConstrainDouble;
sampleRate?: ConstrainULong;
sampleSize?: ConstrainULong;
suppressLocalAudioPlayback?: ConstrainBoolean;
width?: ConstrainULong;
}
interface MediaTrackConstraints extends MediaTrackConstraintSet {
advanced?: MediaTrackConstraintSet[];
}
interface MediaTrackSettings {
aspectRatio?: number;
deviceId?: string;
echoCancellation?: boolean;
facingMode?: string;
frameRate?: number;
groupId?: string;
height?: number;
restrictOwnAudio?: boolean;
sampleRate?: number;
sampleSize?: number;
width?: number;
}
interface MediaTrackSupportedConstraints {
aspectRatio?: boolean;
deviceId?: boolean;
echoCancellation?: boolean;
facingMode?: boolean;
frameRate?: boolean;
groupId?: boolean;
height?: boolean;
sampleRate?: boolean;
sampleSize?: boolean;
suppressLocalAudioPlayback?: boolean;
width?: boolean;
}
interface MessageEventInit<T = any> extends EventInit {
data?: T;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: MessageEventSource | null;
}
interface MouseEventInit extends EventModifierInit {
button?: number;
buttons?: number;
clientX?: number;
clientY?: number;
movementX?: number;
movementY?: number;
relatedTarget?: EventTarget | null;
screenX?: number;
screenY?: number;
}
interface MultiCacheQueryOptions extends CacheQueryOptions {
cacheName?: string;
}
interface MutationObserverInit {
/**
* Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted.
*/
attributeFilter?: string[];
/**
* Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded.
*/
attributeOldValue?: boolean;
/**
* Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified.
*/
attributes?: boolean;
/**
* Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified.
*/
characterData?: boolean;
/**
* Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded.
*/
characterDataOldValue?: boolean;
/**
* Set to true if mutations to target's children are to be observed.
*/
childList?: boolean;
/**
* Set to true if mutations to not just target, but also target's descendants are to be observed.
*/
subtree?: boolean;
}
interface NotificationAction {
action: string;
icon?: string;
title: string;
}
interface NotificationOptions {
actions?: NotificationAction[];
badge?: string;
body?: string;
data?: any;
dir?: NotificationDirection;
icon?: string;
image?: string;
lang?: string;
renotify?: boolean;
requireInteraction?: boolean;
silent?: boolean;
tag?: string;
timestamp?: DOMTimeStamp;
vibrate?: VibratePattern;
}
interface OfflineAudioCompletionEventInit extends EventInit {
renderedBuffer: AudioBuffer;
}
interface OfflineAudioContextOptions {
length: number;
numberOfChannels?: number;
sampleRate: number;
}
interface OptionalEffectTiming {
delay?: number;
direction?: PlaybackDirection;
duration?: number | string;
easing?: string;
endDelay?: number;
fill?: FillMode;
iterationStart?: number;
iterations?: number;
playbackRate?: number;
}
interface OscillatorOptions extends AudioNodeOptions {
detune?: number;
frequency?: number;
periodicWave?: PeriodicWave;
type?: OscillatorType;
}
interface PageTransitionEventInit extends EventInit {
persisted?: boolean;
}
interface PannerOptions extends AudioNodeOptions {
coneInnerAngle?: number;
coneOuterAngle?: number;
coneOuterGain?: number;
distanceModel?: DistanceModelType;
maxDistance?: number;
orientationX?: number;
orientationY?: number;
orientationZ?: number;
panningModel?: PanningModelType;
positionX?: number;
positionY?: number;
positionZ?: number;
refDistance?: number;
rolloffFactor?: number;
}
interface PaymentCurrencyAmount {
currency: string;
value: string;
}
interface PaymentDetailsBase {
displayItems?: PaymentItem[];
modifiers?: PaymentDetailsModifier[];
}
interface PaymentDetailsInit extends PaymentDetailsBase {
id?: string;
total: PaymentItem;
}
interface PaymentDetailsModifier {
additionalDisplayItems?: PaymentItem[];
data?: any;
supportedMethods: string;
total?: PaymentItem;
}
interface PaymentDetailsUpdate extends PaymentDetailsBase {
paymentMethodErrors?: any;
total?: PaymentItem;
}
interface PaymentItem {
amount: PaymentCurrencyAmount;
label: string;
pending?: boolean;
}
interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {
methodDetails?: any;
methodName?: string;
}
interface PaymentMethodData {
data?: any;
supportedMethods: string;
}
interface PaymentRequestUpdateEventInit extends EventInit {
}
interface PaymentValidationErrors {
error?: string;
paymentMethod?: any;
}
interface Pbkdf2Params extends Algorithm {
hash: HashAlgorithmIdentifier;
iterations: number;
salt: BufferSource;
}
interface PerformanceMarkOptions {
detail?: any;
startTime?: DOMHighResTimeStamp;
}
interface PerformanceMeasureOptions {
detail?: any;
duration?: DOMHighResTimeStamp;
end?: string | DOMHighResTimeStamp;
start?: string | DOMHighResTimeStamp;
}
interface PerformanceObserverInit {
buffered?: boolean;
entryTypes?: string[];
type?: string;
}
interface PeriodicWaveConstraints {
disableNormalization?: boolean;
}
interface PeriodicWaveOptions extends PeriodicWaveConstraints {
imag?: number[] | Float32Array;
real?: number[] | Float32Array;
}
interface PermissionDescriptor {
name: PermissionName;
}
interface PointerEventInit extends MouseEventInit {
coalescedEvents?: PointerEvent[];
height?: number;
isPrimary?: boolean;
pointerId?: number;
pointerType?: string;
predictedEvents?: PointerEvent[];
pressure?: number;
tangentialPressure?: number;
tiltX?: number;
tiltY?: number;
twist?: number;
width?: number;
}
interface PopStateEventInit extends EventInit {
state?: any;
}
interface PositionOptions {
enableHighAccuracy?: boolean;
maximumAge?: number;
timeout?: number;
}
interface 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 {
name: string;
}
interface PublicKeyCredentialParameters {
alg: COSEAlgorithmIdentifier;
type: PublicKeyCredentialType;
}
interface PublicKeyCredentialRequestOptions {
allowCredentials?: PublicKeyCredentialDescriptor[];
challenge: BufferSource;
extensions?: AuthenticationExtensionsClientInputs;
rpId?: string;
timeout?: number;
userVerification?: UserVerificationRequirement;
}
interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
id?: string;
}
interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
displayName: string;
id: BufferSource;
}
interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: DOMTimeStamp | null;
keys?: Record<string, string>;
}
interface PushSubscriptionOptionsInit {
applicationServerKey?: BufferSource | string | null;
userVisibleOnly?: boolean;
}
interface QueuingStrategy<T = any> {
highWaterMark?: number;
size?: QueuingStrategySize<T>;
}
interface QueuingStrategyInit {
/**
* Creates a new ByteLengthQueuingStrategy with the provided high water mark.
*
* Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
*/
highWaterMark: number;
}
interface RTCAnswerOptions extends RTCOfferAnswerOptions {
}
interface RTCCertificateExpiration {
expires?: DOMTimeStamp;
}
interface RTCConfiguration {
bundlePolicy?: RTCBundlePolicy;
certificates?: RTCCertificate[];
iceCandidatePoolSize?: number;
iceServers?: RTCIceServer[];
iceTransportPolicy?: RTCIceTransportPolicy;
rtcpMuxPolicy?: RTCRtcpMuxPolicy;
}
interface RTCDTMFToneChangeEventInit extends EventInit {
tone?: string;
}
interface RTCDataChannelEventInit extends EventInit {
channel: RTCDataChannel;
}
interface RTCDataChannelInit {
id?: number;
maxPacketLifeTime?: number;
maxRetransmits?: number;
negotiated?: boolean;
ordered?: boolean;
protocol?: string;
}
interface RTCDtlsFingerprint {
algorithm?: string;
value?: string;
}
interface RTCIceCandidateInit {
candidate?: string;
sdpMLineIndex?: number | null;
sdpMid?: string | null;
usernameFragment?: string | null;
}
interface RTCIceCandidatePairStats extends RTCStats {
availableIncomingBitrate?: number;
availableOutgoingBitrate?: number;
bytesReceived?: number;
bytesSent?: number;
currentRoundTripTime?: number;
localCandidateId: string;
nominated?: boolean;
remoteCandidateId: string;
requestsReceived?: number;
requestsSent?: number;
responsesReceived?: number;
responsesSent?: number;
state: RTCStatsIceCandidatePairState;
totalRoundTripTime?: number;
transportId: string;
}
interface RTCIceServer {
credential?: string;
credentialType?: RTCIceCredentialType;
urls: string | string[];
username?: string;
}
interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
firCount?: number;
framesDecoded?: number;
nackCount?: number;
pliCount?: number;
qpSum?: number;
remoteId?: string;
}
interface RTCLocalSessionDescriptionInit {
sdp?: string;
type?: RTCSdpType;
}
interface RTCOfferAnswerOptions {
}
interface RTCOfferOptions extends RTCOfferAnswerOptions {
iceRestart?: boolean;
offerToReceiveAudio?: boolean;
offerToReceiveVideo?: boolean;
}
interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {
firCount?: number;
framesEncoded?: number;
nackCount?: number;
pliCount?: number;
qpSum?: number;
remoteId?: string;
}
interface RTCPeerConnectionIceErrorEventInit extends EventInit {
address?: string | null;
errorCode: number;
errorText?: string;
port?: number | null;
url?: string;
}
interface RTCPeerConnectionIceEventInit extends EventInit {
candidate?: RTCIceCandidate | null;
url?: string | null;
}
interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
jitter?: number;
packetsDiscarded?: number;
packetsLost?: number;
packetsReceived?: number;
}
interface RTCRtcpParameters {
cname?: string;
reducedSize?: boolean;
}
interface RTCRtpCapabilities {
codecs: RTCRtpCodecCapability[];
headerExtensions: RTCRtpHeaderExtensionCapability[];
}
interface RTCRtpCodecCapability {
channels?: number;
clockRate: number;
mimeType: string;
sdpFmtpLine?: string;
}
interface RTCRtpCodecParameters {
channels?: number;
clockRate: number;
mimeType: string;
payloadType: number;
sdpFmtpLine?: string;
}
interface RTCRtpCodingParameters {
rid?: string;
}
interface RTCRtpContributingSource {
audioLevel?: number;
rtpTimestamp: number;
source: number;
timestamp: DOMHighResTimeStamp;
}
interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
active?: boolean;
maxBitrate?: number;
priority?: RTCPriorityType;
scaleResolutionDownBy?: number;
}
interface RTCRtpHeaderExtensionCapability {
uri?: string;
}
interface RTCRtpHeaderExtensionParameters {
encrypted?: boolean;
id: number;
uri: string;
}
interface RTCRtpParameters {
codecs: RTCRtpCodecParameters[];
headerExtensions: RTCRtpHeaderExtensionParameters[];
rtcp: RTCRtcpParameters;
}
interface RTCRtpReceiveParameters extends RTCRtpParameters {
}
interface RTCRtpSendParameters extends RTCRtpParameters {
degradationPreference?: RTCDegradationPreference;
encodings: RTCRtpEncodingParameters[];
transactionId: string;
}
interface RTCRtpStreamStats extends RTCStats {
codecId?: string;
kind: string;
ssrc: number;
transportId?: string;
}
interface RTCRtpSynchronizationSource extends RTCRtpContributingSource {
}
interface RTCRtpTransceiverInit {
direction?: RTCRtpTransceiverDirection;
sendEncodings?: RTCRtpEncodingParameters[];
streams?: MediaStream[];
}
interface RTCSentRtpStreamStats extends RTCRtpStreamStats {
bytesSent?: number;
packetsSent?: number;
}
interface RTCSessionDescriptionInit {
sdp?: string;
type: RTCSdpType;
}
interface RTCStats {
id: string;
timestamp: DOMHighResTimeStamp;
type: RTCStatsType;
}
interface RTCTrackEventInit extends EventInit {
receiver: RTCRtpReceiver;
streams?: MediaStream[];
track: MediaStreamTrack;
transceiver: RTCRtpTransceiver;
}
interface RTCTransportStats extends RTCStats {
bytesReceived?: number;
bytesSent?: number;
dtlsCipher?: string;
dtlsState: RTCDtlsTransportState;
localCertificateId?: string;
remoteCertificateId?: string;
rtcpTransportStatsId?: string;
selectedCandidatePairId?: string;
srtpCipher?: string;
tlsVersion?: string;
}
interface ReadableStreamDefaultReadDoneResult {
done: true;
value?: undefined;
}
interface ReadableStreamDefaultReadValueResult<T> {
done: false;
value: T;
}
interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/**
* Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*/
writable: WritableStream<W>;
}
interface RegistrationOptions {
scope?: string;
type?: WorkerType;
updateViaCache?: ServiceWorkerUpdateViaCache;
}
interface RequestInit {
/**
* A BodyInit object or null to set request's body.
*/
body?: BodyInit | null;
/**
* A string indicating how the request will interact with the browser's cache to set request's cache.
*/
cache?: RequestCache;
/**
* A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials.
*/
credentials?: RequestCredentials;
/**
* A Headers object, an object literal, or an array of two-item arrays to set request's headers.
*/
headers?: HeadersInit;
/**
* A cryptographic hash of the resource to be fetched by request. Sets request's integrity.
*/
integrity?: string;
/**
* A boolean to set request's keepalive.
*/
keepalive?: boolean;
/**
* A string to set request's method.
*/
method?: string;
/**
* A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode.
*/
mode?: RequestMode;
/**
* A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect.
*/
redirect?: RequestRedirect;
/**
* A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer.
*/
referrer?: string;
/**
* A referrer policy to set request's referrerPolicy.
*/
referrerPolicy?: ReferrerPolicy;
/**
* An AbortSignal to set request's signal.
*/
signal?: AbortSignal | null;
/**
* Can only be null. Used to disassociate request from any Window.
*/
window?: any;
}
interface ResizeObserverOptions {
box?: ResizeObserverBoxOptions;
}
interface ResponseInit {
headers?: HeadersInit;
status?: number;
statusText?: string;
}
interface RsaHashedImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
hash: KeyAlgorithm;
}
interface RsaHashedKeyGenParams extends RsaKeyGenParams {
hash: HashAlgorithmIdentifier;
}
interface RsaKeyAlgorithm extends KeyAlgorithm {
modulusLength: number;
publicExponent: BigInteger;
}
interface RsaKeyGenParams extends Algorithm {
modulusLength: number;
publicExponent: BigInteger;
}
interface RsaOaepParams extends Algorithm {
label?: BufferSource;
}
interface RsaOtherPrimesInfo {
d?: string;
r?: string;
t?: string;
}
interface RsaPssParams extends Algorithm {
saltLength: number;
}
interface SVGBoundingBoxOptions {
clipped?: boolean;
fill?: boolean;
markers?: boolean;
stroke?: boolean;
}
interface ScrollIntoViewOptions extends ScrollOptions {
block?: ScrollLogicalPosition;
inline?: ScrollLogicalPosition;
}
interface ScrollOptions {
behavior?: ScrollBehavior;
}
interface ScrollToOptions extends ScrollOptions {
left?: number;
top?: number;
}
interface SecurityPolicyViolationEventInit extends EventInit {
blockedURI?: string;
columnNumber?: number;
disposition: SecurityPolicyViolationEventDisposition;
documentURI: string;
effectiveDirective: string;
lineNumber?: number;
originalPolicy: string;
referrer?: string;
sample?: string;
sourceFile?: string;
statusCode: number;
violatedDirective: string;
}
interface ShadowRootInit {
delegatesFocus?: boolean;
mode: ShadowRootMode;
slotAssignment?: SlotAssignmentMode;
}
interface ShareData {
files?: File[];
text?: string;
title?: string;
url?: string;
}
interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {
error: SpeechSynthesisErrorCode;
}
interface SpeechSynthesisEventInit extends EventInit {
charIndex?: number;
charLength?: number;
elapsedTime?: number;
name?: string;
utterance: SpeechSynthesisUtterance;
}
interface StaticRangeInit {
endContainer: Node;
endOffset: number;
startContainer: Node;
startOffset: number;
}
interface StereoPannerOptions extends AudioNodeOptions {
pan?: number;
}
interface StorageEstimate {
quota?: number;
usage?: number;
}
interface StorageEventInit extends EventInit {
key?: string | null;
newValue?: string | null;
oldValue?: string | null;
storageArea?: Storage | null;
url?: string;
}
interface StreamPipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
/**
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*
* Errors and closures of the source and destination streams propagate as follows:
*
* An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
*
* An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
*
* When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
*
* If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
*
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
*/
preventClose?: boolean;
signal?: AbortSignal;
}
interface SubmitEventInit extends EventInit {
submitter?: HTMLElement | null;
}
interface TextDecodeOptions {
stream?: boolean;
}
interface TextDecoderOptions {
fatal?: boolean;
ignoreBOM?: boolean;
}
interface TextEncoderEncodeIntoResult {
read?: number;
written?: number;
}
interface TouchEventInit extends EventModifierInit {
changedTouches?: Touch[];
targetTouches?: Touch[];
touches?: Touch[];
}
interface TouchInit {
altitudeAngle?: number;
azimuthAngle?: number;
clientX?: number;
clientY?: number;
force?: number;
identifier: number;
pageX?: number;
pageY?: number;
radiusX?: number;
radiusY?: number;
rotationAngle?: number;
screenX?: number;
screenY?: number;
target: EventTarget;
touchType?: TouchType;
}
interface TrackEventInit extends EventInit {
track?: TextTrack | null;
}
interface Transformer<I = any, O = any> {
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
transform?: TransformerTransformCallback<I, O>;
writableType?: undefined;
}
interface TransitionEventInit extends EventInit {
elapsedTime?: number;
propertyName?: string;
pseudoElement?: string;
}
interface UIEventInit extends EventInit {
detail?: number;
view?: Window | null;
/** @deprecated */
which?: number;
}
interface ULongRange {
max?: number;
min?: number;
}
interface UnderlyingSink<W = any> {
abort?: UnderlyingSinkAbortCallback;
close?: UnderlyingSinkCloseCallback;
start?: UnderlyingSinkStartCallback;
type?: undefined;
write?: UnderlyingSinkWriteCallback<W>;
}
interface UnderlyingSource<R = any> {
cancel?: UnderlyingSourceCancelCallback;
pull?: UnderlyingSourcePullCallback<R>;
start?: UnderlyingSourceStartCallback<R>;
type?: undefined;
}
interface VideoConfiguration {
bitrate: number;
colorGamut?: ColorGamut;
contentType: string;
framerate: number;
hdrMetadataType?: HdrMetadataType;
height: number;
scalabilityMode?: string;
transferFunction?: TransferFunction;
width: number;
}
interface WaveShaperOptions extends AudioNodeOptions {
curve?: number[] | Float32Array;
oversample?: OverSampleType;
}
interface WebGLContextAttributes {
alpha?: boolean;
antialias?: boolean;
depth?: boolean;
desynchronized?: boolean;
failIfMajorPerformanceCaveat?: boolean;
powerPreference?: WebGLPowerPreference;
premultipliedAlpha?: boolean;
preserveDrawingBuffer?: boolean;
stencil?: boolean;
}
interface WebGLContextEventInit extends EventInit {
statusMessage?: string;
}
interface WheelEventInit extends MouseEventInit {
deltaMode?: number;
deltaX?: number;
deltaY?: number;
deltaZ?: number;
}
interface WindowPostMessageOptions extends PostMessageOptions {
targetOrigin?: string;
}
interface WorkerOptions {
credentials?: RequestCredentials;
name?: string;
type?: WorkerType;
}
interface WorkletOptions {
credentials?: RequestCredentials;
}
type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };
declare var NodeFilter: {
readonly FILTER_ACCEPT: number;
readonly FILTER_REJECT: number;
readonly FILTER_SKIP: number;
readonly SHOW_ALL: number;
readonly SHOW_ATTRIBUTE: number;
readonly SHOW_CDATA_SECTION: number;
readonly SHOW_COMMENT: number;
readonly SHOW_DOCUMENT: number;
readonly SHOW_DOCUMENT_FRAGMENT: number;
readonly SHOW_DOCUMENT_TYPE: number;
readonly SHOW_ELEMENT: number;
readonly SHOW_ENTITY: number;
readonly SHOW_ENTITY_REFERENCE: number;
readonly SHOW_NOTATION: number;
readonly SHOW_PROCESSING_INSTRUCTION: number;
readonly SHOW_TEXT: number;
};
type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };
/** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */
interface ANGLE_instanced_arrays {
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;
}
interface ARIAMixin {
ariaAtomic: string;
ariaAutoComplete: string;
ariaBusy: string;
ariaChecked: string;
ariaColCount: string;
ariaColIndex: string;
ariaColSpan: string;
ariaCurrent: string;
ariaDisabled: string;
ariaExpanded: string;
ariaHasPopup: string;
ariaHidden: string;
ariaKeyShortcuts: string;
ariaLabel: string;
ariaLevel: string;
ariaLive: string;
ariaModal: string;
ariaMultiLine: string;
ariaMultiSelectable: string;
ariaOrientation: string;
ariaPlaceholder: string;
ariaPosInSet: string;
ariaPressed: string;
ariaReadOnly: string;
ariaRequired: string;
ariaRoleDescription: string;
ariaRowCount: string;
ariaRowIndex: string;
ariaRowSpan: string;
ariaSelected: string;
ariaSetSize: string;
ariaSort: string;
ariaValueMax: string;
ariaValueMin: string;
ariaValueNow: string;
ariaValueText: string;
}
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
interface AbortController {
/**
* Returns the AbortSignal object associated with this object.
*/
readonly signal: AbortSignal;
/**
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
*/
abort(): void;
}
declare var AbortController: {
prototype: AbortController;
new(): AbortController;
};
interface AbortSignalEventMap {
"abort": Event;
}
/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
interface AbortSignal extends EventTarget {
/**
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
*/
readonly aborted: boolean;
onabort: ((this: AbortSignal, ev: Event) => any) | null;
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AbortSignal: {
prototype: AbortSignal;
new(): AbortSignal;
};
interface AbstractRange {
/**
* Returns true if range is collapsed, and false otherwise.
*/
readonly collapsed: boolean;
/**
* Returns range's end node.
*/
readonly endContainer: Node;
/**
* Returns range's end offset.
*/
readonly endOffset: number;
/**
* Returns range's start node.
*/
readonly startContainer: Node;
/**
* Returns range's start offset.
*/
readonly startOffset: number;
}
declare var AbstractRange: {
prototype: AbstractRange;
new(): AbstractRange;
};
interface AbstractWorkerEventMap {
"error": ErrorEvent;
}
interface AbstractWorker {
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */
interface AnalyserNode extends AudioNode {
fftSize: number;
readonly frequencyBinCount: number;
maxDecibels: number;
minDecibels: number;
smoothingTimeConstant: number;
getByteFrequencyData(array: Uint8Array): void;
getByteTimeDomainData(array: Uint8Array): void;
getFloatFrequencyData(array: Float32Array): void;
getFloatTimeDomainData(array: Float32Array): void;
}
declare var AnalyserNode: {
prototype: AnalyserNode;
new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;
};
interface Animatable {
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
getAnimations(options?: GetAnimationsOptions): Animation[];
}
interface AnimationEventMap {
"cancel": AnimationPlaybackEvent;
"finish": AnimationPlaybackEvent;
"remove": Event;
}
interface Animation extends EventTarget {
currentTime: 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;
onremove: ((this: Animation, ev: Event) => any) | null;
readonly pending: boolean;
readonly playState: AnimationPlayState;
playbackRate: number;
readonly ready: Promise<Animation>;
readonly replaceState: AnimationReplaceState;
startTime: number | null;
timeline: AnimationTimeline | null;
cancel(): void;
commitStyles(): void;
finish(): void;
pause(): void;
persist(): void;
play(): void;
reverse(): void;
updatePlaybackRate(playbackRate: number): void;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Animation: {
prototype: Animation;
new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;
};
interface AnimationEffect {
getComputedTiming(): ComputedEffectTiming;
getTiming(): EffectTiming;
updateTiming(timing?: OptionalEffectTiming): void;
}
declare var AnimationEffect: {
prototype: AnimationEffect;
new(): AnimationEffect;
};
/** Events providing information related to animations. */
interface AnimationEvent extends Event {
readonly animationName: string;
readonly elapsedTime: number;
readonly pseudoElement: string;
}
declare var AnimationEvent: {
prototype: AnimationEvent;
new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;
};
interface AnimationFrameProvider {
cancelAnimationFrame(handle: number): void;
requestAnimationFrame(callback: FrameRequestCallback): number;
}
interface AnimationPlaybackEvent extends Event {
readonly currentTime: 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;
};
/** A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */
interface Attr extends Node {
readonly localName: string;
readonly name: string;
readonly namespaceURI: string | null;
readonly ownerDocument: Document;
readonly ownerElement: Element | null;
readonly prefix: string | null;
readonly specified: boolean;
value: string;
}
declare var Attr: {
prototype: Attr;
new(): Attr;
};
/** A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. */
interface AudioBuffer {
readonly duration: number;
readonly length: number;
readonly numberOfChannels: number;
readonly sampleRate: number;
copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;
copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;
getChannelData(channel: number): Float32Array;
}
declare var AudioBuffer: {
prototype: AudioBuffer;
new(options: AudioBufferOptions): AudioBuffer;
};
/** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */
interface AudioBufferSourceNode extends AudioScheduledSourceNode {
buffer: AudioBuffer | null;
readonly detune: AudioParam;
loop: boolean;
loopEnd: number;
loopStart: number;
readonly playbackRate: AudioParam;
start(when?: number, offset?: number, duration?: number): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioBufferSourceNode: {
prototype: AudioBufferSourceNode;
new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;
};
/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */
interface AudioContext extends BaseAudioContext {
readonly baseLatency: number;
close(): Promise<void>;
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
createMediaStreamDestination(): MediaStreamAudioDestinationNode;
createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
getOutputTimestamp(): AudioTimestamp;
resume(): Promise<void>;
suspend(): Promise<void>;
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioContext: {
prototype: AudioContext;
new(contextOptions?: AudioContextOptions): AudioContext;
};
/** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */
interface AudioDestinationNode extends AudioNode {
readonly maxChannelCount: number;
}
declare var AudioDestinationNode: {
prototype: AudioDestinationNode;
new(): AudioDestinationNode;
};
/** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */
interface AudioListener {
readonly forwardX: AudioParam;
readonly forwardY: AudioParam;
readonly forwardZ: AudioParam;
readonly positionX: AudioParam;
readonly positionY: AudioParam;
readonly positionZ: AudioParam;
readonly upX: AudioParam;
readonly upY: AudioParam;
readonly upZ: AudioParam;
/** @deprecated */
setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
/** @deprecated */
setPosition(x: number, y: number, z: number): void;
}
declare var AudioListener: {
prototype: AudioListener;
new(): AudioListener;
};
/** A generic interface for representing an audio processing module. Examples include: */
interface AudioNode extends EventTarget {
channelCount: number;
channelCountMode: ChannelCountMode;
channelInterpretation: ChannelInterpretation;
readonly context: BaseAudioContext;
readonly numberOfInputs: number;
readonly numberOfOutputs: number;
connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;
connect(destinationParam: AudioParam, output?: number): void;
disconnect(): void;
disconnect(output: number): void;
disconnect(destinationNode: AudioNode): void;
disconnect(destinationNode: AudioNode, output: number): void;
disconnect(destinationNode: AudioNode, output: number, input: number): void;
disconnect(destinationParam: AudioParam): void;
disconnect(destinationParam: AudioParam, output: number): void;
}
declare var AudioNode: {
prototype: AudioNode;
new(): AudioNode;
};
/** The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */
interface AudioParam {
automationRate: AutomationRate;
readonly defaultValue: number;
readonly maxValue: number;
readonly minValue: number;
value: number;
cancelAndHoldAtTime(cancelTime: number): AudioParam;
cancelScheduledValues(cancelTime: number): AudioParam;
exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
linearRampToValueAtTime(value: number, endTime: number): AudioParam;
setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
setValueAtTime(value: number, startTime: number): AudioParam;
setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;
}
declare var AudioParam: {
prototype: AudioParam;
new(): AudioParam;
};
interface AudioParamMap {
forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;
}
declare var AudioParamMap: {
prototype: AudioParamMap;
new(): AudioParamMap;
};
/**
* The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.
* @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.
*/
interface AudioProcessingEvent extends Event {
/** @deprecated */
readonly inputBuffer: AudioBuffer;
/** @deprecated */
readonly outputBuffer: AudioBuffer;
/** @deprecated */
readonly playbackTime: number;
}
/** @deprecated */
declare var AudioProcessingEvent: {
prototype: AudioProcessingEvent;
new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;
};
interface AudioScheduledSourceNodeEventMap {
"ended": Event;
}
interface AudioScheduledSourceNode extends AudioNode {
onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;
start(when?: number): void;
stop(when?: number): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioScheduledSourceNode: {
prototype: AudioScheduledSourceNode;
new(): AudioScheduledSourceNode;
};
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;
/** @deprecated */
createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
createStereoPanner(): StereoPannerNode;
createWaveShaper(): WaveShaperNode;
decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var BaseAudioContext: {
prototype: BaseAudioContext;
new(): BaseAudioContext;
};
/** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */
interface BeforeUnloadEvent extends Event {
returnValue: any;
}
declare var BeforeUnloadEvent: {
prototype: BeforeUnloadEvent;
new(): BeforeUnloadEvent;
};
/** A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. */
interface BiquadFilterNode extends AudioNode {
readonly Q: AudioParam;
readonly detune: AudioParam;
readonly frequency: AudioParam;
readonly gain: AudioParam;
type: BiquadFilterType;
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
}
declare var BiquadFilterNode: {
prototype: BiquadFilterNode;
new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;
};
/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
interface Blob {
readonly size: number;
readonly type: string;
arrayBuffer(): Promise<ArrayBuffer>;
slice(start?: number, end?: number, contentType?: string): Blob;
stream(): ReadableStream;
text(): Promise<string>;
}
declare var Blob: {
prototype: Blob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
interface BlobEvent extends Event {
readonly data: Blob;
readonly timecode: DOMHighResTimeStamp;
}
declare var BlobEvent: {
prototype: BlobEvent;
new(type: string, eventInitDict: BlobEventInit): BlobEvent;
};
interface Body {
readonly body: ReadableStream<Uint8Array> | null;
readonly bodyUsed: boolean;
arrayBuffer(): Promise<ArrayBuffer>;
blob(): Promise<Blob>;
formData(): Promise<FormData>;
json(): Promise<any>;
text(): Promise<string>;
}
interface BroadcastChannelEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
interface BroadcastChannel extends EventTarget {
/**
* Returns the channel name (as passed to the constructor).
*/
readonly name: string;
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/**
* Closes the BroadcastChannel object, opening it up to garbage collection.
*/
close(): void;
/**
* Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.
*/
postMessage(message: any): void;
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var BroadcastChannel: {
prototype: BroadcastChannel;
new(name: string): BroadcastChannel;
};
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
readonly highWaterMark: number;
readonly size: QueuingStrategySize<ArrayBufferView>;
}
declare var ByteLengthQueuingStrategy: {
prototype: ByteLengthQueuingStrategy;
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
};
/** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don\u2019t need escaping as they normally do when inside a CDATA section. */
interface CDATASection extends Text {
}
declare var CDATASection: {
prototype: CDATASection;
new(): CDATASection;
};
interface CSSAnimation extends Animation {
readonly animationName: string;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var CSSAnimation: {
prototype: CSSAnimation;
new(): CSSAnimation;
};
/** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */
interface CSSConditionRule extends CSSGroupingRule {
conditionText: string;
}
declare var CSSConditionRule: {
prototype: CSSConditionRule;
new(): CSSConditionRule;
};
interface CSSCounterStyleRule extends CSSRule {
additiveSymbols: string;
fallback: string;
name: string;
negative: string;
pad: string;
prefix: string;
range: string;
speakAs: string;
suffix: string;
symbols: string;
system: string;
}
declare var CSSCounterStyleRule: {
prototype: CSSCounterStyleRule;
new(): CSSCounterStyleRule;
};
interface CSSFontFaceRule extends CSSRule {
readonly style: CSSStyleDeclaration;
}
declare var CSSFontFaceRule: {
prototype: CSSFontFaceRule;
new(): CSSFontFaceRule;
};
/** Any CSS at-rule that contains other rules nested within it. */
interface CSSGroupingRule extends CSSRule {
readonly cssRules: CSSRuleList;
deleteRule(index: number): void;
insertRule(rule: string, index?: number): number;
}
declare var CSSGroupingRule: {
prototype: CSSGroupingRule;
new(): CSSGroupingRule;
};
interface CSSImportRule extends CSSRule {
readonly href: string;
readonly media: MediaList;
readonly styleSheet: CSSStyleSheet;
}
declare var CSSImportRule: {
prototype: CSSImportRule;
new(): CSSImportRule;
};
/** An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). */
interface CSSKeyframeRule extends CSSRule {
keyText: string;
readonly style: CSSStyleDeclaration;
}
declare var CSSKeyframeRule: {
prototype: CSSKeyframeRule;
new(): CSSKeyframeRule;
};
/** An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). */
interface CSSKeyframesRule extends CSSRule {
readonly cssRules: CSSRuleList;
name: string;
appendRule(rule: string): void;
deleteRule(select: string): void;
findRule(select: string): CSSKeyframeRule | null;
}
declare var CSSKeyframesRule: {
prototype: CSSKeyframesRule;
new(): CSSKeyframesRule;
};
/** A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). */
interface CSSMediaRule extends CSSConditionRule {
readonly media: MediaList;
}
declare var CSSMediaRule: {
prototype: CSSMediaRule;
new(): CSSMediaRule;
};
/** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */
interface CSSNamespaceRule extends CSSRule {
readonly namespaceURI: string;
readonly prefix: string;
}
declare var CSSNamespaceRule: {
prototype: CSSNamespaceRule;
new(): CSSNamespaceRule;
};
/** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */
interface CSSPageRule extends CSSGroupingRule {
selectorText: string;
readonly style: CSSStyleDeclaration;
}
declare var CSSPageRule: {
prototype: CSSPageRule;
new(): CSSPageRule;
};
/** A single CSS rule. There are several types of rules, listed in the Type constants section below. */
interface CSSRule {
cssText: string;
readonly parentRule: CSSRule | null;
readonly parentStyleSheet: CSSStyleSheet | null;
/** @deprecated */
readonly type: number;
readonly CHARSET_RULE: number;
readonly FONT_FACE_RULE: number;
readonly IMPORT_RULE: number;
readonly KEYFRAMES_RULE: number;
readonly KEYFRAME_RULE: number;
readonly MEDIA_RULE: number;
readonly NAMESPACE_RULE: number;
readonly PAGE_RULE: number;
readonly STYLE_RULE: number;
readonly SUPPORTS_RULE: number;
}
declare var CSSRule: {
prototype: CSSRule;
new(): CSSRule;
readonly CHARSET_RULE: number;
readonly FONT_FACE_RULE: number;
readonly IMPORT_RULE: number;
readonly KEYFRAMES_RULE: number;
readonly KEYFRAME_RULE: number;
readonly MEDIA_RULE: number;
readonly NAMESPACE_RULE: number;
readonly PAGE_RULE: number;
readonly STYLE_RULE: number;
readonly SUPPORTS_RULE: number;
};
/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */
interface CSSRuleList {
readonly length: number;
item(index: number): CSSRule | null;
[index: number]: CSSRule;
}
declare var CSSRuleList: {
prototype: CSSRuleList;
new(): CSSRuleList;
};
/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */
interface CSSStyleDeclaration {
alignContent: string;
alignItems: string;
alignSelf: string;
alignmentBaseline: string;
all: string;
animation: string;
animationDelay: string;
animationDirection: string;
animationDuration: string;
animationFillMode: string;
animationIterationCount: string;
animationName: string;
animationPlayState: string;
animationTimingFunction: string;
appearance: string;
aspectRatio: string;
backfaceVisibility: string;
background: string;
backgroundAttachment: string;
backgroundBlendMode: string;
backgroundClip: string;
backgroundColor: string;
backgroundImage: string;
backgroundOrigin: string;
backgroundPosition: string;
backgroundPositionX: string;
backgroundPositionY: string;
backgroundRepeat: string;
backgroundSize: string;
baselineShift: string;
blockSize: string;
border: string;
borderBlock: string;
borderBlockColor: string;
borderBlockEnd: string;
borderBlockEndColor: string;
borderBlockEndStyle: string;
borderBlockEndWidth: string;
borderBlockStart: string;
borderBlockStartColor: string;
borderBlockStartStyle: string;
borderBlockStartWidth: string;
borderBlockStyle: string;
borderBlockWidth: string;
borderBottom: string;
borderBottomColor: string;
borderBottomLeftRadius: string;
borderBottomRightRadius: string;
borderBottomStyle: string;
borderBottomWidth: string;
borderCollapse: string;
borderColor: string;
borderEndEndRadius: string;
borderEndStartRadius: string;
borderImage: string;
borderImageOutset: string;
borderImageRepeat: string;
borderImageSlice: string;
borderImageSource: string;
borderImageWidth: string;
borderInline: string;
borderInlineColor: string;
borderInlineEnd: string;
borderInlineEndColor: string;
borderInlineEndStyle: string;
borderInlineEndWidth: string;
borderInlineStart: string;
borderInlineStartColor: string;
borderInlineStartStyle: string;
borderInlineStartWidth: string;
borderInlineStyle: string;
borderInlineWidth: string;
borderLeft: string;
borderLeftColor: string;
borderLeftStyle: string;
borderLeftWidth: string;
borderRadius: string;
borderRight: string;
borderRightColor: string;
borderRightStyle: string;
borderRightWidth: string;
borderSpacing: string;
borderStartEndRadius: string;
borderStartStartRadius: string;
borderStyle: string;
borderTop: string;
borderTopColor: string;
borderTopLeftRadius: string;
borderTopRightRadius: string;
borderTopStyle: string;
borderTopWidth: string;
borderWidth: string;
bottom: string;
boxShadow: string;
boxSizing: string;
breakAfter: string;
breakBefore: string;
breakInside: string;
captionSide: string;
caretColor: string;
clear: string;
/** @deprecated */
clip: string;
clipPath: string;
clipRule: string;
color: string;
colorInterpolation: string;
colorInterpolationFilters: string;
colorScheme: string;
columnCount: string;
columnFill: string;
columnGap: string;
columnRule: string;
columnRuleColor: string;
columnRuleStyle: string;
columnRuleWidth: string;
columnSpan: string;
columnWidth: string;
columns: string;
contain: string;
content: string;
counterIncrement: string;
counterReset: string;
counterSet: string;
cssFloat: string;
cssText: string;
cursor: string;
direction: string;
display: string;
dominantBaseline: string;
emptyCells: string;
fill: string;
fillOpacity: string;
fillRule: string;
filter: string;
flex: string;
flexBasis: string;
flexDirection: string;
flexFlow: string;
flexGrow: string;
flexShrink: string;
flexWrap: string;
float: string;
floodColor: string;
floodOpacity: string;
font: string;
fontFamily: string;
fontFeatureSettings: string;
fontKerning: string;
fontOpticalSizing: string;
fontSize: string;
fontSizeAdjust: string;
fontStretch: string;
fontStyle: string;
fontSynthesis: string;
fontVariant: string;
/** @deprecated */
fontVariantAlternates: string;
fontVariantCaps: string;
fontVariantEastAsian: string;
fontVariantLigatures: string;
fontVariantNumeric: string;
fontVariantPosition: string;
fontVariationSettings: string;
fontWeight: string;
gap: string;
grid: string;
gridArea: string;
gridAutoColumns: string;
gridAutoFlow: string;
gridAutoRows: string;
gridColumn: string;
gridColumnEnd: string;
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;
/** @deprecated */
imageOrientation: string;
imageRendering: string;
inlineSize: string;
inset: string;
insetBlock: string;
insetBlockEnd: string;
insetBlockStart: string;
insetInline: string;
insetInlineEnd: string;
insetInlineStart: string;
isolation: string;
justifyContent: string;
justifyItems: string;
justifySelf: string;
left: string;
readonly length: number;
letterSpacing: string;
lightingColor: string;
lineBreak: string;
lineHeight: string;
listStyle: string;
listStyleImage: string;
listStylePosition: string;
listStyleType: string;
margin: string;
marginBlock: string;
marginBlockEnd: string;
marginBlockStart: string;
marginBottom: string;
marginInline: string;
marginInlineEnd: string;
marginInlineStart: string;
marginLeft: string;
marginRight: string;
marginTop: string;
marker: string;
markerEnd: string;
markerMid: string;
markerStart: string;
mask: string;
maskType: string;
maxBlockSize: string;
maxHeight: string;
maxInlineSize: string;
maxWidth: string;
minBlockSize: string;
minHeight: string;
minInlineSize: string;
minWidth: string;
mixBlendMode: string;
objectFit: string;
objectPosition: string;
offset: string;
offsetAnchor: string;
offsetDistance: string;
offsetPath: string;
offsetRotate: string;
opacity: string;
order: string;
orphans: string;
outline: string;
outlineColor: string;
outlineOffset: string;
outlineStyle: string;
outlineWidth: string;
overflow: string;
overflowAnchor: string;
overflowWrap: string;
overflowX: string;
overflowY: string;
overscrollBehavior: string;
overscrollBehaviorBlock: string;
overscrollBehaviorInline: string;
overscrollBehaviorX: string;
overscrollBehaviorY: string;
padding: string;
paddingBlock: string;
paddingBlockEnd: string;
paddingBlockStart: string;
paddingBottom: string;
paddingInline: string;
paddingInlineEnd: string;
paddingInlineStart: string;
paddingLeft: string;
paddingRight: string;
paddingTop: string;
pageBreakAfter: string;
pageBreakBefore: string;
pageBreakInside: string;
paintOrder: string;
readonly parentRule: CSSRule | null;
perspective: string;
perspectiveOrigin: string;
placeContent: string;
placeItems: string;
placeSelf: string;
pointerEvents: string;
position: string;
quotes: string;
resize: string;
right: string;
rotate: string;
rowGap: string;
rubyPosition: string;
scale: string;
scrollBehavior: string;
scrollMargin: string;
scrollMarginBlock: string;
scrollMarginBlockEnd: string;
scrollMarginBlockStart: string;
scrollMarginBottom: string;
scrollMarginInline: string;
scrollMarginInlineEnd: string;
scrollMarginInlineStart: string;
scrollMarginLeft: string;
scrollMarginRight: string;
scrollMarginTop: string;
scrollPadding: string;
scrollPaddingBlock: string;
scrollPaddingBlockEnd: string;
scrollPaddingBlockStart: string;
scrollPaddingBottom: string;
scrollPaddingInline: string;
scrollPaddingInlineEnd: string;
scrollPaddingInlineStart: string;
scrollPaddingLeft: string;
scrollPaddingRight: string;
scrollPaddingTop: string;
scrollSnapAlign: string;
scrollSnapStop: string;
scrollSnapType: string;
shapeImageThreshold: string;
shapeMargin: string;
shapeOutside: string;
shapeRendering: string;
stopColor: string;
stopOpacity: string;
stroke: string;
strokeDasharray: string;
strokeDashoffset: string;
strokeLinecap: string;
strokeLinejoin: string;
strokeMiterlimit: string;
strokeOpacity: string;
strokeWidth: string;
tabSize: string;
tableLayout: string;
textAlign: string;
textAlignLast: string;
textAnchor: string;
textCombineUpright: string;
textDecoration: string;
textDecorationColor: string;
textDecorationLine: string;
textDecorationSkipInk: string;
textDecorationStyle: string;
textDecorationThickness: string;
textEmphasis: string;
textEmphasisColor: string;
textEmphasisPosition: string;
textEmphasisStyle: string;
textIndent: string;
textOrientation: string;
textOverflow: string;
textRendering: string;
textShadow: string;
textTransform: string;
textUnderlineOffset: string;
textUnderlinePosition: string;
top: string;
touchAction: string;
transform: string;
transformBox: string;
transformOrigin: string;
transformStyle: string;
transition: string;
transitionDelay: string;
transitionDuration: string;
transitionProperty: string;
transitionTimingFunction: string;
translate: string;
unicodeBidi: string;
userSelect: string;
verticalAlign: string;
visibility: string;
/** @deprecated This is a legacy alias of \`alignContent\`. */
webkitAlignContent: string;
/** @deprecated This is a legacy alias of \`alignItems\`. */
webkitAlignItems: string;
/** @deprecated This is a legacy alias of \`alignSelf\`. */
webkitAlignSelf: string;
/** @deprecated This is a legacy alias of \`animation\`. */
webkitAnimation: string;
/** @deprecated This is a legacy alias of \`animationDelay\`. */
webkitAnimationDelay: string;
/** @deprecated This is a legacy alias of \`animationDirection\`. */
webkitAnimationDirection: string;
/** @deprecated This is a legacy alias of \`animationDuration\`. */
webkitAnimationDuration: string;
/** @deprecated This is a legacy alias of \`animationFillMode\`. */
webkitAnimationFillMode: string;
/** @deprecated This is a legacy alias of \`animationIterationCount\`. */
webkitAnimationIterationCount: string;
/** @deprecated This is a legacy alias of \`animationName\`. */
webkitAnimationName: string;
/** @deprecated This is a legacy alias of \`animationPlayState\`. */
webkitAnimationPlayState: string;
/** @deprecated This is a legacy alias of \`animationTimingFunction\`. */
webkitAnimationTimingFunction: string;
/** @deprecated This is a legacy alias of \`appearance\`. */
webkitAppearance: string;
/** @deprecated This is a legacy alias of \`backfaceVisibility\`. */
webkitBackfaceVisibility: string;
/** @deprecated This is a legacy alias of \`backgroundClip\`. */
webkitBackgroundClip: string;
/** @deprecated This is a legacy alias of \`backgroundOrigin\`. */
webkitBackgroundOrigin: string;
/** @deprecated This is a legacy alias of \`backgroundSize\`. */
webkitBackgroundSize: string;
/** @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. */
webkitBorderBottomLeftRadius: string;
/** @deprecated This is a legacy alias of \`borderBottomRightRadius\`. */
webkitBorderBottomRightRadius: string;
/** @deprecated This is a legacy alias of \`borderRadius\`. */
webkitBorderRadius: string;
/** @deprecated This is a legacy alias of \`borderTopLeftRadius\`. */
webkitBorderTopLeftRadius: string;
/** @deprecated This is a legacy alias of \`borderTopRightRadius\`. */
webkitBorderTopRightRadius: string;
/** @deprecated */
webkitBoxAlign: string;
/** @deprecated */
webkitBoxFlex: string;
/** @deprecated */
webkitBoxOrdinalGroup: string;
/** @deprecated */
webkitBoxOrient: string;
/** @deprecated */
webkitBoxPack: string;
/** @deprecated This is a legacy alias of \`boxShadow\`. */
webkitBoxShadow: string;
/** @deprecated This is a legacy alias of \`boxSizing\`. */
webkitBoxSizing: string;
/** @deprecated This is a legacy alias of \`filter\`. */
webkitFilter: string;
/** @deprecated This is a legacy alias of \`flex\`. */
webkitFlex: string;
/** @deprecated This is a legacy alias of \`flexBasis\`. */
webkitFlexBasis: string;
/** @deprecated This is a legacy alias of \`flexDirection\`. */
webkitFlexDirection: string;
/** @deprecated This is a legacy alias of \`flexFlow\`. */
webkitFlexFlow: string;
/** @deprecated This is a legacy alias of \`flexGrow\`. */
webkitFlexGrow: string;
/** @deprecated This is a legacy alias of \`flexShrink\`. */
webkitFlexShrink: string;
/** @deprecated This is a legacy alias of \`flexWrap\`. */
webkitFlexWrap: string;
/** @deprecated This is a legacy alias of \`justifyContent\`. */
webkitJustifyContent: string;
webkitLineClamp: string;
/** @deprecated This is a legacy alias of \`mask\`. */
webkitMask: string;
/** @deprecated This is a legacy alias of \`maskBorder\`. */
webkitMaskBoxImage: string;
/** @deprecated This is a legacy alias of \`maskBorderOutset\`. */
webkitMaskBoxImageOutset: string;
/** @deprecated This is a legacy alias of \`maskBorderRepeat\`. */
webkitMaskBoxImageRepeat: string;
/** @deprecated This is a legacy alias of \`maskBorderSlice\`. */
webkitMaskBoxImageSlice: string;
/** @deprecated This is a legacy alias of \`maskBorderSource\`. */
webkitMaskBoxImageSource: string;
/** @deprecated This is a legacy alias of \`maskBorderWidth\`. */
webkitMaskBoxImageWidth: string;
/** @deprecated This is a legacy alias of \`maskClip\`. */
webkitMaskClip: string;
webkitMaskComposite: string;
/** @deprecated This is a legacy alias of \`maskImage\`. */
webkitMaskImage: string;
/** @deprecated This is a legacy alias of \`maskOrigin\`. */
webkitMaskOrigin: string;
/** @deprecated This is a legacy alias of \`maskPosition\`. */
webkitMaskPosition: string;
/** @deprecated This is a legacy alias of \`maskRepeat\`. */
webkitMaskRepeat: string;
/** @deprecated This is a legacy alias of \`maskSize\`. */
webkitMaskSize: string;
/** @deprecated This is a legacy alias of \`order\`. */
webkitOrder: string;
/** @deprecated This is a legacy alias of \`perspective\`. */
webkitPerspective: string;
/** @deprecated This is a legacy alias of \`perspectiveOrigin\`. */
webkitPerspectiveOrigin: string;
webkitTextFillColor: string;
webkitTextStroke: string;
webkitTextStrokeColor: string;
webkitTextStrokeWidth: string;
/** @deprecated This is a legacy alias of \`transform\`. */
webkitTransform: string;
/** @deprecated This is a legacy alias of \`transformOrigin\`. */
webkitTransformOrigin: string;
/** @deprecated This is a legacy alias of \`transformStyle\`. */
webkitTransformStyle: string;
/** @deprecated This is a legacy alias of \`transition\`. */
webkitTransition: string;
/** @deprecated This is a legacy alias of \`transitionDelay\`. */
webkitTransitionDelay: string;
/** @deprecated This is a legacy alias of \`transitionDuration\`. */
webkitTransitionDuration: string;
/** @deprecated This is a legacy alias of \`transitionProperty\`. */
webkitTransitionProperty: string;
/** @deprecated This is a legacy alias of \`transitionTimingFunction\`. */
webkitTransitionTimingFunction: string;
/** @deprecated This is a legacy alias of \`userSelect\`. */
webkitUserSelect: string;
whiteSpace: string;
widows: string;
width: string;
willChange: string;
wordBreak: string;
wordSpacing: string;
/** @deprecated */
wordWrap: string;
writingMode: string;
zIndex: string;
getPropertyPriority(property: string): string;
getPropertyValue(property: string): string;
item(index: number): string;
removeProperty(property: string): string;
setProperty(property: string, value: string | null, priority?: string): void;
[index: number]: string;
}
declare var CSSStyleDeclaration: {
prototype: CSSStyleDeclaration;
new(): CSSStyleDeclaration;
};
/** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */
interface CSSStyleRule extends CSSRule {
selectorText: string;
readonly style: CSSStyleDeclaration;
}
declare var CSSStyleRule: {
prototype: CSSStyleRule;
new(): CSSStyleRule;
};
/** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */
interface CSSStyleSheet extends StyleSheet {
readonly cssRules: CSSRuleList;
readonly ownerRule: CSSRule | null;
/** @deprecated */
readonly rules: CSSRuleList;
/** @deprecated */
addRule(selector?: string, style?: string, index?: number): number;
deleteRule(index: number): void;
insertRule(rule: string, index?: number): number;
/** @deprecated */
removeRule(index?: number): void;
}
declare var CSSStyleSheet: {
prototype: CSSStyleSheet;
new(options?: CSSStyleSheetInit): CSSStyleSheet;
};
/** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */
interface CSSSupportsRule extends CSSConditionRule {
}
declare var CSSSupportsRule: {
prototype: CSSSupportsRule;
new(): CSSSupportsRule;
};
interface CSSTransition extends Animation {
readonly transitionProperty: string;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var CSSTransition: {
prototype: CSSTransition;
new(): CSSTransition;
};
/** Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. */
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?: MultiCacheQueryOptions): Promise<Response | undefined>;
open(cacheName: string): Promise<Cache>;
}
declare var CacheStorage: {
prototype: CacheStorage;
new(): CacheStorage;
};
interface CanvasCompositing {
globalAlpha: number;
globalCompositeOperation: string;
}
interface CanvasDrawImage {
drawImage(image: CanvasImageSource, dx: number, dy: number): void;
drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
}
interface CanvasDrawPath {
beginPath(): void;
clip(fillRule?: CanvasFillRule): void;
clip(path: Path2D, fillRule?: CanvasFillRule): void;
fill(fillRule?: CanvasFillRule): void;
fill(path: Path2D, fillRule?: CanvasFillRule): void;
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInStroke(x: number, y: number): boolean;
isPointInStroke(path: Path2D, x: number, y: number): boolean;
stroke(): void;
stroke(path: Path2D): void;
}
interface CanvasFillStrokeStyles {
fillStyle: string | CanvasGradient | CanvasPattern;
strokeStyle: string | CanvasGradient | CanvasPattern;
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
}
interface CanvasFilters {
filter: string;
}
/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
interface CanvasGradient {
/**
* Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
*
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
*/
addColorStop(offset: number, color: string): void;
}
declare var CanvasGradient: {
prototype: CanvasGradient;
new(): CanvasGradient;
};
interface CanvasImageData {
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
createImageData(imagedata: ImageData): ImageData;
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
putImageData(imagedata: ImageData, dx: number, dy: number): void;
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
}
interface CanvasImageSmoothing {
imageSmoothingEnabled: boolean;
imageSmoothingQuality: ImageSmoothingQuality;
}
interface CanvasPath {
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
closePath(): void;
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
lineTo(x: number, y: number): void;
moveTo(x: number, y: number): void;
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
rect(x: number, y: number, w: number, h: number): void;
}
interface CanvasPathDrawingStyles {
lineCap: CanvasLineCap;
lineDashOffset: number;
lineJoin: CanvasLineJoin;
lineWidth: number;
miterLimit: number;
getLineDash(): number[];
setLineDash(segments: number[]): void;
}
/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
interface CanvasPattern {
/**
* Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.
*/
setTransform(transform?: DOMMatrix2DInit): void;
}
declare var CanvasPattern: {
prototype: CanvasPattern;
new(): CanvasPattern;
};
interface CanvasRect {
clearRect(x: number, y: number, w: number, h: number): void;
fillRect(x: number, y: number, w: number, h: number): void;
strokeRect(x: number, y: number, w: number, h: number): void;
}
/** The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects. */
interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
readonly canvas: HTMLCanvasElement;
getContextAttributes(): CanvasRenderingContext2DSettings;
}
declare var CanvasRenderingContext2D: {
prototype: CanvasRenderingContext2D;
new(): CanvasRenderingContext2D;
};
interface CanvasShadowStyles {
shadowBlur: number;
shadowColor: string;
shadowOffsetX: number;
shadowOffsetY: number;
}
interface CanvasState {
restore(): void;
save(): void;
}
interface CanvasText {
fillText(text: string, x: number, y: number, maxWidth?: number): void;
measureText(text: string): TextMetrics;
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
}
interface CanvasTextDrawingStyles {
direction: CanvasDirection;
font: string;
textAlign: CanvasTextAlign;
textBaseline: CanvasTextBaseline;
}
interface CanvasTransform {
getTransform(): DOMMatrix;
resetTransform(): void;
rotate(angle: number): void;
scale(x: number, y: number): void;
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
setTransform(transform?: DOMMatrix2DInit): void;
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
translate(x: number, y: number): void;
}
interface CanvasUserInterface {
drawFocusIfNeeded(element: Element): void;
drawFocusIfNeeded(path: Path2D, element: Element): void;
}
/** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */
interface ChannelMergerNode extends AudioNode {
}
declare var ChannelMergerNode: {
prototype: ChannelMergerNode;
new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;
};
/** The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */
interface ChannelSplitterNode extends AudioNode {
}
declare var ChannelSplitterNode: {
prototype: ChannelSplitterNode;
new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;
};
/** The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. */
interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
data: string;
readonly length: number;
readonly ownerDocument: Document;
appendData(data: string): void;
deleteData(offset: number, count: number): void;
insertData(offset: number, data: string): void;
replaceData(offset: number, count: number, data: string): void;
substringData(offset: number, count: number): string;
}
declare var CharacterData: {
prototype: CharacterData;
new(): CharacterData;
};
interface ChildNode extends Node {
/**
* Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
after(...nodes: (Node | string)[]): void;
/**
* Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
before(...nodes: (Node | string)[]): void;
/**
* Removes node.
*/
remove(): void;
/**
* Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
replaceWith(...nodes: (Node | string)[]): void;
}
/** @deprecated */
interface ClientRect extends DOMRect {
}
interface Clipboard extends EventTarget {
read(): Promise<ClipboardItems>;
readText(): Promise<string>;
write(data: ClipboardItems): Promise<void>;
writeText(data: string): Promise<void>;
}
declare var Clipboard: {
prototype: Clipboard;
new(): Clipboard;
};
/** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */
interface ClipboardEvent extends Event {
readonly clipboardData: DataTransfer | null;
}
declare var ClipboardEvent: {
prototype: ClipboardEvent;
new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
};
interface ClipboardItem {
readonly types: ReadonlyArray<string>;
getType(type: string): Promise<Blob>;
}
declare var ClipboardItem: {
prototype: ClipboardItem;
new(items: Record<string, ClipboardItemData>, options?: ClipboardItemOptions): ClipboardItem;
};
/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */
interface CloseEvent extends Event {
/**
* Returns the WebSocket connection close code provided by the server.
*/
readonly code: number;
/**
* Returns the WebSocket connection close reason provided by the server.
*/
readonly reason: string;
/**
* Returns true if the connection closed cleanly; false otherwise.
*/
readonly wasClean: boolean;
}
declare var CloseEvent: {
prototype: CloseEvent;
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
};
/** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */
interface Comment extends CharacterData {
}
declare var Comment: {
prototype: Comment;
new(data?: string): Comment;
};
/** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */
interface CompositionEvent extends UIEvent {
readonly data: string;
/** @deprecated */
initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;
}
declare var CompositionEvent: {
prototype: CompositionEvent;
new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;
};
interface ConstantSourceNode extends AudioScheduledSourceNode {
readonly offset: AudioParam;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ConstantSourceNode: {
prototype: ConstantSourceNode;
new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
};
/** An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. */
interface ConvolverNode extends AudioNode {
buffer: AudioBuffer | null;
normalize: boolean;
}
declare var ConvolverNode: {
prototype: ConvolverNode;
new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;
};
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface CountQueuingStrategy extends QueuingStrategy {
readonly highWaterMark: number;
readonly size: QueuingStrategySize;
}
declare var CountQueuingStrategy: {
prototype: CountQueuingStrategy;
new(init: QueuingStrategyInit): CountQueuingStrategy;
};
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 ArrayBufferView | 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;
};
interface CustomElementRegistry {
define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
get(name: string): CustomElementConstructor | undefined;
upgrade(root: Node): void;
whenDefined(name: string): Promise<CustomElementConstructor>;
}
declare var CustomElementRegistry: {
prototype: CustomElementRegistry;
new(): CustomElementRegistry;
};
interface CustomEvent<T = any> extends Event {
/**
* Returns any custom data event was created with. Typically used for synthetic events.
*/
readonly detail: T;
/** @deprecated */
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}
declare var CustomEvent: {
prototype: CustomEvent;
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
interface DOMException {
readonly code: number;
readonly message: string;
readonly name: string;
readonly ABORT_ERR: number;
readonly DATA_CLONE_ERR: number;
readonly DOMSTRING_SIZE_ERR: number;
readonly HIERARCHY_REQUEST_ERR: number;
readonly INDEX_SIZE_ERR: number;
readonly INUSE_ATTRIBUTE_ERR: number;
readonly INVALID_ACCESS_ERR: number;
readonly INVALID_CHARACTER_ERR: number;
readonly INVALID_MODIFICATION_ERR: number;
readonly INVALID_NODE_TYPE_ERR: number;
readonly INVALID_STATE_ERR: number;
readonly NAMESPACE_ERR: number;
readonly NETWORK_ERR: number;
readonly NOT_FOUND_ERR: number;
readonly NOT_SUPPORTED_ERR: number;
readonly NO_DATA_ALLOWED_ERR: number;
readonly NO_MODIFICATION_ALLOWED_ERR: number;
readonly QUOTA_EXCEEDED_ERR: number;
readonly SECURITY_ERR: number;
readonly SYNTAX_ERR: number;
readonly TIMEOUT_ERR: number;
readonly TYPE_MISMATCH_ERR: number;
readonly URL_MISMATCH_ERR: number;
readonly VALIDATION_ERR: number;
readonly WRONG_DOCUMENT_ERR: number;
}
declare var DOMException: {
prototype: DOMException;
new(message?: string, name?: string): DOMException;
readonly ABORT_ERR: number;
readonly DATA_CLONE_ERR: number;
readonly DOMSTRING_SIZE_ERR: number;
readonly HIERARCHY_REQUEST_ERR: number;
readonly INDEX_SIZE_ERR: number;
readonly INUSE_ATTRIBUTE_ERR: number;
readonly INVALID_ACCESS_ERR: number;
readonly INVALID_CHARACTER_ERR: number;
readonly INVALID_MODIFICATION_ERR: number;
readonly INVALID_NODE_TYPE_ERR: number;
readonly INVALID_STATE_ERR: number;
readonly NAMESPACE_ERR: number;
readonly NETWORK_ERR: number;
readonly NOT_FOUND_ERR: number;
readonly NOT_SUPPORTED_ERR: number;
readonly NO_DATA_ALLOWED_ERR: number;
readonly NO_MODIFICATION_ALLOWED_ERR: number;
readonly QUOTA_EXCEEDED_ERR: number;
readonly SECURITY_ERR: number;
readonly SYNTAX_ERR: number;
readonly TIMEOUT_ERR: number;
readonly TYPE_MISMATCH_ERR: number;
readonly URL_MISMATCH_ERR: number;
readonly VALIDATION_ERR: number;
readonly WRONG_DOCUMENT_ERR: number;
};
/** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */
interface DOMImplementation {
createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
createHTMLDocument(title?: string): Document;
/** @deprecated */
hasFeature(...args: any[]): true;
}
declare var DOMImplementation: {
prototype: DOMImplementation;
new(): DOMImplementation;
};
interface DOMMatrix extends DOMMatrixReadOnly {
a: number;
b: number;
c: number;
d: number;
e: number;
f: number;
m11: number;
m12: number;
m13: number;
m14: number;
m21: number;
m22: number;
m23: number;
m24: number;
m31: number;
m32: number;
m33: number;
m34: number;
m41: number;
m42: number;
m43: number;
m44: number;
invertSelf(): DOMMatrix;
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
setMatrixValue(transformList: string): DOMMatrix;
skewXSelf(sx?: number): DOMMatrix;
skewYSelf(sy?: number): DOMMatrix;
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrix: {
prototype: DOMMatrix;
new(init?: string | number[]): DOMMatrix;
fromFloat32Array(array32: Float32Array): DOMMatrix;
fromFloat64Array(array64: Float64Array): DOMMatrix;
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
};
type SVGMatrix = DOMMatrix;
declare var SVGMatrix: typeof DOMMatrix;
type WebKitCSSMatrix = DOMMatrix;
declare var WebKitCSSMatrix: typeof DOMMatrix;
interface DOMMatrixReadOnly {
readonly a: number;
readonly b: number;
readonly c: number;
readonly d: number;
readonly e: number;
readonly f: number;
readonly is2D: boolean;
readonly isIdentity: boolean;
readonly m11: number;
readonly m12: number;
readonly m13: number;
readonly m14: number;
readonly m21: number;
readonly m22: number;
readonly m23: number;
readonly m24: number;
readonly m31: number;
readonly m32: number;
readonly m33: number;
readonly m34: number;
readonly m41: number;
readonly m42: number;
readonly m43: number;
readonly m44: number;
flipX(): DOMMatrix;
flipY(): DOMMatrix;
inverse(): DOMMatrix;
multiply(other?: DOMMatrixInit): DOMMatrix;
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVector(x?: number, y?: number): DOMMatrix;
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** @deprecated */
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
skewX(sx?: number): DOMMatrix;
skewY(sy?: number): DOMMatrix;
toFloat32Array(): Float32Array;
toFloat64Array(): Float64Array;
toJSON(): any;
transformPoint(point?: DOMPointInit): DOMPoint;
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
toString(): string;
}
declare var DOMMatrixReadOnly: {
prototype: DOMMatrixReadOnly;
new(init?: string | number[]): DOMMatrixReadOnly;
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
toString(): string;
};
/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */
interface DOMParser {
/**
* Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser).
*
* For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.
*
* Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8.
*
* Values other than the above for type will cause a TypeError exception to be thrown.
*/
parseFromString(string: string, type: DOMParserSupportedType): Document;
}
declare var DOMParser: {
prototype: DOMParser;
new(): DOMParser;
};
interface DOMPoint extends DOMPointReadOnly {
w: number;
x: number;
y: number;
z: number;
}
declare var DOMPoint: {
prototype: DOMPoint;
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
fromPoint(other?: DOMPointInit): DOMPoint;
};
type SVGPoint = DOMPoint;
declare var SVGPoint: typeof DOMPoint;
interface DOMPointReadOnly {
readonly w: number;
readonly x: number;
readonly y: number;
readonly z: number;
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
toJSON(): any;
}
declare var DOMPointReadOnly: {
prototype: DOMPointReadOnly;
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};
interface DOMQuad {
readonly p1: DOMPoint;
readonly p2: DOMPoint;
readonly p3: DOMPoint;
readonly p4: DOMPoint;
getBounds(): DOMRect;
toJSON(): any;
}
declare var DOMQuad: {
prototype: DOMQuad;
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
fromQuad(other?: DOMQuadInit): DOMQuad;
fromRect(other?: DOMRectInit): DOMQuad;
};
interface DOMRect extends DOMRectReadOnly {
height: number;
width: number;
x: number;
y: number;
}
declare var DOMRect: {
prototype: DOMRect;
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
fromRect(other?: DOMRectInit): DOMRect;
};
type SVGRect = DOMRect;
declare var SVGRect: typeof DOMRect;
interface DOMRectList {
readonly length: number;
item(index: number): DOMRect | null;
[index: number]: DOMRect;
}
declare var DOMRectList: {
prototype: DOMRectList;
new(): DOMRectList;
};
interface DOMRectReadOnly {
readonly bottom: number;
readonly height: number;
readonly left: number;
readonly right: number;
readonly top: number;
readonly width: number;
readonly x: number;
readonly y: number;
toJSON(): any;
}
declare var DOMRectReadOnly: {
prototype: DOMRectReadOnly;
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
/** A type returned by some APIs which contains a list of DOMString (strings). */
interface DOMStringList {
/**
* Returns the number of strings in strings.
*/
readonly length: number;
/**
* Returns true if strings contains string, and false otherwise.
*/
contains(string: string): boolean;
/**
* Returns the string with index index from strings.
*/
item(index: number): string | null;
[index: number]: string;
}
declare var DOMStringList: {
prototype: DOMStringList;
new(): DOMStringList;
};
/** Used by the dataset\xA0HTML\xA0attribute to represent data for custom attributes added to elements. */
interface DOMStringMap {
[name: string]: string | undefined;
}
declare var DOMStringMap: {
prototype: DOMStringMap;
new(): DOMStringMap;
};
/** A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. */
interface DOMTokenList {
/**
* Returns the number of tokens.
*/
readonly length: number;
/**
* Returns the associated set as string.
*
* Can be set, to change the associated attribute.
*/
value: string;
toString(): string;
/**
* Adds all arguments passed, except those already present.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*/
add(...tokens: string[]): void;
/**
* Returns true if token is present, and false otherwise.
*/
contains(token: string): boolean;
/**
* Returns the token with index index.
*/
item(index: number): string | null;
/**
* Removes arguments passed, if they are present.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*/
remove(...tokens: string[]): void;
/**
* Replaces token with newToken.
*
* Returns true if token was replaced with newToken, and false otherwise.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*/
replace(token: string, newToken: string): boolean;
/**
* Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.
*
* Throws a TypeError if the associated attribute has no supported tokens defined.
*/
supports(token: string): boolean;
/**
* If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).
*
* Returns true if token is now present, and false otherwise.
*
* Throws a "SyntaxError" DOMException if token is empty.
*
* Throws an "InvalidCharacterError" DOMException if token contains any spaces.
*/
toggle(token: string, force?: boolean): boolean;
forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;
[index: number]: string;
}
declare var DOMTokenList: {
prototype: DOMTokenList;
new(): DOMTokenList;
};
/** Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. */
interface DataTransfer {
/**
* Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail.
*
* Can be set, to change the selected operation.
*
* The possible values are "none", "copy", "link", and "move".
*/
dropEffect: "none" | "copy" | "link" | "move";
/**
* Returns the kinds of operations that are to be allowed.
*
* Can be set (during the dragstart event), to change the allowed operations.
*
* The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",
*/
effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
/**
* Returns a FileList of the files being dragged, if any.
*/
readonly files: FileList;
/**
* Returns a DataTransferItemList object, with the drag data.
*/
readonly items: DataTransferItemList;
/**
* Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files".
*/
readonly types: ReadonlyArray<string>;
/**
* Removes the data of the specified formats. Removes all data if the argument is omitted.
*/
clearData(format?: string): void;
/**
* Returns the specified data. If there is no such data, returns the empty string.
*/
getData(format: string): string;
/**
* Adds the specified data.
*/
setData(format: string, data: string): void;
/**
* Uses the given element to update the drag feedback, replacing any previously specified feedback.
*/
setDragImage(image: Element, x: number, y: number): void;
}
declare var DataTransfer: {
prototype: DataTransfer;
new(): DataTransfer;
};
/** One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. */
interface DataTransferItem {
/**
* Returns the drag data item kind, one of: "string", "file".
*/
readonly kind: string;
/**
* Returns the drag data item type string.
*/
readonly type: string;
/**
* Returns a File object, if the drag data item kind is File.
*/
getAsFile(): File | null;
/**
* Invokes the callback with the string data as the argument, if the drag data item kind is text.
*/
getAsString(callback: FunctionStringCallback | null): void;
webkitGetAsEntry(): FileSystemEntry | null;
}
declare var DataTransferItem: {
prototype: DataTransferItem;
new(): DataTransferItem;
};
/** A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. */
interface DataTransferItemList {
/**
* Returns the number of items in the drag data store.
*/
readonly length: number;
/**
* Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.
*/
add(data: string, type: string): DataTransferItem | null;
add(data: File): DataTransferItem | null;
/**
* Removes all the entries in the drag data store.
*/
clear(): void;
/**
* Removes the indexth entry in the drag data store.
*/
remove(index: number): void;
[index: number]: DataTransferItem;
}
declare var DataTransferItemList: {
prototype: DataTransferItemList;
new(): DataTransferItemList;
};
/** A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. */
interface DelayNode extends AudioNode {
readonly delayTime: AudioParam;
}
declare var DelayNode: {
prototype: DelayNode;
new(context: BaseAudioContext, options?: DelayOptions): DelayNode;
};
/** The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. */
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;
};
interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
"fullscreenchange": Event;
"fullscreenerror": Event;
"pointerlockchange": Event;
"pointerlockerror": Event;
"readystatechange": Event;
"visibilitychange": Event;
}
/** Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. */
interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
/**
* Sets or gets the URL for the current document.
*/
readonly URL: string;
/**
* Sets or gets the color of all active links in the document.
* @deprecated
*/
alinkColor: string;
/**
* Returns a reference to the collection of elements contained by the object.
* @deprecated
*/
readonly all: HTMLAllCollection;
/**
* Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
* @deprecated
*/
readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;
/**
* Retrieves a collection of all applet objects in the document.
* @deprecated
*/
readonly applets: HTMLCollection;
/**
* Deprecated. Sets or retrieves a value that indicates the background color behind the object.
* @deprecated
*/
bgColor: string;
/**
* Specifies the beginning and end of the document body.
*/
body: HTMLElement;
/**
* Returns document's encoding.
*/
readonly characterSet: string;
/**
* Gets or sets the character set used to encode the object.
* @deprecated This is a legacy alias of \`characterSet\`.
*/
readonly charset: string;
/**
* Gets a value that indicates whether standards-compliant mode is switched on for the object.
*/
readonly compatMode: string;
/**
* Returns document's content type.
*/
readonly contentType: string;
/**
* Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.
*
* Can be set, to add a new cookie to the element's set of HTTP cookies.
*
* If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.
*/
cookie: string;
/**
* Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.
*
* Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.
*/
readonly currentScript: HTMLOrSVGScriptElement | null;
/**
* Returns the Window object of the active document.
*/
readonly defaultView: (WindowProxy & typeof globalThis) | null;
/**
* Sets or gets a value that indicates whether the document can be edited.
*/
designMode: string;
/**
* Sets or retrieves a value that indicates the reading order of the object.
*/
dir: string;
/**
* Gets an object representing the document type declaration associated with the current document.
*/
readonly doctype: DocumentType | null;
/**
* Gets a reference to the root node of the document.
*/
readonly documentElement: HTMLElement;
/**
* Returns document's URL.
*/
readonly documentURI: string;
/**
* Sets or gets the security domain of the document.
*/
domain: string;
/**
* Retrieves a collection of all embed objects in the document.
*/
readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
/**
* Sets or gets the foreground (text) color of the document.
* @deprecated
*/
fgColor: string;
/**
* Retrieves a collection, in source order, of all form objects in the document.
*/
readonly forms: HTMLCollectionOf<HTMLFormElement>;
/** @deprecated */
readonly fullscreen: boolean;
/**
* Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.
*/
readonly fullscreenEnabled: boolean;
/**
* Returns the head element.
*/
readonly head: HTMLHeadElement;
readonly hidden: boolean;
/**
* Retrieves a collection, in source order, of img objects in the document.
*/
readonly images: HTMLCollectionOf<HTMLImageElement>;
/**
* Gets the implementation object of the current document.
*/
readonly implementation: DOMImplementation;
/**
* Returns the character encoding used to create the webpage that is loaded into the document object.
* @deprecated This is a legacy alias of \`characterSet\`.
*/
readonly inputEncoding: string;
/**
* Gets the date that the page was last modified, if the page supplies one.
*/
readonly lastModified: string;
/**
* Sets or gets the color of the document links.
* @deprecated
*/
linkColor: string;
/**
* Retrieves a collection of all a objects that specify the href property and all area objects in the document.
*/
readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
/**
* Contains information about the current URL.
*/
get location(): Location;
set location(href: string | Location);
onfullscreenchange: ((this: Document, ev: Event) => any) | null;
onfullscreenerror: ((this: Document, ev: Event) => any) | null;
onpointerlockchange: ((this: Document, ev: Event) => any) | null;
onpointerlockerror: ((this: Document, ev: Event) => any) | null;
/**
* Fires when the state of the object has changed.
* @param ev The event
*/
onreadystatechange: ((this: Document, ev: Event) => any) | null;
onvisibilitychange: ((this: Document, ev: Event) => any) | null;
readonly ownerDocument: null;
readonly pictureInPictureEnabled: boolean;
/**
* Return an HTMLCollection of the embed elements in the Document.
*/
readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;
/**
* Retrieves a value that indicates the current state of the object.
*/
readonly readyState: DocumentReadyState;
/**
* Gets the URL of the location that referred the user to the current page.
*/
readonly referrer: string;
/** @deprecated */
readonly rootElement: SVGSVGElement | null;
/**
* Retrieves a collection of all script objects in the document.
*/
readonly scripts: HTMLCollectionOf<HTMLScriptElement>;
readonly scrollingElement: Element | null;
readonly timeline: DocumentTimeline;
/**
* Contains the title of the document.
*/
title: string;
readonly visibilityState: VisibilityState;
/**
* Sets or gets the color of the links that the user has visited.
* @deprecated
*/
vlinkColor: string;
/**
* Moves node from another document and returns it.
*
* If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.
*/
adoptNode<T extends Node>(node: T): T;
/** @deprecated */
captureEvents(): void;
/** @deprecated */
caretRangeFromPoint(x: number, y: number): Range | null;
/** @deprecated */
clear(): void;
/**
* Closes an output stream and forces the sent data to display.
*/
close(): void;
/**
* Creates an attribute object with a specified name.
* @param name String that sets the attribute object's name.
*/
createAttribute(localName: string): Attr;
createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
/**
* Returns a CDATASection node whose data is data.
*/
createCDATASection(data: string): CDATASection;
/**
* Creates a comment object with the specified data.
* @param data Sets the comment object's data.
*/
createComment(data: string): Comment;
/**
* Creates a new document.
*/
createDocumentFragment(): DocumentFragment;
/**
* Creates an instance of the element for the specified tag.
* @param tagName The name of an element.
*/
createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];
/** @deprecated */
createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];
createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;
/**
* Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.
*
* If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.
*
* If one of the following conditions is true a "NamespaceError" DOMException will be thrown:
*
* localName does not match the QName production.
* Namespace prefix is not null and namespace is the empty string.
* Namespace prefix is "xml" and namespace is not the XML namespace.
* qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.
* namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".
*
* When supplied, options's is can be used to create a customized built-in element.
*/
createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];
createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;
createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;
createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
createEvent(eventInterface: "BlobEvent"): BlobEvent;
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
createEvent(eventInterface: "CloseEvent"): CloseEvent;
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
createEvent(eventInterface: "CustomEvent"): CustomEvent;
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
createEvent(eventInterface: "DragEvent"): DragEvent;
createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
createEvent(eventInterface: "FocusEvent"): FocusEvent;
createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
createEvent(eventInterface: "InputEvent"): InputEvent;
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
createEvent(eventInterface: "MediaRecorderErrorEvent"): MediaRecorderErrorEvent;
createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
createEvent(eventInterface: "MessageEvent"): MessageEvent;
createEvent(eventInterface: "MouseEvent"): MouseEvent;
createEvent(eventInterface: "MouseEvents"): MouseEvent;
createEvent(eventInterface: "MutationEvent"): MutationEvent;
createEvent(eventInterface: "MutationEvents"): MutationEvent;
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
createEvent(eventInterface: "PointerEvent"): PointerEvent;
createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
createEvent(eventInterface: "StorageEvent"): StorageEvent;
createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
createEvent(eventInterface: "TouchEvent"): TouchEvent;
createEvent(eventInterface: "TrackEvent"): TrackEvent;
createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
createEvent(eventInterface: "UIEvent"): UIEvent;
createEvent(eventInterface: "UIEvents"): UIEvent;
createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
createEvent(eventInterface: "WheelEvent"): WheelEvent;
createEvent(eventInterface: string): Event;
/**
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
* @param root The root element or node to start traversing on.
* @param whatToShow The type of nodes or elements to appear in the node list
* @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
*/
createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
/**
* Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown.
*/
createProcessingInstruction(target: string, data: string): ProcessingInstruction;
/**
* Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
*/
createRange(): Range;
/**
* Creates a text string from the specified value.
* @param data String that specifies the nodeValue property of the text node.
*/
createTextNode(data: string): Text;
/**
* Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
* @param root The root element or node to start traversing on.
* @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
* @param filter A custom NodeFilter function to use.
*/
createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
/**
* 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.
* @deprecated
*/
execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
/**
* Stops document's fullscreen element from being displayed fullscreen and resolves promise when done.
*/
exitFullscreen(): Promise<void>;
exitPictureInPicture(): Promise<void>;
exitPointerLock(): void;
/**
* Returns a reference to the first object with the specified value of the ID attribute.
* @param elementId String that specifies the ID value.
*/
getElementById(elementId: string): HTMLElement | null;
/**
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
*/
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
/**
* Gets a collection of objects based on the value of the NAME or ID attribute.
* @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
*/
getElementsByName(elementName: string): NodeListOf<HTMLElement>;
/**
* Retrieves a collection of objects based on the specified element name.
* @param name Specifies the name of an element.
*/
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
/**
* If namespace and localName are "*" returns a HTMLCollection of all descendant elements.
*
* If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.
*
* If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.
*
* Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.
*/
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
/**
* Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
*/
getSelection(): Selection | null;
/**
* Gets a value indicating whether the object currently has focus.
*/
hasFocus(): boolean;
hasStorageAccess(): Promise<boolean>;
/**
* Returns a copy of node. If deep is true, the copy also includes the node's descendants.
*
* If node is a document or a shadow root, throws a "NotSupportedError" DOMException.
*/
importNode<T extends Node>(node: T, deep?: boolean): T;
/**
* Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
* @param url Specifies a MIME type for the document.
* @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.
* @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
* @param replace Specifies whether the existing entry for the document is replaced in the history list.
*/
open(unused1?: string, unused2?: string): Document;
open(url: string | URL, name: string, features: string): WindowProxy | null;
/**
* Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
* @param commandId Specifies a command identifier.
* @deprecated
*/
queryCommandEnabled(commandId: string): boolean;
/**
* Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
* @param commandId String that specifies a command identifier.
*/
queryCommandIndeterm(commandId: string): boolean;
/**
* Returns a Boolean value that indicates the current state of the command.
* @param commandId String that specifies a command identifier.
* @deprecated
*/
queryCommandState(commandId: string): boolean;
/**
* Returns a Boolean value that indicates whether the current command is supported on the current range.
* @param commandId Specifies a command identifier.
* @deprecated
*/
queryCommandSupported(commandId: string): boolean;
/**
* Returns the current value of the document, range, or current selection for the given command.
* @param commandId String that specifies a command identifier.
*/
queryCommandValue(commandId: string): string;
/** @deprecated */
releaseEvents(): void;
requestStorageAccess(): Promise<void>;
/**
* Writes one or more HTML expressions to a document in the specified window.
* @param content Specifies the text and HTML tags to write.
*/
write(...text: string[]): void;
/**
* Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
* @param content The text and HTML tags to write.
*/
writeln(...text: string[]): void;
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Document: {
prototype: Document;
new(): Document;
};
interface DocumentAndElementEventHandlersEventMap {
"copy": ClipboardEvent;
"cut": ClipboardEvent;
"paste": ClipboardEvent;
}
interface DocumentAndElementEventHandlers {
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
addEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
readonly ownerDocument: Document;
getElementById(elementId: string): HTMLElement | null;
}
declare var DocumentFragment: {
prototype: DocumentFragment;
new(): DocumentFragment;
};
interface DocumentOrShadowRoot {
/**
* Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
*
* For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
*
* Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.
*/
readonly activeElement: Element | null;
/**
* Returns document's fullscreen element.
*/
readonly fullscreenElement: Element | null;
readonly pictureInPictureElement: Element | null;
readonly pointerLockElement: Element | null;
/**
* Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
*/
readonly styleSheets: StyleSheetList;
getAnimations(): Animation[];
}
interface DocumentTimeline extends AnimationTimeline {
}
declare var DocumentTimeline: {
prototype: DocumentTimeline;
new(options?: DocumentTimelineOptions): DocumentTimeline;
};
/** A Node containing a doctype. */
interface DocumentType extends Node, ChildNode {
readonly name: string;
readonly ownerDocument: Document;
readonly publicId: string;
readonly systemId: string;
}
declare var DocumentType: {
prototype: DocumentType;
new(): DocumentType;
};
/** A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. */
interface DragEvent extends MouseEvent {
/**
* Returns the DataTransfer object for the event.
*/
readonly dataTransfer: DataTransfer | null;
}
declare var DragEvent: {
prototype: DragEvent;
new(type: string, eventInitDict?: DragEventInit): DragEvent;
};
/** Inherits properties from its parent, AudioNode. */
interface DynamicsCompressorNode extends AudioNode {
readonly attack: AudioParam;
readonly knee: AudioParam;
readonly ratio: AudioParam;
readonly reduction: number;
readonly release: AudioParam;
readonly threshold: AudioParam;
}
declare var DynamicsCompressorNode: {
prototype: DynamicsCompressorNode;
new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;
};
interface EXT_blend_minmax {
readonly MAX_EXT: GLenum;
readonly MIN_EXT: GLenum;
}
interface EXT_color_buffer_float {
}
interface EXT_color_buffer_half_float {
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
readonly RGB16F_EXT: GLenum;
readonly RGBA16F_EXT: GLenum;
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
}
interface EXT_float_blend {
}
/** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */
interface EXT_frag_depth {
}
interface EXT_sRGB {
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;
readonly SRGB8_ALPHA8_EXT: GLenum;
readonly SRGB_ALPHA_EXT: GLenum;
readonly SRGB_EXT: GLenum;
}
interface EXT_shader_texture_lod {
}
interface EXT_texture_compression_rgtc {
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;
}
/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
interface EXT_texture_filter_anisotropic {
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
}
interface ElementEventMap {
"fullscreenchange": Event;
"fullscreenerror": Event;
}
/** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */
interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
readonly attributes: NamedNodeMap;
/**
* Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
*/
readonly classList: DOMTokenList;
/**
* Returns the value of element's class content attribute. Can be set to change it.
*/
className: string;
readonly clientHeight: number;
readonly clientLeft: number;
readonly clientTop: number;
readonly clientWidth: number;
/**
* Returns the value of element's id content attribute. Can be set to change it.
*/
id: string;
/**
* Returns the local name.
*/
readonly localName: string;
/**
* Returns the namespace.
*/
readonly namespaceURI: string | null;
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
outerHTML: string;
readonly ownerDocument: Document;
readonly part: DOMTokenList;
/**
* Returns the namespace prefix.
*/
readonly prefix: string | null;
readonly scrollHeight: number;
scrollLeft: number;
scrollTop: number;
readonly scrollWidth: number;
/**
* Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
*/
readonly shadowRoot: ShadowRoot | null;
/**
* Returns the value of element's slot content attribute. Can be set to change it.
*/
slot: string;
/**
* Returns the HTML-uppercased qualified name.
*/
readonly tagName: string;
/**
* Creates a shadow root for element and returns it.
*/
attachShadow(init: ShadowRootInit): ShadowRoot;
/**
* Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
*/
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
closest<E extends Element = Element>(selectors: string): E | null;
/**
* Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
*/
getAttribute(qualifiedName: string): string | null;
/**
* Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
*/
getAttributeNS(namespace: string | null, localName: string): string | null;
/**
* Returns the qualified names of all element's attributes. Can contain duplicates.
*/
getAttributeNames(): string[];
getAttributeNode(qualifiedName: string): Attr | null;
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
getBoundingClientRect(): DOMRect;
getClientRects(): DOMRectList;
/**
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
*/
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
/**
* Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
*/
hasAttribute(qualifiedName: string): boolean;
/**
* Returns true if element has an attribute whose namespace is namespace and local name is localName.
*/
hasAttributeNS(namespace: string | null, localName: string): boolean;
/**
* Returns true if element has attributes, and false otherwise.
*/
hasAttributes(): boolean;
hasPointerCapture(pointerId: number): boolean;
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
insertAdjacentHTML(position: InsertPosition, text: string): void;
insertAdjacentText(where: InsertPosition, data: string): void;
/**
* Returns true if matching selectors against element's root yields element, and false otherwise.
*/
matches(selectors: string): boolean;
releasePointerCapture(pointerId: number): void;
/**
* Removes element's first attribute whose qualified name is qualifiedName.
*/
removeAttribute(qualifiedName: string): void;
/**
* Removes element's attribute whose namespace is namespace and local name is localName.
*/
removeAttributeNS(namespace: string | null, localName: string): void;
removeAttributeNode(attr: Attr): Attr;
/**
* Displays element fullscreen and resolves promise when done.
*
* When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
*/
requestFullscreen(options?: FullscreenOptions): Promise<void>;
requestPointerLock(): void;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* Sets the value of element's first attribute whose qualified name is qualifiedName to value.
*/
setAttribute(qualifiedName: string, value: string): void;
/**
* Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
*/
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
setAttributeNode(attr: Attr): Attr | null;
setAttributeNodeNS(attr: Attr): Attr | null;
setPointerCapture(pointerId: number): void;
/**
* If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
*
* Returns true if qualifiedName is now present, and false otherwise.
*/
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
/** @deprecated This is a legacy alias of \`matches\`. */
webkitMatchesSelector(selectors: string): boolean;
addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Element: {
prototype: Element;
new(): Element;
};
interface ElementCSSInlineStyle {
readonly style: CSSStyleDeclaration;
}
interface ElementContentEditable {
contentEditable: string;
enterKeyHint: string;
inputMode: string;
readonly isContentEditable: boolean;
}
/** Events providing information related to errors in scripts or in files. */
interface ErrorEvent extends Event {
readonly colno: number;
readonly error: any;
readonly filename: string;
readonly lineno: number;
readonly message: string;
}
declare var ErrorEvent: {
prototype: ErrorEvent;
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};
/** An event which takes place in the DOM. */
interface Event {
/**
* Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
*/
readonly bubbles: boolean;
cancelBubble: boolean;
/**
* Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
*/
readonly cancelable: boolean;
/**
* Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
*/
readonly composed: boolean;
/**
* Returns the object whose event listener's callback is currently being invoked.
*/
readonly currentTarget: EventTarget | null;
/**
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
*/
readonly defaultPrevented: boolean;
/**
* Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
*/
readonly eventPhase: number;
/**
* Returns true if event was dispatched by the user agent, and false otherwise.
*/
readonly isTrusted: boolean;
/** @deprecated */
returnValue: boolean;
/** @deprecated */
readonly srcElement: EventTarget | null;
/**
* Returns the object to which event is dispatched (its target).
*/
readonly target: EventTarget | null;
/**
* Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
*/
readonly timeStamp: DOMHighResTimeStamp;
/**
* Returns the type of event, e.g. "click", "hashchange", or "submit".
*/
readonly type: string;
/**
* Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
*/
composedPath(): EventTarget[];
/** @deprecated */
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
/**
* If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
*/
preventDefault(): void;
/**
* Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
*/
stopImmediatePropagation(): void;
/**
* When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
*/
stopPropagation(): void;
readonly AT_TARGET: number;
readonly BUBBLING_PHASE: number;
readonly CAPTURING_PHASE: number;
readonly NONE: number;
}
declare var Event: {
prototype: Event;
new(type: string, eventInitDict?: EventInit): Event;
readonly AT_TARGET: number;
readonly BUBBLING_PHASE: number;
readonly CAPTURING_PHASE: number;
readonly NONE: number;
};
interface EventListener {
(evt: Event): void;
}
interface EventListenerObject {
handleEvent(object: Event): void;
}
interface EventSourceEventMap {
"error": Event;
"message": MessageEvent;
"open": Event;
}
interface EventSource extends EventTarget {
onerror: ((this: EventSource, ev: Event) => any) | null;
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
onopen: ((this: EventSource, ev: Event) => any) | null;
/**
* Returns the state of this EventSource object's connection. It can have the values described below.
*/
readonly readyState: number;
/**
* Returns the URL providing the event stream.
*/
readonly url: string;
/**
* Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
*/
readonly withCredentials: boolean;
/**
* Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
*/
close(): void;
readonly CLOSED: number;
readonly CONNECTING: number;
readonly OPEN: number;
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var EventSource: {
prototype: EventSource;
new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
readonly CLOSED: number;
readonly CONNECTING: number;
readonly OPEN: number;
};
/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
interface EventTarget {
/**
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
*
* The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
*
* When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
*
* When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners.
*
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
*
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
*
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
*/
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*/
dispatchEvent(event: Event): boolean;
/**
* Removes the event listener in target's event listener list with the same type, callback, and options.
*/
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
}
declare var EventTarget: {
prototype: EventTarget;
new(): EventTarget;
};
/** @deprecated */
interface External {
/** @deprecated */
AddSearchProvider(): void;
/** @deprecated */
IsSearchProviderInstalled(): void;
}
/** @deprecated */
declare var External: {
prototype: External;
new(): External;
};
/** Provides information about files and allows JavaScript in a web page to access their content. */
interface File extends Blob {
readonly lastModified: number;
readonly name: string;
readonly webkitRelativePath: string;
}
declare var File: {
prototype: File;
new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};
/** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */
interface FileList {
readonly length: number;
item(index: number): File | null;
[index: number]: File;
}
declare var FileList: {
prototype: FileList;
new(): FileList;
};
interface FileReaderEventMap {
"abort": ProgressEvent<FileReader>;
"error": ProgressEvent<FileReader>;
"load": ProgressEvent<FileReader>;
"loadend": ProgressEvent<FileReader>;
"loadstart": ProgressEvent<FileReader>;
"progress": ProgressEvent<FileReader>;
}
/** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */
interface FileReader extends EventTarget {
readonly error: DOMException | null;
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
readonly readyState: number;
readonly result: string | ArrayBuffer | null;
abort(): void;
readAsArrayBuffer(blob: Blob): void;
readAsBinaryString(blob: Blob): void;
readAsDataURL(blob: Blob): void;
readAsText(blob: Blob, encoding?: string): void;
readonly DONE: number;
readonly EMPTY: number;
readonly LOADING: number;
addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FileReader: {
prototype: FileReader;
new(): FileReader;
readonly DONE: number;
readonly EMPTY: number;
readonly LOADING: number;
};
interface FileSystem {
readonly name: string;
readonly root: FileSystemDirectoryEntry;
}
declare var FileSystem: {
prototype: FileSystem;
new(): FileSystem;
};
interface FileSystemDirectoryEntry extends FileSystemEntry {
createReader(): FileSystemDirectoryReader;
getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemDirectoryEntry: {
prototype: FileSystemDirectoryEntry;
new(): FileSystemDirectoryEntry;
};
/** @deprecated */
interface FileSystemDirectoryReader {
/** @deprecated */
readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
}
/** @deprecated */
declare var FileSystemDirectoryReader: {
prototype: FileSystemDirectoryReader;
new(): FileSystemDirectoryReader;
};
interface FileSystemEntry {
readonly filesystem: FileSystem;
readonly fullPath: string;
readonly isDirectory: boolean;
readonly isFile: boolean;
readonly name: string;
getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemEntry: {
prototype: FileSystemEntry;
new(): FileSystemEntry;
};
interface FileSystemFileEntry extends FileSystemEntry {
file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemFileEntry: {
prototype: FileSystemFileEntry;
new(): FileSystemFileEntry;
};
/** Focus-related events like focus, blur, focusin, or focusout. */
interface FocusEvent extends UIEvent {
readonly relatedTarget: EventTarget | null;
}
declare var FocusEvent: {
prototype: FocusEvent;
new(type: string, eventInitDict?: FocusEventInit): FocusEvent;
};
interface FontFace {
ascentOverride: string;
descentOverride: string;
display: string;
family: string;
featureSettings: string;
lineGapOverride: string;
readonly loaded: Promise<FontFace>;
readonly status: FontFaceLoadStatus;
stretch: string;
style: string;
unicodeRange: string;
variant: string;
variationSettings: string;
weight: string;
load(): Promise<FontFace>;
}
declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
};
interface FontFaceSetEventMap {
"loading": Event;
"loadingdone": Event;
"loadingerror": Event;
}
interface FontFaceSet extends EventTarget {
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
readonly ready: Promise<FontFaceSet>;
readonly status: FontFaceSetLoadStatus;
check(font: string, text?: string): boolean;
load(font: string, text?: string): Promise<FontFace[]>;
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FontFaceSet: {
prototype: FontFaceSet;
new(initialFaces: FontFace[]): FontFaceSet;
};
interface FontFaceSetLoadEvent extends Event {
readonly fontfaces: ReadonlyArray<FontFace>;
}
declare var FontFaceSetLoadEvent: {
prototype: FontFaceSetLoadEvent;
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
};
interface FontFaceSource {
readonly fonts: FontFaceSet;
}
/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */
interface FormData {
append(name: string, value: string | Blob, fileName?: string): void;
delete(name: string): void;
get(name: string): FormDataEntryValue | null;
getAll(name: string): FormDataEntryValue[];
has(name: string): boolean;
set(name: string, value: string | Blob, fileName?: string): void;
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
}
declare var FormData: {
prototype: FormData;
new(form?: HTMLFormElement): FormData;
};
interface FormDataEvent extends Event {
/**
* Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted.
*/
readonly formData: FormData;
}
declare var FormDataEvent: {
prototype: FormDataEvent;
new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;
};
/** A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. */
interface GainNode extends AudioNode {
readonly gain: AudioParam;
}
declare var GainNode: {
prototype: GainNode;
new(context: BaseAudioContext, options?: GainOptions): GainNode;
};
/** This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. */
interface Gamepad {
readonly axes: ReadonlyArray<number>;
readonly buttons: ReadonlyArray<GamepadButton>;
readonly connected: boolean;
readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;
readonly id: string;
readonly index: number;
readonly mapping: GamepadMappingType;
readonly timestamp: DOMHighResTimeStamp;
}
declare var Gamepad: {
prototype: Gamepad;
new(): Gamepad;
};
/** An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. */
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;
}
declare var GamepadHapticActuator: {
prototype: GamepadHapticActuator;
new(): GamepadHapticActuator;
};
interface GenericTransformStream {
readonly readable: ReadableStream;
readonly writable: WritableStream;
}
/** An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. */
interface Geolocation {
clearWatch(watchId: number): void;
getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;
watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;
}
declare var Geolocation: {
prototype: Geolocation;
new(): Geolocation;
};
interface GeolocationCoordinates {
readonly accuracy: number;
readonly altitude: number | null;
readonly altitudeAccuracy: number | null;
readonly heading: number | null;
readonly latitude: number;
readonly longitude: number;
readonly speed: number | null;
}
declare var GeolocationCoordinates: {
prototype: GeolocationCoordinates;
new(): GeolocationCoordinates;
};
interface GeolocationPosition {
readonly coords: GeolocationCoordinates;
readonly timestamp: DOMTimeStamp;
}
declare var GeolocationPosition: {
prototype: GeolocationPosition;
new(): GeolocationPosition;
};
interface GeolocationPositionError {
readonly code: number;
readonly message: string;
readonly PERMISSION_DENIED: number;
readonly POSITION_UNAVAILABLE: number;
readonly TIMEOUT: number;
}
declare var GeolocationPositionError: {
prototype: GeolocationPositionError;
new(): GeolocationPositionError;
readonly PERMISSION_DENIED: number;
readonly POSITION_UNAVAILABLE: number;
readonly TIMEOUT: number;
};
interface GlobalEventHandlersEventMap {
"abort": UIEvent;
"animationcancel": AnimationEvent;
"animationend": AnimationEvent;
"animationiteration": AnimationEvent;
"animationstart": AnimationEvent;
"auxclick": MouseEvent;
"beforeinput": InputEvent;
"blur": FocusEvent;
"canplay": Event;
"canplaythrough": Event;
"change": Event;
"click": MouseEvent;
"close": Event;
"compositionend": CompositionEvent;
"compositionstart": CompositionEvent;
"compositionupdate": CompositionEvent;
"contextmenu": MouseEvent;
"cuechange": Event;
"dblclick": MouseEvent;
"drag": DragEvent;
"dragend": DragEvent;
"dragenter": DragEvent;
"dragleave": DragEvent;
"dragover": DragEvent;
"dragstart": DragEvent;
"drop": DragEvent;
"durationchange": Event;
"emptied": Event;
"ended": Event;
"error": ErrorEvent;
"focus": FocusEvent;
"focusin": FocusEvent;
"focusout": FocusEvent;
"formdata": FormDataEvent;
"gotpointercapture": PointerEvent;
"input": Event;
"invalid": Event;
"keydown": KeyboardEvent;
"keypress": KeyboardEvent;
"keyup": KeyboardEvent;
"load": Event;
"loadeddata": Event;
"loadedmetadata": Event;
"loadstart": Event;
"lostpointercapture": PointerEvent;
"mousedown": MouseEvent;
"mouseenter": MouseEvent;
"mouseleave": MouseEvent;
"mousemove": MouseEvent;
"mouseout": MouseEvent;
"mouseover": MouseEvent;
"mouseup": MouseEvent;
"pause": Event;
"play": Event;
"playing": Event;
"pointercancel": PointerEvent;
"pointerdown": PointerEvent;
"pointerenter": PointerEvent;
"pointerleave": PointerEvent;
"pointermove": PointerEvent;
"pointerout": PointerEvent;
"pointerover": PointerEvent;
"pointerup": PointerEvent;
"progress": ProgressEvent;
"ratechange": Event;
"reset": Event;
"resize": UIEvent;
"scroll": Event;
"securitypolicyviolation": SecurityPolicyViolationEvent;
"seeked": Event;
"seeking": Event;
"select": Event;
"selectionchange": Event;
"selectstart": Event;
"stalled": Event;
"submit": 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;
"webkitanimationend": Event;
"webkitanimationiteration": Event;
"webkitanimationstart": Event;
"webkittransitionend": Event;
"wheel": WheelEvent;
}
interface GlobalEventHandlers {
/**
* Fires when the user aborts the download.
* @param ev The event.
*/
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the object loses the input focus.
* @param ev The focus event.
*/
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*/
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*/
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the left mouse button on the object
* @param ev The mouse event.
*/
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*/
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
*/
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires on the source object continuously during a drag operation.
* @param ev The event.
*/
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user releases the mouse at the close of a drag operation.
* @param ev The event.
*/
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target element when the user drags the object to a valid drop target.
* @param ev The drag event.
*/
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
* @param ev The drag event.
*/
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target element continuously while the user drags the object over a valid drop target.
* @param ev The event.
*/
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user starts to drag a text selection or selected object.
* @param ev The event.
*/
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Occurs when the duration attribute is updated.
* @param ev The event.
*/
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the media element is reset to its initial state.
* @param ev The event.
*/
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the end of playback is reached.
* @param ev The event
*/
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when an error occurs during object loading.
* @param ev The event.
*/
onerror: OnErrorEventHandler;
/**
* Fires when the object receives focus.
* @param ev The event.
*/
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user presses a key.
* @param ev The keyboard event
*/
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
* @deprecated
*/
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user releases a key.
* @param ev The keyboard event
*/
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires immediately after the browser loads the object.
* @param ev The event.
*/
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when media data is loaded at the current playback position.
* @param ev The event.
*/
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the duration and dimensions of the media have been determined.
* @param ev The event.
*/
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when Internet Explorer begins looking for media data.
* @param ev The event.
*/
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Fires when the user clicks the object with either mouse button.
* @param ev The mouse event.
*/
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse over the object.
* @param ev The mouse event.
*/
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer outside the boundaries of the object.
* @param ev The mouse event.
*/
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer into the object.
* @param ev The mouse event.
*/
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user releases a mouse button while the mouse is over the object.
* @param ev The mouse event.
*/
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Occurs when playback is paused.
* @param ev The event.
*/
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the play method is requested.
* @param ev The event.
*/
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the audio or video has started playing.
* @param ev The event.
*/
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Occurs to indicate progress while downloading media data.
* @param ev The event.
*/
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
/**
* Occurs when the playback rate is increased or decreased.
* @param ev The event.
*/
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user resets a form.
* @param ev The event.
*/
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
/**
* Fires when the user repositions the scroll box in the scroll bar on the object.
* @param ev The event.
*/
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*/
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*/
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*/
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*/
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onsubmit: ((this: GlobalEventHandlers, ev: 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 | undefined;
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/**
* Occurs when the volume is changed, or playback is muted or unmuted.
* @param ev The event.
*/
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when playback stops because the next frame of a video resource is not available.
* @param ev The event.
*/
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface HTMLAllCollection {
/**
* Returns the number of elements in the collection.
*/
readonly length: number;
/**
* Returns the item with index index from the collection (determined by tree order).
*/
item(nameOrIndex?: string): HTMLCollection | Element | null;
/**
* Returns the item with ID or name name from the collection.
*
* If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.
*
* Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.
*/
namedItem(name: string): HTMLCollection | Element | null;
[index: number]: Element;
}
declare var HTMLAllCollection: {
prototype: HTMLAllCollection;
new(): HTMLAllCollection;
};
/** Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. */
interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
/**
* Sets or retrieves the coordinates of the object.
* @deprecated
*/
coords: string;
download: string;
/**
* Sets or retrieves the language code of the object.
*/
hreflang: string;
/**
* Sets or retrieves the shape of the object.
* @deprecated
*/
name: string;
ping: string;
referrerPolicy: string;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
*/
rel: string;
readonly relList: DOMTokenList;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
* @deprecated
*/
rev: string;
/**
* Sets or retrieves the shape of the object.
* @deprecated
*/
shape: string;
/**
* Sets or retrieves the window or frame at which to target content.
*/
target: string;
/**
* Retrieves or sets the text of the object as a string.
*/
text: string;
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLAnchorElement: {
prototype: HTMLAnchorElement;
new(): HTMLAnchorElement;
};
/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements. */
interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
/**
* Sets or retrieves a text alternative to the graphic.
*/
alt: string;
/**
* Sets or retrieves the coordinates of the object.
*/
coords: string;
download: string;
/**
* Sets or gets whether clicks in this region cause action.
* @deprecated
*/
noHref: boolean;
ping: string;
referrerPolicy: string;
rel: string;
readonly relList: DOMTokenList;
/**
* Sets or retrieves the shape of the object.
*/
shape: string;
/**
* Sets or retrieves the window or frame at which to target content.
*/
target: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLAreaElement: {
prototype: HTMLAreaElement;
new(): HTMLAreaElement;
};
/** Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */
interface HTMLAudioElement extends HTMLMediaElement {
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLAudioElement: {
prototype: HTMLAudioElement;
new(): HTMLAudioElement;
};
/** A HTML line break element (<br>). It inherits from HTMLElement. */
interface HTMLBRElement extends HTMLElement {
/**
* Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
* @deprecated
*/
clear: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBRElement: {
prototype: HTMLBRElement;
new(): HTMLBRElement;
};
/** Contains the base URI\xA0for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */
interface HTMLBaseElement extends HTMLElement {
/**
* Gets or sets the baseline URL on which relative links are based.
*/
href: string;
/**
* Sets or retrieves the window or frame at which to target content.
*/
target: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBaseElement: {
prototype: HTMLBaseElement;
new(): HTMLBaseElement;
};
interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
"orientationchange": Event;
}
/** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */
interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
/** @deprecated */
aLink: string;
/** @deprecated */
background: string;
/** @deprecated */
bgColor: string;
/** @deprecated */
link: string;
/** @deprecated */
onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;
/** @deprecated */
text: string;
/** @deprecated */
vLink: string;
addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBodyElement: {
prototype: HTMLBodyElement;
new(): HTMLBodyElement;
};
/** Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. */
interface HTMLButtonElement extends HTMLElement {
disabled: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*/
readonly form: HTMLFormElement | null;
/**
* Overrides the action attribute (where the data on a form is sent) on the parent form element.
*/
formAction: string;
/**
* Used to override the encoding (formEnctype attribute) specified on the form element.
*/
formEnctype: string;
/**
* Overrides the submit method attribute previously specified on a form element.
*/
formMethod: string;
/**
* Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
*/
formNoValidate: boolean;
/**
* Overrides the target attribute on a form element.
*/
formTarget: string;
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* Sets or retrieves the name of the object.
*/
name: string;
/**
* Gets the classification and default behavior of the button.
*/
type: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*/
readonly validity: ValidityState;
/**
* Sets or retrieves the default or selected value of the control.
*/
value: string;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*/
readonly willValidate: boolean;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*/
checkValidity(): boolean;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLButtonElement: {
prototype: HTMLButtonElement;
new(): HTMLButtonElement;
};
/** Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. */
interface HTMLCanvasElement extends HTMLElement {
/**
* Gets or sets the height of a canvas element on a document.
*/
height: number;
/**
* Gets or sets the width of a canvas element on a document.
*/
width: number;
captureStream(frameRequestRate?: number): MediaStream;
/**
* Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
* @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
*/
getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
getContext(contextId: string, options?: any): RenderingContext | null;
toBlob(callback: BlobCallback, type?: string, quality?: any): void;
/**
* Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
* @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
*/
toDataURL(type?: string, quality?: any): string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLCanvasElement: {
prototype: HTMLCanvasElement;
new(): HTMLCanvasElement;
};
/** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */
interface HTMLCollectionBase {
/**
* Sets or retrieves the number of objects in a collection.
*/
readonly length: number;
/**
* Retrieves an object from various collections.
*/
item(index: number): Element | null;
[index: number]: Element;
}
interface HTMLCollection extends HTMLCollectionBase {
/**
* Retrieves a select object or an object from an options collection.
*/
namedItem(name: string): Element | null;
}
declare var HTMLCollection: {
prototype: HTMLCollection;
new(): HTMLCollection;
};
interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
item(index: number): T | null;
namedItem(name: string): T | null;
[index: number]: T;
}
/** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */
interface HTMLDListElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDListElement: {
prototype: HTMLDListElement;
new(): HTMLDListElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */
interface HTMLDataElement extends HTMLElement {
value: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDataElement: {
prototype: HTMLDataElement;
new(): HTMLDataElement;
};
/** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */
interface HTMLDataListElement extends HTMLElement {
/**
* Returns an HTMLCollection of the option elements of the datalist element.
*/
readonly options: HTMLCollectionOf<HTMLOptionElement>;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDataListElement: {
prototype: HTMLDataListElement;
new(): HTMLDataListElement;
};
interface HTMLDetailsElement extends HTMLElement {
open: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDetailsElement: {
prototype: HTMLDetailsElement;
new(): HTMLDetailsElement;
};
/** @deprecated this is not available in most browsers */
interface HTMLDialogElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
interface HTMLDirectoryElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLDirectoryElement: {
prototype: HTMLDirectoryElement;
new(): HTMLDirectoryElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. */
interface HTMLDivElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDivElement: {
prototype: HTMLDivElement;
new(): HTMLDivElement;
};
/** @deprecated use Document */
interface HTMLDocument extends Document {
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLDocument: {
prototype: HTMLDocument;
new(): HTMLDocument;
};
interface HTMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
}
/** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */
interface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
accessKey: string;
readonly accessKeyLabel: string;
autocapitalize: string;
dir: string;
draggable: boolean;
hidden: boolean;
innerText: string;
lang: string;
readonly offsetHeight: number;
readonly offsetLeft: number;
readonly offsetParent: Element | null;
readonly offsetTop: number;
readonly offsetWidth: number;
outerText: string;
spellcheck: boolean;
title: string;
translate: boolean;
click(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLElement: {
prototype: HTMLElement;
new(): HTMLElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */
interface HTMLEmbedElement extends HTMLElement {
/** @deprecated */
align: string;
/**
* Sets or retrieves the height of the object.
*/
height: string;
/**
* Sets or retrieves the name of the object.
* @deprecated
*/
name: string;
/**
* Sets or retrieves a URL to be loaded by the object.
*/
src: string;
type: string;
/**
* Sets or retrieves the width of the object.
*/
width: string;
getSVGDocument(): Document | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLEmbedElement: {
prototype: HTMLEmbedElement;
new(): HTMLEmbedElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. */
interface HTMLFieldSetElement extends HTMLElement {
disabled: boolean;
/**
* Returns an HTMLCollection of the form controls in the element.
*/
readonly elements: HTMLCollection;
/**
* Retrieves a reference to the form that the object is embedded in.
*/
readonly form: HTMLFormElement | null;
name: string;
/**
* Returns the string "fieldset".
*/
readonly type: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*/
readonly validity: ValidityState;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*/
readonly willValidate: boolean;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*/
checkValidity(): boolean;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLFieldSetElement: {
prototype: HTMLFieldSetElement;
new(): HTMLFieldSetElement;
};
/**
* Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text.
* @deprecated
*/
interface HTMLFontElement extends HTMLElement {
/** @deprecated */
color: string;
/**
* Sets or retrieves the current typeface family.
* @deprecated
*/
face: string;
/** @deprecated */
size: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFontElement: {
prototype: HTMLFontElement;
new(): HTMLFontElement;
};
/** A collection of HTML form control elements. */
interface HTMLFormControlsCollection extends HTMLCollectionBase {
/**
* Returns the item with ID or name name from the collection.
*
* If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.
*/
namedItem(name: string): RadioNodeList | Element | null;
}
declare var HTMLFormControlsCollection: {
prototype: HTMLFormControlsCollection;
new(): HTMLFormControlsCollection;
};
/** A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. */
interface HTMLFormElement extends HTMLElement {
/**
* Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.
*/
acceptCharset: string;
/**
* Sets or retrieves the URL to which the form content is sent for processing.
*/
action: string;
/**
* Specifies whether autocomplete is applied to an editable text field.
*/
autocomplete: string;
/**
* Retrieves a collection, in source order, of all controls in a given form.
*/
readonly elements: HTMLFormControlsCollection;
/**
* Sets or retrieves the MIME encoding for the form.
*/
encoding: string;
/**
* Sets or retrieves the encoding type for the form.
*/
enctype: string;
/**
* Sets or retrieves the number of objects in a collection.
*/
readonly length: number;
/**
* Sets or retrieves how to send the form data to the server.
*/
method: string;
/**
* Sets or retrieves the name of the object.
*/
name: string;
/**
* Designates a form that is not validated when submitted.
*/
noValidate: boolean;
/**
* Sets or retrieves the window or frame at which to target content.
*/
target: string;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*/
checkValidity(): boolean;
reportValidity(): boolean;
requestSubmit(submitter?: HTMLElement | null): void;
/**
* Fires when the user resets a form.
*/
reset(): void;
/**
* Fires when a FORM is about to be submitted.
*/
submit(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: Element;
[name: string]: any;
}
declare var HTMLFormElement: {
prototype: HTMLFormElement;
new(): HTMLFormElement;
};
/** @deprecated */
interface HTMLFrameElement extends HTMLElement {
/**
* Retrieves the document object of the page or frame.
* @deprecated
*/
readonly contentDocument: Document | null;
/**
* Retrieves the object of the specified.
* @deprecated
*/
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
* @deprecated
*/
frameBorder: string;
/**
* Sets or retrieves a URI to a long description of the object.
* @deprecated
*/
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
* @deprecated
*/
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
* @deprecated
*/
marginWidth: string;
/**
* Sets or retrieves the frame name.
* @deprecated
*/
name: string;
/**
* Sets or retrieves whether the user can resize the frame.
* @deprecated
*/
noResize: boolean;
/**
* Sets or retrieves whether the frame can be scrolled.
* @deprecated
*/
scrolling: string;
/**
* Sets or retrieves a URL to be loaded by the object.
* @deprecated
*/
src: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFrameElement: {
prototype: HTMLFrameElement;
new(): HTMLFrameElement;
};
interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
}
/**
* Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.
* @deprecated
*/
interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {
/**
* Sets or retrieves the frame widths of the object.
* @deprecated
*/
cols: string;
/**
* Sets or retrieves the frame heights of the object.
* @deprecated
*/
rows: string;
addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFrameSetElement: {
prototype: HTMLFrameSetElement;
new(): HTMLFrameSetElement;
};
/** Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. */
interface HTMLHRElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** @deprecated */
color: string;
/**
* Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
* @deprecated
*/
noShade: boolean;
/** @deprecated */
size: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHRElement: {
prototype: HTMLHRElement;
new(): HTMLHRElement;
};
/** Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. */
interface HTMLHeadElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHeadElement: {
prototype: HTMLHeadElement;
new(): HTMLHeadElement;
};
/** The different heading elements. It inherits methods and properties from the HTMLElement interface. */
interface HTMLHeadingElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHeadingElement: {
prototype: HTMLHeadingElement;
new(): HTMLHeadingElement;
};
/** Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. */
interface HTMLHtmlElement extends HTMLElement {
/**
* Sets or retrieves the DTD version that governs the current document.
* @deprecated
*/
version: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHtmlElement: {
prototype: HTMLHtmlElement;
new(): HTMLHtmlElement;
};
interface HTMLHyperlinkElementUtils {
/**
* Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
*
* Can be set, to change the URL's fragment (ignores leading "#").
*/
hash: string;
/**
* Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
*
* Can be set, to change the URL's host and port.
*/
host: string;
/**
* Returns the hyperlink's URL's host.
*
* Can be set, to change the URL's host.
*/
hostname: string;
/**
* Returns the hyperlink's URL.
*
* Can be set, to change the URL.
*/
href: string;
toString(): string;
/**
* Returns the hyperlink's URL's origin.
*/
readonly origin: string;
/**
* Returns the hyperlink's URL's password.
*
* Can be set, to change the URL's password.
*/
password: string;
/**
* Returns the hyperlink's URL's path.
*
* Can be set, to change the URL's path.
*/
pathname: string;
/**
* Returns the hyperlink's URL's port.
*
* Can be set, to change the URL's port.
*/
port: string;
/**
* Returns the hyperlink's URL's scheme.
*
* Can be set, to change the URL's scheme.
*/
protocol: string;
/**
* Returns the hyperlink's URL's query (includes leading "?" if non-empty).
*
* Can be set, to change the URL's query (ignores leading "?").
*/
search: string;
/**
* Returns the hyperlink's URL's username.
*
* Can be set, to change the URL's username.
*/
username: string;
}
/** Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. */
interface HTMLIFrameElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
allow: string;
allowFullscreen: boolean;
/**
* Retrieves the document object of the page or frame.
*/
readonly contentDocument: Document | null;
/**
* Retrieves the object of the specified.
*/
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
* @deprecated
*/
frameBorder: string;
/**
* Sets or retrieves the height of the object.
*/
height: string;
/**
* Sets or retrieves a URI to a long description of the object.
* @deprecated
*/
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
* @deprecated
*/
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
* @deprecated
*/
marginWidth: string;
/**
* Sets or retrieves the frame name.
*/
name: string;
referrerPolicy: ReferrerPolicy;
readonly sandbox: DOMTokenList;
/**
* Sets or retrieves whether the frame can be scrolled.
* @deprecated
*/
scrolling: string;
/**
* Sets or retrieves a URL to be loaded by the object.
*/
src: string;
/**
* Sets or retrives the content of the page that is to contain.
*/
srcdoc: string;
/**
* Sets or retrieves the width of the object.
*/
width: string;
getSVGDocument(): Document | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLIFrameElement: {
prototype: HTMLIFrameElement;
new(): HTMLIFrameElement;
};
/** Provides special properties and methods for manipulating <img> elements. */
interface HTMLImageElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/**
* Sets or retrieves a text alternative to the graphic.
*/
alt: string;
/**
* Specifies the properties of a border drawn around an object.
* @deprecated
*/
border: string;
/**
* Retrieves whether the object is fully loaded.
*/
readonly complete: boolean;
crossOrigin: string | null;
readonly currentSrc: string;
decoding: "async" | "sync" | "auto";
/**
* Sets or retrieves the height of the object.
*/
height: number;
/**
* Sets or retrieves the width of the border to draw around the object.
* @deprecated
*/
hspace: number;
/**
* Sets or retrieves whether the image is a server-side image map.
*/
isMap: boolean;
loading: string;
/**
* Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
* @deprecated
*/
longDesc: string;
/** @deprecated */
lowsrc: string;
/**
* Sets or retrieves the name of the object.
* @deprecated
*/
name: string;
/**
* The original height of the image resource before sizing.
*/
readonly naturalHeight: number;
/**
* The original width of the image resource before sizing.
*/
readonly naturalWidth: number;
referrerPolicy: string;
sizes: string;
/**
* The address or URL of the a media resource that is to be considered.
*/
src: string;
srcset: string;
/**
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
*/
useMap: string;
/**
* Sets or retrieves the vertical margin for the object.
* @deprecated
*/
vspace: number;
/**
* Sets or retrieves the width of the object.
*/
width: number;
readonly x: number;
readonly y: number;
decode(): Promise<void>;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLImageElement: {
prototype: HTMLImageElement;
new(): HTMLImageElement;
};
/** Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. */
interface HTMLInputElement extends HTMLElement {
/**
* Sets or retrieves a comma-separated list of content types.
*/
accept: string;
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/**
* Sets or retrieves a text alternative to the graphic.
*/
alt: string;
/**
* Specifies whether autocomplete is applied to an editable text field.
*/
autocomplete: string;
capture: string;
/**
* Sets or retrieves the state of the check box or radio button.
*/
checked: boolean;
/**
* Sets or retrieves the state of the check box or radio button.
*/
defaultChecked: boolean;
/**
* Sets or retrieves the initial contents of the object.
*/
defaultValue: string;
dirName: string;
disabled: boolean;
/**
* Returns a FileList object on a file type input object.
*/
files: FileList | null;
/**
* Retrieves a reference to the form that the object is embedded in.
*/
readonly form: HTMLFormElement | null;
/**
* Overrides the action attribute (where the data on a form is sent) on the parent form element.
*/
formAction: string;
/**
* Used to override the encoding (formEnctype attribute) specified on the form element.
*/
formEnctype: string;
/**
* Overrides the submit method attribute previously specified on a form element.
*/
formMethod: string;
/**
* Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
*/
formNoValidate: boolean;
/**
* Overrides the target attribute on a form element.
*/
formTarget: string;
/**
* Sets or retrieves the height of the object.
*/
height: number;
/**
* When set, overrides the rendering of checkbox controls so that the current value is not visible.
*/
indeterminate: boolean;
readonly labels: NodeListOf<HTMLLabelElement> | null;
/**
* Specifies the ID of a pre-defined datalist of options for an input element.
*/
readonly list: HTMLElement | null;
/**
* Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
*/
max: string;
/**
* Sets or retrieves the maximum number of characters that the user can enter in a text control.
*/
maxLength: number;
/**
* Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
*/
min: string;
minLength: number;
/**
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
*/
multiple: boolean;
/**
* Sets or retrieves the name of the object.
*/
name: string;
/**
* Gets or sets a string containing a regular expression that the user's input must match.
*/
pattern: string;
/**
* Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
*/
placeholder: string;
readOnly: boolean;
/**
* When present, marks an element that can't be submitted without a value.
*/
required: boolean;
selectionDirection: "forward" | "backward" | "none" | null;
/**
* Gets or sets the end position or offset of a text selection.
*/
selectionEnd: number | null;
/**
* Gets or sets the starting position or offset of a text selection.
*/
selectionStart: number | null;
size: number;
/**
* The address or URL of the a media resource that is to be considered.
*/
src: string;
/**
* Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field.
*/
step: string;
/**
* Returns the content type of the object.
*/
type: string;
/**
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
* @deprecated
*/
useMap: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*/
readonly validity: ValidityState;
/**
* Returns the value of the data at the cursor's current position.
*/
value: string;
/**
* Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based.
*/
valueAsDate: Date | null;
/**
* Returns the input field value as a number.
*/
valueAsNumber: number;
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
webkitdirectory: boolean;
/**
* Sets or retrieves the width of the object.
*/
width: number;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*/
readonly willValidate: boolean;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*/
checkValidity(): boolean;
reportValidity(): boolean;
/**
* Makes the selection equal to the current object.
*/
select(): void;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
setRangeText(replacement: string): void;
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
/**
* Sets the start and end positions of a selection in a text field.
* @param start The offset into the text field for the start of the selection.
* @param end The offset into the text field for the end of the selection.
* @param direction The direction in which the selection is performed.
*/
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
/**
* Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
* @param n Value to decrement the value by.
*/
stepDown(n?: number): void;
/**
* Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.
* @param n Value to increment the value by.
*/
stepUp(n?: number): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLInputElement: {
prototype: HTMLInputElement;
new(): HTMLInputElement;
};
/** Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. */
interface HTMLLIElement extends HTMLElement {
/** @deprecated */
type: string;
/**
* Sets or retrieves the value of a list item.
*/
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLIElement: {
prototype: HTMLLIElement;
new(): HTMLLIElement;
};
/** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */
interface HTMLLabelElement extends HTMLElement {
/**
* Returns the form control that is associated with this element.
*/
readonly control: HTMLElement | null;
/**
* Retrieves a reference to the form that the object is embedded in.
*/
readonly form: HTMLFormElement | null;
/**
* Sets or retrieves the object to which the given label object is assigned.
*/
htmlFor: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLabelElement: {
prototype: HTMLLabelElement;
new(): HTMLLabelElement;
};
/** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. */
interface HTMLLegendElement extends HTMLElement {
/** @deprecated */
align: string;
/**
* Retrieves a reference to the form that the object is embedded in.
*/
readonly form: HTMLFormElement | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLegendElement: {
prototype: HTMLLegendElement;
new(): HTMLLegendElement;
};
/** Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface. */
interface HTMLLinkElement extends HTMLElement, LinkStyle {
as: string;
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
crossOrigin: string | null;
disabled: boolean;
/**
* Sets or retrieves a destination URL or an anchor point.
*/
href: string;
/**
* Sets or retrieves the language code of the object.
*/
hreflang: string;
imageSizes: string;
imageSrcset: string;
integrity: string;
/**
* Sets or retrieves the media type.
*/
media: string;
referrerPolicy: string;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
*/
rel: string;
readonly relList: DOMTokenList;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
* @deprecated
*/
rev: string;
readonly sizes: DOMTokenList;
/**
* Sets or retrieves the window or frame at which to target content.
* @deprecated
*/
target: string;
/**
* Sets or retrieves the MIME type of the object.
*/
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLinkElement: {
prototype: HTMLLinkElement;
new(): HTMLLinkElement;
};
/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements. */
interface HTMLMapElement extends HTMLElement {
/**
* Retrieves a collection of the area objects defined for the given map object.
*/
readonly areas: HTMLCollection;
/**
* Sets or retrieves the name of the object.
*/
name: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMapElement: {
prototype: HTMLMapElement;
new(): HTMLMapElement;
};
/**
* Provides methods to manipulate <marquee> elements.
* @deprecated
*/
interface HTMLMarqueeElement extends HTMLElement {
/** @deprecated */
behavior: string;
/** @deprecated */
bgColor: string;
/** @deprecated */
direction: string;
/** @deprecated */
height: string;
/** @deprecated */
hspace: number;
/** @deprecated */
loop: number;
/** @deprecated */
scrollAmount: number;
/** @deprecated */
scrollDelay: number;
/** @deprecated */
trueSpeed: boolean;
/** @deprecated */
vspace: number;
/** @deprecated */
width: string;
/** @deprecated */
start(): void;
/** @deprecated */
stop(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLMarqueeElement: {
prototype: HTMLMarqueeElement;
new(): HTMLMarqueeElement;
};
interface HTMLMediaElementEventMap extends HTMLElementEventMap {
"encrypted": MediaEncryptedEvent;
"waitingforkey": Event;
}
/** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities\xA0that are\xA0common to audio and video. */
interface HTMLMediaElement extends HTMLElement {
/**
* Gets or sets a value that indicates whether to start playing the media automatically.
*/
autoplay: boolean;
/**
* Gets a collection of buffered time ranges.
*/
readonly buffered: TimeRanges;
/**
* Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player).
*/
controls: boolean;
crossOrigin: string | null;
/**
* Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.
*/
readonly currentSrc: string;
/**
* Gets or sets the current playback position, in seconds.
*/
currentTime: number;
defaultMuted: boolean;
/**
* Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.
*/
defaultPlaybackRate: number;
disableRemotePlayback: boolean;
/**
* Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming.
*/
readonly duration: number;
/**
* Gets information about whether the playback has ended or not.
*/
readonly ended: boolean;
/**
* Returns an object representing the current error state of the audio or video element.
*/
readonly error: MediaError | null;
/**
* Gets or sets a flag to specify whether playback should restart after it completes.
*/
loop: boolean;
readonly mediaKeys: MediaKeys | null;
/**
* Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.
*/
muted: boolean;
/**
* Gets the current network activity for the element.
*/
readonly networkState: number;
onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
/**
* Gets a flag that specifies whether playback is paused.
*/
readonly paused: boolean;
/**
* Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource.
*/
playbackRate: number;
/**
* Gets TimeRanges for the current media resource that has been played.
*/
readonly played: TimeRanges;
/**
* Gets or sets the current playback position, in seconds.
*/
preload: string;
readonly readyState: number;
readonly remote: RemotePlayback;
/**
* Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
*/
readonly seekable: TimeRanges;
/**
* Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.
*/
readonly seeking: boolean;
/**
* The address or URL of the a media resource that is to be considered.
*/
src: string;
srcObject: MediaProvider | null;
readonly textTracks: TextTrackList;
/**
* Gets or sets the volume level for audio portions of the media element.
*/
volume: number;
addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;
/**
* Returns a string that specifies whether the client can play a given media resource type.
*/
canPlayType(type: string): CanPlayTypeResult;
fastSeek(time: number): void;
/**
* Resets the audio or video object and loads a new media resource.
*/
load(): void;
/**
* Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not.
*/
pause(): void;
/**
* Loads and starts playback of a media resource.
*/
play(): Promise<void>;
setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
readonly HAVE_CURRENT_DATA: number;
readonly HAVE_ENOUGH_DATA: number;
readonly HAVE_FUTURE_DATA: number;
readonly HAVE_METADATA: number;
readonly HAVE_NOTHING: number;
readonly NETWORK_EMPTY: number;
readonly NETWORK_IDLE: number;
readonly NETWORK_LOADING: number;
readonly NETWORK_NO_SOURCE: number;
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMediaElement: {
prototype: HTMLMediaElement;
new(): HTMLMediaElement;
readonly HAVE_CURRENT_DATA: number;
readonly HAVE_ENOUGH_DATA: number;
readonly HAVE_FUTURE_DATA: number;
readonly HAVE_METADATA: number;
readonly HAVE_NOTHING: number;
readonly NETWORK_EMPTY: number;
readonly NETWORK_IDLE: number;
readonly NETWORK_LOADING: number;
readonly NETWORK_NO_SOURCE: number;
};
interface HTMLMenuElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMenuElement: {
prototype: HTMLMenuElement;
new(): HTMLMenuElement;
};
/** Contains descriptive metadata about a document. It\xA0inherits all of the properties and methods described in the HTMLElement interface. */
interface HTMLMetaElement extends HTMLElement {
/**
* Gets or sets meta-information to associate with httpEquiv or name.
*/
content: string;
/**
* Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.
*/
httpEquiv: string;
/**
* Sets or retrieves the value specified in the content attribute of the meta object.
*/
name: string;
/**
* Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
* @deprecated
*/
scheme: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMetaElement: {
prototype: HTMLMetaElement;
new(): HTMLMetaElement;
};
/** The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. */
interface HTMLMeterElement extends HTMLElement {
high: number;
readonly labels: NodeListOf<HTMLLabelElement>;
low: number;
max: number;
min: number;
optimum: number;
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMeterElement: {
prototype: HTMLMeterElement;
new(): HTMLMeterElement;
};
/** Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. */
interface HTMLModElement extends HTMLElement {
/**
* Sets or retrieves reference information about the object.
*/
cite: string;
/**
* Sets or retrieves the date and time of a modification to the object.
*/
dateTime: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLModElement: {
prototype: HTMLModElement;
new(): HTMLModElement;
};
/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */
interface HTMLOListElement extends HTMLElement {
/** @deprecated */
compact: boolean;
reversed: boolean;
/**
* The starting number.
*/
start: number;
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOListElement: {
prototype: HTMLOListElement;
new(): HTMLOListElement;
};
/** Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. */
interface HTMLObjectElement extends HTMLElement {
/** @deprecated */
align: string;
/**
* Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
* @deprecated
*/
archive: string;
/** @deprecated */
border: string;
/**
* Sets or retrieves the URL of the file containing the compiled Java class.
* @deprecated
*/
code: string;
/**
* Sets or retrieves the URL of the component.
* @deprecated
*/
codeBase: string;
/**
* Sets or retrieves the Internet media type for the code associated with the object.
* @deprecated
*/
codeType: string;
/**
* Retrieves the document object of the page or frame.
*/
readonly contentDocument: Document | null;
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves the URL that references the data of the object.
*/
data: string;
/** @deprecated */
declare: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*/
readonly form: HTMLFormElement | null;
/**
* Sets or retrieves the height of the object.
*/
height: string;
/** @deprecated */
hspace: number;
/**
* Sets or retrieves the name of the object.
*/
name: string;
/**
* Sets or retrieves a message to be displayed while an object is loading.
* @deprecated
*/
standby: string;
/**
* Sets or retrieves the MIME type of the object.
*/
type: string;
/**
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
*/
useMap: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*/
readonly validity: ValidityState;
/** @deprecated */
vspace: number;
/**
* Sets or retrieves the width of the object.
*/
width: string;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*/
readonly willValidate: boolean;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*/
checkValidity(): boolean;
getSVGDocument(): Document | null;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLObjectElement: {
prototype: HTMLObjectElement;
new(): HTMLObjectElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. */
interface HTMLOptGroupElement extends HTMLElement {
disabled: boolean;
/**
* Sets or retrieves a value that you can use to implement your own label functionality for the object.
*/
label: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOptGroupElement: {
prototype: HTMLOptGroupElement;
new(): HTMLOptGroupElement;
};
/** <option> elements and inherits all classes and methods of the HTMLElement interface. */
interface HTMLOptionElement extends HTMLElement {
/**
* Sets or retrieves the status of an option.
*/
defaultSelected: boolean;
disabled: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*/
readonly form: HTMLFormElement | null;
/**
* Sets or retrieves the ordinal position of an option in a list box.
*/
readonly index: number;
/**
* Sets or retrieves a value that you can use to implement your own label functionality for the object.
*/
label: string;
/**
* Sets or retrieves whether the option in the list box is the default item.
*/
selected: boolean;
/**
* Sets or retrieves the text string specified by the option tag.
*/
text: string;
/**
* Sets or retrieves the value which is returned to the server when the form control is submitted.
*/
value: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOptionElement: {
prototype: HTMLOptionElement;
new(): HTMLOptionElement;
};
/** HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select. */
interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
/**
* Returns the number of elements in the collection.
*
* When set to a smaller number, truncates the number of option elements in the corresponding container.
*
* When set to a greater number, adds new blank option elements to that container.
*/
length: number;
/**
* Returns the index of the first selected item, if any, or \u22121 if there is no selected item.
*
* Can be set, to change the selection.
*/
selectedIndex: number;
/**
* Inserts element before the node given by before.
*
* The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element.
*
* If before is omitted, null, or a number out of range, then element will be added at the end of the list.
*
* This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/**
* Removes the item with index index from the collection.
*/
remove(index: number): void;
}
declare var HTMLOptionsCollection: {
prototype: HTMLOptionsCollection;
new(): HTMLOptionsCollection;
};
interface HTMLOrSVGElement {
readonly dataset: DOMStringMap;
nonce?: string;
tabIndex: number;
blur(): void;
focus(options?: FocusOptions): void;
}
/** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */
interface HTMLOutputElement extends HTMLElement {
defaultValue: string;
readonly form: HTMLFormElement | null;
readonly htmlFor: DOMTokenList;
readonly labels: NodeListOf<HTMLLabelElement>;
name: string;
/**
* Returns the string "output".
*/
readonly type: string;
readonly validationMessage: string;
readonly validity: ValidityState;
/**
* Returns the element's current value.
*
* Can be set, to change the value.
*/
value: string;
readonly willValidate: boolean;
checkValidity(): boolean;
reportValidity(): boolean;
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOutputElement: {
prototype: HTMLOutputElement;
new(): HTMLOutputElement;
};
/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */
interface HTMLParagraphElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLParagraphElement: {
prototype: HTMLParagraphElement;
new(): HTMLParagraphElement;
};
/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element. */
interface HTMLParamElement extends HTMLElement {
/**
* Sets or retrieves the name of an input parameter for an element.
*/
name: string;
/**
* Sets or retrieves the content type of the resource designated by the value attribute.
* @deprecated
*/
type: string;
/**
* Sets or retrieves the value of an input parameter for an element.
*/
value: string;
/**
* Sets or retrieves the data type of the value attribute.
* @deprecated
*/
valueType: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLParamElement: {
prototype: HTMLParamElement;
new(): HTMLParamElement;
};
/** A <picture> HTML element. It doesn't implement specific properties or methods. */
interface HTMLPictureElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLPictureElement: {
prototype: HTMLPictureElement;
new(): HTMLPictureElement;
};
/** Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>). */
interface HTMLPreElement extends HTMLElement {
/**
* Sets or gets a value that you can use to implement your own width functionality for the object.
* @deprecated
*/
width: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLPreElement: {
prototype: HTMLPreElement;
new(): HTMLPreElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements. */
interface HTMLProgressElement extends HTMLElement {
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* Defines the maximum, or "done" value for a progress element.
*/
max: number;
/**
* Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar).
*/
readonly position: number;
/**
* Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value.
*/
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLProgressElement: {
prototype: HTMLProgressElement;
new(): HTMLProgressElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element. */
interface HTMLQuoteElement extends HTMLElement {
/**
* Sets or retrieves reference information about the object.
*/
cite: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLQuoteElement: {
prototype: HTMLQuoteElement;
new(): HTMLQuoteElement;
};
/** HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface). */
interface HTMLScriptElement extends HTMLElement {
async: boolean;
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
crossOrigin: string | null;
/**
* Sets or retrieves the status of the script.
*/
defer: boolean;
/**
* Sets or retrieves the event for which the script is written.
* @deprecated
*/
event: string;
/**
* Sets or retrieves the object that is bound to the event script.
* @deprecated
*/
htmlFor: string;
integrity: string;
noModule: boolean;
referrerPolicy: string;
/**
* Retrieves the URL to an external file that contains the source code or data.
*/
src: string;
/**
* Retrieves or sets the text of the object as a string.
*/
text: string;
/**
* Sets or retrieves the MIME type for the associated scripting engine.
*/
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLScriptElement: {
prototype: HTMLScriptElement;
new(): HTMLScriptElement;
};
/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */
interface HTMLSelectElement extends HTMLElement {
autocomplete: string;
disabled: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*/
readonly form: HTMLFormElement | null;
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* Sets or retrieves the number of objects in a collection.
*/
length: number;
/**
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
*/
multiple: boolean;
/**
* Sets or retrieves the name of the object.
*/
name: string;
/**
* Returns an HTMLOptionsCollection of the list of options.
*/
readonly options: HTMLOptionsCollection;
/**
* When present, marks an element that can't be submitted without a value.
*/
required: boolean;
/**
* Sets or retrieves the index of the selected option in a select object.
*/
selectedIndex: number;
readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
/**
* Sets or retrieves the number of rows in the list box.
*/
size: number;
/**
* Retrieves the type of select control based on the value of the MULTIPLE attribute.
*/
readonly type: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*/
readonly validity: ValidityState;
/**
* Sets or retrieves the value which is returned to the server when the form control is submitted.
*/
value: string;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*/
readonly willValidate: boolean;
/**
* Adds an element to the areas, controlRange, or options collection.
* @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.
* @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*/
checkValidity(): boolean;
/**
* Retrieves a select object or an object from an options collection.
* @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
* @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
*/
item(index: number): HTMLOptionElement | null;
/**
* Retrieves a select object or an object from an options collection.
* @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.
*/
namedItem(name: string): HTMLOptionElement | null;
/**
* Removes an element from the collection.
* @param index Number that specifies the zero-based index of the element to remove from the collection.
*/
remove(): void;
remove(index: number): void;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[name: number]: HTMLOptionElement | HTMLOptGroupElement;
}
declare var HTMLSelectElement: {
prototype: HTMLSelectElement;
new(): HTMLSelectElement;
};
interface HTMLSlotElement extends HTMLElement {
name: string;
assignedElements(options?: AssignedNodesOptions): Element[];
assignedNodes(options?: AssignedNodesOptions): Node[];
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSlotElement: {
prototype: HTMLSlotElement;
new(): HTMLSlotElement;
};
/** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */
interface HTMLSourceElement extends HTMLElement {
/**
* Gets or sets the intended media type of the media source.
*/
media: string;
sizes: string;
/**
* The address or URL of the a media resource that is to be considered.
*/
src: string;
srcset: string;
/**
* Gets or sets the MIME type of a media resource.
*/
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSourceElement: {
prototype: HTMLSourceElement;
new(): HTMLSourceElement;
};
/** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
interface HTMLSpanElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSpanElement: {
prototype: HTMLSpanElement;
new(): HTMLSpanElement;
};
/** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */
interface HTMLStyleElement extends HTMLElement, LinkStyle {
/**
* Sets or retrieves the media type.
*/
media: string;
/**
* Retrieves the CSS language in which the style sheet is written.
* @deprecated
*/
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLStyleElement: {
prototype: HTMLStyleElement;
new(): HTMLStyleElement;
};
/** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */
interface HTMLTableCaptionElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the caption or legend.
* @deprecated
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableCaptionElement: {
prototype: HTMLTableCaptionElement;
new(): HTMLTableCaptionElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document. */
interface HTMLTableCellElement extends HTMLElement {
/**
* Sets or retrieves abbreviated text for the object.
*/
abbr: string;
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/**
* Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
* @deprecated
*/
axis: string;
/** @deprecated */
bgColor: string;
/**
* Retrieves the position of the object in the cells collection of a row.
*/
readonly cellIndex: number;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/**
* Sets or retrieves the number columns in the table that the object should span.
*/
colSpan: number;
/**
* Sets or retrieves a list of header cells that provide information for the object.
*/
headers: string;
/**
* Sets or retrieves the height of the object.
* @deprecated
*/
height: string;
/**
* Sets or retrieves whether the browser automatically performs wordwrap.
* @deprecated
*/
noWrap: boolean;
/**
* Sets or retrieves how many rows in a table the cell should span.
*/
rowSpan: number;
/**
* Sets or retrieves the group of cells in a table to which the object's information applies.
*/
scope: string;
/** @deprecated */
vAlign: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableCellElement: {
prototype: HTMLTableCellElement;
new(): HTMLTableCellElement;
};
/** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */
interface HTMLTableColElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the object relative to the display or table.
* @deprecated
*/
align: string;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/**
* Sets or retrieves the number of columns in the group.
*/
span: number;
/** @deprecated */
vAlign: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableColElement: {
prototype: HTMLTableColElement;
new(): HTMLTableColElement;
};
/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableDataCellElement extends HTMLTableCellElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. */
interface HTMLTableElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*/
align: string;
/** @deprecated */
bgColor: string;
/**
* Sets or retrieves the width of the border to draw around the object.
* @deprecated
*/
border: string;
/**
* Retrieves the caption object of a table.
*/
caption: HTMLTableCaptionElement | null;
/**
* Sets or retrieves the amount of space between the border of the cell and the content of the cell.
* @deprecated
*/
cellPadding: string;
/**
* Sets or retrieves the amount of space between cells in a table.
* @deprecated
*/
cellSpacing: string;
/**
* Sets or retrieves the way the border frame around the table is displayed.
* @deprecated
*/
frame: string;
/**
* Sets or retrieves the number of horizontal rows contained in the object.
*/
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/**
* Sets or retrieves which dividing lines (inner borders) are displayed.
* @deprecated
*/
rules: string;
/**
* Sets or retrieves a description and/or structure of the object.
* @deprecated
*/
summary: string;
/**
* Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.
*/
readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
/**
* Retrieves the tFoot object of the table.
*/
tFoot: HTMLTableSectionElement | null;
/**
* Retrieves the tHead object of the table.
*/
tHead: HTMLTableSectionElement | null;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
/**
* Creates an empty caption element in the table.
*/
createCaption(): HTMLTableCaptionElement;
/**
* Creates an empty tBody element in the table.
*/
createTBody(): HTMLTableSectionElement;
/**
* Creates an empty tFoot element in the table.
*/
createTFoot(): HTMLTableSectionElement;
/**
* Returns the tHead element object if successful, or null otherwise.
*/
createTHead(): HTMLTableSectionElement;
/**
* Deletes the caption element and its contents from the table.
*/
deleteCaption(): void;
/**
* Removes the specified row (tr) from the element and from the rows collection.
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
*/
deleteRow(index: number): void;
/**
* Deletes the tFoot element and its contents from the table.
*/
deleteTFoot(): void;
/**
* Deletes the tHead element and its contents from the table.
*/
deleteTHead(): void;
/**
* Creates a new row (tr) in the table, and adds the row to the rows collection.
* @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
*/
insertRow(index?: number): HTMLTableRowElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableElement: {
prototype: HTMLTableElement;
new(): HTMLTableElement;
};
/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. */
interface HTMLTableRowElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** @deprecated */
bgColor: string;
/**
* Retrieves a collection of all cells in the table row.
*/
readonly cells: HTMLCollectionOf<HTMLTableCellElement>;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/**
* Retrieves the position of the object in the rows collection for the table.
*/
readonly rowIndex: number;
/**
* Retrieves the position of the object in the collection.
*/
readonly sectionRowIndex: number;
/** @deprecated */
vAlign: string;
/**
* Removes the specified cell from the table row, as well as from the cells collection.
* @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.
*/
deleteCell(index: number): void;
/**
* Creates a new cell in the table row, and adds the cell to the cells collection.
* @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.
*/
insertCell(index?: number): HTMLTableCellElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableRowElement: {
prototype: HTMLTableRowElement;
new(): HTMLTableRowElement;
};
/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table. */
interface HTMLTableSectionElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*/
align: string;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/**
* Sets or retrieves the number of horizontal rows contained in the object.
*/
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/** @deprecated */
vAlign: string;
/**
* Removes the specified row (tr) from the element and from the rows collection.
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
*/
deleteRow(index: number): void;
/**
* Creates a new row (tr) in the table, and adds the row to the rows collection.
* @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
*/
insertRow(index?: number): HTMLTableRowElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableSectionElement: {
prototype: HTMLTableSectionElement;
new(): HTMLTableSectionElement;
};
/** Enables access to the contents of an HTML <template> element. */
interface HTMLTemplateElement extends HTMLElement {
/**
* Returns the template contents (a DocumentFragment).
*/
readonly content: DocumentFragment;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTemplateElement: {
prototype: HTMLTemplateElement;
new(): HTMLTemplateElement;
};
/** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */
interface HTMLTextAreaElement extends HTMLElement {
autocomplete: string;
/**
* Sets or retrieves the width of the object.
*/
cols: number;
/**
* Sets or retrieves the initial contents of the object.
*/
defaultValue: string;
dirName: string;
disabled: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*/
readonly form: HTMLFormElement | null;
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* Sets or retrieves the maximum number of characters that the user can enter in a text control.
*/
maxLength: number;
minLength: number;
/**
* Sets or retrieves the name of the object.
*/
name: string;
/**
* Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
*/
placeholder: string;
/**
* Sets or retrieves the value indicated whether the content of the object is read-only.
*/
readOnly: boolean;
/**
* When present, marks an element that can't be submitted without a value.
*/
required: boolean;
/**
* Sets or retrieves the number of horizontal rows contained in the object.
*/
rows: number;
selectionDirection: "forward" | "backward" | "none";
/**
* Gets or sets the end position or offset of a text selection.
*/
selectionEnd: number;
/**
* Gets or sets the starting position or offset of a text selection.
*/
selectionStart: number;
readonly textLength: number;
/**
* Retrieves the type of control.
*/
readonly type: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*/
readonly validity: ValidityState;
/**
* Retrieves or sets the text in the entry field of the textArea element.
*/
value: string;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*/
readonly willValidate: boolean;
/**
* Sets or retrieves how to handle wordwrapping in the object.
*/
wrap: string;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*/
checkValidity(): boolean;
reportValidity(): boolean;
/**
* Highlights the input area of a form element.
*/
select(): void;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
setRangeText(replacement: string): void;
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
/**
* Sets the start and end positions of a selection in a text field.
* @param start The offset into the text field for the start of the selection.
* @param end The offset into the text field for the end of the selection.
* @param direction The direction in which the selection is performed.
*/
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTextAreaElement: {
prototype: HTMLTextAreaElement;
new(): HTMLTextAreaElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. */
interface HTMLTimeElement extends HTMLElement {
dateTime: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTimeElement: {
prototype: HTMLTimeElement;
new(): HTMLTimeElement;
};
/** Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. */
interface HTMLTitleElement extends HTMLElement {
/**
* Retrieves or sets the text of the object as a string.
*/
text: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTitleElement: {
prototype: HTMLTitleElement;
new(): HTMLTitleElement;
};
/** The HTMLTrackElement */
interface HTMLTrackElement extends HTMLElement {
default: boolean;
kind: string;
label: string;
readonly readyState: number;
src: string;
srclang: string;
/**
* Returns the TextTrack object corresponding to the text track of the track element.
*/
readonly track: TextTrack;
readonly ERROR: number;
readonly LOADED: number;
readonly LOADING: number;
readonly NONE: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTrackElement: {
prototype: HTMLTrackElement;
new(): HTMLTrackElement;
readonly ERROR: number;
readonly LOADED: number;
readonly LOADING: number;
readonly NONE: number;
};
/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */
interface HTMLUListElement extends HTMLElement {
/** @deprecated */
compact: boolean;
/** @deprecated */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLUListElement: {
prototype: HTMLUListElement;
new(): HTMLUListElement;
};
/** An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
interface HTMLUnknownElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLUnknownElement: {
prototype: HTMLUnknownElement;
new(): HTMLUnknownElement;
};
interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
"enterpictureinpicture": Event;
"leavepictureinpicture": Event;
}
/** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */
interface HTMLVideoElement extends HTMLMediaElement {
disablePictureInPicture: boolean;
/**
* Gets or sets the height of the video element.
*/
height: number;
onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
/**
* Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins.
*/
playsInline: boolean;
/**
* Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available.
*/
poster: string;
/**
* Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.
*/
readonly videoHeight: number;
/**
* Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.
*/
readonly videoWidth: number;
/**
* Gets or sets the width of the video element.
*/
width: number;
getVideoPlaybackQuality(): VideoPlaybackQuality;
requestPictureInPicture(): Promise<PictureInPictureWindow>;
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLVideoElement: {
prototype: HTMLVideoElement;
new(): HTMLVideoElement;
};
/** Events that fire when the fragment identifier of the URL has changed. */
interface HashChangeEvent extends Event {
/**
* Returns the URL of the session history entry that is now current.
*/
readonly newURL: string;
/**
* Returns the URL of the session history entry that was previously current.
*/
readonly oldURL: string;
}
declare var HashChangeEvent: {
prototype: HashChangeEvent;
new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
};
/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence. */
interface Headers {
append(name: string, value: string): void;
delete(name: string): void;
get(name: string): string | null;
has(name: string): boolean;
set(name: string, value: string): void;
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
}
declare var Headers: {
prototype: Headers;
new(init?: HeadersInit): Headers;
};
/** Allows\xA0manipulation of\xA0the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */
interface History {
readonly length: number;
scrollRestoration: ScrollRestoration;
readonly state: any;
back(): void;
forward(): void;
go(delta?: number): void;
pushState(data: any, unused: string, url?: string | URL | null): void;
replaceState(data: any, unused: string, url?: string | URL | null): void;
}
declare var History: {
prototype: History;
new(): History;
};
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
interface IDBCursor {
/**
* Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.
*/
readonly direction: IDBCursorDirection;
/**
* Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*/
readonly key: IDBValidKey;
/**
* Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*/
readonly primaryKey: IDBValidKey;
readonly request: IDBRequest;
/**
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
*/
readonly source: IDBObjectStore | IDBIndex;
/**
* Advances the cursor through the next count records in range.
*/
advance(count: number): void;
/**
* Advances the cursor to the next record in range.
*/
continue(key?: IDBValidKey): void;
/**
* Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.
*/
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
/**
* Delete the record pointed at by the cursor with a new value.
*
* If successful, request's result will be undefined.
*/
delete(): IDBRequest<undefined>;
/**
* Updated the record pointed at by the cursor with a new value.
*
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
*
* If successful, request's result will be the record's key.
*/
update(value: any): IDBRequest<IDBValidKey>;
}
declare var IDBCursor: {
prototype: IDBCursor;
new(): IDBCursor;
};
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */
interface IDBCursorWithValue extends IDBCursor {
/**
* Returns the cursor's current value.
*/
readonly value: any;
}
declare var IDBCursorWithValue: {
prototype: IDBCursorWithValue;
new(): IDBCursorWithValue;
};
interface IDBDatabaseEventMap {
"abort": Event;
"close": Event;
"error": Event;
"versionchange": IDBVersionChangeEvent;
}
/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */
interface IDBDatabase extends EventTarget {
/**
* Returns the name of the database.
*/
readonly name: string;
/**
* Returns a list of the names of object stores in the database.
*/
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
/**
* Returns the version of the database.
*/
readonly version: number;
/**
* Closes the connection once all running transactions have finished.
*/
close(): void;
/**
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
/**
* Deletes the object store with the given name.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteObjectStore(name: string): void;
/**
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
*/
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBDatabase: {
prototype: IDBDatabase;
new(): IDBDatabase;
};
/** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */
interface IDBFactory {
/**
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
*
* Throws a "DataError" DOMException if either input is not a valid key.
*/
cmp(first: any, second: any): number;
databases(): Promise<IDBDatabaseInfo[]>;
/**
* Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null.
*/
deleteDatabase(name: string): IDBOpenDBRequest;
/**
* Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection.
*/
open(name: string, version?: number): IDBOpenDBRequest;
}
declare var IDBFactory: {
prototype: IDBFactory;
new(): IDBFactory;
};
/** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */
interface IDBIndex {
readonly keyPath: string | string[];
readonly multiEntry: boolean;
/**
* Returns the name of the index.
*/
name: string;
/**
* Returns the IDBObjectStore the index belongs to.
*/
readonly objectStore: IDBObjectStore;
readonly unique: boolean;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
}
declare var IDBIndex: {
prototype: IDBIndex;
new(): IDBIndex;
};
/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */
interface IDBKeyRange {
/**
* Returns lower bound, or undefined if none.
*/
readonly lower: any;
/**
* Returns true if the lower open flag is set, and false otherwise.
*/
readonly lowerOpen: boolean;
/**
* Returns upper bound, or undefined if none.
*/
readonly upper: any;
/**
* Returns true if the upper open flag is set, and false otherwise.
*/
readonly upperOpen: boolean;
/**
* Returns true if key is included in the range, and false otherwise.
*/
includes(key: any): boolean;
}
declare var IDBKeyRange: {
prototype: IDBKeyRange;
new(): IDBKeyRange;
/**
* Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.
*/
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
/**
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
*/
lowerBound(lower: any, open?: boolean): IDBKeyRange;
/**
* Returns a new IDBKeyRange spanning only key.
*/
only(value: any): IDBKeyRange;
/**
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
*/
upperBound(upper: any, open?: boolean): IDBKeyRange;
};
/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.) */
interface IDBObjectStore {
/**
* Returns true if the store has a key generator, and false otherwise.
*/
readonly autoIncrement: boolean;
/**
* Returns a list of the names of indexes in the store.
*/
readonly indexNames: DOMStringList;
/**
* Returns the key path of the store, or null if none.
*/
readonly keyPath: string | string[];
/**
* Returns the name of the store.
*/
name: string;
/**
* Returns the associated transaction.
*/
readonly transaction: IDBTransaction;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* Deletes all records in store.
*
* If successful, request's result will be undefined.
*/
clear(): IDBRequest<undefined>;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
/**
* Deletes records in store with the given key or in the given key range in query.
*
* If successful, request's result will be undefined.
*/
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* Deletes the index in store with the given name.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteIndex(name: string): void;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
index(name: string): IDBIndex;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*/
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
}
declare var IDBObjectStore: {
prototype: IDBObjectStore;
new(): IDBObjectStore;
};
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
"blocked": Event;
"upgradeneeded": IDBVersionChangeEvent;
}
/** Also inherits methods from its parents IDBRequest and EventTarget. */
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBOpenDBRequest: {
prototype: IDBOpenDBRequest;
new(): IDBOpenDBRequest;
};
interface IDBRequestEventMap {
"error": Event;
"success": Event;
}
/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */
interface IDBRequest<T = any> extends EventTarget {
/**
* When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.
*/
readonly error: DOMException | null;
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
/**
* Returns "pending" until a request is complete, then returns "done".
*/
readonly readyState: IDBRequestReadyState;
/**
* When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.
*/
readonly result: T;
/**
* Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.
*/
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
/**
* Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.
*/
readonly transaction: IDBTransaction | null;
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBRequest: {
prototype: IDBRequest;
new(): IDBRequest;
};
interface IDBTransactionEventMap {
"abort": Event;
"complete": Event;
"error": Event;
}
interface IDBTransaction extends EventTarget {
/**
* Returns the transaction's connection.
*/
readonly db: IDBDatabase;
/**
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
*/
readonly error: DOMException | null;
/**
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
*/
readonly mode: IDBTransactionMode;
/**
* Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database.
*/
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
/**
* Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
*/
abort(): void;
commit(): void;
/**
* Returns an IDBObjectStore in the transaction's scope.
*/
objectStore(name: string): IDBObjectStore;
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBTransaction: {
prototype: IDBTransaction;
new(): IDBTransaction;
};
/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
interface IDBVersionChangeEvent extends Event {
readonly newVersion: number | null;
readonly oldVersion: number;
}
declare var IDBVersionChangeEvent: {
prototype: IDBVersionChangeEvent;
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
};
/** The\xA0IIRFilterNode\xA0interface of the\xA0Web Audio API\xA0is a AudioNode processor which implements a general infinite impulse response (IIR)\xA0 filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed. */
interface IIRFilterNode extends AudioNode {
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
}
declare var IIRFilterNode: {
prototype: IIRFilterNode;
new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;
};
interface IdleDeadline {
readonly didTimeout: boolean;
timeRemaining(): DOMHighResTimeStamp;
}
declare var IdleDeadline: {
prototype: IdleDeadline;
new(): IdleDeadline;
};
interface ImageBitmap {
/**
* Returns the intrinsic height of the image, in CSS pixels.
*/
readonly height: number;
/**
* Returns the intrinsic width of the image, in CSS pixels.
*/
readonly width: number;
/**
* Releases imageBitmap's underlying bitmap data.
*/
close(): void;
}
declare var ImageBitmap: {
prototype: ImageBitmap;
new(): ImageBitmap;
};
interface ImageBitmapRenderingContext {
/**
* Returns the canvas element that the context is bound to.
*/
readonly canvas: HTMLCanvasElement;
/**
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
*/
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
declare var ImageBitmapRenderingContext: {
prototype: ImageBitmapRenderingContext;
new(): ImageBitmapRenderingContext;
};
/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
interface ImageData {
/**
* Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
*/
readonly data: Uint8ClampedArray;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*/
readonly height: number;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*/
readonly width: number;
}
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
interface InnerHTML {
innerHTML: string;
}
interface InputEvent extends UIEvent {
readonly data: string | null;
readonly dataTransfer: DataTransfer | null;
readonly inputType: string;
readonly isComposing: boolean;
getTargetRanges(): StaticRange[];
}
declare var InputEvent: {
prototype: InputEvent;
new(type: string, eventInitDict?: InputEventInit): InputEvent;
};
/** provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport. */
interface IntersectionObserver {
readonly root: Element | Document | null;
readonly rootMargin: string;
readonly thresholds: ReadonlyArray<number>;
disconnect(): void;
observe(target: Element): void;
takeRecords(): IntersectionObserverEntry[];
unobserve(target: Element): void;
}
declare var IntersectionObserver: {
prototype: IntersectionObserver;
new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;
};
/** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */
interface IntersectionObserverEntry {
readonly boundingClientRect: DOMRectReadOnly;
readonly intersectionRatio: number;
readonly intersectionRect: DOMRectReadOnly;
readonly isIntersecting: boolean;
readonly rootBounds: DOMRectReadOnly | null;
readonly target: Element;
readonly time: DOMHighResTimeStamp;
}
declare var IntersectionObserverEntry: {
prototype: IntersectionObserverEntry;
new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;
};
interface KHR_parallel_shader_compile {
readonly COMPLETION_STATUS_KHR: GLenum;
}
/** KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard. */
interface KeyboardEvent extends UIEvent {
readonly altKey: boolean;
/** @deprecated */
readonly charCode: number;
readonly code: string;
readonly ctrlKey: boolean;
readonly isComposing: boolean;
readonly key: string;
/** @deprecated */
readonly keyCode: number;
readonly location: number;
readonly metaKey: boolean;
readonly repeat: boolean;
readonly shiftKey: boolean;
getModifierState(keyArg: string): boolean;
/** @deprecated */
initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;
readonly DOM_KEY_LOCATION_LEFT: number;
readonly DOM_KEY_LOCATION_NUMPAD: number;
readonly DOM_KEY_LOCATION_RIGHT: number;
readonly DOM_KEY_LOCATION_STANDARD: number;
}
declare var KeyboardEvent: {
prototype: KeyboardEvent;
new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
readonly DOM_KEY_LOCATION_LEFT: number;
readonly DOM_KEY_LOCATION_NUMPAD: number;
readonly DOM_KEY_LOCATION_RIGHT: number;
readonly DOM_KEY_LOCATION_STANDARD: number;
};
interface KeyframeEffect extends AnimationEffect {
composite: CompositeOperation;
iterationComposite: IterationCompositeOperation;
pseudoElement: string | null;
target: Element | null;
getKeyframes(): ComputedKeyframe[];
setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;
}
declare var KeyframeEffect: {
prototype: KeyframeEffect;
new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;
new(source: KeyframeEffect): KeyframeEffect;
};
interface LinkStyle {
readonly sheet: CSSStyleSheet | null;
}
/** The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. */
interface Location {
/**
* Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context.
*/
readonly ancestorOrigins: DOMStringList;
/**
* Returns the Location object's URL's fragment (includes leading "#" if non-empty).
*
* Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").
*/
hash: string;
/**
* Returns the Location object's URL's host and port (if different from the default port for the scheme).
*
* Can be set, to navigate to the same URL with a changed host and port.
*/
host: string;
/**
* Returns the Location object's URL's host.
*
* Can be set, to navigate to the same URL with a changed host.
*/
hostname: string;
/**
* Returns the Location object's URL.
*
* Can be set, to navigate to the given URL.
*/
href: string;
toString(): string;
/**
* Returns the Location object's URL's origin.
*/
readonly origin: string;
/**
* Returns the Location object's URL's path.
*
* Can be set, to navigate to the same URL with a changed path.
*/
pathname: string;
/**
* Returns the Location object's URL's port.
*
* Can be set, to navigate to the same URL with a changed port.
*/
port: string;
/**
* Returns the Location object's URL's scheme.
*
* Can be set, to navigate to the same URL with a changed scheme.
*/
protocol: string;
/**
* Returns the Location object's URL's query (includes leading "?" if non-empty).
*
* Can be set, to navigate to the same URL with a changed query (ignores leading "?").
*/
search: string;
/**
* Navigates to the given URL.
*/
assign(url: string | URL): void;
/**
* Reloads the current page.
*/
reload(): void;
/**
* Removes the current page from the session history and navigates to the given URL.
*/
replace(url: string | URL): void;
}
declare var Location: {
prototype: Location;
new(): Location;
};
interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
}
interface MathMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MathMLElement: {
prototype: MathMLElement;
new(): MathMLElement;
};
interface MediaCapabilities {
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}
declare var MediaCapabilities: {
prototype: MediaCapabilities;
new(): MediaCapabilities;
};
/** The MediaDevicesInfo interface contains information that describes a single media input or output device. */
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[]>;
getDisplayMedia(constraints?: DisplayMediaStreamConstraints): Promise<MediaStream>;
getSupportedConstraints(): MediaTrackSupportedConstraints;
getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaDevices: {
prototype: MediaDevices;
new(): MediaDevices;
};
/** A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio. */
interface MediaElementAudioSourceNode extends AudioNode {
readonly mediaElement: HTMLMediaElement;
}
declare var MediaElementAudioSourceNode: {
prototype: MediaElementAudioSourceNode;
new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;
};
interface MediaEncryptedEvent extends Event {
readonly initData: ArrayBuffer | null;
readonly initDataType: string;
}
declare var MediaEncryptedEvent: {
prototype: MediaEncryptedEvent;
new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;
};
/** An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. */
interface MediaError {
readonly code: number;
readonly message: string;
readonly MEDIA_ERR_ABORTED: number;
readonly MEDIA_ERR_DECODE: number;
readonly MEDIA_ERR_NETWORK: number;
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
}
declare var MediaError: {
prototype: MediaError;
new(): MediaError;
readonly MEDIA_ERR_ABORTED: number;
readonly MEDIA_ERR_DECODE: number;
readonly MEDIA_ERR_NETWORK: number;
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
};
/** This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session. */
interface MediaKeyMessageEvent extends Event {
readonly message: ArrayBuffer;
readonly messageType: MediaKeyMessageType;
}
declare var MediaKeyMessageEvent: {
prototype: MediaKeyMessageEvent;
new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;
};
interface MediaKeySessionEventMap {
"keystatuseschange": Event;
"message": MediaKeyMessageEvent;
}
/** This EncryptedMediaExtensions API interface represents a\xA0context for message exchange with a content decryption module (CDM). */
interface MediaKeySession extends EventTarget {
readonly closed: Promise<MediaKeySessionClosedReason>;
readonly expiration: number;
readonly keyStatuses: MediaKeyStatusMap;
onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;
readonly sessionId: string;
close(): Promise<void>;
generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
load(sessionId: string): Promise<boolean>;
remove(): Promise<void>;
update(response: BufferSource): Promise<void>;
addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaKeySession: {
prototype: MediaKeySession;
new(): MediaKeySession;
};
/** This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs. */
interface MediaKeyStatusMap {
readonly size: number;
get(keyId: BufferSource): MediaKeyStatus | undefined;
has(keyId: BufferSource): boolean;
forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;
}
declare var MediaKeyStatusMap: {
prototype: MediaKeyStatusMap;
new(): MediaKeyStatusMap;
};
/** This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method. */
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;
toString(): string;
appendMedium(medium: string): void;
deleteMedium(medium: string): void;
item(index: number): string | null;
[index: number]: string;
}
declare var MediaList: {
prototype: MediaList;
new(): MediaList;
};
interface MediaMetadata {
album: string;
artist: string;
artwork: ReadonlyArray<MediaImage>;
title: string;
}
declare var MediaMetadata: {
prototype: MediaMetadata;
new(init?: MediaMetadataInit): MediaMetadata;
};
interface MediaQueryListEventMap {
"change": MediaQueryListEvent;
}
/** Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true). */
interface MediaQueryList extends EventTarget {
readonly matches: boolean;
readonly media: string;
onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
/** @deprecated */
addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
/** @deprecated */
removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaQueryList: {
prototype: MediaQueryList;
new(): MediaQueryList;
};
interface MediaQueryListEvent extends Event {
readonly matches: boolean;
readonly media: string;
}
declare var MediaQueryListEvent: {
prototype: MediaQueryListEvent;
new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;
};
interface MediaRecorderEventMap {
"dataavailable": BlobEvent;
"error": Event;
"pause": Event;
"resume": Event;
"start": Event;
"stop": Event;
}
interface MediaRecorder extends EventTarget {
readonly audioBitsPerSecond: number;
readonly mimeType: string;
ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
onerror: ((this: MediaRecorder, ev: Event) => any) | null;
onpause: ((this: MediaRecorder, ev: Event) => any) | null;
onresume: ((this: MediaRecorder, ev: Event) => any) | null;
onstart: ((this: MediaRecorder, ev: Event) => any) | null;
onstop: ((this: MediaRecorder, ev: Event) => any) | null;
readonly state: RecordingState;
readonly stream: MediaStream;
readonly videoBitsPerSecond: number;
pause(): void;
requestData(): void;
resume(): void;
start(timeslice?: number): void;
stop(): void;
addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaRecorder: {
prototype: MediaRecorder;
new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;
isTypeSupported(type: string): boolean;
};
interface MediaRecorderErrorEvent extends Event {
readonly error: DOMException;
}
declare var MediaRecorderErrorEvent: {
prototype: MediaRecorderErrorEvent;
new(type: string, eventInitDict: MediaRecorderErrorEventInit): MediaRecorderErrorEvent;
};
interface MediaSession {
metadata: MediaMetadata | null;
playbackState: MediaSessionPlaybackState;
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
setPositionState(state?: MediaPositionState): void;
}
declare var MediaSession: {
prototype: MediaSession;
new(): MediaSession;
};
interface MediaSourceEventMap {
"sourceclose": Event;
"sourceended": Event;
"sourceopen": Event;
}
/** This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent. */
interface MediaSource extends EventTarget {
readonly activeSourceBuffers: SourceBufferList;
duration: number;
onsourceclose: ((this: MediaSource, ev: Event) => any) | null;
onsourceended: ((this: MediaSource, ev: Event) => any) | null;
onsourceopen: ((this: MediaSource, ev: Event) => any) | null;
readonly readyState: ReadyState;
readonly sourceBuffers: SourceBufferList;
addSourceBuffer(type: string): SourceBuffer;
clearLiveSeekableRange(): void;
endOfStream(error?: EndOfStreamError): void;
removeSourceBuffer(sourceBuffer: SourceBuffer): void;
setLiveSeekableRange(start: number, end: number): void;
addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaSource: {
prototype: MediaSource;
new(): MediaSource;
isTypeSupported(type: string): boolean;
};
interface MediaStreamEventMap {
"addtrack": MediaStreamTrackEvent;
"removetrack": MediaStreamTrackEvent;
}
/** A stream of media content. A stream consists of several tracks such as\xA0video or audio tracks. Each track is specified as an instance of MediaStreamTrack. */
interface MediaStream extends EventTarget {
readonly active: boolean;
readonly id: string;
onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
addTrack(track: MediaStreamTrack): void;
clone(): MediaStream;
getAudioTracks(): MediaStreamTrack[];
getTrackById(trackId: string): MediaStreamTrack | null;
getTracks(): MediaStreamTrack[];
getVideoTracks(): MediaStreamTrack[];
removeTrack(track: MediaStreamTrack): void;
addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaStream: {
prototype: MediaStream;
new(): MediaStream;
new(stream: MediaStream): MediaStream;
new(tracks: MediaStreamTrack[]): MediaStream;
};
interface MediaStreamAudioDestinationNode extends AudioNode {
readonly stream: MediaStream;
}
declare var MediaStreamAudioDestinationNode: {
prototype: MediaStreamAudioDestinationNode;
new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;
};
/** A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs. */
interface MediaStreamAudioSourceNode extends AudioNode {
readonly mediaStream: MediaStream;
}
declare var MediaStreamAudioSourceNode: {
prototype: MediaStreamAudioSourceNode;
new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;
};
interface MediaStreamTrackEventMap {
"ended": Event;
"mute": Event;
"unmute": Event;
}
/** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */
interface MediaStreamTrack extends EventTarget {
contentHint: string;
enabled: boolean;
readonly id: string;
readonly kind: string;
readonly label: string;
readonly muted: boolean;
onended: ((this: MediaStreamTrack, ev: Event) => any) | null;
onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
readonly readyState: MediaStreamTrackState;
applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;
clone(): MediaStreamTrack;
getCapabilities(): MediaTrackCapabilities;
getConstraints(): MediaTrackConstraints;
getSettings(): MediaTrackSettings;
stop(): void;
addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaStreamTrack: {
prototype: MediaStreamTrack;
new(): MediaStreamTrack;
};
/** Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur. */
interface MediaStreamTrackEvent extends Event {
readonly track: MediaStreamTrack;
}
declare var MediaStreamTrackEvent: {
prototype: MediaStreamTrackEvent;
new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;
};
/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
interface MessageChannel {
/**
* Returns the first MessagePort object.
*/
readonly port1: MessagePort;
/**
* Returns the second MessagePort object.
*/
readonly port2: MessagePort;
}
declare var MessageChannel: {
prototype: MessageChannel;
new(): MessageChannel;
};
/** A message received by a target object. */
interface MessageEvent<T = any> extends Event {
/**
* Returns the data of the message.
*/
readonly data: T;
/**
* Returns the last event ID string, for server-sent events.
*/
readonly lastEventId: string;
/**
* Returns the origin of the message, for server-sent events and cross-document messaging.
*/
readonly origin: string;
/**
* Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
*/
readonly ports: ReadonlyArray<MessagePort>;
/**
* Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
*/
readonly source: MessageEventSource | null;
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
declare var MessageEvent: {
prototype: MessageEvent;
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};
interface MessagePortEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */
interface MessagePort extends EventTarget {
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
/**
* Disconnects the port, so that it is no longer active.
*/
close(): void;
/**
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: 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.
* @deprecated
*/
interface MimeType {
/**
* Returns the MIME type's description.
* @deprecated
*/
readonly description: string;
/**
* Returns the Plugin object that implements this MIME type.
* @deprecated
*/
readonly enabledPlugin: Plugin;
/**
* Returns the MIME type's typical file extensions, in a comma-separated list.
* @deprecated
*/
readonly suffixes: string;
/**
* Returns the MIME type.
* @deprecated
*/
readonly type: string;
}
/** @deprecated */
declare var MimeType: {
prototype: MimeType;
new(): MimeType;
};
/**
* Returns an array of MimeType instances, each of which contains information\xA0about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.
* @deprecated
*/
interface MimeTypeArray {
/** @deprecated */
readonly length: number;
/** @deprecated */
item(index: number): MimeType | null;
/** @deprecated */
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
/** @deprecated */
declare var MimeTypeArray: {
prototype: MimeTypeArray;
new(): MimeTypeArray;
};
/** Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown. */
interface MouseEvent extends UIEvent {
readonly altKey: boolean;
readonly button: number;
readonly buttons: number;
readonly clientX: number;
readonly clientY: number;
readonly ctrlKey: boolean;
readonly metaKey: boolean;
readonly movementX: number;
readonly movementY: number;
readonly offsetX: number;
readonly offsetY: number;
readonly pageX: number;
readonly pageY: number;
readonly relatedTarget: EventTarget | null;
readonly screenX: number;
readonly screenY: number;
readonly shiftKey: boolean;
readonly x: number;
readonly y: number;
getModifierState(keyArg: string): boolean;
/** @deprecated */
initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void;
}
declare var MouseEvent: {
prototype: MouseEvent;
new(type: string, eventInitDict?: MouseEventInit): MouseEvent;
};
/**
* Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.
* @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface.
*/
interface MutationEvent extends Event {
/** @deprecated */
readonly attrChange: number;
/** @deprecated */
readonly attrName: string;
/** @deprecated */
readonly newValue: string;
/** @deprecated */
readonly prevValue: string;
/** @deprecated */
readonly relatedNode: Node | null;
/** @deprecated */
initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;
readonly ADDITION: number;
readonly MODIFICATION: number;
readonly REMOVAL: number;
}
/** @deprecated */
declare var MutationEvent: {
prototype: MutationEvent;
new(): MutationEvent;
readonly ADDITION: number;
readonly MODIFICATION: number;
readonly REMOVAL: number;
};
/** Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification. */
interface MutationObserver {
/**
* Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked.
*/
disconnect(): void;
/**
* Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).
*
* The options argument allows for setting mutation observation options via object members.
*/
observe(target: Node, options?: MutationObserverInit): void;
/**
* Empties the record queue and returns what was in there.
*/
takeRecords(): MutationRecord[];
}
declare var MutationObserver: {
prototype: MutationObserver;
new(callback: MutationCallback): MutationObserver;
};
/** A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback. */
interface MutationRecord {
/**
* Return the nodes added and removed respectively.
*/
readonly addedNodes: NodeList;
/**
* Returns the local name of the changed attribute, and null otherwise.
*/
readonly attributeName: string | null;
/**
* Returns the namespace of the changed attribute, and null otherwise.
*/
readonly attributeNamespace: string | null;
/**
* Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.
*/
readonly nextSibling: Node | null;
/**
* The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null.
*/
readonly oldValue: string | null;
/**
* Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.
*/
readonly previousSibling: Node | null;
/**
* Return the nodes added and removed respectively.
*/
readonly removedNodes: NodeList;
/**
* Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed.
*/
readonly target: Node;
/**
* Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes.
*/
readonly type: MutationRecordType;
}
declare var MutationRecord: {
prototype: MutationRecord;
new(): MutationRecord;
};
/** A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. */
interface NamedNodeMap {
readonly length: number;
getNamedItem(qualifiedName: string): Attr | null;
getNamedItemNS(namespace: string | null, localName: string): Attr | null;
item(index: number): Attr | null;
removeNamedItem(qualifiedName: string): Attr;
removeNamedItemNS(namespace: string | null, localName: string): Attr;
setNamedItem(attr: Attr): Attr | null;
setNamedItemNS(attr: Attr): Attr | null;
[index: number]: Attr;
}
declare var NamedNodeMap: {
prototype: NamedNodeMap;
new(): NamedNodeMap;
};
/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
readonly clipboard: Clipboard;
readonly credentials: CredentialsContainer;
readonly doNotTrack: string | null;
readonly geolocation: Geolocation;
readonly maxTouchPoints: number;
readonly mediaCapabilities: MediaCapabilities;
readonly mediaDevices: MediaDevices;
readonly mediaSession: MediaSession;
readonly permissions: Permissions;
readonly pointerEnabled: boolean;
readonly serviceWorker: ServiceWorkerContainer;
getGamepads(): (Gamepad | null)[];
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
share(data?: ShareData): Promise<void>;
vibrate(pattern: VibratePattern): boolean;
}
declare var Navigator: {
prototype: Navigator;
new(): Navigator;
};
interface NavigatorAutomationInformation {
readonly webdriver: boolean;
}
interface NavigatorConcurrentHardware {
readonly hardwareConcurrency: number;
}
interface NavigatorContentUtils {
registerProtocolHandler(scheme: string, url: string | URL): void;
}
interface NavigatorCookies {
readonly cookieEnabled: boolean;
}
interface NavigatorID {
/** @deprecated */
readonly appCodeName: string;
/** @deprecated */
readonly appName: string;
/** @deprecated */
readonly appVersion: string;
/** @deprecated */
readonly platform: string;
/** @deprecated */
readonly product: string;
/** @deprecated */
readonly productSub: string;
readonly userAgent: string;
readonly vendor: string;
/** @deprecated */
readonly vendorSub: string;
}
interface NavigatorLanguage {
readonly language: string;
readonly languages: ReadonlyArray<string>;
}
interface NavigatorNetworkInformation {
readonly connection: NetworkInformation;
}
interface NavigatorOnLine {
readonly onLine: boolean;
}
interface NavigatorPlugins {
/** @deprecated */
readonly mimeTypes: MimeTypeArray;
/** @deprecated */
readonly plugins: PluginArray;
/** @deprecated */
javaEnabled(): boolean;
}
interface NavigatorStorage {
readonly storage: StorageManager;
}
interface NetworkInformation extends EventTarget {
readonly type: ConnectionType;
}
declare var NetworkInformation: {
prototype: NetworkInformation;
new(): NetworkInformation;
};
/** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */
interface Node extends EventTarget {
/**
* Returns node's node document's document base URL.
*/
readonly baseURI: string;
/**
* Returns the children.
*/
readonly childNodes: NodeListOf<ChildNode>;
/**
* Returns the first child.
*/
readonly firstChild: ChildNode | null;
/**
* Returns true if node is connected and false otherwise.
*/
readonly isConnected: boolean;
/**
* Returns the last child.
*/
readonly lastChild: ChildNode | null;
/**
* Returns the next sibling.
*/
readonly nextSibling: ChildNode | null;
/**
* Returns a string appropriate for the type of node.
*/
readonly nodeName: string;
/**
* Returns the type of node.
*/
readonly nodeType: number;
nodeValue: string | null;
/**
* Returns the node document. Returns null for documents.
*/
readonly ownerDocument: Document | null;
/**
* Returns the parent element.
*/
readonly parentElement: HTMLElement | null;
/**
* Returns the parent.
*/
readonly parentNode: ParentNode | null;
/**
* Returns the previous sibling.
*/
readonly previousSibling: ChildNode | null;
textContent: string | null;
appendChild<T extends Node>(node: T): T;
/**
* Returns a copy of node. If deep is true, the copy also includes the node's descendants.
*/
cloneNode(deep?: boolean): Node;
/**
* Returns a bitmask indicating the position of other relative to node.
*/
compareDocumentPosition(other: Node): number;
/**
* Returns true if other is an inclusive descendant of node, and false otherwise.
*/
contains(other: Node | null): boolean;
/**
* Returns node's root.
*/
getRootNode(options?: GetRootNodeOptions): Node;
/**
* Returns whether node has children.
*/
hasChildNodes(): boolean;
insertBefore<T extends Node>(node: T, child: Node | null): T;
isDefaultNamespace(namespace: string | null): boolean;
/**
* Returns whether node and otherNode have the same properties.
*/
isEqualNode(otherNode: Node | null): boolean;
isSameNode(otherNode: Node | null): boolean;
lookupNamespaceURI(prefix: string | null): string | null;
lookupPrefix(namespace: string | null): string | null;
/**
* Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
*/
normalize(): void;
removeChild<T extends Node>(child: T): T;
replaceChild<T extends Node>(node: Node, child: T): T;
readonly ATTRIBUTE_NODE: number;
/**
* node is a CDATASection node.
*/
readonly CDATA_SECTION_NODE: number;
/**
* node is a Comment node.
*/
readonly COMMENT_NODE: number;
/**
* node is a DocumentFragment node.
*/
readonly DOCUMENT_FRAGMENT_NODE: number;
/**
* node is a document.
*/
readonly DOCUMENT_NODE: number;
/**
* Set when other is a descendant of node.
*/
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
/**
* Set when other is an ancestor of node.
*/
readonly DOCUMENT_POSITION_CONTAINS: number;
/**
* Set when node and other are not in the same tree.
*/
readonly DOCUMENT_POSITION_DISCONNECTED: number;
/**
* Set when other is following node.
*/
readonly DOCUMENT_POSITION_FOLLOWING: number;
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
/**
* Set when other is preceding node.
*/
readonly DOCUMENT_POSITION_PRECEDING: number;
/**
* node is a doctype.
*/
readonly DOCUMENT_TYPE_NODE: number;
/**
* node is an element.
*/
readonly ELEMENT_NODE: number;
readonly ENTITY_NODE: number;
readonly ENTITY_REFERENCE_NODE: number;
readonly NOTATION_NODE: number;
/**
* node is a ProcessingInstruction node.
*/
readonly PROCESSING_INSTRUCTION_NODE: number;
/**
* node is a Text node.
*/
readonly TEXT_NODE: number;
}
declare var Node: {
prototype: Node;
new(): Node;
readonly ATTRIBUTE_NODE: number;
/**
* node is a CDATASection node.
*/
readonly CDATA_SECTION_NODE: number;
/**
* node is a Comment node.
*/
readonly COMMENT_NODE: number;
/**
* node is a DocumentFragment node.
*/
readonly DOCUMENT_FRAGMENT_NODE: number;
/**
* node is a document.
*/
readonly DOCUMENT_NODE: number;
/**
* Set when other is a descendant of node.
*/
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
/**
* Set when other is an ancestor of node.
*/
readonly DOCUMENT_POSITION_CONTAINS: number;
/**
* Set when node and other are not in the same tree.
*/
readonly DOCUMENT_POSITION_DISCONNECTED: number;
/**
* Set when other is following node.
*/
readonly DOCUMENT_POSITION_FOLLOWING: number;
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
/**
* Set when other is preceding node.
*/
readonly DOCUMENT_POSITION_PRECEDING: number;
/**
* node is a doctype.
*/
readonly DOCUMENT_TYPE_NODE: number;
/**
* node is an element.
*/
readonly ELEMENT_NODE: number;
readonly ENTITY_NODE: number;
readonly ENTITY_REFERENCE_NODE: number;
readonly NOTATION_NODE: number;
/**
* node is a ProcessingInstruction node.
*/
readonly PROCESSING_INSTRUCTION_NODE: number;
/**
* node is a Text node.
*/
readonly TEXT_NODE: number;
};
/** An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order. */
interface NodeIterator {
readonly filter: NodeFilter | null;
readonly pointerBeforeReferenceNode: boolean;
readonly referenceNode: Node;
readonly root: Node;
readonly whatToShow: number;
/** @deprecated */
detach(): void;
nextNode(): Node | null;
previousNode(): Node | null;
}
declare var NodeIterator: {
prototype: NodeIterator;
new(): NodeIterator;
};
/** NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). */
interface NodeList {
/**
* Returns the number of nodes in the collection.
*/
readonly length: number;
/**
* Returns the node with index index from the collection. The nodes are sorted in tree order.
*/
item(index: number): Node | null;
/**
* Performs the specified action for each node in an list.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;
[index: number]: Node;
}
declare var NodeList: {
prototype: NodeList;
new(): NodeList;
};
interface NodeListOf<TNode extends Node> extends NodeList {
item(index: number): TNode;
/**
* Performs the specified action for each node in an list.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;
[index: number]: TNode;
}
interface NonDocumentTypeChildNode {
/**
* Returns the first following sibling that is an element, and null otherwise.
*/
readonly nextElementSibling: Element | null;
/**
* Returns the first preceding sibling that is an element, and null otherwise.
*/
readonly previousElementSibling: Element | null;
}
interface NonElementParentNode {
/**
* Returns the first element within node's descendants whose ID is elementId.
*/
getElementById(elementId: string): Element | null;
}
interface NotificationEventMap {
"click": Event;
"close": Event;
"error": Event;
"show": Event;
}
/** This Notifications API interface is used to configure and display desktop notifications to the user. */
interface Notification extends EventTarget {
readonly body: string;
readonly data: any;
readonly dir: NotificationDirection;
readonly icon: string;
readonly lang: string;
onclick: ((this: Notification, ev: Event) => any) | null;
onclose: ((this: Notification, ev: Event) => any) | null;
onerror: ((this: Notification, ev: Event) => any) | null;
onshow: ((this: Notification, ev: Event) => any) | null;
readonly tag: string;
readonly title: string;
close(): void;
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Notification: {
prototype: Notification;
new(title: string, options?: NotificationOptions): Notification;
readonly permission: NotificationPermission;
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
};
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
interface OES_element_index_uint {
}
interface OES_fbo_render_mipmap {
}
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
interface OES_standard_derivatives {
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
}
/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
interface OES_texture_float {
}
/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
interface OES_texture_float_linear {
}
/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */
interface OES_texture_half_float {
readonly HALF_FLOAT_OES: GLenum;
}
/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */
interface OES_texture_half_float_linear {
}
interface OES_vertex_array_object {
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
readonly VERTEX_ARRAY_BINDING_OES: GLenum;
}
interface OVR_multiview2 {
framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: GLenum;
readonly MAX_VIEWS_OVR: GLenum;
}
/** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */
interface OfflineAudioCompletionEvent extends Event {
readonly renderedBuffer: AudioBuffer;
}
declare var OfflineAudioCompletionEvent: {
prototype: OfflineAudioCompletionEvent;
new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;
};
interface OfflineAudioContextEventMap extends BaseAudioContextEventMap {
"complete": OfflineAudioCompletionEvent;
}
/** An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer. */
interface OfflineAudioContext extends BaseAudioContext {
readonly length: number;
oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;
resume(): Promise<void>;
startRendering(): Promise<AudioBuffer>;
suspend(suspendTime: number): Promise<void>;
addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OfflineAudioContext: {
prototype: OfflineAudioContext;
new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;
new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
};
/** The OscillatorNode\xA0interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency\xA0of a given wave to be created\u2014in effect, a constant tone. */
interface OscillatorNode extends AudioScheduledSourceNode {
readonly detune: AudioParam;
readonly frequency: AudioParam;
type: OscillatorType;
setPeriodicWave(periodicWave: PeriodicWave): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OscillatorNode: {
prototype: OscillatorNode;
new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;
};
interface OverconstrainedError extends Error {
readonly constraint: string;
}
declare var OverconstrainedError: {
prototype: OverconstrainedError;
new(constraint: string, message?: string): OverconstrainedError;
};
/** The PageTransitionEvent is fired when a document is being loaded or unloaded. */
interface PageTransitionEvent extends Event {
/**
* For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.
*
* For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page.
*
* Things that can cause the page to be unsalvageable include:
*
* The user agent decided to not keep the Document alive in a session history entry after unload
* Having iframes that are not salvageable
* Active WebSocket objects
* Aborting a Document
*/
readonly persisted: boolean;
}
declare var PageTransitionEvent: {
prototype: PageTransitionEvent;
new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
};
/** A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can't have panning effects without at least two audio channels! */
interface PannerNode extends AudioNode {
coneInnerAngle: number;
coneOuterAngle: number;
coneOuterGain: number;
distanceModel: DistanceModelType;
maxDistance: number;
readonly orientationX: AudioParam;
readonly orientationY: AudioParam;
readonly orientationZ: AudioParam;
panningModel: PanningModelType;
readonly positionX: AudioParam;
readonly positionY: AudioParam;
readonly positionZ: AudioParam;
refDistance: number;
rolloffFactor: number;
/** @deprecated */
setOrientation(x: number, y: number, z: number): void;
/** @deprecated */
setPosition(x: number, y: number, z: number): void;
}
declare var PannerNode: {
prototype: PannerNode;
new(context: BaseAudioContext, options?: PannerOptions): PannerNode;
};
interface ParentNode extends Node {
readonly childElementCount: number;
/**
* Returns the child elements.
*/
readonly children: HTMLCollection;
/**
* Returns the first child that is an element, and null otherwise.
*/
readonly firstElementChild: Element | null;
/**
* Returns the last child that is an element, and null otherwise.
*/
readonly lastElementChild: Element | null;
/**
* Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
append(...nodes: (Node | string)[]): void;
/**
* Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
prepend(...nodes: (Node | string)[]): void;
/**
* Returns the first element that is a descendant of node that matches selectors.
*/
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
querySelector<E extends Element = Element>(selectors: string): E | null;
/**
* Returns all element descendants of node that match selectors.
*/
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
/**
* Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
replaceChildren(...nodes: (Node | string)[]): void;
}
/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */
interface Path2D extends CanvasPath {
/**
* Adds to the path the path given by the argument.
*/
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}
declare var Path2D: {
prototype: Path2D;
new(path?: Path2D | string): Path2D;
};
/**
* This Payment Request API interface is used to store shipping or payment address information.
* @deprecated
*/
interface PaymentAddress {
/** @deprecated */
readonly addressLine: ReadonlyArray<string>;
/** @deprecated */
readonly city: string;
/** @deprecated */
readonly country: string;
/** @deprecated */
readonly dependentLocality: string;
/** @deprecated */
readonly organization: string;
/** @deprecated */
readonly phone: string;
/** @deprecated */
readonly postalCode: string;
/** @deprecated */
readonly recipient: string;
/** @deprecated */
readonly region: string;
/** @deprecated */
readonly sortingCode: string;
/** @deprecated */
toJSON(): any;
}
/** @deprecated */
declare var PaymentAddress: {
prototype: PaymentAddress;
new(): PaymentAddress;
};
interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
readonly methodDetails: any;
readonly methodName: string;
}
declare var PaymentMethodChangeEvent: {
prototype: PaymentMethodChangeEvent;
new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;
};
interface PaymentRequestEventMap {
"paymentmethodchange": Event;
}
/** This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user. */
interface PaymentRequest extends EventTarget {
readonly id: string;
onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
abort(): Promise<void>;
canMakePayment(): Promise<boolean>;
show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;
addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PaymentRequest: {
prototype: PaymentRequest;
new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
};
/** This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action. */
interface PaymentRequestUpdateEvent extends Event {
updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;
}
declare var PaymentRequestUpdateEvent: {
prototype: PaymentRequestUpdateEvent;
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
};
/** This Payment Request API interface is returned after a user selects a payment method and approves a payment request. */
interface PaymentResponse extends EventTarget {
readonly details: any;
readonly methodName: string;
readonly requestId: string;
complete(result?: PaymentComplete): Promise<void>;
retry(errorFields?: PaymentValidationErrors): Promise<void>;
toJSON(): any;
}
declare var PaymentResponse: {
prototype: PaymentResponse;
new(): PaymentResponse;
};
interface PerformanceEventMap {
"resourcetimingbufferfull": Event;
}
/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
interface Performance extends EventTarget {
/** @deprecated */
readonly navigation: PerformanceNavigation;
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
readonly timeOrigin: DOMHighResTimeStamp;
/** @deprecated */
readonly timing: PerformanceTiming;
clearMarks(markName?: string): void;
clearMeasures(measureName?: string): void;
clearResourceTimings(): void;
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
now(): DOMHighResTimeStamp;
setResourceTimingBufferSize(maxSize: number): void;
toJSON(): any;
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Performance: {
prototype: Performance;
new(): Performance;
};
/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
interface PerformanceEntry {
readonly duration: DOMHighResTimeStamp;
readonly entryType: string;
readonly name: string;
readonly startTime: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceEntry: {
prototype: PerformanceEntry;
new(): PerformanceEntry;
};
interface PerformanceEventTiming extends PerformanceEntry {
readonly cancelable: boolean;
readonly processingEnd: DOMHighResTimeStamp;
readonly processingStart: DOMHighResTimeStamp;
readonly target: Node | null;
}
declare var PerformanceEventTiming: {
prototype: PerformanceEventTiming;
new(): PerformanceEventTiming;
};
/** PerformanceMark\xA0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
interface PerformanceMark extends PerformanceEntry {
readonly detail: any;
}
declare var PerformanceMark: {
prototype: PerformanceMark;
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
};
/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
interface PerformanceMeasure extends PerformanceEntry {
readonly detail: any;
}
declare var PerformanceMeasure: {
prototype: PerformanceMeasure;
new(): PerformanceMeasure;
};
/**
* The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
*/
interface PerformanceNavigation {
/** @deprecated */
readonly redirectCount: number;
/** @deprecated */
readonly type: number;
/** @deprecated */
toJSON(): any;
readonly TYPE_BACK_FORWARD: number;
readonly TYPE_NAVIGATE: number;
readonly TYPE_RELOAD: number;
readonly TYPE_RESERVED: number;
}
/** @deprecated */
declare var PerformanceNavigation: {
prototype: PerformanceNavigation;
new(): PerformanceNavigation;
readonly TYPE_BACK_FORWARD: number;
readonly TYPE_NAVIGATE: number;
readonly TYPE_RELOAD: number;
readonly TYPE_RESERVED: number;
};
/** Provides methods and properties to store and retrieve metrics regarding the browser's document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document. */
interface PerformanceNavigationTiming extends PerformanceResourceTiming {
readonly domComplete: DOMHighResTimeStamp;
readonly domContentLoadedEventEnd: DOMHighResTimeStamp;
readonly domContentLoadedEventStart: DOMHighResTimeStamp;
readonly domInteractive: DOMHighResTimeStamp;
readonly loadEventEnd: DOMHighResTimeStamp;
readonly loadEventStart: DOMHighResTimeStamp;
readonly redirectCount: number;
readonly type: NavigationType;
readonly unloadEventEnd: DOMHighResTimeStamp;
readonly unloadEventStart: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceNavigationTiming: {
prototype: PerformanceNavigationTiming;
new(): PerformanceNavigationTiming;
};
interface PerformanceObserver {
disconnect(): void;
observe(options?: PerformanceObserverInit): void;
takeRecords(): PerformanceEntryList;
}
declare var PerformanceObserver: {
prototype: PerformanceObserver;
new(callback: PerformanceObserverCallback): PerformanceObserver;
readonly supportedEntryTypes: ReadonlyArray<string>;
};
interface PerformanceObserverEntryList {
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
}
declare var PerformanceObserverEntryList: {
prototype: PerformanceObserverEntryList;
new(): PerformanceObserverEntryList;
};
interface PerformancePaintTiming extends PerformanceEntry {
}
declare var PerformancePaintTiming: {
prototype: PerformancePaintTiming;
new(): PerformancePaintTiming;
};
/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */
interface PerformanceResourceTiming extends PerformanceEntry {
readonly connectEnd: DOMHighResTimeStamp;
readonly connectStart: DOMHighResTimeStamp;
readonly decodedBodySize: number;
readonly domainLookupEnd: DOMHighResTimeStamp;
readonly domainLookupStart: DOMHighResTimeStamp;
readonly encodedBodySize: number;
readonly fetchStart: DOMHighResTimeStamp;
readonly initiatorType: string;
readonly nextHopProtocol: string;
readonly redirectEnd: DOMHighResTimeStamp;
readonly redirectStart: DOMHighResTimeStamp;
readonly requestStart: DOMHighResTimeStamp;
readonly responseEnd: DOMHighResTimeStamp;
readonly responseStart: DOMHighResTimeStamp;
readonly secureConnectionStart: DOMHighResTimeStamp;
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
readonly transferSize: number;
readonly workerStart: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
interface PerformanceServerTiming {
readonly description: string;
readonly duration: DOMHighResTimeStamp;
readonly name: string;
toJSON(): any;
}
declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};
/**
* A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
*/
interface PerformanceTiming {
/** @deprecated */
readonly connectEnd: number;
/** @deprecated */
readonly connectStart: number;
/** @deprecated */
readonly domComplete: number;
/** @deprecated */
readonly domContentLoadedEventEnd: number;
/** @deprecated */
readonly domContentLoadedEventStart: number;
/** @deprecated */
readonly domInteractive: number;
/** @deprecated */
readonly domLoading: number;
/** @deprecated */
readonly domainLookupEnd: number;
/** @deprecated */
readonly domainLookupStart: number;
/** @deprecated */
readonly fetchStart: number;
/** @deprecated */
readonly loadEventEnd: number;
/** @deprecated */
readonly loadEventStart: number;
/** @deprecated */
readonly navigationStart: number;
/** @deprecated */
readonly redirectEnd: number;
/** @deprecated */
readonly redirectStart: number;
/** @deprecated */
readonly requestStart: number;
/** @deprecated */
readonly responseEnd: number;
/** @deprecated */
readonly responseStart: number;
/** @deprecated */
readonly secureConnectionStart: number;
/** @deprecated */
readonly unloadEventEnd: number;
/** @deprecated */
readonly unloadEventStart: number;
/** @deprecated */
toJSON(): any;
}
/** @deprecated */
declare var PerformanceTiming: {
prototype: PerformanceTiming;
new(): PerformanceTiming;
};
/** PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave(). */
interface PeriodicWave {
}
declare var PeriodicWave: {
prototype: PeriodicWave;
new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;
};
interface PermissionStatusEventMap {
"change": Event;
}
interface PermissionStatus extends EventTarget {
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
readonly state: PermissionState;
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PermissionStatus: {
prototype: PermissionStatus;
new(): PermissionStatus;
};
interface Permissions {
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
prototype: Permissions;
new(): Permissions;
};
interface PictureInPictureWindowEventMap {
"resize": Event;
}
interface PictureInPictureWindow extends EventTarget {
readonly height: number;
onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;
readonly width: number;
addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PictureInPictureWindow: {
prototype: PictureInPictureWindow;
new(): PictureInPictureWindow;
};
/**
* Provides information about a browser plugin.
* @deprecated
*/
interface Plugin {
/**
* Returns the plugin's description.
* @deprecated
*/
readonly description: string;
/**
* Returns the plugin library's filename, if applicable on the current platform.
* @deprecated
*/
readonly filename: string;
/**
* Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
* @deprecated
*/
readonly length: number;
/**
* Returns the plugin's name.
* @deprecated
*/
readonly name: string;
/**
* Returns the specified MimeType object.
* @deprecated
*/
item(index: number): MimeType | null;
/** @deprecated */
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
/** @deprecated */
declare var Plugin: {
prototype: Plugin;
new(): Plugin;
};
/**
* Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins\xA0property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.
* @deprecated
*/
interface PluginArray {
/** @deprecated */
readonly length: number;
/** @deprecated */
item(index: number): Plugin | null;
/** @deprecated */
namedItem(name: string): Plugin | null;
/** @deprecated */
refresh(): void;
[index: number]: Plugin;
}
/** @deprecated */
declare var PluginArray: {
prototype: PluginArray;
new(): PluginArray;
};
/** The state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc. */
interface PointerEvent extends MouseEvent {
readonly height: number;
readonly isPrimary: boolean;
readonly pointerId: number;
readonly pointerType: string;
readonly pressure: number;
readonly tangentialPressure: number;
readonly tiltX: number;
readonly tiltY: number;
readonly twist: number;
readonly width: number;
getCoalescedEvents(): PointerEvent[];
getPredictedEvents(): PointerEvent[];
}
declare var PointerEvent: {
prototype: PointerEvent;
new(type: string, eventInitDict?: PointerEventInit): PointerEvent;
};
/** PopStateEvent is an event handler for the popstate event on the window. */
interface PopStateEvent extends Event {
/**
* Returns a copy of the information that was provided to pushState() or replaceState().
*/
readonly state: any;
}
declare var PopStateEvent: {
prototype: PopStateEvent;
new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
};
/** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. */
interface ProcessingInstruction extends CharacterData, LinkStyle {
readonly ownerDocument: Document;
readonly target: string;
}
declare var ProcessingInstruction: {
prototype: ProcessingInstruction;
new(): ProcessingInstruction;
};
/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
readonly lengthComputable: boolean;
readonly loaded: number;
readonly target: T | null;
readonly total: number;
}
declare var ProgressEvent: {
prototype: ProgressEvent;
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};
interface PromiseRejectionEvent extends Event {
readonly promise: Promise<any>;
readonly reason: any;
}
declare var PromiseRejectionEvent: {
prototype: PromiseRejectionEvent;
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
};
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 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;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
interface RTCCertificate {
readonly expires: DOMTimeStamp;
getFingerprints(): RTCDtlsFingerprint[];
}
declare var RTCCertificate: {
prototype: RTCCertificate;
new(): RTCCertificate;
};
interface RTCDTMFSenderEventMap {
"tonechange": RTCDTMFToneChangeEvent;
}
interface RTCDTMFSender extends EventTarget {
readonly canInsertDTMF: boolean;
ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;
readonly toneBuffer: string;
insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDTMFSender: {
prototype: RTCDTMFSender;
new(): RTCDTMFSender;
};
/** Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. */
interface RTCDTMFToneChangeEvent extends Event {
readonly tone: string;
}
declare var RTCDTMFToneChangeEvent: {
prototype: RTCDTMFToneChangeEvent;
new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
};
interface RTCDataChannelEventMap {
"bufferedamountlow": Event;
"close": Event;
"error": Event;
"message": MessageEvent;
"open": Event;
}
interface RTCDataChannel extends EventTarget {
binaryType: BinaryType;
readonly bufferedAmount: number;
bufferedAmountLowThreshold: number;
readonly id: number | null;
readonly label: string;
readonly maxPacketLifeTime: number | null;
readonly maxRetransmits: number | null;
readonly negotiated: boolean;
onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
readonly ordered: boolean;
readonly protocol: string;
readonly readyState: RTCDataChannelState;
close(): void;
send(data: string): void;
send(data: Blob): void;
send(data: ArrayBuffer): void;
send(data: ArrayBufferView): void;
addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDataChannel: {
prototype: RTCDataChannel;
new(): RTCDataChannel;
};
interface RTCDataChannelEvent extends Event {
readonly channel: RTCDataChannel;
}
declare var RTCDataChannelEvent: {
prototype: RTCDataChannelEvent;
new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;
};
interface RTCDtlsTransportEventMap {
"statechange": Event;
}
interface RTCDtlsTransport extends EventTarget {
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
readonly state: RTCDtlsTransportState;
addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDtlsTransport: {
prototype: RTCDtlsTransport;
new(): RTCDtlsTransport;
};
/** The RTCIceCandidate interface\u2014part of the WebRTC API\u2014represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */
interface RTCIceCandidate {
readonly address: string | null;
readonly candidate: string;
readonly component: RTCIceComponent | null;
readonly foundation: string | null;
readonly port: number | null;
readonly priority: number | null;
readonly protocol: RTCIceProtocol | null;
readonly relatedAddress: string | null;
readonly relatedPort: number | null;
readonly sdpMLineIndex: number | null;
readonly sdpMid: string | null;
readonly tcpType: RTCIceTcpCandidateType | null;
readonly type: RTCIceCandidateType | null;
readonly usernameFragment: string | null;
toJSON(): RTCIceCandidateInit;
}
declare var RTCIceCandidate: {
prototype: RTCIceCandidate;
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
};
/** Provides access to information about the ICE transport layer over which the data is being sent and received. */
interface RTCIceTransport extends EventTarget {
readonly gatheringState: RTCIceGathererState;
readonly state: RTCIceTransportState;
}
declare var RTCIceTransport: {
prototype: RTCIceTransport;
new(): RTCIceTransport;
};
interface RTCPeerConnectionEventMap {
"connectionstatechange": Event;
"datachannel": RTCDataChannelEvent;
"icecandidate": RTCPeerConnectionIceEvent;
"icecandidateerror": Event;
"iceconnectionstatechange": Event;
"icegatheringstatechange": Event;
"negotiationneeded": Event;
"signalingstatechange": Event;
"track": RTCTrackEvent;
}
/** A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it's no longer needed. */
interface RTCPeerConnection extends EventTarget {
readonly canTrickleIceCandidates: boolean | null;
readonly connectionState: RTCPeerConnectionState;
readonly currentLocalDescription: RTCSessionDescription | null;
readonly currentRemoteDescription: RTCSessionDescription | null;
readonly iceConnectionState: RTCIceConnectionState;
readonly iceGatheringState: RTCIceGatheringState;
readonly localDescription: RTCSessionDescription | null;
onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;
onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;
onicecandidateerror: ((this: RTCPeerConnection, ev: Event) => any) | null;
oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
readonly pendingLocalDescription: RTCSessionDescription | null;
readonly pendingRemoteDescription: RTCSessionDescription | null;
readonly remoteDescription: RTCSessionDescription | null;
readonly signalingState: RTCSignalingState;
addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
/** @deprecated */
addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
close(): void;
createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
/** @deprecated */
createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
/** @deprecated */
createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;
getConfiguration(): RTCConfiguration;
getReceivers(): RTCRtpReceiver[];
getSenders(): RTCRtpSender[];
getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
getTransceivers(): RTCRtpTransceiver[];
removeTrack(sender: RTCRtpSender): void;
restartIce(): void;
setConfiguration(configuration?: RTCConfiguration): void;
setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;
/** @deprecated */
setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
/** @deprecated */
setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCPeerConnection: {
prototype: RTCPeerConnection;
new(configuration?: RTCConfiguration): RTCPeerConnection;
generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
};
interface RTCPeerConnectionIceErrorEvent extends Event {
readonly address: string | null;
readonly errorCode: number;
readonly errorText: string;
readonly port: number | null;
readonly url: string;
}
declare var RTCPeerConnectionIceErrorEvent: {
prototype: RTCPeerConnectionIceErrorEvent;
new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;
};
/** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */
interface RTCPeerConnectionIceEvent extends Event {
readonly candidate: RTCIceCandidate | null;
}
declare var RTCPeerConnectionIceEvent: {
prototype: RTCPeerConnectionIceEvent;
new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;
};
/** This WebRTC API interface manages the reception and decoding of data for a\xA0MediaStreamTrack on an\xA0RTCPeerConnection. */
interface RTCRtpReceiver {
readonly track: MediaStreamTrack;
readonly transport: RTCDtlsTransport | null;
getContributingSources(): RTCRtpContributingSource[];
getParameters(): RTCRtpReceiveParameters;
getStats(): Promise<RTCStatsReport>;
getSynchronizationSources(): RTCRtpSynchronizationSource[];
}
declare var RTCRtpReceiver: {
prototype: RTCRtpReceiver;
new(): RTCRtpReceiver;
getCapabilities(kind: string): RTCRtpCapabilities | null;
};
/** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */
interface RTCRtpSender {
readonly dtmf: RTCDTMFSender | null;
readonly track: MediaStreamTrack | null;
readonly transport: RTCDtlsTransport | null;
getParameters(): RTCRtpSendParameters;
getStats(): Promise<RTCStatsReport>;
replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;
setParameters(parameters: RTCRtpSendParameters): Promise<void>;
setStreams(...streams: MediaStream[]): void;
}
declare var RTCRtpSender: {
prototype: RTCRtpSender;
new(): RTCRtpSender;
getCapabilities(kind: string): RTCRtpCapabilities | null;
};
interface RTCRtpTransceiver {
readonly currentDirection: RTCRtpTransceiverDirection | null;
direction: RTCRtpTransceiverDirection;
readonly mid: string | null;
readonly receiver: RTCRtpReceiver;
readonly sender: RTCRtpSender;
stop(): void;
}
declare var RTCRtpTransceiver: {
prototype: RTCRtpTransceiver;
new(): RTCRtpTransceiver;
};
/** One end of a connection\u2014or potential connection\u2014and how it's configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session. */
interface RTCSessionDescription {
readonly sdp: string;
readonly type: RTCSdpType;
toJSON(): any;
}
declare var RTCSessionDescription: {
prototype: RTCSessionDescription;
new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
};
interface RTCStatsReport {
forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;
}
declare var RTCStatsReport: {
prototype: RTCStatsReport;
new(): RTCStatsReport;
};
interface RTCTrackEvent extends Event {
readonly receiver: RTCRtpReceiver;
readonly streams: ReadonlyArray<MediaStream>;
readonly track: MediaStreamTrack;
readonly transceiver: RTCRtpTransceiver;
}
declare var RTCTrackEvent: {
prototype: RTCTrackEvent;
new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;
};
interface RadioNodeList extends NodeList {
value: string;
}
declare var RadioNodeList: {
prototype: RadioNodeList;
new(): RadioNodeList;
};
/** A fragment of a document that can contain nodes and parts of text nodes. */
interface Range extends AbstractRange {
/**
* Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node.
*/
readonly commonAncestorContainer: Node;
cloneContents(): DocumentFragment;
cloneRange(): Range;
collapse(toStart?: boolean): void;
compareBoundaryPoints(how: number, sourceRange: Range): number;
/**
* Returns \u22121 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range.
*/
comparePoint(node: Node, offset: number): number;
createContextualFragment(fragment: string): DocumentFragment;
deleteContents(): void;
detach(): void;
extractContents(): DocumentFragment;
getBoundingClientRect(): DOMRect;
getClientRects(): DOMRectList;
insertNode(node: Node): void;
/**
* Returns whether range intersects node.
*/
intersectsNode(node: Node): boolean;
isPointInRange(node: Node, offset: number): boolean;
selectNode(node: Node): void;
selectNodeContents(node: Node): void;
setEnd(node: Node, offset: number): void;
setEndAfter(node: Node): void;
setEndBefore(node: Node): void;
setStart(node: Node, offset: number): void;
setStartAfter(node: Node): void;
setStartBefore(node: Node): void;
surroundContents(newParent: Node): void;
toString(): string;
readonly END_TO_END: number;
readonly END_TO_START: number;
readonly START_TO_END: number;
readonly START_TO_START: number;
}
declare var Range: {
prototype: Range;
new(): Range;
readonly END_TO_END: number;
readonly END_TO_START: number;
readonly START_TO_END: number;
readonly START_TO_START: number;
toString(): string;
};
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
interface ReadableStream<R = any> {
readonly locked: boolean;
cancel(reason?: any): Promise<void>;
getReader(): ReadableStreamDefaultReader<R>;
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
tee(): [ReadableStream<R>, ReadableStream<R>];
forEach(callbackfn: (value: any, key: number, parent: ReadableStream<R>) => void, thisArg?: any): void;
}
declare var ReadableStream: {
prototype: ReadableStream;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};
interface ReadableStreamDefaultController<R = any> {
readonly desiredSize: number | null;
close(): void;
enqueue(chunk?: R): void;
error(e?: any): void;
}
declare var ReadableStreamDefaultController: {
prototype: ReadableStreamDefaultController;
new(): ReadableStreamDefaultController;
};
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
read(): Promise<ReadableStreamDefaultReadResult<R>>;
releaseLock(): void;
}
declare var ReadableStreamDefaultReader: {
prototype: ReadableStreamDefaultReader;
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};
interface ReadableStreamGenericReader {
readonly closed: Promise<undefined>;
cancel(reason?: any): Promise<void>;
}
interface RemotePlaybackEventMap {
"connect": Event;
"connecting": Event;
"disconnect": Event;
}
interface RemotePlayback extends EventTarget {
onconnect: ((this: RemotePlayback, ev: Event) => any) | null;
onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;
ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;
readonly state: RemotePlaybackState;
cancelWatchAvailability(id?: number): Promise<void>;
prompt(): Promise<void>;
watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;
addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RemotePlayback: {
prototype: RemotePlayback;
new(): RemotePlayback;
};
/** This Fetch API interface represents a resource request. */
interface Request extends Body {
/**
* Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
*/
readonly cache: RequestCache;
/**
* Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.
*/
readonly credentials: RequestCredentials;
/**
* Returns the kind of resource requested by request, e.g., "document" or "script".
*/
readonly destination: RequestDestination;
/**
* Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
*/
readonly headers: Headers;
/**
* Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
*/
readonly integrity: string;
/**
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
*/
readonly keepalive: boolean;
/**
* Returns request's HTTP method, which is "GET" by default.
*/
readonly method: string;
/**
* Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.
*/
readonly mode: RequestMode;
/**
* Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
*/
readonly redirect: RequestRedirect;
/**
* Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made.
*/
readonly referrer: string;
/**
* Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
*/
readonly referrerPolicy: ReferrerPolicy;
/**
* Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
*/
readonly signal: AbortSignal;
/**
* Returns the URL of request as a string.
*/
readonly url: string;
clone(): Request;
}
declare var Request: {
prototype: Request;
new(input: RequestInfo, init?: RequestInit): Request;
};
interface ResizeObserver {
disconnect(): void;
observe(target: Element, options?: ResizeObserverOptions): void;
unobserve(target: Element): void;
}
declare var ResizeObserver: {
prototype: ResizeObserver;
new(callback: ResizeObserverCallback): ResizeObserver;
};
interface ResizeObserverEntry {
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
readonly contentRect: DOMRectReadOnly;
readonly target: Element;
}
declare var ResizeObserverEntry: {
prototype: ResizeObserverEntry;
new(): ResizeObserverEntry;
};
interface ResizeObserverSize {
readonly blockSize: number;
readonly inlineSize: number;
}
declare var ResizeObserverSize: {
prototype: ResizeObserverSize;
new(): ResizeObserverSize;
};
/** This Fetch API interface represents the response to a request. */
interface Response extends Body {
readonly headers: Headers;
readonly ok: boolean;
readonly redirected: boolean;
readonly status: number;
readonly statusText: string;
readonly type: ResponseType;
readonly url: string;
clone(): Response;
}
declare var Response: {
prototype: Response;
new(body?: BodyInit | null, init?: ResponseInit): Response;
error(): Response;
redirect(url: string | URL, status?: number): Response;
};
/** Provides access to the properties of <a> element, as well as methods to manipulate them. */
interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
rel: string;
readonly relList: DOMTokenList;
readonly target: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAElement: {
prototype: SVGAElement;
new(): SVGAElement;
};
/** Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. */
interface SVGAngle {
readonly unitType: number;
value: number;
valueAsString: string;
valueInSpecifiedUnits: number;
convertToSpecifiedUnits(unitType: number): void;
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
readonly SVG_ANGLETYPE_DEG: number;
readonly SVG_ANGLETYPE_GRAD: number;
readonly SVG_ANGLETYPE_RAD: number;
readonly SVG_ANGLETYPE_UNKNOWN: number;
readonly SVG_ANGLETYPE_UNSPECIFIED: number;
}
declare var SVGAngle: {
prototype: SVGAngle;
new(): SVGAngle;
readonly SVG_ANGLETYPE_DEG: number;
readonly SVG_ANGLETYPE_GRAD: number;
readonly SVG_ANGLETYPE_RAD: number;
readonly SVG_ANGLETYPE_UNKNOWN: number;
readonly SVG_ANGLETYPE_UNSPECIFIED: number;
};
interface SVGAnimateElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateElement: {
prototype: SVGAnimateElement;
new(): SVGAnimateElement;
};
interface SVGAnimateMotionElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateMotionElement: {
prototype: SVGAnimateMotionElement;
new(): SVGAnimateMotionElement;
};
interface SVGAnimateTransformElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateTransformElement: {
prototype: SVGAnimateTransformElement;
new(): SVGAnimateTransformElement;
};
/** Used for attributes of basic type <angle> which can be animated. */
interface SVGAnimatedAngle {
readonly animVal: SVGAngle;
readonly baseVal: SVGAngle;
}
declare var SVGAnimatedAngle: {
prototype: SVGAnimatedAngle;
new(): SVGAnimatedAngle;
};
/** Used for attributes of type boolean which can be animated. */
interface SVGAnimatedBoolean {
readonly animVal: boolean;
baseVal: boolean;
}
declare var SVGAnimatedBoolean: {
prototype: SVGAnimatedBoolean;
new(): SVGAnimatedBoolean;
};
/** Used for attributes whose value must be a constant from a particular enumeration and which can be animated. */
interface SVGAnimatedEnumeration {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedEnumeration: {
prototype: SVGAnimatedEnumeration;
new(): SVGAnimatedEnumeration;
};
/** Used for attributes of basic type <integer> which can be animated. */
interface SVGAnimatedInteger {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedInteger: {
prototype: SVGAnimatedInteger;
new(): SVGAnimatedInteger;
};
/** Used for attributes of basic type <length> which can be animated. */
interface SVGAnimatedLength {
readonly animVal: SVGLength;
readonly baseVal: SVGLength;
}
declare var SVGAnimatedLength: {
prototype: SVGAnimatedLength;
new(): SVGAnimatedLength;
};
/** Used for attributes of type SVGLengthList which can be animated. */
interface SVGAnimatedLengthList {
readonly animVal: SVGLengthList;
readonly baseVal: SVGLengthList;
}
declare var SVGAnimatedLengthList: {
prototype: SVGAnimatedLengthList;
new(): SVGAnimatedLengthList;
};
/** Used for attributes of basic type <Number> which can be animated. */
interface SVGAnimatedNumber {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedNumber: {
prototype: SVGAnimatedNumber;
new(): SVGAnimatedNumber;
};
/** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */
interface SVGAnimatedNumberList {
readonly animVal: SVGNumberList;
readonly baseVal: SVGNumberList;
}
declare var SVGAnimatedNumberList: {
prototype: SVGAnimatedNumberList;
new(): SVGAnimatedNumberList;
};
interface SVGAnimatedPoints {
readonly animatedPoints: SVGPointList;
readonly points: SVGPointList;
}
/** Used for attributes of type SVGPreserveAspectRatio which can be animated. */
interface SVGAnimatedPreserveAspectRatio {
readonly animVal: SVGPreserveAspectRatio;
readonly baseVal: SVGPreserveAspectRatio;
}
declare var SVGAnimatedPreserveAspectRatio: {
prototype: SVGAnimatedPreserveAspectRatio;
new(): SVGAnimatedPreserveAspectRatio;
};
/** Used for attributes of basic SVGRect which can be animated. */
interface SVGAnimatedRect {
readonly animVal: DOMRectReadOnly;
readonly baseVal: DOMRect;
}
declare var SVGAnimatedRect: {
prototype: SVGAnimatedRect;
new(): SVGAnimatedRect;
};
/** The SVGAnimatedString\xA0interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared\xA0inside this. */
interface SVGAnimatedString {
readonly animVal: string;
baseVal: string;
}
declare var SVGAnimatedString: {
prototype: SVGAnimatedString;
new(): SVGAnimatedString;
};
/** Used for attributes which take a list of numbers and which can be animated. */
interface SVGAnimatedTransformList {
readonly animVal: SVGTransformList;
readonly baseVal: SVGTransformList;
}
declare var SVGAnimatedTransformList: {
prototype: SVGAnimatedTransformList;
new(): SVGAnimatedTransformList;
};
interface SVGAnimationElement extends SVGElement, SVGTests {
readonly targetElement: SVGElement | null;
beginElement(): void;
beginElementAt(offset: number): void;
endElement(): void;
endElementAt(offset: number): void;
getCurrentTime(): number;
getSimpleDuration(): number;
getStartTime(): number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimationElement: {
prototype: SVGAnimationElement;
new(): SVGAnimationElement;
};
/** An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle. */
interface SVGCircleElement extends SVGGeometryElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly r: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGCircleElement: {
prototype: SVGCircleElement;
new(): SVGCircleElement;
};
/** Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. */
interface SVGClipPathElement extends SVGElement {
readonly clipPathUnits: SVGAnimatedEnumeration;
readonly transform: SVGAnimatedTransformList;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGClipPathElement: {
prototype: SVGClipPathElement;
new(): SVGClipPathElement;
};
/** A base interface used by the component transfer function interfaces. */
interface SVGComponentTransferFunctionElement extends SVGElement {
readonly amplitude: SVGAnimatedNumber;
readonly exponent: SVGAnimatedNumber;
readonly intercept: SVGAnimatedNumber;
readonly offset: SVGAnimatedNumber;
readonly slope: SVGAnimatedNumber;
readonly tableValues: SVGAnimatedNumberList;
readonly type: SVGAnimatedEnumeration;
readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGComponentTransferFunctionElement: {
prototype: SVGComponentTransferFunctionElement;
new(): SVGComponentTransferFunctionElement;
readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
};
/** Corresponds to the <defs> element. */
interface SVGDefsElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGDefsElement: {
prototype: SVGDefsElement;
new(): SVGDefsElement;
};
/** Corresponds to the <desc> element. */
interface SVGDescElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGDescElement: {
prototype: SVGDescElement;
new(): SVGDescElement;
};
interface SVGElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
}
/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */
interface SVGElement extends Element, DocumentAndElementEventHandlers, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, GlobalEventHandlers, HTMLOrSVGElement {
/** @deprecated */
readonly className: any;
readonly ownerSVGElement: SVGSVGElement | null;
readonly viewportElement: SVGElement | null;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGElement: {
prototype: SVGElement;
new(): SVGElement;
};
/** Provides access to the properties of <ellipse> elements. */
interface SVGEllipseElement extends SVGGeometryElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly rx: SVGAnimatedLength;
readonly ry: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGEllipseElement: {
prototype: SVGEllipseElement;
new(): SVGEllipseElement;
};
/** Corresponds to the <feBlend> element. */
interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly mode: SVGAnimatedEnumeration;
readonly SVG_FEBLEND_MODE_COLOR: number;
readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
readonly SVG_FEBLEND_MODE_DARKEN: number;
readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
readonly SVG_FEBLEND_MODE_EXCLUSION: number;
readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
readonly SVG_FEBLEND_MODE_HUE: number;
readonly SVG_FEBLEND_MODE_LIGHTEN: number;
readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
readonly SVG_FEBLEND_MODE_MULTIPLY: number;
readonly SVG_FEBLEND_MODE_NORMAL: number;
readonly SVG_FEBLEND_MODE_OVERLAY: number;
readonly SVG_FEBLEND_MODE_SATURATION: number;
readonly SVG_FEBLEND_MODE_SCREEN: number;
readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
readonly SVG_FEBLEND_MODE_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEBlendElement: {
prototype: SVGFEBlendElement;
new(): SVGFEBlendElement;
readonly SVG_FEBLEND_MODE_COLOR: number;
readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
readonly SVG_FEBLEND_MODE_DARKEN: number;
readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
readonly SVG_FEBLEND_MODE_EXCLUSION: number;
readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
readonly SVG_FEBLEND_MODE_HUE: number;
readonly SVG_FEBLEND_MODE_LIGHTEN: number;
readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
readonly SVG_FEBLEND_MODE_MULTIPLY: number;
readonly SVG_FEBLEND_MODE_NORMAL: number;
readonly SVG_FEBLEND_MODE_OVERLAY: number;
readonly SVG_FEBLEND_MODE_SATURATION: number;
readonly SVG_FEBLEND_MODE_SCREEN: number;
readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
readonly SVG_FEBLEND_MODE_UNKNOWN: number;
};
/** Corresponds to the <feColorMatrix> element. */
interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly type: SVGAnimatedEnumeration;
readonly values: SVGAnimatedNumberList;
readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEColorMatrixElement: {
prototype: SVGFEColorMatrixElement;
new(): SVGFEColorMatrixElement;
readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
};
/** Corresponds to the <feComponentTransfer> element. */
interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEComponentTransferElement: {
prototype: SVGFEComponentTransferElement;
new(): SVGFEComponentTransferElement;
};
/** Corresponds to the <feComposite> element. */
interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly k1: SVGAnimatedNumber;
readonly k2: SVGAnimatedNumber;
readonly k3: SVGAnimatedNumber;
readonly k4: SVGAnimatedNumber;
readonly operator: SVGAnimatedEnumeration;
readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFECompositeElement: {
prototype: SVGFECompositeElement;
new(): SVGFECompositeElement;
readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
};
/** Corresponds to the <feConvolveMatrix> element. */
interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly bias: SVGAnimatedNumber;
readonly divisor: SVGAnimatedNumber;
readonly edgeMode: SVGAnimatedEnumeration;
readonly in1: SVGAnimatedString;
readonly kernelMatrix: SVGAnimatedNumberList;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly orderX: SVGAnimatedInteger;
readonly orderY: SVGAnimatedInteger;
readonly preserveAlpha: SVGAnimatedBoolean;
readonly targetX: SVGAnimatedInteger;
readonly targetY: SVGAnimatedInteger;
readonly SVG_EDGEMODE_DUPLICATE: number;
readonly SVG_EDGEMODE_NONE: number;
readonly SVG_EDGEMODE_UNKNOWN: number;
readonly SVG_EDGEMODE_WRAP: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEConvolveMatrixElement: {
prototype: SVGFEConvolveMatrixElement;
new(): SVGFEConvolveMatrixElement;
readonly SVG_EDGEMODE_DUPLICATE: number;
readonly SVG_EDGEMODE_NONE: number;
readonly SVG_EDGEMODE_UNKNOWN: number;
readonly SVG_EDGEMODE_WRAP: number;
};
/** Corresponds to the <feDiffuseLighting> element. */
interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly diffuseConstant: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly surfaceScale: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDiffuseLightingElement: {
prototype: SVGFEDiffuseLightingElement;
new(): SVGFEDiffuseLightingElement;
};
/** Corresponds to the <feDisplacementMap> element. */
interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly scale: SVGAnimatedNumber;
readonly xChannelSelector: SVGAnimatedEnumeration;
readonly yChannelSelector: SVGAnimatedEnumeration;
readonly SVG_CHANNEL_A: number;
readonly SVG_CHANNEL_B: number;
readonly SVG_CHANNEL_G: number;
readonly SVG_CHANNEL_R: number;
readonly SVG_CHANNEL_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDisplacementMapElement: {
prototype: SVGFEDisplacementMapElement;
new(): SVGFEDisplacementMapElement;
readonly SVG_CHANNEL_A: number;
readonly SVG_CHANNEL_B: number;
readonly SVG_CHANNEL_G: number;
readonly SVG_CHANNEL_R: number;
readonly SVG_CHANNEL_UNKNOWN: number;
};
/** Corresponds to the <feDistantLight> element. */
interface SVGFEDistantLightElement extends SVGElement {
readonly azimuth: SVGAnimatedNumber;
readonly elevation: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDistantLightElement: {
prototype: SVGFEDistantLightElement;
new(): SVGFEDistantLightElement;
};
interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly dx: SVGAnimatedNumber;
readonly dy: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
readonly stdDeviationX: SVGAnimatedNumber;
readonly stdDeviationY: SVGAnimatedNumber;
setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDropShadowElement: {
prototype: SVGFEDropShadowElement;
new(): SVGFEDropShadowElement;
};
/** Corresponds to the <feFlood> element. */
interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFloodElement: {
prototype: SVGFEFloodElement;
new(): SVGFEFloodElement;
};
/** Corresponds to the <feFuncA> element. */
interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncAElement: {
prototype: SVGFEFuncAElement;
new(): SVGFEFuncAElement;
};
/** Corresponds to the <feFuncB> element. */
interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncBElement: {
prototype: SVGFEFuncBElement;
new(): SVGFEFuncBElement;
};
/** Corresponds to the <feFuncG> element. */
interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncGElement: {
prototype: SVGFEFuncGElement;
new(): SVGFEFuncGElement;
};
/** Corresponds to the <feFuncR> element. */
interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncRElement: {
prototype: SVGFEFuncRElement;
new(): SVGFEFuncRElement;
};
/** Corresponds to the <feGaussianBlur> element. */
interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly stdDeviationX: SVGAnimatedNumber;
readonly stdDeviationY: SVGAnimatedNumber;
setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEGaussianBlurElement: {
prototype: SVGFEGaussianBlurElement;
new(): SVGFEGaussianBlurElement;
};
/** Corresponds to the <feImage> element. */
interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEImageElement: {
prototype: SVGFEImageElement;
new(): SVGFEImageElement;
};
/** Corresponds to the <feMerge> element. */
interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMergeElement: {
prototype: SVGFEMergeElement;
new(): SVGFEMergeElement;
};
/** Corresponds to the <feMergeNode> element. */
interface SVGFEMergeNodeElement extends SVGElement {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMergeNodeElement: {
prototype: SVGFEMergeNodeElement;
new(): SVGFEMergeNodeElement;
};
/** Corresponds to the <feMorphology> element. */
interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly operator: SVGAnimatedEnumeration;
readonly radiusX: SVGAnimatedNumber;
readonly radiusY: SVGAnimatedNumber;
readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMorphologyElement: {
prototype: SVGFEMorphologyElement;
new(): SVGFEMorphologyElement;
readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
};
/** Corresponds to the <feOffset> element. */
interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly dx: SVGAnimatedNumber;
readonly dy: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEOffsetElement: {
prototype: SVGFEOffsetElement;
new(): SVGFEOffsetElement;
};
/** Corresponds to the <fePointLight> element. */
interface SVGFEPointLightElement extends SVGElement {
readonly x: SVGAnimatedNumber;
readonly y: SVGAnimatedNumber;
readonly z: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEPointLightElement: {
prototype: SVGFEPointLightElement;
new(): SVGFEPointLightElement;
};
/** Corresponds to the <feSpecularLighting> element. */
interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly specularConstant: SVGAnimatedNumber;
readonly specularExponent: SVGAnimatedNumber;
readonly surfaceScale: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFESpecularLightingElement: {
prototype: SVGFESpecularLightingElement;
new(): SVGFESpecularLightingElement;
};
/** Corresponds to the <feSpotLight> element. */
interface SVGFESpotLightElement extends SVGElement {
readonly limitingConeAngle: SVGAnimatedNumber;
readonly pointsAtX: SVGAnimatedNumber;
readonly pointsAtY: SVGAnimatedNumber;
readonly pointsAtZ: SVGAnimatedNumber;
readonly specularExponent: SVGAnimatedNumber;
readonly x: SVGAnimatedNumber;
readonly y: SVGAnimatedNumber;
readonly z: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFESpotLightElement: {
prototype: SVGFESpotLightElement;
new(): SVGFESpotLightElement;
};
/** Corresponds to the <feTile> element. */
interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFETileElement: {
prototype: SVGFETileElement;
new(): SVGFETileElement;
};
/** Corresponds to the <feTurbulence> element. */
interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly baseFrequencyX: SVGAnimatedNumber;
readonly baseFrequencyY: SVGAnimatedNumber;
readonly numOctaves: SVGAnimatedInteger;
readonly seed: SVGAnimatedNumber;
readonly stitchTiles: SVGAnimatedEnumeration;
readonly type: SVGAnimatedEnumeration;
readonly SVG_STITCHTYPE_NOSTITCH: number;
readonly SVG_STITCHTYPE_STITCH: number;
readonly SVG_STITCHTYPE_UNKNOWN: number;
readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFETurbulenceElement: {
prototype: SVGFETurbulenceElement;
new(): SVGFETurbulenceElement;
readonly SVG_STITCHTYPE_NOSTITCH: number;
readonly SVG_STITCHTYPE_STITCH: number;
readonly SVG_STITCHTYPE_UNKNOWN: number;
readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
};
/** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */
interface SVGFilterElement extends SVGElement, SVGURIReference {
readonly filterUnits: SVGAnimatedEnumeration;
readonly height: SVGAnimatedLength;
readonly primitiveUnits: SVGAnimatedEnumeration;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFilterElement: {
prototype: SVGFilterElement;
new(): SVGFilterElement;
};
interface SVGFilterPrimitiveStandardAttributes {
readonly height: SVGAnimatedLength;
readonly result: SVGAnimatedString;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
}
interface SVGFitToViewBox {
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
readonly viewBox: SVGAnimatedRect;
}
/** Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. */
interface SVGForeignObjectElement extends SVGGraphicsElement {
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGForeignObjectElement: {
prototype: SVGForeignObjectElement;
new(): SVGForeignObjectElement;
};
/** Corresponds to the <g> element. */
interface SVGGElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGElement: {
prototype: SVGGElement;
new(): SVGGElement;
};
interface SVGGeometryElement extends SVGGraphicsElement {
readonly pathLength: SVGAnimatedNumber;
getPointAtLength(distance: number): DOMPoint;
getTotalLength(): number;
isPointInFill(point?: DOMPointInit): boolean;
isPointInStroke(point?: DOMPointInit): boolean;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGeometryElement: {
prototype: SVGGeometryElement;
new(): SVGGeometryElement;
};
/** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */
interface SVGGradientElement extends SVGElement, SVGURIReference {
readonly gradientTransform: SVGAnimatedTransformList;
readonly gradientUnits: SVGAnimatedEnumeration;
readonly spreadMethod: SVGAnimatedEnumeration;
readonly SVG_SPREADMETHOD_PAD: number;
readonly SVG_SPREADMETHOD_REFLECT: number;
readonly SVG_SPREADMETHOD_REPEAT: number;
readonly SVG_SPREADMETHOD_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGradientElement: {
prototype: SVGGradientElement;
new(): SVGGradientElement;
readonly SVG_SPREADMETHOD_PAD: number;
readonly SVG_SPREADMETHOD_REFLECT: number;
readonly SVG_SPREADMETHOD_REPEAT: number;
readonly SVG_SPREADMETHOD_UNKNOWN: number;
};
/** SVG elements whose primary purpose is to directly render graphics into a group. */
interface SVGGraphicsElement extends SVGElement, SVGTests {
readonly transform: SVGAnimatedTransformList;
getBBox(options?: SVGBoundingBoxOptions): DOMRect;
getCTM(): DOMMatrix | null;
getScreenCTM(): DOMMatrix | null;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGraphicsElement: {
prototype: SVGGraphicsElement;
new(): SVGGraphicsElement;
};
/** Corresponds to the <image> element. */
interface SVGImageElement extends SVGGraphicsElement, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGImageElement: {
prototype: SVGImageElement;
new(): SVGImageElement;
};
/** Correspond to the <length> basic data type. */
interface SVGLength {
readonly unitType: number;
value: number;
valueAsString: string;
valueInSpecifiedUnits: number;
convertToSpecifiedUnits(unitType: number): void;
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
readonly SVG_LENGTHTYPE_CM: number;
readonly SVG_LENGTHTYPE_EMS: number;
readonly SVG_LENGTHTYPE_EXS: number;
readonly SVG_LENGTHTYPE_IN: number;
readonly SVG_LENGTHTYPE_MM: number;
readonly SVG_LENGTHTYPE_NUMBER: number;
readonly SVG_LENGTHTYPE_PC: number;
readonly SVG_LENGTHTYPE_PERCENTAGE: number;
readonly SVG_LENGTHTYPE_PT: number;
readonly SVG_LENGTHTYPE_PX: number;
readonly SVG_LENGTHTYPE_UNKNOWN: number;
}
declare var SVGLength: {
prototype: SVGLength;
new(): SVGLength;
readonly SVG_LENGTHTYPE_CM: number;
readonly SVG_LENGTHTYPE_EMS: number;
readonly SVG_LENGTHTYPE_EXS: number;
readonly SVG_LENGTHTYPE_IN: number;
readonly SVG_LENGTHTYPE_MM: number;
readonly SVG_LENGTHTYPE_NUMBER: number;
readonly SVG_LENGTHTYPE_PC: number;
readonly SVG_LENGTHTYPE_PERCENTAGE: number;
readonly SVG_LENGTHTYPE_PT: number;
readonly SVG_LENGTHTYPE_PX: number;
readonly SVG_LENGTHTYPE_UNKNOWN: number;
};
/** The SVGLengthList defines a list of SVGLength objects. */
interface SVGLengthList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGLength): SVGLength;
clear(): void;
getItem(index: number): SVGLength;
initialize(newItem: SVGLength): SVGLength;
insertItemBefore(newItem: SVGLength, index: number): SVGLength;
removeItem(index: number): SVGLength;
replaceItem(newItem: SVGLength, index: number): SVGLength;
[index: number]: SVGLength;
}
declare var SVGLengthList: {
prototype: SVGLengthList;
new(): SVGLengthList;
};
/** Provides access to the properties of <line> elements, as well as methods to manipulate them. */
interface SVGLineElement extends SVGGeometryElement {
readonly x1: SVGAnimatedLength;
readonly x2: SVGAnimatedLength;
readonly y1: SVGAnimatedLength;
readonly y2: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGLineElement: {
prototype: SVGLineElement;
new(): SVGLineElement;
};
/** Corresponds to the <linearGradient> element. */
interface SVGLinearGradientElement extends SVGGradientElement {
readonly x1: SVGAnimatedLength;
readonly x2: SVGAnimatedLength;
readonly y1: SVGAnimatedLength;
readonly y2: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGLinearGradientElement: {
prototype: SVGLinearGradientElement;
new(): SVGLinearGradientElement;
};
interface SVGMPathElement extends SVGElement, SVGURIReference {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMPathElement: {
prototype: SVGMPathElement;
new(): SVGMPathElement;
};
interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
readonly markerHeight: SVGAnimatedLength;
readonly markerUnits: SVGAnimatedEnumeration;
readonly markerWidth: SVGAnimatedLength;
readonly orientAngle: SVGAnimatedAngle;
readonly orientType: SVGAnimatedEnumeration;
readonly refX: SVGAnimatedLength;
readonly refY: SVGAnimatedLength;
setOrientToAngle(angle: SVGAngle): void;
setOrientToAuto(): void;
readonly SVG_MARKERUNITS_STROKEWIDTH: number;
readonly SVG_MARKERUNITS_UNKNOWN: number;
readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
readonly SVG_MARKER_ORIENT_ANGLE: number;
readonly SVG_MARKER_ORIENT_AUTO: number;
readonly SVG_MARKER_ORIENT_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMarkerElement: {
prototype: SVGMarkerElement;
new(): SVGMarkerElement;
readonly SVG_MARKERUNITS_STROKEWIDTH: number;
readonly SVG_MARKERUNITS_UNKNOWN: number;
readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
readonly SVG_MARKER_ORIENT_ANGLE: number;
readonly SVG_MARKER_ORIENT_AUTO: number;
readonly SVG_MARKER_ORIENT_UNKNOWN: number;
};
/** Provides access to the properties of <mask> elements, as well as methods to manipulate them. */
interface SVGMaskElement extends SVGElement {
readonly height: SVGAnimatedLength;
readonly maskContentUnits: SVGAnimatedEnumeration;
readonly maskUnits: SVGAnimatedEnumeration;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMaskElement: {
prototype: SVGMaskElement;
new(): SVGMaskElement;
};
/** Corresponds to the <metadata> element. */
interface SVGMetadataElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMetadataElement: {
prototype: SVGMetadataElement;
new(): SVGMetadataElement;
};
/** Corresponds to the <number> basic data type. */
interface SVGNumber {
value: number;
}
declare var SVGNumber: {
prototype: SVGNumber;
new(): SVGNumber;
};
/** The SVGNumberList defines a list of SVGNumber objects. */
interface SVGNumberList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGNumber): SVGNumber;
clear(): void;
getItem(index: number): SVGNumber;
initialize(newItem: SVGNumber): SVGNumber;
insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
removeItem(index: number): SVGNumber;
replaceItem(newItem: SVGNumber, index: number): SVGNumber;
[index: number]: SVGNumber;
}
declare var SVGNumberList: {
prototype: SVGNumberList;
new(): SVGNumberList;
};
/** Corresponds to the <path> element. */
interface SVGPathElement extends SVGGeometryElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPathElement: {
prototype: SVGPathElement;
new(): SVGPathElement;
};
/** Corresponds to the <pattern> element. */
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly patternContentUnits: SVGAnimatedEnumeration;
readonly patternTransform: SVGAnimatedTransformList;
readonly patternUnits: SVGAnimatedEnumeration;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPatternElement: {
prototype: SVGPatternElement;
new(): SVGPatternElement;
};
interface SVGPointList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: DOMPoint): DOMPoint;
clear(): void;
getItem(index: number): DOMPoint;
initialize(newItem: DOMPoint): DOMPoint;
insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;
removeItem(index: number): DOMPoint;
replaceItem(newItem: DOMPoint, index: number): DOMPoint;
[index: number]: DOMPoint;
}
declare var SVGPointList: {
prototype: SVGPointList;
new(): SVGPointList;
};
/** Provides access to the properties of <polygon> elements, as well as methods to manipulate them. */
interface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPolygonElement: {
prototype: SVGPolygonElement;
new(): SVGPolygonElement;
};
/** Provides access to the properties of <polyline> elements, as well as methods to manipulate them. */
interface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPolylineElement: {
prototype: SVGPolylineElement;
new(): SVGPolylineElement;
};
/** Corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements. */
interface SVGPreserveAspectRatio {
align: number;
meetOrSlice: number;
readonly SVG_MEETORSLICE_MEET: number;
readonly SVG_MEETORSLICE_SLICE: number;
readonly SVG_MEETORSLICE_UNKNOWN: number;
readonly SVG_PRESERVEASPECTRATIO_NONE: number;
readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
}
declare var SVGPreserveAspectRatio: {
prototype: SVGPreserveAspectRatio;
new(): SVGPreserveAspectRatio;
readonly SVG_MEETORSLICE_MEET: number;
readonly SVG_MEETORSLICE_SLICE: number;
readonly SVG_MEETORSLICE_UNKNOWN: number;
readonly SVG_PRESERVEASPECTRATIO_NONE: number;
readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
};
/** Corresponds to the <RadialGradient> element. */
interface SVGRadialGradientElement extends SVGGradientElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly fr: SVGAnimatedLength;
readonly fx: SVGAnimatedLength;
readonly fy: SVGAnimatedLength;
readonly r: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGRadialGradientElement: {
prototype: SVGRadialGradientElement;
new(): SVGRadialGradientElement;
};
/** Provides access to the properties of <rect> elements, as well as methods to manipulate them. */
interface SVGRectElement extends SVGGeometryElement {
readonly height: SVGAnimatedLength;
readonly rx: SVGAnimatedLength;
readonly ry: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGRectElement: {
prototype: SVGRectElement;
new(): SVGRectElement;
};
interface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {
}
/** Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices. */
interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {
currentScale: number;
readonly currentTranslate: DOMPointReadOnly;
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
animationsPaused(): boolean;
checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;
checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;
createSVGAngle(): SVGAngle;
createSVGLength(): SVGLength;
createSVGMatrix(): DOMMatrix;
createSVGNumber(): SVGNumber;
createSVGPoint(): DOMPoint;
createSVGRect(): DOMRect;
createSVGTransform(): SVGTransform;
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
deselectAll(): void;
/** @deprecated */
forceRedraw(): void;
getCurrentTime(): number;
getElementById(elementId: string): Element;
getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
pauseAnimations(): void;
setCurrentTime(seconds: number): void;
/** @deprecated */
suspendRedraw(maxWaitMilliseconds: number): number;
unpauseAnimations(): void;
/** @deprecated */
unsuspendRedraw(suspendHandleID: number): void;
/** @deprecated */
unsuspendRedrawAll(): void;
addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSVGElement: {
prototype: SVGSVGElement;
new(): SVGSVGElement;
};
/** Corresponds to the SVG <script> element. */
interface SVGScriptElement extends SVGElement, SVGURIReference {
type: string;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGScriptElement: {
prototype: SVGScriptElement;
new(): SVGScriptElement;
};
interface SVGSetElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSetElement: {
prototype: SVGSetElement;
new(): SVGSetElement;
};
/** Corresponds to the <stop> element. */
interface SVGStopElement extends SVGElement {
readonly offset: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGStopElement: {
prototype: SVGStopElement;
new(): SVGStopElement;
};
/** The SVGStringList defines a list of DOMString objects. */
interface SVGStringList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: string): string;
clear(): void;
getItem(index: number): string;
initialize(newItem: string): string;
insertItemBefore(newItem: string, index: number): string;
removeItem(index: number): string;
replaceItem(newItem: string, index: number): string;
[index: number]: string;
}
declare var SVGStringList: {
prototype: SVGStringList;
new(): SVGStringList;
};
/** Corresponds to the SVG <style> element. */
interface SVGStyleElement extends SVGElement, LinkStyle {
disabled: boolean;
media: string;
title: string;
type: string;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGStyleElement: {
prototype: SVGStyleElement;
new(): SVGStyleElement;
};
/** Corresponds to the <switch> element. */
interface SVGSwitchElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSwitchElement: {
prototype: SVGSwitchElement;
new(): SVGSwitchElement;
};
/** Corresponds to the <symbol> element. */
interface SVGSymbolElement extends SVGElement, SVGFitToViewBox {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSymbolElement: {
prototype: SVGSymbolElement;
new(): SVGSymbolElement;
};
/** A <tspan> element. */
interface SVGTSpanElement extends SVGTextPositioningElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTSpanElement: {
prototype: SVGTSpanElement;
new(): SVGTSpanElement;
};
interface SVGTests {
readonly requiredExtensions: SVGStringList;
readonly systemLanguage: SVGStringList;
}
/** Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement. */
interface SVGTextContentElement extends SVGGraphicsElement {
readonly lengthAdjust: SVGAnimatedEnumeration;
readonly textLength: SVGAnimatedLength;
getCharNumAtPosition(point?: DOMPointInit): number;
getComputedTextLength(): number;
getEndPositionOfChar(charnum: number): DOMPoint;
getExtentOfChar(charnum: number): DOMRect;
getNumberOfChars(): number;
getRotationOfChar(charnum: number): number;
getStartPositionOfChar(charnum: number): DOMPoint;
getSubStringLength(charnum: number, nchars: number): number;
/** @deprecated */
selectSubString(charnum: number, nchars: number): void;
readonly LENGTHADJUST_SPACING: number;
readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
readonly LENGTHADJUST_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextContentElement: {
prototype: SVGTextContentElement;
new(): SVGTextContentElement;
readonly LENGTHADJUST_SPACING: number;
readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
readonly LENGTHADJUST_UNKNOWN: number;
};
/** Corresponds to the <text> elements. */
interface SVGTextElement extends SVGTextPositioningElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextElement: {
prototype: SVGTextElement;
new(): SVGTextElement;
};
/** Corresponds to the <textPath> element. */
interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
readonly method: SVGAnimatedEnumeration;
readonly spacing: SVGAnimatedEnumeration;
readonly startOffset: SVGAnimatedLength;
readonly TEXTPATH_METHODTYPE_ALIGN: number;
readonly TEXTPATH_METHODTYPE_STRETCH: number;
readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
readonly TEXTPATH_SPACINGTYPE_AUTO: number;
readonly TEXTPATH_SPACINGTYPE_EXACT: number;
readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextPathElement: {
prototype: SVGTextPathElement;
new(): SVGTextPathElement;
readonly TEXTPATH_METHODTYPE_ALIGN: number;
readonly TEXTPATH_METHODTYPE_STRETCH: number;
readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
readonly TEXTPATH_SPACINGTYPE_AUTO: number;
readonly TEXTPATH_SPACINGTYPE_EXACT: number;
readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
};
/** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */
interface SVGTextPositioningElement extends SVGTextContentElement {
readonly dx: SVGAnimatedLengthList;
readonly dy: SVGAnimatedLengthList;
readonly rotate: SVGAnimatedNumberList;
readonly x: SVGAnimatedLengthList;
readonly y: SVGAnimatedLengthList;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextPositioningElement: {
prototype: SVGTextPositioningElement;
new(): SVGTextPositioningElement;
};
/** Corresponds to the <title> element. */
interface SVGTitleElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTitleElement: {
prototype: SVGTitleElement;
new(): SVGTitleElement;
};
/** SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(\u2026) or matrix(\u2026)) within a transform attribute. */
interface SVGTransform {
readonly angle: number;
readonly matrix: DOMMatrix;
readonly type: number;
setMatrix(matrix?: DOMMatrix2DInit): void;
setRotate(angle: number, cx: number, cy: number): void;
setScale(sx: number, sy: number): void;
setSkewX(angle: number): void;
setSkewY(angle: number): void;
setTranslate(tx: number, ty: number): void;
readonly SVG_TRANSFORM_MATRIX: number;
readonly SVG_TRANSFORM_ROTATE: number;
readonly SVG_TRANSFORM_SCALE: number;
readonly SVG_TRANSFORM_SKEWX: number;
readonly SVG_TRANSFORM_SKEWY: number;
readonly SVG_TRANSFORM_TRANSLATE: number;
readonly SVG_TRANSFORM_UNKNOWN: number;
}
declare var SVGTransform: {
prototype: SVGTransform;
new(): SVGTransform;
readonly SVG_TRANSFORM_MATRIX: number;
readonly SVG_TRANSFORM_ROTATE: number;
readonly SVG_TRANSFORM_SCALE: number;
readonly SVG_TRANSFORM_SKEWX: number;
readonly SVG_TRANSFORM_SKEWY: number;
readonly SVG_TRANSFORM_TRANSLATE: number;
readonly SVG_TRANSFORM_UNKNOWN: number;
};
/** The SVGTransformList defines a list of SVGTransform objects. */
interface SVGTransformList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGTransform): SVGTransform;
clear(): void;
consolidate(): SVGTransform | null;
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
getItem(index: number): SVGTransform;
initialize(newItem: SVGTransform): SVGTransform;
insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
removeItem(index: number): SVGTransform;
replaceItem(newItem: SVGTransform, index: number): SVGTransform;
[index: number]: SVGTransform;
}
declare var SVGTransformList: {
prototype: SVGTransformList;
new(): SVGTransformList;
};
interface SVGURIReference {
readonly href: SVGAnimatedString;
}
/** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */
interface SVGUnitTypes {
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
readonly SVG_UNIT_TYPE_UNKNOWN: number;
readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
}
declare var SVGUnitTypes: {
prototype: SVGUnitTypes;
new(): SVGUnitTypes;
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
readonly SVG_UNIT_TYPE_UNKNOWN: number;
readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
};
/** Corresponds to the <use> element. */
interface SVGUseElement extends SVGGraphicsElement, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGUseElement: {
prototype: SVGUseElement;
new(): SVGUseElement;
};
/** Provides access to the properties of <view> elements, as well as methods to manipulate them. */
interface SVGViewElement extends SVGElement, SVGFitToViewBox {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGViewElement: {
prototype: SVGViewElement;
new(): SVGViewElement;
};
/** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */
interface Screen {
readonly availHeight: number;
readonly availWidth: number;
readonly colorDepth: number;
readonly height: number;
readonly orientation: ScreenOrientation;
readonly pixelDepth: number;
readonly width: number;
}
declare var Screen: {
prototype: Screen;
new(): Screen;
};
interface ScreenOrientationEventMap {
"change": Event;
}
interface ScreenOrientation extends EventTarget {
readonly angle: number;
onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
readonly type: OrientationType;
lock(orientation: OrientationLockType): Promise<void>;
unlock(): void;
addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ScreenOrientation: {
prototype: ScreenOrientation;
new(): ScreenOrientation;
};
interface ScriptProcessorNodeEventMap {
"audioprocess": AudioProcessingEvent;
}
/**
* Allows the generation, processing, or analyzing of audio using JavaScript.
* @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).
*/
interface ScriptProcessorNode extends AudioNode {
/** @deprecated */
readonly bufferSize: number;
/** @deprecated */
onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;
addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var ScriptProcessorNode: {
prototype: ScriptProcessorNode;
new(): ScriptProcessorNode;
};
/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
interface SecurityPolicyViolationEvent extends Event {
readonly blockedURI: string;
readonly columnNumber: number;
readonly disposition: SecurityPolicyViolationEventDisposition;
readonly documentURI: string;
readonly effectiveDirective: string;
readonly lineNumber: number;
readonly originalPolicy: string;
readonly referrer: string;
readonly sample: string;
readonly sourceFile: string;
readonly statusCode: number;
readonly violatedDirective: string;
}
declare var SecurityPolicyViolationEvent: {
prototype: SecurityPolicyViolationEvent;
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
};
/** A Selection object\xA0represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or\xA0modification, call Window.getSelection(). */
interface Selection {
readonly anchorNode: Node | null;
readonly anchorOffset: number;
readonly focusNode: Node | null;
readonly focusOffset: number;
readonly isCollapsed: boolean;
readonly rangeCount: number;
readonly type: string;
addRange(range: Range): void;
collapse(node: Node | null, offset?: number): void;
collapseToEnd(): void;
collapseToStart(): void;
containsNode(node: Node, allowPartialContainment?: boolean): boolean;
deleteFromDocument(): void;
empty(): void;
extend(node: Node, offset?: number): void;
getRangeAt(index: number): Range;
removeAllRanges(): void;
removeRange(range: Range): void;
selectAllChildren(node: Node): void;
setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
setPosition(node: Node | null, offset?: number): void;
toString(): string;
}
declare var Selection: {
prototype: Selection;
new(): Selection;
toString(): string;
};
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
"statechange": Event;
}
/** This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object. */
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 | URL): Promise<ServiceWorkerRegistration | undefined>;
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
startMessages(): void;
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerContainer: {
prototype: ServiceWorkerContainer;
new(): ServiceWorkerContainer;
};
interface ServiceWorkerRegistrationEventMap {
"updatefound": Event;
}
/** This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin. */
interface ServiceWorkerRegistration extends EventTarget {
readonly active: ServiceWorker | null;
readonly installing: ServiceWorker | null;
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
readonly pushManager: PushManager;
readonly scope: string;
readonly updateViaCache: ServiceWorkerUpdateViaCache;
readonly waiting: ServiceWorker | null;
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
showNotification(title: string, options?: NotificationOptions): Promise<void>;
unregister(): Promise<boolean>;
update(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerRegistration: {
prototype: ServiceWorkerRegistration;
new(): ServiceWorkerRegistration;
};
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
readonly delegatesFocus: boolean;
readonly host: Element;
readonly mode: ShadowRootMode;
/**
* Throws a "NotSupportedError" DOMException if context object is a shadow root.
*/
}
declare var ShadowRoot: {
prototype: ShadowRoot;
new(): ShadowRoot;
};
interface SharedWorker extends EventTarget, AbstractWorker {
/**
* Returns sharedWorker's MessagePort object which can be used to communicate with the global environment.
*/
readonly port: MessagePort;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SharedWorker: {
prototype: SharedWorker;
new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;
};
interface Slottable {
readonly assignedSlot: HTMLSlotElement | null;
}
interface SourceBufferEventMap {
"abort": Event;
"error": Event;
"update": Event;
"updateend": Event;
"updatestart": Event;
}
/** A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource\xA0object. This can be made up of one or several media segments. */
interface SourceBuffer extends EventTarget {
appendWindowEnd: number;
appendWindowStart: number;
readonly buffered: TimeRanges;
mode: AppendMode;
onabort: ((this: SourceBuffer, ev: Event) => any) | null;
onerror: ((this: SourceBuffer, ev: Event) => any) | null;
onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
timestampOffset: number;
readonly updating: boolean;
abort(): void;
appendBuffer(data: BufferSource): void;
changeType(type: string): void;
remove(start: number, end: number): void;
addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SourceBuffer: {
prototype: SourceBuffer;
new(): SourceBuffer;
};
interface SourceBufferListEventMap {
"addsourcebuffer": Event;
"removesourcebuffer": Event;
}
/** A simple container list for multiple SourceBuffer objects. */
interface SourceBufferList extends EventTarget {
readonly length: number;
onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: SourceBuffer;
}
declare var SourceBufferList: {
prototype: SourceBufferList;
new(): SourceBufferList;
};
interface SpeechRecognitionAlternative {
readonly confidence: number;
readonly transcript: string;
}
declare var SpeechRecognitionAlternative: {
prototype: SpeechRecognitionAlternative;
new(): SpeechRecognitionAlternative;
};
interface SpeechRecognitionResult {
readonly isFinal: boolean;
readonly length: number;
item(index: number): SpeechRecognitionAlternative;
[index: number]: SpeechRecognitionAlternative;
}
declare var SpeechRecognitionResult: {
prototype: SpeechRecognitionResult;
new(): SpeechRecognitionResult;
};
interface SpeechRecognitionResultList {
readonly length: number;
item(index: number): SpeechRecognitionResult;
[index: number]: SpeechRecognitionResult;
}
declare var SpeechRecognitionResultList: {
prototype: SpeechRecognitionResultList;
new(): SpeechRecognitionResultList;
};
interface SpeechSynthesisEventMap {
"voiceschanged": Event;
}
/** This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides. */
interface SpeechSynthesis extends EventTarget {
onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;
readonly paused: boolean;
readonly pending: boolean;
readonly speaking: boolean;
cancel(): void;
getVoices(): SpeechSynthesisVoice[];
pause(): void;
resume(): void;
speak(utterance: SpeechSynthesisUtterance): void;
addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SpeechSynthesis: {
prototype: SpeechSynthesis;
new(): SpeechSynthesis;
};
interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {
readonly error: SpeechSynthesisErrorCode;
}
declare var SpeechSynthesisErrorEvent: {
prototype: SpeechSynthesisErrorEvent;
new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;
};
/** This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. */
interface SpeechSynthesisEvent extends Event {
readonly charIndex: number;
readonly charLength: number;
readonly elapsedTime: number;
readonly name: string;
readonly utterance: SpeechSynthesisUtterance;
}
declare var SpeechSynthesisEvent: {
prototype: SpeechSynthesisEvent;
new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent;
};
interface SpeechSynthesisUtteranceEventMap {
"boundary": SpeechSynthesisEvent;
"end": SpeechSynthesisEvent;
"error": SpeechSynthesisErrorEvent;
"mark": SpeechSynthesisEvent;
"pause": SpeechSynthesisEvent;
"resume": SpeechSynthesisEvent;
"start": SpeechSynthesisEvent;
}
/** This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.) */
interface SpeechSynthesisUtterance extends EventTarget {
lang: string;
onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;
onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
pitch: number;
rate: number;
text: string;
voice: SpeechSynthesisVoice | null;
volume: number;
addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SpeechSynthesisUtterance: {
prototype: SpeechSynthesisUtterance;
new(text?: string): SpeechSynthesisUtterance;
};
/** This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI. */
interface SpeechSynthesisVoice {
readonly default: boolean;
readonly lang: string;
readonly localService: boolean;
readonly name: string;
readonly voiceURI: string;
}
declare var SpeechSynthesisVoice: {
prototype: SpeechSynthesisVoice;
new(): SpeechSynthesisVoice;
};
interface StaticRange extends AbstractRange {
}
declare var StaticRange: {
prototype: StaticRange;
new(init: StaticRangeInit): StaticRange;
};
/** The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode. */
interface StereoPannerNode extends AudioNode {
readonly pan: AudioParam;
}
declare var StereoPannerNode: {
prototype: StereoPannerNode;
new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;
};
/** This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items. */
interface Storage {
/**
* Returns the number of key/value pairs.
*/
readonly length: number;
/**
* Removes all key/value pairs, if there are any.
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*/
clear(): void;
/**
* Returns the current value associated with the given key, or null if the given key does not exist.
*/
getItem(key: string): string | null;
/**
* Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs.
*/
key(index: number): string | null;
/**
* Removes the key/value pair with the given key, if a key/value pair with the given key exists.
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*/
removeItem(key: string): void;
/**
* Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
*
* Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*/
setItem(key: string, value: string): void;
[name: string]: any;
}
declare var Storage: {
prototype: Storage;
new(): Storage;
};
/** A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. */
interface StorageEvent extends Event {
/**
* Returns the key of the storage item being changed.
*/
readonly key: string | null;
/**
* Returns the new value of the key of the storage item whose value is being changed.
*/
readonly newValue: string | null;
/**
* Returns the old value of the key of the storage item whose value is being changed.
*/
readonly oldValue: string | null;
/**
* Returns the Storage object that was affected.
*/
readonly storageArea: Storage | null;
/**
* Returns the URL of the document whose storage item changed.
*/
readonly url: string;
initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;
}
declare var StorageEvent: {
prototype: StorageEvent;
new(type: string, eventInitDict?: StorageEventInit): StorageEvent;
};
interface StorageManager {
estimate(): Promise<StorageEstimate>;
persist(): Promise<boolean>;
persisted(): Promise<boolean>;
}
declare var StorageManager: {
prototype: StorageManager;
new(): StorageManager;
};
/** @deprecated */
interface StyleMedia {
type: string;
matchMedium(mediaquery: string): boolean;
}
/** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */
interface StyleSheet {
disabled: boolean;
readonly href: string | null;
readonly media: MediaList;
readonly ownerNode: Element | ProcessingInstruction | null;
readonly parentStyleSheet: CSSStyleSheet | null;
readonly title: string | null;
readonly type: string;
}
declare var StyleSheet: {
prototype: StyleSheet;
new(): StyleSheet;
};
/** A list of StyleSheet. */
interface StyleSheetList {
readonly length: number;
item(index: number): CSSStyleSheet | null;
[index: number]: CSSStyleSheet;
}
declare var StyleSheetList: {
prototype: StyleSheetList;
new(): StyleSheetList;
};
interface SubmitEvent extends Event {
/**
* Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button.
*/
readonly submitter: HTMLElement | null;
}
declare var SubmitEvent: {
prototype: SubmitEvent;
new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;
};
/** This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto). */
interface SubtleCrypto {
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
}
declare var SubtleCrypto: {
prototype: SubtleCrypto;
new(): SubtleCrypto;
};
/** The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children. */
interface Text extends CharacterData, Slottable {
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 input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
*
* \`\`\`
* var string = "", decoder = new TextDecoder(encoding), buffer;
* while(buffer = next_chunk()) {
* string += decoder.decode(buffer, {stream:true});
* }
* string += decoder.decode(); // end-of-queue
* \`\`\`
*
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
*/
decode(input?: BufferSource, options?: TextDecodeOptions): string;
}
declare var TextDecoder: {
prototype: TextDecoder;
new(label?: string, options?: TextDecoderOptions): TextDecoder;
};
interface TextDecoderCommon {
/**
* Returns encoding's name, lowercased.
*/
readonly encoding: string;
/**
* Returns true if error mode is "fatal", otherwise false.
*/
readonly fatal: boolean;
/**
* Returns the value of ignore BOM.
*/
readonly ignoreBOM: boolean;
}
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
readonly readable: ReadableStream<string>;
readonly writable: WritableStream<BufferSource>;
}
declare var TextDecoderStream: {
prototype: TextDecoderStream;
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
};
/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
interface TextEncoder extends TextEncoderCommon {
/**
* Returns the result of running UTF-8's encoder.
*/
encode(input?: string): Uint8Array;
/**
* Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.
*/
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
}
declare var TextEncoder: {
prototype: TextEncoder;
new(): TextEncoder;
};
interface TextEncoderCommon {
/**
* Returns "utf-8".
*/
readonly encoding: string;
}
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
readonly readable: ReadableStream<Uint8Array>;
readonly writable: WritableStream<string>;
}
declare var TextEncoderStream: {
prototype: TextEncoderStream;
new(): TextEncoderStream;
};
/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
interface TextMetrics {
/**
* Returns the measurement described below.
*/
readonly actualBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*/
readonly actualBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*/
readonly actualBoundingBoxLeft: number;
/**
* Returns the measurement described below.
*/
readonly actualBoundingBoxRight: number;
/**
* Returns the measurement described below.
*/
readonly fontBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*/
readonly fontBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*/
readonly width: number;
}
declare var TextMetrics: {
prototype: TextMetrics;
new(): TextMetrics;
};
interface TextTrackEventMap {
"cuechange": Event;
}
/** This interface also inherits properties from EventTarget. */
interface TextTrack extends EventTarget {
/**
* Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object.
*/
readonly activeCues: TextTrackCueList | null;
/**
* Returns the text track list of cues, as a TextTrackCueList object.
*/
readonly cues: TextTrackCueList | null;
/**
* Returns the ID of the given track.
*
* For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method.
*
* For TextTrack objects corresponding to track elements, this is the ID of the track element.
*/
readonly id: string;
/**
* Returns the text track in-band metadata track dispatch type string.
*/
readonly inBandMetadataTrackDispatchType: string;
/**
* Returns the text track kind string.
*/
readonly kind: TextTrackKind;
/**
* Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user).
*/
readonly label: string;
/**
* Returns the text track language string.
*/
readonly language: string;
/**
* Returns the text track mode, represented by a string from the following list:
*
* Can be set, to change the mode.
*/
mode: TextTrackMode;
oncuechange: ((this: TextTrack, ev: Event) => any) | null;
/**
* Adds the given cue to textTrack's text track list of cues.
*/
addCue(cue: TextTrackCue): void;
/**
* Removes the given cue from textTrack's text track list of cues.
*/
removeCue(cue: TextTrackCue): void;
addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var TextTrack: {
prototype: TextTrack;
new(): TextTrack;
};
interface TextTrackCueEventMap {
"enter": Event;
"exit": Event;
}
/** TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used. */
interface TextTrackCue extends EventTarget {
/**
* Returns the text track cue end time, in seconds.
*
* Can be set.
*/
endTime: number;
/**
* Returns the text track cue identifier.
*
* Can be set.
*/
id: string;
onenter: ((this: TextTrackCue, ev: Event) => any) | null;
onexit: ((this: TextTrackCue, ev: Event) => any) | null;
/**
* Returns true if the text track cue pause-on-exit flag is set, false otherwise.
*
* Can be set.
*/
pauseOnExit: boolean;
/**
* Returns the text track cue start time, in seconds.
*
* Can be set.
*/
startTime: number;
/**
* Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise.
*/
readonly track: TextTrack | null;
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var TextTrackCue: {
prototype: TextTrackCue;
new(): TextTrackCue;
};
interface TextTrackCueList {
/**
* Returns the number of cues in the list.
*/
readonly length: number;
/**
* Returns the first text track cue (in text track cue order) with text track cue identifier id.
*
* Returns null if none of the cues have the given identifier or if the argument is the empty string.
*/
getCueById(id: string): TextTrackCue | null;
[index: number]: TextTrackCue;
}
declare var TextTrackCueList: {
prototype: TextTrackCueList;
new(): TextTrackCueList;
};
interface TextTrackListEventMap {
"addtrack": TrackEvent;
"change": Event;
"removetrack": TrackEvent;
}
interface TextTrackList extends EventTarget {
readonly length: number;
onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
onchange: ((this: TextTrackList, ev: Event) => any) | null;
onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
getTrackById(id: string): TextTrack | null;
addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: TextTrack;
}
declare var TextTrackList: {
prototype: TextTrackList;
new(): TextTrackList;
};
/** Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video>\xA0elements. */
interface TimeRanges {
/**
* Returns the number of ranges in the object.
*/
readonly length: number;
/**
* Returns the time for the end of the range with the given index.
*
* Throws an "IndexSizeError" DOMException if the index is out of range.
*/
end(index: number): number;
/**
* Returns the time for the start of the range with the given index.
*
* Throws an "IndexSizeError" DOMException if the index is out of range.
*/
start(index: number): number;
}
declare var TimeRanges: {
prototype: TimeRanges;
new(): TimeRanges;
};
/** A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. */
interface Touch {
readonly clientX: number;
readonly clientY: number;
readonly force: number;
readonly identifier: number;
readonly pageX: number;
readonly pageY: number;
readonly radiusX: number;
readonly radiusY: number;
readonly rotationAngle: number;
readonly screenX: number;
readonly screenY: number;
readonly target: EventTarget;
}
declare var Touch: {
prototype: Touch;
new(touchInitDict: TouchInit): Touch;
};
/** An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth. */
interface TouchEvent extends UIEvent {
readonly altKey: boolean;
readonly changedTouches: TouchList;
readonly ctrlKey: boolean;
readonly metaKey: boolean;
readonly shiftKey: boolean;
readonly targetTouches: TouchList;
readonly touches: TouchList;
}
declare var TouchEvent: {
prototype: TouchEvent;
new(type: string, eventInitDict?: TouchEventInit): TouchEvent;
};
/** A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries. */
interface TouchList {
readonly length: number;
item(index: number): Touch | null;
[index: number]: Touch;
}
declare var TouchList: {
prototype: TouchList;
new(): TouchList;
};
/** The TrackEvent interface, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack. */
interface TrackEvent extends Event {
/**
* Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates.
*/
readonly track: TextTrack | null;
}
declare var TrackEvent: {
prototype: TrackEvent;
new(type: string, eventInitDict?: TrackEventInit): TrackEvent;
};
interface TransformStream<I = any, O = any> {
readonly readable: ReadableStream<O>;
readonly writable: WritableStream<I>;
}
declare var TransformStream: {
prototype: TransformStream;
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
};
interface TransformStreamDefaultController<O = any> {
readonly desiredSize: number | null;
enqueue(chunk?: O): void;
error(reason?: any): void;
terminate(): void;
}
declare var TransformStreamDefaultController: {
prototype: TransformStreamDefaultController;
new(): TransformStreamDefaultController;
};
/** Events providing information related to transitions. */
interface TransitionEvent extends Event {
readonly elapsedTime: number;
readonly propertyName: string;
readonly pseudoElement: string;
}
declare var TransitionEvent: {
prototype: TransitionEvent;
new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;
};
/** The nodes of a document subtree and a position within them. */
interface TreeWalker {
currentNode: Node;
readonly filter: NodeFilter | null;
readonly root: Node;
readonly whatToShow: number;
firstChild(): Node | null;
lastChild(): Node | null;
nextNode(): Node | null;
nextSibling(): Node | null;
parentNode(): Node | null;
previousNode(): Node | null;
previousSibling(): Node | null;
}
declare var TreeWalker: {
prototype: TreeWalker;
new(): TreeWalker;
};
/** Simple user interface events. */
interface UIEvent extends Event {
readonly detail: number;
readonly view: Window | null;
/** @deprecated */
readonly which: number;
/** @deprecated */
initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;
}
declare var UIEvent: {
prototype: UIEvent;
new(type: string, eventInitDict?: UIEventInit): UIEvent;
};
/** The URL\xA0interface represents an object providing static methods used for creating object URLs. */
interface URL {
hash: string;
host: string;
hostname: string;
href: string;
toString(): string;
readonly origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
readonly searchParams: URLSearchParams;
username: string;
toJSON(): string;
}
declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
createObjectURL(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;
/**
* Returns a string containing a query string suitable for use in a URL. Does not include the question mark.
*/
toString(): string;
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
}
declare var URLSearchParams: {
prototype: URLSearchParams;
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
toString(): string;
};
interface VTTCue extends TextTrackCue {
align: AlignSetting;
line: LineAndPositionSetting;
lineAlign: LineAlignSetting;
position: LineAndPositionSetting;
positionAlign: PositionAlignSetting;
region: VTTRegion | null;
size: number;
snapToLines: boolean;
text: string;
vertical: DirectionSetting;
getCueAsHTML(): DocumentFragment;
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VTTCue: {
prototype: VTTCue;
new(startTime: number, endTime: number, text: string): VTTCue;
};
interface VTTRegion {
id: string;
lines: number;
regionAnchorX: number;
regionAnchorY: number;
scroll: ScrollSetting;
viewportAnchorX: number;
viewportAnchorY: number;
width: number;
}
declare var VTTRegion: {
prototype: VTTRegion;
new(): VTTRegion;
};
/** The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid. */
interface ValidityState {
readonly badInput: boolean;
readonly customError: boolean;
readonly patternMismatch: boolean;
readonly rangeOverflow: boolean;
readonly rangeUnderflow: boolean;
readonly stepMismatch: boolean;
readonly tooLong: boolean;
readonly tooShort: boolean;
readonly typeMismatch: boolean;
readonly valid: boolean;
readonly valueMissing: boolean;
}
declare var ValidityState: {
prototype: ValidityState;
new(): ValidityState;
};
/** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */
interface VideoPlaybackQuality {
/** @deprecated */
readonly corruptedVideoFrames: number;
readonly creationTime: DOMHighResTimeStamp;
readonly droppedVideoFrames: number;
readonly totalVideoFrames: number;
}
declare var VideoPlaybackQuality: {
prototype: VideoPlaybackQuality;
new(): VideoPlaybackQuality;
};
interface VisualViewportEventMap {
"resize": Event;
"scroll": Event;
}
interface VisualViewport extends EventTarget {
readonly height: number;
readonly offsetLeft: number;
readonly offsetTop: number;
onresize: ((this: VisualViewport, ev: Event) => any) | null;
onscroll: ((this: VisualViewport, ev: Event) => any) | null;
readonly pageLeft: number;
readonly pageTop: number;
readonly scale: number;
readonly width: number;
addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VisualViewport: {
prototype: VisualViewport;
new(): VisualViewport;
};
interface WEBGL_color_buffer_float {
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
readonly RGBA32F_EXT: GLenum;
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
}
interface WEBGL_compressed_texture_astc {
getSupportedProfiles(): string[];
readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;
}
interface WEBGL_compressed_texture_etc {
readonly COMPRESSED_R11_EAC: GLenum;
readonly COMPRESSED_RG11_EAC: GLenum;
readonly COMPRESSED_RGB8_ETC2: GLenum;
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;
readonly COMPRESSED_SIGNED_R11_EAC: GLenum;
readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;
readonly COMPRESSED_SRGB8_ETC2: GLenum;
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
}
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
}
interface WEBGL_compressed_texture_pvrtc {
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
}
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
interface WEBGL_compressed_texture_s3tc {
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;
}
interface WEBGL_compressed_texture_s3tc_srgb {
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;
}
/** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */
interface WEBGL_debug_renderer_info {
readonly UNMASKED_RENDERER_WEBGL: GLenum;
readonly UNMASKED_VENDOR_WEBGL: GLenum;
}
interface WEBGL_debug_shaders {
getTranslatedShaderSource(shader: WebGLShader): string;
}
/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
interface WEBGL_depth_texture {
readonly UNSIGNED_INT_24_8_WEBGL: GLenum;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: GLenum[]): void;
readonly COLOR_ATTACHMENT0_WEBGL: GLenum;
readonly COLOR_ATTACHMENT10_WEBGL: GLenum;
readonly COLOR_ATTACHMENT11_WEBGL: GLenum;
readonly COLOR_ATTACHMENT12_WEBGL: GLenum;
readonly COLOR_ATTACHMENT13_WEBGL: GLenum;
readonly COLOR_ATTACHMENT14_WEBGL: GLenum;
readonly COLOR_ATTACHMENT15_WEBGL: GLenum;
readonly COLOR_ATTACHMENT1_WEBGL: GLenum;
readonly COLOR_ATTACHMENT2_WEBGL: GLenum;
readonly COLOR_ATTACHMENT3_WEBGL: GLenum;
readonly COLOR_ATTACHMENT4_WEBGL: GLenum;
readonly COLOR_ATTACHMENT5_WEBGL: GLenum;
readonly COLOR_ATTACHMENT6_WEBGL: GLenum;
readonly COLOR_ATTACHMENT7_WEBGL: GLenum;
readonly COLOR_ATTACHMENT8_WEBGL: GLenum;
readonly COLOR_ATTACHMENT9_WEBGL: GLenum;
readonly DRAW_BUFFER0_WEBGL: GLenum;
readonly DRAW_BUFFER10_WEBGL: GLenum;
readonly DRAW_BUFFER11_WEBGL: GLenum;
readonly DRAW_BUFFER12_WEBGL: GLenum;
readonly DRAW_BUFFER13_WEBGL: GLenum;
readonly DRAW_BUFFER14_WEBGL: GLenum;
readonly DRAW_BUFFER15_WEBGL: GLenum;
readonly DRAW_BUFFER1_WEBGL: GLenum;
readonly DRAW_BUFFER2_WEBGL: GLenum;
readonly DRAW_BUFFER3_WEBGL: GLenum;
readonly DRAW_BUFFER4_WEBGL: GLenum;
readonly DRAW_BUFFER5_WEBGL: GLenum;
readonly DRAW_BUFFER6_WEBGL: GLenum;
readonly DRAW_BUFFER7_WEBGL: GLenum;
readonly DRAW_BUFFER8_WEBGL: GLenum;
readonly DRAW_BUFFER9_WEBGL: GLenum;
readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;
readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;
}
interface WEBGL_lose_context {
loseContext(): void;
restoreContext(): void;
}
/** A WaveShaperNode always has exactly one input and one output. */
interface WaveShaperNode extends AudioNode {
curve: Float32Array | null;
oversample: OverSampleType;
}
declare var WaveShaperNode: {
prototype: WaveShaperNode;
new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
};
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}
declare var WebGL2RenderingContext: {
prototype: WebGL2RenderingContext;
new(): WebGL2RenderingContext;
readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
readonly ALREADY_SIGNALED: GLenum;
readonly ANY_SAMPLES_PASSED: GLenum;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
readonly COLOR: GLenum;
readonly COLOR_ATTACHMENT1: GLenum;
readonly COLOR_ATTACHMENT10: GLenum;
readonly COLOR_ATTACHMENT11: GLenum;
readonly COLOR_ATTACHMENT12: GLenum;
readonly COLOR_ATTACHMENT13: GLenum;
readonly COLOR_ATTACHMENT14: GLenum;
readonly COLOR_ATTACHMENT15: GLenum;
readonly COLOR_ATTACHMENT2: GLenum;
readonly COLOR_ATTACHMENT3: GLenum;
readonly COLOR_ATTACHMENT4: GLenum;
readonly COLOR_ATTACHMENT5: GLenum;
readonly COLOR_ATTACHMENT6: GLenum;
readonly COLOR_ATTACHMENT7: GLenum;
readonly COLOR_ATTACHMENT8: GLenum;
readonly COLOR_ATTACHMENT9: GLenum;
readonly COMPARE_REF_TO_TEXTURE: GLenum;
readonly CONDITION_SATISFIED: GLenum;
readonly COPY_READ_BUFFER: GLenum;
readonly COPY_READ_BUFFER_BINDING: GLenum;
readonly COPY_WRITE_BUFFER: GLenum;
readonly COPY_WRITE_BUFFER_BINDING: GLenum;
readonly CURRENT_QUERY: GLenum;
readonly DEPTH: GLenum;
readonly DEPTH24_STENCIL8: GLenum;
readonly DEPTH32F_STENCIL8: GLenum;
readonly DEPTH_COMPONENT24: GLenum;
readonly DEPTH_COMPONENT32F: GLenum;
readonly DRAW_BUFFER0: GLenum;
readonly DRAW_BUFFER1: GLenum;
readonly DRAW_BUFFER10: GLenum;
readonly DRAW_BUFFER11: GLenum;
readonly DRAW_BUFFER12: GLenum;
readonly DRAW_BUFFER13: GLenum;
readonly DRAW_BUFFER14: GLenum;
readonly DRAW_BUFFER15: GLenum;
readonly DRAW_BUFFER2: GLenum;
readonly DRAW_BUFFER3: GLenum;
readonly DRAW_BUFFER4: GLenum;
readonly DRAW_BUFFER5: GLenum;
readonly DRAW_BUFFER6: GLenum;
readonly DRAW_BUFFER7: GLenum;
readonly DRAW_BUFFER8: GLenum;
readonly DRAW_BUFFER9: GLenum;
readonly DRAW_FRAMEBUFFER: GLenum;
readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
readonly DYNAMIC_COPY: GLenum;
readonly DYNAMIC_READ: GLenum;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
readonly FLOAT_MAT2x3: GLenum;
readonly FLOAT_MAT2x4: GLenum;
readonly FLOAT_MAT3x2: GLenum;
readonly FLOAT_MAT3x4: GLenum;
readonly FLOAT_MAT4x2: GLenum;
readonly FLOAT_MAT4x3: GLenum;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
readonly FRAMEBUFFER_DEFAULT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
readonly HALF_FLOAT: GLenum;
readonly INTERLEAVED_ATTRIBS: GLenum;
readonly INT_2_10_10_10_REV: GLenum;
readonly INT_SAMPLER_2D: GLenum;
readonly INT_SAMPLER_2D_ARRAY: GLenum;
readonly INT_SAMPLER_3D: GLenum;
readonly INT_SAMPLER_CUBE: GLenum;
readonly INVALID_INDEX: GLenum;
readonly MAX: GLenum;
readonly MAX_3D_TEXTURE_SIZE: GLenum;
readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
readonly MAX_COLOR_ATTACHMENTS: GLenum;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
readonly MAX_DRAW_BUFFERS: GLenum;
readonly MAX_ELEMENTS_INDICES: GLenum;
readonly MAX_ELEMENTS_VERTICES: GLenum;
readonly MAX_ELEMENT_INDEX: GLenum;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
readonly MAX_SAMPLES: GLenum;
readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
readonly MAX_TEXTURE_LOD_BIAS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
readonly MAX_VARYING_COMPONENTS: GLenum;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
readonly MIN: GLenum;
readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
readonly OBJECT_TYPE: GLenum;
readonly PACK_ROW_LENGTH: GLenum;
readonly PACK_SKIP_PIXELS: GLenum;
readonly PACK_SKIP_ROWS: GLenum;
readonly PIXEL_PACK_BUFFER: GLenum;
readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
readonly PIXEL_UNPACK_BUFFER: GLenum;
readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
readonly QUERY_RESULT: GLenum;
readonly QUERY_RESULT_AVAILABLE: GLenum;
readonly R11F_G11F_B10F: GLenum;
readonly R16F: GLenum;
readonly R16I: GLenum;
readonly R16UI: GLenum;
readonly R32F: GLenum;
readonly R32I: GLenum;
readonly R32UI: GLenum;
readonly R8: GLenum;
readonly R8I: GLenum;
readonly R8UI: GLenum;
readonly R8_SNORM: GLenum;
readonly RASTERIZER_DISCARD: GLenum;
readonly READ_BUFFER: GLenum;
readonly READ_FRAMEBUFFER: GLenum;
readonly READ_FRAMEBUFFER_BINDING: GLenum;
readonly RED: GLenum;
readonly RED_INTEGER: GLenum;
readonly RENDERBUFFER_SAMPLES: GLenum;
readonly RG: GLenum;
readonly RG16F: GLenum;
readonly RG16I: GLenum;
readonly RG16UI: GLenum;
readonly RG32F: GLenum;
readonly RG32I: GLenum;
readonly RG32UI: GLenum;
readonly RG8: GLenum;
readonly RG8I: GLenum;
readonly RG8UI: GLenum;
readonly RG8_SNORM: GLenum;
readonly RGB10_A2: GLenum;
readonly RGB10_A2UI: GLenum;
readonly RGB16F: GLenum;
readonly RGB16I: GLenum;
readonly RGB16UI: GLenum;
readonly RGB32F: GLenum;
readonly RGB32I: GLenum;
readonly RGB32UI: GLenum;
readonly RGB8: GLenum;
readonly RGB8I: GLenum;
readonly RGB8UI: GLenum;
readonly RGB8_SNORM: GLenum;
readonly RGB9_E5: GLenum;
readonly RGBA16F: GLenum;
readonly RGBA16I: GLenum;
readonly RGBA16UI: GLenum;
readonly RGBA32F: GLenum;
readonly RGBA32I: GLenum;
readonly RGBA32UI: GLenum;
readonly RGBA8: GLenum;
readonly RGBA8I: GLenum;
readonly RGBA8UI: GLenum;
readonly RGBA8_SNORM: GLenum;
readonly RGBA_INTEGER: GLenum;
readonly RGB_INTEGER: GLenum;
readonly RG_INTEGER: GLenum;
readonly SAMPLER_2D_ARRAY: GLenum;
readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
readonly SAMPLER_2D_SHADOW: GLenum;
readonly SAMPLER_3D: GLenum;
readonly SAMPLER_BINDING: GLenum;
readonly SAMPLER_CUBE_SHADOW: GLenum;
readonly SEPARATE_ATTRIBS: GLenum;
readonly SIGNALED: GLenum;
readonly SIGNED_NORMALIZED: GLenum;
readonly SRGB: GLenum;
readonly SRGB8: GLenum;
readonly SRGB8_ALPHA8: GLenum;
readonly STATIC_COPY: GLenum;
readonly STATIC_READ: GLenum;
readonly STENCIL: GLenum;
readonly STREAM_COPY: GLenum;
readonly STREAM_READ: GLenum;
readonly SYNC_CONDITION: GLenum;
readonly SYNC_FENCE: GLenum;
readonly SYNC_FLAGS: GLenum;
readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
readonly SYNC_STATUS: GLenum;
readonly TEXTURE_2D_ARRAY: GLenum;
readonly TEXTURE_3D: GLenum;
readonly TEXTURE_BASE_LEVEL: GLenum;
readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
readonly TEXTURE_BINDING_3D: GLenum;
readonly TEXTURE_COMPARE_FUNC: GLenum;
readonly TEXTURE_COMPARE_MODE: GLenum;
readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
readonly TEXTURE_MAX_LEVEL: GLenum;
readonly TEXTURE_MAX_LOD: GLenum;
readonly TEXTURE_MIN_LOD: GLenum;
readonly TEXTURE_WRAP_R: GLenum;
readonly TIMEOUT_EXPIRED: GLenum;
readonly TIMEOUT_IGNORED: GLint64;
readonly TRANSFORM_FEEDBACK: GLenum;
readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
readonly UNIFORM_ARRAY_STRIDE: GLenum;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
readonly UNIFORM_BLOCK_BINDING: GLenum;
readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
readonly UNIFORM_BLOCK_INDEX: GLenum;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
readonly UNIFORM_BUFFER: GLenum;
readonly UNIFORM_BUFFER_BINDING: GLenum;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
readonly UNIFORM_BUFFER_SIZE: GLenum;
readonly UNIFORM_BUFFER_START: GLenum;
readonly UNIFORM_IS_ROW_MAJOR: GLenum;
readonly UNIFORM_MATRIX_STRIDE: GLenum;
readonly UNIFORM_OFFSET: GLenum;
readonly UNIFORM_SIZE: GLenum;
readonly UNIFORM_TYPE: GLenum;
readonly UNPACK_IMAGE_HEIGHT: GLenum;
readonly UNPACK_ROW_LENGTH: GLenum;
readonly UNPACK_SKIP_IMAGES: GLenum;
readonly UNPACK_SKIP_PIXELS: GLenum;
readonly UNPACK_SKIP_ROWS: GLenum;
readonly UNSIGNALED: GLenum;
readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
readonly UNSIGNED_INT_24_8: GLenum;
readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
readonly UNSIGNED_INT_VEC2: GLenum;
readonly UNSIGNED_INT_VEC3: GLenum;
readonly UNSIGNED_INT_VEC4: GLenum;
readonly UNSIGNED_NORMALIZED: GLenum;
readonly VERTEX_ARRAY_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
readonly WAIT_FAILED: GLenum;
readonly ACTIVE_ATTRIBUTES: GLenum;
readonly ACTIVE_TEXTURE: GLenum;
readonly ACTIVE_UNIFORMS: GLenum;
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
readonly ALPHA: GLenum;
readonly ALPHA_BITS: GLenum;
readonly ALWAYS: GLenum;
readonly ARRAY_BUFFER: GLenum;
readonly ARRAY_BUFFER_BINDING: GLenum;
readonly ATTACHED_SHADERS: GLenum;
readonly BACK: GLenum;
readonly BLEND: GLenum;
readonly BLEND_COLOR: GLenum;
readonly BLEND_DST_ALPHA: GLenum;
readonly BLEND_DST_RGB: GLenum;
readonly BLEND_EQUATION: GLenum;
readonly BLEND_EQUATION_ALPHA: GLenum;
readonly BLEND_EQUATION_RGB: GLenum;
readonly BLEND_SRC_ALPHA: GLenum;
readonly BLEND_SRC_RGB: GLenum;
readonly BLUE_BITS: GLenum;
readonly BOOL: GLenum;
readonly BOOL_VEC2: GLenum;
readonly BOOL_VEC3: GLenum;
readonly BOOL_VEC4: GLenum;
readonly BROWSER_DEFAULT_WEBGL: GLenum;
readonly BUFFER_SIZE: GLenum;
readonly BUFFER_USAGE: GLenum;
readonly BYTE: GLenum;
readonly CCW: GLenum;
readonly CLAMP_TO_EDGE: GLenum;
readonly COLOR_ATTACHMENT0: GLenum;
readonly COLOR_BUFFER_BIT: GLenum;
readonly COLOR_CLEAR_VALUE: GLenum;
readonly COLOR_WRITEMASK: GLenum;
readonly COMPILE_STATUS: GLenum;
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
readonly CONSTANT_ALPHA: GLenum;
readonly CONSTANT_COLOR: GLenum;
readonly CONTEXT_LOST_WEBGL: GLenum;
readonly CULL_FACE: GLenum;
readonly CULL_FACE_MODE: GLenum;
readonly CURRENT_PROGRAM: GLenum;
readonly CURRENT_VERTEX_ATTRIB: GLenum;
readonly CW: GLenum;
readonly DECR: GLenum;
readonly DECR_WRAP: GLenum;
readonly DELETE_STATUS: GLenum;
readonly DEPTH_ATTACHMENT: GLenum;
readonly DEPTH_BITS: GLenum;
readonly DEPTH_BUFFER_BIT: GLenum;
readonly DEPTH_CLEAR_VALUE: GLenum;
readonly DEPTH_COMPONENT: GLenum;
readonly DEPTH_COMPONENT16: GLenum;
readonly DEPTH_FUNC: GLenum;
readonly DEPTH_RANGE: GLenum;
readonly DEPTH_STENCIL: GLenum;
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
readonly DEPTH_TEST: GLenum;
readonly DEPTH_WRITEMASK: GLenum;
readonly DITHER: GLenum;
readonly DONT_CARE: GLenum;
readonly DST_ALPHA: GLenum;
readonly DST_COLOR: GLenum;
readonly DYNAMIC_DRAW: GLenum;
readonly ELEMENT_ARRAY_BUFFER: GLenum;
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
readonly EQUAL: GLenum;
readonly FASTEST: GLenum;
readonly FLOAT: GLenum;
readonly FLOAT_MAT2: GLenum;
readonly FLOAT_MAT3: GLenum;
readonly FLOAT_MAT4: GLenum;
readonly FLOAT_VEC2: GLenum;
readonly FLOAT_VEC3: GLenum;
readonly FLOAT_VEC4: GLenum;
readonly FRAGMENT_SHADER: GLenum;
readonly FRAMEBUFFER: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
readonly FRAMEBUFFER_BINDING: GLenum;
readonly FRAMEBUFFER_COMPLETE: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
readonly FRONT: GLenum;
readonly FRONT_AND_BACK: GLenum;
readonly FRONT_FACE: GLenum;
readonly FUNC_ADD: GLenum;
readonly FUNC_REVERSE_SUBTRACT: GLenum;
readonly FUNC_SUBTRACT: GLenum;
readonly GENERATE_MIPMAP_HINT: GLenum;
readonly GEQUAL: GLenum;
readonly GREATER: GLenum;
readonly GREEN_BITS: GLenum;
readonly HIGH_FLOAT: GLenum;
readonly HIGH_INT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
readonly INCR: GLenum;
readonly INCR_WRAP: GLenum;
readonly INT: GLenum;
readonly INT_VEC2: GLenum;
readonly INT_VEC3: GLenum;
readonly INT_VEC4: GLenum;
readonly INVALID_ENUM: GLenum;
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
readonly INVALID_OPERATION: GLenum;
readonly INVALID_VALUE: GLenum;
readonly INVERT: GLenum;
readonly KEEP: GLenum;
readonly LEQUAL: GLenum;
readonly LESS: GLenum;
readonly LINEAR: GLenum;
readonly LINEAR_MIPMAP_LINEAR: GLenum;
readonly LINEAR_MIPMAP_NEAREST: GLenum;
readonly LINES: GLenum;
readonly LINE_LOOP: GLenum;
readonly LINE_STRIP: GLenum;
readonly LINE_WIDTH: GLenum;
readonly LINK_STATUS: GLenum;
readonly LOW_FLOAT: GLenum;
readonly LOW_INT: GLenum;
readonly LUMINANCE: GLenum;
readonly LUMINANCE_ALPHA: GLenum;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
readonly MAX_RENDERBUFFER_SIZE: GLenum;
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_TEXTURE_SIZE: GLenum;
readonly MAX_VARYING_VECTORS: GLenum;
readonly MAX_VERTEX_ATTRIBS: GLenum;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
readonly MAX_VIEWPORT_DIMS: GLenum;
readonly MEDIUM_FLOAT: GLenum;
readonly MEDIUM_INT: GLenum;
readonly MIRRORED_REPEAT: GLenum;
readonly NEAREST: GLenum;
readonly NEAREST_MIPMAP_LINEAR: GLenum;
readonly NEAREST_MIPMAP_NEAREST: GLenum;
readonly NEVER: GLenum;
readonly NICEST: GLenum;
readonly NONE: GLenum;
readonly NOTEQUAL: GLenum;
readonly NO_ERROR: GLenum;
readonly ONE: GLenum;
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
readonly ONE_MINUS_DST_ALPHA: GLenum;
readonly ONE_MINUS_DST_COLOR: GLenum;
readonly ONE_MINUS_SRC_ALPHA: GLenum;
readonly ONE_MINUS_SRC_COLOR: GLenum;
readonly OUT_OF_MEMORY: GLenum;
readonly PACK_ALIGNMENT: GLenum;
readonly POINTS: GLenum;
readonly POLYGON_OFFSET_FACTOR: GLenum;
readonly POLYGON_OFFSET_FILL: GLenum;
readonly POLYGON_OFFSET_UNITS: GLenum;
readonly RED_BITS: GLenum;
readonly RENDERBUFFER: GLenum;
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
readonly RENDERBUFFER_BINDING: GLenum;
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
readonly RENDERBUFFER_HEIGHT: GLenum;
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
readonly RENDERBUFFER_RED_SIZE: GLenum;
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
readonly RENDERBUFFER_WIDTH: GLenum;
readonly RENDERER: GLenum;
readonly REPEAT: GLenum;
readonly REPLACE: GLenum;
readonly RGB: GLenum;
readonly RGB565: GLenum;
readonly RGB5_A1: GLenum;
readonly RGBA: GLenum;
readonly RGBA4: GLenum;
readonly SAMPLER_2D: GLenum;
readonly SAMPLER_CUBE: GLenum;
readonly SAMPLES: GLenum;
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
readonly SAMPLE_BUFFERS: GLenum;
readonly SAMPLE_COVERAGE: GLenum;
readonly SAMPLE_COVERAGE_INVERT: GLenum;
readonly SAMPLE_COVERAGE_VALUE: GLenum;
readonly SCISSOR_BOX: GLenum;
readonly SCISSOR_TEST: GLenum;
readonly SHADER_TYPE: GLenum;
readonly SHADING_LANGUAGE_VERSION: GLenum;
readonly SHORT: GLenum;
readonly SRC_ALPHA: GLenum;
readonly SRC_ALPHA_SATURATE: GLenum;
readonly SRC_COLOR: GLenum;
readonly STATIC_DRAW: GLenum;
readonly STENCIL_ATTACHMENT: GLenum;
readonly STENCIL_BACK_FAIL: GLenum;
readonly STENCIL_BACK_FUNC: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_BACK_REF: GLenum;
readonly STENCIL_BACK_VALUE_MASK: GLenum;
readonly STENCIL_BACK_WRITEMASK: GLenum;
readonly STENCIL_BITS: GLenum;
readonly STENCIL_BUFFER_BIT: GLenum;
readonly STENCIL_CLEAR_VALUE: GLenum;
readonly STENCIL_FAIL: GLenum;
readonly STENCIL_FUNC: GLenum;
readonly STENCIL_INDEX8: GLenum;
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_REF: GLenum;
readonly STENCIL_TEST: GLenum;
readonly STENCIL_VALUE_MASK: GLenum;
readonly STENCIL_WRITEMASK: GLenum;
readonly STREAM_DRAW: GLenum;
readonly SUBPIXEL_BITS: GLenum;
readonly TEXTURE: GLenum;
readonly TEXTURE0: GLenum;
readonly TEXTURE1: GLenum;
readonly TEXTURE10: GLenum;
readonly TEXTURE11: GLenum;
readonly TEXTURE12: GLenum;
readonly TEXTURE13: GLenum;
readonly TEXTURE14: GLenum;
readonly TEXTURE15: GLenum;
readonly TEXTURE16: GLenum;
readonly TEXTURE17: GLenum;
readonly TEXTURE18: GLenum;
readonly TEXTURE19: GLenum;
readonly TEXTURE2: GLenum;
readonly TEXTURE20: GLenum;
readonly TEXTURE21: GLenum;
readonly TEXTURE22: GLenum;
readonly TEXTURE23: GLenum;
readonly TEXTURE24: GLenum;
readonly TEXTURE25: GLenum;
readonly TEXTURE26: GLenum;
readonly TEXTURE27: GLenum;
readonly TEXTURE28: GLenum;
readonly TEXTURE29: GLenum;
readonly TEXTURE3: GLenum;
readonly TEXTURE30: GLenum;
readonly TEXTURE31: GLenum;
readonly TEXTURE4: GLenum;
readonly TEXTURE5: GLenum;
readonly TEXTURE6: GLenum;
readonly TEXTURE7: GLenum;
readonly TEXTURE8: GLenum;
readonly TEXTURE9: GLenum;
readonly TEXTURE_2D: GLenum;
readonly TEXTURE_BINDING_2D: GLenum;
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
readonly TEXTURE_MAG_FILTER: GLenum;
readonly TEXTURE_MIN_FILTER: GLenum;
readonly TEXTURE_WRAP_S: GLenum;
readonly TEXTURE_WRAP_T: GLenum;
readonly TRIANGLES: GLenum;
readonly TRIANGLE_FAN: GLenum;
readonly TRIANGLE_STRIP: GLenum;
readonly UNPACK_ALIGNMENT: GLenum;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
readonly UNSIGNED_BYTE: GLenum;
readonly UNSIGNED_INT: GLenum;
readonly UNSIGNED_SHORT: GLenum;
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
readonly UNSIGNED_SHORT_5_6_5: GLenum;
readonly VALIDATE_STATUS: GLenum;
readonly VENDOR: GLenum;
readonly VERSION: GLenum;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
readonly VERTEX_SHADER: GLenum;
readonly VIEWPORT: GLenum;
readonly ZERO: GLenum;
};
interface WebGL2RenderingContextBase {
beginQuery(target: GLenum, query: WebGLQuery): void;
beginTransformFeedback(primitiveMode: GLenum): void;
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
bindVertexArray(array: WebGLVertexArrayObject | null): void;
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createQuery(): WebGLQuery | null;
createSampler(): WebGLSampler | null;
createTransformFeedback(): WebGLTransformFeedback | null;
createVertexArray(): WebGLVertexArrayObject | null;
deleteQuery(query: WebGLQuery | null): void;
deleteSampler(sampler: WebGLSampler | null): void;
deleteSync(sync: WebGLSync | null): void;
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
drawBuffers(buffers: GLenum[]): void;
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
endQuery(target: GLenum): void;
endTransformFeedback(): void;
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
getFragDataLocation(program: WebGLProgram, name: string): GLint;
getIndexedParameter(target: GLenum, index: GLuint): any;
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
isQuery(query: WebGLQuery | null): GLboolean;
isSampler(sampler: WebGLSampler | null): GLboolean;
isSync(sync: WebGLSync | null): GLboolean;
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
pauseTransformFeedback(): void;
readBuffer(src: GLenum): void;
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
resumeTransformFeedback(): void;
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
vertexAttribI4iv(index: GLuint, values: Int32List): void;
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
readonly ALREADY_SIGNALED: GLenum;
readonly ANY_SAMPLES_PASSED: GLenum;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
readonly COLOR: GLenum;
readonly COLOR_ATTACHMENT1: GLenum;
readonly COLOR_ATTACHMENT10: GLenum;
readonly COLOR_ATTACHMENT11: GLenum;
readonly COLOR_ATTACHMENT12: GLenum;
readonly COLOR_ATTACHMENT13: GLenum;
readonly COLOR_ATTACHMENT14: GLenum;
readonly COLOR_ATTACHMENT15: GLenum;
readonly COLOR_ATTACHMENT2: GLenum;
readonly COLOR_ATTACHMENT3: GLenum;
readonly COLOR_ATTACHMENT4: GLenum;
readonly COLOR_ATTACHMENT5: GLenum;
readonly COLOR_ATTACHMENT6: GLenum;
readonly COLOR_ATTACHMENT7: GLenum;
readonly COLOR_ATTACHMENT8: GLenum;
readonly COLOR_ATTACHMENT9: GLenum;
readonly COMPARE_REF_TO_TEXTURE: GLenum;
readonly CONDITION_SATISFIED: GLenum;
readonly COPY_READ_BUFFER: GLenum;
readonly COPY_READ_BUFFER_BINDING: GLenum;
readonly COPY_WRITE_BUFFER: GLenum;
readonly COPY_WRITE_BUFFER_BINDING: GLenum;
readonly CURRENT_QUERY: GLenum;
readonly DEPTH: GLenum;
readonly DEPTH24_STENCIL8: GLenum;
readonly DEPTH32F_STENCIL8: GLenum;
readonly DEPTH_COMPONENT24: GLenum;
readonly DEPTH_COMPONENT32F: GLenum;
readonly DRAW_BUFFER0: GLenum;
readonly DRAW_BUFFER1: GLenum;
readonly DRAW_BUFFER10: GLenum;
readonly DRAW_BUFFER11: GLenum;
readonly DRAW_BUFFER12: GLenum;
readonly DRAW_BUFFER13: GLenum;
readonly DRAW_BUFFER14: GLenum;
readonly DRAW_BUFFER15: GLenum;
readonly DRAW_BUFFER2: GLenum;
readonly DRAW_BUFFER3: GLenum;
readonly DRAW_BUFFER4: GLenum;
readonly DRAW_BUFFER5: GLenum;
readonly DRAW_BUFFER6: GLenum;
readonly DRAW_BUFFER7: GLenum;
readonly DRAW_BUFFER8: GLenum;
readonly DRAW_BUFFER9: GLenum;
readonly DRAW_FRAMEBUFFER: GLenum;
readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
readonly DYNAMIC_COPY: GLenum;
readonly DYNAMIC_READ: GLenum;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
readonly FLOAT_MAT2x3: GLenum;
readonly FLOAT_MAT2x4: GLenum;
readonly FLOAT_MAT3x2: GLenum;
readonly FLOAT_MAT3x4: GLenum;
readonly FLOAT_MAT4x2: GLenum;
readonly FLOAT_MAT4x3: GLenum;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
readonly FRAMEBUFFER_DEFAULT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
readonly HALF_FLOAT: GLenum;
readonly INTERLEAVED_ATTRIBS: GLenum;
readonly INT_2_10_10_10_REV: GLenum;
readonly INT_SAMPLER_2D: GLenum;
readonly INT_SAMPLER_2D_ARRAY: GLenum;
readonly INT_SAMPLER_3D: GLenum;
readonly INT_SAMPLER_CUBE: GLenum;
readonly INVALID_INDEX: GLenum;
readonly MAX: GLenum;
readonly MAX_3D_TEXTURE_SIZE: GLenum;
readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
readonly MAX_COLOR_ATTACHMENTS: GLenum;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
readonly MAX_DRAW_BUFFERS: GLenum;
readonly MAX_ELEMENTS_INDICES: GLenum;
readonly MAX_ELEMENTS_VERTICES: GLenum;
readonly MAX_ELEMENT_INDEX: GLenum;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
readonly MAX_SAMPLES: GLenum;
readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
readonly MAX_TEXTURE_LOD_BIAS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
readonly MAX_VARYING_COMPONENTS: GLenum;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
readonly MIN: GLenum;
readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
readonly OBJECT_TYPE: GLenum;
readonly PACK_ROW_LENGTH: GLenum;
readonly PACK_SKIP_PIXELS: GLenum;
readonly PACK_SKIP_ROWS: GLenum;
readonly PIXEL_PACK_BUFFER: GLenum;
readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
readonly PIXEL_UNPACK_BUFFER: GLenum;
readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
readonly QUERY_RESULT: GLenum;
readonly QUERY_RESULT_AVAILABLE: GLenum;
readonly R11F_G11F_B10F: GLenum;
readonly R16F: GLenum;
readonly R16I: GLenum;
readonly R16UI: GLenum;
readonly R32F: GLenum;
readonly R32I: GLenum;
readonly R32UI: GLenum;
readonly R8: GLenum;
readonly R8I: GLenum;
readonly R8UI: GLenum;
readonly R8_SNORM: GLenum;
readonly RASTERIZER_DISCARD: GLenum;
readonly READ_BUFFER: GLenum;
readonly READ_FRAMEBUFFER: GLenum;
readonly READ_FRAMEBUFFER_BINDING: GLenum;
readonly RED: GLenum;
readonly RED_INTEGER: GLenum;
readonly RENDERBUFFER_SAMPLES: GLenum;
readonly RG: GLenum;
readonly RG16F: GLenum;
readonly RG16I: GLenum;
readonly RG16UI: GLenum;
readonly RG32F: GLenum;
readonly RG32I: GLenum;
readonly RG32UI: GLenum;
readonly RG8: GLenum;
readonly RG8I: GLenum;
readonly RG8UI: GLenum;
readonly RG8_SNORM: GLenum;
readonly RGB10_A2: GLenum;
readonly RGB10_A2UI: GLenum;
readonly RGB16F: GLenum;
readonly RGB16I: GLenum;
readonly RGB16UI: GLenum;
readonly RGB32F: GLenum;
readonly RGB32I: GLenum;
readonly RGB32UI: GLenum;
readonly RGB8: GLenum;
readonly RGB8I: GLenum;
readonly RGB8UI: GLenum;
readonly RGB8_SNORM: GLenum;
readonly RGB9_E5: GLenum;
readonly RGBA16F: GLenum;
readonly RGBA16I: GLenum;
readonly RGBA16UI: GLenum;
readonly RGBA32F: GLenum;
readonly RGBA32I: GLenum;
readonly RGBA32UI: GLenum;
readonly RGBA8: GLenum;
readonly RGBA8I: GLenum;
readonly RGBA8UI: GLenum;
readonly RGBA8_SNORM: GLenum;
readonly RGBA_INTEGER: GLenum;
readonly RGB_INTEGER: GLenum;
readonly RG_INTEGER: GLenum;
readonly SAMPLER_2D_ARRAY: GLenum;
readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
readonly SAMPLER_2D_SHADOW: GLenum;
readonly SAMPLER_3D: GLenum;
readonly SAMPLER_BINDING: GLenum;
readonly SAMPLER_CUBE_SHADOW: GLenum;
readonly SEPARATE_ATTRIBS: GLenum;
readonly SIGNALED: GLenum;
readonly SIGNED_NORMALIZED: GLenum;
readonly SRGB: GLenum;
readonly SRGB8: GLenum;
readonly SRGB8_ALPHA8: GLenum;
readonly STATIC_COPY: GLenum;
readonly STATIC_READ: GLenum;
readonly STENCIL: GLenum;
readonly STREAM_COPY: GLenum;
readonly STREAM_READ: GLenum;
readonly SYNC_CONDITION: GLenum;
readonly SYNC_FENCE: GLenum;
readonly SYNC_FLAGS: GLenum;
readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
readonly SYNC_STATUS: GLenum;
readonly TEXTURE_2D_ARRAY: GLenum;
readonly TEXTURE_3D: GLenum;
readonly TEXTURE_BASE_LEVEL: GLenum;
readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
readonly TEXTURE_BINDING_3D: GLenum;
readonly TEXTURE_COMPARE_FUNC: GLenum;
readonly TEXTURE_COMPARE_MODE: GLenum;
readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
readonly TEXTURE_MAX_LEVEL: GLenum;
readonly TEXTURE_MAX_LOD: GLenum;
readonly TEXTURE_MIN_LOD: GLenum;
readonly TEXTURE_WRAP_R: GLenum;
readonly TIMEOUT_EXPIRED: GLenum;
readonly TIMEOUT_IGNORED: GLint64;
readonly TRANSFORM_FEEDBACK: GLenum;
readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
readonly UNIFORM_ARRAY_STRIDE: GLenum;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
readonly UNIFORM_BLOCK_BINDING: GLenum;
readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
readonly UNIFORM_BLOCK_INDEX: GLenum;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
readonly UNIFORM_BUFFER: GLenum;
readonly UNIFORM_BUFFER_BINDING: GLenum;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
readonly UNIFORM_BUFFER_SIZE: GLenum;
readonly UNIFORM_BUFFER_START: GLenum;
readonly UNIFORM_IS_ROW_MAJOR: GLenum;
readonly UNIFORM_MATRIX_STRIDE: GLenum;
readonly UNIFORM_OFFSET: GLenum;
readonly UNIFORM_SIZE: GLenum;
readonly UNIFORM_TYPE: GLenum;
readonly UNPACK_IMAGE_HEIGHT: GLenum;
readonly UNPACK_ROW_LENGTH: GLenum;
readonly UNPACK_SKIP_IMAGES: GLenum;
readonly UNPACK_SKIP_PIXELS: GLenum;
readonly UNPACK_SKIP_ROWS: GLenum;
readonly UNSIGNALED: GLenum;
readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
readonly UNSIGNED_INT_24_8: GLenum;
readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
readonly UNSIGNED_INT_VEC2: GLenum;
readonly UNSIGNED_INT_VEC3: GLenum;
readonly UNSIGNED_INT_VEC4: GLenum;
readonly UNSIGNED_NORMALIZED: GLenum;
readonly VERTEX_ARRAY_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
readonly WAIT_FAILED: GLenum;
}
interface WebGL2RenderingContextOverloads {
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
}
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
interface WebGLActiveInfo {
readonly name: string;
readonly size: GLint;
readonly type: GLenum;
}
declare var WebGLActiveInfo: {
prototype: WebGLActiveInfo;
new(): WebGLActiveInfo;
};
/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
interface WebGLBuffer {
}
declare var WebGLBuffer: {
prototype: WebGLBuffer;
new(): WebGLBuffer;
};
/** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */
interface WebGLContextEvent extends Event {
readonly statusMessage: string;
}
declare var WebGLContextEvent: {
prototype: WebGLContextEvent;
new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
};
/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
interface WebGLFramebuffer {
}
declare var WebGLFramebuffer: {
prototype: WebGLFramebuffer;
new(): WebGLFramebuffer;
};
/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
interface WebGLProgram {
}
declare var WebGLProgram: {
prototype: WebGLProgram;
new(): WebGLProgram;
};
interface WebGLQuery {
}
declare var WebGLQuery: {
prototype: WebGLQuery;
new(): WebGLQuery;
};
/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
interface WebGLRenderbuffer {
}
declare var WebGLRenderbuffer: {
prototype: WebGLRenderbuffer;
new(): WebGLRenderbuffer;
};
/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
}
declare var WebGLRenderingContext: {
prototype: WebGLRenderingContext;
new(): WebGLRenderingContext;
readonly ACTIVE_ATTRIBUTES: GLenum;
readonly ACTIVE_TEXTURE: GLenum;
readonly ACTIVE_UNIFORMS: GLenum;
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
readonly ALPHA: GLenum;
readonly ALPHA_BITS: GLenum;
readonly ALWAYS: GLenum;
readonly ARRAY_BUFFER: GLenum;
readonly ARRAY_BUFFER_BINDING: GLenum;
readonly ATTACHED_SHADERS: GLenum;
readonly BACK: GLenum;
readonly BLEND: GLenum;
readonly BLEND_COLOR: GLenum;
readonly BLEND_DST_ALPHA: GLenum;
readonly BLEND_DST_RGB: GLenum;
readonly BLEND_EQUATION: GLenum;
readonly BLEND_EQUATION_ALPHA: GLenum;
readonly BLEND_EQUATION_RGB: GLenum;
readonly BLEND_SRC_ALPHA: GLenum;
readonly BLEND_SRC_RGB: GLenum;
readonly BLUE_BITS: GLenum;
readonly BOOL: GLenum;
readonly BOOL_VEC2: GLenum;
readonly BOOL_VEC3: GLenum;
readonly BOOL_VEC4: GLenum;
readonly BROWSER_DEFAULT_WEBGL: GLenum;
readonly BUFFER_SIZE: GLenum;
readonly BUFFER_USAGE: GLenum;
readonly BYTE: GLenum;
readonly CCW: GLenum;
readonly CLAMP_TO_EDGE: GLenum;
readonly COLOR_ATTACHMENT0: GLenum;
readonly COLOR_BUFFER_BIT: GLenum;
readonly COLOR_CLEAR_VALUE: GLenum;
readonly COLOR_WRITEMASK: GLenum;
readonly COMPILE_STATUS: GLenum;
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
readonly CONSTANT_ALPHA: GLenum;
readonly CONSTANT_COLOR: GLenum;
readonly CONTEXT_LOST_WEBGL: GLenum;
readonly CULL_FACE: GLenum;
readonly CULL_FACE_MODE: GLenum;
readonly CURRENT_PROGRAM: GLenum;
readonly CURRENT_VERTEX_ATTRIB: GLenum;
readonly CW: GLenum;
readonly DECR: GLenum;
readonly DECR_WRAP: GLenum;
readonly DELETE_STATUS: GLenum;
readonly DEPTH_ATTACHMENT: GLenum;
readonly DEPTH_BITS: GLenum;
readonly DEPTH_BUFFER_BIT: GLenum;
readonly DEPTH_CLEAR_VALUE: GLenum;
readonly DEPTH_COMPONENT: GLenum;
readonly DEPTH_COMPONENT16: GLenum;
readonly DEPTH_FUNC: GLenum;
readonly DEPTH_RANGE: GLenum;
readonly DEPTH_STENCIL: GLenum;
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
readonly DEPTH_TEST: GLenum;
readonly DEPTH_WRITEMASK: GLenum;
readonly DITHER: GLenum;
readonly DONT_CARE: GLenum;
readonly DST_ALPHA: GLenum;
readonly DST_COLOR: GLenum;
readonly DYNAMIC_DRAW: GLenum;
readonly ELEMENT_ARRAY_BUFFER: GLenum;
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
readonly EQUAL: GLenum;
readonly FASTEST: GLenum;
readonly FLOAT: GLenum;
readonly FLOAT_MAT2: GLenum;
readonly FLOAT_MAT3: GLenum;
readonly FLOAT_MAT4: GLenum;
readonly FLOAT_VEC2: GLenum;
readonly FLOAT_VEC3: GLenum;
readonly FLOAT_VEC4: GLenum;
readonly FRAGMENT_SHADER: GLenum;
readonly FRAMEBUFFER: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
readonly FRAMEBUFFER_BINDING: GLenum;
readonly FRAMEBUFFER_COMPLETE: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
readonly FRONT: GLenum;
readonly FRONT_AND_BACK: GLenum;
readonly FRONT_FACE: GLenum;
readonly FUNC_ADD: GLenum;
readonly FUNC_REVERSE_SUBTRACT: GLenum;
readonly FUNC_SUBTRACT: GLenum;
readonly GENERATE_MIPMAP_HINT: GLenum;
readonly GEQUAL: GLenum;
readonly GREATER: GLenum;
readonly GREEN_BITS: GLenum;
readonly HIGH_FLOAT: GLenum;
readonly HIGH_INT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
readonly INCR: GLenum;
readonly INCR_WRAP: GLenum;
readonly INT: GLenum;
readonly INT_VEC2: GLenum;
readonly INT_VEC3: GLenum;
readonly INT_VEC4: GLenum;
readonly INVALID_ENUM: GLenum;
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
readonly INVALID_OPERATION: GLenum;
readonly INVALID_VALUE: GLenum;
readonly INVERT: GLenum;
readonly KEEP: GLenum;
readonly LEQUAL: GLenum;
readonly LESS: GLenum;
readonly LINEAR: GLenum;
readonly LINEAR_MIPMAP_LINEAR: GLenum;
readonly LINEAR_MIPMAP_NEAREST: GLenum;
readonly LINES: GLenum;
readonly LINE_LOOP: GLenum;
readonly LINE_STRIP: GLenum;
readonly LINE_WIDTH: GLenum;
readonly LINK_STATUS: GLenum;
readonly LOW_FLOAT: GLenum;
readonly LOW_INT: GLenum;
readonly LUMINANCE: GLenum;
readonly LUMINANCE_ALPHA: GLenum;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
readonly MAX_RENDERBUFFER_SIZE: GLenum;
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_TEXTURE_SIZE: GLenum;
readonly MAX_VARYING_VECTORS: GLenum;
readonly MAX_VERTEX_ATTRIBS: GLenum;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
readonly MAX_VIEWPORT_DIMS: GLenum;
readonly MEDIUM_FLOAT: GLenum;
readonly MEDIUM_INT: GLenum;
readonly MIRRORED_REPEAT: GLenum;
readonly NEAREST: GLenum;
readonly NEAREST_MIPMAP_LINEAR: GLenum;
readonly NEAREST_MIPMAP_NEAREST: GLenum;
readonly NEVER: GLenum;
readonly NICEST: GLenum;
readonly NONE: GLenum;
readonly NOTEQUAL: GLenum;
readonly NO_ERROR: GLenum;
readonly ONE: GLenum;
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
readonly ONE_MINUS_DST_ALPHA: GLenum;
readonly ONE_MINUS_DST_COLOR: GLenum;
readonly ONE_MINUS_SRC_ALPHA: GLenum;
readonly ONE_MINUS_SRC_COLOR: GLenum;
readonly OUT_OF_MEMORY: GLenum;
readonly PACK_ALIGNMENT: GLenum;
readonly POINTS: GLenum;
readonly POLYGON_OFFSET_FACTOR: GLenum;
readonly POLYGON_OFFSET_FILL: GLenum;
readonly POLYGON_OFFSET_UNITS: GLenum;
readonly RED_BITS: GLenum;
readonly RENDERBUFFER: GLenum;
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
readonly RENDERBUFFER_BINDING: GLenum;
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
readonly RENDERBUFFER_HEIGHT: GLenum;
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
readonly RENDERBUFFER_RED_SIZE: GLenum;
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
readonly RENDERBUFFER_WIDTH: GLenum;
readonly RENDERER: GLenum;
readonly REPEAT: GLenum;
readonly REPLACE: GLenum;
readonly RGB: GLenum;
readonly RGB565: GLenum;
readonly RGB5_A1: GLenum;
readonly RGBA: GLenum;
readonly RGBA4: GLenum;
readonly SAMPLER_2D: GLenum;
readonly SAMPLER_CUBE: GLenum;
readonly SAMPLES: GLenum;
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
readonly SAMPLE_BUFFERS: GLenum;
readonly SAMPLE_COVERAGE: GLenum;
readonly SAMPLE_COVERAGE_INVERT: GLenum;
readonly SAMPLE_COVERAGE_VALUE: GLenum;
readonly SCISSOR_BOX: GLenum;
readonly SCISSOR_TEST: GLenum;
readonly SHADER_TYPE: GLenum;
readonly SHADING_LANGUAGE_VERSION: GLenum;
readonly SHORT: GLenum;
readonly SRC_ALPHA: GLenum;
readonly SRC_ALPHA_SATURATE: GLenum;
readonly SRC_COLOR: GLenum;
readonly STATIC_DRAW: GLenum;
readonly STENCIL_ATTACHMENT: GLenum;
readonly STENCIL_BACK_FAIL: GLenum;
readonly STENCIL_BACK_FUNC: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_BACK_REF: GLenum;
readonly STENCIL_BACK_VALUE_MASK: GLenum;
readonly STENCIL_BACK_WRITEMASK: GLenum;
readonly STENCIL_BITS: GLenum;
readonly STENCIL_BUFFER_BIT: GLenum;
readonly STENCIL_CLEAR_VALUE: GLenum;
readonly STENCIL_FAIL: GLenum;
readonly STENCIL_FUNC: GLenum;
readonly STENCIL_INDEX8: GLenum;
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_REF: GLenum;
readonly STENCIL_TEST: GLenum;
readonly STENCIL_VALUE_MASK: GLenum;
readonly STENCIL_WRITEMASK: GLenum;
readonly STREAM_DRAW: GLenum;
readonly SUBPIXEL_BITS: GLenum;
readonly TEXTURE: GLenum;
readonly TEXTURE0: GLenum;
readonly TEXTURE1: GLenum;
readonly TEXTURE10: GLenum;
readonly TEXTURE11: GLenum;
readonly TEXTURE12: GLenum;
readonly TEXTURE13: GLenum;
readonly TEXTURE14: GLenum;
readonly TEXTURE15: GLenum;
readonly TEXTURE16: GLenum;
readonly TEXTURE17: GLenum;
readonly TEXTURE18: GLenum;
readonly TEXTURE19: GLenum;
readonly TEXTURE2: GLenum;
readonly TEXTURE20: GLenum;
readonly TEXTURE21: GLenum;
readonly TEXTURE22: GLenum;
readonly TEXTURE23: GLenum;
readonly TEXTURE24: GLenum;
readonly TEXTURE25: GLenum;
readonly TEXTURE26: GLenum;
readonly TEXTURE27: GLenum;
readonly TEXTURE28: GLenum;
readonly TEXTURE29: GLenum;
readonly TEXTURE3: GLenum;
readonly TEXTURE30: GLenum;
readonly TEXTURE31: GLenum;
readonly TEXTURE4: GLenum;
readonly TEXTURE5: GLenum;
readonly TEXTURE6: GLenum;
readonly TEXTURE7: GLenum;
readonly TEXTURE8: GLenum;
readonly TEXTURE9: GLenum;
readonly TEXTURE_2D: GLenum;
readonly TEXTURE_BINDING_2D: GLenum;
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
readonly TEXTURE_MAG_FILTER: GLenum;
readonly TEXTURE_MIN_FILTER: GLenum;
readonly TEXTURE_WRAP_S: GLenum;
readonly TEXTURE_WRAP_T: GLenum;
readonly TRIANGLES: GLenum;
readonly TRIANGLE_FAN: GLenum;
readonly TRIANGLE_STRIP: GLenum;
readonly UNPACK_ALIGNMENT: GLenum;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
readonly UNSIGNED_BYTE: GLenum;
readonly UNSIGNED_INT: GLenum;
readonly UNSIGNED_SHORT: GLenum;
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
readonly UNSIGNED_SHORT_5_6_5: GLenum;
readonly VALIDATE_STATUS: GLenum;
readonly VENDOR: GLenum;
readonly VERSION: GLenum;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
readonly VERTEX_SHADER: GLenum;
readonly VIEWPORT: GLenum;
readonly ZERO: GLenum;
};
interface WebGLRenderingContextBase {
readonly canvas: HTMLCanvasElement;
readonly drawingBufferHeight: GLsizei;
readonly drawingBufferWidth: GLsizei;
activeTexture(texture: GLenum): void;
attachShader(program: WebGLProgram, shader: WebGLShader): void;
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
blendEquation(mode: GLenum): void;
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
checkFramebufferStatus(target: GLenum): GLenum;
clear(mask: GLbitfield): void;
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
clearDepth(depth: GLclampf): void;
clearStencil(s: GLint): void;
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
compileShader(shader: WebGLShader): void;
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createBuffer(): WebGLBuffer | null;
createFramebuffer(): WebGLFramebuffer | null;
createProgram(): WebGLProgram | null;
createRenderbuffer(): WebGLRenderbuffer | null;
createShader(type: GLenum): WebGLShader | null;
createTexture(): WebGLTexture | null;
cullFace(mode: GLenum): void;
deleteBuffer(buffer: WebGLBuffer | null): void;
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
deleteProgram(program: WebGLProgram | null): void;
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
deleteShader(shader: WebGLShader | null): void;
deleteTexture(texture: WebGLTexture | null): void;
depthFunc(func: GLenum): void;
depthMask(flag: GLboolean): void;
depthRange(zNear: GLclampf, zFar: GLclampf): void;
detachShader(program: WebGLProgram, shader: WebGLShader): void;
disable(cap: GLenum): void;
disableVertexAttribArray(index: GLuint): void;
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
enable(cap: GLenum): void;
enableVertexAttribArray(index: GLuint): void;
finish(): void;
flush(): void;
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
frontFace(mode: GLenum): void;
generateMipmap(target: GLenum): void;
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
getAttribLocation(program: WebGLProgram, name: string): GLint;
getBufferParameter(target: GLenum, pname: GLenum): any;
getContextAttributes(): WebGLContextAttributes | null;
getError(): GLenum;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
getExtension(name: string): any;
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
getParameter(pname: GLenum): any;
getProgramInfoLog(program: WebGLProgram): string | null;
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
getShaderInfoLog(shader: WebGLShader): string | null;
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
getShaderSource(shader: WebGLShader): string | null;
getSupportedExtensions(): string[] | null;
getTexParameter(target: GLenum, pname: GLenum): any;
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
getVertexAttrib(index: GLuint, pname: GLenum): any;
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
hint(target: GLenum, mode: GLenum): void;
isBuffer(buffer: WebGLBuffer | null): GLboolean;
isContextLost(): boolean;
isEnabled(cap: GLenum): GLboolean;
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
isProgram(program: WebGLProgram | null): GLboolean;
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
isShader(shader: WebGLShader | null): GLboolean;
isTexture(texture: WebGLTexture | null): GLboolean;
lineWidth(width: GLfloat): void;
linkProgram(program: WebGLProgram): void;
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
polygonOffset(factor: GLfloat, units: GLfloat): void;
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
sampleCoverage(value: GLclampf, invert: GLboolean): void;
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
shaderSource(shader: WebGLShader, source: string): void;
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
stencilMask(mask: GLuint): void;
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
useProgram(program: WebGLProgram | null): void;
validateProgram(program: WebGLProgram): void;
vertexAttrib1f(index: GLuint, x: GLfloat): void;
vertexAttrib1fv(index: GLuint, values: Float32List): void;
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
vertexAttrib2fv(index: GLuint, values: Float32List): void;
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
vertexAttrib3fv(index: GLuint, values: Float32List): void;
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
vertexAttrib4fv(index: GLuint, values: Float32List): void;
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
readonly ACTIVE_ATTRIBUTES: GLenum;
readonly ACTIVE_TEXTURE: GLenum;
readonly ACTIVE_UNIFORMS: GLenum;
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
readonly ALPHA: GLenum;
readonly ALPHA_BITS: GLenum;
readonly ALWAYS: GLenum;
readonly ARRAY_BUFFER: GLenum;
readonly ARRAY_BUFFER_BINDING: GLenum;
readonly ATTACHED_SHADERS: GLenum;
readonly BACK: GLenum;
readonly BLEND: GLenum;
readonly BLEND_COLOR: GLenum;
readonly BLEND_DST_ALPHA: GLenum;
readonly BLEND_DST_RGB: GLenum;
readonly BLEND_EQUATION: GLenum;
readonly BLEND_EQUATION_ALPHA: GLenum;
readonly BLEND_EQUATION_RGB: GLenum;
readonly BLEND_SRC_ALPHA: GLenum;
readonly BLEND_SRC_RGB: GLenum;
readonly BLUE_BITS: GLenum;
readonly BOOL: GLenum;
readonly BOOL_VEC2: GLenum;
readonly BOOL_VEC3: GLenum;
readonly BOOL_VEC4: GLenum;
readonly BROWSER_DEFAULT_WEBGL: GLenum;
readonly BUFFER_SIZE: GLenum;
readonly BUFFER_USAGE: GLenum;
readonly BYTE: GLenum;
readonly CCW: GLenum;
readonly CLAMP_TO_EDGE: GLenum;
readonly COLOR_ATTACHMENT0: GLenum;
readonly COLOR_BUFFER_BIT: GLenum;
readonly COLOR_CLEAR_VALUE: GLenum;
readonly COLOR_WRITEMASK: GLenum;
readonly COMPILE_STATUS: GLenum;
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
readonly CONSTANT_ALPHA: GLenum;
readonly CONSTANT_COLOR: GLenum;
readonly CONTEXT_LOST_WEBGL: GLenum;
readonly CULL_FACE: GLenum;
readonly CULL_FACE_MODE: GLenum;
readonly CURRENT_PROGRAM: GLenum;
readonly CURRENT_VERTEX_ATTRIB: GLenum;
readonly CW: GLenum;
readonly DECR: GLenum;
readonly DECR_WRAP: GLenum;
readonly DELETE_STATUS: GLenum;
readonly DEPTH_ATTACHMENT: GLenum;
readonly DEPTH_BITS: GLenum;
readonly DEPTH_BUFFER_BIT: GLenum;
readonly DEPTH_CLEAR_VALUE: GLenum;
readonly DEPTH_COMPONENT: GLenum;
readonly DEPTH_COMPONENT16: GLenum;
readonly DEPTH_FUNC: GLenum;
readonly DEPTH_RANGE: GLenum;
readonly DEPTH_STENCIL: GLenum;
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
readonly DEPTH_TEST: GLenum;
readonly DEPTH_WRITEMASK: GLenum;
readonly DITHER: GLenum;
readonly DONT_CARE: GLenum;
readonly DST_ALPHA: GLenum;
readonly DST_COLOR: GLenum;
readonly DYNAMIC_DRAW: GLenum;
readonly ELEMENT_ARRAY_BUFFER: GLenum;
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
readonly EQUAL: GLenum;
readonly FASTEST: GLenum;
readonly FLOAT: GLenum;
readonly FLOAT_MAT2: GLenum;
readonly FLOAT_MAT3: GLenum;
readonly FLOAT_MAT4: GLenum;
readonly FLOAT_VEC2: GLenum;
readonly FLOAT_VEC3: GLenum;
readonly FLOAT_VEC4: GLenum;
readonly FRAGMENT_SHADER: GLenum;
readonly FRAMEBUFFER: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
readonly FRAMEBUFFER_BINDING: GLenum;
readonly FRAMEBUFFER_COMPLETE: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
readonly FRONT: GLenum;
readonly FRONT_AND_BACK: GLenum;
readonly FRONT_FACE: GLenum;
readonly FUNC_ADD: GLenum;
readonly FUNC_REVERSE_SUBTRACT: GLenum;
readonly FUNC_SUBTRACT: GLenum;
readonly GENERATE_MIPMAP_HINT: GLenum;
readonly GEQUAL: GLenum;
readonly GREATER: GLenum;
readonly GREEN_BITS: GLenum;
readonly HIGH_FLOAT: GLenum;
readonly HIGH_INT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
readonly INCR: GLenum;
readonly INCR_WRAP: GLenum;
readonly INT: GLenum;
readonly INT_VEC2: GLenum;
readonly INT_VEC3: GLenum;
readonly INT_VEC4: GLenum;
readonly INVALID_ENUM: GLenum;
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
readonly INVALID_OPERATION: GLenum;
readonly INVALID_VALUE: GLenum;
readonly INVERT: GLenum;
readonly KEEP: GLenum;
readonly LEQUAL: GLenum;
readonly LESS: GLenum;
readonly LINEAR: GLenum;
readonly LINEAR_MIPMAP_LINEAR: GLenum;
readonly LINEAR_MIPMAP_NEAREST: GLenum;
readonly LINES: GLenum;
readonly LINE_LOOP: GLenum;
readonly LINE_STRIP: GLenum;
readonly LINE_WIDTH: GLenum;
readonly LINK_STATUS: GLenum;
readonly LOW_FLOAT: GLenum;
readonly LOW_INT: GLenum;
readonly LUMINANCE: GLenum;
readonly LUMINANCE_ALPHA: GLenum;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
readonly MAX_RENDERBUFFER_SIZE: GLenum;
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_TEXTURE_SIZE: GLenum;
readonly MAX_VARYING_VECTORS: GLenum;
readonly MAX_VERTEX_ATTRIBS: GLenum;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
readonly MAX_VIEWPORT_DIMS: GLenum;
readonly MEDIUM_FLOAT: GLenum;
readonly MEDIUM_INT: GLenum;
readonly MIRRORED_REPEAT: GLenum;
readonly NEAREST: GLenum;
readonly NEAREST_MIPMAP_LINEAR: GLenum;
readonly NEAREST_MIPMAP_NEAREST: GLenum;
readonly NEVER: GLenum;
readonly NICEST: GLenum;
readonly NONE: GLenum;
readonly NOTEQUAL: GLenum;
readonly NO_ERROR: GLenum;
readonly ONE: GLenum;
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
readonly ONE_MINUS_DST_ALPHA: GLenum;
readonly ONE_MINUS_DST_COLOR: GLenum;
readonly ONE_MINUS_SRC_ALPHA: GLenum;
readonly ONE_MINUS_SRC_COLOR: GLenum;
readonly OUT_OF_MEMORY: GLenum;
readonly PACK_ALIGNMENT: GLenum;
readonly POINTS: GLenum;
readonly POLYGON_OFFSET_FACTOR: GLenum;
readonly POLYGON_OFFSET_FILL: GLenum;
readonly POLYGON_OFFSET_UNITS: GLenum;
readonly RED_BITS: GLenum;
readonly RENDERBUFFER: GLenum;
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
readonly RENDERBUFFER_BINDING: GLenum;
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
readonly RENDERBUFFER_HEIGHT: GLenum;
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
readonly RENDERBUFFER_RED_SIZE: GLenum;
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
readonly RENDERBUFFER_WIDTH: GLenum;
readonly RENDERER: GLenum;
readonly REPEAT: GLenum;
readonly REPLACE: GLenum;
readonly RGB: GLenum;
readonly RGB565: GLenum;
readonly RGB5_A1: GLenum;
readonly RGBA: GLenum;
readonly RGBA4: GLenum;
readonly SAMPLER_2D: GLenum;
readonly SAMPLER_CUBE: GLenum;
readonly SAMPLES: GLenum;
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
readonly SAMPLE_BUFFERS: GLenum;
readonly SAMPLE_COVERAGE: GLenum;
readonly SAMPLE_COVERAGE_INVERT: GLenum;
readonly SAMPLE_COVERAGE_VALUE: GLenum;
readonly SCISSOR_BOX: GLenum;
readonly SCISSOR_TEST: GLenum;
readonly SHADER_TYPE: GLenum;
readonly SHADING_LANGUAGE_VERSION: GLenum;
readonly SHORT: GLenum;
readonly SRC_ALPHA: GLenum;
readonly SRC_ALPHA_SATURATE: GLenum;
readonly SRC_COLOR: GLenum;
readonly STATIC_DRAW: GLenum;
readonly STENCIL_ATTACHMENT: GLenum;
readonly STENCIL_BACK_FAIL: GLenum;
readonly STENCIL_BACK_FUNC: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_BACK_REF: GLenum;
readonly STENCIL_BACK_VALUE_MASK: GLenum;
readonly STENCIL_BACK_WRITEMASK: GLenum;
readonly STENCIL_BITS: GLenum;
readonly STENCIL_BUFFER_BIT: GLenum;
readonly STENCIL_CLEAR_VALUE: GLenum;
readonly STENCIL_FAIL: GLenum;
readonly STENCIL_FUNC: GLenum;
readonly STENCIL_INDEX8: GLenum;
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_REF: GLenum;
readonly STENCIL_TEST: GLenum;
readonly STENCIL_VALUE_MASK: GLenum;
readonly STENCIL_WRITEMASK: GLenum;
readonly STREAM_DRAW: GLenum;
readonly SUBPIXEL_BITS: GLenum;
readonly TEXTURE: GLenum;
readonly TEXTURE0: GLenum;
readonly TEXTURE1: GLenum;
readonly TEXTURE10: GLenum;
readonly TEXTURE11: GLenum;
readonly TEXTURE12: GLenum;
readonly TEXTURE13: GLenum;
readonly TEXTURE14: GLenum;
readonly TEXTURE15: GLenum;
readonly TEXTURE16: GLenum;
readonly TEXTURE17: GLenum;
readonly TEXTURE18: GLenum;
readonly TEXTURE19: GLenum;
readonly TEXTURE2: GLenum;
readonly TEXTURE20: GLenum;
readonly TEXTURE21: GLenum;
readonly TEXTURE22: GLenum;
readonly TEXTURE23: GLenum;
readonly TEXTURE24: GLenum;
readonly TEXTURE25: GLenum;
readonly TEXTURE26: GLenum;
readonly TEXTURE27: GLenum;
readonly TEXTURE28: GLenum;
readonly TEXTURE29: GLenum;
readonly TEXTURE3: GLenum;
readonly TEXTURE30: GLenum;
readonly TEXTURE31: GLenum;
readonly TEXTURE4: GLenum;
readonly TEXTURE5: GLenum;
readonly TEXTURE6: GLenum;
readonly TEXTURE7: GLenum;
readonly TEXTURE8: GLenum;
readonly TEXTURE9: GLenum;
readonly TEXTURE_2D: GLenum;
readonly TEXTURE_BINDING_2D: GLenum;
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
readonly TEXTURE_MAG_FILTER: GLenum;
readonly TEXTURE_MIN_FILTER: GLenum;
readonly TEXTURE_WRAP_S: GLenum;
readonly TEXTURE_WRAP_T: GLenum;
readonly TRIANGLES: GLenum;
readonly TRIANGLE_FAN: GLenum;
readonly TRIANGLE_STRIP: GLenum;
readonly UNPACK_ALIGNMENT: GLenum;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
readonly UNSIGNED_BYTE: GLenum;
readonly UNSIGNED_INT: GLenum;
readonly UNSIGNED_SHORT: GLenum;
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
readonly UNSIGNED_SHORT_5_6_5: GLenum;
readonly VALIDATE_STATUS: GLenum;
readonly VENDOR: GLenum;
readonly VERSION: GLenum;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
readonly VERTEX_SHADER: GLenum;
readonly VIEWPORT: GLenum;
readonly ZERO: GLenum;
}
interface WebGLRenderingContextOverloads {
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}
interface WebGLSampler {
}
declare var WebGLSampler: {
prototype: WebGLSampler;
new(): WebGLSampler;
};
/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
interface WebGLShader {
}
declare var WebGLShader: {
prototype: WebGLShader;
new(): WebGLShader;
};
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
interface WebGLShaderPrecisionFormat {
readonly precision: GLint;
readonly rangeMax: GLint;
readonly rangeMin: GLint;
}
declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat;
};
interface WebGLSync {
}
declare var WebGLSync: {
prototype: WebGLSync;
new(): WebGLSync;
};
/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
interface WebGLTexture {
}
declare var WebGLTexture: {
prototype: WebGLTexture;
new(): WebGLTexture;
};
interface WebGLTransformFeedback {
}
declare var WebGLTransformFeedback: {
prototype: WebGLTransformFeedback;
new(): WebGLTransformFeedback;
};
/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
interface WebGLUniformLocation {
}
declare var WebGLUniformLocation: {
prototype: WebGLUniformLocation;
new(): WebGLUniformLocation;
};
interface WebGLVertexArrayObject {
}
declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject;
};
interface WebGLVertexArrayObjectOES {
}
interface WebSocketEventMap {
"close": CloseEvent;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
interface WebSocket extends EventTarget {
/**
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
*
* Can be set, to change how binary data is returned. The default is "blob".
*/
binaryType: BinaryType;
/**
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
*
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
*/
readonly bufferedAmount: number;
/**
* Returns the extensions selected by the server, if any.
*/
readonly extensions: string;
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
onerror: ((this: WebSocket, ev: Event) => any) | null;
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
onopen: ((this: WebSocket, ev: Event) => any) | null;
/**
* Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation.
*/
readonly protocol: string;
/**
* Returns the state of the WebSocket object's connection. It can have the values described below.
*/
readonly readyState: number;
/**
* Returns the URL that was used to establish the WebSocket connection.
*/
readonly url: string;
/**
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
*/
close(code?: number, reason?: string): void;
/**
* Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.
*/
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
readonly CLOSED: number;
readonly CLOSING: number;
readonly CONNECTING: number;
readonly OPEN: number;
addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WebSocket: {
prototype: WebSocket;
new(url: string | URL, protocols?: string | string[]): WebSocket;
readonly CLOSED: number;
readonly CLOSING: number;
readonly CONNECTING: number;
readonly OPEN: number;
};
/** Events that occur due to the user moving a mouse wheel or similar input device. */
interface WheelEvent extends MouseEvent {
readonly deltaMode: number;
readonly deltaX: number;
readonly deltaY: number;
readonly deltaZ: number;
readonly DOM_DELTA_LINE: number;
readonly DOM_DELTA_PAGE: number;
readonly DOM_DELTA_PIXEL: number;
}
declare var WheelEvent: {
prototype: WheelEvent;
new(type: string, eventInitDict?: WheelEventInit): WheelEvent;
readonly DOM_DELTA_LINE: number;
readonly DOM_DELTA_PAGE: number;
readonly DOM_DELTA_PIXEL: number;
};
interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
"devicemotion": DeviceMotionEvent;
"deviceorientation": DeviceOrientationEvent;
"gamepadconnected": GamepadEvent;
"gamepaddisconnected": GamepadEvent;
"orientationchange": Event;
}
/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */
interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
/** @deprecated This is a legacy alias of \`navigator\`. */
readonly clientInformation: Navigator;
/**
* Returns true if the window has been closed, false otherwise.
*/
readonly closed: boolean;
/**
* Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.
*/
readonly customElements: CustomElementRegistry;
readonly devicePixelRatio: number;
readonly document: Document;
/** @deprecated */
readonly event: Event | undefined;
/** @deprecated */
readonly external: External;
readonly frameElement: Element | null;
readonly frames: WindowProxy;
readonly history: History;
readonly innerHeight: number;
readonly innerWidth: number;
readonly length: number;
get location(): Location;
set location(href: string | Location);
/**
* Returns true if the location bar is visible; otherwise, returns false.
*/
readonly locationbar: BarProp;
/**
* Returns true if the menu bar is visible; otherwise, returns false.
*/
readonly menubar: BarProp;
name: string;
readonly navigator: Navigator;
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/** @deprecated */
onorientationchange: ((this: Window, ev: Event) => any) | null;
opener: any;
/** @deprecated */
readonly orientation: number;
readonly outerHeight: number;
readonly outerWidth: number;
/** @deprecated This is a legacy alias of \`scrollX\`. */
readonly pageXOffset: number;
/** @deprecated This is a legacy alias of \`scrollY\`. */
readonly pageYOffset: number;
/** Refers to either the parent WindowProxy, or itself. It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent. */
readonly parent: WindowProxy;
/**
* Returns true if the personal bar is visible; otherwise, returns false.
*/
readonly personalbar: BarProp;
readonly screen: Screen;
readonly screenLeft: number;
readonly screenTop: number;
readonly screenX: number;
readonly screenY: number;
readonly scrollX: number;
readonly scrollY: number;
/**
* Returns true if the scrollbars are visible; otherwise, returns false.
*/
readonly scrollbars: BarProp;
readonly self: Window & typeof globalThis;
readonly speechSynthesis: SpeechSynthesis;
/** @deprecated */
status: string;
/**
* Returns true if the status bar is visible; otherwise, returns false.
*/
readonly statusbar: BarProp;
/**
* Returns true if the toolbar is visible; otherwise, returns false.
*/
readonly toolbar: BarProp;
readonly top: WindowProxy | null;
readonly visualViewport: VisualViewport;
readonly window: Window & typeof globalThis;
alert(message?: any): void;
blur(): void;
cancelIdleCallback(handle: number): void;
/** @deprecated */
captureEvents(): void;
/**
* Closes the window.
*/
close(): void;
confirm(message?: string): boolean;
/**
* Moves the focus to the window's browsing context, if any.
*/
focus(): void;
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
getSelection(): Selection | null;
matchMedia(query: string): MediaQueryList;
moveBy(x: number, y: number): void;
moveTo(x: number, y: number): void;
open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
/**
* Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
*
* Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
*
* If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
*
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
*/
postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
postMessage(message: any, options?: WindowPostMessageOptions): void;
print(): void;
prompt(message?: string, _default?: string): string | null;
/** @deprecated */
releaseEvents(): void;
requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
resizeBy(x: number, y: number): void;
resizeTo(width: number, height: number): void;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* Cancels the document load.
*/
stop(): void;
addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: Window;
}
declare var Window: {
prototype: Window;
new(): Window;
};
interface WindowEventHandlersEventMap {
"afterprint": Event;
"beforeprint": Event;
"beforeunload": BeforeUnloadEvent;
"gamepadconnected": Event;
"gamepaddisconnected": Event;
"hashchange": Event;
"languagechange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
"offline": Event;
"online": Event;
"pagehide": PageTransitionEvent;
"pageshow": PageTransitionEvent;
"popstate": PopStateEvent;
"rejectionhandled": PromiseRejectionEvent;
"storage": StorageEvent;
"unhandledrejection": PromiseRejectionEvent;
"unload": Event;
}
interface WindowEventHandlers {
onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;
ongamepadconnected: ((this: WindowEventHandlers, ev: Event) => any) | null;
ongamepaddisconnected: ((this: WindowEventHandlers, ev: Event) => any) | null;
onhashchange: ((this: WindowEventHandlers, ev: Event) => any) | null;
onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;
onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;
ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;
onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface WindowLocalStorage {
readonly localStorage: Storage;
}
interface WindowOrWorkerGlobalScope {
readonly caches: CacheStorage;
readonly crossOriginIsolated: boolean;
readonly crypto: Crypto;
readonly indexedDB: IDBFactory;
readonly isSecureContext: boolean;
readonly origin: string;
readonly performance: Performance;
atob(data: string): string;
btoa(data: string): string;
clearInterval(handle?: number): void;
clearTimeout(handle?: number): void;
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
queueMicrotask(callback: VoidFunction): void;
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
}
interface WindowSessionStorage {
readonly sessionStorage: Storage;
}
interface WorkerEventMap extends AbstractWorkerEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */
interface Worker extends EventTarget, AbstractWorker {
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
/**
* Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: PostMessageOptions): void;
/**
* Aborts worker's associated global environment.
*/
terminate(): void;
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Worker: {
prototype: Worker;
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
};
interface Worklet {
/**
* Loads and executes the module script given by moduleURL into all of worklet's global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes.
*
* The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".
*
* Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing.
*/
addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;
}
declare var Worklet: {
prototype: Worklet;
new(): Worklet;
};
/** This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
interface WritableStream<W = any> {
readonly locked: boolean;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
getWriter(): WritableStreamDefaultWriter<W>;
}
declare var WritableStream: {
prototype: WritableStream;
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
};
/** This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
interface WritableStreamDefaultController {
error(e?: any): void;
}
declare var WritableStreamDefaultController: {
prototype: WritableStreamDefaultController;
new(): WritableStreamDefaultController;
};
/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */
interface WritableStreamDefaultWriter<W = any> {
readonly closed: Promise<undefined>;
readonly desiredSize: number | null;
readonly ready: Promise<undefined>;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
releaseLock(): void;
write(chunk?: W): Promise<void>;
}
declare var WritableStreamDefaultWriter: {
prototype: WritableStreamDefaultWriter;
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
};
/** An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents. */
interface XMLDocument extends Document {
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLDocument: {
prototype: XMLDocument;
new(): XMLDocument;
};
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
"readystatechange": Event;
}
/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
/**
* Returns client's state.
*/
readonly readyState: number;
/**
* Returns the response body.
*/
readonly response: any;
/**
* Returns response as text.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*/
readonly responseText: string;
/**
* Returns the response type.
*
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
*
* When set: setting to "document" is ignored if current global object is not a Window object.
*
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
responseType: XMLHttpRequestResponseType;
readonly responseURL: string;
/**
* Returns the response as document.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".
*/
readonly responseXML: Document | null;
readonly status: number;
readonly statusText: string;
/**
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
timeout: number;
/**
* Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
*/
readonly upload: XMLHttpRequestUpload;
/**
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
*
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
*/
withCredentials: boolean;
/**
* Cancels any network activity.
*/
abort(): void;
getAllResponseHeaders(): string;
getResponseHeader(name: string): string | null;
/**
* Sets the request method, request URL, and synchronous flag.
*
* Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
*
* Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
*
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
*/
open(method: string, url: string | URL): void;
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
/**
* Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
*
* Throws an "InvalidStateError" DOMException if state is loading or done.
*/
overrideMimeType(mime: string): void;
/**
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*/
send(body?: Document | XMLHttpRequestBodyInit | null): void;
/**
* Combines a header in author request headers.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
*/
setRequestHeader(name: string, value: string): void;
readonly DONE: number;
readonly HEADERS_RECEIVED: number;
readonly LOADING: number;
readonly OPENED: number;
readonly UNSENT: number;
addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequest: {
prototype: XMLHttpRequest;
new(): XMLHttpRequest;
readonly DONE: number;
readonly HEADERS_RECEIVED: number;
readonly LOADING: number;
readonly OPENED: number;
readonly UNSENT: number;
};
interface XMLHttpRequestEventTargetEventMap {
"abort": ProgressEvent<XMLHttpRequestEventTarget>;
"error": ProgressEvent<XMLHttpRequestEventTarget>;
"load": ProgressEvent<XMLHttpRequestEventTarget>;
"loadend": ProgressEvent<XMLHttpRequestEventTarget>;
"loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
"progress": ProgressEvent<XMLHttpRequestEventTarget>;
"timeout": ProgressEvent<XMLHttpRequestEventTarget>;
}
interface XMLHttpRequestEventTarget extends EventTarget {
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestEventTarget: {
prototype: XMLHttpRequestEventTarget;
new(): XMLHttpRequestEventTarget;
};
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestUpload: {
prototype: XMLHttpRequestUpload;
new(): XMLHttpRequestUpload;
};
/** Provides the serializeToString() method to construct an XML string representing a DOM tree. */
interface XMLSerializer {
serializeToString(root: Node): string;
}
declare var XMLSerializer: {
prototype: XMLSerializer;
new(): XMLSerializer;
};
/** The\xA0XPathEvaluator interface allows to compile and evaluate XPath expressions. */
interface XPathEvaluator extends XPathEvaluatorBase {
}
declare var XPathEvaluator: {
prototype: XPathEvaluator;
new(): XPathEvaluator;
};
interface XPathEvaluatorBase {
createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
createNSResolver(nodeResolver: Node): XPathNSResolver;
evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;
}
/** This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. */
interface XPathExpression {
evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;
}
declare var XPathExpression: {
prototype: XPathExpression;
new(): XPathExpression;
};
/** The results generated by evaluating an XPath expression within the context of a given node. */
interface XPathResult {
readonly booleanValue: boolean;
readonly invalidIteratorState: boolean;
readonly numberValue: number;
readonly resultType: number;
readonly singleNodeValue: Node | null;
readonly snapshotLength: number;
readonly stringValue: string;
iterateNext(): Node | null;
snapshotItem(index: number): Node | null;
readonly ANY_TYPE: number;
readonly ANY_UNORDERED_NODE_TYPE: number;
readonly BOOLEAN_TYPE: number;
readonly FIRST_ORDERED_NODE_TYPE: number;
readonly NUMBER_TYPE: number;
readonly ORDERED_NODE_ITERATOR_TYPE: number;
readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
readonly STRING_TYPE: number;
readonly UNORDERED_NODE_ITERATOR_TYPE: number;
readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
}
declare var XPathResult: {
prototype: XPathResult;
new(): XPathResult;
readonly ANY_TYPE: number;
readonly ANY_UNORDERED_NODE_TYPE: number;
readonly BOOLEAN_TYPE: number;
readonly FIRST_ORDERED_NODE_TYPE: number;
readonly NUMBER_TYPE: number;
readonly ORDERED_NODE_ITERATOR_TYPE: number;
readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
readonly STRING_TYPE: number;
readonly UNORDERED_NODE_ITERATOR_TYPE: number;
readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
};
/** An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents. */
interface XSLTProcessor {
clearParameters(): void;
getParameter(namespaceURI: string | null, localName: string): any;
importStylesheet(style: Node): void;
removeParameter(namespaceURI: string | null, localName: string): void;
reset(): void;
setParameter(namespaceURI: string | null, localName: string, value: any): void;
transformToDocument(source: Node): Document;
transformToFragment(source: Node, output: Document): DocumentFragment;
}
declare var XSLTProcessor: {
prototype: XSLTProcessor;
new(): XSLTProcessor;
};
interface Console {
assert(condition?: boolean, ...data: any[]): void;
clear(): void;
count(label?: string): void;
countReset(label?: string): void;
debug(...data: any[]): void;
dir(item?: any, options?: any): void;
dirxml(...data: any[]): void;
error(...data: any[]): void;
group(...data: any[]): void;
groupCollapsed(...data: any[]): void;
groupEnd(): void;
info(...data: any[]): void;
log(...data: any[]): void;
table(tabularData?: any, properties?: string[]): void;
time(label?: string): void;
timeEnd(label?: string): void;
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
trace(...data: any[]): void;
warn(...data: any[]): void;
}
declare var console: Console;
/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
declare namespace CSS {
function escape(ident: string): string;
function supports(property: string, value: string): boolean;
function supports(conditionText: string): boolean;
}
declare namespace WebAssembly {
interface CompileError extends Error {
}
var CompileError: {
prototype: CompileError;
new(): CompileError;
};
interface Global {
value: any;
valueOf(): any;
}
var Global: {
prototype: Global;
new(descriptor: GlobalDescriptor, v?: any): Global;
};
interface Instance {
readonly exports: Exports;
}
var Instance: {
prototype: Instance;
new(module: Module, importObject?: Imports): Instance;
};
interface LinkError extends Error {
}
var LinkError: {
prototype: LinkError;
new(): LinkError;
};
interface Memory {
readonly buffer: ArrayBuffer;
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
exports(moduleObject: Module): ModuleExportDescriptor[];
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface RuntimeError extends Error {
}
var RuntimeError: {
prototype: RuntimeError;
new(): RuntimeError;
};
interface Table {
readonly length: number;
get(index: number): any;
grow(delta: number, value?: any): number;
set(index: number, value?: any): void;
}
var Table: {
prototype: Table;
new(descriptor: TableDescriptor, value?: any): Table;
};
interface GlobalDescriptor {
mutable?: boolean;
value: ValueType;
}
interface MemoryDescriptor {
initial: number;
maximum?: number;
shared?: boolean;
}
interface ModuleExportDescriptor {
kind: ImportExportKind;
name: string;
}
interface ModuleImportDescriptor {
kind: ImportExportKind;
module: string;
name: string;
}
interface TableDescriptor {
element: TableKind;
initial: number;
maximum?: number;
}
interface WebAssemblyInstantiatedSource {
instance: Instance;
module: Module;
}
type ImportExportKind = "function" | "global" | "memory" | "table";
type TableKind = "anyfunc" | "externref";
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
type ExportValue = Function | Global | Memory | Table;
type Exports = Record<string, ExportValue>;
type ImportValue = ExportValue | number;
type Imports = Record<string, ModuleImports>;
type ModuleImports = Record<string, ImportValue>;
function compile(bytes: BufferSource): Promise<Module>;
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function validate(bytes: BufferSource): boolean;
}
interface BlobCallback {
(blob: Blob | null): void;
}
interface CustomElementConstructor {
new (...params: any[]): HTMLElement;
}
interface DecodeErrorCallback {
(error: DOMException): void;
}
interface DecodeSuccessCallback {
(decodedData: AudioBuffer): void;
}
interface ErrorCallback {
(err: DOMException): void;
}
interface FileCallback {
(file: File): void;
}
interface FileSystemEntriesCallback {
(entries: FileSystemEntry[]): void;
}
interface FileSystemEntryCallback {
(entry: FileSystemEntry): void;
}
interface FrameRequestCallback {
(time: DOMHighResTimeStamp): void;
}
interface FunctionStringCallback {
(data: string): void;
}
interface IdleRequestCallback {
(deadline: IdleDeadline): void;
}
interface IntersectionObserverCallback {
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
}
interface MediaSessionActionHandler {
(details: MediaSessionActionDetails): void;
}
interface MutationCallback {
(mutations: MutationRecord[], observer: MutationObserver): void;
}
interface NotificationPermissionCallback {
(permission: NotificationPermission): void;
}
interface OnBeforeUnloadEventHandlerNonNull {
(event: Event): string | null;
}
interface OnErrorEventHandlerNonNull {
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
}
interface PerformanceObserverCallback {
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
}
interface PositionCallback {
(position: GeolocationPosition): void;
}
interface PositionErrorCallback {
(positionError: GeolocationPositionError): void;
}
interface QueuingStrategySize<T = any> {
(chunk?: T): number;
}
interface RTCPeerConnectionErrorCallback {
(error: DOMException): void;
}
interface RTCSessionDescriptionCallback {
(description: RTCSessionDescriptionInit): void;
}
interface RemotePlaybackAvailabilityCallback {
(available: boolean): void;
}
interface ResizeObserverCallback {
(entries: ResizeObserverEntry[], observer: ResizeObserver): void;
}
interface TransformerFlushCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface TransformerStartCallback<O> {
(controller: TransformStreamDefaultController<O>): any;
}
interface TransformerTransformCallback<I, O> {
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface UnderlyingSinkAbortCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSinkCloseCallback {
(): void | PromiseLike<void>;
}
interface UnderlyingSinkStartCallback {
(controller: WritableStreamDefaultController): any;
}
interface UnderlyingSinkWriteCallback<W> {
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
interface UnderlyingSourceCancelCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSourcePullCallback<R> {
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
}
interface UnderlyingSourceStartCallback<R> {
(controller: ReadableStreamController<R>): any;
}
interface VoidFunction {
(): void;
}
interface HTMLElementTagNameMap {
"a": HTMLAnchorElement;
"abbr": HTMLElement;
"address": HTMLElement;
"area": HTMLAreaElement;
"article": HTMLElement;
"aside": HTMLElement;
"audio": HTMLAudioElement;
"b": HTMLElement;
"base": HTMLBaseElement;
"bdi": HTMLElement;
"bdo": HTMLElement;
"blockquote": HTMLQuoteElement;
"body": HTMLBodyElement;
"br": HTMLBRElement;
"button": HTMLButtonElement;
"canvas": HTMLCanvasElement;
"caption": HTMLTableCaptionElement;
"cite": HTMLElement;
"code": HTMLElement;
"col": HTMLTableColElement;
"colgroup": HTMLTableColElement;
"data": HTMLDataElement;
"datalist": HTMLDataListElement;
"dd": HTMLElement;
"del": HTMLModElement;
"details": HTMLDetailsElement;
"dfn": HTMLElement;
"dialog": HTMLDialogElement;
"dir": HTMLDirectoryElement;
"div": HTMLDivElement;
"dl": HTMLDListElement;
"dt": HTMLElement;
"em": HTMLElement;
"embed": HTMLEmbedElement;
"fieldset": HTMLFieldSetElement;
"figcaption": HTMLElement;
"figure": HTMLElement;
"font": HTMLFontElement;
"footer": HTMLElement;
"form": HTMLFormElement;
"frame": HTMLFrameElement;
"frameset": HTMLFrameSetElement;
"h1": HTMLHeadingElement;
"h2": HTMLHeadingElement;
"h3": HTMLHeadingElement;
"h4": HTMLHeadingElement;
"h5": HTMLHeadingElement;
"h6": HTMLHeadingElement;
"head": HTMLHeadElement;
"header": HTMLElement;
"hgroup": HTMLElement;
"hr": HTMLHRElement;
"html": HTMLHtmlElement;
"i": HTMLElement;
"iframe": HTMLIFrameElement;
"img": HTMLImageElement;
"input": HTMLInputElement;
"ins": HTMLModElement;
"kbd": HTMLElement;
"label": HTMLLabelElement;
"legend": HTMLLegendElement;
"li": HTMLLIElement;
"link": HTMLLinkElement;
"main": HTMLElement;
"map": HTMLMapElement;
"mark": HTMLElement;
"marquee": HTMLMarqueeElement;
"menu": HTMLMenuElement;
"meta": HTMLMetaElement;
"meter": HTMLMeterElement;
"nav": HTMLElement;
"noscript": HTMLElement;
"object": HTMLObjectElement;
"ol": HTMLOListElement;
"optgroup": HTMLOptGroupElement;
"option": HTMLOptionElement;
"output": HTMLOutputElement;
"p": HTMLParagraphElement;
"param": HTMLParamElement;
"picture": HTMLPictureElement;
"pre": HTMLPreElement;
"progress": HTMLProgressElement;
"q": HTMLQuoteElement;
"rp": HTMLElement;
"rt": HTMLElement;
"ruby": HTMLElement;
"s": HTMLElement;
"samp": HTMLElement;
"script": HTMLScriptElement;
"section": HTMLElement;
"select": HTMLSelectElement;
"slot": HTMLSlotElement;
"small": HTMLElement;
"source": HTMLSourceElement;
"span": HTMLSpanElement;
"strong": HTMLElement;
"style": HTMLStyleElement;
"sub": HTMLElement;
"summary": HTMLElement;
"sup": HTMLElement;
"table": HTMLTableElement;
"tbody": HTMLTableSectionElement;
"td": HTMLTableCellElement;
"template": HTMLTemplateElement;
"textarea": HTMLTextAreaElement;
"tfoot": HTMLTableSectionElement;
"th": HTMLTableCellElement;
"thead": HTMLTableSectionElement;
"time": HTMLTimeElement;
"title": HTMLTitleElement;
"tr": HTMLTableRowElement;
"track": HTMLTrackElement;
"u": HTMLElement;
"ul": HTMLUListElement;
"var": HTMLElement;
"video": HTMLVideoElement;
"wbr": HTMLElement;
}
interface HTMLElementDeprecatedTagNameMap {
"listing": HTMLPreElement;
"xmp": HTMLPreElement;
}
interface SVGElementTagNameMap {
"a": SVGAElement;
"animate": SVGAnimateElement;
"animateMotion": SVGAnimateMotionElement;
"animateTransform": SVGAnimateTransformElement;
"circle": SVGCircleElement;
"clipPath": SVGClipPathElement;
"defs": SVGDefsElement;
"desc": SVGDescElement;
"ellipse": SVGEllipseElement;
"feBlend": SVGFEBlendElement;
"feColorMatrix": SVGFEColorMatrixElement;
"feComponentTransfer": SVGFEComponentTransferElement;
"feComposite": SVGFECompositeElement;
"feConvolveMatrix": SVGFEConvolveMatrixElement;
"feDiffuseLighting": SVGFEDiffuseLightingElement;
"feDisplacementMap": SVGFEDisplacementMapElement;
"feDistantLight": SVGFEDistantLightElement;
"feDropShadow": SVGFEDropShadowElement;
"feFlood": SVGFEFloodElement;
"feFuncA": SVGFEFuncAElement;
"feFuncB": SVGFEFuncBElement;
"feFuncG": SVGFEFuncGElement;
"feFuncR": SVGFEFuncRElement;
"feGaussianBlur": SVGFEGaussianBlurElement;
"feImage": SVGFEImageElement;
"feMerge": SVGFEMergeElement;
"feMergeNode": SVGFEMergeNodeElement;
"feMorphology": SVGFEMorphologyElement;
"feOffset": SVGFEOffsetElement;
"fePointLight": SVGFEPointLightElement;
"feSpecularLighting": SVGFESpecularLightingElement;
"feSpotLight": SVGFESpotLightElement;
"feTile": SVGFETileElement;
"feTurbulence": SVGFETurbulenceElement;
"filter": SVGFilterElement;
"foreignObject": SVGForeignObjectElement;
"g": SVGGElement;
"image": SVGImageElement;
"line": SVGLineElement;
"linearGradient": SVGLinearGradientElement;
"marker": SVGMarkerElement;
"mask": SVGMaskElement;
"metadata": SVGMetadataElement;
"mpath": SVGMPathElement;
"path": SVGPathElement;
"pattern": SVGPatternElement;
"polygon": SVGPolygonElement;
"polyline": SVGPolylineElement;
"radialGradient": SVGRadialGradientElement;
"rect": SVGRectElement;
"script": SVGScriptElement;
"set": SVGSetElement;
"stop": SVGStopElement;
"style": SVGStyleElement;
"svg": SVGSVGElement;
"switch": SVGSwitchElement;
"symbol": SVGSymbolElement;
"text": SVGTextElement;
"textPath": SVGTextPathElement;
"title": SVGTitleElement;
"tspan": SVGTSpanElement;
"use": SVGUseElement;
"view": SVGViewElement;
}
/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */
type ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;
declare var Audio: {
new(src?: string): HTMLAudioElement;
};
declare var Image: {
new(width?: number, height?: number): HTMLImageElement;
};
declare var Option: {
new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
};
/** @deprecated This is a legacy alias of \`navigator\`. */
declare var clientInformation: Navigator;
/**
* Returns true if the window has been closed, false otherwise.
*/
declare var closed: boolean;
/**
* Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.
*/
declare var customElements: CustomElementRegistry;
declare var devicePixelRatio: number;
declare var document: Document;
/** @deprecated */
declare var event: Event | undefined;
/** @deprecated */
declare var external: External;
declare var frameElement: Element | null;
declare var frames: WindowProxy;
declare var history: History;
declare var innerHeight: number;
declare var innerWidth: number;
declare var length: number;
declare var location: Location;
/**
* Returns true if the location bar is visible; otherwise, returns false.
*/
declare var locationbar: BarProp;
/**
* Returns true if the menu bar is visible; otherwise, returns false.
*/
declare var menubar: BarProp;
/** @deprecated */
declare const name: void;
declare var navigator: Navigator;
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/** @deprecated */
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
declare var opener: any;
/** @deprecated */
declare var orientation: number;
declare var outerHeight: number;
declare var outerWidth: number;
/** @deprecated This is a legacy alias of \`scrollX\`. */
declare var pageXOffset: number;
/** @deprecated This is a legacy alias of \`scrollY\`. */
declare var pageYOffset: number;
/** Refers to either the parent WindowProxy, or itself. It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent. */
declare var parent: WindowProxy;
/**
* Returns true if the personal bar is visible; otherwise, returns false.
*/
declare var personalbar: BarProp;
declare var screen: Screen;
declare var screenLeft: number;
declare var screenTop: number;
declare var screenX: number;
declare var screenY: number;
declare var scrollX: number;
declare var scrollY: number;
/**
* Returns true if the scrollbars are visible; otherwise, returns false.
*/
declare var scrollbars: BarProp;
declare var self: Window & typeof globalThis;
declare var speechSynthesis: SpeechSynthesis;
/** @deprecated */
declare var status: string;
/**
* Returns true if the status bar is visible; otherwise, returns false.
*/
declare var statusbar: BarProp;
/**
* Returns true if the toolbar is visible; otherwise, returns false.
*/
declare var toolbar: BarProp;
declare var top: WindowProxy | null;
declare var visualViewport: VisualViewport;
declare var window: Window & typeof globalThis;
declare function alert(message?: any): void;
declare function blur(): void;
declare function cancelIdleCallback(handle: number): void;
/** @deprecated */
declare function captureEvents(): void;
/**
* Closes the window.
*/
declare function close(): void;
declare function confirm(message?: string): boolean;
/**
* Moves the focus to the window's browsing context, if any.
*/
declare function focus(): void;
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
declare function getSelection(): Selection | null;
declare function matchMedia(query: string): MediaQueryList;
declare function moveBy(x: number, y: number): void;
declare function moveTo(x: number, y: number): void;
declare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
/**
* Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
*
* Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
*
* If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
*
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
*/
declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
declare function postMessage(message: any, options?: WindowPostMessageOptions): void;
declare function print(): void;
declare function prompt(message?: string, _default?: string): string | null;
/** @deprecated */
declare function releaseEvents(): void;
declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
declare function resizeBy(x: number, y: number): void;
declare function resizeTo(width: number, height: number): void;
declare function scroll(options?: ScrollToOptions): void;
declare function scroll(x: number, y: number): void;
declare function scrollBy(options?: ScrollToOptions): void;
declare function scrollBy(x: number, y: number): void;
declare function scrollTo(options?: ScrollToOptions): void;
declare function scrollTo(x: number, y: number): void;
/**
* Cancels the document load.
*/
declare function stop(): void;
declare function toString(): string;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*/
declare function dispatchEvent(event: Event): boolean;
declare function cancelAnimationFrame(handle: number): void;
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
/**
* Fires when the user aborts the download.
* @param ev The event.
*/
declare var onabort: ((this: Window, ev: UIEvent) => any) | null;
declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;
declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;
declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;
declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;
declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the object loses the input focus.
* @param ev The focus event.
*/
declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*/
declare var oncanplay: ((this: Window, ev: Event) => any) | null;
declare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*/
declare var onchange: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user clicks the left mouse button on the object
* @param ev The mouse event.
*/
declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
declare var onclose: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*/
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
declare var oncuechange: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
*/
declare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires on the source object continuously during a drag operation.
* @param ev The event.
*/
declare var ondrag: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user releases the mouse at the close of a drag operation.
* @param ev The event.
*/
declare var ondragend: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the target element when the user drags the object to a valid drop target.
* @param ev The drag event.
*/
declare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
* @param ev The drag event.
*/
declare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the target element continuously while the user drags the object over a valid drop target.
* @param ev The event.
*/
declare var ondragover: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user starts to drag a text selection or selected object.
* @param ev The event.
*/
declare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;
declare var ondrop: ((this: Window, ev: DragEvent) => any) | null;
/**
* Occurs when the duration attribute is updated.
* @param ev The event.
*/
declare var ondurationchange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the media element is reset to its initial state.
* @param ev The event.
*/
declare var onemptied: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the end of playback is reached.
* @param ev The event
*/
declare var onended: ((this: Window, ev: Event) => any) | null;
/**
* Fires when an error occurs during object loading.
* @param ev The event.
*/
declare var onerror: OnErrorEventHandler;
/**
* Fires when the object receives focus.
* @param ev The event.
*/
declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;
declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;
declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
declare var oninput: ((this: Window, ev: Event) => any) | null;
declare var oninvalid: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user presses a key.
* @param ev The keyboard event
*/
declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
* @deprecated
*/
declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user releases a key.
* @param ev The keyboard event
*/
declare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires immediately after the browser loads the object.
* @param ev The event.
*/
declare var onload: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when media data is loaded at the current playback position.
* @param ev The event.
*/
declare var onloadeddata: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the duration and dimensions of the media have been determined.
* @param ev The event.
*/
declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when Internet Explorer begins looking for media data.
* @param ev The event.
*/
declare var onloadstart: ((this: Window, ev: Event) => any) | null;
declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
/**
* Fires when the user clicks the object with either mouse button.
* @param ev The mouse event.
*/
declare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;
declare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;
declare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse over the object.
* @param ev The mouse event.
*/
declare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer outside the boundaries of the object.
* @param ev The mouse event.
*/
declare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer into the object.
* @param ev The mouse event.
*/
declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user releases a mouse button while the mouse is over the object.
* @param ev The mouse event.
*/
declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Occurs when playback is paused.
* @param ev The event.
*/
declare var onpause: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the play method is requested.
* @param ev The event.
*/
declare var onplay: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the audio or video has started playing.
* @param ev The event.
*/
declare var onplaying: ((this: Window, ev: Event) => any) | null;
declare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
/**
* Occurs to indicate progress while downloading media data.
* @param ev The event.
*/
declare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;
/**
* Occurs when the playback rate is increased or decreased.
* @param ev The event.
*/
declare var onratechange: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user resets a form.
* @param ev The event.
*/
declare var onreset: ((this: Window, ev: Event) => any) | null;
declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
/**
* Fires when the user repositions the scroll box in the scroll bar on the object.
* @param ev The event.
*/
declare var onscroll: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*/
declare var onseeked: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*/
declare var onseeking: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*/
declare var onselect: ((this: Window, ev: Event) => any) | null;
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*/
declare var onstalled: ((this: Window, ev: Event) => any) | null;
declare var onsubmit: ((this: Window, ev: 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 | undefined;
declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;
/**
* Occurs when the volume is changed, or playback is muted or unmuted.
* @param ev The event.
*/
declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when playback stops because the next frame of a video resource is not available.
* @param ev The event.
*/
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;
declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;
declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
declare var onafterprint: ((this: Window, ev: Event) => any) | null;
declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
declare var ongamepadconnected: ((this: Window, ev: Event) => any) | null;
declare var ongamepaddisconnected: ((this: Window, ev: Event) => any) | null;
declare var onhashchange: ((this: Window, ev: Event) => any) | null;
declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;
declare var onoffline: ((this: Window, ev: Event) => any) | null;
declare var ononline: ((this: Window, ev: Event) => any) | null;
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
declare var onunload: ((this: Window, ev: Event) => any) | null;
declare var localStorage: Storage;
declare var caches: CacheStorage;
declare var crossOriginIsolated: boolean;
declare var crypto: Crypto;
declare var indexedDB: IDBFactory;
declare var isSecureContext: boolean;
declare var origin: string;
declare var performance: Performance;
declare function atob(data: string): string;
declare function btoa(data: string): string;
declare function clearInterval(handle?: number): void;
declare function clearTimeout(handle?: number): void;
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
declare function queueMicrotask(callback: VoidFunction): void;
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare var sessionStorage: Storage;
declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
type AlgorithmIdentifier = Algorithm | string;
type BigInteger = Uint8Array;
type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView | ArrayBuffer;
type COSEAlgorithmIdentifier = number;
type CSSNumberish = number;
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
type ClipboardItemData = Promise<ClipboardItemDataType>;
type ClipboardItemDataType = string | Blob;
type ClipboardItems = ClipboardItem[];
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
type ConstrainDouble = number | ConstrainDoubleRange;
type ConstrainULong = number | ConstrainULongRange;
type DOMHighResTimeStamp = number;
type DOMTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type Float32List = Float32Array | GLfloat[];
type FormDataEntryValue = File | string;
type GLbitfield = number;
type GLboolean = boolean;
type GLclampf = number;
type GLenum = number;
type GLfloat = number;
type GLint = number;
type GLint64 = number;
type GLintptr = number;
type GLsizei = number;
type GLsizeiptr = number;
type GLuint = number;
type GLuint64 = number;
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = string[][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend";
type Int32List = Int32Array | GLint[];
type LineAndPositionSetting = number | AutoKeyword;
type MediaProvider = MediaStream | MediaSource | Blob;
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
type MutationRecordType = "attributes" | "characterData" | "childList";
type NamedCurve = string;
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type PerformanceEntryList = PerformanceEntry[];
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
type TimerHandler = string | Function;
type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
type Uint32List = Uint32Array | GLuint[];
type UvmEntries = UvmEntry[];
type UvmEntry = number[];
type VibratePattern = number | number[];
type WindowProxy = Window;
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type AlignSetting = "center" | "end" | "left" | "right" | "start";
type AnimationPlayState = "finished" | "idle" | "paused" | "running";
type AnimationReplaceState = "active" | "persisted" | "removed";
type AppendMode = "segments" | "sequence";
type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
type AudioContextState = "closed" | "running" | "suspended";
type AuthenticatorAttachment = "cross-platform" | "platform";
type AuthenticatorTransport = "ble" | "internal" | "nfc" | "usb";
type AutoKeyword = "auto";
type AutomationRate = "a-rate" | "k-rate";
type BinaryType = "arraybuffer" | "blob";
type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
type CanPlayTypeResult = "" | "maybe" | "probably";
type CanvasDirection = "inherit" | "ltr" | "rtl";
type CanvasFillRule = "evenodd" | "nonzero";
type CanvasFontKerning = "auto" | "none" | "normal";
type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
type CanvasLineCap = "butt" | "round" | "square";
type CanvasLineJoin = "bevel" | "miter" | "round";
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
type ChannelCountMode = "clamped-max" | "explicit" | "max";
type ChannelInterpretation = "discrete" | "speakers";
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type CompositeOperation = "accumulate" | "add" | "replace";
type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
type CredentialMediationRequirement = "optional" | "required" | "silent";
type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";
type DirectionSetting = "" | "lr" | "rl";
type DisplayCaptureSurfaceType = "application" | "browser" | "monitor" | "window";
type DistanceModelType = "exponential" | "inverse" | "linear";
type DocumentReadyState = "complete" | "interactive" | "loading";
type EndOfStreamError = "decode" | "network";
type EndingType = "native" | "transparent";
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FullscreenNavigationUI = "auto" | "hide" | "show";
type GamepadHapticActuatorType = "vibration";
type GamepadMappingType = "" | "standard" | "xr-standard";
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
type IDBRequestReadyState = "done" | "pending";
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
type ImageOrientation = "flipY" | "none";
type ImageSmoothingQuality = "high" | "low" | "medium";
type IterationCompositeOperation = "accumulate" | "replace";
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
type KeyType = "private" | "public" | "secret";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
type LineAlignSetting = "center" | "end" | "start";
type MediaDecodingType = "file" | "media-source" | "webrtc";
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
type MediaEncodingType = "record" | "webrtc";
type MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";
type MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted";
type MediaKeySessionType = "persistent-license" | "temporary";
type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";
type MediaKeysRequirement = "not-allowed" | "optional" | "required";
type MediaSessionAction = "hangup" | "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop" | "togglecamera" | "togglemicrophone";
type MediaSessionPlaybackState = "none" | "paused" | "playing";
type MediaStreamTrackState = "ended" | "live";
type NavigationType = "back_forward" | "navigate" | "prerender" | "reload";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
type OverSampleType = "2x" | "4x" | "none";
type PanningModelType = "HRTF" | "equalpower";
type PaymentComplete = "fail" | "success" | "unknown";
type PermissionName = "gamepad" | "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock";
type PermissionState = "denied" | "granted" | "prompt";
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
type PredefinedColorSpace = "display-p3" | "srgb";
type PremultiplyAlpha = "default" | "none" | "premultiply";
type PresentationStyle = "attachment" | "inline" | "unspecified";
type PublicKeyCredentialType = "public-key";
type PushEncryptionKeyName = "auth" | "p256dh";
type PushPermissionState = "denied" | "granted" | "prompt";
type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
type RTCIceComponent = "rtcp" | "rtp";
type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCIceCredentialType = "password";
type RTCIceGathererState = "complete" | "gathering" | "new";
type RTCIceGatheringState = "complete" | "gathering" | "new";
type RTCIceProtocol = "tcp" | "udp";
type RTCIceTcpCandidateType = "active" | "passive" | "so";
type RTCIceTransportPolicy = "all" | "relay";
type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";
type RTCPriorityType = "high" | "low" | "medium" | "very-low";
type RTCRtcpMuxPolicy = "require";
type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";
type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "csrc" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";
type ReadyState = "closed" | "ended" | "open";
type RecordingState = "inactive" | "paused" | "recording";
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
type RemotePlaybackState = "connected" | "connecting" | "disconnected";
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestRedirect = "error" | "follow" | "manual";
type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type ScrollBehavior = "auto" | "smooth";
type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
type ScrollRestoration = "auto" | "manual";
type ScrollSetting = "" | "up";
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
type SelectionMode = "end" | "preserve" | "select" | "start";
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
type ShadowRootMode = "closed" | "open";
type SlotAssignmentMode = "manual" | "named";
type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";
type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
type TextTrackMode = "disabled" | "hidden" | "showing";
type TouchType = "direct" | "stylus";
type TransferFunction = "hlg" | "pq" | "srgb";
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
type VisibilityState = "hidden" | "visible";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WorkerType = "classic" | "module";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`,Ti["lib.dom.iterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Window Iterable APIs
/////////////////////////////
interface AudioParam {
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
}
interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
}
interface BaseAudioContext {
createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
}
interface CSSRuleList {
[Symbol.iterator](): IterableIterator<CSSRule>;
}
interface CSSStyleDeclaration {
[Symbol.iterator](): IterableIterator<string>;
}
interface Cache {
addAll(requests: Iterable<RequestInfo>): Promise<void>;
}
interface CanvasPathDrawingStyles {
setLineDash(segments: Iterable<number>): void;
}
interface DOMRectList {
[Symbol.iterator](): IterableIterator<DOMRect>;
}
interface DOMStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface DOMTokenList {
[Symbol.iterator](): IterableIterator<string>;
entries(): IterableIterator<[number, string]>;
keys(): IterableIterator<number>;
values(): IterableIterator<string>;
}
interface DataTransferItemList {
[Symbol.iterator](): IterableIterator<DataTransferItem>;
}
interface FileList {
[Symbol.iterator](): IterableIterator<File>;
}
interface FontFaceSet extends Set<FontFace> {
}
interface FormData {
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
/**
* Returns an array of key, value pairs for every entry in the list.
*/
entries(): IterableIterator<[string, FormDataEntryValue]>;
/**
* Returns a list of keys in the list.
*/
keys(): IterableIterator<string>;
/**
* Returns a list of values in the list.
*/
values(): IterableIterator<FormDataEntryValue>;
}
interface HTMLAllCollection {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLCollectionBase {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLCollectionOf<T extends Element> {
[Symbol.iterator](): IterableIterator<T>;
}
interface HTMLFormElement {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLSelectElement {
[Symbol.iterator](): IterableIterator<HTMLOptionElement>;
}
interface Headers {
[Symbol.iterator](): IterableIterator<[string, string]>;
/**
* Returns an iterator allowing to go through all key/value pairs contained in this object.
*/
entries(): IterableIterator<[string, string]>;
/**
* Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
*/
keys(): IterableIterator<string>;
/**
* Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
*/
values(): IterableIterator<string>;
}
interface IDBDatabase {
/**
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
*/
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
}
interface IDBObjectStore {
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}
interface MediaKeyStatusMap {
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
keys(): IterableIterator<BufferSource>;
values(): IterableIterator<MediaKeyStatus>;
}
interface MediaList {
[Symbol.iterator](): IterableIterator<string>;
}
interface MessageEvent<T = any> {
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
interface MimeTypeArray {
[Symbol.iterator](): IterableIterator<MimeType>;
}
interface NamedNodeMap {
[Symbol.iterator](): IterableIterator<Attr>;
}
interface Navigator {
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
vibrate(pattern: Iterable<number>): boolean;
}
interface NodeList {
[Symbol.iterator](): IterableIterator<Node>;
/**
* Returns an array of key, value pairs for every entry in the list.
*/
entries(): IterableIterator<[number, Node]>;
/**
* Returns an list of keys in the list.
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the list.
*/
values(): IterableIterator<Node>;
}
interface NodeListOf<TNode extends Node> {
[Symbol.iterator](): IterableIterator<TNode>;
/**
* Returns an array of key, value pairs for every entry in the list.
*/
entries(): IterableIterator<[number, TNode]>;
/**
* Returns an list of keys in the list.
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the list.
*/
values(): IterableIterator<TNode>;
}
interface Plugin {
[Symbol.iterator](): IterableIterator<MimeType>;
}
interface PluginArray {
[Symbol.iterator](): IterableIterator<Plugin>;
}
interface RTCStatsReport extends ReadonlyMap<string, any> {
}
interface ReadableStream<R = any> {
[Symbol.iterator](): IterableIterator<any>;
entries(): IterableIterator<[number, any]>;
keys(): IterableIterator<number>;
values(): IterableIterator<any>;
}
interface SVGLengthList {
[Symbol.iterator](): IterableIterator<SVGLength>;
}
interface SVGNumberList {
[Symbol.iterator](): IterableIterator<SVGNumber>;
}
interface SVGPointList {
[Symbol.iterator](): IterableIterator<DOMPoint>;
}
interface SVGStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface SVGTransformList {
[Symbol.iterator](): IterableIterator<SVGTransform>;
}
interface SourceBufferList {
[Symbol.iterator](): IterableIterator<SourceBuffer>;
}
interface SpeechRecognitionResult {
[Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
}
interface SpeechRecognitionResultList {
[Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
}
interface StyleSheetList {
[Symbol.iterator](): IterableIterator<CSSStyleSheet>;
}
interface SubtleCrypto {
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
}
interface TextTrackCueList {
[Symbol.iterator](): IterableIterator<TextTrackCue>;
}
interface TextTrackList {
[Symbol.iterator](): IterableIterator<TextTrack>;
}
interface TouchList {
[Symbol.iterator](): IterableIterator<Touch>;
}
interface URLSearchParams {
[Symbol.iterator](): IterableIterator<[string, string]>;
/**
* Returns an array of key, value pairs for every entry in the search params.
*/
entries(): IterableIterator<[string, string]>;
/**
* Returns a list of keys in the search params.
*/
keys(): IterableIterator<string>;
/**
* Returns a list of values in the search params.
*/
values(): IterableIterator<string>;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WebGL2RenderingContextBase {
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
drawBuffers(buffers: Iterable<GLenum>): void;
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
}
interface WebGL2RenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
}
interface WebGLRenderingContextBase {
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
}
interface WebGLRenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
}
`,Ti["lib.es2015.collection.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Map<K, V> {
clear(): void;
delete(key: K): boolean;
forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
get(key: K): V | undefined;
has(key: K): boolean;
set(key: K, value: V): this;
readonly size: number;
}
interface MapConstructor {
new(): Map<any, any>;
new<K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
readonly prototype: Map<any, any>;
}
declare var Map: MapConstructor;
interface ReadonlyMap<K, V> {
forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
get(key: K): V | undefined;
has(key: K): boolean;
readonly size: number;
}
interface WeakMap<K extends object, V> {
delete(key: K): boolean;
get(key: K): V | undefined;
has(key: K): boolean;
set(key: K, value: V): this;
}
interface WeakMapConstructor {
new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;
readonly prototype: WeakMap<object, any>;
}
declare var WeakMap: WeakMapConstructor;
interface Set<T> {
add(value: T): this;
clear(): void;
delete(value: T): boolean;
forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
has(value: T): boolean;
readonly size: number;
}
interface SetConstructor {
new <T = any>(values?: readonly T[] | null): Set<T>;
readonly prototype: Set<any>;
}
declare var Set: SetConstructor;
interface ReadonlySet<T> {
forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
has(value: T): boolean;
readonly size: number;
}
interface WeakSet<T extends object> {
add(value: T): this;
delete(value: T): boolean;
has(value: T): boolean;
}
interface WeakSetConstructor {
new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;
readonly prototype: WeakSet<object>;
}
declare var WeakSet: WeakSetConstructor;
`,Ti["lib.es2015.core.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find<S extends T>(predicate: (this: void, value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;
find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: T, start?: number, end?: number): this;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
}
interface ArrayConstructor {
/**
* Creates an array from an array-like object.
* @param arrayLike An array-like object to convert to an array.
*/
from<T>(arrayLike: ArrayLike<T>): T[];
/**
* Creates an array from an iterable object.
* @param arrayLike An array-like object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of<T>(...items: T[]): T[];
}
interface DateConstructor {
new (value: number | string | Date): Date;
}
interface Function {
/**
* Returns the name of the function. Function names are read-only and can not be changed.
*/
readonly name: string;
}
interface Math {
/**
* Returns the number of leading zero bits in the 32-bit binary representation of a number.
* @param x A numeric expression.
*/
clz32(x: number): number;
/**
* Returns the result of 32-bit multiplication of two numbers.
* @param x First number
* @param y Second number
*/
imul(x: number, y: number): number;
/**
* Returns the sign of the x, indicating whether x is positive, negative or zero.
* @param x The numeric expression to test
*/
sign(x: number): number;
/**
* Returns the base 10 logarithm of a number.
* @param x A numeric expression.
*/
log10(x: number): number;
/**
* Returns the base 2 logarithm of a number.
* @param x A numeric expression.
*/
log2(x: number): number;
/**
* Returns the natural logarithm of 1 + x.
* @param x A numeric expression.
*/
log1p(x: number): number;
/**
* Returns the result of (e^x - 1), which is an implementation-dependent approximation to
* subtracting 1 from the exponential function of x (e raised to the power of x, where e
* is the base of the natural logarithms).
* @param x A numeric expression.
*/
expm1(x: number): number;
/**
* Returns the hyperbolic cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
cosh(x: number): number;
/**
* Returns the hyperbolic sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
sinh(x: number): number;
/**
* Returns the hyperbolic tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
tanh(x: number): number;
/**
* Returns the inverse hyperbolic cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
acosh(x: number): number;
/**
* Returns the inverse hyperbolic sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
asinh(x: number): number;
/**
* Returns the inverse hyperbolic tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
atanh(x: number): number;
/**
* Returns the square root of the sum of squares of its arguments.
* @param values Values to compute the square root for.
* If no arguments are passed, the result is +0.
* If there is only one argument, the result is the absolute value.
* If any argument is +Infinity or -Infinity, the result is +Infinity.
* If any argument is NaN, the result is NaN.
* If all arguments are either +0 or \u22120, the result is +0.
*/
hypot(...values: number[]): number;
/**
* Returns the integral part of the a numeric expression, x, removing any fractional digits.
* If x is already an integer, the result is x.
* @param x A numeric expression.
*/
trunc(x: number): number;
/**
* Returns the nearest single precision float representation of a number.
* @param x A numeric expression.
*/
fround(x: number): number;
/**
* Returns an implementation-dependent approximation to the cube root of number.
* @param x A numeric expression.
*/
cbrt(x: number): number;
}
interface NumberConstructor {
/**
* The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
* that is representable as a Number value, which is approximately:
* 2.2204460492503130808472633361816 x 10\u200D\u2212\u200D16.
*/
readonly EPSILON: number;
/**
* Returns true if passed value is finite.
* Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
* number. Only finite values of the type number, result in true.
* @param number A numeric value.
*/
isFinite(number: unknown): boolean;
/**
* Returns true if the value passed is an integer, false otherwise.
* @param number A numeric value.
*/
isInteger(number: unknown): boolean;
/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
* number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
* to a number. Only values of the type number, that are also NaN, result in true.
* @param number A numeric value.
*/
isNaN(number: unknown): boolean;
/**
* Returns true if the value passed is a safe integer.
* @param number A numeric value.
*/
isSafeInteger(number: unknown): boolean;
/**
* The value of the largest integer n such that n and n + 1 are both exactly representable as
* a Number value.
* The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 \u2212 1.
*/
readonly MAX_SAFE_INTEGER: number;
/**
* The value of the smallest integer n such that n and n \u2212 1 are both exactly representable as
* a Number value.
* The value of Number.MIN_SAFE_INTEGER is \u22129007199254740991 (\u2212(2^53 \u2212 1)).
*/
readonly MIN_SAFE_INTEGER: number;
/**
* Converts a string to a floating-point number.
* @param string A string that contains a floating-point number.
*/
parseFloat(string: string): number;
/**
* Converts A string to an integer.
* @param string A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
parseInt(string: string, radix?: number): number;
}
interface ObjectConstructor {
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source The source object from which to copy properties.
*/
assign<T, U>(target: T, source: U): T & U;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
*/
assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
* @param source3 The third source object from which to copy properties.
*/
assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param sources One or more source objects from which to copy properties
*/
assign(target: object, ...sources: any[]): any;
/**
* Returns an array of all symbol properties found directly on object o.
* @param o Object to retrieve the symbols from.
*/
getOwnPropertySymbols(o: any): symbol[];
/**
* Returns the names of the enumerable string properties and methods of an object.
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
keys(o: {}): string[];
/**
* Returns true if the values are the same value, false otherwise.
* @param value1 The first value.
* @param value2 The second value.
*/
is(value1: any, value2: any): boolean;
/**
* Sets the prototype of a specified object o to object proto or null. Returns the object o.
* @param o The object to change its prototype.
* @param proto The value of the new prototype or null.
*/
setPrototypeOf(o: any, proto: object | null): any;
}
interface ReadonlyArray<T> {
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find<S extends T>(predicate: (this: void, value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;
find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;
}
interface RegExp {
/**
* Returns a string indicating the flags of the regular expression in question. This field is read-only.
* The characters in this string are sequenced and concatenated in the following order:
*
* - "g" for global
* - "i" for ignoreCase
* - "m" for multiline
* - "u" for unicode
* - "y" for sticky
*
* If no flags are set, the value is the empty string.
*/
readonly flags: string;
/**
* Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
* expression. Default is false. Read-only.
*/
readonly sticky: boolean;
/**
* Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
* expression. Default is false. Read-only.
*/
readonly unicode: boolean;
}
interface RegExpConstructor {
new (pattern: RegExp | string, flags?: string): RegExp;
(pattern: RegExp | string, flags?: string): RegExp;
}
interface String {
/**
* Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
* value of the UTF-16 encoded code point starting at the string element at position pos in
* the String resulting from converting this object to a String.
* If there is no element at that position, the result is undefined.
* If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
*/
codePointAt(pos: number): number | undefined;
/**
* Returns true if searchString appears as a substring of the result of converting this
* object to a String, at one or more positions that are
* greater than or equal to position; otherwise, returns false.
* @param searchString search string
* @param position If position is undefined, 0 is assumed, so as to search all of the String.
*/
includes(searchString: string, position?: number): boolean;
/**
* Returns true if the sequence of elements of searchString converted to a String is the
* same as the corresponding elements of this object (converted to a String) starting at
* endPosition \u2013 length(this). Otherwise returns false.
*/
endsWith(searchString: string, endPosition?: number): boolean;
/**
* Returns the String value result of normalizing the string into the normalization form
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
* is "NFC"
*/
normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
/**
* Returns the String value result of normalizing the string into the normalization form
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
* is "NFC"
*/
normalize(form?: string): string;
/**
* Returns a String value that is made from count copies appended together. If count is 0,
* the empty string is returned.
* @param count number of copies to append
*/
repeat(count: number): string;
/**
* Returns true if the sequence of elements of searchString converted to a String is the
* same as the corresponding elements of this object (converted to a String) starting at
* position. Otherwise returns false.
*/
startsWith(searchString: string, position?: number): boolean;
/**
* Returns an \`<a>\` HTML anchor element and sets the name attribute to the text value
* @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 usually used as a tag function of a Tagged Template String. When called as
* such, the first argument will be a well formed template call site object and the rest
* parameter will contain the substitution values. It can also be called directly, for example,
* to interleave strings and values from your own tag function, and in this case the only thing
* it needs from the first argument is the raw property.
* @param template A well-formed template string call site representation.
* @param substitutions A set of substitution values.
*/
raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string;
}
`,Ti["lib.es2015.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es5" />
/// <reference lib="es2015.core" />
/// <reference lib="es2015.collection" />
/// <reference lib="es2015.iterable" />
/// <reference lib="es2015.generator" />
/// <reference lib="es2015.promise" />
/// <reference lib="es2015.proxy" />
/// <reference lib="es2015.reflect" />
/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.symbol.wellknown" />
`,Ti["lib.es2015.generator.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
interface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
return(value: TReturn): IteratorResult<T, TReturn>;
throw(e: any): IteratorResult<T, TReturn>;
[Symbol.iterator](): Generator<T, TReturn, TNext>;
}
interface GeneratorFunction {
/**
* Creates a new Generator object.
* @param args A list of arguments the function accepts.
*/
new (...args: any[]): Generator;
/**
* Creates a new Generator object.
* @param args A list of arguments the function accepts.
*/
(...args: any[]): Generator;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: Generator;
}
interface GeneratorFunctionConstructor {
/**
* Creates a new Generator function.
* @param args A list of arguments the function accepts.
*/
new (...args: string[]): GeneratorFunction;
/**
* Creates a new Generator function.
* @param args A list of arguments the function accepts.
*/
(...args: string[]): GeneratorFunction;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: GeneratorFunction;
}
`,Ti["lib.es2015.iterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A method that returns the default iterator for an object. Called by the semantics of the
* for-of statement.
*/
readonly iterator: unique symbol;
}
interface IteratorYieldResult<TYield> {
done?: false;
value: TYield;
}
interface IteratorReturnResult<TReturn> {
done: true;
value: TReturn;
}
type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
interface Iterator<T, TReturn = any, TNext = undefined> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
return?(value?: TReturn): IteratorResult<T, TReturn>;
throw?(e?: any): IteratorResult<T, TReturn>;
}
interface Iterable<T> {
[Symbol.iterator](): Iterator<T>;
}
interface IterableIterator<T> extends Iterator<T> {
[Symbol.iterator](): IterableIterator<T>;
}
interface Array<T> {
/** Iterator */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, T]>;
/**
* Returns an iterable of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an iterable of values in the array
*/
values(): IterableIterator<T>;
}
interface ArrayConstructor {
/**
* Creates an array from an iterable object.
* @param iterable An iterable object to convert to an array.
*/
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
/**
* Creates an array from an iterable object.
* @param iterable An iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
}
interface ReadonlyArray<T> {
/** Iterator of values in the array. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, T]>;
/**
* Returns an iterable of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an iterable of values in the array
*/
values(): IterableIterator<T>;
}
interface IArguments {
/** Iterator */
[Symbol.iterator](): IterableIterator<any>;
}
interface Map<K, V> {
/** Returns an iterable of entries in the map. */
[Symbol.iterator](): IterableIterator<[K, V]>;
/**
* Returns an iterable of key, value pairs for every entry in the map.
*/
entries(): IterableIterator<[K, V]>;
/**
* Returns an iterable of keys in the map
*/
keys(): IterableIterator<K>;
/**
* Returns an iterable of values in the map
*/
values(): IterableIterator<V>;
}
interface ReadonlyMap<K, V> {
/** Returns an iterable of entries in the map. */
[Symbol.iterator](): IterableIterator<[K, V]>;
/**
* Returns an iterable of key, value pairs for every entry in the map.
*/
entries(): IterableIterator<[K, V]>;
/**
* Returns an iterable of keys in the map
*/
keys(): IterableIterator<K>;
/**
* Returns an iterable of values in the map
*/
values(): IterableIterator<V>;
}
interface MapConstructor {
new <K, V>(iterable: Iterable<readonly [K, V]>): Map<K, V>;
}
interface WeakMap<K extends object, V> { }
interface WeakMapConstructor {
new <K extends object, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
}
interface Set<T> {
/** Iterates over values in the set. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
*/
entries(): IterableIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set.
*/
keys(): IterableIterator<T>;
/**
* Returns an iterable of values in the set.
*/
values(): IterableIterator<T>;
}
interface ReadonlySet<T> {
/** Iterates over values in the set. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
*/
entries(): IterableIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set.
*/
keys(): IterableIterator<T>;
/**
* Returns an iterable of values in the set.
*/
values(): IterableIterator<T>;
}
interface SetConstructor {
new <T>(iterable?: Iterable<T> | null): Set<T>;
}
interface WeakSet<T extends object> { }
interface WeakSetConstructor {
new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>;
}
interface Promise<T> { }
interface PromiseConstructor {
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An iterable of Promises.
* @returns A new Promise.
*/
all<T>(values: Iterable<T | PromiseLike<T>>): Promise<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 Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An iterable of Promises.
* @returns A new Promise.
*/
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
}
interface String {
/** Iterator */
[Symbol.iterator](): IterableIterator<string>;
}
interface Int8Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int8ArrayConstructor {
new (elements: Iterable<number>): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
}
interface Uint8Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint8ArrayConstructor {
new (elements: Iterable<number>): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
}
interface Uint8ClampedArray {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint8ClampedArrayConstructor {
new (elements: Iterable<number>): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
}
interface Int16Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int16ArrayConstructor {
new (elements: Iterable<number>): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
}
interface Uint16Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint16ArrayConstructor {
new (elements: Iterable<number>): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
}
interface Int32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int32ArrayConstructor {
new (elements: Iterable<number>): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
}
interface Uint32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint32ArrayConstructor {
new (elements: Iterable<number>): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
}
interface Float32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Float32ArrayConstructor {
new (elements: Iterable<number>): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
}
interface Float64Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Float64ArrayConstructor {
new (elements: Iterable<number>): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
}
`,Ti["lib.es2015.promise.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface PromiseConstructor {
/**
* A reference to the prototype.
*/
readonly prototype: Promise<any>;
/**
* Creates a new Promise.
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
* a resolve callback used to resolve the promise with a value or the result of another promise,
* and a reject callback used to reject the promise with a provided reason or error.
*/
new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<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[]>;
// see: lib.es2015.iterable.d.ts
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T>(values: readonly T[]): Promise<T extends PromiseLike<infer U> ? U : T>;
// see: lib.es2015.iterable.d.ts
// race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;
/**
* Creates a new rejected promise for the provided reason.
* @param reason The reason the promise was rejected.
* @returns A new rejected Promise.
*/
reject<T = never>(reason?: any): Promise<T>;
/**
* Creates a new resolved promise.
* @returns A resolved promise.
*/
resolve(): Promise<void>;
/**
* Creates a new resolved promise for the provided value.
* @param value A promise.
* @returns A promise whose internal state matches the provided promise.
*/
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
}
declare var Promise: PromiseConstructor;
`,Ti["lib.es2015.proxy.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ProxyHandler<T extends object> {
apply?(target: T, thisArg: any, argArray: any[]): any;
construct?(target: T, argArray: any[], newTarget: Function): object;
defineProperty?(target: T, p: string | symbol, attributes: PropertyDescriptor): boolean;
deleteProperty?(target: T, p: string | symbol): boolean;
get?(target: T, p: string | symbol, receiver: any): any;
getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;
getPrototypeOf?(target: T): object | null;
has?(target: T, p: string | symbol): boolean;
isExtensible?(target: T): boolean;
ownKeys?(target: T): ArrayLike<string | symbol>;
preventExtensions?(target: T): boolean;
set?(target: T, p: string | symbol, value: any, receiver: any): boolean;
setPrototypeOf?(target: T, v: object | null): boolean;
}
interface ProxyConstructor {
revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };
new <T extends object>(target: T, handler: ProxyHandler<T>): T;
}
declare var Proxy: ProxyConstructor;
`,Ti["lib.es2015.reflect.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Reflect {
/**
* Calls the function with the specified object as the this value
* and the elements of specified array as the arguments.
* @param target The function to call.
* @param thisArgument The object to be used as the this object.
* @param argumentsList An array of argument values to be passed to the function.
*/
function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
/**
* Constructs the target with the elements of specified array as the arguments
* and the specified constructor as the \`new.target\` value.
* @param target The constructor to invoke.
* @param argumentsList An array of argument values to be passed to the constructor.
* @param newTarget The constructor to be used as the \`new.target\` object.
*/
function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;
/**
* Adds a property to an object, or modifies attributes of an existing property.
* @param target Object on which to add or modify the property. This can be a native JavaScript object
* (that is, a user-defined object or a built in object) or a DOM object.
* @param propertyKey The property name.
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
*/
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
/**
* Removes a property from an object, equivalent to \`delete target[propertyKey]\`,
* except it won't throw if \`target[propertyKey]\` is non-configurable.
* @param target Object from which to remove the own property.
* @param propertyKey The property name.
*/
function deleteProperty(target: object, propertyKey: PropertyKey): boolean;
/**
* Gets the property of target, equivalent to \`target[propertyKey]\` when \`receiver === target\`.
* @param target Object that contains the property on itself or in its prototype chain.
* @param propertyKey The property name.
* @param receiver The reference to use as the \`this\` value in the getter function,
* if \`target[propertyKey]\` is an accessor property.
*/
function get(target: object, propertyKey: PropertyKey, receiver?: any): any;
/**
* Gets the own property descriptor of the specified object.
* An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
* @param target Object that contains the property.
* @param propertyKey The property name.
*/
function getOwnPropertyDescriptor(target: object, propertyKey: PropertyKey): PropertyDescriptor | undefined;
/**
* Returns the prototype of an object.
* @param target The object that references the prototype.
*/
function getPrototypeOf(target: object): object | null;
/**
* Equivalent to \`propertyKey in target\`.
* @param target Object that contains the property on itself or in its prototype chain.
* @param propertyKey Name of the property.
*/
function has(target: object, propertyKey: PropertyKey): boolean;
/**
* Returns a value that indicates whether new properties can be added to an object.
* @param target Object to test.
*/
function isExtensible(target: object): boolean;
/**
* Returns the string and symbol keys of the own properties of an object. The own properties of an object
* are those that are defined directly on that object, and are not inherited from the object's prototype.
* @param target Object that contains the own properties.
*/
function ownKeys(target: object): (string | symbol)[];
/**
* Prevents the addition of new properties to an object.
* @param target Object to make non-extensible.
* @return Whether the object has been made non-extensible.
*/
function preventExtensions(target: object): boolean;
/**
* Sets the property of target, equivalent to \`target[propertyKey] = value\` when \`receiver === target\`.
* @param target Object that contains the property on itself or in its prototype chain.
* @param propertyKey Name of the property.
* @param receiver The reference to use as the \`this\` value in the setter function,
* if \`target[propertyKey]\` is an accessor property.
*/
function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
/**
* Sets the prototype of a specified object o to object proto or null.
* @param target The object to change its prototype.
* @param proto The value of the new prototype or null.
* @return Whether setting the prototype was successful.
*/
function setPrototypeOf(target: object, proto: object | null): boolean;
}
`,Ti["lib.es2015.symbol.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface SymbolConstructor {
/**
* A reference to the prototype.
*/
readonly prototype: Symbol;
/**
* Returns a new unique Symbol value.
* @param description Description of the new Symbol object.
*/
(description?: string | number): symbol;
/**
* Returns a Symbol object from the global symbol registry matching the given key if found.
* Otherwise, returns a new symbol with this key.
* @param key key to search for.
*/
for(key: string): symbol;
/**
* Returns a key from the global symbol registry matching the given Symbol if found.
* Otherwise, returns a undefined.
* @param sym Symbol to find the key for.
*/
keyFor(sym: symbol): string | undefined;
}
declare var Symbol: SymbolConstructor;`,Ti["lib.es2015.symbol.wellknown.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A method that determines if a constructor object recognizes an object as one of the
* constructor\u2019s instances. Called by the semantics of the instanceof operator.
*/
readonly hasInstance: unique symbol;
/**
* A Boolean value that if true indicates that an object should flatten to its array elements
* by Array.prototype.concat.
*/
readonly isConcatSpreadable: unique symbol;
/**
* A regular expression method that matches the regular expression against a string. Called
* by the String.prototype.match method.
*/
readonly match: unique symbol;
/**
* A regular expression method that replaces matched substrings of a string. Called by the
* String.prototype.replace method.
*/
readonly replace: unique symbol;
/**
* A regular expression method that returns the index within a string that matches the
* regular expression. Called by the String.prototype.search method.
*/
readonly search: unique symbol;
/**
* A function valued property that is the constructor function that is used to create
* derived objects.
*/
readonly species: unique symbol;
/**
* A regular expression method that splits a string at the indices that match the regular
* expression. Called by the String.prototype.split method.
*/
readonly split: unique symbol;
/**
* A method that converts an object to a corresponding primitive value.
* Called by the ToPrimitive abstract operation.
*/
readonly toPrimitive: unique symbol;
/**
* A String value that is used in the creation of the default string description of an object.
* Called by the built-in method Object.prototype.toString.
*/
readonly toStringTag: unique symbol;
/**
* An Object whose own property names are property names that are excluded from the 'with'
* environment bindings of the associated objects.
*/
readonly unscopables: unique symbol;
}
interface Symbol {
/**
* Converts a Symbol object to a symbol.
*/
[Symbol.toPrimitive](hint: string): symbol;
readonly [Symbol.toStringTag]: string;
}
interface Array<T> {
/**
* Returns an object whose properties have the value 'true'
* when they will be absent when used in a 'with' statement.
*/
[Symbol.unscopables](): {
copyWithin: boolean;
entries: boolean;
fill: boolean;
find: boolean;
findIndex: boolean;
keys: boolean;
values: boolean;
};
}
interface Date {
/**
* Converts a Date object to a string.
*/
[Symbol.toPrimitive](hint: "default"): string;
/**
* Converts a Date object to a string.
*/
[Symbol.toPrimitive](hint: "string"): string;
/**
* Converts a Date object to a number.
*/
[Symbol.toPrimitive](hint: "number"): number;
/**
* Converts a Date object to a string or number.
*
* @param hint The strings "number", "string", or "default" to specify what primitive to return.
*
* @throws {TypeError} If 'hint' was given something other than "number", "string", or "default".
* @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default".
*/
[Symbol.toPrimitive](hint: string): string | number;
}
interface Map<K, V> {
readonly [Symbol.toStringTag]: string;
}
interface WeakMap<K extends object, V> {
readonly [Symbol.toStringTag]: string;
}
interface Set<T> {
readonly [Symbol.toStringTag]: string;
}
interface WeakSet<T extends object> {
readonly [Symbol.toStringTag]: string;
}
interface JSON {
readonly [Symbol.toStringTag]: string;
}
interface Function {
/**
* Determines whether the given value inherits from this function if this function was used
* as a constructor function.
*
* A constructor function can control which objects are recognized as its instances by
* 'instanceof' by overriding this method.
*/
[Symbol.hasInstance](value: any): boolean;
}
interface GeneratorFunction {
readonly [Symbol.toStringTag]: string;
}
interface Math {
readonly [Symbol.toStringTag]: string;
}
interface Promise<T> {
readonly [Symbol.toStringTag]: string;
}
interface PromiseConstructor {
readonly [Symbol.species]: PromiseConstructor;
}
interface RegExp {
/**
* Matches a string with this regular expression, and returns an array containing the results of
* that search.
* @param string A string to search within.
*/
[Symbol.match](string: string): RegExpMatchArray | null;
/**
* Replaces text in a string, using this regular expression.
* @param string A String object or string literal whose contents matching against
* this regular expression will be replaced
* @param replaceValue A String object or string literal containing the text to replace for every
* successful match of this regular expression.
*/
[Symbol.replace](string: string, replaceValue: string): string;
/**
* Replaces text in a string, using this regular expression.
* @param string A String object or string literal whose contents matching against
* this regular expression will be replaced
* @param replacer A function that returns the replacement text.
*/
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the position beginning first substring match in a regular expression search
* using this regular expression.
*
* @param string The string to search within.
*/
[Symbol.search](string: string): number;
/**
* Returns an array of substrings that were delimited by strings in the original input that
* match against this regular expression.
*
* If the regular expression contains capturing parentheses, then each time this
* regular expression matches, the results (including any undefined results) of the
* capturing parentheses are spliced.
*
* @param string string value to split
* @param limit if not undefined, the output array is truncated so that it contains no more
* than 'limit' elements.
*/
[Symbol.split](string: string, limit?: number): string[];
}
interface RegExpConstructor {
readonly [Symbol.species]: RegExpConstructor;
}
interface String {
/**
* Matches a string or an object that supports being matched against, and returns an array
* containing the results of that search, or null if no matches are found.
* @param matcher An object that supports being matched against.
*/
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
/**
* Replaces first match with string or all matches with RegExp.
* @param searchValue A string or RegExp search value.
* @param replaceValue A string containing the text to replace for match.
*/
replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
/**
* Replaces text in a string, using an object that supports replacement within a string.
* @param searchValue A object can search for and replace matches within a string.
* @param replacer A function that returns the replacement text.
*/
replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the first substring match in a regular expression search.
* @param searcher An object which supports searching within a string.
*/
search(searcher: { [Symbol.search](string: string): number; }): number;
/**
* Split a string into substrings using the specified separator and return them as an array.
* @param splitter An object that can split a string.
* @param limit A value used to limit the number of elements returned in the array.
*/
split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];
}
interface ArrayBuffer {
readonly [Symbol.toStringTag]: string;
}
interface DataView {
readonly [Symbol.toStringTag]: string;
}
interface Int8Array {
readonly [Symbol.toStringTag]: "Int8Array";
}
interface Uint8Array {
readonly [Symbol.toStringTag]: "Uint8Array";
}
interface Uint8ClampedArray {
readonly [Symbol.toStringTag]: "Uint8ClampedArray";
}
interface Int16Array {
readonly [Symbol.toStringTag]: "Int16Array";
}
interface Uint16Array {
readonly [Symbol.toStringTag]: "Uint16Array";
}
interface Int32Array {
readonly [Symbol.toStringTag]: "Int32Array";
}
interface Uint32Array {
readonly [Symbol.toStringTag]: "Uint32Array";
}
interface Float32Array {
readonly [Symbol.toStringTag]: "Float32Array";
}
interface Float64Array {
readonly [Symbol.toStringTag]: "Float64Array";
}
interface ArrayConstructor {
readonly [Symbol.species]: ArrayConstructor;
}
interface MapConstructor {
readonly [Symbol.species]: MapConstructor;
}
interface SetConstructor {
readonly [Symbol.species]: SetConstructor;
}
interface ArrayBufferConstructor {
readonly [Symbol.species]: ArrayBufferConstructor;
}
`,Ti["lib.es2016.array.include.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: T, fromIndex?: number): boolean;
}
interface ReadonlyArray<T> {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: T, fromIndex?: number): boolean;
}
interface Int8Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint8Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint8ClampedArray {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Int16Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint16Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Int32Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint32Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Float32Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Float64Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}`,Ti["lib.es2016.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015" />
/// <reference lib="es2016.array.include" />`,Ti["lib.es2016.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2016" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />`,Ti["lib.es2017.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2016" />
/// <reference lib="es2017.object" />
/// <reference lib="es2017.sharedmemory" />
/// <reference lib="es2017.string" />
/// <reference lib="es2017.intl" />
/// <reference lib="es2017.typedarrays" />
`,Ti["lib.es2017.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2017" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />`,Ti["lib.es2017.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
type DateTimeFormatPartTypes = "day" | "dayPeriod" | "era" | "hour" | "literal" | "minute" | "month" | "second" | "timeZoneName" | "weekday" | "year";
interface DateTimeFormatPart {
type: DateTimeFormatPartTypes;
value: string;
}
interface DateTimeFormat {
formatToParts(date?: Date | number): DateTimeFormatPart[];
}
}
`,Ti["lib.es2017.object.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ObjectConstructor {
/**
* Returns an array of values of the enumerable properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];
/**
* Returns an array of values of the enumerable properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
values(o: {}): any[];
/**
* Returns an array of key/values of the enumerable properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][];
/**
* Returns an array of key/values of the enumerable properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
entries(o: {}): [string, any][];
/**
* Returns an object containing all own property descriptors of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor };
}
`,Ti["lib.es2017.sharedmemory.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.symbol.wellknown" />
interface SharedArrayBuffer {
/**
* Read-only. The length of the ArrayBuffer (in bytes).
*/
readonly byteLength: number;
/**
* Returns a section of an SharedArrayBuffer.
*/
slice(begin: number, end?: number): SharedArrayBuffer;
readonly [Symbol.species]: SharedArrayBuffer;
readonly [Symbol.toStringTag]: "SharedArrayBuffer";
}
interface SharedArrayBufferConstructor {
readonly prototype: SharedArrayBuffer;
new (byteLength: number): SharedArrayBuffer;
}
declare var SharedArrayBuffer: SharedArrayBufferConstructor;
interface ArrayBufferTypes {
SharedArrayBuffer: SharedArrayBuffer;
}
interface Atomics {
/**
* Adds a value to the value at the given position in the array, returning the original value.
* Until this atomic operation completes, any other read or write operation against the array
* will block.
*/
add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Stores the bitwise AND of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or
* write operation against the array will block.
*/
and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Replaces the value at the given position in the array if the original value equals the given
* expected value, returning the original value. Until this atomic operation completes, any
* other read or write operation against the array will block.
*/
compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number;
/**
* Replaces the value at the given position in the array, returning the original value. Until
* this atomic operation completes, any other read or write operation against the array will
* block.
*/
exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Returns a value indicating whether high-performance algorithms can use atomic operations
* (\`true\`) or must use locks (\`false\`) for the given number of bytes-per-element of a typed
* array.
*/
isLockFree(size: number): boolean;
/**
* Returns the value at the given position in the array. Until this atomic operation completes,
* any other read or write operation against the array will block.
*/
load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number;
/**
* Stores the bitwise OR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Stores a value at the given position in the array, returning the new value. Until this
* atomic operation completes, any other read or write operation against the array will block.
*/
store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Subtracts a value from the value at the given position in the array, returning the original
* value. Until this atomic operation completes, any other read or write operation against the
* array will block.
*/
sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* If the value at the given position in the array is equal to the provided value, the current
* agent is put to sleep causing execution to suspend until the timeout expires (returning
* \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
* \`"not-equal"\`.
*/
wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";
/**
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
* number of agents that were awoken.
* @param typedArray A shared Int32Array.
* @param index The position in the typedArray to wake up on.
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
*/
notify(typedArray: Int32Array, index: number, count?: number): number;
/**
* Stores the bitwise XOR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
readonly [Symbol.toStringTag]: "Atomics";
}
declare var Atomics: Atomics;
`,Ti["lib.es2017.string.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/**
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
* The padding is applied from the start (left) of the current string.
*
* @param maxLength The length of the resulting string once the current string has been padded.
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
*
* @param fillString The string to pad the current string with.
* If this string is too long, it will be truncated and the left-most part will be applied.
* The default value for this parameter is " " (U+0020).
*/
padStart(maxLength: number, fillString?: string): string;
/**
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
* The padding is applied from the end (right) of the current string.
*
* @param maxLength The length of the resulting string once the current string has been padded.
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
*
* @param fillString The string to pad the current string with.
* If this string is too long, it will be truncated and the left-most part will be applied.
* The default value for this parameter is " " (U+0020).
*/
padEnd(maxLength: number, fillString?: string): string;
}
`,Ti["lib.es2017.typedarrays.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Int8ArrayConstructor {
new (): Int8Array;
}
interface Uint8ArrayConstructor {
new (): Uint8Array;
}
interface Uint8ClampedArrayConstructor {
new (): Uint8ClampedArray;
}
interface Int16ArrayConstructor {
new (): Int16Array;
}
interface Uint16ArrayConstructor {
new (): Uint16Array;
}
interface Int32ArrayConstructor {
new (): Int32Array;
}
interface Uint32ArrayConstructor {
new (): Uint32Array;
}
interface Float32ArrayConstructor {
new (): Float32Array;
}
interface Float64ArrayConstructor {
new (): Float64Array;
}
`,Ti["lib.es2018.asyncgenerator.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018.asynciterable" />
interface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
throw(e: any): Promise<IteratorResult<T, TReturn>>;
[Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
}
interface AsyncGeneratorFunction {
/**
* Creates a new AsyncGenerator object.
* @param args A list of arguments the function accepts.
*/
new (...args: any[]): AsyncGenerator;
/**
* Creates a new AsyncGenerator object.
* @param args A list of arguments the function accepts.
*/
(...args: any[]): AsyncGenerator;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: AsyncGenerator;
}
interface AsyncGeneratorFunctionConstructor {
/**
* Creates a new AsyncGenerator function.
* @param args A list of arguments the function accepts.
*/
new (...args: string[]): AsyncGeneratorFunction;
/**
* Creates a new AsyncGenerator function.
* @param args A list of arguments the function accepts.
*/
(...args: string[]): AsyncGeneratorFunction;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: AsyncGeneratorFunction;
}
`,Ti["lib.es2018.asynciterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.iterable" />
interface SymbolConstructor {
/**
* A method that returns the default async iterator for an object. Called by the semantics of
* the for-await-of statement.
*/
readonly asyncIterator: unique symbol;
}
interface AsyncIterator<T, TReturn = any, TNext = undefined> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
}
interface AsyncIterable<T> {
[Symbol.asyncIterator](): AsyncIterator<T>;
}
interface AsyncIterableIterator<T> extends AsyncIterator<T> {
[Symbol.asyncIterator](): AsyncIterableIterator<T>;
}`,Ti["lib.es2018.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2017" />
/// <reference lib="es2018.asynciterable" />
/// <reference lib="es2018.asyncgenerator" />
/// <reference lib="es2018.promise" />
/// <reference lib="es2018.regexp" />
/// <reference lib="es2018.intl" />
`,Ti["lib.es2018.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />`,Ti["lib.es2018.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
// http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories
type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";
type PluralRuleType = "cardinal" | "ordinal";
interface PluralRulesOptions {
localeMatcher?: "lookup" | "best fit";
type?: PluralRuleType;
minimumIntegerDigits?: number;
minimumFractionDigits?: number;
maximumFractionDigits?: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
}
interface ResolvedPluralRulesOptions {
locale: string;
pluralCategories: LDMLPluralRule[];
type: PluralRuleType;
minimumIntegerDigits: number;
minimumFractionDigits: number;
maximumFractionDigits: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
}
interface PluralRules {
resolvedOptions(): ResolvedPluralRulesOptions;
select(n: number): LDMLPluralRule;
}
const PluralRules: {
new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
(locales?: string | string[], options?: PluralRulesOptions): PluralRules;
supportedLocalesOf(
locales: string | string[],
options?: PluralRulesOptions,
): string[];
};
}
`,Ti["lib.es2018.promise.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/**
* Represents the completion of an asynchronous operation
*/
interface Promise<T> {
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): Promise<T>
}
`,Ti["lib.es2018.regexp.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface RegExpMatchArray {
groups?: {
[key: string]: string
}
}
interface RegExpExecArray {
groups?: {
[key: string]: string
}
}
interface RegExp {
/**
* Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.
* Default is false. Read-only.
*/
readonly dotAll: boolean;
}`,Ti["lib.es2019.array.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
type FlatArray<Arr, Depth extends number> = {
"done": Arr,
"recur": Arr extends ReadonlyArray<infer InnerArr>
? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]>
: Arr
}[Depth extends -1 ? "done" : "recur"];
interface ReadonlyArray<T> {
/**
* Calls a defined callback function on each element of an array. Then, flattens the result into
* a new array.
* This is identical to a map followed by flat with depth 1.
*
* @param callback A function that accepts up to three arguments. The flatMap method calls the
* callback function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callback function. If
* thisArg is omitted, undefined is used as the this value.
*/
flatMap<U, This = undefined> (
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
thisArg?: This
): U[]
/**
* Returns a new array with all sub-array elements concatenated into it recursively up to the
* specified depth.
*
* @param depth The maximum recursion depth
*/
flat<A, D extends number = 1>(
this: A,
depth?: D
): FlatArray<A, D>[]
}
interface Array<T> {
/**
* Calls a defined callback function on each element of an array. Then, flattens the result into
* a new array.
* This is identical to a map followed by flat with depth 1.
*
* @param callback A function that accepts up to three arguments. The flatMap method calls the
* callback function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callback function. If
* thisArg is omitted, undefined is used as the this value.
*/
flatMap<U, This = undefined> (
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
thisArg?: This
): U[]
/**
* Returns a new array with all sub-array elements concatenated into it recursively up to the
* specified depth.
*
* @param depth The maximum recursion depth
*/
flat<A, D extends number = 1>(
this: A,
depth?: D
): FlatArray<A, D>[]
}
`,Ti["lib.es2019.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018" />
/// <reference lib="es2019.array" />
/// <reference lib="es2019.object" />
/// <reference lib="es2019.string" />
/// <reference lib="es2019.symbol" />
`,Ti["lib.es2019.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2019" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`,Ti["lib.es2019.object.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
interface ObjectConstructor {
/**
* Returns an object created by key-value entries for properties and methods
* @param entries An iterable object that contains key-value entries for properties and methods.
*/
fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T };
/**
* Returns an object created by key-value entries for properties and methods
* @param entries An iterable object that contains key-value entries for properties and methods.
*/
fromEntries(entries: Iterable<readonly any[]>): any;
}
`,Ti["lib.es2019.string.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/** Removes the trailing white space and line terminator characters from a string. */
trimEnd(): string;
/** Removes the leading white space and line terminator characters from a string. */
trimStart(): string;
/** Removes the leading white space and line terminator characters from a string. */
trimLeft(): string;
/** Removes the trailing white space and line terminator characters from a string. */
trimRight(): string;
}
`,Ti["lib.es2019.symbol.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Symbol {
/**
* Expose the [[Description]] internal slot of a symbol directly.
*/
readonly description: string | undefined;
}
`,Ti["lib.es2020.bigint.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface BigIntToLocaleStringOptions {
/**
* The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
*/
localeMatcher?: string;
/**
* The formatting style to use , the default is "decimal".
*/
style?: string;
numberingSystem?: string;
/**
* The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided.
*/
unit?: string;
/**
* The unit formatting style to use in unit formatting, the defaults is "short".
*/
unitDisplay?: string;
/**
* The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB \u2014 see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency".
*/
currency?: string;
/**
* How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".
*
* "symbol" to use a localized currency symbol such as \u20AC,
*
* "code" to use the ISO currency code,
*
* "name" to use a localized currency name such as "dollar"
*/
currencyDisplay?: string;
/**
* Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.
*/
useGrouping?: boolean;
/**
* The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.
*/
minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information).
*/
minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
/**
* The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.
*/
maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
/**
* The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.
*/
minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.
*/
maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The formatting that should be displayed for the number, the defaults is "standard"
*
* "standard" plain number formatting
*
* "scientific" return the order-of-magnitude for formatted number.
*
* "engineering" return the exponent of ten when divisible by three
*
* "compact" string representing exponent, defaults is using the "short" form
*/
notation?: string;
/**
* used only when notation is "compact"
*/
compactDisplay?: string;
}
interface BigInt {
/**
* Returns a string representation of an object.
* @param radix Specifies a radix for converting numeric values to strings.
*/
toString(radix?: number): string;
/** Returns a string representation appropriate to the host environment's current locale. */
toLocaleString(locales?: string, options?: BigIntToLocaleStringOptions): string;
/** Returns the primitive value of the specified object. */
valueOf(): bigint;
readonly [Symbol.toStringTag]: "BigInt";
}
interface BigIntConstructor {
(value: bigint | boolean | number | string): bigint;
readonly prototype: BigInt;
/**
* Interprets the low bits of a BigInt as a 2's-complement signed integer.
* All higher bits are discarded.
* @param bits The number of low bits to use
* @param int The BigInt whose bits to extract
*/
asIntN(bits: number, int: bigint): bigint;
/**
* Interprets the low bits of a BigInt as an unsigned integer.
* All higher bits are discarded.
* @param bits The number of low bits to use
* @param int The BigInt whose bits to extract
*/
asUintN(bits: number, int: bigint): bigint;
}
declare var BigInt: BigIntConstructor;
/**
* A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated, an exception is raised.
*/
interface BigInt64Array {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/** The ArrayBuffer instance referenced by the array. */
readonly buffer: ArrayBufferLike;
/** The length in bytes of the array. */
readonly byteLength: number;
/** The offset in bytes of the array. */
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/** Yields index, value pairs for every entry in the array. */
entries(): IterableIterator<[number, bigint]>;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns false,
* or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: bigint, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: bigint, fromIndex?: number): boolean;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: bigint, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/** Yields each index in the array. */
keys(): IterableIterator<number>;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: bigint, fromIndex?: number): number;
/** The length of the array. */
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
/** Reverses the elements in the array. */
reverse(): this;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<bigint>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array.
*/
slice(start?: number, end?: number): BigInt64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls the
* predicate function for each element in the array until the predicate returns true, or until
* the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
/**
* Sorts the array.
* @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
*/
sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
/**
* Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): BigInt64Array;
/** Converts the array to a string by using the current locale. */
toLocaleString(): string;
/** Returns a string representation of the array. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): BigInt64Array;
/** Yields each value in the array. */
values(): IterableIterator<bigint>;
[Symbol.iterator](): IterableIterator<bigint>;
readonly [Symbol.toStringTag]: "BigInt64Array";
[index: number]: bigint;
}
interface BigInt64ArrayConstructor {
readonly prototype: BigInt64Array;
new(length?: number): BigInt64Array;
new(array: Iterable<bigint>): BigInt64Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: bigint[]): BigInt64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike<bigint>): BigInt64Array;
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;
}
declare var BigInt64Array: BigInt64ArrayConstructor;
/**
* A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated, an exception is raised.
*/
interface BigUint64Array {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/** The ArrayBuffer instance referenced by the array. */
readonly buffer: ArrayBufferLike;
/** The length in bytes of the array. */
readonly byteLength: number;
/** The offset in bytes of the array. */
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/** Yields index, value pairs for every entry in the array. */
entries(): IterableIterator<[number, bigint]>;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns false,
* or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: bigint, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: bigint, fromIndex?: number): boolean;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: bigint, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/** Yields each index in the array. */
keys(): IterableIterator<number>;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: bigint, fromIndex?: number): number;
/** The length of the array. */
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
/** Reverses the elements in the array. */
reverse(): this;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<bigint>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array.
*/
slice(start?: number, end?: number): BigUint64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls the
* predicate function for each element in the array until the predicate returns true, or until
* the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
/**
* Sorts the array.
* @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
*/
sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
/**
* Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): BigUint64Array;
/** Converts the array to a string by using the current locale. */
toLocaleString(): string;
/** Returns a string representation of the array. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): BigUint64Array;
/** Yields each value in the array. */
values(): IterableIterator<bigint>;
[Symbol.iterator](): IterableIterator<bigint>;
readonly [Symbol.toStringTag]: "BigUint64Array";
[index: number]: bigint;
}
interface BigUint64ArrayConstructor {
readonly prototype: BigUint64Array;
new(length?: number): BigUint64Array;
new(array: Iterable<bigint>): BigUint64Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: bigint[]): BigUint64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike<bigint>): BigUint64Array;
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
}
declare var BigUint64Array: BigUint64ArrayConstructor;
interface DataView {
/**
* Gets the BigInt64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;
/**
* Gets the BigUint64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;
/**
* Stores a BigInt64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
/**
* Stores a BigUint64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
}
declare namespace Intl{
interface NumberFormat {
format(value: number | bigint): string;
resolvedOptions(): ResolvedNumberFormatOptions;
}
}
`,Ti["lib.es2020.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2019" />
/// <reference lib="es2020.bigint" />
/// <reference lib="es2020.promise" />
/// <reference lib="es2020.sharedmemory" />
/// <reference lib="es2020.string" />
/// <reference lib="es2020.symbol.wellknown" />
/// <reference lib="es2020.intl" />
`,Ti["lib.es2020.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`,Ti["lib.es2020.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
/**
* [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
*
*/
type UnicodeBCP47LocaleIdentifier = string;
/**
* Unit to use in the relative time internationalized message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
*
* [Specification](https://tc39.es/ecma402/#sec-singularrelativetimeunit).
*/
type RelativeTimeFormatUnit =
| "year" | "years"
| "quarter" | "quarters"
| "month" | "months"
| "week" | "weeks"
| "day" | "days"
| "hour" | "hours"
| "minute" | "minutes"
| "second" | "seconds"
;
/**
* The locale matching algorithm to use.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
*
* [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).
*/
type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";
/**
* The format of output message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*
* [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).
*/
type RelativeTimeFormatNumeric = "always" | "auto";
/**
* The length of the internationalized message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*
* [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).
*/
type RelativeTimeFormatStyle = "long" | "short" | "narrow";
/**
* An object with some or all of properties of \`options\` parameter
* of \`Intl.RelativeTimeFormat\` constructor.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*
* [Specification](https://tc39.es/ecma402/#sec-InitializeRelativeTimeFormat).
*/
interface RelativeTimeFormatOptions {
localeMatcher?: RelativeTimeFormatLocaleMatcher;
numeric?: RelativeTimeFormatNumeric;
style?: RelativeTimeFormatStyle;
}
/**
* An object with properties reflecting the locale
* and formatting options computed during initialization
* of the \`Intel.RelativeTimeFormat\` object
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
*
* [Specification](https://tc39.es/ecma402/#table-relativetimeformat-resolvedoptions-properties)
*/
interface ResolvedRelativeTimeFormatOptions {
locale: UnicodeBCP47LocaleIdentifier;
style: RelativeTimeFormatStyle;
numeric: RelativeTimeFormatNumeric;
numberingSystem: string;
}
/**
* An object representing the relative time format in parts
* that can be used for custom locale-aware formatting.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
*
* [Specification](https://tc39.es/ecma402/#sec-FormatRelativeTimeToParts).
*/
interface RelativeTimeFormatPart {
type: string;
value: string;
unit?: RelativeTimeFormatUnit;
}
interface RelativeTimeFormat {
/**
* Formats a value and a unit according to the locale
* and formatting options of the given
* [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
* object.
*
* While this method automatically provides the correct plural forms,
* the grammatical form is otherwise as neutral as possible.
* It is the caller's responsibility to handle cut-off logic
* such as deciding between displaying "in 7 days" or "in 1 week".
* This API does not support relative dates involving compound units.
* e.g "in 5 days and 4 hours".
*
* @param value - Numeric value to use in the internationalized relative time message
*
* @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit)
* to use in the relative time internationalized message.
* Possible values are: \`"year"\`, \`"quarter"\`, \`"month"\`, \`"week"\`,
* \`"day"\`, \`"hour"\`, \`"minute"\`, \`"second"\`.
* Plural forms are also permitted.
*
* @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
*
* @returns Internationalized relative time message as string
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
*
* [Specification](https://tc39.es/ecma402/#sec-Intl.RelativeTimeFormat.prototype.format).
*/
format(
value: number,
unit: RelativeTimeFormatUnit,
): string;
/**
* A version of the format method which it returns an array of objects
* which represent "parts" of the object,
* separating the formatted number into its constituent parts
* and separating it from other surrounding text.
* These objects have two properties:
* \`type\` a NumberFormat formatToParts type, and \`value\`,
* which is the String which is the component of the output.
* If a "part" came from NumberFormat,
* it will have a unit property which indicates the \`unit\` being formatted;
* literals which are part of the larger frame will not have this property.
*
* @param value - Numeric value to use in the internationalized relative time message
*
* @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit)
* to use in the relative time internationalized message.
* Possible values are: \`"year"\`, \`"quarter"\`, \`"month"\`, \`"week"\`,
* \`"day"\`, \`"hour"\`, \`"minute"\`, \`"second"\`.
* Plural forms are also permitted.
*
* @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
*
* @returns Array of [FormatRelativeTimeToParts](https://tc39.es/ecma402/#sec-FormatRelativeTimeToParts)
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
*
* [Specification](https://tc39.es/ecma402/#sec-Intl.RelativeTimeFormat.prototype.formatToParts).
*/
formatToParts(
value: number,
unit: RelativeTimeFormatUnit,
): RelativeTimeFormatPart[];
/**
* Provides access to the locale and options computed during initialization of this \`Intl.RelativeTimeFormat\` object.
*
* @returns A new object with properties reflecting the locale
* and formatting options computed during initialization
* of the \`Intel.RelativeTimeFormat\` object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
*
* [Specification](https://tc39.es/ecma402/#sec-intl.relativetimeformat.prototype.resolvedoptions)
*/
resolvedOptions(): ResolvedRelativeTimeFormatOptions;
}
/**
* The [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
* object is a constructor for objects that enable language-sensitive relative time formatting.
*
* Part of [Intl object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl)
* namespace and the [ECMAScript Internationalization API](https://www.ecma-international.org/publications/standards/Ecma-402.htm).
*
* [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
*
* [Polyfills](https://github.com/tc39/proposal-intl-relative-time#polyfills).
*/
const RelativeTimeFormat: {
/**
* Constructor creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
* objects
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
* with some or all of options of the formatting.
* An object with some or all of the following properties:
* - \`localeMatcher\` - The locale matching algorithm to use.
* Possible values are \`"lookup"\` and \`"best fit"\`; the default is \`"best fit"\`.
* For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
* - \`numeric\` - The format of output message.
* Possible values are: \`"always"\` (default, e.g., \`1 day ago\`) or \`"auto"\` (e.g., \`yesterday\`).
* The \`"auto"\` value allows to not always have to use numeric values in the output.
* - \`style\` - The length of the internationalized message. Possible values are:
* \`"long"\` (default, e.g., in 1 month),
* \`"short"\` (e.g., in 1 mo.)
* or \`"narrow"\` (e.g., in 1 mo.). The narrow style could be similar to the short style for some locales.
*
* @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
*
* [Specification](https://tc39.es/ecma402/#sec-intl-relativetimeformat-constructor).
*/
new(
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
options?: RelativeTimeFormatOptions,
): RelativeTimeFormat;
/**
* Returns an array containing those of the provided locales
* that are supported in date and time formatting
* without having to fall back to the runtime's default locale.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
* with some or all of options of the formatting.
* An object with some or all of the following properties:
* - \`localeMatcher\` - The locale matching algorithm to use.
* Possible values are \`"lookup"\` and \`"best fit"\`; the default is \`"best fit"\`.
* For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
* - \`numeric\` - The format of output message.
* Possible values are: \`"always"\` (default, e.g., \`1 day ago\`) or \`"auto"\` (e.g., \`yesterday\`).
* The \`"auto"\` value allows to not always have to use numeric values in the output.
* - \`style\` - The length of the internationalized message. Possible values are:
* \`"long"\` (default, e.g., in 1 month),
* \`"short"\` (e.g., in 1 mo.)
* or \`"narrow"\` (e.g., in 1 mo.). The narrow style could be similar to the short style for some locales.
*
* @returns An array containing those of the provided locales
* that are supported in date and time formatting
* without having to fall back to the runtime's default locale.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
*
* [Specification](https://tc39.es/ecma402/#sec-Intl.RelativeTimeFormat.supportedLocalesOf).
*/
supportedLocalesOf(
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
options?: RelativeTimeFormatOptions,
): UnicodeBCP47LocaleIdentifier[];
};
interface NumberFormatOptions {
compactDisplay?: string;
notation?: string;
signDisplay?: string;
unit?: string;
unitDisplay?: string;
}
interface ResolvedNumberFormatOptions {
compactDisplay?: string;
notation?: string;
signDisplay?: string;
unit?: string;
unitDisplay?: string;
}
interface DateTimeFormatOptions {
dateStyle?: "full" | "long" | "medium" | "short";
timeStyle?: "full" | "long" | "medium" | "short";
calendar?: string;
dayPeriod?: "narrow" | "short" | "long";
numberingSystem?: string;
hourCycle?: "h11" | "h12" | "h23" | "h24";
fractionalSecondDigits?: 0 | 1 | 2 | 3;
}
}
`,Ti["lib.es2020.promise.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface PromiseFulfilledResult<T> {
status: "fulfilled";
value: T;
}
interface PromiseRejectedResult {
status: "rejected";
reason: any;
}
type PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;
interface PromiseConstructor {
/**
* Creates a Promise that is resolved with an array of results when all
* of the provided Promises resolve or reject.
* @param values An array of Promises.
* @returns A new Promise.
*/
allSettled<T extends readonly unknown[] | readonly [unknown]>(values: T):
Promise<{ -readonly [P in keyof T]: PromiseSettledResult<T[P] extends PromiseLike<infer U> ? U : T[P]> }>;
/**
* Creates a Promise that is resolved with an array of results when all
* of the provided Promises resolve or reject.
* @param values An array of Promises.
* @returns A new Promise.
*/
allSettled<T>(values: Iterable<T>): Promise<PromiseSettledResult<T extends PromiseLike<infer U> ? U : T>[]>;
}
`,Ti["lib.es2020.sharedmemory.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Atomics {
/**
* Adds a value to the value at the given position in the array, returning the original value.
* Until this atomic operation completes, any other read or write operation against the array
* will block.
*/
add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Stores the bitwise AND of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or
* write operation against the array will block.
*/
and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Replaces the value at the given position in the array if the original value equals the given
* expected value, returning the original value. Until this atomic operation completes, any
* other read or write operation against the array will block.
*/
compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint;
/**
* Replaces the value at the given position in the array, returning the original value. Until
* this atomic operation completes, any other read or write operation against the array will
* block.
*/
exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Returns the value at the given position in the array. Until this atomic operation completes,
* any other read or write operation against the array will block.
*/
load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint;
/**
* Stores the bitwise OR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Stores a value at the given position in the array, returning the new value. Until this
* atomic operation completes, any other read or write operation against the array will block.
*/
store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Subtracts a value from the value at the given position in the array, returning the original
* value. Until this atomic operation completes, any other read or write operation against the
* array will block.
*/
sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* If the value at the given position in the array is equal to the provided value, the current
* agent is put to sleep causing execution to suspend until the timeout expires (returning
* \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
* \`"not-equal"\`.
*/
wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";
/**
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
* number of agents that were awoken.
* @param typedArray A shared BigInt64Array.
* @param index The position in the typedArray to wake up on.
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
*/
notify(typedArray: BigInt64Array, index: number, count?: number): number;
/**
* Stores the bitwise XOR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
}
`,Ti["lib.es2020.string.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
interface String {
/**
* Matches a string with a regular expression, and returns an iterable of matches
* containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>;
}
`,Ti["lib.es2020.symbol.wellknown.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A regular expression method that matches the regular expression against a string. Called
* by the String.prototype.matchAll method.
*/
readonly matchAll: unique symbol;
}
interface RegExp {
/**
* Matches a string with this regular expression, and returns an iterable of matches
* containing the results of that search.
* @param string A string to search within.
*/
[Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;
}
`,Ti["lib.es2021.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020" />
/// <reference lib="es2021.promise" />
/// <reference lib="es2021.string" />
/// <reference lib="es2021.weakref" />
`,Ti["lib.es2021.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2021" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`,Ti["lib.es2021.promise.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface AggregateError extends Error {
errors: any[]
}
interface AggregateErrorConstructor {
new(errors: Iterable<any>, message?: string): AggregateError;
(errors: Iterable<any>, message?: string): AggregateError;
readonly prototype: AggregateError;
}
declare var AggregateError: AggregateErrorConstructor;
/**
* Represents the completion of an asynchronous operation
*/
interface PromiseConstructor {
/**
* The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
* @param values An array or iterable of Promises.
* @returns A new Promise.
*/
any<T>(values: (T | PromiseLike<T>)[] | Iterable<T | PromiseLike<T>>): Promise<T>
}
`,Ti["lib.es2021.string.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/**
* Replace all instances of a substring in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
*/
replaceAll(searchValue: string | RegExp, replaceValue: string): string;
/**
* Replace all instances of a substring in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replacer A function that returns the replacement text.
*/
replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
}
`,Ti["lib.es2021.weakref.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface WeakRef<T extends object> {
readonly [Symbol.toStringTag]: "WeakRef";
/**
* Returns the WeakRef instance's target object, or undefined if the target object has been
* reclaimed.
*/
deref(): T | undefined;
}
interface WeakRefConstructor {
readonly prototype: WeakRef<any>;
/**
* Creates a WeakRef instance for the given target object.
* @param target The target object for the WeakRef instance.
*/
new<T extends object>(target: T): WeakRef<T>;
}
declare var WeakRef: WeakRefConstructor;
interface FinalizationRegistry<T> {
readonly [Symbol.toStringTag]: "FinalizationRegistry";
/**
* Registers an object with the registry.
* @param target The target object to register.
* @param heldValue The value to pass to the finalizer for this object. This cannot be the
* target object.
* @param unregisterToken The token to pass to the unregister method to unregister the target
* object. If provided (and not undefined), this must be an object. If not provided, the target
* cannot be unregistered.
*/
register(target: object, heldValue: T, unregisterToken?: object): void;
/**
* Unregisters an object from the registry.
* @param unregisterToken The token that was used as the unregisterToken argument when calling
* register to register the target object.
*/
unregister(unregisterToken: object): void;
}
interface FinalizationRegistryConstructor {
readonly prototype: FinalizationRegistry<any>;
/**
* Creates a finalization registry with an associated cleanup callback
* @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
*/
new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
}
declare var FinalizationRegistry: FinalizationRegistryConstructor;
`,Ti["lib.es5.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// ECMAScript APIs
/////////////////////////////
declare var NaN: number;
declare var Infinity: number;
/**
* Evaluates JavaScript code and executes it.
* @param x A String value that contains valid JavaScript code.
*/
declare function eval(x: string): any;
/**
* Converts a string to an integer.
* @param string A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
declare function parseInt(string: string, radix?: number): number;
/**
* Converts a string to a floating-point number.
* @param string A string that contains a floating-point number.
*/
declare function parseFloat(string: string): number;
/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
* @param number A numeric value.
*/
declare function isNaN(number: number): boolean;
/**
* Determines whether a supplied number is finite.
* @param number Any numeric value.
*/
declare function isFinite(number: number): boolean;
/**
* Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
* @param encodedURI A value representing an encoded URI.
*/
declare function decodeURI(encodedURI: string): string;
/**
* Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
* @param encodedURIComponent A value representing an encoded URI component.
*/
declare function decodeURIComponent(encodedURIComponent: string): string;
/**
* Encodes a text string as a valid Uniform Resource Identifier (URI)
* @param uri A value representing an encoded URI.
*/
declare function encodeURI(uri: string): string;
/**
* Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
* @param uriComponent A value representing an encoded URI component.
*/
declare function encodeURIComponent(uriComponent: string | number | boolean): string;
/**
* Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
* @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<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;
/**
* Adds one or more properties to an object, and/or modifies attributes of existing properties.
* @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
* @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
*/
defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;
/**
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
seal<T>(o: T): T;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param 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: 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 extends ErrorConstructor {
new(message?: string): EvalError;
(message?: string): EvalError;
readonly prototype: EvalError;
}
declare var EvalError: EvalErrorConstructor;
interface RangeError extends Error {
}
interface RangeErrorConstructor extends ErrorConstructor {
new(message?: string): RangeError;
(message?: string): RangeError;
readonly prototype: RangeError;
}
declare var RangeError: RangeErrorConstructor;
interface ReferenceError extends Error {
}
interface ReferenceErrorConstructor extends ErrorConstructor {
new(message?: string): ReferenceError;
(message?: string): ReferenceError;
readonly prototype: ReferenceError;
}
declare var ReferenceError: ReferenceErrorConstructor;
interface SyntaxError extends Error {
}
interface SyntaxErrorConstructor extends ErrorConstructor {
new(message?: string): SyntaxError;
(message?: string): SyntaxError;
readonly prototype: SyntaxError;
}
declare var SyntaxError: SyntaxErrorConstructor;
interface TypeError extends Error {
}
interface TypeErrorConstructor extends ErrorConstructor {
new(message?: string): TypeError;
(message?: string): TypeError;
readonly prototype: TypeError;
}
declare var TypeError: TypeErrorConstructor;
interface URIError extends Error {
}
interface URIErrorConstructor extends ErrorConstructor {
new(message?: string): URIError;
(message?: string): URIError;
readonly prototype: URIError;
}
declare var URIError: URIErrorConstructor;
interface JSON {
/**
* Converts a JavaScript Object Notation (JSON) string into an object.
* @param text A valid JSON string.
* @param reviver A function that transforms the results. This function is called for each member of the object.
* If a member contains nested objects, the nested objects are transformed before the parent object is.
*/
parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer A function that transforms the results.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
}
/**
* An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
*/
declare var JSON: JSON;
/////////////////////////////
/// ECMAScript Array API (specially handled by compiler)
/////////////////////////////
interface ReadonlyArray<T> {
/**
* Gets the length of the array. This is a number one higher than the highest element defined in an array.
*/
readonly length: number;
/**
* Returns a string representation of an array.
*/
toString(): string;
/**
* Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
*/
toLocaleString(): string;
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: ConcatArray<T>[]): T[];
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: (T | ConcatArray<T>)[]): T[];
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): T[];
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
*/
indexOf(searchElement: T, fromIndex?: number): number;
/**
* Returns the index of the last occurrence of a specified value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
*/
lastIndexOf(searchElement: T, fromIndex?: number): number;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;
/**
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
readonly [n: number]: T;
}
interface ConcatArray<T> {
readonly length: number;
readonly [n: number]: T;
join(separator?: string): string;
slice(start?: number, end?: number): T[];
}
interface Array<T> {
/**
* Gets or sets the length of the array. This is a number one higher than the highest index in the array.
*/
length: number;
/**
* Returns a string representation of an array.
*/
toString(): string;
/**
* Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
*/
toLocaleString(): string;
/**
* Removes the last element from an array and returns it.
* If the array is empty, undefined is returned and the array is not modified.
*/
pop(): T | undefined;
/**
* Appends new elements to the end of an array, and returns the new length of the array.
* @param items New elements to add to the array.
*/
push(...items: T[]): number;
/**
* Combines two or more arrays.
* This method returns a new array without modifying any existing arrays.
* @param items Additional arrays and/or items to add to the end of the array.
*/
concat(...items: ConcatArray<T>[]): T[];
/**
* Combines two or more arrays.
* This method returns a new array without modifying any existing arrays.
* @param items Additional arrays and/or items to add to the end of the array.
*/
concat(...items: (T | ConcatArray<T>)[]): T[];
/**
* Adds all the elements of an array into a string, separated by the specified separator string.
* @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Reverses the elements in an array in place.
* This method mutates the array and returns a reference to the same array.
*/
reverse(): T[];
/**
* Removes the first element from an array and returns it.
* If the array is empty, undefined is returned and the array is not modified.
*/
shift(): T | undefined;
/**
* Returns a copy of a section of an array.
* For both start and end, a negative index can be used to indicate an offset from the end of the array.
* For example, -2 refers to the second to last element of the array.
* @param start The beginning index of the specified portion of the array.
* If start is undefined, then the slice begins at index 0.
* @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.
* If end is undefined, then the slice extends to the end of the array.
*/
slice(start?: number, end?: number): T[];
/**
* Sorts an array in place.
* This method mutates the array and returns a reference to the same array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if 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.
* @returns An array containing the elements that were deleted.
*/
splice(start: number, deleteCount?: number): T[];
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @param items Elements to insert into the array in place of the deleted elements.
* @returns An array containing the elements that were deleted.
*/
splice(start: number, deleteCount: number, ...items: T[]): T[];
/**
* Inserts new elements at the start of an array, and returns the new length of the array.
* @param items Elements to insert at the start of the array.
*/
unshift(...items: T[]): number;
/**
* Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
*/
indexOf(searchElement: T, fromIndex?: number): number;
/**
* Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.
*/
lastIndexOf(searchElement: T, fromIndex?: number): number;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
/**
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
[n: number]: T;
}
interface ArrayConstructor {
new(arrayLength?: number): any[];
new <T>(arrayLength: number): T[];
new <T>(...items: T[]): T[];
(arrayLength?: number): any[];
<T>(arrayLength: number): T[];
<T>(...items: T[]): T[];
isArray(arg: any): arg is any[];
readonly prototype: any[];
}
declare var Array: ArrayConstructor;
interface TypedPropertyDescriptor<T> {
enumerable?: boolean;
configurable?: boolean;
writable?: boolean;
value?: T;
get?: () => T;
set?: (value: T) => void;
}
declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
interface PromiseLike<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
}
/**
* Represents the completion of an asynchronous operation
*/
interface Promise<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
}
interface ArrayLike<T> {
readonly length: number;
readonly [n: number]: T;
}
/**
* Make all properties in T optional
*/
type Partial<T> = {
[P in keyof T]?: T[P];
};
/**
* Make all properties in T required
*/
type Required<T> = {
[P in keyof T]-?: T[P];
};
/**
* Make all properties in T readonly
*/
type Readonly<T> = {
readonly [P in keyof T]: T[P];
};
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
/**
* Construct a type with a set of properties K of type T
*/
type Record<K extends keyof any, T> = {
[P in K]: T;
};
/**
* Exclude from T those types that are assignable to U
*/
type Exclude<T, U> = T extends U ? never : T;
/**
* Extract from T those types that are assignable to U
*/
type Extract<T, U> = T extends U ? T : never;
/**
* Construct a type with the properties of T except for those in type K.
*/
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
/**
* Exclude null and undefined from T
*/
type NonNullable<T> = T extends null | undefined ? never : T;
/**
* Obtain the parameters of a function type in a tuple
*/
type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;
/**
* Obtain the parameters of a constructor function type in a tuple
*/
type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;
/**
* Obtain the return type of a function type
*/
type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
/**
* Obtain the return type of a constructor function type
*/
type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;
/**
* Convert string literal type to uppercase
*/
type Uppercase<S extends string> = intrinsic;
/**
* Convert string literal type to lowercase
*/
type Lowercase<S extends string> = intrinsic;
/**
* Convert first character of string literal type to uppercase
*/
type Capitalize<S extends string> = intrinsic;
/**
* Convert first character of string literal type to lowercase
*/
type Uncapitalize<S extends string> = intrinsic;
/**
* Marker for contextual 'this' type
*/
interface ThisType<T> { }
/**
* Represents a raw buffer of binary data, which is used to store data for the
* different typed arrays. ArrayBuffers cannot be read from or written to directly,
* but can be passed to a typed array or DataView Object to interpret the raw
* buffer as needed.
*/
interface ArrayBuffer {
/**
* Read-only. The length of the ArrayBuffer (in bytes).
*/
readonly byteLength: number;
/**
* Returns a section of an ArrayBuffer.
*/
slice(begin: number, end?: number): ArrayBuffer;
}
/**
* Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.
*/
interface ArrayBufferTypes {
ArrayBuffer: ArrayBuffer;
}
type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
interface ArrayBufferConstructor {
readonly prototype: ArrayBuffer;
new(byteLength: number): ArrayBuffer;
isView(arg: any): arg is ArrayBufferView;
}
declare var ArrayBuffer: ArrayBufferConstructor;
interface ArrayBufferView {
/**
* The ArrayBuffer instance referenced by the array.
*/
buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
byteLength: number;
/**
* The offset in bytes of the array.
*/
byteOffset: number;
}
interface DataView {
readonly buffer: ArrayBuffer;
readonly byteLength: number;
readonly byteOffset: number;
/**
* Gets the Float32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getFloat32(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Float64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getFloat64(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Int8 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getInt8(byteOffset: number): number;
/**
* Gets the Int16 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getInt16(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Int32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getInt32(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Uint8 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getUint8(byteOffset: number): number;
/**
* Gets the Uint16 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getUint16(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Uint32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getUint32(byteOffset: number, littleEndian?: boolean): number;
/**
* Stores an Float32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Float64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Int8 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
*/
setInt8(byteOffset: number, value: number): void;
/**
* Stores an Int16 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Int32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Uint8 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
*/
setUint8(byteOffset: number, value: number): void;
/**
* Stores an Uint16 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Uint32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
}
interface DataViewConstructor {
readonly prototype: DataView;
new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
}
declare var DataView: DataViewConstructor;
/**
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
* number of bytes could not be allocated an exception is raised.
*/
interface Int8Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int8Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int8Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, 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;
/** Returns the primitive value of the specified object. */
valueOf(): Int8Array;
[index: number]: number;
}
interface Int8ArrayConstructor {
readonly prototype: Int8Array;
new(length: number): Int8Array;
new(array: ArrayLike<number> | ArrayBufferLike): Int8Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
}
declare var Int8Array: Int8ArrayConstructor;
/**
* A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint8Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint8Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint8Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, 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;
/** Returns the primitive value of the specified object. */
valueOf(): Uint8Array;
[index: number]: number;
}
interface Uint8ArrayConstructor {
readonly prototype: Uint8Array;
new(length: number): Uint8Array;
new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
}
declare var Uint8Array: Uint8ArrayConstructor;
/**
* A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
* If the requested number of bytes could not be allocated an exception is raised.
*/
interface Uint8ClampedArray {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint8ClampedArray;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint8ClampedArray;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, 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;
/** Returns the primitive value of the specified object. */
valueOf(): Uint8ClampedArray;
[index: number]: number;
}
interface Uint8ClampedArrayConstructor {
readonly prototype: Uint8ClampedArray;
new(length: number): Uint8ClampedArray;
new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;
}
declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;
/**
* A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Int16Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int16Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int16Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, 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;
/** Returns the primitive value of the specified object. */
valueOf(): Int16Array;
[index: number]: number;
}
interface Int16ArrayConstructor {
readonly prototype: Int16Array;
new(length: number): Int16Array;
new(array: ArrayLike<number> | ArrayBufferLike): Int16Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
}
declare var Int16Array: Int16ArrayConstructor;
/**
* A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint16Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint16Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint16Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, 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;
/** Returns the primitive value of the specified object. */
valueOf(): Uint16Array;
[index: number]: number;
}
interface Uint16ArrayConstructor {
readonly prototype: Uint16Array;
new(length: number): Uint16Array;
new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
}
declare var Uint16Array: Uint16ArrayConstructor;
/**
* A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Int32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, 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;
/** Returns the primitive value of the specified object. */
valueOf(): Int32Array;
[index: number]: number;
}
interface Int32ArrayConstructor {
readonly prototype: Int32Array;
new(length: number): Int32Array;
new(array: ArrayLike<number> | ArrayBufferLike): Int32Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
}
declare var Int32Array: Int32ArrayConstructor;
/**
* A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, 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;
/** Returns the primitive value of the specified object. */
valueOf(): Uint32Array;
[index: number]: number;
}
interface Uint32ArrayConstructor {
readonly prototype: Uint32Array;
new(length: number): Uint32Array;
new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
}
declare var Uint32Array: Uint32ArrayConstructor;
/**
* A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
* of bytes could not be allocated an exception is raised.
*/
interface Float32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Float32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Float32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, 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;
/** Returns the primitive value of the specified object. */
valueOf(): Float32Array;
[index: number]: number;
}
interface Float32ArrayConstructor {
readonly prototype: Float32Array;
new(length: number): Float32Array;
new(array: ArrayLike<number> | ArrayBufferLike): Float32Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
}
declare var Float32Array: Float32ArrayConstructor;
/**
* A typed array of 64-bit float values. The contents are initialized to 0. If the requested
* number of bytes could not be allocated an exception is raised.
*/
interface Float64Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Float64Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Float64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending, 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;
/** Returns the primitive value of the specified object. */
valueOf(): Float64Array;
[index: number]: number;
}
interface Float64ArrayConstructor {
readonly prototype: Float64Array;
new(length: number): Float64Array;
new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
}
declare var Float64Array: Float64ArrayConstructor;
/////////////////////////////
/// ECMAScript Internationalization API
/////////////////////////////
declare namespace Intl {
interface CollatorOptions {
usage?: string;
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;
currencySign?: 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?: "best fit" | "lookup";
weekday?: "long" | "short" | "narrow";
era?: "long" | "short" | "narrow";
year?: "numeric" | "2-digit";
month?: "numeric" | "2-digit" | "long" | "short" | "narrow";
day?: "numeric" | "2-digit";
hour?: "numeric" | "2-digit";
minute?: "numeric" | "2-digit";
second?: "numeric" | "2-digit";
timeZoneName?: "long" | "short";
formatMatcher?: "best fit" | "basic";
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;
}
`,Ti["lib.es6.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015" />
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
`,Ti["lib.esnext.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2021" />
/// <reference lib="esnext.intl" />
`,Ti["lib.esnext.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="esnext" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />`,Ti["lib.esnext.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
type NumberFormatPartTypes = "compact" | "currency" | "decimal" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "fraction" | "group" | "infinity" | "integer" | "literal" | "minusSign" | "nan" | "plusSign" | "percentSign" | "unit" | "unknown";
interface NumberFormatPart {
type: NumberFormatPartTypes;
value: string;
}
interface NumberFormat {
formatToParts(number?: number | bigint): NumberFormatPart[];
}
}
`,Ti["lib.esnext.promise.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface AggregateError extends Error {
errors: any[]
}
interface AggregateErrorConstructor {
new(errors: Iterable<any>, message?: string): AggregateError;
(errors: Iterable<any>, message?: string): AggregateError;
readonly prototype: AggregateError;
}
declare var AggregateError: AggregateErrorConstructor;
/**
* Represents the completion of an asynchronous operation
*/
interface PromiseConstructor {
/**
* The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
* @param values An array or iterable of Promises.
* @returns A new Promise.
*/
any<T>(values: (T | PromiseLike<T>)[] | Iterable<T | PromiseLike<T>>): Promise<T>
}
`,Ti["lib.esnext.string.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/**
* Replace all instances of a substring in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
*/
replaceAll(searchValue: string | RegExp, replaceValue: string): string;
/**
* Replace all instances of a substring in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replacer A function that returns the replacement text.
*/
replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
}
`,Ti["lib.esnext.weakref.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface WeakRef<T extends object> {
readonly [Symbol.toStringTag]: "WeakRef";
/**
* Returns the WeakRef instance's target object, or undefined if the target object has been
* reclaimed.
*/
deref(): T | undefined;
}
interface WeakRefConstructor {
readonly prototype: WeakRef<any>;
/**
* Creates a WeakRef instance for the given target object.
* @param target The target object for the WeakRef instance.
*/
new<T extends object>(target?: T): WeakRef<T>;
}
declare var WeakRef: WeakRefConstructor;
interface FinalizationRegistry {
readonly [Symbol.toStringTag]: "FinalizationRegistry";
/**
* Registers an object with the registry.
* @param target The target object to register.
* @param heldValue The value to pass to the finalizer for this object. This cannot be the
* target object.
* @param unregisterToken The token to pass to the unregister method to unregister the target
* object. If provided (and not undefined), this must be an object. If not provided, the target
* cannot be unregistered.
*/
register(target: object, heldValue: any, unregisterToken?: object): void;
/**
* Unregisters an object from the registry.
* @param unregisterToken The token that was used as the unregisterToken argument when calling
* register to register the target object.
*/
unregister(unregisterToken: object): void;
}
interface FinalizationRegistryConstructor {
readonly prototype: FinalizationRegistry;
/**
* Creates a finalization registry with an associated cleanup callback
* @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
*/
new(cleanupCallback: (heldValue: any) => void): FinalizationRegistry;
}
declare var FinalizationRegistry: FinalizationRegistryConstructor;
`,Ti["lib.scripthost.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Windows Script Host APIS
/////////////////////////////
interface ActiveXObject {
new (s: string): any;
}
declare var ActiveXObject: ActiveXObject;
interface ITextWriter {
Write(s: string): void;
WriteLine(s: string): void;
Close(): void;
}
interface TextStreamBase {
/**
* The column number of the current character position in an input stream.
*/
Column: number;
/**
* The current line number in an input stream.
*/
Line: number;
/**
* Closes a text stream.
* It is not necessary to close standard streams; they close automatically when the process ends. If
* you close a standard stream, be aware that any other pointers to that standard stream become invalid.
*/
Close(): void;
}
interface TextStreamWriter extends TextStreamBase {
/**
* Sends a string to an output stream.
*/
Write(s: string): void;
/**
* Sends a specified number of blank lines (newline characters) to an output stream.
*/
WriteBlankLines(intLines: number): void;
/**
* Sends a string followed by a newline character to an output stream.
*/
WriteLine(s: string): void;
}
interface TextStreamReader extends TextStreamBase {
/**
* Returns a specified number of characters from an input stream, starting at the current pointer position.
* Does not return until the ENTER key is pressed.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
Read(characters: number): string;
/**
* Returns all characters from an input stream.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
ReadAll(): string;
/**
* Returns an entire line from an input stream.
* Although this method extracts the newline character, it does not add it to the returned string.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
ReadLine(): string;
/**
* Skips a specified number of characters when reading from an input text stream.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
* @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)
*/
Skip(characters: number): void;
/**
* Skips the next line when reading from an input text stream.
* Can only be used on a stream in reading mode, not writing or appending mode.
*/
SkipLine(): void;
/**
* Indicates whether the stream pointer position is at the end of a line.
*/
AtEndOfLine: boolean;
/**
* Indicates whether the stream pointer position is at the end of a stream.
*/
AtEndOfStream: boolean;
}
declare var WScript: {
/**
* Outputs text to either a message box (under WScript.exe) or the command console window followed by
* a newline (under CScript.exe).
*/
Echo(s: any): void;
/**
* Exposes the write-only error output stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdErr: TextStreamWriter;
/**
* Exposes the write-only output stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdOut: TextStreamWriter;
Arguments: { length: number; Item(n: number): string; };
/**
* The full path of the currently running script.
*/
ScriptFullName: string;
/**
* Forces the script to stop immediately, with an optional exit code.
*/
Quit(exitCode?: number): number;
/**
* The Windows Script Host build version number.
*/
BuildVersion: number;
/**
* Fully qualified path of the host executable.
*/
FullName: string;
/**
* Gets/sets the script mode - interactive(true) or batch(false).
*/
Interactive: boolean;
/**
* The name of the host executable (WScript.exe or CScript.exe).
*/
Name: string;
/**
* Path of the directory containing the host executable.
*/
Path: string;
/**
* The filename of the currently running script.
*/
ScriptName: string;
/**
* Exposes the read-only input stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdIn: TextStreamReader;
/**
* Windows Script Host version
*/
Version: string;
/**
* Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event.
*/
ConnectObject(objEventSource: any, strPrefix: string): void;
/**
* Creates a COM object.
* @param strProgiID
* @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
*/
CreateObject(strProgID: string, strPrefix?: string): any;
/**
* Disconnects a COM object from its event sources.
*/
DisconnectObject(obj: any): void;
/**
* Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.
* @param strPathname Fully qualified path to the file containing the object persisted to disk.
* For objects in memory, pass a zero-length string.
* @param strProgID
* @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
*/
GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;
/**
* Suspends script execution for a specified length of time, then continues execution.
* @param intTime Interval (in milliseconds) to suspend script execution.
*/
Sleep(intTime: number): void;
};
/**
* WSH is an alias for WScript under Windows Script Host
*/
declare var WSH: typeof WScript;
/**
* Represents an Automation SAFEARRAY
*/
declare class SafeArray<T = any> {
private constructor();
private SafeArray_typekey: SafeArray<T>;
}
/**
* Allows enumerating over a COM collection, which may not have indexed item access.
*/
interface Enumerator<T = any> {
/**
* Returns true if the current item is the last one in the collection, or the collection is empty,
* or the current item is undefined.
*/
atEnd(): boolean;
/**
* Returns the current item in the collection
*/
item(): T;
/**
* Resets the current item in the collection to the first item. If there are no items in the collection,
* the current item is set to undefined.
*/
moveFirst(): void;
/**
* Moves the current item to the next item in the collection. If the enumerator is at the end of
* the collection or the collection is empty, the current item is set to undefined.
*/
moveNext(): void;
}
interface EnumeratorConstructor {
new <T = any>(safearray: SafeArray<T>): Enumerator<T>;
new <T = any>(collection: { Item(index: any): T }): Enumerator<T>;
new <T = any>(collection: any): Enumerator<T>;
}
declare var Enumerator: EnumeratorConstructor;
/**
* Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.
*/
interface VBArray<T = any> {
/**
* Returns the number of dimensions (1-based).
*/
dimensions(): number;
/**
* Takes an index for each dimension in the array, and returns the item at the corresponding location.
*/
getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;
/**
* Returns the smallest available index for a given dimension.
* @param dimension 1-based dimension (defaults to 1)
*/
lbound(dimension?: number): number;
/**
* Returns the largest available index for a given dimension.
* @param dimension 1-based dimension (defaults to 1)
*/
ubound(dimension?: number): number;
/**
* Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,
* each successive dimension is appended to the end of the array.
* Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]
*/
toArray(): T[];
}
interface VBArrayConstructor {
new <T = any>(safeArray: SafeArray<T>): VBArray<T>;
}
declare var VBArray: VBArrayConstructor;
/**
* Automation date (VT_DATE)
*/
declare class VarDate {
private constructor();
private VarDate_typekey: VarDate;
}
interface DateConstructor {
new (vd: VarDate): Date;
}
interface Date {
getVarDate: () => VarDate;
}
`,Ti["lib.webworker.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Worker APIs
/////////////////////////////
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
signal?: AbortSignal;
}
interface AesCbcParams extends Algorithm {
iv: BufferSource;
}
interface AesCtrParams extends Algorithm {
counter: BufferSource;
length: number;
}
interface AesDerivedKeyParams extends Algorithm {
length: number;
}
interface AesGcmParams extends Algorithm {
additionalData?: BufferSource;
iv: BufferSource;
tagLength?: number;
}
interface AesKeyAlgorithm extends KeyAlgorithm {
length: number;
}
interface AesKeyGenParams extends Algorithm {
length: number;
}
interface Algorithm {
name: string;
}
interface AudioConfiguration {
bitrate?: number;
channels?: string;
contentType: string;
samplerate?: number;
spatialRendering?: boolean;
}
interface BlobPropertyBag {
endings?: EndingType;
type?: string;
}
interface CacheQueryOptions {
ignoreMethod?: boolean;
ignoreSearch?: boolean;
ignoreVary?: boolean;
}
interface ClientQueryOptions {
includeUncontrolled?: boolean;
type?: ClientTypes;
}
interface CloseEventInit extends EventInit {
code?: number;
reason?: string;
wasClean?: boolean;
}
interface CryptoKeyPair {
privateKey?: CryptoKey;
publicKey?: CryptoKey;
}
interface CustomEventInit<T = any> extends EventInit {
detail?: T;
}
interface DOMMatrix2DInit {
a?: number;
b?: number;
c?: number;
d?: number;
e?: number;
f?: number;
m11?: number;
m12?: number;
m21?: number;
m22?: number;
m41?: number;
m42?: number;
}
interface DOMMatrixInit extends DOMMatrix2DInit {
is2D?: boolean;
m13?: number;
m14?: number;
m23?: number;
m24?: number;
m31?: number;
m32?: number;
m33?: number;
m34?: number;
m43?: number;
m44?: number;
}
interface DOMPointInit {
w?: number;
x?: number;
y?: number;
z?: number;
}
interface DOMQuadInit {
p1?: DOMPointInit;
p2?: DOMPointInit;
p3?: DOMPointInit;
p4?: DOMPointInit;
}
interface DOMRectInit {
height?: number;
width?: number;
x?: number;
y?: number;
}
interface EcKeyGenParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcKeyImportParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcdhKeyDeriveParams extends Algorithm {
public: CryptoKey;
}
interface EcdsaParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface ErrorEventInit extends EventInit {
colno?: number;
error?: any;
filename?: string;
lineno?: number;
message?: string;
}
interface EventInit {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
}
interface EventListenerOptions {
capture?: boolean;
}
interface EventSourceInit {
withCredentials?: boolean;
}
interface ExtendableEventInit extends EventInit {
}
interface ExtendableMessageEventInit extends ExtendableEventInit {
data?: any;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: Client | ServiceWorker | MessagePort | null;
}
interface FetchEventInit extends ExtendableEventInit {
clientId?: string;
handled?: Promise<undefined>;
preloadResponse?: Promise<any>;
replacesClientId?: string;
request: Request;
resultingClientId?: string;
}
interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
interface FontFaceDescriptors {
display?: string;
featureSettings?: string;
stretch?: string;
style?: string;
unicodeRange?: string;
variant?: string;
weight?: string;
}
interface FontFaceSetLoadEventInit extends EventInit {
fontfaces?: FontFace[];
}
interface GetNotificationOptions {
tag?: string;
}
interface HkdfParams extends Algorithm {
hash: HashAlgorithmIdentifier;
info: BufferSource;
salt: BufferSource;
}
interface HmacImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface HmacKeyGenParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface IDBDatabaseInfo {
name?: string;
version?: number;
}
interface IDBIndexParameters {
multiEntry?: boolean;
unique?: boolean;
}
interface IDBObjectStoreParameters {
autoIncrement?: boolean;
keyPath?: string | string[] | null;
}
interface IDBVersionChangeEventInit extends EventInit {
newVersion?: number | null;
oldVersion?: number;
}
interface ImageBitmapOptions {
colorSpaceConversion?: ColorSpaceConversion;
imageOrientation?: ImageOrientation;
premultiplyAlpha?: PremultiplyAlpha;
resizeHeight?: number;
resizeQuality?: ResizeQuality;
resizeWidth?: number;
}
interface ImageBitmapRenderingContextSettings {
alpha?: boolean;
}
interface ImageDataSettings {
colorSpace?: PredefinedColorSpace;
}
interface ImportMeta {
url: string;
}
interface JsonWebKey {
alg?: string;
crv?: string;
d?: string;
dp?: string;
dq?: string;
e?: string;
ext?: boolean;
k?: string;
key_ops?: string[];
kty?: string;
n?: string;
oth?: RsaOtherPrimesInfo[];
p?: string;
q?: string;
qi?: string;
use?: string;
x?: string;
y?: string;
}
interface KeyAlgorithm {
name: string;
}
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaDecodingConfiguration;
}
interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaEncodingConfiguration;
}
interface MediaCapabilitiesInfo {
powerEfficient: boolean;
smooth: boolean;
supported: boolean;
}
interface MediaConfiguration {
audio?: AudioConfiguration;
video?: VideoConfiguration;
}
interface MediaDecodingConfiguration extends MediaConfiguration {
type: MediaDecodingType;
}
interface MediaEncodingConfiguration extends MediaConfiguration {
type: MediaEncodingType;
}
interface MessageEventInit<T = any> extends EventInit {
data?: T;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: MessageEventSource | null;
}
interface MultiCacheQueryOptions extends CacheQueryOptions {
cacheName?: string;
}
interface NotificationAction {
action: string;
icon?: string;
title: string;
}
interface NotificationEventInit extends ExtendableEventInit {
action?: string;
notification: Notification;
}
interface NotificationOptions {
actions?: NotificationAction[];
badge?: string;
body?: string;
data?: any;
dir?: NotificationDirection;
icon?: string;
image?: string;
lang?: string;
renotify?: boolean;
requireInteraction?: boolean;
silent?: boolean;
tag?: string;
timestamp?: DOMTimeStamp;
vibrate?: VibratePattern;
}
interface Pbkdf2Params extends Algorithm {
hash: HashAlgorithmIdentifier;
iterations: number;
salt: BufferSource;
}
interface PerformanceMarkOptions {
detail?: any;
startTime?: DOMHighResTimeStamp;
}
interface PerformanceMeasureOptions {
detail?: any;
duration?: DOMHighResTimeStamp;
end?: string | DOMHighResTimeStamp;
start?: string | DOMHighResTimeStamp;
}
interface PerformanceObserverInit {
buffered?: boolean;
entryTypes?: string[];
type?: string;
}
interface PermissionDescriptor {
name: PermissionName;
}
interface PostMessageOptions {
transfer?: any[];
}
interface ProgressEventInit extends EventInit {
lengthComputable?: boolean;
loaded?: number;
total?: number;
}
interface PromiseRejectionEventInit extends EventInit {
promise: Promise<any>;
reason?: any;
}
interface PushEventInit extends ExtendableEventInit {
data?: PushMessageDataInit;
}
interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: DOMTimeStamp | null;
keys?: Record<string, string>;
}
interface PushSubscriptionOptionsInit {
applicationServerKey?: BufferSource | string | null;
userVisibleOnly?: boolean;
}
interface QueuingStrategy<T = any> {
highWaterMark?: number;
size?: QueuingStrategySize<T>;
}
interface QueuingStrategyInit {
/**
* Creates a new ByteLengthQueuingStrategy with the provided high water mark.
*
* Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
*/
highWaterMark: number;
}
interface ReadableStreamDefaultReadDoneResult {
done: true;
value?: undefined;
}
interface ReadableStreamDefaultReadValueResult<T> {
done: false;
value: T;
}
interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/**
* Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*/
writable: WritableStream<W>;
}
interface RegistrationOptions {
scope?: string;
type?: WorkerType;
updateViaCache?: ServiceWorkerUpdateViaCache;
}
interface RequestInit {
/**
* A BodyInit object or null to set request's body.
*/
body?: BodyInit | null;
/**
* A string indicating how the request will interact with the browser's cache to set request's cache.
*/
cache?: RequestCache;
/**
* A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials.
*/
credentials?: RequestCredentials;
/**
* A Headers object, an object literal, or an array of two-item arrays to set request's headers.
*/
headers?: HeadersInit;
/**
* A cryptographic hash of the resource to be fetched by request. Sets request's integrity.
*/
integrity?: string;
/**
* A boolean to set request's keepalive.
*/
keepalive?: boolean;
/**
* A string to set request's method.
*/
method?: string;
/**
* A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode.
*/
mode?: RequestMode;
/**
* A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect.
*/
redirect?: RequestRedirect;
/**
* A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer.
*/
referrer?: string;
/**
* A referrer policy to set request's referrerPolicy.
*/
referrerPolicy?: ReferrerPolicy;
/**
* An AbortSignal to set request's signal.
*/
signal?: AbortSignal | null;
/**
* Can only be null. Used to disassociate request from any Window.
*/
window?: any;
}
interface ResponseInit {
headers?: HeadersInit;
status?: number;
statusText?: string;
}
interface RsaHashedImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface RsaHashedKeyGenParams extends RsaKeyGenParams {
hash: HashAlgorithmIdentifier;
}
interface RsaKeyGenParams extends Algorithm {
modulusLength: number;
publicExponent: BigInteger;
}
interface RsaOaepParams extends Algorithm {
label?: BufferSource;
}
interface RsaOtherPrimesInfo {
d?: string;
r?: string;
t?: string;
}
interface RsaPssParams extends Algorithm {
saltLength: number;
}
interface SecurityPolicyViolationEventInit extends EventInit {
blockedURI?: string;
columnNumber?: number;
disposition: SecurityPolicyViolationEventDisposition;
documentURI: string;
effectiveDirective: string;
lineNumber?: number;
originalPolicy: string;
referrer?: string;
sample?: string;
sourceFile?: string;
statusCode: number;
violatedDirective: string;
}
interface StorageEstimate {
quota?: number;
usage?: number;
}
interface StreamPipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
/**
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*
* Errors and closures of the source and destination streams propagate as follows:
*
* An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
*
* An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
*
* When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
*
* If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
*
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
*/
preventClose?: boolean;
signal?: AbortSignal;
}
interface TextDecodeOptions {
stream?: boolean;
}
interface TextDecoderOptions {
fatal?: boolean;
ignoreBOM?: boolean;
}
interface TextEncoderEncodeIntoResult {
read?: number;
written?: number;
}
interface Transformer<I = any, O = any> {
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
transform?: TransformerTransformCallback<I, O>;
writableType?: undefined;
}
interface UnderlyingSink<W = any> {
abort?: UnderlyingSinkAbortCallback;
close?: UnderlyingSinkCloseCallback;
start?: UnderlyingSinkStartCallback;
type?: undefined;
write?: UnderlyingSinkWriteCallback<W>;
}
interface UnderlyingSource<R = any> {
cancel?: UnderlyingSourceCancelCallback;
pull?: UnderlyingSourcePullCallback<R>;
start?: UnderlyingSourceStartCallback<R>;
type?: undefined;
}
interface VideoConfiguration {
bitrate: number;
colorGamut?: ColorGamut;
contentType: string;
framerate: number;
hdrMetadataType?: HdrMetadataType;
height: number;
scalabilityMode?: string;
transferFunction?: TransferFunction;
width: number;
}
interface WebGLContextAttributes {
alpha?: boolean;
antialias?: boolean;
depth?: boolean;
desynchronized?: boolean;
failIfMajorPerformanceCaveat?: boolean;
powerPreference?: WebGLPowerPreference;
premultipliedAlpha?: boolean;
preserveDrawingBuffer?: boolean;
stencil?: boolean;
}
interface WebGLContextEventInit extends EventInit {
statusMessage?: string;
}
interface WorkerOptions {
credentials?: RequestCredentials;
name?: string;
type?: WorkerType;
}
/** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */
interface ANGLE_instanced_arrays {
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;
}
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
interface AbortController {
/**
* Returns the AbortSignal object associated with this object.
*/
readonly signal: AbortSignal;
/**
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
*/
abort(): void;
}
declare var AbortController: {
prototype: AbortController;
new(): AbortController;
};
interface AbortSignalEventMap {
"abort": Event;
}
/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
interface AbortSignal extends EventTarget {
/**
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
*/
readonly aborted: boolean;
onabort: ((this: AbortSignal, ev: Event) => any) | null;
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AbortSignal: {
prototype: AbortSignal;
new(): AbortSignal;
};
interface AbstractWorkerEventMap {
"error": ErrorEvent;
}
interface AbstractWorker {
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface AnimationFrameProvider {
cancelAnimationFrame(handle: number): void;
requestAnimationFrame(callback: FrameRequestCallback): number;
}
/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
interface Blob {
readonly size: number;
readonly type: string;
arrayBuffer(): Promise<ArrayBuffer>;
slice(start?: number, end?: number, contentType?: string): Blob;
stream(): ReadableStream;
text(): Promise<string>;
}
declare var Blob: {
prototype: Blob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
interface Body {
readonly body: ReadableStream<Uint8Array> | null;
readonly bodyUsed: boolean;
arrayBuffer(): Promise<ArrayBuffer>;
blob(): Promise<Blob>;
formData(): Promise<FormData>;
json(): Promise<any>;
text(): Promise<string>;
}
interface BroadcastChannelEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
interface BroadcastChannel extends EventTarget {
/**
* Returns the channel name (as passed to the constructor).
*/
readonly name: string;
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/**
* Closes the BroadcastChannel object, opening it up to garbage collection.
*/
close(): void;
/**
* Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.
*/
postMessage(message: any): void;
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var BroadcastChannel: {
prototype: BroadcastChannel;
new(name: string): BroadcastChannel;
};
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
readonly highWaterMark: number;
readonly size: QueuingStrategySize<ArrayBufferView>;
}
declare var ByteLengthQueuingStrategy: {
prototype: ByteLengthQueuingStrategy;
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
};
/** Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. */
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?: MultiCacheQueryOptions): Promise<Response | undefined>;
open(cacheName: string): Promise<Cache>;
}
declare var CacheStorage: {
prototype: CacheStorage;
new(): CacheStorage;
};
/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
interface CanvasGradient {
/**
* Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
*
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
*/
addColorStop(offset: number, color: string): void;
}
declare var CanvasGradient: {
prototype: CanvasGradient;
new(): CanvasGradient;
};
interface CanvasPath {
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
closePath(): void;
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
lineTo(x: number, y: number): void;
moveTo(x: number, y: number): void;
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
rect(x: number, y: number, w: number, h: number): void;
}
/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
interface CanvasPattern {
/**
* Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.
*/
setTransform(transform?: DOMMatrix2DInit): void;
}
declare var CanvasPattern: {
prototype: CanvasPattern;
new(): CanvasPattern;
};
/** The Client\xA0interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific\xA0WindowClient. You can get\xA0Client/WindowClient\xA0objects from methods such as Clients.matchAll() and\xA0Clients.get(). */
interface Client {
readonly frameType: FrameType;
readonly id: string;
readonly type: ClientTypes;
readonly url: string;
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: PostMessageOptions): void;
}
declare var Client: {
prototype: Client;
new(): Client;
};
/** Provides access to\xA0Client\xA0objects. Access it\xA0via self.clients\xA0within a\xA0service worker. */
interface Clients {
claim(): Promise<void>;
get(id: string): Promise<Client | undefined>;
matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;
openWindow(url: string | URL): Promise<WindowClient | null>;
}
declare var Clients: {
prototype: Clients;
new(): Clients;
};
/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */
interface CloseEvent extends Event {
/**
* Returns the WebSocket connection close code provided by the server.
*/
readonly code: number;
/**
* Returns the WebSocket connection close reason provided by the server.
*/
readonly reason: string;
/**
* Returns true if the connection closed cleanly; false otherwise.
*/
readonly wasClean: boolean;
}
declare var CloseEvent: {
prototype: CloseEvent;
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
};
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface CountQueuingStrategy extends QueuingStrategy {
readonly highWaterMark: number;
readonly size: QueuingStrategySize;
}
declare var CountQueuingStrategy: {
prototype: CountQueuingStrategy;
new(init: QueuingStrategyInit): CountQueuingStrategy;
};
/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
interface Crypto {
readonly subtle: SubtleCrypto;
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
}
declare var Crypto: {
prototype: Crypto;
new(): Crypto;
};
/** The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. */
interface CryptoKey {
readonly algorithm: KeyAlgorithm;
readonly extractable: boolean;
readonly type: KeyType;
readonly usages: KeyUsage[];
}
declare var CryptoKey: {
prototype: CryptoKey;
new(): CryptoKey;
};
interface CustomEvent<T = any> extends Event {
/**
* Returns any custom data event was created with. Typically used for synthetic events.
*/
readonly detail: T;
/** @deprecated */
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}
declare var CustomEvent: {
prototype: CustomEvent;
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
interface DOMException {
readonly code: number;
readonly message: string;
readonly name: string;
readonly ABORT_ERR: number;
readonly DATA_CLONE_ERR: number;
readonly DOMSTRING_SIZE_ERR: number;
readonly HIERARCHY_REQUEST_ERR: number;
readonly INDEX_SIZE_ERR: number;
readonly INUSE_ATTRIBUTE_ERR: number;
readonly INVALID_ACCESS_ERR: number;
readonly INVALID_CHARACTER_ERR: number;
readonly INVALID_MODIFICATION_ERR: number;
readonly INVALID_NODE_TYPE_ERR: number;
readonly INVALID_STATE_ERR: number;
readonly NAMESPACE_ERR: number;
readonly NETWORK_ERR: number;
readonly NOT_FOUND_ERR: number;
readonly NOT_SUPPORTED_ERR: number;
readonly NO_DATA_ALLOWED_ERR: number;
readonly NO_MODIFICATION_ALLOWED_ERR: number;
readonly QUOTA_EXCEEDED_ERR: number;
readonly SECURITY_ERR: number;
readonly SYNTAX_ERR: number;
readonly TIMEOUT_ERR: number;
readonly TYPE_MISMATCH_ERR: number;
readonly URL_MISMATCH_ERR: number;
readonly VALIDATION_ERR: number;
readonly WRONG_DOCUMENT_ERR: number;
}
declare var DOMException: {
prototype: DOMException;
new(message?: string, name?: string): DOMException;
readonly ABORT_ERR: number;
readonly DATA_CLONE_ERR: number;
readonly DOMSTRING_SIZE_ERR: number;
readonly HIERARCHY_REQUEST_ERR: number;
readonly INDEX_SIZE_ERR: number;
readonly INUSE_ATTRIBUTE_ERR: number;
readonly INVALID_ACCESS_ERR: number;
readonly INVALID_CHARACTER_ERR: number;
readonly INVALID_MODIFICATION_ERR: number;
readonly INVALID_NODE_TYPE_ERR: number;
readonly INVALID_STATE_ERR: number;
readonly NAMESPACE_ERR: number;
readonly NETWORK_ERR: number;
readonly NOT_FOUND_ERR: number;
readonly NOT_SUPPORTED_ERR: number;
readonly NO_DATA_ALLOWED_ERR: number;
readonly NO_MODIFICATION_ALLOWED_ERR: number;
readonly QUOTA_EXCEEDED_ERR: number;
readonly SECURITY_ERR: number;
readonly SYNTAX_ERR: number;
readonly TIMEOUT_ERR: number;
readonly TYPE_MISMATCH_ERR: number;
readonly URL_MISMATCH_ERR: number;
readonly VALIDATION_ERR: number;
readonly WRONG_DOCUMENT_ERR: number;
};
interface DOMMatrix extends DOMMatrixReadOnly {
a: number;
b: number;
c: number;
d: number;
e: number;
f: number;
m11: number;
m12: number;
m13: number;
m14: number;
m21: number;
m22: number;
m23: number;
m24: number;
m31: number;
m32: number;
m33: number;
m34: number;
m41: number;
m42: number;
m43: number;
m44: number;
invertSelf(): DOMMatrix;
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
skewXSelf(sx?: number): DOMMatrix;
skewYSelf(sy?: number): DOMMatrix;
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrix: {
prototype: DOMMatrix;
new(init?: string | number[]): DOMMatrix;
fromFloat32Array(array32: Float32Array): DOMMatrix;
fromFloat64Array(array64: Float64Array): DOMMatrix;
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
};
interface DOMMatrixReadOnly {
readonly a: number;
readonly b: number;
readonly c: number;
readonly d: number;
readonly e: number;
readonly f: number;
readonly is2D: boolean;
readonly isIdentity: boolean;
readonly m11: number;
readonly m12: number;
readonly m13: number;
readonly m14: number;
readonly m21: number;
readonly m22: number;
readonly m23: number;
readonly m24: number;
readonly m31: number;
readonly m32: number;
readonly m33: number;
readonly m34: number;
readonly m41: number;
readonly m42: number;
readonly m43: number;
readonly m44: number;
flipX(): DOMMatrix;
flipY(): DOMMatrix;
inverse(): DOMMatrix;
multiply(other?: DOMMatrixInit): DOMMatrix;
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVector(x?: number, y?: number): DOMMatrix;
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** @deprecated */
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
skewX(sx?: number): DOMMatrix;
skewY(sy?: number): DOMMatrix;
toFloat32Array(): Float32Array;
toFloat64Array(): Float64Array;
toJSON(): any;
transformPoint(point?: DOMPointInit): DOMPoint;
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrixReadOnly: {
prototype: DOMMatrixReadOnly;
new(init?: string | number[]): DOMMatrixReadOnly;
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
};
interface DOMPoint extends DOMPointReadOnly {
w: number;
x: number;
y: number;
z: number;
}
declare var DOMPoint: {
prototype: DOMPoint;
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
fromPoint(other?: DOMPointInit): DOMPoint;
};
interface DOMPointReadOnly {
readonly w: number;
readonly x: number;
readonly y: number;
readonly z: number;
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
toJSON(): any;
}
declare var DOMPointReadOnly: {
prototype: DOMPointReadOnly;
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};
interface DOMQuad {
readonly p1: DOMPoint;
readonly p2: DOMPoint;
readonly p3: DOMPoint;
readonly p4: DOMPoint;
getBounds(): DOMRect;
toJSON(): any;
}
declare var DOMQuad: {
prototype: DOMQuad;
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
fromQuad(other?: DOMQuadInit): DOMQuad;
fromRect(other?: DOMRectInit): DOMQuad;
};
interface DOMRect extends DOMRectReadOnly {
height: number;
width: number;
x: number;
y: number;
}
declare var DOMRect: {
prototype: DOMRect;
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
fromRect(other?: DOMRectInit): DOMRect;
};
interface DOMRectReadOnly {
readonly bottom: number;
readonly height: number;
readonly left: number;
readonly right: number;
readonly top: number;
readonly width: number;
readonly x: number;
readonly y: number;
toJSON(): any;
}
declare var DOMRectReadOnly: {
prototype: DOMRectReadOnly;
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
/** A type returned by some APIs which contains a list of DOMString (strings). */
interface DOMStringList {
/**
* Returns the number of strings in strings.
*/
readonly length: number;
/**
* Returns true if strings contains string, and false otherwise.
*/
contains(string: string): boolean;
/**
* Returns the string with index index from strings.
*/
item(index: number): string | null;
[index: number]: string;
}
declare var DOMStringList: {
prototype: DOMStringList;
new(): DOMStringList;
};
interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers. */
interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {
/**
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
*/
readonly name: string;
onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/**
* Aborts dedicatedWorkerGlobal.
*/
close(): void;
/**
* Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: PostMessageOptions): void;
addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var DedicatedWorkerGlobalScope: {
prototype: DedicatedWorkerGlobalScope;
new(): DedicatedWorkerGlobalScope;
};
interface EXT_blend_minmax {
readonly MAX_EXT: GLenum;
readonly MIN_EXT: GLenum;
}
interface EXT_color_buffer_float {
}
interface EXT_color_buffer_half_float {
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
readonly RGB16F_EXT: GLenum;
readonly RGBA16F_EXT: GLenum;
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
}
interface EXT_float_blend {
}
/** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */
interface EXT_frag_depth {
}
interface EXT_sRGB {
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;
readonly SRGB8_ALPHA8_EXT: GLenum;
readonly SRGB_ALPHA_EXT: GLenum;
readonly SRGB_EXT: GLenum;
}
interface EXT_shader_texture_lod {
}
interface EXT_texture_compression_rgtc {
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;
}
/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
interface EXT_texture_filter_anisotropic {
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
}
/** Events providing information related to errors in scripts or in files. */
interface ErrorEvent extends Event {
readonly colno: number;
readonly error: any;
readonly filename: string;
readonly lineno: number;
readonly message: string;
}
declare var ErrorEvent: {
prototype: ErrorEvent;
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};
/** An event which takes place in the DOM. */
interface Event {
/**
* Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
*/
readonly bubbles: boolean;
cancelBubble: boolean;
/**
* Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
*/
readonly cancelable: boolean;
/**
* Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
*/
readonly composed: boolean;
/**
* Returns the object whose event listener's callback is currently being invoked.
*/
readonly currentTarget: EventTarget | null;
/**
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
*/
readonly defaultPrevented: boolean;
/**
* Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
*/
readonly eventPhase: number;
/**
* Returns true if event was dispatched by the user agent, and false otherwise.
*/
readonly isTrusted: boolean;
/** @deprecated */
returnValue: boolean;
/** @deprecated */
readonly srcElement: EventTarget | null;
/**
* Returns the object to which event is dispatched (its target).
*/
readonly target: EventTarget | null;
/**
* Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
*/
readonly timeStamp: DOMHighResTimeStamp;
/**
* Returns the type of event, e.g. "click", "hashchange", or "submit".
*/
readonly type: string;
/**
* Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
*/
composedPath(): EventTarget[];
/** @deprecated */
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
/**
* If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
*/
preventDefault(): void;
/**
* Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
*/
stopImmediatePropagation(): void;
/**
* When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
*/
stopPropagation(): void;
readonly AT_TARGET: number;
readonly BUBBLING_PHASE: number;
readonly CAPTURING_PHASE: number;
readonly NONE: number;
}
declare var Event: {
prototype: Event;
new(type: string, eventInitDict?: EventInit): Event;
readonly AT_TARGET: number;
readonly BUBBLING_PHASE: number;
readonly CAPTURING_PHASE: number;
readonly NONE: number;
};
interface EventListener {
(evt: Event): void;
}
interface EventListenerObject {
handleEvent(object: Event): void;
}
interface EventSourceEventMap {
"error": Event;
"message": MessageEvent;
"open": Event;
}
interface EventSource extends EventTarget {
onerror: ((this: EventSource, ev: Event) => any) | null;
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
onopen: ((this: EventSource, ev: Event) => any) | null;
/**
* Returns the state of this EventSource object's connection. It can have the values described below.
*/
readonly readyState: number;
/**
* Returns the URL providing the event stream.
*/
readonly url: string;
/**
* Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
*/
readonly withCredentials: boolean;
/**
* Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
*/
close(): void;
readonly CLOSED: number;
readonly CONNECTING: number;
readonly OPEN: number;
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var EventSource: {
prototype: EventSource;
new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
readonly CLOSED: number;
readonly CONNECTING: number;
readonly OPEN: number;
};
/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
interface EventTarget {
/**
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
*
* The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
*
* When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
*
* When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners.
*
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
*
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
*
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
*/
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*/
dispatchEvent(event: Event): boolean;
/**
* Removes the event listener in target's event listener list with the same type, callback, and options.
*/
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
}
declare var EventTarget: {
prototype: EventTarget;
new(): EventTarget;
};
/** Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. */
interface ExtendableEvent extends Event {
waitUntil(f: any): void;
}
declare var ExtendableEvent: {
prototype: ExtendableEvent;
new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;
};
/** This ServiceWorker API interface represents the event object of a message event fired on a service worker (when a channel message is received on the ServiceWorkerGlobalScope from another context) \u2014 extends the lifetime of such events. */
interface ExtendableMessageEvent extends ExtendableEvent {
readonly data: any;
readonly lastEventId: string;
readonly origin: string;
readonly ports: ReadonlyArray<MessagePort>;
readonly source: Client | ServiceWorker | MessagePort | null;
}
declare var ExtendableMessageEvent: {
prototype: ExtendableMessageEvent;
new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;
};
/** This is the event type for fetch\xA0events dispatched on the\xA0service worker global scope. It contains information about the fetch, including the\xA0request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch. */
interface FetchEvent extends ExtendableEvent {
readonly clientId: string;
readonly handled: Promise<undefined>;
readonly request: Request;
readonly resultingClientId: string;
respondWith(r: Response | PromiseLike<Response>): void;
}
declare var FetchEvent: {
prototype: FetchEvent;
new(type: string, eventInitDict: FetchEventInit): FetchEvent;
};
/** Provides information about files and allows JavaScript in a web page to access their content. */
interface File extends Blob {
readonly lastModified: number;
readonly name: string;
readonly webkitRelativePath: string;
}
declare var File: {
prototype: File;
new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};
/** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */
interface FileList {
readonly length: number;
item(index: number): File | null;
[index: number]: File;
}
declare var FileList: {
prototype: FileList;
new(): FileList;
};
interface FileReaderEventMap {
"abort": ProgressEvent<FileReader>;
"error": ProgressEvent<FileReader>;
"load": ProgressEvent<FileReader>;
"loadend": ProgressEvent<FileReader>;
"loadstart": ProgressEvent<FileReader>;
"progress": ProgressEvent<FileReader>;
}
/** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */
interface FileReader extends EventTarget {
readonly error: DOMException | null;
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
readonly readyState: number;
readonly result: string | ArrayBuffer | null;
abort(): void;
readAsArrayBuffer(blob: Blob): void;
readAsBinaryString(blob: Blob): void;
readAsDataURL(blob: Blob): void;
readAsText(blob: Blob, encoding?: string): void;
readonly DONE: number;
readonly EMPTY: number;
readonly LOADING: number;
addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FileReader: {
prototype: FileReader;
new(): FileReader;
readonly DONE: number;
readonly EMPTY: number;
readonly LOADING: number;
};
/** Allows to read File or Blob objects in a synchronous way. */
interface FileReaderSync {
readAsArrayBuffer(blob: Blob): ArrayBuffer;
/** @deprecated */
readAsBinaryString(blob: Blob): string;
readAsDataURL(blob: Blob): string;
readAsText(blob: Blob, encoding?: string): string;
}
declare var FileReaderSync: {
prototype: FileReaderSync;
new(): FileReaderSync;
};
interface FontFace {
ascentOverride: string;
descentOverride: string;
display: string;
family: string;
featureSettings: string;
lineGapOverride: string;
readonly loaded: Promise<FontFace>;
readonly status: FontFaceLoadStatus;
stretch: string;
style: string;
unicodeRange: string;
variant: string;
variationSettings: string;
weight: string;
load(): Promise<FontFace>;
}
declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
};
interface FontFaceSetEventMap {
"loading": Event;
"loadingdone": Event;
"loadingerror": Event;
}
interface FontFaceSet extends EventTarget {
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
readonly ready: Promise<FontFaceSet>;
readonly status: FontFaceSetLoadStatus;
check(font: string, text?: string): boolean;
load(font: string, text?: string): Promise<FontFace[]>;
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FontFaceSet: {
prototype: FontFaceSet;
new(initialFaces: FontFace[]): FontFaceSet;
};
interface FontFaceSetLoadEvent extends Event {
readonly fontfaces: ReadonlyArray<FontFace>;
}
declare var FontFaceSetLoadEvent: {
prototype: FontFaceSetLoadEvent;
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
};
interface FontFaceSource {
readonly fonts: FontFaceSet;
}
/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */
interface FormData {
append(name: string, value: string | Blob, fileName?: string): void;
delete(name: string): void;
get(name: string): FormDataEntryValue | null;
getAll(name: string): FormDataEntryValue[];
has(name: string): boolean;
set(name: string, value: string | Blob, fileName?: string): void;
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
}
declare var FormData: {
prototype: FormData;
new(): FormData;
};
interface GenericTransformStream {
readonly readable: ReadableStream;
readonly writable: WritableStream;
}
/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence. */
interface Headers {
append(name: string, value: string): void;
delete(name: string): void;
get(name: string): string | null;
has(name: string): boolean;
set(name: string, value: string): void;
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
}
declare var Headers: {
prototype: Headers;
new(init?: HeadersInit): Headers;
};
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
interface IDBCursor {
/**
* Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.
*/
readonly direction: IDBCursorDirection;
/**
* Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*/
readonly key: IDBValidKey;
/**
* Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*/
readonly primaryKey: IDBValidKey;
readonly request: IDBRequest;
/**
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
*/
readonly source: IDBObjectStore | IDBIndex;
/**
* Advances the cursor through the next count records in range.
*/
advance(count: number): void;
/**
* Advances the cursor to the next record in range.
*/
continue(key?: IDBValidKey): void;
/**
* Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.
*/
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
/**
* Delete the record pointed at by the cursor with a new value.
*
* If successful, request's result will be undefined.
*/
delete(): IDBRequest<undefined>;
/**
* Updated the record pointed at by the cursor with a new value.
*
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
*
* If successful, request's result will be the record's key.
*/
update(value: any): IDBRequest<IDBValidKey>;
}
declare var IDBCursor: {
prototype: IDBCursor;
new(): IDBCursor;
};
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */
interface IDBCursorWithValue extends IDBCursor {
/**
* Returns the cursor's current value.
*/
readonly value: any;
}
declare var IDBCursorWithValue: {
prototype: IDBCursorWithValue;
new(): IDBCursorWithValue;
};
interface IDBDatabaseEventMap {
"abort": Event;
"close": Event;
"error": Event;
"versionchange": IDBVersionChangeEvent;
}
/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */
interface IDBDatabase extends EventTarget {
/**
* Returns the name of the database.
*/
readonly name: string;
/**
* Returns a list of the names of object stores in the database.
*/
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
/**
* Returns the version of the database.
*/
readonly version: number;
/**
* Closes the connection once all running transactions have finished.
*/
close(): void;
/**
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
/**
* Deletes the object store with the given name.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteObjectStore(name: string): void;
/**
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
*/
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBDatabase: {
prototype: IDBDatabase;
new(): IDBDatabase;
};
/** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */
interface IDBFactory {
/**
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
*
* Throws a "DataError" DOMException if either input is not a valid key.
*/
cmp(first: any, second: any): number;
databases(): Promise<IDBDatabaseInfo[]>;
/**
* Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null.
*/
deleteDatabase(name: string): IDBOpenDBRequest;
/**
* Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection.
*/
open(name: string, version?: number): IDBOpenDBRequest;
}
declare var IDBFactory: {
prototype: IDBFactory;
new(): IDBFactory;
};
/** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */
interface IDBIndex {
readonly keyPath: string | string[];
readonly multiEntry: boolean;
/**
* Returns the name of the index.
*/
name: string;
/**
* Returns the IDBObjectStore the index belongs to.
*/
readonly objectStore: IDBObjectStore;
readonly unique: boolean;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
}
declare var IDBIndex: {
prototype: IDBIndex;
new(): IDBIndex;
};
/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */
interface IDBKeyRange {
/**
* Returns lower bound, or undefined if none.
*/
readonly lower: any;
/**
* Returns true if the lower open flag is set, and false otherwise.
*/
readonly lowerOpen: boolean;
/**
* Returns upper bound, or undefined if none.
*/
readonly upper: any;
/**
* Returns true if the upper open flag is set, and false otherwise.
*/
readonly upperOpen: boolean;
/**
* Returns true if key is included in the range, and false otherwise.
*/
includes(key: any): boolean;
}
declare var IDBKeyRange: {
prototype: IDBKeyRange;
new(): IDBKeyRange;
/**
* Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.
*/
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
/**
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
*/
lowerBound(lower: any, open?: boolean): IDBKeyRange;
/**
* Returns a new IDBKeyRange spanning only key.
*/
only(value: any): IDBKeyRange;
/**
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
*/
upperBound(upper: any, open?: boolean): IDBKeyRange;
};
/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.) */
interface IDBObjectStore {
/**
* Returns true if the store has a key generator, and false otherwise.
*/
readonly autoIncrement: boolean;
/**
* Returns a list of the names of indexes in the store.
*/
readonly indexNames: DOMStringList;
/**
* Returns the key path of the store, or null if none.
*/
readonly keyPath: string | string[];
/**
* Returns the name of the store.
*/
name: string;
/**
* Returns the associated transaction.
*/
readonly transaction: IDBTransaction;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* Deletes all records in store.
*
* If successful, request's result will be undefined.
*/
clear(): IDBRequest<undefined>;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
/**
* Deletes records in store with the given key or in the given key range in query.
*
* If successful, request's result will be undefined.
*/
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* Deletes the index in store with the given name.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteIndex(name: string): void;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
index(name: string): IDBIndex;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*/
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
}
declare var IDBObjectStore: {
prototype: IDBObjectStore;
new(): IDBObjectStore;
};
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
"blocked": Event;
"upgradeneeded": IDBVersionChangeEvent;
}
/** Also inherits methods from its parents IDBRequest and EventTarget. */
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBOpenDBRequest: {
prototype: IDBOpenDBRequest;
new(): IDBOpenDBRequest;
};
interface IDBRequestEventMap {
"error": Event;
"success": Event;
}
/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */
interface IDBRequest<T = any> extends EventTarget {
/**
* When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.
*/
readonly error: DOMException | null;
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
/**
* Returns "pending" until a request is complete, then returns "done".
*/
readonly readyState: IDBRequestReadyState;
/**
* When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.
*/
readonly result: T;
/**
* Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.
*/
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
/**
* Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.
*/
readonly transaction: IDBTransaction | null;
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBRequest: {
prototype: IDBRequest;
new(): IDBRequest;
};
interface IDBTransactionEventMap {
"abort": Event;
"complete": Event;
"error": Event;
}
interface IDBTransaction extends EventTarget {
/**
* Returns the transaction's connection.
*/
readonly db: IDBDatabase;
/**
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
*/
readonly error: DOMException | null;
/**
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
*/
readonly mode: IDBTransactionMode;
/**
* Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database.
*/
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
/**
* Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
*/
abort(): void;
commit(): void;
/**
* Returns an IDBObjectStore in the transaction's scope.
*/
objectStore(name: string): IDBObjectStore;
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBTransaction: {
prototype: IDBTransaction;
new(): IDBTransaction;
};
/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
interface IDBVersionChangeEvent extends Event {
readonly newVersion: number | null;
readonly oldVersion: number;
}
declare var IDBVersionChangeEvent: {
prototype: IDBVersionChangeEvent;
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
};
interface ImageBitmap {
/**
* Returns the intrinsic height of the image, in CSS pixels.
*/
readonly height: number;
/**
* Returns the intrinsic width of the image, in CSS pixels.
*/
readonly width: number;
/**
* Releases imageBitmap's underlying bitmap data.
*/
close(): void;
}
declare var ImageBitmap: {
prototype: ImageBitmap;
new(): ImageBitmap;
};
interface ImageBitmapRenderingContext {
/**
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
*/
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
declare var ImageBitmapRenderingContext: {
prototype: ImageBitmapRenderingContext;
new(): ImageBitmapRenderingContext;
};
/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
interface ImageData {
/**
* Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
*/
readonly data: Uint8ClampedArray;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*/
readonly height: number;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*/
readonly width: number;
}
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
interface KHR_parallel_shader_compile {
readonly COMPLETION_STATUS_KHR: GLenum;
}
interface MediaCapabilities {
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}
declare var MediaCapabilities: {
prototype: MediaCapabilities;
new(): MediaCapabilities;
};
/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
interface MessageChannel {
/**
* Returns the first MessagePort object.
*/
readonly port1: MessagePort;
/**
* Returns the second MessagePort object.
*/
readonly port2: MessagePort;
}
declare var MessageChannel: {
prototype: MessageChannel;
new(): MessageChannel;
};
/** A message received by a target object. */
interface MessageEvent<T = any> extends Event {
/**
* Returns the data of the message.
*/
readonly data: T;
/**
* Returns the last event ID string, for server-sent events.
*/
readonly lastEventId: string;
/**
* Returns the origin of the message, for server-sent events and cross-document messaging.
*/
readonly origin: string;
/**
* Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
*/
readonly ports: ReadonlyArray<MessagePort>;
/**
* Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
*/
readonly source: MessageEventSource | null;
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
declare var MessageEvent: {
prototype: MessageEvent;
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};
interface MessagePortEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */
interface MessagePort extends EventTarget {
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
/**
* Disconnects the port, so that it is no longer active.
*/
close(): void;
/**
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: 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;
};
interface NavigatorConcurrentHardware {
readonly hardwareConcurrency: number;
}
interface NavigatorID {
/** @deprecated */
readonly appCodeName: string;
/** @deprecated */
readonly appName: string;
/** @deprecated */
readonly appVersion: string;
/** @deprecated */
readonly platform: string;
/** @deprecated */
readonly product: string;
readonly userAgent: string;
}
interface NavigatorLanguage {
readonly language: string;
readonly languages: ReadonlyArray<string>;
}
interface NavigatorNetworkInformation {
readonly connection: NetworkInformation;
}
interface NavigatorOnLine {
readonly onLine: boolean;
}
interface NavigatorStorage {
readonly storage: StorageManager;
}
interface NetworkInformation extends EventTarget {
readonly type: ConnectionType;
}
declare var NetworkInformation: {
prototype: NetworkInformation;
new(): NetworkInformation;
};
interface NotificationEventMap {
"click": Event;
"close": Event;
"error": Event;
"show": Event;
}
/** This Notifications API interface is used to configure and display desktop notifications to the user. */
interface Notification extends EventTarget {
readonly body: string;
readonly data: any;
readonly dir: NotificationDirection;
readonly icon: string;
readonly lang: string;
onclick: ((this: Notification, ev: Event) => any) | null;
onclose: ((this: Notification, ev: Event) => any) | null;
onerror: ((this: Notification, ev: Event) => any) | null;
onshow: ((this: Notification, ev: Event) => any) | null;
readonly tag: string;
readonly title: string;
close(): void;
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Notification: {
prototype: Notification;
new(title: string, options?: NotificationOptions): Notification;
readonly permission: NotificationPermission;
};
/** The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. */
interface NotificationEvent extends ExtendableEvent {
readonly action: string;
readonly notification: Notification;
}
declare var NotificationEvent: {
prototype: NotificationEvent;
new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
};
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
interface OES_element_index_uint {
}
interface OES_fbo_render_mipmap {
}
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
interface OES_standard_derivatives {
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
}
/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
interface OES_texture_float {
}
/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
interface OES_texture_float_linear {
}
/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */
interface OES_texture_half_float {
readonly HALF_FLOAT_OES: GLenum;
}
/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */
interface OES_texture_half_float_linear {
}
interface OES_vertex_array_object {
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
readonly VERTEX_ARRAY_BINDING_OES: GLenum;
}
interface OVR_multiview2 {
framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: GLenum;
readonly MAX_VIEWS_OVR: GLenum;
}
/** @deprecated this is not available in most browsers */
interface OffscreenCanvas extends EventTarget {
}
/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */
interface Path2D extends CanvasPath {
/**
* Adds to the path the path given by the argument.
*/
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}
declare var Path2D: {
prototype: Path2D;
new(path?: Path2D | string): Path2D;
};
interface PerformanceEventMap {
"resourcetimingbufferfull": Event;
}
/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
interface Performance extends EventTarget {
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
readonly timeOrigin: DOMHighResTimeStamp;
clearMarks(markName?: string): void;
clearMeasures(measureName?: string): void;
clearResourceTimings(): void;
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
now(): DOMHighResTimeStamp;
setResourceTimingBufferSize(maxSize: number): void;
toJSON(): any;
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Performance: {
prototype: Performance;
new(): Performance;
};
/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
interface PerformanceEntry {
readonly duration: DOMHighResTimeStamp;
readonly entryType: string;
readonly name: string;
readonly startTime: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceEntry: {
prototype: PerformanceEntry;
new(): PerformanceEntry;
};
/** PerformanceMark\xA0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
interface PerformanceMark extends PerformanceEntry {
readonly detail: any;
}
declare var PerformanceMark: {
prototype: PerformanceMark;
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
};
/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
interface PerformanceMeasure extends PerformanceEntry {
readonly detail: any;
}
declare var PerformanceMeasure: {
prototype: PerformanceMeasure;
new(): PerformanceMeasure;
};
interface PerformanceObserver {
disconnect(): void;
observe(options?: PerformanceObserverInit): void;
takeRecords(): PerformanceEntryList;
}
declare var PerformanceObserver: {
prototype: PerformanceObserver;
new(callback: PerformanceObserverCallback): PerformanceObserver;
readonly supportedEntryTypes: ReadonlyArray<string>;
};
interface PerformanceObserverEntryList {
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
}
declare var PerformanceObserverEntryList: {
prototype: PerformanceObserverEntryList;
new(): PerformanceObserverEntryList;
};
/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */
interface PerformanceResourceTiming extends PerformanceEntry {
readonly connectEnd: DOMHighResTimeStamp;
readonly connectStart: DOMHighResTimeStamp;
readonly decodedBodySize: number;
readonly domainLookupEnd: DOMHighResTimeStamp;
readonly domainLookupStart: DOMHighResTimeStamp;
readonly encodedBodySize: number;
readonly fetchStart: DOMHighResTimeStamp;
readonly initiatorType: string;
readonly nextHopProtocol: string;
readonly redirectEnd: DOMHighResTimeStamp;
readonly redirectStart: DOMHighResTimeStamp;
readonly requestStart: DOMHighResTimeStamp;
readonly responseEnd: DOMHighResTimeStamp;
readonly responseStart: DOMHighResTimeStamp;
readonly secureConnectionStart: DOMHighResTimeStamp;
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
readonly transferSize: number;
readonly workerStart: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
interface PerformanceServerTiming {
readonly description: string;
readonly duration: DOMHighResTimeStamp;
readonly name: string;
toJSON(): any;
}
declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};
interface PermissionStatusEventMap {
"change": Event;
}
interface PermissionStatus extends EventTarget {
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
readonly state: PermissionState;
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PermissionStatus: {
prototype: PermissionStatus;
new(): PermissionStatus;
};
interface Permissions {
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
prototype: Permissions;
new(): Permissions;
};
/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
readonly lengthComputable: boolean;
readonly loaded: number;
readonly target: T | null;
readonly total: number;
}
declare var ProgressEvent: {
prototype: ProgressEvent;
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};
interface PromiseRejectionEvent extends Event {
readonly promise: Promise<any>;
readonly reason: any;
}
declare var PromiseRejectionEvent: {
prototype: PromiseRejectionEvent;
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
};
/** This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription. */
interface PushEvent extends ExtendableEvent {
readonly data: PushMessageData | null;
}
declare var PushEvent: {
prototype: PushEvent;
new(type: string, eventInitDict?: PushEventInit): PushEvent;
};
/** This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. */
interface PushManager {
getSubscription(): Promise<PushSubscription | null>;
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
declare var PushManager: {
prototype: PushManager;
new(): PushManager;
readonly supportedContentEncodings: ReadonlyArray<string>;
};
/** This Push API interface provides methods which let you retrieve the push data sent by a server in various formats. */
interface PushMessageData {
arrayBuffer(): ArrayBuffer;
blob(): Blob;
json(): any;
text(): string;
}
declare var PushMessageData: {
prototype: PushMessageData;
new(): PushMessageData;
};
/** This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service. */
interface PushSubscription {
readonly endpoint: string;
readonly options: PushSubscriptionOptions;
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
toJSON(): PushSubscriptionJSON;
unsubscribe(): Promise<boolean>;
}
declare var PushSubscription: {
prototype: PushSubscription;
new(): PushSubscription;
};
interface PushSubscriptionOptions {
readonly applicationServerKey: ArrayBuffer | null;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
interface ReadableStream<R = any> {
readonly locked: boolean;
cancel(reason?: any): Promise<void>;
getReader(): ReadableStreamDefaultReader<R>;
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
tee(): [ReadableStream<R>, ReadableStream<R>];
forEach(callbackfn: (value: any, key: number, parent: ReadableStream<R>) => void, thisArg?: any): void;
}
declare var ReadableStream: {
prototype: ReadableStream;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};
interface ReadableStreamDefaultController<R = any> {
readonly desiredSize: number | null;
close(): void;
enqueue(chunk?: R): void;
error(e?: any): void;
}
declare var ReadableStreamDefaultController: {
prototype: ReadableStreamDefaultController;
new(): ReadableStreamDefaultController;
};
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
read(): Promise<ReadableStreamDefaultReadResult<R>>;
releaseLock(): void;
}
declare var ReadableStreamDefaultReader: {
prototype: ReadableStreamDefaultReader;
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};
interface ReadableStreamGenericReader {
readonly closed: Promise<undefined>;
cancel(reason?: any): Promise<void>;
}
/** This Fetch API interface represents a resource request. */
interface Request extends Body {
/**
* Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
*/
readonly cache: RequestCache;
/**
* Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.
*/
readonly credentials: RequestCredentials;
/**
* Returns the kind of resource requested by request, e.g., "document" or "script".
*/
readonly destination: RequestDestination;
/**
* Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
*/
readonly headers: Headers;
/**
* Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
*/
readonly integrity: string;
/**
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
*/
readonly keepalive: boolean;
/**
* Returns request's HTTP method, which is "GET" by default.
*/
readonly method: string;
/**
* Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.
*/
readonly mode: RequestMode;
/**
* Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
*/
readonly redirect: RequestRedirect;
/**
* Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made.
*/
readonly referrer: string;
/**
* Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
*/
readonly referrerPolicy: ReferrerPolicy;
/**
* Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
*/
readonly signal: AbortSignal;
/**
* Returns the URL of request as a string.
*/
readonly url: string;
clone(): Request;
}
declare var Request: {
prototype: Request;
new(input: RequestInfo, init?: RequestInit): Request;
};
/** This Fetch API interface represents the response to a request. */
interface Response extends Body {
readonly headers: Headers;
readonly ok: boolean;
readonly redirected: boolean;
readonly status: number;
readonly statusText: string;
readonly type: ResponseType;
readonly url: string;
clone(): Response;
}
declare var Response: {
prototype: Response;
new(body?: BodyInit | null, init?: ResponseInit): Response;
error(): Response;
redirect(url: string | URL, status?: number): Response;
};
/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
interface SecurityPolicyViolationEvent extends Event {
readonly blockedURI: string;
readonly columnNumber: number;
readonly disposition: SecurityPolicyViolationEventDisposition;
readonly documentURI: string;
readonly effectiveDirective: string;
readonly lineNumber: number;
readonly originalPolicy: string;
readonly referrer: string;
readonly sample: string;
readonly sourceFile: string;
readonly statusCode: number;
readonly violatedDirective: string;
}
declare var SecurityPolicyViolationEvent: {
prototype: SecurityPolicyViolationEvent;
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
};
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
"statechange": Event;
}
/** This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object. */
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 | URL): Promise<ServiceWorkerRegistration | undefined>;
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
startMessages(): void;
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerContainer: {
prototype: ServiceWorkerContainer;
new(): ServiceWorkerContainer;
};
interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"activate": ExtendableEvent;
"fetch": FetchEvent;
"install": ExtendableEvent;
"message": ExtendableMessageEvent;
"messageerror": MessageEvent;
"notificationclick": NotificationEvent;
"notificationclose": NotificationEvent;
"push": PushEvent;
}
/** This ServiceWorker API interface represents the global execution context of a service worker. */
interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
readonly clients: Clients;
onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
readonly registration: ServiceWorkerRegistration;
skipWaiting(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerGlobalScope: {
prototype: ServiceWorkerGlobalScope;
new(): ServiceWorkerGlobalScope;
};
interface ServiceWorkerRegistrationEventMap {
"updatefound": Event;
}
/** This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin. */
interface ServiceWorkerRegistration extends EventTarget {
readonly active: ServiceWorker | null;
readonly installing: ServiceWorker | null;
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
readonly pushManager: PushManager;
readonly scope: string;
readonly updateViaCache: ServiceWorkerUpdateViaCache;
readonly waiting: ServiceWorker | null;
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
showNotification(title: string, options?: NotificationOptions): Promise<void>;
unregister(): Promise<boolean>;
update(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerRegistration: {
prototype: ServiceWorkerRegistration;
new(): ServiceWorkerRegistration;
};
interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"connect": MessageEvent;
}
interface SharedWorkerGlobalScope extends WorkerGlobalScope {
/**
* Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name.
*/
readonly name: string;
onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/**
* Aborts sharedWorkerGlobal.
*/
close(): void;
addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SharedWorkerGlobalScope: {
prototype: SharedWorkerGlobalScope;
new(): SharedWorkerGlobalScope;
};
interface StorageManager {
estimate(): Promise<StorageEstimate>;
persisted(): Promise<boolean>;
}
declare var StorageManager: {
prototype: StorageManager;
new(): StorageManager;
};
/** This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto). */
interface SubtleCrypto {
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
}
declare var SubtleCrypto: {
prototype: SubtleCrypto;
new(): SubtleCrypto;
};
/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
interface TextDecoder extends TextDecoderCommon {
/**
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
*
* \`\`\`
* var string = "", decoder = new TextDecoder(encoding), buffer;
* while(buffer = next_chunk()) {
* string += decoder.decode(buffer, {stream:true});
* }
* string += decoder.decode(); // end-of-queue
* \`\`\`
*
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
*/
decode(input?: BufferSource, options?: TextDecodeOptions): string;
}
declare var TextDecoder: {
prototype: TextDecoder;
new(label?: string, options?: TextDecoderOptions): TextDecoder;
};
interface TextDecoderCommon {
/**
* Returns encoding's name, lowercased.
*/
readonly encoding: string;
/**
* Returns true if error mode is "fatal", otherwise false.
*/
readonly fatal: boolean;
/**
* Returns the value of ignore BOM.
*/
readonly ignoreBOM: boolean;
}
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
readonly readable: ReadableStream<string>;
readonly writable: WritableStream<BufferSource>;
}
declare var TextDecoderStream: {
prototype: TextDecoderStream;
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
};
/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
interface TextEncoder extends TextEncoderCommon {
/**
* Returns the result of running UTF-8's encoder.
*/
encode(input?: string): Uint8Array;
/**
* Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.
*/
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
}
declare var TextEncoder: {
prototype: TextEncoder;
new(): TextEncoder;
};
interface TextEncoderCommon {
/**
* Returns "utf-8".
*/
readonly encoding: string;
}
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
readonly readable: ReadableStream<Uint8Array>;
readonly writable: WritableStream<string>;
}
declare var TextEncoderStream: {
prototype: TextEncoderStream;
new(): TextEncoderStream;
};
/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
interface TextMetrics {
/**
* Returns the measurement described below.
*/
readonly actualBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*/
readonly actualBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*/
readonly actualBoundingBoxLeft: number;
/**
* Returns the measurement described below.
*/
readonly actualBoundingBoxRight: number;
/**
* Returns the measurement described below.
*/
readonly fontBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*/
readonly fontBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*/
readonly width: number;
}
declare var TextMetrics: {
prototype: TextMetrics;
new(): TextMetrics;
};
interface TransformStream<I = any, O = any> {
readonly readable: ReadableStream<O>;
readonly writable: WritableStream<I>;
}
declare var TransformStream: {
prototype: TransformStream;
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
};
interface TransformStreamDefaultController<O = any> {
readonly desiredSize: number | null;
enqueue(chunk?: O): void;
error(reason?: any): void;
terminate(): void;
}
declare var TransformStreamDefaultController: {
prototype: TransformStreamDefaultController;
new(): TransformStreamDefaultController;
};
/** The URL\xA0interface represents an object providing static methods used for creating object URLs. */
interface URL {
hash: string;
host: string;
hostname: string;
href: string;
toString(): string;
readonly origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
readonly searchParams: URLSearchParams;
username: string;
toJSON(): string;
}
declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
createObjectURL(object: any): string;
revokeObjectURL(url: string): void;
};
interface URLSearchParams {
/**
* Appends a specified key/value pair as a new search parameter.
*/
append(name: string, value: string): void;
/**
* Deletes the given search parameter, and its associated value, from the list of all search parameters.
*/
delete(name: string): void;
/**
* Returns the first value associated to the given search parameter.
*/
get(name: string): string | null;
/**
* Returns all the values association with a given search parameter.
*/
getAll(name: string): string[];
/**
* Returns a Boolean indicating if such a search parameter exists.
*/
has(name: string): boolean;
/**
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
*/
set(name: string, value: string): void;
sort(): void;
/**
* Returns a string containing a query string suitable for use in a URL. Does not include the question mark.
*/
toString(): string;
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
}
declare var URLSearchParams: {
prototype: URLSearchParams;
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
toString(): string;
};
interface WEBGL_color_buffer_float {
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
readonly RGBA32F_EXT: GLenum;
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
}
interface WEBGL_compressed_texture_astc {
getSupportedProfiles(): string[];
readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;
}
interface WEBGL_compressed_texture_etc {
readonly COMPRESSED_R11_EAC: GLenum;
readonly COMPRESSED_RG11_EAC: GLenum;
readonly COMPRESSED_RGB8_ETC2: GLenum;
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;
readonly COMPRESSED_SIGNED_R11_EAC: GLenum;
readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;
readonly COMPRESSED_SRGB8_ETC2: GLenum;
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
}
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
}
interface WEBGL_compressed_texture_pvrtc {
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
}
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
interface WEBGL_compressed_texture_s3tc {
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;
}
interface WEBGL_compressed_texture_s3tc_srgb {
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;
}
/** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */
interface WEBGL_debug_renderer_info {
readonly UNMASKED_RENDERER_WEBGL: GLenum;
readonly UNMASKED_VENDOR_WEBGL: GLenum;
}
interface WEBGL_debug_shaders {
getTranslatedShaderSource(shader: WebGLShader): string;
}
/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
interface WEBGL_depth_texture {
readonly UNSIGNED_INT_24_8_WEBGL: GLenum;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: GLenum[]): void;
readonly COLOR_ATTACHMENT0_WEBGL: GLenum;
readonly COLOR_ATTACHMENT10_WEBGL: GLenum;
readonly COLOR_ATTACHMENT11_WEBGL: GLenum;
readonly COLOR_ATTACHMENT12_WEBGL: GLenum;
readonly COLOR_ATTACHMENT13_WEBGL: GLenum;
readonly COLOR_ATTACHMENT14_WEBGL: GLenum;
readonly COLOR_ATTACHMENT15_WEBGL: GLenum;
readonly COLOR_ATTACHMENT1_WEBGL: GLenum;
readonly COLOR_ATTACHMENT2_WEBGL: GLenum;
readonly COLOR_ATTACHMENT3_WEBGL: GLenum;
readonly COLOR_ATTACHMENT4_WEBGL: GLenum;
readonly COLOR_ATTACHMENT5_WEBGL: GLenum;
readonly COLOR_ATTACHMENT6_WEBGL: GLenum;
readonly COLOR_ATTACHMENT7_WEBGL: GLenum;
readonly COLOR_ATTACHMENT8_WEBGL: GLenum;
readonly COLOR_ATTACHMENT9_WEBGL: GLenum;
readonly DRAW_BUFFER0_WEBGL: GLenum;
readonly DRAW_BUFFER10_WEBGL: GLenum;
readonly DRAW_BUFFER11_WEBGL: GLenum;
readonly DRAW_BUFFER12_WEBGL: GLenum;
readonly DRAW_BUFFER13_WEBGL: GLenum;
readonly DRAW_BUFFER14_WEBGL: GLenum;
readonly DRAW_BUFFER15_WEBGL: GLenum;
readonly DRAW_BUFFER1_WEBGL: GLenum;
readonly DRAW_BUFFER2_WEBGL: GLenum;
readonly DRAW_BUFFER3_WEBGL: GLenum;
readonly DRAW_BUFFER4_WEBGL: GLenum;
readonly DRAW_BUFFER5_WEBGL: GLenum;
readonly DRAW_BUFFER6_WEBGL: GLenum;
readonly DRAW_BUFFER7_WEBGL: GLenum;
readonly DRAW_BUFFER8_WEBGL: GLenum;
readonly DRAW_BUFFER9_WEBGL: GLenum;
readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;
readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;
}
interface WEBGL_lose_context {
loseContext(): void;
restoreContext(): void;
}
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}
declare var WebGL2RenderingContext: {
prototype: WebGL2RenderingContext;
new(): WebGL2RenderingContext;
readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
readonly ALREADY_SIGNALED: GLenum;
readonly ANY_SAMPLES_PASSED: GLenum;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
readonly COLOR: GLenum;
readonly COLOR_ATTACHMENT1: GLenum;
readonly COLOR_ATTACHMENT10: GLenum;
readonly COLOR_ATTACHMENT11: GLenum;
readonly COLOR_ATTACHMENT12: GLenum;
readonly COLOR_ATTACHMENT13: GLenum;
readonly COLOR_ATTACHMENT14: GLenum;
readonly COLOR_ATTACHMENT15: GLenum;
readonly COLOR_ATTACHMENT2: GLenum;
readonly COLOR_ATTACHMENT3: GLenum;
readonly COLOR_ATTACHMENT4: GLenum;
readonly COLOR_ATTACHMENT5: GLenum;
readonly COLOR_ATTACHMENT6: GLenum;
readonly COLOR_ATTACHMENT7: GLenum;
readonly COLOR_ATTACHMENT8: GLenum;
readonly COLOR_ATTACHMENT9: GLenum;
readonly COMPARE_REF_TO_TEXTURE: GLenum;
readonly CONDITION_SATISFIED: GLenum;
readonly COPY_READ_BUFFER: GLenum;
readonly COPY_READ_BUFFER_BINDING: GLenum;
readonly COPY_WRITE_BUFFER: GLenum;
readonly COPY_WRITE_BUFFER_BINDING: GLenum;
readonly CURRENT_QUERY: GLenum;
readonly DEPTH: GLenum;
readonly DEPTH24_STENCIL8: GLenum;
readonly DEPTH32F_STENCIL8: GLenum;
readonly DEPTH_COMPONENT24: GLenum;
readonly DEPTH_COMPONENT32F: GLenum;
readonly DRAW_BUFFER0: GLenum;
readonly DRAW_BUFFER1: GLenum;
readonly DRAW_BUFFER10: GLenum;
readonly DRAW_BUFFER11: GLenum;
readonly DRAW_BUFFER12: GLenum;
readonly DRAW_BUFFER13: GLenum;
readonly DRAW_BUFFER14: GLenum;
readonly DRAW_BUFFER15: GLenum;
readonly DRAW_BUFFER2: GLenum;
readonly DRAW_BUFFER3: GLenum;
readonly DRAW_BUFFER4: GLenum;
readonly DRAW_BUFFER5: GLenum;
readonly DRAW_BUFFER6: GLenum;
readonly DRAW_BUFFER7: GLenum;
readonly DRAW_BUFFER8: GLenum;
readonly DRAW_BUFFER9: GLenum;
readonly DRAW_FRAMEBUFFER: GLenum;
readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
readonly DYNAMIC_COPY: GLenum;
readonly DYNAMIC_READ: GLenum;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
readonly FLOAT_MAT2x3: GLenum;
readonly FLOAT_MAT2x4: GLenum;
readonly FLOAT_MAT3x2: GLenum;
readonly FLOAT_MAT3x4: GLenum;
readonly FLOAT_MAT4x2: GLenum;
readonly FLOAT_MAT4x3: GLenum;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
readonly FRAMEBUFFER_DEFAULT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
readonly HALF_FLOAT: GLenum;
readonly INTERLEAVED_ATTRIBS: GLenum;
readonly INT_2_10_10_10_REV: GLenum;
readonly INT_SAMPLER_2D: GLenum;
readonly INT_SAMPLER_2D_ARRAY: GLenum;
readonly INT_SAMPLER_3D: GLenum;
readonly INT_SAMPLER_CUBE: GLenum;
readonly INVALID_INDEX: GLenum;
readonly MAX: GLenum;
readonly MAX_3D_TEXTURE_SIZE: GLenum;
readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
readonly MAX_COLOR_ATTACHMENTS: GLenum;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
readonly MAX_DRAW_BUFFERS: GLenum;
readonly MAX_ELEMENTS_INDICES: GLenum;
readonly MAX_ELEMENTS_VERTICES: GLenum;
readonly MAX_ELEMENT_INDEX: GLenum;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
readonly MAX_SAMPLES: GLenum;
readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
readonly MAX_TEXTURE_LOD_BIAS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
readonly MAX_VARYING_COMPONENTS: GLenum;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
readonly MIN: GLenum;
readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
readonly OBJECT_TYPE: GLenum;
readonly PACK_ROW_LENGTH: GLenum;
readonly PACK_SKIP_PIXELS: GLenum;
readonly PACK_SKIP_ROWS: GLenum;
readonly PIXEL_PACK_BUFFER: GLenum;
readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
readonly PIXEL_UNPACK_BUFFER: GLenum;
readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
readonly QUERY_RESULT: GLenum;
readonly QUERY_RESULT_AVAILABLE: GLenum;
readonly R11F_G11F_B10F: GLenum;
readonly R16F: GLenum;
readonly R16I: GLenum;
readonly R16UI: GLenum;
readonly R32F: GLenum;
readonly R32I: GLenum;
readonly R32UI: GLenum;
readonly R8: GLenum;
readonly R8I: GLenum;
readonly R8UI: GLenum;
readonly R8_SNORM: GLenum;
readonly RASTERIZER_DISCARD: GLenum;
readonly READ_BUFFER: GLenum;
readonly READ_FRAMEBUFFER: GLenum;
readonly READ_FRAMEBUFFER_BINDING: GLenum;
readonly RED: GLenum;
readonly RED_INTEGER: GLenum;
readonly RENDERBUFFER_SAMPLES: GLenum;
readonly RG: GLenum;
readonly RG16F: GLenum;
readonly RG16I: GLenum;
readonly RG16UI: GLenum;
readonly RG32F: GLenum;
readonly RG32I: GLenum;
readonly RG32UI: GLenum;
readonly RG8: GLenum;
readonly RG8I: GLenum;
readonly RG8UI: GLenum;
readonly RG8_SNORM: GLenum;
readonly RGB10_A2: GLenum;
readonly RGB10_A2UI: GLenum;
readonly RGB16F: GLenum;
readonly RGB16I: GLenum;
readonly RGB16UI: GLenum;
readonly RGB32F: GLenum;
readonly RGB32I: GLenum;
readonly RGB32UI: GLenum;
readonly RGB8: GLenum;
readonly RGB8I: GLenum;
readonly RGB8UI: GLenum;
readonly RGB8_SNORM: GLenum;
readonly RGB9_E5: GLenum;
readonly RGBA16F: GLenum;
readonly RGBA16I: GLenum;
readonly RGBA16UI: GLenum;
readonly RGBA32F: GLenum;
readonly RGBA32I: GLenum;
readonly RGBA32UI: GLenum;
readonly RGBA8: GLenum;
readonly RGBA8I: GLenum;
readonly RGBA8UI: GLenum;
readonly RGBA8_SNORM: GLenum;
readonly RGBA_INTEGER: GLenum;
readonly RGB_INTEGER: GLenum;
readonly RG_INTEGER: GLenum;
readonly SAMPLER_2D_ARRAY: GLenum;
readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
readonly SAMPLER_2D_SHADOW: GLenum;
readonly SAMPLER_3D: GLenum;
readonly SAMPLER_BINDING: GLenum;
readonly SAMPLER_CUBE_SHADOW: GLenum;
readonly SEPARATE_ATTRIBS: GLenum;
readonly SIGNALED: GLenum;
readonly SIGNED_NORMALIZED: GLenum;
readonly SRGB: GLenum;
readonly SRGB8: GLenum;
readonly SRGB8_ALPHA8: GLenum;
readonly STATIC_COPY: GLenum;
readonly STATIC_READ: GLenum;
readonly STENCIL: GLenum;
readonly STREAM_COPY: GLenum;
readonly STREAM_READ: GLenum;
readonly SYNC_CONDITION: GLenum;
readonly SYNC_FENCE: GLenum;
readonly SYNC_FLAGS: GLenum;
readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
readonly SYNC_STATUS: GLenum;
readonly TEXTURE_2D_ARRAY: GLenum;
readonly TEXTURE_3D: GLenum;
readonly TEXTURE_BASE_LEVEL: GLenum;
readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
readonly TEXTURE_BINDING_3D: GLenum;
readonly TEXTURE_COMPARE_FUNC: GLenum;
readonly TEXTURE_COMPARE_MODE: GLenum;
readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
readonly TEXTURE_MAX_LEVEL: GLenum;
readonly TEXTURE_MAX_LOD: GLenum;
readonly TEXTURE_MIN_LOD: GLenum;
readonly TEXTURE_WRAP_R: GLenum;
readonly TIMEOUT_EXPIRED: GLenum;
readonly TIMEOUT_IGNORED: GLint64;
readonly TRANSFORM_FEEDBACK: GLenum;
readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
readonly UNIFORM_ARRAY_STRIDE: GLenum;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
readonly UNIFORM_BLOCK_BINDING: GLenum;
readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
readonly UNIFORM_BLOCK_INDEX: GLenum;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
readonly UNIFORM_BUFFER: GLenum;
readonly UNIFORM_BUFFER_BINDING: GLenum;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
readonly UNIFORM_BUFFER_SIZE: GLenum;
readonly UNIFORM_BUFFER_START: GLenum;
readonly UNIFORM_IS_ROW_MAJOR: GLenum;
readonly UNIFORM_MATRIX_STRIDE: GLenum;
readonly UNIFORM_OFFSET: GLenum;
readonly UNIFORM_SIZE: GLenum;
readonly UNIFORM_TYPE: GLenum;
readonly UNPACK_IMAGE_HEIGHT: GLenum;
readonly UNPACK_ROW_LENGTH: GLenum;
readonly UNPACK_SKIP_IMAGES: GLenum;
readonly UNPACK_SKIP_PIXELS: GLenum;
readonly UNPACK_SKIP_ROWS: GLenum;
readonly UNSIGNALED: GLenum;
readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
readonly UNSIGNED_INT_24_8: GLenum;
readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
readonly UNSIGNED_INT_VEC2: GLenum;
readonly UNSIGNED_INT_VEC3: GLenum;
readonly UNSIGNED_INT_VEC4: GLenum;
readonly UNSIGNED_NORMALIZED: GLenum;
readonly VERTEX_ARRAY_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
readonly WAIT_FAILED: GLenum;
readonly ACTIVE_ATTRIBUTES: GLenum;
readonly ACTIVE_TEXTURE: GLenum;
readonly ACTIVE_UNIFORMS: GLenum;
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
readonly ALPHA: GLenum;
readonly ALPHA_BITS: GLenum;
readonly ALWAYS: GLenum;
readonly ARRAY_BUFFER: GLenum;
readonly ARRAY_BUFFER_BINDING: GLenum;
readonly ATTACHED_SHADERS: GLenum;
readonly BACK: GLenum;
readonly BLEND: GLenum;
readonly BLEND_COLOR: GLenum;
readonly BLEND_DST_ALPHA: GLenum;
readonly BLEND_DST_RGB: GLenum;
readonly BLEND_EQUATION: GLenum;
readonly BLEND_EQUATION_ALPHA: GLenum;
readonly BLEND_EQUATION_RGB: GLenum;
readonly BLEND_SRC_ALPHA: GLenum;
readonly BLEND_SRC_RGB: GLenum;
readonly BLUE_BITS: GLenum;
readonly BOOL: GLenum;
readonly BOOL_VEC2: GLenum;
readonly BOOL_VEC3: GLenum;
readonly BOOL_VEC4: GLenum;
readonly BROWSER_DEFAULT_WEBGL: GLenum;
readonly BUFFER_SIZE: GLenum;
readonly BUFFER_USAGE: GLenum;
readonly BYTE: GLenum;
readonly CCW: GLenum;
readonly CLAMP_TO_EDGE: GLenum;
readonly COLOR_ATTACHMENT0: GLenum;
readonly COLOR_BUFFER_BIT: GLenum;
readonly COLOR_CLEAR_VALUE: GLenum;
readonly COLOR_WRITEMASK: GLenum;
readonly COMPILE_STATUS: GLenum;
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
readonly CONSTANT_ALPHA: GLenum;
readonly CONSTANT_COLOR: GLenum;
readonly CONTEXT_LOST_WEBGL: GLenum;
readonly CULL_FACE: GLenum;
readonly CULL_FACE_MODE: GLenum;
readonly CURRENT_PROGRAM: GLenum;
readonly CURRENT_VERTEX_ATTRIB: GLenum;
readonly CW: GLenum;
readonly DECR: GLenum;
readonly DECR_WRAP: GLenum;
readonly DELETE_STATUS: GLenum;
readonly DEPTH_ATTACHMENT: GLenum;
readonly DEPTH_BITS: GLenum;
readonly DEPTH_BUFFER_BIT: GLenum;
readonly DEPTH_CLEAR_VALUE: GLenum;
readonly DEPTH_COMPONENT: GLenum;
readonly DEPTH_COMPONENT16: GLenum;
readonly DEPTH_FUNC: GLenum;
readonly DEPTH_RANGE: GLenum;
readonly DEPTH_STENCIL: GLenum;
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
readonly DEPTH_TEST: GLenum;
readonly DEPTH_WRITEMASK: GLenum;
readonly DITHER: GLenum;
readonly DONT_CARE: GLenum;
readonly DST_ALPHA: GLenum;
readonly DST_COLOR: GLenum;
readonly DYNAMIC_DRAW: GLenum;
readonly ELEMENT_ARRAY_BUFFER: GLenum;
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
readonly EQUAL: GLenum;
readonly FASTEST: GLenum;
readonly FLOAT: GLenum;
readonly FLOAT_MAT2: GLenum;
readonly FLOAT_MAT3: GLenum;
readonly FLOAT_MAT4: GLenum;
readonly FLOAT_VEC2: GLenum;
readonly FLOAT_VEC3: GLenum;
readonly FLOAT_VEC4: GLenum;
readonly FRAGMENT_SHADER: GLenum;
readonly FRAMEBUFFER: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
readonly FRAMEBUFFER_BINDING: GLenum;
readonly FRAMEBUFFER_COMPLETE: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
readonly FRONT: GLenum;
readonly FRONT_AND_BACK: GLenum;
readonly FRONT_FACE: GLenum;
readonly FUNC_ADD: GLenum;
readonly FUNC_REVERSE_SUBTRACT: GLenum;
readonly FUNC_SUBTRACT: GLenum;
readonly GENERATE_MIPMAP_HINT: GLenum;
readonly GEQUAL: GLenum;
readonly GREATER: GLenum;
readonly GREEN_BITS: GLenum;
readonly HIGH_FLOAT: GLenum;
readonly HIGH_INT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
readonly INCR: GLenum;
readonly INCR_WRAP: GLenum;
readonly INT: GLenum;
readonly INT_VEC2: GLenum;
readonly INT_VEC3: GLenum;
readonly INT_VEC4: GLenum;
readonly INVALID_ENUM: GLenum;
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
readonly INVALID_OPERATION: GLenum;
readonly INVALID_VALUE: GLenum;
readonly INVERT: GLenum;
readonly KEEP: GLenum;
readonly LEQUAL: GLenum;
readonly LESS: GLenum;
readonly LINEAR: GLenum;
readonly LINEAR_MIPMAP_LINEAR: GLenum;
readonly LINEAR_MIPMAP_NEAREST: GLenum;
readonly LINES: GLenum;
readonly LINE_LOOP: GLenum;
readonly LINE_STRIP: GLenum;
readonly LINE_WIDTH: GLenum;
readonly LINK_STATUS: GLenum;
readonly LOW_FLOAT: GLenum;
readonly LOW_INT: GLenum;
readonly LUMINANCE: GLenum;
readonly LUMINANCE_ALPHA: GLenum;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
readonly MAX_RENDERBUFFER_SIZE: GLenum;
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_TEXTURE_SIZE: GLenum;
readonly MAX_VARYING_VECTORS: GLenum;
readonly MAX_VERTEX_ATTRIBS: GLenum;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
readonly MAX_VIEWPORT_DIMS: GLenum;
readonly MEDIUM_FLOAT: GLenum;
readonly MEDIUM_INT: GLenum;
readonly MIRRORED_REPEAT: GLenum;
readonly NEAREST: GLenum;
readonly NEAREST_MIPMAP_LINEAR: GLenum;
readonly NEAREST_MIPMAP_NEAREST: GLenum;
readonly NEVER: GLenum;
readonly NICEST: GLenum;
readonly NONE: GLenum;
readonly NOTEQUAL: GLenum;
readonly NO_ERROR: GLenum;
readonly ONE: GLenum;
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
readonly ONE_MINUS_DST_ALPHA: GLenum;
readonly ONE_MINUS_DST_COLOR: GLenum;
readonly ONE_MINUS_SRC_ALPHA: GLenum;
readonly ONE_MINUS_SRC_COLOR: GLenum;
readonly OUT_OF_MEMORY: GLenum;
readonly PACK_ALIGNMENT: GLenum;
readonly POINTS: GLenum;
readonly POLYGON_OFFSET_FACTOR: GLenum;
readonly POLYGON_OFFSET_FILL: GLenum;
readonly POLYGON_OFFSET_UNITS: GLenum;
readonly RED_BITS: GLenum;
readonly RENDERBUFFER: GLenum;
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
readonly RENDERBUFFER_BINDING: GLenum;
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
readonly RENDERBUFFER_HEIGHT: GLenum;
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
readonly RENDERBUFFER_RED_SIZE: GLenum;
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
readonly RENDERBUFFER_WIDTH: GLenum;
readonly RENDERER: GLenum;
readonly REPEAT: GLenum;
readonly REPLACE: GLenum;
readonly RGB: GLenum;
readonly RGB565: GLenum;
readonly RGB5_A1: GLenum;
readonly RGBA: GLenum;
readonly RGBA4: GLenum;
readonly SAMPLER_2D: GLenum;
readonly SAMPLER_CUBE: GLenum;
readonly SAMPLES: GLenum;
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
readonly SAMPLE_BUFFERS: GLenum;
readonly SAMPLE_COVERAGE: GLenum;
readonly SAMPLE_COVERAGE_INVERT: GLenum;
readonly SAMPLE_COVERAGE_VALUE: GLenum;
readonly SCISSOR_BOX: GLenum;
readonly SCISSOR_TEST: GLenum;
readonly SHADER_TYPE: GLenum;
readonly SHADING_LANGUAGE_VERSION: GLenum;
readonly SHORT: GLenum;
readonly SRC_ALPHA: GLenum;
readonly SRC_ALPHA_SATURATE: GLenum;
readonly SRC_COLOR: GLenum;
readonly STATIC_DRAW: GLenum;
readonly STENCIL_ATTACHMENT: GLenum;
readonly STENCIL_BACK_FAIL: GLenum;
readonly STENCIL_BACK_FUNC: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_BACK_REF: GLenum;
readonly STENCIL_BACK_VALUE_MASK: GLenum;
readonly STENCIL_BACK_WRITEMASK: GLenum;
readonly STENCIL_BITS: GLenum;
readonly STENCIL_BUFFER_BIT: GLenum;
readonly STENCIL_CLEAR_VALUE: GLenum;
readonly STENCIL_FAIL: GLenum;
readonly STENCIL_FUNC: GLenum;
readonly STENCIL_INDEX8: GLenum;
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_REF: GLenum;
readonly STENCIL_TEST: GLenum;
readonly STENCIL_VALUE_MASK: GLenum;
readonly STENCIL_WRITEMASK: GLenum;
readonly STREAM_DRAW: GLenum;
readonly SUBPIXEL_BITS: GLenum;
readonly TEXTURE: GLenum;
readonly TEXTURE0: GLenum;
readonly TEXTURE1: GLenum;
readonly TEXTURE10: GLenum;
readonly TEXTURE11: GLenum;
readonly TEXTURE12: GLenum;
readonly TEXTURE13: GLenum;
readonly TEXTURE14: GLenum;
readonly TEXTURE15: GLenum;
readonly TEXTURE16: GLenum;
readonly TEXTURE17: GLenum;
readonly TEXTURE18: GLenum;
readonly TEXTURE19: GLenum;
readonly TEXTURE2: GLenum;
readonly TEXTURE20: GLenum;
readonly TEXTURE21: GLenum;
readonly TEXTURE22: GLenum;
readonly TEXTURE23: GLenum;
readonly TEXTURE24: GLenum;
readonly TEXTURE25: GLenum;
readonly TEXTURE26: GLenum;
readonly TEXTURE27: GLenum;
readonly TEXTURE28: GLenum;
readonly TEXTURE29: GLenum;
readonly TEXTURE3: GLenum;
readonly TEXTURE30: GLenum;
readonly TEXTURE31: GLenum;
readonly TEXTURE4: GLenum;
readonly TEXTURE5: GLenum;
readonly TEXTURE6: GLenum;
readonly TEXTURE7: GLenum;
readonly TEXTURE8: GLenum;
readonly TEXTURE9: GLenum;
readonly TEXTURE_2D: GLenum;
readonly TEXTURE_BINDING_2D: GLenum;
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
readonly TEXTURE_MAG_FILTER: GLenum;
readonly TEXTURE_MIN_FILTER: GLenum;
readonly TEXTURE_WRAP_S: GLenum;
readonly TEXTURE_WRAP_T: GLenum;
readonly TRIANGLES: GLenum;
readonly TRIANGLE_FAN: GLenum;
readonly TRIANGLE_STRIP: GLenum;
readonly UNPACK_ALIGNMENT: GLenum;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
readonly UNSIGNED_BYTE: GLenum;
readonly UNSIGNED_INT: GLenum;
readonly UNSIGNED_SHORT: GLenum;
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
readonly UNSIGNED_SHORT_5_6_5: GLenum;
readonly VALIDATE_STATUS: GLenum;
readonly VENDOR: GLenum;
readonly VERSION: GLenum;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
readonly VERTEX_SHADER: GLenum;
readonly VIEWPORT: GLenum;
readonly ZERO: GLenum;
};
interface WebGL2RenderingContextBase {
beginQuery(target: GLenum, query: WebGLQuery): void;
beginTransformFeedback(primitiveMode: GLenum): void;
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
bindVertexArray(array: WebGLVertexArrayObject | null): void;
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createQuery(): WebGLQuery | null;
createSampler(): WebGLSampler | null;
createTransformFeedback(): WebGLTransformFeedback | null;
createVertexArray(): WebGLVertexArrayObject | null;
deleteQuery(query: WebGLQuery | null): void;
deleteSampler(sampler: WebGLSampler | null): void;
deleteSync(sync: WebGLSync | null): void;
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
drawBuffers(buffers: GLenum[]): void;
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
endQuery(target: GLenum): void;
endTransformFeedback(): void;
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
getFragDataLocation(program: WebGLProgram, name: string): GLint;
getIndexedParameter(target: GLenum, index: GLuint): any;
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
isQuery(query: WebGLQuery | null): GLboolean;
isSampler(sampler: WebGLSampler | null): GLboolean;
isSync(sync: WebGLSync | null): GLboolean;
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
pauseTransformFeedback(): void;
readBuffer(src: GLenum): void;
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
resumeTransformFeedback(): void;
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
vertexAttribI4iv(index: GLuint, values: Int32List): void;
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
readonly ALREADY_SIGNALED: GLenum;
readonly ANY_SAMPLES_PASSED: GLenum;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
readonly COLOR: GLenum;
readonly COLOR_ATTACHMENT1: GLenum;
readonly COLOR_ATTACHMENT10: GLenum;
readonly COLOR_ATTACHMENT11: GLenum;
readonly COLOR_ATTACHMENT12: GLenum;
readonly COLOR_ATTACHMENT13: GLenum;
readonly COLOR_ATTACHMENT14: GLenum;
readonly COLOR_ATTACHMENT15: GLenum;
readonly COLOR_ATTACHMENT2: GLenum;
readonly COLOR_ATTACHMENT3: GLenum;
readonly COLOR_ATTACHMENT4: GLenum;
readonly COLOR_ATTACHMENT5: GLenum;
readonly COLOR_ATTACHMENT6: GLenum;
readonly COLOR_ATTACHMENT7: GLenum;
readonly COLOR_ATTACHMENT8: GLenum;
readonly COLOR_ATTACHMENT9: GLenum;
readonly COMPARE_REF_TO_TEXTURE: GLenum;
readonly CONDITION_SATISFIED: GLenum;
readonly COPY_READ_BUFFER: GLenum;
readonly COPY_READ_BUFFER_BINDING: GLenum;
readonly COPY_WRITE_BUFFER: GLenum;
readonly COPY_WRITE_BUFFER_BINDING: GLenum;
readonly CURRENT_QUERY: GLenum;
readonly DEPTH: GLenum;
readonly DEPTH24_STENCIL8: GLenum;
readonly DEPTH32F_STENCIL8: GLenum;
readonly DEPTH_COMPONENT24: GLenum;
readonly DEPTH_COMPONENT32F: GLenum;
readonly DRAW_BUFFER0: GLenum;
readonly DRAW_BUFFER1: GLenum;
readonly DRAW_BUFFER10: GLenum;
readonly DRAW_BUFFER11: GLenum;
readonly DRAW_BUFFER12: GLenum;
readonly DRAW_BUFFER13: GLenum;
readonly DRAW_BUFFER14: GLenum;
readonly DRAW_BUFFER15: GLenum;
readonly DRAW_BUFFER2: GLenum;
readonly DRAW_BUFFER3: GLenum;
readonly DRAW_BUFFER4: GLenum;
readonly DRAW_BUFFER5: GLenum;
readonly DRAW_BUFFER6: GLenum;
readonly DRAW_BUFFER7: GLenum;
readonly DRAW_BUFFER8: GLenum;
readonly DRAW_BUFFER9: GLenum;
readonly DRAW_FRAMEBUFFER: GLenum;
readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
readonly DYNAMIC_COPY: GLenum;
readonly DYNAMIC_READ: GLenum;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
readonly FLOAT_MAT2x3: GLenum;
readonly FLOAT_MAT2x4: GLenum;
readonly FLOAT_MAT3x2: GLenum;
readonly FLOAT_MAT3x4: GLenum;
readonly FLOAT_MAT4x2: GLenum;
readonly FLOAT_MAT4x3: GLenum;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
readonly FRAMEBUFFER_DEFAULT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
readonly HALF_FLOAT: GLenum;
readonly INTERLEAVED_ATTRIBS: GLenum;
readonly INT_2_10_10_10_REV: GLenum;
readonly INT_SAMPLER_2D: GLenum;
readonly INT_SAMPLER_2D_ARRAY: GLenum;
readonly INT_SAMPLER_3D: GLenum;
readonly INT_SAMPLER_CUBE: GLenum;
readonly INVALID_INDEX: GLenum;
readonly MAX: GLenum;
readonly MAX_3D_TEXTURE_SIZE: GLenum;
readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
readonly MAX_COLOR_ATTACHMENTS: GLenum;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
readonly MAX_DRAW_BUFFERS: GLenum;
readonly MAX_ELEMENTS_INDICES: GLenum;
readonly MAX_ELEMENTS_VERTICES: GLenum;
readonly MAX_ELEMENT_INDEX: GLenum;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
readonly MAX_SAMPLES: GLenum;
readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
readonly MAX_TEXTURE_LOD_BIAS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
readonly MAX_VARYING_COMPONENTS: GLenum;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
readonly MIN: GLenum;
readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
readonly OBJECT_TYPE: GLenum;
readonly PACK_ROW_LENGTH: GLenum;
readonly PACK_SKIP_PIXELS: GLenum;
readonly PACK_SKIP_ROWS: GLenum;
readonly PIXEL_PACK_BUFFER: GLenum;
readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
readonly PIXEL_UNPACK_BUFFER: GLenum;
readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
readonly QUERY_RESULT: GLenum;
readonly QUERY_RESULT_AVAILABLE: GLenum;
readonly R11F_G11F_B10F: GLenum;
readonly R16F: GLenum;
readonly R16I: GLenum;
readonly R16UI: GLenum;
readonly R32F: GLenum;
readonly R32I: GLenum;
readonly R32UI: GLenum;
readonly R8: GLenum;
readonly R8I: GLenum;
readonly R8UI: GLenum;
readonly R8_SNORM: GLenum;
readonly RASTERIZER_DISCARD: GLenum;
readonly READ_BUFFER: GLenum;
readonly READ_FRAMEBUFFER: GLenum;
readonly READ_FRAMEBUFFER_BINDING: GLenum;
readonly RED: GLenum;
readonly RED_INTEGER: GLenum;
readonly RENDERBUFFER_SAMPLES: GLenum;
readonly RG: GLenum;
readonly RG16F: GLenum;
readonly RG16I: GLenum;
readonly RG16UI: GLenum;
readonly RG32F: GLenum;
readonly RG32I: GLenum;
readonly RG32UI: GLenum;
readonly RG8: GLenum;
readonly RG8I: GLenum;
readonly RG8UI: GLenum;
readonly RG8_SNORM: GLenum;
readonly RGB10_A2: GLenum;
readonly RGB10_A2UI: GLenum;
readonly RGB16F: GLenum;
readonly RGB16I: GLenum;
readonly RGB16UI: GLenum;
readonly RGB32F: GLenum;
readonly RGB32I: GLenum;
readonly RGB32UI: GLenum;
readonly RGB8: GLenum;
readonly RGB8I: GLenum;
readonly RGB8UI: GLenum;
readonly RGB8_SNORM: GLenum;
readonly RGB9_E5: GLenum;
readonly RGBA16F: GLenum;
readonly RGBA16I: GLenum;
readonly RGBA16UI: GLenum;
readonly RGBA32F: GLenum;
readonly RGBA32I: GLenum;
readonly RGBA32UI: GLenum;
readonly RGBA8: GLenum;
readonly RGBA8I: GLenum;
readonly RGBA8UI: GLenum;
readonly RGBA8_SNORM: GLenum;
readonly RGBA_INTEGER: GLenum;
readonly RGB_INTEGER: GLenum;
readonly RG_INTEGER: GLenum;
readonly SAMPLER_2D_ARRAY: GLenum;
readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
readonly SAMPLER_2D_SHADOW: GLenum;
readonly SAMPLER_3D: GLenum;
readonly SAMPLER_BINDING: GLenum;
readonly SAMPLER_CUBE_SHADOW: GLenum;
readonly SEPARATE_ATTRIBS: GLenum;
readonly SIGNALED: GLenum;
readonly SIGNED_NORMALIZED: GLenum;
readonly SRGB: GLenum;
readonly SRGB8: GLenum;
readonly SRGB8_ALPHA8: GLenum;
readonly STATIC_COPY: GLenum;
readonly STATIC_READ: GLenum;
readonly STENCIL: GLenum;
readonly STREAM_COPY: GLenum;
readonly STREAM_READ: GLenum;
readonly SYNC_CONDITION: GLenum;
readonly SYNC_FENCE: GLenum;
readonly SYNC_FLAGS: GLenum;
readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
readonly SYNC_STATUS: GLenum;
readonly TEXTURE_2D_ARRAY: GLenum;
readonly TEXTURE_3D: GLenum;
readonly TEXTURE_BASE_LEVEL: GLenum;
readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
readonly TEXTURE_BINDING_3D: GLenum;
readonly TEXTURE_COMPARE_FUNC: GLenum;
readonly TEXTURE_COMPARE_MODE: GLenum;
readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
readonly TEXTURE_MAX_LEVEL: GLenum;
readonly TEXTURE_MAX_LOD: GLenum;
readonly TEXTURE_MIN_LOD: GLenum;
readonly TEXTURE_WRAP_R: GLenum;
readonly TIMEOUT_EXPIRED: GLenum;
readonly TIMEOUT_IGNORED: GLint64;
readonly TRANSFORM_FEEDBACK: GLenum;
readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
readonly UNIFORM_ARRAY_STRIDE: GLenum;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
readonly UNIFORM_BLOCK_BINDING: GLenum;
readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
readonly UNIFORM_BLOCK_INDEX: GLenum;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
readonly UNIFORM_BUFFER: GLenum;
readonly UNIFORM_BUFFER_BINDING: GLenum;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
readonly UNIFORM_BUFFER_SIZE: GLenum;
readonly UNIFORM_BUFFER_START: GLenum;
readonly UNIFORM_IS_ROW_MAJOR: GLenum;
readonly UNIFORM_MATRIX_STRIDE: GLenum;
readonly UNIFORM_OFFSET: GLenum;
readonly UNIFORM_SIZE: GLenum;
readonly UNIFORM_TYPE: GLenum;
readonly UNPACK_IMAGE_HEIGHT: GLenum;
readonly UNPACK_ROW_LENGTH: GLenum;
readonly UNPACK_SKIP_IMAGES: GLenum;
readonly UNPACK_SKIP_PIXELS: GLenum;
readonly UNPACK_SKIP_ROWS: GLenum;
readonly UNSIGNALED: GLenum;
readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
readonly UNSIGNED_INT_24_8: GLenum;
readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
readonly UNSIGNED_INT_VEC2: GLenum;
readonly UNSIGNED_INT_VEC3: GLenum;
readonly UNSIGNED_INT_VEC4: GLenum;
readonly UNSIGNED_NORMALIZED: GLenum;
readonly VERTEX_ARRAY_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
readonly WAIT_FAILED: GLenum;
}
interface WebGL2RenderingContextOverloads {
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
}
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
interface WebGLActiveInfo {
readonly name: string;
readonly size: GLint;
readonly type: GLenum;
}
declare var WebGLActiveInfo: {
prototype: WebGLActiveInfo;
new(): WebGLActiveInfo;
};
/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
interface WebGLBuffer {
}
declare var WebGLBuffer: {
prototype: WebGLBuffer;
new(): WebGLBuffer;
};
/** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */
interface WebGLContextEvent extends Event {
readonly statusMessage: string;
}
declare var WebGLContextEvent: {
prototype: WebGLContextEvent;
new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
};
/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
interface WebGLFramebuffer {
}
declare var WebGLFramebuffer: {
prototype: WebGLFramebuffer;
new(): WebGLFramebuffer;
};
/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
interface WebGLProgram {
}
declare var WebGLProgram: {
prototype: WebGLProgram;
new(): WebGLProgram;
};
interface WebGLQuery {
}
declare var WebGLQuery: {
prototype: WebGLQuery;
new(): WebGLQuery;
};
/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
interface WebGLRenderbuffer {
}
declare var WebGLRenderbuffer: {
prototype: WebGLRenderbuffer;
new(): WebGLRenderbuffer;
};
/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
}
declare var WebGLRenderingContext: {
prototype: WebGLRenderingContext;
new(): WebGLRenderingContext;
readonly ACTIVE_ATTRIBUTES: GLenum;
readonly ACTIVE_TEXTURE: GLenum;
readonly ACTIVE_UNIFORMS: GLenum;
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
readonly ALPHA: GLenum;
readonly ALPHA_BITS: GLenum;
readonly ALWAYS: GLenum;
readonly ARRAY_BUFFER: GLenum;
readonly ARRAY_BUFFER_BINDING: GLenum;
readonly ATTACHED_SHADERS: GLenum;
readonly BACK: GLenum;
readonly BLEND: GLenum;
readonly BLEND_COLOR: GLenum;
readonly BLEND_DST_ALPHA: GLenum;
readonly BLEND_DST_RGB: GLenum;
readonly BLEND_EQUATION: GLenum;
readonly BLEND_EQUATION_ALPHA: GLenum;
readonly BLEND_EQUATION_RGB: GLenum;
readonly BLEND_SRC_ALPHA: GLenum;
readonly BLEND_SRC_RGB: GLenum;
readonly BLUE_BITS: GLenum;
readonly BOOL: GLenum;
readonly BOOL_VEC2: GLenum;
readonly BOOL_VEC3: GLenum;
readonly BOOL_VEC4: GLenum;
readonly BROWSER_DEFAULT_WEBGL: GLenum;
readonly BUFFER_SIZE: GLenum;
readonly BUFFER_USAGE: GLenum;
readonly BYTE: GLenum;
readonly CCW: GLenum;
readonly CLAMP_TO_EDGE: GLenum;
readonly COLOR_ATTACHMENT0: GLenum;
readonly COLOR_BUFFER_BIT: GLenum;
readonly COLOR_CLEAR_VALUE: GLenum;
readonly COLOR_WRITEMASK: GLenum;
readonly COMPILE_STATUS: GLenum;
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
readonly CONSTANT_ALPHA: GLenum;
readonly CONSTANT_COLOR: GLenum;
readonly CONTEXT_LOST_WEBGL: GLenum;
readonly CULL_FACE: GLenum;
readonly CULL_FACE_MODE: GLenum;
readonly CURRENT_PROGRAM: GLenum;
readonly CURRENT_VERTEX_ATTRIB: GLenum;
readonly CW: GLenum;
readonly DECR: GLenum;
readonly DECR_WRAP: GLenum;
readonly DELETE_STATUS: GLenum;
readonly DEPTH_ATTACHMENT: GLenum;
readonly DEPTH_BITS: GLenum;
readonly DEPTH_BUFFER_BIT: GLenum;
readonly DEPTH_CLEAR_VALUE: GLenum;
readonly DEPTH_COMPONENT: GLenum;
readonly DEPTH_COMPONENT16: GLenum;
readonly DEPTH_FUNC: GLenum;
readonly DEPTH_RANGE: GLenum;
readonly DEPTH_STENCIL: GLenum;
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
readonly DEPTH_TEST: GLenum;
readonly DEPTH_WRITEMASK: GLenum;
readonly DITHER: GLenum;
readonly DONT_CARE: GLenum;
readonly DST_ALPHA: GLenum;
readonly DST_COLOR: GLenum;
readonly DYNAMIC_DRAW: GLenum;
readonly ELEMENT_ARRAY_BUFFER: GLenum;
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
readonly EQUAL: GLenum;
readonly FASTEST: GLenum;
readonly FLOAT: GLenum;
readonly FLOAT_MAT2: GLenum;
readonly FLOAT_MAT3: GLenum;
readonly FLOAT_MAT4: GLenum;
readonly FLOAT_VEC2: GLenum;
readonly FLOAT_VEC3: GLenum;
readonly FLOAT_VEC4: GLenum;
readonly FRAGMENT_SHADER: GLenum;
readonly FRAMEBUFFER: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
readonly FRAMEBUFFER_BINDING: GLenum;
readonly FRAMEBUFFER_COMPLETE: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
readonly FRONT: GLenum;
readonly FRONT_AND_BACK: GLenum;
readonly FRONT_FACE: GLenum;
readonly FUNC_ADD: GLenum;
readonly FUNC_REVERSE_SUBTRACT: GLenum;
readonly FUNC_SUBTRACT: GLenum;
readonly GENERATE_MIPMAP_HINT: GLenum;
readonly GEQUAL: GLenum;
readonly GREATER: GLenum;
readonly GREEN_BITS: GLenum;
readonly HIGH_FLOAT: GLenum;
readonly HIGH_INT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
readonly INCR: GLenum;
readonly INCR_WRAP: GLenum;
readonly INT: GLenum;
readonly INT_VEC2: GLenum;
readonly INT_VEC3: GLenum;
readonly INT_VEC4: GLenum;
readonly INVALID_ENUM: GLenum;
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
readonly INVALID_OPERATION: GLenum;
readonly INVALID_VALUE: GLenum;
readonly INVERT: GLenum;
readonly KEEP: GLenum;
readonly LEQUAL: GLenum;
readonly LESS: GLenum;
readonly LINEAR: GLenum;
readonly LINEAR_MIPMAP_LINEAR: GLenum;
readonly LINEAR_MIPMAP_NEAREST: GLenum;
readonly LINES: GLenum;
readonly LINE_LOOP: GLenum;
readonly LINE_STRIP: GLenum;
readonly LINE_WIDTH: GLenum;
readonly LINK_STATUS: GLenum;
readonly LOW_FLOAT: GLenum;
readonly LOW_INT: GLenum;
readonly LUMINANCE: GLenum;
readonly LUMINANCE_ALPHA: GLenum;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
readonly MAX_RENDERBUFFER_SIZE: GLenum;
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_TEXTURE_SIZE: GLenum;
readonly MAX_VARYING_VECTORS: GLenum;
readonly MAX_VERTEX_ATTRIBS: GLenum;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
readonly MAX_VIEWPORT_DIMS: GLenum;
readonly MEDIUM_FLOAT: GLenum;
readonly MEDIUM_INT: GLenum;
readonly MIRRORED_REPEAT: GLenum;
readonly NEAREST: GLenum;
readonly NEAREST_MIPMAP_LINEAR: GLenum;
readonly NEAREST_MIPMAP_NEAREST: GLenum;
readonly NEVER: GLenum;
readonly NICEST: GLenum;
readonly NONE: GLenum;
readonly NOTEQUAL: GLenum;
readonly NO_ERROR: GLenum;
readonly ONE: GLenum;
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
readonly ONE_MINUS_DST_ALPHA: GLenum;
readonly ONE_MINUS_DST_COLOR: GLenum;
readonly ONE_MINUS_SRC_ALPHA: GLenum;
readonly ONE_MINUS_SRC_COLOR: GLenum;
readonly OUT_OF_MEMORY: GLenum;
readonly PACK_ALIGNMENT: GLenum;
readonly POINTS: GLenum;
readonly POLYGON_OFFSET_FACTOR: GLenum;
readonly POLYGON_OFFSET_FILL: GLenum;
readonly POLYGON_OFFSET_UNITS: GLenum;
readonly RED_BITS: GLenum;
readonly RENDERBUFFER: GLenum;
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
readonly RENDERBUFFER_BINDING: GLenum;
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
readonly RENDERBUFFER_HEIGHT: GLenum;
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
readonly RENDERBUFFER_RED_SIZE: GLenum;
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
readonly RENDERBUFFER_WIDTH: GLenum;
readonly RENDERER: GLenum;
readonly REPEAT: GLenum;
readonly REPLACE: GLenum;
readonly RGB: GLenum;
readonly RGB565: GLenum;
readonly RGB5_A1: GLenum;
readonly RGBA: GLenum;
readonly RGBA4: GLenum;
readonly SAMPLER_2D: GLenum;
readonly SAMPLER_CUBE: GLenum;
readonly SAMPLES: GLenum;
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
readonly SAMPLE_BUFFERS: GLenum;
readonly SAMPLE_COVERAGE: GLenum;
readonly SAMPLE_COVERAGE_INVERT: GLenum;
readonly SAMPLE_COVERAGE_VALUE: GLenum;
readonly SCISSOR_BOX: GLenum;
readonly SCISSOR_TEST: GLenum;
readonly SHADER_TYPE: GLenum;
readonly SHADING_LANGUAGE_VERSION: GLenum;
readonly SHORT: GLenum;
readonly SRC_ALPHA: GLenum;
readonly SRC_ALPHA_SATURATE: GLenum;
readonly SRC_COLOR: GLenum;
readonly STATIC_DRAW: GLenum;
readonly STENCIL_ATTACHMENT: GLenum;
readonly STENCIL_BACK_FAIL: GLenum;
readonly STENCIL_BACK_FUNC: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_BACK_REF: GLenum;
readonly STENCIL_BACK_VALUE_MASK: GLenum;
readonly STENCIL_BACK_WRITEMASK: GLenum;
readonly STENCIL_BITS: GLenum;
readonly STENCIL_BUFFER_BIT: GLenum;
readonly STENCIL_CLEAR_VALUE: GLenum;
readonly STENCIL_FAIL: GLenum;
readonly STENCIL_FUNC: GLenum;
readonly STENCIL_INDEX8: GLenum;
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_REF: GLenum;
readonly STENCIL_TEST: GLenum;
readonly STENCIL_VALUE_MASK: GLenum;
readonly STENCIL_WRITEMASK: GLenum;
readonly STREAM_DRAW: GLenum;
readonly SUBPIXEL_BITS: GLenum;
readonly TEXTURE: GLenum;
readonly TEXTURE0: GLenum;
readonly TEXTURE1: GLenum;
readonly TEXTURE10: GLenum;
readonly TEXTURE11: GLenum;
readonly TEXTURE12: GLenum;
readonly TEXTURE13: GLenum;
readonly TEXTURE14: GLenum;
readonly TEXTURE15: GLenum;
readonly TEXTURE16: GLenum;
readonly TEXTURE17: GLenum;
readonly TEXTURE18: GLenum;
readonly TEXTURE19: GLenum;
readonly TEXTURE2: GLenum;
readonly TEXTURE20: GLenum;
readonly TEXTURE21: GLenum;
readonly TEXTURE22: GLenum;
readonly TEXTURE23: GLenum;
readonly TEXTURE24: GLenum;
readonly TEXTURE25: GLenum;
readonly TEXTURE26: GLenum;
readonly TEXTURE27: GLenum;
readonly TEXTURE28: GLenum;
readonly TEXTURE29: GLenum;
readonly TEXTURE3: GLenum;
readonly TEXTURE30: GLenum;
readonly TEXTURE31: GLenum;
readonly TEXTURE4: GLenum;
readonly TEXTURE5: GLenum;
readonly TEXTURE6: GLenum;
readonly TEXTURE7: GLenum;
readonly TEXTURE8: GLenum;
readonly TEXTURE9: GLenum;
readonly TEXTURE_2D: GLenum;
readonly TEXTURE_BINDING_2D: GLenum;
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
readonly TEXTURE_MAG_FILTER: GLenum;
readonly TEXTURE_MIN_FILTER: GLenum;
readonly TEXTURE_WRAP_S: GLenum;
readonly TEXTURE_WRAP_T: GLenum;
readonly TRIANGLES: GLenum;
readonly TRIANGLE_FAN: GLenum;
readonly TRIANGLE_STRIP: GLenum;
readonly UNPACK_ALIGNMENT: GLenum;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
readonly UNSIGNED_BYTE: GLenum;
readonly UNSIGNED_INT: GLenum;
readonly UNSIGNED_SHORT: GLenum;
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
readonly UNSIGNED_SHORT_5_6_5: GLenum;
readonly VALIDATE_STATUS: GLenum;
readonly VENDOR: GLenum;
readonly VERSION: GLenum;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
readonly VERTEX_SHADER: GLenum;
readonly VIEWPORT: GLenum;
readonly ZERO: GLenum;
};
interface WebGLRenderingContextBase {
readonly drawingBufferHeight: GLsizei;
readonly drawingBufferWidth: GLsizei;
activeTexture(texture: GLenum): void;
attachShader(program: WebGLProgram, shader: WebGLShader): void;
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
blendEquation(mode: GLenum): void;
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
checkFramebufferStatus(target: GLenum): GLenum;
clear(mask: GLbitfield): void;
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
clearDepth(depth: GLclampf): void;
clearStencil(s: GLint): void;
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
compileShader(shader: WebGLShader): void;
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createBuffer(): WebGLBuffer | null;
createFramebuffer(): WebGLFramebuffer | null;
createProgram(): WebGLProgram | null;
createRenderbuffer(): WebGLRenderbuffer | null;
createShader(type: GLenum): WebGLShader | null;
createTexture(): WebGLTexture | null;
cullFace(mode: GLenum): void;
deleteBuffer(buffer: WebGLBuffer | null): void;
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
deleteProgram(program: WebGLProgram | null): void;
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
deleteShader(shader: WebGLShader | null): void;
deleteTexture(texture: WebGLTexture | null): void;
depthFunc(func: GLenum): void;
depthMask(flag: GLboolean): void;
depthRange(zNear: GLclampf, zFar: GLclampf): void;
detachShader(program: WebGLProgram, shader: WebGLShader): void;
disable(cap: GLenum): void;
disableVertexAttribArray(index: GLuint): void;
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
enable(cap: GLenum): void;
enableVertexAttribArray(index: GLuint): void;
finish(): void;
flush(): void;
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
frontFace(mode: GLenum): void;
generateMipmap(target: GLenum): void;
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
getAttribLocation(program: WebGLProgram, name: string): GLint;
getBufferParameter(target: GLenum, pname: GLenum): any;
getContextAttributes(): WebGLContextAttributes | null;
getError(): GLenum;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
getExtension(name: string): any;
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
getParameter(pname: GLenum): any;
getProgramInfoLog(program: WebGLProgram): string | null;
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
getShaderInfoLog(shader: WebGLShader): string | null;
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
getShaderSource(shader: WebGLShader): string | null;
getSupportedExtensions(): string[] | null;
getTexParameter(target: GLenum, pname: GLenum): any;
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
getVertexAttrib(index: GLuint, pname: GLenum): any;
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
hint(target: GLenum, mode: GLenum): void;
isBuffer(buffer: WebGLBuffer | null): GLboolean;
isContextLost(): boolean;
isEnabled(cap: GLenum): GLboolean;
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
isProgram(program: WebGLProgram | null): GLboolean;
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
isShader(shader: WebGLShader | null): GLboolean;
isTexture(texture: WebGLTexture | null): GLboolean;
lineWidth(width: GLfloat): void;
linkProgram(program: WebGLProgram): void;
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
polygonOffset(factor: GLfloat, units: GLfloat): void;
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
sampleCoverage(value: GLclampf, invert: GLboolean): void;
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
shaderSource(shader: WebGLShader, source: string): void;
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
stencilMask(mask: GLuint): void;
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
useProgram(program: WebGLProgram | null): void;
validateProgram(program: WebGLProgram): void;
vertexAttrib1f(index: GLuint, x: GLfloat): void;
vertexAttrib1fv(index: GLuint, values: Float32List): void;
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
vertexAttrib2fv(index: GLuint, values: Float32List): void;
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
vertexAttrib3fv(index: GLuint, values: Float32List): void;
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
vertexAttrib4fv(index: GLuint, values: Float32List): void;
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
readonly ACTIVE_ATTRIBUTES: GLenum;
readonly ACTIVE_TEXTURE: GLenum;
readonly ACTIVE_UNIFORMS: GLenum;
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
readonly ALPHA: GLenum;
readonly ALPHA_BITS: GLenum;
readonly ALWAYS: GLenum;
readonly ARRAY_BUFFER: GLenum;
readonly ARRAY_BUFFER_BINDING: GLenum;
readonly ATTACHED_SHADERS: GLenum;
readonly BACK: GLenum;
readonly BLEND: GLenum;
readonly BLEND_COLOR: GLenum;
readonly BLEND_DST_ALPHA: GLenum;
readonly BLEND_DST_RGB: GLenum;
readonly BLEND_EQUATION: GLenum;
readonly BLEND_EQUATION_ALPHA: GLenum;
readonly BLEND_EQUATION_RGB: GLenum;
readonly BLEND_SRC_ALPHA: GLenum;
readonly BLEND_SRC_RGB: GLenum;
readonly BLUE_BITS: GLenum;
readonly BOOL: GLenum;
readonly BOOL_VEC2: GLenum;
readonly BOOL_VEC3: GLenum;
readonly BOOL_VEC4: GLenum;
readonly BROWSER_DEFAULT_WEBGL: GLenum;
readonly BUFFER_SIZE: GLenum;
readonly BUFFER_USAGE: GLenum;
readonly BYTE: GLenum;
readonly CCW: GLenum;
readonly CLAMP_TO_EDGE: GLenum;
readonly COLOR_ATTACHMENT0: GLenum;
readonly COLOR_BUFFER_BIT: GLenum;
readonly COLOR_CLEAR_VALUE: GLenum;
readonly COLOR_WRITEMASK: GLenum;
readonly COMPILE_STATUS: GLenum;
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
readonly CONSTANT_ALPHA: GLenum;
readonly CONSTANT_COLOR: GLenum;
readonly CONTEXT_LOST_WEBGL: GLenum;
readonly CULL_FACE: GLenum;
readonly CULL_FACE_MODE: GLenum;
readonly CURRENT_PROGRAM: GLenum;
readonly CURRENT_VERTEX_ATTRIB: GLenum;
readonly CW: GLenum;
readonly DECR: GLenum;
readonly DECR_WRAP: GLenum;
readonly DELETE_STATUS: GLenum;
readonly DEPTH_ATTACHMENT: GLenum;
readonly DEPTH_BITS: GLenum;
readonly DEPTH_BUFFER_BIT: GLenum;
readonly DEPTH_CLEAR_VALUE: GLenum;
readonly DEPTH_COMPONENT: GLenum;
readonly DEPTH_COMPONENT16: GLenum;
readonly DEPTH_FUNC: GLenum;
readonly DEPTH_RANGE: GLenum;
readonly DEPTH_STENCIL: GLenum;
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
readonly DEPTH_TEST: GLenum;
readonly DEPTH_WRITEMASK: GLenum;
readonly DITHER: GLenum;
readonly DONT_CARE: GLenum;
readonly DST_ALPHA: GLenum;
readonly DST_COLOR: GLenum;
readonly DYNAMIC_DRAW: GLenum;
readonly ELEMENT_ARRAY_BUFFER: GLenum;
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
readonly EQUAL: GLenum;
readonly FASTEST: GLenum;
readonly FLOAT: GLenum;
readonly FLOAT_MAT2: GLenum;
readonly FLOAT_MAT3: GLenum;
readonly FLOAT_MAT4: GLenum;
readonly FLOAT_VEC2: GLenum;
readonly FLOAT_VEC3: GLenum;
readonly FLOAT_VEC4: GLenum;
readonly FRAGMENT_SHADER: GLenum;
readonly FRAMEBUFFER: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
readonly FRAMEBUFFER_BINDING: GLenum;
readonly FRAMEBUFFER_COMPLETE: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
readonly FRONT: GLenum;
readonly FRONT_AND_BACK: GLenum;
readonly FRONT_FACE: GLenum;
readonly FUNC_ADD: GLenum;
readonly FUNC_REVERSE_SUBTRACT: GLenum;
readonly FUNC_SUBTRACT: GLenum;
readonly GENERATE_MIPMAP_HINT: GLenum;
readonly GEQUAL: GLenum;
readonly GREATER: GLenum;
readonly GREEN_BITS: GLenum;
readonly HIGH_FLOAT: GLenum;
readonly HIGH_INT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
readonly INCR: GLenum;
readonly INCR_WRAP: GLenum;
readonly INT: GLenum;
readonly INT_VEC2: GLenum;
readonly INT_VEC3: GLenum;
readonly INT_VEC4: GLenum;
readonly INVALID_ENUM: GLenum;
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
readonly INVALID_OPERATION: GLenum;
readonly INVALID_VALUE: GLenum;
readonly INVERT: GLenum;
readonly KEEP: GLenum;
readonly LEQUAL: GLenum;
readonly LESS: GLenum;
readonly LINEAR: GLenum;
readonly LINEAR_MIPMAP_LINEAR: GLenum;
readonly LINEAR_MIPMAP_NEAREST: GLenum;
readonly LINES: GLenum;
readonly LINE_LOOP: GLenum;
readonly LINE_STRIP: GLenum;
readonly LINE_WIDTH: GLenum;
readonly LINK_STATUS: GLenum;
readonly LOW_FLOAT: GLenum;
readonly LOW_INT: GLenum;
readonly LUMINANCE: GLenum;
readonly LUMINANCE_ALPHA: GLenum;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
readonly MAX_RENDERBUFFER_SIZE: GLenum;
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_TEXTURE_SIZE: GLenum;
readonly MAX_VARYING_VECTORS: GLenum;
readonly MAX_VERTEX_ATTRIBS: GLenum;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
readonly MAX_VIEWPORT_DIMS: GLenum;
readonly MEDIUM_FLOAT: GLenum;
readonly MEDIUM_INT: GLenum;
readonly MIRRORED_REPEAT: GLenum;
readonly NEAREST: GLenum;
readonly NEAREST_MIPMAP_LINEAR: GLenum;
readonly NEAREST_MIPMAP_NEAREST: GLenum;
readonly NEVER: GLenum;
readonly NICEST: GLenum;
readonly NONE: GLenum;
readonly NOTEQUAL: GLenum;
readonly NO_ERROR: GLenum;
readonly ONE: GLenum;
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
readonly ONE_MINUS_DST_ALPHA: GLenum;
readonly ONE_MINUS_DST_COLOR: GLenum;
readonly ONE_MINUS_SRC_ALPHA: GLenum;
readonly ONE_MINUS_SRC_COLOR: GLenum;
readonly OUT_OF_MEMORY: GLenum;
readonly PACK_ALIGNMENT: GLenum;
readonly POINTS: GLenum;
readonly POLYGON_OFFSET_FACTOR: GLenum;
readonly POLYGON_OFFSET_FILL: GLenum;
readonly POLYGON_OFFSET_UNITS: GLenum;
readonly RED_BITS: GLenum;
readonly RENDERBUFFER: GLenum;
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
readonly RENDERBUFFER_BINDING: GLenum;
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
readonly RENDERBUFFER_HEIGHT: GLenum;
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
readonly RENDERBUFFER_RED_SIZE: GLenum;
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
readonly RENDERBUFFER_WIDTH: GLenum;
readonly RENDERER: GLenum;
readonly REPEAT: GLenum;
readonly REPLACE: GLenum;
readonly RGB: GLenum;
readonly RGB565: GLenum;
readonly RGB5_A1: GLenum;
readonly RGBA: GLenum;
readonly RGBA4: GLenum;
readonly SAMPLER_2D: GLenum;
readonly SAMPLER_CUBE: GLenum;
readonly SAMPLES: GLenum;
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
readonly SAMPLE_BUFFERS: GLenum;
readonly SAMPLE_COVERAGE: GLenum;
readonly SAMPLE_COVERAGE_INVERT: GLenum;
readonly SAMPLE_COVERAGE_VALUE: GLenum;
readonly SCISSOR_BOX: GLenum;
readonly SCISSOR_TEST: GLenum;
readonly SHADER_TYPE: GLenum;
readonly SHADING_LANGUAGE_VERSION: GLenum;
readonly SHORT: GLenum;
readonly SRC_ALPHA: GLenum;
readonly SRC_ALPHA_SATURATE: GLenum;
readonly SRC_COLOR: GLenum;
readonly STATIC_DRAW: GLenum;
readonly STENCIL_ATTACHMENT: GLenum;
readonly STENCIL_BACK_FAIL: GLenum;
readonly STENCIL_BACK_FUNC: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_BACK_REF: GLenum;
readonly STENCIL_BACK_VALUE_MASK: GLenum;
readonly STENCIL_BACK_WRITEMASK: GLenum;
readonly STENCIL_BITS: GLenum;
readonly STENCIL_BUFFER_BIT: GLenum;
readonly STENCIL_CLEAR_VALUE: GLenum;
readonly STENCIL_FAIL: GLenum;
readonly STENCIL_FUNC: GLenum;
readonly STENCIL_INDEX8: GLenum;
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_REF: GLenum;
readonly STENCIL_TEST: GLenum;
readonly STENCIL_VALUE_MASK: GLenum;
readonly STENCIL_WRITEMASK: GLenum;
readonly STREAM_DRAW: GLenum;
readonly SUBPIXEL_BITS: GLenum;
readonly TEXTURE: GLenum;
readonly TEXTURE0: GLenum;
readonly TEXTURE1: GLenum;
readonly TEXTURE10: GLenum;
readonly TEXTURE11: GLenum;
readonly TEXTURE12: GLenum;
readonly TEXTURE13: GLenum;
readonly TEXTURE14: GLenum;
readonly TEXTURE15: GLenum;
readonly TEXTURE16: GLenum;
readonly TEXTURE17: GLenum;
readonly TEXTURE18: GLenum;
readonly TEXTURE19: GLenum;
readonly TEXTURE2: GLenum;
readonly TEXTURE20: GLenum;
readonly TEXTURE21: GLenum;
readonly TEXTURE22: GLenum;
readonly TEXTURE23: GLenum;
readonly TEXTURE24: GLenum;
readonly TEXTURE25: GLenum;
readonly TEXTURE26: GLenum;
readonly TEXTURE27: GLenum;
readonly TEXTURE28: GLenum;
readonly TEXTURE29: GLenum;
readonly TEXTURE3: GLenum;
readonly TEXTURE30: GLenum;
readonly TEXTURE31: GLenum;
readonly TEXTURE4: GLenum;
readonly TEXTURE5: GLenum;
readonly TEXTURE6: GLenum;
readonly TEXTURE7: GLenum;
readonly TEXTURE8: GLenum;
readonly TEXTURE9: GLenum;
readonly TEXTURE_2D: GLenum;
readonly TEXTURE_BINDING_2D: GLenum;
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
readonly TEXTURE_MAG_FILTER: GLenum;
readonly TEXTURE_MIN_FILTER: GLenum;
readonly TEXTURE_WRAP_S: GLenum;
readonly TEXTURE_WRAP_T: GLenum;
readonly TRIANGLES: GLenum;
readonly TRIANGLE_FAN: GLenum;
readonly TRIANGLE_STRIP: GLenum;
readonly UNPACK_ALIGNMENT: GLenum;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
readonly UNSIGNED_BYTE: GLenum;
readonly UNSIGNED_INT: GLenum;
readonly UNSIGNED_SHORT: GLenum;
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
readonly UNSIGNED_SHORT_5_6_5: GLenum;
readonly VALIDATE_STATUS: GLenum;
readonly VENDOR: GLenum;
readonly VERSION: GLenum;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
readonly VERTEX_SHADER: GLenum;
readonly VIEWPORT: GLenum;
readonly ZERO: GLenum;
}
interface WebGLRenderingContextOverloads {
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}
interface WebGLSampler {
}
declare var WebGLSampler: {
prototype: WebGLSampler;
new(): WebGLSampler;
};
/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
interface WebGLShader {
}
declare var WebGLShader: {
prototype: WebGLShader;
new(): WebGLShader;
};
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
interface WebGLShaderPrecisionFormat {
readonly precision: GLint;
readonly rangeMax: GLint;
readonly rangeMin: GLint;
}
declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat;
};
interface WebGLSync {
}
declare var WebGLSync: {
prototype: WebGLSync;
new(): WebGLSync;
};
/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
interface WebGLTexture {
}
declare var WebGLTexture: {
prototype: WebGLTexture;
new(): WebGLTexture;
};
interface WebGLTransformFeedback {
}
declare var WebGLTransformFeedback: {
prototype: WebGLTransformFeedback;
new(): WebGLTransformFeedback;
};
/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
interface WebGLUniformLocation {
}
declare var WebGLUniformLocation: {
prototype: WebGLUniformLocation;
new(): WebGLUniformLocation;
};
interface WebGLVertexArrayObject {
}
declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject;
};
interface WebGLVertexArrayObjectOES {
}
interface WebSocketEventMap {
"close": CloseEvent;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
interface WebSocket extends EventTarget {
/**
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
*
* Can be set, to change how binary data is returned. The default is "blob".
*/
binaryType: BinaryType;
/**
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
*
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
*/
readonly bufferedAmount: number;
/**
* Returns the extensions selected by the server, if any.
*/
readonly extensions: string;
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
onerror: ((this: WebSocket, ev: Event) => any) | null;
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
onopen: ((this: WebSocket, ev: Event) => any) | null;
/**
* Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation.
*/
readonly protocol: string;
/**
* Returns the state of the WebSocket object's connection. It can have the values described below.
*/
readonly readyState: number;
/**
* Returns the URL that was used to establish the WebSocket connection.
*/
readonly url: string;
/**
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
*/
close(code?: number, reason?: string): void;
/**
* Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.
*/
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
readonly CLOSED: number;
readonly CLOSING: number;
readonly CONNECTING: number;
readonly OPEN: number;
addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WebSocket: {
prototype: WebSocket;
new(url: string | URL, protocols?: string | string[]): WebSocket;
readonly CLOSED: number;
readonly CLOSING: number;
readonly CONNECTING: number;
readonly OPEN: number;
};
/** This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. */
interface WindowClient extends Client {
readonly focused: boolean;
readonly visibilityState: VisibilityState;
focus(): Promise<WindowClient>;
navigate(url: string | URL): Promise<WindowClient | null>;
}
declare var WindowClient: {
prototype: WindowClient;
new(): WindowClient;
};
interface WindowOrWorkerGlobalScope {
readonly caches: CacheStorage;
readonly crossOriginIsolated: boolean;
readonly crypto: Crypto;
readonly indexedDB: IDBFactory;
readonly isSecureContext: boolean;
readonly origin: string;
readonly performance: Performance;
atob(data: string): string;
btoa(data: string): string;
clearInterval(handle?: number): void;
clearTimeout(handle?: number): void;
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
queueMicrotask(callback: VoidFunction): void;
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
}
interface WorkerEventMap extends AbstractWorkerEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */
interface Worker extends EventTarget, AbstractWorker {
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
/**
* Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: PostMessageOptions): void;
/**
* Aborts worker's associated global environment.
*/
terminate(): void;
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Worker: {
prototype: Worker;
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
};
interface WorkerGlobalScopeEventMap {
"error": ErrorEvent;
"languagechange": Event;
"offline": Event;
"online": Event;
"rejectionhandled": PromiseRejectionEvent;
"unhandledrejection": PromiseRejectionEvent;
}
/** This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects \u2014 in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. */
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
/**
* Returns workerGlobal's WorkerLocation object.
*/
readonly location: WorkerLocation;
/**
* Returns workerGlobal's WorkerNavigator object.
*/
readonly navigator: WorkerNavigator;
onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;
onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;
onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/**
* Returns workerGlobal.
*/
readonly self: WorkerGlobalScope & typeof globalThis;
/**
* Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).
*/
importScripts(...urls: (string | URL)[]): void;
addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WorkerGlobalScope: {
prototype: WorkerGlobalScope;
new(): WorkerGlobalScope;
};
/** The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location. */
interface WorkerLocation {
readonly hash: string;
readonly host: string;
readonly hostname: string;
readonly href: string;
toString(): string;
readonly origin: string;
readonly pathname: string;
readonly port: string;
readonly protocol: string;
readonly search: string;
}
declare var WorkerLocation: {
prototype: WorkerLocation;
new(): WorkerLocation;
};
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
readonly mediaCapabilities: MediaCapabilities;
}
declare var WorkerNavigator: {
prototype: WorkerNavigator;
new(): WorkerNavigator;
};
/** This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
interface WritableStream<W = any> {
readonly locked: boolean;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
getWriter(): WritableStreamDefaultWriter<W>;
}
declare var WritableStream: {
prototype: WritableStream;
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
};
/** This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
interface WritableStreamDefaultController {
error(e?: any): void;
}
declare var WritableStreamDefaultController: {
prototype: WritableStreamDefaultController;
new(): WritableStreamDefaultController;
};
/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */
interface WritableStreamDefaultWriter<W = any> {
readonly closed: Promise<undefined>;
readonly desiredSize: number | null;
readonly ready: Promise<undefined>;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
releaseLock(): void;
write(chunk?: W): Promise<void>;
}
declare var WritableStreamDefaultWriter: {
prototype: WritableStreamDefaultWriter;
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
};
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
"readystatechange": Event;
}
/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
/**
* Returns client's state.
*/
readonly readyState: number;
/**
* Returns the response body.
*/
readonly response: any;
/**
* Returns response as text.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*/
readonly responseText: string;
/**
* Returns the response type.
*
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
*
* When set: setting to "document" is ignored if current global object is not a Window object.
*
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
responseType: XMLHttpRequestResponseType;
readonly responseURL: string;
readonly status: number;
readonly statusText: string;
/**
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
timeout: number;
/**
* Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
*/
readonly upload: XMLHttpRequestUpload;
/**
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
*
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
*/
withCredentials: boolean;
/**
* Cancels any network activity.
*/
abort(): void;
getAllResponseHeaders(): string;
getResponseHeader(name: string): string | null;
/**
* Sets the request method, request URL, and synchronous flag.
*
* Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
*
* Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
*
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
*/
open(method: string, url: string | URL): void;
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
/**
* Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
*
* Throws an "InvalidStateError" DOMException if state is loading or done.
*/
overrideMimeType(mime: string): void;
/**
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*/
send(body?: XMLHttpRequestBodyInit | null): void;
/**
* Combines a header in author request headers.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
*/
setRequestHeader(name: string, value: string): void;
readonly DONE: number;
readonly HEADERS_RECEIVED: number;
readonly LOADING: number;
readonly OPENED: number;
readonly UNSENT: number;
addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequest: {
prototype: XMLHttpRequest;
new(): XMLHttpRequest;
readonly DONE: number;
readonly HEADERS_RECEIVED: number;
readonly LOADING: number;
readonly OPENED: number;
readonly UNSENT: number;
};
interface XMLHttpRequestEventTargetEventMap {
"abort": ProgressEvent<XMLHttpRequestEventTarget>;
"error": ProgressEvent<XMLHttpRequestEventTarget>;
"load": ProgressEvent<XMLHttpRequestEventTarget>;
"loadend": ProgressEvent<XMLHttpRequestEventTarget>;
"loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
"progress": ProgressEvent<XMLHttpRequestEventTarget>;
"timeout": ProgressEvent<XMLHttpRequestEventTarget>;
}
interface XMLHttpRequestEventTarget extends EventTarget {
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestEventTarget: {
prototype: XMLHttpRequestEventTarget;
new(): XMLHttpRequestEventTarget;
};
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestUpload: {
prototype: XMLHttpRequestUpload;
new(): XMLHttpRequestUpload;
};
interface Console {
assert(condition?: boolean, ...data: any[]): void;
clear(): void;
count(label?: string): void;
countReset(label?: string): void;
debug(...data: any[]): void;
dir(item?: any, options?: any): void;
dirxml(...data: any[]): void;
error(...data: any[]): void;
group(...data: any[]): void;
groupCollapsed(...data: any[]): void;
groupEnd(): void;
info(...data: any[]): void;
log(...data: any[]): void;
table(tabularData?: any, properties?: string[]): void;
time(label?: string): void;
timeEnd(label?: string): void;
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
trace(...data: any[]): void;
warn(...data: any[]): void;
}
declare var console: Console;
declare namespace WebAssembly {
interface CompileError extends Error {
}
var CompileError: {
prototype: CompileError;
new(): CompileError;
};
interface Global {
value: any;
valueOf(): any;
}
var Global: {
prototype: Global;
new(descriptor: GlobalDescriptor, v?: any): Global;
};
interface Instance {
readonly exports: Exports;
}
var Instance: {
prototype: Instance;
new(module: Module, importObject?: Imports): Instance;
};
interface LinkError extends Error {
}
var LinkError: {
prototype: LinkError;
new(): LinkError;
};
interface Memory {
readonly buffer: ArrayBuffer;
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
exports(moduleObject: Module): ModuleExportDescriptor[];
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface RuntimeError extends Error {
}
var RuntimeError: {
prototype: RuntimeError;
new(): RuntimeError;
};
interface Table {
readonly length: number;
get(index: number): any;
grow(delta: number, value?: any): number;
set(index: number, value?: any): void;
}
var Table: {
prototype: Table;
new(descriptor: TableDescriptor, value?: any): Table;
};
interface GlobalDescriptor {
mutable?: boolean;
value: ValueType;
}
interface MemoryDescriptor {
initial: number;
maximum?: number;
shared?: boolean;
}
interface ModuleExportDescriptor {
kind: ImportExportKind;
name: string;
}
interface ModuleImportDescriptor {
kind: ImportExportKind;
module: string;
name: string;
}
interface TableDescriptor {
element: TableKind;
initial: number;
maximum?: number;
}
interface WebAssemblyInstantiatedSource {
instance: Instance;
module: Module;
}
type ImportExportKind = "function" | "global" | "memory" | "table";
type TableKind = "anyfunc" | "externref";
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
type ExportValue = Function | Global | Memory | Table;
type Exports = Record<string, ExportValue>;
type ImportValue = ExportValue | number;
type Imports = Record<string, ModuleImports>;
type ModuleImports = Record<string, ImportValue>;
function compile(bytes: BufferSource): Promise<Module>;
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function validate(bytes: BufferSource): boolean;
}
interface FrameRequestCallback {
(time: DOMHighResTimeStamp): void;
}
interface OnErrorEventHandlerNonNull {
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
}
interface PerformanceObserverCallback {
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
}
interface QueuingStrategySize<T = any> {
(chunk?: T): number;
}
interface TransformerFlushCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface TransformerStartCallback<O> {
(controller: TransformStreamDefaultController<O>): any;
}
interface TransformerTransformCallback<I, O> {
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface UnderlyingSinkAbortCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSinkCloseCallback {
(): void | PromiseLike<void>;
}
interface UnderlyingSinkStartCallback {
(controller: WritableStreamDefaultController): any;
}
interface UnderlyingSinkWriteCallback<W> {
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
interface UnderlyingSourceCancelCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSourcePullCallback<R> {
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
}
interface UnderlyingSourceStartCallback<R> {
(controller: ReadableStreamController<R>): any;
}
interface VoidFunction {
(): void;
}
/**
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
*/
declare var name: string;
declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/**
* Aborts dedicatedWorkerGlobal.
*/
declare function close(): void;
/**
* Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
*/
declare function postMessage(message: any, transfer: Transferable[]): void;
declare function postMessage(message: any, options?: PostMessageOptions): void;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*/
declare function dispatchEvent(event: Event): boolean;
/**
* Returns workerGlobal's WorkerLocation object.
*/
declare var location: WorkerLocation;
/**
* Returns workerGlobal's WorkerNavigator object.
*/
declare var navigator: WorkerNavigator;
declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/**
* Returns workerGlobal.
*/
declare var self: WorkerGlobalScope & typeof globalThis;
/**
* Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).
*/
declare function importScripts(...urls: (string | URL)[]): void;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*/
declare function dispatchEvent(event: Event): boolean;
declare var fonts: FontFaceSet;
declare var caches: CacheStorage;
declare var crossOriginIsolated: boolean;
declare var crypto: Crypto;
declare var indexedDB: IDBFactory;
declare var isSecureContext: boolean;
declare var origin: string;
declare var performance: Performance;
declare function atob(data: string): string;
declare function btoa(data: string): string;
declare function clearInterval(handle?: number): void;
declare function clearTimeout(handle?: number): void;
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
declare function queueMicrotask(callback: VoidFunction): void;
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function cancelAnimationFrame(handle: number): void;
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
type AlgorithmIdentifier = Algorithm | string;
type BigInteger = Uint8Array;
type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView | ArrayBuffer;
type CanvasImageSource = ImageBitmap | OffscreenCanvas;
type DOMHighResTimeStamp = number;
type DOMTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type Float32List = Float32Array | GLfloat[];
type FormDataEntryValue = File | string;
type GLbitfield = number;
type GLboolean = boolean;
type GLclampf = number;
type GLenum = number;
type GLfloat = number;
type GLint = number;
type GLint64 = number;
type GLintptr = number;
type GLsizei = number;
type GLsizeiptr = number;
type GLuint = number;
type GLuint64 = number;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = string[][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type Int32List = Int32Array | GLint[];
type MessageEventSource = MessagePort | ServiceWorker;
type NamedCurve = string;
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type PerformanceEntryList = PerformanceEntry[];
type PushMessageDataInit = BufferSource | string;
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
type TimerHandler = string | Function;
type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
type Uint32List = Uint32Array | GLuint[];
type VibratePattern = number | number[];
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type BinaryType = "arraybuffer" | "blob";
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
type EndingType = "native" | "transparent";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
type IDBRequestReadyState = "done" | "pending";
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
type ImageOrientation = "flipY" | "none";
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
type KeyType = "private" | "public" | "secret";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
type MediaDecodingType = "file" | "media-source" | "webrtc";
type MediaEncodingType = "record" | "webrtc";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type PermissionName = "gamepad" | "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock";
type PermissionState = "denied" | "granted" | "prompt";
type PredefinedColorSpace = "display-p3" | "srgb";
type PremultiplyAlpha = "default" | "none" | "premultiply";
type PushEncryptionKeyName = "auth" | "p256dh";
type PushPermissionState = "denied" | "granted" | "prompt";
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestRedirect = "error" | "follow" | "manual";
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
type TransferFunction = "hlg" | "pq" | "srgb";
type VisibilityState = "hidden" | "visible";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WorkerType = "classic" | "module";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`,Ti["lib.webworker.importscripts.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// WorkerGlobalScope APIs
/////////////////////////////
// These are only available in a Web Worker
declare function importScripts(...urls: string[]): void;
`,Ti["lib.webworker.iterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Worker Iterable APIs
/////////////////////////////
interface Cache {
addAll(requests: Iterable<RequestInfo>): Promise<void>;
}
interface DOMStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface FileList {
[Symbol.iterator](): IterableIterator<File>;
}
interface FontFaceSet extends Set<FontFace> {
}
interface FormData {
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
/**
* Returns an array of key, value pairs for every entry in the list.
*/
entries(): IterableIterator<[string, FormDataEntryValue]>;
/**
* Returns a list of keys in the list.
*/
keys(): IterableIterator<string>;
/**
* Returns a list of values in the list.
*/
values(): IterableIterator<FormDataEntryValue>;
}
interface Headers {
[Symbol.iterator](): IterableIterator<[string, string]>;
/**
* Returns an iterator allowing to go through all key/value pairs contained in this object.
*/
entries(): IterableIterator<[string, string]>;
/**
* Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
*/
keys(): IterableIterator<string>;
/**
* Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
*/
values(): IterableIterator<string>;
}
interface IDBDatabase {
/**
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
*/
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
}
interface IDBObjectStore {
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}
interface MessageEvent<T = any> {
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
interface ReadableStream<R = any> {
[Symbol.iterator](): IterableIterator<any>;
entries(): IterableIterator<[number, any]>;
keys(): IterableIterator<number>;
values(): IterableIterator<any>;
}
interface SubtleCrypto {
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
}
interface URLSearchParams {
[Symbol.iterator](): IterableIterator<[string, string]>;
/**
* Returns an array of key, value pairs for every entry in the search params.
*/
entries(): IterableIterator<[string, string]>;
/**
* Returns a list of keys in the search params.
*/
keys(): IterableIterator<string>;
/**
* Returns a list of values in the search params.
*/
values(): IterableIterator<string>;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WebGL2RenderingContextBase {
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
drawBuffers(buffers: Iterable<GLenum>): void;
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
}
interface WebGL2RenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
}
interface WebGLRenderingContextBase {
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
}
interface WebGLRenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
}
`;var vf=function(){return vf=Object.assign||function(c){for(var h,ae=1,je=arguments.length;ae<je;ae++){h=arguments[ae];for(var _n in h)Object.prototype.hasOwnProperty.call(h,_n)&&(c[_n]=h[_n])}return c},vf.apply(this,arguments)},zs=function(c,h,ae,je){function _n(Nn){return Nn instanceof ae?Nn:new ae(function(er){er(Nn)})}return new(ae||(ae=Promise))(function(Nn,er){function pr(gt){try{Er(je.next(gt))}catch(rt){er(rt)}}function kr(gt){try{Er(je.throw(gt))}catch(rt){er(rt)}}function Er(gt){gt.done?Nn(gt.value):_n(gt.value).then(pr,kr)}Er((je=je.apply(c,h||[])).next())})},xs=function(c,h){var ae={label:0,sent:function(){if(Nn[0]&1)throw Nn[1];return Nn[1]},trys:[],ops:[]},je,_n,Nn,er;return er={next:pr(0),throw:pr(1),return:pr(2)},typeof Symbol=="function"&&(er[Symbol.iterator]=function(){return this}),er;function pr(Er){return function(gt){return kr([Er,gt])}}function kr(Er){if(je)throw new TypeError("Generator is already executing.");for(;ae;)try{if(je=1,_n&&(Nn=Er[0]&2?_n.return:Er[0]?_n.throw||((Nn=_n.return)&&Nn.call(_n),0):_n.next)&&!(Nn=Nn.call(_n,Er[1])).done)return Nn;switch(_n=0,Nn&&(Er=[Er[0]&2,Nn.value]),Er[0]){case 0:case 1:Nn=Er;break;case 4:return ae.label++,{value:Er[1],done:!1};case 5:ae.label++,_n=Er[1],Er=[0];continue;case 7:Er=ae.ops.pop(),ae.trys.pop();continue;default:if(Nn=ae.trys,!(Nn=Nn.length>0&&Nn[Nn.length-1])&&(Er[0]===6||Er[0]===2)){ae=0;continue}if(Er[0]===3&&(!Nn||Er[1]>Nn[0]&&Er[1]<Nn[3])){ae.label=Er[1];break}if(Er[0]===6&&ae.label<Nn[1]){ae.label=Nn[1],Nn=Er;break}if(Nn&&ae.label<Nn[2]){ae.label=Nn[2],ae.ops.push(Er);break}Nn[2]&&ae.ops.pop(),ae.trys.pop();continue}Er=h.call(c,ae)}catch(gt){Er=[6,gt],_n=0}finally{je=Nn=0}if(Er[0]&5)throw Er[1];return{value:Er[0]?Er[1]:void 0,done:!0}}};function sl(c){return typeof c=="string"?/^file:\/\/\//.test(c)?!!Ti[c.substr(8)]:!1:c.path.indexOf("/lib.")===0?!!Ti[c.path.slice(1)]:!1}var Mf=function(){function c(h,ae){this._extraLibs=Object.create(null),this._languageService=oc.I5(this),this._ctx=h,this._compilerOptions=ae.compilerOptions,this._extraLibs=ae.extraLibs,this._inlayHintsOptions=ae.inlayHintsOptions}return c.prototype.getCompilationSettings=function(){return this._compilerOptions},c.prototype.getLanguageService=function(){return this._languageService},c.prototype.getExtraLibs=function(){return this._extraLibs},c.prototype.getScriptFileNames=function(){var h=this._ctx.getMirrorModels().map(function(je){return je.uri}),ae=h.filter(function(je){return!sl(je)}).map(function(je){return je.toString()});return ae.concat(Object.keys(this._extraLibs))},c.prototype._getModel=function(h){for(var ae=this._ctx.getMirrorModels(),je=0;je<ae.length;je++)if(ae[je].uri.toString()===h)return ae[je];return null},c.prototype.getScriptVersion=function(h){var ae=this._getModel(h);return ae?ae.version.toString():this.isDefaultLibFileName(h)?"1":h in this._extraLibs?String(this._extraLibs[h].version):""},c.prototype.getScriptText=function(h){return zs(this,void 0,void 0,function(){return xs(this,function(ae){return[2,this._getScriptText(h)]})})},c.prototype._getScriptText=function(h){var ae,je=this._getModel(h),_n="lib."+h+".d.ts";if(je)ae=je.getValue();else if(h in Ti)ae=Ti[h];else if(_n in Ti)ae=Ti[_n];else if(h in this._extraLibs)ae=this._extraLibs[h].content;else return;return ae},c.prototype.getScriptSnapshot=function(h){var ae=this._getScriptText(h);if(ae!==void 0)return{getText:function(je,_n){return ae.substring(je,_n)},getLength:function(){return ae.length},getChangeRange:function(){}}},c.prototype.getScriptKind=function(h){var ae=h.substr(h.lastIndexOf(".")+1);switch(ae){case"ts":return oc.hV.TS;case"tsx":return oc.hV.TSX;case"js":return oc.hV.JS;case"jsx":return oc.hV.JSX;default:return this.getCompilationSettings().allowJs?oc.hV.JS:oc.hV.TS}},c.prototype.getCurrentDirectory=function(){return""},c.prototype.getDefaultLibFileName=function(h){switch(h.target){case 99:var ae="lib.esnext.full.d.ts";if(ae in Ti||ae in this._extraLibs)return ae;case 7:case 6:case 5:case 4:case 3:case 2:default:var je="lib.es"+(2013+(h.target||99))+".full.d.ts";return je in Ti||je in this._extraLibs?je:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}},c.prototype.isDefaultLibFileName=function(h){return h===this.getDefaultLibFileName(this._compilerOptions)},c.prototype.getLibFiles=function(){return zs(this,void 0,void 0,function(){return xs(this,function(h){return[2,Ti]})})},c.clearFiles=function(h){for(var ae=[],je=0,_n=h;je<_n.length;je++){var Nn=_n[je],er=vf({},Nn);if(er.file=er.file?{fileName:er.file.fileName}:void 0,Nn.relatedInformation){er.relatedInformation=[];for(var pr=0,kr=Nn.relatedInformation;pr<kr.length;pr++){var Er=kr[pr],gt=vf({},Er);gt.file=gt.file?{fileName:gt.file.fileName}:void 0,er.relatedInformation.push(gt)}}ae.push(er)}return ae},c.prototype.getSyntacticDiagnostics=function(h){return zs(this,void 0,void 0,function(){var ae;return xs(this,function(je){return sl(h)?[2,[]]:(ae=this._languageService.getSyntacticDiagnostics(h),[2,c.clearFiles(ae)])})})},c.prototype.getSemanticDiagnostics=function(h){return zs(this,void 0,void 0,function(){var ae;return xs(this,function(je){return sl(h)?[2,[]]:(ae=this._languageService.getSemanticDiagnostics(h),[2,c.clearFiles(ae)])})})},c.prototype.getSuggestionDiagnostics=function(h){return zs(this,void 0,void 0,function(){var ae;return xs(this,function(je){return sl(h)?[2,[]]:(ae=this._languageService.getSuggestionDiagnostics(h),[2,c.clearFiles(ae)])})})},c.prototype.getCompilerOptionsDiagnostics=function(h){return zs(this,void 0,void 0,function(){var ae;return xs(this,function(je){return sl(h)?[2,[]]:(ae=this._languageService.getCompilerOptionsDiagnostics(),[2,c.clearFiles(ae)])})})},c.prototype.getCompletionsAtPosition=function(h,ae){return zs(this,void 0,void 0,function(){return xs(this,function(je){return sl(h)?[2,void 0]:[2,this._languageService.getCompletionsAtPosition(h,ae,void 0)]})})},c.prototype.getCompletionEntryDetails=function(h,ae,je){return zs(this,void 0,void 0,function(){return xs(this,function(_n){return[2,this._languageService.getCompletionEntryDetails(h,ae,je,void 0,void 0,void 0,void 0)]})})},c.prototype.getSignatureHelpItems=function(h,ae,je){return zs(this,void 0,void 0,function(){return xs(this,function(_n){return sl(h)?[2,void 0]:[2,this._languageService.getSignatureHelpItems(h,ae,je)]})})},c.prototype.getQuickInfoAtPosition=function(h,ae){return zs(this,void 0,void 0,function(){return xs(this,function(je){return sl(h)?[2,void 0]:[2,this._languageService.getQuickInfoAtPosition(h,ae)]})})},c.prototype.getOccurrencesAtPosition=function(h,ae){return zs(this,void 0,void 0,function(){return xs(this,function(je){return sl(h)?[2,void 0]:[2,this._languageService.getOccurrencesAtPosition(h,ae)]})})},c.prototype.getDefinitionAtPosition=function(h,ae){return zs(this,void 0,void 0,function(){return xs(this,function(je){return sl(h)?[2,void 0]:[2,this._languageService.getDefinitionAtPosition(h,ae)]})})},c.prototype.getReferencesAtPosition=function(h,ae){return zs(this,void 0,void 0,function(){return xs(this,function(je){return sl(h)?[2,void 0]:[2,this._languageService.getReferencesAtPosition(h,ae)]})})},c.prototype.getNavigationBarItems=function(h){return zs(this,void 0,void 0,function(){return xs(this,function(ae){return sl(h)?[2,[]]:[2,this._languageService.getNavigationBarItems(h)]})})},c.prototype.getFormattingEditsForDocument=function(h,ae){return zs(this,void 0,void 0,function(){return xs(this,function(je){return sl(h)?[2,[]]:[2,this._languageService.getFormattingEditsForDocument(h,ae)]})})},c.prototype.getFormattingEditsForRange=function(h,ae,je,_n){return zs(this,void 0,void 0,function(){return xs(this,function(Nn){return sl(h)?[2,[]]:[2,this._languageService.getFormattingEditsForRange(h,ae,je,_n)]})})},c.prototype.getFormattingEditsAfterKeystroke=function(h,ae,je,_n){return zs(this,void 0,void 0,function(){return xs(this,function(Nn){return sl(h)?[2,[]]:[2,this._languageService.getFormattingEditsAfterKeystroke(h,ae,je,_n)]})})},c.prototype.findRenameLocations=function(h,ae,je,_n,Nn){return zs(this,void 0,void 0,function(){return xs(this,function(er){return sl(h)?[2,void 0]:[2,this._languageService.findRenameLocations(h,ae,je,_n,Nn)]})})},c.prototype.getRenameInfo=function(h,ae,je){return zs(this,void 0,void 0,function(){return xs(this,function(_n){return sl(h)?[2,{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}]:[2,this._languageService.getRenameInfo(h,ae,je)]})})},c.prototype.getEmitOutput=function(h){return zs(this,void 0,void 0,function(){return xs(this,function(ae){return sl(h)?[2,{outputFiles:[],emitSkipped:!0}]:[2,this._languageService.getEmitOutput(h)]})})},c.prototype.getCodeFixesAtPosition=function(h,ae,je,_n,Nn){return zs(this,void 0,void 0,function(){var er;return xs(this,function(pr){if(sl(h))return[2,[]];er={};try{return[2,this._languageService.getCodeFixesAtPosition(h,ae,je,_n,Nn,er)]}catch(kr){return[2,[]]}return[2]})})},c.prototype.updateExtraLibs=function(h){return zs(this,void 0,void 0,function(){return xs(this,function(ae){return this._extraLibs=h,[2]})})},c.prototype.provideInlayHints=function(h,ae,je){var _n;return zs(this,void 0,void 0,function(){var Nn,er;return xs(this,function(pr){if(sl(h))return[2,[]];Nn=(_n=this._inlayHintsOptions)!==null&&_n!==void 0?_n:{},er={start:ae,length:je-ae};try{return[2,this._languageService.provideInlayHints(h,er,Nn)]}catch(kr){return[2,[]]}return[2]})})},c}();function wf(c,h){var ae=Mf;if(h.customWorkerPath)if(typeof importScripts=="undefined")console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{importScripts(h.customWorkerPath);var je=self.customTSWorkerFactory;if(!je)throw new Error("The script at "+h.customWorkerPath+" does not add customTSWorkerFactory to self");ae=je(Mf,ts,libFileMap)}return new ae(c,h)}self.onmessage=function(){mc(function(c,h){return new Mf(c,h)})}})()})();